@agentchatme/agent-core 0.5.3 → 0.7.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/dist/presets.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TextsRuntime } from 'agentchatme';
2
- import { a as RunProfile, b as RunRunner, q as RunPreflightOptions, f as RunPreflight, g as RunRequest, c as RunOutcome } from './runner-DYVqz_9P.js';
2
+ import { a as RunProfile, b as RunRunner, f as RunPreflight, q as RunPreflightOptions, g as RunRequest, c as RunOutcome } from './runner-BjCgl4bV.js';
3
3
 
4
4
  /** What a preset needs to build a runner acting as one agent. */
5
5
  interface PresetContext {
@@ -51,12 +51,15 @@ interface Preset {
51
51
  /**
52
52
  * The hosted-tool configuration a listener's run of this preset sees, as
53
53
  * lines for `doctor` (keys never printed): what the run is given, and what
54
- * of the user's own configuration still applies.
54
+ * of the user's own configuration still applies. `profile` is the
55
+ * listener's (`own` changes what is given); absent, the lines are those of
56
+ * the other profiles.
55
57
  */
56
58
  describeMcp(ctx: {
57
59
  readonly home: string;
58
60
  readonly apiBase: string;
59
61
  readonly env?: NodeJS.ProcessEnv;
62
+ readonly profile?: RunProfile;
60
63
  }): string[];
61
64
  /** Variables a service must capture for this runtime (where it keeps its config, when relocated). */
62
65
  readonly serviceEnv: readonly string[];
@@ -112,6 +115,48 @@ declare function withoutParentSession(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv
112
115
  /** `actual` (any text containing `x.y.z`) is at least `minimum`. False when either has no version in it. */
113
116
  declare function semverAtLeast(actual: string, minimum: string): boolean;
114
117
 
118
+ /** The fixed prompt: nothing from any peer, nothing to act on. */
119
+ declare const RUNTIME_CHECK_PROMPT = "Reply with the single word OK.";
120
+ /**
121
+ * The check's own budget. Past it the probe is SIGTERMed, SIGKILLed 5 s later
122
+ * and given up 5 s after that: 55 s at most, inside the engine's
123
+ * `RUNTIME_CHECK_DEADLINE_MS` (60 s).
124
+ */
125
+ declare const RUNTIME_CHECK_BUDGET_MS = 45000;
126
+ /** The most of a check's stdout kept for its `judge` (a result line is a few kB); more is not read. */
127
+ declare const RUNTIME_CHECK_OUTPUT_BYTES: number;
128
+ /** The name of the empty folder a runtime check runs in, beside the runtime's own config. */
129
+ declare const RUNTIME_CHECK_DIR = "agentchat-runtime-check";
130
+ /**
131
+ * The variables an AgentChat key travels in (the daemon's own, the listener's
132
+ * Codex bearer variable): never in a runtime check's environment, whatever
133
+ * the runs carry. The check needs no key.
134
+ */
135
+ declare const RUNTIME_CHECK_KEY_ENV: readonly string[];
136
+ interface RuntimeCheckSpec {
137
+ /** The runtime's name, for the diagnostic. */
138
+ readonly label: string;
139
+ readonly command: string;
140
+ readonly args: readonly string[];
141
+ /** An empty folder of the check's own (created owner-only). */
142
+ readonly cwd: string;
143
+ /** The runs' environment; the key variables are taken out (`RUNTIME_CHECK_KEY_ENV`, `keyEnv`). */
144
+ readonly env: NodeJS.ProcessEnv;
145
+ /** Another variable this runtime's runs carry a key in (a Codex runner's `keyEnv`). */
146
+ readonly keyEnv?: string;
147
+ readonly signal?: AbortSignal;
148
+ /**
149
+ * Reads the runtime's answer (its stdout, bounded) after an exit 0: null
150
+ * when it is a good answer, else why not (ids and flags only, never the
151
+ * text). Absent: exit 0 with something on stdout is ok.
152
+ */
153
+ readonly judge?: (stdout: string) => string | null;
154
+ /** Test seam: `RUNTIME_CHECK_BUDGET_MS`. */
155
+ readonly budgetMs?: number;
156
+ }
157
+ /** Run the check once: ok when the runtime exited 0 having printed an answer. Never throws. */
158
+ declare function runRuntimeCheck(spec: RuntimeCheckSpec): Promise<RunPreflight>;
159
+
115
160
  declare const CLAUDE_CODE_PRESET = "claude-code";
116
161
  /**
117
162
  * Two flags set the floor:
@@ -251,11 +296,36 @@ interface ClaudeRunArgOptions {
251
296
  /**
252
297
  * A file whose text is appended to the system prompt (`--append-system-prompt-file`,
253
298
  * documented since 2.1.69): how an `answer` run, which loads no CLAUDE.md,
254
- * is told its identity line. A file, not argv text: an argument cannot carry
255
- * a line break through a Windows `.cmd` shim.
299
+ * is told its identity line, and how an `own` run is told it whatever its
300
+ * CLAUDE.md holds (a listener's agent is not the one there). A file, not
301
+ * argv text: an argument cannot carry a line break through a Windows `.cmd` shim.
256
302
  */
257
303
  readonly appendSystemPromptFile?: string | undefined;
258
304
  }
305
+ /**
306
+ * The `--settings` a runtime check is given: no hook of the user's (or a
307
+ * workdir repository's) fires on a health check, and the two `ANSWER_ENV`
308
+ * switches again (a settings file's `env` overrides the process environment;
309
+ * `--settings` outranks user, project and local settings). A constant
310
+ * (`claude --help`: a settings value that fails validation is silently ignored
311
+ * in print mode). Every key exists at the 2.1.274 floor.
312
+ */
313
+ declare const RUNTIME_CHECK_SETTINGS: string;
314
+ /**
315
+ * Whether a runtime check's stdout (`--output-format json`) is a good answer:
316
+ * null when it is one result object with `type: "result"`, `subtype:
317
+ * "success"` and `is_error: false`; otherwise why not, in ids and flags only
318
+ * (`is_error`, `api_error_status`, `terminal_reason`), never the result text.
319
+ */
320
+ declare function claudeRuntimeCheckJudge(stdout: string): string | null;
321
+ /**
322
+ * The argv of a runtime check: one `claude -p` with no tool of any kind (no
323
+ * MCP server, no built-in tool), no hooks, never waiting on a prompt; the
324
+ * prompt on stdin, as for a run. `denyReadPaths` are the runs' own deny rules.
325
+ */
326
+ declare function claudeRuntimeCheckArgs(denyReadPaths?: readonly string[]): string[];
327
+ /** The empty folder a runtime check runs in: beside Claude Code's config, outside every denied path. */
328
+ declare function claudeRuntimeCheckWorkdir(configDirOverride: string | undefined): string;
259
329
  /**
260
330
  * The deny paths no rule can carry: on Windows all of them (the rule syntax
261
331
  * for drive paths is undocumented), elsewhere a relative path or one with a
@@ -322,6 +392,8 @@ declare function claudeExtraDirectoriesGrant(configDirOverride: string | undefin
322
392
  * loads no other MCP server — the user's own, a project's, a plugin's, a
323
393
  * claude.ai connector — whatever the user scope registers. `file` must sit
324
394
  * inside a `denyReadPaths` entry (it holds the key), or preflight refuses.
395
+ * An `own` run writes no tool config (it uses the user's servers); its
396
+ * identity-line file is written beside `file` all the same.
325
397
  */
326
398
  interface ClaudeAnswerMcp {
327
399
  readonly file: string;
@@ -335,8 +407,9 @@ interface ClaudeRunnerOptions {
335
407
  /**
336
408
  * The run's working directory; the `work` profile edits and runs shell here.
337
409
  * Must lie outside `denyReadPaths`, or the run cannot read its own cwd —
338
- * preflight says so once and still runs. An `answer` run whose workdir is the
339
- * home folder or contains it works in `answerFallbackWorkdir` instead.
410
+ * preflight says so once and still runs. An `own` or `answer` run whose
411
+ * workdir is the home folder or contains it works in
412
+ * `claudeAnswerFallbackWorkdir` instead.
340
413
  */
341
414
  readonly workdir: string;
342
415
  readonly profile: RunProfile;
@@ -362,15 +435,19 @@ interface ClaudeRunnerOptions {
362
435
  readonly env?: NodeJS.ProcessEnv;
363
436
  }
364
437
  /**
365
- * The folder an `answer` run works in when its configured workdir is the
366
- * user's home folder or contains it (`workdirExposesHome`): an empty folder of
367
- * its own beside Claude Code's config, never inside a denied path. The run
368
- * keeps working — it only cannot read the user's files.
438
+ * The folder an `own` or `answer` run works in when its configured workdir is
439
+ * the user's home folder or contains it (`workdirExposesHome`): an empty folder
440
+ * of its own beside Claude Code's config, never inside a denied path. The run
441
+ * keeps working — it only cannot read the user's files. An `own` run needs
442
+ * this as much: Claude Code lets a run read its working directory without
443
+ * asking in every permission mode, so a home-folder workdir would hand a
444
+ * peer-started run `~/.ssh` whatever the user's allow rules say.
369
445
  */
370
446
  declare function claudeAnswerFallbackWorkdir(configDirOverride: string | undefined): string;
371
447
  declare class ClaudeRunner implements RunRunner {
372
448
  private readonly options;
373
449
  readonly name = "claude";
450
+ readonly label = "Claude Code";
374
451
  private readonly command;
375
452
  /** The workdir warning is one line per process, not one per preflight (preflight repeats every few minutes). */
376
453
  private warnedWorkdir;
@@ -379,7 +456,7 @@ declare class ClaudeRunner implements RunRunner {
379
456
  constructor(options: ClaudeRunnerOptions);
380
457
  /**
381
458
  * Where this runner's runs work: the configured workdir, except that an
382
- * `answer` run never works in the home folder or above it — it gets
459
+ * `own` or `answer` run never works in the home folder or above it — it gets
383
460
  * `claudeAnswerFallbackWorkdir` (its readable folder would be the whole home).
384
461
  */
385
462
  workdir(): string;
@@ -388,8 +465,12 @@ declare class ClaudeRunner implements RunRunner {
388
465
  preflight(options?: RunPreflightOptions): Promise<RunPreflight>;
389
466
  /** `<dir>/<stem>.<run id><ext>`: a file of this run's own beside `file` (the run id reduced to letters, digits and `-`). */
390
467
  private static perRun;
391
- /** The answer run's own files for `runId`: its AgentChat-only tool config (integration path) and its identity-line file. */
392
- private answerRunFiles;
468
+ /**
469
+ * A run's own files for `runId`: an answer run's AgentChat-only tool config
470
+ * (integration path), and the identity-line file of an answer or own run.
471
+ * `work` and `full` write none (they load CLAUDE.md, as before).
472
+ */
473
+ private runFiles;
393
474
  /**
394
475
  * What this runner's runs are denied reading: the key store, and for an
395
476
  * `answer` run also Claude Code's own record of every project
@@ -402,12 +483,27 @@ declare class ClaudeRunner implements RunRunner {
402
483
  private argsFor;
403
484
  /**
404
485
  * The argv of a run — exported for tests to pin per profile. With a `runId`,
405
- * that run's own files (an answer run's tool config and identity-line file);
406
- * without, the configured `answerMcp.file` stands in and no identity file.
486
+ * that run's own files (an answer run's tool config, an answer or own run's
487
+ * identity-line file); without, the configured `answerMcp.file` stands in
488
+ * for an answer run's tool config, and no identity file.
407
489
  */
408
490
  args(runId?: string, identityLine?: boolean): string[];
409
- /** The run's environment: no parent session; an answer run loads no CLAUDE.md and no auto memory (`ANSWER_ENV`). */
491
+ /**
492
+ * The run's environment: no parent session; an answer run loads no CLAUDE.md
493
+ * and no auto memory (`ANSWER_ENV`); an own run carries no `AGENTCHAT_API_KEY`
494
+ * the daemon inherited — it has the user's own shell, and it reaches the
495
+ * hosted tools through its MCP entry, never through that variable.
496
+ */
410
497
  runEnv(): NodeJS.ProcessEnv;
498
+ /**
499
+ * Does the model answer right now, through this runner's binary, sign-in
500
+ * and environment? One `claude -p` with a fixed prompt and no tool at all
501
+ * (`claudeRuntimeCheckArgs`), in its own empty folder, with no key in its
502
+ * environment and no instruction file or memory in its context; ok only
503
+ * when its JSON result says success with no error (`claudeRuntimeCheckJudge`).
504
+ * Its output is read for that alone and never logged. Never throws.
505
+ */
506
+ checkRuntime(options?: RunPreflightOptions): Promise<RunPreflight>;
411
507
  start(request: RunRequest): Promise<RunOutcome>;
412
508
  }
413
509
  /** Where a listener keeps the `--mcp-config` file for this preset, inside its identity home. */
@@ -449,10 +545,31 @@ declare const CODEX_ANSWER_FILESYSTEM = "{ \":workspace_roots\" = \"read\" }";
449
545
  */
450
546
  declare const CODEX_ANSWER_DISABLED_FEATURES: readonly ["shell_tool", "view_image", "image_generation", "plugins", "apps", "memories", "browser_use", "browser_use_external", "computer_use", "in_app_browser"];
451
547
  declare function codexProfileArgs(profile: RunProfile): string[];
548
+ /** The features a runtime check turns off, as an `answer` run does (names at the 0.154.0 floor). */
549
+ declare const CODEX_RUNTIME_CHECK_DISABLED_FEATURES: readonly ["memories", "plugins", "apps"];
550
+ /**
551
+ * The argv of a runtime check: `codex exec` in `dir` (an empty folder), the
552
+ * read-only sandbox, no session files, low reasoning effort, no web search,
553
+ * memories, plugins or connectors, and the hosted AgentChat server switched
554
+ * off for it; the prompt on stdin, as for a run. `agentchatUrl` is the URL the
555
+ * runs pin (with it, the `agentchat` table stays valid whether or not a config
556
+ * layer defines one); without it a config layer must define the table, as the
557
+ * runs need.
558
+ */
559
+ declare function codexRuntimeCheckArgs(dir: string, agentchatUrl?: string): string[];
560
+ /** The empty folder a runtime check runs in, under CODEX_HOME. */
561
+ declare function codexRuntimeCheckWorkdir(codexHome: string): string;
452
562
  /** Where a run's hosted tool server points, and which variable carries its bearer token. */
453
563
  interface CodexMcpOverride {
454
564
  readonly url: string;
455
565
  readonly keyEnv: string;
566
+ /**
567
+ * A headers helper command (`http_headers_helper`) in place of the bearer
568
+ * variable: the run's environment then carries no key. A listener's `own`
569
+ * runs use one (`codexListenerHeadersHelperPath`): with the user's own
570
+ * shell, an environment variable is one `env` away.
571
+ */
572
+ readonly headersHelper?: string;
456
573
  /** The version named in `X-AgentChat-Client-Version` (the front door that placed the run). Defaults to this engine's. */
457
574
  readonly clientVersion?: string;
458
575
  }
@@ -505,12 +622,16 @@ interface CodexRunnerOptions {
505
622
  readonly env?: NodeJS.ProcessEnv;
506
623
  /** Test seam: how long `codex mcp list` may take (`CODEX_MCP_LIST_TIMEOUT_MS`). */
507
624
  readonly mcpListTimeoutMs?: number;
625
+ /** Why no run may start (preflight and every run say it); absent: runs start. */
626
+ readonly refuse?: string;
508
627
  }
509
628
  /**
510
- * The folder an `answer` run works in when its configured workdir is the
511
- * user's home folder or contains it (`workdirExposesHome`): an empty folder of
512
- * its own under CODEX_HOME. The run keeps working — it only cannot reach the
513
- * user's files through its workspace root.
629
+ * The folder an `own` or `answer` run works in when its configured workdir is
630
+ * the user's home folder or contains it (`workdirExposesHome`): an empty folder
631
+ * of its own under CODEX_HOME. The run keeps working — it only cannot reach the
632
+ * user's files through its workspace root. An `own` run needs this as much: a
633
+ * user's `workspace-write` sandbox would let a peer-started run write anywhere
634
+ * under the workspace root, which would be the whole home.
514
635
  */
515
636
  declare function codexAnswerFallbackWorkdir(codexHome: string): string;
516
637
  /** How long `codex mcp list` may take before an answer run is given up (not started). */
@@ -534,6 +655,25 @@ declare function parseCodexMcpList(stdout: string): {
534
655
  ok: false;
535
656
  detail: string;
536
657
  };
658
+ /**
659
+ * What the `agentchat` entry of `codex mcp list --json` would authenticate
660
+ * with besides a headers helper: `bearer_token_env_var`, or an `Authorization`
661
+ * in `env_http_headers` (names only, never values). Codex sends either in
662
+ * place of the helper's `Authorization` ("Helper Authorization is used only
663
+ * when the request has no explicit bearer/OAuth credential",
664
+ * rmcp-client/src/http_headers.rs). A static `http_headers` is not counted:
665
+ * a listener's run replaces that whole table. An entry the list does not
666
+ * have authenticates with nothing else.
667
+ */
668
+ declare function codexAgentchatExplicitAuth(stdout: string): {
669
+ ok: true;
670
+ keys: string[];
671
+ } | {
672
+ ok: false;
673
+ detail: string;
674
+ };
675
+ /** The key variables a `.env` file sets (`AGENTCHAT_API_KEY`, `LISTENER_KEY_ENV`): names only. Codex loads `$CODEX_HOME/.env` into its own environment, and a run's commands inherit it. */
676
+ declare function codexDotEnvKeyNames(content: string): string[];
537
677
  /**
538
678
  * `-c mcp_servers.<name>.enabled=false` for every listed server but AgentChat's,
539
679
  * or why that cannot be done. Only names Codex listed: an override for a server
@@ -570,21 +710,30 @@ declare function codexConfigLayerFiles(codexHome: string, workdir: string, platf
570
710
  declare class CodexRunner implements RunRunner {
571
711
  private readonly options;
572
712
  readonly name = "codex";
713
+ readonly label = "Codex";
573
714
  private readonly command;
574
715
  private warnedHome;
575
716
  /** The last good listing and what it depended on: a stranger's DM does not cost a listing (and its contacts to the user's MCP hosts) on every run. */
576
717
  private listing;
718
+ /** The last listing that showed a listener's own run authenticates with its helper alone (`ownAuthProblem`). */
719
+ private ownListing;
577
720
  constructor(options: CodexRunnerOptions);
578
721
  /**
579
722
  * Where this runner's runs work (`-C`): the configured workdir, except that an
580
- * `answer` run never has the home folder or above it as its workspace root —
581
- * it gets `codexAnswerFallbackWorkdir`.
723
+ * `own` or `answer` run never has the home folder or above it as its
724
+ * workspace root — it gets `codexAnswerFallbackWorkdir`.
582
725
  */
583
726
  workdir(): string;
584
727
  preflight(options?: RunPreflightOptions): Promise<RunPreflight>;
585
728
  /** The exact argv one run uses — exported for tests to pin per profile. An `answer` run adds `answerMcpDisables()` before the prompt. */
586
729
  args(): string[];
587
- /** The child environment: Codex's home and the key the hosted server needs, under the configured name. */
730
+ /**
731
+ * The child environment: Codex's home and the key the hosted server needs,
732
+ * under the configured name. An `own` run gets no key at all — not the
733
+ * configured one, not an `AGENTCHAT_API_KEY` the daemon inherited: it has
734
+ * the user's own shell, and Codex hands a run's commands its environment.
735
+ * Its hosted server authenticates through a headers helper instead.
736
+ */
588
737
  env(): NodeJS.ProcessEnv;
589
738
  /**
590
739
  * For an `answer` run: `-c mcp_servers.<name>.enabled=false` for every MCP
@@ -602,8 +751,50 @@ declare class CodexRunner implements RunRunner {
602
751
  ok: false;
603
752
  detail: string;
604
753
  }>;
754
+ /**
755
+ * For a listener's `own` run (its key from a headers helper, none in its
756
+ * environment): why it must not start, or null. Two things would make it
757
+ * carry or use a key that is not the helper's — another agent's, as a
758
+ * Codex integration from 0.5.2 or earlier left them: `$CODEX_HOME/.env`
759
+ * setting a key variable (Codex loads it into the run's environment), and an
760
+ * `agentchat` entry that names `bearer_token_env_var` or an `Authorization`
761
+ * in `env_http_headers` in any config layer (Codex sends that in place of the
762
+ * helper's: the run would act as that other agent). The entry is asked of
763
+ * Codex itself (`codex mcp list --json` with the run's own flags, cached as
764
+ * an answer run's listing is); a listing that fails means no run.
765
+ */
766
+ ownAuthProblem(): Promise<string | null>;
767
+ /** The run's config flags (`-c <v>` and `--disable <feature>` pairs) and what a listing of them depends on. */
768
+ private listingFlags;
769
+ /** `codex mcp list --json <flags>` from the run's workdir, with the run's environment: its output, or why there is none. Killed with its whole tree past its time. */
770
+ private listMcpServers;
771
+ /**
772
+ * Does the model answer right now, through this runner's binary, sign-in,
773
+ * CODEX_HOME and environment? One `codex exec` with a fixed prompt in its
774
+ * own empty folder, read-only, with the hosted AgentChat server switched off
775
+ * (`codexRuntimeCheckArgs`) and no key in its environment. Its output is
776
+ * discarded. Never throws.
777
+ */
778
+ checkRuntime(options?: RunPreflightOptions): Promise<RunPreflight>;
605
779
  start(request: RunRequest): Promise<RunOutcome>;
606
780
  }
781
+ /** Where a listener's `own` runs' headers helper lives: `<home>/presets/codex.mcp-headers.mjs` (owner-only; it holds no key). */
782
+ declare function codexListenerHeadersHelperPath(home: string): string;
783
+ /**
784
+ * The helper, byte for byte. It reads the `credentials` file of the home whose
785
+ * `presets/` it sits in and nothing else (no environment variable: the
786
+ * identity is the home's), prints `{"Authorization":"Bearer <key>"}`, or `{}`
787
+ * when there is no key, and never fails.
788
+ */
789
+ declare const CODEX_LISTENER_HEADERS_HELPER_SOURCE: string;
790
+ /**
791
+ * The helper command: this Node and the script, each quoted for the shell
792
+ * Codex runs it in — single quotes on POSIX (`sh -c`; a `'` inside written as
793
+ * `'\\''`), double quotes on Windows (`cmd /C`). Null when a path holds what
794
+ * that quoting cannot carry (`"`, `%`, `$` or a backtick on Windows) or a line
795
+ * break anywhere.
796
+ */
797
+ declare function codexHeadersHelperCommand(script: string, node?: string, platform?: NodeJS.Platform): string | null;
607
798
  /**
608
799
  * The keys of `[mcp_servers.agentchat]` in a config.toml, or null when the
609
800
  * table is absent. Keys only — a value can be a secret. A line scan, not a
@@ -617,4 +808,4 @@ declare const PRESETS: Readonly<Record<string, Preset>>;
617
808
  declare function presetNamed(name: string): Preset | null;
618
809
  declare function presetNames(): string[];
619
810
 
620
- export { AGENTCHAT_TOOL_ALLOW, ANSWER_DENIED_TOOLS, ANSWER_ENV, ANSWER_SETTINGS, ANSWER_TOOLS, CLAUDE_CODE_ENV_KEPT, CLAUDE_CODE_PRESET, CLAUDE_MCP_SERVER_NAME, CLAUDE_SESSION_ENV, CODEX_ANSWER_DISABLED_FEATURES, CODEX_ANSWER_FILESYSTEM, CODEX_ANSWER_PERMISSIONS, CODEX_MANAGED_PROXY_ENV, CODEX_MCP_LIST_MAX_AGE_MS, CODEX_MCP_LIST_TIMEOUT_MS, CODEX_MCP_SERVER_NAME, CODEX_PRESET, CODEX_PROBE_TIMEOUT_MS, CODEX_PROMPT_FROM_STDIN, CODEX_SESSION_ENV, type ClaudeAnswerMcp, type ClaudeRunArgOptions, ClaudeRunner, type ClaudeRunnerOptions, type ClaudeSignIn, type CodexMcpOverride, CodexRunner, type CodexRunnerOptions, LISTENER_KEY_ENV, MIN_CLAUDE_CODE_VERSION, MIN_CODEX_VERSION, PARENT_ENV_KEYS, PRESETS, PROBE_TIMEOUT_MS, type Preset, type PresetContext, type PresetInspection, WEB_TOOLS, WORK_TOOLS, agentchatTableKeys, buildClaudeEnv, claudeAnswerFallbackWorkdir, claudeCodePreset, claudeConfigDirFrom, claudeExtraDirectoriesGrant, claudeHomeFor, claudeIsLoggedIn, claudeManagedSettingsDir, claudeMcpConfig, claudeMcpConfigPath, claudeProfileArgs, claudeProjectsDirFor, claudeRunArgs, claudeSettingsFilesGrantingDirectories, claudeSignIn, claudeUserStatePathFor, codexAnswerFallbackWorkdir, codexClientHeadersToml, codexConfigLayerFiles, codexHomeFrom, codexIsLoggedIn, codexMcpDisableArgs, codexMcpOverrideArgs, codexPinnedUrlArgs, codexPreset, codexProfileArgs, codexRunArgs, codexServerNameAddressable, deniedAncestorOf, inexpressibleDenyPaths, inspectClaudeRuntime, inspectCodexRuntime, isParentSessionEnv, parseCodexMcpList, presetNamed, presetNames, readDenyRules, semverAtLeast, withoutParentSession, workdirPaths, workdirReadRules };
811
+ export { AGENTCHAT_TOOL_ALLOW, ANSWER_DENIED_TOOLS, ANSWER_ENV, ANSWER_SETTINGS, ANSWER_TOOLS, CLAUDE_CODE_ENV_KEPT, CLAUDE_CODE_PRESET, CLAUDE_MCP_SERVER_NAME, CLAUDE_SESSION_ENV, CODEX_ANSWER_DISABLED_FEATURES, CODEX_ANSWER_FILESYSTEM, CODEX_ANSWER_PERMISSIONS, CODEX_LISTENER_HEADERS_HELPER_SOURCE, CODEX_MANAGED_PROXY_ENV, CODEX_MCP_LIST_MAX_AGE_MS, CODEX_MCP_LIST_TIMEOUT_MS, CODEX_MCP_SERVER_NAME, CODEX_PRESET, CODEX_PROBE_TIMEOUT_MS, CODEX_PROMPT_FROM_STDIN, CODEX_RUNTIME_CHECK_DISABLED_FEATURES, CODEX_SESSION_ENV, type ClaudeAnswerMcp, type ClaudeRunArgOptions, ClaudeRunner, type ClaudeRunnerOptions, type ClaudeSignIn, type CodexMcpOverride, CodexRunner, type CodexRunnerOptions, LISTENER_KEY_ENV, MIN_CLAUDE_CODE_VERSION, MIN_CODEX_VERSION, PARENT_ENV_KEYS, PRESETS, PROBE_TIMEOUT_MS, type Preset, type PresetContext, type PresetInspection, RUNTIME_CHECK_BUDGET_MS, RUNTIME_CHECK_DIR, RUNTIME_CHECK_KEY_ENV, RUNTIME_CHECK_OUTPUT_BYTES, RUNTIME_CHECK_PROMPT, RUNTIME_CHECK_SETTINGS, type RuntimeCheckSpec, WEB_TOOLS, WORK_TOOLS, agentchatTableKeys, buildClaudeEnv, claudeAnswerFallbackWorkdir, claudeCodePreset, claudeConfigDirFrom, claudeExtraDirectoriesGrant, claudeHomeFor, claudeIsLoggedIn, claudeManagedSettingsDir, claudeMcpConfig, claudeMcpConfigPath, claudeProfileArgs, claudeProjectsDirFor, claudeRunArgs, claudeRuntimeCheckArgs, claudeRuntimeCheckJudge, claudeRuntimeCheckWorkdir, claudeSettingsFilesGrantingDirectories, claudeSignIn, claudeUserStatePathFor, codexAgentchatExplicitAuth, codexAnswerFallbackWorkdir, codexClientHeadersToml, codexConfigLayerFiles, codexDotEnvKeyNames, codexHeadersHelperCommand, codexHomeFrom, codexIsLoggedIn, codexListenerHeadersHelperPath, codexMcpDisableArgs, codexMcpOverrideArgs, codexPinnedUrlArgs, codexPreset, codexProfileArgs, codexRunArgs, codexRuntimeCheckArgs, codexRuntimeCheckWorkdir, codexServerNameAddressable, deniedAncestorOf, inexpressibleDenyPaths, inspectClaudeRuntime, inspectCodexRuntime, isParentSessionEnv, parseCodexMcpList, presetNamed, presetNames, readDenyRules, runRuntimeCheck, semverAtLeast, withoutParentSession, workdirPaths, workdirReadRules };