dsh-desktop-enhance 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -95,7 +95,14 @@ declare function handleSessionInfo(ctx: HostContext, request: Request): Promise<
95
95
  declare function registerSessionInfoRoute(ctx: HostContext): () => void;
96
96
  //#endregion
97
97
  //#region src/shared/tools-manager.d.ts
98
- interface ToolSummary {
98
+ type ToolScope = 'builtin' | 'plugin';
99
+ interface ToolOriginMeta {
100
+ readonly scope: ToolScope;
101
+ readonly pluginName: string;
102
+ readonly sourceBadge: string;
103
+ readonly groupKey: string;
104
+ }
105
+ interface ToolSummary extends Partial<ToolOriginMeta> {
99
106
  readonly name: string;
100
107
  readonly description: string;
101
108
  }
@@ -116,6 +123,8 @@ interface ToolsHostContext extends HostContext {
116
123
  }
117
124
  declare function resolveSessionIdFromScope(candidate: unknown, ctx?: HostContext): string | undefined;
118
125
  declare function readToolsConfig(config: unknown, sessionId?: string): ToolsPolicyState;
126
+ declare function resolveFiberModuleName(fiber: unknown): string | undefined;
127
+ declare function scanCordisFiberToolOwners(ctx: HostContext, targetOwners?: Map<string, string>): Map<string, string>;
119
128
  declare function collectAllToolSchemas(ctx: HostContext): Promise<readonly ToolSummary[]>;
120
129
  declare function installToolsPolicy(ctx: ToolsHostContext, readState: (sessionId?: string) => ToolsPolicyState): () => void;
121
130
  declare function handleToolsCatalog(ctx: HostContext): Promise<Response>;
@@ -205,7 +214,9 @@ export declare const __test: {
205
214
  installSkillsPolicy: typeof installSkillsPolicy;
206
215
  readToolsConfig: typeof readToolsConfig;
207
216
  readSkillsConfig: typeof readSkillsConfig;
217
+ resolveFiberModuleName: typeof resolveFiberModuleName;
208
218
  resolveSessionIdFromScope: typeof resolveSessionIdFromScope;
219
+ scanCordisFiberToolOwners: typeof scanCordisFiberToolOwners;
209
220
  registerSuggestRoute: typeof registerSuggestRoute;
210
221
  registerSessionInfoRoute: typeof registerSessionInfoRoute;
211
222
  registerToolsRoute: typeof registerToolsRoute;