@codyswann/lisa 2.281.0 → 2.283.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.
- package/all/copy-contents/gitignore +2 -0
- package/all/create-only/.lisa/DEPENDENCY_DECISIONS.md +175 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +20 -15
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/standards-proof-cmd.d.ts +7 -0
- package/dist/cli/standards-proof-cmd.d.ts.map +1 -0
- package/dist/cli/standards-proof-cmd.js +14 -0
- package/dist/cli/standards-proof-cmd.js.map +1 -0
- package/dist/cli/ui-setup-readiness-local.d.ts +2 -1
- package/dist/cli/ui-setup-readiness-local.d.ts.map +1 -1
- package/dist/cli/ui-setup-readiness-local.js +4 -2
- package/dist/cli/ui-setup-readiness-local.js.map +1 -1
- package/dist/cli/ui-setup-readiness.d.ts.map +1 -1
- package/dist/cli/ui-setup-readiness.js +3 -2
- package/dist/cli/ui-setup-readiness.js.map +1 -1
- package/dist/cli/update-check-hook.d.ts +19 -0
- package/dist/cli/update-check-hook.d.ts.map +1 -0
- package/dist/cli/update-check-hook.js +36 -0
- package/dist/cli/update-check-hook.js.map +1 -0
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +49 -6
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/standards/capture.d.ts +41 -0
- package/dist/standards/capture.d.ts.map +1 -0
- package/dist/standards/capture.js +196 -0
- package/dist/standards/capture.js.map +1 -0
- package/dist/standards/contract.d.ts +45 -0
- package/dist/standards/contract.d.ts.map +1 -0
- package/dist/standards/contract.js +175 -0
- package/dist/standards/contract.js.map +1 -0
- package/dist/standards/git-state.d.ts +30 -0
- package/dist/standards/git-state.d.ts.map +1 -0
- package/dist/standards/git-state.js +179 -0
- package/dist/standards/git-state.js.map +1 -0
- package/dist/standards/index.d.ts +8 -0
- package/dist/standards/index.d.ts.map +1 -0
- package/dist/standards/index.js +8 -0
- package/dist/standards/index.js.map +1 -0
- package/dist/standards/readiness.d.ts +11 -0
- package/dist/standards/readiness.d.ts.map +1 -0
- package/dist/standards/readiness.js +170 -0
- package/dist/standards/readiness.js.map +1 -0
- package/dist/standards/registry.d.ts +42 -0
- package/dist/standards/registry.d.ts.map +1 -0
- package/dist/standards/registry.js +330 -0
- package/dist/standards/registry.js.map +1 -0
- package/dist/standards/storage-reasons.d.ts +15 -0
- package/dist/standards/storage-reasons.d.ts.map +1 -0
- package/dist/standards/storage-reasons.js +48 -0
- package/dist/standards/storage-reasons.js.map +1 -0
- package/dist/standards/storage.d.ts +36 -0
- package/dist/standards/storage.d.ts.map +1 -0
- package/dist/standards/storage.js +330 -0
- package/dist/standards/storage.js.map +1 -0
- package/dist/standards/test-evidence.d.ts +19 -0
- package/dist/standards/test-evidence.d.ts.map +1 -0
- package/dist/standards/test-evidence.js +195 -0
- package/dist/standards/test-evidence.js.map +1 -0
- package/package.json +1 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-doctor/SKILL.md +21 -3
- package/plugins/lisa/rules/eager/dependency-decision-records.md +32 -0
- package/plugins/lisa/rules/reference/dependency-decision-records.md +140 -0
- package/plugins/lisa/scripts/doctor-report.mjs +266 -22
- package/plugins/lisa/skills/lisa-doctor/SKILL.md +21 -3
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/doctor-report.mjs +266 -22
- package/plugins/lisa-agy/skills/lisa-doctor/SKILL.md +21 -3
- 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-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/rules/eager/dependency-decision-records.md +32 -0
- package/plugins/lisa-copilot/rules/reference/dependency-decision-records.md +140 -0
- package/plugins/lisa-copilot/scripts/doctor-report.mjs +266 -22
- package/plugins/lisa-copilot/skills/lisa-doctor/SKILL.md +21 -3
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/rules/dependency-decision-records-reference.mdc +145 -0
- package/plugins/lisa-cursor/rules/dependency-decision-records.mdc +37 -0
- package/plugins/lisa-cursor/scripts/doctor-report.mjs +266 -22
- package/plugins/lisa-cursor/skills/lisa-doctor/SKILL.md +21 -3
- 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-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-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-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-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-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-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-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/src/base/rules/eager/dependency-decision-records.md +32 -0
- package/plugins/src/base/rules/reference/dependency-decision-records.md +140 -0
- package/plugins/src/base/scripts/doctor-report.mjs +266 -22
- package/plugins/src/base/skills/lisa-doctor/SKILL.md +21 -3
- package/rails/copy-overwrite/lefthook.yml +9 -11
- package/rails/copy-overwrite/scripts/lisa-clean-git-env.sh +13 -0
- package/typescript/copy-contents/.husky/pre-push +9 -0
- package/ui/index.html +3 -2
|
@@ -215,6 +215,8 @@ expo-env.d.ts
|
|
|
215
215
|
.lisa/verification-status.json
|
|
216
216
|
# Latest Health v1 result is local runtime state, never project configuration.
|
|
217
217
|
.lisa/health/latest.json
|
|
218
|
+
# Freshness-bound standards proof is local runtime evidence, not knowledge.
|
|
219
|
+
.lisa/standards/latest.json
|
|
218
220
|
|
|
219
221
|
# Automation run outcomes — local scheduler observations read by
|
|
220
222
|
# /lisa:automation-status. Runbooks are project knowledge; run records are not.
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# Dependency Decisions
|
|
2
|
+
|
|
3
|
+
<!-- lisa-dependency-decisions:v1 -->
|
|
4
|
+
|
|
5
|
+
This file is the project's record of **why we keep each material dependency**.
|
|
6
|
+
|
|
7
|
+
A *material* dependency is one whose failure, disappearance, or bad update would
|
|
8
|
+
break something a user can see, or would cost real time to replace. Not every
|
|
9
|
+
package in the lockfile belongs here — only the ones that own a capability.
|
|
10
|
+
|
|
11
|
+
You do not need to be an engineer to read this file. Every entry starts with a
|
|
12
|
+
plain-language explanation of what the dependency does for us, and every entry
|
|
13
|
+
names what evidence would catch a bad update. If an entry does not answer those
|
|
14
|
+
two questions in words a non-engineer understands, the entry is wrong — fix the
|
|
15
|
+
words, not the reader.
|
|
16
|
+
|
|
17
|
+
Lisa seeds this file once and never overwrites it. It is yours to maintain.
|
|
18
|
+
|
|
19
|
+
## How to use this file
|
|
20
|
+
|
|
21
|
+
1. Copy the **Entry template** below for each material dependency.
|
|
22
|
+
2. Add the filled-in entry to the end of the **Records** section.
|
|
23
|
+
3. Fill in every field. If you do not know the answer yet, write
|
|
24
|
+
`_Not yet decided_` — never leave a field blank and never guess. An
|
|
25
|
+
unanswered field is an honest question for the next review; a guess is a
|
|
26
|
+
wrong answer that nobody will re-check.
|
|
27
|
+
4. Re-read an entry whenever that dependency is upgraded across a major version,
|
|
28
|
+
changes maintainers, or its detection evidence fails.
|
|
29
|
+
5. Update `Last reviewed` every time someone actually re-reads the entry, even
|
|
30
|
+
if nothing else changed.
|
|
31
|
+
|
|
32
|
+
### Entry format (stable, appendable)
|
|
33
|
+
|
|
34
|
+
Entries are deliberately uniform so they can be added by hand or appended by a
|
|
35
|
+
script without rewriting the rest of the file:
|
|
36
|
+
|
|
37
|
+
- Every entry is a level-3 heading (`### <name>`) followed by the nine field
|
|
38
|
+
bullets, always in the order shown in the **Entry template**.
|
|
39
|
+
- Entries live under `## Records`, which is the last section of this file, and
|
|
40
|
+
new entries are appended to the end. A `###` heading inside `## Records` is
|
|
41
|
+
always an entry and never guidance — that is what makes the section safe to
|
|
42
|
+
parse and append to.
|
|
43
|
+
- Nothing after `## Records` is guidance, so appending to the end of the file is
|
|
44
|
+
always safe.
|
|
45
|
+
- `_Not yet decided_` is the reserved marker for an unanswered field, so
|
|
46
|
+
unfilled entries are visibly honest rather than silently empty.
|
|
47
|
+
|
|
48
|
+
## When to escalate
|
|
49
|
+
|
|
50
|
+
Reading an entry should end in a decision. Raise these to an owner rather than
|
|
51
|
+
letting them sit — each one means the project is carrying a risk nobody has
|
|
52
|
+
accepted on purpose:
|
|
53
|
+
|
|
54
|
+
- **Nothing would catch a bad update.** The detection-evidence field says
|
|
55
|
+
"nothing would catch it". We are trusting the dependency blind.
|
|
56
|
+
- **The review is older than the dependency.** `Last reviewed` predates the last
|
|
57
|
+
major upgrade of that dependency, so the record describes software we are no
|
|
58
|
+
longer running.
|
|
59
|
+
- **Nobody is behind it.** The trust basis names no maintainer, no owner, or no
|
|
60
|
+
release history — on our side or theirs.
|
|
61
|
+
|
|
62
|
+
An entry full of `_Not yet decided_` is not itself an escalation; it is a
|
|
63
|
+
to-do. The three items above are escalations because someone already looked and
|
|
64
|
+
the answer was bad.
|
|
65
|
+
|
|
66
|
+
## What each field means
|
|
67
|
+
|
|
68
|
+
- **Why we keep it** — the plain-language reason, written for a non-technical
|
|
69
|
+
reader. Lead with the outcome it protects, not the mechanism.
|
|
70
|
+
- **What it is (dependency)** — the package or service name, and the version
|
|
71
|
+
range in use.
|
|
72
|
+
- **What it does for us (owned capability)** — the single capability this
|
|
73
|
+
dependency is responsible for. If you cannot name one capability, the
|
|
74
|
+
dependency is either not material or is doing too much.
|
|
75
|
+
- **Why we believe it's safe (trust basis)** — why we believe this dependency
|
|
76
|
+
will still be maintained and safe next quarter. Evidence, not vibes: who
|
|
77
|
+
maintains it, release cadence, security-response history, how widely it is
|
|
78
|
+
used, whether it is pinned.
|
|
79
|
+
- **What breaks if this is compromised (exposure)** — what it can reach and what
|
|
80
|
+
breaks if it misbehaves. Does it run at build time only, or in production?
|
|
81
|
+
Does it touch user data, secrets, the network, or CI credentials?
|
|
82
|
+
- **What it would take to replace (replacement cost)** — what it would actually
|
|
83
|
+
take to remove or swap it: rough effort, what would have to be rewritten, and
|
|
84
|
+
whether a viable alternative exists today.
|
|
85
|
+
- **What would catch a bad update (detection evidence)** — the specific check
|
|
86
|
+
that would **fail** if an update broke the owned capability. Name the test,
|
|
87
|
+
suite, workflow, or monitor. If the honest answer is "nothing would catch it",
|
|
88
|
+
write that down — it is the most valuable line in the entry. Use
|
|
89
|
+
`_Not yet decided_` only when nobody has looked yet, which is a different
|
|
90
|
+
statement from "we looked, and nothing covers this".
|
|
91
|
+
- **Who owns this and how often we recheck (owner / review cadence)** — who is
|
|
92
|
+
accountable for this entry and how often it gets re-read.
|
|
93
|
+
- **Last reviewed** — ISO date (`YYYY-MM-DD`) of the most recent review.
|
|
94
|
+
|
|
95
|
+
## Entry template
|
|
96
|
+
|
|
97
|
+
Copy this block, fill it in, and append it to the end of **Records** below. Keep
|
|
98
|
+
the nine bullets in this order. Any field you cannot answer yet gets
|
|
99
|
+
`_Not yet decided_`.
|
|
100
|
+
|
|
101
|
+
### <dependency name>
|
|
102
|
+
|
|
103
|
+
- **Why we keep it:** <plain-language reason a non-technical reader can follow>
|
|
104
|
+
- **What it is (dependency):** <package or service name> `<version range>`
|
|
105
|
+
- **What it does for us (owned capability):** <the one capability it owns>
|
|
106
|
+
- **Why we believe it's safe (trust basis):** <maintainer, cadence, adoption,
|
|
107
|
+
security history, pinning>
|
|
108
|
+
- **What breaks if this is compromised (exposure):** <build-time vs runtime;
|
|
109
|
+
data, secrets, network, CI reach>
|
|
110
|
+
- **What it would take to replace (replacement cost):** <effort to remove or
|
|
111
|
+
swap, and the alternative>
|
|
112
|
+
- **What would catch a bad update (detection evidence):** <the named check that
|
|
113
|
+
fails if an update breaks it>
|
|
114
|
+
- **Who owns this and how often we recheck (owner / review cadence):**
|
|
115
|
+
<accountable owner> / <cadence>
|
|
116
|
+
- **Last reviewed:** <YYYY-MM-DD>
|
|
117
|
+
|
|
118
|
+
## Records
|
|
119
|
+
|
|
120
|
+
> **The two entries below are EXAMPLES.** They are here so you can see the shape
|
|
121
|
+
> of a good record — the first complete, the second still being filled in.
|
|
122
|
+
> Replace them with your own material dependencies, or delete them once you have
|
|
123
|
+
> written real entries.
|
|
124
|
+
|
|
125
|
+
### ESLint (EXAMPLE — a complete entry)
|
|
126
|
+
|
|
127
|
+
- **Why we keep it:** It is the automatic reviewer that reads every change
|
|
128
|
+
before a human does and refuses the ones that break our agreed coding rules.
|
|
129
|
+
Without it, those rules become suggestions and the codebase drifts a little
|
|
130
|
+
with every change until nobody can predict how anything is written.
|
|
131
|
+
- **What it is (dependency):** `eslint` `^9`
|
|
132
|
+
- **What it does for us (owned capability):** Automated enforcement of
|
|
133
|
+
code-quality and style rules on every commit and every pull request.
|
|
134
|
+
- **Why we believe it's safe (trust basis):** Maintained by the OpenJS
|
|
135
|
+
Foundation with a published release cadence and a documented
|
|
136
|
+
security-disclosure process; used by a very large share of the JavaScript
|
|
137
|
+
ecosystem, so breakage is found by other people before it reaches us. The
|
|
138
|
+
major version is pinned, so an upgrade is a deliberate decision rather than
|
|
139
|
+
something that arrives on its own.
|
|
140
|
+
- **What breaks if this is compromised (exposure):** Build-time and CI only. It
|
|
141
|
+
never runs in production and never touches customer data. It does run inside
|
|
142
|
+
CI, so a compromised release could in principle read CI environment variables
|
|
143
|
+
— which is why the version is pinned and upgrades are reviewed.
|
|
144
|
+
- **What it would take to replace (replacement cost):** High. Every rule
|
|
145
|
+
configuration and every custom rule would have to be re-expressed in another
|
|
146
|
+
linter, and the pre-commit and CI wiring rebuilt. Alternatives exist (for
|
|
147
|
+
example Biome or oxlint) but none is a drop-in match for the current rule set
|
|
148
|
+
today.
|
|
149
|
+
- **What would catch a bad update (detection evidence):** The `lint` check in
|
|
150
|
+
CI. Warning sign: if lint passes a change we know breaks a rule, the checking
|
|
151
|
+
has silently stopped working — the rule tests exist to catch exactly that.
|
|
152
|
+
- **Who owns this and how often we recheck (owner / review cadence):** Platform
|
|
153
|
+
/ engineering owner — reviewed each major version upgrade, and at least once
|
|
154
|
+
every 6 months.
|
|
155
|
+
- **Last reviewed:** _Not yet decided_ (example entry — never reviewed)
|
|
156
|
+
|
|
157
|
+
### sharp (EXAMPLE — an entry still being filled in)
|
|
158
|
+
|
|
159
|
+
- **Why we keep it:** It resizes and re-encodes every image users upload, so
|
|
160
|
+
photos load quickly instead of being served at full camera resolution.
|
|
161
|
+
- **What it is (dependency):** `sharp` `^0.33`
|
|
162
|
+
- **What it does for us (owned capability):** Server-side image resizing and
|
|
163
|
+
format conversion on upload.
|
|
164
|
+
- **Why we believe it's safe (trust basis):** _Not yet decided_ — nobody has
|
|
165
|
+
checked who maintains it or how quickly security issues get fixed.
|
|
166
|
+
- **What breaks if this is compromised (exposure):** Runs in production and
|
|
167
|
+
processes files uploaded by users. It ships native code, so its reach is
|
|
168
|
+
wider than a pure-JavaScript package.
|
|
169
|
+
- **What it would take to replace (replacement cost):** _Not yet decided_
|
|
170
|
+
- **What would catch a bad update (detection evidence):** _Not yet decided_ —
|
|
171
|
+
this is the gap to close first, because nothing currently proves an upgrade
|
|
172
|
+
did not silently corrupt uploaded images.
|
|
173
|
+
- **Who owns this and how often we recheck (owner / review cadence):**
|
|
174
|
+
_Not yet decided_
|
|
175
|
+
- **Last reviewed:** _Not yet decided_
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { runKaneCli, runKanePilotCli, runKaneProbeCli } from "./kane-cmd.js";
|
|
|
9
9
|
import { printUpdateWarning } from "./print-update-warning.js";
|
|
10
10
|
import { runSetupProject } from "./setup-project.js";
|
|
11
11
|
import { runSetupWiki } from "./setup-wiki.js";
|
|
12
|
+
import { runStandardsProofCli } from "./standards-proof-cmd.js";
|
|
12
13
|
import { runSync } from "./sync-cmd.js";
|
|
13
14
|
import { runUi } from "./ui-cmd.js";
|
|
14
15
|
import { runUpdate } from "./update-cmd.js";
|
|
@@ -44,6 +45,8 @@ export interface ProgramDependencies {
|
|
|
44
45
|
runFileUpstream: typeof runFileUpstream;
|
|
45
46
|
/** Runs and persists the shared Health v1 consumer. */
|
|
46
47
|
runHealthCli: typeof runHealthCli;
|
|
48
|
+
/** Runs every standards command and writes freshness-bound proof. */
|
|
49
|
+
runStandardsProofCli: typeof runStandardsProofCli;
|
|
47
50
|
/** Runs one policy-approved Kane empirical browser objective. */
|
|
48
51
|
runKaneCli: typeof runKaneCli;
|
|
49
52
|
/** Probes Kane installation, authentication, and Test Manager readiness. */
|
package/dist/cli/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAEL,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAyB,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EACL,UAAU,EACV,eAAe,EACf,eAAe,EAEhB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,E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li/index.js
CHANGED
|
@@ -5,17 +5,19 @@ import { runCrossPollinate, } from "./cross-pollinate-cmd.js";
|
|
|
5
5
|
import { runDoctor } from "./doctor.js";
|
|
6
6
|
import { runFileUpstream } from "./file-upstream-cmd.js";
|
|
7
7
|
import { runHealthCli } from "./health-cmd.js";
|
|
8
|
-
import {
|
|
8
|
+
import { addGateCommands } from "./gate-commands.js";
|
|
9
9
|
import { runKaneCli, runKanePilotCli, runKaneProbeCli, } from "./kane-cmd.js";
|
|
10
10
|
import { printUpdateWarning } from "./print-update-warning.js";
|
|
11
11
|
import { DEFAULT_SETUP_PROJECT_DEPENDENCIES, runSetupProject, } from "./setup-project.js";
|
|
12
12
|
import { runSetupWiki } from "./setup-wiki.js";
|
|
13
13
|
import { addSharedOptions } from "./shared-options.js";
|
|
14
14
|
import { SETUP_TYPES } from "./starters.js";
|
|
15
|
+
import { runStandardsProofCli } from "./standards-proof-cmd.js";
|
|
15
16
|
import { runSync } from "./sync-cmd.js";
|
|
16
17
|
import { runUi } from "./ui-cmd.js";
|
|
17
18
|
import { runUpdate } from "./update-cmd.js";
|
|
18
19
|
import { runUpdateCheck } from "./update-check.js";
|
|
20
|
+
import { addUpdateCheckHook } from "./update-check-hook.js";
|
|
19
21
|
import { runVersion } from "./version-cmd.js";
|
|
20
22
|
import { getPackageVersion } from "./version.js";
|
|
21
23
|
const DEFAULT_DEPENDENCIES = {
|
|
@@ -31,6 +33,7 @@ const DEFAULT_DEPENDENCIES = {
|
|
|
31
33
|
runCheckLearningsBudget,
|
|
32
34
|
runFileUpstream,
|
|
33
35
|
runHealthCli,
|
|
36
|
+
runStandardsProofCli,
|
|
34
37
|
runKaneCli,
|
|
35
38
|
runKaneProbeCli,
|
|
36
39
|
runKanePilotCli,
|
|
@@ -114,6 +117,20 @@ function addHealthCommand(program, deps) {
|
|
|
114
117
|
await deps.runHealthCli(targetPath, options);
|
|
115
118
|
});
|
|
116
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Register the explicit, mutating standards proof command.
|
|
122
|
+
* @param program - Commander program to mutate
|
|
123
|
+
* @param deps - Program dependencies
|
|
124
|
+
*/
|
|
125
|
+
function addStandardsProofCommand(program, deps) {
|
|
126
|
+
program
|
|
127
|
+
.command("standards-proof")
|
|
128
|
+
.description("Run all applicable Lisa standards checks and prove the current Git artifact")
|
|
129
|
+
.argument("[path]", PATH_ARG_DESCRIPTION)
|
|
130
|
+
.action(async (targetPath) => {
|
|
131
|
+
await deps.runStandardsProofCli(targetPath);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
117
134
|
/**
|
|
118
135
|
* Register CLI maintenance commands that do not run the root update warning.
|
|
119
136
|
* @param program - Commander program to mutate
|
|
@@ -139,6 +156,7 @@ function addMaintenanceCommands(program, deps) {
|
|
|
139
156
|
});
|
|
140
157
|
addDoctorCommand(program, deps);
|
|
141
158
|
addHealthCommand(program, deps);
|
|
159
|
+
addStandardsProofCommand(program, deps);
|
|
142
160
|
program
|
|
143
161
|
.command("sync")
|
|
144
162
|
.description("Populate .lisa.config.json with every missing setting and sync mirrored files (config wins)")
|
|
@@ -194,20 +212,7 @@ export function createProgram(dependencies = {}) {
|
|
|
194
212
|
.description("Claude Code / Codex CLI governance framework - apply guardrails and guidance to projects")
|
|
195
213
|
.version(getPackageVersion())
|
|
196
214
|
.option("--no-update-check", "Skip the npm latest-version check");
|
|
197
|
-
|
|
198
|
-
// It is non-fatal: a failed check never blocks the action from running.
|
|
199
|
-
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
200
|
-
if (actionCommand.parent?.name() === "kane" ||
|
|
201
|
-
["doctor", "health", "sync", "ui", "update", "version"].includes(actionCommand.name()) ||
|
|
202
|
-
GATE_COMMAND_NAMES.includes(actionCommand.name())) {
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
if (program.opts().updateCheck === false) {
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
const result = await deps.runUpdateCheck();
|
|
209
|
-
deps.printUpdateWarning(result);
|
|
210
|
-
});
|
|
215
|
+
addUpdateCheckHook(program, deps);
|
|
211
216
|
// `apply` is both the explicit subcommand and the default command, so the
|
|
212
217
|
// historical positional form `lisa <destination>` routes here unchanged and
|
|
213
218
|
// produces the same result as `lisa apply <destination>`. Commander rejects a
|
package/dist/cli/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAEL,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAyB,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAEL,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAyB,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,UAAU,EACV,eAAe,EACf,eAAe,GAEhB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE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;IAChD,CAAC,CAAC,CAAC;IAEH,sBAAsB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAEtC,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run every applicable standards command and publish a current proof.
|
|
3
|
+
* @param projectPath - Optional project path
|
|
4
|
+
* @param cwd - Injectable process working directory
|
|
5
|
+
*/
|
|
6
|
+
export declare function runStandardsProofCli(projectPath: string | undefined, cwd?: string): Promise<void>;
|
|
7
|
+
//# sourceMappingURL=standards-proof-cmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standards-proof-cmd.d.ts","sourceRoot":"","sources":["../../src/cli/standards-proof-cmd.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAMf"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** CLI adapter for explicit standards-conformance proof capture. */
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { captureStandardsProof } from "../standards/capture.js";
|
|
4
|
+
/**
|
|
5
|
+
* Run every applicable standards command and publish a current proof.
|
|
6
|
+
* @param projectPath - Optional project path
|
|
7
|
+
* @param cwd - Injectable process working directory
|
|
8
|
+
*/
|
|
9
|
+
export async function runStandardsProofCli(projectPath, cwd = process.cwd()) {
|
|
10
|
+
const root = path.resolve(cwd, projectPath ?? ".");
|
|
11
|
+
const proof = await captureStandardsProof(root);
|
|
12
|
+
process.stdout.write(`standards-proof: PASS ${proof.repository.identity}@${proof.repository.head} (${proof.results.length} checks)\n`);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=standards-proof-cmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standards-proof-cmd.js","sourceRoot":"","sources":["../../src/cli/standards-proof-cmd.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,WAA+B,EAC/B,MAAc,OAAO,CAAC,GAAG,EAAE;IAE3B,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,WAAW,IAAI,GAAG,CAAC,CAAC;IACnD,MAAM,KAAK,GAAG,MAAM,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAChD,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,yBAAyB,KAAK,CAAC,UAAU,CAAC,QAAQ,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,CAAC,MAAM,YAAY,CACjH,CAAC;AACJ,CAAC"}
|
|
@@ -4,10 +4,11 @@ import { type SetupReadinessCheck, type SetupReadinessFinding } from "./ui-setup
|
|
|
4
4
|
export declare const STANDARDS_HEALTH_CHECKS: readonly ["templates.managed", "package.conformance", "hooks.managed", "config.sync", "instructions.canonical", "ci.workflows"];
|
|
5
5
|
/**
|
|
6
6
|
* Never upgrade standards adoption without current lint/test preservation proof.
|
|
7
|
+
* @param projectRoot - Project root whose proof should be validated
|
|
7
8
|
* @param health - Current deterministic Health evidence, when available
|
|
8
9
|
* @returns Standards-adoption readiness finding
|
|
9
10
|
*/
|
|
10
|
-
export declare function standardsFinding(health: HealthResult | undefined): SetupReadinessFinding
|
|
11
|
+
export declare function standardsFinding(projectRoot: string, health: HealthResult | undefined): Promise<SetupReadinessFinding>;
|
|
11
12
|
/**
|
|
12
13
|
* Aggregate stable check IDs without interpreting human-readable reasons.
|
|
13
14
|
* @param check - Setup checklist identifier being evaluated
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-setup-readiness-local.d.ts","sourceRoot":"","sources":["../../src/cli/ui-setup-readiness-local.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ui-setup-readiness-local.d.ts","sourceRoot":"","sources":["../../src/cli/ui-setup-readiness-local.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AASxE,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC3B,MAAM,kCAAkC,CAAC;AAK1C,iFAAiF;AACjF,eAAO,MAAM,uBAAuB,iIAO1B,CAAC;AAEX;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,YAAY,GAAG,SAAS,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAWhC;AA0GD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,YAAY,GAAG,SAAS,EAChC,cAAc,EAAE,SAAS,MAAM,EAAE,EACjC,UAAU,EAAE,MAAM,EAClB,iBAAiB,GAAE,YAAqB,GACvC,qBAAqB,CAwBvB;AAED;;;;GAIG;AAEH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,qBAAqB,CAAC,CAqFhC;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,YAAY,GAAG,SAAS,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAuBhC;AAED;;;;GAIG;AACH,wBAAsB,uBAAuB,CAC3C,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CA+B5B"}
|
|
@@ -3,6 +3,7 @@ import { readdir, realpath } from "node:fs/promises";
|
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { projectPathKind, projectRegularFileExists, readProjectText, resolveProjectPath, } from "../health/read-only-fs.js";
|
|
5
5
|
import { requireCanonicalUtcTimestamp } from "../health/strict-validation.js";
|
|
6
|
+
import { standardsProofFinding } from "../standards/readiness.js";
|
|
6
7
|
import { setupFinding, } from "./ui-setup-readiness-contract.js";
|
|
7
8
|
const AGENT_READY_CHECK = "setup.agent-ready";
|
|
8
9
|
const WIKI_CHECK = "setup.wiki";
|
|
@@ -17,13 +18,14 @@ export const STANDARDS_HEALTH_CHECKS = [
|
|
|
17
18
|
];
|
|
18
19
|
/**
|
|
19
20
|
* Never upgrade standards adoption without current lint/test preservation proof.
|
|
21
|
+
* @param projectRoot - Project root whose proof should be validated
|
|
20
22
|
* @param health - Current deterministic Health evidence, when available
|
|
21
23
|
* @returns Standards-adoption readiness finding
|
|
22
24
|
*/
|
|
23
|
-
export function standardsFinding(health) {
|
|
25
|
+
export async function standardsFinding(projectRoot, health) {
|
|
24
26
|
const managed = healthEvidenceFinding("setup.standards", health, STANDARDS_HEALTH_CHECKS, "Managed standards surfaces are current.", "fail");
|
|
25
27
|
return managed.status === "pass"
|
|
26
|
-
?
|
|
28
|
+
? await standardsProofFinding(projectRoot)
|
|
27
29
|
: managed;
|
|
28
30
|
}
|
|
29
31
|
/** Project workflow secret available without explicit provisioning. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-setup-readiness-local.js","sourceRoot":"","sources":["../../src/cli/ui-setup-readiness-local.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,eAAe,EACf,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EACL,YAAY,GAGb,MAAM,kCAAkC,CAAC;AAE1C,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAC9C,MAAM,UAAU,GAAG,YAAY,CAAC;AAEhC,iFAAiF;AACjF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,mBAAmB;IACnB,qBAAqB;IACrB,eAAe;IACf,aAAa;IACb,wBAAwB;IACxB,cAAc;CACN,CAAC;AAEX
|
|
1
|
+
{"version":3,"file":"ui-setup-readiness-local.js","sourceRoot":"","sources":["../../src/cli/ui-setup-readiness-local.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,eAAe,EACf,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACL,YAAY,GAGb,MAAM,kCAAkC,CAAC;AAE1C,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAC9C,MAAM,UAAU,GAAG,YAAY,CAAC;AAEhC,iFAAiF;AACjF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,mBAAmB;IACnB,qBAAqB;IACrB,eAAe;IACf,aAAa;IACb,wBAAwB;IACxB,cAAc;CACN,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,WAAmB,EACnB,MAAgC;IAEhC,MAAM,OAAO,GAAG,qBAAqB,CACnC,iBAAiB,EACjB,MAAM,EACN,uBAAuB,EACvB,yCAAyC,EACzC,MAAM,CACP,CAAC;IACF,OAAO,OAAO,CAAC,MAAM,KAAK,MAAM;QAC9B,CAAC,CAAC,MAAM,qBAAqB,CAAC,WAAW,CA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OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAAC;IACjD,QAAQ,CAAC,yBAAyB,CAAC,EAAE,CACnC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,UAAU,KACf,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IAChC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,CACjC,WAAW,EAAE,MAAM,KAChB,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IAChC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,UAAU,CAAC,CAErB;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,0BAA0B,GACvC,OAAO,CAAC,oBAAoB,CAAC,CAuC/B;AAmCD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,MAAM,EACnB,YAAY,GAAE,0BAA+B,GAC5C,MAAM,OAAO,CAAC,oBAAoB,CAAC,CA0DrC;AAED,YAAY,EACV,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,kCAAkC,CAAC"}
|
|
@@ -30,16 +30,17 @@ export async function readMergedUiConfig(projectRoot) {
|
|
|
30
30
|
* @returns The validated twelve-finding readiness result.
|
|
31
31
|
*/
|
|
32
32
|
export async function projectSetupReadiness(projectRoot, observations) {
|
|
33
|
-
const [install, agentReady, wiki] = await Promise.all([
|
|
33
|
+
const [install, agentReady, standards, wiki] = await Promise.all([
|
|
34
34
|
installFinding(projectRoot, observations.config, observations.health),
|
|
35
35
|
agentReadyFinding(projectRoot),
|
|
36
|
+
standardsFinding(projectRoot, observations.health),
|
|
36
37
|
wikiSetupFinding(projectRoot, observations.health),
|
|
37
38
|
]);
|
|
38
39
|
const findings = [
|
|
39
40
|
install,
|
|
40
41
|
healthEvidenceFinding("setup.sync", observations.health, ["config.required", "config.sync"], "Required Lisa config and mirrored artifacts are populated and synchronized.", "fail"),
|
|
41
42
|
agentReady,
|
|
42
|
-
|
|
43
|
+
standards,
|
|
43
44
|
trackerFinding(observations.config),
|
|
44
45
|
prdSourceFinding(observations.config),
|
|
45
46
|
githubGovernanceFinding(observations.health, observations.github, observations.deployPipeline),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-setup-readiness.js","sourceRoot":"","sources":["../../src/cli/ui-setup-readiness.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,OAAO,EACL,sBAAsB,GAEvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,gCAAgC,GACjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,GACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,cAAc,GACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,4BAA4B,GAE7B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,qBAAqB,GAEtB,MA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B,CAAC,CACnC;YACD,kBAAkB,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CACzC,YAAY,CAAC,6BAA6B,CAAC,CAC5C;YACD,eAAe,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CACtC,YAAY,CAAC,uBAAuB,CAAC,CACtC;YACD,yBAAyB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;YACrE,WAAW,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;SACzC,CAAC,CAAC;QACH,OAAO,MAAM,qBAAqB,CAAC,WAAW,EAAE;YAC9C,MAAM;YACN,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;YAC3C,MAAM;YACN,cAAc;YACd,WAAW;YACX,GAAG,CAAC,qBAAqB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,CAAC;YACzE,mBAAmB;YACnB,GAAG,CAAC,YAAY,CAAC,GAAG,KAAK,SAAS;gBAChC,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,EAAE,UAAU,EAAE,YAAY,CAAC,GAAG,EAAE,EAAE,CAAC;SACxC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAOD,OAAO,EACL,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Root CLI update-check hook registration. */
|
|
2
|
+
import type { Command } from "commander";
|
|
3
|
+
import type { printUpdateWarning } from "./print-update-warning.js";
|
|
4
|
+
import type { runUpdateCheck } from "./update-check.js";
|
|
5
|
+
/** Collaborators used by the non-fatal root update-check hook. */
|
|
6
|
+
interface UpdateCheckHookDependencies {
|
|
7
|
+
/** Read current and latest package versions. */
|
|
8
|
+
runUpdateCheck: typeof runUpdateCheck;
|
|
9
|
+
/** Print an update warning when a newer version is available. */
|
|
10
|
+
printUpdateWarning: typeof printUpdateWarning;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Register the root update check that precedes non-maintenance actions.
|
|
14
|
+
* @param program - Commander program to mutate
|
|
15
|
+
* @param dependencies - Update-check collaborators
|
|
16
|
+
*/
|
|
17
|
+
export declare function addUpdateCheckHook(program: Command, dependencies: UpdateCheckHookDependencies): void;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=update-check-hook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-check-hook.d.ts","sourceRoot":"","sources":["../../src/cli/update-check-hook.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAYxD,kEAAkE;AAClE,UAAU,2BAA2B;IACnC,gDAAgD;IAChD,cAAc,EAAE,OAAO,cAAc,CAAC;IACtC,iEAAiE;IACjE,kBAAkB,EAAE,OAAO,kBAAkB,CAAC;CAC/C;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,2BAA2B,GACxC,IAAI,CAON"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { GATE_COMMAND_NAMES } from "./gate-commands.js";
|
|
2
|
+
const UPDATE_CHECK_EXEMPT_COMMANDS = Object.freeze([
|
|
3
|
+
"doctor",
|
|
4
|
+
"health",
|
|
5
|
+
"standards-proof",
|
|
6
|
+
"sync",
|
|
7
|
+
"ui",
|
|
8
|
+
"update",
|
|
9
|
+
"version",
|
|
10
|
+
]);
|
|
11
|
+
/**
|
|
12
|
+
* Register the root update check that precedes non-maintenance actions.
|
|
13
|
+
* @param program - Commander program to mutate
|
|
14
|
+
* @param dependencies - Update-check collaborators
|
|
15
|
+
*/
|
|
16
|
+
export function addUpdateCheckHook(program, dependencies) {
|
|
17
|
+
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
18
|
+
if (isUpdateCheckExempt(actionCommand))
|
|
19
|
+
return;
|
|
20
|
+
if (program.opts().updateCheck === false)
|
|
21
|
+
return;
|
|
22
|
+
const result = await dependencies.runUpdateCheck();
|
|
23
|
+
dependencies.printUpdateWarning(result);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Determine whether an action intentionally bypasses the root update warning.
|
|
28
|
+
* @param actionCommand - Matched Commander action
|
|
29
|
+
* @returns Whether the action owns a maintenance or provider-specific path
|
|
30
|
+
*/
|
|
31
|
+
function isUpdateCheckExempt(actionCommand) {
|
|
32
|
+
return (actionCommand.parent?.name() === "kane" ||
|
|
33
|
+
UPDATE_CHECK_EXEMPT_COMMANDS.includes(actionCommand.name()) ||
|
|
34
|
+
GATE_COMMAND_NAMES.includes(actionCommand.name()));
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=update-check-hook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-check-hook.js","sourceRoot":"","sources":["../../src/cli/update-check-hook.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAIxD,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,CAAC;IACjD,QAAQ;IACR,QAAQ;IACR,iBAAiB;IACjB,MAAM;IACN,IAAI;IACJ,QAAQ;IACR,SAAS;CACV,CAAC,CAAC;AAUH;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAgB,EAChB,YAAyC;IAEzC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,EAAE;QAC9D,IAAI,mBAAmB,CAAC,aAAa,CAAC;YAAE,OAAO;QAC/C,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,WAAW,KAAK,KAAK;YAAE,OAAO;QACjD,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,cAAc,EAAE,CAAC;QACnD,YAAY,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,SAAS,mBAAmB,CAAC,aAAsB;IACjD,OAAO,CACL,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,MAAM;QACvC,4BAA4B,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;QAC1D,kBAAwC,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,CACzE,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upstream-evidence-manifest.d.ts","sourceRoot":"","sources":["../../src/core/upstream-evidence-manifest.ts"],"names":[],"mappings":"AACA,iFAAiF;AACjF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"upstream-evidence-manifest.d.ts","sourceRoot":"","sources":["../../src/core/upstream-evidence-manifest.ts"],"names":[],"mappings":"AACA,iFAAiF;AACjF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4gEpE,CAAC;AAEL,4EAA4E;AAC5E,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAiqMjE,CAAC;AAEL,sFAAsF;AACtF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAk6I/D,CAAC"}
|