@namzu/cli 45.3.1 → 45.3.3

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 (94) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-DBPT6HLS.js → acp-EG4R7GRW.js} +6 -6
  4. package/dist/chunks/{add-VVCOEETE.js → add-WCTFVJME.js} +8 -8
  5. package/dist/chunks/{agent-73YAS5CP.js → agent-MYJCIPY4.js} +2 -2
  6. package/dist/chunks/{agent-session-XZXWL5UK.js → agent-session-UD2M3O3F.js} +3 -3
  7. package/dist/chunks/{bin-main-TY6GSRGN.js → bin-main-AVXYUWUH.js} +3 -3
  8. package/dist/chunks/{chat-GFB57MWD.js → chat-X73GLI7I.js} +2 -2
  9. package/dist/chunks/{chunk-5PBABKOO.js → chunk-3QHNIWDT.js} +2 -2
  10. package/dist/chunks/{chunk-XU5B5C4Q.js → chunk-43DHPUWU.js} +2 -2
  11. package/dist/chunks/{chunk-PPKM44OM.js → chunk-4G3CFDPS.js} +15 -15
  12. package/dist/chunks/{chunk-AJ6XXZJU.js → chunk-6JICK2PM.js} +2 -2
  13. package/dist/chunks/{chunk-3UZA4I32.js → chunk-6VC6HCJN.js} +2 -2
  14. package/dist/chunks/{chunk-KKCNOBMK.js → chunk-DAJQVD5D.js} +2 -2
  15. package/dist/chunks/{chunk-T7STEYNM.js → chunk-DSRA44I5.js} +2 -2
  16. package/dist/chunks/{chunk-TMWWZT66.js → chunk-HSNO7GHL.js} +4 -4
  17. package/dist/chunks/{chunk-53VZAZAI.js → chunk-ICIAFQVV.js} +3 -3
  18. package/dist/chunks/{chunk-DZUB65K6.js → chunk-JU5CYBAG.js} +2 -2
  19. package/dist/chunks/{chunk-DKPQ65OR.js → chunk-KAWEN22C.js} +3 -3
  20. package/dist/chunks/{chunk-PSBKJPMK.js → chunk-KRFMMLXB.js} +2 -2
  21. package/dist/chunks/{chunk-XMXF2LN4.js → chunk-LM3KO4HQ.js} +2 -2
  22. package/dist/chunks/{chunk-NUIGGV5J.js → chunk-LXN2DGZE.js} +18 -4
  23. package/dist/chunks/{chunk-NUIGGV5J.js.map → chunk-LXN2DGZE.js.map} +1 -1
  24. package/dist/chunks/{chunk-5TRCWV7J.js → chunk-P7DEIENP.js} +5 -3
  25. package/dist/chunks/{chunk-5TRCWV7J.js.map → chunk-P7DEIENP.js.map} +1 -1
  26. package/dist/chunks/{chunk-I3J3IRIZ.js → chunk-QNC7WED2.js} +2 -2
  27. package/dist/chunks/{chunk-IAS5PYS7.js → chunk-TPS77GVG.js} +2 -2
  28. package/dist/chunks/{chunk-EB74JXDV.js → chunk-VLOL3NC2.js} +2 -2
  29. package/dist/chunks/{doctor-NUXR6O3U.js → doctor-OL6W7JUG.js} +6 -6
  30. package/dist/chunks/{drain-PSU2Z3LK.js → drain-HPY22IFR.js} +2 -2
  31. package/dist/chunks/{exec-7NV7EEM3.js → exec-EWDNB4SA.js} +11 -7
  32. package/dist/chunks/exec-EWDNB4SA.js.map +6 -0
  33. package/dist/chunks/{host-queries-2E47CZJG.js → host-queries-MHM7JXK5.js} +2 -2
  34. package/dist/chunks/{learn-KKRGJ7OU.js → learn-IABAEUDX.js} +2 -2
  35. package/dist/chunks/{learn-builtin-JUJQAJOT.js → learn-builtin-IYZBPO3K.js} +3 -3
  36. package/dist/chunks/{lifecycle-MP6OBPVC.js → lifecycle-XZKHLCKI.js} +5 -5
  37. package/dist/chunks/{list-JE6255IG.js → list-CCBHSOQ5.js} +4 -4
  38. package/dist/chunks/{live-XFKDZJMS.js → live-S5T5J3HY.js} +5 -5
  39. package/dist/chunks/{message-command-4DKALLO7.js → message-command-XS7J46MH.js} +5 -5
  40. package/dist/chunks/{pal-7T6ETMJK.js → pal-MKSD6D7G.js} +3 -3
  41. package/dist/chunks/{resident-CMZVKVY7.js → resident-RZBZHKII.js} +3 -3
  42. package/dist/chunks/{schedule-3Q67DYJR.js → schedule-CIA3VATB.js} +5 -5
  43. package/dist/chunks/{service-YR5MVVB3.js → service-42J5XJT5.js} +4 -4
  44. package/dist/chunks/{session-step-HBDCVIK3.js → session-step-HQSIBIBB.js} +2 -2
  45. package/dist/chunks/{start-check-GLZGWX5M.js → start-check-YMAUKQOU.js} +2 -2
  46. package/dist/chunks/{tui-ZOZ7T2IJ.js → tui-WTI3Z45D.js} +15 -15
  47. package/dist/chunks/{upgrade-DPHHR3QO.js → upgrade-WBBH6O5R.js} +3 -3
  48. package/dist/commands/exec.d.ts.map +1 -1
  49. package/dist/index.js +6 -6
  50. package/dist/integrations/resident/runner-worker.js +1 -1
  51. package/dist/schedule/policy.d.ts +12 -0
  52. package/dist/schedule/policy.d.ts.map +1 -1
  53. package/dist/tui/agent.d.ts.map +1 -1
  54. package/package.json +6 -6
  55. package/dist/chunks/exec-7NV7EEM3.js.map +0 -6
  56. /package/dist/chunks/{acp-DBPT6HLS.js.map → acp-EG4R7GRW.js.map} +0 -0
  57. /package/dist/chunks/{add-VVCOEETE.js.map → add-WCTFVJME.js.map} +0 -0
  58. /package/dist/chunks/{agent-73YAS5CP.js.map → agent-MYJCIPY4.js.map} +0 -0
  59. /package/dist/chunks/{agent-session-XZXWL5UK.js.map → agent-session-UD2M3O3F.js.map} +0 -0
  60. /package/dist/chunks/{bin-main-TY6GSRGN.js.map → bin-main-AVXYUWUH.js.map} +0 -0
  61. /package/dist/chunks/{chat-GFB57MWD.js.map → chat-X73GLI7I.js.map} +0 -0
  62. /package/dist/chunks/{chunk-5PBABKOO.js.map → chunk-3QHNIWDT.js.map} +0 -0
  63. /package/dist/chunks/{chunk-XU5B5C4Q.js.map → chunk-43DHPUWU.js.map} +0 -0
  64. /package/dist/chunks/{chunk-PPKM44OM.js.map → chunk-4G3CFDPS.js.map} +0 -0
  65. /package/dist/chunks/{chunk-AJ6XXZJU.js.map → chunk-6JICK2PM.js.map} +0 -0
  66. /package/dist/chunks/{chunk-3UZA4I32.js.map → chunk-6VC6HCJN.js.map} +0 -0
  67. /package/dist/chunks/{chunk-KKCNOBMK.js.map → chunk-DAJQVD5D.js.map} +0 -0
  68. /package/dist/chunks/{chunk-T7STEYNM.js.map → chunk-DSRA44I5.js.map} +0 -0
  69. /package/dist/chunks/{chunk-TMWWZT66.js.map → chunk-HSNO7GHL.js.map} +0 -0
  70. /package/dist/chunks/{chunk-53VZAZAI.js.map → chunk-ICIAFQVV.js.map} +0 -0
  71. /package/dist/chunks/{chunk-DZUB65K6.js.map → chunk-JU5CYBAG.js.map} +0 -0
  72. /package/dist/chunks/{chunk-DKPQ65OR.js.map → chunk-KAWEN22C.js.map} +0 -0
  73. /package/dist/chunks/{chunk-PSBKJPMK.js.map → chunk-KRFMMLXB.js.map} +0 -0
  74. /package/dist/chunks/{chunk-XMXF2LN4.js.map → chunk-LM3KO4HQ.js.map} +0 -0
  75. /package/dist/chunks/{chunk-I3J3IRIZ.js.map → chunk-QNC7WED2.js.map} +0 -0
  76. /package/dist/chunks/{chunk-IAS5PYS7.js.map → chunk-TPS77GVG.js.map} +0 -0
  77. /package/dist/chunks/{chunk-EB74JXDV.js.map → chunk-VLOL3NC2.js.map} +0 -0
  78. /package/dist/chunks/{doctor-NUXR6O3U.js.map → doctor-OL6W7JUG.js.map} +0 -0
  79. /package/dist/chunks/{drain-PSU2Z3LK.js.map → drain-HPY22IFR.js.map} +0 -0
  80. /package/dist/chunks/{host-queries-2E47CZJG.js.map → host-queries-MHM7JXK5.js.map} +0 -0
  81. /package/dist/chunks/{learn-KKRGJ7OU.js.map → learn-IABAEUDX.js.map} +0 -0
  82. /package/dist/chunks/{learn-builtin-JUJQAJOT.js.map → learn-builtin-IYZBPO3K.js.map} +0 -0
  83. /package/dist/chunks/{lifecycle-MP6OBPVC.js.map → lifecycle-XZKHLCKI.js.map} +0 -0
  84. /package/dist/chunks/{list-JE6255IG.js.map → list-CCBHSOQ5.js.map} +0 -0
  85. /package/dist/chunks/{live-XFKDZJMS.js.map → live-S5T5J3HY.js.map} +0 -0
  86. /package/dist/chunks/{message-command-4DKALLO7.js.map → message-command-XS7J46MH.js.map} +0 -0
  87. /package/dist/chunks/{pal-7T6ETMJK.js.map → pal-MKSD6D7G.js.map} +0 -0
  88. /package/dist/chunks/{resident-CMZVKVY7.js.map → resident-RZBZHKII.js.map} +0 -0
  89. /package/dist/chunks/{schedule-3Q67DYJR.js.map → schedule-CIA3VATB.js.map} +0 -0
  90. /package/dist/chunks/{service-YR5MVVB3.js.map → service-42J5XJT5.js.map} +0 -0
  91. /package/dist/chunks/{session-step-HBDCVIK3.js.map → session-step-HQSIBIBB.js.map} +0 -0
  92. /package/dist/chunks/{start-check-GLZGWX5M.js.map → start-check-YMAUKQOU.js.map} +0 -0
  93. /package/dist/chunks/{tui-ZOZ7T2IJ.js.map → tui-WTI3Z45D.js.map} +0 -0
  94. /package/dist/chunks/{upgrade-DPHHR3QO.js.map → upgrade-WBBH6O5R.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @namzu/cli
2
2
 
3
+ ## 45.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7db536c]
8
+ - @namzu/computer-use@4.0.1
9
+
10
+ ## 45.3.2
11
+
12
+ ### Patch Changes
13
+
14
+ - 48254e4: `namzu exec` no longer offers a tool you refuse by name. `--disallowed-tools web_fetch,web_search`, or `web_fetch = "deny"` in any permission layer, used to leave the tool in every request and the "Using the web" section in the system prompt, so the model kept calling it and each call came back refused. Now the tool's definition and its guidance are left out, as they already were in a scheduled run. A pattern entry such as `bash(rm *)` is unchanged: the tool stays, and the matching calls are refused. The interactive session is unchanged too, because its permissions can change while it runs. Nothing to do on your side; if you relied on the model being told a tool exists but is blocked, allow the tool or say so in the prompt.
15
+
3
16
  ## 45.3.1
4
17
 
5
18
  ### Patch Changes
package/dist/bin.js CHANGED
@@ -81,6 +81,6 @@ __name(suppressSqliteExperimentalWarning, "suppressSqliteExperimentalWarning");
81
81
  suppressSqliteExperimentalWarning();
82
82
 
83
83
  // src/bin.ts
84
- var { main } = await import("./chunks/bin-main-TY6GSRGN.js");
84
+ var { main } = await import("./chunks/bin-main-AVXYUWUH.js");
85
85
  await main(fileURLToPath(new URL("./", import.meta.url).href + "bin.js"));
86
86
  //# sourceMappingURL=bin.js.map
@@ -2,7 +2,7 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  dispatchCliPalMessages
5
- } from "./chunk-DKPQ65OR.js";
5
+ } from "./chunk-KAWEN22C.js";
6
6
  import {
7
7
  decideHeadlessTrust
8
8
  } from "./chunk-TVT2HS3D.js";
