qlogicagent 2.11.3 → 2.11.5

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 (34) hide show
  1. package/dist/agent.js +6 -6
  2. package/dist/cli.js +269 -262
  3. package/dist/index.js +265 -258
  4. package/dist/types/cli/permission-bootstrap.d.ts +7 -0
  5. package/dist/types/cli/session-coordinator.d.ts +9 -0
  6. package/dist/types/cli/tool-bootstrap.d.ts +33 -2
  7. package/dist/types/cli/turn-permission-sync.d.ts +1 -2
  8. package/dist/types/protocol/wire/acp-protocol.d.ts +1 -0
  9. package/dist/types/protocol/wire/chat-types.d.ts +6 -0
  10. package/dist/types/protocol/wire/notification-payloads.d.ts +12 -0
  11. package/dist/types/runtime/infra/default-path-service.d.ts +3 -0
  12. package/dist/types/runtime/infra/model-registry.d.ts +3 -0
  13. package/dist/types/runtime/infra/provider-catalog-adapter.d.ts +14 -0
  14. package/dist/types/runtime/permission-model.d.ts +19 -0
  15. package/dist/types/runtime/ports/path-service.d.ts +10 -0
  16. package/dist/types/runtime/ports/permission-contracts.d.ts +26 -3
  17. package/dist/types/runtime/ports/tool-contracts.d.ts +3 -0
  18. package/dist/types/runtime/ports/tool-risk.d.ts +7 -0
  19. package/dist/types/skills/permissions/community-sandbox-policy.d.ts +1 -1
  20. package/dist/types/skills/permissions/hook-runner.d.ts +16 -2
  21. package/dist/types/skills/permissions/operation-classifier.d.ts +43 -0
  22. package/dist/types/skills/permissions/rule-engine.d.ts +28 -14
  23. package/dist/types/skills/portable-tool.d.ts +18 -0
  24. package/dist/types/skills/tools/exec-tool.d.ts +7 -0
  25. package/dist/types/skills/tools/patch-tool.d.ts +7 -0
  26. package/dist/types/skills/tools/shell/sandbox/helper-resolver.d.ts +7 -0
  27. package/dist/types/skills/tools/shell/sandbox/landlock-argv.d.ts +6 -0
  28. package/dist/types/skills/tools/shell/sandbox/platform.d.ts +3 -0
  29. package/dist/types/skills/tools/shell/sandbox/sandbox-launcher.d.ts +15 -0
  30. package/dist/types/skills/tools/shell/sandbox/sandbox-scope.d.ts +6 -0
  31. package/dist/types/skills/tools/shell/sandbox/sandbox-types.d.ts +47 -0
  32. package/dist/types/skills/tools/shell/sandbox/seatbelt-profile.d.ts +6 -0
  33. package/dist/types/skills/tools/shell/shell-exec.d.ts +3 -0
  34. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import type { NetPolicy } from "./sandbox-types.js";
2
+ /**
3
+ * 生成 macOS Seatbelt profile:读放开、写限 roots(+设备/tmp)、网络按策略。
4
+ * 路径保留(在真实路径上 allow/deny,无 remap)。
5
+ */
6
+ export declare function buildSeatbeltProfile(writableRoots: string[], netPolicy: NetPolicy): string;
@@ -1,6 +1,7 @@
1
1
  import type { ShellProvider, ShellType } from "./shell-provider.js";
2
2
  import { type ShellCommand } from "./shell-command.js";
3
3
  import { type ProgressCallback } from "./task-output.js";
4
+ import type { SandboxConfig } from "./sandbox/sandbox-types.js";
4
5
  export type { ExecResult } from "./shell-command.js";
5
6
  export declare function getCwd(): string;
6
7
  export declare function setCwd(path: string, relativeTo?: string): void;
@@ -16,6 +17,8 @@ export interface ExecOptions {
16
17
  onStdout?: (data: string) => void;
17
18
  /** Per-call CWD override. When set, spawn uses this instead of the session CWD. */
18
19
  cwd?: string;
20
+ /** Sandbox context injected by the host; absent = no OS sandbox (degrade). */
21
+ sandbox?: SandboxConfig;
19
22
  }
20
23
  /**
21
24
  * Set the shell provider for this session.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlogicagent",
3
- "version": "2.11.3",
3
+ "version": "2.11.5",
4
4
  "description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",