@xenosystem/agent-sdk 0.10.10 → 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.
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,6 +4160,7 @@ 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;
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,6 +4160,7 @@ 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;