chutes-build 0.4.1 → 0.4.2

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 ADDED
@@ -0,0 +1,371 @@
1
+ # Changelog
2
+
3
+ All notable changes to Chutes Build will be documented in this file. The format
4
+ is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this
5
+ project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.4.2] - 2026-08-01
10
+
11
+ ### Added
12
+
13
+ - `/undo` is accepted as an alias for `/rewind`.
14
+ - Added repository-wide coding-agent guidance and editor defaults.
15
+ - The npm launcher archive now includes the changelog and security policy.
16
+
17
+ ### Changed
18
+
19
+ - Reviewed Grok Build upstream through `0.2.117` and recorded the selective
20
+ port and deferral decisions.
21
+ - Removed the orphaned Dependabot auto-merge workflow after automated version
22
+ update PRs were disabled.
23
+ - The Windows CI job no longer disables real-time malware protection.
24
+
25
+ ### Fixed
26
+
27
+ - Repeated-tool-call reminders are injected only after the preceding tool
28
+ results are committed, preventing duplicate results from corrupting session
29
+ history.
30
+ - Empty Enter no longer silently approves a plan while the revision prompt is
31
+ focused; revision notes are required, with `a` as the explicit approve key.
32
+ - Notification-hook tests that launch external shells are serialized, avoiding
33
+ Windows CI failures caused by concurrent PowerShell startup contention.
34
+ - The asynchronous notification-hook test now joins its worker before checking
35
+ output, removing a race with slow PowerShell startup on loaded CI runners.
36
+ - Removed Rust 1.94 Clippy warnings in the Windows crash handler, PTY text
37
+ rendering, and workspace utilities without changing their behavior.
38
+ - Notification events without an owning session explicitly remove any stale
39
+ `CHUTES_BUILD_SESSION_ID` inherited from the parent process.
40
+
41
+ ### Security
42
+
43
+ - Documented and aligned repository security controls for SHA-pinned Actions,
44
+ read-only workflow tokens, and reviewed security-update PRs.
45
+ - Updated vulnerable transitive `rand` and AWS SDK lockfile entries to their
46
+ first compatible patched releases.
47
+
48
+ ## [0.4.1] - 2026-07-26
49
+
50
+ ### Added
51
+
52
+ - Remote ACP background terminal tasks now persist their cumulative output
53
+ locally while they run; terminal results use the real remote exit status.
54
+ - Repeated identical tool calls are detected, warned about, and eventually
55
+ stopped without emitting a misleading assistant response; repeated `true`
56
+ no-ops use a shorter limit.
57
+
58
+ ### Changed
59
+
60
+ - Dependabot auto-merge is limited to patch updates. Minor and major updates
61
+ remain open for manual review.
62
+ - The upstream-watch workflow refreshes the existing review issue with the
63
+ current upstream commit and version instead of leaving stale issue content.
64
+ - Plugin subagents inherit the parent's already-connected MCP pool through the
65
+ normal inheritance filter, without allowing plugins to create connections.
66
+ - A fresh managed-MCP catalog is propagated to live sessions and refreshes the
67
+ tool-search index without requiring an application restart.
68
+
69
+ ### Fixed
70
+
71
+ - Session-creation failures now clear the stuck loading state, remove orphaned
72
+ sessions, and surface a useful warning or failure block.
73
+ - A bare `Esc` cancels a running turn in non-vim and minimal modes while
74
+ fullscreen vim retains navigation semantics; the queued draft is preserved.
75
+ - Fork/rewind copies only live history and the compaction checkpoint files it
76
+ actually references, rejecting malformed paths and non-regular files.
77
+
78
+ ### Security
79
+
80
+ - Chutes and Context7 endpoint resolution now rejects insecure schemes,
81
+ credentials in URLs, private/special-use network targets, and unapproved
82
+ custom endpoints unless the corresponding explicit development opt-in is
83
+ enabled. API keys are never sent to custom Context7 endpoints.
84
+ - Generated media streams to temporary files with bounded response sizes and
85
+ uses create-new persistence so existing artifacts cannot be overwritten.
86
+ - Automatic permission classification only fast-paths deterministic read-only
87
+ shell commands; classifier failures fall back to the normal user prompt.
88
+ - Permission resolution now honors the folder-trust verdict: an untrusted
89
+ project's `.claude/settings.json` (including `defaultMode: bypassPermissions`)
90
+ and `.chutes-build/config.toml` `[permission]` rules are no longer
91
+ auto-applied. A cloned repository could previously ship permission rules
92
+ that auto-approved tool calls regardless of the folder's trust state. Global
93
+ and admin-tier permission sources are unaffected. Found while reviewing
94
+ upstream grok-build for changes worth porting.
95
+
96
+ ### Documentation
97
+
98
+ - Reworked the README around a concise product overview, static terminal
99
+ screenshot, quick start, privacy contract, common workflows, and repository
100
+ map; removed the obsolete promotional video assets.
101
+ - Added dedicated getting-started and configuration guides, reorganized the
102
+ documentation index, and aligned privacy, security, architecture, npm,
103
+ contributor, and embedded `/docs` references with current behavior.
104
+ - Corrected OAuth guidance, media response limits, automatic-permission
105
+ semantics, remote terminal behavior, `Esc` cancellation, and upstream
106
+ baseline rules.
107
+
108
+ ## [0.4.0] - 2026-07-23
109
+
110
+ ### Added
111
+
112
+ - Machine-readable `--json` output for the model catalog and local session
113
+ list/search/delete commands.
114
+ - Headless worktree creation, including `--worktree-ref`, and headless
115
+ `--no-subagents` / memory controls.
116
+ - CSS-selector or snapshot-index addressing for browser click/type actions.
117
+ - A complete public CLI and slash-command reference.
118
+
119
+ ### Changed
120
+
121
+ - Session storage, search, deletion, traces, and workspace state are now
122
+ enforced as local-only product policy. Inherited remote write-back settings
123
+ cannot override it.
124
+ - Updates are manual through npm/release artifacts. The runtime no longer links
125
+ or starts the inherited automatic updater.
126
+ - Custom model catalogs use `CHUTES_MODELS_API_KEY`; ambient Chutes API/session
127
+ credentials are restricted to allowlisted official HTTPS endpoints.
128
+ - Destructive session, memory, plugin, marketplace, and worktree operations
129
+ require confirmation or an explicit `--yes`.
130
+
131
+ ### Fixed
132
+
133
+ - OAuth login (`l` / `/login`, "Sign in with Chutes"): the token exchange (and
134
+ now refresh) send a `client_secret` when one is configured. The built-in app
135
+ (`cid_nyt9i...`) currently rejects the token exchange with `invalid_client`
136
+ unless a secret is sent, despite being documented as a public PKCE client —
137
+ confirmed by isolating scope as a non-factor in a controlled A/B test.
138
+ `openid` is also requested again — Chutes' own app docs list it as
139
+ required, contradicting the assumption an earlier revision of this list was
140
+ based on.
141
+ - A `client_secret` supplied via `CHUTES_BUILD_OAUTH2_CLIENT_SECRET` /
142
+ `CHUTES_BUILD_OIDC_CLIENT_SECRET` was silently dropped before reaching the
143
+ token request whenever `config.toml` also had an
144
+ `[grok_com_config.oidc]`/`[oauth2]` table: the config merge round-trips
145
+ through a generic TOML value, which does not preserve fields marked
146
+ `#[serde(skip)]`.
147
+ - Relative `--cwd` values are canonicalized before changing directories,
148
+ avoiding a second relative-path resolution.
149
+ - `--load` now behaves as an alias of `--resume`; resume/restore conflicts,
150
+ headless-only options, `--no-plan`, `--best-of-n`, and prompt/subcommand
151
+ combinations fail with actionable parser errors instead of being ignored.
152
+ - Agent `--reauthenticate`, `--reasoning-effort`, model-list cancellation,
153
+ export/clipboard failures, worktree partial failures, plugin registry
154
+ failures, and custom OAuth refresh secrets now behave consistently.
155
+ - `CHUTES_BUILD_HOME` now relocates user roles/personas and the bundled-agent
156
+ cache together with the rest of the application state, including on Windows.
157
+ - Media writes roll back partial artifacts when either media or provenance
158
+ persistence fails.
159
+
160
+ ### Security
161
+
162
+ - Removed the hidden remote workspace-exposure CLI and disabled the matching
163
+ leader protocol capability.
164
+ - `mcp list --json` redacts environment/header values, command arguments, and
165
+ URL credentials/query/fragment data.
166
+ - `agent serve` defaults to loopback, rejects short secrets, and requires
167
+ `--allow-remote-bind` for non-loopback listeners.
168
+ - Plugin/marketplace removal and generated-media persistence now surface
169
+ partial failures instead of reporting false success.
170
+
171
+ ### Removed
172
+
173
+ - Inherited remote share, feedback, coding-data retention, update, setup, and
174
+ workspace-exposure commands that were unavailable or incompatible with the
175
+ Chutes Build privacy contract.
176
+ - The no-op `trace --local`, `agent serve --remote`, and duplicate load/update
177
+ flags.
178
+
179
+ ### Documentation
180
+
181
+ - README: documented the OAuth environment variables and the custom-client
182
+ fallback.
183
+
184
+ ## [0.3.0] - 2026-07-22
185
+
186
+ ### Added
187
+
188
+ - Voice recording bar: an animated wave visual while the mic is capturing.
189
+ - Auto-update checks re-enabled (were previously hardcoded off regardless of
190
+ config or CLI flag). Still off in debug builds; honors `--no-auto-update`
191
+ and the new `CHUTES_BUILD_DISABLE_AUTOUPDATER` env var.
192
+
193
+ ### Fixed
194
+
195
+ - Voice dictation actually works now: default transcription switched to a
196
+ batch REST call against Chutes' own STT endpoint. The prior WebSocket
197
+ streaming client only ever worked against the original upstream backend —
198
+ every dictation attempt against Chutes' inference API failed with a
199
+ WebSocket 404 (no such route exists there). The streaming transport is
200
+ still available (`stt_mode = "streaming"`) for a backend that speaks it.
201
+ - Voice dictation: the 10-second no-speech timeout now distinguishes true mic
202
+ silence (permissions, muted input) from other failures and surfaces a
203
+ platform-specific fix hint instead of one generic message.
204
+ - Sampler: a zero-retry budget now fails fast instead of silently falling
205
+ through the generic/rate-limit retry paths; retry backoff sleeps are now
206
+ cancellable, so a cancelled request during backoff no longer waits out the
207
+ full delay.
208
+
209
+ ### Security
210
+
211
+ - Sandbox: fixed a fail-open bypass where an unopenable device file (e.g.
212
+ `/dev/tty` with no controlling terminal under headless/CI) aborted the
213
+ entire Landlock/Seatbelt ruleset instead of just skipping that one rule,
214
+ leaving the sandbox unenforced.
215
+ - Permission auto-mode and exec-risk classification brought forward from a
216
+ stale pre-0.2.106 baseline: kubectl/`ps`/`rg` heuristic hardening
217
+ (credential-plugin and environment-dump risks), a 3-tier environment-risk
218
+ model replacing a binary check, opaque-shell detection, an ambient
219
+ exec-risk scan for `git -C`/`--git-dir`/submodule config paths, and
220
+ reinstated consecutive/total auto-deny limits.
221
+ - MCP tool permission checks now use an overlap-aware `server__tool` name
222
+ parser (rejects names with more than one delimiter boundary) instead of
223
+ splitting on the first occurrence.
224
+
225
+ ## [0.2.0] - 2026-07-22
226
+
227
+ ### Added
228
+
229
+ - Chutes-native inference, model discovery, automatic routing, and fallback
230
+ handling.
231
+ - Adaptive reasoning controls backed by a centralized model capability
232
+ registry.
233
+ - Advisor and parallel subagent orchestration.
234
+ - Built-in Context7, official Chutes research, web search, browser automation,
235
+ and project memory.
236
+ - Chutes usage indicators for rolling four-hour and monthly limits.
237
+ - Typed image, video, and audio artifacts with bounded, opt-in terminal
238
+ previews and native-player fallbacks.
239
+ - Privacy-first defaults with telemetry, remote trace upload, and automatic
240
+ update checks disabled.
241
+ - Cross-platform npm launcher and native package pipeline.
242
+ - Voice dictation (`/voice`, Ctrl+Space, or the mic icon), enabled by default;
243
+ recording still starts only on an explicit manual press.
244
+ - Hybrid memory search enabled by default: local recall now combines full-text
245
+ search with semantic vector search against a built-in Chutes-hosted
246
+ embedding model (`Qwen/Qwen3-Embedding-8B-TEE`).
247
+ - Advisor now reasons at maximum effort by default (previously inherited
248
+ whatever effort the parent session was using). `/advisor on|off` enables or
249
+ disables the subagent; `/advisor <model>` pins the model it uses;
250
+ `/advisor default` clears the pin. Writes `[subagents.roles.advisor]` /
251
+ `[subagents.toggle]` in config.toml — the running session's own model is
252
+ never touched.
253
+ - On-demand OCR (`ocr_page` tool): extracts text verbatim from a single image
254
+ or PDF page via a dedicated Chutes vision model, independent of the active
255
+ chat model's vision support. Billed against the account's subscription
256
+ quota, never the separate marketplace/wallet balance third-party chutes use.
257
+
258
+ ### Changed
259
+
260
+ - Rebranded the public product, binary, user data directory, and themes as
261
+ Chutes Build.
262
+ - Cached FFmpeg and package-manager discovery for the lifetime of the process
263
+ so idle TUI rendering does not repeatedly probe external commands.
264
+ - Bounded account quota fallback concurrency and cached model-capability
265
+ discovery to reduce unnecessary API work.
266
+ - The model-capability catalog response and the vision transcription client's
267
+ chat-completion response are now parsed into small typed structs instead of
268
+ navigated as raw JSON, so an unexpected shape in a field we don't read can't
269
+ silently change behavior; fields whose absence or wrong shape must stay a
270
+ soft "not found"/"no match" (a model's `input_modalities`, a transcription's
271
+ `content`/`finish_reason`) are still parsed leniently, only genuinely
272
+ malformed responses now surface as a distinct decode error. Account usage
273
+ and per-chute media responses stay dynamic on purpose — their shapes
274
+ legitimately vary per tier/quota kind and per third-party chute schema.
275
+
276
+ ### Fixed
277
+
278
+ - Interactive login: the welcome screen and `/login` had no working path to
279
+ the OAuth method the rebrand advertised, and no way to enter an API key
280
+ from inside the running app at all (only the separate `chutes-build login`
281
+ CLI subcommand worked, before ever starting the TUI). Added "Sign in with
282
+ Chutes" OAuth end-to-end (issuer, client, scopes, loopback callback) and an
283
+ in-TUI API key entry reachable from the welcome screen (`k`), `/login`, and
284
+ `/apikey`, and fixed two stale-state bugs (`auth_show_raw_url`,
285
+ `welcome_prompt_focused`) that silently swallowed keyboard input on the
286
+ auth screen.
287
+ - `get_chutes_usage` and all media tools 401'd by default: the account/media
288
+ HTTP client sent the API key without the `Bearer` prefix `api.chutes.ai`
289
+ requires.
290
+ - The macOS native build failed to compile (a stray `cfg` left an
291
+ `std::process` import unreachable in a macOS-only module).
292
+ - The secret sanitizer that filters Sentry/Mixpanel/log output did not
293
+ recognize the `cpk_` Chutes API key prefix, so real keys were not redacted
294
+ from those sinks.
295
+ - The browser automation tool left a dead session in place after any
296
+ connection-level failure (closed socket, crashed browser), making it
297
+ unusable for the rest of the session until an explicit `close`.
298
+ - `generate_media` only validated the top-level shape of `params` against a
299
+ cord's schema, so a payload with the right outer wrapper (e.g. `args`) but
300
+ wrong fields nested inside it passed local validation and round-tripped to
301
+ Chutes for a generic "Invalid input parameters" error instead of a precise
302
+ local one.
303
+ - The terminal window/tab title showed "grok" instead of "chutes-build".
304
+ - Memory embeddings always sent requests to the chat completion base URL
305
+ (`llm.chutes.ai`, which does not proxy `/embeddings` and 404s), and
306
+ unconditionally requested Matryoshka-truncated output via a `dimensions`
307
+ field the default embedding model rejects outright (400). Together these
308
+ made vector memory search completely unusable even when `[memory.embedding]`
309
+ was explicitly configured. Embeddings now use their own configurable base
310
+ URL (defaulting to the model's dedicated endpoint) and no longer request
311
+ truncation.
312
+ - `generate_media` only encoded workspace file paths found at the top level
313
+ of `params`; a cord requiring a wrapper shape (e.g. `{"args": {"image":
314
+ "input.png"}}`) never got its nested path encoded, so the literal filename
315
+ round-tripped to Chutes instead of the file's contents. Asset discovery now
316
+ recurses through nested objects and arrays.
317
+ - `generate_media`'s schema guard unconditionally overwrote a cord's own
318
+ `additionalProperties`/`unevaluatedProperties` with its own default —
319
+ including stripping them entirely when `CHUTES_ALLOW_UNKNOWN_PARAMS` was
320
+ set, removing a restriction the provider declared rather than just
321
+ disabling this tool's own default. It now only adds its own restriction
322
+ where the schema has no existing opinion.
323
+ - `generate_media` accepted any response with an empty or `octet-stream`
324
+ Content-Type outright, so a Chutes error response (HTML/JSON, sometimes
325
+ served as `octet-stream` by a proxy) could be saved to disk as if it were
326
+ the requested media. Responses are now verified against actual byte
327
+ content, not just the declared header.
328
+ - The model-capability catalog cache held a single global lock for the
329
+ entire network refresh, serializing every concurrent lookup behind one
330
+ HTTP request whenever the cache was stale.
331
+ - On the Windows native build, file-tool path remapping (`resolve_model_path`)
332
+ and the `.gitignore` out-of-repo guard both tested `Path::is_absolute()`,
333
+ which on Windows also requires a drive letter. The forward-slash-rooted
334
+ virtual paths these paths actually deal with (e.g. a sandboxed session's
335
+ `/home/user/project`) were therefore misclassified as relative, silently
336
+ breaking model-facing path resolution and letting an out-of-repo path fall
337
+ through to a crate call that can panic. Both now check for a root instead
338
+ of a full drive-qualified absolute path.
339
+ - On the Windows native build, LSP crash-recovery silently failed to replay
340
+ a server's previously-open documents after a restart: it derived each
341
+ document's file path by stripping the literal `"file://"` prefix off its
342
+ URI, which on Windows leaves an invalid leading slash before the drive
343
+ letter (`/C:/...`), so the on-disk re-read failed and the document was
344
+ quietly dropped instead of being replayed. Now uses proper file-URI-to-path
345
+ conversion.
346
+
347
+ ### Security
348
+
349
+ - Restricted credential-bearing media invocation to Chutes HTTPS hosts,
350
+ disabled credential-bearing redirects, and bounded generated-media and input
351
+ asset sizes.
352
+ - Restricted browser and media output paths to canonical workspace locations,
353
+ prevented silent file overwrite, and redacted password values from browser
354
+ snapshots.
355
+ - Added full-history secret scanning, Rust dependency/source policy checks,
356
+ native archive checksums, and assembled-package smoke testing to CI.
357
+ - `CHUTES_INFERENCE_BASE_URL`/`CHUTES_API_BASE_URL`/`CHUTES_ROUTER_BASE_URL`
358
+ previously accepted any value with no validation, so an env-var override
359
+ could silently redirect Chutes credentials to an arbitrary host. These
360
+ (and the model-router dispatch path, which had the same gap) now require
361
+ HTTPS and a trusted Chutes/router host by default; `CHUTES_ALLOW_INSECURE_ENDPOINTS`
362
+ is an explicit opt-in for local development and forks.
363
+ - Outbound requests for Chutes credentials and generated-media downloads now
364
+ refuse to connect to loopback/private/link-local/reserved addresses,
365
+ checked at the exact point of connection (closing a DNS-rebinding gap
366
+ where only literal IP addresses were previously rejected).
367
+ - Unified secret detection: Context7's outbound-query guard and persistent
368
+ memory filtering matched only 12 hardcoded substrings (`api_key`,
369
+ `bearer`, `password`, ...) and could miss shapes like a bare AWS key or
370
+ GitHub token that the existing log/trace sanitizer already caught. Both
371
+ now route through the same canonical detector.
package/README.md CHANGED
@@ -148,6 +148,8 @@ set. See the [CLI reference](docs/cli-reference.md) and
148
148
  - [CLI reference](docs/cli-reference.md) and
149
149
  [slash commands](docs/slash-commands.md) — public command surfaces.
150
150
  - [Architecture](docs/ARCHITECTURE.md) — runtime layers and ownership map.
151
+ - [npm distribution](npm/README.md) and [release procedure](docs/releasing.md)
152
+ — launcher contents, native packages, verification, and publication order.
151
153
  - [Privacy](PRIVACY.md), [security policy](SECURITY.md), and
152
154
  [security review](docs/security-review.md) — operational trust boundaries.
153
155
  - [Documentation index](docs/README.md) — complete user, maintainer, and design
@@ -174,11 +176,12 @@ The executable is `target\release\chutes-build.exe` on Windows and
174
176
 
175
177
  | Path | Ownership |
176
178
  | --- | --- |
179
+ | `AGENTS.md` | Repository-wide guidance and verification contract for coding agents. |
177
180
  | `crates/chutes-build-core/` | Chutes routing, endpoint policy, catalog, reasoning, account, media, privacy, and product policy. |
178
181
  | `crates/codegen/` | Retained and adapted upstream runtime crates. Keep crate names stable to make upstream review practical. |
179
182
  | `npm/` | Native launcher, platform-package assembly, and npm verification. |
180
183
  | `docs/` | Public technical references, maintainer procedures, and design records. |
181
- | `.github/workflows/` | CI, dependency review, upstream monitoring, and release packaging. |
184
+ | `.github/workflows/` | CI, security policy checks, upstream monitoring, and release packaging. |
182
185
  | `prod/` and `third_party/` | Shared protocol sources and retained attribution/material from upstream. |
183
186
 
184
187
  The root `Cargo.toml` is generated and treated as read-only. Make dependency
@@ -193,8 +196,9 @@ are reviewed and ported selectively; they are never merged or released
193
196
  automatically. See [Upstream synchronization](docs/upstream-sync.md).
194
197
 
195
198
  Issues and focused pull requests are welcome. Read
196
- [CONTRIBUTING.md](CONTRIBUTING.md), [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md),
197
- and [SECURITY.md](SECURITY.md) before contributing.
199
+ [CONTRIBUTING.md](CONTRIBUTING.md), [AGENTS.md](AGENTS.md),
200
+ [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md), and [SECURITY.md](SECURITY.md) before
201
+ contributing.
198
202
 
199
203
  Apache-2.0 licensing and attribution are documented in [LICENSE](LICENSE),
200
204
  [NOTICE](NOTICE), and [THIRD-PARTY-NOTICES](THIRD-PARTY-NOTICES).
package/SECURITY.md ADDED
@@ -0,0 +1,73 @@
1
+ # Security Policy
2
+
3
+ ## Supported versions
4
+
5
+ Chutes Build is currently a development preview. Security fixes are applied to
6
+ the latest revision of the default branch; older source snapshots are not
7
+ supported.
8
+
9
+ ## Reporting a vulnerability
10
+
11
+ Use the repository's private GitHub Security Advisory reporting flow. Do not
12
+ open a public issue and do not include live credentials, private source code,
13
+ session archives, or personal data in a report.
14
+
15
+ Include:
16
+
17
+ - the affected revision and platform;
18
+ - a concise description of the impact and trust boundary;
19
+ - minimal reproduction steps using synthetic data;
20
+ - whether exploitation requires user approval, repository control, browser
21
+ access, or a malicious model/tool response;
22
+ - any proposed mitigation.
23
+
24
+ You should receive an acknowledgement when the report is reviewed. Disclosure
25
+ and remediation timing will be coordinated according to severity and the
26
+ availability of a safe fix.
27
+
28
+ ## Security boundaries
29
+
30
+ Chutes Build can execute commands, modify files, invoke models, start subagents,
31
+ and control an isolated browser. Model output, repository contents, web pages,
32
+ MCP servers, tool responses, and downloaded documents are untrusted input. Keep
33
+ permission prompts enabled, use trusted repositories, and never expose secrets
34
+ in prompts or committed files.
35
+
36
+ The project intentionally disables telemetry, remote trace uploads, automatic
37
+ updates, upstream session sharing/search, remote workspace exposure, and
38
+ upstream managed configuration. These are compile-time product policies, not
39
+ server-controlled feature flags. Any change to those guarantees requires an
40
+ explicit security and privacy review.
41
+
42
+ Ambient Chutes credentials are restricted to allowlisted official HTTPS hosts.
43
+ Custom inference and model-catalog endpoints require dedicated credentials.
44
+ OAuth client secrets are read from the environment, used for token exchange
45
+ and refresh when configured, and are never persisted by Chutes Build.
46
+
47
+ Credential-bearing and download clients reject URL credentials, unexpected
48
+ ports, insecure schemes, redirects, and private, loopback, link-local, or
49
+ special-use DNS results. Development endpoint overrides require the explicit
50
+ `CHUTES_ALLOW_INSECURE_ENDPOINTS=1` opt-in; the opt-in does not make ambient
51
+ Chutes credentials transferable to arbitrary model endpoints. Custom Context7
52
+ endpoints require their own opt-in and never receive `CONTEXT7_API_KEY`.
53
+
54
+ Machine-readable MCP listings redact environment/header values and URL
55
+ credentials. Destructive session, memory, plugin, marketplace, and worktree
56
+ operations require an interactive confirmation unless an explicit `--yes`
57
+ flag is provided. Media responses stream to bounded temporary storage, default
58
+ to 128 MiB with a 512 MiB hard ceiling, and use transactional create-new
59
+ artifact writes. Automatic permission mode only fast-paths deterministic
60
+ read-only shell commands; classifier failure returns to the normal user prompt.
61
+
62
+ ## Automated release checks
63
+
64
+ CI scans the complete Git history for known secret patterns and evaluates the
65
+ resolved Rust dependency graph for advisories, licenses, duplicate versions,
66
+ and unapproved sources. Release packaging additionally executes every native
67
+ binary, creates SHA-256 sidecars for native npm archives, verifies those
68
+ sidecars after artifact download, and runs the assembled launcher with its
69
+ native Linux package before publication can begin.
70
+
71
+ Documented advisory exceptions must include a bounded rationale in `deny.toml`.
72
+ New advisories or source-policy violations fail CI by default. The current
73
+ review record is maintained in [docs/security-review.md](docs/security-review.md).
package/npm/README.md CHANGED
@@ -5,6 +5,11 @@ optional dependencies contain the native Rust executable for each supported
5
5
  platform, so installation does not require Rust and does not download an
6
6
  executable from a lifecycle script.
7
7
 
8
+ The launcher archive includes the product README, changelog, security and
9
+ privacy policies, license, and notice. It deliberately defines no install or
10
+ post-install lifecycle script; executable selection happens only when the
11
+ `chutes-build` command runs.
12
+
8
13
  Supported release targets:
9
14
 
10
15
  - Windows x64 and ARM64
@@ -12,7 +17,8 @@ Supported release targets:
12
17
  - Linux glibc x64 and ARM64
13
18
 
14
19
  For installation and first-run instructions, see the repository
15
- [`README`](../README.md) and [getting-started guide](../docs/getting-started.md).
20
+ [`README`](../README.md) and the
21
+ [getting-started guide](https://github.com/TheStreamCode/chutes-build/blob/main/docs/getting-started.md).
16
22
 
17
23
  ## Prepare a platform package
18
24
 
@@ -33,12 +39,17 @@ or test scripts. Validate release metadata before packaging:
33
39
 
34
40
  ```powershell
35
41
  npm run verify:release
42
+ npm test
43
+ npm pack --dry-run
36
44
  ```
37
45
 
38
46
  The manual GitHub Actions workflow in `.github/workflows/package-release.yml`
39
47
  builds all six native packages. Its publish input is disabled by default and
40
- requires the protected `npm-release` environment when enabled. See
41
- [`docs/releasing.md`](../docs/releasing.md) for the full release procedure.
48
+ requires the `npm-release` environment when enabled. Native archives
49
+ are published before the launcher, every publish uses npm provenance, and an
50
+ already published package/version is skipped during a recovery run. See
51
+ the [release procedure](https://github.com/TheStreamCode/chutes-build/blob/main/docs/releasing.md)
52
+ for the complete workflow.
42
53
 
43
54
  ## Verify the launcher
44
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chutes-build",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Privacy-first, open-source coding agent for the Chutes ecosystem",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Michael Gasperini (Mikesoft)",
@@ -24,22 +24,25 @@
24
24
  "README.md",
25
25
  "LICENSE",
26
26
  "NOTICE",
27
- "PRIVACY.md"
27
+ "PRIVACY.md",
28
+ "SECURITY.md",
29
+ "CHANGELOG.md"
28
30
  ],
29
31
  "engines": {
30
32
  "node": ">=18"
31
33
  },
32
34
  "scripts": {
33
35
  "test": "node --test npm/tests/*.test.cjs",
34
- "verify:release": "node npm/scripts/verify-release.mjs"
36
+ "verify:release": "node npm/scripts/verify-release.mjs",
37
+ "check": "npm test && npm run verify:release && npm pack --dry-run"
35
38
  },
36
39
  "optionalDependencies": {
37
- "chutes-build-darwin-arm64": "0.4.1",
38
- "chutes-build-darwin-x64": "0.4.1",
39
- "chutes-build-linux-arm64-gnu": "0.4.1",
40
- "chutes-build-linux-x64-gnu": "0.4.1",
41
- "chutes-build-win32-arm64": "0.4.1",
42
- "chutes-build-win32-x64": "0.4.1"
40
+ "chutes-build-darwin-arm64": "0.4.2",
41
+ "chutes-build-darwin-x64": "0.4.2",
42
+ "chutes-build-linux-arm64-gnu": "0.4.2",
43
+ "chutes-build-linux-x64-gnu": "0.4.2",
44
+ "chutes-build-win32-arm64": "0.4.2",
45
+ "chutes-build-win32-x64": "0.4.2"
43
46
  },
44
47
  "keywords": [
45
48
  "ai",