@codyswann/lisa 8.6.0 → 8.6.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.
Files changed (85) hide show
  1. package/all/copy-overwrite/scripts/lib/completion-authorization.mjs +3 -3
  2. package/all/copy-overwrite/scripts/lib/completion-proof-publisher.mjs +2 -1
  3. package/all/copy-overwrite/scripts/lib/completion-proof-shape.mjs +21 -1
  4. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +3 -3
  5. package/dist/core/lisa-owned-hash-ledger.json +14 -0
  6. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  7. package/dist/core/upstream-evidence-manifest.json +30 -6
  8. package/package.json +4 -4
  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/scripts/human-gate-act.mjs +50 -21
  12. package/plugins/lisa/.codex-plugin/skills/lisa-usage-accounting/references/estimate.md +5 -5
  13. package/plugins/lisa/scripts/human-gate-act.mjs +50 -21
  14. package/plugins/lisa/skills/lisa-usage-accounting/references/estimate.md +5 -5
  15. package/plugins/lisa-agy/plugin.json +1 -1
  16. package/plugins/lisa-agy/scripts/human-gate-act.mjs +50 -21
  17. package/plugins/lisa-agy/skills/lisa-usage-accounting/references/estimate.md +5 -5
  18. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  19. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  20. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  21. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  25. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-copilot/scripts/human-gate-act.mjs +50 -21
  27. package/plugins/lisa-copilot/skills/lisa-usage-accounting/references/estimate.md +5 -5
  28. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-cursor/scripts/human-gate-act.mjs +50 -21
  30. package/plugins/lisa-cursor/skills/lisa-usage-accounting/references/estimate.md +5 -5
  31. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  33. package/plugins/lisa-devin/scripts/human-gate-act.mjs +50 -21
  34. package/plugins/lisa-devin/skills/lisa-usage-accounting/references/estimate.md +5 -5
  35. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  37. package/plugins/lisa-expo-agy/plugin.json +1 -1
  38. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  42. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  44. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  45. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-harper-fabric-devin/.devin-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-nestjs-devin/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  56. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  58. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  59. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  63. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  65. package/plugins/lisa-rails-agy/plugin.json +1 -1
  66. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  70. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  72. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  73. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  77. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  79. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  80. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  84. package/plugins/src/base/scripts/human-gate-act.mjs +50 -21
  85. package/plugins/src/base/skills/lisa-usage-accounting/references/estimate.md +5 -5
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "TypeScript-specific hooks for formatting, linting, and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "Distributable LLM Wiki kernel — ingest, query, lint, and maintain a git-native markdown knowledge base across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "8.6.0",
3
+ "version": "8.6.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -116,6 +116,24 @@ function readConfig(file) {
116
116
  }
117
117
  }
118
118
 
119
+ /**
120
+ * Whether parsed JSON is an object that can hold configuration keys.
121
+ * @param {unknown} value - Parsed configuration value
122
+ * @returns {boolean} Whether the value is a config object
123
+ */
124
+ function isConfigObject(value) {
125
+ return value !== null && typeof value === "object" && !Array.isArray(value);
126
+ }
127
+
128
+ /**
129
+ * Read the raw block, preserving invalid declarations for the mode resolver.
130
+ * @param {unknown} config - Parsed config file
131
+ * @returns {unknown} Raw human-gate block
132
+ */
133
+ function humanGateBlock(config) {
134
+ return isConfigObject(config) ? config.humanGate : undefined;
135
+ }
136
+
119
137
  /**
120
138
  * The effective human-only classes: local override replaces global when set.
121
139
  * @param {unknown} local - Parsed local config
@@ -123,10 +141,10 @@ function readConfig(file) {
123
141
  * @returns {unknown[]} Declared classes
124
142
  */
125
143
  export function resolveHumanOnly(local, global) {
126
- const pick = config =>
127
- config && typeof config === "object"
128
- ? config.humanGate?.humanOnly
129
- : undefined;
144
+ const pick = config => {
145
+ const block = humanGateBlock(config);
146
+ return isConfigObject(block) ? block.humanOnly : undefined;
147
+ };
130
148
  const value = pick(local) ?? pick(global);
131
149
  return Array.isArray(value) ? value : [];
132
150
  }