@@ -11,8 +11,8 @@ import {
11
11
  lookupPr,
12
12
  runCommand,
13
13
  withKeyNote
14
- } from "./chunk-IAS5PYS7.js";
15
- import "./chunk-KKCNOBMK.js";
14
+ } from "./chunk-TPS77GVG.js";
15
+ import "./chunk-DAJQVD5D.js";
16
16
  import "./chunk-FJONRQQU.js";
17
17
  import {
18
18
  HeadlessScreen
@@ -34,7 +34,7 @@ import {
34
34
  import "./chunk-ZWA2JRJV.js";
35
35
  import {
36
36
  palSessionEnvironment
37
- } from "./chunk-XU5B5C4Q.js";
37
+ } from "./chunk-43DHPUWU.js";
38
38
  import {
39
39
  cliPalActivitySubscriptionPolicy,
40
40
  cliPalActivitySubscriptionStore,
@@ -56,7 +56,7 @@ import {
56
56
  sessionLogCheckpointView,
57
57
  validateComposerSendSettings,
58
58
  verifyCredential
59
- } from "./chunk-5TRCWV7J.js";
59
+ } from "./chunk-P7DEIENP.js";
60
60
  import "./chunk-O6TU3NIP.js";
61
61
  import "./chunk-45IW5SXC.js";
62
62
  import "./chunk-NLBRNFW3.js";
@@ -7648,4 +7648,4 @@ export {
7648
7648
  resolveAcpSession,
7649
7649
  runAcpCommand
7650
7650
  };
7651
- //# sourceMappingURL=acp-DBPT6HLS.js.map
7651
+ //# sourceMappingURL=acp-EG4R7GRW.js.map
@@ -5,7 +5,7 @@ import {
5
5
  changesSinceConfirmed,
6
6
  confirmationView,
7
7
  describeChanges
8
- } from "./chunk-I3J3IRIZ.js";
8
+ } from "./chunk-QNC7WED2.js";
9
9
  import {
10
10
  visibleScheduleMessage
11
11
  } from "./chunk-NADQQMMG.js";
