@namzu/sdk 52.6.3 → 53.0.0
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/CHANGELOG.md +52 -26
- package/dist/authorization/protected-paths.d.ts +2 -4
- package/dist/authorization/protected-paths.d.ts.map +1 -1
- package/dist/authorization/protected-paths.js +2 -4
- package/dist/authorization/protected-paths.js.map +1 -1
- package/dist/authorization/readonly-commands.d.ts +4 -4
- package/dist/authorization/readonly-commands.js +7 -7
- package/dist/authorization/readonly-commands.js.map +1 -1
- package/dist/authorization/readonly-flags.d.ts +1 -2
- package/dist/authorization/readonly-flags.d.ts.map +1 -1
- package/dist/authorization/readonly-flags.js +1 -2
- package/dist/authorization/readonly-flags.js.map +1 -1
- package/dist/authorization/removal.d.ts +2 -3
- package/dist/authorization/removal.d.ts.map +1 -1
- package/dist/authorization/removal.js +3 -4
- package/dist/authorization/removal.js.map +1 -1
- package/dist/authorization/shell-paths.d.ts +5 -5
- package/dist/authorization/shell-paths.js +6 -6
- package/dist/authorization/shell-paths.js.map +1 -1
- package/dist/bridge/a2a/mapper.d.ts.map +1 -1
- package/dist/bridge/a2a/mapper.js +1 -0
- package/dist/bridge/a2a/mapper.js.map +1 -1
- package/dist/bridge/sse/mapper.d.ts.map +1 -1
- package/dist/bridge/sse/mapper.js +9 -0
- package/dist/bridge/sse/mapper.js.map +1 -1
- package/dist/compaction/context-window.d.ts +1 -1
- package/dist/compaction/context-window.js +1 -1
- package/dist/compaction/verifier.js +2 -2
- package/dist/compaction/verifier.js.map +1 -1
- package/dist/connector/web/page.d.ts +2 -3
- package/dist/connector/web/page.d.ts.map +1 -1
- package/dist/connector/web/page.js +2 -3
- package/dist/connector/web/page.js.map +1 -1
- package/dist/contracts/session/api.d.ts +1 -1
- package/dist/contracts/session/api.d.ts.map +1 -1
- package/dist/execution/workflow/prelude.d.ts.map +1 -1
- package/dist/execution/workflow/prelude.js +37 -3
- package/dist/execution/workflow/prelude.js.map +1 -1
- package/dist/execution/workflow/runtime.d.ts +2 -0
- package/dist/execution/workflow/runtime.d.ts.map +1 -1
- package/dist/execution/workflow/runtime.js +8 -3
- package/dist/execution/workflow/runtime.js.map +1 -1
- package/dist/execution/workflow/types.d.ts +3 -3
- package/dist/execution/workflow/types.d.ts.map +1 -1
- package/dist/manager/agent/lifecycle.d.ts +1 -1
- package/dist/manager/agent/lifecycle.js +1 -1
- package/dist/plugin/shell-hook.d.ts +1 -1
- package/dist/plugin/shell-hook.js +4 -4
- package/dist/plugin/shell-hook.js.map +1 -1
- package/dist/provider/errors.js +2 -2
- package/dist/provider/errors.js.map +1 -1
- package/dist/public-runtime.d.ts +1 -0
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js.map +1 -1
- package/dist/runtime/jobs/monitor-stream.d.ts +1 -2
- package/dist/runtime/jobs/monitor-stream.d.ts.map +1 -1
- package/dist/runtime/jobs/monitor-stream.js +1 -2
- package/dist/runtime/jobs/monitor-stream.js.map +1 -1
- package/dist/runtime/jobs/websocket-source.d.ts +1 -1
- package/dist/runtime/jobs/websocket-source.d.ts.map +1 -1
- package/dist/runtime/jobs/websocket-source.js +1 -1
- package/dist/runtime/jobs/websocket-source.js.map +1 -1
- package/dist/runtime/query/iteration/index.js +3 -3
- package/dist/runtime/query/iteration/index.js.map +1 -1
- package/dist/runtime/query/iteration/outstanding-work.d.ts.map +1 -1
- package/dist/runtime/query/iteration/outstanding-work.js +10 -2
- package/dist/runtime/query/iteration/outstanding-work.js.map +1 -1
- package/dist/runtime/query/iteration/phases/compaction-breaker.d.ts +2 -2
- package/dist/runtime/query/iteration/phases/compaction-breaker.js +2 -2
- package/dist/runtime/query/iteration/phases/compaction.d.ts +3 -5
- package/dist/runtime/query/iteration/phases/compaction.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/compaction.js +16 -8
- package/dist/runtime/query/iteration/phases/compaction.js.map +1 -1
- package/dist/runtime/query/iteration/request-repair.d.ts +1 -1
- package/dist/runtime/query/iteration/request-repair.js +2 -2
- package/dist/runtime/query/iteration/request-repair.js.map +1 -1
- package/dist/runtime/query/path-escalation.d.ts.map +1 -1
- package/dist/runtime/query/path-escalation.js +2 -3
- package/dist/runtime/query/path-escalation.js.map +1 -1
- package/dist/scheduler/completion-inbox.d.ts +21 -1
- package/dist/scheduler/completion-inbox.d.ts.map +1 -1
- package/dist/scheduler/completion-inbox.js +20 -1
- package/dist/scheduler/completion-inbox.js.map +1 -1
- package/dist/session/workspace/driver.d.ts +1 -1
- package/dist/store/checkpoint/memory.d.ts +1 -1
- package/dist/store/checkpoint/memory.js +1 -1
- package/dist/store/memory/markdown-format.d.ts +1 -1
- package/dist/store/memory/markdown-format.js +1 -1
- package/dist/store/memory/markdown.js +1 -1
- package/dist/tools/admit-facts.d.ts.map +1 -1
- package/dist/tools/admit-facts.js +42 -0
- package/dist/tools/admit-facts.js.map +1 -1
- package/dist/tools/builtins/bash.d.ts.map +1 -1
- package/dist/tools/builtins/bash.js +1 -2
- package/dist/tools/builtins/bash.js.map +1 -1
- package/dist/tools/builtins/edit-match.d.ts +5 -6
- package/dist/tools/builtins/edit-match.d.ts.map +1 -1
- package/dist/tools/builtins/edit-match.js +5 -6
- package/dist/tools/builtins/edit-match.js.map +1 -1
- package/dist/tools/builtins/edit.d.ts.map +1 -1
- package/dist/tools/builtins/edit.js +27 -12
- package/dist/tools/builtins/edit.js.map +1 -1
- package/dist/tools/builtins/file-write-result.d.ts.map +1 -1
- package/dist/tools/builtins/file-write-result.js +24 -31
- package/dist/tools/builtins/file-write-result.js.map +1 -1
- package/dist/tools/builtins/line-diff.d.ts +23 -0
- package/dist/tools/builtins/line-diff.d.ts.map +1 -0
- package/dist/tools/builtins/line-diff.js +112 -0
- package/dist/tools/builtins/line-diff.js.map +1 -0
- package/dist/turn/reporter.d.ts.map +1 -1
- package/dist/turn/reporter.js +1 -0
- package/dist/turn/reporter.js.map +1 -1
- package/dist/types/provider/errors.js +1 -1
- package/dist/types/provider/errors.js.map +1 -1
- package/dist/types/session/events.d.ts +27 -2
- package/dist/types/session/events.d.ts.map +1 -1
- package/dist/types/session/events.js +4 -0
- package/dist/types/session/events.js.map +1 -1
- package/dist/types/session/records.d.ts +2 -2
- package/dist/types/session/records.d.ts.map +1 -1
- package/dist/types/session/records.js +3 -2
- package/dist/types/session/records.js.map +1 -1
- package/dist/types/tool/index.d.ts +1 -1
- package/dist/types/tool/index.d.ts.map +1 -1
- package/dist/types/tool/presentation.d.ts +22 -0
- package/dist/types/tool/presentation.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/authorization/protected-paths.ts +2 -4
- package/src/authorization/readonly-commands.ts +7 -7
- package/src/authorization/readonly-flags.ts +1 -2
- package/src/authorization/removal.ts +3 -4
- package/src/authorization/shell-paths.ts +6 -6
- package/src/bridge/a2a/mapper.ts +1 -0
- package/src/bridge/sse/mapper.ts +9 -0
- package/src/compaction/context-window.ts +1 -1
- package/src/compaction/verifier.ts +2 -2
- package/src/connector/web/page.ts +2 -3
- package/src/contracts/session/api.ts +1 -0
- package/src/execution/workflow/prelude.ts +37 -3
- package/src/execution/workflow/runtime.ts +9 -3
- package/src/execution/workflow/types.ts +3 -3
- package/src/manager/agent/lifecycle.ts +1 -1
- package/src/plugin/shell-hook.ts +4 -4
- package/src/provider/errors.ts +2 -2
- package/src/public-runtime.ts +1 -0
- package/src/runtime/jobs/monitor-stream.ts +1 -2
- package/src/runtime/jobs/websocket-source.ts +1 -1
- package/src/runtime/query/iteration/index.ts +3 -3
- package/src/runtime/query/iteration/outstanding-work.ts +9 -2
- package/src/runtime/query/iteration/phases/compaction-breaker.ts +2 -2
- package/src/runtime/query/iteration/phases/compaction.ts +17 -8
- package/src/runtime/query/iteration/request-repair.ts +3 -3
- package/src/runtime/query/path-escalation.ts +2 -3
- package/src/scheduler/completion-inbox.ts +31 -1
- package/src/session/workspace/driver.ts +1 -1
- package/src/store/checkpoint/memory.ts +1 -1
- package/src/store/memory/markdown-format.ts +1 -1
- package/src/store/memory/markdown.ts +1 -1
- package/src/tools/admit-facts.ts +46 -1
- package/src/tools/builtins/bash.ts +1 -2
- package/src/tools/builtins/edit-match.ts +5 -6
- package/src/tools/builtins/edit.ts +28 -12
- package/src/tools/builtins/file-write-result.ts +25 -34
- package/src/tools/builtins/line-diff.ts +122 -0
- package/src/turn/reporter.ts +1 -0
- package/src/types/provider/errors.ts +1 -1
- package/src/types/session/events.ts +33 -2
- package/src/types/session/records.ts +3 -2
- package/src/types/tool/index.ts +1 -0
- package/src/types/tool/presentation.ts +23 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 53.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 7608640: Workflow scripts: `pipeline()` stages now receive `(prevResult, originalItem, index)`; they used to receive `(value, index, item)`. A script that reads its 2nd or 3rd parameter must swap them (`(v, i, item) => ...` becomes `(v, item, i) => ...`); a stage that only uses the first parameter is unaffected. The first stage now gets the item as both `prevResult` and `originalItem`.
|
|
8
|
+
|
|
9
|
+
Also changed, and worth checking if you set limits: an agent with no `label` is titled with the first 60 characters of its prompt (whitespace squeezed) instead of `Agent N`; the default `maxConcurrency` is `min(16, CPUs - 2)`, at least 2 (was `min(8, CPUs - 2)`, at least 1) and the default `maxAgents` is 1000 (was 200), so pass the old values in `limits` to keep them; `budget` is now `{ total, spent(), remaining() }` and `agent()` throws a `WorkflowBudgetExceededError` once `spent()` reaches `limits.tokenBudget` (it used to resolve `null`), so a script that loops on `agent()` should guard on `budget.total` and catch the error. `budget.tokensUsed` and `budget.tokenLimit` stay as deprecated aliases.
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 7608640: `CompletionInbox` accepts `{ holdsTurnOpen: false }` as a second constructor argument (and the new `CompletionInboxOptions` type is exported). With it, a turn that is about to end no longer waits at its settle point for the delegated tasks it launched: it ends at the model's answer, leaves those tasks running, and does not list them as abandoned (`abandonedTaskIds` stays absent). The host then owns their completion. Nothing changes for existing callers: the default is `true`, the previous behaviour. Use it when the host keeps background tasks alive itself and wakes the model when they end, as the terminal now does.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 7608640: Display text only; nothing to change when you upgrade. If a script, test or screen-scrape reads the terminal's wording, these lines changed: composer tag rows no longer start with a `✦`/`✧` mark and are sentence case (`Hypermode · this reply: …`); `Press ctrl+x ctrl+k again to stop background agents` is a footer hint, not a transcript row, and the stop leaves `All background agents stopped`; an agent stopped by Esc or Ctrl+C now reads `was stopped by user` like one stopped from the rail; tool results hang from ` ⎿ ` (two spaces after the glyph) everywhere; `/workflows` rows read `finished` (not `completed`) with the duration first; `/compact` echoes `› /compact` and prints its result below the turns that stay. `@namzu/sdk` workflow scripts log `Step N stopped: <reason>` from `parallel()` (was `parallel item N failed: …`) and `Item N stopped at step M: <reason>` from `pipeline()` (was `pipeline item N stopped at stage M: …`); a script that matches on those log lines must change the match.
|
|
18
|
+
|
|
19
|
+
## 52.7.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- eb92ef4: Adds a `compaction_started` session event, emitted when an automatic compaction pass begins (fields: `iteration`, `reason` of `threshold` or `overflow`, `tokensBefore`, `contextWindowTokens`). A host can show a live "compacting" line instead of staying silent while the summary is written; it is always followed by `compaction_completed`, `compaction_failed` or `compaction_tool_results_cleared`. It is a new member of the `SessionEvent` union, so a consumer with an exhaustive `switch` over event types must add a case (or a default). The SSE bridge sends it as `compaction.started`; the A2A bridge does not forward it.
|
|
24
|
+
- eb92ef4: The line counts `edit` and `write` report are now the counts of a real line diff of the whole file, and `edit` reports them at all. Before, `write` counted everything between the first and last changed line (two lines changed far apart in a 200-line file read `+196 -196`) and a change to only the final newline counted as nothing; `edit` carried no counts, so a host rebuilt them from the call and got a batch, an insertion and `replace_all` wrong.
|
|
25
|
+
|
|
26
|
+
New: `ToolFacts` of kind `edit` gains `added`, `removed`, `hunks` and `hunksTruncated`, and kind `write` gains `hunks` and `hunksTruncated`, with the new `ToolDiffHunk` type (three lines of context, rows marked by a space, `+` or `-`). `admitToolFacts` reads them back from a saved conversation. Receipts for the model now carry the same counts: `Edited a: 4 replacement(s) (+4 -4)`. `data.fileChange.preview` of `write` now holds the old and new side of the hunks, context included, instead of only the changed lines. `@namzu/sdk` now depends on `diff` 9.0.0.
|
|
27
|
+
|
|
28
|
+
Nothing is removed and no existing field changes meaning except the counts becoming correct; a host that ignored the new fields keeps working.
|
|
29
|
+
|
|
30
|
+
- eb92ef4: Workflow scripts: `parallel()` and `pipeline()` no longer reject. A thunk that throws now resolves to `null` in its place, and a pipeline stage that throws drops that item to `null` (the other items go on); the reason is written through `log()`. Before, one throwing thunk failed the whole run with the siblings' work lost. A script that relied on the old rejection to stop the run must check for `null` itself (`.filter(Boolean)` or an explicit test). Nothing else in the public API changes.
|
|
31
|
+
|
|
3
32
|
## 52.6.3
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -23,7 +52,7 @@
|
|
|
23
52
|
|
|
24
53
|
### Minor Changes
|
|
25
54
|
|
|
26
|
-
- c230860: Make `edit` recover a few `old_string` near-misses instead of failing,
|
|
55
|
+
- c230860: Make `edit` recover a few `old_string` near-misses instead of failing, in a fixed order: a straight quote against the file's curly one (or the reverse), and a `\uXXXX` escape where the file holds the character (or a character where the file holds the escape). The matched span is a real substring of the file, so the uniqueness rule still applies and the same transformation is carried onto `new_string`. A whitespace or indentation difference is still not recovered — the error continues to tell the model to match those exactly. A deletion (empty `new_string`) now takes the matched line's trailing newline with it, so removing a whole line no longer leaves a blank one behind. The CRLF/LF reconciliation this kernel already did is unchanged.
|
|
27
56
|
|
|
28
57
|
## 52.5.0
|
|
29
58
|
|
|
@@ -106,7 +135,7 @@
|
|
|
106
135
|
### Major Changes
|
|
107
136
|
|
|
108
137
|
- 5258c05: The `bash` tool no longer kills a foreground command that outruns its `timeout` when the turn has a background job registry (the CLI session, and any host that passes `QueryParams.backgroundJobs`). Before, the command was stopped and the call failed with `timedOut`. Now the same process is moved to a background job: the call succeeds, returns the output so far and a line naming the job, and the command keeps running until it ends or is stopped. The model awaits it with `wait_for_job`, reads it with `job` and stops it with `job` action `kill`, and is told when it ends. A host that relied on the timeout to stop a runaway command must now set `NAMZU_DISABLE_BACKGROUND_TASKS=1` (also refuses `run_in_background`) to keep the old kill, or stop the job itself. Unchanged: no registry, a sandboxed turn, a sandbox escape, a command that only runs `sleep`, and an owner at its job limit all still kill at the timeout. New and optional: `BackgroundJobRegistryRef.adopt`, `StartJobParams.initialOutput` and `hostOutput`, and the `onTimeout` option and `backgroundedJobId` result of `execHostShell`.
|
|
109
|
-
- 5258c05: The default point at which older history is summarised changes. `compactionConfig.triggerThreshold` no longer defaults to `0.7`; it is optional, and when absent the kernel derives the trigger as
|
|
138
|
+
- 5258c05: The default point at which older history is summarised changes. `compactionConfig.triggerThreshold` no longer defaults to `0.7`; it is optional, and when absent the kernel derives the trigger as follows: the window, less room for the reply (the model's output cap, at most 20,000 tokens), less a 13,000-token buffer. That is 167,000 tokens (83.5%) of a 200,000-token window and 967,000 (96.7%) of a 1,000,000-token one, and never less than half the window. A host with long contexts compacts later than before, so a conversation keeps more of its history and runs closer to the provider's limit.
|
|
110
139
|
|
|
111
140
|
The type of `triggerThreshold` is now `number | undefined` (it was `number` after parsing), so code that reads it from a parsed `CompactionConfig` must handle `undefined`; `resolveTriggerThreshold(configured, windowTokens, maxOutputTokens?)` is exported and returns the fraction actually used.
|
|
112
141
|
|
|
@@ -114,7 +143,7 @@
|
|
|
114
143
|
|
|
115
144
|
The CLI no longer sets 0.7 and takes the derived trigger; its footer meter and `/context details` read the same function.
|
|
116
145
|
|
|
117
|
-
- 5258c05: The file tools
|
|
146
|
+
- 5258c05: The file tools have new rules, and four defaults change.
|
|
118
147
|
|
|
119
148
|
**What breaks, and what to do:**
|
|
120
149
|
|
|
@@ -132,14 +161,14 @@
|
|
|
132
161
|
|
|
133
162
|
Breaking, in the order a hook author meets them:
|
|
134
163
|
|
|
135
|
-
- **Hooks of one event now run in parallel.** They used to run one after another (`post_*` in reverse registration order), each seeing the previous hook's `modify`, and a refusal stopped the chain. Now all of an event's hooks start together on the same original context and nothing short-circuits. Their answers combine
|
|
164
|
+
- **Hooks of one event now run in parallel.** They used to run one after another (`post_*` in reverse registration order), each seeing the previous hook's `modify`, and a refusal stopped the chain. Now all of an event's hooks start together on the same original context and nothing short-circuits. Their answers combine by one rule: a refusal beats `ask`, which beats `allow`; of several rewrites (`modify`, `replace`) the last in priority/registration order wins and no hook sees another's rewrite; every `context` is kept and every `halt` honoured. A hook that relied on running after another (a formatter before a linter) must be one script or one hook. Plugins that registered with `priority` still get the first refusal quoted in priority order, but priority no longer sets who starts first.
|
|
136
165
|
- **The default hook deadline is ten minutes, not 30 s** (`DEFAULT_SHELL_HOOK_TIMEOUT_MS`, and `HOOK_TIMEOUT_MS` for the lifecycle manager's own per-hook limit, which was 5 s). To keep the old limit set `timeoutMs: 30000` on the hook (shell hooks), or `hookTimeoutMs` on the plugin manager or in the CLI's `plugins` config.
|
|
137
166
|
- **Exit code `2` now acts** where it used to be logged and ignored: on `turn_end` and `subagent_stop` it keeps the model working, with stderr as its next message (the turn's iteration limit still ends a hook that never relents); on `pre_compact` it cancels a compaction the context threshold asked for (never one the provider forced); on `post_tool_use` the stderr is shown to the model beside that call's result. A hook that exits `2` on these events by habit and meant "ignore" should exit `1`, which is still logged and ignored.
|
|
138
167
|
- **JSON on stdout is now read.** A hook that exits `0` and prints a JSON object starting with `{` is taken as an answer. A hook that printed such text on purpose and wants it left alone should not start its output with `{`.
|
|
139
168
|
|
|
140
169
|
`@namzu/cli` is major for the same reasons: its `hooks:` config key is where these behaviours are reached, and a configured hook behaves differently for the same input.
|
|
141
170
|
|
|
142
|
-
- 5258c05: `web_fetch`
|
|
171
|
+
- 5258c05: `web_fetch` changes its input and its default output.
|
|
143
172
|
|
|
144
173
|
What breaks, and what to do:
|
|
145
174
|
|
|
@@ -156,7 +185,7 @@
|
|
|
156
185
|
|
|
157
186
|
- 5258c05: `ask_user_question` can ask up to four related questions in one call and returns one answer per question. The model-facing input is now `{ questions: [...] }`; the older single-question input (`question`, `options`, … at the top level) is still accepted as a batch of one, so nothing that sends it needs to change. A host that does not know about batches keeps working: `UserQuestionData` gains an optional `questions` list whose first entry its existing fields mirror, so it shows and answers the first question and the rest read as not answered. A host that does know sends `answer_question.answers` with one `{ questionId, selectedOptionIds, freeText? }` per question it has an answer for (a missing entry means not answered); the question ids are `<tool_use_id>#<index>`. An option can carry an optional `preview` for a host to show beside the list. Question texts and headers must be unique within one call.
|
|
158
187
|
- 5258c05: A host can now feed a turn hidden reminders, and give plan mode one writable file. Everything is opt-in; a host that passes none of it sees no change. `QueryParams.reminders` takes a `ReminderSource`, which the kernel calls before every model request of the turn (except the closing one a limit forces) with the session, turn, iteration and the conversation so far; each text it returns is appended as a user-role runtime message of the new kind `'reminder'` (`isReminderMessage` recognises it), kept in the durable history and never counted as operator input, so a source can read the history to set its own cadence. `ReviewPolicyOptions.planModeWrite` names the one call `plan` mode lets through (outside the roots, overwriting, and without a question); left out, plan mode refuses every change as before, and the option does nothing in any other mode. `SessionPaths.plans()` and `planFile()` give a session's plan directory and its `plans/plan.md`. `RUNTIME_CONTEXT_MESSAGE_KINDS` gains `'reminder'`, so a `switch` over `RuntimeContextMessageKind` with no default branch now needs a case for it.
|
|
159
|
-
- 5258c05: Context limits
|
|
188
|
+
- 5258c05: Context limits are derived from the model's window, and every new rule that stops something is opt-in in the SDK. Nothing a host gets without asking changes in this entry.
|
|
160
189
|
|
|
161
190
|
SDK, all additive:
|
|
162
191
|
|
|
@@ -171,7 +200,7 @@
|
|
|
171
200
|
- `/compact <text>` steers the summary.
|
|
172
201
|
- The CLI turns on `maxOutputContinuations: 3` and `circuitBreaker`, so a looping model or a window that refills stops the turn with a one-line explanation.
|
|
173
202
|
|
|
174
|
-
- 5258c05: Read-only shell commands no longer ask. `ls`, `cat`, `head`, `wc`, `git status`, `git diff`, `git log`, `git show` and the rest of the
|
|
203
|
+
- 5258c05: Read-only shell commands no longer ask. `ls`, `cat`, `head`, `wc`, `git status`, `git diff`, `git log`, `git show` and the rest of the vetted list run without a prompt in `prompt` and `accept-edits`, are allowed in `plan`, and run beside other read-only tool calls instead of one at a time. Anything the list does not vouch for still asks: a write redirection, a `$variable`, a substitution, a subshell, a here-document, a glob on a command that is not a plain reader, `cd` next to `git`, and any git flag outside the vetted table (`--output`, `-c`, `--exec-path`, `--config-env`, `fetch`, `commit`, branch or tag creation).
|
|
175
204
|
|
|
176
205
|
What changes for you: a turn that used to stop at `git status` now runs it. A read-only command that reads outside the working directory and added directories is still asked about, and so are protected paths and catastrophic removals. If you embed the SDK and rely on `bash` never being exempt from review, a host that wants the old behaviour passes its own `isReviewExempt` that returns false for `bash`.
|
|
177
206
|
|
|
@@ -183,7 +212,7 @@
|
|
|
183
212
|
|
|
184
213
|
`namzu.config.local.json` is added to the SDK's protected paths, so a model write to it is asked about in every mode.
|
|
185
214
|
|
|
186
|
-
- 5258c05: Three safety floors
|
|
215
|
+
- 5258c05: Three safety floors now stop a turn in `auto` (`--yolo`) and ask, where it used to run silently. No exported name, option or default value changes; `ToolCallEscalation` gains two optional fields (`protectedPaths`, `dangerousRemoval`).
|
|
187
216
|
|
|
188
217
|
What changes for you:
|
|
189
218
|
|
|
@@ -205,7 +234,7 @@
|
|
|
205
234
|
|
|
206
235
|
### Minor Changes
|
|
207
236
|
|
|
208
|
-
- 9e63191: The terminal now retries a model call that fails for a reason that may pass (a dropped connection, a 5xx, an overloaded server, a rate limit with a short wait)
|
|
237
|
+
- 9e63191: The terminal now retries a model call that fails for a reason that may pass (a dropped connection, a 5xx, an overloaded server, a rate limit with a short wait) instead of stopping after three tries. It tries ten times, waits from half a second doubling to thirty-two seconds with a little added on top, treats a `Retry-After` as a minimum, gives up on a wait longer than a minute (the reply then pauses and Enter tries again), and believes a provider that says `x-should-retry: false`. A reply cut off by a dropped connection starts over and the half-drawn text is taken back. While it waits, the Working row reads `Retrying in 5s · attempt 2/10` and counts down; Esc interrupts it. Nothing needs changing in your setup.
|
|
209
238
|
|
|
210
239
|
SDK: `ProviderRetryConfig` gains optional `jitter` (`'full'` or `'proportional'`), `retryAfter` (`'exact'` or `'floor'`) and `retryMidStream`, `ProviderRetryNotice` and the `provider_retry` event gain an optional `restart`, `ProviderRequestError` gains `shouldRetry` (only `false` is acted on), `providerHttpError` takes `shouldRetry`, and `providerVendorError` reads `x-should-retry`. No default changed: `maxRetries` is still 3, jitter still full, `Retry-After` still exact, a stream that failed after output is still not retried unless a host sets `retryMidStream` (a host that does must drop what the failed attempt showed when it sees `restart`; the turn drops its own copy). Hosts that want the terminal's numbers pass them in `query({ retry })`.
|
|
211
240
|
|
|
@@ -2327,7 +2356,7 @@ worktrees}/`. `SessionPaths`, `ensureProject`, `slugForCwd` and `tempRoot`
|
|
|
2327
2356
|
|
|
2328
2357
|
- 449642e: Add `/orchestrate`, a session mode layered above reasoning effort rather than inside it.
|
|
2329
2358
|
|
|
2330
|
-
`@namzu/cli`: `/orchestrate [on|off]` (no argument toggles) turns the mode on or off for the current session. It is deliberately not a `ReasoningEffort` value — typing `/effort orchestrate` still reports "unavailable for this model", exactly as
|
|
2359
|
+
`@namzu/cli`: `/orchestrate [on|off]` (no argument toggles) turns the mode on or off for the current session. It is deliberately not a `ReasoningEffort` value — typing `/effort orchestrate` still reports "unavailable for this model", exactly as the mode's earlier name did. When the `/effort` picker can open, the mode also appears there as its own row below a rule, apart from the model's own levels. Turning the mode on pins reasoning effort to the model's highest published level and strengthens delegation guidance for future turns toward delegating by default; when the model publishes no exact effort menu the mode still turns on and still strengthens guidance, but pins nothing and says so. Like effort, the mode is in-memory and per-session — nothing is written to preferences. A model switch still resets an explicit effort override to the new model's default, but while the mode is on it re-pins to the new model's highest level instead. The status line shows the level and the mode together (`effort high · orchestrate`), or the mode alone when nothing is pinned — never a fabricated effort value.
|
|
2331
2360
|
|
|
2332
2361
|
`@namzu/sdk`: `codingAgentDoctrineContribution` gains an optional `orchestrate` field on `CodingAgentDoctrineOptions`, and a new exported `CODING_AGENT_ORCHESTRATE_DOCTRINE` constant. Passing `orchestrate: true` (and leaving `delegation` at its default) appends that text after the existing delegation doctrine. Leaving the new field unset — the only behavior any existing caller can observe — renders byte-identical output to before this field existed. No default changed and no export was renamed or removed, so this is additive for every current consumer.
|
|
2333
2362
|
|
|
@@ -8061,7 +8090,7 @@ progress in <a local notes directory>/...` — a runtime error
|
|
|
8061
8090
|
returns 404, to explain the doctor's protocol/runtime split. The split is now
|
|
8062
8091
|
explained in the sentence itself.
|
|
8063
8092
|
- `@namzu/sdk` source comments cited design documents by path. They cite the
|
|
8064
|
-
session by name instead, which is
|
|
8093
|
+
session by name instead, which is all such a citation was ever worth.
|
|
8065
8094
|
|
|
8066
8095
|
No API, type, or behaviour change. The `@namzu/sandbox` message text is the
|
|
8067
8096
|
only runtime string affected, and nothing asserts on it.
|
|
@@ -11397,7 +11426,7 @@ z.ZodArray`) will take a different branch. If you relied on the permissive
|
|
|
11397
11426
|
|
|
11398
11427
|
Comments across the kernel explained namzu's design by naming another
|
|
11399
11428
|
product: "mirrors X's container architecture", "reference: X's
|
|
11400
|
-
`normalizePathForSandbox()`", "which is what Y and Z both do", "
|
|
11429
|
+
`normalizePathForSandbox()`", "which is what Y and Z both do", "another tool
|
|
11401
11430
|
uses 2000 for the same reason". Behaviour was correct throughout — this is
|
|
11402
11431
|
about what the code says it is. A kernel that explains itself by citation
|
|
11403
11432
|
reads as a reimplementation of something else, and namzu is not one.
|
|
@@ -13136,7 +13165,7 @@ z.ZodArray`) will take a different branch. If you relied on the permissive
|
|
|
13136
13165
|
That is the failure the rule exists for. A design explained by reference to
|
|
13137
13166
|
somebody else's product has handed over its rationale: the next reader
|
|
13138
13167
|
reaches for that product's model instead of asking what namzu is trying to
|
|
13139
|
-
achieve, and when
|
|
13168
|
+
achieve, and when that product changes the comment becomes a claim nobody
|
|
13140
13169
|
can check. Each one now states the same decision on its own terms — what it
|
|
13141
13170
|
accomplishes, and what breaks without it.
|
|
13142
13171
|
|
|
@@ -13889,10 +13918,10 @@ ProviderCapabilities` (with a new `supportsVision?` flag on the type)
|
|
|
13889
13918
|
host side before calling `Agent`, and updating it on the host
|
|
13890
13919
|
side once the tool result is in hand.
|
|
13891
13920
|
|
|
13892
|
-
- ea21863: feat(sdk)!: rename builtin tools to
|
|
13921
|
+
- ea21863: feat(sdk)!: rename builtin tools to canonical names
|
|
13893
13922
|
|
|
13894
|
-
**Breaking change.** Builtin tool names now
|
|
13895
|
-
|
|
13923
|
+
**Breaking change.** Builtin tool names now use the canonical
|
|
13924
|
+
names listed below:
|
|
13896
13925
|
|
|
13897
13926
|
- `bash` → `Bash`
|
|
13898
13927
|
- `edit` → `Edit`
|
|
@@ -13902,16 +13931,14 @@ ProviderCapabilities` (with a new `supportsVision?` flag on the type)
|
|
|
13902
13931
|
- `write_file` → `Write`
|
|
13903
13932
|
|
|
13904
13933
|
`LsTool` and `SearchToolsTool` are still exported but **removed from the
|
|
13905
|
-
default `getBuiltinTools()` set**.
|
|
13934
|
+
default `getBuiltinTools()` set**. The canonical set
|
|
13906
13935
|
does not include `LS` (directory listing is `Bash` + `Glob`) and has no
|
|
13907
13936
|
`search_tools` analogue at all. Including them in the defaults gave the
|
|
13908
13937
|
model two tools that looked right but degraded alignment. Hosts that
|
|
13909
13938
|
genuinely want either can register them explicitly.
|
|
13910
13939
|
|
|
13911
|
-
Why this is breaking and worth it: Namzu is a
|
|
13912
|
-
|
|
13913
|
-
API. Mirroring the canonical names verbatim means Claude's pretrained
|
|
13914
|
-
agentic instincts apply for free — no system-prompt argument needed to
|
|
13940
|
+
Why this is breaking and worth it: Namzu is not a wrapper around the Anthropic Beta Agents
|
|
13941
|
+
API. Using the canonical names verbatim means the model's agentic habits apply for free — no system-prompt argument needed to
|
|
13915
13942
|
explain what `Read` or `Bash` does. Idiosyncratic snake_case names threw
|
|
13916
13943
|
that alignment away on every call.
|
|
13917
13944
|
|
|
@@ -14042,7 +14069,7 @@ mkdir '/Users'` crash that hit sibling-container deployments.
|
|
|
14042
14069
|
branched on the env, only logged it; size grew with the skill
|
|
14043
14070
|
list). Only `NAMZU_SANDBOX_WORKSPACE` is forwarded today.
|
|
14044
14071
|
|
|
14045
|
-
The
|
|
14072
|
+
The image pre-creates **only the parent directories**
|
|
14046
14073
|
`/mnt`, `/mnt/user-data`, `/mnt/skills` — root-owned, mode 0555.
|
|
14047
14074
|
Leaf paths (`outputs/`, `uploads/`, `tool_results/`, `transcripts/`,
|
|
14048
14075
|
`<skill-id>/`) are intentionally NOT pre-created. When a bind is
|
|
@@ -14082,8 +14109,7 @@ test:smoke`) runs an opt-in docker integration test exercising the
|
|
|
14082
14109
|
|
|
14083
14110
|
Adds `buildAgentTool({ gateway, workingDirectory, allowedAgentIds, ... })`
|
|
14084
14111
|
that builds a single tool named `Agent` with the input shape
|
|
14085
|
-
`{ description, prompt, subagent_type }`.
|
|
14086
|
-
training distribution verbatim (per `code.claude.com/docs/en/sub-agents`):
|
|
14112
|
+
`{ description, prompt, subagent_type }`. The tool's behaviour is:
|
|
14087
14113
|
the parent's tool call BLOCKS on `gateway.waitForTask(handle.taskId)`,
|
|
14088
14114
|
the subagent runs in its own context window, and the subagent's final
|
|
14089
14115
|
text comes back as the tool result.
|
|
@@ -14100,7 +14126,7 @@ test:smoke`) runs an opt-in docker integration test exercising the
|
|
|
14100
14126
|
|
|
14101
14127
|
Both surfaces remain available — the coordinator trio is the right
|
|
14102
14128
|
choice for genuine work-queue surfaces, the `Agent` tool is the
|
|
14103
|
-
right choice when the host wants
|
|
14129
|
+
right choice when the host wants the blocking `Agent` tool.
|
|
14104
14130
|
|
|
14105
14131
|
- 265150b: feat(sdk): default sandboxed verification gate preset + expanded brick-pattern denylist
|
|
14106
14132
|
|
|
@@ -14133,7 +14159,7 @@ test:smoke`) runs an opt-in docker integration test exercising the
|
|
|
14133
14159
|
child level (deny dangerous shell patterns, restrict by category) can now
|
|
14134
14160
|
pass the same preset they pass to the supervisor.
|
|
14135
14161
|
|
|
14136
|
-
- d6b5bc1: **Remove the legacy `append` file tool.** `AppendFileTool` is gone — it was already excluded from `getBuiltinTools()` (
|
|
14162
|
+
- d6b5bc1: **Remove the legacy `append` file tool.** `AppendFileTool` is gone — it was already excluded from `getBuiltinTools()` (the default set has no `Append`), and appending is canonical `edit` with `insertLine: "end"`. The export is removed from the public surface; hosts that relied on it should switch to `edit`. namzu's CLI no longer needs to filter `append` out of its tool set.
|
|
14137
14163
|
- 63b4885: feat(sdk): forward sandboxProvider through reactive/supervisor agents
|
|
14138
14164
|
|
|
14139
14165
|
`ReactiveAgentConfig` and `SupervisorAgentConfig` gain an optional
|
|
@@ -10,10 +10,8 @@
|
|
|
10
10
|
* "approve all" said. That is what a mode is, an answer given before the call
|
|
11
11
|
* existed, and none of them saw this path.
|
|
12
12
|
*
|
|
13
|
-
* The lists
|
|
14
|
-
*
|
|
15
|
-
* directory and file mapped to Namzu's: the project directory is `.namzu` and
|
|
16
|
-
* the project file is `namzu.config.json`.
|
|
13
|
+
* The lists name the protected directories and protected files. The project
|
|
14
|
+
* directory is `.namzu` and the project file is `namzu.config.json`.
|
|
17
15
|
*
|
|
18
16
|
* Matching is by name, on every segment of the path. `.git` anywhere above a
|
|
19
17
|
* file protects it, and `.config/git` counts as one two-segment unit. Names
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protected-paths.d.ts","sourceRoot":"","sources":["../../src/authorization/protected-paths.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"protected-paths.d.ts","sourceRoot":"","sources":["../../src/authorization/protected-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAUlD,CAAA;AAED,0DAA0D;AAC1D,eAAO,MAAM,4BAA4B,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAyB,CAAA;AAEhG,0EAA0E;AAC1E,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAwCjD,CAAA;AAWD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAYrD"}
|
|
@@ -10,10 +10,8 @@
|
|
|
10
10
|
* "approve all" said. That is what a mode is, an answer given before the call
|
|
11
11
|
* existed, and none of them saw this path.
|
|
12
12
|
*
|
|
13
|
-
* The lists
|
|
14
|
-
*
|
|
15
|
-
* directory and file mapped to Namzu's: the project directory is `.namzu` and
|
|
16
|
-
* the project file is `namzu.config.json`.
|
|
13
|
+
* The lists name the protected directories and protected files. The project
|
|
14
|
+
* directory is `.namzu` and the project file is `namzu.config.json`.
|
|
17
15
|
*
|
|
18
16
|
* Matching is by name, on every segment of the path. `.git` anywhere above a
|
|
19
17
|
* file protects it, and `.config/git` counts as one two-segment unit. Names
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protected-paths.js","sourceRoot":"","sources":["../../src/authorization/protected-paths.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"protected-paths.js","sourceRoot":"","sources":["../../src/authorization/protected-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,6EAA6E;AAC7E,MAAM,CAAC,MAAM,qBAAqB,GAAsB;IACvD,MAAM;IACN,SAAS;IACT,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,eAAe;IACf,OAAO;IACP,MAAM;CACN,CAAA;AAED,0DAA0D;AAC1D,MAAM,CAAC,MAAM,4BAA4B,GAAmC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;AAEhG,0EAA0E;AAC1E,MAAM,CAAC,MAAM,oBAAoB,GAAsB;IACtD,YAAY;IACZ,aAAa;IACb,SAAS;IACT,eAA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K,MAAM,QAAQ,IAAI,MAAM,EAAE,CAAC;QAC/B,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;YAC5E,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,CAAC;gBAAE,OAAO,IAAI,CAAA;QACrF,CAAC;IACF,CAAC;IACD,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IAC1C,OAAO,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,EAAE,IAAI,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;AACjE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Which shell lines only read, so that they run without a prompt.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* `ls`, `cat`, `git status` and `git diff` run without asking, because each is
|
|
5
|
+
* on a vetted list and nothing in the line is decided at run time. The list and
|
|
6
|
+
* the conditions are these:
|
|
7
7
|
*
|
|
8
8
|
* - every command of the line is on the list, the line parses completely, and
|
|
9
9
|
* nothing in it is read at run time: no `$var` outside single quotes, no
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* Not ported, and so never read-only here: `sed`, `ps`, `lsof`, `ss`, `date`,
|
|
24
24
|
* `man`, `xargs`, `fd`, `gh`, `docker logs|inspect`, `printf`, `[[`, `test`
|
|
25
|
-
* and the shell builtins other than `cd`. The
|
|
25
|
+
* and the shell builtins other than `cd`. The check of the working
|
|
26
26
|
* directory for a planted bare repository needs the directory, which the tool
|
|
27
27
|
* predicate does not get; the trusted-project gate is what stands in for it.
|
|
28
28
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Which shell lines only read, so that they run without a prompt.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* `ls`, `cat`, `git status` and `git diff` run without asking, because each is
|
|
5
|
+
* on a vetted list and nothing in the line is decided at run time. The list and
|
|
6
|
+
* the conditions are these:
|
|
7
7
|
*
|
|
8
8
|
* - every command of the line is on the list, the line parses completely, and
|
|
9
9
|
* nothing in it is read at run time: no `$var` outside single quotes, no
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* Not ported, and so never read-only here: `sed`, `ps`, `lsof`, `ss`, `date`,
|
|
24
24
|
* `man`, `xargs`, `fd`, `gh`, `docker logs|inspect`, `printf`, `[[`, `test`
|
|
25
|
-
* and the shell builtins other than `cd`. The
|
|
25
|
+
* and the shell builtins other than `cd`. The check of the working
|
|
26
26
|
* directory for a planted bare repository needs the directory, which the tool
|
|
27
27
|
* predicate does not get; the trusted-project gate is what stands in for it.
|
|
28
28
|
*
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
*/
|
|
33
33
|
import { FLAG_TABLES } from './readonly-flags.js';
|
|
34
34
|
import { lexShellCommandLine } from './shell-lexer.js';
|
|
35
|
-
/** Lines longer than this are not analysed (the
|
|
35
|
+
/** Lines longer than this are not analysed (the budget). */
|
|
36
36
|
const MAX_LINE_LENGTH = 20_000;
|
|
37
37
|
/** Variables whose value cannot change what a command does. */
|
|
38
38
|
const SAFE_ENVIRONMENT = new Set([
|
|
@@ -75,7 +75,7 @@ const SAFE_ENVIRONMENT = new Set([
|
|
|
75
75
|
'DEBIAN_FRONTEND',
|
|
76
76
|
'GIT_TERMINAL_PROMPT',
|
|
77
77
|
]);
|
|
78
|
-
/** Commands that read and print, with any arguments (the
|
|
78
|
+
/** Commands that read and print, with any arguments (the bare-safe list). */
|
|
79
79
|
const ANY_ARGUMENTS = new Set([
|
|
80
80
|
'cal',
|
|
81
81
|
'uptime',
|
|
@@ -571,7 +571,7 @@ const GIT_CHECKS = {
|
|
|
571
571
|
return false;
|
|
572
572
|
},
|
|
573
573
|
};
|
|
574
|
-
// -- the commands with a regex of their own
|
|
574
|
+
// -- the commands with a regex of their own ----------------
|
|
575
575
|
function uniqIsReadOnly(args) {
|
|
576
576
|
for (let i = 0; i < args.length; i += 1) {
|
|
577
577
|
const word = args[i];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readonly-commands.js","sourceRoot":"","sources":["../../src/authorization/readonly-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAAE,WAAW,EAAkB,MAAM,qBAAqB,CAAA;AACjE,OAAO,EAAkB,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAEtE,wEAAwE;AACxE,MAAM,eAAe,GAAG,MAAM,CAAA;AAE9B,+DAA+D;AAC/D,MAAM,gBAAgB,GAAwB,IAAI,GAAG,CAAC;IACrD,cAAc;IACd,MAAM;IACN,QAAQ;IACR,aAAa;IACb,aAAa;IACb,gBAAgB;IAChB,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,yBAAyB;IACzB,gCAAgC;IAChC,cAAc;IACd,MAAM;IACN,UAAU;IACV,QAAQ;IACR,UAAU;IACV,SAAS;IACT,SAAS;IACT,MAAM;IACN,WAAW;IACX,UAAU;IACV,aAAa;IACb,IAAI;IACJ,WAAW;IACX,UAAU;IACV,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,SAAS;IACT,OAAO;IACP,UAAU;IACV,gBAAgB;IAChB,IAAI;IACJ,iBAAiB;IACjB,qBAAqB;CACrB,CAAC,CAAA;AAEF,yFAAyF;AACzF,MAAM,aAAa,GAAwB,IAAI,GAAG,CAAC;IAClD,KAAK;IACL,QAAQ;IACR,KAAK;IACL,MAAM;IACN,MAAM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AC,KAAK,CAAC,CAAC;YAAE,OAAO,KAAK,CAAA;QAExE,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC5C,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC;YAAE,OAAO,KAAK,CAAA;QACxD,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK;YAAE,OAAO,GAAG,IAAI,CAAA;QACxC,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI;YAAE,gBAAgB,GAAG,IAAI,CAAA;IACjD,CAAC;IACD,IAAI,OAAO,IAAI,gBAAgB;QAAE,OAAO,KAAK,CAAA;IAC7C,OAAO,IAAI,CAAA;AACZ,CAAC"}
|
|
1
|
+
{"version":3,"file":"readonly-commands.js","sourceRoot":"","sources":["../../src/authorization/readonly-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAAE,WAAW,EAAkB,MAAM,qBAAqB,CAAA;AACjE,OAAO,EAAkB,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAEtE,4DAA4D;AAC5D,MAAM,eAAe,GAAG,MAAM,CAAA;AAE9B,+DAA+D;AAC/D,MAAM,gBAAgB,GAAwB,IAAI,GAAG,CAAC;IACrD,cAAc;IACd,MAAM;IACN,QAAQ;IACR,aAAa;IACb,aAAa;IACb,gBAAgB;IAChB,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,yBAAyB;IACzB,gCAAgC;IAChC,cAAc;IACd,MAAM;IACN,UAAU;IACV,QAAQ;IACR,UAAU;IACV,SAAS;IACT,SAAS;IACT,MAAM;IACN,WAAW;IACX,UAAU;IACV,aAAa;IACb,IAAI;IACJ,WAAW;IACX,UAAU;IACV,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,SAAS;IAC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,CAAC,CAAA;QAC7E,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAA;QAClD,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAAE,OAAO,KAAK,CAAA;QAExE,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC5C,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC;YAAE,OAAO,KAAK,CAAA;QACxD,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK;YAAE,OAAO,GAAG,IAAI,CAAA;QACxC,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI;YAAE,gBAAgB,GAAG,IAAI,CAAA;IACjD,CAAC;IACD,IAAI,OAAO,IAAI,gBAAgB;QAAE,OAAO,KAAK,CAAA;IAC7C,OAAO,IAAI,CAAA;AACZ,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Per-flag allowlists for the shell commands that may run without a prompt.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* flags it vets and what each takes, `none` (a switch), `string` or `number`.
|
|
4
|
+
* For each command, the flags it vets and what each takes, `none` (a switch), `string` or `number`.
|
|
6
5
|
* A flag not listed here is not read-only, which is how `git diff --output=f`
|
|
7
6
|
* (writes a file), `git -c`, `--exec-path` and `--config-env` stay out: they
|
|
8
7
|
* are not in any table. Space-separated lists per kind keep the file readable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readonly-flags.d.ts","sourceRoot":"","sources":["../../src/authorization/readonly-flags.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"readonly-flags.d.ts","sourceRoot":"","sources":["../../src/authorization/readonly-flags.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEnD,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAA;IAClD,iEAAiE;IACjE,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAA;CAC5B;AAeD,2EAA2E;AAC3E,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAkK3D,CAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Per-flag allowlists for the shell commands that may run without a prompt.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* flags it vets and what each takes, `none` (a switch), `string` or `number`.
|
|
4
|
+
* For each command, the flags it vets and what each takes, `none` (a switch), `string` or `number`.
|
|
6
5
|
* A flag not listed here is not read-only, which is how `git diff --output=f`
|
|
7
6
|
* (writes a file), `git -c`, `--exec-path` and `--config-env` stay out: they
|
|
8
7
|
* are not in any table. Space-separated lists per kind keep the file readable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readonly-flags.js","sourceRoot":"","sources":["../../src/authorization/readonly-flags.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"readonly-flags.js","sourceRoot":"","sources":["../../src/authorization/readonly-flags.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAUH,SAAS,KAAK,CAAC,IAKd;IACA,MAAM,KAAK,GAA6B,EAAE,CAAA;IAC1C,KAAK,MAAM,IAAI,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAU,EAAE,CAAC;QAC1D,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CA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wH;KAC9H,CAAC;IACF,OAAO,EAAE,KAAK,CAAC;QACd,IAAI,EAAE,wHAAwH;KAC9H,CAAC;IACF,MAAM,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,wHAAwH;KAC9H,CAAC;IACF,IAAI,EAAE,KAAK,CAAC;QACX,IAAI,EAAE,6RAA6R;QACnS,MAAM,EACL,oGAAoG;QACrG,MAAM,EAAE,gBAAgB;KACxB,CAAC;CACF,CAAA"}
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
* `rm -rf ~`, `rm -rf $HOME`, `rm -rf "$BUILD/"` (empty variable, so `/`) and
|
|
8
8
|
* `rm -rf ..` all went past it. The flags were never the point. A removal is
|
|
9
9
|
* catastrophic because of WHAT it removes, so this reads the targets of `rm`
|
|
10
|
-
* and `rmdir` whatever the flags
|
|
11
|
-
* check does (version 2.1.302).
|
|
10
|
+
* and `rmdir` whatever the flags.
|
|
12
11
|
*
|
|
13
12
|
* A removal is flagged when a target is
|
|
14
13
|
*
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
*
|
|
27
26
|
* The answer is a reason, which the kernel turns into an escalation: asked
|
|
28
27
|
* every time, in every mode, and refused when nobody can be asked. It is not a
|
|
29
|
-
* denial:
|
|
28
|
+
* denial: it asks, because there are legitimate removals a person
|
|
30
29
|
* can approve.
|
|
31
30
|
*/
|
|
32
31
|
import { type ShellReading } from './shell-paths.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removal.d.ts","sourceRoot":"","sources":["../../src/authorization/removal.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"removal.d.ts","sourceRoot":"","sources":["../../src/authorization/removal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAeH,OAAO,EAAwB,KAAK,YAAY,EAAoB,MAAM,kBAAkB,CAAA;AAE5F,mDAAmD;AACnD,MAAM,WAAW,cAAc;IAC9B,oCAAoC;IACpC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,wCAAwC;IACxC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAClD,kEAAkE;IAClE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,yFAAyF;IACzF,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;CAC3D;AA0FD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC/B,OAAO,EAAE,YAAY,EACrB,gBAAgB,EAAE,OAAO,EACzB,OAAO,EAAE,cAAc,GACrB,MAAM,GAAG,SAAS,CA2BpB"}
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
* `rm -rf ~`, `rm -rf $HOME`, `rm -rf "$BUILD/"` (empty variable, so `/`) and
|
|
8
8
|
* `rm -rf ..` all went past it. The flags were never the point. A removal is
|
|
9
9
|
* catastrophic because of WHAT it removes, so this reads the targets of `rm`
|
|
10
|
-
* and `rmdir` whatever the flags
|
|
11
|
-
* check does (version 2.1.302).
|
|
10
|
+
* and `rmdir` whatever the flags.
|
|
12
11
|
*
|
|
13
12
|
* A removal is flagged when a target is
|
|
14
13
|
*
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
*
|
|
27
26
|
* The answer is a reason, which the kernel turns into an escalation: asked
|
|
28
27
|
* every time, in every mode, and refused when nobody can be asked. It is not a
|
|
29
|
-
* denial:
|
|
28
|
+
* denial: it asks, because there are legitimate removals a person
|
|
30
29
|
* can approve.
|
|
31
30
|
*/
|
|
32
31
|
import { existsSync, realpathSync } from 'node:fs';
|
|
@@ -206,7 +205,7 @@ function checkTarget(program, args, spelled, word, scope) {
|
|
|
206
205
|
const expanded = expandTilde(spelled, scope.home);
|
|
207
206
|
const relative = !isAbsolute(expanded);
|
|
208
207
|
if (expandsAtRuntime(word) && /[$`]/.test(expanded)) {
|
|
209
|
-
// A variable the check cannot read:
|
|
208
|
+
// A variable the check cannot read: it is treated as a relative
|
|
210
209
|
// name, which is also what the shell does when the variable is unset and
|
|
211
210
|
// the rest is a plain name. Nothing more to learn from it.
|
|
212
211
|
return undefined;
|