@countinghouse/ch-local 1.0.0 → 1.0.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.
package/README.md CHANGED
@@ -108,8 +108,8 @@ One install page per client is in [docs/install](docs/install/README.md).
108
108
 
109
109
  | Command | What it does |
110
110
  |---|---|
111
- | `ch-local install --pack ci-failure-triage --from <dir>` | checks each tarball in `<dir>` against the version and sha512 integrity this launcher pins (a tarball not on the list, a wrong hash or a missing one stops it before anything runs). It builds `<home>/app` with the runtime (this launcher and countinghouse) as an npm project with its lockfile, pinned at release so every dependency's version and integrity is fixed too, by `npm ci --omit=optional --ignore-scripts`. The pack's own packages have no npm dependencies and are unpacked beside it by a strict tar reader (files and directories only, no links, size-capped); one that declares dependencies is refused. The new app is swapped in only when complete (the old one goes back if it cannot, and the one replaced is kept in `<home>/previous` for `rollback`). Install writes `<home>/bin/ch-local.js`, `<home>/modules.json` and `<home>/shim.json`, and places each module in `<home>/module-store/<package>/<version>/` (one already there at its pin is not placed again). Every other installed pack this release lists moves to its pins; one it no longer lists stays recorded, as withdrawn. From npm, or from a folder that holds this platform's shim, it also places that shim (below) |
112
- | `ch-local install [--from <dir>]` | with no `--pack`: installs again exactly what the home's record lists, at this ch-local's own release; it never adds a pack and never changes the release |
111
+ | `ch-local install --pack ci-failure-triage` | fetches each package from npm and checks it against the version, sha512 integrity and provenance this launcher pins (a tarball not on the list, a wrong hash or a missing one stops it before anything runs). It builds `<home>/app` with the runtime (this launcher and countinghouse) as an npm project with its lockfile, pinned at release so every dependency's version and integrity is fixed too, by `npm ci --omit=optional --ignore-scripts`. The pack's own packages have no npm dependencies and are unpacked beside it by a strict tar reader (files and directories only, no links, size-capped); one that declares dependencies is refused. The new app is swapped in only when complete (the old one goes back if it cannot, and the one replaced is kept in `<home>/previous` for `rollback`). Install writes `<home>/bin/ch-local.js`, `<home>/modules.json` and `<home>/shim.json`, and places each module in `<home>/module-store/<package>/<version>/` (one already there at its pin is not placed again). Every other installed pack this release lists moves to its pins; one it no longer lists stays recorded, as withdrawn. From npm, or from a folder that holds this platform's shim, it also places that shim (below). `--from <dir>` takes only a prepared development release, with `--unreleased-pins` under `CH_LOCAL_DEV=1`. |
112
+ | `ch-local install` | with no `--pack`: installs again exactly what the home's record lists, at this ch-local's own release; it never adds a pack and never changes the release |
113
113
  | `ch-local add-pack <name> --from <dir>` | adds another pack this release pins beside the installed ones, checked the same way; a part another pack already uses is shared at its pinned version, and one installed at another version stops it (run `upgrade` first). No client file changes: the entry runs `start`, which loads every pack |
114
114
  | `ch-local remove-pack <name>` | removes the pack and each of its parts no other installed pack uses |
115
115
  | `ch-local status` | lists each installed module, its version and what it is: on with its tools (one of your own may be taken up only when the runtime restarts: it says so), a part, or why it is not loaded (and, for one of your own, that it is still on in the running runtime, when it is), with the command that fixes it, and the credential it uses; then each pack and its module count, and a running client still on another ch-local; with a shared runtime, its shim, its log and how it is (serving, restarting, gave up with why, or not running) |
@@ -135,6 +135,10 @@ install first; a module of a withdrawn or held pack does not count. Two
135
135
  packs whose modules call each other cannot be installed in release 1 (each
136
136
  needs the other first). No pack in this release calls outside itself.
137
137
 
138
+ ## Troubleshooting
139
+
140
+ If a request answers "Device is not responding", it ran past its time limit (`ch-local settings get` lists it as requestTimeout, in milliseconds), which a first look at a large CI run can do. Ask again, or raise the limit (up to 120 seconds), for example `ch-local settings set requestTimeout 90s`, and answer y when it asks to confirm; if your client has its own limit for a tool call, that one applies too.
141
+
138
142
  ## Verify it yourself
139
143
 
