@kabmo-labs/kabmo 0.53.2 → 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 (146) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +538 -527
  3. package/dist/client/static/js/{Body-vaa10tcd.js → Body-a4dwe3hh.js} +1 -1
  4. package/dist/client/static/js/{CsvGrid-wabx4e6w.js → CsvGrid-ppj80brw.js} +1 -1
  5. package/dist/client/static/js/{DocxView-22b3mhh5.js → DocxView-ef0bd2pg.js} +1 -1
  6. package/dist/client/static/js/{DrawioView-e02qhkp2.js → DrawioView-44tpkzbd.js} +1 -1
  7. package/dist/client/static/js/{HtmlPreview-q7hwcf4s.js → HtmlPreview-w654aykz.js} +1 -1
  8. package/dist/client/static/js/{ImageView-fxb60ge7.js → ImageView-kg0skt5s.js} +1 -1
  9. package/dist/client/static/js/{LayoutWrapper-cey5agsf.js → LayoutWrapper-qepkrtd8.js} +2 -2
  10. package/dist/client/static/js/MergeDiffView-n2h8vv0j.js +1 -0
  11. package/dist/client/static/js/{Modal-e4yq7p5f.js → Modal-8d299emm.js} +17 -17
  12. package/dist/client/static/js/{PdfView-pf3angsq.js → PdfView-eq7fnqa2.js} +1 -1
  13. package/dist/client/static/js/{SessionsView-mcvhpx0b.js → SessionsView-tedh2es3.js} +1 -1
  14. package/dist/client/static/js/{SheetView-5ha5vvsr.js → SheetView-5xm33kgk.js} +1 -1
  15. package/dist/client/static/js/{SvgPreview-45wqjw0b.js → SvgPreview-tp1m8r4t.js} +1 -1
  16. package/dist/client/static/js/{abnfDiagram-O67JEVCF-gnf6krbs.js → abnfDiagram-O67JEVCF-xppr9jf1.js} +1 -1
  17. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-00fd0wsg.js → architectureDiagram-NJMV4G6O-s23e6vtk.js} +1 -1
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-9c2sm96a.js → blockDiagram-BEXU5L5S-7ws8yq9e.js} +1 -1
  19. package/dist/client/static/js/{c4Diagram-YGBWAQC7-pemygn0s.js → c4Diagram-YGBWAQC7-517yhfzj.js} +1 -1
  20. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-h7r3sx3s.js → classDiagram-v2-NBCMYWYE-tcad3rst.js} +1 -1
  21. package/dist/client/static/js/{cose-bilkent-JH36ORCC-krx9crwv.js → cose-bilkent-JH36ORCC-a76vf82p.js} +1 -1
  22. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-5rp2btew.js → cynefinDiagram-VND7K2PF-9kety453.js} +1 -1
  23. package/dist/client/static/js/{dagre-6A5THRUB-q57cnz52.js → dagre-6A5THRUB-6g6gsp6b.js} +1 -1
  24. package/dist/client/static/js/{diagram-22UHCM2B-0bptn06k.js → diagram-22UHCM2B-ngj4fyg3.js} +1 -1
  25. package/dist/client/static/js/{diagram-3UASUU5V-60snxawz.js → diagram-3UASUU5V-xw2m99qa.js} +1 -1
  26. package/dist/client/static/js/{diagram-ATOU4E4O-bb0kewfp.js → diagram-ATOU4E4O-hz3bd083.js} +2 -2
  27. package/dist/client/static/js/{diagram-CDSNMT55-3cdkns0z.js → diagram-CDSNMT55-vfhtemve.js} +3 -3
  28. package/dist/client/static/js/{diagram-MLGK6HIB-03mbhzeq.js → diagram-MLGK6HIB-22cjvj5g.js} +1 -1
  29. package/dist/client/static/js/{diagram-MPIPVDR6-bcvzqqf4.js → diagram-MPIPVDR6-xv8fsecp.js} +2 -2
  30. package/dist/client/static/js/{dockerfile-7kqkk4tz.js → dockerfile-491tyqmj.js} +1 -1
  31. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-sg6kwnbx.js → ebnfDiagram-ZINNZB2B-m6mkn986.js} +1 -1
  32. package/dist/client/static/js/{elk-276RUBZZ-5b8v0sdv.js → elk-276RUBZZ-jccw706n.js} +1 -1
  33. package/dist/client/static/js/{erDiagram-OPXOYQCR-xbs156j5.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-4p7pfk6c.js → ganttDiagram-FUAMR5RP-veweech7.js} +1 -1
  36. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-3xqwr9pf.js → gitGraphDiagram-X574FWY7-7dyqcj8r.js} +2 -2
  37. package/dist/client/static/js/{index-p75b7phb.js → index-088gwjbz.js} +1 -1
  38. package/dist/client/static/js/{index-5qtnmn76.js → index-0ak5wdz1.js} +1 -1
  39. package/dist/client/static/js/{index-pak6t03c.js → index-0qmpqtp2.js} +1 -1
  40. package/dist/client/static/js/{index-26a4afcr.js → index-0xh8402w.js} +1 -1
  41. package/dist/client/static/js/{index-yf5a6t3p.js → index-2asa0faw.js} +1 -1
  42. package/dist/client/static/js/{index-gzz6snng.js → index-2cfw7wem.js} +1 -1
  43. package/dist/client/static/js/{index-e2esj214.js → index-39mr4tym.js} +1 -1
  44. package/dist/client/static/js/{index-hp3s5r3g.js → index-3x88fxzj.js} +1 -1
  45. package/dist/client/static/js/{index-trrmbq0h.js → index-4m94cbms.js} +1 -1
  46. package/dist/client/static/js/{index-rtpg4t84.js → index-5701gj1f.js} +1 -1
  47. package/dist/client/static/js/{index-pdkt3r4r.js → index-60fjqzdw.js} +1 -1
  48. package/dist/client/static/js/{index-mtjbp5ga.js → index-637my5h0.js} +1 -1
  49. package/dist/client/static/js/{index-c8ta3k4g.js → index-7ckzdf4r.js} +158 -156
  50. package/dist/client/static/js/{index-1d8ff4t7.js → index-7ehep28z.js} +2 -2
  51. package/dist/client/static/js/{index-hwq7zgqd.js → index-bfy437re.js} +1 -1
  52. package/dist/client/static/js/{index-zc3snsr9.js → index-bhst1c2x.js} +1 -1
  53. package/dist/client/static/js/{index-nnhs52db.js → index-cz80n8yc.js} +1 -1
  54. package/dist/client/static/js/{index-ayx3q8t9.js → index-d9dz0wt0.js} +1 -1
  55. package/dist/client/static/js/{index-3bmn5cc5.js → index-dg714jam.js} +1 -1
  56. package/dist/client/static/js/{index-z7gd7nvb.js → index-e6tjaccf.js} +1 -1
  57. package/dist/client/static/js/{index-vwxt5ss9.js → index-gsw1zh30.js} +1 -1
  58. package/dist/client/static/js/{index-x0y2c61e.js → index-j0qt8gaj.js} +1 -1
  59. package/dist/client/static/js/{index-45vcpqp9.js → index-kfcpkx7h.js} +1 -1
  60. package/dist/client/static/js/{index-cy6ceab8.js → index-na95tr1k.js} +1 -1
  61. package/dist/client/static/js/{index-ng3e6k6x.js → index-nzjc24v9.js} +1 -1
  62. package/dist/client/static/js/{index-3amzzsdk.js → index-pqmvhqmj.js} +11 -11
  63. package/dist/client/static/js/{index-0btbxkxf.js → index-r51fqzb5.js} +1 -1
  64. package/dist/client/static/js/{index-cj8v7b50.js → index-sx5x2q80.js} +1 -1
  65. package/dist/client/static/js/{index-qj9tcz44.js → index-tk1vr8q2.js} +1 -1
  66. package/dist/client/static/js/{index-j9t5xc3y.js → index-trpn9gxs.js} +1 -1
  67. package/dist/client/static/js/{index-1regq9wd.js → index-twjq786a.js} +1 -1
  68. package/dist/client/static/js/{index-xqkcx4az.js → index-wa234c7k.js} +1 -1
  69. package/dist/client/static/js/{index-mgs5nscx.js → index-wp7tsava.js} +1 -1
  70. package/dist/client/static/js/{index-nmhwjwmt.js → index-wvqwzgpx.js} +1 -1
  71. package/dist/client/static/js/{index-jg6ecfc7.js → index-xbvjpa60.js} +2 -2
  72. package/dist/client/static/js/{index-jf8zcg99.js → index-xm3691yp.js} +4 -4
  73. package/dist/client/static/js/{index-cysdvwqw.js → index-xq78fj64.js} +1 -1
  74. package/dist/client/static/js/{index-ryww3xxj.js → index-zjc8yfbe.js} +1 -1
  75. package/dist/client/static/js/{infoDiagram-VRGFBTTK-c362sv3t.js → infoDiagram-VRGFBTTK-ksz9cvq3.js} +1 -1
  76. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-yc8ts8wj.js → ishikawaDiagram-OU5B5YK6-g8symmrp.js} +1 -1
  77. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-178c75fy.js → journeyDiagram-ZHPQQLJL-qs2e3hdf.js} +1 -1
  78. package/dist/client/static/js/{kanban-definition-PNTS6WVX-w6g3n001.js → kanban-definition-PNTS6WVX-pzef80sz.js} +1 -1
  79. package/dist/client/static/js/{mermaid.core-vcdgn378.js → mermaid.core-chfcvkkc.js} +3 -3
  80. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-t9e8arca.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-nehn0x9n.js → pegDiagram-GJSIUBJH-m8199cy0.js} +1 -1
  84. package/dist/client/static/js/{pieDiagram-5QR66LMP-p1t3ctd4.js → pieDiagram-5QR66LMP-wqz5k5w6.js} +2 -2
  85. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-614rtbfe.js → quadrantDiagram-O4NWA36T-rjszd8an.js} +1 -1
  86. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-2vpr6pw8.js → railroadDiagram-XR7U4H2S-qv0be7dh.js} +1 -1
  87. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-b91s5q3p.js → requirementDiagram-PLB6GJNP-b87kqbr7.js} +1 -1
  88. package/dist/client/static/js/{rust-jj206pb7.js → rust-m7ma3tq9.js} +1 -1
  89. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-4101kt9r.js → sankeyDiagram-IPEJSGJF-dh5we479.js} +1 -1
  90. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-yq0cxg8c.js → sequenceDiagram-PO4LG4MO-e6fg0x45.js} +1 -1
  91. package/dist/client/static/js/{sizeCapture-INFHLROL-jkvq39vz.js → sizeCapture-INFHLROL-mam6cagq.js} +1 -1
  92. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-y0h7w5rw.js → stateDiagram-v2-GCMORJYK-htwar22v.js} +1 -1
  93. package/dist/client/static/js/{swimlanes-2SLR337P-1y073wzx.js → swimlanes-2SLR337P-5g26cnkr.js} +1 -1
  94. package/dist/client/static/js/{swimlanesDiagram-TC7HE7FX-8ahz3c68.js → swimlanesDiagram-TC7HE7FX-rseba3zs.js} +1 -1
  95. package/dist/client/static/js/{timeline-definition-EJHVYXUP-yjb0g0ys.js → timeline-definition-EJHVYXUP-5km8n8mj.js} +1 -1
  96. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-8xjkxrkv.js → usecaseDiagram-POWQR4AR-0vt6ms5g.js} +1 -1
  97. package/dist/client/static/js/{vennDiagram-UO4OBE2U-18wjbwtg.js → vennDiagram-UO4OBE2U-k425105a.js} +2 -2
  98. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-xqrfsrwp.js → wardleyDiagram-VNRHLVJA-s0gd4jg1.js} +2 -2
  99. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-azygghkz.js → xychartDiagram-PMCCYNJV-2nrdzp7p.js} +2 -2
  100. package/package.json +5 -5
  101. package/src/client/App.tsx +4 -0
  102. package/src/client/bootstrap.d.ts +11 -0
  103. package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +2 -0
  104. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AgentAdmin.test.tsx +67 -0
  105. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AgentAdmin.tsx +89 -0
  106. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.test.tsx +91 -0
  107. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +8 -2
  108. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.test.ts +9 -0
  109. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.tsx +16 -1
  110. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/WebSearch.test.tsx +59 -0
  111. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/WebSearch.tsx +11 -1
  112. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/agent-admin-rows.test.ts +119 -0
  113. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/agent-admin-rows.ts +174 -0
  114. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/task-rows.ts +14 -2
  115. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.test.ts +22 -0
  116. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +14 -0
  117. package/src/client/data/settings/omp-schema.json +455 -165
  118. package/src/client/hooks/shell/last-opened-session.test.ts +166 -0
  119. package/src/client/hooks/shell/last-opened-session.ts +74 -0
  120. package/src/client/lib/router/open-session.test.ts +8 -0
  121. package/src/client/lib/router/open-session.ts +9 -4
  122. package/src/client/main.tsx +7 -0
  123. package/src/server/lib/db/schema.ts +10 -0
  124. package/src/server/lib/sessions/last-opened-client.server.ts +86 -0
  125. package/src/server/lib/sessions/last-opened-client.test.ts +91 -0
  126. package/src/server/lib/sessions/last-opened.server.test.ts +127 -0
  127. package/src/server/lib/sessions/last-opened.server.ts +129 -0
  128. package/src/server/plugins/ssr.ts +40 -17
  129. package/src/server/routes/fs/raw.test.ts +33 -0
  130. package/src/server/routes/fs/raw.ts +31 -11
  131. package/src/server/routes/sessions/index.ts +14 -0
  132. package/src/server/routes/sessions/last-opened.test.ts +139 -0
  133. package/src/server/routes/sessions/last-opened.ts +66 -0
  134. package/src/shared/lib/chat/timeline/tool-phrases.test.ts +4 -0
  135. package/src/shared/lib/chat/timeline/tool-phrases.ts +2 -0
  136. package/src/shared/lib/models/provider/glyph.test.ts +13 -11
  137. package/src/shared/lib/models/provider/glyph.ts +1 -0
  138. package/src/shared/lib/models/provider/label.ts +3 -0
  139. package/src/shared/lib/omp/config/schema-releases-19-3.test.ts +64 -0
  140. package/src/shared/lib/omp/config/schema-releases.test.ts +21 -4
  141. package/src/shared/lib/omp/session/wait-idle.test.ts +12 -2
  142. package/src/shared/lib/omp/session/wait-idle.ts +11 -6
  143. package/dist/client/static/js/MergeDiffView-1z9mwf73.js +0 -1
  144. package/dist/client/static/js/flowDiagram-KWPJA3E3-sasgvf55.js +0 -1
  145. package/dist/client/static/js/one-dark-pro-17hh3q12.js +0 -1
  146. package/dist/client/static/js/one-light-cntgvscy.js +0 -1
