@codyswann/lisa 2.323.0 → 2.324.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.
Files changed (85) hide show
  1. package/all/copy-overwrite/scripts/lisa-work-item.mjs +154 -15
  2. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  3. package/dist/core/upstream-evidence-manifest.js +13 -7
  4. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  5. package/dist/strategies/package-lisa.d.ts.map +1 -1
  6. package/dist/strategies/package-lisa.js +67 -2
  7. package/dist/strategies/package-lisa.js.map +1 -1
  8. package/package.json +1 -1
  9. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  10. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  11. package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/SKILL.md +24 -0
  12. package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/assets/session-start.sh +17 -0
  13. package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +37 -0
  14. package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/toolchain.mjs +7 -3
  15. package/plugins/lisa/skills/lisa-setup-remote-env/SKILL.md +24 -0
  16. package/plugins/lisa/skills/lisa-setup-remote-env/assets/session-start.sh +17 -0
  17. package/plugins/lisa/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +37 -0
  18. package/plugins/lisa/skills/lisa-setup-remote-env/scripts/toolchain.mjs +7 -3
  19. package/plugins/lisa-agy/plugin.json +1 -1
  20. package/plugins/lisa-agy/skills/lisa-setup-remote-env/SKILL.md +24 -0
  21. package/plugins/lisa-agy/skills/lisa-setup-remote-env/assets/session-start.sh +17 -0
  22. package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +37 -0
  23. package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/toolchain.mjs +7 -3
  24. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  26. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  27. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-copilot/skills/lisa-setup-remote-env/SKILL.md +24 -0
  31. package/plugins/lisa-copilot/skills/lisa-setup-remote-env/assets/session-start.sh +17 -0
  32. package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +37 -0
  33. package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/toolchain.mjs +7 -3
  34. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-cursor/skills/lisa-setup-remote-env/SKILL.md +24 -0
  36. package/plugins/lisa-cursor/skills/lisa-setup-remote-env/assets/session-start.sh +17 -0
  37. package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +37 -0
  38. package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/toolchain.mjs +7 -3
  39. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  41. package/plugins/lisa-expo-agy/plugin.json +1 -1
  42. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  46. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  47. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  51. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  52. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  56. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  57. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  61. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  62. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  66. package/plugins/lisa-rails-agy/plugin.json +1 -1
  67. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  71. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  72. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  76. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  77. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  79. package/plugins/src/base/skills/lisa-setup-remote-env/SKILL.md +24 -0
  80. package/plugins/src/base/skills/lisa-setup-remote-env/assets/session-start.sh +17 -0
  81. package/plugins/src/base/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +37 -0
  82. package/plugins/src/base/skills/lisa-setup-remote-env/scripts/toolchain.mjs +7 -3
  83. package/scripts/lisa-enforcement-fallback.sh +57 -0
  84. package/scripts/lisa-remote-env/session-start.sh +17 -0
  85. package/scripts/lisa-work-item.mjs +8 -1