@@ -21,12 +21,7 @@ import {
21
21
  previewLines,
22
22
  scriptShellUnavailableReason,
23
23
  verifyScheduledScript
24
- } from "./chunk-PSBKJPMK.js";
25
- import {
26
- compileJobPolicy,
27
- compileScriptCheckPolicy,
28
- isPresetName
29
- } from "./chunk-NUIGGV5J.js";
24
+ } from "./chunk-KRFMMLXB.js";
30
25
  import {
31
26
  flag,
32
27
  has,
@@ -36,6 +31,11 @@ import {
36
31
  parseMs,
37
32
  pathsFor
38
33
  } from "./chunk-RH7CN6ME.js";
34
+ import {
35
+ compileJobPolicy,
36
+ compileScriptCheckPolicy,
37
+ isPresetName
38
+ } from "./chunk-LXN2DGZE.js";
39
39
  import {
40
40
  appendHistory,
41
41
  readHistory,
@@ -720,4 +720,4 @@ export {
720
720
  confirmCommand,
721
721
  editCommand
722
722
  };
723
- //# sourceMappingURL=add-VVCOEETE.js.map
723
+ //# sourceMappingURL=add-WCTFVJME.js.map
@@ -28,7 +28,7 @@ import {
28
28
  verifyCredential,
29
29
  viewToLines,
30
30
  viewToSummary
31
- } from "./chunk-5TRCWV7J.js";
31
+ } from "./chunk-P7DEIENP.js";
32
32
  import "./chunk-O6TU3NIP.js";
33
33
  import "./chunk-45IW5SXC.js";
34
34
  import "./chunk-NLBRNFW3.js";
@@ -115,4 +115,4 @@ export {
115
115
  viewToLines,
116
116
  viewToSummary
117
117
  };
118
- //# sourceMappingURL=agent-73YAS5CP.js.map
118
+ //# sourceMappingURL=agent-MYJCIPY4.js.map
@@ -3,10 +3,10 @@ const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  createPalAgentSession,
5
5
  palSessionEnvironment
6
- } from "./chunk-XU5B5C4Q.js";
6
+ } from "./chunk-43DHPUWU.js";
7
7
  import "./chunk-HG6MH3OH.js";
