@codyswann/lisa 4.107.7 → 4.107.9
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/lisa-test-run-ipc.d.ts +7 -0
- package/dist/cli/lisa-test-run-ipc.d.ts.map +1 -1
- package/dist/cli/lisa-test-run-ipc.js +32 -6
- package/dist/cli/lisa-test-run-ipc.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +6 -1
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- 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/.codex-plugin/skills/lisa-session-manager/scripts/first-prompt.mjs +52 -6
- package/plugins/lisa/skills/lisa-session-manager/scripts/first-prompt.mjs +52 -6
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/first-prompt.mjs +52 -6
- 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-copilot/skills/lisa-session-manager/scripts/first-prompt.mjs +52 -6
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/first-prompt.mjs +52 -6
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/first-prompt.mjs +52 -6
- 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/plugins/src/base/skills/lisa-session-manager/scripts/first-prompt.mjs +52 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.107.
|
|
3
|
+
"version": "4.107.9",
|
|
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.107.
|
|
3
|
+
"version": "4.107.9",
|
|
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.107.
|
|
3
|
+
"version": "4.107.9",
|
|
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.107.
|
|
3
|
+
"version": "4.107.9",
|
|
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.107.
|
|
3
|
+
"version": "4.107.9",
|
|
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.107.
|
|
3
|
+
"version": "4.107.9",
|
|
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.107.
|
|
3
|
+
"version": "4.107.9",
|
|
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"
|
|
@@ -19,9 +19,12 @@
|
|
|
19
19
|
* setup gaps, not as a worker that is still working. The transcript lives at
|
|
20
20
|
* `<config dir>/projects/<cwd, every non-alphanumeric character as "-">/
|
|
21
21
|
* <full session id>.jsonl`; Claude Code files a symlinked cwd under its real
|
|
22
|
-
* path.
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* path. When that encoded name is longer than 200 characters, Claude Code
|
|
23
|
+
* keeps its first 200 and appends a hash (lisa#4821), so a deep checkout is
|
|
24
|
+
* found by that prefix instead (see {@link projectDirsFor}). Only `system`
|
|
25
|
+
* entries count as the failure, so text a user or the model typed can never
|
|
26
|
+
* trip it, and any assistant turn proves the worker is alive. A missing or
|
|
27
|
+
* ambiguous transcript gives no verdict — never a failure.
|
|
25
28
|
* @module session-manager/first-prompt
|
|
26
29
|
*/
|
|
27
30
|
import { readFileSync, readdirSync, realpathSync } from "node:fs";
|
|
@@ -127,6 +130,48 @@ export function encodeProjectDir(cwd) {
|
|
|
127
130
|
return cwd.replace(/[^A-Za-z0-9]/g, "-");
|
|
128
131
|
}
|
|
129
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Longest `projects/` directory name Claude Code keeps whole.
|
|
135
|
+
*
|
|
136
|
+
* Rule read from the Claude Code 2.1.319 binary and confirmed with a real
|
|
137
|
+
* `claude -p` run in a 241-character cwd (lisa#4821): with `s` the encoded
|
|
138
|
+
* cwd, the name is `s` when `s.length <= 200`, else
|
|
139
|
+
* `${s.slice(0, 200)}-${Math.abs(h).toString(36)}`, where `h` is the 32-bit
|
|
140
|
+
* Java string hash of the raw cwd.
|
|
141
|
+
*/
|
|
142
|
+
const PROJECT_DIR_LIMIT = 200;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The `projects/` directories that may hold a cwd's transcripts: the exact
|
|
146
|
+
* encoded name for a short cwd; for a long one, the exact untruncated name
|
|
147
|
+
* (in case a Claude Code version without the truncation rule wrote it) plus
|
|
148
|
+
* every directory whose name starts with the truncated prefix and a dash.
|
|
149
|
+
* The dash keeps out a parent whose own encoded name is exactly that
|
|
150
|
+
* 200-character prefix. The prefix is matched rather
|
|
151
|
+
* than the hash recomputed, so the hash is never relied on; the caller's
|
|
152
|
+
* exactly-one-match rule turns two directories that both (or neither) hold
|
|
153
|
+
* the session into no verdict.
|
|
154
|
+
* @param {string} projectsDir - `<config dir>/projects`
|
|
155
|
+
* @param {string} cwd - Session cwd
|
|
156
|
+
* @returns {string[]} Directory paths
|
|
157
|
+
*/
|
|
158
|
+
function projectDirsFor(projectsDir, cwd) {
|
|
159
|
+
const encoded = encodeProjectDir(cwd);
|
|
160
|
+
if (encoded.length <= PROJECT_DIR_LIMIT) {
|
|
161
|
+
return [path.join(projectsDir, encoded)];
|
|
162
|
+
}
|
|
163
|
+
const exact = path.join(projectsDir, encoded);
|
|
164
|
+
const prefix = `${encoded.slice(0, PROJECT_DIR_LIMIT)}-`;
|
|
165
|
+
try {
|
|
166
|
+
const truncated = readdirSync(projectsDir)
|
|
167
|
+
.filter(name => name.startsWith(prefix))
|
|
168
|
+
.map(name => path.join(projectsDir, name));
|
|
169
|
+
return [...new Set([exact, ...truncated])];
|
|
170
|
+
} catch {
|
|
171
|
+
return [exact];
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
130
175
|
/**
|
|
131
176
|
* The cwd and, when different, its real path.
|
|
132
177
|
* @param {string} cwd - Session cwd
|
|
@@ -172,9 +217,10 @@ function matchesIn(dir, id) {
|
|
|
172
217
|
export function findTranscript({ configDir, cwd, sessionId }) {
|
|
173
218
|
const id = String(sessionId ?? "").toLowerCase();
|
|
174
219
|
if (!/^[0-9a-f]{8}(?:-[0-9a-f-]{27})?$/.test(id)) return null;
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
220
|
+
const projectsDir = path.join(configDir, "projects");
|
|
221
|
+
const found = cwdCandidates(cwd)
|
|
222
|
+
.flatMap(candidate => projectDirsFor(projectsDir, candidate))
|
|
223
|
+
.flatMap(dir => matchesIn(dir, id));
|
|
178
224
|
const unique = [...new Set(found)];
|
|
179
225
|
return unique.length === 1 ? unique[0] : null;
|
|
180
226
|
}
|