@xenosystem/agent-sdk 0.10.9 → 0.10.11

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 (37) hide show
  1. package/dist/artifacts/index.cjs +1 -1
  2. package/dist/artifacts/index.js +1 -1
  3. package/dist/artifacts/metafile-cjs.json +1 -1
  4. package/dist/artifacts/metafile-esm.json +1 -1
  5. package/dist/automation/index.cjs +1 -1
  6. package/dist/automation/index.d.cts +5 -0
  7. package/dist/automation/index.d.ts +5 -0
  8. package/dist/automation/index.js +1 -1
  9. package/dist/automation/metafile-cjs.json +1 -1
  10. package/dist/automation/metafile-esm.json +1 -1
  11. package/dist/control-plane/index.cjs +1 -1
  12. package/dist/control-plane/index.js +1 -1
  13. package/dist/control-plane/metafile-cjs.json +1 -1
  14. package/dist/control-plane/metafile-esm.json +1 -1
  15. package/dist/electron/index.cjs +172 -172
  16. package/dist/electron/index.d.cts +13 -0
  17. package/dist/electron/index.d.ts +13 -0
  18. package/dist/electron/index.js +172 -172
  19. package/dist/electron/metafile-cjs.json +1 -1
  20. package/dist/electron/metafile-esm.json +1 -1
  21. package/dist/hosted/metafile-cjs.json +1 -1
  22. package/dist/hosted/metafile-esm.json +1 -1
  23. package/dist/index.cjs +351 -351
  24. package/dist/index.d.cts +23 -2
  25. package/dist/index.d.ts +23 -2
  26. package/dist/index.js +352 -352
  27. package/dist/mcp/index.d.cts +5 -0
  28. package/dist/mcp/index.d.ts +5 -0
  29. package/dist/metafile-cjs.json +1 -1
  30. package/dist/metafile-esm.json +1 -1
  31. package/dist/session/index.cjs +5 -5
  32. package/dist/session/index.js +7 -7
  33. package/dist/session/metafile-cjs.json +1 -1
  34. package/dist/session/metafile-esm.json +1 -1
  35. package/dist/skills/index.d.cts +5 -0
  36. package/dist/skills/index.d.ts +5 -0
  37. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -364,6 +364,11 @@ interface ToolAuthorizationReceipt {
364
364
  allowed: true;
365
365
  reason: string;
366
366
  };
367
+ elevation?: {
368
+ network: boolean;
369
+ directories: string[];
370
+ justification: string;
371
+ };
367
372
  }
