ccakashic 0.1.0 → 0.1.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 +6 -6
- package/bin/{cctape.js → ccakashic.js} +2 -2
- package/lib/html-generator.js +1 -1
- package/lib/pages.js +5 -5
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ccakashic
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An Akashic Record of your Claude Code sessions — browse Claude Code session logs (`~/.claude/projects/`) as beautiful HTML in your browser.
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
### npx
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npx
|
|
10
|
+
npx ccakashic
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
### Run from source
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
git clone git@github.com:ashimon83/
|
|
17
|
-
cd
|
|
16
|
+
git clone git@github.com:ashimon83/ccakashic.git
|
|
17
|
+
cd ccakashic
|
|
18
18
|
npm start
|
|
19
19
|
```
|
|
20
20
|
|
|
@@ -39,7 +39,7 @@ A local HTTP server starts and your browser opens automatically.
|
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
# Custom port (default: 3333)
|
|
42
|
-
|
|
42
|
+
CCAKASHIC_PORT=3000 npx ccakashic
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
## Requirements
|
|
@@ -17,7 +17,7 @@ function openInBrowser(url) {
|
|
|
17
17
|
exec(`${cmd} "${url}"`);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
const PORT = parseInt(process.env.
|
|
20
|
+
const PORT = parseInt(process.env.CCAKASHIC_PORT) || 3333;
|
|
21
21
|
|
|
22
22
|
const server = http.createServer(async (req, res) => {
|
|
23
23
|
try {
|
|
@@ -88,7 +88,7 @@ const server = http.createServer(async (req, res) => {
|
|
|
88
88
|
server.listen(PORT, '127.0.0.1', () => {
|
|
89
89
|
const addr = server.address();
|
|
90
90
|
const url = `http://127.0.0.1:${addr.port}`;
|
|
91
|
-
console.log(`
|
|
91
|
+
console.log(`ccakashic running at ${url}`);
|
|
92
92
|
console.log('Press Ctrl+C to stop');
|
|
93
93
|
openInBrowser(url);
|
|
94
94
|
});
|
package/lib/html-generator.js
CHANGED
|
@@ -293,7 +293,7 @@ ${detailLayoutCSS()}
|
|
|
293
293
|
</style>
|
|
294
294
|
</head>
|
|
295
295
|
<body>
|
|
296
|
-
<a href="https://github.com/ashimon83/
|
|
296
|
+
<a href="https://github.com/ashimon83/ccakashic" class="github-corner" aria-label="View source on GitHub" target="_blank" rel="noopener"><svg width="70" height="70" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>
|
|
297
297
|
<div class="detail-sticky-bar" id="detailStickyBar"></div>
|
|
298
298
|
<header class="session-header">
|
|
299
299
|
${backLink}
|
package/lib/pages.js
CHANGED
|
@@ -22,7 +22,7 @@ function formatTokens(n) {
|
|
|
22
22
|
return String(n);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const GITHUB_URL = 'https://github.com/ashimon83/
|
|
25
|
+
const GITHUB_URL = 'https://github.com/ashimon83/ccakashic';
|
|
26
26
|
|
|
27
27
|
function githubCorner() {
|
|
28
28
|
return `<a href="${GITHUB_URL}" class="github-corner" aria-label="View source on GitHub" target="_blank" rel="noopener"><svg width="70" height="70" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>`;
|
|
@@ -251,9 +251,9 @@ function generateIndex(projects) {
|
|
|
251
251
|
</a>`;
|
|
252
252
|
}).join('\n');
|
|
253
253
|
|
|
254
|
-
return pageShell('
|
|
254
|
+
return pageShell('ccakashic', `
|
|
255
255
|
<div class="page-header">
|
|
256
|
-
<h1>
|
|
256
|
+
<h1>ccakashic</h1>
|
|
257
257
|
<div class="subtitle">Claude Code Session Logs</div>
|
|
258
258
|
</div>
|
|
259
259
|
<div class="list-container">
|
|
@@ -327,10 +327,10 @@ function generateSessionList(project, sessions) {
|
|
|
327
327
|
</div>`;
|
|
328
328
|
}).join('\n');
|
|
329
329
|
|
|
330
|
-
return pageShell(`${project.name} —
|
|
330
|
+
return pageShell(`${project.name} — ccakashic`, `
|
|
331
331
|
<div class="sticky-date-bar" id="stickyDateBar"></div>
|
|
332
332
|
<div class="page-header">
|
|
333
|
-
<div class="breadcrumb"><a href="/">
|
|
333
|
+
<div class="breadcrumb"><a href="/">ccakashic</a> / ${escapeHtml(project.name)}</div>
|
|
334
334
|
<h1>${escapeHtml(project.name)}</h1>
|
|
335
335
|
<div class="subtitle">${sessions.length} sessions</div>
|
|
336
336
|
</div>
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccakashic",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Browse Claude Code session logs (~/.claude/projects/) as beautiful HTML in your browser",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Browse Claude Code session logs (~/.claude/projects/) as beautiful HTML in your browser — an Akashic Record of your Claude Code sessions",
|
|
5
5
|
"bin": {
|
|
6
|
-
"
|
|
6
|
+
"ccakashic": "./bin/ccakashic.js"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"bin",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"node": ">=18"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
|
-
"start": "node bin/
|
|
18
|
+
"start": "node bin/ccakashic.js"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {},
|
|
21
21
|
"keywords": [
|
|
@@ -26,16 +26,17 @@
|
|
|
26
26
|
"viewer",
|
|
27
27
|
"log",
|
|
28
28
|
"jsonl",
|
|
29
|
-
"html"
|
|
29
|
+
"html",
|
|
30
|
+
"akashic"
|
|
30
31
|
],
|
|
31
32
|
"author": "ashimon83",
|
|
32
33
|
"license": "MIT",
|
|
33
34
|
"repository": {
|
|
34
35
|
"type": "git",
|
|
35
|
-
"url": "git+https://github.com/ashimon83/
|
|
36
|
+
"url": "git+https://github.com/ashimon83/ccakashic.git"
|
|
36
37
|
},
|
|
37
|
-
"homepage": "https://github.com/ashimon83/
|
|
38
|
+
"homepage": "https://github.com/ashimon83/ccakashic#readme",
|
|
38
39
|
"bugs": {
|
|
39
|
-
"url": "https://github.com/ashimon83/
|
|
40
|
+
"url": "https://github.com/ashimon83/ccakashic/issues"
|
|
40
41
|
}
|
|
41
42
|
}
|