@codyswann/lisa 4.99.9 → 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.
Files changed (168) hide show
  1. package/dist/cli/ui-enabled-plugins.d.ts.map +1 -1
  2. package/dist/cli/ui-enabled-plugins.js +5 -29
  3. package/dist/cli/ui-enabled-plugins.js.map +1 -1
  4. package/dist/core/lisa.d.ts +10 -1
  5. package/dist/core/lisa.d.ts.map +1 -1
  6. package/dist/core/lisa.js +38 -3
  7. package/dist/core/lisa.js.map +1 -1
  8. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  9. package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
  10. package/dist/core/plugin-command.d.ts +14 -0
  11. package/dist/core/plugin-command.d.ts.map +1 -1
  12. package/dist/core/plugin-command.js +21 -3
  13. package/dist/core/plugin-command.js.map +1 -1
  14. package/dist/core/plugin-marketplace-filter.d.ts +36 -0
  15. package/dist/core/plugin-marketplace-filter.d.ts.map +1 -0
  16. package/dist/core/plugin-marketplace-filter.js +35 -0
  17. package/dist/core/plugin-marketplace-filter.js.map +1 -0
  18. package/dist/core/plugin-registration-prune.d.ts +31 -0
  19. package/dist/core/plugin-registration-prune.d.ts.map +1 -0
  20. package/dist/core/plugin-registration-prune.js +257 -0
  21. package/dist/core/plugin-registration-prune.js.map +1 -0
  22. package/dist/core/retired-plugin-keys.d.ts +24 -0
  23. package/dist/core/retired-plugin-keys.d.ts.map +1 -0
  24. package/dist/core/retired-plugin-keys.js +12 -0
  25. package/dist/core/retired-plugin-keys.js.map +1 -0
  26. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  27. package/dist/core/upstream-evidence-manifest.js +27 -9
  28. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  29. package/dist/migrations/index.d.ts +1 -0
  30. package/dist/migrations/index.d.ts.map +1 -1
  31. package/dist/migrations/index.js +4 -0
  32. package/dist/migrations/index.js.map +1 -1
  33. package/dist/migrations/prune-retired-claude-stack-plugin-keys.d.ts +33 -0
  34. package/dist/migrations/prune-retired-claude-stack-plugin-keys.d.ts.map +1 -0
  35. package/dist/migrations/prune-retired-claude-stack-plugin-keys.js +98 -0
  36. package/dist/migrations/prune-retired-claude-stack-plugin-keys.js.map +1 -0
  37. package/dist/utils/marketplace-manifest.d.ts +19 -0
  38. package/dist/utils/marketplace-manifest.d.ts.map +1 -0
  39. package/dist/utils/marketplace-manifest.js +59 -0
  40. package/dist/utils/marketplace-manifest.js.map +1 -0
  41. package/package.json +4 -4
  42. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  44. package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +3 -1
  45. package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/scripts/post-evidence.sh +87 -8
  46. package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +4 -1
  47. package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +3 -1
  48. package/plugins/lisa/skills/lisa-jira-evidence/scripts/post-evidence.sh +87 -8
  49. package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +4 -1
  50. package/plugins/lisa-agy/plugin.json +1 -1
  51. package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +3 -1
  52. package/plugins/lisa-agy/skills/lisa-jira-evidence/scripts/post-evidence.sh +87 -8
  53. package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +4 -1
  54. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  56. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  57. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  61. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +3 -1
  63. package/plugins/lisa-copilot/skills/lisa-jira-evidence/scripts/post-evidence.sh +87 -8
  64. package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +4 -1
  65. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +3 -1
  67. package/plugins/lisa-cursor/skills/lisa-jira-evidence/scripts/post-evidence.sh +87 -8
  68. package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +4 -1
  69. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  71. package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +3 -1
  72. package/plugins/lisa-devin/skills/lisa-jira-evidence/scripts/post-evidence.sh +87 -8
  73. package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +4 -1
  74. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  76. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +3 -1
  77. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  78. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +11 -5
  79. package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +3 -1
  80. package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  81. package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +11 -5
  82. package/plugins/lisa-expo-agy/plugin.json +1 -1
  83. package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +3 -1
  84. package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  85. package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +11 -5
  86. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  87. package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +3 -1
  88. package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  89. package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +11 -5
  90. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +3 -1
  92. package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  93. package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +11 -5
  94. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  95. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  96. package/plugins/lisa-expo-devin/skills/jira-evidence/SKILL.md +3 -1
  97. package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  98. package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +11 -5
  99. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  100. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  101. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  102. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  103. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  104. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  105. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  106. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  107. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  108. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  109. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  110. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  111. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  112. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  113. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  114. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  115. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  116. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  117. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  118. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  119. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  120. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  121. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  122. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  123. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  124. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  125. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  126. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  127. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  128. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  129. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +2 -1
  130. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  131. package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +2 -1
  132. package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  133. package/plugins/lisa-rails-agy/plugin.json +1 -1
  134. package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +2 -1
  135. package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  136. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  137. package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +2 -1
  138. package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  139. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  140. package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +2 -1
  141. package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  142. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  143. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  144. package/plugins/lisa-rails-devin/skills/jira-evidence/SKILL.md +2 -1
  145. package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  146. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  147. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  148. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  149. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  150. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  151. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  152. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  153. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  154. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  155. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  156. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  157. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  158. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  159. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  160. package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +3 -1
  161. package/plugins/src/base/skills/lisa-jira-evidence/scripts/post-evidence.sh +87 -8
  162. package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +4 -1
  163. package/plugins/src/expo/skills/jira-evidence/SKILL.md +3 -1
  164. package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  165. package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +11 -5
  166. package/plugins/src/rails/skills/jira-evidence/SKILL.md +2 -1
  167. package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +87 -8
  168. 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":"AA2BA,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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B,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"}
