@kabmo-labs/kabmo 0.54.0 → 0.55.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.
Files changed (130) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +445 -445
  3. package/dist/client/static/js/{Body-x5grdps8.js → Body-a4dwe3hh.js} +1 -1
  4. package/dist/client/static/js/{CsvGrid-248v9yzf.js → CsvGrid-ppj80brw.js} +1 -1
  5. package/dist/client/static/js/{DocxView-5we92k2h.js → DocxView-ef0bd2pg.js} +1 -1
  6. package/dist/client/static/js/{DrawioView-c6xmw4qq.js → DrawioView-44tpkzbd.js} +1 -1
  7. package/dist/client/static/js/{HtmlPreview-r3qxgqg6.js → HtmlPreview-w654aykz.js} +1 -1
  8. package/dist/client/static/js/{ImageView-cr4fea18.js → ImageView-kg0skt5s.js} +1 -1
  9. package/dist/client/static/js/{LayoutWrapper-j12z0djx.js → LayoutWrapper-qepkrtd8.js} +1 -1
  10. package/dist/client/static/js/MergeDiffView-n2h8vv0j.js +1 -0
  11. package/dist/client/static/js/{Modal-cqceypcn.js → Modal-8d299emm.js} +16 -16
  12. package/dist/client/static/js/{PdfView-xdgn31cm.js → PdfView-eq7fnqa2.js} +1 -1
  13. package/dist/client/static/js/{SessionsView-ms6z44e2.js → SessionsView-tedh2es3.js} +1 -1
  14. package/dist/client/static/js/{SheetView-peqm9vft.js → SheetView-5xm33kgk.js} +1 -1
  15. package/dist/client/static/js/{SvgPreview-rdf4wbzr.js → SvgPreview-tp1m8r4t.js} +1 -1
  16. package/dist/client/static/js/{abnfDiagram-O67JEVCF-48z2x5vg.js → abnfDiagram-O67JEVCF-xppr9jf1.js} +1 -1
  17. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-n1pr5s6j.js → architectureDiagram-NJMV4G6O-s23e6vtk.js} +1 -1
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-p19shaft.js → blockDiagram-BEXU5L5S-7ws8yq9e.js} +1 -1
  19. package/dist/client/static/js/{c4Diagram-YGBWAQC7-qcd46ts2.js → c4Diagram-YGBWAQC7-517yhfzj.js} +1 -1
  20. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-scyhe133.js → classDiagram-v2-NBCMYWYE-tcad3rst.js} +1 -1
  21. package/dist/client/static/js/{cose-bilkent-JH36ORCC-srnnj3f7.js → cose-bilkent-JH36ORCC-a76vf82p.js} +1 -1
  22. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-1zfrnyay.js → cynefinDiagram-VND7K2PF-9kety453.js} +1 -1
  23. package/dist/client/static/js/{dagre-6A5THRUB-hepk25pz.js → dagre-6A5THRUB-6g6gsp6b.js} +1 -1
  24. package/dist/client/static/js/{diagram-22UHCM2B-wy2y0323.js → diagram-22UHCM2B-ngj4fyg3.js} +1 -1
  25. package/dist/client/static/js/{diagram-3UASUU5V-j904f93p.js → diagram-3UASUU5V-xw2m99qa.js} +1 -1
  26. package/dist/client/static/js/{diagram-ATOU4E4O-2mmxccm2.js → diagram-ATOU4E4O-hz3bd083.js} +1 -1
  27. package/dist/client/static/js/{diagram-CDSNMT55-cfhk73ty.js → diagram-CDSNMT55-vfhtemve.js} +1 -1
  28. package/dist/client/static/js/{diagram-MLGK6HIB-ryf8j6hf.js → diagram-MLGK6HIB-22cjvj5g.js} +1 -1
  29. package/dist/client/static/js/{diagram-MPIPVDR6-8k5e36sd.js → diagram-MPIPVDR6-xv8fsecp.js} +1 -1
  30. package/dist/client/static/js/{dockerfile-1e7deann.js → dockerfile-491tyqmj.js} +1 -1
  31. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-5kkbbbhv.js → ebnfDiagram-ZINNZB2B-m6mkn986.js} +1 -1
  32. package/dist/client/static/js/{elk-276RUBZZ-jqc4mzvc.js → elk-276RUBZZ-jccw706n.js} +1 -1
  33. package/dist/client/static/js/{erDiagram-OPXOYQCR-kx15t6f0.js → erDiagram-OPXOYQCR-rxk86jsf.js} +1 -1
  34. package/dist/client/static/js/flowDiagram-KWPJA3E3-aegwx04w.js +1 -0
  35. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-3hv8pej4.js → ganttDiagram-FUAMR5RP-veweech7.js} +1 -1
  36. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-a4mq8vwz.js → gitGraphDiagram-X574FWY7-7dyqcj8r.js} +1 -1
  37. package/dist/client/static/js/{index-1ye834yz.js → index-088gwjbz.js} +1 -1
  38. package/dist/client/static/js/{index-k4kwrze2.js → index-0ak5wdz1.js} +1 -1
  39. package/dist/client/static/js/{index-937bn0d2.js → index-0qmpqtp2.js} +1 -1
  40. package/dist/client/static/js/{index-40fdtqvw.js → index-0xh8402w.js} +1 -1
  41. package/dist/client/static/js/{index-0z7kerp1.js → index-2asa0faw.js} +1 -1
  42. package/dist/client/static/js/{index-w4dep7k6.js → index-2cfw7wem.js} +1 -1
  43. package/dist/client/static/js/{index-0j5ng1qc.js → index-39mr4tym.js} +1 -1
  44. package/dist/client/static/js/{index-kvker1ps.js → index-3x88fxzj.js} +1 -1
  45. package/dist/client/static/js/{index-8hnem33f.js → index-4m94cbms.js} +1 -1
  46. package/dist/client/static/js/{index-9gddw5qy.js → index-5701gj1f.js} +1 -1
  47. package/dist/client/static/js/{index-m85c740p.js → index-60fjqzdw.js} +1 -1
  48. package/dist/client/static/js/{index-exyg9sna.js → index-637my5h0.js} +1 -1
  49. package/dist/client/static/js/{index-jvn2xfpt.js → index-7ckzdf4r.js} +153 -151
  50. package/dist/client/static/js/{index-317v49ey.js → index-7ehep28z.js} +1 -1
  51. package/dist/client/static/js/{index-br27jz2t.js → index-bfy437re.js} +1 -1
  52. package/dist/client/static/js/{index-vxe4e903.js → index-bhst1c2x.js} +1 -1
  53. package/dist/client/static/js/{index-9cr6p86f.js → index-cz80n8yc.js} +1 -1
  54. package/dist/client/static/js/{index-demg0p74.js → index-d9dz0wt0.js} +1 -1
  55. package/dist/client/static/js/{index-51wzt3ma.js → index-dg714jam.js} +1 -1
  56. package/dist/client/static/js/{index-n3cts2j1.js → index-e6tjaccf.js} +1 -1
  57. package/dist/client/static/js/{index-eb43hnd3.js → index-gsw1zh30.js} +1 -1
  58. package/dist/client/static/js/{index-3kenmzbe.js → index-j0qt8gaj.js} +1 -1
  59. package/dist/client/static/js/{index-pszsxhjr.js → index-kfcpkx7h.js} +1 -1
  60. package/dist/client/static/js/{index-v90zd3sq.js → index-na95tr1k.js} +1 -1
  61. package/dist/client/static/js/{index-g3x4w48f.js → index-nzjc24v9.js} +1 -1
  62. package/dist/client/static/js/{index-n5194pe6.js → index-pqmvhqmj.js} +2 -2
  63. package/dist/client/static/js/{index-e2y4hkps.js → index-r51fqzb5.js} +1 -1
  64. package/dist/client/static/js/{index-40ydm28n.js → index-sx5x2q80.js} +1 -1
  65. package/dist/client/static/js/{index-p8bta9ae.js → index-tk1vr8q2.js} +1 -1
  66. package/dist/client/static/js/{index-x5c5yxhj.js → index-trpn9gxs.js} +1 -1
  67. package/dist/client/static/js/{index-01rdknec.js → index-twjq786a.js} +1 -1
  68. package/dist/client/static/js/{index-fanhvjk8.js → index-wa234c7k.js} +1 -1
  69. package/dist/client/static/js/{index-rtfw07hy.js → index-wp7tsava.js} +1 -1
  70. package/dist/client/static/js/{index-kz5d00m5.js → index-wvqwzgpx.js} +1 -1
  71. package/dist/client/static/js/{index-xhcbaaga.js → index-xbvjpa60.js} +2 -2
  72. package/dist/client/static/js/{index-n4pm0hrh.js → index-xm3691yp.js} +1 -1
  73. package/dist/client/static/js/{index-kevqayd9.js → index-xq78fj64.js} +1 -1
  74. package/dist/client/static/js/{index-bf54x0w8.js → index-zjc8yfbe.js} +1 -1
  75. package/dist/client/static/js/{infoDiagram-VRGFBTTK-wtnqb06v.js → infoDiagram-VRGFBTTK-ksz9cvq3.js} +1 -1
  76. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-eta0jnvr.js → ishikawaDiagram-OU5B5YK6-g8symmrp.js} +1 -1
  77. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-4e572kkp.js → journeyDiagram-ZHPQQLJL-qs2e3hdf.js} +1 -1
  78. package/dist/client/static/js/{kanban-definition-PNTS6WVX-yrtnn4zy.js → kanban-definition-PNTS6WVX-pzef80sz.js} +1 -1
  79. package/dist/client/static/js/{mermaid.core-195b0fb6.js → mermaid.core-chfcvkkc.js} +2 -2
  80. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-pphjnkvt.js → mindmap-definition-NLK3R4M7-sds2e243.js} +1 -1
  81. package/dist/client/static/js/one-dark-pro-5fvhpb1t.js +1 -0
  82. package/dist/client/static/js/one-light-pwj40vbr.js +1 -0
  83. package/dist/client/static/js/{pegDiagram-GJSIUBJH-kgffb9p3.js → pegDiagram-GJSIUBJH-m8199cy0.js} +1 -1
  84. package/dist/client/static/js/{pieDiagram-5QR66LMP-efech3mm.js → pieDiagram-5QR66LMP-wqz5k5w6.js} +1 -1
  85. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-khf9cv3t.js → quadrantDiagram-O4NWA36T-rjszd8an.js} +1 -1
  86. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-ye68kdx2.js → railroadDiagram-XR7U4H2S-qv0be7dh.js} +1 -1
  87. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-3s4smnme.js → requirementDiagram-PLB6GJNP-b87kqbr7.js} +1 -1
  88. package/dist/client/static/js/{rust-tdrnaxp3.js → rust-m7ma3tq9.js} +1 -1
  89. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-9pqd25mc.js → sankeyDiagram-IPEJSGJF-dh5we479.js} +1 -1
  90. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-rka8ct43.js → sequenceDiagram-PO4LG4MO-e6fg0x45.js} +1 -1
  91. package/dist/client/static/js/{sizeCapture-INFHLROL-g5wkzry8.js → sizeCapture-INFHLROL-mam6cagq.js} +1 -1
  92. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-gy1zab2j.js → stateDiagram-v2-GCMORJYK-htwar22v.js} +1 -1
  93. package/dist/client/static/js/{swimlanes-2SLR337P-kr35nmd2.js → swimlanes-2SLR337P-5g26cnkr.js} +1 -1
  94. package/dist/client/static/js/{swimlanesDiagram-TC7HE7FX-qnhxxmjr.js → swimlanesDiagram-TC7HE7FX-rseba3zs.js} +1 -1
  95. package/dist/client/static/js/{timeline-definition-EJHVYXUP-sg151mkc.js → timeline-definition-EJHVYXUP-5km8n8mj.js} +1 -1
  96. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-f91g61p3.js → usecaseDiagram-POWQR4AR-0vt6ms5g.js} +1 -1
  97. package/dist/client/static/js/{vennDiagram-UO4OBE2U-zbhr4eqf.js → vennDiagram-UO4OBE2U-k425105a.js} +1 -1
  98. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-6302414n.js → wardleyDiagram-VNRHLVJA-s0gd4jg1.js} +1 -1
  99. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-0a47th65.js → xychartDiagram-PMCCYNJV-2nrdzp7p.js} +1 -1
  100. package/package.json +5 -5
  101. package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +2 -0
  102. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AgentAdmin.test.tsx +67 -0
  103. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AgentAdmin.tsx +89 -0
  104. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.test.tsx +91 -0
  105. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +8 -2
  106. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.test.ts +9 -0
  107. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.tsx +16 -1
  108. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/WebSearch.test.tsx +59 -0
  109. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/WebSearch.tsx +11 -1
  110. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/agent-admin-rows.test.ts +119 -0
  111. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/agent-admin-rows.ts +174 -0
  112. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/task-rows.ts +14 -2
  113. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.test.ts +22 -0
  114. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +14 -0
  115. package/src/client/data/settings/omp-schema.json +445 -165
  116. package/src/server/routes/fs/raw.test.ts +33 -0
  117. package/src/server/routes/fs/raw.ts +31 -11
  118. package/src/shared/lib/chat/timeline/tool-phrases.test.ts +4 -0
  119. package/src/shared/lib/chat/timeline/tool-phrases.ts +2 -0
  120. package/src/shared/lib/models/provider/glyph.test.ts +13 -11
  121. package/src/shared/lib/models/provider/glyph.ts +1 -0
  122. package/src/shared/lib/models/provider/label.ts +3 -0
  123. package/src/shared/lib/omp/config/schema-releases-19-3.test.ts +64 -0
  124. package/src/shared/lib/omp/config/schema-releases.test.ts +6 -4
  125. package/src/shared/lib/omp/session/wait-idle.test.ts +12 -2
  126. package/src/shared/lib/omp/session/wait-idle.ts +11 -6
  127. package/dist/client/static/js/MergeDiffView-y0we0194.js +0 -1
  128. package/dist/client/static/js/flowDiagram-KWPJA3E3-dpjz82p8.js +0 -1
  129. package/dist/client/static/js/one-dark-pro-asy2qj2p.js +0 -1
  130. package/dist/client/static/js/one-light-fya1pbbx.js +0 -1