140
144
  Three facts you can check on your own machine, with your home as `<home>`:
@@ -268,9 +272,9 @@ contract 2; 2026-11-15, the main branch's release build):
268
272
  dependencies, which `--omit=optional` drops by design. An install from
269
273
  npm fetches only this platform's `@countinghouse/ch-shim-<os>-<arch>`, at
270
274
  the version this launcher pins, checked by its integrity and provenance as
271
- each pack's tarballs are, and places it at `<home>/shim/ch-shim`. An
272
- install with `--from` places and records the folder's shim the same way,
273
- checked by the sha512 its pins name; a folder with no shim for this
275
+ each pack's tarballs are, and places it at `<home>/shim/ch-shim`. A
276
+ development install with `--from` places and records the folder's shim
277
+ the same way, checked by the sha512 its pins name; a folder with no shim for this
274
278
  platform leaves the shim aside. Client entries never name it:
275
279
  `session` runs it. A source checkout uses `shim/target/release/ch-shim`
276
280
  (cargo's build), else the platform package in its own `node_modules`
@@ -2,7 +2,9 @@
2
2
  "v": 2,
3
3
  "release": {
4
4
  "security": null,
5
- "notes": null
5
+ "notes": [
6
+ "the default request time limit is 60s (it was 30s); a value you set yourself is kept"
7
+ ]
6
8
  },
7
9
  "self": {
8
10
  "repository": "mchen6/ch-local",
@@ -33,14 +35,14 @@
33
35
  "": {
34
36
  "name": "countinghouse-home-app",
35
37
  "dependencies": {
36
- "@countinghouse/ch-local": "file:tarballs/countinghouse-ch-local-1.0.0.tgz",
38
+ "@countinghouse/ch-local": "file:tarballs/countinghouse-ch-local-1.0.1.tgz",
37
39
  "countinghouse": "file:tarballs/countinghouse-8.0.0.tgz"
38
40
  }
39
41
  },
40
42
  "node_modules/@countinghouse/ch-local": {
41
- "version": "1.0.0",
42
- "resolved": "file:tarballs/countinghouse-ch-local-1.0.0.tgz",
43
- "integrity": "sha512-WZicziDqVi4sUQ0rG+3zH6RfZr/OvOMM3L1Jrl88qV4W76Nvp/X5g0urh6yn17ECnwdYywZjYwcLRGxzA2tN5g==",
43
+ "version": "1.0.1",
44
+ "resolved": "file:tarballs/countinghouse-ch-local-1.0.1.tgz",
45
+ "integrity": "sha512-QpRh0NCNoIUvZSbWhxyZ3Ihg7uG7eJ77XgQ4KYVLBuChUU/sqqM16gSMN/J9L+E3V6YInAT46yWRdP3fPGp2AQ==",
44
46
  "bundleDependencies": [
45
47
  "@sigstore/bundle",
46
48
  "@sigstore/core",
package/lib/settings.js CHANGED
@@ -44,7 +44,11 @@ const ALLOWLIST = {
44
44
  // default, and this is what
45
45
  // `settings get`, a loosening and the start's ceiling check go by.
46
46
  maxOutputBytes: {parse: size, min: MiB, max: 256 * MiB, default: 16 * MiB, guarding: true, tighter: (o, n) => n <= o},
47
- requestTimeout: {parse: ms, min: 5000, max: 120000, default: 30000, guarding: true, tighter: (o, n) => n <= o},
47
+ // 60 s since 1.0.1: a first triage of a large CI run can take most of
48
+ // 30 s, and a call cut there caches nothing, so its retry is cut the same
49
+ // way. Always passed to the runtime (start's settingArgs), so the
50
+ // runtime's own 30 s default never governs under ch-local.
51
+ requestTimeout: {parse: ms, min: 5000, max: 120000, default: 60000, guarding: true, tighter: (o, n) => n <= o},
48
52
  moduleSandbox: sandboxEntry(process.platform),
49
53
  autoUpgrade: {parse: onOff, values: [true, false], default: false, guarding: true, tighter: (o, n) => n === false || o === n},
50
54
  upgradeCheck: {parse: String, values: ['daily', 'weekly', 'never'], default: 'daily', guarding: false}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@countinghouse/ch-local",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "The countinghouse client-pack launcher: installs pinned packs into ~/.countinghouse, starts the runtime over stdio for Claude Code, Cursor, VS Code and Codex, prints each client's config entry, upgrades on request and never silently.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {