@codyswann/lisa 4.23.18 → 4.23.20

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 (83) hide show
  1. package/all/copy-overwrite/scripts/lisa-gates.mjs +29 -50
  2. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  3. package/dist/core/lisa-owned-hash-ledger.js +4 -0
  4. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  5. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  6. package/dist/core/upstream-evidence-manifest.js +7 -7
  7. package/expo/copy-overwrite/scripts/bdd/discover.mjs +1 -1
  8. package/package.json +3 -3
  9. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  10. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  11. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/providers.mjs +23 -1
  12. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +8 -7
  13. package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/SKILL.md +1 -1
  14. package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/assets/setup.sh +51 -21
  15. package/plugins/lisa/skills/lisa-secrets-access/scripts/providers.mjs +23 -1
  16. package/plugins/lisa/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +8 -7
  17. package/plugins/lisa/skills/lisa-setup-remote-env/SKILL.md +1 -1
  18. package/plugins/lisa/skills/lisa-setup-remote-env/assets/setup.sh +51 -21
  19. package/plugins/lisa-agy/plugin.json +1 -1
  20. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/providers.mjs +23 -1
  21. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +8 -7
  22. package/plugins/lisa-agy/skills/lisa-setup-remote-env/SKILL.md +1 -1
  23. package/plugins/lisa-agy/skills/lisa-setup-remote-env/assets/setup.sh +51 -21
  24. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  26. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  27. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/providers.mjs +23 -1
  31. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +8 -7
  32. package/plugins/lisa-copilot/skills/lisa-setup-remote-env/SKILL.md +1 -1
  33. package/plugins/lisa-copilot/skills/lisa-setup-remote-env/assets/setup.sh +51 -21
  34. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/providers.mjs +23 -1
  36. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +8 -7
  37. package/plugins/lisa-cursor/skills/lisa-setup-remote-env/SKILL.md +1 -1
  38. package/plugins/lisa-cursor/skills/lisa-setup-remote-env/assets/setup.sh +51 -21
  39. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  41. package/plugins/lisa-expo-agy/plugin.json +1 -1
  42. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  46. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  47. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  51. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  52. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  56. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  57. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  61. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  62. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  66. package/plugins/lisa-rails-agy/plugin.json +1 -1
  67. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  71. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  72. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  76. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  77. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  79. package/plugins/src/base/skills/lisa-secrets-access/scripts/providers.mjs +23 -1
  80. package/plugins/src/base/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +8 -7
  81. package/plugins/src/base/skills/lisa-setup-remote-env/SKILL.md +1 -1
  82. package/plugins/src/base/skills/lisa-setup-remote-env/assets/setup.sh +51 -21
  83. package/scripts/lisa-remote-env/setup.sh +51 -21
@@ -47,25 +47,50 @@ fi
47
47
  # guessed: a guessed one fails on the container's first command with an error
48
48
  # blaming the project rather than the guess.
49
49
  #
50
- # Skipped when node_modules already exists, which is what makes this cheap on a
51
- # resumed container and correct to run twice.
52
- if [ ! -d node_modules ]; then
53
- if [ -f bun.lock ] || [ -f bun.lockb ]; then install_cmd="bun install"
54
- elif [ -f pnpm-lock.yaml ]; then install_cmd="pnpm install --frozen-lockfile"
55
- elif [ -f yarn.lock ]; then
56
- # Yarn Classic and Berry spell the same intent differently, and each
57
- # rejects the other's flag. The lockfile itself says which is in use:
58
- # Yarn 1 writes a "# yarn lockfile v1" header, Berry does not.
59
- if head -5 yarn.lock | grep -q "yarn lockfile v1"; then
60
- install_cmd="yarn install --frozen-lockfile"
61
- else
62
- install_cmd="yarn install --immutable"
63
- fi
64
- elif [ -f package-lock.json ]; then install_cmd="npm ci"
65
- else install_cmd=""
50
+ # A directory's presence says nothing about which lockfile produced it. Remote
51
+ # vendors cache containers across commits, so node_modules can exist while
52
+ # carrying the previous Lisa release or an otherwise stale dependency graph.
53
+ # Persist the reconciled lockfile signature inside node_modules instead: a
54
+ # matching signature is the cheap resume path, and a changed or missing one
55
+ # earns one frozen reinstall.
56
+ lock_file=""
57
+ install_cmd=""
58
+ if [ -f bun.lock ]; then lock_file="bun.lock"; install_cmd="bun install --frozen-lockfile"
59
+ elif [ -f bun.lockb ]; then lock_file="bun.lockb"; install_cmd="bun install --frozen-lockfile"
60
+ elif [ -f pnpm-lock.yaml ]; then lock_file="pnpm-lock.yaml"; install_cmd="pnpm install --frozen-lockfile"
61
+ elif [ -f yarn.lock ]; then
62
+ lock_file="yarn.lock"
63
+ # Yarn Classic and Berry spell the same intent differently, and each rejects
64
+ # the other's flag. The lockfile itself says which is in use: Yarn 1 writes a
65
+ # "# yarn lockfile v1" header, Berry does not.
66
+ if head -5 yarn.lock | grep -q "yarn lockfile v1"; then
67
+ install_cmd="yarn install --frozen-lockfile"
68
+ else
69
+ install_cmd="yarn install --immutable"
66
70
  fi
