@codyswann/lisa 4.71.11 → 4.71.13

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 (87) hide show
  1. package/all/copy-overwrite/scripts/lisa-hooks/discharge-work-item-gates.sh +90 -0
  2. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
  3. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  4. package/dist/core/lisa-owned-hash-ledger.js +16 -0
  5. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  6. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  7. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  8. package/dist/core/upstream-evidence-manifest.js +12 -7
  9. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  10. package/dist/opencode/hooks-installer.d.ts.map +1 -1
  11. package/dist/opencode/hooks-installer.js +1 -0
  12. package/dist/opencode/hooks-installer.js.map +1 -1
  13. package/dist/opencode/plugin-catalog.d.ts.map +1 -1
  14. package/dist/opencode/plugin-catalog.js +5 -0
  15. package/dist/opencode/plugin-catalog.js.map +1 -1
  16. package/dist/opencode/plugin-templates/discharge-work-item-gates.sh +90 -0
  17. package/dist/opencode/plugin-templates/lisa-discharge-work-item-gates.ts +43 -0
  18. package/package.json +4 -4
  19. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  21. package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +8 -0
  22. package/plugins/lisa/hooks/discharge-work-item-gates.sh +32 -2
  23. package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +20 -2
  24. package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +8 -0
  25. package/plugins/lisa-agy/plugin.json +1 -1
  26. package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +20 -2
  27. package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +8 -0
  28. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  30. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  31. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-copilot/hooks/discharge-work-item-gates.sh +32 -2
  35. package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +20 -2
  36. package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +8 -0
  37. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-cursor/hooks/discharge-work-item-gates.sh +32 -2
  39. package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +20 -2
  40. package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +8 -0
  41. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  43. package/plugins/lisa-expo-agy/plugin.json +1 -1
  44. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  48. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  49. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  53. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  54. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  58. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  59. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  63. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  64. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  68. package/plugins/lisa-rails-agy/plugin.json +1 -1
  69. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  73. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  74. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  78. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  79. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  81. package/plugins/materialized-artifacts.json +2 -0
  82. package/plugins/src/base/hooks/discharge-work-item-gates.sh +29 -2
  83. package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +20 -2
  84. package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +8 -0
  85. package/scripts/build-plugins.sh +8 -0
  86. package/scripts/copy-opencode-plugin-templates.mjs +1 -0
  87. package/scripts/two-channel-couplings.json +1 -1
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # This file is managed by Lisa.
3
- # Do not edit directly — changes will be overwritten on the next `lisa` run.
2
+ # This file is managed by Lisa and IS replaced on each `lisa` run.
3
+ # Do not edit directly — durable changes belong upstream in Lisa.
4
+
4
5
  # =============================================================================
5
6
  # Discharge Deferred Work-Item Gates Hook (PostToolUse - Bash)
6
7
  # =============================================================================
@@ -56,5 +57,34 @@ case "$status" in
56
57
  0 | 3) exit 0 ;;
57
58
  esac
58
59
 
60
+ # Plugin updates can precede a host's copied CLI. A generic usage refusal from
61
+ # before this subcommand existed is not a ticket violation. Recognize only a
62
+ # command-list line, then confirm that the no-argument usage probe returns the
63
+ # SAME response and status. Never infer capabilities by grepping the entrypoint:
64
+ # Lisa's own entrypoint is a thin import of the canonical implementation.
65
+ # This shared hook fans out to every agent with a PostToolUse surface; agy's
66
+ # documented lack of that surface remains covered by push/CI traceability.
67
+ if [ "$status" -eq 1 ]; then
68
+ usage_commands="$(printf '%s\n' "$output" | sed -n \
69
+ -e 's/^Usage: lisa-work-item\.mjs //p' \
70
+ -e 's/^❌ Work-item tracking blocked this operation: Usage: lisa-work-item\.mjs //p')"
71
+ case "$usage_commands" in
72
+ '' | *[!a-z\|-]*) ;;
73
+ *)
74
+ case "|$usage_commands|" in
75
+ *'|discharge-pr-gates|'*) ;;
76
+ *'|validate-pr|'*)
77
+ probe_output="$(cd "$repo_root" && node scripts/lisa-work-item.mjs 2>&1)"
78
+ probe_status=$?
79
+ if [ "$probe_status" -eq 1 ] && [ "$probe_output" = "$output" ]; then
80
+ printf '%s\n' 'Lisa PR check unavailable: the host has an older Lisa command. Update Lisa in this project to enable the check.' >&2
81
+ exit 0
82
+ fi
83
+ ;;
84
+ esac
85
+ ;;
86
+ esac
87
+ fi
88
+
59
89
  printf '%s\n' "$output" >&2
