@kabmo-labs/kabmo 0.42.1 → 0.42.2

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 (110) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +415 -415
  3. package/dist/client/static/js/{CsvGrid-8gdp5b49.js → CsvGrid-g6rek8y9.js} +1 -1
  4. package/dist/client/static/js/{DocxView-j9sphgra.js → DocxView-41t9ryws.js} +1 -1
  5. package/dist/client/static/js/{DrawioView-xsgjc7d8.js → DrawioView-mfxhfz1h.js} +1 -1
  6. package/dist/client/static/js/{ImageView-ve9hc519.js → ImageView-bxqw3t4k.js} +1 -1
  7. package/dist/client/static/js/{LayoutWrapper-5mqffvkc.js → LayoutWrapper-zt14rv9m.js} +1 -1
  8. package/dist/client/static/js/{Modal-50whypff.js → Modal-cm35g20x.js} +1 -1
  9. package/dist/client/static/js/{PdfView-afd5cg54.js → PdfView-bek8k888.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-7719nvy0.js → SessionsView-gn53zyn7.js} +1 -1
  11. package/dist/client/static/js/{SheetView-gfzgxb4r.js → SheetView-vezssf6b.js} +1 -1
  12. package/dist/client/static/js/{SvgPreview-225pkb99.js → SvgPreview-f1qaw73k.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-z70sk69m.js → abnfDiagram-O67JEVCF-4qn94h52.js} +1 -1
  14. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-pf1gpkje.js → architectureDiagram-NJMV4G6O-tbewzdya.js} +1 -1
  15. package/dist/client/static/js/{blockDiagram-BEXU5L5S-sr25kbn6.js → blockDiagram-BEXU5L5S-njgnwckz.js} +1 -1
  16. package/dist/client/static/js/{c4Diagram-YGBWAQC7-znstpg86.js → c4Diagram-YGBWAQC7-f58pcvbk.js} +1 -1
  17. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-7n0pdcd8.js → classDiagram-v2-NBCMYWYE-52g73vyw.js} +1 -1
  18. package/dist/client/static/js/{cose-bilkent-JH36ORCC-zn3qw4c4.js → cose-bilkent-JH36ORCC-ptdnshzh.js} +1 -1
  19. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-3z41vtzs.js → cynefinDiagram-VND7K2PF-qabfdkzr.js} +1 -1
  20. package/dist/client/static/js/{dagre-6A5THRUB-5j3zn883.js → dagre-6A5THRUB-kyf5jetf.js} +1 -1
  21. package/dist/client/static/js/{diagram-22UHCM2B-ryw1w2kh.js → diagram-22UHCM2B-bxrsjtv9.js} +1 -1
  22. package/dist/client/static/js/{diagram-3UASUU5V-p91q4gkh.js → diagram-3UASUU5V-0f41s00j.js} +1 -1
  23. package/dist/client/static/js/{diagram-ATOU4E4O-22dn73g4.js → diagram-ATOU4E4O-0z1zx9h1.js} +1 -1
  24. package/dist/client/static/js/{diagram-CDSNMT55-589p9n53.js → diagram-CDSNMT55-znrmr6bk.js} +1 -1
  25. package/dist/client/static/js/{diagram-MLGK6HIB-ezw06wbx.js → diagram-MLGK6HIB-jfe2jhk0.js} +1 -1
  26. package/dist/client/static/js/{diagram-MPIPVDR6-cfwrsvk1.js → diagram-MPIPVDR6-2kaawmwa.js} +1 -1
  27. package/dist/client/static/js/{dockerfile-r4k7q34y.js → dockerfile-12exatm9.js} +1 -1
  28. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-3rv2wvbf.js → ebnfDiagram-ZINNZB2B-s5n37rfp.js} +1 -1
  29. package/dist/client/static/js/{elk-276RUBZZ-ma40kneq.js → elk-276RUBZZ-433rd9fp.js} +1 -1
  30. package/dist/client/static/js/{erDiagram-OPXOYQCR-xwstsfqa.js → erDiagram-OPXOYQCR-key6ah0b.js} +1 -1
  31. package/dist/client/static/js/flowDiagram-KWPJA3E3-nznq0n36.js +1 -0
  32. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-qxyx9tr9.js → ganttDiagram-FUAMR5RP-4efkhmca.js} +1 -1
  33. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-v6sg7bkh.js → gitGraphDiagram-X574FWY7-ac376y2k.js} +1 -1
  34. package/dist/client/static/js/{index-mq6s2faf.js → index-02543wk3.js} +1 -1
  35. package/dist/client/static/js/{index-df4yxfzd.js → index-0e9nkc0g.js} +1 -1
  36. package/dist/client/static/js/{index-cqaz1281.js → index-0gbj4270.js} +1 -1
  37. package/dist/client/static/js/{index-b3d2k7ec.js → index-0pabfaac.js} +1 -1
  38. package/dist/client/static/js/{index-x7a5jpvq.js → index-1t5ybx9v.js} +1 -1
  39. package/dist/client/static/js/{index-9ss64g4g.js → index-1y3rzw6b.js} +1 -1
  40. package/dist/client/static/js/{index-5599dngt.js → index-38xv8h4t.js} +1 -1
  41. package/dist/client/static/js/{index-0nca2nhp.js → index-50mdqev0.js} +1 -1
  42. package/dist/client/static/js/{index-9hzfvjrb.js → index-5jnvz9hw.js} +1 -1
  43. package/dist/client/static/js/{index-8fvmyv7t.js → index-77t0nvt1.js} +1 -1
  44. package/dist/client/static/js/{index-mphhvgm9.js → index-7a2efrbj.js} +1 -1
  45. package/dist/client/static/js/{index-2w9j2nj4.js → index-82vk27q1.js} +1 -1
  46. package/dist/client/static/js/{index-0p43qr4k.js → index-8k7vjp8b.js} +1 -1
  47. package/dist/client/static/js/{index-4y0ayjfx.js → index-8kbp24xg.js} +1 -1
  48. package/dist/client/static/js/{index-xsts4pqm.js → index-cz50ha6x.js} +2 -2
  49. package/dist/client/static/js/{index-v5dbrq83.js → index-dtj73vs1.js} +1 -1
  50. package/dist/client/static/js/{index-x7m6dmt4.js → index-dzmar8jr.js} +1 -1
  51. package/dist/client/static/js/{index-313ctswm.js → index-f33c4paw.js} +1 -1
  52. package/dist/client/static/js/{index-001vebsp.js → index-fb6pw9xb.js} +1 -1
  53. package/dist/client/static/js/{index-qh753ynv.js → index-gp57dx2v.js} +1 -1
  54. package/dist/client/static/js/{index-rt6ac0kk.js → index-pzvr1699.js} +181 -181
  55. package/dist/client/static/js/{index-6dxs0tvg.js → index-r9db1gsf.js} +1 -1
  56. package/dist/client/static/js/{index-sr7sdm2t.js → index-raca8tsh.js} +1 -1
  57. package/dist/client/static/js/{index-y1p3bdsw.js → index-rf29f3fq.js} +1 -1
  58. package/dist/client/static/js/{index-kh6vp5w5.js → index-s4gv0rpk.js} +1 -1
  59. package/dist/client/static/js/{index-6eq445nn.js → index-v3f7we4n.js} +1 -1
  60. package/dist/client/static/js/{index-b37ewyvk.js → index-yjmm73jm.js} +1 -1
  61. package/dist/client/static/js/{index-w5q9ymf4.js → index-ykfd2fyj.js} +1 -1
  62. package/dist/client/static/js/{index-869bpqcs.js → index-yzda8j2d.js} +2 -2
  63. package/dist/client/static/js/{index-8pdz41yh.js → index-z78bzryw.js} +1 -1
  64. package/dist/client/static/js/{index-q3qpm7jn.js → index-zndbhb9w.js} +1 -1
  65. package/dist/client/static/js/{index-3d40c0a7.js → index-zs73zwjz.js} +1 -1
  66. package/dist/client/static/js/{index-mvykbyhe.js → index-zs7sjv6x.js} +1 -1
  67. package/dist/client/static/js/{index-5asf5625.js → index-zw621xez.js} +1 -1
  68. package/dist/client/static/js/{infoDiagram-VRGFBTTK-0anekyhb.js → infoDiagram-VRGFBTTK-4e7ej63f.js} +1 -1
  69. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-zxpmfkjb.js → ishikawaDiagram-OU5B5YK6-k3yet1ec.js} +1 -1
  70. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-1e86fzra.js → journeyDiagram-ZHPQQLJL-qe352kyd.js} +1 -1
  71. package/dist/client/static/js/{kanban-definition-PNTS6WVX-e85hhmr1.js → kanban-definition-PNTS6WVX-58hag75n.js} +1 -1
  72. package/dist/client/static/js/{mermaid.core-jpcrnzyw.js → mermaid.core-6e89h6vm.js} +2 -2
  73. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-xwy5928e.js → mindmap-definition-NLK3R4M7-ncsam2fm.js} +1 -1
  74. package/dist/client/static/js/one-dark-pro-qmyne0tn.js +1 -0
  75. package/dist/client/static/js/one-light-dj0ecjcj.js +1 -0
  76. package/dist/client/static/js/{pegDiagram-GJSIUBJH-7dy6pw26.js → pegDiagram-GJSIUBJH-b5ckc39d.js} +1 -1
  77. package/dist/client/static/js/{pieDiagram-5QR66LMP-nrv2t5yn.js → pieDiagram-5QR66LMP-s4d47ve8.js} +1 -1
  78. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-3nt63xr8.js → quadrantDiagram-O4NWA36T-zm0ekvjz.js} +1 -1
  79. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-evm05hzp.js → railroadDiagram-XR7U4H2S-52vdqf53.js} +1 -1
  80. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-tzrcmktj.js → requirementDiagram-PLB6GJNP-7kf8bmk9.js} +1 -1
  81. package/dist/client/static/js/{rust-pcvgybk3.js → rust-q98kssv3.js} +1 -1
  82. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-jvjd5rz8.js → sankeyDiagram-IPEJSGJF-bcb9f54a.js} +1 -1
  83. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-0zvjwx29.js → sequenceDiagram-PO4LG4MO-76ywvj7g.js} +1 -1
  84. package/dist/client/static/js/{sizeCapture-INFHLROL-6t6g0edv.js → sizeCapture-INFHLROL-p9bsf5dc.js} +1 -1
  85. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-nb13b23a.js → stateDiagram-v2-GCMORJYK-1ecfb3fs.js} +1 -1
  86. package/dist/client/static/js/{swimlanes-2SLR337P-ef8vmg6f.js → swimlanes-2SLR337P-2pyjr946.js} +1 -1
  87. package/dist/client/static/js/{swimlanesDiagram-TC7HE7FX-f4sx355z.js → swimlanesDiagram-TC7HE7FX-qr5hdxm4.js} +1 -1
  88. package/dist/client/static/js/{timeline-definition-EJHVYXUP-3bfph698.js → timeline-definition-EJHVYXUP-4csxwmn2.js} +1 -1
  89. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-vj6yj6tc.js → usecaseDiagram-POWQR4AR-0p1jnbsn.js} +1 -1
  90. package/dist/client/static/js/{vennDiagram-UO4OBE2U-9xyyabaq.js → vennDiagram-UO4OBE2U-y1hgdet4.js} +1 -1
  91. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-zpcwgv9d.js → wardleyDiagram-VNRHLVJA-p578yrgm.js} +1 -1
  92. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-pdr2rms2.js → xychartDiagram-PMCCYNJV-b08b4ah0.js} +1 -1
  93. package/package.json +1 -1
  94. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolBody.tsx +3 -3
  95. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolRowActions.tsx +45 -0
  96. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/tool-view.ts +14 -4
  97. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Card.tsx +2 -12
  98. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Compact.tsx +42 -38
  99. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Minimal.tsx +25 -21
  100. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Trace.tsx +41 -29
  101. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.tsx +47 -43
  102. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/parity.test.tsx +136 -0
  103. package/src/server/lib/omp/session/scan.ts +15 -2
  104. package/src/server/lib/omp/session/session-discovery.test.ts +21 -0
  105. package/src/shared/lib/chat/timeline/tool-render-mode.ts +3 -3
  106. package/src/shared/lib/omp/session/operator-title.test.ts +21 -0
  107. package/src/shared/lib/omp/session/operator-title.ts +28 -0
  108. package/dist/client/static/js/flowDiagram-KWPJA3E3-evp84v09.js +0 -1
  109. package/dist/client/static/js/one-dark-pro-r0tswz8r.js +0 -1
  110. package/dist/client/static/js/one-light-xzcfrptf.js +0 -1
