@xenosystem/agent-sdk 0.10.30 → 0.10.32
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 +222 -188
- package/dist/electron/index.d.cts +8 -2
- package/dist/electron/index.d.ts +8 -2
- package/dist/electron/index.js +222 -188
- package/dist/electron/metafile-cjs.json +1 -1
- package/dist/electron/metafile-esm.json +1 -1
- package/dist/hooks/index.cjs +4 -4
- package/dist/hooks/index.d.cts +18 -0
- package/dist/hooks/index.d.ts +18 -0
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/metafile-cjs.json +1 -1
- package/dist/hooks/metafile-esm.json +1 -1
- package/dist/hosted/index.cjs +1 -1
- package/dist/hosted/index.d.cts +21 -3
- package/dist/hosted/index.d.ts +21 -3
- package/dist/hosted/index.js +1 -1
- package/dist/hosted/metafile-cjs.json +1 -1
- package/dist/hosted/metafile-esm.json +1 -1
- package/dist/index.cjs +432 -380
- package/dist/index.d.cts +283 -19
- package/dist/index.d.ts +283 -19
- package/dist/index.js +431 -379
- 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.cjs +21 -21
- package/dist/mcp/index.d.cts +61 -6
- package/dist/mcp/index.d.ts +61 -6
- package/dist/mcp/index.js +21 -21
- package/dist/mcp/metafile-cjs.json +1 -1
- package/dist/mcp/metafile-esm.json +1 -1
- 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 +2 -2
|
@@ -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;
|
|
@@ -1467,6 +1471,7 @@ interface AgentLoopConfig {
|
|
|
1467
1471
|
maxIterations: number;
|
|
1468
1472
|
reserveFinalSynthesisTurn?: boolean;
|
|
1469
1473
|
turnTokenBudget?: number;
|
|
1474
|
+
continuationCheckpoints?: boolean;
|
|
1470
1475
|
systemPrompt: string;
|
|
1471
1476
|
requesterLabel?: string;
|
|
1472
1477
|
ownerSessionId?: string;
|
|
@@ -1712,6 +1717,7 @@ declare class AgentLoop {
|
|
|
1712
1717
|
private getApiMessagesForRequest;
|
|
1713
1718
|
private appendSyntheticUserMessage;
|
|
1714
1719
|
private appendSyntheticAssistantMessage;
|
|
1720
|
+
private explicitOwnerSessionId;
|
|
1715
1721
|
private projectAssistantContentForPersistence;
|
|
1716
1722
|
run(userMessage: string, options?: AgentRunOptions): Promise<string>;
|
|
1717
1723
|
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;
|
|
@@ -1467,6 +1471,7 @@ interface AgentLoopConfig {
|
|
|
1467
1471
|
maxIterations: number;
|
|
1468
1472
|
reserveFinalSynthesisTurn?: boolean;
|
|
1469
1473
|
turnTokenBudget?: number;
|
|
1474
|
+
continuationCheckpoints?: boolean;
|
|
1470
1475
|
systemPrompt: string;
|
|
1471
1476
|
requesterLabel?: string;
|
|
1472
1477
|
ownerSessionId?: string;
|
|
@@ -1712,6 +1717,7 @@ declare class AgentLoop {
|
|
|
1712
1717
|
private getApiMessagesForRequest;
|
|
1713
1718
|
private appendSyntheticUserMessage;
|
|
1714
1719
|
private appendSyntheticAssistantMessage;
|
|
1720
|
+
private explicitOwnerSessionId;
|
|
1715
1721
|
private projectAssistantContentForPersistence;
|
|
1716
1722
|
run(userMessage: string, options?: AgentRunOptions): Promise<string>;
|
|
1717
1723
|
runStream(prompt: string, options?: RunStreamOptions): AsyncIterable<XenoRuntimeEvent>;
|