fascicle 0.17.5 → 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/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