@xenosystem/agent-sdk 0.9.21 → 0.9.22

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.
Files changed (46) hide show
  1. package/README.md +6 -3
  2. package/dist/artifacts/index.cjs +1 -1
  3. package/dist/artifacts/index.js +1 -1
  4. package/dist/automation/index.d.cts +28 -0
  5. package/dist/automation/index.d.ts +28 -0
  6. package/dist/control-plane/index.cjs +1 -1
  7. package/dist/control-plane/index.js +1 -1
  8. package/dist/electron/index.cjs +132 -128
  9. package/dist/electron/index.d.cts +56 -0
  10. package/dist/electron/index.d.ts +56 -0
  11. package/dist/electron/index.js +129 -125
  12. package/dist/electron/metafile-cjs.json +1 -1
  13. package/dist/electron/metafile-esm.json +1 -1
  14. package/dist/governance/index.d.cts +29 -0
  15. package/dist/governance/index.d.ts +29 -0
  16. package/dist/hosted/index.cjs +1 -1
  17. package/dist/hosted/index.js +1 -1
  18. package/dist/hosted/metafile-cjs.json +1 -1
  19. package/dist/hosted/metafile-esm.json +1 -1
  20. package/dist/index.cjs +336 -330
  21. package/dist/index.d.cts +165 -2
  22. package/dist/index.d.ts +165 -2
  23. package/dist/index.js +333 -327
  24. package/dist/mcp/index.d.cts +28 -0
  25. package/dist/mcp/index.d.ts +28 -0
  26. package/dist/metafile-cjs.json +1 -1
  27. package/dist/metafile-esm.json +1 -1
  28. package/dist/providers/metafile-cjs.json +1 -1
  29. package/dist/providers/metafile-esm.json +1 -1
  30. package/dist/session/index.cjs +56 -54
  31. package/dist/session/index.d.cts +63 -1
  32. package/dist/session/index.d.ts +63 -1
  33. package/dist/session/index.js +56 -54
  34. package/dist/session/metafile-cjs.json +1 -1
  35. package/dist/session/metafile-esm.json +1 -1
  36. package/dist/skills/index.d.cts +28 -0
  37. package/dist/skills/index.d.ts +28 -0
  38. package/dist/ui/index.d.cts +28 -0
  39. package/dist/ui/index.d.ts +28 -0
  40. package/dist/utils/index.cjs +17 -16
  41. package/dist/utils/index.d.cts +31 -1
  42. package/dist/utils/index.d.ts +31 -1
  43. package/dist/utils/index.js +14 -13
  44. package/dist/utils/metafile-cjs.json +1 -1
  45. package/dist/utils/metafile-esm.json +1 -1
  46. package/package.json +1 -1
@@ -442,6 +442,33 @@ declare class MCPManager {
442
442
  private resolveApprovalDecision;
443
443
  private emitServerStateChanged;
444
444
  }
445
+ declare const WEB_CONTEXT_TOOL_RESULT_SCHEMA: "xeno.web-context.tool-result.v1";
446
+ interface WebContextEvidenceProjection {
447
+ evidenceId: string;
448
+ requestId: string;
449
+ sourceUrl: string;
450
+ finalUrl?: string;
451
+ citations: Array<{
452
+ url: string;
453
+ title?: string;
454
+ artifactId?: string;
455
+ }>;
456
+ }
457
+ interface WebContextToolResult {
458
+ schemaVersion: typeof WEB_CONTEXT_TOOL_RESULT_SCHEMA;
459
+ operation: "search" | "fetch";
460
+ requestId: string;
461
+ evidence: WebContextEvidenceProjection;
462
+ job?: {
463
+ jobId: string;
464
+ state: string;
465
+ };
466
+ artifact?: {
467
+ artifactId: string;
468
+ mediaType: string;
469
+ bytes: number;
470
+ };
471
+ }
445
472
  interface ToolDefinition {
446
473
  name: string;
447
474
  description: string;
@@ -548,6 +575,7 @@ interface ToolResult {
548
575
  assistantOnlyContent?: ToolAssistantContentBlock[];
549
576
  operation?: ToolOperationSnapshot;
550
577
  evidence?: ToolEvidence[];
578
+ webContext?: WebContextToolResult;
551
579
  retryable?: boolean;
552
580
  }
553
581
  interface ToolExecutionContext {
@@ -442,6 +442,33 @@ declare class MCPManager {
442
442
  private resolveApprovalDecision;
443
443
  private emitServerStateChanged;
444
444
  }
445
+ declare const WEB_CONTEXT_TOOL_RESULT_SCHEMA: "xeno.web-context.tool-result.v1";
446
+ interface WebContextEvidenceProjection {
447
+ evidenceId: string;
448
+ requestId: string;
449
+ sourceUrl: string;
450
+ finalUrl?: string;
451
+ citations: Array<{
452
+ url: string;
453
+ title?: string;
454
+ artifactId?: string;
455
+ }>;
456
+ }
457
+ interface WebContextToolResult {
458
+ schemaVersion: typeof WEB_CONTEXT_TOOL_RESULT_SCHEMA;
459
+ operation: "search" | "fetch";
460
+ requestId: string;
461
+ evidence: WebContextEvidenceProjection;
462
+ job?: {
463
+ jobId: string;
464
+ state: string;
465
+ };
466
+ artifact?: {
467
+ artifactId: string;
468
+ mediaType: string;
469
+ bytes: number;
470
+ };
471
+ }
445
472
  interface ToolDefinition {
446
473
  name: string;
447
474
  description: string;
@@ -548,6 +575,7 @@ interface ToolResult {
548
575
  assistantOnlyContent?: ToolAssistantContentBlock[];
549
576
  operation?: ToolOperationSnapshot;
550
577
  evidence?: ToolEvidence[];
578
+ webContext?: WebContextToolResult;
551
579
  retryable?: boolean;
552
580
  }
553
581
  interface ToolExecutionContext {