71
+ elif [ -f package-lock.json ]; then lock_file="package-lock.json"; install_cmd="npm ci"
72
+ fi
67
73
 
68
- if [ -n "$install_cmd" ]; then
74
+ if [ -n "$install_cmd" ]; then
75
+ lock_digest=$(node -e '
76
+ const crypto = require("node:crypto");
77
+ const fs = require("node:fs");
78
+ const path = process.argv[1];
79
+ process.stdout.write(
80
+ crypto.createHash("sha256").update(path).update("\0").update(fs.readFileSync(path)).digest("hex")
81
+ );
82
+ ' "$lock_file") || {
83
+ echo "Could not fingerprint $lock_file; refusing to trust cached dependencies." >&2
84
+ exit 1
85
+ }
86
+ lock_signature="$lock_file:$lock_digest"
87
+ lock_marker="node_modules/.lisa-lockfile.sha256"
88
+ cached_lock_signature=""
89
+ if [ -f "$lock_marker" ]; then
90
+ IFS= read -r cached_lock_signature < "$lock_marker" || true
91
+ fi
92
+
93
+ if [ ! -d node_modules ] || [ "$cached_lock_signature" != "$lock_signature" ]; then
69
94
  echo "Installing dependencies with: $install_cmd"
70
95
  # CI=1 so lifecycle scripts take their automation path and leave the
71
96
  # checkout alone. A remote-env setup is automation by definition, and a
@@ -96,12 +121,17 @@ if [ ! -d node_modules ]; then
96
121
  echo " LISA_SKIP_INSTALL=1 — not running it."
97
122
  else
98
123
  CI=1 $install_cmd
124
+ # npm ci replaces node_modules, while the other managers may update it in
125
+ # place. Write only after a successful install so an interrupted or
126
+ # explicitly skipped reconciliation never blesses a stale cache.
127
+ mkdir -p node_modules
128
+ printf '%s\n' "$lock_signature" > "$lock_marker"
99
129
  fi
100
- else
101
- # Not fatal on its own. A project may carry no lockfile and still have the
102
- # skill in a checkout directory, so let the resolver below decide.
103
- echo "No lockfile found; skipping dependency install." >&2
104
130
  fi
131
+ elif [ ! -d node_modules ]; then
132
+ # Not fatal on its own. A project may carry no lockfile and still have the
133
+ # skill in a checkout directory, so let the resolver below decide.
134
+ echo "No lockfile found; skipping dependency install." >&2
105
135
  fi
106
136
 
107
137
  # Where the skill lives depends on how this project's harness receives it, and
@@ -47,25 +47,50 @@ fi
47
47
  # guessed: a guessed one fails on the container's first command with an error
48
48
  # blaming the project rather than the guess.
49
49
  #
