claude-run 0.2.0 → 0.2.1
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/README.md +1 -1
- package/dist/index.js +9 -2
- package/dist/web/assets/index-BlBAFDQv.js +289 -0
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/dist/web/assets/index-BvMYS-GY.js +0 -289
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ Claude Code stores conversation history in `~/.claude/`. This tool reads that da
|
|
|
66
66
|
- **Project filter** - Focus on a specific project
|
|
67
67
|
- **Conversation view** - Full message history with tool calls
|
|
68
68
|
- **Session header** - Shows conversation title, project name, and timestamp
|
|
69
|
-
- **Resume command** -
|
|
69
|
+
- **Resume command** - Copies the command to resume the conversation
|
|
70
70
|
- **Real-time updates** - SSE streaming for live conversations
|
|
71
71
|
|
|
72
72
|
## Requirements
|
package/dist/index.js
CHANGED
|
@@ -350,10 +350,17 @@ function offSessionChange(callback) {
|
|
|
350
350
|
// api/server.ts
|
|
351
351
|
import { join as join3, dirname } from "path";
|
|
352
352
|
import { fileURLToPath } from "url";
|
|
353
|
-
import { readFileSync } from "fs";
|
|
353
|
+
import { readFileSync, existsSync } from "fs";
|
|
354
354
|
import open2 from "open";
|
|
355
355
|
var __filename = fileURLToPath(import.meta.url);
|
|
356
356
|
var __dirname = dirname(__filename);
|
|
357
|
+
function getWebDistPath() {
|
|
358
|
+
const prodPath = join3(__dirname, "web");
|
|
359
|
+
if (existsSync(prodPath)) {
|
|
360
|
+
return prodPath;
|
|
361
|
+
}
|
|
362
|
+
return join3(__dirname, "..", "dist", "web");
|
|
363
|
+
}
|
|
357
364
|
function createServer(options) {
|
|
358
365
|
const { port, claudeDir: claudeDir3, dev = false, open: shouldOpen = true } = options;
|
|
359
366
|
initStorage(claudeDir3);
|
|
@@ -489,7 +496,7 @@ function createServer(options) {
|
|
|
489
496
|
}
|
|
490
497
|
});
|
|
491
498
|
});
|
|
492
|
-
const webDistPath =
|
|
499
|
+
const webDistPath = getWebDistPath();
|
|
493
500
|
app.use("/*", serveStatic({ root: webDistPath }));
|
|
494
501
|
app.get("/*", async (c) => {
|
|
495
502
|
const indexPath = join3(webDistPath, "index.html");
|