@xenosystem/agent-sdk 0.10.30 → 0.10.31
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/dist/artifacts/index.cjs +6 -6
- package/dist/artifacts/index.js +7 -7
- package/dist/artifacts/metafile-cjs.json +1 -1
- package/dist/artifacts/metafile-esm.json +1 -1
- package/dist/automation/index.cjs +1 -1
- package/dist/automation/index.d.cts +6 -2
- package/dist/automation/index.d.ts +6 -2
- package/dist/automation/index.js +1 -1
- package/dist/automation/metafile-cjs.json +1 -1
- package/dist/automation/metafile-esm.json +1 -1
- package/dist/control-plane/index.cjs +1 -1
- package/dist/control-plane/index.js +1 -1
- package/dist/coordination/index.cjs +2 -2
- package/dist/coordination/index.d.cts +9 -3
- package/dist/coordination/index.d.ts +9 -3
- package/dist/coordination/index.js +2 -2
- package/dist/coordination/metafile-cjs.json +1 -1
- package/dist/coordination/metafile-esm.json +1 -1
- package/dist/electron/index.cjs +199 -178
- package/dist/electron/index.d.cts +7 -2
- package/dist/electron/index.d.ts +7 -2
- package/dist/electron/index.js +199 -178
- package/dist/electron/metafile-cjs.json +1 -1
- package/dist/electron/metafile-esm.json +1 -1
- package/dist/hosted/metafile-cjs.json +1 -1
- package/dist/hosted/metafile-esm.json +1 -1
- package/dist/index.cjs +375 -354
- package/dist/index.d.cts +78 -13
- package/dist/index.d.ts +78 -13
- package/dist/index.js +376 -355
- package/dist/intelligence/index.cjs +5 -5
- package/dist/intelligence/index.js +6 -6
- package/dist/intelligence/metafile-cjs.json +1 -1
- package/dist/intelligence/metafile-esm.json +1 -1
- package/dist/mcp/index.d.cts +6 -2
- package/dist/mcp/index.d.ts +6 -2
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/providers/metafile-cjs.json +1 -1
- package/dist/providers/metafile-esm.json +1 -1
- package/dist/recipes/metafile-cjs.json +1 -1
- package/dist/recipes/metafile-esm.json +1 -1
- package/dist/research/metafile-cjs.json +1 -1
- package/dist/research/metafile-esm.json +1 -1
- package/dist/session/index.cjs +24 -24
- package/dist/session/index.js +21 -21
- package/dist/session/metafile-cjs.json +1 -1
- package/dist/session/metafile-esm.json +1 -1
- package/dist/sharing/index.cjs +2 -2
- package/dist/sharing/index.js +3 -3
- package/dist/sharing/metafile-cjs.json +1 -1
- package/dist/sharing/metafile-esm.json +1 -1
- package/dist/skills/index.d.cts +5 -1
- package/dist/skills/index.d.ts +5 -1
- package/dist/utils/index.cjs +19 -18
- package/dist/utils/index.d.cts +5 -2
- package/dist/utils/index.d.ts +5 -2
- package/dist/utils/index.js +19 -18
- package/dist/utils/metafile-cjs.json +1 -1
- package/dist/utils/metafile-esm.json +1 -1
- package/package.json +1 -1
|
@@ -286,6 +286,10 @@ interface ToolExecutionContext {
|
|
|
286
286
|
operationId?: string;
|
|
287
287
|
reportProgress?: (event: ToolProgressUpdate) => void;
|
|
288
288
|
authorization?: ToolAuthorizationReceipt;
|
|
289
|
+
ownerSessionId?: string;
|
|
290
|
+
}
|
|
291
|
+
interface ToolPolicyProjectionContext {
|
|
292
|
+
ownerSessionId?: string;
|
|
289
293
|
}
|
|
290
294
|
type ToolExecutor = (input: Record<string, unknown>, context?: ToolExecutionContext) => Promise<ToolResult>;
|
|
291
295
|
interface ToolPolicyProjection {
|
|
@@ -299,7 +303,7 @@ interface RegisteredTool {
|
|
|
299
303
|
definition: ToolDefinition;
|
|
300
304
|
execute: ToolExecutor;
|
|
301
305
|
readOnly?: boolean;
|
|
302
|
-
projectPolicyInput?: (input: Record<string, unknown
|
|
306
|
+
projectPolicyInput?: (input: Record<string, unknown>, context?: ToolPolicyProjectionContext) => ToolPolicyProjection | {
|
|
303
307
|
error: ToolResult;
|
|
304
308
|
};
|
|
305
309
|
}
|
|
@@ -637,7 +641,7 @@ declare class ToolRegistry {
|
|
|
637
641
|
execute(name: string, input: Record<string, unknown>, context?: ToolExecutionContext): Promise<ToolResult>;
|
|
638
642
|
listNames(): string[];
|
|
639
643
|
has(name: string): boolean;
|
|
640
|
-
projectPolicyInput(name: string, input: Record<string, unknown
|
|
644
|
+
projectPolicyInput(name: string, input: Record<string, unknown>, context?: ToolPolicyProjectionContext): ToolPolicyProjection | {
|
|
641
645
|
error: ToolResult;
|
|
642
646
|
};
|
|
643
647
|
get size(): number;
|
|
@@ -1712,6 +1716,7 @@ declare class AgentLoop {
|
|
|
1712
1716
|
private getApiMessagesForRequest;
|
|
1713
1717
|
private appendSyntheticUserMessage;
|
|
1714
1718
|
private appendSyntheticAssistantMessage;
|
|
1719
|
+
private explicitOwnerSessionId;
|
|
1715
1720
|
private projectAssistantContentForPersistence;
|
|
1716
1721
|
run(userMessage: string, options?: AgentRunOptions): Promise<string>;
|
|
1717
1722
|
runStream(prompt: string, options?: RunStreamOptions): AsyncIterable<XenoRuntimeEvent>;
|
package/dist/electron/index.d.ts
CHANGED
|
@@ -286,6 +286,10 @@ interface ToolExecutionContext {
|
|
|
286
286
|
operationId?: string;
|
|
287
287
|
reportProgress?: (event: ToolProgressUpdate) => void;
|
|
288
288
|
authorization?: ToolAuthorizationReceipt;
|
|
289
|
+
ownerSessionId?: string;
|
|
290
|
+
}
|
|
291
|
+
interface ToolPolicyProjectionContext {
|
|
292
|
+
ownerSessionId?: string;
|
|
289
293
|
}
|
|
290
294
|
type ToolExecutor = (input: Record<string, unknown>, context?: ToolExecutionContext) => Promise<ToolResult>;
|
|
291
295
|
interface ToolPolicyProjection {
|
|
@@ -299,7 +303,7 @@ interface RegisteredTool {
|
|
|
299
303
|
definition: ToolDefinition;
|
|
300
304
|
execute: ToolExecutor;
|
|
301
305
|
readOnly?: boolean;
|
|
302
|
-
projectPolicyInput?: (input: Record<string, unknown
|
|
306
|
+
projectPolicyInput?: (input: Record<string, unknown>, context?: ToolPolicyProjectionContext) => ToolPolicyProjection | {
|
|
303
307
|
error: ToolResult;
|
|
304
308
|
};
|
|
305
309
|
}
|
|
@@ -637,7 +641,7 @@ declare class ToolRegistry {
|
|
|
637
641
|
execute(name: string, input: Record<string, unknown>, context?: ToolExecutionContext): Promise<ToolResult>;
|
|
638
642
|
listNames(): string[];
|
|
639
643
|
has(name: string): boolean;
|
|
640
|
-
projectPolicyInput(name: string, input: Record<string, unknown
|
|
644
|
+
projectPolicyInput(name: string, input: Record<string, unknown>, context?: ToolPolicyProjectionContext): ToolPolicyProjection | {
|
|
641
645
|
error: ToolResult;
|
|
642
646
|
};
|
|
643
647
|
get size(): number;
|
|
@@ -1712,6 +1716,7 @@ declare class AgentLoop {
|
|
|
1712
1716
|
private getApiMessagesForRequest;
|
|
1713
1717
|
private appendSyntheticUserMessage;
|
|
1714
1718
|
private appendSyntheticAssistantMessage;
|
|
1719
|
+
private explicitOwnerSessionId;
|
|
1715
1720
|
private projectAssistantContentForPersistence;
|
|
1716
1721
|
run(userMessage: string, options?: AgentRunOptions): Promise<string>;
|
|
1717
1722
|
runStream(prompt: string, options?: RunStreamOptions): AsyncIterable<XenoRuntimeEvent>;
|