@@ -1 +1 @@
1
- {"version":3,"file":"package-lisa.d.ts","sourceRoot":"","sources":["../../src/strategies/package-lisa.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE1E,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAe9E;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;GAMG;AACH,qBAAa,mBAAoB,YAAW,aAAa;IACvD,QAAQ,CAAC,IAAI,EAAG,cAAc,CAAU;IAExC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAkB;IAC/C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAmB;IACjD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAc;IACvC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAc;IACvC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAmB;IACjD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAc;IACvC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA0C;IAC5E,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAGhC;IAEF;;;;;;;OAOG;IACG,eAAe,CACnB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,aAAa,EAAE,SAAS,WAAW,EAAE,EACrC,OAAO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;YACW,8BAA8B;IAmB5C;;;;;;OAMG;YACW,gBAAgB;IAW9B;;;;;;;;;OASG;YACW,qBAAqB;IAyCnC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,mBAAmB;IAgB3B;;;;;;;;OAQG;IACH,OAAO,CAAC,cAAc;IAetB;;;;;;;OAOG;IACH,OAAO,CAAC,kBAAkB;IAmB1B;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,aAAa;IAwBrB;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,mBAAmB;IAwB3B;;;;;;;OAOG;IACH,OAAO,CAAC,kBAAkB;IAsB1B;;;;;;;;OAQG;IACH,OAAO,CAAC,iBAAiB;CA2B1B"}
@@ -2,6 +2,7 @@
2
2
  import { readFile } from "node:fs/promises";
3
3
  import * as fse from "fs-extra";
4
4
  import path from "node:path";
5
+ import semver from "semver";
5
6
  import { PROJECT_TYPE_HIERARCHY, PROJECT_TYPE_ORDER } from "../core/config.js";
6
7
  import { ensureParentDir } from "../utils/file-operations.js";
7
8
  import { readJson, writeJson, deepMerge, readJsonOrNull, } from "../utils/json-utils.js";
@@ -458,8 +459,9 @@ export class PackageLisaStrategy {
458
459
  * @private
459
460
  */
460
461
  applyTemplate(projectJson, template) {
461
- // Phase 1: Apply force (Lisa's values completely replace project's)
462
- const afterForce = deepMerge(projectJson, template.force);
462
+ // Phase 1: Apply force (Lisa's values completely replace project's), then
463
+ // restore any dependency pin the host had raised ABOVE Lisa's floor.
464
+ const afterForce = preserveHigherHostPins(projectJson, deepMerge(projectJson, template.force));
463
465
  // Phase 2: Apply defaults (project's values preserved, Lisa provides fallback)
464
466
  const afterDefaults = deepMerge(template.defaults, afterForce);
465
467
  // Phase 3: Apply merge (concatenate and deduplicate arrays)
@@ -554,6 +556,69 @@ const DIRECT_DEPENDENCY_SECTIONS = [
554
556
  ];
555
557
  /** package.json sections that carry npm-style version overrides. */
556
558
  const OVERRIDE_SECTIONS = ["overrides", "resolutions"];
559
+ /**
560
+ * Restore host `overrides`/`resolutions` pins that sit ABOVE Lisa's template.
561
+ * @remarks
562
+ * `force.overrides` / `force.resolutions` exist to push a project PAST a
563
+ * transitive CVE, so they are a security FLOOR — not an assignment. Phase 1
564
+ * applies them with `deepMerge`, where Lisa's value wins unconditionally, and
565
+ * that is only correct while the template is the higher of the two. The moment
566
+ * a host raises a pin beyond the template (or the template simply lags a fresh
567
+ * advisory), the same "security write" silently walks the host BACKWARDS into
568
+ * the vulnerable range it had already escaped.
569
+ *
570
+ * This is not hypothetical: a host pinned at `tar >=7.5.21` was reverted to
571
+ * `>=7.5.11` on every `bun install` by a template carrying the older value, and
572
+ * upgrading Lisa did not fix it — the shipped template was still `>=7.5.19`,
573
+ * below the host. A floor can only be right by coincidence when it is written
574
+ * as an overwrite.
575
+ *
576
+ * Comparison is on the minimum version each range admits (`>=7.5.21` → 7.5.21,
577
+ * `^6.27.0` → 6.27.0), which is exactly the quantity a CVE floor cares about. A
578
+ * value that cannot be parsed — npm's `"$name"` self-references, git URLs, `*`
579
+ * — is left as Phase 1 produced it, so this can only ever RAISE a pin.
580
+ * @param projectJson - The host package.json as it was before Phase 1.
581
+ * @param afterForce - The result of Phase 1's force merge.
582
+ * @returns `afterForce`, with host-side higher pins restored.
583
+ */
584
+ function preserveHigherHostPins(projectJson, afterForce) {
585
+ return OVERRIDE_SECTIONS.reduce((acc, section) => {
586
+ const forcedSection = asRecord(acc[section]);
587
+ const restored = Object.entries(asRecord(projectJson[section])).reduce((pins, [name, hostValue]) => hostPinIsHigher(hostValue, forcedSection[name])
588
+ ? { ...pins, [name]: hostValue }
589
+ : pins, forcedSection);
590
+ return restored === forcedSection ? acc : { ...acc, [section]: restored };
591
+ }, afterForce);
592
+ }
593
+ /**
594
+ * Decide whether the host's pin admits a strictly higher minimum than Lisa's.
595
+ * @param hostValue - The host's range for this dependency.
596
+ * @param forcedValue - The range Phase 1 wrote for the same dependency.
597
+ * @returns True only when both parse and the host's floor is strictly higher.
598
+ */
599
+ function hostPinIsHigher(hostValue, forcedValue) {
600
+ if (typeof hostValue !== "string" || typeof forcedValue !== "string") {
601
+ return false;
602
+ }
603
+ const hostFloor = rangeFloor(hostValue);
604
+ const forcedFloor = rangeFloor(forcedValue);
605
+ return (hostFloor !== null &&
606
+ forcedFloor !== null &&
607
+ semver.gt(hostFloor, forcedFloor));
608
+ }
609
+ /**
610
+ * Resolve the lowest version a range admits.
611
+ * @param range - An npm version range.
612
+ * @returns The minimum version, or null when the range is not comparable.
613
+ */
614
+ function rangeFloor(range) {
615
+ try {
616
+ return semver.minVersion(range)?.version ?? null;
617
+ }
618
+ catch {
619
+ return null;
620
+ }
621
+ }
557
622
  /**
558
623
  * Rewrite literal `overrides`/`resolutions` entries into npm's `"$name"`
559
624
  * self-reference form when the overridden package is also a direct dependency.
@@ -1 +1 @@
1
- {"version":3,"file":"package-lisa.js","sourceRoot":"","sources":["../../src/strategies/package-lisa.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EACL,QAAQ,EACR,SAAS,EACT,SAAS,EACT,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAM1D;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;GAMG;AACH,MAAM,OAAO,mBAAmB;IACrB,IAAI,GAAG,cAAuB,CAAC;IAEvB,YAAY,GAAG,cAAc,CAAC;IAC9B,aAAa,GAAG,eAAe,CAAC;IAChC,QAAQ,GAAG,UAAU,CAAC;I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AC,CAAC,CAAC,IAAI,kBAAkB;QAC5C,sEAAsE;QACtE,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,+CAA+C,CAC7E,CAAC;AACJ,CAAC;AACD,qFAAqF"}
package/package.json CHANGED
@@ -115,7 +115,7 @@
115
115
  "brace-expansion": ">=5.0.9"
116
116
  },
117
117
  "name": "@codyswann/lisa",
118
- "version": "2.323.0",
118
+ "version": "2.324.0",
119
119
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
120
120
  "main": "dist/index.js",
121
121
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.323.0",
3
+ "version": "2.324.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.323.0",
3
+ "version": "2.324.0",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -107,6 +107,14 @@ The selection comes from the surface's `materializeAt` capability in `lisa-secre
107
107
  "url": "https://<vendor>/releases/download/bws-v2.1.0/bws-<platform>-2.1.0.zip",
108
108
  "sha256": "<sha256 published with that exact release>"
109
109
  },
110
+ {
111
+ "name": "gh",
112
+ "version": "2.83.0",
113
+ "install": "release-tar",
114
+ "url": "https://<vendor>/releases/download/v2.83.0/gh_2.83.0_linux_amd64.tar.gz",
115
+ "sha256": "<sha256 published with that exact release>",
116
+ "binary": "gh_2.83.0_linux_amd64/bin/gh"
117
+ },
110
118
  {
111
119
  "name": "codex",
112
120
  "version": "0.144.6",
@@ -133,6 +141,22 @@ The selection comes from the surface's `materializeAt` capability in `lisa-secre
133
141
 
134
142
  Expected shape for most projects: a short `require` list, an empty or near-empty `install` list, and the provider CLI as the only thing always provisioned.
135
143
 
144
+ ### The three `install` methods
145
+
146
+ | `install` | Required fields | Use it when |
147
+ | --- | --- | --- |
148
+ | `release-zip` | `url` **and** `sha256` | The vendor publishes a Linux zip of the release. |
149
+ | `release-tar` | `url` **and** `sha256` — plus `binary` in practice | The vendor publishes no zip for Linux, only a `.tar.gz`. |
150
+ | `npm-global` | `package` | The tool ships on the npm registry. |
151
+
152
+ Anything else is rejected by name at plan time, so a typo fails loudly rather than silently installing nothing.
153
+
154
+ Both archive kinds carry the **same** obligation and differ only in how they are unpacked: `url` and `sha256` are both mandatory, the checksum is verified *before* the archive is unpacked, and a version bump must move the checksum in the same reviewed commit. Neither is a weaker path than the other — `release-tar` exists because some tools worth pinning simply do not publish a zip. `gh` is the case that forced it: it ships `.deb`, `.rpm` and `.tar.gz` and nothing else, so a zip-only installer could not pin the CLI that Lisa's own commit guardrails shell out to.
155
+
156
+ **`binary` means something different for a tarball.** It defaults to the tool's `name` and is resolved relative to the unpacked directory. Release tarballs almost always nest their contents under a versioned top-level directory, so for `release-tar` it must be the path *within* the archive — `gh_2.83.0_linux_amd64/bin/gh`, not `gh`. A bare name there resolves to nothing after a download that otherwise succeeded, and the install fails at the copy step rather than at the fetch, which reads as a broken release when it is a manifest mistake. Bump the version and this path moves with it, alongside the `url` and the `sha256`.
157
+
158
+ Because `release-tar` unpacks with `tar` rather than `unzip`, a project using it should assert `tar` in its `require` list the same way a zip-installing project asserts `unzip` — the base image providing it is an assumption, not a contract.
159
+
136
160
  ### Rules
137
161
 
138
162
  - **The base image is not a contract.** A vendor can change it. A project quietly depending on a preinstalled `jq` should break loudly at setup when that happens, not mysteriously mid-task weeks later. `require` is what converts an implicit assumption into an explicit check.
@@ -27,4 +27,21 @@ if [ "${CLAUDE_CODE_REMOTE:-}" != "true" ]; then
27
27
  fi
28
28
 
29
29
  here="$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd)"
30
+
31
+ # The toolchain first, for the same reason the secrets are here at all.
32
+ #
33
+ # It used to run only from the environment setup script, which a cached
34
+ # environment skips — so a tool added to remoteEnv.tools was invisible until the
35
+ # cache expired about a week later, or until someone edited the vendor's setup
36
+ # field to force a rebuild. Neither is a thing a project can rely on, and the
37
+ # symptom is a container missing a tool its own committed config pins.
38
+ #
39
+ # It is cheap to repeat: the plan probes each tool and installs only what is
40
+ # absent or below its pinned version, so on a warm container this is a handful
41
+ # of --version calls and nothing else.
42
+ #
43
+ # Before secrets, because materializing needs the provider CLI that this step
44
+ # installs. A failure here is fatal for the same reason: continuing would report
45
+ # a missing credential when the real fault was a missing binary.
46
+ bash "${here}/setup.sh" --phase=toolchain "$@"
30
47
  exec bash "${here}/setup.sh" --phase=secrets "$@"
@@ -153,6 +153,42 @@ function installReleaseZip(tool, binDir) {
153
153
  }
154
154
  }
155
155
 
156
+ /**
157
+ * Install a pinned tarball, refusing anything whose checksum does not match.
158
+ *
159
+ * Same contract as the zip path and the same ordering — verify, then unpack —
160
+ * because an unexpected archive must fail before any of its contents reach a
161
+ * directory that is on PATH. It exists because several tools worth pinning
162
+ * publish no zip for Linux: gh ships .deb, .rpm and .tar.gz and nothing else.
163
+ * @param {object} tool Manifest entry.
164
+ * @param {string} binDir Directory to install into.
165
+ */
166
+ function installReleaseTar(tool, binDir) {
167
+ const temporary = join(binDir, `.${tool.name}-download`);
168
+ mkdirSync(temporary, { recursive: true });
169
+ try {
170
+ const archive = join(temporary, "download.tar.gz");
171
+ execFileSync("curl", ["-fsSL", tool.url, "-o", archive], {
172
+ stdio: "inherit",
173
+ });
174
+ execFileSync("sha256sum", ["-c", "-"], {
175
+ input: `${tool.sha256} ${archive}\n`,
176
+ stdio: ["pipe", "ignore", "inherit"],
177
+ });
178
+ execFileSync("tar", ["-xzf", archive, "-C", temporary], {
179
+ stdio: "inherit",
180
+ });
181
+ // Release tarballs usually nest under a versioned directory, so `binary` is
182
+ // a path within the archive rather than a bare name.
183
+ const binary = join(temporary, tool.binary ?? tool.name);
184
+ execFileSync("install", ["-m", "0755", binary, join(binDir, tool.name)], {
185
+ stdio: "inherit",
186
+ });
187
+ } finally {
188
+ rmSync(temporary, { recursive: true, force: true });
189
+ }
190
+ }
191
+
156
192
  /**
157
193
  * Install a pinned global npm package.
158
194
  * @param {object} tool Manifest entry.
@@ -175,6 +211,7 @@ function installNpmGlobal(tool) {
175
211
  function installTool(tool, binDir) {
176
212
  assertPinned(tool);
177
213
  if (tool.install === "release-zip") installReleaseZip(tool, binDir);
214
+ else if (tool.install === "release-tar") installReleaseTar(tool, binDir);
178
215
  else installNpmGlobal(tool);
179
216
  }
180
217
 
@@ -148,10 +148,14 @@ export function planToolchain(tools, probe) {
148
148
  * @param {object} tool Manifest entry.
149
149
  */
150
150
  export function assertPinned(tool) {
151
- if (tool.install === "release-zip") {
151
+ // Both archive kinds carry the same obligation, and differ only in how they
152
+ // are unpacked. gh, for one, publishes no zip for Linux at all — only .deb,
153
+ // .rpm and .tar.gz — so a zip-only installer could not pin the CLI that
154
+ // Lisa's own guardrails shell out to.
155
+ if (tool.install === "release-zip" || tool.install === "release-tar") {
152
156
  if (!tool.url || !tool.sha256) {
153
157
  throw new Error(
154
- `${tool.name}: a release-zip install needs both url and sha256.\n` +
158
+ `${tool.name}: a ${tool.install} install needs both url and sha256.\n` +
155
159
  `A version bump must move the checksum in the same reviewed commit.`
156
160
  );
157
161
  }
@@ -164,6 +168,6 @@ export function assertPinned(tool) {
164
168
  }
165
169
  throw new Error(
166
170
  `${tool.name}: unknown install method "${tool.install}".\n` +
167
- `Supported: release-zip, npm-global.`
171
+ `Supported: release-zip, release-tar, npm-global.`
168
172
  );
169
173
  }
@@ -107,6 +107,14 @@ The selection comes from the surface's `materializeAt` capability in `lisa-secre
107
107
  "url": "https://<vendor>/releases/download/bws-v2.1.0/bws-<platform>-2.1.0.zip",
108
108
  "sha256": "<sha256 published with that exact release>"
109
109
  },
110
+ {
111
+ "name": "gh",
112
+ "version": "2.83.0",
113
+ "install": "release-tar",
114
+ "url": "https://<vendor>/releases/download/v2.83.0/gh_2.83.0_linux_amd64.tar.gz",
115
+ "sha256": "<sha256 published with that exact release>",
116
+ "binary": "gh_2.83.0_linux_amd64/bin/gh"
117
+ },
110
118
  {
111
119
  "name": "codex",
112
120
  "version": "0.144.6",
@@ -133,6 +141,22 @@ The selection comes from the surface's `materializeAt` capability in `lisa-secre
133
141
 
134
142
  Expected shape for most projects: a short `require` list, an empty or near-empty `install` list, and the provider CLI as the only thing always provisioned.
135
143
 
144
+ ### The three `install` methods
145
+
146
+ | `install` | Required fields | Use it when |
147
+ | --- | --- | --- |
148
+ | `release-zip` | `url` **and** `sha256` | The vendor publishes a Linux zip of the release. |
149
+ | `release-tar` | `url` **and** `sha256` — plus `binary` in practice | The vendor publishes no zip for Linux, only a `.tar.gz`. |
150
+ | `npm-global` | `package` | The tool ships on the npm registry. |
151
+
152
+ Anything else is rejected by name at plan time, so a typo fails loudly rather than silently installing nothing.
153
+
154
+ Both archive kinds carry the **same** obligation and differ only in how they are unpacked: `url` and `sha256` are both mandatory, the checksum is verified *before* the archive is unpacked, and a version bump must move the checksum in the same reviewed commit. Neither is a weaker path than the other — `release-tar` exists because some tools worth pinning simply do not publish a zip. `gh` is the case that forced it: it ships `.deb`, `.rpm` and `.tar.gz` and nothing else, so a zip-only installer could not pin the CLI that Lisa's own commit guardrails shell out to.
155
+
156
+ **`binary` means something different for a tarball.** It defaults to the tool's `name` and is resolved relative to the unpacked directory. Release tarballs almost always nest their contents under a versioned top-level directory, so for `release-tar` it must be the path *within* the archive — `gh_2.83.0_linux_amd64/bin/gh`, not `gh`. A bare name there resolves to nothing after a download that otherwise succeeded, and the install fails at the copy step rather than at the fetch, which reads as a broken release when it is a manifest mistake. Bump the version and this path moves with it, alongside the `url` and the `sha256`.
157
+
158
+ Because `release-tar` unpacks with `tar` rather than `unzip`, a project using it should assert `tar` in its `require` list the same way a zip-installing project asserts `unzip` — the base image providing it is an assumption, not a contract.
159
+
136
160
  ### Rules
137
161
 
138
162
  - **The base image is not a contract.** A vendor can change it. A project quietly depending on a preinstalled `jq` should break loudly at setup when that happens, not mysteriously mid-task weeks later. `require` is what converts an implicit assumption into an explicit check.
@@ -27,4 +27,21 @@ if [ "${CLAUDE_CODE_REMOTE:-}" != "true" ]; then
27
27
  fi
28
28
 
29
29
  here="$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd)"
30
+
31
+ # The toolchain first, for the same reason the secrets are here at all.
32
+ #
33
+ # It used to run only from the environment setup script, which a cached
34
+ # environment skips — so a tool added to remoteEnv.tools was invisible until the
35
+ # cache expired about a week later, or until someone edited the vendor's setup
36
+ # field to force a rebuild. Neither is a thing a project can rely on, and the
37
+ # symptom is a container missing a tool its own committed config pins.
38
+ #
39
+ # It is cheap to repeat: the plan probes each tool and installs only what is
40
+ # absent or below its pinned version, so on a warm container this is a handful
41
+ # of --version calls and nothing else.
42
+ #
43
+ # Before secrets, because materializing needs the provider CLI that this step
44
+ # installs. A failure here is fatal for the same reason: continuing would report
45
+ # a missing credential when the real fault was a missing binary.
46
+ bash "${here}/setup.sh" --phase=toolchain "$@"
30
47
  exec bash "${here}/setup.sh" --phase=secrets "$@"
@@ -153,6 +153,42 @@ function installReleaseZip(tool, binDir) {
153
153
  }
154
154
  }
155
155
 
156
+ /**
157
+ * Install a pinned tarball, refusing anything whose checksum does not match.
158
+ *
159
+ * Same contract as the zip path and the same ordering — verify, then unpack —
160
+ * because an unexpected archive must fail before any of its contents reach a
161
+ * directory that is on PATH. It exists because several tools worth pinning
162
+ * publish no zip for Linux: gh ships .deb, .rpm and .tar.gz and nothing else.
163
+ * @param {object} tool Manifest entry.
164
+ * @param {string} binDir Directory to install into.
165
+ */
166
+ function installReleaseTar(tool, binDir) {
167
+ const temporary = join(binDir, `.${tool.name}-download`);
168
+ mkdirSync(temporary, { recursive: true });
169
+ try {
170
+ const archive = join(temporary, "download.tar.gz");
171
+ execFileSync("curl", ["-fsSL", tool.url, "-o", archive], {
172
+ stdio: "inherit",
173
+ });
174
+ execFileSync("sha256sum", ["-c", "-"], {
175
+ input: `${tool.sha256} ${archive}\n`,
176
+ stdio: ["pipe", "ignore", "inherit"],
177
+ });
178
+ execFileSync("tar", ["-xzf", archive, "-C", temporary], {
179
+ stdio: "inherit",
180
+ });
181
+ // Release tarballs usually nest under a versioned directory, so `binary` is
182
+ // a path within the archive rather than a bare name.
183
+ const binary = join(temporary, tool.binary ?? tool.name);
184
+ execFileSync("install", ["-m", "0755", binary, join(binDir, tool.name)], {
185
+ stdio: "inherit",
186
+ });
187
+ } finally {
188
+ rmSync(temporary, { recursive: true, force: true });
189
+ }
190
+ }
191
+
156
192
  /**
157
193
  * Install a pinned global npm package.
158
194
  * @param {object} tool Manifest entry.
@@ -175,6 +211,7 @@ function installNpmGlobal(tool) {
175
211
  function installTool(tool, binDir) {
176
212
  assertPinned(tool);
177
213
  if (tool.install === "release-zip") installReleaseZip(tool, binDir);
214
+ else if (tool.install === "release-tar") installReleaseTar(tool, binDir);
178
215
  else installNpmGlobal(tool);
179
216
  }
180
217
 
@@ -148,10 +148,14 @@ export function planToolchain(tools, probe) {
148
148
  * @param {object} tool Manifest entry.
149
149
  */
150
150
  export function assertPinned(tool) {
151
- if (tool.install === "release-zip") {
151
+ // Both archive kinds carry the same obligation, and differ only in how they
152
+ // are unpacked. gh, for one, publishes no zip for Linux at all — only .deb,
153
+ // .rpm and .tar.gz — so a zip-only installer could not pin the CLI that
154
+ // Lisa's own guardrails shell out to.
155
+ if (tool.install === "release-zip" || tool.install === "release-tar") {
152
156
  if (!tool.url || !tool.sha256) {
153
157
  throw new Error(
154
- `${tool.name}: a release-zip install needs both url and sha256.\n` +
158
+ `${tool.name}: a ${tool.install} install needs both url and sha256.\n` +
155
159
  `A version bump must move the checksum in the same reviewed commit.`
156
160
  );
157
161
  }
@@ -164,6 +168,6 @@ export function assertPinned(tool) {
164
168
  }
165
169
  throw new Error(
166
170
  `${tool.name}: unknown install method "${tool.install}".\n` +
167
- `Supported: release-zip, npm-global.`
171
+ `Supported: release-zip, release-tar, npm-global.`
168
172
  );
169
173
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.323.0",
3
+ "version": "2.324.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -107,6 +107,14 @@ The selection comes from the surface's `materializeAt` capability in `lisa-secre
107
107
  "url": "https://<vendor>/releases/download/bws-v2.1.0/bws-<platform>-2.1.0.zip",
108
108
  "sha256": "<sha256 published with that exact release>"
109
109
  },
110
+ {
111
+ "name": "gh",
112
+ "version": "2.83.0",
113
+ "install": "release-tar",
114
+ "url": "https://<vendor>/releases/download/v2.83.0/gh_2.83.0_linux_amd64.tar.gz",
115
+ "sha256": "<sha256 published with that exact release>",
116
+ "binary": "gh_2.83.0_linux_amd64/bin/gh"
117
+ },
110
118
  {
111
119
  "name": "codex",
112
120
  "version": "0.144.6",
@@ -133,6 +141,22 @@ The selection comes from the surface's `materializeAt` capability in `lisa-secre
133
141
 
134
142
  Expected shape for most projects: a short `require` list, an empty or near-empty `install` list, and the provider CLI as the only thing always provisioned.
135
143
 
144
+ ### The three `install` methods
145
+
146
+ | `install` | Required fields | Use it when |
147
+ | --- | --- | --- |
148
+ | `release-zip` | `url` **and** `sha256` | The vendor publishes a Linux zip of the release. |
149
+ | `release-tar` | `url` **and** `sha256` — plus `binary` in practice | The vendor publishes no zip for Linux, only a `.tar.gz`. |
150
+ | `npm-global` | `package` | The tool ships on the npm registry. |
151
+
152
+ Anything else is rejected by name at plan time, so a typo fails loudly rather than silently installing nothing.
153
+
154
+ Both archive kinds carry the **same** obligation and differ only in how they are unpacked: `url` and `sha256` are both mandatory, the checksum is verified *before* the archive is unpacked, and a version bump must move the checksum in the same reviewed commit. Neither is a weaker path than the other — `release-tar` exists because some tools worth pinning simply do not publish a zip. `gh` is the case that forced it: it ships `.deb`, `.rpm` and `.tar.gz` and nothing else, so a zip-only installer could not pin the CLI that Lisa's own commit guardrails shell out to.
155
+
156
+ **`binary` means something different for a tarball.** It defaults to the tool's `name` and is resolved relative to the unpacked directory. Release tarballs almost always nest their contents under a versioned top-level directory, so for `release-tar` it must be the path *within* the archive — `gh_2.83.0_linux_amd64/bin/gh`, not `gh`. A bare name there resolves to nothing after a download that otherwise succeeded, and the install fails at the copy step rather than at the fetch, which reads as a broken release when it is a manifest mistake. Bump the version and this path moves with it, alongside the `url` and the `sha256`.
157
+
158
+ Because `release-tar` unpacks with `tar` rather than `unzip`, a project using it should assert `tar` in its `require` list the same way a zip-installing project asserts `unzip` — the base image providing it is an assumption, not a contract.
159
+
136
160
  ### Rules
137
161
 
138
162
  - **The base image is not a contract.** A vendor can change it. A project quietly depending on a preinstalled `jq` should break loudly at setup when that happens, not mysteriously mid-task weeks later. `require` is what converts an implicit assumption into an explicit check.
@@ -27,4 +27,21 @@ if [ "${CLAUDE_CODE_REMOTE:-}" != "true" ]; then
27
27
  fi
28
28
 
29
29
  here="$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd)"
30
+
31
+ # The toolchain first, for the same reason the secrets are here at all.
32
+ #
33
+ # It used to run only from the environment setup script, which a cached
34
+ # environment skips — so a tool added to remoteEnv.tools was invisible until the
35
+ # cache expired about a week later, or until someone edited the vendor's setup
36
+ # field to force a rebuild. Neither is a thing a project can rely on, and the
37
+ # symptom is a container missing a tool its own committed config pins.
38
+ #
39
+ # It is cheap to repeat: the plan probes each tool and installs only what is
40
+ # absent or below its pinned version, so on a warm container this is a handful
41
+ # of --version calls and nothing else.
42
+ #
43
+ # Before secrets, because materializing needs the provider CLI that this step
44
+ # installs. A failure here is fatal for the same reason: continuing would report
45
+ # a missing credential when the real fault was a missing binary.
46
+ bash "${here}/setup.sh" --phase=toolchain "$@"
30
47
  exec bash "${here}/setup.sh" --phase=secrets "$@"
@@ -153,6 +153,42 @@ function installReleaseZip(tool, binDir) {
153
153
  }
154
154
  }
155
155
 
156
+ /**
157
+ * Install a pinned tarball, refusing anything whose checksum does not match.
158
+ *
159
+ * Same contract as the zip path and the same ordering — verify, then unpack —
160
+ * because an unexpected archive must fail before any of its contents reach a
161
+ * directory that is on PATH. It exists because several tools worth pinning
162
+ * publish no zip for Linux: gh ships .deb, .rpm and .tar.gz and nothing else.
163
+ * @param {object} tool Manifest entry.
164
+ * @param {string} binDir Directory to install into.
165
+ */
166
+ function installReleaseTar(tool, binDir) {
167
+ const temporary = join(binDir, `.${tool.name}-download`);
168
+ mkdirSync(temporary, { recursive: true });
169
+ try {
170
+ const archive = join(temporary, "download.tar.gz");
171
+ execFileSync("curl", ["-fsSL", tool.url, "-o", archive], {
172
+ stdio: "inherit",
173
+ });
174
+ execFileSync("sha256sum", ["-c", "-"], {
175
+ input: `${tool.sha256} ${archive}\n`,
176
+ stdio: ["pipe", "ignore", "inherit"],
177
+ });
178
+ execFileSync("tar", ["-xzf", archive, "-C", temporary], {
179
+ stdio: "inherit",
180
+ });
181
+ // Release tarballs usually nest under a versioned directory, so `binary` is
182
+ // a path within the archive rather than a bare name.
183
+ const binary = join(temporary, tool.binary ?? tool.name);
184
+ execFileSync("install", ["-m", "0755", binary, join(binDir, tool.name)], {
185
+ stdio: "inherit",
186
+ });
187
+ } finally {
188
+ rmSync(temporary, { recursive: true, force: true });
189
+ }
190
+ }
191
+
156
192
  /**
157
193
  * Install a pinned global npm package.
158
194
  * @param {object} tool Manifest entry.
@@ -175,6 +211,7 @@ function installNpmGlobal(tool) {
175
211
  function installTool(tool, binDir) {
176
212
  assertPinned(tool);
177
213
  if (tool.install === "release-zip") installReleaseZip(tool, binDir);
214
+ else if (tool.install === "release-tar") installReleaseTar(tool, binDir);
178
215
  else installNpmGlobal(tool);
179
216
  }
180
217