@open-agent-toolkit/cli 0.1.59 → 0.1.62

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/README.md CHANGED
@@ -40,6 +40,20 @@ Additional useful entry points:
40
40
  - `oat repo archive sync`
41
41
  - `oat doctor`
42
42
 
43
+ ## Update Notifications
44
+
45
+ On ordinary interactive command runs, OAT may print a passive notice when npm's stable `latest` CLI version is newer than the installed version. The cache normally limits checks to once every 24 hours and same-version notices to once every 72 hours; overlapping CLI processes can each perform a check or print a notice.
46
+
47
+ `oat init`, `oat tools install`, and `oat tools update` are different because they copy tools bundled with the running CLI. Before an eligible interactive mutation, a known newer CLI triggers a warning that the current CLI can only install its own bundled tool versions and that the available CLI may bundle newer versions. OAT then offers, defaulting to no, to run `npm install --global @open-agent-toolkit/cli@<validated-version>` for the exact validated stable version. Acceptance updates the CLI package, stops before changing tools, and asks you to rerun the original command. Declining or aborting continues with the current bundle after a warning. An installer failure stops the tool mutation and reports the command you can retry.
48
+
49
+ This warning does not mean tools installed from the current bundle are incompatible with the current CLI; it only identifies that a newer CLI release may include newer bundled tool versions. Dry-run, JSON, non-interactive, CI, test, source-development, and ephemeral package-runner invocations do not prompt or install. Ordinary eligible commands remain passive.
50
+
51
+ Set `NO_UPDATE_NOTIFIER` to a truthy value (for example, `1`, `true`, `yes`, or `on`) to suppress checks for one process; empty, `0`, and `false` do not suppress them. Or persist the user-level preference:
52
+
53
+ ```bash
54
+ oat config set updateNotifications false --user
55
+ ```
56
+
43
57
  ## Inspection Commands
44
58
 
45
59
  Use these commands when you want structured runtime/project state out of the CLI:
@@ -113,6 +113,26 @@ Use `oat config` for repo runtime config inspection and supported key mutation.
113
113
 
114
114
  Use `oat config dump --json` when you need the whole resolved config in one machine-readable response rather than a single key or a human-oriented list view.
115
115
 
116
+ ### Update notifications
117
+
118
+ OAT can passively report when npm's stable `latest` CLI version is newer during an ordinary interactive command run. The cache normally limits checks to once every 24 hours and same-version notices to once every 72 hours; overlapping CLI processes can each perform a check or print a notice. Ordinary eligible commands only show update guidance and do not prompt.
119
+
120
+ Before eligible interactive `oat init`, `oat tools install`, or `oat tools update` mutations, a known newer stable CLI receives special handling. These commands copy tool versions bundled with the running CLI, so OAT warns that the older CLI can only install its own bundle and that the available CLI may contain newer bundled tools. The default-no prompt offers to install the exact validated version with:
121
+
122
+ ```bash
123
+ npm install --global @open-agent-toolkit/cli@<validated-version>
124
+ ```
125
+
126
+ If accepted, OAT updates the CLI package, stops before changing tools, and asks you to rerun the original command under the new CLI. If declined or the prompt is aborted, OAT warns and continues with the current bundle. If npm fails, the requested tool mutation does not run and the error includes a command to retry. The warning describes possible bundle freshness; it does not claim that tools installed by the current CLI are incompatible with that CLI.
127
+
128
+ Checks, notices, and the update offer are skipped for JSON, non-interactive, CI, test, source-development, and ephemeral package-runner invocations. Guarded dry-run commands also skip the prompt and installer. Set `NO_UPDATE_NOTIFIER` to a truthy value (for example, `1`, `true`, `yes`, or `on`) to suppress checks for one process; empty, `0`, and `false` do not suppress them. Or disable checks persistently in user config:
129
+
130
+ ```bash
131
+ oat config set updateNotifications false --user
132
+ ```
133
+
134
+ The preference defaults to `true`; run the same command with `true` to re-enable it. Cached check and notice timestamps live in `~/.oat/update-check.json`, separate from the user-authored preference in `~/.oat/config.json`.
135
+
116
136
  Dispatch policy keys are part of this surface, but provider-specific generation
117
137
  still belongs to provider commands. Use `oat config describe
118
138
  workflow.dispatchPolicy.policy` to inspect capped managed, managed uncapped,
@@ -49,6 +49,25 @@ skills can use the utility engine directly.
49
49
 
50
50
  The `oat tools` command group provides a unified interface for managing installed tools (skills and agents) across scopes.
51
51
 
52
+ ### CLI updates before bundled-tool mutations
53
+
54
+ Tool packs ship inside the OAT CLI package. An older CLI can therefore install or update only the tool versions in its own bundle, while a newer stable CLI release may contain newer bundled versions. This is a bundle-freshness warning, not a claim that tools installed by the current CLI are immediately incompatible with it.
55
+
56
+ Before an eligible interactive `oat init`, `oat tools install` (including pack subcommands), or `oat tools update` mutation, OAT checks the cached stable CLI availability. If a newer version is known, it explains the bundle difference and offers, with a default answer of no, to install that exact validated version:
57
+
58
+ ```bash
59
+ npm install --global @open-agent-toolkit/cli@<validated-version>
60
+ ```
61
+
62
+ - Accepting updates the CLI package only, stops before changing bundled tools, and asks you to rerun the original command under the new CLI.
63
+ - Declining or aborting warns that the current bundle may be older, then continues the requested command.
64
+ - If npm fails, OAT does not run the tool mutation and reports how to retry the CLI installation.
65
+ - Dry-run, JSON, non-interactive, opted-out, CI, test, source-development, and ephemeral package-runner invocations do not prompt or install.
66
+
67
+ Set `NO_UPDATE_NOTIFIER` to a truthy value (for example, `1`, `true`, `yes`, or `on`) to suppress checks for one process; empty, `0`, and `false` do not suppress them.
68
+
69
+ Other eligible commands keep the passive update notice and never launch the installer.
70
+
52
71
  ## Install vs. initialize
53
72
 
54
73
  The `project-management` pack has two lifecycle steps:
@@ -1,6 +1,6 @@
1
1
  {
2
- "cli": "0.1.59",
3
- "docs-config": "0.1.59",
4
- "docs-theme": "0.1.59",
5
- "docs-transforms": "0.1.59"
2
+ "cli": "0.1.62",
3
+ "docs-config": "0.1.62",
4
+ "docs-theme": "0.1.62",
5
+ "docs-transforms": "0.1.62"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: oat-project-implement
3
- version: 2.0.40
3
+ version: 2.0.41
4
4
  description: Use when plan.md is ready for execution. Dispatches one phase implementer per phase, owns independent phase review and bounded fix routing, and supports plan-declared worktree-isolated parallel phases.
5
5
  oat_gateable: true
6
6
  argument-hint: '[--retry-limit <N>] [--dry-run]'