@@ -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 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,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,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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"}
@@ -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/migrations/prune-retired-claude-stack-plugin-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAOnE,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;AAQhE;;;;;;;;GAQG;AACH,SAAS,wBAAwB,CAC/B,cAAiD,EACjD,aAAqC;IAErC,OAAO,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;QAC9C,MAAM,OAAO,GAAG,yBAAyB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,CACL,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,SAAS,CAAC;YAChD,CAAC,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CACtC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,KAAK,UAAU,kBAAkB,CAC/B,UAAkB;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AAK,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACzG,MAAM,MAAM,GAAoB;YAC9B,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,SAAS;YACjB,YAAY,EAAE,CAAC,iBAAiB,CAAC;YACjC,OAAO;SACR,CAAC;QAEF,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;YACf,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,iBAAiB,KAAK,OAAO,EAAE,CAAC,CAAC;YAChE,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,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,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzD,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IACtD,OAAO;QACL;YACE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;YACjB,WAAW,EAAE,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;SAChE;KACF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,YAAoB;IAEpB,IAAI,CAAC;QACH,MAAM,MAAM,GAAY,IAAI,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;QACzE,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YAClD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAC/C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACzC,OAAO;YACL,IAAI,EACF,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI;YACzE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC;SAC1C,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -196,7 +196,7 @@
196
196
  "qs": "^6.16.0"
197
197
  },
198
198
  "name": "@codyswann/lisa",
199
- "version": "4.99.9",
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": "ad1ae5500b95153d1786f834bf8b3b859b5f3fa6",
363
- "gitHead": "ad1ae5500b95153d1786f834bf8b3b859b5f3fa6",
364
- "lisaReleaseTag": "v4.99.9"
362
+ "lisaReleaseCommit": "1b86e343a803ee9ef1746ed509e4ef31ac576778",
363
+ "gitHead": "1b86e343a803ee9ef1746ed509e4ef31ac576778",
364
+ "lisaReleaseTag": "v4.99.11"
365
365
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.99.9",
3
+ "version": "4.99.11",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.99.9",
3
+ "version": "4.99.11",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -83,7 +83,7 @@ export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release
83
83
  ## What It Does
84
84
 
85
85
  1. **Read JIRA config** — Resolves the jira-cli config (`$PROJECT_DIR/.lisa/jira-cli/.config.yml` first, then `~/.config/.jira/.config.yml`, announcing the fallback) and reads `server` and `login` from it dynamically — no hardcoded values. Exits 1 naming both paths when neither exists. The same resolved path is then passed to `jira issue move` as `--config`, so the CLI cannot end up on a different config than the one this script parsed.