368
373
  interface ToolResult {
369
374
  success: boolean;
@@ -528,6 +533,12 @@ interface PermissionPromptInfo {
528
533
  requesterSummary?: string;
529
534
  directory?: string;
530
535
  filePath?: string;
536
+ oneTime?: boolean;
537
+ elevation?: {
538
+ network: boolean;
539
+ directories: string[];
540
+ justification: string;
541
+ };
531
542
  }
532
543
  type PermissionPromptFn = (info: PermissionPromptInfo) => Promise<"allow" | "always" | "deny">;
533
544
  type StopReason = "end_turn" | "tool_use" | "max_tokens" | "stop_sequence";
@@ -4149,9 +4160,11 @@ declare class PermissionEngine {
4149
4160
  allowed: boolean;
4150
4161
  reason: string;
4151
4162
  }>;
4163
+ private checkElevatedBash;
4152
4164
  private finalizeDecision;
4153
4165
  classifyAutoPermission(toolName: string, input: Record<string, unknown>): AutoPermissionDecision;
4154
4166
  private contentDigest;
4167
+ private bashScopeSuffix;
4155
4168
  private hasShellComposition;
4156
4169
  private getCacheKey;
4157
4170
  private isPathInPersistentAllowedDirectory;
@@ -4947,6 +4960,10 @@ interface UnifiedExecStartOptions {
4947
4960
  origin?: UnifiedExecOrigin;
4948
4961
  presentation?: UnifiedExecPresentation;
4949
4962
  sandbox?: AgentSandbox;
4963
+ invocation?: {
4964
+ file: string;
4965
+ args: string[];
4966
+ };
4950
4967
  }
4951
4968
  interface UnifiedExecProcess {
4952
4969
  id: string;
@@ -5044,8 +5061,8 @@ interface UnifiedExecManagerOptions {
5044
5061
  registerCleanup?: boolean;
5045
5062
  }
5046
5063
  declare class UnifiedExecError extends Error {
5047
- readonly code: "PTY_UNAVAILABLE" | "PROCESS_LIMIT" | "INVALID_SIZE" | "SPAWN_ERROR";
5048
- constructor(code: "PTY_UNAVAILABLE" | "PROCESS_LIMIT" | "INVALID_SIZE" | "SPAWN_ERROR", message: string);
5064
+ readonly code: "PTY_UNAVAILABLE" | "PROCESS_LIMIT" | "INVALID_SIZE" | "SPAWN_ERROR" | "INVOCATION_UNSUPPORTED";
5065
+ constructor(code: "PTY_UNAVAILABLE" | "PROCESS_LIMIT" | "INVALID_SIZE" | "SPAWN_ERROR" | "INVOCATION_UNSUPPORTED", message: string);
5049
5066
  }
5050
5067
  declare class UnifiedExecManager {
5051
5068
  private readonly processes;
@@ -5848,6 +5865,10 @@ interface BackgroundTask {
5848
5865
  interface BackgroundTaskSpawnOptions {
5849
5866
  displayName?: string;
5850
5867
  cwd?: string;
5868
+ invocation?: {
5869
+ file: string;
5870
+ args: string[];
5871
+ };
5851
5872
  env?: NodeJS.ProcessEnv;
5852
5873
  timeout?: number;
5853
5874
  tty?: boolean;
package/dist/index.d.ts CHANGED
@@ -364,6 +364,11 @@ interface ToolAuthorizationReceipt {
364
364
  allowed: true;
365
365
  reason: string;
366
366
  };
367
+ elevation?: {
368
+ network: boolean;
369
+ directories: string[];
370
+ justification: string;
371
+ };
367
372
  }
368
373
  interface ToolResult {
369
374
  success: boolean;
@@ -528,6 +533,12 @@ interface PermissionPromptInfo {
528
533
  requesterSummary?: string;
529
534
  directory?: string;
530
535
  filePath?: string;
536
+ oneTime?: boolean;
537
+ elevation?: {
538
+ network: boolean;
539
+ directories: string[];
540
+ justification: string;
541
+ };
531
542
  }
532
543
  type PermissionPromptFn = (info: PermissionPromptInfo) => Promise<"allow" | "always" | "deny">;
533
544
  type StopReason = "end_turn" | "tool_use" | "max_tokens" | "stop_sequence";
@@ -4149,9 +4160,11 @@ declare class PermissionEngine {
4149
4160
  allowed: boolean;
4150
4161
  reason: string;
4151
4162
  }>;
4163
+ private checkElevatedBash;
4152
4164
  private finalizeDecision;
4153
4165
  classifyAutoPermission(toolName: string, input: Record<string, unknown>): AutoPermissionDecision;
4154
4166
  private contentDigest;
4167
+ private bashScopeSuffix;
4155
4168
  private hasShellComposition;
4156
4169
  private getCacheKey;
4157
4170
  private isPathInPersistentAllowedDirectory;
@@ -4947,6 +4960,10 @@ interface UnifiedExecStartOptions {
4947
4960
  origin?: UnifiedExecOrigin;
4948
4961
  presentation?: UnifiedExecPresentation;
4949
4962
  sandbox?: AgentSandbox;
4963
+ invocation?: {
4964
+ file: string;
4965
+ args: string[];
4966
+ };
4950
4967
  }
4951
4968
  interface UnifiedExecProcess {
4952
4969
  id: string;
@@ -5044,8 +5061,8 @@ interface UnifiedExecManagerOptions {
5044
5061
  registerCleanup?: boolean;
5045
5062
  }
5046
5063
  declare class UnifiedExecError extends Error {
5047
- readonly code: "PTY_UNAVAILABLE" | "PROCESS_LIMIT" | "INVALID_SIZE" | "SPAWN_ERROR";
5048
- constructor(code: "PTY_UNAVAILABLE" | "PROCESS_LIMIT" | "INVALID_SIZE" | "SPAWN_ERROR", message: string);
5064
+ readonly code: "PTY_UNAVAILABLE" | "PROCESS_LIMIT" | "INVALID_SIZE" | "SPAWN_ERROR" | "INVOCATION_UNSUPPORTED";
5065
+ constructor(code: "PTY_UNAVAILABLE" | "PROCESS_LIMIT" | "INVALID_SIZE" | "SPAWN_ERROR" | "INVOCATION_UNSUPPORTED", message: string);
5049
5066
  }
5050
5067
  declare class UnifiedExecManager {
5051
5068
  private readonly processes;
@@ -5848,6 +5865,10 @@ interface BackgroundTask {
5848
5865
  interface BackgroundTaskSpawnOptions {
5849
5866
  displayName?: string;
5850
5867
  cwd?: string;
5868
+ invocation?: {
5869
+ file: string;
5870
+ args: string[];
5871
+ };
5851
5872
  env?: NodeJS.ProcessEnv;
5852
5873
  timeout?: number;
5853
5874
  tty?: boolean;