@kabmo-labs/kabmo 0.42.2 → 0.43.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 +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +721 -675
- package/dist/client/static/js/{CsvGrid-g6rek8y9.js → CsvGrid-g67pk2zy.js} +2 -2
- package/dist/client/static/js/{DocxView-41t9ryws.js → DocxView-pyh6p2kb.js} +4 -4
- package/dist/client/static/js/{DrawioView-mfxhfz1h.js → DrawioView-g48r6y2m.js} +2 -2
- package/dist/client/static/js/ImageView-rnzf5tve.js +1 -0
- package/dist/client/static/js/LayoutWrapper-rekrgth6.js +2 -0
- package/dist/client/static/js/Modal-edw446r8.js +59 -0
- package/dist/client/static/js/{PdfView-bek8k888.js → PdfView-6z3cgj37.js} +1 -1
- package/dist/client/static/js/SessionsView-e84tjbcr.js +1 -0
- package/dist/client/static/js/{SheetView-vezssf6b.js → SheetView-64076z1j.js} +13 -13
- package/dist/client/static/js/{SvgPreview-f1qaw73k.js → SvgPreview-dmpgavgd.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-4qn94h52.js → abnfDiagram-O67JEVCF-nfz5z1vw.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-7j23x20s.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-tbewzdya.js → architectureDiagram-NJMV4G6O-jra2jyzw.js} +11 -11
- package/dist/client/static/js/{astro-nn7xg0we.js → astro-dpfdhc5e.js} +1 -1
- package/dist/client/static/js/bash-vv2ysp0a.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-njgnwckz.js → blockDiagram-BEXU5L5S-3szktxam.js} +7 -7
- package/dist/client/static/js/c-8jf64j6h.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-f58pcvbk.js → c4Diagram-YGBWAQC7-xe9vbppt.js} +6 -6
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-52g73vyw.js → classDiagram-v2-NBCMYWYE-egzhj1xn.js} +6 -6
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-ptdnshzh.js → cose-bilkent-JH36ORCC-dfrk1wnr.js} +1 -1
- package/dist/client/static/js/cpp-vh94zee0.js +1 -0
- package/dist/client/static/js/css-p57h1fme.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-me5xnx6a.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-qabfdkzr.js → cynefinDiagram-VND7K2PF-xefpcmpg.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-kyf5jetf.js → dagre-6A5THRUB-vtzjnrt9.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-bxrsjtv9.js → diagram-22UHCM2B-4vvn790v.js} +16 -16
- package/dist/client/static/js/{diagram-3UASUU5V-0f41s00j.js → diagram-3UASUU5V-tmht3bew.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-0z1zx9h1.js → diagram-ATOU4E4O-p5wa5ztx.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-znrmr6bk.js → diagram-CDSNMT55-8myesjfc.js} +5 -5
- package/dist/client/static/js/{diagram-MLGK6HIB-jfe2jhk0.js → diagram-MLGK6HIB-9t3x2d5f.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-2kaawmwa.js → diagram-MPIPVDR6-8ahgnmhy.js} +3 -3
- package/dist/client/static/js/{dockerfile-12exatm9.js → dockerfile-x8aa0543.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-s5n37rfp.js → ebnfDiagram-ZINNZB2B-5semw111.js} +1 -1
- package/dist/client/static/js/{elixir-szk51ehr.js → elixir-5ewfhvfh.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-433rd9fp.js → elk-276RUBZZ-jmhs58ww.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-key6ah0b.js → erDiagram-OPXOYQCR-31wvbpdr.js} +8 -8
- package/dist/client/static/js/{erlang-zwy7cqdk.js → erlang-jqqa3ehb.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-5zbvjj84.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-36ygrbvm.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-4efkhmca.js → ganttDiagram-FUAMR5RP-c2dycjrf.js} +6 -6
- package/dist/client/static/js/gitGraph-4MIJSDKK-tjhkv71w.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-ac376y2k.js → gitGraphDiagram-X574FWY7-y4k4pdd8.js} +14 -14
- package/dist/client/static/js/graphql-kesh8gk0.js +1 -0
- package/dist/client/static/js/html-sxpfydga.js +1 -0
- package/dist/client/static/js/{index-e1yz59fa.js → index-0c6vpk89.js} +2 -2
- package/dist/client/static/js/{index-0pabfaac.js → index-0q2qfcjn.js} +1 -1
- package/dist/client/static/js/{index-p0ez6hqd.js → index-181p91hf.js} +1 -1
- package/dist/client/static/js/{index-zs73zwjz.js → index-2b46dzw8.js} +4 -4
- package/dist/client/static/js/{index-02543wk3.js → index-2cbnjc32.js} +2 -2
- package/dist/client/static/js/{index-7a2efrbj.js → index-3588r3wg.js} +2 -2
- package/dist/client/static/js/{index-4cncqz8j.js → index-38v0781h.js} +2 -2
- package/dist/client/static/js/{index-z78bzryw.js → index-48gh56ka.js} +3 -3
- package/dist/client/static/js/{index-0e9nkc0g.js → index-48pb18zj.js} +2 -2
- package/dist/client/static/js/{index-77t0nvt1.js → index-4rv388z7.js} +2 -2
- package/dist/client/static/js/index-52xmdeh2.js +1 -0
- package/dist/client/static/js/{index-5jnvz9hw.js → index-6fpd55cq.js} +2 -2
- package/dist/client/static/js/{index-nh29fkk9.js → index-7dp90ad1.js} +2 -2
- package/dist/client/static/js/{index-yzda8j2d.js → index-8kqepehd.js} +12 -12
- package/dist/client/static/js/{index-raca8tsh.js → index-aar68x31.js} +4 -4
- package/dist/client/static/js/{index-pxtff3ez.js → index-bvjct7sp.js} +2 -2
- package/dist/client/static/js/{index-cz50ha6x.js → index-cgzw43bc.js} +78 -78
- package/dist/client/static/js/{index-50mdqev0.js → index-cje5gg45.js} +1 -1
- package/dist/client/static/js/{index-zndbhb9w.js → index-cjhvtzdd.js} +2 -2
- package/dist/client/static/js/{index-8b3t2y77.js → index-cqnpsw2m.js} +2 -2
- package/dist/client/static/js/{index-r9db1gsf.js → index-dkwhs38j.js} +2 -2
- package/dist/client/static/js/{index-pkes9492.js → index-e7yf273s.js} +2 -2
- package/dist/client/static/js/{index-8kbp24xg.js → index-efra065v.js} +1 -1
- package/dist/client/static/js/index-f77c3ag0.js +479 -0
- package/dist/client/static/js/{index-yjmm73jm.js → index-f7djda1g.js} +2 -2
- package/dist/client/static/js/{index-8k7vjp8b.js → index-fbcg8y95.js} +1 -1
- package/dist/client/static/js/{index-pysqpc5n.js → index-fg965t62.js} +2 -2
- package/dist/client/static/js/{index-qsw5edtk.js → index-fjnkzk12.js} +5 -5
- package/dist/client/static/js/{index-s4gv0rpk.js → index-g3shdymf.js} +1 -1
- package/dist/client/static/js/{index-qx6x4z0y.js → index-gmnmnfm0.js} +2 -2
- package/dist/client/static/js/{index-gp57dx2v.js → index-h5n1btqy.js} +1 -1
- package/dist/client/static/js/{index-r8cc80w5.js → index-jz93j0at.js} +2 -2
- package/dist/client/static/js/{index-dtj73vs1.js → index-kc5znr75.js} +2 -2
- package/dist/client/static/js/index-m1n4v0z7.js +9 -0
- package/dist/client/static/js/{index-1t5ybx9v.js → index-m94f4ngb.js} +3 -3
- package/dist/client/static/js/{index-dfqmwm7j.js → index-m9s9rg5k.js} +2 -2
- package/dist/client/static/js/{index-gsxebrq9.js → index-n9scbxy5.js} +2 -2
- package/dist/client/static/js/{index-zs7sjv6x.js → index-nt7nhchn.js} +1 -1
- package/dist/client/static/js/{index-v3f7we4n.js → index-pt8440xh.js} +22 -22
- package/dist/client/static/js/{index-b42t14wk.js → index-q81rxwh7.js} +35 -35
- package/dist/client/static/js/{index-ktbrmp29.js → index-qhytrsyb.js} +2 -2
- package/dist/client/static/js/index-rn8w29pv.js +2 -0
- package/dist/client/static/js/{index-1y3rzw6b.js → index-s00j9042.js} +1 -1
- package/dist/client/static/js/{index-hga3e13s.js → index-s78n0dtv.js} +2 -2
- package/dist/client/static/js/index-s7rfbydk.js +4 -0
- package/dist/client/static/js/{index-03pyvmcz.js → index-sesghshh.js} +2 -2
- package/dist/client/static/js/{index-ykfd2fyj.js → index-sg6sz3g8.js} +1 -1
- package/dist/client/static/js/index-vcrh95gf.css +1 -0
- package/dist/client/static/js/{index-82vk27q1.js → index-vyw4tbn8.js} +2 -2
- package/dist/client/static/js/{index-dzmar8jr.js → index-w5rw8f7w.js} +1 -1
- package/dist/client/static/js/{index-f33c4paw.js → index-x6v37h3j.js} +1 -1
- package/dist/client/static/js/{index-b0v6gwym.js → index-ycks7gyg.js} +2 -2
- package/dist/client/static/js/{index-hw14rhen.js → index-ynaxep06.js} +2 -2
- package/dist/client/static/js/{index-rab39785.js → index-ys0xpw3q.js} +2 -2
- package/dist/client/static/js/{index-feffxxss.js → index-yvgbr7ek.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-m6qz24p8.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-4e7ej63f.js → infoDiagram-VRGFBTTK-z3pqx7w8.js} +1 -1
- package/dist/client/static/js/ini-1x0ad976.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-k3yet1ec.js → ishikawaDiagram-OU5B5YK6-f5v6z8yr.js} +4 -4
- package/dist/client/static/js/java-3944nq02.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-qe352kyd.js → journeyDiagram-ZHPQQLJL-js1yxatk.js} +5 -5
- package/dist/client/static/js/json-g5ggnd94.js +1 -0
- package/dist/client/static/js/jsx-f6p72qpc.js +1 -0
- package/dist/client/static/js/{julia-2eekpjq8.js → julia-0h9krgsd.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-58hag75n.js → kanban-definition-PNTS6WVX-m0a6069c.js} +5 -5
- package/dist/client/static/js/lua-edn2b3wn.js +1 -0
- package/dist/client/static/js/markdown-9dhg1fax.js +1 -0
- package/dist/client/static/js/{mermaid.core-6e89h6vm.js → mermaid.core-6xvbnm63.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-ncsam2fm.js → mindmap-definition-NLK3R4M7-a9f9yzc0.js} +4 -4
- package/dist/client/static/js/one-dark-pro-hteqzfb0.js +1 -0
- package/dist/client/static/js/one-light-dapnh0rs.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-ng6wq5xj.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-b5ckc39d.js → pegDiagram-GJSIUBJH-4v4pf1h1.js} +1 -1
- package/dist/client/static/js/{perl-dtn1fccw.js → perl-rptyx23q.js} +1 -1
- package/dist/client/static/js/{php-7av78hch.js → php-sagvq3wz.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-rf6jhxf6.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-s4d47ve8.js → pieDiagram-5QR66LMP-a54yrmfm.js} +3 -3
- package/dist/client/static/js/properties-fcmj08pv.js +1 -0
- package/dist/client/static/js/python-532d8ezm.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-zm0ekvjz.js → quadrantDiagram-O4NWA36T-1twhvnp2.js} +6 -6
- package/dist/client/static/js/r-ptmdxs2a.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-ygp6hxq4.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-rxgnrb2g.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-xkv52a2p.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-bvcktbqh.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-9c3v7jsq.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-52vdqf53.js → railroadDiagram-XR7U4H2S-83tqfdcy.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-7kf8bmk9.js → requirementDiagram-PLB6GJNP-73e3pzw6.js} +4 -4
- package/dist/client/static/js/{ruby-s2bqr910.js → ruby-9qyx7knh.js} +1 -1
- package/dist/client/static/js/{rust-q98kssv3.js → rust-jds4e4r7.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-bcb9f54a.js → sankeyDiagram-IPEJSGJF-1bzwj6sb.js} +6 -6
- package/dist/client/static/js/{sass-bm32bb5k.js → sass-07rteya0.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-76ywvj7g.js → sequenceDiagram-PO4LG4MO-yh3h988k.js} +19 -19
- package/dist/client/static/js/{sizeCapture-INFHLROL-p9bsf5dc.js → sizeCapture-INFHLROL-1n121yp6.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-1ecfb3fs.js → stateDiagram-v2-GCMORJYK-0tdrzn06.js} +6 -6
- package/dist/client/static/js/{svelte-ztkaww47.js → svelte-w365cpwa.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-2pyjr946.js → swimlanes-2SLR337P-77n1ttdw.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-akjqm31r.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-4csxwmn2.js → timeline-definition-EJHVYXUP-b6r0k3e8.js} +2 -2
- package/dist/client/static/js/treeView-Q6P3EWNA-fb58a7z1.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-ej4qhksx.js +1 -0
- package/dist/client/static/js/typescript-683kkkaw.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-0p1jnbsn.js → usecaseDiagram-POWQR4AR-efq58m3m.js} +43 -43
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-y1hgdet4.js → vennDiagram-UO4OBE2U-ad4gvd5r.js} +5 -5
- package/dist/client/static/js/{vue-cbqm4bed.js → vue-d6cesny1.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-mkp0kanv.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-p578yrgm.js → wardleyDiagram-VNRHLVJA-v89tys2p.js} +4 -4
- package/dist/client/static/js/xml-6ct32gys.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-b08b4ah0.js → xychartDiagram-PMCCYNJV-xtgzmknw.js} +5 -5
- package/dist/client/static/js/yaml-1d5m3bfj.js +1 -0
- package/marketplace/plugins/command-runner/package.json +2 -2
- package/marketplace/plugins/command-runner/src/app.test.tsx +161 -0
- package/marketplace/plugins/command-runner/src/app.tsx +37 -3
- package/marketplace/plugins/command-runner/src/panel/Glyph.tsx +22 -4
- package/marketplace/plugins/git-forge/package.json +2 -2
- package/marketplace/plugins/git-forge/src/panel/Glyph.tsx +22 -3
- package/marketplace/plugins/git-forge/src/panel/index.tsx +21 -3
- package/marketplace/plugins/git-forge/src/panel/refresh.test.tsx +192 -0
- package/marketplace/plugins/git-forge/src/panel/use-forge.ts +4 -2
- package/marketplace/plugins/git-forge/src/panel/write.test.tsx +21 -0
- package/marketplace/plugins/stats/package.json +2 -2
- package/marketplace/plugins/stats/src/RefreshButton.tsx +9 -7
- package/marketplace/plugins/stats/src/app.tsx +15 -1
- package/marketplace/plugins/stats/src/refresh.test.tsx +166 -0
- package/package.json +1 -1
- package/src/client/components/common/anchored-menu/index.tsx +26 -8
- package/src/client/components/common/context-usage-button/McpSection.test.tsx +34 -5
- package/src/client/components/common/context-usage-button/McpSection.tsx +25 -3
- package/src/client/components/common/harness-glyph/brands.ts +3 -0
- package/src/client/components/common/harness-glyph/omo.ts +22 -0
- package/src/client/components/common/server-control/Panel.tsx +24 -86
- package/src/client/components/common/server-control/Row.tsx +98 -0
- package/src/client/components/common/server-control/index.test.tsx +69 -9
- package/src/client/components/layout/VisibilityMenu.tsx +18 -6
- package/src/client/components/layout/new-workspace-host/index.test.tsx +84 -0
- package/src/client/components/layout/new-workspace-host/index.tsx +35 -0
- package/src/client/components/mobile/header-titlebar.test.tsx +38 -3
- package/src/client/components/settings/Sidebar.tsx +2 -1
- package/src/client/components/settings/categories/GitSettings.tsx +31 -0
- package/src/client/components/settings/categories/git-settings/CommitMessageSection.tsx +292 -0
- package/src/client/components/settings/categories/git-settings/IdentitySection.tsx +215 -0
- package/src/client/components/settings/category-content.tsx +3 -0
- package/src/client/components/workspace/chat-timeline/MessageItem.tsx +8 -0
- package/src/client/components/workspace/chat-timeline/MessageList.test.ts +55 -2
- package/src/client/components/workspace/chat-timeline/MessageList.tsx +13 -1
- package/src/client/components/workspace/chat-timeline/PendingChatView.tsx +56 -50
- package/src/client/components/workspace/chat-timeline/ThinkingSection.test.tsx +38 -2
- package/src/client/components/workspace/chat-timeline/ThinkingSection.tsx +13 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.test.tsx +50 -0
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +20 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +21 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +2 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +1 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/TaskResult.tsx +18 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +3 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/task-rows.ts +47 -0
- package/src/client/components/workspace/git-panel/CommitBox.test.tsx +98 -0
- package/src/client/components/workspace/git-panel/CommitBox.tsx +68 -3
- package/src/client/components/workspace/git-panel/index.test.ts +12 -0
- package/src/client/components/workspace/git-panel/index.tsx +20 -1
- package/src/client/components/workspace/repo-picker/index.test.tsx +20 -0
- package/src/client/components/workspace/repo-picker/index.tsx +5 -6
- package/src/client/data/settings/omp-schema.json +134 -8
- package/src/client/hooks/chat/context/mcp.ts +19 -1
- package/src/client/hooks/chat/omp/index.ts +2 -6
- package/src/client/hooks/chat/timeline/jump-rail.ts +1 -0
- package/src/client/hooks/chat/timeline/row-window.test.ts +38 -3
- package/src/client/hooks/chat/timeline/row-window.ts +33 -9
- package/src/client/hooks/chat/timeline/scroll-geometry.ts +19 -1
- package/src/client/hooks/chat/timeline/scroll.ts +15 -0
- package/src/client/hooks/chat/timeline/thinking-open.ts +10 -4
- package/src/client/hooks/workspace/commit-box.test.ts +62 -1
- package/src/client/hooks/workspace/commit-box.ts +94 -2
- package/src/client/hooks/workspace/git-panel-data.ts +15 -7
- package/src/client/hooks/workspace/repo-scope/index.test.ts +10 -3
- package/src/client/hooks/workspace/repo-scope/index.ts +21 -9
- package/src/client/lib/plugins/repo-scope-service.ts +7 -25
- package/src/server/lib/changes/capture-client-write.server.ts +45 -0
- package/src/server/lib/changes/capture.server.ts +20 -5
- package/src/server/lib/chat/session-store.server.ts +22 -1
- package/src/server/lib/db/schema.ts +3 -0
- package/src/server/lib/fs/git-commit-context.test.ts +111 -0
- package/src/server/lib/fs/git-commit-context.ts +85 -0
- package/src/server/lib/fs/git-commit-message.server.ts +251 -0
- package/src/server/lib/fs/git-commit-message.test.ts +211 -0
- package/src/server/lib/fs/git-commit-prompt.test.ts +69 -0
- package/src/server/lib/fs/git-commit-prompt.ts +57 -0
- package/src/server/lib/fs/git-commit-settings.server.ts +42 -0
- package/src/server/lib/fs/git-identity.server.test.ts +129 -0
- package/src/server/lib/fs/git-identity.server.ts +130 -0
- package/src/server/lib/harness/acp/acp-audit.server.ts +13 -62
- package/src/server/lib/harness/acp/acp-frames.server.test.ts +105 -0
- package/src/server/lib/harness/acp/acp-frames.server.ts +217 -0
- package/src/server/lib/harness/acp/acp-raw-messages.server.test.ts +69 -0
- package/src/server/lib/harness/acp/acp-raw-messages.server.ts +129 -0
- package/src/server/lib/harness/acp/acp-telemetry.server.ts +19 -0
- package/src/server/lib/harness/acp/auth.test.ts +69 -0
- package/src/server/lib/harness/acp/auth.ts +71 -0
- package/src/server/lib/harness/acp/background-replay.test.ts +139 -0
- package/src/server/lib/harness/acp/background-replay.ts +87 -0
- package/src/server/lib/harness/acp/background-work.ts +50 -33
- package/src/server/lib/harness/acp/calls.test.ts +68 -0
- package/src/server/lib/harness/acp/calls.ts +13 -0
- package/src/server/lib/harness/acp/client-capabilities.ts +5 -2
- package/src/server/lib/harness/acp/client-fs.test.ts +13 -0
- package/src/server/lib/harness/acp/client-fs.ts +16 -2
- package/src/server/lib/harness/acp/client.ts +22 -23
- package/src/server/lib/harness/acp/commands.test.ts +19 -0
- package/src/server/lib/harness/acp/commands.ts +26 -8
- package/src/server/lib/harness/acp/frames.ts +16 -1
- package/src/server/lib/harness/acp/grants.server.ts +75 -0
- package/src/server/lib/harness/acp/grants.test.ts +65 -0
- package/src/server/lib/harness/acp/grants.ts +79 -0
- package/src/server/lib/harness/acp/one-shot.server.ts +141 -0
- package/src/server/lib/harness/acp/permissions.test.ts +9 -0
- package/src/server/lib/harness/acp/permissions.ts +56 -36
- package/src/server/lib/harness/acp/prompt-files.test.ts +69 -0
- package/src/server/lib/harness/acp/prompt-files.ts +58 -0
- package/src/server/lib/harness/acp/prompt.ts +50 -11
- package/src/server/lib/harness/acp/protocol.ts +20 -1
- package/src/server/lib/harness/acp/raw-listeners.ts +30 -0
- package/src/server/lib/harness/acp/session-approvals.ts +45 -0
- package/src/server/lib/harness/acp/session-config-view.ts +81 -0
- package/src/server/lib/harness/acp/session-config.ts +48 -9
- package/src/server/lib/harness/acp/session-handshake.test.ts +71 -2
- package/src/server/lib/harness/acp/session-handshake.ts +139 -56
- package/src/server/lib/harness/acp/session-intake.test.ts +93 -0
- package/src/server/lib/harness/acp/session-intake.ts +75 -0
- package/src/server/lib/harness/acp/session-lifecycle.ts +50 -0
- package/src/server/lib/harness/acp/session-lost.test.ts +44 -0
- package/src/server/lib/harness/acp/session-lost.ts +34 -0
- package/src/server/lib/harness/acp/session-notify.ts +47 -0
- package/src/server/lib/harness/acp/session-observers.test.ts +4 -4
- package/src/server/lib/harness/acp/session-permissions.test.ts +64 -0
- package/src/server/lib/harness/acp/session-permissions.ts +9 -4
- package/src/server/lib/harness/acp/session-requests.ts +6 -0
- package/src/server/lib/harness/acp/session-roots.server.ts +47 -0
- package/src/server/lib/harness/acp/session-roots.test.ts +31 -0
- package/src/server/lib/harness/acp/session-start.ts +7 -0
- package/src/server/lib/harness/acp/session-turns.ts +11 -0
- package/src/server/lib/harness/acp/session-wiring.ts +100 -0
- package/src/server/lib/harness/acp/session.test-util.ts +36 -2
- package/src/server/lib/harness/acp/session.test.ts +10 -10
- package/src/server/lib/harness/acp/session.ts +149 -139
- package/src/server/lib/harness/acp/tool-calls.ts +27 -15
- package/src/server/lib/harness/acp/tool-identity.test.ts +136 -0
- package/src/server/lib/harness/acp/tool-identity.ts +121 -0
- package/src/server/lib/harness/acp/turn-cancel.test.ts +79 -0
- package/src/server/lib/harness/acp/turn-cancel.ts +61 -0
- package/src/server/lib/harness/acp/turn-dispatch.test.ts +103 -0
- package/src/server/lib/harness/acp/turn-dispatch.ts +61 -0
- package/src/server/lib/harness/acp/turn-queue.ts +43 -0
- package/src/server/lib/harness/acp/turn-verdict.ts +102 -0
- package/src/server/lib/harness/acp/turn.ts +86 -88
- package/src/server/lib/harness/acp/v2.test.ts +9 -0
- package/src/server/lib/harness/acp/v2.ts +13 -0
- package/src/server/lib/harness/acp/verbs.ts +35 -4
- package/src/server/lib/harness/capabilities.ts +11 -0
- package/src/server/lib/harness/launch-table.ts +19 -0
- package/src/server/lib/harness/launch.ts +4 -0
- package/src/server/lib/harness/schema.server.ts +23 -0
- package/src/server/lib/harness/spawn.server.ts +18 -2
- package/src/server/lib/mcp/agent-config.server.test.ts +111 -0
- package/src/server/lib/mcp/agent-config.server.ts +205 -0
- package/src/server/lib/mcp/probe.server.ts +7 -1
- package/src/server/lib/mcp/registry.server.ts +4 -3
- package/src/server/lib/mcp/secrets.server.test.ts +85 -0
- package/src/server/lib/mcp/secrets.server.ts +108 -0
- package/src/server/lib/omp/core/print.server.ts +100 -0
- package/src/server/lib/omp/rpc/frame-fold.ts +4 -0
- package/src/server/lib/omp/session/artifacts.server.test.ts +15 -5
- package/src/server/lib/omp/session/artifacts.server.ts +41 -26
- package/src/server/lib/omp/session/delete.server.ts +5 -0
- package/src/server/lib/omp/session/goal-auditor.server.ts +10 -48
- package/src/server/lib/realtime/topics/session-data.server.ts +6 -14
- package/src/server/routes/fs/git-message.test.ts +101 -0
- package/src/server/routes/fs/git-message.ts +60 -0
- package/src/server/routes/fs/index.ts +2 -0
- package/src/server/routes/omp/artifact.ts +4 -3
- package/src/server/routes/sessions/mcp.test.ts +65 -1
- package/src/server/routes/sessions/mcp.ts +77 -5
- package/src/server/routes/settings/git-identity.test.ts +77 -0
- package/src/server/routes/settings/git-identity.ts +47 -0
- package/src/server/routes/settings/index.ts +2 -0
- package/src/server/routes/telemetry/acp-telemetry.test.ts +149 -0
- package/src/server/routes/telemetry/context.ts +31 -0
- package/src/server/routes/telemetry/raw-messages.ts +34 -0
- package/src/shared/lib/chat/tool/artifact.test.ts +4 -2
- package/src/shared/lib/chat/tool/artifact.ts +6 -1
- package/src/shared/lib/chat/tool/proc-facts.ts +2 -1
- package/src/shared/lib/fs/paths.test.ts +2 -0
- package/src/shared/lib/fs/repo-label.test.ts +22 -1
- package/src/shared/lib/fs/repo-label.ts +29 -0
- package/src/shared/lib/git/commit-prompt.test.ts +47 -0
- package/src/shared/lib/git/commit-prompt.ts +72 -0
- package/src/shared/lib/git/identity.test.ts +46 -0
- package/src/shared/lib/git/identity.ts +70 -0
- package/src/shared/lib/harness/brand-color.ts +3 -0
- package/src/shared/lib/harness/catalog.test.ts +14 -0
- package/src/shared/lib/harness/catalog.ts +9 -1
- package/src/shared/lib/harness/mcp-facts.ts +4 -0
- package/src/shared/lib/harness/provider-facts.test.ts +11 -0
- package/src/shared/lib/harness/provider-facts.ts +14 -0
- package/src/shared/lib/harness/providers.ts +2 -2
- package/src/shared/lib/harness/updates.test.ts +8 -0
- package/src/shared/lib/harness/updates.ts +9 -0
- package/src/shared/lib/omp/session/proc-daemon.ts +124 -0
- package/src/shared/lib/omp/session/proc.test.ts +30 -3
- package/src/shared/lib/omp/session/proc.ts +6 -82
- package/src/shared/lib/omp/session/wait-idle.test.ts +15 -4
- package/src/shared/lib/omp/session/wait-idle.ts +11 -4
- package/src/shared/lib/settings/defaults.ts +5 -0
- package/src/shared/lib/workspace/new-workspace.ts +20 -0
- package/src/shared/types/omp/agent.ts +14 -5
- package/src/shared/types/settings/mcp.ts +2 -2
- package/src/shared/types/settings/state.ts +16 -0
- package/src/test-support/preload.ts +1 -0
- package/dist/client/static/js/ImageView-bxqw3t4k.js +0 -1
- package/dist/client/static/js/LayoutWrapper-zt14rv9m.js +0 -2
- package/dist/client/static/js/Modal-cm35g20x.js +0 -38
- package/dist/client/static/js/SessionsView-gn53zyn7.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-cagtcfhk.js +0 -1
- package/dist/client/static/js/bash-fjzhxy10.js +0 -1
- package/dist/client/static/js/c-wqtyezvw.js +0 -1
- package/dist/client/static/js/cpp-y0nzwner.js +0 -1
- package/dist/client/static/js/css-n2waj098.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-6g2ydrss.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-b774qbn2.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-nznq0n36.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-b047d6vk.js +0 -1
- package/dist/client/static/js/graphql-gvb7e2eb.js +0 -1
- package/dist/client/static/js/html-tbz83eke.js +0 -1
- package/dist/client/static/js/index-0gbj4270.js +0 -2
- package/dist/client/static/js/index-38xv8h4t.js +0 -1
- package/dist/client/static/js/index-f4vr1c6e.css +0 -1
- package/dist/client/static/js/index-fb6pw9xb.js +0 -2
- package/dist/client/static/js/index-pzvr1699.js +0 -478
- package/dist/client/static/js/index-rf29f3fq.js +0 -9
- package/dist/client/static/js/index-zw621xez.js +0 -4
- package/dist/client/static/js/info-A6RAGUB7-n495k952.js +0 -1
- package/dist/client/static/js/ini-2gvjwh83.js +0 -1
- package/dist/client/static/js/java-1xwcq79s.js +0 -1
- package/dist/client/static/js/json-4pqjabgq.js +0 -1
- package/dist/client/static/js/jsx-wcsss15s.js +0 -1
- package/dist/client/static/js/lua-h7vjcn0h.js +0 -1
- package/dist/client/static/js/markdown-f30jjjh9.js +0 -1
- package/dist/client/static/js/one-dark-pro-qmyne0tn.js +0 -1
- package/dist/client/static/js/one-light-dj0ecjcj.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-zajj62z6.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-1ve78y5f.js +0 -1
- package/dist/client/static/js/properties-ymexza6q.js +0 -1
- package/dist/client/static/js/python-31ycwa66.js +0 -1
- package/dist/client/static/js/r-t2nne4xp.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-8rqadb58.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-v6ppm8dy.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-9j6bae14.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-56cpyt0g.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-yfdmspf4.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-qr5hdxm4.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-vwpg3wp8.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-htfxwd32.js +0 -1
- package/dist/client/static/js/typescript-p3syh43m.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-hapfjkzq.js +0 -1
- package/dist/client/static/js/xml-4enq788a.js +0 -1
- package/dist/client/static/js/yaml-pjtt3jsc.js +0 -1
|
@@ -87,7 +87,11 @@ export const MessageList = memo(function MessageList({
|
|
|
87
87
|
sessionId,
|
|
88
88
|
changeRecords,
|
|
89
89
|
}: MessageListProps) {
|
|
90
|
-
const { streamingIdx, footers, prevNonNoticeIdx } = useMemo(() => {
|
|
90
|
+
const { streamingIdx, footers, prevNonNoticeIdx, lastUserIdx } = useMemo(() => {
|
|
91
|
+
let lastUser = -1;
|
|
92
|
+
for (let i = messages.length - 1; i >= 0; i -= 1) {
|
|
93
|
+
if (messages[i]?.role === 'user') { lastUser = i; break; }
|
|
94
|
+
}
|
|
91
95
|
return {
|
|
92
96
|
// The streaming AI row is the last non-notice row (see streamingRowIndex).
|
|
93
97
|
streamingIdx: streamingRowIndex(messages),
|
|
@@ -95,6 +99,12 @@ export const MessageList = memo(function MessageList({
|
|
|
95
99
|
// the footer renders after.
|
|
96
100
|
footers: resolveRunFooters(messages, isGenerating),
|
|
97
101
|
prevNonNoticeIdx: previousNonNoticeIndex(messages),
|
|
102
|
+
// The live run is every row after the last user turn. A thinking block
|
|
103
|
+
// in it must open even when its segment already settled: a warm session
|
|
104
|
+
// delivers the first `message_update` and its `message_end` inside one
|
|
105
|
+
// animation frame, so the block mounts already finalized and the
|
|
106
|
+
// segment's own `isGenerating` is false.
|
|
107
|
+
lastUserIdx: lastUser,
|
|
98
108
|
};
|
|
99
109
|
}, [messages, isGenerating]);
|
|
100
110
|
|
|
@@ -151,6 +161,7 @@ export const MessageList = memo(function MessageList({
|
|
|
151
161
|
const msg = messages[idx];
|
|
152
162
|
const prev = messages[idx - 1];
|
|
153
163
|
const isLoading = isGenerating && idx === streamingIdx && msg.role === 'ai';
|
|
164
|
+
const isLiveRun = isGenerating && idx > lastUserIdx;
|
|
154
165
|
const isAiFragment = msg.role !== 'user' && prev && prev.role !== 'user' && !isNoticeRow(prev);
|
|
155
166
|
const prevRealIdx = prevNonNoticeIdx[idx];
|
|
156
167
|
const prevReal = prevRealIdx >= 0 ? messages[prevRealIdx] : null;
|
|
@@ -167,6 +178,7 @@ export const MessageList = memo(function MessageList({
|
|
|
167
178
|
<ChatMessageItem
|
|
168
179
|
msg={msg}
|
|
169
180
|
isStreaming={isLoading}
|
|
181
|
+
isLiveRun={isLiveRun}
|
|
170
182
|
onUndo={onUndo}
|
|
171
183
|
onNewChat={onNewChat}
|
|
172
184
|
onFork={onFork}
|
|
@@ -21,6 +21,7 @@ import type { ComposerModes } from '@/client/components/workspace/chat-timeline/
|
|
|
21
21
|
import type { WaitingCandidate } from '@/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker';
|
|
22
22
|
import type { DeferredModelStore } from '@/client/hooks/chat/timeline/deferred-model';
|
|
23
23
|
import { EmptyWorkspacePrompt } from '@/client/components/workspace/chat-timeline/EmptyWorkspacePrompt';
|
|
24
|
+
import { NewWorkspaceHost } from '@/client/components/layout/new-workspace-host';
|
|
24
25
|
import type { SpawnTarget } from '@/client/hooks/chat/timeline/spawn-target';
|
|
25
26
|
import type { ToastTone } from '@/shared/lib/ui/toast-duration';
|
|
26
27
|
|
|
@@ -94,55 +95,60 @@ export interface PendingChatViewProps {
|
|
|
94
95
|
|
|
95
96
|
export function PendingChatView(props: PendingChatViewProps) {
|
|
96
97
|
return (
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
98
|
+
<>
|
|
99
|
+
<EmptyWorkspacePrompt
|
|
100
|
+
className={props.className}
|
|
101
|
+
folders={props.folders}
|
|
102
|
+
selectedFolderId={props.selectedFolderId}
|
|
103
|
+
setSelectedFolderId={props.setSelectedFolderId}
|
|
104
|
+
rootPath={props.rootPath}
|
|
105
|
+
inputValue={props.inputValue}
|
|
106
|
+
setInputValue={props.setInputValue}
|
|
107
|
+
inputAttachments={props.inputAttachments}
|
|
108
|
+
setInputAttachments={props.setInputAttachments}
|
|
109
|
+
onSend={props.onSend}
|
|
110
|
+
isGenerating={props.isGenerating}
|
|
111
|
+
appSettings={props.appSettings}
|
|
112
|
+
messages={props.messages}
|
|
113
|
+
provider={props.provider}
|
|
114
|
+
providerNames={props.providerNames}
|
|
115
|
+
modelName={props.modelName}
|
|
116
|
+
modelNames={props.modelNames}
|
|
117
|
+
onThinkingLevelChange={props.onThinkingLevelChange}
|
|
118
|
+
onModelChange={props.onModelChange}
|
|
119
|
+
accessMode={props.accessMode}
|
|
120
|
+
onAccessModeChange={props.onAccessModeChange}
|
|
121
|
+
modes={props.modes}
|
|
122
|
+
composerModelRef={props.composerModelRef}
|
|
123
|
+
deferredComposerPickRef={props.deferredComposerPickRef}
|
|
124
|
+
sessionModel={props.sessionModel}
|
|
125
|
+
sessionThinkingLevel={props.sessionThinkingLevel}
|
|
126
|
+
generatingVerb={props.generatingVerb}
|
|
127
|
+
variant={props.variant}
|
|
128
|
+
onUndo={props.onUndo}
|
|
129
|
+
onRetry={props.onRetry}
|
|
130
|
+
onNewChat={props.onNewChat}
|
|
131
|
+
streamStatusMap={props.streamStatusMap}
|
|
132
|
+
titleForSession={props.titleForSession}
|
|
133
|
+
waitingFor={props.waitingFor}
|
|
134
|
+
onWaitingForChange={props.onWaitingForChange}
|
|
135
|
+
heldWait={props.heldWait}
|
|
136
|
+
onCancelWait={props.onCancelWait}
|
|
137
|
+
spawnTarget={props.spawnTarget}
|
|
138
|
+
onSpawnTargetChange={props.onSpawnTargetChange}
|
|
139
|
+
parentSessionId={props.parentSessionId}
|
|
140
|
+
onParentSessionChange={props.onParentSessionChange}
|
|
141
|
+
branchLabel={props.branchLabel}
|
|
142
|
+
branchAllowNone={props.branchAllowNone}
|
|
143
|
+
{...(props.branchPreview ? { branchPreview: props.branchPreview } : {})}
|
|
144
|
+
onWorktreeReport={props.onWorktreeReport}
|
|
145
|
+
{...(props.harness ? { harness: props.harness } : {})}
|
|
146
|
+
harnessEditable={props.harnessEditable}
|
|
147
|
+
onSelectHarness={props.onSelectHarness}
|
|
148
|
+
/>
|
|
149
|
+
{/* The picker's "Add new workspace" row asks for this dialog; the pending
|
|
150
|
+
chat is the only view that draws the picker, so it hosts the answer. */}
|
|
151
|
+
<NewWorkspaceHost />
|
|
152
|
+
</>
|
|
147
153
|
);
|
|
148
154
|
}
|
|
@@ -56,12 +56,16 @@ afterEach(() => {
|
|
|
56
56
|
(globalThis as unknown as Record<string, unknown>).fetch = nativeFetch;
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
async function mount(
|
|
59
|
+
async function mount(
|
|
60
|
+
messageId: string,
|
|
61
|
+
thinking: typeof THOUGHT & { isGenerating?: boolean } = THOUGHT,
|
|
62
|
+
isRunStreaming = false,
|
|
63
|
+
): Promise<void> {
|
|
60
64
|
await act(async () => {
|
|
61
65
|
render(
|
|
62
66
|
h(SessionStateProvider, {
|
|
63
67
|
sessionId: SESSION,
|
|
64
|
-
children: h(ThinkingSection, { thinking, messageId }),
|
|
68
|
+
children: h(ThinkingSection, { thinking, messageId, isRunStreaming }),
|
|
65
69
|
}) as never,
|
|
66
70
|
container,
|
|
67
71
|
);
|
|
@@ -114,4 +118,36 @@ describe('thinking open state', () => {
|
|
|
114
118
|
await click();
|
|
115
119
|
expect(toggle().getAttribute('aria-expanded')).toBe('false');
|
|
116
120
|
});
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The reported "thinking sometimes does not open": a warm session delivers a
|
|
124
|
+
* thinking segment's first `message_update` and its `message_end` inside one
|
|
125
|
+
* animation frame, so the block mounts with the segment already finalized
|
|
126
|
+
* (`isGenerating: false`). The run is still live, and the block must open.
|
|
127
|
+
*/
|
|
128
|
+
test('a finalized segment in a live run opens', async () => {
|
|
129
|
+
await mount('m1', { ...THOUGHT, isGenerating: false }, true);
|
|
130
|
+
expect(toggle().getAttribute('aria-expanded')).toBe('true');
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
test('a finalized segment in a settled run stays closed', async () => {
|
|
134
|
+
await mount('m1', { ...THOUGHT, isGenerating: false }, false);
|
|
135
|
+
expect(toggle().getAttribute('aria-expanded')).toBe('false');
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
test('a block opened while streaming stays open when its segment settles', async () => {
|
|
139
|
+
await mount('m1', { ...THOUGHT, isGenerating: true });
|
|
140
|
+
expect(toggle().getAttribute('aria-expanded')).toBe('true');
|
|
141
|
+
await mount('m1', { ...THOUGHT, isGenerating: false });
|
|
142
|
+
expect(toggle().getAttribute('aria-expanded')).toBe('true');
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
test('50 coalesced segments in a live run all open', async () => {
|
|
146
|
+
for (let i = 0; i < 50; i += 1) {
|
|
147
|
+
render(null, container);
|
|
148
|
+
container.remove();
|
|
149
|
+
await mount(`m-${i}`, { ...THOUGHT, isGenerating: false }, true);
|
|
150
|
+
expect(toggle().getAttribute('aria-expanded')).toBe('true');
|
|
151
|
+
}
|
|
152
|
+
});
|
|
117
153
|
});
|
|
@@ -42,6 +42,13 @@ interface ThinkingSectionProps {
|
|
|
42
42
|
*/
|
|
43
43
|
messageId?: string;
|
|
44
44
|
defaultExpanded?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* The row belongs to the run in flight. A thinking block opens for the whole
|
|
47
|
+
* run, not only while its own segment streams: a warm session delivers the
|
|
48
|
+
* first `message_update` and its `message_end` in one animation frame, so
|
|
49
|
+
* the block mounts already finalized and would otherwise stay collapsed.
|
|
50
|
+
*/
|
|
51
|
+
isRunStreaming?: boolean;
|
|
45
52
|
showSeparator?: boolean;
|
|
46
53
|
/** Phone layout: the section's frame is the timeline gutter itself. */
|
|
47
54
|
isMobile?: boolean;
|
|
@@ -51,6 +58,7 @@ export function ThinkingSection({
|
|
|
51
58
|
thinking,
|
|
52
59
|
messageId,
|
|
53
60
|
defaultExpanded = false,
|
|
61
|
+
isRunStreaming = false,
|
|
54
62
|
showSeparator = false,
|
|
55
63
|
isMobile = false,
|
|
56
64
|
}: ThinkingSectionProps) {
|
|
@@ -61,7 +69,11 @@ export function ThinkingSection({
|
|
|
61
69
|
const framed = chrome.frame !== '';
|
|
62
70
|
|
|
63
71
|
const isGenerating = typeof thinking === 'object' ? Boolean(thinking.isGenerating) : false;
|
|
64
|
-
const { isOpen, toggle: toggleOpen } = useThinkingOpenState(
|
|
72
|
+
const { isOpen, toggle: toggleOpen } = useThinkingOpenState(
|
|
73
|
+
messageId,
|
|
74
|
+
defaultExpanded,
|
|
75
|
+
isGenerating || isRunStreaming,
|
|
76
|
+
);
|
|
65
77
|
const thoughtBodyRef = useRef<HTMLDivElement>(null);
|
|
66
78
|
|
|
67
79
|
const thoughtText = typeof thinking === 'string' ? thinking : thinking.thought || '';
|
package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.test.tsx
CHANGED
|
@@ -22,6 +22,7 @@ import { h, render } from 'preact';
|
|
|
22
22
|
import { act } from 'preact/test-utils';
|
|
23
23
|
import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
|
|
24
24
|
import { WorkspacePicker, workspaceLabel } from '@/client/components/workspace/chat-timeline/target-picker/WorkspacePicker';
|
|
25
|
+
import { NEW_WORKSPACE_EVENT } from '@/shared/lib/workspace/new-workspace';
|
|
25
26
|
import type { WorkspaceFolderData } from '@/shared/types';
|
|
26
27
|
|
|
27
28
|
const folder = (id: number, name: string, icon?: string): WorkspaceFolderData => ({
|
|
@@ -145,6 +146,55 @@ describe('WorkspacePicker', () => {
|
|
|
145
146
|
expect(rows[1]?.querySelector('.lucide-folder')).not.toBeNull();
|
|
146
147
|
});
|
|
147
148
|
|
|
149
|
+
test('the menu offers "Add new workspace" and asks the layout for the dialog', async () => {
|
|
150
|
+
let asked = 0;
|
|
151
|
+
const onAsk = () => {
|
|
152
|
+
asked += 1;
|
|
153
|
+
};
|
|
154
|
+
window.addEventListener(NEW_WORKSPACE_EVENT, onAsk);
|
|
155
|
+
try {
|
|
156
|
+
const host = await mount(
|
|
157
|
+
h(WorkspacePicker, {
|
|
158
|
+
folders: [folder(1, 'kabmo')],
|
|
159
|
+
selectedFolderId: 1,
|
|
160
|
+
setSelectedFolderId: () => {},
|
|
161
|
+
}),
|
|
162
|
+
);
|
|
163
|
+
|
|
164
|
+
await act(async () => {
|
|
165
|
+
(host.querySelector('button') as HTMLButtonElement).click();
|
|
166
|
+
});
|
|
167
|
+
const add = [...host.querySelectorAll('[role="menuitem"]')]
|
|
168
|
+
.find((row) => row.textContent?.includes('Add new workspace')) as HTMLButtonElement | undefined;
|
|
169
|
+
expect(add).toBeDefined();
|
|
170
|
+
|
|
171
|
+
await act(async () => {
|
|
172
|
+
add?.click();
|
|
173
|
+
});
|
|
174
|
+
expect(asked).toBe(1);
|
|
175
|
+
// The menu closes: the dialog is the next thing the user sees.
|
|
176
|
+
expect(host.querySelector('[role="menu"]')).toBeNull();
|
|
177
|
+
} finally {
|
|
178
|
+
window.removeEventListener(NEW_WORKSPACE_EVENT, onAsk);
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
test('the add action is offered even with no workspaces yet', async () => {
|
|
183
|
+
const host = await mount(
|
|
184
|
+
h(WorkspacePicker, {
|
|
185
|
+
folders: [],
|
|
186
|
+
selectedFolderId: null,
|
|
187
|
+
setSelectedFolderId: () => {},
|
|
188
|
+
}),
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
await act(async () => {
|
|
192
|
+
(host.querySelector('button') as HTMLButtonElement).click();
|
|
193
|
+
});
|
|
194
|
+
expect(textOf(host)).toContain('No workspaces available');
|
|
195
|
+
expect(textOf(host)).toContain('Add new workspace');
|
|
196
|
+
});
|
|
197
|
+
|
|
148
198
|
test('choosing a folder clears the worktree pick', async () => {
|
|
149
199
|
// A record rather than two locals: a value assigned inside a callback is
|
|
150
200
|
// still narrowed to its initializer by control-flow analysis, so `picked`
|
|
@@ -24,12 +24,13 @@
|
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
import { useMemo, useRef, useState } from 'preact/hooks';
|
|
27
|
-
import { Check, ChevronDown, Folder } from 'lucide-preact';
|
|
27
|
+
import { Check, ChevronDown, Folder, Plus } from 'lucide-preact';
|
|
28
28
|
import { useOnClickOutside } from '@/client/hooks/ui/on-click-outside';
|
|
29
29
|
import { PickerSearch } from '@/client/components/common/picker-search';
|
|
30
30
|
import { getProjectIcon } from '@/shared/lib/workspace/project-icon';
|
|
31
31
|
import { projectAccentStyle } from '@/shared/lib/workspace/project-accent';
|
|
32
32
|
import { matchesPickerQuery } from '@/shared/lib/ui/picker-filter';
|
|
33
|
+
import { requestNewWorkspace } from '@/shared/lib/workspace/new-workspace';
|
|
33
34
|
import type { WorkspaceFolderData } from '@/shared/types';
|
|
34
35
|
|
|
35
36
|
export interface WorkspacePickerProps {
|
|
@@ -163,6 +164,24 @@ export function WorkspacePicker({
|
|
|
163
164
|
})
|
|
164
165
|
)}
|
|
165
166
|
</div>
|
|
167
|
+
{/* The dialog is the layout's, not this menu's: the picker only asks
|
|
168
|
+
for it, so the action works with the dock collapsed or showing a
|
|
169
|
+
plugin panel. */}
|
|
170
|
+
<div className="border-t border-ink/5 pt-1">
|
|
171
|
+
<button
|
|
172
|
+
type="button"
|
|
173
|
+
role="menuitem"
|
|
174
|
+
onClick={() => {
|
|
175
|
+
setOpen(false);
|
|
176
|
+
setQuery('');
|
|
177
|
+
requestNewWorkspace();
|
|
178
|
+
}}
|
|
179
|
+
className="w-full text-left px-3 py-1.5 flex items-center gap-2 text-ink/70 hover:bg-ink/5 hover:text-ink transition-colors cursor-pointer"
|
|
180
|
+
>
|
|
181
|
+
<Plus size={12} className="flex-shrink-0" />
|
|
182
|
+
<span className="font-medium">Add new workspace</span>
|
|
183
|
+
</button>
|
|
184
|
+
</div>
|
|
166
185
|
</div>
|
|
167
186
|
)}
|
|
168
187
|
</div>
|
package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from 'preact/hooks';
|
|
3
3
|
import { CheckCircle2 } from 'lucide-preact';
|
|
4
|
-
import type { ExtensionUiDialogRequest } from '@/
|
|
4
|
+
import type { ExtensionDialogResponse, ExtensionUiDialogRequest } from '@/shared/types/omp/agent';
|
|
5
5
|
import { ExtensionDialogHeader } from '@/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Header';
|
|
6
6
|
import { ExtensionDialogSelectBody } from '@/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/SelectBody';
|
|
7
7
|
import { ExtensionDialogFooter } from '@/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Footer';
|
|
@@ -10,12 +10,7 @@ import { dialogMethodMeta, useDialogShortcuts } from '@/client/components/worksp
|
|
|
10
10
|
import { isApprovalGateFrame } from '@/shared/lib/chat/omp/approval-gate';
|
|
11
11
|
import { MarkdownRenderer } from '@/client/components/common/MarkdownRenderer';
|
|
12
12
|
|
|
13
|
-
export type ExtensionDialogResponse
|
|
14
|
-
| { value: string }
|
|
15
|
-
| { confirmed: boolean }
|
|
16
|
-
| { cancelled: true }
|
|
17
|
-
/** One `ask` answer per question, in question order (grouped ask mode). */
|
|
18
|
-
| { answers: { id: string; selectedOptions: string[]; customInput?: string }[] };
|
|
13
|
+
export type { ExtensionDialogResponse } from '@/shared/types/omp/agent';
|
|
19
14
|
|
|
20
15
|
interface ExtensionDialogProps {
|
|
21
16
|
request: ExtensionUiDialogRequest;
|
|
@@ -193,8 +188,25 @@ export function ExtensionDialog({ request, onRespond }: ExtensionDialogProps) {
|
|
|
193
188
|
/>
|
|
194
189
|
)}
|
|
195
190
|
|
|
196
|
-
{/* Confirm Banner
|
|
197
|
-
|
|
191
|
+
{/* Confirm Banner — only when the producer offered no choices. An
|
|
192
|
+
ACP approval carries its agent's own option list (allow once /
|
|
193
|
+
always / reject), and a yes/no banner threw that away: "Always
|
|
194
|
+
allow" was unreachable and Esc could select whatever came last. */}
|
|
195
|
+
{request.method === 'confirm' && options.length > 0 && (
|
|
196
|
+
<div className="space-y-2">
|
|
197
|
+
{options.map((option, index) => (
|
|
198
|
+
<button
|
|
199
|
+
key={request.optionIds?.[index] ?? option}
|
|
200
|
+
type="button"
|
|
201
|
+
onClick={() => onRespond(request, { optionId: request.optionIds?.[index] ?? option })}
|
|
202
|
+
className="flex w-full cursor-pointer items-center justify-between rounded-xl border border-ink/15 bg-canvas/30 px-4 py-3 text-left text-[13px] font-medium text-ink transition-colors hover:border-ink/30 hover:bg-canvas/50"
|
|
203
|
+
>
|
|
204
|
+
<span className="min-w-0 break-words">{option}</span>
|
|
205
|
+
</button>
|
|
206
|
+
))}
|
|
207
|
+
</div>
|
|
208
|
+
)}
|
|
209
|
+
{request.method === 'confirm' && options.length === 0 && (
|
|
198
210
|
<div className="flex items-center gap-3 rounded-xl border border-ink/10 bg-canvas/30 p-4">
|
|
199
211
|
<div className="flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-ink/5 text-ink">
|
|
200
212
|
<CheckCircle2 size={18} />
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useMemo } from 'preact/hooks';
|
|
2
2
|
import { Check, Clock, Server, Shrink, Terminal } from 'lucide-preact';
|
|
3
3
|
import type { ToolCallData } from '@/shared/types';
|
|
4
|
-
import { bashServiceOf
|
|
4
|
+
import { bashServiceOf } from '@/shared/lib/omp/session/proc';
|
|
5
|
+
import { daemonTone, procUptime } from '@/shared/lib/omp/session/proc-daemon';
|
|
5
6
|
import { formatToolBytes } from '@/shared/lib/chat/tool/labels';
|
|
6
7
|
import { minimizedOutputOf } from '@/shared/lib/chat/tool/minimized';
|
|
7
8
|
import { CopyButton } from '@/client/components/common/CopyButton';
|
|
@@ -25,16 +25,13 @@ import { Activity, CheckCircle2, CircleSlash, Loader2, Radio, Server, Terminal }
|
|
|
25
25
|
import type { ToolCallData } from '@/shared/types';
|
|
26
26
|
import { stripAnsiCodes } from '@/shared/lib/code/ansi';
|
|
27
27
|
import {
|
|
28
|
-
daemonTone,
|
|
29
|
-
formatProcDuration,
|
|
30
28
|
jobTone,
|
|
31
29
|
procOpLabel,
|
|
32
|
-
procUptime,
|
|
33
30
|
procViewOf,
|
|
34
31
|
type ProcAgent,
|
|
35
|
-
type ProcDaemon,
|
|
36
32
|
type ProcJob,
|
|
37
33
|
} from '@/shared/lib/omp/session/proc';
|
|
34
|
+
import { daemonTone, formatProcDuration, procUptime, type ProcDaemon } from '@/shared/lib/omp/session/proc-daemon';
|
|
38
35
|
import { FallbackOutput } from '@/client/components/workspace/chat-timeline/tool-renderers/shared/FallbackOutput';
|
|
39
36
|
import { ToolPanelHeader } from '@/client/components/workspace/chat-timeline/tool-renderers/shared/ToolPanelHeader';
|
|
40
37
|
import { jobSubject, jobProgressLine } from '@/shared/lib/omp/session/job-progress';
|
|
@@ -5,6 +5,7 @@ import { MarkdownRenderer } from '@/client/components/common/MarkdownRenderer';
|
|
|
5
5
|
import { tryParseJson } from '@/shared/lib/code/syntax-highlight';
|
|
6
6
|
import { JsonCodeBlock } from '@/client/components/workspace/chat-timeline/tool-renderers/shared/JsonCodeBlock';
|
|
7
7
|
import { formatCompactTokens, formatCost } from '@/shared/lib/format/number';
|
|
8
|
+
import { acpDelegationRow } from '@/client/components/workspace/chat-timeline/tool-renderers/panels/task-rows';
|
|
8
9
|
|
|
9
10
|
interface TaskRow {
|
|
10
11
|
id?: unknown;
|
|
@@ -77,9 +78,18 @@ export function TaskResult({ tool }: { tool: ToolCallData }) {
|
|
|
77
78
|
const inputContext = typeof inputObj?.context === 'string' ? inputObj.context.trim() : '';
|
|
78
79
|
const inputTasks = Array.isArray(inputObj?.tasks) ? (inputObj.tasks as InputTask[]) : [];
|
|
79
80
|
|
|
81
|
+
// An ACP agent sends ONE child in its own spelling (grok's `description`/
|
|
82
|
+
// `subagent_type`, cursor's `_toolName`), never omp's `tasks[]`. Without this
|
|
83
|
+
// a delegation card from those agents rendered as an empty card.
|
|
84
|
+
const acpRow = useMemo(
|
|
85
|
+
() => acpDelegationRow(inputObj, typeof tool.intent === 'string' ? tool.intent : undefined),
|
|
86
|
+
[inputObj, tool.intent],
|
|
87
|
+
);
|
|
88
|
+
|
|
80
89
|
const rows: TaskRow[] = useMemo(() => {
|
|
81
90
|
if (results.length > 0) return results;
|
|
82
91
|
if (progress.length > 0) return progress;
|
|
92
|
+
if (acpRow) return [{ ...acpRow, id: tool.id, status: tool.status === 'success' ? 'done' : 'running' }];
|
|
83
93
|
if (inputTasks.length > 0) {
|
|
84
94
|
return inputTasks.map((t, idx) => ({
|
|
85
95
|
id: `task-sub-${idx}`,
|
|
@@ -90,9 +100,13 @@ export function TaskResult({ tool }: { tool: ToolCallData }) {
|
|
|
90
100
|
}));
|
|
91
101
|
}
|
|
92
102
|
return [];
|
|
93
|
-
}, [results, progress, inputTasks, tool.status]);
|
|
103
|
+
}, [results, progress, acpRow, inputTasks, tool.id, tool.status]);
|
|
94
104
|
|
|
95
|
-
|
|
105
|
+
// The ACP child's brief is its task, and it is shown as the specification
|
|
106
|
+
// block below; `acpRow` already contributed the row above it.
|
|
107
|
+
const specTasks: Array<{ name?: string; agent?: string; task?: string; assignment?: string }> =
|
|
108
|
+
inputTasks.length > 0 ? inputTasks : acpRow?.task ? [acpRow] : [];
|
|
109
|
+
if (rows.length === 0 && !tool.output && !inputContext && specTasks.length === 0) return null;
|
|
96
110
|
|
|
97
111
|
const totalTokens = rows.reduce((sum, r) => sum + (typeof r.tokens === 'number' ? r.tokens : 0), 0);
|
|
98
112
|
const totalCost = rows.reduce((sum, r) => sum + (typeof r.cost === 'number' ? r.cost : 0), 0);
|
|
@@ -174,7 +188,7 @@ export function TaskResult({ tool }: { tool: ToolCallData }) {
|
|
|
174
188
|
)}
|
|
175
189
|
|
|
176
190
|
{/* 3. Task Specifications (Target, Change, Acceptance) */}
|
|
177
|
-
{
|
|
191
|
+
{specTasks.length > 0 && (
|
|
178
192
|
<div className="overflow-hidden rounded-lg border border-ink/8 bg-paper">
|
|
179
193
|
<button
|
|
180
194
|
type="button"
|
|
@@ -192,7 +206,7 @@ export function TaskResult({ tool }: { tool: ToolCallData }) {
|
|
|
192
206
|
</button>
|
|
193
207
|
{tasksExpanded && (
|
|
194
208
|
<div className="divide-y divide-ink/8 border-t border-ink/8 bg-canvas/30">
|
|
195
|
-
{
|
|
209
|
+
{specTasks.map((t, idx) => (
|
|
196
210
|
<div key={idx} className="p-3 space-y-1.5 text-[11.5px] text-ink/80 select-text">
|
|
197
211
|
<div className="flex items-center gap-2">
|
|
198
212
|
<span className="font-semibold text-ink text-[12px]">{t.name || `Task #${idx + 1}`}</span>
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
* while producing almost no output, so the card has to answer one question the
|
|
12
12
|
* generic fallback could not: how long has this been going, and is anything
|
|
13
13
|
* still moving. (omp 18.17.0 removed its 30-minute ceiling: a window from a
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* ladder now ends the call, and the ladder climbs across back-to-back idle
|
|
15
|
+
* waits — 19.0.0 cut it to 5 s, then 4 minutes.) Before this the call had NO
|
|
16
|
+
* panel (`toolPanelKind` returned
|
|
16
17
|
* null) and rendered as `Wait` + a "Wait" header + an empty Output block, even
|
|
17
18
|
* though omp reports the whole picture in `details` — every job's status, its
|
|
18
19
|
* elapsed `durationMs`, a subagent's `completionPercent`, and whether the wait
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The rows a `task` card draws, from either producer's shape.
|
|
8
|
+
*
|
|
9
|
+
* omp sends `input.tasks[]` — one entry per delegated worker, with `name` and
|
|
10
|
+
* `agent`. ACP adapters send ONE child in a different spelling: grok's
|
|
11
|
+
* `{description, prompt, subagent_type}` and cursor's `{_toolName:"task"}` with
|
|
12
|
+
* the words only in the title. The panel judged `rows.length === 0 && !output &&
|
|
13
|
+
* !context` and returned null, so a delegation from an ACP agent rendered as an
|
|
14
|
+
* EMPTY card — the call existed in the transcript and showed nothing.
|
|
15
|
+
*
|
|
16
|
+
* One normalizer keeps both shapes drawing the same card, and a missing
|
|
17
|
+
* `subagent_type` is reported as absent rather than invented as `scout`.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
export interface TaskRowShape {
|
|
21
|
+
name: string;
|
|
22
|
+
agent?: string;
|
|
23
|
+
task?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** The delegated child a non-omp adapter named, or null when the call carries
|
|
27
|
+
* no child at all (an omp `task` with an empty list is not a delegation). */
|
|
28
|
+
export function acpDelegationRow(
|
|
29
|
+
input: Record<string, unknown> | undefined,
|
|
30
|
+
intent: string | undefined,
|
|
31
|
+
): TaskRowShape | null {
|
|
32
|
+
if (!input) return null;
|
|
33
|
+
const description = typeof input.description === 'string' ? input.description.trim() : '';
|
|
34
|
+
const prompt = typeof input.prompt === 'string' ? input.prompt.trim() : '';
|
|
35
|
+
const subagent = typeof input.subagent_type === 'string' ? input.subagent_type.trim() : '';
|
|
36
|
+
const wrapped = input._toolName === 'task';
|
|
37
|
+
const task = description || prompt;
|
|
38
|
+
if (!task && !wrapped && !subagent) return null;
|
|
39
|
+
const label = task || intent?.trim() || 'Subagent';
|
|
40
|
+
return {
|
|
41
|
+
// The clamped first line is the card's row label; the full text is the
|
|
42
|
+
// brief, which is what the operator needs to approve the delegation.
|
|
43
|
+
name: label.split('\n')[0].slice(0, 80),
|
|
44
|
+
...(subagent ? { agent: subagent } : {}),
|
|
45
|
+
...(task ? { task } : {}),
|
|
46
|
+
};
|
|
47
|
+
}
|