8
8
  import "./chunk-VGPWLUQF.js";
9
- import "./chunk-5TRCWV7J.js";
9
+ import "./chunk-P7DEIENP.js";
10
10
  import "./chunk-O6TU3NIP.js";
11
11
  import "./chunk-45IW5SXC.js";
12
12
  import "./chunk-NLBRNFW3.js";
@@ -68,4 +68,4 @@ export {
68
68
  createPalAgentSession,
69
69
  palSessionEnvironment
70
70
  };
71
- //# sourceMappingURL=agent-session-XZXWL5UK.js.map
71
+ //# sourceMappingURL=agent-session-UD2M3O3F.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-R66H2G5R.js";
7
7
  import {
8
8
  runCli
9
- } from "./chunk-PPKM44OM.js";
9
+ } from "./chunk-4G3CFDPS.js";
10
10
  import "./chunk-MZP6SH3M.js";
11
11
  import {
12
12
  EXIT_INTERNAL_ERROR,
@@ -126,7 +126,7 @@ async function plainFailure(err) {
126
126
  __name(plainFailure, "plainFailure");
127
127
  function main(entrypoint) {
128
128
  if (process.argv[2] === "--start-check") {
129
- return import("./start-check-GLZGWX5M.js").then((check) => check.runStartCheck()).then(
129
+ return import("./start-check-YMAUKQOU.js").then((check) => check.runStartCheck()).then(
130
130
  (code) => process.exit(code),
131
131
  () => process.exit(1)
132
132
  );
@@ -165,4 +165,4 @@ __name(main, "main");
165
165
  export {
166
166
  main
167
167
  };
168
- //# sourceMappingURL=bin-main-TY6GSRGN.js.map
168
+ //# sourceMappingURL=bin-main-AVXYUWUH.js.map
@@ -82,7 +82,7 @@ async function runPalChat(ctx, palId, args, options = {}) {
82
82
  ...ctx.config.composerTriggers ? { composerTriggers: ctx.config.composerTriggers } : {},
83
83
  ...ctx.config.statusLine ? { statusLine: ctx.config.statusLine } : {}
84
84
  };
85
- const { launchTui } = await import("./tui-ZOZ7T2IJ.js");
85
+ const { launchTui } = await import("./tui-WTI3Z45D.js");
86
86
  await launchTui(tui, options);
87
87
  } catch (error) {
88
88
  ctx.formatter.error({ message: error instanceof Error ? error.message : String(error) });
@@ -103,4 +103,4 @@ __name(runPalChat, "runPalChat");
103
103
  export {
104
104
  runPalChat
105
105
  };
106
- //# sourceMappingURL=chat-GFB57MWD.js.map
106
+ //# sourceMappingURL=chat-X73GLI7I.js.map
@@ -284,7 +284,7 @@ function createResidentSessionStep(options) {
284
284
  started = true;
285
285
  }, "start");
286
286
  try {
287
- const { probeAgentSession, createAgentSession } = await import("./agent-73YAS5CP.js");
287
+ const { probeAgentSession, createAgentSession } = await import("./agent-MYJCIPY4.js");
288
288
  signal.throwIfAborted();
289
289
  const probe = await probeAgentSession();
290
290
  const configured = probe.preferences ?? defaultPrefs(probe.detected);
@@ -531,4 +531,4 @@ __name(createResidentSessionStep, "createResidentSessionStep");
531
531
  export {
532
532
  createResidentSessionStep
533
533
  };
534
- //# sourceMappingURL=chunk-5PBABKOO.js.map
534
+ //# sourceMappingURL=chunk-3QHNIWDT.js.map
@@ -19,7 +19,7 @@ import {
19
19
  resolveAutoDefault,
20
20
  reviewExemptionFor,
21
21
  toAgentEvent
22
- } from "./chunk-5TRCWV7J.js";
22
+ } from "./chunk-P7DEIENP.js";
23
23
  import {
24
24
  readStoredTurnGuards,
25
25
  resolveTurnGuards
@@ -1394,4 +1394,4 @@ export {
1394
1394
  palSessionEnvironment,
1395
1395
  createPalAgentSession
1396
1396
  };
1397
- //# sourceMappingURL=chunk-XU5B5C4Q.js.map
1397
+ //# sourceMappingURL=chunk-43DHPUWU.js.map
@@ -160,7 +160,7 @@ var acpCommand = lazyCommand(
160
160
  description: "Speak the agent-client protocol over this process\u2019s stdio",
161
161
  passThrough: true
162
162
  },
163
- async () => (await import("./acp-DBPT6HLS.js")).acpCommand
163
+ async () => (await import("./acp-EG4R7GRW.js")).acpCommand
164
164
  );
165
165
  var computerCommand = lazyCommand(
166
166
  {
@@ -194,7 +194,7 @@ var doctorCommand = lazyCommand(
194
194
  description: "Run health checks against the local Namzu environment",
195
195
  passThrough: true
196
196
  },
197
- async () => (await import("./doctor-NUXR6O3U.js")).doctorCommand
197
+ async () => (await import("./doctor-OL6W7JUG.js")).doctorCommand
198
198
  );
199
199
  var execCommand = lazyCommand(
200
200
  {
@@ -203,7 +203,7 @@ var execCommand = lazyCommand(
203
203
  description: "Run a single prompt headlessly: print the reply, or stream events with --json",
204
204
  passThrough: true
205
205
  },
206
- async () => (await import("./exec-7NV7EEM3.js")).execCommand
206
+ async () => (await import("./exec-EWDNB4SA.js")).execCommand
207
207
  );
208
208
  var residentCommand = lazyCommand(
209
209
  {
@@ -211,7 +211,7 @@ var residentCommand = lazyCommand(
211
211
  description: "Deprecated: persistent resident work, removed in the next major release (namzu learn stays)",
212
212
  passThrough: true
213
213
  },
214
- async () => (await import("./resident-CMZVKVY7.js")).residentCommand
214
+ async () => (await import("./resident-RZBZHKII.js")).residentCommand
215
215
  );
216
216
  var learnCommand = lazyCommand(
217
217
  {
@@ -219,7 +219,7 @@ var learnCommand = lazyCommand(
219
219
  description: "Learn from what conversations kept, now; list or undo what was learned",
220
220
  passThrough: true
221
221
  },
222
- async () => (await import("./learn-KKRGJ7OU.js")).learnCommand
222
+ async () => (await import("./learn-IABAEUDX.js")).learnCommand
223
223
  );
224
224
  var learningCommand = lazyCommand(
225
225
  {
@@ -227,7 +227,7 @@ var learningCommand = lazyCommand(
227
227
  description: "Inspect learning experiments and the observations they start from",
228
228
  passThrough: true
229
229
  },
230
- async () => (await import("./learn-KKRGJ7OU.js")).learningCommand
230
+ async () => (await import("./learn-IABAEUDX.js")).learningCommand
231
231
  );
232
232
  var loginCommand = lazyCommand(
233
233
  {
@@ -255,7 +255,7 @@ var drainCommand = lazyCommand(
255
255
  description: "Continue a turn another process left behind (one pass, then exit)",
256
256
  passThrough: true
257
257
  },
258
- async () => (await import("./drain-PSU2Z3LK.js")).drainCommand
258
+ async () => (await import("./drain-HPY22IFR.js")).drainCommand
259
259
  );
260
260
  var evalCommand = lazyCommand(
261
261
  { name: "eval", description: "Run eval suites and set an exit code", passThrough: true },
@@ -267,7 +267,7 @@ var historyCommand = lazyCommand(
267
267
  description: "Print a session's persisted messages as JSON (for host UIs)",
268
268
  passThrough: true
269
269
  },
270
- async () => (await import("./host-queries-2E47CZJG.js")).historyCommand
270
+ async () => (await import("./host-queries-MHM7JXK5.js")).historyCommand
271
271
  );
272
272
  var skillsCommand = lazyCommand(
273
273
  {
@@ -283,7 +283,7 @@ var skillsJSONCommand = lazyCommand(
283
283
  description: "Print discovered skills as JSON (for host UIs)",
284
284
  passThrough: true
285
285
  },
286
- async () => (await import("./host-queries-2E47CZJG.js")).skillsJSONCommand
286
+ async () => (await import("./host-queries-MHM7JXK5.js")).skillsJSONCommand
287
287
  );
288
288
  var providersJSONCommand = lazyCommand(
289
289
  {
@@ -291,7 +291,7 @@ var providersJSONCommand = lazyCommand(
291
291
  description: "Print providers + per-provider models as JSON (for host UIs)",
292
292
  passThrough: true
293
293
  },
294
- async () => (await import("./host-queries-2E47CZJG.js")).providersJSONCommand
294
+ async () => (await import("./host-queries-MHM7JXK5.js")).providersJSONCommand
295
295
  );
296
296
  var upgradeCommand = lazyCommand(
297
297
  {
@@ -299,7 +299,7 @@ var upgradeCommand = lazyCommand(
299
299
  description: "Update the active global Namzu installation",
300
300
  passThrough: true
301
301
  },
302
- async () => (await import("./upgrade-DPHHR3QO.js")).upgradeCommand
302
+ async () => (await import("./upgrade-WBBH6O5R.js")).upgradeCommand
303
303
  );
304
304
  var serveCommand = lazyCommand(
305
305
  {
@@ -322,7 +322,7 @@ var scheduleCommand = lazyCommand(
322
322
  description: "Scheduled jobs that run while namzu is closed, and the service that runs them",
323
323
  passThrough: true
324
324
  },
325
- async () => (await import("./schedule-3Q67DYJR.js")).scheduleCommand
325
+ async () => (await import("./schedule-CIA3VATB.js")).scheduleCommand
326
326
  );
327
327
  var browserCommand = lazyCommand(
328
328
  {
@@ -347,7 +347,7 @@ function createLazyPalCommand(resumeCommand) {
347
347
  description: "Create and operate persistent Pals with their own local virtual computers",
348
348
  passThrough: true
349
349
  },
350
- async () => (await import("./pal-7T6ETMJK.js")).createPalCommand(resumeCommand)
350
+ async () => (await import("./pal-MKSD6D7G.js")).createPalCommand(resumeCommand)
351
351
  );
352
352
  }
353
353
  __name(createLazyPalCommand, "createLazyPalCommand");
@@ -969,7 +969,7 @@ async function runCli(opts) {
969
969
  tuiCtx,
970
970
  (cwd) => buildTuiContext(resolveTrustedProjectContext(commandCtx, cwd), cwd)
971
971
  );
972
- const { launchTui } = await import("./tui-ZOZ7T2IJ.js");
972
+ const { launchTui } = await import("./tui-WTI3Z45D.js");
973
973
  const resumeCommand = launchOpts.outputSchema ? [
974
974
  ...opts.resumeCommand ?? ["namzu"],
975
975
  "--output-schema",
@@ -1111,4 +1111,4 @@ export {
1111
1111
  registerAll,
1112
1112
  runCli
1113
1113
  };
1114
- //# sourceMappingURL=chunk-PPKM44OM.js.map
1114
+ //# sourceMappingURL=chunk-4G3CFDPS.js.map
@@ -12,7 +12,7 @@ import {
12
12
  runFire,
13
13
  sessionFacts,
14
14
  sessionLeaseLive
15
- } from "./chunk-TMWWZT66.js";
15
+ } from "./chunk-HSNO7GHL.js";
16
16
  import {
17
17
  callsLine
18
18
  } from "./chunk-E5VLANCO.js";
@@ -645,4 +645,4 @@ export {
645
645
  pruneCommand,
646
646
  scheduleDiskUsage
647
647
  };
648
- //# sourceMappingURL=chunk-AJ6XXZJU.js.map
648
+ //# sourceMappingURL=chunk-6JICK2PM.js.map
@@ -2,7 +2,7 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  START_CHECK_FLAG
5
- } from "./chunk-XMXF2LN4.js";
5
+ } from "./chunk-LM3KO4HQ.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-76FLAFCG.js";
@@ -1186,4 +1186,4 @@ export {
1186
1186
  realRoot,
1187
1187
  resolveUpdatePolicy
1188
1188
  };
1189
- //# sourceMappingURL=chunk-3UZA4I32.js.map
1189
+ //# sourceMappingURL=chunk-6VC6HCJN.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-ANUVBWLR.js";
6
6
  import {
7
7
  palSessionEnvironment
8
- } from "./chunk-XU5B5C4Q.js";
8
+ } from "./chunk-43DHPUWU.js";
9
9
  import {
10
10
  palConversationBinding
11
11
  } from "./chunk-VGPWLUQF.js";
@@ -70,4 +70,4 @@ export {
70
70
  tuiPalEnvironment,
71
71
  tuiPalWorkEnvironment
72
72
  };
73
- //# sourceMappingURL=chunk-KKCNOBMK.js.map
73
+ //# sourceMappingURL=chunk-DAJQVD5D.js.map
@@ -192,7 +192,7 @@ async function runLearningCommand({ ctx, rawArgs }) {
192
192
  ctx.formatter.error({ message: misuse });
193
193
  return EXIT_USAGE;
194
194
  }
195
- const { learnNow, listLearned, undoLearned } = await import("./learn-builtin-JUJQAJOT.js");
195
+ const { learnNow, listLearned, undoLearned } = await import("./learn-builtin-IYZBPO3K.js");
196
196
  if (flags.list) return listLearned(ctx, target.cwd);
197
197
  if (flags.undo !== void 0)
198
198
  return undoLearned(ctx, target.cwd, typeof flags.undo === "string" ? flags.undo : void 0);
@@ -400,4 +400,4 @@ export {
400
400
  learningSummary,
401
401
  runLearningCommand
402
402
  };
403
- //# sourceMappingURL=chunk-T7STEYNM.js.map
403
+ //# sourceMappingURL=chunk-DSRA44I5.js.map
@@ -14,13 +14,13 @@ import {
14
14
  projectDigestChanges,
15
15
  scriptShellUnavailableReason,
16
16
  verifyScheduledScript
17
- } from "./chunk-PSBKJPMK.js";
17
+ } from "./chunk-KRFMMLXB.js";
18
18
  import {
19
19
  allowsWrites,
20
20
  compileJobPolicy,
21
21
  compileScriptCheckPolicy,
22
22
  withheldTools
23
- } from "./chunk-NUIGGV5J.js";
23
+ } from "./chunk-LXN2DGZE.js";
24
24
  import {
25
25
  resumeCommand
26
26
  } from "./chunk-GITVXMPC.js";
@@ -2592,7 +2592,7 @@ async function runFire(ctx, paths, args, deps = {}) {
2592
2592
  const daemonEnv = readDaemonEnv(paths.daemonEnv);
2593
2593
  warnings.push(...daemonEnv.warnings);
2594
2594
  const discoveryEnv = { ...deps.env ?? process.env, ...daemonEnv.values };
2595
- const agent = deps.agent ?? await import("./agent-73YAS5CP.js");
2595
+ const agent = deps.agent ?? await import("./agent-MYJCIPY4.js");
2596
2596
  const probe = await agent.probeAgentSession({ env: discoveryEnv });
2597
2597
  const detected = probe.detected.find((d) => d.entry.id === model.provider);
2598
2598
  if (!detected) {
@@ -2958,4 +2958,4 @@ export {
2958
2958
  parseFireArgs,
2959
2959
  runFire
2960
2960
  };
2961
- //# sourceMappingURL=chunk-TMWWZT66.js.map
2961
+ //# sourceMappingURL=chunk-HSNO7GHL.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-ZPR4IMRT.js";
6
6
  import {
7
7
  currentInstall
8
- } from "./chunk-EB74JXDV.js";
8
+ } from "./chunk-VLOL3NC2.js";
9
9
  import {
10
10
  readManifest
11
11
  } from "./chunk-AK2U3N2A.js";
@@ -17,7 +17,7 @@ import {
17
17
  readCheck,
18
18
  readLastResult,
19
19
  scopeOf
20
- } from "./chunk-3UZA4I32.js";
20
+ } from "./chunk-6VC6HCJN.js";
21
21
  import {
22
22
  describeNetwork
23
23
  } from "./chunk-JHDNGNQT.js";
@@ -1206,4 +1206,4 @@ export {
1206
1206
  buildDoctorRegistry,
1207
1207
  runLiveDoctor
1208
1208
  };
1209
- //# sourceMappingURL=chunk-53VZAZAI.js.map
1209
+ //# sourceMappingURL=chunk-ICIAFQVV.js.map
@@ -3,7 +3,7 @@ const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  buildDoctorRegistry,
5
5
  runDoctor
6
- } from "./chunk-53VZAZAI.js";
6
+ } from "./chunk-ICIAFQVV.js";
7
7
  import {
8
8
  EXIT_USAGE
9
9
  } from "./chunk-Y7B67G22.js";
@@ -253,4 +253,4 @@ export {
253
253
  runDoctorCommand,
254
254
  doctorCommand
255
255
  };
256
- //# sourceMappingURL=chunk-DZUB65K6.js.map
256
+ //# sourceMappingURL=chunk-JU5CYBAG.js.map
@@ -3,7 +3,7 @@ const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  tuiPalPreferences,
5
5
  tuiPalWorkEnvironment
6
- } from "./chunk-KKCNOBMK.js";
6
+ } from "./chunk-DAJQVD5D.js";
7
7
  import {
8
8
  closeCliPalRuntime,
9
9
  getCliPalRuntime
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  createAgentSession,
18
18
  probeAgentSession
19
- } from "./chunk-5TRCWV7J.js";
19
+ } from "./chunk-P7DEIENP.js";
20
20
  import {
21
21
  closeSessions,
22
22
  loadConversation,
@@ -158,4 +158,4 @@ __name(dispatchCliPalMessages, "dispatchCliPalMessages");
158
158
  export {
159
159
  dispatchCliPalMessages
160
160
  };
161
- //# sourceMappingURL=chunk-DKPQ65OR.js.map
161
+ //# sourceMappingURL=chunk-KAWEN22C.js.map
@@ -3,7 +3,7 @@ const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  allowsCommands,
5
5
  expandPermissions
6
- } from "./chunk-NUIGGV5J.js";
6
+ } from "./chunk-LXN2DGZE.js";
7
7
  import {
8
8
  JOB_NAME,
9
9
  jobFormatVersion,
@@ -825,4 +825,4 @@ export {
825
825
  previewLines,
826
826
  verifyScheduledScript
827
827
  };
828
- //# sourceMappingURL=chunk-PSBKJPMK.js.map
828
+ //# sourceMappingURL=chunk-KRFMMLXB.js.map
@@ -9,7 +9,7 @@ import { createRequire } from "node:module";
9
9
  var START_CHECK_FLAG = "--start-check";
10
10
  var productionDeps = {
11
11
  loadSession: /* @__PURE__ */ __name(async () => {
12
- await import("./tui-ZOZ7T2IJ.js");
12
+ await import("./tui-WTI3Z45D.js");
13
13
  await import("./cli-runtime-RV4V7WDI.js");
14
14
  }, "loadSession"),
15
15
  ptyInstalled: /* @__PURE__ */ __name(() => {
@@ -56,4 +56,4 @@ export {
56
56
  START_CHECK_FLAG,
57
57
  runStartCheck
58
58
  };
59
- //# sourceMappingURL=chunk-XMXF2LN4.js.map
59
+ //# sourceMappingURL=chunk-LM3KO4HQ.js.map
@@ -1451,13 +1451,26 @@ function mayReach(rule, tool) {
1451
1451
  }
1452
1452
  }
1453
1453
  __name(mayReach, "mayReach");
1454
- function withheldTools(set, policy) {
1454
+ function refusedByName(rules) {
1455
1455
  const out = /* @__PURE__ */ new Set();
1456
- policy.rules.forEach((rule, index) => {
1456
+ rules.forEach((rule, index) => {
1457
1457
  if (rule.type !== "deny_by_name") return;
1458
- const earlier = policy.rules.slice(0, index);
1458
+ const earlier = rules.slice(0, index);
1459
1459
  for (const tool of rule.toolNames) if (!earlier.some((r) => mayReach(r, tool))) out.add(tool);
1460
1460
  });
1461
+ return [...out];
1462
+ }
1463
+ __name(refusedByName, "refusedByName");
1464
+ function refusedByLayers(layers) {
1465
+ return [
1466
+ ...new Set(
1467
+ layers.flatMap((layer) => layer ? refusedByName(compilePermissions(layer).rules) : [])
1468
+ )
1469
+ ];
1470
+ }
1471
+ __name(refusedByLayers, "refusedByLayers");
1472
+ function withheldTools(set, policy) {
1473
+ const out = new Set(refusedByName(policy.rules));
1461
1474
  if (set.unmatched === "deny") {
1462
1475
  for (const tool of STRICT_UNREACHABLE)
1463
1476
  if (!policy.rules.some((r) => mayReach(r, tool))) out.add(tool);
@@ -1474,6 +1487,7 @@ export {
1474
1487
  allowsWrites,
1475
1488
  compileJobPolicy,
1476
1489
  compileScriptCheckPolicy,
1490
+ refusedByLayers,
1477
1491
  withheldTools
1478
1492
  };
1479
- //# sourceMappingURL=chunk-NUIGGV5J.js.map
1493
+ //# sourceMappingURL=chunk-LXN2DGZE.js.map