@codyswann/lisa 1.90.0 → 1.91.1
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-audit-ignore-local-exclusions.d.ts +51 -0
- package/dist/migrations/ensure-audit-ignore-local-exclusions.d.ts.map +1 -0
- package/dist/migrations/ensure-audit-ignore-local-exclusions.js +192 -0
- package/dist/migrations/ensure-audit-ignore-local-exclusions.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-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Migration, MigrationContext, MigrationResult } from "./migration.interface.js";
|
|
2
|
+
/**
|
|
3
|
+
* Migration: relocate project-specific exclusions from `audit.ignore.config.json`
|
|
4
|
+
* (Lisa-owned, copy-overwrite) into `audit.ignore.local.json` (project-owned,
|
|
5
|
+
* create-only) so they survive future Lisa postinstall runs.
|
|
6
|
+
*
|
|
7
|
+
* Without this migration, projects that add transient-dependency exclusions to
|
|
8
|
+
* the Lisa-owned config see them silently stripped every install, producing
|
|
9
|
+
* noisy diffs and tempting users to commit the regression.
|
|
10
|
+
*
|
|
11
|
+
* Mirrors the shape of `EnsureTsconfigLocalIncludesMigration`:
|
|
12
|
+
* - `beforeStrategies` snapshots the project's pre-strategy exclusions that
|
|
13
|
+
* are not in the Lisa template (i.e., project-specific additions).
|
|
14
|
+
* - `apply` (post-strategy) writes any snapshotted exclusions missing from
|
|
15
|
+
* `audit.ignore.local.json` into that file.
|
|
16
|
+
*/
|
|
17
|
+
export declare class EnsureAuditIgnoreLocalExclusionsMigration implements Migration {
|
|
18
|
+
readonly name = "ensure-audit-ignore-local-exclusions";
|
|
19
|
+
readonly description = "Relocate project-specific audit exclusions from audit.ignore.config.json into audit.ignore.local.json";
|
|
20
|
+
private snapshot;
|
|
21
|
+
/**
|
|
22
|
+
* Snapshot project-specific exclusions that would otherwise be stripped by
|
|
23
|
+
* the copy-overwrite strategy. An exclusion is "project-specific" when its
|
|
24
|
+
* `id` is present in the project's audit.ignore.config.json but absent from
|
|
25
|
+
* the Lisa template for the same project type.
|
|
26
|
+
*
|
|
27
|
+
* When no valid Lisa template can be found for the detected project type the
|
|
28
|
+
* method returns without snapshotting anything. This is intentionally
|
|
29
|
+
* conservative: without a template we cannot distinguish Lisa-owned from
|
|
30
|
+
* project-specific exclusions, so migrating could copy Lisa-owned entries
|
|
31
|
+
* into audit.ignore.local.json.
|
|
32
|
+
* @param ctx - Migration context
|
|
33
|
+
*/
|
|
34
|
+
beforeStrategies(ctx: MigrationContext): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* The migration applies when at least one snapshotted project-specific
|
|
37
|
+
* exclusion is missing from `audit.ignore.local.json`.
|
|
38
|
+
* @param ctx - Migration context
|
|
39
|
+
* @returns True when there is work to do
|
|
40
|
+
*/
|
|
41
|
+
applies(ctx: MigrationContext): Promise<boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* Merge snapshotted project-specific exclusions into audit.ignore.local.json,
|
|
44
|
+
* skipping any whose id is already present. Deduplicates within the snapshot
|
|
45
|
+
* itself so that duplicate source entries are only written once.
|
|
46
|
+
* @param ctx - Migration context
|
|
47
|
+
* @returns Result describing the action taken
|
|
48
|
+
*/
|
|
49
|
+
apply(ctx: MigrationContext): Promise<MigrationResult>;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=ensure-audit-ignore-local-exclusions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-audit-ignore-local-exclusions.d.ts","sourceRoot":"","sources":["../../src/migrations/ensure-audit-ignore-local-exclusions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAyFlC;;;;;;;;;;;;;;GAcG;AACH,qBAAa,yCAA0C,YAAW,SAAS;IACzE,QAAQ,CAAC,IAAI,0CAA0C;IACvD,QAAQ,CAAC,WAAW,2GACsF;IAE1G,OAAO,CAAC,QAAQ,CAA4B;IAE5C;;;;;;;;;;;;OAYG;IACG,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAkC5D;;;;;OAKG;IACG,OAAO,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAatD;;;;;;OAMG;IACG,KAAK,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;CAkD7D"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import * as path from "node:path";
|
|
2
|
+
import * as fse from "fs-extra";
|
|
3
|
+
import { readJson, readJsonOrNull, writeJson } from "../utils/json-utils.js";
|
|
4
|
+
const AUDIT_CONFIG = "audit.ignore.config.json";
|
|
5
|
+
const AUDIT_LOCAL = "audit.ignore.local.json";
|
|
6
|
+
/**
|
|
7
|
+
* Preferred order of project types for sourcing the Lisa audit template.
|
|
8
|
+
* First matching type wins.
|
|
9
|
+
*/
|
|
10
|
+
const TEMPLATE_PRIORITY = [
|
|
11
|
+
"typescript",
|
|
12
|
+
"expo",
|
|
13
|
+
"cdk",
|
|
14
|
+
"nestjs",
|
|
15
|
+
"npm-package",
|
|
16
|
+
];
|
|
17
|
+
/**
|
|
18
|
+
* Find the Lisa template audit.ignore.config.json path for the detected project.
|
|
19
|
+
* The Lisa-owned audit config lives under `<type>/copy-overwrite/audit.ignore.config.json`.
|
|
20
|
+
* Only returns a path when the file actually exists on disk; continues to the
|
|
21
|
+
* next priority type otherwise to avoid treating a missing template as an empty
|
|
22
|
+
* baseline.
|
|
23
|
+
* @param lisaDir - Lisa installation directory
|
|
24
|
+
* @param detectedTypes - Project types detected for the destination project
|
|
25
|
+
* @returns Template path, or null when no matching type ships one
|
|
26
|
+
*/
|
|
27
|
+
async function findTemplateConfigPath(lisaDir, detectedTypes) {
|
|
28
|
+
for (const type of TEMPLATE_PRIORITY) {
|
|
29
|
+
if (!detectedTypes.includes(type)) {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
const candidate = path.join(lisaDir, type, "copy-overwrite", AUDIT_CONFIG);
|
|
33
|
+
if (await fse.pathExists(candidate)) {
|
|
34
|
+
return candidate;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Extract the set of exclusion ids from a parsed audit ignore file.
|
|
41
|
+
* Entries missing an `id` are ignored (they cannot be de-duplicated safely).
|
|
42
|
+
* @param file - Parsed audit ignore file
|
|
43
|
+
* @returns Set of exclusion ids found in the file
|
|
44
|
+
*/
|
|
45
|
+
function collectIds(file) {
|
|
46
|
+
if (!file || !Array.isArray(file.exclusions)) {
|
|
47
|
+
return new Set();
|
|
48
|
+
}
|
|
49
|
+
const ids = file.exclusions
|
|
50
|
+
.map(entry => entry.id)
|
|
51
|
+
.filter((id) => typeof id === "string" && id.length > 0);
|
|
52
|
+
return new Set(ids);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Read a project-owned local JSON file, distinguishing between a missing file
|
|
56
|
+
* (returns null) and a malformed file (throws). This prevents silent data loss
|
|
57
|
+
* when a file exists but contains invalid JSON.
|
|
58
|
+
* @param filePath - Path to the JSON file
|
|
59
|
+
* @returns Parsed content, or null when the file does not exist
|
|
60
|
+
*/
|
|
61
|
+
async function readLocalJson(filePath) {
|
|
62
|
+
if (!(await fse.pathExists(filePath))) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return readJson(filePath);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Migration: relocate project-specific exclusions from `audit.ignore.config.json`
|
|
69
|
+
* (Lisa-owned, copy-overwrite) into `audit.ignore.local.json` (project-owned,
|
|
70
|
+
* create-only) so they survive future Lisa postinstall runs.
|
|
71
|
+
*
|
|
72
|
+
* Without this migration, projects that add transient-dependency exclusions to
|
|
73
|
+
* the Lisa-owned config see them silently stripped every install, producing
|
|
74
|
+
* noisy diffs and tempting users to commit the regression.
|
|
75
|
+
*
|
|
76
|
+
* Mirrors the shape of `EnsureTsconfigLocalIncludesMigration`:
|
|
77
|
+
* - `beforeStrategies` snapshots the project's pre-strategy exclusions that
|
|
78
|
+
* are not in the Lisa template (i.e., project-specific additions).
|
|
79
|
+
* - `apply` (post-strategy) writes any snapshotted exclusions missing from
|
|
80
|
+
* `audit.ignore.local.json` into that file.
|
|
81
|
+
*/
|
|
82
|
+
export class EnsureAuditIgnoreLocalExclusionsMigration {
|
|
83
|
+
name = "ensure-audit-ignore-local-exclusions";
|
|
84
|
+
description = "Relocate project-specific audit exclusions from audit.ignore.config.json into audit.ignore.local.json";
|
|
85
|
+
snapshot = [];
|
|
86
|
+
/**
|
|
87
|
+
* Snapshot project-specific exclusions that would otherwise be stripped by
|
|
88
|
+
* the copy-overwrite strategy. An exclusion is "project-specific" when its
|
|
89
|
+
* `id` is present in the project's audit.ignore.config.json but absent from
|
|
90
|
+
* the Lisa template for the same project type.
|
|
91
|
+
*
|
|
92
|
+
* When no valid Lisa template can be found for the detected project type the
|
|
93
|
+
* method returns without snapshotting anything. This is intentionally
|
|
94
|
+
* conservative: without a template we cannot distinguish Lisa-owned from
|
|
95
|
+
* project-specific exclusions, so migrating could copy Lisa-owned entries
|
|
96
|
+
* into audit.ignore.local.json.
|
|
97
|
+
* @param ctx - Migration context
|
|
98
|
+
*/
|
|
99
|
+
async beforeStrategies(ctx) {
|
|
100
|
+
this.snapshot = [];
|
|
101
|
+
const projectConfigPath = path.join(ctx.projectDir, AUDIT_CONFIG);
|
|
102
|
+
const projectConfig = await readJsonOrNull(projectConfigPath);
|
|
103
|
+
if (!projectConfig || !Array.isArray(projectConfig.exclusions)) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const templatePath = await findTemplateConfigPath(ctx.lisaDir, ctx.detectedTypes);
|
|
107
|
+
const template = templatePath
|
|
108
|
+
? await readJsonOrNull(templatePath)
|
|
109
|
+
: null;
|
|
110
|
+
if (!template) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const templateIds = collectIds(template);
|
|
114
|
+
const projectSpecific = projectConfig.exclusions.filter(entry => {
|
|
115
|
+
if (typeof entry.id !== "string" || entry.id.length === 0) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
return !templateIds.has(entry.id);
|
|
119
|
+
});
|
|
120
|
+
this.snapshot = projectSpecific;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* The migration applies when at least one snapshotted project-specific
|
|
124
|
+
* exclusion is missing from `audit.ignore.local.json`.
|
|
125
|
+
* @param ctx - Migration context
|
|
126
|
+
* @returns True when there is work to do
|
|
127
|
+
*/
|
|
128
|
+
async applies(ctx) {
|
|
129
|
+
if (this.snapshot.length === 0) {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
const localPath = path.join(ctx.projectDir, AUDIT_LOCAL);
|
|
133
|
+
const local = await readLocalJson(localPath);
|
|
134
|
+
const localIds = collectIds(local);
|
|
135
|
+
return this.snapshot.some(entry => {
|
|
136
|
+
const id = entry.id;
|
|
137
|
+
return typeof id === "string" && !localIds.has(id);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Merge snapshotted project-specific exclusions into audit.ignore.local.json,
|
|
142
|
+
* skipping any whose id is already present. Deduplicates within the snapshot
|
|
143
|
+
* itself so that duplicate source entries are only written once.
|
|
144
|
+
* @param ctx - Migration context
|
|
145
|
+
* @returns Result describing the action taken
|
|
146
|
+
*/
|
|
147
|
+
async apply(ctx) {
|
|
148
|
+
const localPath = path.join(ctx.projectDir, AUDIT_LOCAL);
|
|
149
|
+
const local = await readLocalJson(localPath);
|
|
150
|
+
const existing = Array.isArray(local?.exclusions) ? local.exclusions : [];
|
|
151
|
+
const localIds = collectIds(local);
|
|
152
|
+
const seenIds = new Set(localIds);
|
|
153
|
+
const additions = this.snapshot.filter(entry => {
|
|
154
|
+
const id = entry.id;
|
|
155
|
+
if (typeof id !== "string" || seenIds.has(id)) {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
seenIds.add(id);
|
|
159
|
+
return true;
|
|
160
|
+
});
|
|
161
|
+
if (additions.length === 0) {
|
|
162
|
+
return { name: this.name, action: "noop" };
|
|
163
|
+
}
|
|
164
|
+
const merged = {
|
|
165
|
+
...(local ?? {}),
|
|
166
|
+
exclusions: [...existing, ...additions],
|
|
167
|
+
};
|
|
168
|
+
const addedIds = additions
|
|
169
|
+
.map(entry => entry.id)
|
|
170
|
+
.filter((id) => typeof id === "string");
|
|
171
|
+
const message = `Relocated ${additions.length} exclusion(s) into audit.ignore.local.json (${addedIds.join(", ")})`;
|
|
172
|
+
if (ctx.dryRun) {
|
|
173
|
+
ctx.logger.dry(`Would relocate exclusions: ${addedIds.join(", ")}`);
|
|
174
|
+
return {
|
|
175
|
+
name: this.name,
|
|
176
|
+
action: "applied",
|
|
177
|
+
changedFiles: [AUDIT_LOCAL],
|
|
178
|
+
message,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
await fse.ensureDir(path.dirname(localPath));
|
|
182
|
+
await writeJson(localPath, merged);
|
|
183
|
+
ctx.logger.success(message);
|
|
184
|
+
return {
|
|
185
|
+
name: this.name,
|
|
186
|
+
action: "applied",
|
|
187
|
+
changedFiles: [AUDIT_LOCAL],
|
|
188
|
+
message,
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=ensure-audit-ignore-local-exclusions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-audit-ignore-local-exclusions.js","sourceRoot":"","sources":["../../src/migrations/ensure-audit-ignore-local-exclusions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAO7E,MAAM,YAAY,GAAG,0BAA0B,CAAC;AAChD,MAAM,WAAW,GAAG,yBAAyB,CAAC;AAkB9C;;;GAGG;AACH,MAAM,iBAAiB,GAA2B;IAChD,YAAY;IACZ,MAAM;IACN,KAAK;IACL,QAAQ;IACR,aAAa;CACd,CAAC;AAEF;;;;;;;;;GASG;AACH,KAAK,UAAU,sBAAsB,CACnC,OAAe,EACf,aAAqC;IAErC,KAAK,MAAM,IAAI,IAAI,iBAAiB,EAAE,CAAC;QACrC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAClC,SAAS;QACX,CAAC;QACD,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,CAAC,CAAC;QAC3E,IAAI,MAAM,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YACpC,OAAO,SAAS,CAAC;QACnB,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;GAKG;AACH,SAAS,UAAU,CAAC,IAA4B;IAC9C,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7C,OAAO,IAAI,GAAG,EAAE,CAAC;IACnB,CAAC;IACD,MAAM,GAAG,GAAG,IAAI,CAAC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AAI,CAAC,IAAI,CAAC,GAAG,CAAC;QAEnH,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;YACf,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,8BAA8B,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACpE,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,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;QAC7C,MAAM,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACnC,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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Migration, MigrationContext, MigrationResult } from "./migration.interface.js";
|
|
2
2
|
export type { Migration, MigrationAction, MigrationContext, MigrationResult, } from "./migration.interface.js";
|
|
3
|
+
export { EnsureAuditIgnoreLocalExclusionsMigration } from "./ensure-audit-ignore-local-exclusions.js";
|
|
3
4
|
export { EnsureLisaPostinstallMigration } from "./ensure-lisa-postinstall.js";
|
|
4
5
|
export { EnsureTsconfigLocalIncludesMigration } from "./ensure-tsconfig-local-includes.js";
|
|
5
6
|
/**
|
|
@@ -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":"AAGA,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,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,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;IAQ7C;;;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
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { EnsureAuditIgnoreLocalExclusionsMigration } from "./ensure-audit-ignore-local-exclusions.js";
|
|
1
2
|
import { EnsureLisaPostinstallMigration } from "./ensure-lisa-postinstall.js";
|
|
2
3
|
import { EnsureTsconfigLocalIncludesMigration } from "./ensure-tsconfig-local-includes.js";
|
|
4
|
+
export { EnsureAuditIgnoreLocalExclusionsMigration } from "./ensure-audit-ignore-local-exclusions.js";
|
|
3
5
|
export { EnsureLisaPostinstallMigration } from "./ensure-lisa-postinstall.js";
|
|
4
6
|
export { EnsureTsconfigLocalIncludesMigration } from "./ensure-tsconfig-local-includes.js";
|
|
5
7
|
/**
|
|
@@ -14,6 +16,7 @@ export class MigrationRegistry {
|
|
|
14
16
|
constructor(migrations) {
|
|
15
17
|
this.migrations = migrations ?? [
|
|
16
18
|
new EnsureTsconfigLocalIncludesMigration(),
|
|
19
|
+
new EnsureAuditIgnoreLocalExclusionsMigration(),
|
|
17
20
|
new EnsureLisaPostinstallMigration(),
|
|
18
21
|
];
|
|
19
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAa3F,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,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,8BAA8B,EAAE;SACrC,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,KAAK,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,CA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C7C,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
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"lodash": ">=4.18.1"
|
|
79
79
|
},
|
|
80
80
|
"name": "@codyswann/lisa",
|
|
81
|
-
"version": "1.
|
|
81
|
+
"version": "1.91.1",
|
|
82
82
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
83
83
|
"main": "dist/index.js",
|
|
84
84
|
"exports": {
|