@@ -193,6 +193,27 @@ describe('scanSessionInfo', () => {
193
193
  expect((await scanSessionInfo(file))?.firstMessage).toBe('(no messages)');
194
194
  });
195
195
 
196
+ test('a session opened with /skill: counts as a chat even when the skill body fills the window', async () => {
197
+ // The reported shape: the opening turn is a `custom_message` whose expanded
198
+ // SKILL.md runs past the 4 KiB prefix, so no `message` entry is in the
199
+ // window at all. Counting only `message` entries reported 0, and the
200
+ // sidebar drops `messageCount === 0` files as header-only — the row
201
+ // vanished (8 real chats in one project, 0.8–8.6 MB each).
202
+ const body = '# antislop-ui\n' + 'skill instructions\n'.repeat(400);
203
+ const file = writeSessionFile(join(tempDir('scan'), 'proj', 'skill.jsonl'), [
204
+ header('skill-id'),
205
+ {
206
+ type: 'custom_message',
207
+ customType: 'skill-prompt',
208
+ content: `[IMPORTANT: User invoked the "antislop-ui" skill; follow its instructions. Full skill below.]\n\n${body}`,
209
+ attribution: 'user',
210
+ },
211
+ ]);
212
+ const info = await scanSessionInfo(file);
213
+ expect(info?.messageCount).toBe(1);
214
+ expect(info?.firstMessage).toBe('/skill:antislop-ui');
215
+ });
216
+
196
217
  test('a missing file yields undefined instead of throwing', async () => {
197
218
  expect(await scanSessionInfo(join(tempDir('scan'), 'gone.jsonl'))).toBeUndefined();
198
219
  });
