@xenosystem/agent-sdk 0.10.10 → 0.10.12

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.
@@ -246,6 +246,11 @@ interface ToolAuthorizationReceipt {
246
246
  allowed: true;
247
247
  reason: string;
248
248
  };
249
+ elevation?: {
250
+ network: boolean;
251
+ directories: string[];
252
+ justification: string;
253
+ };
249
254
  }
250
255
  interface ToolResult {
251
256
  success: boolean;
@@ -376,6 +381,12 @@ interface PermissionPromptInfo {
376
381
  requesterSummary?: string;
377
382
  directory?: string;
378
383
  filePath?: string;
384
+ oneTime?: boolean;
385
+ elevation?: {
386
+ network: boolean;
387
+ directories: string[];
388
+ justification: string;
389
+ };
379
390
  }
380
391
  type PermissionPromptFn = (info: PermissionPromptInfo) => Promise<"allow" | "always" | "deny">;
381
392
  type SessionStatus = "creating" | "active" | "paused" | "completed" | "abandoned" | "archived";
@@ -655,6 +666,7 @@ declare class PermissionEngine {
655
666
  allowed: boolean;
656
667
  reason: string;
657
668
  }>;
669
+ private checkElevatedBash;
658
670
  private finalizeDecision;
659
671
  classifyAutoPermission(toolName: string, input: Record<string, unknown>): AutoPermissionDecision;
660
672
  private contentDigest;
@@ -246,6 +246,11 @@ interface ToolAuthorizationReceipt {
246
246
  allowed: true;
247
247
  reason: string;
248
248
  };
249
+ elevation?: {
250
+ network: boolean;
251
+ directories: string[];
252
+ justification: string;
253
+ };
249
254
  }
250
255
  interface ToolResult {
251
256
  success: boolean;
@@ -376,6 +381,12 @@ interface PermissionPromptInfo {
376
381
  requesterSummary?: string;
377
382
  directory?: string;
378
383
  filePath?: string;
384
+ oneTime?: boolean;
385
+ elevation?: {
386
+ network: boolean;
387
+ directories: string[];
388
+ justification: string;
389
+ };
379
390
  }
380
391
  type PermissionPromptFn = (info: PermissionPromptInfo) => Promise<"allow" | "always" | "deny">;
381
392
  type SessionStatus = "creating" | "active" | "paused" | "completed" | "abandoned" | "archived";
@@ -655,6 +666,7 @@ declare class PermissionEngine {
655
666
  allowed: boolean;
656
667
  reason: string;
657
668
  }>;
669
+ private checkElevatedBash;
658
670
  private finalizeDecision;
659
671
  classifyAutoPermission(toolName: string, input: Record<string, unknown>): AutoPermissionDecision;
660
672
  private contentDigest;