@@ -39,6 +39,14 @@ async function raw(relPath: string, init?: RequestInit) {
39
39
  return res;
40
40
  }
41
41
 
42
+ /** An ABSOLUTE reference: `root` is deliberately absent. */
43
+ async function rawReference(reference: string) {
44
+ const url = new URL('http://localhost/api/fs/raw');
45
+ url.searchParams.set('path', reference);
46
+ const res = await serveRawFile({ request: new Request(url) } as never);
47
+ return res;
48
+ }
49
+
42
50
  function write(relPath: string, bytes: Uint8Array) {
43
51
  const target = path.join(DIR, relPath);
44
52
  fs.mkdirSync(path.dirname(target), { recursive: true });
@@ -117,6 +125,31 @@ describe('fs raw route', () => {
117
125
  expect(res.headers.get('content-disposition')).toContain('report.pdf');
118
126
  });
119
127
 
128
+ // An ACP `read_file` names its file ABSOLUTELY (`locations[].path`), and the
129
+ // reader paints an image from this route. Stripping the leading `/` pointed
130
+ // it at `<root>/Users/…` — a 404 over a file that exists.
131
+ test('an absolute path inside an allowed root is served', async () => {
132
+ const target = write('abs.png', new Uint8Array([0x89, 0x50, 0x4e, 0x47]));
133
+ const res = await rawReference(target);
134
+
135
+ expect(res.status).toBe(200);
136
+ expect(res.headers.get('content-type')).toBe('image/png');
137
+ });
138
+
139
+ test('a file:// reference is served under the same allow-list', async () => {
140
+ const target = write('abs-ref.png', new Uint8Array([0x89, 0x50, 0x4e, 0x47]));
141
+ const res = await rawReference(`file://${target}`);
142
+
143
+ expect(res.status).toBe(200);
144
+ });
145
+
146
+ test('an absolute path outside every allowed root is refused', async () => {
147
+ // `/etc/hosts` exists on every POSIX host; it is not on the allow-list.
148
+ const res = await rawReference('/etc/hosts');
149
+
150
+ expect(res.status).toBe(403);
151
+ });
152
+
120
153
  // The HTML preview loads a page's relative assets through this route, inside
121
154
  // a sandboxed frame where the browser enforces strict MIME checking: a
122
155
  // stylesheet served as `application/octet-stream` is refused and the page
@@ -4,9 +4,10 @@
4
4
  */
5
5
 
6
6
  import { json, type LoaderFunctionArgs } from '@kabmo-labs/kabmo-http';
7
+ import path from 'path';
7
8
  import { errorResponse } from '@/server/lib/route-adapter';
8
9
  import { isMockMode } from '@kabmo-labs/kabmo-runtime-flags';
9
- import { getDefaultFsRoot, resolveRoot, resolveWithinRoot } from '@kabmo-labs/kabmo-workspace/root/root';
10
+ import { getDefaultFsRoot, resolveReferencedPath, resolveRoot, resolveWithinRoot } from '@kabmo-labs/kabmo-workspace/root/root';
10
11
  import { EDITOR_MAX_BYTES_BY_EXT, unsupportedEditorMessage } from '@kabmo-labs/kabmo-fs/media/file-kind';
11
12
  import { getFileExtension, getRawContentType } from '@kabmo-labs/kabmo-fs/media/mime';
12
13
 
@@ -26,7 +27,10 @@ import { getFileExtension, getRawContentType } from '@kabmo-labs/kabmo-fs/media/
26
27
  *
27
28
  * Scope resolution is identical to `/api/fs/read` (same root allow-list, same
28
29
  * `resolveWithinRoot` containment), so a path that reads as text can be served
29
- * as bytes and vice versa.
30
+ * as bytes and vice versa. An ABSOLUTE reference is resolved through
31
+ * `resolveReferencedPath` (the drop allow-list) instead of being made relative
32
+ * to `root`: an ACP `locations[].path` is absolute, and stripping its leading
33
+ * `/` pointed the `<img>` at `<root>/Users/…` — a 404 over a file that exists.
30
34
  */
31
35
  export async function serveRawFile({ request }: LoaderFunctionArgs) {
32
36
  const url = new URL(request.url);
@@ -36,18 +40,34 @@ export async function serveRawFile({ request }: LoaderFunctionArgs) {
36
40
  return json({ error: 'Missing path' }, { status: 400 });
37
41
  }
38
42
 
39
- let baseDir = await resolveRoot(url.searchParams.get('root'), await getDefaultFsRoot(isMockMode()));
43
+ // An absolute path is a REFERENCE, not a path relative to `root`: resolve it
44
+ // against the same allow-list a dropped file uses. A relative one keeps the
45
+ // Files panel's scoped resolution (`root` + nested `repo`).
46
+ const reference = /^file:\/\//i.test(filePath)
47
+ ? filePath.replace(/^file:\/\//, '')
48
+ : path.isAbsolute(filePath)
49
+ ? filePath
50
+ : null;
40
51
 
41
- const repo = url.searchParams.get('repo');
42
- if (repo && repo !== '.') {
43
- const repoDir = resolveWithinRoot(baseDir, repo);
44
- if (repoDir) {
45
- baseDir = repoDir;
52
+ let cleanPath: string;
53
+ let fullPath: string | null;
54
+ if (reference) {
55
+ cleanPath = reference;
56
+ fullPath = await resolveReferencedPath(reference);
57
+ } else {
58
+ let baseDir = await resolveRoot(url.searchParams.get('root'), await getDefaultFsRoot(isMockMode()));
59
+
60
+ const repo = url.searchParams.get('repo');
61
+ if (repo && repo !== '.') {
62
+ const repoDir = resolveWithinRoot(baseDir, repo);
63
+ if (repoDir) {
64
+ baseDir = repoDir;
65
+ }
46
66
  }
47
- }
48
67
 
49
- const cleanPath = filePath.replace(/^\/+/, '');
50
- const fullPath = resolveWithinRoot(baseDir, cleanPath);
68
+ cleanPath = filePath.replace(/^\/+/, '');
69
+ fullPath = resolveWithinRoot(baseDir, cleanPath);
70
+ }
51
71
 
52
72
  if (!fullPath) {
53
73
  return json({ error: 'Invalid path' }, { status: 403 });
@@ -83,6 +83,7 @@ describe('tool phrase tables', () => {
83
83
  test('canonical names and legacy aliases resolve to the expected stems', () => {
84
84
  expect(TOOL_VERBS.read).toBe('Reading');
85
85
  expect(TOOL_VERBS.todo).toBe('Updating plan');
86
+ expect(TOOL_VERBS.gitlab).toBe('GitLab');
86
87
  expect(TOOL_ALIASES.read_file).toBe('read');
87
88
  expect(TOOL_ALIASES.terminal).toBe('bash');
88
89
  expect(DEVICE_VERBS.lsp).toBe('Running LSP');
@@ -153,6 +154,9 @@ describe('subjectFor', () => {
153
154
  expect(subjectFor('debug', { action: 'attach' })).toBe('attach');
154
155
  expect(subjectFor('github', { op: 'pr', repo: 'o/r' })).toBe('pr o/r');
155
156
  expect(subjectFor('github', {})).toBeUndefined();
157
+ // omp 19.3.0's `gitlab` tool shares the `{ op, repo|mr|query }` shape.
158
+ expect(subjectFor('gitlab', { op: 'mr_create', repo: 'g/p' })).toBe('mr_create g/p');
159
+ expect(subjectFor('gitlab', {})).toBeUndefined();
156
160
  });
157
161
 
158
162
  test('ask reads the first question header, then its question text', () => {
@@ -43,6 +43,7 @@ export const TOOL_VERBS: Record<string, string> = {
43
43
  lsp: 'Running LSP',
44
44
  debug: 'Debugging',
45
45
  github: 'GitHub',
46
+ gitlab: 'GitLab',
46
47
  web_search: 'Searching the web',
47
48
  ask: 'Asking you',
48
49
  checkpoint: 'Checkpointing',
@@ -212,6 +213,7 @@ export function subjectFor(name: string, args: Record<string, unknown>): string
212
213
  case 'debug':
213
214
  return pick(args, ['action', 'program']);
214
215
  case 'github':
216
+ case 'gitlab':
215
217
  return [pick(args, ['op']), pick(args, ['repo', 'pr', 'query'])].filter(Boolean).join(' ') || undefined;
216
218
  case 'ask':
217
219
  return askSubject(args);
@@ -17,20 +17,21 @@ import { PROVIDER_GLYPHS } from '@/client/components/common/provider-icon/glyphs
17
17
  import { providerInitials, resolveProviderGlyph } from '@/shared/lib/models/provider/glyph';
18
18
 
19
19
  /**
20
- * Every provider id omp 18.3.0 ships (`KnownProvider`) plus Kabmo's own
21
- * additions. A provider added upstream appears here as one more id, and the
22
- * coverage test below is what makes its missing mark a loud failure instead of a
23
- * blank badge in the picker.
20
+ * Every provider id omp ships (`KnownProvider`), plus Kabmo's own additions and
21
+ * the slugs omp retired but stored sessions still name. A provider added
22
+ * upstream appears here as one more id, and the coverage test below is what
23
+ * makes its missing mark a loud failure instead of a blank badge in the picker.
24
24
  */
25
25
  const PROVIDER_IDS = [
26
26
  'abliteration', 'aiand', 'aimlapi', 'alibaba-coding-plan', 'alibaba-token-plan', 'amazon-bedrock',
27
- 'anthropic', 'apple', 'azure', 'baseten', 'bedrock-mantle', 'cerebras', 'charm-hyper', 'cline-pass',
28
- 'cloudflare-ai-gateway', 'commandcode', 'coreweave', 'cursor', 'deepinfra', 'deepseek', 'devin',
29
- 'firepass', 'fireworks', 'github-copilot', 'gitlab-duo', 'gitlab-duo-agent', 'gmi-cloud', 'google',
30
- 'google-antigravity', 'google-gemini-cli', 'google-vertex', 'groq', 'huggingface', 'kilo', 'kimi-code',
31
- 'litellm', 'llama.cpp', 'lm-studio', 'local', 'meta', 'minimax', 'minimax-code', 'minimax-code-cn',
32
- 'mistral', 'moonshot', 'muse-code', 'nanogpt', 'novita', 'nvidia', 'ollama', 'ollama-cloud', 'openai',
33
- 'openai-codex', 'opencode-go', 'opencode-zen', 'openrouter', 'qianfan', 'qwen-portal', 'sakana',
27
+ 'anthropic', 'apple', 'arkanecloud', 'azure', 'baseten', 'bedrock-mantle', 'cerebras', 'charm-hyper',
28
+ 'cline-pass', 'cloudflare-ai-gateway', 'commandcode', 'coreweave', 'cursor', 'deepinfra', 'deepseek',
29
+ 'devin', 'firepass', 'fireworks', 'github-copilot', 'gitlab-duo', 'gitlab-duo-agent', 'gmi-cloud',
30
+ 'google', 'google-antigravity', 'google-gemini-cli', 'google-vertex', 'groq', 'huggingface', 'kilo',
31
+ 'kimi-code', 'kimi-code-global', 'litellm', 'llama.cpp', 'lm-studio', 'local', 'meta', 'minimax',
32
+ 'minimax-code', 'minimax-code-cn', 'mistral', 'moonshot', 'muse-code', 'nanogpt', 'novita', 'nvidia',
33
+ 'ollama', 'ollama-cloud', 'openai', 'openai-codex', 'opencode-go', 'opencode-zen', 'openrouter',
34
+ 'qianfan', 'qwen-portal', 'refuseless', 'sakana',
34
35
  'siliconflow', 'siliconflow-cn', 'singularityapi-dev', 'singularityapi-tech', 'stepfun', 'synthetic',
35
36
  'together', 'typesafe', 'umans', 'venice', 'vercel-ai-gateway', 'vllm', 'wafer-serverless', 'web',
36
37
  'xai', 'xai-oauth', 'xiaomi', 'xiaomi-token-plan-ams', 'xiaomi-token-plan-cn', 'xiaomi-token-plan-sgp',
@@ -75,6 +76,7 @@ describe('resolveProviderGlyph', () => {
75
76
  expect(resolveProviderGlyph('openai-codex')).toBe(resolveProviderGlyph('codex'));
76
77
  expect(resolveProviderGlyph('opencode-zen')).toBe(resolveProviderGlyph('opencode-go'));
77
78
  expect(resolveProviderGlyph('gitlab-duo-agent')).toBe(resolveProviderGlyph('gitlab-duo'));
79
+ expect(resolveProviderGlyph('kimi-code-global')).toBe(resolveProviderGlyph('kimi'));
78
80
  });
79
81
 
80
82
  test('spelling differences fold to the same key', () => {
@@ -91,6 +91,7 @@ export const PROVIDER_GLYPH_ALIASES: Readonly<Record<string, string>> = {
91
91
  kilocode: 'kilocode',
92
92
  kimi: 'kimi',
93
93
  kimicode: 'kimi',
94
+ kimicodeglobal: 'kimi',
94
95
  litellm: 'litellm',
95
96
  llama: 'meta',
96
97
  llamacpp: 'llamacpp',
@@ -63,6 +63,9 @@ const BRAND_NAMES: Record<string, string> = {
63
63
  xai: 'xAI',
64
64
  'xai-oauth': 'xAI (OAuth)',
65
65
  'kimi-code': 'Kimi Code',
66
+ 'kimi-code-global': 'Kimi Code (Global)',
67
+ arkanecloud: 'ArkaneCloud',
68
+ refuseless: 'Refuseless',
66
69
  'qwen-portal': 'Qwen Portal',
67
70
  'minimax-code': 'MiniMax Code',
68
71
  'minimax-code-cn': 'MiniMax Code (CN)',
@@ -0,0 +1,64 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The rows omp 19.3.0 and later add to the settings schema.
8
+ *
9
+ * Split from `schema-releases.test.ts` when that file reached its line ceiling;
10
+ * the contract is the same: every bump pins the rows it brought, and the rows
11
+ * it removed, so a regenerated schema cannot silently lose the panel's only
12
+ * editor for a setting or keep offering a key the binary rejects.
13
+ */
14
+
15
+ import { describe, expect, test } from 'bun:test';
16
+
17
+ import { OMP_SCHEMA } from '@/shared/lib/omp/config/schema';
18
+ import type { SchemaEntry } from '@kabmo-labs/kabmo-omp/schema/schema-types';
19
+
20
+ describe('OMP_SCHEMA release rows (19.3.0+)', () => {
21
+ test("19.3.0's activity enum, fullscreen rows and wait window are offered", () => {
22
+ // Measured against `omp config list --json` (659 keys) and `omp config get`
23
+ // on 19.3.0, with 499 panel entries. The panel is the only place an omp
24
+ // setting is reachable, so a schema regenerated without a row removes it.
25
+ const expected: Record<string, { type: SchemaEntry['type']; tab: string; group: string; default: unknown }> = {
26
+ 'display.toolActivity': { type: 'enum', tab: 'appearance', group: 'Display', default: 'detailed' },
27
+ 'tui.screen': { type: 'enum', tab: 'appearance', group: 'Display', default: 'inline' },
28
+ 'wait.idleTimeout': { type: 'string', tab: 'tools', group: 'Execution', default: 'ladder' },
29
+ 'gitlab.enabled': { type: 'boolean', tab: 'tools', group: 'Available Tools', default: false },
30
+ 'find.timeoutMs': { type: 'number', tab: 'tools', group: 'Find', default: 20000 },
31
+ 'compaction.handoffTimeoutSeconds': { type: 'number', tab: 'context', group: 'Compaction', default: 0 },
32
+ };
33
+ for (const [key, want] of Object.entries(expected)) {
34
+ const entry = OMP_SCHEMA.entries[key];
35
+ expect({ key, entry: entry && { type: entry.type, tab: entry.ui.tab, group: entry.ui.group, default: entry.default } }).toEqual({
36
+ key,
37
+ entry: want,
38
+ });
39
+ }
40
+ expect(OMP_SCHEMA.entries['display.toolActivity']?.values).toEqual(['detailed', 'concise', 'hidden']);
41
+ expect(OMP_SCHEMA.entries['tui.screen']?.values).toEqual(['inline', 'fullscreen']);
42
+
43
+ // The boolean this release replaced, and five keys removed outright, are
44
+ // gone from omp's registry: a stale row is a write the binary rejects.
45
+ for (const key of [
46
+ 'display.hideToolActivity', 'commands.enableClaudeUser', 'commands.enableOpencodeUser',
47
+ 'providers.antigravityEndpoint', 'tools.speculativeExecution.enabled',
48
+ 'tools.speculativeExecution.maxInFlight',
49
+ ]) {
50
+ expect(`${key}: ${String(OMP_SCHEMA.entries[key])}`).toBe(`${key}: undefined`);
51
+ }
52
+
53
+ // Defaults and enum values that moved with the release: the panel shows
54
+ // the schema's value, so a stale row would offer what omp no longer does.
55
+ expect(OMP_SCHEMA.entries['async.printWake']?.default).toBe(true);
56
+ expect(OMP_SCHEMA.entries['tools.commandNotices']?.default).toBe(false);
57
+ expect(OMP_SCHEMA.entries['tui.titleSpinner']?.default).toBe('centered');
58
+ expect(OMP_SCHEMA.entries['tui.titleSpinner']?.values).toContain('centered');
59
+ expect(OMP_SCHEMA.entries['model.toolCallLoopGuard.exemptTools']?.default).toContain('vibe_wait');
60
+ expect(OMP_SCHEMA.entries['providers.fetch']?.values).toEqual(['auto', 'local', 'parallel', 'firecrawl', 'jina']);
61
+ expect(OMP_SCHEMA.entries['snapcompact.shape']?.values).toContain('cjk16-bw');
62
+ expect(OMP_SCHEMA.entries['snapcompact.shape']?.values).not.toContain('silver16-bw');
63
+ });
64
+ });
@@ -209,11 +209,13 @@ describe('OMP_SCHEMA release rows', () => {
209
209
  entry: want,
210
210
  });
211
211
  }
212
- // `live.voice` became a free-form string that still ships the nine known
213
- // voices as options: omp's own panel renders string+options as a submenu,
214
- // and so does `RowEditor`, so the row must keep its options.
212
+ // `live.voice` became a free-form string that still ships the known voices
213
+ // as options: omp's own panel renders string+options as a submenu, and so
214
+ // does `RowEditor`, so the row must keep its options. 19.3.0 adds 17 Codex
215
+ // live voices (9 → 26); the live model itself moves to
216
+ // `gpt-live-1.1-codex`.
215
217
  expect(OMP_SCHEMA.entries['live.voice']?.type).toBe('string');
216
- expect(OMP_SCHEMA.entries['live.voice']?.ui.options).toHaveLength(9);
218
+ expect(OMP_SCHEMA.entries['live.voice']?.ui.options).toHaveLength(26);
217
219
  // The generator reads the raw definition, where the marker is `credential`
218
220
  // (not the `Setting` instance's `isCredential` getter). Reading the getter
219
221
  // left every credential row in plain text — including this release's key.
@@ -14,11 +14,21 @@ import { WAIT_LADDER_MS, waitIdleLabel, waitIdleOf } from '@/shared/lib/omp/sess
14
14
 
15
15
  describe('the idle ladder', () => {
16
16
  test('mirrors the two-rung ladder omp 19.0.0 gives a blocking wait', () => {
17
- // The 30-minute cap is GONE, and 19.0.0 cut the five rungs to two: a first
18
- // idle wait gets 5 s, every back-to-back one 4 minutes.
17
+ // omp cut the five rungs to two: a first idle wait gets 5 s, every
18
+ // back-to-back one 4 minutes. 19.3.0 stretches the TOP rung to the prompt
19
+ // cache lifetime less a minute (capped at 30m), which is a window the
20
+ // result states in prose — the base ladder is still these two values.
19
21
  expect([...WAIT_LADDER_MS]).toEqual([5_000, 240_000]);
20
22
  });
21
23
 
24
+ test('reads the stretched top window 19.3.0 can report', () => {
25
+ // A cache lifetime longer than five minutes makes a back-to-back job or
26
+ // service wait block up to 30 minutes before it returns an idle sentence.
27
+ expect(
28
+ waitIdleOf('No job finished within 29m. Nothing else left? Call `wait` again right away: it then blocks up to 30m.'),
29
+ ).toEqual({ windowMs: 1_740_000 });
30
+ });
31
+
22
32
  test('reads the window omp names on a first idle return', () => {
23
33
  // The FIRST rung carries no notice, only its own sentence.
24
34
  expect(waitIdleOf('No reply within 5.0s.')).toEqual({ windowMs: 5_000 });
@@ -11,8 +11,11 @@
11
11
  * returns when its window elapses, and the window climbs one rung for every
12
12
  * back-to-back idle wait, restarting at the floor once the agent has done other
13
13
  * work in between. omp 19.0.0 standardized the ladder to two rungs — 5 s for a
14
- * first idle wait, 4 minutes for each back-to-back one — so there is no ceiling
15
- * to count down to any more.
14
+ * first idle wait, 4 minutes for each back-to-back one — so there is no total
15
+ * budget to count down to any more. 19.3.0 stretches the top rung to the
16
+ * session's prompt-cache lifetime less a minute (capped at 30 minutes), so a
17
+ * back-to-back job or service wait can report up to `30m` where it used to say
18
+ * `4m`; this module reads whatever the sentence says.
16
19
  *
17
20
  * Neither the rung nor the streak is a field on the result: both are stated in
18
21
  * omp's prose, which is what this module parses. It lives beside `wait.ts`
@@ -36,10 +39,12 @@ import { formatToolMs } from '@/shared/lib/chat/tool/labels';
36
39
  * (`WAIT_LADDER_MS` in `tools/wait.ts`). 19.1.0 skips the floor for JOB waits
37
40
  * in a top-level interactive session — an early return there can only end its
38
41
  * turn, one request more than blocking for the result — so the first job wait
39
- * in a Kabmo chat already reports the 4-minute window. A session recorded
40
- * before the pin still names the old windows, so this list is a reference for
41
- * the current pin only: the window a result reports is always parsed from
42
- * omp's sentence, never derived from the rung index.
42
+ * in a Kabmo chat already reports at least the 4-minute window. 19.3.0 makes
43
+ * the top rung a FLOOR when the prompt cache is known to live longer, capped at
44
+ * 30 minutes. A session recorded before the pin still names the old windows, so
45
+ * this list is a reference for the current pin only: the window a result
46
+ * reports is always parsed from omp's sentence, never derived from the rung
47
+ * index.
43
48
  */
44
49
  export const WAIT_LADDER_MS = [5_000, 240_000] as const;
45
50
 
@@ -1 +0,0 @@
1
- import{pg}from"./index-p8bta9ae.js";import"./index-4kchzh9y.js";import"./index-exyg9sna.js";export{pg as MergeDiffView};
@@ -1 +0,0 @@
1
- import"./index-n5194pe6.js";import"./index-40fdtqvw.js";import{eb}from"./index-k4kwrze2.js";export{eb as diagram};
@@ -1 +0,0 @@
1
- import{_h}from"./index-jvn2xfpt.js";export{_h as default};
@@ -1 +0,0 @@
1
- import{Ih}from"./index-jvn2xfpt.js";export{Ih as default};