@codyswann/lisa 2.158.2 → 2.159.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/dist/migrations/ensure-wiki-source-declared.d.ts +37 -0
- package/dist/migrations/ensure-wiki-source-declared.d.ts.map +1 -0
- package/dist/migrations/ensure-wiki-source-declared.js +86 -0
- package/dist/migrations/ensure-wiki-source-declared.js.map +1 -0
- package/dist/migrations/index.d.ts +1 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +3 -0
- package/dist/migrations/index.js.map +1 -1
- 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/hooks/parity-safety-net.sh +7 -5
- 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-copilot/hooks/parity-safety-net.sh +7 -5
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/parity-safety-net.sh +7 -5
- 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-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/hooks/parity-safety-net.sh +7 -5
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Migration, MigrationContext, MigrationResult } from "./migration.interface.js";
|
|
2
|
+
/**
|
|
3
|
+
* Migration: when a project carries a local LLM Wiki (`wiki/lisa-wiki.config.json`
|
|
4
|
+
* exists) but its `.lisa.config.json` does not declare `wiki.source`, write the
|
|
5
|
+
* explicit default pointer `wiki.source.path = <wikiRoot>` (the path the wiki's
|
|
6
|
+
* own config reports, default `wiki`).
|
|
7
|
+
*
|
|
8
|
+
* Resolving the wiki is implicit local mode without this — the declaration just
|
|
9
|
+
* makes "this project has a wiki here" self-documenting in the project config,
|
|
10
|
+
* and is the consumer-side hook the remote-wiki story builds on. Idempotent:
|
|
11
|
+
* skips when `wiki.source` already exists, preserves all other config keys and
|
|
12
|
+
* any sibling `wiki` keys. Creates `.lisa.config.json` if absent (the project is
|
|
13
|
+
* already Lisa-managed by virtue of carrying a lisa-wiki).
|
|
14
|
+
*/
|
|
15
|
+
export declare class EnsureWikiSourceDeclaredMigration implements Migration {
|
|
16
|
+
readonly name = "ensure-wiki-source-declared";
|
|
17
|
+
readonly description = "Declare wiki.source.path in .lisa.config.json when the project has a local wiki";
|
|
18
|
+
/**
|
|
19
|
+
* Gather the config + wiki root, or null when the project has no local wiki.
|
|
20
|
+
* @param projectDir - Destination project directory
|
|
21
|
+
* @returns Resolved state, or null when there is no local lisa-wiki
|
|
22
|
+
*/
|
|
23
|
+
private readState;
|
|
24
|
+
/**
|
|
25
|
+
* Applies when a local wiki exists and `wiki.source` is not yet declared.
|
|
26
|
+
* @param ctx - Migration context
|
|
27
|
+
* @returns True when there is work to do
|
|
28
|
+
*/
|
|
29
|
+
applies(ctx: MigrationContext): Promise<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* Write `wiki.source.path` into `.lisa.config.json`, preserving existing keys.
|
|
32
|
+
* @param ctx - Migration context
|
|
33
|
+
* @returns Result describing the action taken
|
|
34
|
+
*/
|
|
35
|
+
apply(ctx: MigrationContext): Promise<MigrationResult>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=ensure-wiki-source-declared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-wiki-source-declared.d.ts","sourceRoot":"","sources":["../../src/migrations/ensure-wiki-source-declared.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAuBlC;;;;;;;;;;;;GAYG;AACH,qBAAa,iCAAkC,YAAW,SAAS;IACjE,QAAQ,CAAC,IAAI,iCAAiC;IAC9C,QAAQ,CAAC,WAAW,qFACgE;IAEpF;;;;OAIG;YACW,SAAS;IAevB;;;;OAIG;IACG,OAAO,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAKtD;;;;OAIG;IACG,KAAK,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;CA+B7D"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as path from "node:path";
|
|
2
|
+
import * as fse from "fs-extra";
|
|
3
|
+
import { readJsonOrNull, writeJson } from "../utils/json-utils.js";
|
|
4
|
+
const LISA_CONFIG = ".lisa.config.json";
|
|
5
|
+
const WIKI_CONFIG = path.join("wiki", "lisa-wiki.config.json");
|
|
6
|
+
const DEFAULT_WIKI_ROOT = "wiki";
|
|
7
|
+
/**
|
|
8
|
+
* Migration: when a project carries a local LLM Wiki (`wiki/lisa-wiki.config.json`
|
|
9
|
+
* exists) but its `.lisa.config.json` does not declare `wiki.source`, write the
|
|
10
|
+
* explicit default pointer `wiki.source.path = <wikiRoot>` (the path the wiki's
|
|
11
|
+
* own config reports, default `wiki`).
|
|
12
|
+
*
|
|
13
|
+
* Resolving the wiki is implicit local mode without this — the declaration just
|
|
14
|
+
* makes "this project has a wiki here" self-documenting in the project config,
|
|
15
|
+
* and is the consumer-side hook the remote-wiki story builds on. Idempotent:
|
|
16
|
+
* skips when `wiki.source` already exists, preserves all other config keys and
|
|
17
|
+
* any sibling `wiki` keys. Creates `.lisa.config.json` if absent (the project is
|
|
18
|
+
* already Lisa-managed by virtue of carrying a lisa-wiki).
|
|
19
|
+
*/
|
|
20
|
+
export class EnsureWikiSourceDeclaredMigration {
|
|
21
|
+
name = "ensure-wiki-source-declared";
|
|
22
|
+
description = "Declare wiki.source.path in .lisa.config.json when the project has a local wiki";
|
|
23
|
+
/**
|
|
24
|
+
* Gather the config + wiki root, or null when the project has no local wiki.
|
|
25
|
+
* @param projectDir - Destination project directory
|
|
26
|
+
* @returns Resolved state, or null when there is no local lisa-wiki
|
|
27
|
+
*/
|
|
28
|
+
async readState(projectDir) {
|
|
29
|
+
const wikiCfgPath = path.join(projectDir, WIKI_CONFIG);
|
|
30
|
+
if (!(await fse.pathExists(wikiCfgPath))) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
const wikiCfg = await readJsonOrNull(wikiCfgPath);
|
|
34
|
+
const configPath = path.join(projectDir, LISA_CONFIG);
|
|
35
|
+
const config = await readJsonOrNull(configPath);
|
|
36
|
+
return {
|
|
37
|
+
configPath,
|
|
38
|
+
config,
|
|
39
|
+
wikiRoot: wikiCfg?.wikiRoot ?? DEFAULT_WIKI_ROOT,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Applies when a local wiki exists and `wiki.source` is not yet declared.
|
|
44
|
+
* @param ctx - Migration context
|
|
45
|
+
* @returns True when there is work to do
|
|
46
|
+
*/
|
|
47
|
+
async applies(ctx) {
|
|
48
|
+
const state = await this.readState(ctx.projectDir);
|
|
49
|
+
return state !== null && state.config?.wiki?.source === undefined;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Write `wiki.source.path` into `.lisa.config.json`, preserving existing keys.
|
|
53
|
+
* @param ctx - Migration context
|
|
54
|
+
* @returns Result describing the action taken
|
|
55
|
+
*/
|
|
56
|
+
async apply(ctx) {
|
|
57
|
+
const state = await this.readState(ctx.projectDir);
|
|
58
|
+
if (state === null || state.config?.wiki?.source !== undefined) {
|
|
59
|
+
return { name: this.name, action: "noop" };
|
|
60
|
+
}
|
|
61
|
+
const { configPath, config, wikiRoot } = state;
|
|
62
|
+
const merged = {
|
|
63
|
+
...(config ?? {}),
|
|
64
|
+
wiki: { ...(config?.wiki ?? {}), source: { path: wikiRoot } },
|
|
65
|
+
};
|
|
66
|
+
const message = `Declared wiki.source.path="${wikiRoot}" in ${LISA_CONFIG}`;
|
|
67
|
+
if (ctx.dryRun) {
|
|
68
|
+
ctx.logger.dry(`Would declare wiki.source.path="${wikiRoot}"`);
|
|
69
|
+
return {
|
|
70
|
+
name: this.name,
|
|
71
|
+
action: "applied",
|
|
72
|
+
changedFiles: [LISA_CONFIG],
|
|
73
|
+
message,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
await writeJson(configPath, merged);
|
|
77
|
+
ctx.logger.success(message);
|
|
78
|
+
return {
|
|
79
|
+
name: this.name,
|
|
80
|
+
action: "applied",
|
|
81
|
+
changedFiles: [LISA_CONFIG],
|
|
82
|
+
message,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=ensure-wiki-source-declared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-wiki-source-declared.js","sourceRoot":"","sources":["../../src/migrations/ensure-wiki-source-declared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAOnE,MAAM,WAAW,GAAG,mBAAmB,CAAC;AACxC,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAC/D,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAmBjC;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,iCAAiC;IACnC,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,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;QAC/C,MAAM,MAAM,GAAG;YACb,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC;YACjB,IAAI,EAAE,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;SAC9D,CAAC;QAEF,MAAM,OAAO,GAAG,8BAA8B,QAAQ,QAAQ,WAAW,EAAE,CAAC;QAC5E,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;YACf,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,mCAAmC,QAAQ,GAAG,CAAC,CAAC;YAC/D,OAAO;gBACL,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EAAE,SAAS;gBACjB,YAAY,EAAE,CAAC,WAAW,CAAC;gBAC3B,OAAO;aACR,CAAC;QACJ,CAAC;QAED,MAAM,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QACpC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5B,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,SAAS;YACjB,YAAY,EAAE,CAAC,WAAW,CAAC;YAC3B,OAAO;SACR,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -5,6 +5,7 @@ export { EnsureJestRnMockAccessibilityManagerMigration } from "./ensure-jest-rn-
|
|
|
5
5
|
export { EnsureLisaPostinstallMigration } from "./ensure-lisa-postinstall.js";
|
|
6
6
|
export { EnsureSonarExcludesLisaHarnessMigration } from "./ensure-sonar-excludes-lisa-harness.js";
|
|
7
7
|
export { EnsureTsconfigLocalFilesFallbackMigration } from "./ensure-tsconfig-local-files-fallback.js";
|
|
8
|
+
export { EnsureWikiSourceDeclaredMigration } from "./ensure-wiki-source-declared.js";
|
|
8
9
|
export { EnsureTsconfigLocalIncludesMigration } from "./ensure-tsconfig-local-includes.js";
|
|
9
10
|
export { ReconcileClaudeStackPluginsMigration } from "./reconcile-claude-stack-plugins.js";
|
|
10
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACV,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,6CAA6C,EAAE,MAAM,gDAAgD,CAAC;AAC/G,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAE3F;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAElD;;;OAGG;gBACS,UAAU,CAAC,EAAE,SAAS,SAAS,EAAE;IAa7C;;;OAGG;IACH,MAAM,IAAI,SAAS,SAAS,EAAE;IAI9B;;;;OAIG;IACG,mBAAmB,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/D;;;;OAIG;IACG,MAAM,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,SAAS,eAAe,EAAE,CAAC;CAazE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,iBAAiB,CAE3D"}
|
package/dist/migrations/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { EnsureJestRnMockAccessibilityManagerMigration } from "./ensure-jest-rn-
|
|
|
3
3
|
import { EnsureLisaPostinstallMigration } from "./ensure-lisa-postinstall.js";
|
|
4
4
|
import { EnsureSonarExcludesLisaHarnessMigration } from "./ensure-sonar-excludes-lisa-harness.js";
|
|
5
5
|
import { EnsureTsconfigLocalFilesFallbackMigration } from "./ensure-tsconfig-local-files-fallback.js";
|
|
6
|
+
import { EnsureWikiSourceDeclaredMigration } from "./ensure-wiki-source-declared.js";
|
|
6
7
|
import { EnsureTsconfigLocalIncludesMigration } from "./ensure-tsconfig-local-includes.js";
|
|
7
8
|
import { ReconcileClaudeStackPluginsMigration } from "./reconcile-claude-stack-plugins.js";
|
|
8
9
|
export { EnsureAuditIgnoreLocalExclusionsMigration } from "./ensure-audit-ignore-local-exclusions.js";
|
|
@@ -10,6 +11,7 @@ export { EnsureJestRnMockAccessibilityManagerMigration } from "./ensure-jest-rn-
|
|
|
10
11
|
export { EnsureLisaPostinstallMigration } from "./ensure-lisa-postinstall.js";
|
|
11
12
|
export { EnsureSonarExcludesLisaHarnessMigration } from "./ensure-sonar-excludes-lisa-harness.js";
|
|
12
13
|
export { EnsureTsconfigLocalFilesFallbackMigration } from "./ensure-tsconfig-local-files-fallback.js";
|
|
14
|
+
export { EnsureWikiSourceDeclaredMigration } from "./ensure-wiki-source-declared.js";
|
|
13
15
|
export { EnsureTsconfigLocalIncludesMigration } from "./ensure-tsconfig-local-includes.js";
|
|
14
16
|
export { ReconcileClaudeStackPluginsMigration } from "./reconcile-claude-stack-plugins.js";
|
|
15
17
|
/**
|
|
@@ -29,6 +31,7 @@ export class MigrationRegistry {
|
|
|
29
31
|
new EnsureJestRnMockAccessibilityManagerMigration(),
|
|
30
32
|
new EnsureLisaPostinstallMigration(),
|
|
31
33
|
new EnsureSonarExcludesLisaHarnessMigration(),
|
|
34
|
+
new EnsureWikiSourceDeclaredMigration(),
|
|
32
35
|
new ReconcileClaudeStackPluginsMigration(),
|
|
33
36
|
];
|
|
34
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,6CAA6C,EAAE,MAAM,gDAAgD,CAAC;AAC/G,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAa3F,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,6CAA6C,EAAE,MAAM,gDAAgD,CAAC;AAC/G,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAE3F;;GAEG;AACH,MAAM,OAAO,iBAAiB;IACX,UAAU,CAAuB;IAElD;;;OAGG;IACH,YAAY,UAAiC;QAC3C,IAAI,CAAC,UAAU,GAAG,UAAU,IAAI;YAC9B,IAAI,oCAAoC,EAAE;YAC1C,IAAI,yCAAyC,EAAE;YAC/C,IAAI,yCAAyC,EAAE;YAC/C,IAAI,6CAA6C,EAAE;YACnD,IAAI,8BAA8B,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AK,CAAC,mBAAmB,CAAC,GAAqB;QAC7C,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACxC,IAAI,SAAS,CAAC,gBAAgB,EAAE,CAAC;gBAC/B,MAAM,SAAS,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;YACxC,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,GAAqB;QAChC,MAAM,OAAO,GAAsB,EAAE,CAAC;QACtC,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACxC,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAC/C,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;gBAC1D,SAAS;YACX,CAAC;YACD,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC1C,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,IAAI,iBAAiB,EAAE,CAAC;AACjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"lodash": ">=4.18.1"
|
|
85
85
|
},
|
|
86
86
|
"name": "@codyswann/lisa",
|
|
87
|
-
"version": "2.
|
|
87
|
+
"version": "2.159.0",
|
|
88
88
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
89
89
|
"main": "dist/index.js",
|
|
90
90
|
"exports": {
|
|
@@ -71,11 +71,13 @@ fi
|
|
|
71
71
|
# (`;`, `&&`, `||`, `|`, newlines), keep only the `git push` segments, and
|
|
72
72
|
# inspect each in isolation — a real `git push --force origin main` still
|
|
73
73
|
# matches, while a feature-branch push next to `[ -f ]`/`--base main` passes.
|
|
74
|
-
# Normalize bash line-continuations (backslash + newline → space)
|
|
75
|
-
# segmenting the command. Without this, "git push --force origin
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
|
|
74
|
+
# Normalize bash line-continuations (a trailing backslash + newline → space)
|
|
75
|
+
# before segmenting the command. Without this, "git push --force origin
|
|
76
|
+
# \<newline>main" splits into a segment matching --force but not `main`, letting a
|
|
77
|
+
# protected force-push slip past. Uses awk (POSIX) instead of a GNU-only
|
|
78
|
+
# `sed ':a;N;$!ba;…'`, which errors on BSD sed (macOS) and there silently no-ops.
|
|
79
|
+
normalized_command_str="$(printf '%s' "$command_str" \
|
|
80
|
+
| awk '{ if (sub(/\\$/, "")) printf "%s ", $0; else print }')"
|
|
79
81
|
|
|
80
82
|
while IFS= read -r push_stmt; do
|
|
81
83
|
if printf '%s' "$push_stmt" \
|
|
@@ -71,11 +71,13 @@ fi
|
|
|
71
71
|
# (`;`, `&&`, `||`, `|`, newlines), keep only the `git push` segments, and
|
|
72
72
|
# inspect each in isolation — a real `git push --force origin main` still
|
|
73
73
|
# matches, while a feature-branch push next to `[ -f ]`/`--base main` passes.
|
|
74
|
-
# Normalize bash line-continuations (backslash + newline → space)
|
|
75
|
-
# segmenting the command. Without this, "git push --force origin
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
|
|
74
|
+
# Normalize bash line-continuations (a trailing backslash + newline → space)
|
|
75
|
+
# before segmenting the command. Without this, "git push --force origin
|
|
76
|
+
# \<newline>main" splits into a segment matching --force but not `main`, letting a
|
|
77
|
+
# protected force-push slip past. Uses awk (POSIX) instead of a GNU-only
|
|
78
|
+
# `sed ':a;N;$!ba;…'`, which errors on BSD sed (macOS) and there silently no-ops.
|
|
79
|
+
normalized_command_str="$(printf '%s' "$command_str" \
|
|
80
|
+
| awk '{ if (sub(/\\$/, "")) printf "%s ", $0; else print }')"
|
|
79
81
|
|
|
80
82
|
while IFS= read -r push_stmt; do
|
|
81
83
|
if printf '%s' "$push_stmt" \
|
|
@@ -71,11 +71,13 @@ fi
|
|
|
71
71
|
# (`;`, `&&`, `||`, `|`, newlines), keep only the `git push` segments, and
|
|
72
72
|
# inspect each in isolation — a real `git push --force origin main` still
|
|
73
73
|
# matches, while a feature-branch push next to `[ -f ]`/`--base main` passes.
|
|
74
|
-
# Normalize bash line-continuations (backslash + newline → space)
|
|
75
|
-
# segmenting the command. Without this, "git push --force origin
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
|
|
74
|
+
# Normalize bash line-continuations (a trailing backslash + newline → space)
|
|
75
|
+
# before segmenting the command. Without this, "git push --force origin
|
|
76
|
+
# \<newline>main" splits into a segment matching --force but not `main`, letting a
|
|
77
|
+
# protected force-push slip past. Uses awk (POSIX) instead of a GNU-only
|
|
78
|
+
# `sed ':a;N;$!ba;…'`, which errors on BSD sed (macOS) and there silently no-ops.
|
|
79
|
+
normalized_command_str="$(printf '%s' "$command_str" \
|
|
80
|
+
| awk '{ if (sub(/\\$/, "")) printf "%s ", $0; else print }')"
|
|
79
81
|
|
|
80
82
|
while IFS= read -r push_stmt; do
|
|
81
83
|
if printf '%s' "$push_stmt" \
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.159.0",
|
|
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": "2.
|
|
3
|
+
"version": "2.159.0",
|
|
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": "2.
|
|
3
|
+
"version": "2.159.0",
|
|
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": "2.
|
|
3
|
+
"version": "2.159.0",
|
|
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": "2.
|
|
3
|
+
"version": "2.159.0",
|
|
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"
|
|
@@ -71,11 +71,13 @@ fi
|
|
|
71
71
|
# (`;`, `&&`, `||`, `|`, newlines), keep only the `git push` segments, and
|
|
72
72
|
# inspect each in isolation — a real `git push --force origin main` still
|
|
73
73
|
# matches, while a feature-branch push next to `[ -f ]`/`--base main` passes.
|
|
74
|
-
# Normalize bash line-continuations (backslash + newline → space)
|
|
75
|
-
# segmenting the command. Without this, "git push --force origin
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
|
|
74
|
+
# Normalize bash line-continuations (a trailing backslash + newline → space)
|
|
75
|
+
# before segmenting the command. Without this, "git push --force origin
|
|
76
|
+
# \<newline>main" splits into a segment matching --force but not `main`, letting a
|
|
77
|
+
# protected force-push slip past. Uses awk (POSIX) instead of a GNU-only
|
|
78
|
+
# `sed ':a;N;$!ba;…'`, which errors on BSD sed (macOS) and there silently no-ops.
|
|
79
|
+
normalized_command_str="$(printf '%s' "$command_str" \
|
|
80
|
+
| awk '{ if (sub(/\\$/, "")) printf "%s ", $0; else print }')"
|
|
79
81
|
|
|
80
82
|
while IFS= read -r push_stmt; do
|
|
81
83
|
if printf '%s' "$push_stmt" \
|