@codyswann/lisa 4.3.3 → 4.3.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/check-conflict-markers.mjs +30 -5
- package/all/copy-overwrite/scripts/lib/bounded-spawn.mjs +26 -14
- package/all/copy-overwrite/scripts/lisa-environment-prepare.mjs +29 -2
- package/all/copy-overwrite/scripts/lisa-postinstall.mjs +18 -2
- package/all/copy-overwrite/scripts/lisa-reconcile-policy.mjs +35 -7
- package/all/copy-overwrite/scripts/lisa-run-gates.mjs +38 -4
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +8 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/lisa-owned-templates.d.ts +25 -0
- package/dist/core/lisa-owned-templates.d.ts.map +1 -1
- package/dist/core/lisa-owned-templates.js +39 -0
- package/dist/core/lisa-owned-templates.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +12 -9
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/strategies/copy-overwrite.d.ts.map +1 -1
- package/dist/strategies/copy-overwrite.js +29 -1
- package/dist/strategies/copy-overwrite.js.map +1 -1
- package/expo/copy-overwrite/scripts/lib/bounded-spawn.mjs +26 -14
- 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-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-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -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-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/scripts/lib/bounded-spawn.mjs +26 -14
- package/typescript/copy-overwrite/scripts/lib/bounded-spawn.mjs +26 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-overwrite.d.ts","sourceRoot":"","sources":["../../src/strategies/copy-overwrite.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"copy-overwrite.d.ts","sourceRoot":"","sources":["../../src/strategies/copy-overwrite.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAY7D,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG9E;;;;;;GAMG;AACH,qBAAa,qBAAsB,YAAW,aAAa;IACzD,QAAQ,CAAC,IAAI,EAAG,gBAAgB,CAAU;IAE1C;;;;;;;OAOG;IACG,KAAK,CACT,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,mBAAmB,CAAC;IA8H/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;YACW,mBAAmB;IAwBjC;;;;;;;;;;;;;;;;;OAiBG;YACW,qBAAqB;IAkBnC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;YACW,mBAAmB;CAkClC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as fse from "fs-extra";
|
|
2
2
|
import { copyFile, readFile } from "node:fs/promises";
|
|
3
3
|
import { mayRefreshTemplate } from "../core/config.js";
|
|
4
|
-
import { isLisaOwnedTemplate } from "../core/lisa-owned-templates.js";
|
|
4
|
+
import { declaresReplacedEveryRun, isLisaOwnedTemplate, } from "../core/lisa-owned-templates.js";
|
|
5
5
|
import { classifyHostCopy, describePreserved, describeUnclassifiable, mayRefreshLisaOwned, } from "../core/lisa-owned-provenance.js";
|
|
6
6
|
import { filesIdentical, ensureParentDir } from "../utils/file-operations.js";
|
|
7
7
|
/**
|
|
@@ -80,6 +80,34 @@ export class CopyOverwriteStrategy {
|
|
|
80
80
|
//
|
|
81
81
|
// `--yes` is not this case. That flag is the operator deciding in advance,
|
|
82
82
|
// so `context.unattended` is false for it and the overwrite proceeds.
|
|
83
|
+
// `--yes` is consent in advance, and #3026 established the adjacent line
|
|
84
|
+
// that "no TTY is not consent". This is the next one: consent in advance is
|
|
85
|
+
// not UNCONDITIONAL consent. An operator passing `--yes` approved the run,
|
|
86
|
+
// not the discarding of entry globs and an ignore list somebody built one
|
|
87
|
+
// dependency at a time.
|
|
88
|
+
//
|
|
89
|
+
// `core/lisa-owned-templates` already wrote the rule down — `tsconfig.json`
|
|
90
|
+
// and `knip.json` "are seeded by Lisa and then edited downstream, so a
|
|
91
|
+
// non-interactive apply must never replace them without being asked". The
|
|
92
|
+
// protection existed on the unattended branch and on the ownership branch,
|
|
93
|
+
// and `--yes` reached neither: `preserveOwnedHostCopy` returns early for a
|
|
94
|
+
// non-owned path, `skipGitCheck` is the postinstall's flag, and
|
|
95
|
+
// `AutoAcceptPrompter.unattended` is deliberately false. So the file fell
|
|
96
|
+
// through to a prompt that answers itself, and a curated `knip.json` was
|
|
97
|
+
// replaced by a stack template whose `entry` globs named directories the
|
|
98
|
+
// repository does not have — leaving knip reporting "Refine entry pattern
|
|
99
|
+
// (no matches)" and measuring nothing, while still exiting green (#3069).
|
|
100
|
+
//
|
|
101
|
+
// Deliberately gated on `yesMode` and nothing else. An interactive run asks
|
|
102
|
+
// per file and a "yes" there is a real answer about that file; the
|
|
103
|
+
// unattended route already reports `stale`; owned files still refresh
|
|
104
|
+
// unprompted, which is what keeps a released guard fix deliverable (#2374).
|
|
105
|
+
if (config.yesMode === true &&
|
|
106
|
+
!isLisaOwnedTemplate(relativePath) &&
|
|
107
|
+
!mayRefreshTemplate(relativePath, config.refreshTemplates) &&
|
|
108
|
+
!declaresReplacedEveryRun(await readFile(sourcePath, "utf8"))) {
|
|
109
|
+
return { relativePath, strategy: this.name, action: "stale" };
|
|
110
|
+
}
|
|
83
111
|
if (config.skipGitCheck || context.unattended === true) {
|
|
84
112
|
return this.applyNonInteractive(sourcePath, destPath, relativePath, context);
|
|
85
113
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-overwrite.js","sourceRoot":"","sources":["../../src/strategies/copy-overwrite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,
|
|
1
|
+
{"version":3,"file":"copy-overwrite.js","sourceRoot":"","sources":["../../src/strategies/copy-overwrite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OA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AAC,YAAY,EAAE,SAAS,KAAK,SAAS,CAAC;aACpE,CAAC;QACJ,CAAC;QAED,MAAM,OAAO,GAAG,gBAAgB,CAC9B,YAAY,EACZ,SAAS,EACT,SAAS,EACT,MAAM,CACP,CAAC;QACF,IAAI,mBAAmB,CAAC,OAAO,CAAC;YAAE,OAAO,SAAS,CAAC;QAEnD,OAAO;YACL,YAAY;YACZ,QAAQ,EAAE,IAAI,CAAC,IAAI;YACnB,MAAM,EAAE,YAAY;YACpB,IAAI,EAAE,iBAAiB,CAAC,YAAY,EAAE,OAAO,CAAC;SAC/C,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -135,20 +135,21 @@ export function rethrowIfChildTimeout(error) {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
138
|
+
* The deadline to hold a child to, given what the caller asked for.
|
|
139
|
+
*
|
|
140
|
+
* Split out as a value rather than folded into an options builder so that
|
|
141
|
+
* `timeout:` appears LITERALLY at both call sites below. That is not a style
|
|
142
|
+
* preference — the conformance scan this module exists to satisfy reads the
|
|
143
|
+
* options object at each call, and a deadline supplied by a helper it cannot
|
|
144
|
+
* see through makes the helper itself the one unfixable offender in the tree.
|
|
145
|
+
* An offender that cannot be fixed is the pressure that produces an exemption
|
|
146
|
+
* list, and an exemption list is what CodySwannGT/lisa#2940 ruled out. The
|
|
147
|
+
* module that enforces the rule has to be able to pass it.
|
|
143
148
|
* @param {object} options The caller's options.
|
|
144
|
-
* @returns {
|
|
149
|
+
* @returns {number} Milliseconds before the child is killed.
|
|
145
150
|
*/
|
|
146
|
-
function
|
|
147
|
-
return
|
|
148
|
-
...options,
|
|
149
|
-
killSignal: "SIGKILL",
|
|
150
|
-
timeout: options.timeout ?? DEFAULT_CHILD_BUDGET_MS,
|
|
151
|
-
};
|
|
151
|
+
function deadlineFor(options) {
|
|
152
|
+
return options.timeout ?? DEFAULT_CHILD_BUDGET_MS;
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
/**
|
|
@@ -165,7 +166,14 @@ function bounded(options) {
|
|
|
165
166
|
* @throws {Error} When the child was killed at its deadline.
|
|
166
167
|
*/
|
|
167
168
|
export function boundedSpawnSync(command, args = [], options = {}) {
|
|
168
|
-
const result = spawnSync(command, [...args],
|
|
169
|
+
const result = spawnSync(command, [...args], {
|
|
170
|
+
...options,
|
|
171
|
+
// `SIGKILL` rather than the default `SIGTERM`: the hang this module exists
|
|
172
|
+
// for is a process not servicing signals, and a `SIGTERM` a child ignores
|
|
173
|
+
// turns the deadline into a suggestion.
|
|
174
|
+
killSignal: "SIGKILL",
|
|
175
|
+
timeout: deadlineFor(options),
|
|
176
|
+
});
|
|
169
177
|
if (isChildTimeout(result.error)) throw result.error;
|
|
170
178
|
return result;
|
|
171
179
|
}
|
|
@@ -184,5 +192,9 @@ export function boundedSpawnSync(command, args = [], options = {}) {
|
|
|
184
192
|
* @throws {Error} When the child was killed, or exited non-zero.
|
|
185
193
|
*/
|
|
186
194
|
export function boundedExecFileSync(command, args = [], options = {}) {
|
|
187
|
-
return execFileSync(command, [...args],
|
|
195
|
+
return execFileSync(command, [...args], {
|
|
196
|
+
...options,
|
|
197
|
+
killSignal: "SIGKILL",
|
|
198
|
+
timeout: deadlineFor(options),
|
|
199
|
+
});
|
|
188
200
|
}
|
package/package.json
CHANGED
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"zod-validation-error": "^4.0.0"
|
|
146
146
|
},
|
|
147
147
|
"name": "@codyswann/lisa",
|
|
148
|
-
"version": "4.3.
|
|
148
|
+
"version": "4.3.5",
|
|
149
149
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
150
150
|
"main": "dist/index.js",
|
|
151
151
|
"exports": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.5",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.5",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.5",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.5",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.5",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|