50
- # Skipped when node_modules already exists, which is what makes this cheap on a
51
- # resumed container and correct to run twice.
52
- if [ ! -d node_modules ]; then
53
- if [ -f bun.lock ] || [ -f bun.lockb ]; then install_cmd="bun install"
54
- elif [ -f pnpm-lock.yaml ]; then install_cmd="pnpm install --frozen-lockfile"
55
- elif [ -f yarn.lock ]; then
56
- # Yarn Classic and Berry spell the same intent differently, and each
57
- # rejects the other's flag. The lockfile itself says which is in use:
58
- # Yarn 1 writes a "# yarn lockfile v1" header, Berry does not.
59
- if head -5 yarn.lock | grep -q "yarn lockfile v1"; then
60
- install_cmd="yarn install --frozen-lockfile"
61
- else
62
- install_cmd="yarn install --immutable"
63
- fi
64
- elif [ -f package-lock.json ]; then install_cmd="npm ci"
65
- else install_cmd=""
50
+ # A directory's presence says nothing about which lockfile produced it. Remote
51
+ # vendors cache containers across commits, so node_modules can exist while
52
+ # carrying the previous Lisa release or an otherwise stale dependency graph.
53
+ # Persist the reconciled lockfile signature inside node_modules instead: a
54
+ # matching signature is the cheap resume path, and a changed or missing one
55
+ # earns one frozen reinstall.
56
+ lock_file=""
57
+ install_cmd=""
58
+ if [ -f bun.lock ]; then lock_file="bun.lock"; install_cmd="bun install --frozen-lockfile"
59
+ elif [ -f bun.lockb ]; then lock_file="bun.lockb"; install_cmd="bun install --frozen-lockfile"
60
+ elif [ -f pnpm-lock.yaml ]; then lock_file="pnpm-lock.yaml"; install_cmd="pnpm install --frozen-lockfile"
61
+ elif [ -f yarn.lock ]; then
62
+ lock_file="yarn.lock"
63
+ # Yarn Classic and Berry spell the same intent differently, and each rejects
64
+ # the other's flag. The lockfile itself says which is in use: Yarn 1 writes a
65
+ # "# yarn lockfile v1" header, Berry does not.
66
+ if head -5 yarn.lock | grep -q "yarn lockfile v1"; then
67
+ install_cmd="yarn install --frozen-lockfile"
68
+ else
69
+ install_cmd="yarn install --immutable"
66
70
  fi
71
+ elif [ -f package-lock.json ]; then lock_file="package-lock.json"; install_cmd="npm ci"
72
+ fi
67
73
 
68
- if [ -n "$install_cmd" ]; then
74
+ if [ -n "$install_cmd" ]; then
75
+ lock_digest=$(node -e '
76
+ const crypto = require("node:crypto");
77
+ const fs = require("node:fs");
78
+ const path = process.argv[1];
79
+ process.stdout.write(
80
+ crypto.createHash("sha256").update(path).update("\0").update(fs.readFileSync(path)).digest("hex")
81
+ );
82
+ ' "$lock_file") || {
83
+ echo "Could not fingerprint $lock_file; refusing to trust cached dependencies." >&2
84
+ exit 1
85
+ }
86
+ lock_signature="$lock_file:$lock_digest"
87
+ lock_marker="node_modules/.lisa-lockfile.sha256"
88
+ cached_lock_signature=""
89
+ if [ -f "$lock_marker" ]; then
90
+ IFS= read -r cached_lock_signature < "$lock_marker" || true
91
+ fi
92
+
93
+ if [ ! -d node_modules ] || [ "$cached_lock_signature" != "$lock_signature" ]; then
69
94
  echo "Installing dependencies with: $install_cmd"
70
95
  # CI=1 so lifecycle scripts take their automation path and leave the
71
96
  # checkout alone. A remote-env setup is automation by definition, and a
@@ -96,12 +121,17 @@ if [ ! -d node_modules ]; then
96
121
  echo " LISA_SKIP_INSTALL=1 — not running it."
97
122
  else
98
123
  CI=1 $install_cmd
124
+ # npm ci replaces node_modules, while the other managers may update it in
125
+ # place. Write only after a successful install so an interrupted or
126
+ # explicitly skipped reconciliation never blesses a stale cache.
127
+ mkdir -p node_modules
128
+ printf '%s\n' "$lock_signature" > "$lock_marker"
99
129
  fi
100
- else
101
- # Not fatal on its own. A project may carry no lockfile and still have the
102
- # skill in a checkout directory, so let the resolver below decide.
103
- echo "No lockfile found; skipping dependency install." >&2
104
130
  fi
131
+ elif [ ! -d node_modules ]; then
132
+ # Not fatal on its own. A project may carry no lockfile and still have the
133
+ # skill in a checkout directory, so let the resolver below decide.
134
+ echo "No lockfile found; skipping dependency install." >&2
105
135
  fi
106
136
 
107
137
  # Where the skill lives depends on how this project's harness receives it, and