@@ -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.
@@ -304,4 +306,19 @@ describe('OMP_SCHEMA release rows', () => {
304
306
  // panel's own dropdown.
305
307
  expect(OMP_SCHEMA.entries['prewalk.auto']?.values).toContain('escalate');
306
308
  });
309
+
310
+ test("19.2.1's background-reaping row is offered", () => {
311
+ // One net row. The reminder and session-end reaping are off under RPC (the
312
+ // description says so), so nothing in Kabmo reads it — but the panel is the
313
+ // only place an omp setting is reachable, and a schema regenerated without
314
+ // the row removes it entirely.
315
+ const entry = OMP_SCHEMA.entries['bash.reapBackground'];
316
+ expect(entry && { type: entry.type, tab: entry.ui.tab, group: entry.ui.group, default: entry.default }).toEqual({
317
+ type: 'boolean',
318
+ tab: 'shell',
319
+ group: 'Bash',
320
+ default: true,
321
+ });
322
+ expect(entry?.ui.description).toContain('off in RPC mode');
323
+ });
307
324
  });
@@ -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-qj9tcz44.js";import"./index-4kchzh9y.js";import"./index-mtjbp5ga.js";export{pg as MergeDiffView};
@@ -1 +0,0 @@
1
- import"./index-3amzzsdk.js";import"./index-26a4afcr.js";import{eb}from"./index-5qtnmn76.js";export{eb as diagram};
@@ -1 +0,0 @@
1
- import{_h}from"./index-c8ta3k4g.js";export{_h as default};
@@ -1 +0,0 @@
1
- import{Ih}from"./index-c8ta3k4g.js";export{Ih as default};