aptly 0.1.15 → 0.1.16

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.
@@ -1,66 +1,55 @@
1
1
  # Installation and updates
2
2
 
3
- [한국어](../ko/installation.md) · [English](../en/installation.md) · [简体中文](../zh-CN/installation.md) · [日本語](../ja/installation.md)
3
+ [한국어](../ko/installation.md) · **English** · [简体中文](../zh-CN/installation.md) · [日本語](../ja/installation.md)
4
4
 
5
- [Guide home](../en.md)
5
+ [Guide contents](../en.md)
6
6
 
7
- ## On this page
7
+ ## Contents
8
8
 
9
9
  - [Installation](#guide-installation)
10
- - [npm install-script approval](#guide-npm-install-scripts)
10
+ - [Allow npm install scripts](#guide-npm-install-scripts)
11
11
  - [Package updates](#guide-package-updates)
12
12
  - [New-version notifications](#guide-version-notifications)
13
13
  - [Command help (0.1.8+)](#guide-command-help)
14
- - [Skipping registration and removing it](#guide-skip-and-remove)
14
+ - [Skip registration or remove](#guide-skip-and-remove)
15
15
 
16
16
  <a id="guide-installation"></a>
17
17
 
18
18
  ## Installation
19
19
 
20
- Requires Node.js 24 or later and Claude Code or Codex. Install the latest stable npm release globally:
21
-
22
- **Before upgrading an existing persistent ledger to 0.1.2 or later**, stop every host, MCP server, standalone CLI, and older process that can access it. The persistent gate cannot coexist with older writers. Fresh installations need no legacy-lock quarantine. If an old empty lock remains, follow the [ledger transition procedure](troubleshooting.md#guide-ledger-lock-recovery): quarantine only a confirmed legacy lock while offline and preserve the JSON ledger, `unknown` records, costs, and completed cache.
20
+ You need Node.js 24 or later, Claude Code or Codex, and an OpenAI API key.
23
21
 
24
22
  ```sh
25
23
  npm install -g aptly@latest --allow-scripts=aptly
26
24
  aptly set default
25
+ aptly set env OPENAI_API_KEY
27
26
  aptly --version
28
27
  ```
29
28
 
30
- Use `aptly --version` to check the installed version. Switching Node.js environments may require reinstalling.
31
-
32
- `postinstall` registers the MCP server and a `PreToolUse` Hook in the current user's existing host configuration directories. If you use `CODEX_HOME` or `CLAUDE_CONFIG_DIR`, pass the same environment to installation. Automatic registration skips host directories that do not exist; explicit `setup` can create them. To register only one host, use `--client codex` or `--client claude`.
29
+ `set default` registers hosts and asks what information to send to the Decisions API. Enter the key through the hidden prompt; it is stored in the OS credential store. Restart the host and approve the new Hook in Codex `/hooks`.
33
30
 
34
- New registrations set `ROUTER_PROVIDER=decisions`, the Hook's `defaults` policy, and a private ledger for each host. Other settings and Hooks, and existing Aptly commands, environments, providers, and ledger paths, are preserved. Existing fixture settings are not automatically switched to paid mode.
31
+ The install script registers MCP and Hooks in existing host directories. If a directory does not exist, register with `aptly setup --client all`. Accounts using `CODEX_HOME` or `CLAUDE_CONFIG_DIR` must pass the same environment during installation and setup. Existing settings and launcher wrappers are preserved. See [account homes and keys](configuration.md).
35
32
 
36
33
  <a id="guide-npm-install-scripts"></a>
37
34
 
38
- ## npm install-script approval
39
-
40
- The installation command above uses `--allow-scripts=aptly` to explicitly allow Aptly's `postinstall` for that installation. Support was checked with npm 11.19.1; the command does not change user-wide npm approval settings. See the [official npm guidance](https://docs.npmjs.com/cli/v11/commands/npm-rebuild/#allow-scripts).
41
-
42
- `npm warn install-scripts ... not yet covered by allowScripts` reports an unreviewed policy entry. In npm 11.19.1, this warning alone does not mean scripts were blocked. Behavior depends on npm version, strict policy, and `ignore-scripts`; installation success alone does not verify MCP or Hook registration. npm may hide postinstall output.
35
+ ## Allow npm install scripts
43
36
 
44
- For npm versions without this option, or to configure explicitly instead of automatic registration, run:
37
+ `--allow-scripts=aptly` allows only this installation's `postinstall` and does not change npm's global configuration (verified with npm 11.19.1). If the option is unsupported or you do not want automatic registration, run:
45
38
 
46
39
  ```sh
47
40
  npm install -g aptly@latest --ignore-scripts
48
41
  aptly setup --client all
49
42
  ```
50
43
 
51
- Transmission review is available from 0.1.11 and does not prompt during npm lifecycle installation. When upgrading from 0.1.10, update the package first, then run interactive `aptly setup`, `aptly set default`, or `aptly set transmission --review` with the same account environment. The update process does not perform the new review or imply consent; see [transmission review](transmission.md#guide-transmission-scope).
44
+ Do not infer Hook registration from installation success or `npm warn install-scripts` alone. npm versions or policies may skip the install script. See [npm documentation](https://docs.npmjs.com/cli/v11/commands/npm-rebuild/#allow-scripts).
52
45
 
53
- Explicit `setup` works regardless of lifecycle execution. It preserves existing launchers; use the [launcher recovery steps](troubleshooting.md#guide-launcher-recovery) for stale paths. Key setup, MCP restart, and Codex `/hooks` trust review remain separate steps.
54
-
55
- The 0.1.11 or later installer writes only a stderr instruction to run `aptly set transmission --review` when setup completes successfully and registered clients have reviews pending; it does not ask a question or record a choice.
46
+ The install script does not obtain transmission consent. Choose the [transmission scope](transmission.md) later in interactive `aptly setup`, `aptly set default`, or `aptly set transmission --review`.
56
47
 
57
48
  <a id="guide-package-updates"></a>
58
49
 
59
50
  ## Package updates
60
51
 
61
- `aptly update` requires **Aptly 0.1.3 or later**. It requires a verified global npm installation and installs `aptly@latest` into the same verified prefix as the running package. Local installations, source checkouts, and unverified paths are rejected. If the effective npm configuration has `dry-run=true`, the command refuses with `update_dry_run_enabled` before starting installation. If configuration cannot be verified, it stops with `update_configuration_unverified`. A dry-run is never reported as a successful update.
62
-
63
- Stop other host, MCP, and CLI processes using the ledger before updating, following the transition steps above. The command skips lifecycle scripts; explicitly configure afterward and restart hosts:
52
+ Stop the relevant hosts, MCP servers, and CLI processes, then run from a verified global npm installation:
64
53
 
65
54
  ```sh
66
55
  aptly update
@@ -68,36 +57,39 @@ aptly setup --client all
68
57
  aptly --version
69
58
  ```
70
59
 
71
- Existing MCP launchers and user wrappers are not automatically migrated. Follow the [launcher recovery instructions](troubleshooting.md#guide-launcher-recovery) if old paths remain. Key setup and Codex `/hooks` trust review remain separate. For npm authentication, network, or permission failures, use the manual installation instructions. Updates are never installed automatically.
60
+ `update` installs the latest version in the same npm prefix and preserves settings and keys. It does not run install scripts. Restart the host after setup. On npm errors or local/source installations, use the manual installation command above. npm configuration with `dry-run=true` is rejected.
61
+
62
+ A stable launcher's preserved copy is separate from the global package. Update it with an [explicit migration](configuration.md#guide-stable-launcher). If the old Node path has disappeared, follow [launcher recovery](troubleshooting.md#guide-launcher-recovery).
63
+
64
+ <details>
65
+ <summary>Upgrade from a pre-0.1.2 ledger</summary>
66
+
67
+ Stop all older host, MCP, and CLI writers using the same ledger. The new persistent lock cannot be used with older writers. Quarantine old empty locks offline as described in [ledger lock migration](troubleshooting.md#guide-ledger-lock-recovery), and preserve the JSON ledger, unknown entries, costs, and completion cache.
68
+
69
+ </details>
72
70
 
73
71
  <a id="guide-version-notifications"></a>
74
72
 
75
73
  ## New-version notifications
76
74
 
77
- **Aptly 0.1.3 or later** checks the latest stable version during interactive human-facing CLI commands and suggests `aptly update` on stderr when a newer version exists. All three standard streams must be terminals. MCP serving, automatic setup, recommendation/classification paths, pipes, and CI skip checks. JSON stdout and MCP/Hook payloads stay unchanged.
78
-
79
- Only public Aptly version metadata is requested from the npm registry; no key, task summary, or host configuration is sent. Network and body reads are limited to 800ms and 16KiB. Results are cached at `~/.cache/aptly/update-check.json` for 24 hours, with a one-hour cooldown after failure. Network/cache errors cannot fail the requested command. Set `APTLY_NO_UPDATE_NOTIFIER=1` in the CLI environment to disable checks; it is not a supported key for `aptly set env`. Notifications never install updates.
75
+ The interactive CLI checks for the latest version and reports it on stderr; it does not update automatically. MCP, Hooks, pipes, and CI do not check. Only public npm version information is queried; tasks, keys, and settings are not sent. Results are cached for 24 hours and errors do not fail the original command. To disable this, set `APTLY_NO_UPDATE_NOTIFIER=1` in the execution environment (not through `set env`).
80
76
 
81
77
  <a id="guide-command-help"></a>
82
78
 
83
- ## Command help (0.1.8+)
84
-
85
- Consistent per-command and nested help is supported from Aptly 0.1.8. Use these forms:
79
+ ## Command help
86
80
 
87
81
  ```sh
88
82
  aptly --help
89
83
  aptly setup -h
90
- aptly set default --help
91
84
  aptly set env OPENAI_API_KEY --help
92
- aptly budget status --help
93
85
  aptly help catalog refresh
94
86
  ```
95
87
 
96
- `--help`, `-h` and `aptly help <command path>` only show usage. They do not read settings, supplied files, stdin or credential stores; prompt; change settings; call APIs or model metadata endpoints; install/update; or run update notifications. Help can follow valid options, but unknown paths/options, invalid supplied values and contradictory option combinations remain errors. Required positional arguments may be omitted to discover usage. A form such as `--output --help` is a missing option value, not a help request that supplies an output path.
88
+ `--help`, `-h`, and `aptly help <command path>` display usage without reading settings or keys or calling the API. Invalid options and missing option values are errors.
97
89
 
98
90
  <a id="guide-skip-and-remove"></a>
99
91
 
100
- ## Skipping registration and removing it
92
+ ## Skip registration or remove
101
93
 
102
94
  ```sh
103
95
  APTLY_SKIP_SETUP=1 npm install -g aptly@latest
@@ -105,10 +97,6 @@ aptly setup --client codex --mode defaults
105
97
  aptly remove --client all
106
98
  ```
107
99
 
108
- `CI` or npm `--ignore-scripts` also skips registration. Use `setup` to register later. To change mode, remove the registration and run setup with the desired `--mode`; `advisory` only supplies advice. For `partial`, check each host’s error codes. Removal preserves user-modified entries and reports conflicts.
109
-
110
- ## Related topics
111
-
112
- [Configuration and model candidates](configuration.md) · [Troubleshooting](troubleshooting.md)
100
+ `CI` and `--ignore-scripts` also skip automatic registration. `remove` removes only unchanged Aptly-owned entries and preserves user changes. If the result is `partial`, check each host's error. To change modes, remove the registration and register with the desired `--mode`. `advisory` also sends task information when the transmission scope permits it.
113
101
 
114
- [Guide home](../en.md)
102
+ [Configuration](configuration.md) · [Troubleshooting](troubleshooting.md) · [Guide contents](../en.md)
@@ -1,37 +1,35 @@
1
- # Decisions API transmission
1
+ # Decisions API transmission scope
2
2
 
3
- [한국어](../ko/transmission.md) · [English](../en/transmission.md) · [简体中文](../zh-CN/transmission.md) · [日本語](../ja/transmission.md)
3
+ [한국어](../ko/transmission.md) · **English** · [简体中文](../zh-CN/transmission.md) · [日本語](../ja/transmission.md)
4
4
 
5
- [Guide home](../en.md)
5
+ [Guide contents](../en.md)
6
6
 
7
- The transmission review and `--review` command described below are **available from Aptly 0.1.11**. If you use 0.1.10, update the package first.
7
+ ## Contents
8
8
 
9
- ## On this page
10
-
11
- - [Decisions API transmission scope](#guide-transmission-scope)
12
- - [Outbound content and filtering limits](#guide-transmission-limits)
9
+ - [Choose a transmission scope](#guide-transmission-scope)
10
+ - [Content and limits](#guide-transmission-limits)
13
11
 
14
12
  <a id="guide-transmission-scope"></a>
15
13
 
16
- ## Decisions API transmission scope
17
-
18
- The transmission commands in this section are supported from Aptly 0.1.7.
14
+ ## Choose a transmission scope
19
15
 
20
- Transmission means **sending local task information to the OpenAI Decisions API**, not providing tasks to Aptly developers. Application mode `defaults/advisory` and transmission scope are independent. New registrations use v2 policy with `unselected` scope and make no automatic transmission.
16
+ The recipient is the **OpenAI Decisions API**, not the Aptly developer. New registrations start `unselected` and do not transmit automatically.
21
17
 
22
- For upgrades from 0.1.10: in that version, interactive `aptly set default` asks only for unselected hosts; Enter selects `none`. Noninteractive runs and postinstall do not prompt or imply consent.
18
+ | Scope | Information available for automatic recommendations |
19
+ |---|---|
20
+ | `none` | No automatic transmission; preserve the original call |
21
+ | `description` | Send only the caller-provided description; request more context if absent |
22
+ | `excerpt` | Allow explicit descriptions and supported native task excerpts |
23
23
 
24
- From 0.1.11, the first normal interactive `aptly setup` or `aptly set default` presents one grouped review for clients awaiting review, showing each current value, provenance, and default or overridden home. `excerpt` is recommended as option 3. Enter or keep preserves an existing explicit or legacy scope, including `none`; an unselected scope becomes `none`. Explicit `setup --transmission` or `set transmission <scope>` records the actual choice as reviewed. A private revision 1 marker is stored per client home, independent of package version, mode, and statistics, so ordinary patch updates and restarts do not repeat the review.
24
+ The first interactive `setup` or `set default` asks for the scope of homes awaiting review. The recommended option is `excerpt`; Enter preserves an existing choice or selects `none` if unselected. Automatic installation, CI, and nonterminal execution are not treated as consent. Cancellation leaves the transmission choice unchanged, though earlier default registration may have completed.
25
25
 
26
- The command below is supported from 0.1.11 and always asks again by explicit request. If you use 0.1.10, update first:
26
+ To review again, run (since 0.1.11):
27
27
 
28
28
  ```sh
29
29
  aptly set transmission --review
30
30
  ```
31
31
 
32
- Canceling leaves scopes and review markers unchanged; normal setup or default configuration may already have applied non-transmission defaults. Automatic setup, check, migrate, explicit-transmission setup, CI, non-TTY execution, skipped setup, npm lifecycle scripts, MCP, Hooks, help, show, and statistics reads do not prompt. Prompts use stderr and leave JSON stdout clean. Existing disabled policies, modes, launchers, keys, ledgers, statistics, and trust settings are preserved.
33
-
34
- The 0.1.10 update process cannot immediately load the updated CLI’s new question. After updating to 0.1.11 or later, run interactive `aptly setup`, `aptly set default`, or `aptly set transmission --review` with the same account environment. `aptly update` in 0.1.11 or later also prints the next setup command without spawning a new process.
32
+ You can also show the current value or select a scope directly. Run only one of the change commands below. Choose targets with `--client codex|claude|all`.
35
33
 
36
34
  ```sh
37
35
  aptly set transmission --show
@@ -40,34 +38,31 @@ aptly set transmission description
40
38
  aptly set transmission excerpt
41
39
  ```
42
40
 
43
- The top-level `status` in `--show` is `complete` (exit 0) when the query completes and `partial` (exit 1) for incomplete expected setup or corrupt or unreadable state. `none`, `unselected`, and genuinely unconfigured clients, including manual direct-only MCP without an expected automatic policy, are completed queries. Successful client results remain available when another client fails. Existing client JSON fields and values are retained; strict full-object consumers must accept the additive `status`. Some legacy client statuses conflate unconfigured and error states, so the aggregate also reflects checked query health. `complete` does not certify host routing, model, or trust readiness. Reads do not repair setup, obtain consent, or call a provider, and do not print raw paths, input, keys, or stacks.
41
+ Restart MCP after changes. Existing v1 policies remain legacy `excerpt` until changed. Operator changes and other wrappers are not automatically adopted. In-flight transmissions cannot be recalled, and results, retries, or fresh delegations from before the change are not applied to the new policy. Do not bypass conflicts with a new paid ID.
44
42
 
45
- The change commands above show alternatives; run only the one you want. Use `--client codex|claude|all` to select hosts. `none` disables automatic transmission and preserves the original call. `description` permits only a parent-supplied description. Without one, it requests context before calling the API and never falls back to native body or label. `defaults` denies the unresolved spawn; `advisory` supplies feedback only. `excerpt` permits existing native excerpts and explicit descriptions. Source, size and known-secret checks establish neither non-sensitive content nor user consent.
43
+ `--show` returning `complete`/exit code 0 means the query completed, including when the value is unset or `none`. Damaged, missing, or conflicting expected settings yield `partial`/exit code 1. This command does not verify host readiness or consent.
46
44
 
47
- Existing v1 policies remain byte-identical and report `excerpt` with `legacy` provenance. An explicit change migrates the policy to v2 and updates its ownership receipt together. Modified policies and custom launchers are not silently adopted; conflicts preserve them. Keys, ledgers and unknown records are not deleted. Restart MCP after changes. Already-started transmission cannot be recalled; changed policy prevents in-flight results, retry and fresh preparation from applying. Do not bypass an old call-binding conflict with a new paid identity. Explicit `recommend_agent` and `aptly recommend` requests remain separate and are not prohibited by this automatic-transmission setting.
45
+ `advisory` limits application; it does not prohibit transmission. If a `description` is insufficient, `defaults` blocks the spawn and `advisory` reports guidance. `recommend_agent` and `aptly recommend` are separate explicit requests and are not prohibited by the automatic transmission setting.
48
46
 
49
- Manually setting `enabled: false` remains an emergency stop, but can conflict with ownership records. Use the commands above for normal changes and never edit ownership receipts to bypass checks.
47
+ <details>
48
+ <summary>Emergency stop by editing the policy</summary>
50
49
 
51
- <a id="guide-transmission-limits"></a>
50
+ Changing only `enabled` to `false` in the existing private policy at `APTLY_HOOK_POLICY_PATH` preserves the original call before automatic classification and binding. Do not edit other fields or ownership records. Use the CLI above for ordinary changes because ownership conflicts can result. Do not clear the policy path as a stop method: it may switch to the strict path. Already started transmissions and explicit direct recommendations cannot be canceled this way.
52
51
 
53
- ## Outbound content and filtering limits
52
+ </details>
54
53
 
55
- Under `excerpt` scope, Without prepared context, automatic classification `summary` is an **excerpt assembled from an accepted task label and the clipped first paragraph** of the body. It is not a semantic rewrite or anonymization. Its UTF-8 size is at most `min(4000, max_summary_bytes)`; this is not a limit on the whole HTTP request. The opaque-message fallback in Codex uses only a sufficiently descriptive `task_name`, without decoding or transmitting that body. Labels can also contain sensitive information.
56
-
57
- A valid `prepare_spawn_context` description and fixed prefix replace the native excerpt for classification; registration itself makes no API call. After a needs-context response, `retry_spawn_recommendation` can classify one new supplement with a fixed prefix, without appending the earlier body. Both paths limit the raw description to `min(3800, max_summary_bytes - 96)` bytes and the prefixed summary to `min(4000, max_summary_bytes)` bytes. `prepare_fresh_delegation` itself reuses completed advice without another classification and returns standalone instructions as local next-call arguments. A Codex call submitted with the returned explicit model and effort is currently preserved by the Hook as `explicit_model`, without classification. Checking a later call does not imply another classification. None of these paths establishes that descriptions are non-sensitive or automatically anonymized.
58
-
59
- Decisions receives `client`, `task.summary`, `task.operation`, `task.context_sufficient`, candidate profile IDs, model/effort descriptions, and configured model facts. The classification API key is sent in `Authorization`; the request ID is sent in `X-Client-Request-Id`. Automatic IDs are hashes; direct recommendation IDs are caller-supplied. Do not put secrets in IDs or candidate descriptions.
54
+ <a id="guide-transmission-limits"></a>
60
55
 
61
- To disable automatic sharing, change **only `enabled` to `false`** in the existing private policy file referenced by `APTLY_HOOK_POLICY_PATH`. Preserve the other fields and ownership record. Subsequent automatic Hook calls preserve the original call before classification or creation of a call-binding file. This cannot undo a transmission already started or recall information received by the server. Editing a generated policy can cause ownership conflicts in setup, configuration, or removal commands; those commands do not overwrite the disabled policy. Do not edit ownership records to bypass the checks.
56
+ ## Content and limits
62
57
 
63
- When the transmission scope permits it, `mode: advisory` still transmits classification data; it is not a privacy opt-out. Removing `APTLY_HOOK_POLICY_PATH` can activate the older strict path, so do not use removal as an alternative. `enabled: false` does not block explicit `recommend_agent` or `aptly recommend` requests.
58
+ In `excerpt` scope, when no description was registered in advance, the automatic classification `summary` consists of an allowed task label and a **truncated excerpt of the first paragraph** of the body. It is not newly summarized or anonymized. Its UTF-8 size is at most `min(4000, max_summary_bytes)`; this is not a limit on the entire HTTP request. The Codex opaque-message fallback uses only a sufficiently specific `task_name`, without decrypting or sending the body. Labels can also contain sensitive information.
64
59
 
65
- For control over the shared summary, disable automatic sharing and write only the information needed for a direct recommendation. Aptly does not automatically fetch documents at URLs or attach source files mentioned in the summary. Checks for known key and Bearer patterns do not provide complete secret detection or establish that text is safe to transmit.
60
+ When a valid description is registered with `prepare_spawn_context`, a fixed prefix and that description replace the native excerpt for classification. Registration itself does not call the API. After an insufficient-context response, `retry_spawn_recommendation` retries once with a fixed prefix and a new supplemental description, without appending the previous body. In both paths, the raw description is limited to `min(3800, max_summary_bytes - 96)` bytes and the prefixed description to `min(4000, max_summary_bytes)` bytes. `prepare_fresh_delegation` itself reuses a completed recommendation without another classification call and returns independent instructions as local arguments for the next call. A Codex call explicitly specifying the returned model and effort is preserved by the current Hook as `explicit_model` without classification. A routing check on a subsequent call does not itself imply another classification. Neither path guarantees descriptions are non-sensitive or automatically anonymized.
66
61
 
67
- The ledger and Hook bindings store request metadata, hashes, and cached results, not task excerpts. Aptly diagnostics also exclude raw task text. The local Hook's `updatedInput` retains the original task so the host can continue execution. Aptly does not control the host's own transcript or log retention.
62
+ Decisions receives `client`, `task.summary`, `task.operation`, `task.context_sufficient`, candidate profile IDs, model and effort descriptions, and configured model characteristics. The classification API key is sent in the `Authorization` header and the request ID in `X-Client-Request-Id`. Automatic-path IDs are hashes; direct recommendation IDs are caller-specified. Do not put secrets in IDs or candidate descriptions.
68
63
 
69
- ## Related topics
64
+ To choose a summary yourself, turn off automatic sharing and write only the information needed for a direct recommendation. Aptly does not automatically read and attach documents or source files at URLs in a summary. Checks for known key and Bearer patterns are not complete secret detection or a guarantee of transmission safety.
70
65
 
71
- [Automatic recommendations](routing.md) · [Budget limits](budget.md) · [Execution statistics](statistics.md)
66
+ The ledger and Hook bindings store request metadata, hashes, and cached results, not task excerpts. Aptly diagnostics also omit the original text. However, the Hook's `updatedInput` retains the original task so the local host can continue execution. Aptly does not control the host's own conversation or log storage.
72
67
 
73
- [Guide home](../en.md)
68
+ [Automatic recommendations](routing.md) · [Budget](budget.md) · [Guide contents](../en.md)
package/docs/guide/en.md CHANGED
@@ -1,30 +1,25 @@
1
1
  # Aptly user guide
2
2
 
3
- This guide targets Aptly 0.1.13. Each topic preserves feature-specific minimum versions and recovery instructions for older releases.
4
-
5
3
  [한국어](ko.md) · **English** · [简体中文](zh-CN.md) · [日本語](ja.md)
6
4
 
7
- [Back to README](../../README.en.md)
8
-
9
- Korean is the canonical documentation. This guide covers general Aptly installation and usage. Package availability does not establish model access for every account. Claude Code or Codex controls native subagent execution, approvals, sandboxing, and MCP permissions.
10
-
11
- For a first setup, read **Installation → Configuration → Automatic recommendations**.
5
+ [README](../../README.en.md)
12
6
 
13
- ## Topics
7
+ Korean is the canonical documentation. For your first setup, read Installation → Configuration → Automatic recommendations.
14
8
 
15
- - [Installation and updates](en/installation.md)
16
- - [Configuration and model candidates](en/configuration.md)
17
- - [Automatic recommendations](en/routing.md)
18
- - [Decisions API transmission](en/transmission.md)
19
- - [Budget limits](en/budget.md)
20
- - [Execution statistics](en/statistics.md)
21
- - [Troubleshooting](en/troubleshooting.md)
22
- - [Advanced MCP integration and development](en/advanced.md)
23
- - [Measured costs](en/benchmarks.md)
9
+ | Task | Guide |
10
+ |---|---|
11
+ | Install, update, or remove | [Installation](en/installation.md) |
12
+ | API keys, account homes, models, stable launcher | [Configuration](en/configuration.md) |
13
+ | Hook behavior, abstention, and application conditions | [Automatic recommendations](en/routing.md) |
14
+ | Choose what to send to the OpenAI Decisions API | [Transmission scope](en/transmission.md) |
15
+ | Call and cost limits | [Budget](en/budget.md) |
16
+ | Compare recommendations with actual execution | [Statistics](en/statistics.md) |
17
+ | Registration, credential store, and ledger errors | [Troubleshooting](en/troubleshooting.md) |
18
+ | Manual MCP setup, direct recommendations, and development | [Advanced integration](en/advanced.md) |
19
+ | Measurement and cost conversion | [Measured costs](en/benchmarks.md) |
24
20
 
25
- ## Previous links
26
-
27
- Existing bookmark anchors remain available. Select an entry to open its section in the new topic page. This documentation move does not require setup or key re-entry.
21
+ <details>
22
+ <summary>Previous links</summary>
28
23
 
29
24
  <a id="installation"></a>
30
25
  - [Installation](en/installation.md#guide-installation)
@@ -88,3 +83,5 @@ Existing bookmark anchors remain available. Select an entry to open its section
88
83
  - [Interrupted processes and ledger locks](en/troubleshooting.md#guide-ledger-lock-recovery)
89
84
  <a id="diagnostics-and-development"></a>
90
85
  - [Diagnostics and development](en/advanced.md#guide-diagnostics-and-development)
86
+
87
+ </details>
@@ -153,6 +153,8 @@ defaults Hook が継承呼び出しへの適用を拒否した後、呼び出し
153
153
 
154
154
  元の継承呼び出しは拒否されたままです。別の `next_call.arguments` を確認し、既存の委任権限と通常のホスト権限確認の下で新しい呼び出しを送ってください。`fork_turns: "none"` と、元の選択を保つモデル・effort を含みます。呼び出し元の宣言であり、ユーザー意図や実行を検証するものではありません。履歴が必要・不明、固定役割、resume、未検証の追加実行引数がある場合は使わないでください。参照は一つのタスクだけに結び付き、5分の期限・取消・ポリシー/候補/元の呼び出しの変更で準備を止めます。元の実行を許す advisory 経路には提供しません。[契約と制限](../../SPAWN_CONTEXT.md#intentional-fresh-delegation)を確認してください。
155
155
 
156
+ 次の必須引数の案内は 0.1.16 以降で利用できます。`model`・`reasoning_effort` を含む `next_call.arguments` の全引数を渡してください。省略すると、不透明な新規呼び出しが再び文脈補足に進む場合があります。`spawn_application.required_fields` は呼び出し元の確認用で、権限の承認ではありません。ユーザーの選択や上位のホスト指示が親モデルの継承を要求する、またはいずれかのフィールドを禁止する場合は、適用できない旨を報告して停止してください。新しい復旧 ID で制限を回避しないでください。 制約の適用が不明な場合も停止し、不確実性を報告してください。Hook による明示フィールドの保持は、新しい呼び出しと準備結果の一致を検証するものではありません。
157
+
156
158
  ホストが元の呼び出しの拒否を報告した後だけ使ってください。`original_call_outcome` が `executed` または `unknown` なら準備を拒否します。これは呼び出し元の宣言で、サーバーの実行観測ではありません。同じ準備の反復は子の一回実行を保証しません。プロファイルは元の分類要約に基づくため別タスクに再利用しないでください。
157
159
 
158
160
  <a id="guide-model-info-cache"></a>
@@ -1,43 +1,33 @@
1
- # 初期設定と候補モデル
1
+ # 初期設定・候補モデル
2
2
 
3
3
  [한국어](../ko/configuration.md) · [English](../en/configuration.md) · [简体中文](../zh-CN/configuration.md) · [日本語](../ja/configuration.md)
4
4
 
5
5
  [ガイド目次](../ja.md)
6
6
 
7
- 設定前に、Codex を起動する環境の `CODEX_HOME`、または Claude Code の `CLAUDE_CONFIG_DIR` を確認してください。インストール・設定・統計のコマンドにも同じ環境を渡すと、そのアカウントのホームを選択します。
8
-
9
- 既定のホームとホストが使用するアカウントのホームが異なる場合があります。ホーム間でポリシー・台帳・キー・信頼記録をコピーしないでください。パスの競合や `existing_hook_not_owned` は登録を保持して確認し、[トラブルシューティング](troubleshooting.md)を参照してください。
10
-
11
- MCP の手動設定は[高度な連携](advanced.md#guide-manual-mcp-setup)を参照してください。
12
-
13
- ## このページの目次
7
+ ## 目次
14
8
 
15
9
  - [設定ファイルの場所](#guide-host-config-locations)
16
- - [CLI による設定](#guide-cli-configuration)
10
+ - [CLI 設定](#guide-cli-configuration)
17
11
  - [キーと再起動](#guide-keys-and-restart)
18
- - [モデルと環境変数](#guide-models-and-environment)
19
- - [Node のバージョンディレクトリに依存しないランチャー](#guide-stable-launcher)
12
+ - [stable ランチャー](#guide-stable-launcher)
13
+ - [候補モデル](#guide-models-and-environment)
20
14
 
21
15
  <a id="guide-host-config-locations"></a>
22
16
 
23
17
  ## 設定ファイルの場所
24
18
 
25
- | ホスト | Aptly が使用するユーザー登録の場所 |
26
- |---|---|
27
- | Codex | `$CODEX_HOME/config.toml`。`CODEX_HOME` 未指定の場合は `~/.codex/config.toml` |
28
- | Claude Code | `~/.claude.json` の `mcpServers.aptly`。`CLAUDE_CONFIG_DIR` 指定時は、そのディレクトリの `.claude.json` |
19
+ | ホスト | 既定の場所 | 別のアカウントホーム |
20
+ |---|---|---|
21
+ | Codex | `~/.codex/config.toml` | `$CODEX_HOME/config.toml` |
22
+ | Claude Code | `~/.claude.json` の `mcpServers.aptly` | `$CLAUDE_CONFIG_DIR/.claude.json` |
29
23
 
30
- 0.1.15 以降では、`@codex-home` ポリシーを使う MCP も `CODEX_HOME` が未指定の場合に OS ユーザーのホーム内の `~/.codex` を選択します。明示された絶対パスが優先され、空の値・相対パス・制御文字を含む値は引き続き拒否します。公開済みの 0.1.14 では、既定のホームでも環境変数の転送が必要です。カスタムのアカウントホームは自動探索しないため、アカウント管理ツールは正しい `CODEX_HOME` を転送してください。 カスタムホストがこの値を渡さない場合、既定ホームのポリシーと送信範囲が適用されるため、アカウント別ポリシーを維持するには必ず渡してください。
24
+ Claude Hook は既定では `~/.claude/settings.json`、別のアカウントでは `$CLAUDE_CONFIG_DIR/settings.json` にあります。インストール・設定・統計コマンドにもホストと同じアカウント環境を渡してください。別のホームのポリシー・台帳・キー・信頼記録をコピーしないでください。
31
25
 
32
- Claude Code の Hook ファイルは通常 `~/.claude/settings.json` ですが、`CLAUDE_CONFIG_DIR` を指定すると `$CLAUDE_CONFIG_DIR/settings.json` になります。MCP 登録とは別です。プロジェクトの `.mcp.json`、管理設定、アカウント別ディレクトリを使う場合は、編集・追加前に `/mcp` で有効な登録を確認してください。
26
+ Codex MCP の `@codex-home` ポリシーは 0.1.15 以降、`CODEX_HOME` がなければ `~/.codex` を選びます。明示された絶対パスが優先され、空値・相対パス・制御文字は拒否します。カスタムホームを探索しないため、管理者が値を渡さなければ既定ホームのポリシー・送信範囲が適用されます。手動・プロジェクト・管理登録は[高度な設定](advanced.md#guide-manual-mcp-setup)を参照してください。
33
27
 
34
28
  <a id="guide-cli-configuration"></a>
35
29
 
36
- ## CLI による設定
37
-
38
- 0.1.11 以降、最初の通常の対話形式 `aptly set default` がクライアントホームごとのレビュー待ち項目をまとめて質問します。`excerpt` を推奨し、Enter は既存の範囲を保持するか、未選択なら `none` を選びます。[送信レビュー](transmission.md#guide-transmission-scope)を参照してください。この再レビューの流れは 0.1.10 ではサポートされないため、先に更新してください。
39
-
40
- `set` コマンドは 0.1.1 以降で利用できます。既存の起動パスは自動で切り替えません。API キー設定は、現在のパッケージの標準 Node/サーバー登録で、OS 資格情報の参照に対応する実行環境だと確認できた場合にのみ使用できます。独自ラッパー、旧バージョン、別のインストール先は `credential_launcher_unverified` で拒否します。登録を明示的に切り替えるかアップグレードしてから、再度実行してください。
30
+ ## CLI 設定
41
31
 
42
32
  ```sh
43
33
  aptly set default
@@ -45,72 +35,71 @@ aptly set env APTLY_CODEX_MODELS
45
35
  aptly set env OPENAI_API_KEY
46
36
  ```
47
37
 
48
- 最初のコマンドは Claude Code と Codex を登録し、未設定のデフォルト環境設定を追加します。既存の起動コマンド、環境変数の許可リスト、分類方式、独自の候補、advisory ポリシーは保持します。次のコマンドは入力を表示せずに値を尋ね、指定した変数だけを変更します。最後のコマンドは API キーを OS の資格情報ストアに保存し、選択したホストの起動時に読み込むよう設定します。値をコマンド引数に渡さないでください。
49
-
50
- 既定では両ホストを選択します。`--client codex`、`--client claude`、`--client all` で対象を指定できます。Claude 候補には `["haiku","sonnet","opus"]` のような JSON 文字列を入力してください。
38
+ `set default` は不足する登録・既定値を追加し、[送信範囲](transmission.md)を確認します。既存の実行コマンド・環境・provider・候補・advisory ポリシーは保持します。`set env` は非表示入力を受け、指定した変数のみを変更します。既定の対象は両ホストで、`--client codex|claude|all` で選択します。
51
39
 
52
40
  ```sh
53
41
  aptly set env APTLY_CLAUDE_MODELS --client claude
54
42
  ```
55
43
 
56
- 自動化では `--stdin` を明示してください。以下は公開変数の例です。実際のキーを `printf` コマンドやシェル履歴に含めないでください。
44
+ 候補の入力は `["haiku","sonnet","opus"]` のような JSON 配列文字列です。自動化には `--stdin` を使ってください。実際のキーを `printf` やシェル履歴に入れないでください。
57
45
 
58
46
  ```sh
59
47
  printf '%s\n' '["gpt-6.1-terra"]' | aptly set env APTLY_CODEX_MODELS --stdin
60
48
  ```
61
49
 
62
- 設定できる公開キーは `ROUTER_PROVIDER`(`fixture` または `decisions`)、`APTLY_CLAUDE_MODELS`、`APTLY_CODEX_MODELS`、`CLAUDE_MODELS`、`CODEX_MODELS`、`APTLY_MODEL_INFO_PATH` です。候補は対応モデルの JSON 配列文字列で、無効な値、重複、正式名と別名の競合は拒否します。`[]` は該当ホストの推薦を無効にします。モデルキャッシュには非公開ディレクトリ内の絶対パスが必要です。台帳や Hook ポリシーの管理パスはこのコマンドで変更できません。
50
+ 一般に許可されるキーは `ROUTER_PROVIDER`(`fixture`/`decisions`)、`APTLY_CLAUDE_MODELS`、`APTLY_CODEX_MODELS`、別名 `CLAUDE_MODELS`・`CODEX_MODELS`、`APTLY_MODEL_INFO_PATH` です。モデルキャッシュのパスは非公開ディレクトリ内の絶対パスである必要があります。管理用の台帳・ポリシーパスはこのコマンドでは変更しません。
51
+
52
+ <a id="guide-keys-and-restart"></a>
63
53
 
64
- API キーは macOS Keychain、インストール済みの Linux `secret-tool`、または Windows Credential Manager に保存します。Windows バックエンドは PowerShell と、現在のユーザー範囲の Win32 Generic 資格情報を使用し、UTF-8 データの上限は 2,560 バイトです。Windows CI では、合成キーの保存・読み取り・更新・削除、Unicode パス、分離したホスト設定、キー参照、ACL の保持を確認しました。Windows 上の実際の Claude Code・Codex セッションを実行して検証したものではありません。ストアを利用できない場合はエラーとなり、平文ファイルには切り替えません。キーはホスト別アカウントに分け、MCP ファイルには `APTLY_SECRET_BACKEND=os` と `APTLY_SECRET_CLIENT` の参照だけを保存します。OS ストアを選択した後、キーがない場合や読み取りに失敗した場合も、別の環境変数キーに黙って切り替えません。`set default` は既存のラッパーや環境による認証を保持し、`set env OPENAI_API_KEY` が OS ストア認証を明示的に選択します。
54
+ ## キーと再起動
65
55
 
66
- 結果にはホストごとの状態と固定エラーコードだけを返し、キーの値は表示しません。`partial` の場合は各ホストを確認してください。`credential_store_failed` ではストアへのアクセスや対応状況を、`credential_rollback_failed` では以前のキーを復元できたかを確認します。失敗したホストの旧キーは可能な場合に復元します。他のホストの成功を、全ホストでの原子的な成功とみなさないでください。
56
+ `aptly set env OPENAI_API_KEY` はホスト別のキーを macOS Keychain・Linux `secret-tool`・Windows Credential Manager に保存し、MCP にはストア参照のみを登録します。ストアがないかロックされている場合はエラーとし、平文ファイルや別の環境変数のキーに代替しません。[資格情報ストアのエラー](troubleshooting.md)を確認してください。
67
57
 
68
- 保存のタイムアウトや応答解析の失敗は、OS が新しい値を書き込んだ後にも起こり得ます。失敗時は以前の値を復元し、以前の値がなければ新しい項目を削除して、再読み込みで確認します。復旧を確認できない場合は、元のエラーコードに `credential_rollback_failed` を追加します。どちらのキーが有効かを断定せず、再試行前に OS の資格情報ストアを確認してください。これは可能な範囲での復旧であり、プロセスやホストをまたぐ原子的なトランザクションではありません。
58
+ ホストのサブスクリプションログインと API キーは別です。キーをコマンド引数・設定 JSON・リクエスト・リポジトリに記録しないでください。安全な MCP 実行環境から直接渡す方法は[手動設定](advanced.md#guide-key-environment)にあります。
69
59
 
70
- 変更後は MCP を再起動し、`get_routing_capabilities` の `provider`、候補、`credential_status` を確認してください。`os_store` はキーを読み込めたことを示し、API 認証の成功を示すものではありません。デフォルト設定と公開変数の設定では、引き続き独自ラッパーを保持します。API キー設定は未確認の起動パスのホスト設定を変更せず、保存を試みていた場合は可能な限りそのホストの旧キーを復元します。既存のラッパーにも新しいキーが自動で適用されるとは想定しないでください。Codex の `/hooks` 信頼承認やホスト権限は迂回しません。
60
+ キーの保存は互換性を確認した標準ランチャーでのみ許可します。カスタムラッパーは保持しますが、`credential_launcher_unverified` で拒否する場合があります。`partial` の場合はホスト別のエラーを確認してください。保存失敗時は以前のキーの復元を試みます。`credential_rollback_failed` の場合は OS ストアで有効なキーを確認してから再試行してください。複数ホストの変更は一つの原子的な操作ではありません。
61
+
62
+ 変更後、MCP を再起動し、`get_routing_capabilities` の候補・provider・`credential_status` を確認してください。`os_store` はキーを読み取ったことを示し、API の有効性検証ではありません。Codex の `/hooks` 承認も別途必要です。
71
63
 
72
64
  <a id="guide-stable-launcher"></a>
73
65
 
74
- ## Node のバージョンディレクトリに依存しないランチャー
66
+ ## Node バージョン変更に強いランチャー
75
67
 
76
- このオプションは 0.1.14 以降で使用できます。POSIX(macOS/Linux)で `--launcher stable` を明示すると、Node のバージョンディレクトリ外の非公開領域にランチャーと Aptly の実行時依存を保存します。Node 自体はコピーしないため、対応する Node.js 24 以上のインストールが必要です。元の Node と npm パッケージが削除されても、保存済みランチャーは別の対応 Node を探せます。GUI ホストの PATH に `node` がない場合、コマンド名だけでは同じ保証は得られません。
68
+ 既定の登録は Node の絶対パスを使います。Node のバージョンを頻繁に切り替える macOS・Linux では `stable` を選べます(0.1.14 以降)。Node フォルダーの外に Aptly と依存関係を保存し、別の対応 Node.js 24 以上を探索します。Node 自体は含まず、Windows には対応しません。
77
69
 
78
- 既定・自動登録と既存登録は直接 Node パスを使います。新規登録には `aptly setup --client all --launcher stable` を使えます。既存登録は次のとおり確認後に明示して移行してください。Claude は `--client claude`、各 Codex アカウントは対象の `CODEX_HOME` で実行します。
70
+ 新規登録には `aptly setup --client all --launcher stable` を使います。既存登録は dry run を確認してから移行してください。別のアカウントではそのホーム環境を渡し、Claude では `--client claude` に変更します。
79
71
 
80
72
  ```sh
81
73
  aptly setup --client codex --migrate-launcher --launcher stable --dry-run
82
74
  aptly setup --client codex --migrate-launcher --launcher stable
83
75
  ```
84
76
 
85
- 保持済みの標準ランチャーを含める場合は、確認後に `--include-existing` を追加してください。独自・変更済みランチャーや統計 Hook は自動で引き取りません。所有する MCP と観測器の実行先を同時に更新し、収集状態・native メタデータへの同意・キー・ポリシー・台帳・統計履歴を保持します。Codex の新 Hook は `/hooks` で再確認し、信頼を承認してください。自動承認は行いません。
86
-
87
- インストール時 Node、標準パス、既定の `~/.nvm/versions/node` 内の正式版、安全な絶対 PATHを順に試します。最新 Node の選択は保証せず、シンボリックリンクや shim を使う管理方式は PATH 内でも拒否される場合があり、検証できる実際の実行ファイルパスのみ対応します。起動時にシェル設定・npm・ネットワークダウンロードは実行しません。stable モードは一般的な Node 起動設定の継承を抑えるため `NODE_OPTIONS`・`NODE_PATH`・`NODE_REPL_EXTERNAL_MODULE` を継承しません。追加 CA が必要な場合は `NODE_EXTRA_CA_CERTS` など別の証明書設定を利用してください。ネイティブアドオンが必要な依存は拒否します。対応ランタイム不在・整合性エラー時の MCP は固定エラーで停止し、観測器は既存の静かな best-effort 動作を維持します。
77
+ グローバル Aptly の更新後も同じコマンドで保存コピーを更新する必要があります。通常の `setup` はコピーを置き換えず、古いコピーは `stable_snapshot_outdated` で通知します。移行時は所有する MCP・統計オブザーバーを併せて更新します。変更されたランチャー・Hook は引き継ぎません。保持された標準登録が対象なら確認後に `--include-existing` を追加してください。Codex の変更された Hook は `/hooks` で再承認します。
88
78
 
89
- 通常の npm グローバルインストールを主に対象とします。リダイレクト・書き込み可能な上位パスや、ローカルパッケージ外に hoist された依存などは検証できないため拒否します。Windows は直接モードを維持し stable は未対応です。stable 登録は後続のオプションなし setup/migration でも維持します。`aptly update` は実際の npm グローバル CLI で実行し、明示的な移行で新しい Aptly 副本を選択してください。他のホームや実行中プロセスのため、`remove` は古い共有副本を削除しません。`doctor` の副本メタデータ観測は、実行・認証・再読み込み完了の証明ではありません。
79
+ <details>
80
+ <summary>ランチャーの制限と復旧</summary>
90
81
 
91
- 通常の setup は既存副本を暗黙に置き換えません。CLI より古い副本は `stable_snapshot_outdated` と明示的な移行案内を返します。所有権が完全に一致する stable 参照なら、副本の欠落・破損・旧形式から現在の CLI の検証済みソースへ明示的に移行できます。同じ generation の破損や未完了 lock は自動で上書き・削除しません。書き込みプロセスと他ホームの参照を確認し、その状態だけを手動で見直してください。独自・変更済み登録を製品所有として引き取りません。
82
+ インストール時の Node → 標準パス → 既定の `~/.nvm/versions/node` → 安全な絶対 PATH の順に探索します。最新版の選択やカスタム NVM_DIR・shim・シンボリックリンクに基づくマネージャーへの対応は保証しません。シェルプロファイル・npm・ダウンロードは実行しません。`NODE_OPTIONS`・`NODE_PATH`・`NODE_REPL_EXTERNAL_MODULE` は除去するため、追加 CA には `NODE_EXTRA_CA_CERTS` などを確認してください。
92
83
 
93
- stable 移行は所有観測器も同時に更新しますが、従来の直接モード間の移行では別途統計観測器の更新が必要な場合があります(`statistics_observer_migration_required`)。setup と起動の整合性確認には I/O 負荷があり、探索制限は全ファイルシステム操作の経過時間上限を保証しません。同じユーザーのプログラムやワーカースレッドを隔離する sandbox ではありません。
94
-
95
- <a id="guide-keys-and-restart"></a>
84
+ 書き込み可能な祖先パス・外部に hoist された依存関係・ネイティブアドオンなど、検証できないソースは拒否します。整合性確認には I/O コストが加わり、探索予算は全ファイル I/O の hard timeout ではありません。サンドボックスや配布者の署名認証ではありません。MCP は失敗時にエラーで停止し、統計オブザーバーは静かに終了します。
96
85
 
97
- ## キーと再起動
86
+ 所有権が一致すれば、紛失・破損・旧形式のコピーから新しい CLI ソースへ明示的に移行できます。破損した同世代・未完了の lock は自動で上書き・削除しません。別のホーム・プロセスが参照する可能性があるため、以前のコピーも自動削除しません。書き込みプロセスと参照を確認してから状態を確認してください。直接 Node ランチャー同士の移行には別途統計の更新(`statistics_observer_migration_required`)が必要な場合があります。
98
87
 
99
- 分類用の `OPENAI_API_KEY` は、安全な環境や資格情報ランチャーを通して MCP プロセスに渡してください。ホストのサブスクリプション認証とは別です。キーの値をコマンド引数・リクエスト・設定ファイル・ソース・ログ・一時ファイルに記録しないでください。
88
+ </details>
100
89
 
101
90
  <a id="guide-models-and-environment"></a>
102
91
 
103
92
  ## モデルと環境変数
104
93
 
105
- デフォルト候補は 6 つのプロファイルです。この区分は Aptly の運用プリセットであり、両プロバイダーのモデルが同等という意味ではありません。
94
+ 等級はタスクのプリセットであり、提供元間のモデル性能が同等であることを意味しません。
106
95
 
107
- | 区分 | Claude Code | Codex | 代表的なタスク |
96
+ | 等級 | Claude Code | Codex | 代表的なタスク |
108
97
  |---|---|---|---|
109
98
  | simple | `haiku` | `gpt-6-luna` / `max` | 抽出・形式変換・小さな機械的修正 |
110
- | routine | `sonnet` | `gpt-6.1-terra` / `high` | コンテキストを考慮した執筆・翻訳・範囲が明確な実装 |
111
- | deep | `opus` | `gpt-6.1-sol` / `medium` | 複数コンポーネントにまたがるデバッグ・設計判断・掘り下げたレビュー |
99
+ | routine | `sonnet` | `gpt-6.1-terra` / `high` | 文脈を考慮した作成・翻訳・範囲が明確な実装 |
100
+ | deep | `opus` | `gpt-6.1-sol` / `medium` | 複合的なデバッグ・設計判断・詳細レビュー |
112
101
 
113
- MCP の `env` の値は文字列なので、候補配列も JSON 文字列として渡します。
102
+ MCP の `env` 値は文字列のため、候補配列も JSON 文字列で渡します。
114
103
 
115
104
  ```json
116
105
  {
@@ -121,12 +110,8 @@ MCP の `env` の値は文字列なので、候補配列も JSON 文字列とし
121
110
  }
122
111
  ```
123
112
 
124
- 未指定の場合は上記のデフォルト値を使い、`[]` の場合はその client の推薦を無効にします。空の文字列・重複・未対応のモデル・不正な JSON はエラーです。`CLAUDE_MODELS`・`CODEX_MODELS` も別名として利用できますが、同じプロバイダーの標準名と別名を同時に設定するとエラーになります。候補設定は、既存の選択を上書きしたり、アカウントのモデルへのアクセス権限を認証したりするものではありません。
125
-
126
- `aptly set default` は、MCP `env` の既存候補と別名、Codex `env_vars` の転送宣言、および現在の CLI で確認できる Claude の継承候補を保持します。同じモデル系列の両方の変数名が未設定の場合だけ既定候補を追加します。Codex の転送変数は現在の端末で値を確認できなくても既定値に置き換えず、継承値を設定ファイルにコピーしません。CLI は同名の静的な `env` 値を優先して有効な設定を検証します。カタログの検証は維持されるため、別名の競合や不正な値があれば設定変更を拒否します。再起動した MCP の最終候補は別途確認してください。
113
+ 未指定なら上記の既定値、`[]` ならそのホストの推薦を無効にします。空文字列・重複・非対応モデル・不正な JSON はエラーです。`CLAUDE_MODELS`・`CODEX_MODELS` も別名として対応しますが、同じ提供元の基本名と別名を同時に設定するとエラーです。候補設定は既存の選択を上書きせず、アカウントのモデルアクセス権限を認証しません。
127
114
 
128
- ## 関連文書
115
+ `set default` は既存の候補・別名・受け渡し宣言を保持し、不足するモデル群にのみ既定値を追加します。Codex の継承候補が現在の CLI に見えなくても上書きしません。最終候補は MCP の再起動後に確認してください。
129
116
 
130
- [インストールと更新](installation.md) · [自動推薦](routing.md) · [Decisions API の送信範囲](transmission.md) · [高度な MCP 連携と開発参考](advanced.md) · [トラブルシューティング](troubleshooting.md)
131
-
132
- [ガイド目次](../ja.md)
117
+ [インストール](installation.md) · [トラブルシューティング](troubleshooting.md) · [ガイド目次](../ja.md)