Skip to content

Commit e839441

Browse files
author
lefarcen
committed
refactor(collab): widen team-share resolveDir to allow an async resolver
The skill resolver awaits the skill index and the publish adapter already awaits resolveDir before packing; widen the declared type to string | Promise<string> to match usage, per review.
1 parent 6def8f5 commit e839441

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/daemon/src/collab/team-resource-share.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ export interface CreateTeamResourceShareOptions {
3131
kind: string;
3232
/** Colon-free id-namespace prefix distinguishing this kind on the shared hub. */
3333
idPrefix: string;
34-
/** Resolve a resource's source directory (what gets packed and pushed). */
35-
resolveDir: (resourceId: string) => string;
34+
/** Resolve a resource's source directory (what gets packed and pushed). May be
35+
* async: the skill resolver awaits the skill index, and the publish adapter
36+
* awaits this before packing. */
37+
resolveDir: (resourceId: string) => string | Promise<string>;
3638
/** Resolve the current principal (null = no team identity → share no-ops). */
3739
getPrincipal: () => ResourceHubPrincipal | null | Promise<ResourceHubPrincipal | null>;
3840
/** Injectable client for tests; built from env when omitted. */

0 commit comments

Comments
 (0)