@codyswann/lisa 4.107.4 → 4.107.5
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/lisa-hooks/block-managed-file-edits.sh +84 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +4 -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 +7 -5
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/plugin-templates/block-managed-file-edits.sh +84 -0
- package/npm-package/create-only/.github/workflows/publish-to-npm.yml +2 -2
- 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/hooks/block-managed-file-edits.sh +84 -0
- package/plugins/lisa-agy/hooks/block-managed-file-edits.sh +84 -0
- 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/hooks/block-managed-file-edits.sh +84 -0
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-managed-file-edits.sh +84 -0
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/block-managed-file-edits.sh +84 -0
- 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/hooks/block-managed-file-edits.sh +84 -0
- package/scripts/update-node-version.ts +16 -2
- package/typescript/copy-overwrite/.github/GITHUB_ACTIONS.md +2 -2
|
@@ -277,6 +277,86 @@ relative_path() {
|
|
|
277
277
|
printf '%s' "${rel#./}"
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
+
# The host's dependency and devDependency names, one per line, read at most
|
|
281
|
+
# once per classification. `managed_source` runs inside `$(...)`, so the cache
|
|
282
|
+
# lives only as long as that subshell — one classification, not one hook run.
|
|
283
|
+
# Unreadable or malformed `package.json` yields nothing, which makes every
|
|
284
|
+
# dependency-keyed stack below read as absent — an allow, the safe direction.
|
|
285
|
+
#
|
|
286
|
+
# Loaded into a global rather than echoed, so callers match with a here-string
|
|
287
|
+
# and no pipeline: under `pipefail` a `grep -q` that stops reading early can
|
|
288
|
+
# fail the writer with SIGPIPE and turn a match into a miss.
|
|
289
|
+
host_dependency_names=""
|
|
290
|
+
host_dependency_names_pending=1
|
|
291
|
+
load_host_dependency_names() {
|
|
292
|
+
[ "$host_dependency_names_pending" -eq 1 ] || return 0
|
|
293
|
+
host_dependency_names="$(jq -r \
|
|
294
|
+
'[(.dependencies // {}), (.devDependencies // {})] | add | keys[]' \
|
|
295
|
+
"$project_root/package.json" 2>/dev/null || true)"
|
|
296
|
+
host_dependency_names_pending=0
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
# Exact dependency name, or with `prefix` as the second argument, any name
|
|
300
|
+
# starting with it (the NestJS detector's `@nestjs` test).
|
|
301
|
+
host_has_dependency() {
|
|
302
|
+
load_host_dependency_names
|
|
303
|
+
local name
|
|
304
|
+
while IFS= read -r name; do
|
|
305
|
+
case "$name" in
|
|
306
|
+
"$1") return 0 ;;
|
|
307
|
+
"$1"*) [ "${2:-}" = prefix ] && return 0 ;;
|
|
308
|
+
esac
|
|
309
|
+
done <<<"$host_dependency_names"
|
|
310
|
+
return 1
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
# Whether the host is the given stack, so that stack's templates reach it.
|
|
314
|
+
#
|
|
315
|
+
# THE SAME PATH CAN BELONG TO DIFFERENT OWNERS IN DIFFERENT STACKS.
|
|
316
|
+
# `.github/workflows/ci.yml` is create-only in typescript, nestjs, cdk, expo and
|
|
317
|
+
# rails — the host owns it after the first apply — but copy-overwrite in
|
|
318
|
+
# harper-fabric and phaser. Probing every stack's tree without asking which
|
|
319
|
+
# stacks this host is made a NestJS host's own ci.yml read as managed via the
|
|
320
|
+
# harper-fabric copy, and a project-owned one-line Node bump needed a human to
|
|
321
|
+
# run the override (CodySwannGT/lisa#4511).
|
|
322
|
+
#
|
|
323
|
+
# `lisa apply` copies a stack's templates only into a host that stack's
|
|
324
|
+
# detector recognises, so each arm mirrors `src/detection/detectors/<stack>.ts`.
|
|
325
|
+
# `all`, `typescript`, and any stack without an arm here keep the pre-existing
|
|
326
|
+
# answer — always managed — so this narrows only where a detector proves the
|
|
327
|
+
# stack absent. Where a shell mirror cannot be exact it errs toward allowing,
|
|
328
|
+
# the same direction `.lisaignore` handling above takes.
|
|
329
|
+
stack_reaches_host() {
|
|
330
|
+
local stack="$1"
|
|
331
|
+
case "$stack" in
|
|
332
|
+
harper-fabric)
|
|
333
|
+
local config="$project_root/harper-app/config.yaml"
|
|
334
|
+
[ -f "$config" ] && [ -e "$project_root/harper-app/schema.graphql" ] ||
|
|
335
|
+
return 1
|
|
336
|
+
{
|
|
337
|
+
grep -qF 'graphqlSchema:' "$config" &&
|
|
338
|
+
grep -qF 'jsResource:' "$config" &&
|
|
339
|
+
grep -qF 'static:' "$config"
|
|
340
|
+
} || host_has_dependency harperdb
|
|
341
|
+
;;
|
|
342
|
+
phaser) host_has_dependency phaser ;;
|
|
343
|
+
nestjs)
|
|
344
|
+
[ -e "$project_root/nest-cli.json" ] ||
|
|
345
|
+
host_has_dependency @nestjs prefix
|
|
346
|
+
;;
|
|
347
|
+
expo)
|
|
348
|
+
[ -e "$project_root/app.json" ] || [ -e "$project_root/eas.json" ] ||
|
|
349
|
+
host_has_dependency expo
|
|
350
|
+
;;
|
|
351
|
+
cdk) [ -e "$project_root/cdk.json" ] ;;
|
|
352
|
+
rails)
|
|
353
|
+
[ -e "$project_root/bin/rails" ] ||
|
|
354
|
+
[ -e "$project_root/config/application.rb" ]
|
|
355
|
+
;;
|
|
356
|
+
*) return 0 ;;
|
|
357
|
+
esac
|
|
358
|
+
}
|
|
359
|
+
|
|
280
360
|
# Whether a host-relative path is shipped as a copy-overwrite template.
|
|
281
361
|
#
|
|
282
362
|
# A few stat calls rather than an enumeration: the same relative path is probed
|
|
@@ -296,6 +376,10 @@ managed_source() {
|
|
|
296
376
|
for stack in "$package_root"/*/copy-overwrite; do
|
|
297
377
|
[ -d "$stack" ] || continue
|
|
298
378
|
if [ -e "$stack/$rel" ]; then
|
|
379
|
+
# Another stack's copy-overwrite twin is not this host's file. Keep
|
|
380
|
+
# looking: a stack this host IS may still manage the same path.
|
|
381
|
+
local stack_name="${stack%/copy-overwrite}"
|
|
382
|
+
stack_reaches_host "${stack_name##*/}" || continue
|
|
299
383
|
printf '%s' "${stack#"$package_root"/}/$rel"
|
|
300
384
|
return 0
|
|
301
385
|
fi
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Reads the version from .nvmrc and updates:
|
|
6
6
|
* - GitHub workflow files (node_version, node-version inputs)
|
|
7
|
+
* - GITHUB_ACTIONS.md docs (template and root), which carry YAML examples
|
|
7
8
|
* - package.json engine constraints
|
|
8
9
|
*
|
|
9
10
|
* @example
|
|
@@ -60,8 +61,16 @@ const WORKFLOW_PATTERNS: readonly ReplacementPattern[] = [
|
|
|
60
61
|
pattern: /(node-version:.*?\|\|\s*['"])\d+\.\d+\.\d+(['"])/g,
|
|
61
62
|
replacement: VERSION_REPLACEMENT,
|
|
62
63
|
},
|
|
64
|
+
// Major-only forms: callers, commented usage examples, and reusable-input
|
|
65
|
+
// defaults. A shipped publish workflow drifted to `22.x`/`20.x` because only
|
|
66
|
+
// the hyphenated caller key was covered (CodySwannGT/lisa#4511).
|
|
63
67
|
{
|
|
64
|
-
pattern: /(node-version:\s*['"])\d+\.x(['"])/g,
|
|
68
|
+
pattern: /((?:node_version|node-version):\s*['"])\d+\.x(['"])/g,
|
|
69
|
+
replacement: "$1{{major}}.x$2",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
pattern:
|
|
73
|
+
/(node_version:\n(?: +(?:description|type|required):[^\n]*\n)* +default: *['"])\d+\.x(['"])/g,
|
|
65
74
|
replacement: "$1{{major}}.x$2",
|
|
66
75
|
},
|
|
67
76
|
];
|
|
@@ -91,6 +100,11 @@ function filesToUpdate(): readonly string[] {
|
|
|
91
100
|
"package.lisa.json",
|
|
92
101
|
"typescript/copy-overwrite/.nvmrc",
|
|
93
102
|
"expo/create-only/eas.json",
|
|
103
|
+
// Docs whose YAML examples consumers copy verbatim. The template
|
|
104
|
+
// copy is copy-overwrite, so a consumer cannot correct drift there
|
|
105
|
+
// locally (CodySwannGT/lisa#4511); the root copy mirrors it.
|
|
106
|
+
"typescript/copy-overwrite/.github/GITHUB_ACTIONS.md",
|
|
107
|
+
".github/GITHUB_ACTIONS.md",
|
|
94
108
|
].includes(file) ||
|
|
95
109
|
/^(?:typescript|cdk|nestjs|npm-package|phaser|harper-fabric)\/package-lisa\/package\.lisa\.json$/.test(
|
|
96
110
|
file
|
|
@@ -198,7 +212,7 @@ function updateFile(
|
|
|
198
212
|
content,
|
|
199
213
|
pattern,
|
|
200
214
|
resolvedReplacement,
|
|
201
|
-
/\.ya?ml$/.test(filePath)
|
|
215
|
+
/\.(?:ya?ml|md)$/.test(filePath)
|
|
202
216
|
);
|
|
203
217
|
totalChanges += result.changes;
|
|
204
218
|
content = result.content;
|
|
@@ -68,7 +68,7 @@ Runs on every pull request to validate code quality:
|
|
|
68
68
|
**Configuration**:
|
|
69
69
|
```yaml
|
|
70
70
|
# In ci.yml, modify these inputs:
|
|
71
|
-
node_version: '
|
|
71
|
+
node_version: '24.21.0'
|
|
72
72
|
package_manager: 'bun'
|
|
73
73
|
skip_jobs: 'test,test:integration,test:e2e' # Comma-separated list
|
|
74
74
|
```
|
|
@@ -670,7 +670,7 @@ release.yml and create the environment in **Settings** > **Environments** first
|
|
|
670
670
|
```yaml
|
|
671
671
|
uses: ./.github/workflows/quality.yml
|
|
672
672
|
with:
|
|
673
|
-
node_version: '
|
|
673
|
+
node_version: '24.21.0'
|
|
674
674
|
package_manager: 'bun' # or npm, yarn
|
|
675
675
|
```
|
|
676
676
|
|