@@ -15,8 +15,8 @@
15
15
  * - `compact` — one status line per call, facts inline, body inset on demand.
16
16
  * - `trace` — a vertical rail per section, one node per call.
17
17
  * - `minimal` — a faint line per call, read as part of the answer.
18
- * - `tui` — omp's own terminal frame: a rounded box drawn from glyphs,
19
- * with the header riding the top border.
18
+ * - `tui` — omp's terminal transcript: one coloured status line per
19
+ * call, the output hanging under a hairline.
20
20
  *
21
21
  * **The mode NAMES and the copy live here**; the markup lives in
22
22
  * `tool-renderers/styles/`. A mode added here without a renderer is a build
@@ -82,6 +82,6 @@ export const TOOL_RENDER_MODE_COPY: Record<ToolRenderMode, ToolRenderModeCopy> =
82
82
  tui: {
83
83
  label: 'TUI',
84
84
  description:
85
- "omp's terminal frame: a rounded box with the header on the top border, the way the TUI draws a call.",
85
+ "omp's terminal transcript: one coloured status line per call, with the output hanging under it.",
86
86
  },
87
87
  };
@@ -21,6 +21,7 @@
21
21
  import { describe, expect, test } from 'bun:test';
22
22
 
23
23
  import {
24
+ countSkillPromptMarkers,
24
25
  firstOperatorTitleFromPrefix,
25
26
  operatorTitleFromEntry,
26
27
  skillChip,
@@ -90,6 +91,26 @@ describe('firstOperatorTitleFromPrefix', () => {
90
91
  });
91
92
  });
