claude-code-kanban 7.31.0 → 7.33.0
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/cli.js +12 -2
- package/lib/parsers.js +0 -43
- package/lib/terminal.js +2 -1
- package/package.json +1 -1
- package/plugin/plugins/claude-code-kanban/.claude-plugin/plugin.json +1 -1
- package/plugin/plugins/claude-code-kanban/skills/kanban/SKILL.md +4 -0
- package/public/app.js +304 -127
- package/public/index.html +18 -3
- package/public/style.css +97 -23
- package/public/terminal-frame.js +47 -2
- package/public/vendor/claude-hub-sdk.js +54 -10
- package/server.js +1 -119
- package/lib/scratch-servers.js +0 -119
package/cli.js
CHANGED
|
@@ -68,7 +68,7 @@ const COMMANDS = {
|
|
|
68
68
|
summary: 'Add a pane to a session; it opens as a tab next to Board, in the background',
|
|
69
69
|
usage: 'claude-code-kanban pane add <url|file> | --shell [<folder>] [--run <cmd>] [--title <text>] [--session <id>] [--json]',
|
|
70
70
|
flags: {
|
|
71
|
-
'<url|file>': 'An http(s) URL,
|
|
71
|
+
'<url|file>': 'An http(s) URL, a local HTML, markdown, text or image file, or a scratchpad (its folder or scratchpad.json; needs the scratch CLI). Relative paths resolve against the current dir',
|
|
72
72
|
'--shell [<folder>]': 'A plain shell (the terminal shell, no claude) in <folder> (default: the current dir). Needs the board\'s terminal. Each add opens a new shell; closing the pane ends it',
|
|
73
73
|
'--run <cmd>': 'With --shell: a one-line command the shell runs when it starts, and again on each restart',
|
|
74
74
|
'--title <text>': 'Tab title (default: the host or file name)',
|
|
@@ -806,6 +806,13 @@ const cliTarget = (arg) => linkUrl(arg) || cliPath(arg);
|
|
|
806
806
|
|
|
807
807
|
const PANES_WHY = 'panes are stored per session.';
|
|
808
808
|
|
|
809
|
+
function scratchpadTarget(arg) {
|
|
810
|
+
if (linkUrl(arg)) return null;
|
|
811
|
+
const abs = cliPath(arg);
|
|
812
|
+
if (path.basename(abs).toLowerCase() === 'scratchpad.json') return abs;
|
|
813
|
+
return fs.existsSync(path.join(abs, 'scratchpad.json')) ? abs : null;
|
|
814
|
+
}
|
|
815
|
+
|
|
809
816
|
const panesPath = (sessionId, paneId) =>
|
|
810
817
|
`/api/panes/${encodeURIComponent(sessionId)}${paneId ? `/${encodeURIComponent(paneId)}` : ''}`;
|
|
811
818
|
|
|
@@ -822,9 +829,12 @@ async function runPaneAddCli(args, entry) {
|
|
|
822
829
|
if (!resolved) return 1;
|
|
823
830
|
try {
|
|
824
831
|
const title = getArgValue(args, 'title') || '';
|
|
832
|
+
const pad = shell ? null : scratchpadTarget(target);
|
|
825
833
|
const body = shell
|
|
826
834
|
? { kind: 'shell', target: canonicalDir(target || '.'), title, ...(run && { run }) }
|
|
827
|
-
:
|
|
835
|
+
: pad
|
|
836
|
+
? { kind: 'scratchpad', target: pad, title }
|
|
837
|
+
: { target: cliTarget(target), title };
|
|
828
838
|
const out = await cliPostJson(panesPath(resolved.id), body, 'Pane add');
|
|
829
839
|
if (!out) return 1;
|
|
830
840
|
const { pane } = out;
|
package/lib/parsers.js
CHANGED
|
@@ -1658,48 +1658,6 @@ async function readArtifactLinks(jsonlPath) {
|
|
|
1658
1658
|
return [...byUrl.values()].sort((x, y) => (x.firstSeen < y.firstSeen ? -1 : x.firstSeen > y.firstSeen ? 1 : 0));
|
|
1659
1659
|
}
|
|
1660
1660
|
|
|
1661
|
-
const SCRATCH_NEW_RE = /\bscratch new\b/;
|
|
1662
|
-
// `scratch new` reports where it put the pad; the two spaces are the CLI's own column
|
|
1663
|
-
// padding, which is what makes the prefilter below narrow enough to be worth having.
|
|
1664
|
-
const SCRATCH_MANIFEST_RE = /^\s*manifest\s*:\s*(.+?)\s*$/m;
|
|
1665
|
-
// The name must sit immediately after `new`, and the bare-word branch must refuse a
|
|
1666
|
-
// leading `-`, so that a flag or a flag's value cannot be read as the name.
|
|
1667
|
-
const SCRATCH_NAME_RE = /\bscratch\s+new\s+(?:"([^"]+)"|'([^']+)'|(?!-)(\S+))/;
|
|
1668
|
-
|
|
1669
|
-
// The `scratch new` calls in a transcript, `{ ts, path, name }` per call. `path` is null
|
|
1670
|
-
// whenever the command piped the CLI's output away — the common case, not an edge one:
|
|
1671
|
-
// the manifest is the 4th of ~13 printed lines, so any `| tail -N` cuts it off. `name`
|
|
1672
|
-
// stands in because it is what the manifest stores as its own `name`; the path is not
|
|
1673
|
-
// recovered from the command, which would mean tracking the `cd` and a relative `--dir`.
|
|
1674
|
-
async function readScratchpadCreations(jsonlPath) {
|
|
1675
|
-
const calls = new Map();
|
|
1676
|
-
try {
|
|
1677
|
-
for await (const line of readLines(jsonlPath)) {
|
|
1678
|
-
// Substring reject before JSON.parse: transcripts reach tens of megabytes and
|
|
1679
|
-
// only a handful of lines can ever match.
|
|
1680
|
-
const isCall = line.includes('scratch new');
|
|
1681
|
-
if (!isCall && !line.includes('manifest :')) continue;
|
|
1682
|
-
let obj;
|
|
1683
|
-
try { obj = JSON.parse(line); } catch (_) { continue; }
|
|
1684
|
-
const blocks = obj?.message?.content;
|
|
1685
|
-
if (!Array.isArray(blocks)) continue;
|
|
1686
|
-
const ts = Date.parse(obj.timestamp);
|
|
1687
|
-
for (const b of blocks) {
|
|
1688
|
-
if (b?.type === 'tool_use' && b.name === 'Bash' && SCRATCH_NEW_RE.test(b.input?.command || '')) {
|
|
1689
|
-
if (b.id && Number.isFinite(ts)) {
|
|
1690
|
-
const named = SCRATCH_NAME_RE.exec(b.input.command);
|
|
1691
|
-
calls.set(b.id, { ts, path: null, name: named?.slice(1).find(Boolean) ?? null });
|
|
1692
|
-
}
|
|
1693
|
-
} else if (b?.type === 'tool_result' && calls.has(b.tool_use_id)) {
|
|
1694
|
-
const m = SCRATCH_MANIFEST_RE.exec(toolResultText(b.content));
|
|
1695
|
-
if (m) calls.get(b.tool_use_id).path = m[1];
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
|
-
}
|
|
1699
|
-
} catch (_) {}
|
|
1700
|
-
return [...calls.values()];
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
1661
|
async function readCompactSummaries(jsonlPath) {
|
|
1704
1662
|
const results = [];
|
|
1705
1663
|
// Inline format: newer Claude Code stores the summary directly in the parent
|
|
@@ -2137,7 +2095,6 @@ module.exports = {
|
|
|
2137
2095
|
readCompactSummaries,
|
|
2138
2096
|
fillCompactSummaries,
|
|
2139
2097
|
readArtifactLinks,
|
|
2140
|
-
readScratchpadCreations,
|
|
2141
2098
|
findTerminatedTeammates,
|
|
2142
2099
|
extractPromptFromTranscript,
|
|
2143
2100
|
extractModelFromTranscript,
|
package/lib/terminal.js
CHANGED
|
@@ -782,7 +782,8 @@ function createTerminalService(o) {
|
|
|
782
782
|
ws.unacked = 0;
|
|
783
783
|
s.sockets.add(ws);
|
|
784
784
|
syncBoost(s);
|
|
785
|
-
|
|
785
|
+
// ConPTY drops DEC 2026, and a clear inside a 2026 block hits xterm #5801 unless noFlicker is on.
|
|
786
|
+
send(ws, { t: 'ready', attached, holdRedraw: process.platform === 'win32' && config.noFlicker });
|
|
786
787
|
const snapshot = s.serializer.serialize();
|
|
787
788
|
if (snapshot) sendOutput(ws, Buffer.from(snapshot, 'utf8'));
|
|
788
789
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-kanban",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.1",
|
|
4
4
|
"description": "claude-code-kanban dashboard integration: agent activity tracking, context and cost tracking, board moves and reviews delivered to the session, and skills to drive the board from a session"
|
|
5
5
|
}
|
|
@@ -39,6 +39,10 @@ The user works in other windows while you run, so pick the quiet command. `doc l
|
|
|
39
39
|
|
|
40
40
|
To show the user a page, a prototype or a collage of screenshots, write it as HTML and link or preview that file. The preview renders HTML as authored in a sandboxed iframe and inlines its local stylesheets, scripts and images, so the file alone is enough.
|
|
41
41
|
|
|
42
|
+
## Scratchpads
|
|
43
|
+
|
|
44
|
+
A scratchpad (a folder with `scratchpad.json`) is one document: `doc link` or `pane add` its `scratchpad.json`, never its files one by one.
|
|
45
|
+
|
|
42
46
|
## Another session
|
|
43
47
|
|
|
44
48
|
Read its transcript. `session view <id>` and `session search <text> --json` print the path.
|