@@ -142,27 +160,37 @@ export function resolveHumanOnly(local, global) {
142
160
  * as `rejected` (its JSON spelling) so the caller can report it.
143
161
  * @param {unknown} local - Parsed local config
144
162
  * @param {unknown} global - Parsed global config
145
- * @returns {{ mode: string, rejected?: string }} The mode in force
163
+ * @returns {{ mode: string, rejected?: string, rejectedBlock?: true }} The mode in force
146
164
  */
147
165
  export function resolveHumanGateMode(local, global) {
148
- const pick = config =>
149
- config && typeof config === "object" ? config.humanGate?.mode : undefined;
166
+ const pick = config => {
167
+ const block = humanGateBlock(config);
168
+ if (!isConfigObject(block))
169
+ return { value: block, mode: undefined, malformed: true };
170
+ return {
171
+ value: block.mode,
172
+ mode: normalizeHumanGateMode(block.mode),
173
+ malformed: false,
174
+ };
175
+ };
150
176
  // Every declaration is judged, so a typo in the committed file is reported
151
177
  // even while a valid local value is in force.
152
178
  const declared = [pick(local), pick(global)].filter(
153
- value => value !== undefined
179
+ entry => entry.value !== undefined
154
180
  );
155
- const valid = declared
156
- .map(normalizeHumanGateMode)
157
- .find(mode => HUMAN_GATE_MODES.includes(mode));
181
+ const valid = declared.find(entry => HUMAN_GATE_MODES.includes(entry.mode));
158
182
  const invalid = declared.find(
159
- value => !HUMAN_GATE_MODES.includes(normalizeHumanGateMode(value))
183
+ entry => !HUMAN_GATE_MODES.includes(entry.mode)
160
184
  );
161
185
  const mode =
162
- valid ?? (invalid === undefined ? DEFAULT_HUMAN_GATE_MODE : "strict");
186
+ valid?.mode ?? (invalid === undefined ? DEFAULT_HUMAN_GATE_MODE : "strict");
163
187
  return invalid === undefined
164
188
  ? { mode }
165
- : { mode, rejected: JSON.stringify(invalid) };
189
+ : {
190
+ mode,
191
+ rejected: JSON.stringify(invalid.value),
192
+ ...(invalid.malformed ? { rejectedBlock: true } : {}),
193
+ };
166
194
  }
167
195
 
168
196
  /**
@@ -170,23 +198,24 @@ export function resolveHumanGateMode(local, global) {
170
198
  * human-only classes, each resolved local-then-global.
171
199
  * @param {unknown} local - Parsed local config
172
200
  * @param {unknown} global - Parsed global config
173
- * @returns {{ mode: string, humanOnly: unknown[], rejected?: string }} Policy
201
+ * @returns {{ mode: string, humanOnly: unknown[], rejected?: string, rejectedBlock?: true }} Policy
174
202
  */
175
203
  export function resolveHumanGatePolicy(local, global) {
176
- const { mode, rejected } = resolveHumanGateMode(local, global);
177
204
  return {
178
- mode,
205
+ ...resolveHumanGateMode(local, global),
179
206
  humanOnly: resolveHumanOnly(local, global),
180
- ...(rejected === undefined ? {} : { rejected }),
181
207
  };
182
208
  }
183
209
 
184
210
  /**
185
211
  * The stderr line for an invalid `humanGate.mode`.
186
212
  * @param {string} rejected - JSON spelling of the declared value
213
+ * @param {boolean} rejectedBlock - Whether the whole block was invalid
187
214
  * @returns {string} One warning line
188
215
  */
189
- function invalidModeWarning(rejected) {
216
+ function invalidModeWarning(rejected, rejectedBlock) {
217
+ if (rejectedBlock)
218
+ return `Invalid humanGate: ${rejected} is not an object.\n`;
190
219
  const accepted = HUMAN_GATE_MODES.map(value => `"${value}"`).join(" | ");
191
220
  return `Invalid humanGate.mode: ${rejected} is not one of ${accepted}; ignored.\n`;
192
221
  }
@@ -250,12 +279,12 @@ export function main(argv, io = {}) {
250
279
  error(`${failed.error}\n`);
251
280
  return 2;
252
281
  }
253
- const { rejected, ...policy } = resolveHumanGatePolicy(
282
+ const { rejected, rejectedBlock, ...policy } = resolveHumanGatePolicy(
254
283
  local.value,
255
284
  global.value
256
285
  );
257
286
  if (rejected !== undefined) {
258
- error(invalidModeWarning(rejected));
287
+ error(invalidModeWarning(rejected, rejectedBlock === true));
259
288
  error(`humanGate.mode in force: "${policy.mode}".\n`);
260
289
  }
261
290
  if (command === "policy") {
@@ -130,11 +130,11 @@ reached done with no estimate shows `none recorded` in the estimate row rather t
130
130
  range.
131
131
 
132
132
  `lisa-work-item complete` enforces it: when `required` is true, it refuses (as `pending-proof`) an
133
- item with no usage entry, with no tally, or with a tally that no longer matches the ledger. The
134
- estimate section is machine-owned metadata, so rewriting it does not change the specification
135
- digest the accepted completion proof is bound to. Only the exact lines `lisa-estimate` writes are
136
- left out; every other line a person adds inside it still counts, even one that starts with
137
- `Actual:` or `Basis:`.
133
+ item with no usage entry, with no tally, or with a tally that no longer matches the ledger.
134
+ The specification digest stays the same when Lisa first adds the estimate section or refreshes
135
+ its tally. The digest includes prose a person adds inside that section, including lines starting
136
+ with `Actual:` or `Basis:`. Existing proofs can still match the digest that Lisa calculated for
137
+ their unchanged specification.
138
138
 
139
139
  ## When the config is off
140
140