60
90
  exit 2
@@ -53,6 +53,22 @@ function normalizeLabels(labels) {
53
53
  const LEADING_DECORATION =
54
54
  /^[ \t>*_+#-]*(?:\d+[.)][ \t]*)?(?:<!--[ \t]*)?[ \t]*/u;
55
55
 
56
+ /**
57
+ * Decode one stored Markdown escape layer without changing the provider record.
58
+ * Linear escapes marker brackets and punctuation in reason keys. A single pass
59
+ * keeps literal backslash pairs intact instead of recursively inventing markers.
60
+ * Callers doing bookkeeping-marker searches use this same projection; hold and
61
+ * release parsers receive original bodies and apply it after excluding code.
62
+ * @param {unknown} body - Original provider text
63
+ * @returns {string} One-pass Markdown punctuation projection
64
+ */
65
+ export function normalizeProviderMarkdown(body) {
66
+ return String(body ?? "").replace(
67
+ /\\([\u0021-\u002f\u003a-\u0040\u005b-\u0060\u007b-\u007e])/gu,
68
+ "$1"
69
+ );
70
+ }
71
+
56
72
  /**
57
73
  * The body with fenced blocks and inline code spans removed.
58
74
  *
@@ -65,9 +81,10 @@ const LEADING_DECORATION =
65
81
  * @returns {string} The body with quoted and code regions blanked out
66
82
  */
67
83
  function declarativeText(body) {
68
- return String(body ?? "")
84
+ const withoutCode = String(body ?? "")
69
85
  .replace(/```[\s\S]*?```/gu, "")
70
86
  .replace(/`[^`\n]*`/gu, "");
87
+ return normalizeProviderMarkdown(withoutCode);
71
88
  }
72
89
 
73
90
  /**
@@ -160,7 +177,8 @@ function declaresOnLine(line, marker = HUMAN_GATE_MARKER) {
160
177
  */
161
178
  export function humanGateMentions(body) {
162
179
  const raw = String(body ?? "");
163
- const total = raw.split(HUMAN_GATE_MARKER).length - 1;
180
+ const total =
181
+ normalizeProviderMarkdown(raw).split(HUMAN_GATE_MARKER).length - 1;
164
182
  const declared = declarativeText(raw)
165
183
  .split("\n")
166
184
  .filter(line => declaresOnLine(line)).length;
@@ -199,6 +199,14 @@ If every pre-work lane is empty, or nothing survives Phase 2.5, exit on the **de
199
199
 
200
200
  ### Phase 2.5 — Re-probe the blockers instead of inheriting them
201
201
 
202
+ Pass original provider bodies and comments to the shared human-gate parsers;
203
+ they decode one Markdown escape layer after excluding code examples. For
204
+ bookkeeping searches that set `alreadyNotified`, use
205
+ `normalizeProviderMarkdown(comment.body)` from the same helper before checking
206
+ the reconciled, released, normalization or evidence marker. Never pre-normalize
207
+ text passed to the parsers: decoding twice can change literal backslashes into a
208
+ declaration.
209
+
202
210
  A blocker is a **claim with a timestamp, not a fact**. It is written once and goes stale the moment its condition comes true — a dependency lands on trunk, an advisory gets patched, a package publishes. Nothing re-read one before this phase, so a discharged blocker held its Issue out of the queue indefinitely. Measured: one Issue's stated condition went true ~15 hours before anything noticed.
203
211
 
204
212
  For each pre-work candidate that is **not** in `$READY`:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Expo and React Native-specific skills, agents, rules, and MCP servers.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Harper/Fabric-specific Lisa rules for TypeScript component apps.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "NestJS-specific skills and migration write-protection hooks.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
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": "4.71.11",
3
+ "version": "4.71.13",
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": "4.71.11",
3
+ "version": "4.71.13",
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": "4.71.11",
3
+ "version": "4.71.13",
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": "4.71.11",
3
+ "version": "4.71.13",
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-phaser",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Ruby on Rails-specific skills and hooks for RuboCop and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "TypeScript-specific hooks for formatting, linting, and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "Distributable LLM Wiki kernel — ingest, query, lint, and maintain a git-native markdown knowledge base across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.71.11",
3
+ "version": "4.71.13",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -9,6 +9,7 @@
9
9
  "all/copy-overwrite/scripts/lisa-hooks/block-managed-file-edits.sh",
10
10
  "all/copy-overwrite/scripts/lisa-hooks/block-no-verify.sh",
11
11
  "all/copy-overwrite/scripts/lisa-hooks/block-shell-json-parsing.sh",
12
+ "all/copy-overwrite/scripts/lisa-hooks/discharge-work-item-gates.sh",
12
13
  "all/copy-overwrite/scripts/lisa-hooks/guard-dedupe.bash",
13
14
  "all/copy-overwrite/scripts/lisa-hooks/parity-safety-net-heredoc.py",
14
15
  "all/copy-overwrite/scripts/lisa-hooks/parity-safety-net.sh",
@@ -25,6 +26,7 @@
25
26
  "plugins/lisa/hooks/block-managed-file-edits.sh",
26
27
  "plugins/lisa/hooks/block-no-verify.sh",
27
28
  "plugins/lisa/hooks/block-shell-json-parsing.sh",
29
+ "plugins/lisa/hooks/discharge-work-item-gates.sh",
28
30
  "plugins/lisa/hooks/guard-dedupe.bash",
29
31
  "plugins/lisa/hooks/parity-safety-net-heredoc.py",
30
32
  "plugins/lisa/hooks/parity-safety-net.sh",
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env bash
2
- # This file is managed by Lisa.
3
- # Do not edit directly — changes will be overwritten on the next `lisa` run.
4
2
  # =============================================================================
5
3
  # Discharge Deferred Work-Item Gates Hook (PostToolUse - Bash)
6
4
  # =============================================================================
@@ -56,5 +54,34 @@ case "$status" in
56
54
  0 | 3) exit 0 ;;
57
55
  esac
58
56
 
57
+ # Plugin updates can precede a host's copied CLI. A generic usage refusal from
58
+ # before this subcommand existed is not a ticket violation. Recognize only a
59
+ # command-list line, then confirm that the no-argument usage probe returns the
60
+ # SAME response and status. Never infer capabilities by grepping the entrypoint:
61
+ # Lisa's own entrypoint is a thin import of the canonical implementation.
62
+ # This shared hook fans out to every agent with a PostToolUse surface; agy's
63
+ # documented lack of that surface remains covered by push/CI traceability.
64
+ if [ "$status" -eq 1 ]; then
65
+ usage_commands="$(printf '%s\n' "$output" | sed -n \
66
+ -e 's/^Usage: lisa-work-item\.mjs //p' \
67
+ -e 's/^❌ Work-item tracking blocked this operation: Usage: lisa-work-item\.mjs //p')"
68
+ case "$usage_commands" in
69
+ '' | *[!a-z\|-]*) ;;
70
+ *)
71
+ case "|$usage_commands|" in
72
+ *'|discharge-pr-gates|'*) ;;
73
+ *'|validate-pr|'*)
74
+ probe_output="$(cd "$repo_root" && node scripts/lisa-work-item.mjs 2>&1)"
75
+ probe_status=$?
76
+ if [ "$probe_status" -eq 1 ] && [ "$probe_output" = "$output" ]; then
77
+ printf '%s\n' 'Lisa PR check unavailable: the host has an older Lisa command. Update Lisa in this project to enable the check.' >&2
78
+ exit 0
79
+ fi
80
+ ;;
81
+ esac
82
+ ;;
83
+ esac
84
+ fi
85
+
59
86
  printf '%s\n' "$output" >&2
60
87
  exit 2
@@ -53,6 +53,22 @@ function normalizeLabels(labels) {
53
53
  const LEADING_DECORATION =
54
54
  /^[ \t>*_+#-]*(?:\d+[.)][ \t]*)?(?:<!--[ \t]*)?[ \t]*/u;
55
55
 
56
+ /**
57
+ * Decode one stored Markdown escape layer without changing the provider record.
58
+ * Linear escapes marker brackets and punctuation in reason keys. A single pass
59
+ * keeps literal backslash pairs intact instead of recursively inventing markers.
60
+ * Callers doing bookkeeping-marker searches use this same projection; hold and
61
+ * release parsers receive original bodies and apply it after excluding code.
62
+ * @param {unknown} body - Original provider text
63
+ * @returns {string} One-pass Markdown punctuation projection
64
+ */
65
+ export function normalizeProviderMarkdown(body) {
66
+ return String(body ?? "").replace(
67
+ /\\([\u0021-\u002f\u003a-\u0040\u005b-\u0060\u007b-\u007e])/gu,
68
+ "$1"
69
+ );
70
+ }
71
+
56
72
  /**
57
73
  * The body with fenced blocks and inline code spans removed.
58
74
  *
@@ -65,9 +81,10 @@ const LEADING_DECORATION =
65
81
  * @returns {string} The body with quoted and code regions blanked out
66
82
  */
67
83
  function declarativeText(body) {
68
- return String(body ?? "")
84
+ const withoutCode = String(body ?? "")
69
85
  .replace(/```[\s\S]*?```/gu, "")
70
86
  .replace(/`[^`\n]*`/gu, "");
87
+ return normalizeProviderMarkdown(withoutCode);
71
88
  }
72
89
 
73
90
  /**
@@ -160,7 +177,8 @@ function declaresOnLine(line, marker = HUMAN_GATE_MARKER) {
160
177
  */
161
178
  export function humanGateMentions(body) {
162
179
  const raw = String(body ?? "");
163
- const total = raw.split(HUMAN_GATE_MARKER).length - 1;
180
+ const total =
181
+ normalizeProviderMarkdown(raw).split(HUMAN_GATE_MARKER).length - 1;
164
182
  const declared = declarativeText(raw)
165
183
  .split("\n")
166
184
  .filter(line => declaresOnLine(line)).length;
@@ -199,6 +199,14 @@ If every pre-work lane is empty, or nothing survives Phase 2.5, exit on the **de
199
199
 
200
200
  ### Phase 2.5 — Re-probe the blockers instead of inheriting them
201
201
 
202
+ Pass original provider bodies and comments to the shared human-gate parsers;
203
+ they decode one Markdown escape layer after excluding code examples. For
204
+ bookkeeping searches that set `alreadyNotified`, use
205
+ `normalizeProviderMarkdown(comment.body)` from the same helper before checking
206
+ the reconciled, released, normalization or evidence marker. Never pre-normalize
207
+ text passed to the parsers: decoding twice can change literal backslashes into a
208
+ declaration.
209
+
202
210
  A blocker is a **claim with a timestamp, not a fact**. It is written once and goes stale the moment its condition comes true — a dependency lands on trunk, an advisory gets patched, a package publishes. Nothing re-read one before this phase, so a discharged blocker held its Issue out of the queue indefinitely. Measured: one Issue's stated condition went true ~15 hours before anything noticed.
203
211
 
204
212
  For each pre-work candidate that is **not** in `$READY`:
@@ -179,6 +179,14 @@ for guard in block-no-verify parity-safety-net block-shell-json-parsing \
179
179
  chmod +x "$HOST_GUARD_DIR/$guard.sh"
180
180
  fi
181
181
  done
182
+ # PostToolUse only: available to the OpenCode adapter, deliberately outside the
183
+ # pre-tool enforcement dispatcher's guard roster.
184
+ if [ -f "$SRC_DIR/base/hooks/discharge-work-item-gates.sh" ]; then
185
+ materialize "$SRC_DIR/base/hooks/discharge-work-item-gates.sh" \
186
+ "$HOST_GUARD_DIR/discharge-work-item-gates.sh"
187
+ materialize "$SRC_DIR/base/hooks/discharge-work-item-gates.sh" \
188
+ "$PLUGINS_DIR/lisa/hooks/discharge-work-item-gates.sh"
189
+ fi
182
190
  # Companions: files a guard resolves as a SIBLING OF ITSELF at run time.
183
191
  #
184
192
  # The loop above appends `.sh` to every roster entry, so it can only ever
@@ -22,6 +22,7 @@ const canonicalHookDir = path.join(repoRoot, "plugins", "src", "base", "hooks");
22
22
  // that list is what the installer copies into a host, this one is what makes
23
23
  // the files reachable from `dist/` for a packaged install.
24
24
  const canonicalSupportFiles = [
25
+ "discharge-work-item-gates.sh",
25
26
  "block-managed-file-edits.sh",
26
27
  "block-no-verify.sh",
27
28
  "parity-safety-net.sh",
@@ -105,7 +105,7 @@
105
105
  "workflows": 25,
106
106
  "steps": 798,
107
107
  "couplings": 35,
108
- "inventory": 166
108
+ "inventory": 167
109
109
  },
110
110
  "counts": {
111
111
  "package-backed": 10,