86
- 2. **Upload to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`)** — Uploads evidence files via `gh release upload --clobber`
86
+ 2. **Upload to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`)** — Validates `PR_NUMBER` as a positive integer, uploads each evidence file as `pr-<PR_NUMBER>-<file>` via `gh release upload --clobber`, then lists the release and exits 1 naming any uploaded asset that is missing. Before uploading it refuses an evidence name outside `NN-name.(png|txt|json)` with letters, digits, `.`, `_` and `-` only (GitHub rewrites other characters in asset names), and before editing the description it exits 1 naming any Markdown link or image target in `comment.md` (inline, titled, `<url>`-bracketed or a reference definition such as `[ref]: url`) that points into that release but is not `pr-<PR_NUMBER>-…` or was not uploaded by this run (a stale asset from an earlier run does not count; release URLs quoted as plain text in inlined evidence are ignored). `--clobber` therefore only ever replaces this pull request's own earlier upload.
87
87
  3. **Update PR description** — Replaces or appends the `## Evidence` section in the PR body
88
88
  4. **Post JIRA comment** — Posts `comment.txt` as a new comment (wiki markup with code blocks)
89
89
  5. **Move ticket to the configured review status** — Transitions the JIRA ticket to `$REVIEW` (default: `Code Review`).
@@ -101,6 +101,8 @@ evidence/
101
101
  comment.md used for PR description
