@codyswann/lisa 2.144.0 → 2.145.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/cli/apply.d.ts.map +1 -1
- package/dist/cli/apply.js +13 -8
- package/dist/cli/apply.js.map +1 -1
- package/dist/core/project-config.d.ts +32 -0
- package/dist/core/project-config.d.ts.map +1 -1
- package/dist/core/project-config.js +35 -0
- package/dist/core/project-config.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-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-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/dist/cli/apply.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../src/cli/apply.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../src/cli/apply.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,qBAAqB,CAAC;AAsD1E;;;;;;;;;;GAUG;AACH,wBAAsB,QAAQ,CAC5B,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,IAAI,CAAC,CA2Df"}
|
package/dist/cli/apply.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as path from "node:path";
|
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
import { HARNESS_VALUES } from "../core/config.js";
|
|
4
4
|
import { Lisa } from "../core/lisa.js";
|
|
5
|
-
import { readProjectConfig, resolveHarness, writeProjectConfig, } from "../core/project-config.js";
|
|
5
|
+
import { projectConfigExists, readProjectConfig, resolveHarness, shouldPersistProjectConfig, writeProjectConfig, } from "../core/project-config.js";
|
|
6
6
|
import { ConsoleLogger } from "../logging/index.js";
|
|
7
7
|
import { toAbsolutePath } from "../utils/path-utils.js";
|
|
8
8
|
import { createDependencies } from "./shared-options.js";
|
|
@@ -61,6 +61,7 @@ export async function runApply(destination, options) {
|
|
|
61
61
|
const destDir = toAbsolutePath(destination);
|
|
62
62
|
// Resolve harness with precedence: CLI flag > .lisa.config.json > default
|
|
63
63
|
const projectConfig = await readProjectConfig(destDir);
|
|
64
|
+
const configFileExists = await projectConfigExists(destDir);
|
|
64
65
|
const harness = resolveHarness(options.harness, projectConfig);
|
|
65
66
|
const config = {
|
|
66
67
|
lisaDir: getLisaDir(),
|
|
@@ -82,15 +83,19 @@ export async function runApply(destination, options) {
|
|
|
82
83
|
result.errors.forEach(error => logger.error(error));
|
|
83
84
|
process.exit(1);
|
|
84
85
|
}
|
|
85
|
-
//
|
|
86
|
-
//
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
//
|
|
86
|
+
// Ensure every applied project carries a .lisa.config.json (not on
|
|
87
|
+
// validate / dry-run). A missing file is always backfilled with the
|
|
88
|
+
// resolved harness (the default when no --harness was passed) so no
|
|
89
|
+
// project is left config-less; an existing file is only rewritten when
|
|
90
|
+
// --harness actually changes the persisted value, avoiding churn.
|
|
90
91
|
if (!options.validate &&
|
|
91
92
|
!dryRun &&
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
shouldPersistProjectConfig({
|
|
94
|
+
fileExists: configFileExists,
|
|
95
|
+
flagHarness: options.harness,
|
|
96
|
+
existingHarness: projectConfig.harness,
|
|
97
|
+
resolvedHarness: harness,
|
|
98
|
+
})) {
|
|
94
99
|
await writeProjectConfig(destDir, { harness });
|
|
95
100
|
}
|
|
96
101
|
}
|
package/dist/cli/apply.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.js","sourceRoot":"","sources":["../../src/cli/apply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAmB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE1E,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE/D;;;GAGG;AACH,SAAS,UAAU;IACjB,sCAAsC;IACtC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7C,CAAC;AAED;;GAEG;AACH,SAAS,iBAAiB;IACxB,OAAO,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,GAAG,CAAC,0C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C,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -32,6 +32,38 @@ export declare function readProjectConfig(destDir: string): Promise<ProjectConfi
|
|
|
32
32
|
* @param updates - Partial config to merge into the existing file
|
|
33
33
|
*/
|
|
34
34
|
export declare function writeProjectConfig(destDir: string, updates: ProjectConfig): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Whether a `.lisa.config.json` file exists at the destination project root.
|
|
37
|
+
*
|
|
38
|
+
* Distinct from `readProjectConfig`, which returns `{}` both when the file is
|
|
39
|
+
* absent and when it exists but declares no recognized keys — callers that
|
|
40
|
+
* need to know whether the file physically exists (e.g. to backfill a missing
|
|
41
|
+
* one) must use this.
|
|
42
|
+
* @param destDir - Absolute path to the destination project root
|
|
43
|
+
* @returns True when the config file is present on disk
|
|
44
|
+
*/
|
|
45
|
+
export declare function projectConfigExists(destDir: string): Promise<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* Decide whether `apply` should write `.lisa.config.json`.
|
|
48
|
+
*
|
|
49
|
+
* Policy: every applied project must carry a `.lisa.config.json`, so a missing
|
|
50
|
+
* file is always backfilled (with the resolved harness — the default when no
|
|
51
|
+
* `--harness` flag was passed). An existing file is only rewritten when the
|
|
52
|
+
* user supplied `--harness` and it actually changes the persisted value, so
|
|
53
|
+
* routine applies don't churn a project's committed config.
|
|
54
|
+
* @param params - File presence and resolved/declared harness values
|
|
55
|
+
* @param params.fileExists - Whether `.lisa.config.json` already exists on disk
|
|
56
|
+
* @param params.flagHarness - Harness from the `--harness` CLI flag, if passed
|
|
57
|
+
* @param params.existingHarness - Harness currently persisted in the config
|
|
58
|
+
* @param params.resolvedHarness - Effective harness resolved for this run
|
|
59
|
+
* @returns True when the config should be (re)written
|
|
60
|
+
*/
|
|
61
|
+
export declare function shouldPersistProjectConfig(params: {
|
|
62
|
+
readonly fileExists: boolean;
|
|
63
|
+
readonly flagHarness: Harness | undefined;
|
|
64
|
+
readonly existingHarness: Harness | undefined;
|
|
65
|
+
readonly resolvedHarness: Harness;
|
|
66
|
+
}): boolean;
|
|
35
67
|
/**
|
|
36
68
|
* Resolve the effective harness from CLI flag, project config, and default,
|
|
37
69
|
* in that precedence order.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-config.d.ts","sourceRoot":"","sources":["../../src/core/project-config.ts"],"names":[],"mappings":"AAYA,OAAO,EAAmC,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAE5E,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAE3D;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,+CAA+C;IAC/C,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,aAAa,CAAC,CAQxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,IAAI,CAAC,CAKf;AA6BD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,OAAO,GAAG,SAAS,EAC9B,aAAa,EAAE,aAAa,GAC3B,OAAO,CAQT;AA8BD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,OAAO,CAK1D"}
|
|
1
|
+
{"version":3,"file":"project-config.d.ts","sourceRoot":"","sources":["../../src/core/project-config.ts"],"names":[],"mappings":"AAYA,OAAO,EAAmC,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAE5E,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAE3D;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,+CAA+C;IAC/C,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,aAAa,CAAC,CAQxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,IAAI,CAAC,CAKf;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAE3E;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE;IACjD,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,eAAe,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;CACnC,GAAG,OAAO,CAQV;AA6BD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,OAAO,GAAG,SAAS,EAC9B,aAAa,EAAE,aAAa,GAC3B,OAAO,CAQT;AA8BD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,OAAO,CAK1D"}
|
|
@@ -49,6 +49,41 @@ export async function writeProjectConfig(destDir, updates) {
|
|
|
49
49
|
const merged = { ...existing, ...updates };
|
|
50
50
|
await writeFile(configPath, `${JSON.stringify(merged, null, 2)}\n`, "utf8");
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Whether a `.lisa.config.json` file exists at the destination project root.
|
|
54
|
+
*
|
|
55
|
+
* Distinct from `readProjectConfig`, which returns `{}` both when the file is
|
|
56
|
+
* absent and when it exists but declares no recognized keys — callers that
|
|
57
|
+
* need to know whether the file physically exists (e.g. to backfill a missing
|
|
58
|
+
* one) must use this.
|
|
59
|
+
* @param destDir - Absolute path to the destination project root
|
|
60
|
+
* @returns True when the config file is present on disk
|
|
61
|
+
*/
|
|
62
|
+
export async function projectConfigExists(destDir) {
|
|
63
|
+
return fse.pathExists(path.join(destDir, PROJECT_CONFIG_FILENAME));
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Decide whether `apply` should write `.lisa.config.json`.
|
|
67
|
+
*
|
|
68
|
+
* Policy: every applied project must carry a `.lisa.config.json`, so a missing
|
|
69
|
+
* file is always backfilled (with the resolved harness — the default when no
|
|
70
|
+
* `--harness` flag was passed). An existing file is only rewritten when the
|
|
71
|
+
* user supplied `--harness` and it actually changes the persisted value, so
|
|
72
|
+
* routine applies don't churn a project's committed config.
|
|
73
|
+
* @param params - File presence and resolved/declared harness values
|
|
74
|
+
* @param params.fileExists - Whether `.lisa.config.json` already exists on disk
|
|
75
|
+
* @param params.flagHarness - Harness from the `--harness` CLI flag, if passed
|
|
76
|
+
* @param params.existingHarness - Harness currently persisted in the config
|
|
77
|
+
* @param params.resolvedHarness - Effective harness resolved for this run
|
|
78
|
+
* @returns True when the config should be (re)written
|
|
79
|
+
*/
|
|
80
|
+
export function shouldPersistProjectConfig(params) {
|
|
81
|
+
if (!params.fileExists) {
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
return (params.flagHarness !== undefined &&
|
|
85
|
+
params.existingHarness !== params.resolvedHarness);
|
|
86
|
+
}
|
|
52
87
|
/**
|
|
53
88
|
* Read `.lisa.config.json` and return its raw parsed object, preserving
|
|
54
89
|
* unknown fields. Unlike `readProjectConfig`, this does NOT strip the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-config.js","sourceRoot":"","sources":["../../src/core/project-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,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@@ -84,7 +84,7 @@
|
|
|
84
84
|
"lodash": ">=4.18.1"
|
|
85
85
|
},
|
|
86
86
|
"name": "@codyswann/lisa",
|
|
87
|
-
"version": "2.
|
|
87
|
+
"version": "2.145.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": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.145.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.145.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.145.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.145.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.145.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"
|