fascicle 0.17.6 → 0.17.7

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.17.7 — 2026-11-01
4
+
5
+ ### Added
6
+
7
+ - **A `claude_cli` provider can keep named variables out of the CLI's env.** Under `auth_mode: 'oauth'` the CLI inherits all of `process.env`, which it needs to reach its login, and nothing let a host leave a variable out. So a host that also ran another provider handed that provider's key to the Claude CLI and to every command the CLI ran. `omit_env` on the provider config lists names the subprocess never sees, whether inherited or set in a call's `env`, under every auth mode. The configured `api_key` still reaches the CLI under `api_key` and `auto`. Volley needs it to keep `OPENROUTER_API_KEY` from a Claude builder under `oauth`. See [cli.md](./docs/cli.md#env-inheritance).
8
+
3
9
  ## v0.17.6 — 2026-11-01
4
10
 
5
11
  ### Added
package/dist/AGENTS.md CHANGED
@@ -3,7 +3,7 @@
3
3
  This file is for a coding agent (Claude Code, Codex, Cursor, or another) that's
4
4
  working in a project which uses the published `fascicle` package. A person who
5
5
  is learning Fascicle will usually import it from their `CLAUDE.md`, as
6
- [lesson 0](https://github.com/robmclarty/fascicle/blob/v0.17.6/docs/learn/00-set-up.md) shows. Every shape, rule, and error message below
6
+ [lesson 0](https://github.com/robmclarty/fascicle/blob/v0.17.7/docs/learn/00-set-up.md) shows. Every shape, rule, and error message below
7
7
  was checked against `fascicle` 0.16.3, and against 0.15.0 where the two differ,
8
8
  except what's marked 0.17.0 and later, which was checked against 0.17.0. A rule
9
9
  that a later release changes says what changed.
@@ -398,11 +398,11 @@ describe('the calculator', () => {
398
398
 
399
399
  ## Where to Look Next
400
400
 
401
- - [blueprint.md](https://github.com/robmclarty/fascicle/blob/v0.17.6/docs/blueprint.md) for the layout of a growing app.
402
- - [leaf-arm-spine.md](https://github.com/robmclarty/fascicle/blob/v0.17.6/docs/leaf-arm-spine.md) for choosing a primitive at each
401
+ - [blueprint.md](https://github.com/robmclarty/fascicle/blob/v0.17.7/docs/blueprint.md) for the layout of a growing app.
402
+ - [leaf-arm-spine.md](https://github.com/robmclarty/fascicle/blob/v0.17.7/docs/leaf-arm-spine.md) for choosing a primitive at each
403
403
  layer.
404
- - [composition.md](https://github.com/robmclarty/fascicle/blob/v0.17.6/docs/composition.md) for one line on every composer.
405
- - [cookbook.md](https://github.com/robmclarty/fascicle/blob/v0.17.6/docs/cookbook.md) for worked patterns, including tool loops with
404
+ - [composition.md](https://github.com/robmclarty/fascicle/blob/v0.17.7/docs/composition.md) for one line on every composer.
405
+ - [cookbook.md](https://github.com/robmclarty/fascicle/blob/v0.17.7/docs/cookbook.md) for worked patterns, including tool loops with
406
406
  `define_tool`.
407
- - [testing.md](https://github.com/robmclarty/fascicle/blob/v0.17.6/docs/testing.md) for the stand-in engines.
408
- - [troubleshooting.md](https://github.com/robmclarty/fascicle/blob/v0.17.6/docs/troubleshooting.md) for errors and their causes.
407
+ - [testing.md](https://github.com/robmclarty/fascicle/blob/v0.17.7/docs/testing.md) for the stand-in engines.
408
+ - [troubleshooting.md](https://github.com/robmclarty/fascicle/blob/v0.17.7/docs/troubleshooting.md) for errors and their causes.
package/dist/acp.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { c as Step, h as TrajectoryLogger, m as TrajectoryEvent } from "./types-CPqLZOEr.js";
2
- import { M as Tool, N as ToolApprovalHandler } from "./types-C23S11Kk.js";
2
+ import { M as Tool, N as ToolApprovalHandler } from "./types-xYjCEd6i.js";
3
3
  import { AgentApp, ClientCapabilities, ContentBlock, SessionUpdate } from "@agentclientprotocol/sdk";
4
4
  //#region src/acp/types.d.ts
5
5
  /**
package/dist/agents.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { c as Step } from "./types-CPqLZOEr.js";
2
2
  import { r as ToolSchema } from "./types-BK0UW28o.js";
3
- import { l as EffortLevel, u as Engine } from "./types-C23S11Kk.js";
3
+ import { l as EffortLevel, u as Engine } from "./types-xYjCEd6i.js";
4
4
  //#region src/agents/define_agent.d.ts
5
5
  type AgentBuiltPrompt = string | {
6
6
  readonly user: string;
@@ -3217,13 +3217,16 @@ function apply_auth_key(env, config, auth_mode) {
3217
3217
  *
3218
3218
  * Under `auth_mode: 'oauth'` the full `process.env` is inherited instead
3219
3219
  * of just the standard keys, because the CLI needs HOME plus
3220
- * session-specific vars to reach the already-logged-in OAuth session. The
3221
- * auth-mode scrub runs last, after config and caller overrides are merged
3222
- * in, so nothing can re-introduce `ANTHROPIC_API_KEY` under `'oauth'`.
3220
+ * session-specific vars to reach the already-logged-in OAuth session.
3221
+ * `omit_env` drops its names after the caller overrides are merged in, so a
3222
+ * call can't hand back a variable the provider keeps out. The auth-mode
3223
+ * scrub runs last, so nothing can re-introduce `ANTHROPIC_API_KEY` under
3224
+ * `'oauth'`, and a configured `api_key` still reaches the CLI.
3223
3225
  */
3224
3226
  function build_env(config, caller_env, auth_mode) {
3225
3227
  const env = seed_base_env(config, auth_mode);
3226
3228
  if (caller_env !== void 0) copy_string_entries(env, caller_env);
3229
+ for (const key of config.omit_env ?? []) delete env[key];
3227
3230
  apply_auth_key(env, config, auth_mode);
3228
3231
  return env;
3229
3232
  }
@@ -8600,4 +8603,4 @@ function create_engine(config) {
8600
8603
  //#endregion
8601
8604
  export { to_json_schema as n, create_engine as t };
8602
8605
 
8603
- //# sourceMappingURL=engine-BTijBDlY.js.map
8606
+ //# sourceMappingURL=engine-B5iQ3if9.js.map