@wirecat/cli-template 0.12.0 → 0.13.1

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.
@@ -33,7 +33,10 @@ jobs:
33
33
  # Once a CLI has both, it adds the script and removes this skip; see docs/dev/TESTING.md.
34
34
  skip: |
35
35
  contracts:upgrade
36
+ # Reads the lockfile, so a frozen install cannot hide a cli-core/cli-base peer mismatch: the packed CLI would
37
+ # get two cli-base copies and crash at start while every local test passes.
36
38
  checks: |
39
+ pnpm peers check
37
40
  bash scripts/audit.sh
38
41
  pnpm smoke:node
39
42
 
package/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ Notable changes to `@wirecat/cli-template`. One section per version, newest firs
5
5
 
6
6
  <!-- cspell:words clawhub gcal katex openclaw smol whatsapp -->
7
7
 
8
+ ## 0.13.1 — 02.11.2026
9
+
10
+ ### Fixed
11
+
12
+ - **`pnpm release:check` no longer downloads the other WireCat CLIs on every run.** Its command audit gave npm the
13
+ throwaway home folder, so npm's cache was empty each time and a slow network failed the release with `ECONNRESET`.
14
+ The install now uses your own npm cache and retries a failed download with longer waits; the CLIs it runs still get
15
+ the throwaway folder. A CLI gets it from `upgrade`.
16
+
17
+ ## 0.13.0 — 01.11.2026
18
+
19
+ ### Added
20
+
21
+ - **`ci.yml` runs `pnpm peers check`.** A cli-core whose cli-base peer range misses the pinned cli-base passed every
22
+ local test, since pnpm let cli-core use the app's own cli-base, and crashed the packed CLI, which `npm install` gave
23
+ two cli-base copies. The check reads the lockfile, so `--frozen-lockfile` cannot hide it. It fails on any unmet
24
+ peer, not only cli-base; a CLI gets it from `upgrade`.
25
+
8
26
  ## 0.12.0 — 01.11.2026
9
27
 
10
28
  ### Added
@@ -9,7 +9,7 @@ if (
9
9
  (words[0] === "--version" || words[0] === "-V") &&
10
10
  !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
11
  ) {
12
- process.stdout.write("0.12.0\n")
12
+ process.stdout.write("0.13.1\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -29,7 +29,7 @@ if (
29
29
  })
30
30
  }
31
31
  const running = import("../bundle/clidev.js")
32
- const chunks = ["../bundle/all-profiles-MJ6XSFOO.js","../bundle/anthropic-W5UKBZUB.js","../bundle/app-server-EZ46JAHB.js","../bundle/bun-HB6O2TTT.js","../bundle/bun-sqlite-KBXOW2ES.js","../bundle/decode-AMXUVKNY.js","../bundle/dist-ESHIQU4M.js","../bundle/echarts-GJDMQ2AQ.js","../bundle/embed-L4CRZ2XQ.js","../bundle/embedder-IBGV4M2K.js","../bundle/first-screen-X5IJKBSU.js","../bundle/instructions-YJECS4KN.js","../bundle/mcp-OQBZXELQ.js","../bundle/mcp-RDZGYPSY.js","../bundle/mcp-TEMCENVV.js","../bundle/node-NQG4EVZR.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-BR7F3BLB.js","../bundle/oauth-J7UAWNIK.js","../bundle/open-BR47R5UE.js","../bundle/process-66I7RDPJ.js","../bundle/program-RNGI562F.js","../bundle/prompt-NE5JJ7UP.js","../bundle/recognize-GC3YFVIA.js","../bundle/remote-QELOMKQM.js","../bundle/rerank-BH6TZ2SP.js","../bundle/serve-WWLRNDT2.js","../bundle/server-DE6NLNUF.js","../bundle/server-ZPSQKOAH.js","../bundle/state-2BEGXAMO.js","../bundle/store-AH6WZMCF.js","../bundle/store-maintenance-command-PBXX3IEV.js"]
32
+ const chunks = ["../bundle/all-profiles-MJ6XSFOO.js","../bundle/anthropic-W5UKBZUB.js","../bundle/app-server-EZ46JAHB.js","../bundle/bun-HB6O2TTT.js","../bundle/bun-sqlite-KBXOW2ES.js","../bundle/decode-AMXUVKNY.js","../bundle/dist-ESHIQU4M.js","../bundle/echarts-GJDMQ2AQ.js","../bundle/embed-L4CRZ2XQ.js","../bundle/embedder-IBGV4M2K.js","../bundle/first-screen-X5IJKBSU.js","../bundle/instructions-YJECS4KN.js","../bundle/mcp-7XPOACO4.js","../bundle/mcp-OQBZXELQ.js","../bundle/mcp-RDZGYPSY.js","../bundle/node-NQG4EVZR.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-BR7F3BLB.js","../bundle/oauth-J7UAWNIK.js","../bundle/open-BR47R5UE.js","../bundle/process-66I7RDPJ.js","../bundle/program-ZNXLJ3D2.js","../bundle/prompt-NE5JJ7UP.js","../bundle/recognize-GC3YFVIA.js","../bundle/remote-QELOMKQM.js","../bundle/rerank-BH6TZ2SP.js","../bundle/serve-WWLRNDT2.js","../bundle/server-DE6NLNUF.js","../bundle/server-ZPSQKOAH.js","../bundle/state-2BEGXAMO.js","../bundle/store-AH6WZMCF.js","../bundle/store-maintenance-command-PBXX3IEV.js"]
33
33
  // After the server answers its first request, so it starts no later.
