@codyswann/lisa 4.111.1 → 4.111.2
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/all/copy-overwrite/scripts/lib/completion-proof-content.mjs +2 -2
- package/all/copy-overwrite/scripts/lib/completion-proof-projection.mjs +2 -2
- package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +1 -0
- package/all/copy-overwrite/scripts/lib/usage-artifact-ref.d.mts +8 -0
- package/all/copy-overwrite/scripts/lib/usage-artifact-ref.mjs +77 -0
- package/all/copy-overwrite/scripts/lib/usage-ledger-integrity.d.mts +3 -0
- package/all/copy-overwrite/scripts/lib/usage-ledger-integrity.mjs +63 -0
- package/all/copy-overwrite/scripts/lib/usage-ledger.d.mts +1 -0
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +11 -4
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +44 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +23 -11
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/utils/usage-accounting.d.ts +1 -1
- package/dist/utils/usage-accounting.d.ts.map +1 -1
- package/dist/utils/usage-accounting.js +1 -1
- package/dist/utils/usage-accounting.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/rules/reference/usage-accounting.md +9 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/rules/reference/usage-accounting.md +9 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/rules/usage-accounting-reference.mdc +9 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/rules/reference/usage-accounting.md +9 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/rules/reference/usage-accounting.md +9 -1
- package/scripts/two-channel-couplings.json +1 -1
- package/typescript/copy-overwrite/.prettierignore +1 -0
- package/dist/utils/usage-artifact-ref.d.ts +0 -30
- package/dist/utils/usage-artifact-ref.d.ts.map +0 -1
- package/dist/utils/usage-artifact-ref.js +0 -55
- package/dist/utils/usage-artifact-ref.js.map +0 -1
|
@@ -250,10 +250,18 @@ fail loudly; it must never report success over an unreadable ledger.
|
|
|
250
250
|
same section.
|
|
251
251
|
- Every parseable direct entry in the section appears in the rollup's `direct_entry_ids`.
|
|
252
252
|
- Every entry the caller just wrote is parseable from the stored surface.
|
|
253
|
+
- The `artifact_ref` of every entry the caller just wrote (every entry when no ids are given)
|
|
254
|
+
uses the grammar the completion proof recognises: a Linear ref must be
|
|
255
|
+
`linear:<workspace>/<KEY-N>`. A hand-written token never passes through the writer, so read-back
|
|
256
|
+
is where a short `linear:<KEY-N>` is caught.
|
|
253
257
|
|
|
254
258
|
`verifyLisaUsageSectionIntegrity` in the shared utility layer implements exactly these checks and
|
|
255
259
|
returns structured issue codes (`missing-section`, `missing-entry-token`, `missing-rollup-token`,
|
|
256
|
-
`unrecorded-entry`). Callers run it against the read-back body, not
|
|
260
|
+
`unrecorded-entry`, `non-canonical-artifact-ref`). Callers run it against the read-back body, not
|
|
261
|
+
against the payload they sent. The writer and read-back take the `artifact_ref` grammar from one
|
|
262
|
+
shared module, `scripts/lib/usage-artifact-ref.mjs`. The completion proof treats
|
|
263
|
+
`non-canonical-artifact-ref` as non-fatal and instead refuses the specific Verify entry by its own
|
|
264
|
+
grammar.
|
|
257
265
|
|
|
258
266
|
## Rollup and dedupe behavior
|
|
259
267
|
|
|
@@ -246,6 +246,7 @@ scripts/lib/process-tree-runner.mjs
|
|
|
246
246
|
scripts/lib/reusable-workflow-load-adapter.mjs
|
|
247
247
|
scripts/lib/reusable-workflow-load-failure.mjs
|
|
248
248
|
scripts/lib/reusable-workflow-load-scan.mjs
|
|
249
|
+
scripts/lib/usage-artifact-ref.mjs
|
|
249
250
|
scripts/lib/usage-effectiveness.mjs
|
|
250
251
|
scripts/lib/usage-ledger-integrity.mjs
|
|
251
252
|
scripts/lib/usage-ledger.mjs
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Producer-side grammar check for usage-entry `artifact_ref` values.
|
|
3
|
-
*
|
|
4
|
-
* Writers must produce a Linear ref as `linear:<workspace>/<KEY-N>`. The
|
|
5
|
-
* completion-proof reader (`isVerifyEntryFor` in
|
|
6
|
-
* `scripts/lib/completion-proof-content.mjs`) matches that form exactly,
|
|
7
|
-
* case-sensitively, against an uppercase issue identifier; it also tolerates a
|
|
8
|
-
* bare `KEY-N`, but it never recognises the short `linear:<KEY-N>`. The writer
|
|
9
|
-
* is a pure utility with no config or workspace context, so it cannot
|
|
10
|
-
* normalise a short ref reliably. It refuses it instead, so producer and
|
|
11
|
-
* consumer agree on one grammar and a bad ref fails loudly at write time
|
|
12
|
-
* rather than silently later (CodySwannGT/lisa#4699).
|
|
13
|
-
*
|
|
14
|
-
* Only the shape is checked, not the value: the workspace must still equal the
|
|
15
|
-
* `linear.workspace` key in `.lisa.config.json` exactly, including case.
|
|
16
|
-
*
|
|
17
|
-
* Only the `linear:` scheme is checked. Other providers' refs (`github:...`,
|
|
18
|
-
* bare Jira `KEY-N`, `notion:...`, and so on) pass through unchanged.
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* Refuse a usage `artifact_ref` that the completion-proof reader would never
|
|
22
|
-
* recognise.
|
|
23
|
-
*
|
|
24
|
-
* @param ref Candidate `artifact_ref` about to be written.
|
|
25
|
-
* @throws {Error} When `ref` starts with `linear:` but is not
|
|
26
|
-
* `linear:<workspace>/<KEY-N>` (no `/`, an empty workspace or one holding
|
|
27
|
-
* whitespace, or a key that is not an uppercase `KEY-N`).
|
|
28
|
-
*/
|
|
29
|
-
export declare function assertCanonicalArtifactRef(ref: string): void;
|
|
30
|
-
//# sourceMappingURL=usage-artifact-ref.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usage-artifact-ref.d.ts","sourceRoot":"","sources":["../../src/utils/usage-artifact-ref.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAiBH;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAc5D"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Producer-side grammar check for usage-entry `artifact_ref` values.
|
|
3
|
-
*
|
|
4
|
-
* Writers must produce a Linear ref as `linear:<workspace>/<KEY-N>`. The
|
|
5
|
-
* completion-proof reader (`isVerifyEntryFor` in
|
|
6
|
-
* `scripts/lib/completion-proof-content.mjs`) matches that form exactly,
|
|
7
|
-
* case-sensitively, against an uppercase issue identifier; it also tolerates a
|
|
8
|
-
* bare `KEY-N`, but it never recognises the short `linear:<KEY-N>`. The writer
|
|
9
|
-
* is a pure utility with no config or workspace context, so it cannot
|
|
10
|
-
* normalise a short ref reliably. It refuses it instead, so producer and
|
|
11
|
-
* consumer agree on one grammar and a bad ref fails loudly at write time
|
|
12
|
-
* rather than silently later (CodySwannGT/lisa#4699).
|
|
13
|
-
*
|
|
14
|
-
* Only the shape is checked, not the value: the workspace must still equal the
|
|
15
|
-
* `linear.workspace` key in `.lisa.config.json` exactly, including case.
|
|
16
|
-
*
|
|
17
|
-
* Only the `linear:` scheme is checked. Other providers' refs (`github:...`,
|
|
18
|
-
* bare Jira `KEY-N`, `notion:...`, and so on) pass through unchanged.
|
|
19
|
-
*/
|
|
20
|
-
const LINEAR_PREFIX = "linear:";
|
|
21
|
-
const LINEAR_REST_PATTERN = /^[^/\s]+\/[A-Z][A-Z0-9_]*-\d+$/;
|
|
22
|
-
const LINEAR_REQUIRED_FORM = "linear:<workspace>/<KEY-N>";
|
|
23
|
-
/**
|
|
24
|
-
* Whether the part after `linear:` is `<workspace>/<KEY-N>`.
|
|
25
|
-
*
|
|
26
|
-
* @param rest Ref text after the `linear:` prefix.
|
|
27
|
-
* @returns True for a workspace without `/` or whitespace followed by exactly
|
|
28
|
-
* one uppercase `KEY-N`.
|
|
29
|
-
*/
|
|
30
|
-
function isQualifiedLinearRest(rest) {
|
|
31
|
-
return LINEAR_REST_PATTERN.test(rest);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Refuse a usage `artifact_ref` that the completion-proof reader would never
|
|
35
|
-
* recognise.
|
|
36
|
-
*
|
|
37
|
-
* @param ref Candidate `artifact_ref` about to be written.
|
|
38
|
-
* @throws {Error} When `ref` starts with `linear:` but is not
|
|
39
|
-
* `linear:<workspace>/<KEY-N>` (no `/`, an empty workspace or one holding
|
|
40
|
-
* whitespace, or a key that is not an uppercase `KEY-N`).
|
|
41
|
-
*/
|
|
42
|
-
export function assertCanonicalArtifactRef(ref) {
|
|
43
|
-
if (!ref.startsWith(LINEAR_PREFIX)) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
if (isQualifiedLinearRest(ref.slice(LINEAR_PREFIX.length))) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
throw new Error(`Usage artifact_ref "${ref}" is not a canonical Linear reference. ` +
|
|
50
|
-
`Write it as ${LINEAR_REQUIRED_FORM} (for example linear:acme/ENG-11), ` +
|
|
51
|
-
`taking <workspace> from the linear.workspace key in .lisa.config.json. ` +
|
|
52
|
-
`The completion proof never recognises a short linear:<KEY-N> or a ` +
|
|
53
|
-
`lowercase key, so such an entry would later be refused as absent.`);
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=usage-artifact-ref.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usage-artifact-ref.js","sourceRoot":"","sources":["../../src/utils/usage-artifact-ref.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,aAAa,GAAG,SAAS,CAAC;AAChC,MAAM,mBAAmB,GAAG,gCAAgC,CAAC;AAC7D,MAAM,oBAAoB,GAAG,4BAA4B,CAAC;AAE1D;;;;;;GAMG;AACH,SAAS,qBAAqB,CAAC,IAAY;IACzC,OAAO,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,0BAA0B,CAAC,GAAW;IACpD,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;QACnC,OAAO;IACT,CAAC;IACD,IAAI,qBAAqB,CAAC,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;QAC3D,OAAO;IACT,CAAC;IACD,MAAM,IAAI,KAAK,CACb,uBAAuB,GAAG,yCAAyC;QACjE,eAAe,oBAAoB,qCAAqC;QACxE,yEAAyE;QACzE,oEAAoE;QACpE,mEAAmE,CACtE,CAAC;AACJ,CAAC"}
|