92
93
 
94
+ describe('countSkillPromptMarkers', () => {
95
+ test('counts the compact marker omp actually writes', () => {
96
+ const prefix = '{"type":"custom_message","customType":"skill-prompt","content":"[IMPORTANT: User invoked the \\"antislop-ui\\" skill';
97
+ expect(countSkillPromptMarkers(prefix)).toBe(1);
98
+ });
99
+
100
+ test('counts a marker with a space after the colon', () => {
101
+ expect(countSkillPromptMarkers('{"customType": "skill-prompt"}')).toBe(1);
102
+ });
103
+
104
+ test('an unrelated customType is not a skill turn', () => {
105
+ expect(countSkillPromptMarkers('{"type":"custom","customType":"system-prompt-digest"}')).toBe(0);
106
+ });
107
+
108
+ test('a value cut by the window still counts', () => {
109
+ // The 4 KiB window can end inside the value; the turn is still there.
110
+ expect(countSkillPromptMarkers('{"customType":"skill-pro')).toBe(1);
111
+ });
112
+ });
113
+
93
114
  describe('skillChip', () => {
94
115
  test('appends args only when they exist', () => {
95
116
  expect(skillChip('diagnose')).toBe('/skill:diagnose');
@@ -94,6 +94,34 @@ export function operatorTitleFromEntry(record: Record<string, unknown>): string
94
94
  return textOfContent(message.content).trim() || undefined;
95
95
  }
96
96
 
97
+ /**
98
+ * How many `/skill:` turns a RAW-JSONL prefix window holds.
99
+ *
100
+ * The sidebar's "is this a chat at all" test counts `"type":"message"` entries,
101
+ * and a skill turn is `custom_message` — so a session opened with `/skill:` and
102
+ * whose expanded SKILL.md fills the whole 4 KiB window reported ZERO messages
103
+ * and its row was dropped from the list entirely (measured: 8 real chats in one
104
+ * project, 0.8–8.6 MB each, all invisible). The marker is read as a PROPERTY
105
+ * for the same reason the title reader does: the window can cut the entry, and
106
+ * the value itself can be cut mid-string.
107
+ */
108
+ export function countSkillPromptMarkers(content: string): number {
109
+ let count = 0;
110
+ let marker = content.indexOf('"customType"');
111
+ while (marker !== -1) {
112
+ const value = extractStringProperty(content, 'customType', marker);
113
+ // A window that ends inside the value yields its fragment (`skill-pro`);
114
+ // no other custom type starts with `skill-`, so a long-enough prefix is
115
+ // the same fact as the whole word.
116
+ if (value === SKILL_PROMPT_CUSTOM_TYPE
117
+ || (value !== undefined && value.length >= 8 && SKILL_PROMPT_CUSTOM_TYPE.startsWith(value))) {
118
+ count++;
119
+ }
120
+ marker = content.indexOf('"customType"', marker + 12);
121
+ }
122
+ return count;
123
+ }
124
+
97
125
  /**
98
126
  * Title text of the operator's opening turn inside a RAW-JSONL prefix window.
99
127
  *
@@ -1 +0,0 @@
1
- import"./index-xsts4pqm.js";import"./index-q3qpm7jn.js";import{Sh}from"./index-6eq445nn.js";export{Sh as diagram};
@@ -1 +0,0 @@
1
- import{lA}from"./index-rt6ac0kk.js";export{lA as default};
@@ -1 +0,0 @@
1
- import{sA}from"./index-rt6ac0kk.js";export{sA as default};