@codyswann/lisa 4.99.10 → 4.99.11
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/ui-enabled-plugins.d.ts.map +1 -1
- package/dist/cli/ui-enabled-plugins.js +5 -29
- package/dist/cli/ui-enabled-plugins.js.map +1 -1
- package/dist/core/lisa.d.ts +10 -1
- package/dist/core/lisa.d.ts.map +1 -1
- package/dist/core/lisa.js +38 -3
- package/dist/core/lisa.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/plugin-command.d.ts +14 -0
- package/dist/core/plugin-command.d.ts.map +1 -1
- package/dist/core/plugin-command.js +21 -3
- package/dist/core/plugin-command.js.map +1 -1
- package/dist/core/plugin-marketplace-filter.d.ts +36 -0
- package/dist/core/plugin-marketplace-filter.d.ts.map +1 -0
- package/dist/core/plugin-marketplace-filter.js +35 -0
- package/dist/core/plugin-marketplace-filter.js.map +1 -0
- package/dist/core/plugin-registration-prune.d.ts +31 -0
- package/dist/core/plugin-registration-prune.d.ts.map +1 -0
- package/dist/core/plugin-registration-prune.js +257 -0
- package/dist/core/plugin-registration-prune.js.map +1 -0
- package/dist/core/retired-plugin-keys.d.ts +24 -0
- package/dist/core/retired-plugin-keys.d.ts.map +1 -0
- package/dist/core/retired-plugin-keys.js +12 -0
- package/dist/core/retired-plugin-keys.js.map +1 -0
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +11 -1
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/migrations/index.d.ts +1 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +4 -0
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/prune-retired-claude-stack-plugin-keys.d.ts +33 -0
- package/dist/migrations/prune-retired-claude-stack-plugin-keys.d.ts.map +1 -0
- package/dist/migrations/prune-retired-claude-stack-plugin-keys.js +98 -0
- package/dist/migrations/prune-retired-claude-stack-plugin-keys.js.map +1 -0
- package/dist/utils/marketplace-manifest.d.ts +19 -0
- package/dist/utils/marketplace-manifest.d.ts.map +1 -0
- package/dist/utils/marketplace-manifest.js +59 -0
- package/dist/utils/marketplace-manifest.js.map +1 -0
- 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-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-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-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-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/typescript/copy-contents/.husky/post-checkout +28 -0
|
@@ -22,6 +22,7 @@ export { EnsureTsconfigLocalFilesFallbackMigration } from "./ensure-tsconfig-loc
|
|
|
22
22
|
export { EnsureWikiSourceDeclaredMigration } from "./ensure-wiki-source-declared.js";
|
|
23
23
|
export { EnsureTsconfigLocalIncludesMigration } from "./ensure-tsconfig-local-includes.js";
|
|
24
24
|
export { PruneRetiredClaudeDenyRulesMigration } from "./prune-retired-claude-deny-rules.js";
|
|
25
|
+
export { PruneRetiredClaudeStackPluginKeysMigration } from "./prune-retired-claude-stack-plugin-keys.js";
|
|
25
26
|
export { PruneRetiredEntireHooksMigration } from "./prune-retired-entire-hooks.js";
|
|
26
27
|
export { PreserveVerificationOptInsMigration } from "./preserve-verification-opt-ins.js";
|
|
27
28
|
export { ReconcileClaudeStackPluginsMigration } from "./reconcile-claude-stack-plugins.js";
|
|
@@ -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":"AA4BA,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,sCAAsC,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,6CAA6C,EAAE,MAAM,gDAAgD,CAAC;AAC/G,OAAO,EAAE,qCAAqC,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,uCAAuC,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,EAAE,qCAAqC,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,yCAAyC,EAAE,MAAM,2CAA2C,CAAC;AACtG,OAAO,EAAE,wCAAwC,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,wCAAwC,EAAE,MAAM,0CAA0C,CAAC;AACpG,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,mCAAmC,EAAE,MAAM,qCAAqC,CAAC;AAC1F,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,sCAAsC,CAAC;AAC5F,OAAO,EAAE,0CAA0C,EAAE,MAAM,6CAA6C,CAAC;AACzG,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,oCAAoC,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAElD;;;OAGG;gBACS,UAAU,CAAC,EAAE,SAAS,SAAS,EAAE;IAoC7C;;;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
|
@@ -20,6 +20,7 @@ import { EnsureTsconfigLocalFilesFallbackMigration } from "./ensure-tsconfig-loc
|
|
|
20
20
|
import { EnsureWikiSourceDeclaredMigration } from "./ensure-wiki-source-declared.js";
|
|
21
21
|
import { EnsureTsconfigLocalIncludesMigration } from "./ensure-tsconfig-local-includes.js";
|
|
22
22
|
import { PruneRetiredClaudeDenyRulesMigration } from "./prune-retired-claude-deny-rules.js";
|
|
23
|
+
import { PruneRetiredClaudeStackPluginKeysMigration } from "./prune-retired-claude-stack-plugin-keys.js";
|
|
23
24
|
import { PruneRetiredEntireHooksMigration } from "./prune-retired-entire-hooks.js";
|
|
24
25
|
import { PreserveVerificationOptInsMigration } from "./preserve-verification-opt-ins.js";
|
|
25
26
|
import { ReconcileClaudeStackPluginsMigration } from "./reconcile-claude-stack-plugins.js";
|
|
@@ -47,6 +48,7 @@ export { EnsureTsconfigLocalFilesFallbackMigration } from "./ensure-tsconfig-loc
|
|
|
47
48
|
export { EnsureWikiSourceDeclaredMigration } from "./ensure-wiki-source-declared.js";
|
|
48
49
|
export { EnsureTsconfigLocalIncludesMigration } from "./ensure-tsconfig-local-includes.js";
|
|
49
50
|
export { PruneRetiredClaudeDenyRulesMigration } from "./prune-retired-claude-deny-rules.js";
|
|
51
|
+
export { PruneRetiredClaudeStackPluginKeysMigration } from "./prune-retired-claude-stack-plugin-keys.js";
|
|
50
52
|
export { PruneRetiredEntireHooksMigration } from "./prune-retired-entire-hooks.js";
|
|
51
53
|
export { PreserveVerificationOptInsMigration } from "./preserve-verification-opt-ins.js";
|
|
52
54
|
export { ReconcileClaudeStackPluginsMigration } from "./reconcile-claude-stack-plugins.js";
|
|
@@ -86,6 +88,8 @@ export class MigrationRegistry {
|
|
|
86
88
|
new PruneRetiredClaudeDenyRulesMigration(),
|
|
87
89
|
new PruneRetiredEntireHooksMigration(),
|
|
88
90
|
new ReconcileClaudeStackPluginsMigration(),
|
|
91
|
+
// After reconcile: a successor it adds retires its predecessor at once.
|
|
92
|
+
new PruneRetiredClaudeStackPluginKeysMigration(),
|
|
89
93
|
new UntrackCodexMarketplaceMigration(),
|
|
90
94
|
new RetireNativeSafetyNetMigration(),
|
|
91
95
|
new CorrectLisaCoderabbitLabelingMigration(),
|
|
@@ -1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ACjC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Migration, MigrationContext, MigrationResult } from "./migration.interface.js";
|
|
2
|
+
/**
|
|
3
|
+
* Migration: remove the stack plugin keys Lisa once shipped and later renamed
|
|
4
|
+
* (see {@link RETIRED_STACK_PLUGIN_KEYS} for the exact keys and the commits
|
|
5
|
+
* that prove them).
|
|
6
|
+
*
|
|
7
|
+
* `reconcile-claude-stack-plugins` manages only `lisa-<type>@lisa` keys, and
|
|
8
|
+
* the merge strategy only adds keys, so nothing ever removed the old names.
|
|
9
|
+
* Every apply and every new worktree then tried to install a plugin that does
|
|
10
|
+
* not exist, warned, and the worktree bootstrap never settled
|
|
11
|
+
* (CodySwannGT/lisa#4645).
|
|
12
|
+
*
|
|
13
|
+
* Registered after `reconcile-claude-stack-plugins`, so a successor that
|
|
14
|
+
* migration adds retires its predecessor in the same apply. Host-added keys,
|
|
15
|
+
* including any other `<name>@lisa` key, are never touched.
|
|
16
|
+
*/
|
|
17
|
+
export declare class PruneRetiredClaudeStackPluginKeysMigration implements Migration {
|
|
18
|
+
readonly name = "prune-retired-claude-stack-plugin-keys";
|
|
19
|
+
readonly description = "Remove renamed Lisa stack plugin keys (e.g. typescript@lisa) from .claude/settings.json";
|
|
20
|
+
/**
|
|
21
|
+
* Whether any retired key can be removed.
|
|
22
|
+
* @param ctx - Migration context
|
|
23
|
+
* @returns True when at least one retired key is removable
|
|
24
|
+
*/
|
|
25
|
+
applies(ctx: MigrationContext): Promise<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* Remove the removable retired keys and name each one.
|
|
28
|
+
* @param ctx - Migration context
|
|
29
|
+
* @returns Result naming the keys removed
|
|
30
|
+
*/
|
|
31
|
+
apply(ctx: MigrationContext): Promise<MigrationResult>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=prune-retired-claude-stack-plugin-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prune-retired-claude-stack-plugin-keys.d.ts","sourceRoot":"","sources":["../../src/migrations/prune-retired-claude-stack-plugin-keys.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAgDlC;;;;;;;;;;;;;;GAcG;AACH,qBAAa,0CAA2C,YAAW,SAAS;IAC1E,QAAQ,CAAC,IAAI,4CAA4C;IACzD,QAAQ,CAAC,WAAW,6FACwE;IAE5F;;;;OAIG;IACG,OAAO,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAWtD;;;;OAIG;IACG,KAAK,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;CAkC7D"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as path from "node:path";
|
|
2
|
+
import { RETIRED_STACK_PLUGIN_KEYS } from "../core/retired-plugin-keys.js";
|
|
3
|
+
import { readJsonOrNull, writeJson } from "../utils/json-utils.js";
|
|
4
|
+
const SETTINGS_REL_PATH = path.join(".claude", "settings.json");
|
|
5
|
+
/**
|
|
6
|
+
* The retired keys in `enabledPlugins` that are safe to remove: those whose
|
|
7
|
+
* successor is already present, and those whose stack type no longer applies.
|
|
8
|
+
* A retired key whose type still applies but whose successor is missing is
|
|
9
|
+
* kept — removing it would leave the stack with no plugin key at all.
|
|
10
|
+
* @param enabledPlugins - Current enabledPlugins map
|
|
11
|
+
* @param detectedTypes - Detected project types (already parent-expanded)
|
|
12
|
+
* @returns Retired keys to remove, in file order
|
|
13
|
+
*/
|
|
14
|
+
function findRemovableRetiredKeys(enabledPlugins, detectedTypes) {
|
|
15
|
+
return Object.keys(enabledPlugins).filter(key => {
|
|
16
|
+
const retired = RETIRED_STACK_PLUGIN_KEYS.get(key);
|
|
17
|
+
if (retired === undefined) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
return (Object.hasOwn(enabledPlugins, retired.successor) ||
|
|
21
|
+
!detectedTypes.includes(retired.type));
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Read the project's `.claude/settings.json`, returning null when absent.
|
|
26
|
+
* @param projectDir - Destination project directory
|
|
27
|
+
* @returns Parsed settings or null when missing/invalid
|
|
28
|
+
*/
|
|
29
|
+
async function readClaudeSettings(projectDir) {
|
|
30
|
+
return readJsonOrNull(path.join(projectDir, SETTINGS_REL_PATH));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Migration: remove the stack plugin keys Lisa once shipped and later renamed
|
|
34
|
+
* (see {@link RETIRED_STACK_PLUGIN_KEYS} for the exact keys and the commits
|
|
35
|
+
* that prove them).
|
|
36
|
+
*
|
|
37
|
+
* `reconcile-claude-stack-plugins` manages only `lisa-<type>@lisa` keys, and
|
|
38
|
+
* the merge strategy only adds keys, so nothing ever removed the old names.
|
|
39
|
+
* Every apply and every new worktree then tried to install a plugin that does
|
|
40
|
+
* not exist, warned, and the worktree bootstrap never settled
|
|
41
|
+
* (CodySwannGT/lisa#4645).
|
|
42
|
+
*
|
|
43
|
+
* Registered after `reconcile-claude-stack-plugins`, so a successor that
|
|
44
|
+
* migration adds retires its predecessor in the same apply. Host-added keys,
|
|
45
|
+
* including any other `<name>@lisa` key, are never touched.
|
|
46
|
+
*/
|
|
47
|
+
export class PruneRetiredClaudeStackPluginKeysMigration {
|
|
48
|
+
name = "prune-retired-claude-stack-plugin-keys";
|
|
49
|
+
description = "Remove renamed Lisa stack plugin keys (e.g. typescript@lisa) from .claude/settings.json";
|
|
50
|
+
/**
|
|
51
|
+
* Whether any retired key can be removed.
|
|
52
|
+
* @param ctx - Migration context
|
|
53
|
+
* @returns True when at least one retired key is removable
|
|
54
|
+
*/
|
|
55
|
+
async applies(ctx) {
|
|
56
|
+
const settings = await readClaudeSettings(ctx.projectDir);
|
|
57
|
+
if (!settings?.enabledPlugins) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
return (findRemovableRetiredKeys(settings.enabledPlugins, ctx.detectedTypes)
|
|
61
|
+
.length > 0);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Remove the removable retired keys and name each one.
|
|
65
|
+
* @param ctx - Migration context
|
|
66
|
+
* @returns Result naming the keys removed
|
|
67
|
+
*/
|
|
68
|
+
async apply(ctx) {
|
|
69
|
+
const settings = await readClaudeSettings(ctx.projectDir);
|
|
70
|
+
const enabledPlugins = settings?.enabledPlugins;
|
|
71
|
+
if (!settings || !enabledPlugins) {
|
|
72
|
+
return { name: this.name, action: "noop" };
|
|
73
|
+
}
|
|
74
|
+
const removed = findRemovableRetiredKeys(enabledPlugins, ctx.detectedTypes);
|
|
75
|
+
if (removed.length === 0) {
|
|
76
|
+
return { name: this.name, action: "noop" };
|
|
77
|
+
}
|
|
78
|
+
const message = `Removed retired plugin ${removed.length === 1 ? "key" : "keys"}: ${removed.join(", ")}`;
|
|
79
|
+
const result = {
|
|
80
|
+
name: this.name,
|
|
81
|
+
action: "applied",
|
|
82
|
+
changedFiles: [SETTINGS_REL_PATH],
|
|
83
|
+
message,
|
|
84
|
+
};
|
|
85
|
+
if (ctx.dryRun) {
|
|
86
|
+
ctx.logger.dry(`Would update ${SETTINGS_REL_PATH}: ${message}`);
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
const removedSet = new Set(removed);
|
|
90
|
+
await writeJson(path.join(ctx.projectDir, SETTINGS_REL_PATH), {
|
|
91
|
+
...settings,
|
|
92
|
+
enabledPlugins: Object.fromEntries(Object.entries(enabledPlugins).filter(([key]) => !removedSet.has(key))),
|
|
93
|
+
});
|
|
94
|
+
ctx.logger.success(message);
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=prune-retired-claude-stack-plugin-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prune-retired-claude-stack-plugin-keys.js","sourceRoot":"","sources":["../../src/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OAAO,CAAC,CAAC;QACpC,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,iBAAiB,CAAC,EAAE;YAC5D,GAAG,QAAQ;YACX,cAAc,EAAE,MAAM,CAAC,WAAW,CAChC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CACvE;SACF,CAAC,CAAC;QACH,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5B,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** One plugin entry from a marketplace catalog. */
|
|
2
|
+
export interface MarketplaceCatalogPlugin {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly description: string;
|
|
5
|
+
}
|
|
6
|
+
/** The parts of a marketplace manifest Lisa reads. */
|
|
7
|
+
export interface MarketplaceCatalog {
|
|
8
|
+
/** The manifest's own `name`, or null when it omits one. */
|
|
9
|
+
readonly name: string | null;
|
|
10
|
+
readonly plugins: readonly MarketplaceCatalogPlugin[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Read a marketplace manifest.
|
|
14
|
+
* @param manifestPath - Absolute path to marketplace.json
|
|
15
|
+
* @returns The catalog, or null when the file is missing, unparseable, or has
|
|
16
|
+
* no `plugins` array
|
|
17
|
+
*/
|
|
18
|
+
export declare function readMarketplaceCatalog(manifestPath: string): Promise<MarketplaceCatalog | null>;
|
|
19
|
+
//# sourceMappingURL=marketplace-manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-manifest.d.ts","sourceRoot":"","sources":["../../src/utils/marketplace-manifest.ts"],"names":[],"mappings":"AAYA,mDAAmD;AACnD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,sDAAsD;AACtD,MAAM,WAAW,kBAAkB;IACjC,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,SAAS,wBAAwB,EAAE,CAAC;CACvD;AAwBD;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAmBpC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reader for a Claude plugin marketplace manifest
|
|
3
|
+
* (`<marketplace>/.claude-plugin/marketplace.json`).
|
|
4
|
+
*
|
|
5
|
+
* Shared by the console's enabled-plugins probe and by `lisa apply`, which
|
|
6
|
+
* skips enabled `<name>@lisa` keys the Lisa manifest does not list
|
|
7
|
+
* (CodySwannGT/lisa#4645). Callers need to tell "unreadable" apart from
|
|
8
|
+
* "lists nothing", so an unreadable or malformed file is `null`.
|
|
9
|
+
* @module utils/marketplace-manifest
|
|
10
|
+
*/
|
|
11
|
+
import { readFile } from "node:fs/promises";
|
|
12
|
+
/**
|
|
13
|
+
* Normalise one `plugins[]` entry, dropping anything without a usable name.
|
|
14
|
+
* @param entry - Raw manifest entry
|
|
15
|
+
* @returns The entry as a one-element list, or an empty list
|
|
16
|
+
*/
|
|
17
|
+
function toCatalogPlugin(entry) {
|
|
18
|
+
if (typeof entry !== "object" || entry === null) {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
const name = Reflect.get(entry, "name");
|
|
22
|
+
if (typeof name !== "string" || name.trim().length === 0) {
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
const description = Reflect.get(entry, "description");
|
|
26
|
+
return [
|
|
27
|
+
{
|
|
28
|
+
name: name.trim(),
|
|
29
|
+
description: typeof description === "string" ? description : "",
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Read a marketplace manifest.
|
|
35
|
+
* @param manifestPath - Absolute path to marketplace.json
|
|
36
|
+
* @returns The catalog, or null when the file is missing, unparseable, or has
|
|
37
|
+
* no `plugins` array
|
|
38
|
+
*/
|
|
39
|
+
export async function readMarketplaceCatalog(manifestPath) {
|
|
40
|
+
try {
|
|
41
|
+
const parsed = JSON.parse(await readFile(manifestPath, "utf8"));
|
|
42
|
+
if (typeof parsed !== "object" || parsed === null) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
const plugins = Reflect.get(parsed, "plugins");
|
|
46
|
+
if (!Array.isArray(plugins)) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
const name = Reflect.get(parsed, "name");
|
|
50
|
+
return {
|
|
51
|
+
name: typeof name === "string" && name.trim().length > 0 ? name.trim() : null,
|
|
52
|
+
plugins: plugins.flatMap(toCatalogPlugin),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=marketplace-manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-manifest.js","sourceRoot":"","sources":["../../src/utils/marketplace-manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAe5C;;;;GAIG;AACH,SAAS,eAAe,CAAC,KAAc;IACrC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAChD,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACxC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,I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CHANGED
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"qs": "^6.16.0"
|
|
197
197
|
},
|
|
198
198
|
"name": "@codyswann/lisa",
|
|
199
|
-
"version": "4.99.
|
|
199
|
+
"version": "4.99.11",
|
|
200
200
|
"description": "Governance-as-code for AI coding agents: turns a repository into agent-operated software factories with guardrails, guidance and automated enforcement for Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot and Devin",
|
|
201
201
|
"main": "dist/index.js",
|
|
202
202
|
"exports": {
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
"test": "tests"
|
|
360
360
|
},
|
|
361
361
|
"types": "./dist/index.d.ts",
|
|
362
|
-
"lisaReleaseCommit": "
|
|
363
|
-
"gitHead": "
|
|
364
|
-
"lisaReleaseTag": "v4.99.
|
|
362
|
+
"lisaReleaseCommit": "1b86e343a803ee9ef1746ed509e4ef31ac576778",
|
|
363
|
+
"gitHead": "1b86e343a803ee9ef1746ed509e4ef31ac576778",
|
|
364
|
+
"lisaReleaseTag": "v4.99.11"
|
|
365
365
|
}
|