@mercury-fw/cli-engine 0.31.1 → 0.33.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mercury-fw/cli-engine
2
2
 
3
+ ## 0.33.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @mercury-fw/plugin-types@0.33.0
8
+
9
+ ## 0.32.0
10
+
11
+ ### Patch Changes
12
+
13
+ - @mercury-fw/plugin-types@0.32.0
14
+
3
15
  ## 0.31.1
4
16
 
5
17
  ### Patch Changes
package/cli-tool.ts CHANGED
@@ -16,10 +16,9 @@
16
16
  * which can appear before the subcommand) consumed generically by
17
17
  * `stripGlobalFlags` — no more hand-written per-CLI stripping function.
18
18
  *
19
- * Used by: `src/index.ts` (wiring), which builds the `Record<string,
20
- * CliConfig>` (via `cli-config-loader.ts`) from whichever CLIs are
21
- * enabled on a given instance and passes it into `createCliTool`
22
- * alongside the real `runCli`.
19
+ * Used by: each CLI plugin's `build()`, which validates its own allowlist
20
+ * (via `cli-config-loader.ts`) into the `Record<string, CliConfig>` and
21
+ * passes it into `createCliTool` alongside the real `runCli`.
23
22
  */
24
23
  import { tool, type JSONValue } from "ai";
25
24
  import { z } from "zod";
@@ -166,7 +165,7 @@ export function createCliTool(
166
165
  stashDisplay?: (artifact: string) => string;
167
166
  },
168
167
  ): { runCommand: ExecutableTool } {
169
- // Anchor the example on a binary actually enabled on this instance rather than
168
+ // Anchor the example on a binary this tool actually runs rather than
170
169
  // a hardcoded one: a fixed `jira …` example misleads the model on an instance
171
170
  // without Jira. The concrete, CLI-specific example (real subcommand + flags)
172
171
  // belongs to that CLI's own skill, not to this plugin-agnostic tool.
@@ -1,11 +1,9 @@
1
1
  /**
2
2
  * Checks an installed CLI binary's version against a maintainer-declared
3
3
  * `minVersion` (from an externally-configured CLI config file, see
4
- * `src/tools/cli-config-loader.ts`). No version-check convention existed
5
- * anywhere in this codebase before this — confirmed by searching
6
- * `scripts/install-clis.sh` (only resolves GitHub release *tags* to pick
7
- * a download asset, never validates an already-installed binary) and the
8
- * rest of `src/`.
4
+ * `src/tools/cli-config-loader.ts`). Nothing else validates an
5
+ * already-installed binary: provisioning downloads a pinned version and
6
+ * never checks it again.
9
7
  *
10
8
  * Assumes `--version` is the right flag to invoke — the CLIs are
11
9
  * Rust/clap-based, and `--version` is clap's near-universal default, but
@@ -1,11 +1,9 @@
1
1
  /**
2
2
  * Checks an installed CLI binary's version against a maintainer-declared
3
3
  * `minVersion` (from an externally-configured CLI config file, see
4
- * `src/tools/cli-config-loader.ts`). No version-check convention existed
5
- * anywhere in this codebase before this — confirmed by searching
6
- * `scripts/install-clis.sh` (only resolves GitHub release *tags* to pick
7
- * a download asset, never validates an already-installed binary) and the
8
- * rest of `src/`.
4
+ * `src/tools/cli-config-loader.ts`). Nothing else validates an
5
+ * already-installed binary: provisioning downloads a pinned version and
6
+ * never checks it again.
9
7
  *
10
8
  * Assumes `--version` is the right flag to invoke — the CLIs are
11
9
  * Rust/clap-based, and `--version` is clap's near-universal default, but
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercury-fw/cli-engine",
3
- "version": "0.31.1",
3
+ "version": "0.33.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@mercury-fw/plugin-types": "0.31.1",
26
+ "@mercury-fw/plugin-types": "0.33.0",
27
27
  "ai": "^7.0.126",
28
28
  "shell-quote": "^1.11.0",
29
29
  "zod": "^4.6.5"