34
34
  if (serves) setTimeout(() => void Promise.allSettled(chunks.map((chunk) => import(chunk))), 2000).unref()
35
35
  await running
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
 
4
4
  // dist/version.js
5
- var VERSION = "0.12.0";
5
+ var VERSION = "0.13.1";
6
6
 
7
7
  // dist/identity.js
8
8
  var PACKAGE = "@wirecat/clidev-cli";
@@ -3,7 +3,7 @@ import { createRequire as __bundleRequire } from "node:module";
3
3
  const require = __bundleRequire(import.meta.url);
4
4
  import {
5
5
  IDENTITY
6
- } from "./chunk-QQUFZLFP.js";
6
+ } from "./chunk-N5GXKDBC.js";
7
7
  import {
8
8
  catchCrashes
9
9
  } from "./chunk-EFHLQXG6.js";
@@ -14,7 +14,7 @@ import "./chunk-ZVVMGPBJ.js";
14
14
  import { enableCompileCache } from "node:module";
15
15
  enableCompileCache();
16
16
  var stopCatching = catchCrashes({ cli: IDENTITY.command, interactive: process.stdout.isTTY === true });
17
- var { run } = await import("./program-RNGI562F.js");
17
+ var { run } = await import("./program-ZNXLJ3D2.js");
18
18
  try {
19
19
  process.exitCode = await run(process.argv.slice(2));
20
20
  } finally {
@@ -46,7 +46,7 @@ import "./chunk-O5EHUB2V.js";
46
46
  import "./chunk-FDBINRWA.js";
47
47
  import {
48
48
  IDENTITY
49
- } from "./chunk-QQUFZLFP.js";
49
+ } from "./chunk-N5GXKDBC.js";
50
50
  import "./chunk-QKWRL4OD.js";
51
51
  import "./chunk-EGRB55FF.js";
52
52
  import "./chunk-IDWW4TU2.js";
@@ -593,7 +593,7 @@ import {
593
593
  IDENTITY,
594
594
  PACKAGE,
595
595
  SKILL
596
- } from "./chunk-QQUFZLFP.js";
596
+ } from "./chunk-N5GXKDBC.js";
597
597
  import {
598
598
  isTextModelInstalled,
599
599
  textModelsDirectory
@@ -17198,7 +17198,7 @@ var serveCommand3 = /* @__PURE__ */ __name(() => annotate(new Command("serve"),
17198
17198
  run: run3,
17199
17199
  ...environment.signal ? { signal: environment.signal } : {}
17200
17200
  };
17201
- const { serveMcp, serveMcpOverHttp } = await import("./mcp-TEMCENVV.js");
17201
+ const { serveMcp, serveMcpOverHttp } = await import("./mcp-7XPOACO4.js");
17202
17202
  if (!flags.http)
17203
17203
  return serveMcp(options);
17204
17204
  const { portOf: portOf2, publicUrlOf: publicUrlOf2 } = await import("./mcp-RDZGYPSY.js");
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.12.0";
1
+ export declare const VERSION = "0.13.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = "0.12.0";
1
+ export const VERSION = "0.13.1";
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/cli-template",
3
- "version": "0.12.0",
3
+ "version": "0.13.1",
4
4
  "description": "Start a new WireCat CLI: a working skeleton on cli-base and cli-core, copied by new and kept current by upgrade",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Viacheslav Ptsarev",
package/scripts/audit.sh CHANGED
@@ -7,12 +7,15 @@ root=$(cd "$(dirname "$0")/.." && pwd)
7
7
  command=$(node --input-type=module -e "import('$root/dist/identity.js').then((m) => console.log(m.IDENTITY.command))")
8
8
  scratch=$(mktemp -d)
9
9
  trap 'rm -rf "$scratch"' EXIT
10
+ # Read before HOME moves, so the install reuses the owner's npm cache instead of downloading every CLI again.
11
+ npm_cache=$(npm config get cache)
10
12
  # A CLI that starts may move the store under HOME; every CLI run here gets a throwaway one.
11
13
  # Moved folders do not hide the keyring: it is reached over D-Bus.
12
14
  export HOME="$scratch/home" MESSAGING_STORE="$scratch/store" WIRECAT_STATE_DIR="$scratch/state"
13
15
  export DBUS_SESSION_BUS_ADDRESS=disabled:
14
16
  mkdir -p "$HOME"
15
- npm install -g --prefix "$scratch/prefix" --ignore-scripts --no-audit --no-fund --loglevel error \
17
+ npm install -g --prefix "$scratch/prefix" --cache "$npm_cache" --fetch-retries 6 --fetch-retry-mintimeout 20000 \
18
+ --fetch-retry-maxtimeout 120000 --maxsockets 4 --ignore-scripts --no-audit --no-fund --loglevel error \
16
19
  @wirecat/tg-cli @wirecat/max-cli @wirecat/whatsapp-cli @wirecat/cli-memo @wirecat/drive-cli @wirecat/zoom-cli \
17
20
  @wirecat/gcal-cli
18
21
  bin="$scratch/prefix/bin"
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = "0.12.0"
1
+ export const VERSION = "0.13.1"