102
102
  ```
103
103
 
104
+ Local evidence files keep their `NN-` names. In the shared evidence release each one is stored as `pr-<number>-<file>` (for PR 42, `01-health-check.json` becomes `pr-42-01-health-check.json`), so two pull requests with a same-named file never overwrite each other's evidence. `generate-templates.py` links that scoped name.
105
+
104
106
  ## Troubleshooting
105
107
 
106
108
  ### Evidence not appearing in GitHub PR
@@ -15,7 +15,8 @@
15
15
  #
16
16
  # What it does:
17
17
  # 1. Uploads evidence files to the configured GitHub evidence release
18
- # (default 'pr-assets'; see verification.completion.evidenceRelease)
18
+ # (default 'pr-assets'; see verification.completion.evidenceRelease) as
19
+ # pr-<PR_NUMBER>-<file>, then confirms every one is listed there
19
20
  # 2. Updates the GitHub PR description with evidence/comment.md
20
21
  # 3. Uploads image evidence as JIRA attachments
21
22
  # 4. Posts/updates the JIRA comment with evidence/comment.txt
@@ -28,6 +29,14 @@ TICKET_ID="${1:?Usage: post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>}"
28
29
  EVIDENCE_DIR="${2:?Usage: post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>}"
29
30
  PR_NUMBER="${3:?Usage: post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>}"
30
31
 
32
+ # Every release asset is named pr-${PR_NUMBER}-<file>, so the number must be a
33
+ # canonical positive integer before anything is uploaded: an empty, signed or
34
+ # padded value would produce a name another pull request could also produce.
35
+ if [[ ! "$PR_NUMBER" =~ ^[1-9][0-9]*$ ]]; then
36
+ echo "ERROR: PR_NUMBER must be a positive integer, got '$PR_NUMBER'" >&2
37
+ exit 1
38
+ fi
39
+
31
40
  # ─────────────────────────────────────────────────────────────────────────────
32
41
  # CONFIG RESOLUTION
33
42
  #
@@ -153,6 +162,26 @@ fi
153
162
 
154
163
  echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidence files to upload"
155
164
 
165
+ # GitHub rewrites special characters (spaces, brackets, non-ASCII) in release
166
+ # asset names, so a link built from the local name would point at an asset that
167
+ # does not exist under that name. Refuse such names before anything is uploaded.
168
+ for FILE in "${ALL_EVIDENCE[@]}"; do
169
+ if [[ ! "$(basename "$FILE")" =~ ^[0-9]{2}-[A-Za-z0-9._-]+\.(png|txt|json)$ ]]; then
170
+ echo "ERROR: evidence file name '$(basename "$FILE")' is not release-safe." >&2
171
+ echo " Rename it to NN-name.ext using only letters, digits, '.', '_' and '-'" >&2
172
+ echo " (e.g. '01-search step.png' -> '01-search-step.png'), then re-run generate-templates.py." >&2
173
+ exit 1
174
+ fi
175
+ done
176
+
177
+ # The description is checked against the release after uploading, so it must
178
+ # exist before anything is uploaded.
179
+ COMMENT_MD="$EVIDENCE_DIR/comment.md"
180
+ if [[ ! -f "$COMMENT_MD" ]]; then
181
+ echo "ERROR: $COMMENT_MD not found — run generate-templates.py first" >&2
182
+ exit 1
183
+ fi
184
+
156
185
  # Compute JIRA auth early (used in steps 3 and 4)
157
186
  JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
158
187
 
@@ -160,21 +189,71 @@ JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
160
189
  echo ""
161
190
  echo "==> Uploading to GitHub release '$RELEASE_TAG'..."
162
191
 
192
+ # Every pull request shares this one release, and --clobber deletes a
193
+ # same-named asset before uploading. Bare NN- names collided across pull
194
+ # requests, so a later upload destroyed an earlier one's evidence
195
+ # (CodySwannGT/lisa#4639). Each asset is therefore uploaded as
196
+ # pr-${PR_NUMBER}-<file>: --clobber can then replace only this pull request's
197
+ # own earlier upload. Local evidence files keep their NN- names; the scoped
198
+ # copies live in a private directory removed on exit.
199
+ UPLOAD_DIR=$(mktemp -d)
200
+ trap 'rm -rf "$UPLOAD_DIR"' EXIT
201
+ UPLOADED_ASSETS=()
163
202
  for FILE in "${ALL_EVIDENCE[@]}"; do
164
- FILENAME=$(basename "$FILE")
165
- echo " ↑ $FILENAME"
166
- gh release upload "$RELEASE_TAG" "$FILE" --repo "$GH_REPO" --clobber
203
+ ASSET_NAME="pr-${PR_NUMBER}-$(basename "$FILE")"
204
+ cp "$FILE" "$UPLOAD_DIR/$ASSET_NAME"
205
+ echo " ↑ $ASSET_NAME"
206
+ gh release upload "$RELEASE_TAG" "$UPLOAD_DIR/$ASSET_NAME" --repo "$GH_REPO" --clobber
207
+ UPLOADED_ASSETS+=("$ASSET_NAME")
167
208
  done
168
209
 
210
+ # The description links these names, so confirm each one is really in the
211
+ # release before pointing anything at it.
212
+ RELEASE_ASSETS=$(gh release view "$RELEASE_TAG" --repo "$GH_REPO" --json assets --jq '.assets[].name')
213
+ MISSING_ASSETS=0
214
+ for ASSET_NAME in "${UPLOADED_ASSETS[@]}"; do
215
+ if ! grep -qxF "$ASSET_NAME" <<< "$RELEASE_ASSETS"; then
216
+ echo "ERROR: $ASSET_NAME is missing from release '$RELEASE_TAG' after upload" >&2
217
+ MISSING_ASSETS=1
218
+ fi
219
+ done
220
+ if [[ $MISSING_ASSETS -ne 0 ]]; then
221
+ exit 1
222
+ fi
223
+
169
224
  echo " ✓ GitHub release assets uploaded"
170
225
 
171
- # ── Step 2: Update GitHub PR description with evidence ──────────────────────
172
- COMMENT_MD="$EVIDENCE_DIR/comment.md"
173
- if [[ ! -f "$COMMENT_MD" ]]; then
174
- echo "ERROR: $COMMENT_MD not found — run generate-templates.py first" >&2
226
+ # Every Markdown link or image target that points into the release must name
227
+ # an asset THIS run uploaded, and therefore one the check above just found in
228
+ # the release. A bare or other-PR name would show some other pull request's
229
+ # evidence, and a pr-<n>- asset left over from an earlier run would show
230
+ # evidence this run did not produce. Every Markdown target form counts:
231
+ # inline ](url) ](url "title") ](<url>) ](<url> "title")
232
+ # reference [ref]: url [ref]: <url> "title" (up to 3 leading spaces)
233
+ # Only link targets count: text evidence inlined into comment.md may quote a
234
+ # release URL as plain text, and that must not fail the run.
235
+ THIS_RUN_ASSETS=$(printf '%s\n' "${UPLOADED_ASSETS[@]}")
236
+ BAD_LINKS=0
237
+ while IFS= read -r LINK; do
238
+ [[ "$LINK" == *"releases/download/${RELEASE_TAG}/"* ]] || continue
239
+ LINK_NAME="${LINK##*/}"
240
+ if [[ "$LINK_NAME" != "pr-${PR_NUMBER}-"* ]]; then
241
+ echo "ERROR: $COMMENT_MD links $LINK, which is not scoped to PR #$PR_NUMBER (expected pr-${PR_NUMBER}-<file>)" >&2
242
+ BAD_LINKS=1
243
+ elif ! grep -qxF "$LINK_NAME" <<< "$THIS_RUN_ASSETS"; then
244
+ echo "ERROR: $COMMENT_MD links $LINK, which this run did not upload to release '$RELEASE_TAG'" >&2
245
+ BAD_LINKS=1
246
+ fi
247
+ done < <(
248
+ { grep -oE '\]\(<?[^)<>[:space:]]+' "$COMMENT_MD" || true; } | sed -E 's/^\]\(<?//'
249
+ { grep -oE '^ {0,3}\[[^]]+\]:[[:space:]]*<?[^<>[:space:]]+' "$COMMENT_MD" || true; } |
250
+ sed -E 's/^ {0,3}\[[^]]+\]:[[:space:]]*<?//'
251
+ )
252
+ if [[ $BAD_LINKS -ne 0 ]]; then
175
253
  exit 1
176
254
  fi
177
255
 
256
+ # ── Step 2: Update GitHub PR description with evidence ──────────────────────
178
257
  echo ""
179
258
  echo "==> Updating GitHub PR #$PR_NUMBER description..."
180
259
 
@@ -194,7 +194,10 @@ def generate_github_md(ticket_id, pr_number, branch, evidence_files, journey, gh
194
194
  if filename.endswith(".png"):
195
195
  lines.append(f"**{label}:**")
196
196
  lines.append("")
197
- lines.append(f"![{label}]({release_base}/{filename})")
197
+ # post-evidence.sh stores the asset as pr-<number>-<file> so pull
198
+ # requests sharing the release never overwrite each other's
199
+ # evidence (CodySwannGT/lisa#4639); link exactly that name.
200
+ lines.append(f"![{label}]({release_base}/pr-{pr_number}-{filename})")
198
201
  lines.append("")
199
202
  else:
200
203
  content = evidence_path.read_text().strip()
@@ -81,7 +81,7 @@ export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release
81
81
  ## What It Does
82
82
 
83
83
  1. **Read JIRA config** — Resolves the jira-cli config (`$PROJECT_DIR/.lisa/jira-cli/.config.yml` first, then `~/.config/.jira/.config.yml`, announcing the fallback) and reads `server` and `login` from it dynamically — no hardcoded values. Exits 1 naming both paths when neither exists. The same resolved path is then passed to `jira issue move` as `--config`, so the CLI cannot end up on a different config than the one this script parsed.
84
- 2. **Upload to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`)** — Uploads evidence files via `gh release upload --clobber`
84
+ 2. **Upload to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`)** — Validates `PR_NUMBER` as a positive integer, uploads each evidence file as `pr-<PR_NUMBER>-<file>` via `gh release upload --clobber`, then lists the release and exits 1 naming any uploaded asset that is missing. Before uploading it refuses an evidence name outside `NN-name.(png|txt|json)` with letters, digits, `.`, `_` and `-` only (GitHub rewrites other characters in asset names), and before editing the description it exits 1 naming any Markdown link or image target in `comment.md` (inline, titled, `<url>`-bracketed or a reference definition such as `[ref]: url`) that points into that release but is not `pr-<PR_NUMBER>-…` or was not uploaded by this run (a stale asset from an earlier run does not count; release URLs quoted as plain text in inlined evidence are ignored). `--clobber` therefore only ever replaces this pull request's own earlier upload.
85
85
  3. **Update PR description** — Replaces or appends the `## Evidence` section in the PR body
86
86
  4. **Post JIRA comment** — Posts `comment.txt` as a new comment (wiki markup with code blocks)
87
87
  5. **Move ticket to the configured review status** — Transitions the JIRA ticket to `$REVIEW` (default: `Code Review`).
@@ -99,6 +99,8 @@ evidence/
99
99
  comment.md used for PR description
100
100
  ```
101
101
 
102
+ Local evidence files keep their `NN-` names. In the shared evidence release each one is stored as `pr-<number>-<file>` (for PR 42, `01-health-check.json` becomes `pr-42-01-health-check.json`), so two pull requests with a same-named file never overwrite each other's evidence. `generate-templates.py` links that scoped name.
103
+
102
104
  ## Troubleshooting
103
105
 
104
106
  ### Evidence not appearing in GitHub PR