@kabmo-labs/kabmo 0.52.0 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +582 -582
- package/dist/client/static/js/{Body-71x3vmap.js → Body-sdq2yhmp.js} +1 -1
- package/dist/client/static/js/{CsvGrid-ap9q8zx9.js → CsvGrid-afz6vr3m.js} +1 -1
- package/dist/client/static/js/{DocxView-vyce4gws.js → DocxView-xwjgt7qq.js} +1 -1
- package/dist/client/static/js/{DrawioView-g49022fd.js → DrawioView-7m4e8zcm.js} +1 -1
- package/dist/client/static/js/{HtmlPreview-mhmyj5vj.js → HtmlPreview-tad0dezn.js} +1 -1
- package/dist/client/static/js/{ImageView-pf5pj1fv.js → ImageView-7bpm4xhb.js} +1 -1
- package/dist/client/static/js/{LayoutWrapper-ty25dygn.js → LayoutWrapper-ehxhj6t3.js} +1 -1
- package/dist/client/static/js/MergeDiffView-28xkyts9.js +1 -0
- package/dist/client/static/js/{Modal-asy2crvy.js → Modal-5qt3v5gn.js} +1 -1
- package/dist/client/static/js/{PdfView-yhjjz10s.js → PdfView-hbgnnana.js} +1 -1
- package/dist/client/static/js/{SessionsView-j2dv00av.js → SessionsView-rv9jmr2e.js} +1 -1
- package/dist/client/static/js/{SheetView-k38dsfh8.js → SheetView-55e0a8as.js} +1 -1
- package/dist/client/static/js/{SvgPreview-9zpz46k3.js → SvgPreview-10fa6mj1.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-8yrd25r0.js → abnfDiagram-O67JEVCF-9w4p3dhe.js} +1 -1
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-bqjjvrsg.js → architectureDiagram-NJMV4G6O-5x6sb253.js} +1 -1
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-3xy3r20v.js → blockDiagram-BEXU5L5S-2c6y4pkn.js} +1 -1
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-9bvb0hp8.js → c4Diagram-YGBWAQC7-45rtm401.js} +1 -1
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-zjchysm6.js → classDiagram-v2-NBCMYWYE-rksw3aw9.js} +1 -1
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-k9wnkaq2.js → cose-bilkent-JH36ORCC-4hxtttt5.js} +1 -1
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-756btrvf.js → cynefinDiagram-VND7K2PF-5dhexpf2.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-0w5h1yzm.js → dagre-6A5THRUB-1k3w4qm9.js} +1 -1
- package/dist/client/static/js/{diagram-22UHCM2B-wjs55dyv.js → diagram-22UHCM2B-fw76k272.js} +1 -1
- package/dist/client/static/js/{diagram-3UASUU5V-2knmstt9.js → diagram-3UASUU5V-qnb2gn31.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-jfpjp4ye.js → diagram-ATOU4E4O-cavnxzpf.js} +1 -1
- package/dist/client/static/js/{diagram-CDSNMT55-tkm4bmnn.js → diagram-CDSNMT55-6dxaj054.js} +1 -1
- package/dist/client/static/js/{diagram-MLGK6HIB-nd5gpktz.js → diagram-MLGK6HIB-f16fv9ay.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-2bdzwyjm.js → diagram-MPIPVDR6-zsryj72g.js} +1 -1
- package/dist/client/static/js/{dockerfile-57apz3vg.js → dockerfile-frznktsa.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-bvskapb2.js → ebnfDiagram-ZINNZB2B-1zz5h7sw.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-ggkpb9cv.js → elk-276RUBZZ-25pehy1p.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-yanqxtfc.js → erDiagram-OPXOYQCR-ezpjhgzw.js} +1 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-zh6hmn6g.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-0argw2th.js → ganttDiagram-FUAMR5RP-n11hq4ag.js} +1 -1
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-13t55rb0.js → gitGraphDiagram-X574FWY7-3znkxh7y.js} +1 -1
- package/dist/client/static/js/{index-fa2nrjtn.js → index-02skcm4d.js} +1 -1
- package/dist/client/static/js/{index-zgajmc0q.js → index-10cxm9ty.js} +1 -1
- package/dist/client/static/js/{index-e09zsmqa.js → index-1e7fek0v.js} +1 -1
- package/dist/client/static/js/{index-cfpvexyb.js → index-1qjxg7mh.js} +1 -1
- package/dist/client/static/js/{index-fwsmhqpa.js → index-1w92sjkm.js} +1 -1
- package/dist/client/static/js/{index-4ztgw482.js → index-2k6wyyds.js} +2 -2
- package/dist/client/static/js/{index-8wxfvay8.js → index-32gh2645.js} +1 -1
- package/dist/client/static/js/{index-e7drx03t.js → index-4faphth3.js} +1 -1
- package/dist/client/static/js/{index-zpdfbd2m.js → index-58kgkwxt.js} +6 -6
- package/dist/client/static/js/{index-s875z323.js → index-5hqjscys.js} +1 -1
- package/dist/client/static/js/{index-2ps4vdfs.js → index-5j0wejvq.js} +1 -1
- package/dist/client/static/js/{index-06hd54yn.js → index-5pbf6dcz.js} +2 -2
- package/dist/client/static/js/{index-nw2kmdt1.js → index-5z7f6bq4.js} +1 -1
- package/dist/client/static/js/{index-djpgs60s.js → index-8972fxm9.js} +1 -1
- package/dist/client/static/js/{index-egkzc87x.js → index-9n1cg95f.js} +1 -1
- package/dist/client/static/js/{index-qga9sfrv.js → index-acpn178r.js} +1 -1
- package/dist/client/static/js/{index-vp0f8aj5.js → index-b039ef9w.js} +1 -1
- package/dist/client/static/js/{index-q2grcb6h.js → index-dkz8d77n.js} +1 -1
- package/dist/client/static/js/{index-nn64attw.js → index-dzp9rwy0.js} +116 -116
- package/dist/client/static/js/{index-gvk70kmb.js → index-dzsjyzht.js} +1 -1
- package/dist/client/static/js/{index-x0etbgqh.js → index-e0h6xkpv.js} +1 -1
- package/dist/client/static/js/{index-s0bsc424.js → index-ey0ckd66.js} +1 -1
- package/dist/client/static/js/{index-ax2jmtx3.js → index-gmea6fjd.js} +1 -1
- package/dist/client/static/js/{index-bgc4kx7b.js → index-hqc2cazc.js} +1 -1
- package/dist/client/static/js/{index-hw6580ng.js → index-ht164kw9.js} +1 -1
- package/dist/client/static/js/{index-hrahp5q3.js → index-j97qmbbv.js} +1 -1
- package/dist/client/static/js/{index-k88f710w.js → index-kyarw08m.js} +1 -1
- package/dist/client/static/js/{index-g9f2r99d.js → index-m1hd7ska.js} +2 -2
- package/dist/client/static/js/{index-2msrzs5j.js → index-me7ag6sy.js} +1 -1
- package/dist/client/static/js/{index-ate0c9yp.js → index-qj6b15r4.js} +1 -1
- package/dist/client/static/js/{index-wzpmhvvv.js → index-qva2vqbh.js} +1 -1
- package/dist/client/static/js/{index-ee1kx6xk.js → index-s78f7j47.js} +1 -1
- package/dist/client/static/js/{index-d7gxsgee.js → index-tnhnysj1.js} +1 -1
- package/dist/client/static/js/{index-64x05rb0.js → index-vjmy9r20.js} +1 -1
- package/dist/client/static/js/{index-xv3d8hvf.js → index-xvh25zer.js} +1 -1
- package/dist/client/static/js/{index-g6bbcn1k.js → index-y79ebmam.js} +1 -1
- package/dist/client/static/js/{index-9sb27x59.js → index-z9msykm1.js} +1 -1
- package/dist/client/static/js/{index-96pmdbt0.js → index-zkkttvtx.js} +1 -1
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-aasvdmc5.js → infoDiagram-VRGFBTTK-kmv3jtrd.js} +1 -1
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-041n2qyh.js → ishikawaDiagram-OU5B5YK6-5kp6geeh.js} +1 -1
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-pthwdj72.js → journeyDiagram-ZHPQQLJL-6w5f1ddc.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-z4kszy9n.js → kanban-definition-PNTS6WVX-6esn6xqn.js} +1 -1
- package/dist/client/static/js/{mermaid.core-ye94fef1.js → mermaid.core-z83pf8ch.js} +2 -2
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-abckq442.js → mindmap-definition-NLK3R4M7-0h1nhw66.js} +1 -1
- package/dist/client/static/js/one-dark-pro-wsgaqq27.js +1 -0
- package/dist/client/static/js/one-light-w8zdrvyc.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-9c9kbwxe.js → pegDiagram-GJSIUBJH-xdcpr8my.js} +1 -1
- package/dist/client/static/js/{pieDiagram-5QR66LMP-ktfmg23s.js → pieDiagram-5QR66LMP-0210zd5b.js} +1 -1
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-rmv3xc91.js → quadrantDiagram-O4NWA36T-j0rtvvcm.js} +1 -1
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-ys9cpb7z.js → railroadDiagram-XR7U4H2S-mzxat5g5.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-0t0mg1nm.js → requirementDiagram-PLB6GJNP-zq5b9ts2.js} +1 -1
- package/dist/client/static/js/{rust-9bf5fnsj.js → rust-vmn352hx.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-bqwz6z6p.js → sankeyDiagram-IPEJSGJF-06s3r7bv.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-3fx6bx2e.js → sequenceDiagram-PO4LG4MO-7s4gz4t5.js} +1 -1
- package/dist/client/static/js/{sizeCapture-INFHLROL-mbextj66.js → sizeCapture-INFHLROL-yensh9k2.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-dpnjghyb.js → stateDiagram-v2-GCMORJYK-1q8p06fk.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-9xre8jmn.js → swimlanes-2SLR337P-2mfxddzf.js} +1 -1
- package/dist/client/static/js/{swimlanesDiagram-TC7HE7FX-7hzes9me.js → swimlanesDiagram-TC7HE7FX-k2xf0gby.js} +1 -1
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-79xnhvk7.js → timeline-definition-EJHVYXUP-xrk07evk.js} +1 -1
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-fnwcbkxh.js → usecaseDiagram-POWQR4AR-ca9h5skn.js} +1 -1
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-f1mprgkm.js → vennDiagram-UO4OBE2U-c0y47znt.js} +1 -1
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-zm23t6a2.js → wardleyDiagram-VNRHLVJA-mfk1ck3n.js} +1 -1
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-vv1ygmbr.js → xychartDiagram-PMCCYNJV-6f8xt89k.js} +1 -1
- package/extensions/kabmo-modes/protocol.test.ts +1 -1
- package/extensions/kabmo-modes/protocol.ts +1 -1
- package/package.json +35 -5
- package/src/cli/lib/args.js +1 -1
- package/src/cli/lib/commands/doctor.js +5 -5
- package/src/cli/lib/commands/doctor.test.js +1 -1
- package/src/cli/lib/commands/serve.js +2 -2
- package/src/cli/lib/commands/status.js +1 -1
- package/src/cli/lib/omp-setup.js +2 -2
- package/src/cli/lib/paths.js +1 -1
- package/src/cli/lib/runtime.js +1 -1
- package/src/cli/lib/stop-instance.js +1 -1
- package/src/cli/lib/stop-instance.test.js +1 -1
- package/src/cli/lib/ui-password.js +1 -2
- package/src/cli/main.js +1 -1
- package/src/client/components/common/command-palette/ChordHint.tsx +1 -1
- package/src/client/components/common/command-palette/index.tsx +1 -1
- package/src/client/components/common/context-usage-button/SessionStats.tsx +1 -1
- package/src/client/components/common/context-usage-button/TokenTotals.tsx +1 -1
- package/src/client/components/common/context-usage-button/index.test.tsx +1 -1
- package/src/client/components/common/context-usage-button/index.tsx +1 -1
- package/src/client/components/common/file-icon/index.tsx +1 -1
- package/src/client/components/common/harness-glyph/harness-glyph.test.ts +1 -1
- package/src/client/components/common/harness-glyph/index.tsx +2 -4
- package/src/client/components/common/header-controls/index.test.tsx +1 -1
- package/src/client/components/common/header-controls/phone-row.test.tsx +1 -1
- package/src/client/components/common/header-controls/plugin-entry.test.tsx +1 -1
- package/src/client/components/common/key-binding-cheatsheet/index.tsx +1 -1
- package/src/client/components/common/session-actions-menu/index.tsx +2 -2
- package/src/client/components/common/session-branch/SubagentRow.tsx +2 -2
- package/src/client/components/common/session-row/index.tsx +1 -1
- package/src/client/components/common/todo-row/index.test.ts +1 -1
- package/src/client/components/common/todo-row/index.tsx +1 -1
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +2 -2
- package/src/client/components/layout/session-sidebar/CategoryItem.tsx +1 -1
- package/src/client/components/layout/session-sidebar/HarnessFilter.tsx +1 -1
- package/src/client/components/layout/session-sidebar/SessionItem.tsx +1 -1
- package/src/client/components/layout/session-sidebar/SessionList.tsx +1 -1
- package/src/client/components/layout/session-sidebar/WorktreeBadge.test.ts +1 -1
- package/src/client/components/layout/session-sidebar/WorktreeBadge.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/HarnessRow.tsx +4 -4
- package/src/client/components/layout/session-sidebar/about-modal/HarnessTable.tsx +3 -3
- package/src/client/components/layout/session-sidebar/about-modal/NotesDialog.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/UpdateLogDialog.test.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/UpdateLogDialog.tsx +2 -2
- package/src/client/components/layout/session-sidebar/about-modal/UpdateSection.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +1 -1
- package/src/client/components/layout/session-sidebar/modern/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/ModelFields.tsx +3 -3
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
- package/src/client/components/layout/update-popup/Actions.tsx +1 -1
- package/src/client/components/layout/update-popup/ReleaseNotes.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +1 -1
- package/src/client/components/settings/categories/OmpSettings.tsx +1 -1
- package/src/client/components/settings/categories/ProviderSettings.tsx +1 -1
- package/src/client/components/settings/categories/SkillCatalogSettings.tsx +1 -1
- package/src/client/components/settings/categories/agent-settings/DetailPane.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/ThemeCard.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/ThemeGrid.tsx +1 -1
- package/src/client/components/settings/categories/chat-settings/GoalSection.tsx +1 -1
- package/src/client/components/settings/categories/harness-settings/AccountsPanel.test.tsx +1 -1
- package/src/client/components/settings/categories/harness-settings/AccountsPanel.tsx +1 -1
- package/src/client/components/settings/categories/harness-settings/AddProviderForm.tsx +2 -2
- package/src/client/components/settings/categories/harness-settings/ConfigForm.tsx +7 -9
- package/src/client/components/settings/categories/harness-settings/CustomHarnessForm.tsx +1 -1
- package/src/client/components/settings/categories/harness-settings/EnvProviderForm.tsx +1 -1
- package/src/client/components/settings/categories/harness-settings/HarnessCard.import.test.tsx +2 -2
- package/src/client/components/settings/categories/harness-settings/HarnessCard.tsx +3 -3
- package/src/client/components/settings/categories/harness-settings/HarnessImportControls.tsx +1 -1
- package/src/client/components/settings/categories/harness-settings/ImportSection.tsx +2 -2
- package/src/client/components/settings/categories/harness-settings/ProviderPanel.tsx +2 -2
- package/src/client/components/settings/categories/harness-settings/ToggleList.tsx +1 -1
- package/src/client/components/settings/categories/harness-settings/provider-panel.test.tsx +1 -1
- package/src/client/components/settings/categories/keyboard-settings/KeyRecorder.tsx +1 -1
- package/src/client/components/settings/categories/keyboard-settings/ShortcutTable.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/ConfigTabs.tsx +2 -2
- package/src/client/components/settings/categories/omp-settings/EngineHeader.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/OrderedChips.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/PresetBar.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/RoleEditor.test.ts +1 -1
- package/src/client/components/settings/categories/omp-settings/RoleEditor.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/RoleRow.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/RowEditor.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/Meta.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/worktree-row.test.ts +1 -1
- package/src/client/components/settings/categories/project-settings/worktree-row.ts +1 -1
- package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +5 -7
- package/src/client/components/settings/categories/provider-settings/AddProviderModal.tsx +6 -8
- package/src/client/components/settings/categories/provider-settings/DialectFields.tsx +8 -12
- package/src/client/components/settings/categories/provider-settings/EffortLadder.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +4 -6
- package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/ModelsList.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/PresetPicker.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/preset-picker.test.tsx +1 -1
- package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +1 -1
- package/src/client/components/workspace/btw-panel/TopicMenu.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.speech.test.tsx +32 -0
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +13 -3
- package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +4 -1
- package/src/client/components/workspace/chat-timeline/ChatOverlays.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/ComposerDock.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/GoalNotice.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/IrcNotice.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/MessageItem.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/MessageList.tsx +3 -1
- package/src/client/components/workspace/chat-timeline/MinimapShortcuts.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/MobileTurnJump.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/OrchestrationNotice.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/PendingChatView.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/PendingTranscript.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/RunFooter.tsx +10 -2
- package/src/client/components/workspace/chat-timeline/RunMark.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SubagentControls.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SubagentView.tsx +4 -3
- package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/ToolCallingSection.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/UserTurn.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/UserTurn.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/ArmedGoalStrip.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.test.ts +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/access-levels.ts +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/goal-modal-parts.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/modes-props.ts +3 -3
- package/src/client/components/workspace/chat-timeline/chat-input/props.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/selection.ts +1 -1
- package/src/client/components/workspace/chat-timeline/index.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/pending-harness.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FrameControl.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/GroupedAsk.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/LooseFieldAsk.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionBlock.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/drafts.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/approval-gate.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/hashline-patch/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Checkpoint.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Goal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/GoalRecord.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +7 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SearchFs.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/TaskResult.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/registry.test.ts +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/EnvelopeHeader.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/FallbackOutput.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/FallbackToolJson.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/FallbackToolJson.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolCardShell.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolScreenshots.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolScreenshots.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.test.ts +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-helpers.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/read-line-meta.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/read-line-meta.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/tool-input.ts +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/tool-view.ts +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Card.plugin.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/parity.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/styles.test.tsx +1 -1
- package/src/client/components/workspace/context-panel/CostBreakdownPopover.tsx +1 -1
- package/src/client/components/workspace/context-panel/pure-helpers.test.ts +1 -1
- package/src/client/components/workspace/diff-panel/ConflictBanner.tsx +1 -1
- package/src/client/components/workspace/diff-panel/index.tsx +2 -2
- package/src/client/components/workspace/editor/Body.tsx +1 -1
- package/src/client/components/workspace/editor/Dialogs.tsx +1 -1
- package/src/client/components/workspace/editor/FilePane.tsx +1 -1
- package/src/client/components/workspace/editor/FindWidget.tsx +1 -1
- package/src/client/components/workspace/editor/Notices.tsx +1 -1
- package/src/client/components/workspace/editor/Pane.tsx +1 -1
- package/src/client/components/workspace/editor/Tabs.test.ts +1 -1
- package/src/client/components/workspace/editor/Tabs.tsx +1 -1
- package/src/client/components/workspace/editor/chrome-rows.test.tsx +1 -1
- package/src/client/components/workspace/editor/props.ts +1 -1
- package/src/client/components/workspace/editor/viewers/bytes.test.ts +1 -1
- package/src/client/components/workspace/editor/viewers/bytes.ts +1 -1
- package/src/client/components/workspace/file-explorer/RowLabel.test.tsx +1 -1
- package/src/client/components/workspace/file-explorer/TreeItem.tsx +1 -1
- package/src/client/components/workspace/git-panel/ChangesList.tsx +1 -1
- package/src/client/components/workspace/git-panel/ConflictItem.tsx +2 -2
- package/src/client/components/workspace/git-panel/OperationBar.tsx +2 -2
- package/src/client/components/workspace/git-panel/StashSection.tsx +1 -1
- package/src/client/components/workspace/git-panel/branch-modal/BranchRow.tsx +1 -1
- package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +1 -1
- package/src/client/components/workspace/git-panel/branch-modal/RenameDialog.tsx +1 -1
- package/src/client/components/workspace/git-panel/branch-modal/index.tsx +1 -1
- package/src/client/components/workspace/git-panel/commit-modal/CommitActions.tsx +1 -1
- package/src/client/components/workspace/git-panel/commit-modal/CommitRow.test.ts +1 -1
- package/src/client/components/workspace/git-panel/commit-modal/CommitRow.tsx +1 -1
- package/src/client/components/workspace/git-panel/commit-modal/GraphCanvas.tsx +1 -1
- package/src/client/components/workspace/git-panel/commit-modal/index.tsx +1 -1
- package/src/client/components/workspace/git-panel/confirm-request.ts +2 -2
- package/src/client/components/workspace/git-panel/index.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/Panel.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +1 -1
- package/src/client/components/workspace/plan-panel/Nav.tsx +1 -1
- package/src/client/components/workspace/plan-panel/PageView.tsx +1 -1
- package/src/client/components/workspace/plan-panel/index.tsx +1 -1
- package/src/client/components/workspace/repo-picker/Modal.tsx +1 -1
- package/src/client/components/workspace/repo-picker/Row.tsx +2 -2
- package/src/client/components/workspace/search-panel/Body.tsx +1 -1
- package/src/client/components/workspace/search-panel/Results.tsx +1 -1
- package/src/client/components/workspace/search-panel/Row.tsx +1 -1
- package/src/client/components/workspace/todo-panel/PhaseGroup.tsx +1 -1
- package/src/client/components/workspace/todo-panel/index.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/Nav.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/NavModal.test.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/NavModal.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/PageView.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/index.tsx +1 -1
- package/src/client/components/workspace/worktree-modal/index.tsx +1 -1
- package/src/client/data/mock/chat.ts +1 -1
- package/src/client/data/mock/git-commits.ts +1 -1
- package/src/client/data/mock/subagents.ts +1 -1
- package/src/client/data/samples/subagent-session.ts +1 -1
- package/src/client/data/samples/tools-session.ts +1 -1
- package/src/client/data/settings/provider.ts +1 -1
- package/src/client/hooks/chat/composer/browser-context.ts +1 -1
- package/src/client/hooks/chat/composer/model-selection.ts +1 -1
- package/src/client/hooks/chat/context/telemetry.ts +1 -1
- package/src/client/hooks/chat/omp/index.ts +3 -3
- package/src/client/hooks/chat/omp/pending-child.test.ts +1 -1
- package/src/client/hooks/chat/omp/pending-rows.ts +1 -1
- package/src/client/hooks/chat/omp/pending-sessions.test.ts +1 -1
- package/src/client/hooks/chat/omp/pending-sessions.ts +1 -1
- package/src/client/hooks/chat/omp/prompt-send.ts +1 -1
- package/src/client/hooks/chat/omp/session-list.tsx +1 -1
- package/src/client/hooks/chat/omp/session-merges.ts +1 -1
- package/src/client/hooks/chat/omp/session-sidebar-controller.folder-open.test.ts +1 -1
- package/src/client/hooks/chat/omp/session-sidebar-controller.test.ts +1 -1
- package/src/client/hooks/chat/omp/session-sidebar-controller.ts +1 -1
- package/src/client/hooks/chat/omp/stream.ts +1 -1
- package/src/client/hooks/chat/stream.ts +1 -1
- package/src/client/hooks/chat/subagent/index.ts +3 -3
- package/src/client/hooks/chat/subagents/roster.ts +6 -8
- package/src/client/hooks/chat/timeline/access-mode.ts +6 -8
- package/src/client/hooks/chat/timeline/actions.ts +1 -1
- package/src/client/hooks/chat/timeline/armed-goal.test.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frame-buckets.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frames-context.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frames-form.test.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frames-grouped.test.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frames.test.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frames.ts +1 -1
- package/src/client/hooks/chat/timeline/child-spawn.ts +1 -1
- package/src/client/hooks/chat/timeline/enqueue-follow-up.ts +1 -1
- package/src/client/hooks/chat/timeline/extension-dialog.ts +1 -1
- package/src/client/hooks/chat/timeline/fork-open.ts +1 -1
- package/src/client/hooks/chat/timeline/fork-request.ts +1 -1
- package/src/client/hooks/chat/timeline/goal-command.ts +2 -2
- package/src/client/hooks/chat/timeline/local-commands.ts +1 -1
- package/src/client/hooks/chat/timeline/lost-run.ts +1 -1
- package/src/client/hooks/chat/timeline/mode-availability.ts +1 -1
- package/src/client/hooks/chat/timeline/mode-marker-spellings.test.ts +2 -2
- package/src/client/hooks/chat/timeline/mode-markers.ts +8 -10
- package/src/client/hooks/chat/timeline/mode-post.ts +1 -1
- package/src/client/hooks/chat/timeline/modes-contract.ts +3 -3
- package/src/client/hooks/chat/timeline/modes-hydrate.ts +3 -3
- package/src/client/hooks/chat/timeline/modes.test.ts +1 -1
- package/src/client/hooks/chat/timeline/modes.ts +9 -11
- package/src/client/hooks/chat/timeline/pending-dispatch.ts +1 -1
- package/src/client/hooks/chat/timeline/pending-session-mode.test.ts +1 -1
- package/src/client/hooks/chat/timeline/pending-session-mode.ts +2 -2
- package/src/client/hooks/chat/timeline/pending-warmup.ts +1 -1
- package/src/client/hooks/chat/timeline/plan-review.ts +5 -5
- package/src/client/hooks/chat/timeline/rewind-actions.ts +1 -1
- package/src/client/hooks/chat/timeline/send-props.ts +2 -2
- package/src/client/hooks/chat/timeline/send-steer.test.ts +1 -1
- package/src/client/hooks/chat/timeline/send.test-util.ts +1 -1
- package/src/client/hooks/chat/timeline/send.test.ts +1 -1
- package/src/client/hooks/chat/timeline/send.ts +2 -2
- package/src/client/hooks/chat/timeline/session-load.ts +1 -1
- package/src/client/hooks/chat/timeline/session-scope.test.ts +1 -1
- package/src/client/hooks/chat/timeline/session-shapes.ts +1 -1
- package/src/client/hooks/chat/timeline/session-title.ts +1 -1
- package/src/client/hooks/chat/timeline/subagent-view.ts +2 -2
- package/src/client/hooks/chat/timeline/timeline-mode-state.test.ts +3 -3
- package/src/client/hooks/chat/timeline/tool-open.test.ts +1 -1
- package/src/client/hooks/chat/timeline/tool-open.ts +1 -1
- package/src/client/hooks/chat/timeline/tui-only-guard.ts +1 -1
- package/src/client/hooks/chat/waiting/composer-wait.ts +1 -1
- package/src/client/hooks/chat/waiting/held.ts +1 -1
- package/src/client/hooks/chat/waiting/hold.test.ts +1 -1
- package/src/client/hooks/chat/waiting/hold.ts +2 -2
- package/src/client/hooks/chat/waiting/restore.test.ts +1 -1
- package/src/client/hooks/chat/waiting/restore.ts +1 -1
- package/src/client/hooks/chat/waiting/store.ts +1 -1
- package/src/client/hooks/commands/use-command-catalog.ts +1 -1
- package/src/client/hooks/commands/use-command-runtime.ts +1 -1
- package/src/client/hooks/commands/use-palette-items.ts +1 -1
- package/src/client/hooks/editor/resolve-viewer.ts +2 -2
- package/src/client/hooks/editor/use-close-guard.ts +1 -1
- package/src/client/hooks/editor/use-editor-document.ts +1 -1
- package/src/client/hooks/editor/use-editor-outline-bridge.ts +1 -1
- package/src/client/hooks/editor/use-editor-tab-state.ts +1 -1
- package/src/client/hooks/editor/use-split-editor.test.tsx +1 -1
- package/src/client/hooks/editor/use-split-editor.ts +1 -1
- package/src/client/hooks/models/harness-accounts.ts +1 -1
- package/src/client/hooks/models/harness-catalog.ts +3 -3
- package/src/client/hooks/models/provider-writes.ts +1 -1
- package/src/client/hooks/models/use-harness-update.test.ts +1 -1
- package/src/client/hooks/models/use-harness-update.ts +2 -2
- package/src/client/hooks/models/use-harness-versions.ts +1 -1
- package/src/client/hooks/models/use-harnesses-controller.ts +2 -2
- package/src/client/hooks/models/use-harnesses.ts +1 -1
- package/src/client/hooks/settings/model-roles.ts +1 -1
- package/src/client/hooks/settings/omp-config.ts +1 -1
- package/src/client/hooks/settings/projects/index.ts +1 -1
- package/src/client/hooks/tts/use-speech-autoplay.test.tsx +33 -6
- package/src/client/hooks/tts/use-speech-autoplay.ts +2 -2
- package/src/client/hooks/ui/updates/changelog.ts +1 -1
- package/src/client/hooks/ui/updates/index.ts +1 -1
- package/src/client/hooks/ui/updates/notes.test.ts +1 -1
- package/src/client/hooks/ui/updates/notes.ts +1 -1
- package/src/client/hooks/ui/updates/shell-download.ts +1 -1
- package/src/client/hooks/workspace/active-project.ts +1 -1
- package/src/client/hooks/workspace/commit-expansion.test.ts +1 -1
- package/src/client/hooks/workspace/commit-expansion.ts +1 -1
- package/src/client/hooks/workspace/commit-interactions.ts +1 -1
- package/src/client/hooks/workspace/commit-layer.test.ts +1 -1
- package/src/client/hooks/workspace/commit-pagination.ts +1 -1
- package/src/client/hooks/workspace/copy-tab-path.ts +1 -1
- package/src/client/hooks/workspace/diff-git-actions.ts +1 -1
- package/src/client/hooks/workspace/file-listing.ts +1 -1
- package/src/client/hooks/workspace/file-tabs.test.ts +1 -1
- package/src/client/hooks/workspace/file-tabs.ts +1 -1
- package/src/client/hooks/workspace/file-tree-actions.ts +1 -1
- package/src/client/hooks/workspace/git-status.ts +1 -1
- package/src/client/hooks/workspace/git-tree.test.ts +1 -1
- package/src/client/hooks/workspace/journal-diff.ts +2 -2
- package/src/client/hooks/workspace/repo-details.ts +1 -1
- package/src/client/hooks/workspace/repo-scope/store.ts +1 -1
- package/src/client/hooks/workspace/scheduled-tasks.ts +1 -1
- package/src/client/hooks/workspace/search-stream.test.ts +1 -1
- package/src/client/hooks/workspace/search-stream.ts +1 -1
- package/src/client/hooks/workspace/terminal/socket.ts +1 -1
- package/src/client/hooks/workspace/wiki.ts +1 -1
- package/src/client/hooks/workspace/worktree/index.ts +1 -1
- package/src/client/lib/commands/keymap.ts +1 -1
- package/src/client/lib/editor/tab-menu.test.ts +1 -1
- package/src/client/lib/editor/tab-menu.ts +1 -1
- package/src/client/lib/git/action-message.ts +1 -1
- package/src/client/lib/launch/device-files.ts +1 -1
- package/src/client/lib/launch/file-handlers.test.ts +2 -2
- package/src/client/lib/launch/file-handlers.ts +1 -1
- package/src/client/lib/notifications/native-banner-sound.ts +1 -1
- package/src/client/lib/plugins/sidebar-bridge.ts +1 -1
- package/src/client/lib/shell/transport.ts +3 -3
- package/src/server/db.server.ts +30 -250
- package/src/server/index.ts +6 -6
- package/src/server/lib/assets/shell-attributes.server.ts +1 -1
- package/src/server/lib/assets/theme-shell.server.ts +1 -1
- package/src/server/lib/auth/agent-gate.server.ts +1 -1
- package/src/server/lib/auth/agent-tree-gate.test.ts +1 -1
- package/src/server/lib/auth/config.ts +1 -1
- package/src/server/lib/auth/env-password.test.ts +1 -1
- package/src/server/lib/auth/env-password.ts +1 -1
- package/src/server/lib/auth/guard.ts +1 -1
- package/src/server/lib/browser/engine.ts +1 -1
- package/src/server/lib/browser/runtime.ts +1 -1
- package/src/server/lib/btw/frames.ts +2 -2
- package/src/server/lib/btw/lifecycle.server.ts +4 -4
- package/src/server/lib/btw/purge.server.ts +1 -1
- package/src/server/lib/btw/runtime.server.test.ts +1 -1
- package/src/server/lib/btw/runtime.server.ts +3 -3
- package/src/server/lib/btw/schema.server.test.ts +1 -1
- package/src/server/lib/btw/schema.server.ts +1 -1
- package/src/server/lib/btw/service.server.ts +6 -5
- package/src/server/lib/btw/session-copy.server.ts +3 -3
- package/src/server/lib/btw/session-copy.test.ts +1 -1
- package/src/server/lib/btw/store.server.test.ts +1 -1
- package/src/server/lib/changes/attach.server.ts +1 -1
- package/src/server/lib/changes/attach.test.ts +1 -1
- package/src/server/lib/changes/capture-client-write.server.ts +1 -1
- package/src/server/lib/changes/capture-fs.server.ts +2 -2
- package/src/server/lib/changes/capture.server.ts +2 -2
- package/src/server/lib/changes/journal-read.server.ts +5 -5
- package/src/server/lib/changes/merge.test.ts +1 -1
- package/src/server/lib/changes/omp-fallback.server.ts +3 -3
- package/src/server/lib/changes/omp-fallback.test.ts +1 -1
- package/src/server/lib/changes/paths.server.ts +2 -2
- package/src/server/lib/changes/reader.server.ts +3 -3
- package/src/server/lib/changes/reader.test.ts +1 -1
- package/src/server/lib/changes/scan.server.ts +1 -1
- package/src/server/lib/changes/sessions.server.ts +2 -2
- package/src/server/lib/chat/normalize-tools.server.ts +4 -4
- package/src/server/lib/chat/schema.server.ts +1 -1
- package/src/server/lib/chat/session-store.server.ts +4 -4
- package/src/server/lib/connect/cloudflared-config.server.ts +1 -1
- package/src/server/lib/connect/devices.server.ts +1 -1
- package/src/server/lib/connect/identity.server.ts +1 -1
- package/src/server/lib/db/client.test.ts +1 -1
- package/src/server/lib/db/compact-chat-overlay.test.ts +1 -1
- package/src/server/lib/db/compact-chat-overlay.ts +3 -3
- package/src/server/lib/db/schema.test.ts +2 -2
- package/src/server/lib/db/schema.ts +4 -4
- package/src/server/lib/db/seed.test.ts +1 -1
- package/src/server/lib/db/seed.ts +1 -1
- package/src/server/lib/db/settings-store.test.ts +2 -2
- package/src/server/lib/db/workspace-sync.test.ts +3 -3
- package/src/server/lib/db/workspace-sync.ts +4 -4
- package/src/server/lib/dictation/capability.server.test.ts +1 -1
- package/src/server/lib/dictation/capability.server.ts +1 -1
- package/src/server/lib/dictation/language.server.test.ts +1 -1
- package/src/server/lib/dictation/language.server.ts +2 -2
- package/src/server/lib/dictation/omp-stt-worker.test.ts +1 -1
- package/src/server/lib/dictation/omp-stt-worker.ts +1 -1
- package/src/server/lib/dictation/settings.server.ts +3 -3
- package/src/server/lib/fs/fs-path.test.ts +1 -1
- package/src/server/lib/fs/fs-write-git.test.ts +2 -2
- package/src/server/lib/fs/git-actions-branch.ts +1 -1
- package/src/server/lib/fs/git-actions-shared.ts +1 -1
- package/src/server/lib/fs/git-actions-worktree.ts +1 -1
- package/src/server/lib/fs/git-blame.ts +1 -1
- package/src/server/lib/fs/git-branch.ts +1 -1
- package/src/server/lib/fs/git-commit-context.ts +1 -1
- package/src/server/lib/fs/git-commit-message.server.ts +8 -8
- package/src/server/lib/fs/git-commit-settings.server.ts +1 -1
- package/src/server/lib/fs/git-diff.ts +2 -2
- package/src/server/lib/fs/git-identity.server.test.ts +1 -1
- package/src/server/lib/fs/git-identity.server.ts +2 -2
- package/src/server/lib/fs/git-ignore.ts +1 -1
- package/src/server/lib/fs/git-index-lock.test.ts +1 -1
- package/src/server/lib/fs/git-log.ts +3 -3
- package/src/server/lib/fs/git-merge.ts +1 -1
- package/src/server/lib/fs/git-publish.ts +1 -1
- package/src/server/lib/fs/git-repo-details.ts +2 -2
- package/src/server/lib/fs/git-repos.ts +1 -1
- package/src/server/lib/fs/git-revert.ts +1 -1
- package/src/server/lib/fs/git-stash.ts +1 -1
- package/src/server/lib/fs/git-state.ts +2 -2
- package/src/server/lib/fs/git-status-read.test.ts +1 -1
- package/src/server/lib/fs/git-status-read.ts +1 -1
- package/src/server/lib/fs/git-sync.ts +1 -1
- package/src/server/lib/fs/listing.test.ts +6 -6
- package/src/server/lib/fs/listing.ts +1 -1
- package/src/server/lib/fs/reveal.ts +1 -1
- package/src/server/lib/fs/ripgrep.ts +1 -1
- package/src/server/lib/fs/root-worktree.test.ts +1 -1
- package/src/server/lib/fs/shell.ts +2 -2
- package/src/server/lib/fs/worktree/carry.ts +2 -2
- package/src/server/lib/fs/worktree/create.test.ts +3 -3
- package/src/server/lib/fs/worktree/create.ts +7 -7
- package/src/server/lib/fs/worktree/errors.ts +1 -1
- package/src/server/lib/fs/worktree/list.test.ts +3 -3
- package/src/server/lib/fs/worktree/location.test.ts +1 -1
- package/src/server/lib/fs/worktree/location.ts +1 -1
- package/src/server/lib/fs/worktree/project-id.ts +1 -1
- package/src/server/lib/fs/worktree/remove.test.ts +3 -3
- package/src/server/lib/fs/worktree/remove.ts +4 -4
- package/src/server/lib/harness/accounts.test.ts +2 -2
- package/src/server/lib/harness/acp/acp-telemetry.test.ts +1 -1
- package/src/server/lib/harness/acp/acp-todos.test.ts +1 -1
- package/src/server/lib/harness/acp/activation.test.ts +2 -4
- package/src/server/lib/harness/acp/auth.test.ts +1 -1
- package/src/server/lib/harness/acp/client-capabilities.test.ts +3 -5
- package/src/server/lib/harness/acp/client.test.ts +1 -1
- package/src/server/lib/harness/acp/frames-replay.test.ts +1 -1
- package/src/server/lib/harness/acp/frames-rows.test.ts +1 -1
- package/src/server/lib/harness/acp/frames-timing.test.ts +2 -2
- package/src/server/lib/harness/acp/frames-tool-shapes.test.ts +2 -2
- package/src/server/lib/harness/acp/frames-v2.test.ts +1 -1
- package/src/server/lib/harness/acp/frames-vendor-names.test.ts +2 -2
- package/src/server/lib/harness/acp/gateway-env.test.ts +1 -1
- package/src/server/lib/harness/acp/permissions.test.ts +1 -1
- package/src/server/lib/harness/acp/prewarm.test.ts +2 -2
- package/src/server/lib/harness/acp/session-lost.test.ts +1 -1
- package/src/server/lib/harness/acp/session-wiring.test.ts +2 -2
- package/src/server/lib/harness/acp/turn-cancel.test.ts +1 -1
- package/src/server/lib/harness/config-invalidation.test.ts +2 -2
- package/src/server/lib/harness/enabled.server.test.ts +1 -1
- package/src/server/lib/harness/provider-import.test.ts +6 -6
- package/src/server/lib/harness/provider-sources.server.test.ts +1 -1
- package/src/server/lib/harness/provider-write.server.test.ts +2 -2
- package/src/server/lib/harness/provider-zcode.server.test.ts +2 -2
- package/src/server/lib/harness/register.server.ts +1 -1
- package/src/server/lib/harness/session-transcript.server.test.ts +1 -1
- package/src/server/lib/harness/spawn.server.ts +24 -24
- package/src/server/lib/harness/update-job.server.ts +6 -6
- package/src/server/lib/harness/update-queue.server.ts +13 -13
- package/src/server/lib/harness/update-queue.test.ts +6 -6
- package/src/server/lib/harness/update-spawn.server.ts +3 -3
- package/src/server/lib/harness/update-state.server.ts +5 -5
- package/src/server/lib/harness/update-worker.test.ts +2 -2
- package/src/server/lib/harness/update-worker.ts +2 -2
- package/src/server/lib/lifecycle/after-listen.ts +3 -3
- package/src/server/lib/lifecycle/identity.test.ts +1 -1
- package/src/server/lib/lifecycle/instance.test.ts +2 -2
- package/src/server/lib/lifecycle/instance.ts +1 -1
- package/src/server/lib/lifecycle/occupant.ts +1 -1
- package/src/server/lib/lifecycle/port-guard.test.ts +2 -2
- package/src/server/lib/lifecycle/port-guard.ts +2 -2
- package/src/server/lib/lifecycle/probe.ts +1 -1
- package/src/server/lib/lifecycle/restart.test.ts +2 -2
- package/src/server/lib/lifecycle/restart.ts +1 -1
- package/src/server/lib/lifecycle/tls.ts +1 -1
- package/src/server/lib/mcp/agent-config.server.ts +2 -2
- package/src/server/lib/mcp/probe.server.ts +2 -2
- package/src/server/lib/mcp/registry.server.ts +7 -9
- package/src/server/lib/mcp/schema.server.ts +1 -1
- package/src/server/lib/mcp/secrets.server.ts +1 -1
- package/src/server/lib/mcp/session-overlay.server.ts +1 -1
- package/src/server/lib/mcp/session-state.server.ts +1 -1
- package/src/server/lib/mcp/store.server.ts +3 -3
- package/src/server/lib/model-roles/catalog.server.ts +4 -4
- package/src/server/lib/model-roles/mock.server.ts +1 -1
- package/src/server/lib/model-roles/schema.server.ts +1 -1
- package/src/server/lib/model-roles/store.server.ts +3 -3
- package/src/server/lib/models/catalog.server.ts +4 -4
- package/src/server/lib/models/credential-origin.server.ts +3 -3
- package/src/server/lib/models/detected-registry.server.ts +1 -1
- package/src/server/lib/models/preferences.server.ts +2 -2
- package/src/server/lib/models/provider-icon-fetch.ts +1 -1
- package/src/server/lib/models/provider-icon-store.server.ts +1 -1
- package/src/server/lib/models/provider-icon-svg.ts +1 -1
- package/src/server/lib/models/provider-icon.server.ts +1 -1
- package/src/server/lib/models/provider-items.server.ts +5 -7
- package/src/server/lib/models/provider-listing.server.ts +1 -1
- package/src/server/lib/models/provider-registry.server.test.ts +1 -1
- package/src/server/lib/models/provider-registry.server.ts +3 -3
- package/src/server/lib/models/registry-refresh.server.ts +6 -6
- package/src/server/lib/models/registry.server.test.ts +2 -2
- package/src/server/lib/models/registry.server.ts +3 -3
- package/src/server/lib/models/selected-context-limit.server.test.ts +3 -3
- package/src/server/lib/models/selected-context-limit.server.ts +1 -1
- package/src/server/lib/notifications/feed.server.test.ts +1 -1
- package/src/server/lib/notifications/feed.server.ts +20 -5
- package/src/server/lib/notifications/schema.server.ts +1 -1
- package/src/server/lib/observer-ws.ts +1 -1
- package/src/server/lib/omp/config/mcp-and-cli.test.ts +4 -4
- package/src/server/lib/omp/config/roots-watch.server.ts +2 -2
- package/src/server/lib/omp/config/scope.test.ts +1 -1
- package/src/server/lib/omp/config/scope.ts +2 -2
- package/src/server/lib/omp/config/skill-sources.ts +3 -3
- package/src/server/lib/omp/config/skills-git-install.ts +1 -1
- package/src/server/lib/omp/config/skills-git-repo.ts +2 -2
- package/src/server/lib/omp/config/skills-git.test.ts +1 -1
- package/src/server/lib/omp/core/auth-credentials.ts +3 -3
- package/src/server/lib/omp/core/host-resolution.test.ts +4 -4
- package/src/server/lib/omp/mode/command-type.test.ts +1 -1
- package/src/server/lib/omp/mode/live-selection.test.ts +1 -1
- package/src/server/lib/omp/mode/live-selection.ts +5 -4
- package/src/server/lib/omp/rpc/destroy-stream-row.test.ts +2 -2
- package/src/server/lib/omp/rpc/errors.ts +3 -3
- package/src/server/lib/omp/rpc/forked-resume.test.ts +1 -1
- package/src/server/lib/omp/rpc/frame-fold-contract.ts +3 -3
- package/src/server/lib/omp/rpc/frame-fold-frames.test.ts +4 -4
- package/src/server/lib/omp/rpc/frame-fold-host.test-util.ts +1 -1
- package/src/server/lib/omp/rpc/frame-fold-signals.test.ts +1 -1
- package/src/server/lib/omp/rpc/frame-fold.test.ts +1 -1
- package/src/server/lib/omp/rpc/frame-fold.ts +8 -8
- package/src/server/lib/omp/rpc/lifecycle.test.ts +1 -1
- package/src/server/lib/omp/rpc/manager.ts +14 -17
- package/src/server/lib/omp/rpc/prewarm-pool.ts +4 -4
- package/src/server/lib/omp/rpc/rpc-primitives.test.ts +6 -8
- package/src/server/lib/omp/rpc/run-model.test.ts +4 -4
- package/src/server/lib/omp/rpc/run-model.ts +3 -3
- package/src/server/lib/omp/rpc/run-settle.server.ts +4 -4
- package/src/server/lib/omp/rpc/run-settle.test.ts +3 -3
- package/src/server/lib/omp/rpc/session-commands-dialog.test.ts +3 -3
- package/src/server/lib/omp/rpc/session-commands-harness.ts +3 -3
- package/src/server/lib/omp/rpc/session-commands-mapping.test.ts +1 -1
- package/src/server/lib/omp/rpc/session-commands.test.ts +6 -6
- package/src/server/lib/omp/rpc/session-new.ts +5 -5
- package/src/server/lib/omp/rpc/session-registration.ts +1 -1
- package/src/server/lib/omp/rpc/session-registry.test.ts +1 -1
- package/src/server/lib/omp/rpc/session-registry.ts +35 -11
- package/src/server/lib/omp/rpc/spawn-args.test.ts +124 -0
- package/src/server/lib/omp/rpc/spawn-args.ts +93 -0
- package/src/server/lib/omp/rpc/spawn-provenance.ts +1 -1
- package/src/server/lib/omp/rpc/terminal-settle.test.ts +3 -3
- package/src/server/lib/omp/rpc/terminal-settle.ts +5 -5
- package/src/server/lib/omp/session/artifacts.server.test.ts +1 -1
- package/src/server/lib/omp/session/artifacts.server.ts +2 -2
- package/src/server/lib/omp/session/auto-title.server.test.ts +1 -1
- package/src/server/lib/omp/session/auto-title.server.ts +6 -6
- package/src/server/lib/omp/session/data-mock.ts +3 -3
- package/src/server/lib/omp/session/delete-flow.server.ts +5 -5
- package/src/server/lib/omp/session/delete.server.ts +9 -9
- package/src/server/lib/omp/session/goal-auditor.test.ts +1 -1
- package/src/server/lib/omp/session/lease-probe.server.test.ts +1 -1
- package/src/server/lib/omp/session/merge-stored-anchor.test.ts +1 -1
- package/src/server/lib/omp/session/merge-stored-notices.test.ts +1 -1
- package/src/server/lib/omp/session/merge-stored-overlay-rows.test.ts +1 -1
- package/src/server/lib/omp/session/ownership.server.test.ts +3 -3
- package/src/server/lib/omp/session/ownership.server.ts +5 -5
- package/src/server/lib/omp/session/plan-mode-env.test.ts +2 -2
- package/src/server/lib/omp/session/plans.ts +3 -3
- package/src/server/lib/omp/session/reload.server.ts +1 -1
- package/src/server/lib/omp/session/rename-with-ai.server.ts +8 -7
- package/src/server/lib/omp/session/resumable-model.recovery.test.ts +2 -2
- package/src/server/lib/omp/session/resumable-model.server.test.ts +2 -2
- package/src/server/lib/omp/session/session-discovery.test.ts +4 -4
- package/src/server/lib/omp/session/session-reads.test.ts +1 -1
- package/src/server/lib/omp/session/sidebar-activity.server.test.ts +4 -4
- package/src/server/lib/omp/session/sidebar-data.canonical.test.ts +3 -3
- package/src/server/lib/omp/session/standby.server.ts +4 -4
- package/src/server/lib/omp/session/subagent-presence-store.test.ts +2 -2
- package/src/server/lib/omp/session/telemetry/compute.ts +7 -7
- package/src/server/lib/omp/session/telemetry/format.ts +3 -3
- package/src/server/lib/omp/session/telemetry/index.ts +2 -2
- package/src/server/lib/omp/session/telemetry-raw.ts +2 -2
- package/src/server/lib/omp/session/title-model-overlay.server.test.ts +1 -1
- package/src/server/lib/omp/session/title-request.server.test.ts +1 -1
- package/src/server/lib/omp/session/todos.ts +4 -4
- package/src/server/lib/panels/baseline.server.test.ts +1 -1
- package/src/server/lib/panels/baseline.server.ts +1 -1
- package/src/server/lib/panels/build-targets.server.ts +1 -1
- package/src/server/lib/panels/build.server.ts +1 -1
- package/src/server/lib/panels/catalog.server.ts +2 -2
- package/src/server/lib/panels/compat.server.ts +1 -1
- package/src/server/lib/panels/files.server.ts +2 -2
- package/src/server/lib/panels/git-update.server.ts +2 -2
- package/src/server/lib/panels/install.server.ts +2 -2
- package/src/server/lib/panels/local-edits.server.ts +1 -1
- package/src/server/lib/panels/manifest.ts +2 -2
- package/src/server/lib/panels/marketplace-catalog.server.ts +1 -1
- package/src/server/lib/panels/registries.server.ts +1 -1
- package/src/server/lib/panels/registry-cache.server.ts +1 -1
- package/src/server/lib/panels/registry-refresh.server.ts +1 -1
- package/src/server/lib/panels/registry.server.ts +2 -2
- package/src/server/lib/panels/scan.server.ts +1 -1
- package/src/server/lib/panels/seed.server.ts +1 -1
- package/src/server/lib/panels/state.server.test.ts +1 -1
- package/src/server/lib/panels/state.server.ts +2 -2
- package/src/server/lib/panels/sync.server.ts +3 -3
- package/src/server/lib/panels/update.server.ts +1 -1
- package/src/server/lib/plugins/background.server.ts +1 -1
- package/src/server/lib/plugins/e2e.test.ts +1 -1
- package/src/server/lib/plugins/loader.server.ts +2 -2
- package/src/server/lib/plugins/schedule-store.server.ts +1 -1
- package/src/server/lib/plugins/schema.server.ts +1 -1
- package/src/server/lib/plugins/settings.server.ts +1 -1
- package/src/server/lib/plugins/storage.server.ts +1 -1
- package/src/server/lib/queue/delivery-dispatch.server.test.ts +1 -1
- package/src/server/lib/queue/delivery-harness.ts +1 -1
- package/src/server/lib/queue/delivery.server.ts +12 -1
- package/src/server/lib/queue/payload.ts +1 -1
- package/src/server/lib/queue/schema-migration.server.ts +1 -1
- package/src/server/lib/queue/store.server.ts +3 -3
- package/src/server/lib/realtime/topics/catalog.server.ts +4 -4
- package/src/server/lib/realtime/topics/peer-relay.server.ts +2 -2
- package/src/server/lib/realtime/topics/session-data.server.ts +6 -6
- package/src/server/lib/realtime/topics/session.server.ts +1 -1
- package/src/server/lib/realtime/topics/workspace.server.ts +2 -2
- package/src/server/lib/realtime/topics.server.test.ts +1 -1
- package/src/server/lib/realtime/topics.server.ts +5 -5
- package/src/server/lib/review/schema.server.ts +1 -1
- package/src/server/lib/route-adapter.ts +1 -1
- package/src/server/lib/schedule/rows.server.ts +3 -3
- package/src/server/lib/schedule/runtime.server.test.ts +1 -1
- package/src/server/lib/schedule/runtime.server.ts +7 -6
- package/src/server/lib/schedule/schema.server.ts +1 -1
- package/src/server/lib/schedule/store.server.test.ts +1 -1
- package/src/server/lib/schedule/store.server.ts +2 -2
- package/src/server/lib/sessions/answers.server.test.ts +1 -1
- package/src/server/lib/sessions/dispatch.server.test.ts +2 -2
- package/src/server/lib/sessions/dispatch.server.ts +6 -6
- package/src/server/lib/sessions/fork.server.test.ts +4 -4
- package/src/server/lib/sessions/fork.server.ts +12 -12
- package/src/server/lib/sessions/lifecycle.server.test.ts +3 -3
- package/src/server/lib/sessions/notify.server.test.ts +2 -2
- package/src/server/lib/sessions/notify.server.ts +12 -4
- package/src/server/lib/sessions/resolve.server.ts +6 -6
- package/src/server/lib/sessions/schema.server.ts +1 -1
- package/src/server/lib/sessions/spawn.server.test.ts +8 -2
- package/src/server/lib/sessions/spawn.server.ts +9 -9
- package/src/server/lib/terminal/foreground.test.ts +1 -1
- package/src/server/lib/terminal/foreground.ts +2 -2
- package/src/server/lib/terminal/session.server.ts +3 -3
- package/src/server/lib/tray/config.ts +1 -1
- package/src/server/lib/tray/credential.ts +1 -1
- package/src/server/lib/tray/runtime.server.ts +3 -3
- package/src/server/lib/tts/local-models.server.ts +1 -1
- package/src/server/lib/tts/local.server.ts +1 -1
- package/src/server/lib/tts/model-manifest.server.ts +1 -1
- package/src/server/lib/tts/settings.server.ts +3 -3
- package/src/server/lib/updates/active-notes.test.ts +2 -2
- package/src/server/lib/updates/active-notes.ts +2 -2
- package/src/server/lib/updates/apply.ts +1 -1
- package/src/server/lib/updates/changelog-file.ts +1 -1
- package/src/server/lib/updates/changelog.test.ts +1 -1
- package/src/server/lib/updates/changelog.ts +3 -3
- package/src/server/lib/updates/check.ts +2 -2
- package/src/server/lib/updates/install.ts +1 -1
- package/src/server/lib/updates/npm.ts +1 -1
- package/src/server/lib/updates/omp.test.ts +1 -1
- package/src/server/lib/updates/omp.ts +3 -3
- package/src/server/lib/updates/shell-release.ts +1 -1
- package/src/server/lib/updates/single-flight.ts +1 -1
- package/src/server/lib/usage/antigravity-quota.ts +1 -1
- package/src/server/lib/usage/antigravity.ts +2 -2
- package/src/server/lib/usage/deepseek.ts +1 -1
- package/src/server/lib/usage/index-harness.test.ts +1 -1
- package/src/server/lib/usage/index-parse.ts +2 -2
- package/src/server/lib/usage/index-query.server.ts +1 -1
- package/src/server/lib/usage/index-scan.server.ts +1 -1
- package/src/server/lib/usage/index-schema.server.ts +1 -1
- package/src/server/lib/usage/kenari-accounts.test.ts +2 -2
- package/src/server/lib/usage/kenari.ts +1 -1
- package/src/server/lib/usage/new-api.ts +1 -1
- package/src/server/lib/usage/omp-usage.server.ts +3 -3
- package/src/server/lib/usage/provider-key.test.ts +2 -2
- package/src/server/lib/usage/provider-key.ts +2 -2
- package/src/server/lib/usage/report.server.ts +1 -1
- package/src/server/lib/usage/reset.server.test.ts +1 -1
- package/src/server/lib/usage/reset.server.ts +4 -4
- package/src/server/lib/usage/sources/claude.server.ts +2 -2
- package/src/server/lib/usage/sources/codex.server.ts +3 -3
- package/src/server/lib/usage/sources/dsh.server.ts +2 -2
- package/src/server/lib/usage/sources/helpers.ts +1 -1
- package/src/server/lib/usage/sources/jsonl.server.ts +1 -1
- package/src/server/lib/usage/sources/omp.server.ts +2 -2
- package/src/server/lib/usage/sources/opencode.server.ts +2 -2
- package/src/server/lib/usage/sources/qwen.server.ts +2 -2
- package/src/server/lib/usage/sources/types.ts +1 -1
- package/src/server/lib/usage/sources/zcode.server.ts +1 -1
- package/src/server/lib/usage/token-harbor.ts +1 -1
- package/src/server/lib/usage/token-portal.ts +1 -1
- package/src/server/lib/usage/vendor-balance.server.ts +1 -1
- package/src/server/lib/waiting/runtime.server.test.ts +2 -2
- package/src/server/lib/waiting/runtime.server.ts +7 -10
- package/src/server/lib/waiting/schema.server.ts +1 -1
- package/src/server/lib/waiting/settle.ts +1 -1
- package/src/server/lib/waiting/store.server.ts +3 -3
- package/src/server/lib/wiki/mirror.server.ts +3 -3
- package/src/server/lib/wiki/payload.server.ts +2 -2
- package/src/server/lib/wiki/provider.server.ts +1 -1
- package/src/server/lib/workspace/project-model.server.test.ts +1 -1
- package/src/server/lib/workspace/project-model.server.ts +2 -2
- package/src/server/lib/workspace/project-patch.server.ts +2 -2
- package/src/server/lib/workspace/register-folder.server.ts +3 -3
- package/src/server/plugins/compress.ts +1 -1
- package/src/server/plugins/shell.server.test.ts +1 -1
- package/src/server/plugins/shell.server.ts +1 -1
- package/src/server/plugins/static.ts +1 -1
- package/src/server/routes/agent/command-resume.test.ts +3 -3
- package/src/server/routes/agent/command.test.ts +2 -2
- package/src/server/routes/agent/command.ts +15 -12
- package/src/server/routes/agent/harness-command.test.ts +2 -2
- package/src/server/routes/agent/harness-command.ts +14 -14
- package/src/server/routes/agent/new.ts +10 -10
- package/src/server/routes/agent/prewarm.ts +12 -12
- package/src/server/routes/agent/restore.ts +2 -2
- package/src/server/routes/auth/login.ts +2 -2
- package/src/server/routes/auth/logout.ts +2 -2
- package/src/server/routes/auth/password.ts +2 -2
- package/src/server/routes/auth/revoke.ts +2 -2
- package/src/server/routes/auth/state.ts +2 -2
- package/src/server/routes/browser/engine.ts +4 -4
- package/src/server/routes/browser/stream.ts +4 -4
- package/src/server/routes/browser/tabs.ts +2 -2
- package/src/server/routes/btw/topics.ts +2 -2
- package/src/server/routes/chat/imported.ts +1 -1
- package/src/server/routes/chat/live-meta.ts +1 -1
- package/src/server/routes/chat/prompt-history.ts +2 -2
- package/src/server/routes/chat/rewind.test.ts +4 -4
- package/src/server/routes/chat/rewind.ts +6 -6
- package/src/server/routes/chat/root.ts +3 -3
- package/src/server/routes/chat/session-legacy-tools.test.ts +1 -1
- package/src/server/routes/chat/session.test.ts +3 -3
- package/src/server/routes/chat/session.ts +16 -16
- package/src/server/routes/chat/stream.test.ts +3 -3
- package/src/server/routes/chat/stream.ts +4 -4
- package/src/server/routes/chat/turns.ts +7 -7
- package/src/server/routes/connect/devices.ts +2 -2
- package/src/server/routes/connect/pair-page.ts +1 -1
- package/src/server/routes/connect/pair-qr.ts +1 -1
- package/src/server/routes/connect/pair.ts +1 -1
- package/src/server/routes/connect/status.ts +1 -1
- package/src/server/routes/connect/tunnels.ts +1 -1
- package/src/server/routes/console/restart.ts +3 -3
- package/src/server/routes/files/root.ts +2 -2
- package/src/server/routes/files/toggle.ts +2 -2
- package/src/server/routes/folders/batch-delete.ts +3 -3
- package/src/server/routes/folders/clone.ts +5 -5
- package/src/server/routes/folders/create.ts +2 -2
- package/src/server/routes/folders/folder.ts +3 -3
- package/src/server/routes/folders/mkdir.ts +5 -5
- package/src/server/routes/fs/action-bulk.ts +3 -3
- package/src/server/routes/fs/action.ts +5 -5
- package/src/server/routes/fs/archive.ts +1 -1
- package/src/server/routes/fs/digest.ts +4 -4
- package/src/server/routes/fs/exists.ts +3 -3
- package/src/server/routes/fs/git-message.test.ts +1 -1
- package/src/server/routes/fs/git-message.ts +3 -3
- package/src/server/routes/fs/git.ts +6 -6
- package/src/server/routes/fs/grant.test.ts +1 -1
- package/src/server/routes/fs/grant.ts +2 -2
- package/src/server/routes/fs/raw.test.ts +1 -1
- package/src/server/routes/fs/raw.ts +5 -5
- package/src/server/routes/fs/read.test.ts +2 -2
- package/src/server/routes/fs/read.ts +7 -9
- package/src/server/routes/fs/replace.ts +3 -3
- package/src/server/routes/fs/scope.test.ts +2 -2
- package/src/server/routes/fs/scope.ts +3 -3
- package/src/server/routes/fs/search.ts +3 -3
- package/src/server/routes/fs/validate.ts +4 -4
- package/src/server/routes/harness/accounts.ts +3 -3
- package/src/server/routes/harness/add-provider.test.ts +2 -2
- package/src/server/routes/harness/custom.test.ts +3 -3
- package/src/server/routes/harness/import-action.ts +12 -12
- package/src/server/routes/harness/import.test.ts +1 -1
- package/src/server/routes/harness/root.ts +21 -23
- package/src/server/routes/harness/session-actions.ts +4 -4
- package/src/server/routes/harness/session-import.test.ts +1 -1
- package/src/server/routes/harness/summary.test.ts +1 -1
- package/src/server/routes/harness/toggle.test.ts +2 -2
- package/src/server/routes/harness/update-status.ts +6 -6
- package/src/server/routes/harness/update.test.ts +3 -3
- package/src/server/routes/harness/update.ts +8 -8
- package/src/server/routes/harness/versions.test.ts +2 -2
- package/src/server/routes/harness/versions.ts +7 -7
- package/src/server/routes/health/probe.ts +3 -3
- package/src/server/routes/models/roles.ts +4 -4
- package/src/server/routes/models/root.ts +4 -4
- package/src/server/routes/notifications/stream.ts +2 -2
- package/src/server/routes/omp/artifact.ts +1 -1
- package/src/server/routes/omp/blob.ts +3 -3
- package/src/server/routes/omp/extensions.ts +4 -4
- package/src/server/routes/omp/login.ts +4 -4
- package/src/server/routes/omp/reload-engine.ts +3 -3
- package/src/server/routes/omp/routes.test.ts +1 -1
- package/src/server/routes/omp/state.ts +4 -4
- package/src/server/routes/panels/build.ts +1 -1
- package/src/server/routes/panels/bundle.ts +2 -2
- package/src/server/routes/panels/css.ts +2 -2
- package/src/server/routes/panels/icon.ts +2 -2
- package/src/server/routes/panels/install.ts +2 -2
- package/src/server/routes/panels/readme.ts +2 -2
- package/src/server/routes/panels/registry.ts +1 -1
- package/src/server/routes/panels/settings.ts +2 -2
- package/src/server/routes/plugins/http.ts +1 -1
- package/src/server/routes/plugins/rpc.ts +1 -1
- package/src/server/routes/plugins/state.ts +1 -1
- package/src/server/routes/review/index.ts +4 -4
- package/src/server/routes/review/routes.test.ts +1 -1
- package/src/server/routes/schedule/body.ts +4 -4
- package/src/server/routes/schedule/index.ts +4 -4
- package/src/server/routes/schedule/runs.ts +2 -2
- package/src/server/routes/sessions/answer.test.ts +2 -2
- package/src/server/routes/sessions/answer.ts +4 -4
- package/src/server/routes/sessions/batch-archive.ts +4 -4
- package/src/server/routes/sessions/batch-delete.test.ts +1 -1
- package/src/server/routes/sessions/batch-delete.ts +3 -3
- package/src/server/routes/sessions/body-readers.ts +2 -2
- package/src/server/routes/sessions/changes.test.ts +2 -2
- package/src/server/routes/sessions/changes.ts +3 -3
- package/src/server/routes/sessions/delete-acp.test.ts +6 -6
- package/src/server/routes/sessions/delete.ts +2 -2
- package/src/server/routes/sessions/export.test.ts +1 -1
- package/src/server/routes/sessions/export.ts +2 -2
- package/src/server/routes/sessions/folder.ts +2 -2
- package/src/server/routes/sessions/fork.ts +5 -5
- package/src/server/routes/sessions/list.ts +4 -4
- package/src/server/routes/sessions/local-image.ts +6 -6
- package/src/server/routes/sessions/mcp.test.ts +4 -4
- package/src/server/routes/sessions/mcp.ts +6 -6
- package/src/server/routes/sessions/queue.ts +2 -2
- package/src/server/routes/sessions/relations.ts +5 -5
- package/src/server/routes/sessions/routes-queue.test.ts +4 -4
- package/src/server/routes/sessions/routes-read.test.ts +3 -3
- package/src/server/routes/sessions/routes.test.ts +6 -6
- package/src/server/routes/sessions/session.ts +19 -19
- package/src/server/routes/sessions/spawn.ts +6 -6
- package/src/server/routes/sessions/subagent-control.ts +4 -4
- package/src/server/routes/sessions/subagents.ts +7 -7
- package/src/server/routes/settings/agents.ts +9 -11
- package/src/server/routes/settings/behavior.ts +5 -5
- package/src/server/routes/settings/commands-harness.test.ts +2 -2
- package/src/server/routes/settings/commands.ts +10 -12
- package/src/server/routes/settings/dictation.test.ts +2 -2
- package/src/server/routes/settings/dictation.ts +3 -3
- package/src/server/routes/settings/git-identity.test.ts +1 -1
- package/src/server/routes/settings/git-identity.ts +1 -1
- package/src/server/routes/settings/mcp-test.ts +3 -3
- package/src/server/routes/settings/mcp.ts +16 -20
- package/src/server/routes/settings/model-override.ts +4 -4
- package/src/server/routes/settings/omp-config.ts +4 -4
- package/src/server/routes/settings/plugins.ts +16 -18
- package/src/server/routes/settings/projects.ts +4 -4
- package/src/server/routes/settings/provider-entry.ts +9 -13
- package/src/server/routes/settings/provider-icon.ts +4 -4
- package/src/server/routes/settings/provider-logout.ts +4 -4
- package/src/server/routes/settings/provider-model.ts +7 -7
- package/src/server/routes/settings/provider-models.ts +8 -10
- package/src/server/routes/settings/provider-refresh.ts +4 -4
- package/src/server/routes/settings/providers.ts +6 -6
- package/src/server/routes/settings/root.ts +4 -4
- package/src/server/routes/settings/skills-catalog-actions.ts +4 -4
- package/src/server/routes/settings/skills.ts +12 -16
- package/src/server/routes/settings/speech.test.ts +2 -2
- package/src/server/routes/settings/speech.ts +3 -3
- package/src/server/routes/settings/usage-reset.ts +2 -2
- package/src/server/routes/settings/usage.ts +2 -2
- package/src/server/routes/telemetry/acp-telemetry.test.ts +2 -2
- package/src/server/routes/telemetry/context.ts +4 -4
- package/src/server/routes/telemetry/raw-messages.ts +7 -7
- package/src/server/routes/telemetry/tokens.ts +2 -2
- package/src/server/routes/terminal/sessions.ts +1 -1
- package/src/server/routes/tts/models.ts +2 -2
- package/src/server/routes/tts/speak.ts +2 -2
- package/src/server/routes/updates/android.ts +1 -1
- package/src/server/routes/updates/apply.ts +2 -2
- package/src/server/routes/updates/changelog.ts +1 -1
- package/src/server/routes/updates/check.ts +2 -2
- package/src/server/routes/updates/desktop.ts +1 -1
- package/src/server/routes/updates/ios.ts +1 -1
- package/src/server/routes/updates/notes.ts +2 -2
- package/src/server/routes/updates/routes.test.ts +1 -1
- package/src/server/routes/waiting/index.ts +6 -6
- package/src/server/routes/well-known/devtools.ts +1 -1
- package/src/server/routes/wiki/asset.ts +4 -4
- package/src/server/routes/wiki/page.ts +4 -4
- package/src/server/routes/wiki/repo.ts +2 -2
- package/src/server/routes/worktrees/create.ts +7 -7
- package/src/server/routes/worktrees/list.ts +10 -10
- package/src/server/routes/worktrees/remove.ts +8 -8
- package/src/server/routes/worktrees/routes.test.ts +2 -2
- package/src/server/routes/worktrees/shared.ts +4 -4
- package/src/shared/lib/browser/cdp.ts +1 -1
- package/src/shared/lib/browser/observer.ts +1 -1
- package/src/shared/lib/browser/snapshot.ts +1 -1
- package/src/shared/lib/browser/targets.ts +1 -1
- package/src/shared/lib/browser/viewer.ts +2 -2
- package/src/shared/lib/browser/watcher.ts +1 -1
- package/src/shared/lib/chat/ask-questions.test.ts +1 -1
- package/src/shared/lib/chat/ask-questions.ts +1 -1
- package/src/shared/lib/chat/chat-display.test.ts +1 -1
- package/src/shared/lib/chat/composer/client.ts +1 -1
- package/src/shared/lib/chat/composer/delegation.ts +2 -2
- package/src/shared/lib/chat/composer/owned-commands.test.ts +5 -5
- package/src/shared/lib/chat/composer/trigger.ts +1 -1
- package/src/shared/lib/chat/duration.ts +1 -1
- package/src/shared/lib/chat/export-markdown.ts +2 -2
- package/src/shared/lib/chat/omp/agent-events.test.ts +1 -1
- package/src/shared/lib/chat/omp/agent-events.ts +9 -9
- package/src/shared/lib/chat/omp/command-output-ansi.test.ts +1 -1
- package/src/shared/lib/chat/omp/fold-deps.ts +2 -4
- package/src/shared/lib/chat/omp/fold.test.ts +1 -1
- package/src/shared/lib/chat/omp/mode-marker.test.ts +2 -2
- package/src/shared/lib/chat/omp/subagent-card-fold.test.ts +2 -2
- package/src/shared/lib/chat/omp/terminal-messages.ts +3 -3
- package/src/shared/lib/chat/omp/tool-frames.ts +7 -6
- package/src/shared/lib/chat/orchestration/notice.test.ts +1 -1
- package/src/shared/lib/chat/timeline/changed-files.test.ts +1 -0
- package/src/shared/lib/chat/timeline/fork-anchor.test.ts +1 -1
- package/src/shared/lib/chat/timeline/fork-anchor.ts +2 -2
- package/src/shared/lib/chat/timeline/omp-callbacks.test.ts +2 -2
- package/src/shared/lib/chat/timeline/omp-callbacks.ts +3 -3
- package/src/shared/lib/chat/timeline/prompt-error.ts +2 -2
- package/src/shared/lib/chat/timeline/run-footer.test.ts +28 -0
- package/src/shared/lib/chat/timeline/run-footer.ts +26 -1
- package/src/shared/lib/chat/timeline/tool-phrases.ts +2 -2
- package/src/shared/lib/chat/timeline/tool-verbs.ts +4 -4
- package/src/shared/lib/chat/timeline/trace-groups.test.ts +1 -1
- package/src/shared/lib/chat/timeline/trace-groups.ts +2 -2
- package/src/shared/lib/chat/todo/nested-phase.ts +1 -1
- package/src/shared/lib/chat/todo/parser.ts +2 -2
- package/src/shared/lib/chat/todo/progress.test.ts +1 -1
- package/src/shared/lib/chat/todo/progress.ts +1 -1
- package/src/shared/lib/chat/todo/snapshot.test.ts +2 -2
- package/src/shared/lib/chat/tool/artifact.test.ts +1 -1
- package/src/shared/lib/chat/tool/artifact.ts +1 -1
- package/src/shared/lib/chat/tool/bash-facts.ts +1 -1
- package/src/shared/lib/chat/tool/minimized.test.ts +1 -1
- package/src/shared/lib/chat/tool/minimized.ts +1 -1
- package/src/shared/lib/chat/tool/proc-facts.ts +4 -4
- package/src/shared/lib/chat/tool/summary-proc.test.ts +1 -1
- package/src/shared/lib/chat/tool/summary-wait.test.ts +1 -1
- package/src/shared/lib/chat/tool/summary.test.ts +1 -1
- package/src/shared/lib/chat/tool/summary.ts +2 -2
- package/src/shared/lib/chat/tool/wait-facts.ts +1 -1
- package/src/shared/lib/chat/tool-output.ts +1 -1
- package/src/shared/lib/code/format.ts +2 -2
- package/src/shared/lib/code/language.ts +1 -1
- package/src/shared/lib/db/transaction.server.ts +1 -1
- package/src/shared/lib/dictation/protocol.ts +1 -1
- package/src/shared/lib/fs/commit-row.ts +1 -1
- package/src/shared/lib/fs/document-kind.ts +1 -1
- package/src/shared/lib/fs/fs-helpers.test.ts +1 -1
- package/src/shared/lib/fs/git-graph.test.ts +1 -1
- package/src/shared/lib/fs/git-graph.ts +1 -1
- package/src/shared/lib/fs/git-status.test.ts +1 -1
- package/src/shared/lib/fs/git-status.ts +2 -2
- package/src/shared/lib/fs/journal-unavailable.ts +1 -1
- package/src/shared/lib/fs/open-reference.ts +1 -1
- package/src/shared/lib/fs/search-list.ts +1 -1
- package/src/shared/lib/harness/brand-color.test.ts +1 -1
- package/src/shared/lib/harness/menu.test.ts +1 -1
- package/src/shared/lib/harness/menu.ts +1 -1
- package/src/shared/lib/harness/models.test.ts +1 -1
- package/src/shared/lib/harness/models.ts +1 -1
- package/src/shared/lib/harness/status.test.ts +1 -1
- package/src/shared/lib/harness/status.ts +1 -1
- package/src/shared/lib/markdown/document-urls.ts +1 -1
- package/src/shared/lib/mcp/import.ts +1 -1
- package/src/shared/lib/mcp/item.ts +1 -1
- package/src/shared/lib/mcp/mcp-lib.test.ts +1 -1
- package/src/shared/lib/models/provider/connection.ts +3 -5
- package/src/shared/lib/models/provider/dialect.test.ts +13 -15
- package/src/shared/lib/models/provider/models.ts +4 -6
- package/src/shared/lib/models/provider/origin.ts +1 -1
- package/src/shared/lib/models/provider/presets.test.ts +2 -2
- package/src/shared/lib/models/provider/presets.ts +1 -1
- package/src/shared/lib/models/server-cache.ts +2 -2
- package/src/shared/lib/omp/config/access-mode.server.ts +1 -1
- package/src/shared/lib/omp/config/access-mode.test.ts +4 -6
- package/src/shared/lib/omp/config/model-roles.ts +1 -1
- package/src/shared/lib/omp/config/schema-releases.test.ts +1 -1
- package/src/shared/lib/omp/config/schema.test.ts +7 -9
- package/src/shared/lib/omp/config/schema.ts +3 -3
- package/src/shared/lib/omp/session/inlined-attachments.test.ts +2 -4
- package/src/shared/lib/omp/session/job-progress.ts +1 -1
- package/src/shared/lib/omp/session/narration.test.ts +5 -5
- package/src/shared/lib/omp/session/parse-message-blocks-attachments.test.ts +3 -5
- package/src/shared/lib/omp/session/parse-message-blocks-toolcall.test.ts +3 -5
- package/src/shared/lib/omp/session/prewarm-misc.test.ts +4 -4
- package/src/shared/lib/omp/session/prewarm.test.ts +1 -1
- package/src/shared/lib/omp/session/prewarm.ts +1 -1
- package/src/shared/lib/omp/session/schema-migrations.ts +1 -1
- package/src/shared/lib/omp/session/skill-bubble.test.ts +1 -1
- package/src/shared/lib/omp/session/stream-heal.server.test.ts +1 -1
- package/src/shared/lib/omp/session/tool-duration.test.ts +1 -1
- package/src/shared/lib/omp/session/wait.ts +1 -1
- package/src/shared/lib/omp/subagent/label.test.ts +2 -2
- package/src/shared/lib/omp/subagent/transcript-client.test.ts +1 -1
- package/src/shared/lib/panels/update.ts +1 -1
- package/src/shared/lib/realtime/protocol.ts +1 -1
- package/src/shared/lib/schedule/parse.ts +1 -1
- package/src/shared/lib/theme/catalog.ts +1 -1
- package/src/shared/lib/theme/chrome.ts +1 -1
- package/src/shared/lib/theme/css.ts +1 -1
- package/src/shared/lib/theme/first-frame.ts +1 -1
- package/src/shared/lib/theme/ink-scale.ts +1 -1
- package/src/shared/lib/theme/palettes/dark-extended.ts +1 -1
- package/src/shared/lib/theme/palettes/dark.ts +1 -1
- package/src/shared/lib/theme/palettes/kabmo.ts +1 -1
- package/src/shared/lib/theme/palettes/light-extended.ts +1 -1
- package/src/shared/lib/theme/palettes/light.ts +1 -1
- package/src/shared/lib/theme/shell-palette.ts +1 -1
- package/src/shared/lib/ui/key-binding.ts +1 -1
- package/src/shared/lib/wiki/document-urls.ts +1 -1
- package/src/shared/lib/wiki/pages.ts +1 -1
- package/src/shared/lib/wiki/sidebar.test.ts +1 -1
- package/src/shared/lib/wiki/sidebar.ts +1 -1
- package/src/shared/lib/workspace/harness-filter.ts +1 -1
- package/src/shared/lib/workspace/project-settings-migration.ts +1 -1
- package/src/shared/lib/workspace/project-settings.test.ts +1 -1
- package/src/shared/lib/workspace/project-settings.ts +2 -2
- package/src/shared/lib/workspace/refresh-cadence.test.ts +1 -1
- package/src/shared/lib/workspace/schema-migrations.ts +1 -1
- package/src/shared/lib/workspace/sidebar-sort.test.ts +1 -1
- package/src/shared/lib/workspace/terminal/protocol.ts +1 -1
- package/src/shared/types/index.ts +35 -35
- package/src/test-support/harness-table.test-util.ts +3 -3
- package/src/test-support/loopback.ts +1 -1
- package/src/test-support/peer-harness.ts +3 -3
- package/src/test-support/sidebar-controller-harness.test-util.ts +1 -1
- package/tsconfig.json +1356 -0
- package/dist/client/static/js/MergeDiffView-w308xjeb.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-fetad02a.js +0 -1
- package/dist/client/static/js/one-dark-pro-3w62zmyn.js +0 -1
- package/dist/client/static/js/one-light-4qagee1b.js +0 -1
- package/src/server/lib/antigravity/home.server.ts +0 -27
- package/src/server/lib/db/client.ts +0 -107
- package/src/server/lib/db/settings-store.ts +0 -173
- package/src/server/lib/db/worktree-registry.server.ts +0 -91
- package/src/server/lib/fs/atomic-write.ts +0 -65
- package/src/server/lib/fs/canonical.ts +0 -52
- package/src/server/lib/fs/child-env.test.ts +0 -66
- package/src/server/lib/fs/child-env.ts +0 -50
- package/src/server/lib/fs/config-lock.ts +0 -74
- package/src/server/lib/fs/external-roots.test.ts +0 -100
- package/src/server/lib/fs/external-roots.ts +0 -101
- package/src/server/lib/fs/git-run.ts +0 -221
- package/src/server/lib/fs/path-segment.test.ts +0 -101
- package/src/server/lib/fs/path-segment.ts +0 -45
- package/src/server/lib/fs/root.ts +0 -199
- package/src/server/lib/fs/toolchain-path.test.ts +0 -87
- package/src/server/lib/fs/toolchain-path.ts +0 -49
- package/src/server/lib/fs/worktree/list.ts +0 -142
- package/src/server/lib/fs/worktree/topology.ts +0 -142
- package/src/server/lib/harness/account-identity.server.ts +0 -163
- package/src/server/lib/harness/account-login.server.test.ts +0 -151
- package/src/server/lib/harness/account-login.server.ts +0 -232
- package/src/server/lib/harness/accounts.server.ts +0 -339
- package/src/server/lib/harness/acp/acp-audit.server.ts +0 -58
- package/src/server/lib/harness/acp/acp-frames.server.test.ts +0 -105
- package/src/server/lib/harness/acp/acp-frames.server.ts +0 -217
- package/src/server/lib/harness/acp/acp-goal-driver.server.ts +0 -153
- package/src/server/lib/harness/acp/acp-goal-state.server.ts +0 -136
- package/src/server/lib/harness/acp/acp-goal.server.ts +0 -273
- package/src/server/lib/harness/acp/acp-goal.test.ts +0 -229
- package/src/server/lib/harness/acp/acp-raw-messages.server.test.ts +0 -69
- package/src/server/lib/harness/acp/acp-raw-messages.server.ts +0 -129
- package/src/server/lib/harness/acp/acp-telemetry.server.ts +0 -152
- package/src/server/lib/harness/acp/acp-todos.server.ts +0 -45
- package/src/server/lib/harness/acp/activation.ts +0 -72
- package/src/server/lib/harness/acp/auth.ts +0 -71
- package/src/server/lib/harness/acp/background-probe.test.ts +0 -314
- package/src/server/lib/harness/acp/background-probe.ts +0 -288
- package/src/server/lib/harness/acp/background-replay.test.ts +0 -190
- package/src/server/lib/harness/acp/background-replay.ts +0 -97
- package/src/server/lib/harness/acp/background-work.test.ts +0 -72
- package/src/server/lib/harness/acp/background-work.ts +0 -147
- package/src/server/lib/harness/acp/calls.test.ts +0 -68
- package/src/server/lib/harness/acp/calls.ts +0 -144
- package/src/server/lib/harness/acp/client-capabilities.ts +0 -71
- package/src/server/lib/harness/acp/client-fs.test.ts +0 -148
- package/src/server/lib/harness/acp/client-fs.ts +0 -157
- package/src/server/lib/harness/acp/client-initialize.test.ts +0 -101
- package/src/server/lib/harness/acp/client-initialize.ts +0 -129
- package/src/server/lib/harness/acp/client-requests.ts +0 -49
- package/src/server/lib/harness/acp/client.ts +0 -348
- package/src/server/lib/harness/acp/commands.test.ts +0 -112
- package/src/server/lib/harness/acp/commands.ts +0 -203
- package/src/server/lib/harness/acp/frames.test.ts +0 -294
- package/src/server/lib/harness/acp/frames.ts +0 -297
- package/src/server/lib/harness/acp/gateway-env.ts +0 -70
- package/src/server/lib/harness/acp/grants.server.ts +0 -75
- package/src/server/lib/harness/acp/grants.test.ts +0 -65
- package/src/server/lib/harness/acp/grants.ts +0 -94
- package/src/server/lib/harness/acp/mapper.test.ts +0 -79
- package/src/server/lib/harness/acp/mapper.ts +0 -240
- package/src/server/lib/harness/acp/message-rows.ts +0 -219
- package/src/server/lib/harness/acp/one-shot.server.ts +0 -143
- package/src/server/lib/harness/acp/permissions.ts +0 -181
- package/src/server/lib/harness/acp/prewarm.server.ts +0 -242
- package/src/server/lib/harness/acp/prompt-files.test.ts +0 -69
- package/src/server/lib/harness/acp/prompt-files.ts +0 -58
- package/src/server/lib/harness/acp/prompt.test.ts +0 -219
- package/src/server/lib/harness/acp/prompt.ts +0 -238
- package/src/server/lib/harness/acp/protocol.ts +0 -304
- package/src/server/lib/harness/acp/raw-listeners.ts +0 -30
- package/src/server/lib/harness/acp/replay-transcript.test.ts +0 -47
- package/src/server/lib/harness/acp/replay-transcript.ts +0 -79
- package/src/server/lib/harness/acp/replay-window.test.ts +0 -66
- package/src/server/lib/harness/acp/replay.ts +0 -103
- package/src/server/lib/harness/acp/session-addressing.test.ts +0 -99
- package/src/server/lib/harness/acp/session-approvals.ts +0 -49
- package/src/server/lib/harness/acp/session-background.test.ts +0 -130
- package/src/server/lib/harness/acp/session-cancel-policy.test.ts +0 -86
- package/src/server/lib/harness/acp/session-close.test.ts +0 -89
- package/src/server/lib/harness/acp/session-config-view.ts +0 -81
- package/src/server/lib/harness/acp/session-config.test.ts +0 -73
- package/src/server/lib/harness/acp/session-config.ts +0 -227
- package/src/server/lib/harness/acp/session-exit.ts +0 -65
- package/src/server/lib/harness/acp/session-facts.ts +0 -71
- package/src/server/lib/harness/acp/session-handshake.test.ts +0 -292
- package/src/server/lib/harness/acp/session-handshake.ts +0 -307
- package/src/server/lib/harness/acp/session-idle.ts +0 -52
- package/src/server/lib/harness/acp/session-inbound.ts +0 -126
- package/src/server/lib/harness/acp/session-intake.test.ts +0 -101
- package/src/server/lib/harness/acp/session-intake.ts +0 -91
- package/src/server/lib/harness/acp/session-lifecycle.ts +0 -75
- package/src/server/lib/harness/acp/session-listeners.ts +0 -31
- package/src/server/lib/harness/acp/session-lost.ts +0 -34
- package/src/server/lib/harness/acp/session-notifications.ts +0 -170
- package/src/server/lib/harness/acp/session-notify.ts +0 -47
- package/src/server/lib/harness/acp/session-observers.test.ts +0 -256
- package/src/server/lib/harness/acp/session-options.ts +0 -60
- package/src/server/lib/harness/acp/session-permissions.test.ts +0 -198
- package/src/server/lib/harness/acp/session-permissions.ts +0 -140
- package/src/server/lib/harness/acp/session-process.ts +0 -44
- package/src/server/lib/harness/acp/session-reaper.test.ts +0 -96
- package/src/server/lib/harness/acp/session-requests.test.ts +0 -92
- package/src/server/lib/harness/acp/session-requests.ts +0 -113
- package/src/server/lib/harness/acp/session-roots.server.ts +0 -47
- package/src/server/lib/harness/acp/session-roots.test.ts +0 -31
- package/src/server/lib/harness/acp/session-start.ts +0 -69
- package/src/server/lib/harness/acp/session-stop.ts +0 -54
- package/src/server/lib/harness/acp/session-transcript.server.test.ts +0 -162
- package/src/server/lib/harness/acp/session-transcript.server.ts +0 -350
- package/src/server/lib/harness/acp/session-turns.ts +0 -182
- package/src/server/lib/harness/acp/session-usage.ts +0 -64
- package/src/server/lib/harness/acp/session-web-state.ts +0 -89
- package/src/server/lib/harness/acp/session-wiring.ts +0 -132
- package/src/server/lib/harness/acp/session.test-util.ts +0 -241
- package/src/server/lib/harness/acp/session.test.ts +0 -294
- package/src/server/lib/harness/acp/session.ts +0 -350
- package/src/server/lib/harness/acp/stdio.test.ts +0 -52
- package/src/server/lib/harness/acp/stdio.ts +0 -142
- package/src/server/lib/harness/acp/subagent-frames.test.ts +0 -82
- package/src/server/lib/harness/acp/subagent-frames.ts +0 -122
- package/src/server/lib/harness/acp/subagents.test.ts +0 -124
- package/src/server/lib/harness/acp/subagents.ts +0 -182
- package/src/server/lib/harness/acp/tool-calls.ts +0 -294
- package/src/server/lib/harness/acp/tool-identity.test.ts +0 -205
- package/src/server/lib/harness/acp/tool-identity.ts +0 -181
- package/src/server/lib/harness/acp/tool-shape.ts +0 -101
- package/src/server/lib/harness/acp/turn-cancel.ts +0 -61
- package/src/server/lib/harness/acp/turn-dispatch.test.ts +0 -103
- package/src/server/lib/harness/acp/turn-dispatch.ts +0 -61
- package/src/server/lib/harness/acp/turn-outcome.server.test.ts +0 -97
- package/src/server/lib/harness/acp/turn-outcome.server.ts +0 -71
- package/src/server/lib/harness/acp/turn-queue.ts +0 -43
- package/src/server/lib/harness/acp/turn-silence.ts +0 -52
- package/src/server/lib/harness/acp/turn-verdict.ts +0 -102
- package/src/server/lib/harness/acp/turn.test.ts +0 -266
- package/src/server/lib/harness/acp/turn.ts +0 -350
- package/src/server/lib/harness/acp/v2.test.ts +0 -217
- package/src/server/lib/harness/acp/v2.ts +0 -276
- package/src/server/lib/harness/acp/verbs.test.ts +0 -133
- package/src/server/lib/harness/acp/verbs.ts +0 -224
- package/src/server/lib/harness/auto-import.server.test.ts +0 -92
- package/src/server/lib/harness/auto-import.server.ts +0 -209
- package/src/server/lib/harness/auto-probe.server.test.ts +0 -121
- package/src/server/lib/harness/auto-probe.server.ts +0 -186
- package/src/server/lib/harness/capabilities.ts +0 -86
- package/src/server/lib/harness/codex/transcript.server.test.ts +0 -69
- package/src/server/lib/harness/codex/transcript.server.ts +0 -215
- package/src/server/lib/harness/config.server.test.ts +0 -105
- package/src/server/lib/harness/config.server.ts +0 -99
- package/src/server/lib/harness/custom.server.ts +0 -209
- package/src/server/lib/harness/enabled.server.ts +0 -61
- package/src/server/lib/harness/launch-table.ts +0 -249
- package/src/server/lib/harness/launch.test.ts +0 -245
- package/src/server/lib/harness/launch.ts +0 -240
- package/src/server/lib/harness/probe-cache.server.test.ts +0 -154
- package/src/server/lib/harness/probe-cache.server.ts +0 -177
- package/src/server/lib/harness/provider-entry.ts +0 -212
- package/src/server/lib/harness/provider-file.server.ts +0 -67
- package/src/server/lib/harness/provider-probe.server.ts +0 -123
- package/src/server/lib/harness/provider-sources.server.ts +0 -309
- package/src/server/lib/harness/provider-write-error.ts +0 -19
- package/src/server/lib/harness/provider-write.server.ts +0 -340
- package/src/server/lib/harness/provider-zcode.server.ts +0 -324
- package/src/server/lib/harness/registry.ts +0 -58
- package/src/server/lib/harness/schema.server.ts +0 -236
- package/src/server/lib/harness/session-delete.server.test.ts +0 -156
- package/src/server/lib/harness/session-delete.server.ts +0 -200
- package/src/server/lib/harness/session-import.server.ts +0 -191
- package/src/server/lib/harness/session-lease.server.test.ts +0 -99
- package/src/server/lib/harness/session-lease.server.ts +0 -194
- package/src/server/lib/harness/session-store.server.test.ts +0 -272
- package/src/server/lib/harness/session-store.server.ts +0 -309
- package/src/server/lib/harness/session-title.server.test.ts +0 -109
- package/src/server/lib/harness/session-title.server.ts +0 -80
- package/src/server/lib/harness/session-transcript.server.ts +0 -302
- package/src/server/lib/harness/session.ts +0 -79
- package/src/server/lib/harness/update-job-store.test.ts +0 -151
- package/src/server/lib/harness/update-job-store.ts +0 -127
- package/src/server/lib/lifecycle/fd-pressure.test.ts +0 -153
- package/src/server/lib/lifecycle/fd-pressure.ts +0 -278
- package/src/server/lib/lifecycle/identity.ts +0 -86
- package/src/server/lib/lifecycle/kill-tree.test.ts +0 -196
- package/src/server/lib/lifecycle/kill-tree.ts +0 -114
- package/src/server/lib/lifecycle/paths.test.ts +0 -97
- package/src/server/lib/lifecycle/paths.ts +0 -192
- package/src/server/lib/lifecycle/proc/darwin.ts +0 -305
- package/src/server/lib/lifecycle/proc/index.ts +0 -38
- package/src/server/lib/lifecycle/proc/linux.ts +0 -110
- package/src/server/lib/lifecycle/proc/proc.test.ts +0 -164
- package/src/server/lib/lifecycle/proc/ps.ts +0 -99
- package/src/server/lib/lifecycle/proc/types.ts +0 -58
- package/src/server/lib/lifecycle/proc/win32.ts +0 -64
- package/src/server/lib/omp/config/agent-definitions.test.ts +0 -273
- package/src/server/lib/omp/config/agents.ts +0 -332
- package/src/server/lib/omp/config/behavior.ts +0 -113
- package/src/server/lib/omp/config/commands.test.ts +0 -167
- package/src/server/lib/omp/config/commands.ts +0 -185
- package/src/server/lib/omp/config/config-cli.test.ts +0 -153
- package/src/server/lib/omp/config/config-cli.ts +0 -158
- package/src/server/lib/omp/config/definitions.test.ts +0 -252
- package/src/server/lib/omp/config/disabled-providers.ts +0 -117
- package/src/server/lib/omp/config/discovery-roots.test.ts +0 -119
- package/src/server/lib/omp/config/discovery-roots.ts +0 -194
- package/src/server/lib/omp/config/document.test.ts +0 -349
- package/src/server/lib/omp/config/document.ts +0 -128
- package/src/server/lib/omp/config/extensions.ts +0 -100
- package/src/server/lib/omp/config/instructions.ts +0 -81
- package/src/server/lib/omp/config/mcp-config.test.ts +0 -277
- package/src/server/lib/omp/config/mcp-shared.ts +0 -36
- package/src/server/lib/omp/config/mcp-test-protocol.ts +0 -89
- package/src/server/lib/omp/config/mcp-test-remote.ts +0 -167
- package/src/server/lib/omp/config/mcp-test.ts +0 -244
- package/src/server/lib/omp/config/mcp-write.ts +0 -179
- package/src/server/lib/omp/config/mcp.ts +0 -225
- package/src/server/lib/omp/config/model-overrides.ts +0 -123
- package/src/server/lib/omp/config/models-config.ts +0 -149
- package/src/server/lib/omp/config/models-validation.test.ts +0 -137
- package/src/server/lib/omp/config/models-validation.ts +0 -268
- package/src/server/lib/omp/config/omp-config-files.test.ts +0 -327
- package/src/server/lib/omp/config/path-scoped.ts +0 -74
- package/src/server/lib/omp/config/plugin-actions.ts +0 -87
- package/src/server/lib/omp/config/plugin-cli.ts +0 -69
- package/src/server/lib/omp/config/plugin-registry.test.ts +0 -286
- package/src/server/lib/omp/config/plugin-registry.ts +0 -250
- package/src/server/lib/omp/config/plugins.test.ts +0 -297
- package/src/server/lib/omp/config/plugins.ts +0 -249
- package/src/server/lib/omp/config/provider-entry.test.ts +0 -205
- package/src/server/lib/omp/config/provider-entry.ts +0 -197
- package/src/server/lib/omp/config/provider-seeds.test.ts +0 -205
- package/src/server/lib/omp/config/provider-seeds.ts +0 -259
- package/src/server/lib/omp/config/provider-vision-compat.test.ts +0 -140
- package/src/server/lib/omp/config/providers-write.test.ts +0 -340
- package/src/server/lib/omp/config/providers.ts +0 -343
- package/src/server/lib/omp/config/roles.ts +0 -38
- package/src/server/lib/omp/config/skills-catalog.ts +0 -163
- package/src/server/lib/omp/config/skills.test.ts +0 -108
- package/src/server/lib/omp/config/skills.ts +0 -333
- package/src/server/lib/omp/config/yaml.ts +0 -48
- package/src/server/lib/omp/core/cli.ts +0 -73
- package/src/server/lib/omp/core/install-hint.test.ts +0 -48
- package/src/server/lib/omp/core/install-hint.ts +0 -64
- package/src/server/lib/omp/core/models-json.ts +0 -69
- package/src/server/lib/omp/core/paths.test.ts +0 -229
- package/src/server/lib/omp/core/paths.ts +0 -214
- package/src/server/lib/omp/core/print.server.ts +0 -100
- package/src/server/lib/omp/core/registry.test.ts +0 -234
- package/src/server/lib/omp/core/registry.ts +0 -140
- package/src/server/lib/omp/core/startup.test.ts +0 -125
- package/src/server/lib/omp/core/startup.ts +0 -68
- package/src/server/lib/omp/core/worktree.ts +0 -107
- package/src/server/lib/omp/extensions/locator.test.ts +0 -67
- package/src/server/lib/omp/extensions/locator.ts +0 -98
- package/src/server/lib/omp/mode/request.test.ts +0 -73
- package/src/server/lib/omp/mode/request.ts +0 -102
- package/src/server/lib/omp/rpc/agent-start-watchdog.ts +0 -88
- package/src/server/lib/omp/rpc/child-config.ts +0 -49
- package/src/server/lib/omp/rpc/constants.test.ts +0 -277
- package/src/server/lib/omp/rpc/constants.ts +0 -347
- package/src/server/lib/omp/rpc/event-fanout.test.ts +0 -58
- package/src/server/lib/omp/rpc/event-fanout.ts +0 -71
- package/src/server/lib/omp/rpc/idle-reaper.ts +0 -59
- package/src/server/lib/omp/rpc/lines.ts +0 -48
- package/src/server/lib/omp/rpc/mode-mirror.test.ts +0 -156
- package/src/server/lib/omp/rpc/mode-mirror.ts +0 -109
- package/src/server/lib/omp/rpc/pending-ui-dialogs.ts +0 -59
- package/src/server/lib/omp/rpc/process-helpers.ts +0 -81
- package/src/server/lib/omp/rpc/process.test.ts +0 -106
- package/src/server/lib/omp/rpc/process.ts +0 -349
- package/src/server/lib/omp/rpc/reload-mcp.ts +0 -39
- package/src/server/lib/omp/rpc/reload-plugins.ts +0 -43
- package/src/server/lib/omp/rpc/retry-saga.ts +0 -54
- package/src/server/lib/omp/rpc/rpc-timers.test.ts +0 -302
- package/src/server/lib/omp/rpc/session-command-guards.ts +0 -134
- package/src/server/lib/omp/rpc/session-commands.ts +0 -335
- package/src/server/lib/omp/rpc/stream-reader.test.ts +0 -124
- package/src/server/lib/omp/rpc/subagent-liveness.test.ts +0 -62
- package/src/server/lib/omp/rpc/subagent-liveness.ts +0 -101
- package/src/server/lib/omp/rpc/utility-agent-dir.test.ts +0 -134
- package/src/server/lib/omp/rpc/utility-agent-dir.ts +0 -138
- package/src/server/lib/omp/rpc/utility.test.ts +0 -261
- package/src/server/lib/omp/rpc/utility.ts +0 -312
- package/src/server/lib/omp/rpc/web-state.ts +0 -88
- package/src/server/lib/omp/session/acp-rows.server.ts +0 -79
- package/src/server/lib/omp/session/blobs.server.test.ts +0 -163
- package/src/server/lib/omp/session/blobs.server.ts +0 -114
- package/src/server/lib/omp/session/changes-patch.test.ts +0 -120
- package/src/server/lib/omp/session/changes-patch.ts +0 -190
- package/src/server/lib/omp/session/changes.test.ts +0 -195
- package/src/server/lib/omp/session/changes.ts +0 -265
- package/src/server/lib/omp/session/file-scan.ts +0 -180
- package/src/server/lib/omp/session/files.test.ts +0 -147
- package/src/server/lib/omp/session/files.ts +0 -298
- package/src/server/lib/omp/session/goal-auditor.server.ts +0 -149
- package/src/server/lib/omp/session/goal-driver.server.ts +0 -230
- package/src/server/lib/omp/session/goal-driver.test.ts +0 -224
- package/src/server/lib/omp/session/goal-settings.server.ts +0 -48
- package/src/server/lib/omp/session/goal-settings.test.ts +0 -49
- package/src/server/lib/omp/session/jsonl-tail.test.ts +0 -151
- package/src/server/lib/omp/session/jsonl-tail.ts +0 -67
- package/src/server/lib/omp/session/lease-holder.server.ts +0 -156
- package/src/server/lib/omp/session/lease-probe.server.ts +0 -180
- package/src/server/lib/omp/session/local-runs.server.ts +0 -38
- package/src/server/lib/omp/session/locator.ts +0 -70
- package/src/server/lib/omp/session/merge-stored.test.ts +0 -118
- package/src/server/lib/omp/session/merge-stored.ts +0 -309
- package/src/server/lib/omp/session/messages.test.ts +0 -203
- package/src/server/lib/omp/session/messages.ts +0 -328
- package/src/server/lib/omp/session/modes.test.ts +0 -146
- package/src/server/lib/omp/session/modes.ts +0 -164
- package/src/server/lib/omp/session/reader.ts +0 -162
- package/src/server/lib/omp/session/resumable-model.server.ts +0 -181
- package/src/server/lib/omp/session/rewind-file.test.ts +0 -212
- package/src/server/lib/omp/session/rewind-file.ts +0 -266
- package/src/server/lib/omp/session/scan.ts +0 -132
- package/src/server/lib/omp/session/sessions-watch.server.ts +0 -115
- package/src/server/lib/omp/session/sidebar-activity.server.ts +0 -70
- package/src/server/lib/omp/session/sidebar-data.harness.test.ts +0 -335
- package/src/server/lib/omp/session/sidebar-data.server.ts +0 -320
- package/src/server/lib/omp/session/sidebar-status.server.ts +0 -82
- package/src/server/lib/omp/session/subagent-presence-scan.test.ts +0 -137
- package/src/server/lib/omp/session/subagent-presence-scan.ts +0 -174
- package/src/server/lib/omp/session/subagent-presence-store.ts +0 -65
- package/src/server/lib/omp/session/subagent-presence.test.ts +0 -115
- package/src/server/lib/omp/session/subagent-presence.ts +0 -154
- package/src/server/lib/omp/session/telemetry/scan.ts +0 -103
- package/src/server/lib/omp/session/title-model-overlay.server.ts +0 -182
- package/src/server/lib/omp/session/title-request.server.ts +0 -213
- package/src/server/lib/omp/session/title-slot.ts +0 -203
- package/src/server/lib/omp/session/transcript-copy.ts +0 -123
- package/src/server/lib/omp/subagent/history/fold.ts +0 -196
- package/src/server/lib/omp/subagent/history/index.ts +0 -110
- package/src/server/lib/omp/subagent/history/paths.ts +0 -29
- package/src/server/lib/omp/subagent/history/transcript.test.ts +0 -87
- package/src/server/lib/omp/subagent/history/transcript.ts +0 -122
- package/src/server/lib/realtime/signals.server.test.ts +0 -99
- package/src/server/lib/realtime/signals.server.ts +0 -140
- package/src/server/lib/remix-compat.ts +0 -29
- package/src/server/lib/sessions/agent-token.server.test.ts +0 -87
- package/src/server/lib/sessions/agent-token.server.ts +0 -170
- package/src/server/lib/sessions/answers.server.ts +0 -37
- package/src/server/lib/sessions/deleted-sessions.server.test.ts +0 -49
- package/src/server/lib/sessions/deleted-sessions.server.ts +0 -45
- package/src/server/lib/sessions/lifecycle.server.ts +0 -71
- package/src/server/lib/sessions/relation-types.ts +0 -76
- package/src/server/lib/sessions/relations.server.test.ts +0 -207
- package/src/server/lib/sessions/relations.server.ts +0 -337
- package/src/server/lib/sessions/sidebar-relations.server.test.ts +0 -61
- package/src/server/lib/sessions/sidebar-relations.server.ts +0 -47
- package/src/server/mock.server.ts +0 -27
- package/src/shared/lib/auth/password.ts +0 -72
- package/src/shared/lib/chat/composer/tui-only.test.ts +0 -107
- package/src/shared/lib/chat/composer/tui-only.ts +0 -149
- package/src/shared/lib/chat/irc-notice.ts +0 -42
- package/src/shared/lib/chat/notice-row.test.ts +0 -141
- package/src/shared/lib/chat/notice-row.ts +0 -100
- package/src/shared/lib/chat/notice-text.ts +0 -35
- package/src/shared/lib/chat/omp/tool-results.ts +0 -206
- package/src/shared/lib/chat/orchestration/notice.ts +0 -183
- package/src/shared/lib/chat/todo/snapshot.ts +0 -215
- package/src/shared/lib/chat/tool/normalize.ts +0 -67
- package/src/shared/lib/chat/tool/render-key.test.ts +0 -167
- package/src/shared/lib/chat/tool/render-key.ts +0 -247
- package/src/shared/lib/chat/tool/tool-aliases.test.ts +0 -79
- package/src/shared/lib/chat/tool/tool-aliases.ts +0 -122
- package/src/shared/lib/chat/tool/tool-commands.test.ts +0 -102
- package/src/shared/lib/chat/tool/tool-commands.ts +0 -124
- package/src/shared/lib/chat/tool/tool-input-path.test.ts +0 -44
- package/src/shared/lib/chat/tool/tool-input-path.ts +0 -47
- package/src/shared/lib/chat/transcript-rows.ts +0 -22
- package/src/shared/lib/chat/xml-envelope.test.ts +0 -208
- package/src/shared/lib/chat/xml-envelope.ts +0 -151
- package/src/shared/lib/chat/xml-tag.test.ts +0 -257
- package/src/shared/lib/chat/xml-tag.ts +0 -221
- package/src/shared/lib/code/ansi.ts +0 -24
- package/src/shared/lib/format/duration.test.ts +0 -31
- package/src/shared/lib/format/duration.ts +0 -27
- package/src/shared/lib/format/number.test.ts +0 -127
- package/src/shared/lib/format/number.ts +0 -69
- package/src/shared/lib/format/time.test.ts +0 -113
- package/src/shared/lib/format/time.ts +0 -58
- package/src/shared/lib/fs/file-kind-classify.test.ts +0 -161
- package/src/shared/lib/fs/file-kind.test.ts +0 -321
- package/src/shared/lib/fs/file-kind.ts +0 -253
- package/src/shared/lib/fs/git-unmerged.test.ts +0 -123
- package/src/shared/lib/fs/git-unmerged.ts +0 -100
- package/src/shared/lib/fs/mime.ts +0 -159
- package/src/shared/lib/fs/paths.test.ts +0 -115
- package/src/shared/lib/fs/paths.ts +0 -126
- package/src/shared/lib/harness/accounts.test.ts +0 -41
- package/src/shared/lib/harness/accounts.ts +0 -175
- package/src/shared/lib/harness/catalog.test.ts +0 -137
- package/src/shared/lib/harness/catalog.ts +0 -258
- package/src/shared/lib/harness/config-fields.test.ts +0 -164
- package/src/shared/lib/harness/config-fields.ts +0 -198
- package/src/shared/lib/harness/config.test.ts +0 -153
- package/src/shared/lib/harness/config.ts +0 -206
- package/src/shared/lib/harness/dialects.test.ts +0 -140
- package/src/shared/lib/harness/dialects.ts +0 -249
- package/src/shared/lib/harness/enabled.test.ts +0 -79
- package/src/shared/lib/harness/enabled.ts +0 -72
- package/src/shared/lib/harness/fork.ts +0 -62
- package/src/shared/lib/harness/mcp-facts.test.ts +0 -30
- package/src/shared/lib/harness/mcp-facts.ts +0 -76
- package/src/shared/lib/harness/provider-contracts.ts +0 -109
- package/src/shared/lib/harness/provider-facts.test.ts +0 -238
- package/src/shared/lib/harness/provider-facts.ts +0 -286
- package/src/shared/lib/harness/provider-lookup.ts +0 -37
- package/src/shared/lib/harness/provider-slug.ts +0 -46
- package/src/shared/lib/harness/providers.ts +0 -210
- package/src/shared/lib/harness/rewind.ts +0 -24
- package/src/shared/lib/harness/session-modes.ts +0 -55
- package/src/shared/lib/harness/transcript.test.ts +0 -29
- package/src/shared/lib/harness/transcript.ts +0 -19
- package/src/shared/lib/harness/update-job.ts +0 -80
- package/src/shared/lib/harness/update-plan.test.ts +0 -178
- package/src/shared/lib/harness/update-plan.ts +0 -148
- package/src/shared/lib/harness/updates.test.ts +0 -114
- package/src/shared/lib/harness/updates.ts +0 -201
- package/src/shared/lib/mcp/key-value.ts +0 -37
- package/src/shared/lib/models/provider/dialect.ts +0 -278
- package/src/shared/lib/models/provider/vendors.ts +0 -72
- package/src/shared/lib/models/thinking-levels.test.ts +0 -102
- package/src/shared/lib/models/thinking-levels.ts +0 -68
- package/src/shared/lib/omp/config/access-mode.ts +0 -80
- package/src/shared/lib/omp/config/agent-file.test.ts +0 -54
- package/src/shared/lib/omp/config/agent-file.ts +0 -43
- package/src/shared/lib/omp/config/row-value.test.ts +0 -95
- package/src/shared/lib/omp/config/row-value.ts +0 -97
- package/src/shared/lib/omp/config/schema-extras.ts +0 -253
- package/src/shared/lib/omp/config/schema-types.ts +0 -49
- package/src/shared/lib/omp/dialog-methods.ts +0 -64
- package/src/shared/lib/omp/mode/actions.ts +0 -40
- package/src/shared/lib/omp/mode/budget.ts +0 -21
- package/src/shared/lib/omp/mode/constants.ts +0 -91
- package/src/shared/lib/omp/mode/format.ts +0 -36
- package/src/shared/lib/omp/mode/markers.test.ts +0 -111
- package/src/shared/lib/omp/mode/markers.ts +0 -105
- package/src/shared/lib/omp/mode/notice.test.ts +0 -107
- package/src/shared/lib/omp/mode/notice.ts +0 -135
- package/src/shared/lib/omp/mode/status.ts +0 -39
- package/src/shared/lib/omp/mode/tables.test.ts +0 -217
- package/src/shared/lib/omp/mode/types.ts +0 -202
- package/src/shared/lib/omp/rpc/frame.test.ts +0 -307
- package/src/shared/lib/omp/rpc/frame.ts +0 -215
- package/src/shared/lib/omp/session/default-title.test.ts +0 -79
- package/src/shared/lib/omp/session/default-title.ts +0 -84
- package/src/shared/lib/omp/session/hashline-patch.test.ts +0 -89
- package/src/shared/lib/omp/session/hashline-patch.ts +0 -134
- package/src/shared/lib/omp/session/jsonl.test.ts +0 -178
- package/src/shared/lib/omp/session/jsonl.ts +0 -182
- package/src/shared/lib/omp/session/mapper.test.ts +0 -330
- package/src/shared/lib/omp/session/mapper.ts +0 -189
- package/src/shared/lib/omp/session/messages-map-notice.test.ts +0 -68
- package/src/shared/lib/omp/session/messages-map-pending.test.ts +0 -110
- package/src/shared/lib/omp/session/messages-map-trace.test.ts +0 -42
- package/src/shared/lib/omp/session/messages-map.test.ts +0 -316
- package/src/shared/lib/omp/session/messages-map.ts +0 -331
- package/src/shared/lib/omp/session/messages-parse.ts +0 -74
- package/src/shared/lib/omp/session/operator-title.test.ts +0 -120
- package/src/shared/lib/omp/session/operator-title.ts +0 -164
- package/src/shared/lib/omp/session/parse-message-blocks.test.ts +0 -322
- package/src/shared/lib/omp/session/parse-message-blocks.ts +0 -347
- package/src/shared/lib/omp/session/proc-daemon.ts +0 -124
- package/src/shared/lib/omp/session/proc.test.ts +0 -306
- package/src/shared/lib/omp/session/proc.ts +0 -268
- package/src/shared/lib/omp/session/shell-trace.test.ts +0 -69
- package/src/shared/lib/omp/session/shell-trace.ts +0 -63
- package/src/shared/lib/omp/session/sidebar.test.ts +0 -180
- package/src/shared/lib/omp/session/sidebar.ts +0 -104
- package/src/shared/lib/omp/session/stream-heal.server.ts +0 -175
- package/src/shared/lib/omp/session/stream-state.server.test.ts +0 -193
- package/src/shared/lib/omp/session/stream-state.server.ts +0 -260
- package/src/shared/lib/omp/session/telemetry-blocks.ts +0 -60
- package/src/shared/lib/omp/session/timestamps.ts +0 -20
- package/src/shared/lib/omp/session/tool-images.test.ts +0 -95
- package/src/shared/lib/omp/session/tool-images.ts +0 -98
- package/src/shared/lib/omp/session/turn-error.ts +0 -40
- package/src/shared/lib/omp/skill-source.test.ts +0 -24
- package/src/shared/lib/omp/skill-source.ts +0 -20
- package/src/shared/lib/omp/subagent/control.ts +0 -46
- package/src/shared/lib/omp/subagent/history/client.ts +0 -76
- package/src/shared/lib/omp/subagent/history/settlement.test.ts +0 -344
- package/src/shared/lib/omp/subagent/history/settlement.ts +0 -113
- package/src/shared/lib/omp/subagent/history/status.ts +0 -40
- package/src/shared/lib/omp/subagent/label.ts +0 -84
- package/src/shared/lib/omp/subagent/parse.test.ts +0 -88
- package/src/shared/lib/omp/subagent/parse.ts +0 -301
- package/src/shared/lib/omp/subagent/result-details.ts +0 -53
- package/src/shared/lib/omp/subagent/transcript-client.ts +0 -198
- package/src/shared/lib/updates/semver.test.ts +0 -147
- package/src/shared/lib/updates/semver.ts +0 -109
- package/src/shared/lib/util/bytes.test.ts +0 -41
- package/src/shared/lib/util/bytes.ts +0 -31
- package/src/shared/lib/util/guards.test.ts +0 -48
- package/src/shared/lib/util/guards.ts +0 -14
- package/src/shared/lib/util/platform.test.ts +0 -87
- package/src/shared/lib/util/platform.ts +0 -30
- package/src/shared/lib/workspace/refresh-cadence.ts +0 -58
- package/src/shared/lib/workspace/sidebar-sort.ts +0 -140
- package/src/shared/lib/workspace/worktree/types.ts +0 -104
- package/src/shared/types/browser.ts +0 -157
- package/src/shared/types/btw.ts +0 -123
- package/src/shared/types/chat.ts +0 -350
- package/src/shared/types/context.ts +0 -125
- package/src/shared/types/fs.ts +0 -114
- package/src/shared/types/git.ts +0 -169
- package/src/shared/types/harness-update.ts +0 -89
- package/src/shared/types/harness-version.ts +0 -59
- package/src/shared/types/harness.ts +0 -243
- package/src/shared/types/model-roles.ts +0 -54
- package/src/shared/types/models.ts +0 -113
- package/src/shared/types/omp/agent.ts +0 -315
- package/src/shared/types/omp/instructions.ts +0 -38
- package/src/shared/types/omp/session.ts +0 -180
- package/src/shared/types/omp/subagent.ts +0 -186
- package/src/shared/types/panels-registry.ts +0 -315
- package/src/shared/types/panels.ts +0 -206
- package/src/shared/types/plan.ts +0 -42
- package/src/shared/types/realtime.ts +0 -75
- package/src/shared/types/schedule.ts +0 -80
- package/src/shared/types/session-changes.ts +0 -82
- package/src/shared/types/settings/agent.ts +0 -38
- package/src/shared/types/settings/command.ts +0 -38
- package/src/shared/types/settings/mcp.ts +0 -91
- package/src/shared/types/settings/plugin.ts +0 -107
- package/src/shared/types/settings/project.ts +0 -18
- package/src/shared/types/settings/provider.ts +0 -193
- package/src/shared/types/settings/skill.ts +0 -90
- package/src/shared/types/settings/usage.ts +0 -334
- package/src/shared/types/settings/write.ts +0 -6
- package/src/shared/types/theme.ts +0 -48
- package/src/shared/types/todo.ts +0 -110
- package/src/shared/types/tokenUsage.ts +0 -172
- package/src/shared/types/tool-render.ts +0 -37
- package/src/shared/types/updates.ts +0 -119
- package/src/shared/types/waiting.ts +0 -63
- package/src/shared/types/wiki.ts +0 -132
- package/src/shared/types/workspace.ts +0 -114
- /package/src/{shared/lib/harness/mode-signal.ts → client/lib/harness-mode-signal.ts} +0 -0
- /package/src/{shared/lib/omp/mode/client-signal.ts → client/lib/omp-mode-signal.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d,zt,n,o,i,u,a,Ze,ie,Ut,Ba,rs,Ah,e,s,Qo,B,re,Le,ro,Qr,En,Wn,Pn,p,cn,Ne,un,Q,I,gl,dn,Ia,Bn,Al,_a,pn,it,Rr,f,E,ce,Ro,gi,aa,hi,ae,Xe,Yn,fe,Ie,Nt,et,en,Gt,de,Ue,oo,pe,Sa,oa,sa,yn,ki,mn,Da,xi,Na,ir,Zn,Xn,F,Fr,S,kt,U,La,Fa,vr,kr,tn,jt,Fe,la,cs,Ma,h,k,wh,ds,Tm,Ic,Dm,Ch,kn,wi,N,Eh,qe,Cr,Qe,Zg,Id,lr,Bh,Qt,nt,he,Re,fs,X,Bt,rn,se,Cl,We,be,El,bs,fn,Gh,jh,zm,Hh,qh,Um,Wh,Gm,jm,Oo,Kh,Vh,Hm,tA,qm,J,At,co,Xm,nA,e0,t0,n0,r0,a0,o0,rA,Si,i0,s0,ef,ys,oA,Fc,l0,c0,Mc,u0,tf,d0,p0,nf,m0,f0,g0,rf,A0,Pc,Rd,Ld,h0,zo,b0,y0,af,of,ks,Oc,Fd,v0,k0,xs,sf,iA,Uo,uo,da,Oa,lf,Md,cf,uf,x0,w0,sA,C0,E0,lA,cA,uA,B0,rt,st,_l,I0,dA,_0,S0,T0,D0,gn,ws,po,$c,df,pf,_t,jo,mf,pA,Q0,mA,Pd,ff,Uc,R0,pa,Gc,jc,L0,F0,gf,Af,fA,hf,M0,Hc,qc,bf,Wc,Cs,yf,at,an,gA,Kc,Es,Ee,Vc,Tl,vf,Bs,mo,Yc,Jc,Zc,kf}from"./index-nn64attw.js";import{Wr,ql,Cp}from"./index-2msrzs5j.js";import{ug}from"./index-wzpmhvvv.js";import{ht,ap,op,ip,Qu,sp,lp,Ul,Fu,Os,Gl,Mi}from"./index-fwsmhqpa.js";import{fa,ed,al,KA,td,nd}from"./index-2ps4vdfs.js";import{to,wd,wc,no,Cd,ml,Z,dh,ph,Cc,mh,fh}from"./index-s0bsc424.js";function Tr(t,r,l){let c={},m=typeof l==="function"?Object.keys(r):Object.keys(l);for(let g of m)if(r[g]!==t[g])c[g]=r[g];return c}var Ir="color";var Ar=["color","monochrome"];function Eu(t){return t==="color"||t==="monochrome"}function Er(t){return Eu(t)?t:"color"}var Mr={color:{label:"Full colour",description:"The shipped app icon, plate and all. Matches the icon in the Dock, the taskbar and the launcher.",caption:"App icon"},monochrome:{label:"Monochrome",description:"A greyscale conversion of the app icon: the green plate and the cream strokes swap luminance with the theme, and the orange arm becomes the middle grey.",caption:"Greyscale"}};var Lr={theme:El,editorFont:Rd,editorTheme:ql,autoSessionTitle:!0,commitMessageMode:"auto",commitMessageHarness:"",commitMessageModel:"",commitMessagePrompt:"",gitIdentities:[],soundAlerts:!0,chatCompletionSound:!0,notifyDesktopEnabled:!0,notifyMobileEnabled:!0,notifyOnFinish:!1,notifyOnAsk:!1,notifyOnError:!1,goalAuditEnabled:!0,goalAuditModel:"",goalDefaultBudget:null,chatWidthMode:Xm,chatColumnWidth:e0,toolRenderStyle:n0,showChangedFiles:!0,sidebarStyle:dh,leftPanelNav:rA,rightPanelNav:rA,rightSideHiddenScope:oA,mobileLeftPanelNav:ef,mobileRightPanelNav:ef,composerStyle:c0,surfaceStyle:d0,borderStyle:f0,iconStyle:Hh,trayIconStyle:Ir,followUpBehavior:"queue",keybindingSend:"Enter",keybindingNewLine:"Shift + Enter",keybindingSteering:"Ctrl / Cmd + Enter",dictation:Oc,tts:iA};function Or(){let[t,r]=n(!1),l=a(async()=>{r(!0);try{let c=await fetch("/api/omp/reload-engine",{method:"POST"}),m=await c.json().catch(()=>null);if(!c.ok||!m?.success)return{ok:!1,message:m?.error??`Reload failed (HTTP ${c.status})`};Uo(),da();let g=m.utility??0,b=m.prewarmed??0;return{ok:!0,message:g+b===0?"No standby omp processes were running — the next command starts the current build.":`Reloaded omp engine — ${g} utility, ${b} prewarmed process${g+b===1?"":"es"} recycled.`}}catch(c){return{ok:!1,message:c instanceof Error?c.message:"Failed to reload the omp engine."}}finally{r(!1)}},[]);return{isReloading:t,reload:l}}function Dr(t={}){let{restart:r}=t,[l,c]=n(!1),m=a(async()=>{c(!0);try{let g=await Md(r),b=await fetch("/api/console/restart",{method:"POST"}),v=await b.json().catch(()=>null);if(!b.ok||!v?.success)return{ok:!1,message:v?.error??`Restart failed (HTTP ${b.status})`};if(!v.restarting)return{ok:!1,message:v.message??"This instance cannot be restarted from the console."};let x=await cf(g,r);if(x==="restarted")return window.location.reload(),{ok:!0,message:v.message??"Restarting — this page reloads on its own."};if(x==="timeout")return{ok:!1,message:`The server did not come back within ${Math.round((r?.timeoutMs??lf)/1000)} seconds — reload this page once it is up.`};return{ok:!1,message:"The restart was cancelled."}}catch(g){return{ok:!1,message:g instanceof Error?g.message:"Failed to restart Kabmo."}}finally{c(!1)}},[r]);return{isRestarting:l,restart:m}}function Ur(t,r){if(typeof document<"u"&&r.theme)qm(r.theme);if(typeof window<"u"&&r.editorFont!==t.editorFont)window.dispatchEvent(new CustomEvent(uA,{detail:r.editorFont}));if(typeof window<"u"&&r.editorTheme!==t.editorTheme)window.dispatchEvent(new CustomEvent(ap,{detail:r.editorTheme}));if(r.chatWidthMode!==t.chatWidthMode)uf(r.chatWidthMode,r.chatColumnWidth);if(r.toolRenderStyle!==t.toolRenderStyle)x0(r.toolRenderStyle);if(r.showChangedFiles!==t.showChangedFiles)w0(r.showChangedFiles);if(r.sidebarStyle!==t.sidebarStyle)fh(r.sidebarStyle);if(r.leftPanelNav!==t.leftPanelNav)sA("left",r.leftPanelNav);if(r.rightPanelNav!==t.rightPanelNav)sA("right",r.rightPanelNav);if(r.mobileLeftPanelNav!==t.mobileLeftPanelNav){if(ug("left",r.mobileLeftPanelNav),r.mobileLeftPanelNav==="tabs")Bh()}if(r.mobileRightPanelNav!==t.mobileRightPanelNav)ug("right",r.mobileRightPanelNav);if(r.rightSideHiddenScope!==t.rightSideHiddenScope)C0(r.rightSideHiddenScope);if(r.composerStyle!==t.composerStyle)E0(r.composerStyle);if(r.surfaceStyle!==t.surfaceStyle)lA(r.surfaceStyle);if(r.borderStyle!==t.borderStyle)cA(r.borderStyle);if(r.iconStyle!==t.iconStyle)tA(r.iconStyle);if(r.dictation!==t.dictation)B0(r.dictation)}var Mu={name:"sliders-vertical",size:24,node:[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],aliases:["sliders"]},$r=s(Mu);var Lu={name:"square-check-big",size:24,node:[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-square"]},_r=s(Lu);var Ou={name:"arrow-down-to-line",size:24,node:[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]},ct=s(Ou);var Du={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]},jr=s(Du);var Uu={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]},Br=s(Uu);var $u={name:"calendar-range",size:24,node:[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M16 2v3",key:"otl347"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M17 13h-6",key:"1qbiup"}],["path",{d:"M13 17H7",key:"1x38vv"}],["path",{d:"M7 13h.01",key:"1vezk1"}],["path",{d:"M17 17h.01",key:"1sd3ek"}]]},Kr=s($u);var _u={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]},Hr=s(_u);var ju={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]},hn=s(ju);var Bu={name:"dice-5",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M8 8h.01",key:"1e4136"}],["path",{d:"M8 16h.01",key:"18s6g9"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]]},zr=s(Bu);var Ku={name:"dollar-sign",size:24,node:[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]},Gr=s(Ku);var Hu={name:"file-diff",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]},Vr=s(Hu);var zu={name:"folder-git",size:24,node:[["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M14 13h3",key:"1dgedf"}],["path",{d:"M7 13h3",key:"1pygq7"}]]},qr=s(zu);var Gu={name:"folder-input",size:24,node:[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]]},Yr=s(Gu);var Wu={name:"hammer",size:24,node:[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]]},Jr=s(Wu);var Vu={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]},Xr=s(Vu);var qu={name:"key",size:24,node:[["path",{d:"m2 21 9.6-9.6",key:"9l79m3"}],["path",{d:"m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19",key:"fw8biw"}],["circle",{cx:"15.5",cy:"7.5",r:"5.5",key:"4wxmhb"}]]},St=s(qu);var Yu={name:"library",size:24,node:[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]},Zr=s(Yu);var Ju={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]},ei=s(Ju);var Xu={name:"list-music",size:24,node:[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M11 19H3",key:"zflm78"}],["path",{d:"M21 16V5",key:"yxg4q8"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]},ti=s(Xu);var Zu={name:"log-out",size:24,node:[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]},vn=s(Zu);var em={name:"log-in",size:24,node:[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]},ni=s(em);var tm={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]},xn=s(tm);var nm={name:"pipette",size:24,node:[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]]},oi=s(nm);var om={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]},ri=s(om);var rm={name:"shield-off",size:24,node:[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]},ii=s(rm);var im={name:"store",size:24,node:[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]]},ft=s(im);var am={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]},wn=s(am);var sm={name:"volume-x",size:24,node:[["path",{d:"M11 4.702a.7.7 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.7.7 0 0 0 11 19.298z",key:"1p7khw"}],["path",{d:"m16.5 14.5 5-5",key:"cul3yw"}],["path",{d:"m16.5 9.5 5 5",key:"1akey5"}]]},ai=s(sm);var lm={name:"waypoints",size:24,node:[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]]},bo=s(lm);var si=["KABMO","CONNECT","WORKSPACE","OMP","HARNESSES"];var Te="4rem",li="calc(4rem + env(safe-area-inset-top, 0px))",Se="flex items-center flex-shrink-0 border-b border-ink/10";var di=[{id:"appearance",label:"Appearance",icon:Na,section:"KABMO",description:"Palette, shell layout, icons, and the code editor’s face, theme and behaviour."},{id:"chats",label:"Chats",icon:yn,section:"KABMO",description:"Chat width, composer style, tool call rendering, session titles, and goal mode."},{id:"voice",label:"Voice",icon:Br,section:"KABMO",description:"The composer mic (speech to text) and spoken answers (text to speech): engines, voices, keys and autoplay."},{id:"keyboard",label:"Keyboard",icon:Sa,section:"KABMO",description:"Every command shortcut, the composer Enter keys, and chord conflicts."},{id:"notifications",label:"Notifications",icon:_a,section:"KABMO",description:"Completion sound, separate Desktop and Mobile delivery switches, and the finished, waiting-for-you and failed run triggers."},{id:"usage",label:"Usage",icon:Qo,section:"KABMO",description:"Build minutes quota, storage, and general usage."},{id:"token-usage",label:"Token Usage",icon:hi,section:"KABMO",description:"Token telemetry, cache, and cost breakdown."},{id:"panel-plugins",label:"Plugins Kabmo",icon:ml,section:"KABMO",description:"Plugins installed into Kabmo: panels, background services, and the MCP servers they register."},{id:"connect",label:"Connect",icon:Fr,section:"CONNECT",description:"Tunnels, addresses, and the devices paired to this server."},{id:"projects",label:"Projects",icon:qr,section:"WORKSPACE",description:"Workspace directories, roots, and ignored paths."},{id:"git",label:"Git",icon:de,section:"WORKSPACE",description:"Commit message generation, the agent that writes it, and the prompt template."},{id:"omp",label:"OMP Engine",icon:Yn,section:"OMP",description:"Live agent state and native omp config keys."},{id:"providers",label:"Providers",icon:Hr,section:"OMP",description:"AI model engines, endpoints, and credentials."},{id:"agents",label:"Agents",icon:it,section:"OMP",description:"Autonomous agent persona, self-healing, and reasoning."},{id:"behavior",label:"Behavior",icon:$r,section:"OMP",description:"Native AGENTS.md and RULES.md: global instructions, permission gates, and safety filters."},{id:"commands",label:"Commands",icon:Fe,section:"OMP",description:"Slash command macros and terminal shortcuts."},{id:"mcp",label:"MCP",icon:Rr,section:"OMP",description:"Model Context Protocol servers and dynamic tools."},{id:"plugins",label:"Plugins",icon:Cd,section:"OMP",description:"Installed omp plugins, marketplaces, features, and plugin settings."},{id:"skills",label:"Skills",icon:Zr,section:"OMP",description:"Manage downloaded skills and scripts."},{id:"skills-catalog",label:"Skills Catalog",icon:pn,section:"OMP",description:"Browse and install new skills."},...dA().map((t)=>({id:t.id,label:t.label,icon:bo,section:"HARNESSES",...t.harness?{harness:t.harness}:{},description:t.description}))];function ci(t){let r=dA(t&&t.length>0?t:void 0).map((c)=>({id:c.id,label:c.label,icon:bo,section:"HARNESSES",...c.harness?{harness:c.harness}:{},description:c.description}));return[...di.filter((c)=>c.section!=="HARNESSES"),...r]}function fo({activeCategory:t,onSelectCategory:r,searchQuery:l,onSearchChange:c,onReloadOmp:m,isReloading:g,onRestartKabmo:b,isRestarting:v,disabledHarnesses:x=[],categories:P=di,className:y=""}){let T=P.filter((w)=>{if(w.harness&&x.includes(w.harness))return!1;if(!l.trim())return!0;let A=l.toLowerCase();return w.label.toLowerCase().includes(A)||w.section.toLowerCase().includes(A)||w.description.toLowerCase().includes(A)});return e("div",{className:`flex flex-col h-full bg-canvas border-r border-ink/10 text-ink select-none ${y}`,children:[e("div",{className:`${Se} px-3`,style:{height:Te},children:e("div",{className:"relative flex w-full items-center",children:[e(U,{size:14,className:"absolute left-2.5 text-ink/40 pointer-events-none"}),e("input",{type:"text",placeholder:"Search settings",value:l,onChange:(w)=>c(w.currentTarget.value),className:"w-full bg-paper border border-ink/15 rounded-lg pl-8 pr-7 py-1.5 text-xs text-ink placeholder-ink/40 focus:outline-none focus:border-ink/40 transition-colors"}),l&&e("button",{type:"button",onClick:()=>c(""),className:"absolute right-2 text-ink/40 hover:text-ink p-0.5",children:e(h,{size:12})})]})}),e("div",{className:"flex-1 scrollbar-overlay-container p-2 space-y-4",children:T.length===0?e("div",{className:"text-center py-8 text-xs text-ink/50 italic",children:"No matching settings found"}):si.map((w)=>{let A=T.filter((R)=>R.section===w);if(A.length===0)return null;return e("div",{className:"space-y-1",children:[e("div",{className:"px-2.5 py-1 text-[10px] font-bold text-ink/40 tracking-wider font-mono uppercase",children:w}),e("div",{className:"space-y-0.5",children:A.map((R)=>{let D=R.icon,C=t===R.id;return e("button",{type:"button",onClick:()=>r(R.id),className:`w-full flex items-center justify-between px-2.5 py-1.5 rounded-lg text-xs transition-all text-left ${C?"bg-ink/10 font-semibold text-ink shadow-2xs":"text-ink/75 hover:bg-ink/5 hover:text-ink"}`,children:[e("div",{className:"flex items-center space-x-2.5 truncate",children:[R.harness?e("span",{className:"flex w-[14px] shrink-0 items-center justify-center",children:e(rt,{harness:R.harness,size:14})}):e(D,{size:14,className:C?"text-ink":"text-ink/60"}),e("span",{className:"truncate",children:R.label})]}),R.badge&&e("span",{className:"px-1.5 py-0.2 text-[10px] font-mono font-medium rounded border border-warning/30 bg-warning/15 text-warning",children:R.badge})]},R.id)})})]},w)})}),e("div",{className:"p-2 border-t border-ink/10 flex-shrink-0 bg-canvas flex items-center gap-0.5",children:[e("button",{type:"button",onClick:m,disabled:g||v,title:"Recycle the standby omp processes so the next command uses the installed binary","aria-label":"Reload OMP",className:"shrink-0 flex items-center space-x-1 px-1 py-1.5 text-[11px] text-ink/75 hover:text-ink hover:bg-ink/5 rounded-lg transition-colors font-medium cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed",children:[e(S,{size:12,className:`shrink-0 ${g?"animate-spin text-warning":"text-ink/60"}`}),e("span",{className:"whitespace-nowrap",children:g?"Reloading…":"Reload OMP"})]}),e("button",{type:"button",onClick:b,disabled:g||v,title:"Stop and start this Kabmo instance","aria-label":"Restart Kabmo",className:"flex-1 min-w-0 flex items-center space-x-1 px-1 py-1.5 text-[11px] text-ink/75 hover:text-ink hover:bg-ink/5 rounded-lg transition-colors font-medium cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed",children:[e(ri,{size:12,className:`shrink-0 ${v?"animate-pulse text-warning":"text-ink/60"}`}),e("span",{className:"truncate",children:v?"Restarting…":"Restart Kabmo"})]})]})]})}function Pe(){let[t,r]=n("list"),l=a(()=>r("detail"),[]),c=a(()=>r("list"),[]);return{pane:t,openDetail:l,back:c}}var pi=zt(null);function ui({register:t,children:r}){return e(pi.Provider,{value:t,children:r})}function mi(t){let r=Ze(pi),l=t?.label,c=t?.description,m=t?.back,g=t?.backLabel;o(()=>{if(!r)return;if(!l||!m||!g){r(null);return}return r({label:l,description:c,back:m,backLabel:g}),()=>r(null)},[r,l,c,m,g])}function bi(){let[t,r]=n(null);return{register:u(()=>(c)=>r((m)=>{if(c===null)return m===null?m:null;if(m&&m.label===c.label&&m.description===c.description&&m.back===c.back&&m.backLabel===c.backLabel)return m;return c}),[]),drill:t}}function Ce({pane:t,onBack:r,list:l,detail:c,listLabel:m,detailLabel:g,detailDescription:b,className:v=""}){return mi(t==="detail"?{label:g??m,description:b,back:r,backLabel:`Back to ${m}`}:null),e("div",{className:`flex-1 flex flex-col md:flex-row h-full w-full min-w-0 overflow-hidden bg-paper text-ink ${v}`,children:[e("div",{className:`${t==="list"?"flex":"hidden"} md:flex flex-1 md:flex-none md:w-auto min-h-0 min-w-0 flex-col`,children:l}),e("div",{className:`${t==="detail"?"flex":"hidden"} md:flex flex-1 min-h-0 min-w-0 flex-col`,children:c})]})}function Pt({groups:t,activeGroupId:r,onSelectGroup:l}){return e("div",{className:"w-full md:w-64 md:border-r border-ink/10 h-full flex flex-col bg-paper/50 flex-shrink-0 select-none",children:[e("div",{className:`${Se} hidden md:flex px-3.5 justify-between`,style:{height:Te},children:e("span",{className:"text-xs font-semibold text-ink",children:[t.length," group",t.length===1?"":"s"]})}),e("div",{className:"flex-1 scrollbar-overlay-container p-1.5 text-xs",children:e("div",{className:"space-y-0.5",children:t.map((c)=>{let m=c.id===r,g=c.icon;return e("button",{type:"button",onClick:()=>l(c.id),"aria-current":m?"true":void 0,"aria-label":`${c.label}: ${c.hint}`,className:`w-full text-left px-2.5 py-2 rounded-lg transition-colors cursor-pointer flex flex-col gap-0.5 ${m?"bg-ink/10 text-ink font-medium shadow-2xs":"text-ink/80 hover:bg-ink/5 hover:text-ink"}`,children:[e("span",{className:"flex items-center gap-1.5 min-w-0",children:[e("span",{"aria-hidden":!0,className:`w-5 h-5 rounded-md flex items-center justify-center flex-shrink-0 ${m?"bg-ink/10 text-ink":"bg-ink/5 text-ink/70"}`,children:e(g,{size:12})}),e("span",{className:"font-semibold text-xs text-ink truncate",children:c.label})]}),e("span",{className:"text-[11px] text-ink/60 line-clamp-1 leading-snug pl-[26px]",children:c.hint})]},c.id)})})})]})}function Ct({group:t,children:r}){return e("div",{className:"flex-1 h-full overflow-hidden flex flex-col text-xs text-ink",children:[e("div",{className:`${Se} hidden md:flex items-start flex-col justify-center px-3.5`,style:{height:Te},children:[e("span",{className:"text-xs font-semibold text-ink/75",children:t.label}),e("p",{className:"w-full text-[11px] text-ink/60 leading-snug mt-0.5 truncate",children:t.description})]}),e("div",{className:"flex-1 overflow-y-auto scrollbar-overlay-container p-3.5 space-y-7 pb-6",children:r})]})}var $t=[{id:"palette",label:"Palette",hint:"The console’s colours",description:"The palette every surface, row and dialog is painted from.",icon:Na,sections:["theme"]},{id:"shell",label:"Shell",hint:"Sidebar, panels, right side, material, rules, icons",description:"The shape of the console around the conversation: the session sidebar, how each desktop panel column is navigated, how long a closed right side is remembered, what the windows are made of, whether the hairlines are drawn, and how glyphs and marks are painted.",icon:cn,sections:["sidebar","panel-nav","right-side","surface","border","icons","tray"]},{id:"editor",label:"Editor",hint:"Typeface and colour theme",description:"The code editor’s own two axes, independent of the console palette: the face it is set in, and the TextMate theme it paints with.",icon:En,sections:["editor-font","editor-theme"]},{id:"editor-behaviour",label:"Editor behaviour",hint:"Indentation, typing, line blame",description:"What the editor does as you type, rather than how it looks. Each one reaches an editor that is already open without a reload.",icon:La,sections:["editor-indent","editor-typing","editor-blame"]}];function fi({theme:t,selected:r,onSelect:l}){return e("button",{type:"button",onClick:()=>l(t.id),"aria-pressed":r,className:`group flex w-full flex-col gap-2.5 rounded-lg border p-2.5 text-left transition-all cursor-pointer ${r?"border-ink bg-ink/5 ring-1 ring-ink/20":"border-ink/20 bg-paper hover:border-ink/40 hover:bg-ink/5"}`,children:[e("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"min-w-0 truncate font-semibold text-ink",title:t.name,children:t.name}),e("span",{className:"shrink-0 rounded-full border border-ink/15 px-1.5 py-px text-[10px] font-semibold uppercase tracking-wider text-ink/50",children:t.variant}),r&&e(f,{size:14,className:"ml-auto shrink-0 text-ink"})]}),e("div",{className:"flex items-center gap-1",children:jh.map((c)=>e("span",{title:`${c.label} · ${t[c.key]}`,style:{backgroundColor:t[c.key]},className:"h-5 flex-1 rounded-[3px] border border-ink/10"},c.key))})]})}var dm=[{id:"all",label:"All"},{id:"light",label:"Light"},{id:"dark",label:"Dark"}];function cm(t){return t==="all"?bs:bs.filter((r)=>r.variant===t)}function vi({selectedId:t,onSelect:r}){let[l,c]=n("all"),m=u(()=>cm(l),[l]);return e("div",{className:"@container space-y-3 pb-6",children:[e("div",{className:"flex flex-wrap items-center gap-1.5",children:[dm.map((g)=>e("button",{type:"button",onClick:()=>c(g.id),className:`rounded-full border px-2.5 py-1 text-[11px] font-medium transition-colors cursor-pointer ${l===g.id?"border-ink bg-ink text-paper":"border-ink/20 bg-paper text-ink/70 hover:border-ink/40 hover:text-ink"}`,children:[g.id==="light"&&e(wn,{size:11,className:"mr-1 inline align-[-1px]"}),g.id==="dark"&&e(xn,{size:11,className:"mr-1 inline align-[-1px]"}),g.label]},g.id)),e("span",{className:"ml-auto min-w-0 font-mono text-[11px] text-ink/50 whitespace-nowrap",children:[m.length," themes"]})]}),e("div",{className:"grid grid-cols-1 gap-2.5 @[320px]:grid-cols-2 @[560px]:grid-cols-3",children:m.map((g)=>e(fi,{theme:g,selected:g.id===t,onSelect:r},g.id))})]})}function yi({settings:t,onUpdate:r}){return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Console palette"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"The colours every surface, row and dialog is painted from. The code editor has its own theme, in the Editor group."})]}),e(vi,{selectedId:t.theme,onSelect:(l)=>r({theme:Gh(l)})})]})}function vt({width:t,active:r=!1,trailing:l=!1}){return e("span",{className:"flex h-[9px] items-center gap-1 px-1",children:[e("span",{className:`h-[5px] w-[5px] shrink-0 rounded-full ${r?"bg-ink":"bg-ink/25"}`}),e("span",{className:`h-[3px] rounded-full ${r?"bg-ink/70":"bg-ink/25"}`,style:{width:`${t}%`}}),l&&e("span",{className:"ml-auto h-[3px] w-[6px] rounded-full bg-ink/20"})]})}function pm(){return e("span",{className:"flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1","aria-hidden":"true",children:[e("span",{className:"flex items-center gap-0.5",children:[e("span",{className:"h-[7px] w-[30%] rounded-sm bg-ink/80"}),e("span",{className:"h-[7px] w-[7px] rounded-sm border border-ink/20 bg-paper"}),e("span",{className:"h-[7px] w-[7px] rounded-sm border border-ink/20 bg-paper"}),e("span",{className:"ml-auto h-[7px] w-[7px] rounded-sm border border-ink/20 bg-paper"}),e("span",{className:"h-[7px] w-[7px] rounded-sm border border-ink/20 bg-paper"})]}),e("span",{className:"flex h-[7px] items-center gap-1 px-1",children:e("span",{className:"h-[3px] w-[45%] rounded-full bg-ink/45"})}),e(vt,{width:62,trailing:!0}),e(vt,{width:50,active:!0,trailing:!0}),e(vt,{width:44,trailing:!0}),e(vt,{width:56,trailing:!0})]})}function um(){return e("span",{className:"flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1","aria-hidden":"true",children:[e("span",{className:"flex h-[7px] items-center rounded-sm bg-ink/5 px-1",children:e("span",{className:"h-[3px] w-[38%] rounded-full bg-ink/30"})}),e("span",{className:"flex items-center gap-0.5",children:[e("span",{className:"h-[6px] w-[16%] rounded-full bg-ink/80"}),e("span",{className:"h-[6px] w-[22%] rounded-full border border-ink/20"}),e("span",{className:"h-[6px] w-[12%] rounded-full border border-ink/20"})]}),e("span",{className:"flex h-[9px] items-center gap-1 px-1",children:[e("span",{className:"h-[5px] w-[5px] shrink-0 rounded-full bg-ink/50"}),e("span",{className:"h-[3px] w-[40%] rounded-full bg-ink/45"}),e("span",{className:"ml-auto h-[3px] w-[5px] rounded-full bg-ink/20"})]}),e(vt,{width:62,active:!0,trailing:!0}),e(vt,{width:50,trailing:!0}),e(vt,{width:44,trailing:!0})]})}var mm={classic:pm,modern:um};function Ni({settings:t,onUpdate:r}){let l=Cc(t.sidebarStyle);return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Session sidebar"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"How the left column draws its workspaces and chats. Both styles list the same workspaces and offer the same actions; the choice applies to desktop and phone, and takes effect immediately."})]}),e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":"Session sidebar style",children:ph.map((c)=>{let m=mh[c],g=c===l,b=mm[c];return e("button",{type:"button",onClick:()=>r({sidebarStyle:c}),"aria-pressed":g,"aria-label":`${m.label} sidebar — ${m.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${g?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[86px]",children:e(b,{})}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:m.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:m.caption}),g&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:m.description})]},c)})})]})}function Pi(){return e("span",{className:"flex h-full gap-1 rounded-md border border-ink/10 bg-paper p-1","aria-hidden":"true",children:[e("span",{className:"flex w-[9px] flex-col items-center gap-1 border-r border-ink/10 pr-1",children:[e("span",{className:"h-[5px] w-[5px] rounded-sm bg-ink/70"}),e("span",{className:"h-[5px] w-[5px] rounded-sm bg-ink/25"}),e("span",{className:"h-[5px] w-[5px] rounded-sm bg-ink/25"})]}),e("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[e("span",{className:"h-[3px] w-[46%] rounded-full bg-ink/45"}),e("span",{className:"h-[3px] w-[62%] rounded-full bg-ink/25"}),e("span",{className:"h-[3px] w-[54%] rounded-full bg-ink/25"}),e("span",{className:"h-[3px] w-[40%] rounded-full bg-ink/20"})]})]})}function Ci(){return e("span",{className:"flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1","aria-hidden":"true",children:[e("span",{className:"flex items-center gap-1 border-b border-ink/10 pb-1",children:[e("span",{className:"h-[6px] w-[6px] rounded-sm border border-ink/20"}),e("span",{className:"h-[6px] w-[28%] rounded-sm bg-ink/70"}),e("span",{className:"h-[6px] w-[24%] rounded-sm border border-ink/20"})]}),e("span",{className:"flex gap-1",children:[e("span",{className:"h-[16px] w-[22%] rounded border border-ink/15"}),e("span",{className:"h-[16px] w-[22%] rounded border border-ink/15"}),e("span",{className:"h-[16px] w-[22%] rounded border border-ink/15"})]})]})}function Ti(){return e("span",{className:"flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1","aria-hidden":"true",children:[e("span",{className:"flex h-[7px] items-center gap-1 border-b border-ink/10 pb-1",children:[e("span",{className:"h-[6px] w-[16%] rounded-sm bg-ink/70"}),e("span",{className:"h-[6px] w-[16%] rounded-sm border border-ink/20"}),e("span",{className:"h-[6px] w-[16%] rounded-sm border border-ink/20"}),e("span",{className:"h-[6px] w-[16%] rounded-sm border border-ink/20"})]}),e("span",{className:"h-[3px] w-[62%] rounded-full bg-ink/25"}),e("span",{className:"h-[3px] w-[54%] rounded-full bg-ink/25"}),e("span",{className:"h-[3px] w-[40%] rounded-full bg-ink/20"})]})}function Ii({pinned:t=!1}){return e("span",{className:"flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1","aria-hidden":"true",children:[e("span",{className:"flex h-[7px] items-center gap-1 border-b border-ink/10 pb-1",children:[e("span",{className:"h-[6px] w-[6px] rounded-sm border border-ink/20"}),t?e("span",{className:"h-[6px] w-[20%] rounded-sm bg-ink/70"}):null,e("span",{className:`h-[6px] rounded-sm ${t?"w-[18%]":"w-[24%]"} bg-ink/70`}),e("span",{className:"h-[6px] w-[20%] rounded-sm border border-ink/20"})]}),e("span",{className:"flex gap-1",children:[e("span",{className:"h-[16px] w-[24%] rounded border border-ink/15"}),e("span",{className:"h-[16px] w-[24%] rounded border border-ink/15"}),e("span",{className:"h-[16px] w-[24%] rounded border border-ink/15"})]})]})}function gm(t){return t==="rail"?e(Pi,{}):e(Ci,{})}var bm={classic:{label:"Classic",description:"The strip lists every view; tapping one swaps the drawer body.",caption:"All views · one tap"},tabs:{label:"Tabs",description:"The strip holds only the views you opened, over a home page that lists them all. The drawer reopens where you left it.",caption:"Opened views · home page"}},fm={classic:{label:"Classic",description:"The strip lists every view the left dock holds; tapping one swaps the drawer body.",caption:"All views · one tap"},tabs:{label:"Tabs",description:"The strip holds the views you opened, with Sessions pinned first, over a home page that lists the rest. The drawer reopens where you left it.",caption:"Opened views · Sessions pinned"}};function Ai({styles:t,copy:r,miniature:l,current:c,onPick:m,label:g}){return e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":g,children:t.map((b)=>{let v=r[b],x=b===c;return e("button",{type:"button",onClick:()=>m(b),"aria-pressed":x,"aria-label":`${v.label} — ${v.description}`,className:`flex cursor-pointer flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors ${x?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[54px]",children:l(b)}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:v.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:v.caption}),x&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:v.description})]},b)})})}function ho({current:t,onPick:r}){return e(Ai,{styles:o0,copy:i0,miniature:gm,current:t,onPick:r,label:"Panel navigation"})}function vo({side:t,current:r,onPick:l}){let c=t==="left";return e(Ai,{styles:s0,copy:c?fm:bm,miniature:(m)=>m==="classic"?e(Ti,{}):e(Ii,{pinned:c}),current:r,onPick:l,label:c?"Phone left drawer":"Phone right drawer"})}function Ri({settings:t,onUpdate:r}){return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Panel navigation"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"How each panel surface is navigated. Everything is chosen independently: the desktop columns do not set each other, and each phone drawer has its own answer."})]}),e("div",{className:"space-y-2",children:[e("div",{children:[e("h5",{className:"text-[11px] font-semibold text-ink/70",children:"Left column"}),e("div",{className:"mt-1.5",children:e(ho,{current:Si(t.leftPanelNav),onPick:(l)=>r({leftPanelNav:l})})})]}),e("div",{children:[e("h5",{className:"text-[11px] font-semibold text-ink/70",children:"Right column"}),e("div",{className:"mt-1.5",children:e(ho,{current:Si(t.rightPanelNav),onPick:(l)=>r({rightPanelNav:l})})})]}),e("div",{children:[e("h5",{className:"text-[11px] font-semibold text-ink/70",children:"Phone · left drawer"}),e("p",{className:"mt-0.5 text-[11px] text-ink/50",children:"The drawer is one screen, so it has no rail to put beside it. This chooses what its strip lists instead. Under Tabs the session list stays the first, pinned chip."}),e("div",{className:"mt-1.5",children:e(vo,{side:"left",current:ys(t.mobileLeftPanelNav),onPick:(l)=>r({mobileLeftPanelNav:l})})})]}),e("div",{children:[e("h5",{className:"text-[11px] font-semibold text-ink/70",children:"Phone · right drawer"}),e("p",{className:"mt-0.5 text-[11px] text-ink/50",children:"A drawer is one screen, so it has no rail to put beside it. This chooses what its strip lists instead."}),e("div",{className:"mt-1.5",children:e(vo,{side:"right",current:ys(t.mobileRightPanelNav),onPick:(l)=>r({mobileRightPanelNav:l})})})]})]})]})}var hm=["session","global"],vm={session:{label:"Per chat",caption:"default",description:"Closing the side belongs to the chat you closed it in. Every other chat keeps the layout it was left with."},global:{label:"All chats",caption:"global",description:"Closing the side applies to every chat. Opening it once brings it back everywhere, whichever chat is open."}};function Ei({settings:t,onUpdate:r}){let l=Fc(t.rightSideHiddenScope);return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Right side"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"How long the navbar’s right-side button is remembered: the side you closed in one chat, or the side every chat opens with."})]}),e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":"Right side toggle",children:hm.map((c)=>{let m=vm[c],g=c===l;return e("button",{type:"button",onClick:()=>r({rightSideHiddenScope:c}),"aria-pressed":g,"aria-label":`${m.label} — ${m.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${g?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:m.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:m.caption}),g&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:m.description})]},c)})})]})}function Li({backdropFilter:t,reducedTransparency:r}){let l=[];if(!t)l.push("no-backdrop-filter");if(r)l.push("reduced-transparency");return l}var Oi={"no-backdrop-filter":"This engine reports no backdrop blur, so the frost falls back to opaque panels here — the window keeps the glass colours but loses the blur.","reduced-transparency":"Your system asks apps to reduce transparency, so the frost is switched off. Turn that system setting off to see the glass material."};var Di="(prefers-reduced-transparency: reduce)";function xm(){if(typeof CSS>"u"||typeof CSS.supports!=="function")return!1;return CSS.supports("backdrop-filter","blur(1px)")||CSS.supports("-webkit-backdrop-filter","blur(1px)")}function Ui(){let[t,r]=n(()=>typeof window>"u"?!1:window.matchMedia(Di).matches);return o(()=>{let l=window.matchMedia(Di),c=()=>r(l.matches);return c(),l.addEventListener("change",c),()=>l.removeEventListener("change",c)},[]),Li({backdropFilter:xm(),reducedTransparency:t})}function $i(){return e("span",{className:"flex h-full flex-col gap-1 p-1",children:[e("span",{className:"flex items-center gap-1",children:[e("span",{className:"h-[3px] w-[38%] rounded-full bg-ink/40"}),e("span",{className:"ml-auto h-[6px] w-[10%] rounded-[2px] border border-ink/20"})]}),e("span",{className:"h-[2px] w-full rounded-full bg-ink/15"}),e("span",{className:"flex items-center gap-1",children:[e("span",{className:"h-[3px] w-[52%] rounded-full bg-ink/30"}),e("span",{className:"h-[3px] w-[18%] rounded-full bg-ink/15"})]}),e("span",{className:"flex items-center gap-1",children:[e("span",{className:"h-[3px] w-[44%] rounded-full bg-ink/30"}),e("span",{className:"h-[3px] w-[22%] rounded-full bg-ink/15"})]})]})}function ym(){return e("span",{className:"block h-full rounded-md border border-ink/15 bg-paper","aria-hidden":"true",children:[e("span",{className:"block h-[13px] rounded-t-[5px] border-b border-ink/10 bg-paper",children:e("span",{className:"mx-1 mt-[4px] block h-[3px] w-[40%] rounded-full bg-ink/35"})}),e($i,{})]})}function km(){return e("span",{className:"relative block h-full overflow-hidden rounded-md border border-ink/15 bg-canvas","aria-hidden":"true",children:[e("span",{className:"pointer-events-none absolute inset-0",children:[e("span",{className:"absolute -left-2 top-2 h-[70%] w-[55%] rounded-full bg-info/40 blur-md"}),e("span",{className:"absolute -right-2 -top-2 h-[60%] w-[50%] rounded-full bg-meta/35 blur-md"}),e("span",{className:"absolute -bottom-2 right-3 h-[45%] w-[45%] rounded-full bg-success/30 blur-md"})]}),e("span",{className:"relative block h-[13px] border-b border-ink/10 bg-paper/40",children:e("span",{className:"mx-1 mt-[4px] block h-[3px] w-[40%] rounded-full bg-ink/40"})}),e("span",{className:"relative block h-[calc(100%-13px)] bg-paper/50",children:e($i,{})})]})}var wm={classic:ym,glass:km};function Sm(){let t=Ui();if(t.length===0)return null;return e("ul",{className:"space-y-1 rounded-lg border border-ink/15 bg-ink/[0.03] p-2.5","aria-live":"polite",children:t.map((r)=>e("li",{className:"flex gap-1.5 text-[11px] leading-relaxed text-ink/60",children:[e("span",{"aria-hidden":"true",className:"mt-[5px] h-1 w-1 shrink-0 rounded-full bg-ink/40"}),e("span",{children:Oi[r]})]},r))})}function Fi({settings:t,onUpdate:r}){let l=nf(t.surfaceStyle);return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Surfaces"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"What the windows are made of. Both styles draw the same panels, rows and dialogs; the frost is one blur pass per window, and it follows the palette — there is no separate glass colour to tune."})]}),e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":"Surface style",children:p0.map((c)=>{let m=m0[c],g=c===l,b=wm[c];return e("button",{type:"button",onClick:()=>r({surfaceStyle:c}),"aria-pressed":g,"aria-label":`${m.label} surfaces — ${m.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${g?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[78px]",children:e(b,{})}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:m.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:m.caption}),g&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:m.description})]},c)})}),l==="glass"&&e(Sm,{})]})}function Nm({ruled:t}){let r=t?"border-b border-ink/10":"";return e("span",{className:"flex h-full flex-col",children:[0,1,2].map((l)=>e("span",{className:`flex items-center gap-1 px-1 py-[3px] ${r}`,children:[e("span",{className:"h-[3px] w-[26%] rounded-full bg-ink/35"}),e("span",{className:"h-[3px] w-[14%] rounded-full bg-ink/15"})]},l))})}function _i({ruled:t}){return e("span",{className:"flex h-full overflow-hidden rounded-md border border-ink/15 bg-paper","aria-hidden":"true",children:[e("span",{className:`flex w-[34%] flex-col gap-1 p-1 ${t?"border-r border-ink/10":""}`,children:[e("span",{className:"h-[3px] w-[70%] rounded-full bg-ink/35"}),e("span",{className:"h-[3px] w-[52%] rounded-full bg-ink/20"}),e("span",{className:"h-[3px] w-[62%] rounded-full bg-ink/20"})]}),e("span",{className:"flex min-w-0 flex-1 flex-col",children:[e("span",{className:`flex h-[12px] flex-shrink-0 items-center px-1 ${t?"border-b border-ink/10":""}`,children:e("span",{className:"h-[3px] w-[40%] rounded-full bg-ink/30"})}),e(Nm,{ruled:t})]})]})}var Pm={hairline:()=>e(_i,{ruled:!0}),borderless:()=>e(_i,{ruled:!1})};function ji({settings:t,onUpdate:r}){let l=rf(t.borderStyle);return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Rules"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Whether the 1px rules between panels, columns and rows are painted. Controls keep their edge either way, and so do validation colours, drop zones and the focus ring."})]}),e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":"Border style",children:g0.map((c)=>{let m=A0[c],g=c===l,b=Pm[c];return e("button",{type:"button",onClick:()=>r({borderStyle:c}),"aria-pressed":g,"aria-label":`${m.label} rules — ${m.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${g?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[62px]",children:e(b,{})}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:m.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:m.caption}),g&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:m.description})]},c)})})]})}function Cm(t){return fn(t).paper}function xo({name:t,Icon:r,colored:l,paper:c}){let m=Kh(t),g=!l?void 0:m?jm[m]:Oo(Vh(t),"light",c);return e(r,{size:13,strokeWidth:2,style:g?{color:g}:void 0,"aria-hidden":"true"})}function Bi({name:t,base:r,colored:l}){let c=l?r:void 0;return e("span",{className:"flex h-5 w-5 items-center justify-center rounded-[5px] border border-ink/10",style:c?{backgroundColor:`${c}22`,color:c}:void 0,title:t,"aria-hidden":"true",children:e("span",{className:`block h-2 w-2 rounded-full ${l?"":"bg-ink/60"}`,style:c?{backgroundColor:c}:void 0})})}function Ki({colored:t,paper:r}){return e("span",{className:"flex h-full items-center gap-1.5 rounded-md border border-ink/10 bg-canvas/60 px-2",children:[e(xo,{name:"Trash2",Icon:Q,colored:t,paper:r}),e(xo,{name:"Check",Icon:f,colored:t,paper:r}),e(xo,{name:"Sparkles",Icon:Ne,colored:t,paper:r}),e("span",{className:"mx-0.5 h-4 w-px bg-ink/10"}),e(Bi,{name:"claude",base:Gm.claude.light,colored:t}),e(Bi,{name:"Typescript",base:Hm.Typescript.light,colored:t})]})}function Hi({settings:t,onUpdate:r}){let l=Um(t.iconStyle),c=Cm(t.theme),m={monochrome:()=>e(Ki,{colored:!1,paper:c}),color:()=>e(Ki,{colored:!0,paper:c})};return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Icons"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Every icon: toolbar and panel glyphs, provider logos and file-type marks. Full colour gives each glyph its own hue and keeps the palette’s red, green, amber and blue for signals; a colour that would disappear on the active theme falls back to the ink. A control that sets its own colour keeps it."})]}),e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":"Icon style",children:qh.map((g)=>{let b=Wh[g],v=g===l,x=m[g];return e("button",{type:"button",onClick:()=>r({iconStyle:g}),"aria-pressed":v,"aria-label":`${b.label} icons — ${b.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${v?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[42px]",children:e(x,{})}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:b.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:b.caption}),v&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:b.description})]},g)})})]})}function Im(){return e("span",{className:"flex h-full items-center justify-center rounded-md border border-ink/10 bg-canvas/60",children:e("img",{src:"/icon.svg",alt:"",width:26,height:26,className:"rounded-[6px]","aria-hidden":"true"})})}function Am({variant:t}){return e("span",{className:"flex h-full items-center justify-center rounded-md border border-ink/10 bg-canvas/60",children:e("img",{src:`/tray-monochrome-${t}.png`,alt:"",width:26,height:26,"aria-hidden":"true"})})}function zi({settings:t,onUpdate:r}){let l=Er(t.trayIconStyle),c=fn(t.theme).variant,m={color:Im,monochrome:()=>e(Am,{variant:c})};return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Tray icon"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"The menu-bar (macOS) or notification-area (Windows, Linux) icon. Full colour is the shipped app icon, orange arm and all; monochrome is a greyscale conversion: the green plate and the cream strokes swap luminance with the theme, and the orange arm becomes the middle grey. Applies the next time the tray starts, or immediately when it is already running."})]}),e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":"Tray icon style",children:Ar.map((g)=>{let b=Mr[g],v=g===l,x=m[g];return e("button",{type:"button",onClick:()=>r({trayIconStyle:g}),"aria-pressed":v,"aria-label":`${b.label} tray icon — ${b.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${v?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[42px]",children:e(x,{})}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:b.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:b.caption}),v&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:b.description})]},g)})})]})}function Gi({settings:t,onUpdate:r}){let l=t.editorFont||Pc[0].id;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"flex items-center gap-2 text-sm font-semibold text-ink",children:[e(la,{size:15,className:"text-ink/60"}),"Editor font"]}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"Typeface for the code editor and its line numbers, in both the desktop panel and the phone's full-screen editor. Only Fira Code ships with the app; the others are used when your device has them, and fall back to Fira Code when it does not."})]}),e("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:Pc.map((c)=>{let m=l===c.id;return e("button",{type:"button",onClick:()=>r({editorFont:c.id}),"aria-pressed":m,className:`flex items-center justify-between gap-3 rounded-lg border px-3 py-2 text-left transition-colors ${m?"border-ink/40 bg-ink/5":"border-ink/12 hover:bg-ink/5"}`,children:[e("span",{className:"min-w-0",children:[e("span",{className:"block truncate text-xs text-ink",style:{fontFamily:`"${c.id}", monospace`},children:"const greet = () => 'hi'"}),e("span",{className:"mt-0.5 flex items-center gap-1.5 text-[10px] text-ink/50",children:[e("span",{children:c.label}),c.bundled&&e("span",{className:"rounded bg-ink/8 px-1 py-px text-[10px] uppercase tracking-wide",children:"Bundled"})]})]}),m&&e(f,{size:14,className:"text-ink flex-shrink-0"})]},c.id)})})]})}var Rm=[{id:"all",label:"All"},{id:"light",label:"Light"},{id:"dark",label:"Dark"}];function Em(t){return`"${Pc.find((l)=>l.id===t)?.id??Pc[0].id}", monospace`}function Mm({theme:t,face:r}){return e("span",{className:"block overflow-hidden rounded border border-ink/10",style:{backgroundColor:t.bg,color:t.fg},children:e("span",{className:"block px-1.5 py-1 font-mono text-[10px] leading-[1.4]",style:{fontFamily:r},children:[e("span",{style:{color:t.keyword},children:"const"})," ",e("span",{children:"answer"})," ",e("span",{style:{color:t.keyword},children:"="})," ",e("span",{style:{color:t.string},children:"42"}),e("span",{children:";"}),e("span",{className:"block truncate",style:{color:t.comment},children:["// ",t.label]})]})})}function Wi({settings:t,onUpdate:r}){let l=t.editorTheme||Wr,[c,m]=n("all"),g=Em(t.editorFont),b=u(()=>c==="all"?Cp:Cp.filter((v)=>v.variant===c),[c]);return e("section",{className:"@container space-y-3",children:[e("div",{children:[e("h4",{className:"flex items-center gap-2 text-sm font-semibold text-ink",children:[e(Na,{size:15,className:"text-ink/60"}),"Editor theme"]}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:["Colours for the code editor only: the console keeps the palette in the Palette group. ",e("strong",{children:"Auto"})," ","follows the app palette; any other choice paints the editor's own surface, gutter, selection and syntax, and applies to every open editor without a reload."]})]}),e("div",{className:"flex flex-wrap items-center gap-1.5",children:[Rm.map((v)=>e("button",{type:"button",onClick:()=>m(v.id),className:`rounded-full border px-2.5 py-1 text-[11px] font-medium transition-colors cursor-pointer ${c===v.id?"border-ink bg-ink text-paper":"border-ink/20 bg-paper text-ink/70 hover:border-ink/40 hover:text-ink"}`,children:[v.id==="light"&&e(wn,{size:11,className:"mr-1 inline align-[-1px]"}),v.id==="dark"&&e(xn,{size:11,className:"mr-1 inline align-[-1px]"}),v.label]},v.id)),e("span",{className:"ml-auto min-w-0 font-mono text-[11px] text-ink/50 whitespace-nowrap",children:c==="all"?`${b.length} themes`:`${b.length} shown`})]}),e("div",{className:"grid grid-cols-1 gap-2 @[320px]:grid-cols-2 @[560px]:grid-cols-3",children:[e("button",{type:"button",onClick:()=>r({editorTheme:Wr}),"aria-pressed":l===Wr,className:`flex w-full flex-col gap-2 rounded-lg border p-2 text-left transition-colors cursor-pointer ${l===Wr?"border-ink bg-ink/5 ring-1 ring-ink/20":"border-ink/20 bg-paper hover:border-ink/40 hover:bg-ink/5"}`,children:[e("span",{className:"flex items-center gap-2",children:[e("span",{className:"truncate font-semibold text-ink",children:"Auto"}),e("span",{className:"shrink-0 rounded-full border border-ink/15 px-1.5 py-px text-[10px] font-semibold uppercase tracking-wider text-ink/50",children:"app palette"}),l===Wr&&e(f,{size:14,className:"ml-auto shrink-0 text-ink"})]}),e("span",{className:"flex h-8 items-center justify-center rounded border border-dashed border-ink/20 text-[10px] text-ink/50",children:"Follows the theme above"})]}),b.map((v)=>{let x=l===v.id;return e("button",{type:"button",onClick:()=>r({editorTheme:v.id}),"aria-pressed":x,className:`flex w-full flex-col gap-2 rounded-lg border p-2 text-left transition-colors cursor-pointer ${x?"border-ink bg-ink/5 ring-1 ring-ink/20":"border-ink/20 bg-paper hover:border-ink/40 hover:bg-ink/5"}`,children:[e("span",{className:"flex items-center gap-2",children:[e("span",{className:"truncate font-semibold text-ink",title:v.label,children:v.label}),e("span",{className:"shrink-0 rounded-full border border-ink/15 px-1.5 py-px text-[10px] font-semibold uppercase tracking-wider text-ink/50",children:v.variant}),x&&e(f,{size:14,className:"ml-auto shrink-0 text-ink"})]}),e(Mm,{theme:v,face:g})]},v.id)})]})]})}function Vi({settings:t,onUpdate:r}){let l=N("editorIndentWidth"),c=typeof l==="number"&&ip.includes(l)?l:Qu.width,m=(g)=>{if(g===c)return;let b={...sp(),width:g};Cr({editorIndentWidth:g,editorInsertSpaces:!0}),r((v)=>({...v})),window.dispatchEvent(new CustomEvent(op,{detail:b}))};return e("section",{className:"space-y-3",children:e("div",{className:"flex items-center justify-between gap-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Editor indentation"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"One level, in spaces. Enter, Tab and the auto-indent rules all use it."})]}),e("div",{className:"flex items-center gap-1",role:"group","aria-label":"Indentation width",children:ip.map((g)=>e("button",{type:"button",onClick:()=>m(g),"aria-pressed":g===c,"aria-label":`${g} spaces`,className:`px-2.5 py-1 rounded border text-[11px] font-mono transition-colors cursor-pointer ${g===c?"border-ink/40 bg-ink/10 text-ink":"border-ink/15 text-ink/60 hover:bg-ink/5 hover:text-ink"}`,children:g},g))})]})})}function qi({label:t,hint:r,checked:l,onChange:c}){return e("label",{className:"flex items-start justify-between gap-3 cursor-pointer",children:[e("span",{className:"min-w-0",children:[e("span",{className:"block text-xs text-ink",children:t}),e("span",{className:"block text-[11px] text-ink/50 mt-0.5",children:r})]}),e("input",{type:"checkbox",checked:l,onChange:(m)=>c(m.currentTarget.checked),"aria-label":t,className:`${be} mt-0.5 accent-ink flex-shrink-0`})]})}function Yi({settings:t,onUpdate:r}){let l=Fu(),c=N("editorAutoCloseBrackets"),m=N("editorAutocomplete"),g=(b)=>{let v={...Fu(),...b};Cr(b),r((x)=>({...x})),window.dispatchEvent(new CustomEvent(lp,{detail:v}))};return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Editor typing"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"Both change what typing does, which is why they are switches rather than always-on."})]}),e("div",{className:"space-y-2.5 rounded-lg border border-ink/10 p-3",children:[e(qi,{label:"Auto-close brackets",hint:"Typing ( or { inserts the matching closer, and typing it again steps over it.",checked:typeof c==="boolean"?c:Ul.autoCloseBrackets,onChange:(b)=>g({editorAutoCloseBrackets:b})}),e(qi,{label:"Suggest words from the file",hint:`Offers identifiers already near the caret (${l.autocomplete?"on":"off"}). Words only — this is not a language server.`,checked:typeof m==="boolean"?m:Ul.autocomplete,onChange:(b)=>g({editorAutocomplete:b})})]})]})}function Ji({label:t,hint:r,checked:l,onChange:c}){return e("label",{className:"flex items-start justify-between gap-3 cursor-pointer",children:[e("span",{className:"min-w-0",children:[e("span",{className:"block text-xs text-ink",children:t}),e("span",{className:"block text-[11px] text-ink/50 mt-0.5",children:r})]}),e("input",{type:"checkbox",checked:l,onChange:(m)=>c(m.target.checked),className:`${be} mt-0.5 shrink-0 accent-ink`})]})}function Xi({settings:t,onUpdate:r}){let l=N("editorBlame"),c=N("editorBlameInline"),m=Mi(),g=(b)=>{let v={...Mi(),...b};Cr(b),r((x)=>({...x})),window.dispatchEvent(new CustomEvent(Os,{detail:v}))};return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Line blame"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"Who last touched a line, and which commit. Read from git, so it needs a committed file."})]}),e("div",{className:"space-y-2.5 rounded-lg border border-ink/10 p-3",children:[e(Ji,{label:"Show blame on hover",hint:"Hover a line number — or the label, when it is on — to see the author, the commit and the line's own history.",checked:typeof l==="boolean"?l:Gl.enabled,onChange:(b)=>g({editorBlame:b})}),e(Ji,{label:"Show the label in the editor",hint:`Puts “author · age” at the end of each block. It costs horizontal room, so it is off on a narrow panel by default (${m.inline?"on":"off"}).`,checked:typeof c==="boolean"?c:Gl.inline,onChange:(b)=>g({editorBlameInline:b})})]})]})}var Lm={theme:yi,sidebar:Ni,"panel-nav":Ri,"right-side":Ei,surface:Fi,border:ji,icons:Hi,tray:zi,"editor-font":Gi,"editor-theme":Wi,"editor-indent":Vi,"editor-typing":Yi,"editor-blame":Xi};function Qi({settings:t,onUpdate:r}){let l=Pe(),[c,m]=n($t[0].id),g=$t.find((b)=>b.id===c)??$t[0];return e(Ce,{pane:l.pane,onBack:l.back,listLabel:"Appearance settings",detailLabel:g.label,detailDescription:g.description,list:e(Pt,{groups:$t,activeGroupId:g.id,onSelectGroup:(b)=>{m(b),l.openDetail()}}),detail:e(Ct,{group:g,children:g.sections.map((b)=>{let v=Lm[b];return e(v,{settings:t,onUpdate:r},b)})})})}var Ft=[{id:"layout",label:"Layout",hint:"Chat width and composer shape",description:"How wide the conversation is drawn, and the shape of the box you type into.",icon:cn,sections:["width","composer"]},{id:"transcript",label:"Transcript",hint:"Tool calls, changed files and follow-up dispatch",description:"How a tool call is drawn, whether a run lists the files it changed, and what happens to a prompt sent while the agent is still running.",icon:oa,sections:["tool-calls","changed-files","follow-up"]},{id:"sessions",label:"Sessions",hint:"Titles and goal mode",description:"How a session gets its name, and the defaults a new goal starts with.",icon:yn,sections:["titles","goal"]}];var Om={compact:"60%",wide:"85%",full:"100%",custom:"80%"};function Zi({settings:t,onUpdate:r}){let l=t.chatWidthMode;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Chat Width"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"How wide the conversation is drawn. The composer follows the transcript, and no mode hides a panel. Drag the right edge of the transcript for any width in between."})]}),e("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-3",role:"group","aria-label":"Chat width",children:[...nA,"custom"].map((c)=>{let m=t0[c],g=l===c;return e("div",{onClick:()=>r({chatWidthMode:c}),role:"button",tabIndex:0,"aria-pressed":g,onKeyDown:(b)=>{if(b.key==="Enter"||b.key===" ")b.preventDefault(),r({chatWidthMode:c})},className:`p-3.5 rounded-lg border text-left transition-all cursor-pointer flex flex-col justify-between select-none ${g?"border-ink bg-ink/5 ring-1 ring-ink/20 shadow-xs":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:e("div",{children:[e("div",{className:"flex items-center justify-between mb-2",children:[e("span",{className:"font-semibold text-xs text-ink",children:[m.label,c==="custom"&&e("span",{className:"ml-1.5 font-mono font-normal text-[10px] text-ink/55",children:[t.chatColumnWidth,"px"]})]}),e("div",{className:`w-4 h-4 rounded-full border flex items-center justify-center ${g?"border-ink bg-ink text-paper":"border-ink/30 bg-transparent"}`,children:g&&e(f,{size:10,strokeWidth:3})})]}),e("div",{"aria-hidden":!0,className:"h-1.5 rounded-full bg-ink/10 mb-2.5 overflow-hidden",children:e("div",{className:`h-full rounded-full ${g?"bg-ink":"bg-ink/35"}`,style:{width:Om[c]}})}),e("p",{className:"text-[11px] text-ink/65 leading-relaxed",children:m.description})]})},c)})}),e("p",{className:"text-[10px] text-ink/45 font-mono",children:"On a phone the column already fills the screen, so the mode and the drag have no visible effect."})]})}function ea({active:t=!1}){return e("span",{className:`h-[6px] w-[16px] rounded-sm border ${t?"border-ink/40 bg-ink/15":"border-ink/20 bg-ink/5"}`})}function $m({hero:t=!1}){return e("span",{className:`flex flex-col gap-[3px] rounded-md border border-ink/15 bg-paper px-1.5 py-1 ${t?"flex-1 justify-center":""}`,children:[e("span",{className:"h-[2.5px] w-[72%] rounded-full bg-ink/25"}),e("span",{className:"h-[2.5px] w-[54%] rounded-full bg-ink/20"}),e("span",{className:"h-[2.5px] w-[30%] rounded-full bg-ink/15"})]})}function Fm({rail:t=!1}){if(t)return e("span",{className:"flex items-center gap-1 border-t border-ink/10 px-1 pt-1 font-mono",children:[e("span",{className:"h-[2.5px] w-[14px] rounded-full bg-ink/30"}),e("span",{className:"h-[2.5px] w-[9px] rounded-full bg-ink/20"}),e("span",{className:"h-[2.5px] w-[11px] rounded-full bg-ink/20"}),e("span",{className:"ml-auto h-[7px] w-[7px] rounded-sm bg-ink/80"})]});return e("span",{className:"flex items-center gap-1 px-1",children:[e("span",{className:"h-[6px] w-[20px] rounded-sm bg-ink/15"}),e("span",{className:"h-[6px] w-[10px] rounded-sm bg-ink/10"}),e("span",{className:"ml-auto h-[7px] w-[7px] rounded-full border border-ink/25"}),e("span",{className:"h-[7px] w-[7px] rounded-sm bg-ink/80"})]})}var _m={classic:"rounded-md bg-paper border-ink/10",calm:"rounded-lg bg-paper border-ink/10",console:"rounded-sm bg-paper border-ink/10",stage:"rounded-md bg-paper border-ink/15",glass:"rounded-xl border-ink/15 bg-gradient-to-b from-ink/[0.06] to-transparent"};function Bm({style:t}){let r=tf({style:t,hero:t==="stage"});return e("span",{className:`flex h-full flex-col gap-1 border p-1 ${_m[t]}`,"aria-hidden":"true",children:r.wire.map((l,c)=>l==="draft"?e($m,{hero:t==="stage"},c):l==="chip"?e("span",{className:"flex items-center gap-1 px-1",children:[e(ea,{active:t!=="calm"}),e(ea,{})]},c):e(Fm,{rail:r.toolbarTone==="rail"},c))})}function ta({settings:t,onUpdate:r}){let l=Mc(t.composerStyle);return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Composer"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"The shape of the box you type into. Every style offers the same controls — attachments, plan and goal, access mode, model, thinking, voice, send — and only their order and frame change. Applies to desktop and phone, and takes effect immediately."})]}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",role:"group","aria-label":"Composer style",children:l0.map((c)=>{let m=u0[c],g=c===l;return e("button",{type:"button",onClick:()=>r({composerStyle:c}),"aria-pressed":g,"aria-label":`${m.label} composer — ${m.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${g?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[92px]",children:e(Bm,{style:c})}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:m.label}),g&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:m.description})]},c)})})]})}function Km({mode:t}){if(t==="card")return e("div",{"aria-hidden":!0,className:"space-y-1 rounded-md border border-ink/15 bg-paper px-2 py-1.5",children:[e("div",{className:"flex items-center gap-1",children:[e("span",{className:"h-1.5 w-1.5 rounded-full bg-ink/50"}),e("span",{className:"h-1 w-10 rounded-full bg-ink/35"}),e("span",{className:"ml-auto h-1 w-5 rounded-full bg-ink/20"})]}),e("div",{className:"h-1 w-16 rounded-full bg-ink/15"})]});if(t==="compact")return e("div",{"aria-hidden":!0,className:"space-y-1.5 rounded-md border border-transparent px-1 py-1",children:[0,1].map((r)=>e("div",{className:"flex items-center gap-1",children:[e("span",{className:"h-1.5 w-1.5 rounded-full bg-ink/40"}),e("span",{className:"h-1 w-8 rounded-full bg-ink/30"}),e("span",{className:"ml-auto h-1 w-6 rounded-full bg-ink/15"})]},r))});if(t==="trace")return e("div",{"aria-hidden":!0,className:"relative ml-1 pl-3 py-1",children:[e("span",{className:"absolute left-[3px] top-1 bottom-1 w-px bg-ink/20"}),[0,1,2].map((r)=>e("div",{className:"flex items-center gap-1 py-0.5",children:[e("span",{className:"h-1.5 w-1.5 rounded-full bg-ink/40"}),e("span",{className:"h-1 w-10 rounded-full bg-ink/25"})]},r))]});if(t==="tui")return e("div",{"aria-hidden":!0,className:"space-y-1 px-1 py-1 font-mono",children:[0,1].map((r)=>e("div",{className:"flex items-baseline gap-1",children:[e("span",{className:"text-[6px] text-success",children:"✔"}),e("span",{className:"h-1 w-3 rounded-full bg-info/70"}),e("span",{className:"h-1 w-6 rounded-full bg-meta/70"}),e("span",{className:"ml-auto h-1 w-2 rounded-full bg-ink/25"})]},r))});return e("div",{"aria-hidden":!0,className:"space-y-1.5 px-1 py-1",children:[e("div",{className:"h-1 w-20 rounded-full bg-ink/25"}),e("div",{className:"h-1 w-14 rounded-full bg-ink/15"})]})}function na({settings:t,onUpdate:r}){let l=t.toolRenderStyle;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Tool Calls"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"How a tool call is drawn in the transcript. Every style shows the same outcome, facts and body."})]}),e("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:r0.map((c)=>{let m=a0[c],g=l===c;return e("div",{onClick:()=>r({toolRenderStyle:c}),role:"button",tabIndex:0,"aria-pressed":g,onKeyDown:(b)=>{if(b.key==="Enter"||b.key===" ")b.preventDefault(),r({toolRenderStyle:c})},className:`p-3.5 rounded-lg border text-left transition-all cursor-pointer flex flex-col justify-between select-none ${g?"border-ink bg-ink/5 ring-1 ring-ink/20 shadow-xs":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:e("div",{children:[e("div",{className:"flex items-center justify-between mb-2",children:[e("span",{className:"font-semibold text-xs text-ink",children:m.label}),e("div",{className:`w-4 h-4 rounded-full border flex items-center justify-center ${g?"border-ink bg-ink text-paper":"border-ink/30 bg-transparent"}`,children:g&&e(f,{size:10,strokeWidth:3})})]}),e("div",{className:"mb-2.5 h-12 rounded-md bg-canvas/50 px-1 py-1",children:e(Km,{mode:c})}),e("p",{className:"text-[11px] text-ink/65 leading-relaxed",children:m.description})]})},c)})}),e("p",{className:"text-[10px] text-ink/45 font-mono",children:"The style is global: it applies to every session, and the composer keeps its own frame."})]})}function Wm({label:t,enabled:r,onToggle:l}){return e("button",{type:"button",role:"switch","aria-checked":r,"aria-label":`${r?"Disable":"Enable"} ${t}`,onClick:l,className:`relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ${r?"bg-ink":"bg-ink/20"}`,children:e("span",{"aria-hidden":"true",className:`pointer-events-none inline-block h-5 w-5 transform rounded-full bg-paper shadow ring-0 transition duration-200 ease-in-out ${r?"translate-x-5":"translate-x-0"}`})})}function ra({settings:t,onUpdate:r}){let l=t.showChangedFiles;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Changed Files"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"A collapsed list of the files a run changed, above its footer. Clicking a file opens the agent's own diff — the content it wrote, not the current worktree."})]}),e("div",{className:"flex items-start justify-between gap-4 py-3",children:[e("div",{className:"flex items-start gap-3",children:[e("div",{className:"w-8 h-8 rounded-md bg-ink/5 border border-ink/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:e(Vr,{size:16,className:l?"text-ink":"text-ink/40"})}),e("div",{children:[e("div",{className:"text-sm font-semibold text-ink",children:"Show changed files"}),e("p",{className:"text-ink/65 text-[11px] mt-1 leading-relaxed",children:"Read from the session's change journal. Sessions recorded before omp 18.20.1 have no journal, so the list stays empty there."})]})]}),e(Wm,{label:"Show changed files",enabled:l,onToggle:()=>r({showChangedFiles:!l})})]})]})}function ia({settings:t,onUpdate:r}){return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Follow-up Dispatch"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"Choose how new user prompts are handled while the AI agent is actively executing."})]}),e("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e("div",{onClick:()=>r({followUpBehavior:"queue"}),role:"button",tabIndex:0,onKeyDown:(l)=>l.key==="Enter"&&r({followUpBehavior:"queue"}),className:`p-3.5 rounded-lg border text-left transition-all cursor-pointer flex flex-col justify-between select-none ${t.followUpBehavior==="queue"?"border-ink bg-ink/5 ring-1 ring-ink/20 shadow-xs":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:[e("div",{children:[e("div",{className:"flex items-center justify-between mb-2",children:[e("div",{className:"flex items-center gap-2",children:[e("div",{className:`w-7 h-7 rounded-md flex items-center justify-center ${t.followUpBehavior==="queue"?"bg-ink text-paper":"bg-ink/5 text-ink/70"}`,children:e(oa,{size:15})}),e("span",{className:"font-semibold text-xs text-ink",children:"Queue Mode"})]}),e("span",{className:"text-[10px] font-mono uppercase px-1.5 py-0.5 rounded bg-ink/10 text-ink/70 font-medium",children:"Sequential"})]}),e("p",{className:"text-[11px] text-ink/65 leading-relaxed",children:"Messages wait in an execution queue and run in succession once current inference completes."})]}),e("div",{className:"mt-3 pt-2.5 border-t border-ink/10 flex items-center justify-between text-[11px]",children:[e("span",{className:"text-ink/50 text-[10px]",children:"Recommended for batch operations"}),e("div",{className:`w-4 h-4 rounded-full border flex items-center justify-center ${t.followUpBehavior==="queue"?"border-ink bg-ink text-paper":"border-ink/30 bg-transparent"}`,children:t.followUpBehavior==="queue"&&e(f,{size:10,strokeWidth:3})})]})]}),e("div",{onClick:()=>r({followUpBehavior:"steering"}),role:"button",tabIndex:0,onKeyDown:(l)=>l.key==="Enter"&&r({followUpBehavior:"steering"}),className:`p-3.5 rounded-lg border text-left transition-all cursor-pointer flex flex-col justify-between select-none ${t.followUpBehavior==="steering"?"border-ink bg-ink/5 ring-1 ring-ink/20 shadow-xs":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:[e("div",{children:[e("div",{className:"flex items-center justify-between mb-2",children:[e("div",{className:"flex items-center gap-2",children:[e("div",{className:`w-7 h-7 rounded-md flex items-center justify-center ${t.followUpBehavior==="steering"?"bg-ink text-paper":"bg-ink/5 text-ink/70"}`,children:e(hn,{size:15})}),e("span",{className:"font-semibold text-xs text-ink",children:"Steering Mode"})]}),e("span",{className:"text-[10px] font-mono uppercase px-1.5 py-0.5 rounded bg-ink/10 text-ink/70 font-medium",children:"Intervention"})]}),e("p",{className:"text-[11px] text-ink/65 leading-relaxed",children:"Immediately redirects current agent trajectory and focuses runtime resources onto the new instruction."})]}),e("div",{className:"mt-3 pt-2.5 border-t border-ink/10 flex items-center justify-between text-[11px]",children:[e("span",{className:"text-ink/50 text-[10px]",children:"Recommended for active debugging"}),e("div",{className:`w-4 h-4 rounded-full border flex items-center justify-center ${t.followUpBehavior==="steering"?"border-ink bg-ink text-paper":"border-ink/30 bg-transparent"}`,children:t.followUpBehavior==="steering"&&e(f,{size:10,strokeWidth:3})})]})]})]})]})}var Vm=[{enabled:!0,label:"Generate Automatically",badge:"Default",icon:Ne,description:`As soon as your first message lands, the session is named from it using omp's own tiny title model — retried once when the run ends if that first attempt came back empty. Sessions stop showing "New Session - <timestamp>" in the sidebar.`,note:"One small model call per session"},{enabled:!1,label:"Manual Only",badge:"Opt-out",icon:la,description:"Sessions keep their timestamp placeholder until you rename them from the sidebar. Choose this when every title should be deliberate, or to avoid the extra model call.",note:"No background model calls"}];function ca({settings:t,onUpdate:r}){let l=t.autoSessionTitle??!0;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Session Titles"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"How a session gets its display name. A name you set yourself is never replaced."})]}),e("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:Vm.map(({enabled:c,label:m,badge:g,icon:b,description:v,note:x})=>{let P=l===c,y=()=>r({autoSessionTitle:c});return e("div",{onClick:y,role:"button",tabIndex:0,onKeyDown:(T)=>T.key==="Enter"&&y(),className:`p-3.5 rounded-lg border text-left transition-all cursor-pointer flex flex-col justify-between select-none ${P?"border-ink bg-ink/5 ring-1 ring-ink/20 shadow-xs":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:[e("div",{children:[e("div",{className:"flex items-center justify-between mb-2",children:[e("div",{className:"flex items-center gap-2",children:[e("div",{className:`w-7 h-7 rounded-md flex items-center justify-center ${P?"bg-ink text-paper":"bg-ink/5 text-ink/70"}`,children:e(b,{size:15})}),e("span",{className:"font-semibold text-xs text-ink",children:m})]}),e("span",{className:"text-[10px] font-mono uppercase px-1.5 py-0.5 rounded bg-ink/10 text-ink/70 font-medium",children:g})]}),e("p",{className:"text-[11px] text-ink/70 leading-relaxed",children:v})]}),e("div",{className:"mt-3 pt-2.5 border-t border-ink/10 flex items-center justify-between text-[11px]",children:[e("span",{className:"text-ink/50",children:x}),P&&e("span",{className:"flex items-center gap-1 text-ink font-medium",children:[e(f,{size:12})," Active"]})]})]},m)})})]})}var Ym=[{enabled:!0,label:"Independent auditor",badge:"Default",description:"After every finished turn a separate model reads the objective and the agent's own report and decides: keep going, done, or needs you. Without it nothing advances a goal on its own.",note:"One extra model call per turn"},{enabled:!1,label:"Manual only",badge:"Opt-out",description:"Goals still exist — objective, pause, resume and the token budget all work — but the loop never continues by itself. Use it when a goal should only ever run the turns you ask for.",note:"No background model calls"}];function ua({settings:t,onUpdate:r}){let l=$c(),[c,m]=n([]),[g,b]=n(!0),v=t.goalAuditEnabled??!0,x=t.goalAuditModel??"",P=t.goalDefaultBudget??null,[y,T]=n(P===null?"":String(P));o(()=>{T(P===null?"":String(P))},[P]);let w=()=>{let A=df(y);if(T(A===null?"":String(A)),A!==P)r({goalDefaultBudget:A})};return o(()=>{let A=!0;return uo().then((R)=>{if(!A)return;m(Array.isArray(R.modelList)?R.modelList.map((D)=>({id:D.id,name:D.name,provider:D.provider})):[])}).catch(()=>{}).finally(()=>{if(A)b(!1)}),()=>{A=!1}},[]),e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Goal Mode"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"A goal keeps a session working toward one objective until it is done, out of budget, or the auditor says it needs you."})]}),e("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:Ym.map(({enabled:A,label:R,badge:D,description:C,note:M})=>{let L=v===A,O=()=>r({goalAuditEnabled:A});return e("div",{onClick:O,role:"button",tabIndex:0,onKeyDown:(_)=>_.key==="Enter"&&O(),className:`p-3.5 rounded-lg border text-left transition-all cursor-pointer flex flex-col justify-between select-none ${L?"border-ink bg-ink/5 ring-1 ring-ink/20 shadow-xs":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:[e("div",{children:[e("div",{className:"flex items-center justify-between mb-2",children:[e("div",{className:"flex items-center gap-2",children:[e("div",{className:`w-7 h-7 rounded-md flex items-center justify-center ${L?"bg-ink text-paper":"bg-ink/5 text-ink/70"}`,children:e(Fa,{size:15})}),e("span",{className:"font-semibold text-xs text-ink",children:R})]}),e("span",{className:"text-[10px] font-mono uppercase px-1.5 py-0.5 rounded bg-ink/10 text-ink/70 font-medium",children:D})]}),e("p",{className:"text-[11px] text-ink/65 leading-relaxed",children:C})]}),e("div",{className:"mt-3 pt-2.5 border-t border-ink/10 flex items-center justify-between text-[11px]",children:[e("span",{className:"text-ink/50 text-[10px]",children:M}),e("div",{className:`w-4 h-4 rounded-full border flex items-center justify-center ${L?"border-ink bg-ink text-paper":"border-ink/30 bg-transparent"}`,children:L&&e(f,{size:10,strokeWidth:3})})]})]},R)})}),v&&e("div",{className:"rounded-lg border border-ink/15 bg-paper p-3.5 space-y-3",children:e("div",{children:[e("label",{className:"mb-1 block text-[10px] font-semibold uppercase tracking-wider text-ink/45",children:"Auditor model"}),e(Z,{ariaLabel:"Auditor model",value:x,onChange:(A)=>r({goalAuditModel:A}),disabled:g,placeholder:"Session model (default)",className:"w-full py-1.5 text-[11.5px]",options:c.map((A)=>({value:`${A.provider}/${A.id}`,label:A.name,hint:`${A.provider}/${A.id}`,group:ws(A.provider,l)}))}),e("p",{className:"mt-1 text-[10.5px] text-ink/45",children:"The audit is a classification, not a task: it runs with thinking off, one small call per turn."})]})}),e("div",{className:"rounded-lg border border-ink/15 bg-paper p-3.5",children:[e("label",{className:"mb-1 flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wider text-ink/45",children:[e(hi,{size:11})," Default token budget"]}),e("div",{className:"flex items-center gap-2",children:[e("input",{value:y,onChange:(A)=>T(A.currentTarget.value),onBlur:w,onKeyDown:(A)=>{if(A.key==="Enter")w()},placeholder:"none: the turn ceiling is then the only stop",inputMode:"numeric","aria-label":"Default goal token budget",className:"w-56 rounded border border-ink/15 bg-paper px-2 py-1.5 font-mono text-[11.5px] outline-none focus:border-ink"}),e("span",{className:"text-[10.5px] text-ink/45",children:"New goals start with this budget; a goal you set explicitly keeps its own."})]})]}),e("div",{className:"flex items-start gap-2 rounded-lg border border-ink/10 bg-canvas/40 p-3 text-[11px] text-ink/60",children:[e(jt,{size:12,className:"mt-0.5 shrink-0"}),e("span",{children:"The objective is set per goal from the composer's target button. The auditor judges progress from the objective and the agent's own report only — write an objective that says what finished looks like."})]})]})}var Jm={width:Zi,composer:ta,"tool-calls":na,"changed-files":ra,"follow-up":ia,titles:ca,goal:ua};function ma({settings:t,onUpdate:r}){let l=Pe(),[c,m]=n(Ft[0].id),g=Ft.find((b)=>b.id===c)??Ft[0];return e(Ce,{pane:l.pane,onBack:l.back,listLabel:"Chat settings",detailLabel:g.label,detailDescription:g.description,list:e(Pt,{groups:Ft,activeGroupId:g.id,onSelectGroup:(b)=>{m(b),l.openDetail()}}),detail:e(Ct,{group:g,children:g.sections.map((b)=>{let v=Jm[b];return e(v,{settings:t,onUpdate:r},b)})})})}var Kt=[{id:"dictation",label:"Dictation (STT)",hint:"The composer mic and its recognizer",description:"Which engine transcribes the microphone, in which language, and with which key and capture limits.",icon:ki,sections:["dictation"]},{id:"speech",label:"Speech (TTS)",hint:"Read answers aloud, engine and autoplay",description:"Which engine reads an assistant answer aloud, in which voice, and whether a finished run starts speaking by itself.",icon:Ma,sections:["speech"]}];function yo(t){if(typeof t!=="object"||t===null)return{available:!1};if(!("available"in t)||t.available!==!0)return{available:!1,..."reason"in t&&typeof t.reason==="string"?{reason:t.reason}:{}};return{available:!0}}var Ht={hasApiKey:!1,local:{available:!1}};async function ko(t){let r=await fetch("/api/settings/dictation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),l=await r.json().catch(()=>null),c=typeof l==="object"&&l!==null?l:{};if(r.ok)return{ok:!0,body:c};return{ok:!1,body:c,error:typeof c.error==="string"?c.error:`The route answered ${r.status}.`}}function Qm(t){let r=t.settings;return{hasApiKey:typeof r==="object"&&r!==null&&"hasApiKey"in r&&r.hasApiKey===!0,local:yo(t.local)}}function ga(){let[t,r]=n(null),[l,c]=n(null),[m,g]=n(!1),b=a(async()=>{try{let y=await fetch("/api/settings/dictation"),T=await y.json().catch(()=>null);if(!y.ok||typeof T!=="object"||T===null){c(`The dictation route answered ${y.status}.`),r(Ht);return}let w=T;r(Qm(w)),c(typeof w.error==="string"?w.error:null)}catch{c("Could not read the dictation settings from the server."),r(Ht)}},[]);o(()=>{b()},[b]);let v=a(async(y)=>{g(!0);try{let T=await ko({apiKey:y});if(!T.ok)return c(T.error??"Could not save the API key."),!1;return c(null),r((w)=>({...w??Ht,hasApiKey:!0})),!0}finally{g(!1)}},[]),x=a(async()=>{g(!0);try{let y=await ko({action:"clear-key"});if(!y.ok)return c(y.error??"Could not clear the API key."),!1;return c(null),r((T)=>({...T??Ht,hasApiKey:!1})),!0}finally{g(!1)}},[]),P=a(async()=>{g(!0);try{let y=await ko({action:"probe"});if(!y.ok){c(y.error??"Could not probe the local engine.");return}c(null),r((T)=>({...T??Ht,local:yo(y.body.local)}))}finally{g(!1)}},[]);return{state:t,error:l,busy:m,reload:b,saveApiKey:v,clearApiKey:x,reprobe:P}}function ba({config:t,local:r,busy:l,onSelect:c,onReprobe:m}){return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Engine"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Where the microphone audio is transcribed."})]}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:Ld.map((g)=>{let b=t.engine===g.id,v=g.id==="omp"?Yn:Qr,x=g.id==="omp"&&r!==void 0&&r!==null&&!r.available;return e("div",{role:"button",tabIndex:0,"aria-pressed":b,onClick:()=>c(g.id),onKeyDown:(P)=>P.key==="Enter"&&c(g.id),className:`flex cursor-pointer select-none flex-col justify-between rounded-lg border p-3.5 text-left transition-all ${b?"border-ink bg-ink/5 ring-1 ring-ink/20":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:[e("div",{children:[e("div",{className:"mb-2 flex items-center justify-between",children:[e("div",{className:"flex items-center gap-2",children:[e("div",{className:`flex h-7 w-7 items-center justify-center rounded-md ${b?"bg-ink text-paper":"bg-ink/5 text-ink/70"}`,children:e(v,{size:15})}),e("span",{className:"text-xs font-semibold text-ink",children:g.label})]}),g.needsKey&&e("span",{className:"rounded bg-ink/10 px-1.5 py-0.5 font-mono text-[10px] uppercase text-ink/70",children:"Key"})]}),e("p",{className:"text-[11px] leading-relaxed text-ink/70",children:g.where})]}),e("div",{className:"mt-3 flex items-start justify-between gap-2 border-t border-ink/10 pt-2.5 text-[11px]",children:[x?e("span",{className:"flex items-start gap-1 text-ink/60",children:[e(I,{size:11,className:"mt-0.5 shrink-0"}),e("span",{children:"Unavailable: the local worker did not start."})]}):e("span",{className:"text-ink/50",children:g.id==="omp"?r?.available?"Local worker is running":"Checked when the page opens":`Default model: ${g.defaultModel}`}),b&&e("span",{className:"flex shrink-0 items-center gap-1 font-medium text-ink",children:[e(f,{size:12})," Active"]})]})]},g.id)})}),r&&!r.available&&r.reason&&e("div",{className:"rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2",children:[e("p",{className:"text-[11px] leading-relaxed text-ink/70",children:r.reason}),e("button",{type:"button",disabled:l,onClick:m,className:"mt-2 inline-flex items-center gap-1.5 rounded-md border border-ink/20 px-2 py-1 text-[11px] font-medium text-ink transition-colors hover:bg-ink/5 disabled:opacity-40",children:[e(S,{size:11,className:l?"animate-spin":""}),"Check again"]})]})]})}function ha({config:t,onSelect:r}){let l=zo(t.engine).language==="detect";return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Language"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"The recognizer is told this language. Picking the wrong one is what turns Indonesian speech into English-looking words."})]}),e("div",{className:"divide-y divide-ink/10 rounded-lg border border-ink/15 bg-paper",children:y0.map((c)=>{let m=t.language===c.id,g=c.id==="auto"&&!l;return e("button",{type:"button","aria-pressed":m,disabled:g,onClick:()=>r(c.id),className:`flex w-full items-start justify-between gap-3 px-3.5 py-2.5 text-left transition-colors ${g?"cursor-not-allowed opacity-45":"hover:bg-ink/[0.03]"}`,children:[e("span",{className:"min-w-0",children:[e("span",{className:"block text-xs font-medium text-ink",children:[c.label,c.tag&&e("span",{className:"ml-1.5 font-mono text-[10px] text-ink/40",children:c.tag})]}),e("span",{className:"mt-0.5 block text-[11px] leading-relaxed text-ink/60",children:g?"The local engine cannot detect a language — a missing hint is English. Pick Indonesian or English.":c.note})]}),m&&e(f,{size:13,className:"mt-0.5 shrink-0 text-ink"})]},c.id)})})]})}var Sn="w-full rounded-md border border-ink/20 bg-paper px-2 py-1.5 font-mono text-[11px] text-ink outline-none transition-colors placeholder:text-ink/30 focus:border-ink/50";function va({config:t,hasApiKey:r,busy:l,onPatch:c,onSaveKey:m,onClearKey:g}){let b=zo(t.engine),[v,x]=n(t.baseUrl),[P,y]=n(t.model),[T,w]=n(t.prompt),[A,R]=n("");o(()=>x(t.baseUrl),[t.baseUrl]),o(()=>y(t.model),[t.model]),o(()=>w(t.prompt),[t.prompt]);let D=v.trim()&&ks(v)===null?"That is not an http(s) URL, or it embeds a username/password.":null;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Endpoint and model"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:[b.needsKey?"A key is required. It is stored outside the settings table, in a file only this server reads.":"The local engine needs no key and no network.",b.docs&&e(d,{children:[" ",e("a",{href:b.docs,target:"_blank",rel:"noreferrer",className:"underline decoration-ink/30 underline-offset-2 hover:text-ink",children:"API reference"})]})]})]}),b.editableBaseUrl&&e("div",{className:"space-y-2 rounded-lg border border-ink/15 bg-paper px-3.5 py-3",children:[e("div",{className:"flex flex-wrap gap-1.5",children:h0.map((C)=>e("button",{type:"button",title:C.note,onClick:()=>{x(C.baseUrl),y(C.model),c({baseUrl:C.baseUrl,model:C.model})},className:"rounded-md border border-ink/20 px-2 py-1 text-[11px] text-ink/75 transition-colors hover:bg-ink/5 hover:text-ink",children:C.label},C.id))}),e("label",{className:"flex flex-col gap-1",children:[e("span",{className:"text-[10px] text-ink/50",children:"Base URL"}),e("input",{type:"text",value:v,spellcheck:!1,placeholder:b.baseUrl,onInput:(C)=>x(C.currentTarget.value),onBlur:()=>{let C=v.trim();if(C!==t.baseUrl)c({baseUrl:C})},className:Sn})]}),D&&e("p",{className:"text-[11px] text-error",children:D})]}),e("div",{className:"space-y-2 rounded-lg border border-ink/15 bg-paper px-3.5 py-3",children:[e("label",{className:"flex flex-col gap-1",children:[e("span",{className:"text-[10px] text-ink/50",children:"Model"}),e("input",{type:"text",value:P,spellcheck:!1,list:"dictation-models",placeholder:b.defaultModel,onInput:(C)=>y(C.currentTarget.value),onBlur:()=>{let C=P.trim();if(C!==t.model)c({model:C})},className:Sn}),e("datalist",{id:"dictation-models",children:b.models.map((C)=>e("option",{value:C.id,children:C.hint},C.id))}),e("span",{className:"text-[11px] text-ink/50",children:["Empty uses ",b.label,"'s default (",b0(t.engine,""),")."]})]}),e("label",{className:"flex flex-col gap-1",children:[e("span",{className:"text-[10px] text-ink/50",children:"Vocabulary hint (optional)"}),e("input",{type:"text",value:T,placeholder:"Project names, jargon, acronyms",onInput:(C)=>w(C.currentTarget.value),onBlur:()=>{if(T!==t.prompt)c({prompt:T})},className:Sn}),e("span",{className:"text-[11px] text-ink/50",children:"Sent as the transcription prompt so unusual words are spelled as you write them. Ignored by Deepgram and ElevenLabs."})]}),b.needsKey&&e("div",{className:"space-y-1.5 border-t border-ink/10 pt-2.5",children:[e("span",{className:"flex items-center gap-1.5 text-[10px] text-ink/50",children:[e(to,{size:11}),"API key ",r?"— a key is stored":"— none stored"]}),e("div",{className:"flex gap-1.5",children:[e("input",{type:"password",value:A,autocomplete:"off",spellcheck:!1,placeholder:r?"Replace the stored key":"Paste the key",onInput:(C)=>R(C.currentTarget.value),className:Sn}),e("button",{type:"button",disabled:l||!A.trim(),onClick:()=>{m(A.trim()),R("")},className:"shrink-0 rounded-md bg-ink px-2.5 py-1 text-[11px] font-medium text-paper transition-opacity disabled:cursor-not-allowed disabled:opacity-40",children:"Save"}),r&&e("button",{type:"button",disabled:l,onClick:g,title:"Remove the stored key",className:"shrink-0 rounded-md border border-ink/20 px-2 py-1 text-ink/70 transition-colors hover:bg-ink/5 hover:text-ink disabled:opacity-40",children:e(Q,{size:12})})]})]})]})]})}var wo="w-full rounded-md border border-ink/20 bg-paper px-2 py-1.5 text-[11px] text-ink outline-none transition-colors focus:border-ink/50";function xa({config:t,onPatch:r}){let[l,c]=n(null),[m,g]=n(!1),b=async()=>{if(typeof navigator>"u"||!navigator.mediaDevices?.enumerateDevices){c([]);return}g(!0);try{let v=await navigator.mediaDevices.enumerateDevices();c(v.filter((x)=>x.kind==="audioinput").map((x,P)=>({id:x.deviceId,label:x.label||`Microphone ${P+1}`})))}catch{c([])}finally{g(!1)}};return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Microphone and limits"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Capture happens in this browser; the engine only ever sees the finished utterance."})]}),e("div",{className:"space-y-2 rounded-lg border border-ink/15 bg-paper px-3.5 py-3",children:[e("div",{className:"flex flex-col gap-1",children:[e("div",{className:"flex items-center justify-between gap-2 text-[10px] text-ink/50",children:[e("span",{className:"flex items-center gap-1.5",children:[e(ki,{size:11})," Input device"]}),e("button",{type:"button",disabled:m,onClick:()=>void b(),className:"inline-flex items-center gap-1 rounded-md border border-ink/20 px-1.5 py-0.5 text-[10px] font-medium text-ink/70 transition-colors hover:bg-ink/5 hover:text-ink disabled:opacity-40",children:[e(ti,{size:10,className:m?"animate-pulse":""}),l===null?"Find microphones":"Refresh list"]})]}),e(Z,{ariaLabel:"Input device",value:t.deviceId,onChange:(v)=>r({deviceId:v}),placeholder:"System default",searchable:(l??[]).length>10,triggerClassName:wo,options:(l??[]).map((v)=>({value:v.id,label:v.label}))}),l!==null&&l.length===0&&e("span",{className:"text-[11px] text-ink/50",children:"No input devices are listed — the browser hides them until microphone permission has been granted once."})]}),e("div",{className:"grid grid-cols-2 gap-2",children:[e("label",{className:"flex flex-col gap-1",children:[e("span",{className:"text-[10px] text-ink/50",children:"Shortest utterance (ms)"}),e("input",{type:"number",min:100,max:5000,step:50,value:t.minMs,onInput:(v)=>r({minMs:Number(v.currentTarget.value)}),className:wo})]}),e("label",{className:"flex flex-col gap-1",children:[e("span",{className:"text-[10px] text-ink/50",children:"Stop after (ms)"}),e("input",{type:"number",min:1000,max:of,step:1000,value:t.maxMs,onInput:(v)=>r({maxMs:Number(v.currentTarget.value)}),className:wo})]})]}),e("p",{className:"text-[11px] leading-relaxed text-ink/50",children:["Anything shorter than ",t.minMs," ms (default ",af," ms) is refused without a request, and silence is refused too — a stray tap is exactly what makes a recognizer answer with a hallucinated “Thank you.”. A recording stops itself at ",t.maxMs," ms so a forgotten mic cannot grow past the provider's upload limit."]})]})]})}function ya({settings:t,onUpdate:r}){let l=ga(),c=t.dictation,m=(g)=>{r({dictation:{...c,...g}})};return e("div",{className:"mx-auto w-full max-w-3xl space-y-7",children:[e("p",{className:"text-[11px] leading-relaxed text-ink/60",children:"The composer's mic button. The language you pick here is what the recognizer is told — with the wrong one, Indonesian speech is decoded as English words that sound similar, and English speech is mangled the other way round."}),l.error&&e("p",{className:"rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70",children:l.error}),e(ba,{config:c,local:l.state?.local,busy:l.busy,onSelect:(g)=>m({engine:g}),onReprobe:()=>void l.reprobe()}),e(ha,{config:c,onSelect:(g)=>m({language:g})}),e(va,{config:c,hasApiKey:l.state?.hasApiKey??!1,busy:l.busy,onPatch:m,onSaveKey:(g)=>void l.saveApiKey(g),onClearKey:()=>void l.clearApiKey()}),e(xa,{config:c,onPatch:m})]})}var xt={hasKeys:{},local:{available:!1}};async function So(t){try{let r=await fetch("/api/settings/speech",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),l=await r.json().catch(()=>null),c=typeof l==="object"&&l!==null?l:{};if(!r.ok)return{ok:!1,error:typeof c.error==="string"?c.error:`The speech route answered ${r.status}.`,body:c};return{ok:!0,body:c}}catch{return{ok:!1,error:"Could not reach the speech settings route.",body:{}}}}function ka(t){let r=t.settings,l={};if(typeof r==="object"&&r!==null){let m=r.hasKeys;if(typeof m==="object"&&m!==null){for(let[g,b]of Object.entries(m))if(b===!0)l[g]=!0}}let c=t.local;return{hasKeys:l,local:typeof c==="object"&&c!==null?{available:c.available===!0,...typeof c.reason==="string"?{reason:String(c.reason)}:{}}:{available:!1}}}function wa(){let[t,r]=n(null),[l,c]=n(null),[m,g]=n(!1),b=a(async()=>{try{let y=await fetch("/api/settings/speech"),T=await y.json().catch(()=>null);if(!y.ok||typeof T!=="object"||T===null){c(`The speech route answered ${y.status}.`),r(xt);return}let w=T;r(ka(w)),c(typeof w.error==="string"?w.error:null)}catch{c("Could not read the speech settings from the server."),r(xt)}},[]);o(()=>{b()},[b]);let v=a(async(y,T)=>{g(!0);try{let w=await So({engine:y,apiKey:T});if(!w.ok)return c(w.error??"Could not save the API key."),!1;return c(null),r((A)=>({...A??xt,hasKeys:{...(A??xt).hasKeys,[y]:!0}})),!0}finally{g(!1)}},[]),x=a(async(y)=>{g(!0);try{let T=await So({engine:y,action:"clear-key"});if(!T.ok)return c(T.error??"Could not clear the API key."),!1;return c(null),r((w)=>{let A={...(w??xt).hasKeys};return delete A[y],{...w??xt,hasKeys:A}}),!0}finally{g(!1)}},[]),P=a(async()=>{g(!0);try{let y=await So({action:"probe"});if(!y.ok){c(y.error??"Could not probe the local engine.");return}c(null),r((T)=>({...T??xt,local:ka(y.body).local}))}finally{g(!1)}},[]);return{state:t,error:l,busy:m,reload:b,saveKey:v,clearKey:x,reprobe:P}}var Zm=1000;function eg(t){return t==="downloading"||t==="extracting"||t==="probing"}function Wt(t){return typeof t==="object"&&t!==null?t:{}}function Pa(t){if(!Array.isArray(t))return[];return t.map((r)=>Wt(r)).filter((r)=>typeof r.id==="string")}function tg(t){let r=Wt(t),l=Wt(r.runtime);return{models:Pa(r.models),catalog:Pa(r.catalog),jobs:Array.isArray(r.jobs)?r.jobs:[],runtime:{available:l.available===!0,...typeof l.reason==="string"?{reason:l.reason}:{}}}}async function Ca(t){try{let r=await fetch("/api/tts/models",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),l=await r.json().catch(()=>null),c=Wt(l);if(!r.ok)return{ok:!1,error:typeof c.error==="string"?c.error:`The model route answered ${r.status}.`,body:c};return{ok:!0,body:c}}catch{return{ok:!1,error:"Could not reach the model route.",body:{}}}}function Ta(){let[t,r]=n(null),[l,c]=n(null),[m,g]=n(!1),b=i(!0),v=a(async()=>{try{let T=await fetch("/api/tts/models"),w=await T.json().catch(()=>null);if(!T.ok){let A=Wt(w);c(typeof A.error==="string"?A.error:`The model route answered ${T.status}.`);return}if(!b.current)return;c(null),r(tg(w))}catch{if(b.current)c("Could not reach the model route.")}},[]);o(()=>(b.current=!0,v(),()=>{b.current=!1}),[v]);let x=t?.jobs.some((T)=>eg(T.status))??!1;o(()=>{if(!x)return;let T=setInterval(()=>void v(),Zm);return()=>clearInterval(T)},[x,v]);let P=a(async(T)=>{g(!0),c(null);try{let w=await Ca({action:"install",...T});if(!w.ok)return c(w.error??"The install could not start."),!1;return await v(),!0}finally{g(!1)}},[v]),y=a(async(T)=>{g(!0),c(null);try{let w=await Ca({action:"remove",id:T});if(!w.ok)return c(w.error??"The model could not be removed."),!1;return await v(),!0}finally{g(!1)}},[v]);return{state:t,error:l,busy:m,install:P,remove:y,reload:v}}function Aa({config:t,local:r,localRuntime:l,installedModels:c,busy:m,onSelect:g,onReprobe:b}){return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Engine"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Where the answer's text is sent to be spoken."})]}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:Fd.map((v)=>{let x=t.engine===v.id,P=v.id==="omp"||v.id==="local"?Yn:Qr,y=v.id==="omp"&&r!==void 0&&r!==null&&!r.available;return e("div",{role:"button",tabIndex:0,"aria-pressed":x,onClick:()=>g(v.id),onKeyDown:(T)=>T.key==="Enter"&&g(v.id),className:`flex cursor-pointer select-none flex-col justify-between rounded-lg border p-3.5 text-left transition-all ${x?"border-ink bg-ink/5 ring-1 ring-ink/20":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:[e("div",{children:[e("div",{className:"mb-2 flex items-center justify-between",children:[e("div",{className:"flex items-center gap-2",children:[e("div",{className:`flex h-7 w-7 items-center justify-center rounded-md ${x?"bg-ink text-paper":"bg-ink/5 text-ink/70"}`,children:e(P,{size:15})}),e("span",{className:"text-xs font-semibold text-ink",children:v.label})]}),x?e(f,{size:14,className:"text-success"}):v.needsKey&&e("span",{className:"rounded bg-ink/10 px-1.5 py-0.5 font-mono text-[10px] uppercase text-ink/70",children:"Key"})]}),e("p",{className:"text-[11px] leading-relaxed text-ink/70",children:v.where})]}),v.id==="omp"&&e("div",{className:"mt-2 flex items-start gap-1.5 text-[10px] leading-snug",children:y?e(d,{children:[e(I,{size:12,className:"mt-px flex-shrink-0 text-error"}),e("span",{className:"text-error",children:r?.reason??"The local engine is unavailable."})]}):e("span",{className:"text-ink/50",children:r===null||r===void 0?"Checking the local engine…":"omp can run local speech on this machine."})}),v.id==="local"&&e("div",{className:"mt-2 flex items-start gap-1.5 text-[10px] leading-snug",children:l&&!l.available?e(d,{children:[e(I,{size:12,className:"mt-px flex-shrink-0 text-error"}),e("span",{className:"text-error",children:l.reason??"The ONNX runtime is unavailable."})]}):e("span",{className:"text-ink/50",children:l===void 0?"Checking the ONNX runtime…":c===0?"No model installed yet — download one below.":`${c} model${c===1?"":"s"} installed on this machine.`})})]},v.id)})}),t.engine==="omp"&&r!==void 0&&r!==null&&!r.available&&e("button",{type:"button",disabled:m,onClick:b,className:"inline-flex items-center gap-1.5 rounded-md border border-ink/15 px-2 py-1 text-[11px] text-ink/70 transition-colors hover:border-ink/30 hover:text-ink disabled:opacity-50",children:[e(S,{size:11,className:m?"animate-spin":void 0}),"Check again"]})]})}var ng=["Female 1","Female 2","Female 3","Female 4","Female 5","Male 1","Male 2","Male 3","Male 4","Male 5"],No={ar:"Arabic",bg:"Bulgarian",cs:"Czech",da:"Danish",de:"German",el:"Greek",en:"English",es:"Spanish",et:"Estonian",fi:"Finnish",fr:"French",hi:"Hindi",hr:"Croatian",hu:"Hungarian",id:"Indonesian",it:"Italian",ja:"Japanese",ko:"Korean",lt:"Lithuanian",lv:"Latvian",nl:"Dutch",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sk:"Slovak",sl:"Slovenian",sv:"Swedish",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese"},og=Object.keys(No),N1=[{id:"supertonic-3",label:"Supertonic 3",arch:"supertonic",languages:[...og],defaultLanguage:"en",voices:10,voiceLabels:[...ng],sampleRate:44100,sizeBytes:146000000,curated:!0,sourceUrl:"https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/sherpa-onnx-supertonic-3-tts-int8-2026-05-11.tar.bz2",notes:"99M parameters, 31 languages including Indonesian, ten voices. Weights OpenRAIL-M, runtime MIT."},{id:"kokoro-en-zh",label:"Kokoro 82M (English + Chinese)",arch:"kokoro",languages:["en","zh"],defaultLanguage:"en",voices:103,sampleRate:24000,sizeBytes:140000000,curated:!0,sourceUrl:"https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/kokoro-int8-multi-lang-v1_1.tar.bz2",notes:"82M parameters, 103 voices, English and Chinese only — Supertonic 3 is the Indonesian one."}];function Ra(t){return(t&&t.languages.length>0?t.languages:Object.keys(No)).map((l)=>({id:l,label:No[l]??l.toUpperCase()}))}function rg(t,r){return t?.voiceLabels?.[r]??`Voice ${r}`}function Ea(t){let r=t?.voices??0;if(r<=0)return[{id:"0",label:"Default voice"}];return Array.from({length:r},(l,c)=>({id:String(c),label:rg(t,c)}))}function Nn(t){if(!t||t<=0)return"";let r=t/1e6;return r>=1000?`${(r/1000).toFixed(1)} GB`:`${Math.round(r)} MB`}function Po(t){let r=[];if(t.languages.length>0)r.push(`${t.languages.length} languages`);else r.push("languages not declared");if(t.voices>0)r.push(`${t.voices} voices`);let l=Nn(t.sizeBytes);if(l)r.push(l);return r.join(" · ")}var je="w-full rounded-md border border-ink/20 bg-paper px-2 py-1.5 font-mono text-[11px] text-ink outline-none transition-colors placeholder:text-ink/30 focus:border-ink/50 disabled:opacity-50",Co="rounded-lg border border-ink/15 bg-paper px-3.5 py-3";function Ua(t,r){return t.find((l)=>l.id===r)}function ig(t){if(!t)return"";switch(t.status){case"downloading":{let r=t.total>0?` of ${Nn(t.total)}`:"";return`Downloading ${Nn(t.received)||"0 MB"}${r}`}case"extracting":return"Unpacking";case"probing":return"Loading the model once";case"ready":return"Ready";case"error":return t.error??"The install failed."}}function $a({job:t,onRetry:r}){let l=t.status==="downloading"||t.status==="extracting"||t.status==="probing";return e("div",{className:"rounded-lg border border-ink/15 bg-ink/[0.02] px-3 py-2",children:[e("div",{className:"flex items-center gap-2 text-[11px] text-ink/70",children:[l?e(p,{size:12,className:"animate-spin"}):e(I,{size:12,className:"text-error"}),e("span",{className:"font-medium text-ink",children:t.label}),e("span",{className:"text-ink/60",children:ig(t)}),t.status==="error"&&e("button",{type:"button",onClick:r,className:"ml-auto rounded border border-ink/20 px-1.5 py-0.5 text-[10px] text-ink/70 hover:border-ink/40 hover:text-ink",children:"Try again"})]}),l&&e("div",{className:"mt-1.5 h-1 overflow-hidden rounded-full bg-ink/10",children:e("div",{className:"h-full rounded-full bg-ink/50 transition-[width] duration-300",style:{width:`${Math.round(Math.max(0.02,Math.min(1,t.progress))*100)}%`}})})]})}function ag({model:t,selected:r,job:l,busy:c,onSelect:m,onRemove:g}){return e("div",{className:`flex items-start justify-between gap-3 rounded-lg border p-3 text-left transition-colors ${r?"border-ink bg-ink/5 ring-1 ring-ink/20":"border-ink/15 bg-paper hover:border-ink/30"}`,children:[e("button",{type:"button",onClick:m,className:"min-w-0 flex-1 text-left",children:[e("div",{className:"flex items-center gap-2",children:[e("span",{className:"truncate text-xs font-semibold text-ink",children:t.label}),r&&e("span",{className:"rounded bg-ink px-1.5 py-0.5 text-[9px] uppercase text-paper",children:"In use"})]}),e("p",{className:"mt-0.5 text-[11px] leading-relaxed text-ink/60",children:Po(t)}),t.languages.length===0&&e("p",{className:"mt-1 text-[10px] leading-relaxed text-ink/50",children:"This model declares no languages, so the language is passed through unchanged."}),l?.status==="error"&&e("p",{className:"mt-1 text-[10px] text-error",children:l.error})]}),e("button",{type:"button",disabled:c,onClick:g,"aria-label":`Remove ${t.label}`,className:"rounded-md border border-ink/15 p-1.5 text-ink/60 transition-colors hover:border-error/40 hover:text-error disabled:opacity-40",children:e(Q,{size:12})})]})}function ja({config:t,server:r,onSelect:l}){let[c,m]=n(""),g=r.state,b=g?.models??[],v=g?.catalog??[],x=g?.jobs??[],P=new Set(b.map((w)=>w.id)),y=v.filter((w)=>!P.has(w.id)),T=g!==null&&!g.runtime.available;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Local models"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Runs inside Kabmo's own server — no key, no upload. Pick the model here, then its voice and language under Voice and rate."})]}),r.error&&e("p",{className:"rounded-lg border border-error/30 bg-error/5 px-3 py-2 text-[11px] leading-relaxed text-error",children:r.error}),T&&e("p",{className:"rounded-lg border border-ink/15 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70",children:g?.runtime.reason??"The ONNX runtime is unavailable on this platform."}),e("div",{className:"space-y-2",children:[e("p",{className:"text-[11px] font-medium text-ink/70",children:"Installed"}),g===null?e("p",{className:"text-[11px] text-ink/50",children:"Reading the installed models…"}):b.length===0?e("p",{className:"rounded-lg border border-dashed border-ink/20 px-3 py-3 text-[11px] leading-relaxed text-ink/60",children:"No model yet. Download one below — Supertonic 3 speaks Indonesian and English, and nothing leaves this machine."}):b.map((w)=>e(ag,{model:w,selected:t.model===w.id||!t.model&&b[0]?.id===w.id,job:Ua(x,w.id),busy:r.busy,onSelect:()=>l(w.id),onRemove:()=>void r.remove(w.id)},w.id))]}),y.length>0&&e("div",{className:"space-y-2",children:[e("p",{className:"text-[11px] font-medium text-ink/70",children:"Available to download"}),y.map((w)=>{let A=Ua(x,w.id);return e("div",{className:"rounded-lg border border-ink/15 bg-paper p-3",children:[e("div",{className:"flex items-start justify-between gap-3",children:[e("div",{className:"min-w-0",children:[e("p",{className:"text-xs font-semibold text-ink",children:w.label}),e("p",{className:"mt-0.5 text-[11px] leading-relaxed text-ink/60",children:Po(w)}),w.notes&&e("p",{className:"mt-1 text-[10px] leading-relaxed text-ink/50",children:w.notes})]}),e("button",{type:"button",disabled:r.busy||T||A!==void 0&&A.status!=="error",onClick:()=>void r.install({id:w.id}),className:"inline-flex flex-shrink-0 items-center gap-1.5 rounded-md border border-ink/20 px-2 py-1 text-[11px] text-ink transition-colors hover:border-ink/40 hover:bg-ink/5 disabled:opacity-40",children:[e(fe,{size:11}),"Download"]})]}),A&&e("div",{className:"mt-2",children:e($a,{job:A,onRetry:()=>void r.install({id:w.id})})})]},w.id)})]}),e("div",{className:"space-y-2",children:[e("label",{className:"block space-y-1",children:[e("span",{className:"block text-[11px] font-medium text-ink/70",children:"Add from a link"}),e("div",{className:"flex gap-2",children:[e("input",{type:"url",value:c,onInput:(w)=>m(w.currentTarget.value),placeholder:"https://…/sherpa-onnx-…-int8.tar.bz2",className:je}),e("button",{type:"button",disabled:r.busy||T||!c.trim(),onClick:()=>{let w=c.trim();if(!w)return;r.install({url:w}).then((A)=>{if(A)m("")})},className:"inline-flex flex-shrink-0 items-center gap-1.5 rounded-md border border-ink/20 px-2.5 text-[11px] text-ink transition-colors hover:border-ink/40 hover:bg-ink/5 disabled:opacity-40",children:[e(ei,{size:11}),"Add"]})]})]}),e("p",{className:"text-[10px] leading-relaxed text-ink/50",children:"A `.tar.bz2` or `.tar.gz` bundle from sherpa-onnx's TTS releases. Kabmo reads the archive and keeps it only if it is a Supertonic or Kokoro bundle; a model it cannot run is refused before anything is written."}),x.filter((w)=>w.status==="error"&&!P.has(w.id)).map((w)=>e($a,{job:w,onRetry:()=>void r.install(w.url?{url:w.url}:{id:w.id})},w.id))]})]})}var Ka={source:"@oh-my-pi/pi-coding-agent 10 tabs / 647 settings",tabs:[{id:"appearance",label:"Appearance",groups:["Theme","Composer","Status Line","Images","Display"]},{id:"model",label:"Model",groups:["Prompt","Prewalk","Vision","Thinking","Sampling","Retry & Fallback","Advisor"]},{id:"interaction",label:"Interaction",groups:["Startup & Updates","Git","Input","Magic Keywords","Notifications","Power","Agent","Approvals","Skills","Speech","Collab","Stream"]},{id:"context",label:"Context",groups:["General","Compaction","Experimental","Rules (TTSR)"]},{id:"memory",label:"Memory",groups:["General","Sharpshooter","Auto-Learn","Mnemopi","Hindsight"]},{id:"files",label:"Files",groups:["Editing","Reading","Read Summaries","LSP"]},{id:"shell",label:"Shell",groups:["Bash","Eval & Runtimes"]},{id:"tools",label:"Tools",groups:["Output Limits","Available Tools","Todos","Grep & Browser","Find","Computer","Execution","GitHub","Discovery & MCP","Developer","Extensions","Disassembler","IDA Pro","Ghidra","Binary Ninja"]},{id:"tasks",label:"Tasks",groups:["Isolation","Subagents","Modes","Commands & Skills"]},{id:"providers",label:"Providers",groups:["Services","Fireworks","Tiny Model","Protocol","Timeouts","Privacy"]}],entries:{"auth.unpausedProviders":{type:"array",default:[],ui:{tab:"providers",group:"Services",label:"Unpaused Providers",description:"Turn providers we paused back on: login, token refresh and stored credentials work again. Each pause names the account risk you accept. Project settings cannot set this",options:[{value:"google-antigravity",label:"Google Antigravity (Gemini, Claude, GPT-OSS)",description:"Google Antigravity is paused: Google's terms do not allow third-party sign-in and Google has suspended accounts that used it (see #18341). Use GEMINI_API_KEY (AI Studio) or google-vertex instead."}],condition:"unpausedProvidersNotProject"}},modelRoleStorage:{type:"enum",default:"global",values:["global","project"],ui:{tab:"model",group:"Prompt",label:"Model Role Storage",description:"Where model selector role assignments are saved",options:[{value:"global",label:"Global",description:"Save role models in the active profile config (current behavior)"},{value:"project",label:"Per-project",description:"Save project role models in .omp/config.yml; missing project roles use global defaults"}]}},autoResume:{type:"boolean",default:!1,ui:{tab:"interaction",group:"Startup & Updates",label:"Auto Resume",description:"Automatically resume the most recent session in the current directory. If its model cannot be restored and model fallback is disabled, interactive startup warns and starts a new session without the saved history"}},"git.enabled":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Git",label:"Enable Git Integration",description:"Show git branch, status, and PR information in the TUI and watch repository metadata."}},"theme.dark":{type:"string",default:"titanium",ui:{tab:"appearance",group:"Theme",label:"Dark Theme",description:"Theme used when the terminal has a dark background",options:"runtime"}},"theme.light":{type:"string",default:"light",ui:{tab:"appearance",group:"Theme",label:"Light Theme",description:"Theme used when the terminal has a light background",options:"runtime"}},symbolPreset:{type:"enum",default:"unicode",values:["unicode","nerd","ascii"],ui:{tab:"appearance",group:"Theme",label:"Symbol Preset",description:"Glyph set for icons and symbols (Unicode, Nerd Font, or ASCII)",options:[{value:"unicode",label:"Unicode",description:"Standard symbols (default)"},{value:"nerd",label:"Nerd Font",description:"Requires a Nerd Font, or a Glyph Protocol terminal (icons ship in-band)"},{value:"ascii",label:"ASCII",description:"Maximum compatibility"}]}},colorBlindMode:{type:"boolean",default:!1,ui:{tab:"appearance",group:"Theme",label:"Color-Blind Mode",description:"Use blue instead of green for diff additions"}},"composer.shape":{type:"string",default:"band",ui:{tab:"appearance",group:"Composer",label:"Composer Shape",description:"Visual layout of the input editor and status line",options:"runtime"}},"composer.tokenRate":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Composer",label:"Generation Rate",description:"Show a live generation tok/s readout: on the working row next to the session title, or in the native composer bar right after the thinking level, where the last reading stays between turns. Estimated from streamed deltas and corrected by the provider's billed output count as each message completes."}},"statusLine.preset":{type:"enum",default:"default",values:["default","minimal","compact","full","nerd","ascii","custom"],ui:{tab:"appearance",group:"Status Line",label:"Status Line Preset",description:"Pre-built status line configurations",options:[{value:"default",label:"Default",description:"Model, path, git, context, tokens, cost"},{value:"minimal",label:"Minimal",description:"Path and git only"},{value:"compact",label:"Compact",description:"Model, git, cost, context"},{value:"full",label:"Full",description:"All segments including time"},{value:"nerd",label:"Nerd",description:"Maximum info with Nerd Font icons"},{value:"ascii",label:"ASCII",description:"No special characters"},{value:"custom",label:"Custom",description:"User-defined segments"}]}},"statusLine.separator":{type:"enum",default:"powerline-thin",values:["powerline","powerline-thin","slash","pipe","block","none","ascii"],ui:{tab:"appearance",group:"Status Line",label:"Status Line Separator",description:"Style of separators between segments",options:[{value:"powerline",label:"Powerline",description:"Solid arrows (Nerd Font)"},{value:"powerline-thin",label:"Thin chevron",description:"Thin arrows (Nerd Font)"},{value:"slash",label:"Slash",description:"Forward slashes"},{value:"pipe",label:"Pipe",description:"Vertical pipes"},{value:"block",label:"Block",description:"Solid blocks"},{value:"none",label:"None",description:"Space only"},{value:"ascii",label:"ASCII",description:"Greater-than signs"}]}},"statusLine.contextLine":{type:"enum",default:"embedded",values:["off","percentage","annotated","embedded"],ui:{tab:"appearance",group:"Status Line",label:"Context-Reactive Line",description:"How the line between the left and right segments reflects context usage (box composer only)",options:[{value:"off",label:"Off",description:"Solid accent line, no context feedback"},{value:"percentage",label:"Percentage",description:"Used portion in accent color, remainder dimmed"},{value:"annotated",label:"Annotated",description:"Percentage plus ticks at the speculative and auto-compaction boundaries"},{value:"embedded",label:"Embedded",description:"Annotated line with the context percentage and window embedded in the gauge"}]}},"statusLine.sessionAccent":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Status Line",label:"Session Accent",description:"Use the session name color for the editor border and status line gap"}},"statusLine.transparent":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Status Line",label:"Transparent Status Line",description:"Use the terminal's default background for the status line instead of the theme's `statusLineBg`. Powerline end caps are dropped because they need a contrasting fill to bridge into the surrounding terminal."}},"statusLine.compactThinkingLevel":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Status Line",label:"Compact Thinking Level",description:"Show the thinking level as a single icon on the model name instead of a separate ` · <level>` suffix; in Tern's composer, as the model chip's icon instead of a separate chip (click the icon to cycle it)."}},"statusLine.showHookStatus":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Status Line",label:"Show Hook Status",description:"Display hook status messages below the status line"}},"terminal.showImages":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Images",label:"Show Inline Images",description:"Render images inline in the terminal",condition:"hasImageProtocol"}},"images.autoResize":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Images",label:"Auto-Resize Images",description:"Resize large images to 2000x2000 max for better model compatibility"}},"images.blockImages":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Images",label:"Block Images",description:"Prevent images from being sent to LLM providers"}},"tui.resizeScrollback":{type:"enum",default:"rebuild",values:["append","rebuild","preserve"],ui:{tab:"appearance",group:"Display",label:"Resize Scrollback",description:"How a settled terminal resize refreshes transcript rows retained in terminal scrollback",options:[{value:"append",label:"Append",description:"Replay the transcript at the new width below retained history"},{value:"rebuild",label:"Rebuild",description:"Erase all terminal scrollback, then replay one current-width transcript"},{value:"preserve",label:"Preserve",description:"Repaint only the viewport and keep history wrapped at its old width"}]}},"terminal.showProgress":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Native Terminal Progress",description:"Emit OSC 9;4 indeterminate progress while the agent or context maintenance is running (always on in Tern)"}},"terminal.programStatus":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Program Status (OSC 7501)",description:"Report whether the agent is working, waiting on you, done, or failed over OSC 7501, for terminal tab indicators and agent inboxes"}},"tui.textSizing":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Large Headings (Kitty)",description:"Render Markdown H1 headings at 2x scale using Kitty's OSC 66 text-sizing protocol. Only takes effect on Kitty terminals; ignored everywhere else. Off by default."}},"tui.colorfulMarkdown":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Colorful Markdown",description:"Color headings by level, bold and italic text, inline code, and table headers from the theme's ANSI palette. Off uses one heading color and plain bold/italic."}},"tui.renderMermaid":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Render Mermaid Diagrams",description:"Render Mermaid fenced code blocks as ASCII diagrams"}},"tui.renderSvg":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Render SVG Figures",description:"Invite the agent to draw diagrams and charts as SVG, rendered inline as images on terminals that show graphics"}},"tui.renderEmbeds":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Render Embedded Images and Pages",description:"Invite the agent to show pictures with <img> and web pages with <iframe>, loading them (remote addresses included) to draw inline on terminals that show graphics"}},"tui.autoGraph":{type:"enum",default:"auto",values:["auto","smart","always","off"],ui:{tab:"appearance",group:"Display",label:"Auto-Graph Tables",description:"Draw a chart under numeric tables in the agent's answers, in your theme's colors, on terminals that show graphics",options:[{value:"auto",label:"Auto",description:"Smart when the judge role resolves to a native TypeSafe jev model, else Always"},{value:"smart",label:"Smart",description:"The judge model refines each chart: kind, columns, row names and grouping, scales, which way is better, and its title"},{value:"always",label:"Always",description:"Chart every table that reads as numeric, using the built-in best guess"},{value:"off",label:"Off",description:"Leave tables as tables"}]}},"tui.reactions":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Agent Reactions",description:"Invite the agent to react to your message with an emoji badge on its bubble"}},"tui.codexResetFireworks":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Codex Reset Fireworks",description:"Celebrate unscheduled Codex weekly usage resets and newly banked saved resets with a top-third fireworks overlay that remains until ⎋"}},"tui.titleState":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Terminal Title Run State",description:"Show the agent run state in the terminal title's separator — an animated spinner while working (a static ':' under WSL), '>' when it's your turn, '!' when the agent is waiting on you"}},"tui.titleSpinner":{type:"enum",default:"braille",values:["braille","pulse","dots","line"],ui:{tab:"appearance",group:"Display",label:"Terminal Title Spinner",description:"Glyph set for the working-state spinner in the terminal title — braille sweep, filling moon, single-dot cycle, or ASCII-safe line",options:[{value:"braille",label:"Braille",description:"Classic ⠋⠙⠹ sweep (default)"},{value:"pulse",label:"Pulse",description:"Moon filling ○◑● then emptying"},{value:"dots",label:"Dots",description:"Single braille dots cycling"},{value:"line",label:"Line",description:"ASCII - \\ | / for fonts without braille coverage"}]}},"tui.spinnerInterval":{type:"number",ui:{tab:"appearance",group:"Display",label:"Spinner Interval (ms)",description:"Milliseconds between frames of every spinner, the terminal title included; 0 shows static glyphs. Unset follows Motion",options:[{value:"0",label:"Static",description:"No animation"},{value:"80",label:"80 ms",description:"12.5 frames/s"},{value:"250",label:"250 ms",description:"4 frames/s"},{value:"1000",label:"1 s",description:"1 frame/s"}]}},"tui.maxFps":{type:"number",default:30,ui:{tab:"appearance",group:"Display",label:"Max Frames Per Second",description:"Ceiling on how often the TUI repaints, streaming text included. Keystroke echo keeps 30 fps, so the pane you type in stays responsive",options:[{value:"30",label:"30 fps",description:"Default"},{value:"15",label:"15 fps"},{value:"4",label:"4 fps",description:"Quiet, for many panes"},{value:"1",label:"1 fps",description:"Minimum"}]}},"tui.hyperlinks":{type:"enum",default:"auto",values:["off","auto","always"],ui:{tab:"appearance",group:"Display",label:"Terminal Hyperlinks",description:"Wrap paths and URLs in OSC 8 hyperlinks for terminal-native click-to-open (auto: detect support; off: never; always: unconditional)"}},"tui.mouse":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Mouse Click-to-Focus",description:"Capture mouse clicks in the main session so live subagent cards and HUD rows focus on click, with a hover highlight on the target, and clicks on extension-owned links reach their extension (the link-hint key picks them without the mouse). Native text selection becomes ⇧+drag while on, and mouse capture stops wheel scrolling — the terminal reports wheel ticks to omp instead — so scroll with the terminal's keyboard scrollback keys, or turn this off"}},"tui.tight":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Tight Layout",description:"Remove the standard one-cell horizontal inset from terminal output; message bubbles and tool frames keep their padding"}},"display.shimmer":{type:"enum",default:"classic",values:["classic","kitt","disabled"],ui:{tab:"appearance",group:"Display",label:"Shimmer",description:"Animation style for working/loading messages; off under reduced or no Motion",options:[{value:"classic",label:"Classic",description:"Soft cosine wave sweeping across the text"},{value:"kitt",label:"KITT Scanner",description:"Knight Rider 1982 red light bouncing left-right"},{value:"disabled",label:"Disabled",description:"No animation; static muted text"}]}},"tui.motion":{type:"enum",default:"full",values:["full","reduced","none"],ui:{tab:"appearance",group:"Display",label:"Motion",description:"One switch over spinners, shimmer, and decorative blink/fade. Streaming text is unaffected (see Max Frames Per Second). A spinner interval you set still wins",options:[{value:"full",label:"Full",description:"Every animation at its own setting (default)"},{value:"reduced",label:"Reduced",description:"Spinners at 250 ms, no shimmer, no blink/fade"},{value:"none",label:"None",description:"Static spinners and title, no shimmer, no blink/fade"}]}},"display.pinnedAgents":{type:"enum",default:"collapsed",values:["off","collapsed","full"],ui:{tab:"appearance",group:"Display",label:"Pinned Agents",description:"Pinned live-agent jump list above the editor (off hides it; collapsed shows a few rows with an expander; full lists all)",options:[{value:"off",label:"Off",description:"Hide the pinned jump list"},{value:"collapsed",label:"Collapsed",description:"Show a few rows with an expander"},{value:"full",label:"Full",description:"Always list every live agent"}]}},"display.subagentLivePreview":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Subagent Live Preview",description:"Show each pinned subagent's current (or most recent) tool call beneath its row"}},"display.smoothStreaming":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Smooth Streaming",description:"Reveal assistant text and streamed tool input smoothly while chunks arrive (Tern types assistant text out itself)"}},"display.hideToolActivity":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Hide Tool Activity",description:"Hide model-initiated tool calls and results from the transcript"}},"display.showTokenUsage":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Show Token Usage",description:"Show per-turn token usage on assistant messages"}},"display.showTurnTime":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Show Turn Time",description:"Show the total prompt-to-yield time (including tool calls) on assistant message usage rows"}},"display.cacheMissMarker":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Cache Miss Marker",description:"Show a divider after an assistant turn whose request lost (missed) the prompt cache"}},"display.shellVisualization":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Shell Visualization",description:"Show bash commands as an interactive execution visualization instead of plain shell commands"}},"display.advisorCollapsedLines":{type:"number",default:0,ui:{tab:"appearance",group:"Display",label:"Advisor Collapsed Lines",description:"Maximum note lines a collapsed advisor card shows below its header (0 keeps the full preview; expand with the tool-output toggle)",options:[{value:"0",label:"No limit",description:"Default."},{value:"1",label:"1 line"},{value:"2",label:"2 lines"},{value:"3",label:"3 lines"},{value:"5",label:"5 lines"}]}},"display.collapseCompacted":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Collapse Compacted History",description:"Collapse pre-compaction history behind the summary divider on the live transcript; disable to keep the full transcript inline with dividers at each compaction point"}},showHardwareCursor:{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Show Hardware Cursor",description:"Show terminal cursor for IME support"}},"tui.imeSafeCursor":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"IME-Safe Prompt Layout",description:"Move the prompt's bottom border to a separate row so macOS IME preedit cannot displace it"}},steeringMode:{type:"enum",default:"one-at-a-time",values:["all","one-at-a-time"],ui:{tab:"interaction",group:"Input",label:"Steering Mode",description:"How to process queued messages while agent is working"}},followUpMode:{type:"enum",default:"one-at-a-time",values:["all","one-at-a-time"],ui:{tab:"interaction",group:"Input",label:"Follow-Up Mode",description:"How to drain follow-up messages after a turn completes"}},interruptMode:{type:"enum",default:"immediate",values:["immediate","wait"],ui:{tab:"interaction",group:"Input",label:"Interrupt Mode",description:"When steering messages interrupt tool execution"}},"btw.inject":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Input",label:"/btw Steering Inject",description:"When you ask /btw for a steering prompt, it drafts one in <inject> tags, highlighted in the answer; Alt+I (app.btw.inject) sends it to the main session"}},"tui.vimMode":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Input",label:"Vim Editing Mode",description:"Modal prompt editing. ⎋ leaves Insert mode; Normal mode has hjkl, 0, $, ^, w, b, e, gg, G, counts, x/D/C, dd/yy, p and u; operators take motions or text objects (diw, ca(, dap); v/V start a Visual selection that y copies and d deletes"}},"tui.vimModeDisplay":{type:"enum",default:"text",values:["text","icon","none"],ui:{tab:"interaction",group:"Input",label:"Vim Mode Indicator",description:"How the current Vim mode appears in the status line",condition:"vimModeEnabled",options:[{value:"text",label:"Text",description:"Full mode name — NORMAL, INSERT, VISUAL, V-LINE, REPLACE"},{value:"icon",label:"Icon",description:"Single compact glyph per mode"},{value:"none",label:"Hidden",description:"Do not show the mode; a command being typed still shows with Vim Show Command"}]}},"tui.vimShowCommand":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Input",label:"Vim Show Command",description:"Show the command being typed in the status line, like Vim's showcmd: 15d before its last d. Shows even when the mode indicator is hidden",condition:"vimModeEnabled"}},"tui.vimYankToClipboard":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Input",label:"Vim Yanks Copy to Clipboard",description:'Every Vim yank also copies to the system clipboard, as in Vim with clipboard=unnamed. Off: only "+y and "*y do',condition:"vimModeEnabled"}},"tui.vimStartMode":{type:"enum",default:"insert",values:["insert","normal"],ui:{tab:"interaction",group:"Input",label:"Vim Start Mode",description:"Mode each new prompt starts in: at startup, after each message you send, and in dialog text boxes",condition:"vimModeEnabled",options:[{value:"insert",label:"Insert",description:"Type right away; Escape for Normal mode"},{value:"normal",label:"Normal",description:"Start on Vim commands; i, a, o and the like to type"}]}},"loop.mode":{type:"enum",default:"prompt",values:["prompt","compact","reset"],ui:{tab:"interaction",group:"Input",label:"Loop Mode",description:"What happens between /loop iterations before re-submitting the prompt",options:[{value:"prompt",label:"Prompt",description:"Re-submit the prompt as a follow-up message (current behavior)"},{value:"compact",label:"Compact",description:"Compact the session context, then re-submit the prompt"},{value:"reset",label:"Reset",description:"Start a new session, then re-submit the prompt"}]}},"loop.conditionTimeoutMs":{type:"number",default:30000,ui:{tab:"interaction",group:"Input",label:"Loop Condition Timeout (ms)",description:"Max wait for a `/loop --while` / `--until` condition command before treating it as broken and stopping the loop. Set to 0 to wait indefinitely",options:[{value:"0",label:"Unlimited"},{value:"10000",label:"10 seconds"},{value:"30000",label:"30 seconds"},{value:"120000",label:"2 minutes"}]}},"composer.recallClearedDrafts":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Input",label:"Recall Cleared Drafts",description:"Keep drafts cleared with ⌃C in local ↑/↓ history until exit; disabling affects future clears"}},doubleEscapeAction:{type:"enum",default:"rewind",values:["rewind","tree","none"],ui:{tab:"interaction",group:"Input",label:"Double-Escape Action",description:"What pressing ⎋ twice with an empty editor does: open the transcript rewind selector, open the session tree, or nothing"}},"input.bareExitOnEmptySession":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Input",label:"Bare Exit on Empty Session",description:"Submitting exactly `exit`, `quit`, or `q` (any case) before the first message quits instead of prompting the model"}},"input.bareSlashCommands":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Input",label:"Bare Slash Commands",description:"Submitting exactly a command name without the leading `/` (e.g. `model`, `compact`) runs that slash command; once the session has messages, press Enter twice to confirm"}},treeFilterMode:{type:"enum",default:"default",values:["default","no-tools","user-only","labeled-only","all"],ui:{tab:"interaction",group:"Input",label:"Session Tree Filter",description:"Default filter mode when opening the session tree"}},autocompleteMaxVisible:{type:"number",default:10,ui:{tab:"interaction",group:"Input",label:"Autocomplete Items",description:"Max visible items in autocomplete dropdown (3-20)",options:[{value:"3",label:"3 items"},{value:"5",label:"5 items"},{value:"7",label:"7 items"},{value:"10",label:"10 items"},{value:"15",label:"15 items"},{value:"20",label:"20 items"}]}},"spelling.typoDetection":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Input",label:"Typo Detection (macOS)",description:"Mark misspelled prompt words with the active macOS dictionaries",condition:"macOS"}},"spelling.autocomplete":{type:"enum",default:"auto",values:["off","auto","ngram","smollm","apple"],ui:{tab:"interaction",group:"Input",label:"Word Autocomplete",description:"Show predicted word completions as inline hints: ⇥ accepts with a space, → without",options:[{value:"off",label:"Off",description:"No word completion"},{value:"auto",label:"Auto",description:"N-gram (nothing to download)"},{value:"ngram",label:"N-gram",description:"Learns your vocabulary from prompt history"},{value:"smollm",label:"SmolLM",description:"Small on-device language model blended with N-gram (downloads weights on first use)"},{value:"apple",label:"Apple",description:"macOS dictionary completions"}]}},"composer.predictions":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Input",label:"Composer Predictions",description:"After a completed turn, ask the active model to predict your next message and show it as ghost text in the empty composer; ⇥ or → inserts it without sending. Extra usage: every completed turn sends one more billed request over the whole conversation (counted in /stats)"}},"composer.predictionAlternatives":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Input",label:"Prediction Alternatives",description:"Ask for up to four distinct predictions instead of one, most likely first. The ghost text shows the first one your draft matches; after inserting one, press ⇥ again to pick another. The same single request returns a few more output tokens",condition:"composerPredictionsEnabled"}},"spelling.autocorrect":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Input",label:"Autocorrect (macOS)",description:"Apply confident macOS spelling corrections after completed words",condition:"macOS"}},emojiAutocomplete:{type:"boolean",default:!0,ui:{tab:"interaction",group:"Input",label:"Emoji Autocomplete",description:"Suggest emojis from `:name:` shortcodes and expand text emoticons like `:D` or `:-)`"}},"paste.largeMenuThreshold":{type:"number",default:100,ui:{tab:"interaction",group:"Input",label:"Large Paste Menu",description:"When a paste reaches this many lines, offer a menu to wrap it in a code block, wrap it in XML tags, or save it to a file. 0 disables the menu (large pastes still collapse to a chip).",options:[{value:"0",label:"Off"},{value:"100",label:"100 lines"},{value:"250",label:"250 lines"},{value:"500",label:"500 lines"},{value:"1000",label:"1000 lines"}]}},"startup.quiet":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Startup & Updates",label:"Quiet Startup",description:"Skip welcome screen and startup status messages"}},"startup.showSplash":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Startup & Updates",label:"Show Startup Splash",description:"Show the full animated setup splash on normal interactive startup without rerunning setup. Quiet Startup still suppresses it."}},"startup.setupWizard":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Startup & Updates",label:"Setup Wizard",description:"Show newly added onboarding steps once per setup version"}},"startup.checkUpdate":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Startup & Updates",label:"Check for Updates",description:"Check for omp updates on startup"}},"update.channel":{type:"enum",default:"stable",values:["stable","canary"],ui:{tab:"interaction",group:"Startup & Updates",label:"Update Channel",description:"Update channel used by omp update and the startup update check",options:[{value:"stable",label:"Stable"},{value:"canary",label:"Canary"}]}},"update.auto":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Startup & Updates",label:"Auto Update",description:"Install omp updates in the background on startup; the next launch runs the new version"}},"marketplace.autoUpdate":{type:"enum",default:"notify",values:["off","notify","auto"],ui:{tab:"interaction",group:"Startup & Updates",label:"Marketplace Auto-Update",description:"Check for plugin updates on startup",options:[{value:"off",label:"Off",description:"Don't check for plugin updates"},{value:"notify",label:"Notify",description:"Check on startup and notify when updates are available"},{value:"auto",label:"Auto",description:"Check on startup and auto-install updates"}]}},"startup.changelogMode":{type:"enum",default:"summary",values:["summary","expanded","hidden"],ui:{tab:"interaction",group:"Startup & Updates",label:"Startup Changelog",description:"Choose whether update notes start as a summary, full details, or stay hidden",options:[{value:"summary",label:"Summary",description:"Show release and change counts with a /changelog hint"},{value:"expanded",label:"Expanded",description:"Show the recent release notes in full"},{value:"hidden",label:"Hidden",description:"Do not show release notes on startup"}]}},"magicKeywords.enabled":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Magic Keywords",label:"Magic Keywords",description:"Enable hidden notices for standalone ultrathink, chillax, orchestrate, workflowz, jevify keywords"}},"magicKeywords.ultrathink":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Magic Keywords",label:"Ultrathink Keyword",description:"Let standalone ultrathink request maximum automatic thinking and append its hidden notice"}},"magicKeywords.chillax":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Magic Keywords",label:"Chillax Keyword",description:"Let standalone chillax drop thinking to the model's lowest effort (models with per-message effort, even mid-turn) and append its hidden notice"}},"magicKeywords.orchestrate":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Magic Keywords",label:"Orchestrate Keyword",description:"Let standalone orchestrate append its hidden multi-agent orchestration notice"}},"magicKeywords.workflow":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Magic Keywords",label:"Workflow Keyword",description:"Let standalone workflowz append its hidden eval workflow notice"}},"magicKeywords.jevify":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Magic Keywords",label:"Jevify Keyword",description:"Let standalone jevify append its hidden bulk-judge classification notice"}},"completion.notify":{type:"enum",default:"on",values:["on","off"],ui:{tab:"interaction",group:"Notifications",label:"Completion Notification",description:"Notify when the agent finishes a turn"}},"error.notify":{type:"enum",default:"off",values:["on","off"],ui:{tab:"interaction",group:"Notifications",label:"Error Notification",description:"Notify when the agent stops with an error"}},"ask.timeout":{type:"number",default:0,ui:{tab:"interaction",group:"Notifications",label:"Ask Timeout",description:"Submit an ask form's current values (your preselected answers) after this many seconds (0 disables). Also bounds cfg:// approval prompts; an unanswered approval denies the write instead of auto-submitting",options:[{value:"0",label:"Disabled"},{value:"15",label:"15 seconds"},{value:"30",label:"30 seconds"},{value:"60",label:"60 seconds"},{value:"120",label:"120 seconds"}]}},"ask.notify":{type:"enum",default:"on",values:["on","off"],ui:{tab:"interaction",group:"Notifications",label:"Ask Notification",description:"Notify when the ask tool is waiting for input"}},"pty.notify":{type:"enum",default:"on",values:["on","off"],ui:{tab:"interaction",group:"Notifications",label:"Console Notification",description:"Notify when an interactive console (bash `pty`) is waiting on you"}},"recap.enabled":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Notifications",label:"Idle Recap",description:"Generate a brief LLM recap of where things stand after the terminal has been idle"}},"recap.idleSeconds":{type:"number",default:240,ui:{tab:"interaction",group:"Notifications",label:"Idle Recap Delay",description:"Seconds to wait while idle before showing the recap",options:[{value:"60",label:"1 minute"},{value:"120",label:"2 minutes"},{value:"240",label:"4 minutes"},{value:"300",label:"5 minutes"},{value:"600",label:"10 minutes"}]}},"session.worktreeScope":{type:"enum",default:"repo",values:["directory","repo"],ui:{tab:"interaction",group:"Startup & Updates",label:"Resume Worktree Scope",description:"Choose whether the resume picker's current folder includes sessions from other repository worktrees",options:[{value:"directory",label:"This Directory",description:"Only sessions saved for this directory"},{value:"repo",label:"Repository Worktrees",description:"Also include sessions from sibling worktrees"}]}},"power.sleepPrevention":{type:"enum",default:"idle",values:["off","idle","display","system"],ui:{tab:"interaction",group:"Power",label:"Sleep Prevention",description:"Prevent the system sleeping while the agent is running a turn; an idle session, including one waiting on background jobs, does not hold it. Each level is cumulative — it adds the flags of all lower levels.",options:[{value:"off",label:"Off",description:"Do not prevent any sleep"},{value:"idle",label:"Prevent Idle Sleep",description:"Keep the system awake while the agent is running a turn (macOS `caffeinate -i`)"},{value:"display",label:"Prevent Display Sleep",description:"Also keep the display from idle-sleeping (macOS `caffeinate -i -d`)"},{value:"system",label:"Prevent System Sleep",description:"Also block all system sleep on AC and declare the user active (macOS `caffeinate -i -d -s -u`)"}]}},"prewalk.enabled":{type:"boolean",default:!1,ui:{tab:"model",group:"Prewalk",label:"Enable Prewalk",description:"Start on the active model, then switch to a fast/cheap model (default the 'smol' role) at the first edit/write after the plan nudge's todo list exists — the strong model plans, commits the todos, and starts the implementation before handing off. Overridable per session with --prewalk / --no-prewalk."}},"prewalk.from":{type:"string",default:"@default",ui:{tab:"model",group:"Prewalk",label:"Prewalk planning model",description:"Model or role (default '@default') to plan on: /prewalk restart returns to it, and Auto Prewalk's Escalate mode moves a front-loaded task to it before planning."}},"prewalk.into":{type:"string",default:"@smol",ui:{tab:"model",group:"Prewalk",label:"Prewalk target",description:"Model or role (default '@smol') that prewalk hands off to at the first edit/write: /prewalk, /prewalk restart, Enable Prewalk, and --prewalk. Auto-prewalk uses its own target."}},"prewalk.auto":{type:"enum",default:"off",values:["off","suggest","on","escalate"],ui:{tab:"model",group:"Prewalk",label:"Auto Prewalk",description:"Ask the native judge resolved through the 'judge' role whether each new top-level user task front-loads its hard reasoning. Needs a native judge; without one nothing is classified. Independent of Enable Prewalk.",options:[{value:"off",label:"Off",description:"Never classify prompts for prewalk"},{value:"suggest",label:"Suggest",description:"Classify each task and report the decision, and whether Escalate would plan on another model, without arming prewalk"},{value:"on",label:"On",description:"For confidently front-loaded tasks, arm a handoff from the active model to the auto target; the next task starts back on the planning model"},{value:"escalate",label:"Escalate",description:"Like On, but plan on the Prewalk planning model (prewalk.from) first: a confidently front-loaded task moves there before setup and hands off from it; the next task starts back where this one started. When the planning model is already active, this is On, except that '@initial' then has nothing to hand back to"}]}},"prewalk.autoTarget":{type:"string",default:"@smol",ui:{tab:"model",group:"Prewalk",label:"Auto-prewalk target",description:"Model or role (default '@smol') auto-prewalk hands off to at the first edit/write. '@initial' (Escalate only) hands back to the model and thinking level the task started on."}},"providers.maxInFlightRequests":{type:"record",default:{},ui:{tab:"providers",group:"Services",label:"Max In-Flight Requests",description:'Maximum concurrent LLM requests per provider id (for example "openai" or "anthropic"), shared across local OMP processes with this config root. Omitted providers are unlimited.'}},"images.describeForTextModels":{type:"boolean",default:!0,ui:{tab:"model",group:"Vision",label:"Describe Images for Text Models",description:"When an image is attached to a model without vision support, save it under local:// and inject a description from a vision-capable model instead of dropping it"}},defaultThinkingLevel:{type:"enum",default:"high",values:["minimal","low","medium","high","xhigh","max","auto"],ui:{tab:"model",group:"Thinking",label:"Thinking Level",description:"Reasoning depth for thinking-capable models",options:[{value:"auto",label:"auto",description:"Auto-detect per prompt"},{value:"minimal",label:"min",description:"Very brief reasoning (~1k tokens)"},{value:"low",label:"low",description:"Light reasoning (~2k tokens)"},{value:"medium",label:"medium",description:"Moderate reasoning (~8k tokens)"},{value:"high",label:"high",description:"Deep reasoning (~16k tokens)"},{value:"xhigh",label:"xhigh",description:"Extended reasoning (~32k tokens)"},{value:"max",label:"max",description:"Maximum reasoning the model supports"}]}},hideThinkingBlock:{type:"boolean",default:!1,ui:{tab:"model",group:"Thinking",label:"Hide Thinking Blocks",description:"Hide thinking blocks in assistant responses"}},expandThinkingBlocks:{type:"boolean",default:!1,ui:{tab:"model",group:"Thinking",label:"Expand Thinking Blocks",description:"Keep finished thinking blocks expanded instead of collapsing them when the turn ends",condition:"nativeRendering"}},proseOnlyThinking:{type:"boolean",default:!0,ui:{tab:"model",group:"Thinking",label:"Prose Only Thinking",description:"Omit code blocks from thinking summaries and replace them with an ellipsis"}},omitThinking:{type:"boolean",default:!1,ui:{tab:"model",group:"Thinking",label:"Omit Thinking summaries",description:"Instruct upstream providers to completely omit thinking summaries from responses (where supported)"}},externalThinking:{type:"boolean",default:!1,ui:{tab:"model",group:"Thinking",label:"External Thinking",description:"Private scratchpad; not shown to user. Disables supported GPT, Claude, and Gemini reasoning",warning:"At your own risk: providers have flagged this request shape as abuse, up to account-level enforcement"}},"model.loopGuard.enabled":{type:"boolean",default:!0,ui:{tab:"model",group:"Thinking",label:"Loop Guard",description:"Enable automatic stream loop detection for model reasoning and prose"}},"model.loopGuard.checkAssistantContent":{type:"boolean",default:!0,ui:{tab:"model",group:"Thinking",label:"Loop Guard Scan Prose",description:"Apply loop guard to assistant prose messages in addition to thinking logs"}},"model.loopGuard.toolCallReminder":{type:"boolean",default:!0,ui:{tab:"model",group:"Thinking",label:"Loop Guard Tool-Call Reminder",description:"When a Gemini reasoning stream emits many consecutive planning headers without calling a tool, interrupt it and inject a reminder to issue a tool call (requires Loop Guard)"}},"model.toolCallLoopGuard.enabled":{type:"boolean",default:!0,ui:{tab:"model",group:"Thinking",label:"Tool-Call Loop Guard",description:"Detect consecutive identical tool calls across turns and inject a corrective steer"}},"model.toolCallLoopGuard.threshold":{type:"number",default:5,ui:{tab:"model",group:"Thinking",label:"Tool-Call Loop Threshold",description:"Consecutive identical tool calls required before the corrective steer is injected"}},"model.toolCallLoopGuard.exemptTools":{type:"array",default:["wait"],ui:{tab:"model",group:"Thinking",label:"Tool-Call Loop Exempt Tools",description:"Tool names, including tools run as commands through bash (for example mcp__peers_wait), that may repeat consecutively without triggering the cross-turn loop guard"}},inlineToolDescriptors:{type:"enum",default:"auto",values:["auto","on","off"],ui:{tab:"model",group:"Prompt",label:"Inline Tool Descriptors",description:"Render full tool descriptors in the system prompt and strip top-level/nested descriptions from provider tool schemas so descriptor text is sent once. Auto enables this for Gemini models and disables it otherwise",options:[{value:"auto",label:"Auto",description:"Inline descriptors for Gemini models; keep them in tool schemas otherwise"},{value:"on",label:"On",description:"Always inline descriptors in the system prompt"},{value:"off",label:"Off",description:"Keep descriptors in provider tool schemas only"}]}},includeModelInPrompt:{type:"boolean",default:!0,ui:{tab:"model",group:"Prompt",label:"Include Model in Prompt",description:"Surface the active model identifier in the system prompt so the agent knows which model it is"}},includeWorkspaceTree:{type:"boolean",default:!1,ui:{tab:"model",group:"Prompt",label:"Include Workspace Tree",description:"Render the workspace directory tree in the system prompt. WARNING: This can bust prompt caching across sessions when files are modified."}},encourageEdits:{type:"boolean",default:!0,ui:{tab:"model",group:"Prompt",label:"Encourage Edits",description:"Require the edit tool for file edits and forbid sed/perl/python edits"}},skillful:{type:"boolean",default:!0,ui:{tab:"model",group:"Prompt",label:"List Skills in Prompt",description:"List available skills in the system prompt; disable to save context and toggle per-session with /skillful"}},personality:{type:"enum",default:"default",values:["default","friendly","pragmatic","none"],ui:{tab:"model",group:"Prompt",label:"Personality",description:"Communication style rendered into the system prompt's personality block",options:[{value:"default",label:"Default",description:"Terse, evidence-first engineer; dense, action-oriented replies"},{value:"friendly",label:"Friendly",description:"Warm, encouraging collaborator focused on momentum and morale"},{value:"pragmatic",label:"Pragmatic",description:"Direct, efficient engineer focused on clarity and rigor"},{value:"none",label:"None",description:"Omit the personality block entirely"}]}},temperature:{type:"number",default:-1,ui:{tab:"model",group:"Sampling",label:"Temperature",description:"Sampling temperature (0 = deterministic, 1 = creative, -1 = provider default)",options:[{value:"-1",label:"Default",description:"Use provider default"},{value:"0",label:"0",description:"Deterministic"},{value:"0.2",label:"0.2",description:"Focused"},{value:"0.5",label:"0.5",description:"Balanced"},{value:"0.7",label:"0.7",description:"Creative"},{value:"1",label:"1",description:"Maximum variety"}]}},topP:{type:"number",default:-1,ui:{tab:"model",group:"Sampling",label:"Top P",description:"Nucleus sampling cutoff (0-1, -1 = provider default)",options:[{value:"-1",label:"Default",description:"Use provider default"},{value:"0.1",label:"0.1",description:"Very focused"},{value:"0.3",label:"0.3",description:"Focused"},{value:"0.5",label:"0.5",description:"Balanced"},{value:"0.9",label:"0.9",description:"Broad"},{value:"1",label:"1",description:"No nucleus filtering"}]}},topK:{type:"number",default:-1,ui:{tab:"model",group:"Sampling",label:"Top K",description:"Sample from top-K tokens (-1 = provider default)",options:[{value:"-1",label:"Default",description:"Use provider default"},{value:"1",label:"1",description:"Greedy top token"},{value:"20",label:"20",description:"Focused"},{value:"40",label:"40",description:"Balanced"},{value:"100",label:"100",description:"Broad"}]}},minP:{type:"number",default:-1,ui:{tab:"model",group:"Sampling",label:"Min P",description:"Minimum probability threshold (0-1, -1 = provider default)",options:[{value:"-1",label:"Default",description:"Use provider default"},{value:"0.01",label:"0.01",description:"Very permissive"},{value:"0.05",label:"0.05",description:"Balanced"},{value:"0.1",label:"0.1",description:"Strict"}]}},presencePenalty:{type:"number",default:-1,ui:{tab:"model",group:"Sampling",label:"Presence Penalty",description:"Penalty for introducing already-present tokens (-1 = provider default)",options:[{value:"-1",label:"Default",description:"Use provider default"},{value:"0",label:"0",description:"No penalty"},{value:"0.5",label:"0.5",description:"Mild novelty"},{value:"1",label:"1",description:"Encourage novelty"},{value:"2",label:"2",description:"Strong novelty"}]}},repetitionPenalty:{type:"number",default:-1,ui:{tab:"model",group:"Sampling",label:"Repetition Penalty",description:"Penalty for repeated tokens (-1 = provider default)",options:[{value:"-1",label:"Default",description:"Use provider default"},{value:"0.8",label:"0.8",description:"Allow repetition"},{value:"1",label:"1",description:"No penalty"},{value:"1.1",label:"1.1",description:"Mild penalty"},{value:"1.2",label:"1.2",description:"Balanced"},{value:"1.5",label:"1.5",description:"Strong penalty"}]}},textVerbosity:{type:"enum",default:"low",values:["low","medium","high"],ui:{tab:"model",group:"Sampling",label:"Text Verbosity",description:"OpenAI Responses and Codex response verbosity (low, medium, or high)",options:[{value:"low",label:"Low",description:"Prefer concise responses (default)"},{value:"medium",label:"Medium",description:"Balance brevity and detail"},{value:"high",label:"High",description:"Prefer detailed responses"}]}},"tier.openai":{type:"enum",default:"none",values:["none","auto","default","flex","scale","priority","ultrafast"],ui:{tab:"model",group:"Sampling",label:"Service Tier — OpenAI",description:"Processing tier for OpenAI / OpenAI-Codex requests, and OpenAI-family models routed via OpenRouter (none = omit). Sent as `service_tier`.",options:[{value:"none",label:"None",description:"Omit service_tier (standard processing)"},{value:"auto",label:"Auto",description:"Provider default tier selection"},{value:"default",label:"Default",description:"Standard priority processing"},{value:"flex",label:"Flex",description:"Lower cost, higher latency when available"},{value:"scale",label:"Scale",description:"Scale Tier credits when available"},{value:"priority",label:"Priority",description:"Faster, higher cost (premium request)"},{value:"ultrafast",label:"Ultrafast",description:"Lowest-latency serving; OpenAI API preview access, or Codex and relay models that advertise it"}]}},"tier.anthropic":{type:"enum",default:"none",values:["none","priority"],ui:{tab:"model",group:"Sampling",label:"Service Tier — Anthropic",description:'Processing tier for Claude requests. `priority` realizes fast mode (`speed: "fast"`) on supported direct Anthropic models; ignored on Bedrock/Vertex Claude and via OpenRouter.',options:[{value:"none",label:"None",description:"Standard processing"},{value:"priority",label:"Priority",description:'Fast mode (`speed: "fast"`) on supported direct Claude models; ignored on Bedrock/Vertex'}]}},"tier.google":{type:"enum",default:"none",values:["none","flex","priority"],ui:{tab:"model",group:"Sampling",label:"Service Tier — Google",description:"Processing tier for Gemini (Google AI Studio + Vertex) requests, and Google-family models routed via OpenRouter (none = omit). Sent as the top-level `serviceTier` field.",options:[{value:"none",label:"None",description:"Standard processing"},{value:"flex",label:"Flex",description:"Lower cost, higher latency (Gemini API + Vertex)"},{value:"priority",label:"Priority",description:"Faster, higher reliability (Gemini API + Vertex)"}]}},"tier.subagent":{type:"enum",default:"inherit",values:["inherit","none","auto","default","flex","scale","priority","ultrafast"],ui:{tab:"model",group:"Sampling",label:"Service Tier — Subagent",description:"Service Tier for spawned task/eval subagents. Inherit = match the main agent's live per-family tiers (tracks /fast); pick a value to apply it to whichever family the subagent's model belongs to.",options:[{value:"inherit",label:"Inherit",description:"Match the main agent's live per-family tiers"},{value:"none",label:"None",description:"Standard processing"},{value:"auto",label:"Auto",description:"Provider default tier selection (OpenAI family)"},{value:"default",label:"Default",description:"Standard priority processing (OpenAI family)"},{value:"flex",label:"Flex",description:"Flexible capacity tier (OpenAI/Google families)"},{value:"scale",label:"Scale",description:"Scale Tier credits (OpenAI family)"},{value:"priority",label:"Priority",description:"Priority on every supported family of the spawned model"},{value:"ultrafast",label:"Ultrafast",description:"Ultrafast serving (OpenAI family, where available)"}]}},"tier.advisor":{type:"enum",default:"none",values:["inherit","none","auto","default","flex","scale","priority","ultrafast"],ui:{tab:"model",group:"Sampling",label:"Service Tier — Advisor",description:"Service Tier for the advisor model. None = standard processing; Inherit = match the main agent's live per-family tiers; pick a value to apply it to the advisor model's family.",options:[{value:"inherit",label:"Inherit",description:"Match the main agent's live per-family tiers"},{value:"none",label:"None",description:"Standard processing"},{value:"auto",label:"Auto",description:"Provider default tier selection (OpenAI family)"},{value:"default",label:"Default",description:"Standard priority processing (OpenAI family)"},{value:"flex",label:"Flex",description:"Flexible capacity tier (OpenAI/Google families)"},{value:"scale",label:"Scale",description:"Scale Tier credits (OpenAI family)"},{value:"priority",label:"Priority",description:"Priority on every supported family of the spawned model"},{value:"ultrafast",label:"Ultrafast",description:"Ultrafast serving (OpenAI family, where available)"}],condition:"advisorEnabled"}},"retry.maxRetries":{type:"number",default:10,ui:{tab:"model",group:"Retry & Fallback",label:"Retry Attempts",description:"Maximum retry attempts on API errors",options:[{value:"1",label:"1 retry"},{value:"2",label:"2 retries"},{value:"3",label:"3 retries"},{value:"5",label:"5 retries"},{value:"10",label:"10 retries"}]}},"retry.maxDelayMs":{type:"number",default:300000,ui:{tab:"model",group:"Retry & Fallback",label:"Max Retry Delay",description:"Maximum wait between retries, in ms. When the retry would wait longer and no credential or model fallback succeeds, the request fails fast instead of sleeping (e.g. 3-hour Anthropic rate-limit windows). 0 disables the ceiling."}},"retry.waitForUsageReset":{type:"boolean",default:!1,ui:{tab:"model",group:"Retry & Fallback",label:"Wait For Usage Reset",description:"Usage-limit waits within retry.maxDelayMs are already allowed. Enable this to also wait past that cap when the provider reports a reset time, such as a 5-hour or weekly quota window. Waits are abortable (⎋) but also hold subagents, so leave off for unattended runs."}},"retry.modelFallback":{type:"boolean",default:!0,ui:{tab:"model",group:"Retry & Fallback",label:"Retry Model Fallback",description:"Allow retry recovery to switch to models in retry.fallbackChains after provider errors. Independent of Auto-Promote Context"}},"retry.fallbackOn":{type:"enum",default:"any",values:["any","usage-limit","except-usage-limit"],ui:{tab:"model",group:"Retry & Fallback",label:"Fallback Trigger",description:"Which failed requests may switch to a configured fallback model",options:[{value:"any",label:"Any error",description:"Every provider error may switch models"},{value:"usage-limit",label:"Usage limits only",description:"Switch only on a usage limit; retry other errors on the same model, then surface them"},{value:"except-usage-limit",label:"All but usage limits",description:"Wait out or surface a usage limit; switch on other errors"}]}},"retry.rateLimitWalksChain":{type:"boolean",default:!1,ui:{tab:"model",group:"Retry & Fallback",label:"Rate Limit Walks Chain",description:"On a rate limit, do not hold the retry.fallbackChains walk for a turn whose thinking is signed by the failing model. Off (the default), such a turn keeps retrying the rate-limited model until retry.maxRetries is spent before the chain is reached."}},"retry.usageAwareFallback":{type:"boolean",default:!1,ui:{tab:"model",group:"Retry & Fallback",label:"Usage-Aware Fallback",description:"Use reliable coding-plan quota reports to prefer same-provider accounts, then configured fallback models, before a hard usage limit. Ordinary configured API keys are excluded."}},"retry.usageReservePct":{type:"number",default:10,ui:{tab:"model",group:"Retry & Fallback",label:"Reserve Margin",description:"Treat a coding-plan model as near its limit below this remaining percentage. Unknown or unmapped usage keeps the primary model.",condition:"usageAwareFallbackEnabled",options:[{value:"5",label:"5%",description:"Act only when nearly exhausted"},{value:"10",label:"10%",description:"Balanced safety margin"},{value:"15",label:"15%",description:"Conservative"},{value:"20",label:"20%",description:"Early protection"},{value:"25",label:"25%",description:"Very conservative"}]}},"retry.usageReservePolicy":{type:"enum",default:"confirm",values:["confirm","auto","fail-closed"],ui:{tab:"model",group:"Retry & Fallback",label:"Reserve Policy",description:"What to do when every same-provider coding-plan account is inside the reserve margin.",condition:"usageAwareFallbackEnabled",options:[{value:"confirm",label:"Confirm interactively",description:"Keep interactive sessions on the primary until confirmed; background agents auto-fallback"},{value:"auto",label:"Auto-fallback",description:"Always select the next eligible configured fallback"},{value:"fail-closed",label:"Fail closed",description:"Do not spend reserve quota or select a fallback"}]}},"retry.fallbackChains":{type:"record",default:{},ui:{tab:"model",group:"Retry & Fallback",label:"Retry Fallback Chains",description:`JSON object mapping model roles, model selectors ("provider/model-id"), or provider wildcards ("provider/*") to ordered fallback selectors, e.g. {"default":["openai/gpt-4o-mini"],"google-antigravity/*":["google/*","google-vertex/*"]}. Model-oriented keys apply whenever that model/provider is active, regardless of role; a "provider/*" entry keeps the failing model's id and swaps the provider. An id-prefixed wildcard ("openrouter/google/*") re-prefixes the failing model's bare id (google-antigravity/gemini-x -> openrouter/google/gemini-x) and, used as a key, matches only that provider's ids under the prefix. A fallback entry may carry an explicit thinking suffix ("provider/model:low", ":high", ":max", ":off"); a bare entry inherits the failing turn's effort, and "provider/*" entries always inherit.`}},"retry.fallbackRevertPolicy":{type:"enum",default:"cooldown-expiry",values:["cooldown-expiry","never"],ui:{tab:"model",group:"Retry & Fallback",label:"Fallback Revert Policy",description:"When to return to the primary model after a fallback",options:[{value:"cooldown-expiry",label:"Cooldown expiry",description:"Return to the primary model after its suppression window ends"},{value:"never",label:"Never",description:"Stay on the fallback model until manually changed"}]}},"providers.anthropic.serverSideFallback":{type:"boolean",default:!1,ui:{tab:"model",group:"Retry & Fallback",label:"Anthropic Server-Side Fallback (Fable 5)",description:"When a Claude Fable 5 / Mythos 5 request is blocked by Anthropic's safety classifier, retry it on Claude Opus 5 server-side (Anthropic `server-side-fallback-2026-06-01` beta). Opt-in — leaving this off preserves the pre-fallback behavior for every request."}},"providers.ollama-cloud.maxConcurrency":{type:"number",default:3,ui:{tab:"providers",group:"Services",label:"Ollama Cloud Max Concurrency",description:"Maximum concurrent Ollama Cloud subagent runs per process; 0 disables the provider-specific limit"}},"providers.webSearchTimeoutSeconds":{type:"number",default:60,ui:{tab:"providers",group:"Services",label:"Web Search Timeout",description:"Hard timeout for each provider's search transport before web_search advances to the next fallback, in seconds (maximum 300)",options:[{value:"30",label:"30 seconds"},{value:"60",label:"1 minute"},{value:"120",label:"2 minutes"},{value:"180",label:"3 minutes"},{value:"300",label:"5 minutes"}]}},"providers.antigravityEndpoint":{type:"enum",default:"auto",values:["auto","production","sandbox"],ui:{tab:"providers",group:"Services",label:"Antigravity Endpoint Mode",description:"Endpoint routing strategy for google-antigravity providers (chat, search, image, discovery)",options:[{value:"auto",label:"Auto",description:"Try production endpoint, fail over to sandbox on 5xx/429"},{value:"production",label:"Production Only",description:"Force production endpoint only"},{value:"sandbox",label:"Sandbox Only",description:"Force sandbox endpoint only"}]}},"providers.fireworksTier":{type:"enum",default:"standard",values:["standard","priority"],ui:{tab:"providers",group:"Fireworks",label:"Fireworks Tier",description:'Serving path for Fireworks requests. Priority sends `service_tier: "priority"` for higher reliability during peak traffic at a higher price; Standard omits it. Fast (`-fast`) models ignore this — Fast is its own serving path.',options:[{value:"standard",label:"Standard",description:"Default serving path (no service_tier)"},{value:"priority",label:"Priority",description:"Priority serving path: higher reliability, premium per-token pricing"}]}},"providers.tinyModelDevice":{type:"enum",default:"default",values:["default","gpu","cpu","mlx","metal","webgpu","cuda","dml","coreml","auto","wasm","webnn","webnn-gpu","webnn-cpu","webnn-npu"],ui:{tab:"providers",group:"Tiny Model",label:"Tiny Model Device",description:"Inference backend for local tiny models (titles + memory): an ONNX execution provider, or `mlx` to download MLX weights and run them through mlx-lm on Apple silicon. Default uses CPU-only ONNX. The PI_TINY_DEVICE env var overrides this.",options:[{value:"default",label:"Default",description:"CPU-only inference"},{value:"gpu",label:"GPU",description:"Accelerated provider (WebGPU/Metal, CUDA, or DirectML)"},{value:"cpu",label:"CPU",description:"CPU-only inference"},{value:"mlx",label:"MLX",description:"Apple silicon GPU via mlx-lm (Python subprocess; macOS arm64)"},{value:"metal",label:"Metal",description:"Alias for MLX"},{value:"webgpu",label:"WebGPU",description:"WebGPU/Metal backend"},{value:"cuda",label:"CUDA",description:"NVIDIA CUDA (Linux x64)"},{value:"dml",label:"DirectML",description:"DirectML backend (Windows)"},{value:"coreml",label:"CoreML",description:"Apple CoreML (opt-in; can fail to load)"},{value:"auto",label:"Auto",description:"Let ONNX Runtime choose a provider"},{value:"wasm",label:"WASM",description:"WebAssembly backend"},{value:"webnn",label:"WebNN",description:"WebNN backend"},{value:"webnn-gpu",label:"WebNN GPU",description:"WebNN GPU device"},{value:"webnn-cpu",label:"WebNN CPU",description:"WebNN CPU device"},{value:"webnn-npu",label:"WebNN NPU",description:"WebNN NPU device"}]}},"providers.tinyModelDtype":{type:"enum",default:"default",values:["default","q4","q4f16","q8","fp16","fp32","int8","uint8","bnb4","q2","q2f16","q1","q1f16","auto"],ui:{tab:"providers",group:"Tiny Model",label:"Tiny Model Precision",description:"ONNX quantization/precision for local tiny models. Default uses each model's shipped dtype (q4); lower precision is faster, higher is more faithful. Ignored by the MLX backend (its repos are pre-quantized 4-bit). The PI_TINY_DTYPE env var overrides this.",options:[{value:"default",label:"Default",description:"Each model's shipped dtype (currently q4)"},{value:"q4",label:"q4",description:"4-bit weights; smallest and fastest"},{value:"q4f16",label:"q4f16",description:"4-bit weights with fp16 activations"},{value:"q8",label:"q8",description:"8-bit quantization"},{value:"fp16",label:"fp16",description:"16-bit float; higher fidelity, larger"},{value:"fp32",label:"fp32",description:"Full precision; largest and slowest"},{value:"int8",label:"int8",description:"Signed 8-bit integer"},{value:"uint8",label:"uint8",description:"Unsigned 8-bit integer"},{value:"bnb4",label:"bnb4",description:"bitsandbytes 4-bit"},{value:"q2",label:"q2",description:"2-bit weights"},{value:"q2f16",label:"q2f16",description:"2-bit weights with fp16 activations"},{value:"q1",label:"q1",description:"1-bit weights"},{value:"q1f16",label:"q1f16",description:"1-bit weights with fp16 activations"},{value:"auto",label:"Auto",description:"Let transformers.js choose per device"}]}},"providers.autoThinkingMaxEffort":{type:"enum",default:"xhigh",values:["xhigh","max"],ui:{tab:"model",group:"Thinking",label:"Auto Thinking Ceiling",description:"Highest effort the `auto` classifier may resolve. `xhigh` keeps the classifier one tier below the top, so only an explicit `ultrathink` reaches `max`; `max` lets a turn the classifier judges exceptional bill the top tier on models that expose it.",condition:"autoThinkingActive",options:[{value:"xhigh",label:"xhigh",description:"Classifier stops at xhigh (default)"},{value:"max",label:"max",description:"Classifier may resolve max where the model supports it"}]}},"features.unexpectedStopDetection":{type:"enum",default:"mechanical",values:["none","mechanical","smart"],ui:{tab:"interaction",group:"Agent",label:"Unexpected Stops",description:"Automatically recover when the assistant stops without a visible message. Smart also classifies text-only stops with a small model.",options:[{value:"none",label:"None",description:"Disabled"},{value:"mechanical",label:"Mechanical",description:"Retry stops with no visible assistant message; tool calls are excluded (default)"},{value:"smart",label:"Smart",description:"Mechanical + small-model classification of text-only stops"}]}},"providers.kimiApiFormat":{type:"enum",default:"auto",values:["auto","openai","anthropic"],ui:{tab:"providers",group:"Protocol",label:"Kimi API Format",description:"API format for Kimi Code provider (auto follows live model metadata)",options:[{value:"auto",label:"Auto",description:"Use the model's server-declared protocol"},{value:"openai",label:"OpenAI",description:"api.kimi.com"},{value:"anthropic",label:"Anthropic",description:"api.moonshot.ai"}]}},"providers.openaiWebsockets":{type:"enum",default:"auto",values:["auto","off","on"],ui:{tab:"providers",group:"Protocol",label:"OpenAI Codex WebSockets",description:"WebSocket policy for OpenAI Codex models only",options:[{value:"auto",label:"Auto",description:"Use Codex model defaults"},{value:"off",label:"Off",description:"Disable WebSockets for OpenAI Codex models"},{value:"on",label:"On",description:"Force websockets for OpenAI Codex models"}]}},"providers.openaiResponsesWebsockets":{type:"boolean",default:!1,ui:{tab:"providers",group:"Protocol",label:"OpenAI Responses WebSockets",description:"Opt in for catalog-supported standard Responses models; model or request false disables it"}},"providers.openaiLiveSteering":{type:"boolean",default:!1,ui:{tab:"providers",group:"Protocol",label:"OpenAI Live Steering",description:"Deliver messages typed while a GPT-6 response streams into that response over the Codex WebSocket, instead of waiting for the next tool boundary"}},"providers.muse-code.storeResponses":{type:"boolean",default:!1,ui:{tab:"providers",group:"Protocol",label:"Muse Code Stored Responses",description:"Store Muse Code results on Meta's servers so a turn whose connection drops is recovered instead of re-run. Stored runs keep prompts and outputs on Meta's side."}},"providers.openai-codex.daybreak":{type:"boolean",default:!0,ui:{tab:"providers",group:"Protocol",label:"Codex Daybreak Blue",description:"Automatically request the Daybreak Blue cyber access program on ChatGPT accounts eligible for it. OpenAI may use content from Daybreak Blue sessions to improve its models. Does not cover dedicated Daybreak Blue models (gpt-daybreak-blue-*), which may still run as Daybreak sessions."}},"providers.cacheRetention":{type:"enum",default:"auto",values:["auto","short","long","none"],ui:{tab:"providers",group:"Protocol",label:"Prompt Cache Retention",description:"Prompt-cache retention forwarded to providers that support it (Anthropic, Bedrock, OpenRouter, OpenAI)",options:[{value:"auto",label:"Auto",description:"Provider default — Anthropic OAuth subscriber sessions default to 1h, API keys use 5m; PI_CACHE_RETENTION still applies"},{value:"short",label:"Short (5m)",description:"Cheapest cache writes; pair with cache warming to keep short entries alive while idle"},{value:"long",label:"Long (1h+)",description:"Longer TTL where supported (Anthropic/Bedrock 1h, OpenAI GPT-5.6+ Responses 12h); pricier writes, only warmed during active runs"},{value:"none",label:"Off",description:"Disable prompt caching and cache-affinity routing"}]}},"providers.cacheWarming":{type:"enum",default:"idle",values:["off","streaming","idle"],ui:{tab:"providers",group:"Protocol",label:"Cache Warming",description:"Refresh the last request's prompt-cache entry shortly before it expires (Anthropic max_tokens 0 pre-warm, else a one-token replay)",options:[{value:"off",label:"Off",description:"Disable cache warming"},{value:"streaming",label:"Streaming",description:"Protect expensive prefixes during long tool executions; stops when the agent settles"},{value:"idle",label:"Idle",description:"Also refresh 5-minute entries between runs while the expected savings stay above the cost floor"}]}},"providers.cacheWarmingStrategy":{type:"enum",default:"auto",values:["auto","keepalive","compact"],ui:{tab:"providers",group:"Protocol",label:"Cache Warming Strategy",description:"How a long tool call is bridged once refreshing stops paying: compact the history before the cache expires, or let it expire",options:[{value:"auto",label:"Auto",description:"Refresh while the refresh spend stays within the cheaper buy-out, then compact large prompts or let the entry expire"},{value:"keepalive",label:"Keep Alive",description:"Never compact; refresh until it stops paying"},{value:"compact",label:"Compact",description:"Compact at the first decision once the prompt reaches the bridge-compaction threshold"}]}},"providers.cacheWarmingCompactPercent":{type:"number",default:60,ui:{tab:"providers",group:"Protocol",label:"Cache Bridge Compaction Percent",description:"Share of the context window a prompt must reach before a long tool call may be bridged with compaction; the lower of this and the token limit applies",options:[{value:"40",label:"40%"},{value:"50",label:"50%"},{value:"60",label:"60%"},{value:"70",label:"70%"},{value:"80",label:"80%"}]}},"providers.cacheWarmingCompactTokens":{type:"number",default:150000,ui:{tab:"providers",group:"Protocol",label:"Cache Bridge Compaction Tokens",description:"Prompt tokens from which a long tool call may be bridged with compaction; the lower of this and the window percent applies",options:[{value:"50000",label:"50K tokens"},{value:"100000",label:"100K tokens"},{value:"150000",label:"150K tokens"},{value:"200000",label:"200K tokens"},{value:"300000",label:"300K tokens"}]}},"providers.streamFirstEventTimeoutSeconds":{type:"number",default:-1,ui:{tab:"providers",group:"Timeouts",label:"Stream First Event Timeout",description:"Seconds to wait for the first model stream event; -1 uses provider/env defaults, 0 disables the watchdog",options:[{value:"-1",label:"Auto",description:"Use provider defaults and PI_* timeout env vars"},{value:"0",label:"Off",description:"Disable first-event timeout"},{value:"300",label:"5 minutes"},{value:"600",label:"10 minutes"},{value:"1800",label:"30 minutes"}]}},"providers.streamIdleTimeoutSeconds":{type:"number",default:-1,ui:{tab:"providers",group:"Timeouts",label:"Stream Idle Timeout",description:"Seconds a model stream may stay silent between events; -1 uses provider/env defaults, 0 disables the watchdog",options:[{value:"-1",label:"Auto",description:"Use provider defaults and PI_* timeout env vars"},{value:"0",label:"Off",description:"Disable idle timeout"},{value:"300",label:"5 minutes"},{value:"600",label:"10 minutes"},{value:"1800",label:"30 minutes"}]}},"providers.openrouterVariant":{type:"enum",default:"default",values:["default","nitro","floor","online","exacto"],ui:{tab:"providers",group:"Protocol",label:"OpenRouter Routing",description:"Default routing-variant suffix appended to OpenRouter model IDs (overridden when the selector already names a variant)",options:[{value:"default",label:"Default",description:"No suffix; use OpenRouter's default routing"},{value:"nitro",label:":nitro",description:"Prioritize throughput / lowest latency"},{value:"floor",label:":floor",description:"Prioritize cheapest available provider"},{value:"online",label:":online",description:"Enable OpenRouter's web-search plugin"},{value:"exacto",label:":exacto",description:"Cherry-picked high-quality providers (only defined for select models)"}]}},"live.voice":{type:"string",default:"sol",ui:{tab:"providers",group:"Services",label:"Live Voice",description:"Voice of realtime voice sessions; a custom live endpoint may take other names (set in config)",options:[{value:"arbor",label:"Arbor"},{value:"breeze",label:"Breeze"},{value:"cove",label:"Cove"},{value:"ember",label:"Ember"},{value:"juniper",label:"Juniper"},{value:"maple",label:"Maple"},{value:"sol",label:"Sol"},{value:"spruce",label:"Spruce"},{value:"vale",label:"Vale"}]}},"live.endpoint":{type:"string",ui:{tab:"providers",group:"Services",label:"Live Endpoint",description:"Base URL of an OpenAI Realtime WebRTC-compatible server (e.g. http://127.0.0.1:8080/v1) used for live voice instead of Codex; empty uses Codex"}},"live.apiKey":{type:"string",credential:!0,ui:{tab:"providers",group:"Services",label:"Live Endpoint API Key",description:"Bearer key sent only to the live endpoint: a literal, an environment variable name, or !command"}},"tts.localVoice":{type:"enum",default:"harper",values:["harper","hadley","delia","everly","easton","preston","miles","trevor","maeve","bryony","edwin","hugh"],ui:{tab:"providers",group:"Services",label:"Local TTS Voice",description:"Phonon voice used by the local TTS backend (American/British, female/male)",options:[{value:"harper",label:"Harper (American female)"},{value:"hadley",label:"Hadley (American female)"},{value:"delia",label:"Delia (American female)"},{value:"everly",label:"Everly (American female)"},{value:"easton",label:"Easton (American male)"},{value:"preston",label:"Preston (American male)"},{value:"miles",label:"Miles (American male)"},{value:"trevor",label:"Trevor (American male)"},{value:"maeve",label:"Maeve (British female)"},{value:"bryony",label:"Bryony (British female)"},{value:"edwin",label:"Edwin (British male)"},{value:"hugh",label:"Hugh (British male)"}]}},"tts.localSpeed":{type:"number",default:1,ui:{tab:"providers",group:"Services",label:"Local TTS Speed",description:"Speaking rate of the local TTS backend (tts tool, omp say). 1 = normal; clamped to 0.8–1.3",options:[{value:"0.8",label:"0.8×"},{value:"0.9",label:"0.9×"},{value:"1",label:"1× (normal)"},{value:"1.1",label:"1.1×"},{value:"1.2",label:"1.2×"},{value:"1.3",label:"1.3×"}]}},"speech.enabled":{type:"boolean",default:!1,ui:{tab:"providers",group:"Services",label:"Speech Vocalization",description:"Speak the assistant's output aloud through the speakers as it streams"}},"speech.mode":{type:"enum",default:"assistant",values:["all","assistant","yield"],ui:{tab:"providers",group:"Services",label:"Speech Vocalization Mode",description:"What to speak: all = assistant messages + thinking; assistant = messages only; yield = only the final message at turn end",options:[{value:"all",label:"All (messages + thinking)"},{value:"assistant",label:"Assistant messages"},{value:"yield",label:"Final message only"}]}},"speech.enhanced":{type:"boolean",default:!1,ui:{tab:"providers",group:"Services",label:"Enhanced Speech Rewriting",description:"Rewrite assistant output into natural spoken prose with the tiny/smol model before synthesis (describes code, drops links and markdown). Falls back to mechanical cleanup on failure"}},"speech.voice":{type:"enum",default:"harper",values:["harper","hadley","delia","everly","easton","preston","miles","trevor","maeve","bryony","edwin","hugh"],ui:{tab:"providers",group:"Services",label:"Speech Vocalization Voice",description:"Phonon voice used when speaking the assistant's output aloud",options:[{value:"harper",label:"Harper (American female)"},{value:"hadley",label:"Hadley (American female)"},{value:"delia",label:"Delia (American female)"},{value:"everly",label:"Everly (American female)"},{value:"easton",label:"Easton (American male)"},{value:"preston",label:"Preston (American male)"},{value:"miles",label:"Miles (American male)"},{value:"trevor",label:"Trevor (American male)"},{value:"maeve",label:"Maeve (British female)"},{value:"bryony",label:"Bryony (British female)"},{value:"edwin",label:"Edwin (British male)"},{value:"hugh",label:"Hugh (British male)"}]}},"speech.speed":{type:"number",default:1,ui:{tab:"providers",group:"Services",label:"Speech Vocalization Speed",description:"Speaking rate when reading the assistant's output aloud. 1 = normal; clamped to 0.8–1.3",options:[{value:"0.8",label:"0.8×"},{value:"0.9",label:"0.9×"},{value:"1",label:"1× (normal)"},{value:"1.1",label:"1.1×"},{value:"1.2",label:"1.2×"},{value:"1.3",label:"1.3×"}]}},"providers.fetch":{type:"enum",default:"auto",values:["auto","native","trafilatura","lynx","parallel","firecrawl","jina"],ui:{tab:"providers",group:"Services",label:"Fetch Provider",description:"Reader backend priority for the fetch/read URL tool",options:[{value:"auto",label:"Auto",description:"Priority: native > trafilatura > lynx > parallel > firecrawl > jina"},{value:"native",label:"Native",description:"In-process HTML→Markdown converter (always available)"},{value:"trafilatura",label:"Trafilatura",description:"Auto-installs via uv/pip"},{value:"lynx",label:"Lynx",description:"Requires lynx system package"},{value:"parallel",label:"Parallel",description:"Requires PARALLEL_API_KEY"},{value:"firecrawl",label:"Firecrawl",description:"Requires FIRECRAWL_API_KEY"},{value:"jina",label:"Jina",description:"Uses r.jina.ai reader (JINA_API_KEY optional)"}]}},"providers.webKeyless":{type:"boolean",default:!0,ui:{tab:"providers",group:"Services",label:"Keyless Web Services",description:"Let web search and URL reading use third-party services without your credential: keyless Parallel, Exa, Firecrawl, Keenable, and Perplexity, the Jina reader, and scraped engines (Startpage, DuckDuckGo, Ecosia, Google, Mojeek, Hacker News). Off, only services you configured run."}},"codexResets.autoRedeem5h":{type:"enum",default:"unset",values:["unset","yes","no"],ui:{tab:"providers",group:"Services",label:"Codex Auto-Redeem Saved Resets (5h)",description:"Spend saved Codex resets on 5-hour-only blocks and on expiring credits whose fullest chat window is 5h. unset asks before spending and never spends without a prompt; yes spends without asking; no never spends.",options:[{value:"unset",label:"Unset",description:"Ask before spending; never spend without a prompt."},{value:"yes",label:"Yes",description:"Spend eligible saved resets without asking."},{value:"no",label:"No",description:"Never spend saved resets for this window."}]}},"codexResets.autoRedeemWeekly":{type:"enum",default:"unset",values:["unset","yes","no"],ui:{tab:"providers",group:"Services",label:"Codex Auto-Redeem Saved Resets (Weekly)",description:"Spend saved Codex resets on weekly blocks and on expiring credits whose fullest chat window is weekly. A block known only from a short 429 wait needs both Codex windows. unset asks before spending and never spends without a prompt; yes spends without asking; no never spends.",options:[{value:"unset",label:"Unset",description:"Ask before spending; never spend without a prompt."},{value:"yes",label:"Yes",description:"Spend eligible saved resets without asking."},{value:"no",label:"No",description:"Never spend saved resets for this window."}]}},"codexResets.minBlockedMinutes":{type:"number",default:60,ui:{tab:"providers",group:"Services",label:"Codex Auto-Redeem Min Block",description:"Only auto-redeem when the natural unblock — the latest reset among the exhausted 5h/weekly windows — is at least this many minutes away (don't spend a scarce credit to save a short wait). Raise it (e.g. 360) to ignore 5h-only blocks."}},"codexResets.keepCredits":{type:"number",default:0,ui:{tab:"providers",group:"Services",label:"Codex Auto-Redeem Reserve",description:"Never auto-spend below this many saved resets (0 = the last credit may be spent automatically). Credits about to expire are exempt — a reserved credit that expires preserves nothing."}},"codexResets.salvageHorizonHours":{type:"number",default:12,ui:{tab:"providers",group:"Services",label:"Codex Reset Salvage Horizon",description:"With auto-redeem enabled, spend a saved Codex reset within this many hours of expiry when either chat window has meaningful usage. 0 disables early salvage; credits expiring within 5 minutes are still attempted regardless of usage."}},"claudeResets.autoRedeem5h":{type:"enum",default:"unset",values:["unset","yes","no"],ui:{tab:"providers",group:"Services",label:"Claude Auto-Redeem Saved Resets (5h)",description:"Spend Claude Cedar or Juniper resets on 5-hour-only blocks and on expiring grants whose fullest covered limit is 5h. unset asks before spending and never spends without a prompt; yes spends without asking; no never spends.",options:[{value:"unset",label:"Unset",description:"Ask before spending; never spend without a prompt."},{value:"yes",label:"Yes",description:"Spend eligible saved resets without asking."},{value:"no",label:"No",description:"Never spend saved resets for this window."}]}},"claudeResets.autoRedeemWeekly":{type:"enum",default:"unset",values:["unset","yes","no"],ui:{tab:"providers",group:"Services",label:"Claude Auto-Redeem Saved Resets (Weekly)",description:"Spend Claude Cedar resets on weekly or model-scoped blocks and on expiring grants whose fullest covered limit is weekly. unset asks before spending and never spends without a prompt; yes spends without asking; no never spends.",options:[{value:"unset",label:"Unset",description:"Ask before spending; never spend without a prompt."},{value:"yes",label:"Yes",description:"Spend eligible saved resets without asking."},{value:"no",label:"No",description:"Never spend saved resets for this window."}]}},"claudeResets.autoRedeemFable":{type:"enum",default:"unset",values:["unset","yes","no"],ui:{tab:"providers",group:"Services",label:"Claude Auto-Redeem Fable Resets",description:"Spend Claude Fable launch resets, which restore Fable weekly usage plus the 5h window. Only this setting governs them. unset asks before spending and never spends without a prompt; yes spends without asking; no never spends.",options:[{value:"unset",label:"Unset",description:"Ask before spending; never spend without a prompt."},{value:"yes",label:"Yes",description:"Spend eligible saved resets without asking."},{value:"no",label:"No",description:"Never spend saved resets for this window."}]}},"claudeResets.minBlockedMinutes":{type:"number",default:60,ui:{tab:"providers",group:"Services",label:"Claude Auto-Redeem Min Block",description:"Only auto-redeem when the natural unblock — the latest reset among the exhausted covered windows — is at least this many minutes away. A 5-hour-only reset is never used for a weekly or model-scoped block."}},"claudeResets.keepCredits":{type:"number",default:0,ui:{tab:"providers",group:"Services",label:"Claude Auto-Redeem Reserve",description:"Keep at least this many Claude resets banked (0 allows the last eligible reset to be spent automatically). The reserve applies to early salvage, but not to eligible resets expiring within 5 minutes."}},"claudeResets.salvageHorizonHours":{type:"number",default:12,ui:{tab:"providers",group:"Services",label:"Claude Reset Salvage Horizon",description:"With auto-redeem enabled, use a server-selected Cedar reset within this many hours of expiry when its covered windows have meaningful usage. 0 disables early salvage; eligible Cedar or Juniper resets expiring within 5 minutes are still attempted regardless of usage or reserve. Provider limit requirements still apply."}},"provider.appendOnlyContext":{type:"enum",default:"auto",values:["auto","on","off"],ui:{tab:"providers",group:"Protocol",label:"Append-Only Context",description:"Cache system prompt + tool specs and keep an append-only message log so provider prefix caches (DeepSeek, Xiaomi/SGLang, Anthropic) hit at maximum rate. Auto enables for known prefix-cache providers.",options:[{value:"auto",label:"Auto",description:"Enable for known prefix-cache providers (recommended)"},{value:"on",label:"On",description:"Always enable append-only context"},{value:"off",label:"Off",description:"Disable append-only context"}]}},"telemetry.otlpExportEnabled":{type:"boolean",default:!0,ui:{tab:"providers",group:"Privacy",label:"OTLP Telemetry Export",description:"Allow OMP to export traces, logs, and metrics using OTEL_* endpoints. Changes take effect on the next launch."}},"advisor.enabled":{type:"boolean",default:!1,ui:{tab:"model",group:"Advisor",label:"Enable Advisor",description:"Pair a second model (assigned to the 'advisor' role) that passively reviews each turn and injects notes."}},"advisor.syncBacklog":{type:"enum",default:"off",values:["off","1","3","5","strict"],ui:{tab:"model",group:"Advisor",label:"Advisor Sync Backlog",description:"Pause main agent until advisor backlog falls below threshold. Numeric values cap wait at 30 seconds; strict waits for all scheduled reviews without a wall-clock cap. Off disables catch-up delays. Abort, failure, and disposal release waits.",condition:"advisorEnabled"}},"advisor.immuneTurns":{type:"number",default:3,ui:{tab:"model",group:"Advisor",label:"Advisor Immune Turns",description:"After an advisor concern or blocker interrupts, route further concerns as non-interrupting asides for this many primary turns. Blockers are exempt from the cooldown.",options:[{value:"0",label:"0 steps",description:"No cooldown."},{value:"1",label:"1 step"},{value:"2",label:"2 steps"},{value:"3",label:"3 steps",description:"Default."},{value:"4",label:"4 steps"},{value:"5",label:"5 steps"}],condition:"advisorEnabled"}},"advisor.continueSeverity":{type:"enum",default:"concern",values:["nit","concern","blocker"],ui:{tab:"model",group:"Advisor",label:"Advisor Continue Severity",description:"Minimum severity of an advisor note that wakes the agent after it finished with a final answer. Lower-severity notes stay as a card at the end of the transcript and reach the agent with your next message.",options:[{value:"nit",label:"Nit",description:"Every note continues the run."},{value:"concern",label:"Concern",description:"Concerns and blockers continue the run. Default."},{value:"blocker",label:"Blocker",description:"Only blockers continue the run."}],condition:"advisorEnabled"}},"advisor.reviewMode":{type:"enum",default:"turn",values:["turn","agent-end"],ui:{tab:"model",group:"Advisor",label:"Advisor Review Mode",description:"Default advisor cadence when no WATCHDOG.yml roster is present. turn reviews every primary turn; agent-end reviews only final yields.",options:[{value:"turn",label:"Every turn",description:"Review every primary update (tool-call round)."},{value:"agent-end",label:"Agent end",description:"Review only at final yields (once per run)."}],condition:"advisorEnabled"}},"advisor.reviewInterval":{type:"number",default:1,ui:{tab:"model",group:"Advisor",label:"Advisor Review Interval",description:"Default advisor cadence when no WATCHDOG.yml roster is present: review every Nth eligible primary update. 1 = every update. Skipped updates are sent with the next scheduled review.",options:[{value:"1",label:"Every eligible update",description:"Default."},{value:"2",label:"Every 2nd"},{value:"3",label:"Every 3rd"},{value:"5",label:"Every 5th"},{value:"10",label:"Every 10th"}],condition:"advisorEnabled"}},"advisor.maxNotesPerUpdate":{type:"number",default:4,ui:{tab:"model",group:"Advisor",label:"Advisor Max Notes Per Update",description:"Maximum non-blocker advice notes accepted per advisor prompt update (1–32; UI offers 1–5 quick picks). Blockers are exempt.",options:[{value:"1",label:"1 note",description:"Anti-flood (strict)."},{value:"2",label:"2 notes"},{value:"3",label:"3 notes"},{value:"4",label:"4 notes",description:"Frontier reasoning models. Default."},{value:"5",label:"5 notes"}],condition:"advisorEnabled"}},"advisor.evictStaleResults":{type:"boolean",default:!0,ui:{tab:"model",group:"Advisor",label:"Advisor Evict Stale Results",description:"Before each review, replace the advisor's read/grep/glob output from older reviews with a short placeholder. The latest review is kept.",condition:"advisorEnabled"}},"workspace.additionalDirectories":{type:"array",default:[],ui:{tab:"context",group:"General",label:"Additional Workspace Dirs",description:"Extra workspace directories added to every session as additional roots (multi-root workspace). Managed live via /add-dir and /remove-dir. Paths resolve relative to cwd; absolute paths recommended. The agent is told these roots exist and can read/grep/glob them."}},"contextFiles.extra":{type:"array",default:[],ui:{tab:"context",group:"General",label:"Extra Context Files",editor:"json",description:'Extra instruction filenames loaded beside AGENTS.md. Use a JSON list of names, not paths, e.g. ["AGENTS.local.md"]; [] disables extras. Start a new session to load them.',condition:"contextFilesExtraNotProject"}},"contextPromotion.enabled":{type:"boolean",default:!1,ui:{tab:"context",group:"General",label:"Auto-Promote Context",description:"Promote to the model's contextPromotionTarget on context overflow instead of compacting. Retry fallback switches are controlled by Retry Model Fallback"}},extendedContext:{type:"boolean",default:!1,ui:{tab:"context",group:"General",label:"Extended Context",description:"Use larger context windows where supported; may incur premium pricing. Off keeps default or standard-pricing windows"}},"compaction.enabled":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Auto-Compact",description:"Automatically compact context when it gets too large"}},"compaction.experimentalContextManagement":{type:"boolean",default:!1,ui:{tab:"context",group:"Compaction",label:"Notes-backed context windows (experimental)",description:"Keep persistent notes and searchable raw history across context windows."}},"compaction.midTurnEnabled":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Mid-Turn Compaction",description:"Check thresholds at safe mid-turn tool-loop boundaries before the next provider request; subagents always check, since their whole assignment is one turn"}},"compaction.methodOrder":{type:"array",default:["remote","snapcompact","handoff","shake","soft"],ui:{tab:"context",group:"Compaction",label:"Compaction Method Order",description:"Preferred fallback order for automatic context maintenance; unavailable or failed methods advance to the next choice",options:[{value:"remote",label:"Server compaction",description:"Use provider-native server compaction (OpenAI Responses compact, Anthropic compaction beta, including on Bedrock) when the active route supports it"},{value:"snapcompact",label:"Snapcompact",description:"Archive history onto dense bitmap images the active vision model reads back; no LLM call"},{value:"handoff",label:"Handoff",description:"Generate a handoff document and continue from it as the compaction summary"},{value:"soft",label:"Soft compaction",description:"Summarize in place with a compaction model without using server compaction"},{value:"shake",label:"Shake",description:"Drop recoverable heavy content in place without an LLM call"}],ordered:!0}},"compaction.thresholdPercent":{type:"number",default:-1,ui:{tab:"context",group:"Compaction",label:"Compaction Threshold",description:"Percent threshold for context maintenance; set to Default to use legacy reserve-based behavior",options:[{value:"default",label:"Default",description:"Legacy reserve-based threshold"},{value:"10",label:"10%",description:"Extremely early maintenance"},{value:"20",label:"20%",description:"Very early maintenance"},{value:"30",label:"30%",description:"Early maintenance"},{value:"40",label:"40%",description:"Moderately early maintenance"},{value:"50",label:"50%",description:"Halfway point"},{value:"60",label:"60%",description:"Moderate context usage"},{value:"70",label:"70%",description:"Balanced"},{value:"75",label:"75%",description:"Slightly aggressive"},{value:"80",label:"80%",description:"Typical threshold"},{value:"85",label:"85%",description:"Aggressive context usage"},{value:"90",label:"90%",description:"Very aggressive"},{value:"95",label:"95%",description:"Near context limit"}]}},"compaction.thresholdTokens":{type:"number",default:-1,ui:{tab:"context",group:"Compaction",label:"Compaction Token Limit",description:"Fixed token limit for context maintenance; overrides percentage if set",options:[{value:"default",label:"Default",description:"Use percentage-based threshold"},{value:"25000",label:"25K tokens",description:"1/8 of a 200K window"},{value:"50000",label:"50K tokens",description:"1/4 of a 200K window"},{value:"100000",label:"100K tokens",description:"1/2 of a 200K window"},{value:"150000",label:"150K tokens",description:"3/4 of a 200K window"},{value:"200000",label:"200K tokens",description:"Full standard context window"},{value:"300000",label:"300K tokens",description:"Large context window"},{value:"500000",label:"500K tokens",description:"Very large context window"}]}},"compaction.handoffSaveToDisk":{type:"boolean",default:!1,ui:{tab:"context",group:"Compaction",label:"Save Handoff Docs",description:"Save generated handoff documents to markdown files for the auto-handoff flow"}},"compaction.remoteStreamingV2Enabled":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Remote Compaction V2",description:"Use Responses streaming compaction for compatible remote compaction models"}},"compaction.asyncEnabled":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Async Compaction",description:"Speculatively summarize in the background as context nears the compaction threshold, then splice the ready result in when the threshold is crossed"}},"compaction.idleEnabled":{type:"boolean",default:!1,ui:{tab:"context",group:"Compaction",label:"Idle Compaction",description:"Compact context while idle when token count exceeds threshold"}},"compaction.idleThresholdTokens":{type:"number",default:200000,ui:{tab:"context",group:"Compaction",label:"Idle Compaction Threshold",description:"Token count above which idle compaction triggers",options:[{value:"100000",label:"100K tokens"},{value:"200000",label:"200K tokens"},{value:"300000",label:"300K tokens"},{value:"400000",label:"400K tokens"},{value:"500000",label:"500K tokens"},{value:"600000",label:"600K tokens"},{value:"700000",label:"700K tokens"},{value:"800000",label:"800K tokens"},{value:"900000",label:"900K tokens"}]}},"compaction.idleTimeoutSeconds":{type:"number",default:300,ui:{tab:"context",group:"Compaction",label:"Idle Compaction Delay",description:"Seconds to wait while idle before compacting; with a 1-hour prompt cache, compaction instead runs just before the cache expires",options:[{value:"60",label:"1 minute"},{value:"120",label:"2 minutes"},{value:"300",label:"5 minutes"},{value:"600",label:"10 minutes"},{value:"1800",label:"30 minutes"},{value:"3600",label:"1 hour"}]}},"compaction.supersedeReads":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Supersede Stale Reads",description:"Prune older read results when the same file is read again (cache-aware, runs every turn)"}},"compaction.dropUseless":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Elide Uneventful Results",description:"Prune tool results flagged contextually useless (no matches, timed-out waits) once consumed (cache-aware)"}},"snapcompact.systemPrompt":{type:"enum",default:"none",values:["none","agents-md","all"],ui:{tab:"context",group:"Experimental",label:"Snapcompact System Prompt",description:"Experimental: render selected system prompt text as dense PNG image(s) and attach to the first user message (vision models only). Saves tokens; loses prompt caching for imaged text.",options:[{value:"none",label:"None",description:"Keep the system prompt as text."},{value:"agents-md",label:"AGENTS.md",description:"Only move loaded context-file instructions to images, when that saves tokens."},{value:"all",label:"All",description:"Move the full system prompt to images, when that saves tokens."}]}},"snapcompact.toolResults":{type:"boolean",default:!1,ui:{tab:"context",group:"Experimental",label:"Snapcompact Tool Results",description:"Experimental: render large tool results, the newest one included, as dense PNG image(s) instead of text (vision models only). Saves tokens on accumulated search and command output; read results stay text unless the model is known to edit exactly from images."}},"tools.format":{type:"enum",default:"auto",values:["auto","native","glm","hermes","kimi","xml","anthropic","deepseek","harmony","qwen3","gemini","gemma","minimax"],ui:{tab:"context",group:"Experimental",label:"Tool Calling Mode",description:"Controls how tools are exposed to the model. Auto uses provider-native tool calls unless the selected model is marked as not supporting them, then falls back to the GLM owned dialect. Native forces provider-native tools; the other values force the named owned dialect.",options:[{value:"auto",label:"Auto",description:"Use native tool calls unless the model is known not to support them."},{value:"native",label:"Native",description:"Use provider-native tool calls."},{value:"glm",label:"GLM",description:"Use GLM-style in-band tool calls."},{value:"hermes",label:"Hermes",description:"Use Hermes-style in-band tool calls."},{value:"kimi",label:"Kimi",description:"Use Kimi-style in-band tool calls."},{value:"xml",label:"XML",description:"Use generic XML in-band tool calls."},{value:"anthropic",label:"Anthropic",description:"Use Anthropic-style in-band tool calls."},{value:"deepseek",label:"DeepSeek",description:"Use DeepSeek-style in-band tool calls."},{value:"harmony",label:"Harmony",description:"Use Harmony-style in-band tool calls."},{value:"qwen3",label:"Qwen3",description:"Use the Qwen3 owned dialect."},{value:"gemini",label:"Gemini",description:"Use the Gemini owned dialect."},{value:"gemma",label:"Gemma",description:"Use the Gemma owned dialect."},{value:"minimax",label:"MiniMax",description:"Use the MiniMax owned dialect."}]}},"snapcompact.shape":{type:"enum",default:"auto",values:["auto","8x8r-bw","8x8r-sent","8x8u-bw","8x8u-sent","6x6u-bw","6x6u-sent","5x8-bw","5x8-sent","6x12-dim","8x13-bw","8on16-bw","8on22-bw","11on16-bw","silver16-bw","doc-8on16-bw","doc-8on16-sent","doc-8on16-sent-dim"],ui:{tab:"context",group:"Experimental",label:"Snapcompact Shape",description:"Frame shape snapcompact prints text with (compaction archive and inline imaging). Auto picks a shape tuned for the current model.",options:[{value:"auto",label:"Auto",description:"Picks a shape tuned for the current model, falling back to its provider family."},{value:"8x8r-bw",label:"8x8 repeated, black",description:"unscii square cell, black ink, every line printed twice with the copy on a pale highlight band."},{value:"8x8r-sent",label:"8x8 repeated, sentence hues",description:"Repeated grid with ink cycling six hues at sentence boundaries."},{value:"8x8u-bw",label:"8x8, black",description:"Plain unscii square cell, single-printed lines, black ink."},{value:"8x8u-sent",label:"8x8, sentence hues",description:"Plain unscii square cell with sentence-hue ink."},{value:"6x6u-bw",label:"6x6 dense, black",description:"unscii squeezed to 6x6 — densest readable cell, fewest frames — in black ink."},{value:"6x6u-sent",label:"6x6 dense, sentence hues",description:"Densest cell with sentence-hue ink."},{value:"5x8-bw",label:"5x8 legacy, black",description:"Original X.org 5x8 glyphs on the 2576px frame, black ink."},{value:"5x8-sent",label:"5x8 legacy, sentence hues",description:"The original snapcompact shape (pre-shape-table sessions rendered this)."},{value:"6x12-dim",label:"6x12, dimmed stopwords",description:"X.org 6x12 glyphs, black ink, function words dimmed gray."},{value:"8x13-bw",label:"8x13, black",description:"X.org 8x13 glyphs, black ink."},{value:"8on16-bw",label:"8x13 on 16px pitch, black",description:"8x13 glyphs on an 8x16 cell (extra leading), black ink."},{value:"8on22-bw",label:"8x13 on 22px pitch (leading), black",description:"8x13 glyphs on an 8x22 cell — extra line spacing so rows don't crowd. Default for OpenAI/Google."},{value:"11on16-bw",label:"8x13 on 11px advance (tracking), black",description:"8x13 glyphs on an 11x16 cell — extra letter spacing so characters don't merge. Default for Anthropic."},{value:"silver16-bw",label:"Silver 16, CJK",description:"Embedded Silver TrueType font on a 16px grid for CJK and other non-Latin text."},{value:"doc-8on16-bw",label:"Doc 8on16, black",description:"Two word-wrapped newspaper columns of 8x13 glyphs on a 16px pitch, black ink."},{value:"doc-8on16-sent",label:"Doc 8on16, sentence hues",description:"Two-column doc layout with sentence-hue ink."},{value:"doc-8on16-sent-dim",label:"Doc 8on16, sentence hues + dimmed stopwords",description:"Two-column doc layout, sentence-hue ink, function words dimmed gray."}]}},"branchSummary.enabled":{type:"boolean",default:!1,ui:{tab:"context",group:"General",label:"Branch Summaries",description:"Prompt to summarize when leaving a branch"}},"memory.backend":{type:"enum",default:"off",values:["off","local","hindsight","mnemopi","sharpshooter"],ui:{tab:"memory",group:"General",label:"Memory Backend",description:"Off, local summary pipeline, Mnemopi SQLite, Hindsight remote memory, or Sharpshooter",options:[{value:"off",label:"Off",description:"No memory subsystem runs"},{value:"local",label:"Local",description:"Local rollout summarisation pipeline (memory_summary.md)"},{value:"hindsight",label:"Hindsight",description:"Vectorize Hindsight remote memory service"},{value:"mnemopi",label:"Mnemopi",description:"Local SQLite recall/retain backend with optional embeddings"},{value:"sharpshooter",label:"Sharpshooter",description:"Friction-gated project decision files (architecture/product/style), consolidated in the background"}]}},"sharpshooter.model":{type:"string",ui:{tab:"memory",group:"Sharpshooter",label:"Sharpshooter Model",description:"Model selector for extraction/consolidation, empty = smol role"}},"autolearn.enabled":{type:"boolean",default:!1,ui:{tab:"memory",group:"Auto-Learn",label:"Auto-Learn (experimental)",description:"After the agent stops, nudge it to capture lessons to memory and create/enhance isolated managed skills"}},"autolearn.autoContinue":{type:"boolean",default:!1,ui:{tab:"memory",group:"Auto-Learn",label:"Auto-run capture at stop",description:"When on, auto-run one private capture turn at stop (uses extra tokens). When off, only standing auto-learn guidance remains.",condition:"autolearnActive"}},"mnemopi.dbPath":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi DB Path",description:"Optional SQLite DB path; a leading ~ is the home directory. Defaults to the agent memories directory.",condition:"mnemopiActive"}},"mnemopi.bank":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Bank",description:"Optional shared bank base name. Per-project modes derive project-local banks from it.",condition:"mnemopiActive"}},"mnemopi.scoping":{type:"enum",default:"per-project",values:["global","per-project","per-project-tagged"],ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Scoping",description:"global = one shared bank; per-project = isolated bank per cwd; per-project-tagged = project-local writes plus global recall visibility",options:[{value:"global",label:"Global",description:"One shared Mnemopi bank for every project"},{value:"per-project",label:"Per project",description:"Project-local Mnemopi bank per cwd basename"},{value:"per-project-tagged",label:"Per project (tagged)",description:"Write to a project-local bank but merge project + shared recall results"}],condition:"mnemopiActive"}},"mnemopi.embeddingVariant":{type:"enum",default:"en",values:["en","multilingual"],ui:{tab:"memory",group:"Mnemopi",label:"Embedding variant",description:"Local embedding model family. en = stronger English model; multilingual = cross-language model. Changing this rebuilds existing memory embeddings on next start.",options:[{value:"en",label:"English (bge-base-en-v1.5)",description:"BAAI/bge-base-en-v1.5 (768d), English-only"},{value:"multilingual",label:"Multilingual (multilingual-e5-large)",description:"intfloat/multilingual-e5-large (1024d), cross-language recall"}],condition:"mnemopiActive"}},"mnemopi.autoRecall":{type:"boolean",default:!0,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Auto Recall",description:"Recall local memories into the first turn of each session",condition:"mnemopiActive"}},"mnemopi.recallRelevance":{type:"enum",default:"off",values:["auto","on","off"],ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Recall Relevance",description:"Ask the judge model role whether each automatically recalled memory is relevant to the task before injecting it",options:[{value:"auto",label:"Auto",description:"Filter only with a native judge backend; otherwise inject every recalled memory"},{value:"on",label:"On",description:"Filter with whichever model the judge role resolves to; an on-device judge may answer only some memories in time"},{value:"off",label:"Off",description:"Never filter; inject every recalled memory"}],condition:"mnemopiActive"}},"mnemopi.autoRetain":{type:"boolean",default:!0,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Auto Retain",description:"Retain completed conversation turns into local Mnemopi memory",condition:"mnemopiActive"}},"mnemopi.polyphonicRecall":{type:"boolean",default:!1,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Polyphonic Recall",description:"Fuse recall with graph, fact, vector and temporal voices so linked memories surface without a keyword match",condition:"mnemopiActive"}},"mnemopi.enhancedRecall":{type:"boolean",default:!1,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Enhanced Recall",description:"Cache recall results for repeated and similar queries with identical options; any memory write clears it",condition:"mnemopiActive"}},"mnemopi.proactiveLinking":{type:"boolean",default:!1,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Proactive Linking",description:"Ingest new memories into the episodic graph as they are stored, linking them to related entities and memories",condition:"mnemopiActive"}},"mnemopi.noEmbeddings":{type:"boolean",default:!1,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Disable Embeddings",description:"Force deterministic FTS-only recall instead of vector embeddings",condition:"mnemopiActive"}},"mnemopi.embeddingModel":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Embedding Model",description:"Advanced: explicit embedding model id that overrides the variant. Leave empty to use mnemopi.embeddingVariant.",condition:"mnemopiActive"}},"mnemopi.embeddingApiUrl":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Embedding API URL",description:"Optional OpenAI-compatible embedding endpoint passed to Mnemopi",condition:"mnemopiActive"}},"mnemopi.embeddingApiKey":{type:"string",credential:!0,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Embedding API Key",description:"Optional embedding API key passed to Mnemopi",condition:"mnemopiActive"}},"mnemopi.embeddingQueryPrefix":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Embedding Query Prefix",description:"Text prepended to recall queries before embedding, for instruction-tuned embedders (Qwen3-Embedding, E5); stored memories are embedded unchanged",condition:"mnemopiActive"}},"mnemopi.embeddingInputType":{type:"boolean",default:!1,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Embedding Input Type",description:"Send input_type (query for recall, passage for stored memories) with embedding API requests; NVIDIA NIM asymmetric embedders require it",condition:"mnemopiActive"}},"mnemopi.llmMode":{type:"enum",default:"smol",values:["none","smol","remote"],ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi LLM Mode",description:"Use no LLM, the online tiny model (the TINY role from /models, else @smol), or a remote OpenAI-compatible endpoint",condition:"mnemopiActive",options:[{value:"none",label:"None",description:"Disable Mnemopi LLM-backed extraction"},{value:"smol",label:"Online (tiny)",description:"Use the online tiny model (the TINY role from /models, else @smol)"},{value:"remote",label:"Remote",description:"Use the Mnemopi remote LLM settings below"}]}},"mnemopi.llmBaseUrl":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi LLM Base URL",description:"Optional OpenAI-compatible LLM endpoint for Mnemopi remote mode",condition:"mnemopiActive"}},"mnemopi.llmApiKey":{type:"string",credential:!0,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi LLM API Key",description:"Optional LLM API key for Mnemopi remote mode",condition:"mnemopiActive"}},"mnemopi.llmModel":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi LLM Model",description:"Optional LLM model name for Mnemopi remote mode",condition:"mnemopiActive"}},"hindsight.apiUrl":{type:"string",default:"http://localhost:8888",ui:{tab:"memory",group:"Hindsight",label:"Hindsight API URL",description:"Hindsight server URL (Cloud or self-hosted)",condition:"hindsightActive"}},"hindsight.apiToken":{type:"string",credential:!0,ui:{tab:"memory",group:"Hindsight",label:"Hindsight API Token",description:"Bearer token for authenticated Hindsight servers",condition:"hindsightActive"}},"hindsight.bankId":{type:"string",ui:{tab:"memory",group:"Hindsight",label:"Hindsight Bank ID",description:"Memory bank identifier (default: project name)",condition:"hindsightActive"}},"hindsight.scoping":{type:"enum",default:"per-project-tagged",values:["global","per-project","per-project-tagged"],ui:{tab:"memory",group:"Hindsight",label:"Hindsight Scoping",description:"global = one shared bank; per-project = isolated bank per cwd; per-project-tagged = shared bank with project tags so global + project memories merge on recall",options:[{value:"global",label:"Global",description:"One shared bank — every project sees the same memories"},{value:"per-project",label:"Per project",description:"Isolated bank per cwd basename — projects cannot see each other's memories"},{value:"per-project-tagged",label:"Per project (tagged)",description:"Shared bank, retains tagged with project:<cwd>. Recall surfaces project + untagged global memories together"}],condition:"hindsightActive"}},"hindsight.globalScope":{type:"boolean",default:!1,ui:{tab:"memory",group:"Hindsight",label:"Hindsight Global Scope",description:"Let retain and learn take scope: global, which stores a memory without the project tag so every project recalls it. Needs global or per-project-tagged scoping",condition:"hindsightActive"}},"hindsight.autoRecall":{type:"boolean",default:!0,ui:{tab:"memory",group:"Hindsight",label:"Hindsight Auto Recall",description:"Recall memories on the first turn of each session",condition:"hindsightActive"}},"hindsight.autoRetain":{type:"boolean",default:!0,ui:{tab:"memory",group:"Hindsight",label:"Hindsight Auto Retain",description:"Retain transcript every N turns and at session boundaries",condition:"hindsightActive"}},"hindsight.retainMode":{type:"enum",default:"full-session",values:["full-session","last-turn"],ui:{tab:"memory",group:"Hindsight",label:"Hindsight Retain Mode",description:"full-session = upsert one document per session, last-turn = chunked",options:[{value:"full-session",label:"Full session",description:"Upsert one document per session (recommended)"},{value:"last-turn",label:"Last turn",description:"Chunked retention sliced by turn boundaries"}],condition:"hindsightActive"}},"hindsight.mentalModelsEnabled":{type:"boolean",default:!0,ui:{tab:"memory",group:"Hindsight",label:"Hindsight Mental Models",description:"Read curated reflect summaries (mental models) into developer instructions at boot. Loads existing models on the bank — does not write. Pair with hindsight.mentalModelAutoSeed to also auto-create the built-in seed set.",condition:"hindsightActive"}},"hindsight.mentalModelAutoSeed":{type:"boolean",default:!0,ui:{tab:"memory",group:"Hindsight",label:"Hindsight Mental Model Auto-Seed",description:"At session start, create any built-in mental models (project-conventions, project-decisions, user-preferences) that do not yet exist on the bank.",condition:"hindsightActive"}},"ttsr.enabled":{type:"boolean",default:!0,ui:{tab:"context",group:"Rules (TTSR)",label:"TTSR",description:"Interrupt the agent mid-stream when output matches rule patterns (Time-Traveling Stream Rules)"}},"ttsr.judge":{type:"enum",default:"auto",values:["auto","on","off"],ui:{tab:"context",group:"Rules (TTSR)",label:"Judged Rules",description:"Ask the judge model role each `question` rule about completed replies, reasoning, and tool calls; a yes injects the rule as a warning",options:[{value:"auto",label:"Auto",description:"Judge only when the judge role resolves to a native TypeSafe jev model"},{value:"on",label:"On",description:"Always judge, whichever model the judge role resolves to"},{value:"off",label:"Off",description:"Never judge; question rules stay inactive"}]}},"ttsr.contextMode":{type:"enum",default:"discard",values:["discard","keep"],ui:{tab:"context",group:"Rules (TTSR)",label:"TTSR Context Mode",description:"What to do with partial output when TTSR triggers"}},"ttsr.interruptMode":{type:"enum",default:"always",values:["never","prose-only","tool-only","always"],ui:{tab:"context",group:"Rules (TTSR)",label:"TTSR Interrupt Mode",description:"When to interrupt mid-stream vs inject warning after completion",options:[{value:"always",label:"always",description:"Interrupt on prose and tool streams"},{value:"prose-only",label:"prose-only",description:"Interrupt only on reply/thinking matches"},{value:"tool-only",label:"tool-only",description:"Interrupt only on tool-call argument matches"},{value:"never",label:"never",description:"Never interrupt; inject warning after completion"}]}},"ttsr.repeatMode":{type:"enum",default:"once",values:["once","after-gap"],ui:{tab:"context",group:"Rules (TTSR)",label:"TTSR Repeat Mode",description:"How rules can repeat: once per session or after a message gap"}},"ttsr.repeatGap":{type:"number",default:10,ui:{tab:"context",group:"Rules (TTSR)",label:"TTSR Repeat Gap",description:"Messages before a rule can trigger again",options:[{value:"5",label:"5 messages"},{value:"10",label:"10 messages"},{value:"15",label:"15 messages"},{value:"20",label:"20 messages"},{value:"30",label:"30 messages"}]}},"ttsr.builtinRules":{type:"boolean",default:!0,ui:{tab:"context",group:"Rules (TTSR)",label:"Built-in Rules",description:"Load the default rules shipped with the agent (override individually with ttsr.disabledRules)"}},"ttsr.disabledRules":{type:"array",default:[],ui:{tab:"context",group:"Rules (TTSR)",label:"Disabled Rules",description:"Rule names to ignore entirely (applies to bundled defaults and your own rules)"}},"edit.mode":{type:"enum",default:"hashline",values:["apply_patch","hashline","patch","replace","sloppy","magic","none"],ui:{tab:"files",group:"Editing",label:"Edit Mode",description:"Select the edit tool variant (replace, patch, hashline, or apply_patch); magic takes described changes that a fast model writes; none removes the edit tool and keeps bash enabled"}},"edit.magic.model":{type:"string",ui:{tab:"files",group:"Editing",label:"Magic Edit Model",description:"Model selector or role alias (@slow) for the model that applies magic-mode changes, empty = smol role"}},"edit.fuzzyMatch":{type:"boolean",default:!0,ui:{tab:"files",group:"Editing",label:"Fuzzy Match",description:"Accept high-confidence fuzzy matches for whitespace differences"}},"edit.fuzzyThreshold":{type:"number",default:0.95,ui:{tab:"files",group:"Editing",label:"Fuzzy Match Threshold",description:"Similarity threshold (0-1) for accepting fuzzy matches",options:[{value:"0.85",label:"0.85",description:"Lenient"},{value:"0.90",label:"0.90",description:"Moderate"},{value:"0.95",label:"0.95",description:"Default"},{value:"0.98",label:"0.98",description:"Strict"}]}},"edit.streamingAbort":{type:"boolean",default:!1,ui:{tab:"files",group:"Editing",label:"Abort on Failed Preview",description:"Abort streaming edit tool calls when patch preview fails"}},"edit.recoverInlineEdits":{type:"boolean",default:!0,ui:{tab:"files",group:"Editing",label:"Recover Inline Edit Payloads",description:"Execute edit payloads the model emits as plain text by converting them into edit tool calls"}},"edit.blockAutoGenerated":{type:"boolean",default:!0,ui:{tab:"files",group:"Editing",label:"Block Auto-Generated Files",description:"Prevent editing of files that appear to be auto-generated (protoc, sqlc, swagger, etc.)"}},"edit.enforceSeenLines":{type:"boolean",default:!0,ui:{tab:"files",group:"Editing",label:"Enforce Seen-Line Guard",description:"Reject edits anchored on lines a prior read/search never displayed in full"}},"edit.blackbox.enabled":{type:"boolean",default:!1,ui:{tab:"files",group:"Editing",label:"Record Parse Regressions",description:"Append full before/after source when an edit introduces an AST parse failure"}},"edit.autoRepair.enabled":{type:"boolean",default:!1,ui:{tab:"files",group:"Editing",label:"Auto-Repair Parse Regressions",description:"When an edit breaks a file's AST parse, ask the smol model to fix the broken region (validated by re-parse; falls back to a warning)"}},"tools.artifactSpillThreshold":{type:"number",default:50,ui:{tab:"tools",group:"Output Limits",label:"Artifact Spill Threshold (KB)",description:"Tool output above this size is saved as an artifact; tail is kept inline",options:[{value:"1",label:"1 KB",description:"~250 tokens"},{value:"2.5",label:"2.5 KB",description:"~625 tokens"},{value:"5",label:"5 KB",description:"~1.25K tokens"},{value:"10",label:"10 KB",description:"~2.5K tokens"},{value:"20",label:"20 KB",description:"~5K tokens"},{value:"30",label:"30 KB",description:"~7.5K tokens"},{value:"50",label:"50 KB",description:"Default; ~12.5K tokens"},{value:"75",label:"75 KB",description:"~19K tokens"},{value:"100",label:"100 KB",description:"~25K tokens"},{value:"200",label:"200 KB",description:"~50K tokens"},{value:"500",label:"500 KB",description:"~125K tokens"},{value:"1000",label:"1 MB",description:"~250K tokens"}]}},"tools.artifactTailBytes":{type:"number",default:20,ui:{tab:"tools",group:"Output Limits",label:"Artifact Tail Size (KB)",description:"Amount of tail content kept inline when output spills to artifact",options:[{value:"1",label:"1 KB",description:"~250 tokens"},{value:"2.5",label:"2.5 KB",description:"~625 tokens"},{value:"5",label:"5 KB",description:"~1.25K tokens"},{value:"10",label:"10 KB",description:"~2.5K tokens"},{value:"20",label:"20 KB",description:"Default; ~5K tokens"},{value:"50",label:"50 KB",description:"~12.5K tokens"},{value:"100",label:"100 KB",description:"~25K tokens"},{value:"200",label:"200 KB",description:"~50K tokens"}]}},"tools.artifactHeadBytes":{type:"number",default:20,ui:{tab:"tools",group:"Output Limits",label:"Artifact Head Size (KB)",description:"Amount of head content kept inline alongside the tail when output spills to artifact (middle elision). 0 disables — keep tail only.",options:[{value:"0",label:"0 KB",description:"Disabled; tail-only truncation"},{value:"1",label:"1 KB",description:"~250 tokens"},{value:"2.5",label:"2.5 KB",description:"~625 tokens"},{value:"5",label:"5 KB",description:"~1.25K tokens"},{value:"10",label:"10 KB",description:"~2.5K tokens"},{value:"20",label:"20 KB",description:"Default; ~5K tokens"},{value:"50",label:"50 KB",description:"~12.5K tokens"},{value:"100",label:"100 KB",description:"~25K tokens"},{value:"200",label:"200 KB",description:"~50K tokens"}]}},"tools.outputMaxColumns":{type:"number",default:768,ui:{tab:"tools",group:"Output Limits",label:"Output Column Cap",description:"Per-line byte cap for streaming tool outputs (bash, python, js eval) and `read`. Lines wider than this are ellipsis-truncated; remaining bytes up to the next newline are dropped. 0 disables.",options:[{value:"0",label:"Off",description:"No per-line cap"},{value:"256",label:"256",description:"Tight"},{value:"512",label:"512"},{value:"768",label:"768",description:"Default"},{value:"1024",label:"1024"},{value:"2048",label:"2048"},{value:"4096",label:"4096",description:"Loose"}]}},"tools.artifactTailLines":{type:"number",default:500,ui:{tab:"tools",group:"Output Limits",label:"Artifact Tail Lines",description:"Maximum lines of tail content kept inline when output spills to artifact",options:[{value:"50",label:"50 lines",description:"~250 tokens"},{value:"100",label:"100 lines",description:"~500 tokens"},{value:"250",label:"250 lines",description:"~1.25K tokens"},{value:"500",label:"500 lines",description:"Default; ~2.5K tokens"},{value:"1000",label:"1000 lines",description:"~5K tokens"},{value:"2000",label:"2000 lines",description:"~10K tokens"},{value:"5000",label:"5000 lines",description:"~25K tokens"}]}},"tools.artifactMaxBytes":{type:"number",default:16,ui:{tab:"tools",group:"Output Limits",label:"Artifact File Cap (MB)",description:"Maximum size of the artifact file saved for streaming tool output (bash, python, js eval). Larger output keeps its beginning (up to 3 MB) and its most recent remainder, with a truncation notice between them. 0 = unlimited.",options:[{value:"0",label:"Unlimited",description:"Save the complete output"},{value:"4",label:"4 MB"},{value:"16",label:"16 MB",description:"Default"},{value:"64",label:"64 MB"},{value:"256",label:"256 MB"},{value:"1024",label:"1 GB"}]}},readLineNumbers:{type:"boolean",default:!1,ui:{tab:"files",group:"Reading",label:"Line Numbers",description:"Prepend line numbers to read tool output by default"}},"read.defaultLimit":{type:"number",default:300,ui:{tab:"files",group:"Reading",label:"Default Read Limit",description:"Default number of lines returned when agent calls read without a limit",options:[{value:"200",label:"200 lines"},{value:"300",label:"300 lines"},{value:"500",label:"500 lines"},{value:"1000",label:"1000 lines"},{value:"5000",label:"5000 lines"}]}},"read.renderMarkdown":{type:"boolean",default:!1,ui:{tab:"files",group:"Reading",label:"Markdown Previews",description:"Render Markdown read results as formatted terminal Markdown previews instead of raw source"}},"read.summarize.enabled":{type:"boolean",default:!0,ui:{tab:"files",group:"Read Summaries",label:"Read Summaries",description:"Return structural code summaries when read is called without an explicit selector"}},"read.summarize.prose":{type:"boolean",default:!1,ui:{tab:"files",group:"Read Summaries",label:"Prose Summaries",description:"Return structural summaries for Markdown and plain text reads"}},"read.summarize.minBodyLines":{type:"number",default:4,ui:{tab:"files",group:"Read Summaries",label:"Read Summary Body Lines",description:"Minimum multiline body or literal length before read summaries collapse it"}},"read.summarize.minCommentLines":{type:"number",default:6,ui:{tab:"files",group:"Read Summaries",label:"Read Summary Comment Lines",description:"Minimum multiline block comment length before read summaries collapse it"}},"read.summarize.minTotalLines":{type:"number",default:100,ui:{tab:"files",group:"Read Summaries",label:"Read Summary Minimum File Length",description:"Files with fewer total lines are read verbatim instead of structurally summarized"}},"read.summarize.unfoldUntil":{type:"number",default:50,ui:{tab:"files",group:"Read Summaries",label:"Read Summary Unfold Target",description:"BFS-unfold elidable spans until the summary is at least this many visible lines. 0 keeps only the outermost elisions."}},"read.summarize.unfoldLimit":{type:"number",default:100,ui:{tab:"files",group:"Read Summaries",label:"Read Summary Unfold Ceiling",description:"Hard ceiling on summary size while BFS-unfolding. An unfold whose revealed lines would exceed this is skipped (that span stays folded) and unfolding continues with the remaining spans."}},"read.toolResultPreview":{type:"boolean",default:!1,ui:{tab:"files",group:"Reading",label:"Inline Read Previews",description:"Render read tool results inline in the transcript instead of summary rows"}},"tools.approval":{type:"record",default:{},ui:{tab:"interaction",group:"Approvals",label:"Tool Approval Policies",description:"Per-tool approval policies. Set to 'allow' to auto-approve, 'prompt' to require confirmation, or 'deny' to block. Overrides are honored in every approval mode."}},"tools.approvalMode":{type:"enum",default:"yolo",values:["always-ask","always-ask-cached","write","yolo"],ui:{tab:"interaction",group:"Approvals",label:"Tool Approval",description:"Default approval behavior for tool calls. 'Always ask' auto-approves read-only tools only. 'Ask and remember' also asks before file reads, and can remember a file or folder. 'Write' auto-approves read and workspace-write tools. 'Yolo' auto-approves all tiers; user policy may still prompt or block.",options:[{value:"always-ask",label:"Always ask",description:"Auto-approve read-only tools; require confirmation for write and exec tools."},{value:"always-ask-cached",label:"Ask and remember",description:"Ask before reading or writing a file, with answers that remember the file or its folder for this session or every session; require confirmation for exec tools."},{value:"write",label:"Write",description:"Auto-approve read-only and write tools; require confirmation for exec tools such as bash, eval, browser, and task."},{value:"yolo",label:"Yolo",description:"Auto-approve read, write, and exec tools. User policy can still require confirmation or block calls."}]}},"tools.restrictedFolders":{type:"array",default:[],ui:{tab:"interaction",group:"Approvals",label:"Restricted Folders",editor:"json",description:'Folders where every read, write, edit, search, or command needs an explicit approval, whatever the approval mode or a remembered grant. The folder and everything under it is restricted; commands are matched by the directory they run in. A JSON list of paths, e.g. ["~/secrets"].',condition:"restrictedFoldersNotProject"}},"todo.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Todos",description:"Enable the todo tool for task tracking"}},"todo.reminders":{type:"boolean",default:!0,ui:{tab:"tools",group:"Todos",label:"Todo Reminders",description:"Remind the agent to complete todos before stopping"}},"todo.remindersMax":{type:"number",default:3,ui:{tab:"tools",group:"Todos",label:"Todo Reminder Limit",description:"Maximum number of todo reminders before giving up",options:[{value:"1",label:"1 reminder"},{value:"2",label:"2 reminders"},{value:"3",label:"3 reminders"},{value:"5",label:"5 reminders"}]}},"todo.midRunNudges":{type:"enum",default:"capped",values:["off","capped","backoff"],ui:{tab:"tools",group:"Todos",label:"Mid-Run Todo Nudges",description:"How often a long turn is reminded to update its todo list while it keeps changing things",options:[{value:"off",label:"Off",description:"Never nudge mid-run"},{value:"capped",label:"Capped",description:"Nudge after 12 edits or commands, at most twice until the todo list changes or you send a message"},{value:"backoff",label:"Backoff",description:"Keep nudging with a doubling gap: after 12, 24, 48, 96, then every 192 edits or commands"}]}},"todo.eager":{type:"enum",default:"default",values:["default","preferred","always"],ui:{tab:"tools",group:"Todos",label:"Create Todos Automatically",description:"How strongly to push automatic todo-list creation after the first message",options:[{value:"default",label:"Default",description:"Model decides; no automatic todo list"},{value:"preferred",label:"Preferred",description:"Suggests a todo list on the first message (reminder, not forced)"},{value:"always",label:"Always",description:"Forces a comprehensive todo list on the first message"}]}},"todo.backend":{type:"string",default:"native",ui:{tab:"tools",group:"Todos",label:"Todo Backend",description:"Extension that the todo list is mirrored to; Native keeps it in the session only",options:"runtime"}},"tasks.todoClearDelay":{type:"number",default:60,ui:{tab:"tools",group:"Todos",label:"Todo Auto-Clear Delay",description:"Delay before completed or abandoned todos are removed from the todo widget",options:[{value:"0",label:"Instant"},{value:"60",label:"1 minute",description:"Default"},{value:"300",label:"5 minutes"},{value:"900",label:"15 minutes"},{value:"1800",label:"30 minutes"},{value:"3600",label:"1 hour"},{value:"-1",label:"Never"}]}},"glob.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Glob",description:"Enable the glob tool for glob-based file lookup"}},"grep.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Grep",description:"Enable the grep tool for regex content search"}},"grep.contextBefore":{type:"number",default:0,ui:{tab:"tools",group:"Grep & Browser",label:"Grep Context Before",description:"Lines of context before each grep match",options:[{value:"0",label:"0 lines"},{value:"1",label:"1 line"},{value:"2",label:"2 lines"},{value:"3",label:"3 lines"},{value:"5",label:"5 lines"}]}},"grep.contextAfter":{type:"number",default:0,ui:{tab:"tools",group:"Grep & Browser",label:"Grep Context After",description:"Lines of context after each grep match",options:[{value:"0",label:"0 lines"},{value:"1",label:"1 line"},{value:"2",label:"2 lines"},{value:"3",label:"3 lines"},{value:"5",label:"5 lines"},{value:"10",label:"10 lines"}]}},"astGrep.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"AST Grep",description:"Enable the ast_grep tool for structural AST search"}},"astEdit.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"AST Edit",description:"Enable the ast_edit tool for structural AST rewrites"}},"find.verifyModel":{type:"string",ui:{tab:"tools",group:"Find",label:"Find Verification Model",description:"Model selector (e.g. openrouter/liquid/d1-ultra) tried first for find's passage verification, before the judge role; filename and sketch ranking stay on the judge role. Unset: the judge role verifies too"}},"find.enabled":{type:"enum",default:"auto",values:["auto","on","off"],ui:{tab:"tools",group:"Available Tools",label:"Find (semantic grep)",description:"Enable the find tool: natural-language search for files and line ranges, judged by the judge model role. Auto enables it when the first usable judge is native",options:[{value:"auto",label:"Auto",description:"Enable when the first usable judge is native"},{value:"on",label:"On",description:"Always enable, whichever model the judge role resolves to"},{value:"off",label:"Off",description:"Disable the find tool"}]}},"debug.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Debug",description:"Enable the debug tool for DAP-based debugging"}},"launch.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Services",description:"Enable named bash services and proc:// supervision for shared long-running project processes"}},"speechgen.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Speech Generation",description:"Enable the tts tool for on-device (Phonon) or xAI Grok Voice speech-file synthesis"}},"generate_image.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Generate Image",description:"Enable the generate_image tool (text-to-image generation and editing). Mounted as a tool command when tools.commands is on."}},"computer.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Computer",description:"Enable the scriptable host-desktop eval prelude (screenshots, input, accessibility)"}},"ratchet.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Ratchet",description:"Enable the ratchet eval/hillclimb prelude; /ratchet turns it on for the current session"}},"archive.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Archive",description:"Enable the read-only archive eval prelude: prompt history, recent projects, past sessions and recaps"}},"commit.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Selective commit",description:"Enable the commit eval prelude and /commit: commit only the lines this agent and its subagents wrote"}},"computer.display":{type:"string",default:"active",ui:{tab:"tools",group:"Computer",label:"Computer Display",description:"Active window's display (active), all displays (all), or a native display id"}},"computer.maxWidth":{type:"number",default:3840,ui:{tab:"tools",group:"Computer",label:"Computer Screenshot Width",description:"Maximum screenshot width in pixels"}},"computer.maxHeight":{type:"number",default:2400,ui:{tab:"tools",group:"Computer",label:"Computer Screenshot Height",description:"Maximum screenshot height in pixels"}},"computer.takeover":{type:"enum",default:"fallback",values:["fallback","foreground","always","refuse"],ui:{tab:"tools",group:"Computer",label:"Computer Takeover",description:"When window input takes over (the real pointer and keyboard; your Escape stops it) instead of running in the background",options:[{value:"fallback",label:"Fallback",description:"Background first; a call whose background route is unavailable briefly brings the target forward, then returns focus to your app (on macOS even if you kept typing). The agent may also ask for takeover on a call"},{value:"foreground",label:"Foreground",description:"omp, never the agent, decides: take over input to a window already in front of you, and a call whose background route is unavailable; stay in the background otherwise"},{value:"always",label:"Always",description:"omp, never the agent, decides: take over every window and element input call, bringing the target forward for that call and then returning focus to your app"},{value:"refuse",label:"Refuse",description:"Never take over: a call whose background route is unavailable fails, and the agent's own takeover, raise, activating open, desktop input and macOS menus (context menus, popup and menu buttons; they take your keyboard while open) are refused too"}]}},"images.questionTimeoutMs":{type:"number",default:300000,ui:{tab:"tools",group:"Execution",label:"Image Question Timeout",description:"Per-request timeout for the vision-model call behind read's ?q= image questions, in milliseconds. A stalled provider fails fast with a timeout error instead of blocking until manual abort. Set to 0 to disable the timeout.",options:[{value:"0",label:"Disabled"},{value:"60000",label:"1 minute"},{value:"120000",label:"2 minutes"},{value:"180000",label:"3 minutes"},{value:"300000",label:"5 minutes"}]}},"checkpoint.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Checkpoint/Rewind",description:"Enable the checkpoint and rewind tools for context checkpointing"}},"fetch.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Read URLs",description:"Allow the read tool to fetch and process URLs"}},"vault.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Obsidian Vault",description:"Enable the vault:// internal URL for reading and editing Obsidian vault content via the Obsidian CLI. When disabled, vault:// resolution is refused and the vault:// entry is omitted from the system prompt."}},"github.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"GitHub CLI",description:"Enable the github tool (op-based dispatch for repository, issue, pull request, diff, search, checkout, push, and Actions watch workflows)"}},"github.cache.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"GitHub",label:"GitHub View Cache",description:"Cache rendered issue/PR view output in ~/.omp/cache/github-cache.db so repeated reads are free"}},"github.cache.softTtlSec":{type:"number",default:300,ui:{tab:"tools",group:"GitHub",label:"GitHub Cache Soft TTL",description:"Within this window, cached issue/PR view rows are returned directly (seconds; default 5 minutes)"}},"github.cache.hardTtlSec":{type:"number",default:604800,ui:{tab:"tools",group:"GitHub",label:"GitHub Cache Hard TTL",description:"Past the soft TTL the cached row is returned and refreshed in the background; past the hard TTL it is dropped (seconds; default 7 days)"}},"web_search.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Web Search",description:"Enable the web_search tool for live web results"}},"security.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Security",description:"Enable OMP-native security scan planning, execution, and the read-only security:// resource namespace"}},"ask.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Ask",description:"Enable the ask tool for interactive user questions"}},"out.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Out",description:"Let the agent reply mid-task by writing to out://, shown like a response without ending its turn. Unset: on in the interactive TUI, off in print, RPC, and ACP"}},"tools.intentTracing":{type:"boolean",default:!0,ui:{tab:"tools",group:"Execution",label:"Intent Tracing",description:"Ask the agent to describe the intent of each tool call before executing it. Unset: on in the interactive TUI, off in print, RPC, ACP, and SDK sessions"}},"tools.abortOnFabricatedResult":{type:"boolean",default:!0,ui:{tab:"tools",group:"Execution",label:"Abort On Fabricated Tool Result",description:"With in-band tool calls, stop the model immediately when it starts hallucinating a tool result mid-turn. Disable to let the model finish generating and discard the fabricated continuation instead."}},"tools.speculativeExecution.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Execution",label:"Experimental Speculative Execution",description:"Enable the discard-safe first slice: validated local reads through direct read calls and nested eval. Network requests, provider completions, and live filesystem writes are not part of this baseline."}},"tools.speculativeExecution.maxInFlight":{type:"number",default:2,ui:{tab:"tools",group:"Execution",label:"Speculative Execution Concurrency",description:"Maximum number of validated local reads allowed to run before normal dispatch.",options:[{value:"1",label:"1 operation"},{value:"2",label:"2 operations"},{value:"3",label:"3 operations"},{value:"4",label:"4 operations"}]}},"tools.maxTimeout":{type:"number",default:0,ui:{tab:"tools",group:"Execution",label:"Max Tool Timeout",description:"Maximum timeout in seconds the agent can set for any tool (0 = no limit)",options:[{value:"0",label:"No limit"},{value:"30",label:"30 seconds"},{value:"60",label:"60 seconds"},{value:"120",label:"120 seconds"},{value:"300",label:"5 minutes"},{value:"600",label:"10 minutes"}]}},"async.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Execution",label:"Async Execution",description:"Enable async bash commands and background task execution"}},"async.printWake":{type:"boolean",default:!1,ui:{tab:"tools",group:"Execution",label:"Wake Print Mode on Job Results",description:"In print mode (-p, --mode json), keep running after the last prompt while this run's background jobs are active, and start another turn in the same session with each job's result; exits once no job or result is pending. Off: print mode exits after its prompts and cancels running jobs"}},"async.widgets":{type:"boolean",default:!0,ui:{tab:"tools",group:"Execution",label:"Live Job Widgets",description:"Draw a live widget for each running background job (charts, bars, status grids derived from its output) in the wait card, the jobs pill and the jobs sheet, and caption long shell commands with one line on what they do. The `widget` model role (default: `smol`) writes one spec and at most one caption per job; updates need no further model calls"}},"tools.commands":{type:"boolean",default:!0,ui:{tab:"tools",group:"Discovery & MCP",label:"Tool Commands",description:"Mount rarely-used (discoverable) tools as bash commands with schema-derived `--help` instead of shipping their schemas on every request. Needs the bash tool: sessions without it keep every enabled tool top-level. Disable to expose every enabled tool top-level."}},"tools.commandDocs":{type:"enum",default:"catalog",values:["inline","builtins","catalog"],ui:{tab:"tools",group:"Discovery & MCP",label:"Tool Command Prompt Docs",description:"Choose which mounted commands get their `--help` text inlined in the system prompt. Built-ins keeps core tools inline while MCP and extension tools stay on demand.",options:[{value:"inline",label:"All Commands",description:"Inline help for every mounted command."},{value:"builtins",label:"Built-ins Only",description:"Inline built-in help; MCP and extension help on demand."},{value:"catalog",label:"Catalog Only",description:"List every command; run `--help` on demand."}]}},"tools.commandInline":{type:"array",default:[],ui:{tab:"tools",group:"Discovery & MCP",label:"Tool Command Inline Help",description:"When Tool Command Prompt Docs is Built-ins Only, also inline dynamic commands whose names match these glob patterns (for example mcp__context_mode_*). Catalog Only ignores this setting."}},"tools.commandNotices":{type:"boolean",default:!0,ui:{tab:"tools",group:"Discovery & MCP",label:"Tool Command Mount Notices",description:"Show a notice when MCP or extension tools are mounted or unmounted as commands; the model still learns of the change with its next prompt."}},"dev.autoqa":{type:"boolean",default:!0,ui:{tab:"tools",group:"Developer",label:"Auto QA",description:"Automated tool issue reporting (`report_issue`). On by default; the first report asks for consent, and denying it disables reporting until re-enabled explicitly"}},"dev.autoqaPush.endpoint":{type:"string",default:"https://qa.omp.sh/v1/grievances",ui:{tab:"tools",group:"Developer",label:"Auto QA Push Endpoint",description:"Full URL receiving Auto QA JSON reports (default https://qa.omp.sh/v1/grievances)"}},"lsp.enabled":{type:"boolean",default:!0,ui:{tab:"files",group:"LSP",label:"LSP",description:"Language-server integration: the lsp tool, diagnostics on write/edit, and format on write (--no-lsp disables for the run)"}},"lsp.lazy":{type:"boolean",default:!0,ui:{tab:"files",group:"LSP",label:"Lazy LSP Startup",description:"Start language servers on first use (lsp tool or editing a matching file type) instead of at session startup"}},"lsp.shared":{type:"boolean",default:!0,ui:{tab:"files",group:"LSP",label:"Shared Language Servers",description:"Start language servers through the per-project daemon broker. Each connection gets its own server. While another omp instance in the project is running, a released server stays warm and the next connection reuses it instead of cold-starting (falls back to private servers when unavailable)"}},"lsp.formatOnWrite":{type:"boolean",default:!1,ui:{tab:"files",group:"LSP",label:"Format on Write",description:"Automatically format code files using LSP after writing"}},"lsp.diagnosticsOnWrite":{type:"boolean",default:!0,ui:{tab:"files",group:"LSP",label:"Diagnostics on Write",description:"Return LSP diagnostics after writing code files"}},"lsp.diagnosticsOnEdit":{type:"boolean",default:!1,ui:{tab:"files",group:"LSP",label:"Diagnostics on Edit",description:"Return LSP diagnostics after editing code files"}},"lsp.diagnosticsDeduplicate":{type:"boolean",default:!0,ui:{tab:"files",group:"LSP",label:"Deduplicate Diagnostics",description:"Suppress post-edit LSP diagnostics already shown for a file; only surface new or changed ones"}},"lsp.requestTimeout":{type:"number",default:10,ui:{tab:"files",group:"LSP",label:"Request Timeout",description:"Seconds to wait for a language server's diagnostics, hover and other answers when the agent sets no timeout; late post-edit diagnostics wait at least this long. Raise it for servers that are slow on a cold start. The lsp tool's timeout argument can still raise or lower it per call",options:[{value:"10",label:"10 seconds",description:"Default"},{value:"20",label:"20 seconds"},{value:"30",label:"30 seconds"},{value:"60",label:"1 minute"},{value:"120",label:"2 minutes"},{value:"300",label:"5 minutes"}]}},"bash.enabled":{type:"boolean",default:!0,ui:{tab:"shell",group:"Bash",label:"Bash",description:"Enable the bash tool for shell command execution"}},"bash.allowCompoundCommands":{type:"boolean",default:!1,ui:{tab:"shell",group:"Bash",label:"Allow Compound Commands",description:"Evaluate literal && chains per command; unmatched commands use normal bash approval policy and mode"}},"bash.autoBackground.enabled":{type:"boolean",default:!0,ui:{tab:"shell",group:"Bash",label:"Bash Auto-Background",description:"Automatically background long-running bash commands and deliver the result later"}},"bash.gitGuard":{type:"boolean",default:!1,ui:{tab:"shell",group:"Bash",label:"Git Guard",description:"Refuse git commands that discard or move shared work in a repository's main checkout: stash, reset --hard or to another commit, and checkout/switch/restore outside a merge or rebase conflict. In a linked worktree they run, saving uncommitted changes they discard first"}},"bash.patterns":{type:"array",default:[],ui:{tab:"shell",group:"Bash",label:"Bash Approval Patterns",description:"Ordered bash command approval rules. Each item has match and approval fields; only '*' wildcards are supported."}},"bash.allowedEnvVars":{type:"array",default:[],ui:{tab:"shell",group:"Bash",label:"Bash Allowed Environment Variables",description:"Exact environment variable names allowed as leading KEY=VALUE prefixes when matching bash.patterns allow rules (no wildcards). Any value is accepted, so list only benign build/test variables; execution-altering variables (PATH, LD_PRELOAD, BASH_ENV, *_RUNNER, *_WRAPPER) allow arbitrary command execution."}},"bashInterceptor.enabled":{type:"boolean",default:!1,ui:{tab:"shell",group:"Bash",label:"Bash Interceptor",description:"Block shell commands that have dedicated tools"}},"bash.direnv":{type:"enum",default:"auto",values:["auto","off"],ui:{tab:"shell",group:"Bash",label:"direnv Auto-Load",description:"Auto-load a repo's direnv/devenv `.envrc` into the bash session so devenv tools and env vars are present without manual `direnv exec`. Honors direnv's allow list: an `.envrc` you haven't `direnv allow`ed is never executed"}},"bash.direnvLoadTimeoutMs":{type:"number",default:30000,ui:{tab:"shell",group:"Bash",label:"direnv Load Timeout (ms)",description:"Max wait for the first `direnv export` (a cold devenv shell can be slow); on timeout the session runs without the direnv env"}},"shellMinimizer.enabled":{type:"boolean",default:!0,ui:{tab:"shell",group:"Bash",label:"Shell Minimizer",description:"Compress verbose shell output (git, npm, cargo, etc.) before returning it to the agent"}},"shellMinimizer.sourceOutlineLevel":{type:"enum",default:"default",values:["default","aggressive"],ui:{tab:"shell",group:"Bash",label:"Shell Minimizer Source Outline",description:"Source outline mode for cat/read of source files: default or aggressive"}},"eval.py":{type:"boolean",default:!0,ui:{tab:"shell",group:"Eval & Runtimes",label:"Python Eval Backend",description:"Allow the eval tool to dispatch Python cells to the IPython kernel"}},"eval.js":{type:"boolean",default:!0,ui:{tab:"shell",group:"Eval & Runtimes",label:"JavaScript Eval Backend",description:"Allow the eval tool to dispatch JavaScript cells to the in-process runtime"}},"eval.autoProvision":{type:"boolean",default:!0,ui:{tab:"shell",group:"Eval & Runtimes",label:"Eval Environment Provisioning",description:"Automatically create the managed JavaScript eval package environment on first install"}},"eval.tools.enabled":{type:"boolean",default:!1,ui:{tab:"shell",group:"Eval & Runtimes",label:"Eval-Defined Tools",description:"Let eval cells define tools (@tool in Python, tool(fn) in JS) that task, agent(), and workpool() subagents can call"}},"eval.workpool.freshAgents":{type:"boolean",default:!1,ui:{tab:"shell",group:"Eval & Runtimes",label:"Fresh Workpool Agents",description:"Spawn a new subagent for every workpool item instead of reusing workers or batching queued items"}},"eval.autoBackground.enabled":{type:"boolean",default:!1,ui:{tab:"shell",group:"Eval & Runtimes",label:"Eval Auto-Background",description:"Automatically background long-running eval cells and deliver the result later"}},"python.kernelMode":{type:"enum",default:"session",values:["session","per-call"],ui:{tab:"shell",group:"Eval & Runtimes",label:"Python Kernel Mode",description:"Keep the IPython kernel alive across eval calls or start fresh each time"}},"python.interpreter":{type:"string",default:"",ui:{tab:"shell",group:"Eval & Runtimes",label:"Python Interpreter",description:"Optional path to an exact Python executable. When set, automatic Python runtime discovery is skipped."}},"task.isolation.enabled":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Isolation",label:"Allow Isolated Subagents",description:"Allow per-task isolation with `isolated: true`; tasks without it run in the shared checkout"}},"isolation.backend":{type:"enum",default:"auto",values:["auto","apfs","btrfs","zfs","reflink","overlayfs","projfs","block-clone","rcopy"],ui:{tab:"tasks",group:"Isolation",label:"Isolation Backend",description:"Backend used for subagent isolation and worktree cloning",options:[{value:"auto",label:"Auto",description:"Isolated subagents and `/wt` use ovnfs checkouts when ovnfs is found; otherwise (and for other worktrees) the PAL picks the best available backend"},{value:"apfs",label:"APFS",description:"macOS clonefile reflink (APFS)"},{value:"btrfs",label:"btrfs",description:"btrfs subvolume snapshot"},{value:"zfs",label:"ZFS",description:"ZFS snapshot + clone"},{value:"reflink",label:"Reflink",description:"Linux FICLONE per-file reflink"},{value:"overlayfs",label:"Overlayfs",description:"Linux kernel overlay (or fuse-overlayfs fallback)"},{value:"projfs",label:"ProjFS",description:"Windows Projected File System"},{value:"block-clone",label:"Block clone",description:"Windows FSCTL_DUPLICATE_EXTENTS_TO_FILE (NTFS/ReFS)"},{value:"rcopy",label:"Recursive copy",description:"git worktree if available, otherwise recursive copy"}]}},"worktree.clone":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Isolation",label:"Clone Checkout into Worktrees",description:"New worktrees from `github pr_checkout` and `git worktree add` in bash start as a copy-on-write clone of the current checkout so ignored build artifacts (node_modules, target) carry over; falls back to a plain checkout when the filesystem cannot clone"}},"worktree.cleanSource":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Isolation",label:"Clean Source Checkout on /wt",description:"When creating a worktree with `/wt`, reset tracked changes and remove untracked files from the original checkout after carrying them over"}},"worktree.onStart":{type:"enum",default:"off",values:["off","ask","create"],ui:{tab:"tasks",group:"Isolation",label:"Worktree on Start",description:"Whether fresh interactive sessions start in a new linked worktree",options:[{value:"off",label:"Off",description:"Start in the current checkout"},{value:"ask",label:"Ask",description:"Ask at session start"},{value:"create",label:"Create",description:"Always start in a new worktree on a `wt/*` branch"}]}},"worktree.onExit":{type:"enum",default:"keep",values:["keep","ask","remove","force"],ui:{tab:"tasks",group:"Isolation",label:"Worktree on Exit",description:"What to do on exit with worktrees created since omp started (on start or with `/wt`)",options:[{value:"keep",label:"Keep",description:"Leave worktrees in place"},{value:"ask",label:"Ask",description:"Ask on exit"},{value:"remove",label:"Remove",description:"Remove clean worktrees; ask when they have uncommitted changes or new commits. Gitignored files (e.g. `.env`) are deleted too"},{value:"force",label:"Force Remove",description:"Remove every worktree without asking, even with uncommitted changes. Uncommitted work, gitignored files (e.g. `.env`), and commits only on a detached HEAD are lost; new commits on the branch are kept"}]}},"task.isolation.apply":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Isolation",label:"Apply Isolated Changes",description:"Automatically apply successful isolated task changes to the parent checkout; disable to retain patch or branch artifacts"}},"ovnfs.path":{type:"string",ui:{tab:"tasks",group:"Isolation",label:"ovnfs Binary",description:"ovnfs executable; unset looks for `ovnfs` on PATH. When it is found, ovnfs checkouts (copy-on-write views of a folder, ready in about a second at any size) serve every separate copy: the system prompt tells agents to open checkouts instead of git worktrees or copies, and with `isolation.backend` on auto, isolated subagents (when allowed) run in checkouts instead of native clones and `/wt` moves the session into a checkout instead of a linked worktree"}},"task.isolation.merge":{type:"enum",default:"patch",values:["patch","branch"],ui:{tab:"tasks",group:"Isolation",label:"Isolation Merge Strategy",description:"How isolated task changes are integrated (patch apply or branch merge)",options:[{value:"patch",label:"Patch",description:"Combine diffs and git apply"},{value:"branch",label:"Branch",description:"Commit per task, merge with --no-ff"}]}},"task.isolation.commits":{type:"enum",default:"generic",values:["generic","ai"],ui:{tab:"tasks",group:"Isolation",label:"Isolation Commit Style",description:"Commit message style for nested repo changes (generic or AI-generated)",options:[{value:"generic",label:"Generic",description:"Static commit message"},{value:"ai",label:"AI",description:"AI-generated commit message from diff"}]}},"worktree.base":{type:"string",ui:{tab:"tasks",group:"Isolation",label:"Worktree Base Directory",description:"Base directory for agent-managed worktrees — task-isolation copies, `github` PR checkouts, and `omp worktree` cleanup all live here. Unset uses ~/.omp/wt. Must be an absolute or ~-relative path; relative paths are ignored. The OMP_WORKTREE_DIR env var overrides this."}},"task.eager":{type:"enum",default:"default",values:["default","preferred","always"],ui:{tab:"tasks",group:"Subagents",label:"Prefer Task Delegation",description:"How strongly to push the main agent to delegate work; subagents keep the model's own policy",options:[{value:"default",label:"Default",description:"Uses the selected model's policy; some models require an explicit delegation request"},{value:"preferred",label:"Preferred",description:"Adds delegation guidance to the system prompt"},{value:"always",label:"Always",description:"Prompt guidance plus a first-turn delegation reminder"}]}},"task.autoParallel":{type:"enum",default:"off",values:["off","suggest","on"],ui:{tab:"tasks",group:"Subagents",label:"Auto Parallel",description:"Ask the native judge resolved through the 'judge' role which parts of each new top-level prompt can run concurrently. Needs a native judge and the task tool; without them nothing is judged.",options:[{value:"off",label:"Off",description:"Never split prompts"},{value:"suggest",label:"Suggest",description:"Judge each prompt and report the split without acting on it"},{value:"on",label:"On",description:"When a prompt splits into independent subtasks, tell the agent to delegate them in parallel"}]}},"task.batch":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Subagents",label:"Batch Task Calls",description:"Switch the task tool to its batch shape: one call carries { context, tasks[] } — one subagent per item, with an optional per-item agent (defaulting to the session spawn-policy agent), per-item isolation, and a required shared context prepended to every assignment. With async.enabled=true, each spawn runs as an independent background agent with the normal idle/parked lifecycle; otherwise the call blocks for merged results. Disable to restore the flat single-spawn schema."}},"task.steps":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Subagents",label:"Sequential Task Steps",description:"Spawns take ordered `steps` instead of one `task`: the subagent gets the first step, then each next one once it finishes the previous; past 4 steps, earlier messages carry two or more. The last step's result is the task's result."}},"task.structured":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Subagents",label:"Structured Task Results",description:"Expose outputSchema/schemaMode on the task tool and honor agent output schemas; a subagent with a schema returns its result through the yield tool, validated against it. Off: task subagents ignore schemas, except agents whose definition sets structured: true. A subagent without a schema has no yield tool and returns its final message. Eval agent()/workpool spawns always honor schemas."}},"task.speculativeLaunch":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Subagents",label:"Speculative Task Launch",description:"Start each batch subagent as soon as its tasks[] item finishes streaming instead of waiting for the whole task call. Launched agents are aborted if the finished call fails validation, is blocked, or its arguments change. Requires auto-allowed task approval and no extension tool lifecycle handlers."}},"task.enableEffort":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Subagents",label:"Per-Task Effort",description:"Expose the optional effort parameter on task spawns, allowing callers to override each subagent's thinking level"}},"task.perCallModel":{type:"enum",default:"off",values:["off","eval","on"],ui:{tab:"tasks",group:"Subagents",label:"Per-Call Model",description:"Whether a subagent call may pick its model with one exact provider/model-id[@upstream][:level] selector. An @upstream pin is part of the model identity and is supported only by aggregators. Only models the configuration already routes to are accepted. Project settings can turn it off but not on, and never approve a model.",options:[{value:"off",label:"Off",description:"Reject `model` on task items and eval agent()/workpool()"},{value:"eval",label:"Eval only",description:"Accept `model` in eval agent() and workpool() only"},{value:"on",label:"On",description:"Accept `model` on task items and in eval agent()/workpool()"}]}},"task.perCallModelAllow":{type:"array",default:[],ui:{tab:"tasks",group:"Subagents",label:"Per-Call Model Allowlist",editor:"json",condition:"perCallModelAllowNotProject",description:"Exact selectors: `provider/model-id`, including `@upstream` only for a pinned OpenRouter/Vercel route (e.g. `openrouter/x@y`). When set, a per-call model must also be listed here. Empty: every model the configuration grants. A project list can only narrow this one."}},"task.maxConcurrency":{type:"number",default:32,ui:{tab:"tasks",group:"Subagents",label:"Max Concurrent Tasks",description:"Maximum number of subagents running concurrently",options:[{value:"0",label:"Unlimited"},{value:"1",label:"1 task"},{value:"2",label:"2 tasks"},{value:"4",label:"4 tasks"},{value:"8",label:"8 tasks"},{value:"16",label:"16 tasks"},{value:"32",label:"32 tasks"},{value:"64",label:"64 tasks"}]}},"task.workerThreads":{type:"number",default:4,ui:{tab:"tasks",group:"Subagents",label:"Subagent Worker Threads",description:"Maximum worker threads for subagents. Up to 8 concurrent subagents run on the main thread; at 9 one worker joins, and one more each time the count doubles (18, 36, 72). Workers stop a minute after no subagent is live in them; 0 keeps every subagent on the main thread",options:[{value:"0",label:"Main thread only"},{value:"1",label:"Up to 1 worker"},{value:"2",label:"Up to 2 workers"},{value:"4",label:"Up to 4 workers",description:"Default"},{value:"8",label:"Up to 8 workers"}]}},"task.enableLsp":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Subagents",label:"LSP Edit Checks in Subagents",description:"Run LSP formatting and diagnostics on subagent edits. Off by default to keep subagents cheap; the lsp tool stays available to them either way."}},"task.crossInstance":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Subagents",label:"Cross-Instance Agent Messaging",description:"Let other omp instances in this folder read agent outputs and send messages that can wake agents"}},"task.maxRecursionDepth":{type:"number",default:2,ui:{tab:"tasks",group:"Subagents",label:"Max Task Recursion",description:"How many levels deep subagents can spawn their own subagents",options:[{value:"-1",label:"Unlimited"},{value:"0",label:"None"},{value:"1",label:"Single"},{value:"2",label:"Double"},{value:"3",label:"Triple"}]}},"task.maxRuntimeMs":{type:"number",default:0,ui:{tab:"tasks",group:"Subagents",label:"Max Subagent Runtime",description:"Hard wall-clock limit per subagent (ms). 0 disables it. Defense-in-depth against provider-side stream hangs that escape the inference-layer watchdog; triggers a normal subagent abort with a 'timed out' reason.",options:[{value:"0",label:"Unlimited",description:"Default"},{value:"300000",label:"5 minutes"},{value:"900000",label:"15 minutes"},{value:"1800000",label:"30 minutes"},{value:"3600000",label:"1 hour"}]}},"task.completionProbe":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Subagents",label:"Subagent Completion Probe",description:"Ask a working subagent, through a cached side request like /btw, to estimate how complete its task is: after 2, 5, 10 and 30 more minutes, then hourly. The estimate shows next to the subagent in wait and task views. Only subagents spawned by the main agent of an interactive session are asked; print, RPC, ACP and SDK runs never probe."}},"task.agentIdleTtlMs":{type:"number",default:420000,ui:{tab:"tasks",group:"Subagents",label:"Agent Idle TTL",description:"How long an idle subagent stays live in memory before being parked to disk (ms). Parked agents are revived automatically when messaged or resumed. 0 keeps idle agents live until exit."}},"task.softRequestBudget":{type:"number",default:200,ui:{tab:"tasks",group:"Subagents",label:"Soft Subagent Request Budget",description:"Soft per-subagent request budget (assistant requests per run). Crossing it injects a wrap-up steering notice (see task.softRequestBudgetNotice); at 1.5x the budget the run is force-stopped and the agent must hand back its partial findings. 0 disables the guard. Bundled scout/sonic agents cap out at a lower built-in budget, so a value below that cap still applies to them. A task.agentSoftRequestBudget entry replaces this budget for the agent it names.",options:[{value:"0",label:"Disabled"},{value:"90",label:"90 requests"},{value:"150",label:"150 requests"},{value:"200",label:"200 requests",description:"Default"}]}},"task.softRequestBudgetNotice":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Subagents",label:"Soft Request Budget Notice",description:"Inject one steering notice when a subagent crosses its soft request budget, asking it to wrap up before the 1.5x forced-yield stop."}},"task.maxEffort":{type:"enum",default:"max",values:["minimal","low","medium","high","xhigh","max"],ui:{tab:"tasks",group:"Subagents",label:"Maximum Per-Spawn Effort",description:"Maximum reasoning effort allowed for the task tool's per-spawn effort hint or a per-call model. An explicit `:level` is clamped to the highest supported effort at or below this ceiling, and an omitted `:level` inherits the agent's thinking level capped at this value; cold revival re-applies the cap. Unset, `:inherit` and `:off` keep their existing meaning. A per-call model must support an effort at or below this ceiling; the default preserves the model's full range.",options:[{value:"minimal",label:"min",description:"Very brief reasoning (~1k tokens)"},{value:"low",label:"low",description:"Light reasoning (~2k tokens)"},{value:"medium",label:"medium",description:"Moderate reasoning (~8k tokens)"},{value:"high",label:"high",description:"Deep reasoning (~16k tokens)"},{value:"xhigh",label:"xhigh",description:"Extended reasoning (~32k tokens)"},{value:"max",label:"max",description:"Maximum reasoning the model supports"}]}},"task.prewalk":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Subagents",label:"Generic Task Prewalk",description:"Arm prewalk for the bundled generic `task` subagent: it starts on its resolved model, plans and begins the implementation, then hands off to the 'smol' role at its first edit/write. Per-agent overrides (task.agentPrewalk, configured from the /agents hub) and user agent `prewalk` frontmatter apply regardless of this toggle."}},"task.showResolvedModelBadge":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Show Resolved Model Badge",description:"Display the actual model ID used by each subagent in the task widget status line"}},"plan.enabled":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Modes",label:"Plan Mode",description:"Enable plan mode for read-only exploration and planning before execution"}},"plan.defaultOnStartup":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Modes",label:"Start in Plan Mode",description:"Automatically enter plan mode at the start of every new session",condition:"planModeEnabled"}},"plan.autosave":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Modes",label:"Autosave Plans",description:"Automatically save approved plans to disk when plan mode completes",condition:"planModeEnabled"}},"plan.autosaveDir":{type:"string",ui:{tab:"tasks",group:"Modes",label:"Autosave Directory",description:"Directory for autosaved plans. Supports ~, absolute, and cwd-relative paths. Empty uses <project>/.omp/plans/.",condition:"planAutosaveEnabled"}},"goal.enabled":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Modes",label:"Goal Mode",description:"Enable per-session goal mode and the hidden goal tool"}},"goal.statusInFooter":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Modes",label:"Goal Status in Footer",description:"Show token budget alongside the goal indicator in the status line"}},"goal.continuationModes":{type:"array",default:["interactive"],ui:{tab:"tasks",group:"Modes",label:"Goal Continuation Modes",description:'Run modes where active goals may auto-continue between turns ("interactive", "rpc")'}},"title.icons":{type:"enum",default:"nf+emoji",values:["nf+emoji","emoji","boring"],ui:{tab:"appearance",group:"Display",label:"Title Icons",description:"Icon and short code that head new generated or /rename session titles",options:[{value:"nf+emoji",label:"Nerd Font + Emoji",description:"Nerd Font glyph where the Nerd Font symbol preset renders it, else the emoji (default)"},{value:"emoji",label:"Emoji",description:"Always the emoji"},{value:"boring",label:"Boring",description:"Plain title: no icon or code"}]}},"title.generator":{type:"enum",default:"fork",values:["fork","tiny"],ui:{tab:"tasks",group:"Modes",label:"Title Generator",description:"What names an untitled session from the user's messages",options:[{value:"fork",label:"Fork",description:"A side turn of the reply on the session's model: reads its prompt cache, adds the card icon (default)"},{value:"tiny",label:"Tiny",description:"The title model role only; plain titles without a card"}]}},"title.refreshOnReplan":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Modes",label:"Refresh Title on Replan",description:"Refresh generated session titles after todo init replans unless the title was set by the user"}},"title.refreshAfterPrompts":{type:"number",default:0,ui:{tab:"tasks",group:"Modes",label:"Refresh Title After Prompts",description:"Every this many operator prompts, ask the judge model whether a generated session title still fits the conversation, and regenerate it if not",options:[{value:"0",label:"Off",description:"Default"},{value:"1",label:"Every prompt"},{value:"3",label:"Every 3 prompts"},{value:"5",label:"Every 5 prompts"},{value:"10",label:"Every 10 prompts"}]}},"skills.registryUrl":{type:"string",default:"https://skills.omp.sh",ui:{tab:"interaction",group:"Skills",label:"Skill Registry",description:"Skillshare registry used by `omp skill` to install, search, and publish skills (https://host[:port])"}},"skills.enableSkillCommands":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Commands & Skills",label:"Skill Commands",description:"Register skills as /skill:name commands"}},"commands.enableClaudeUser":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Commands & Skills",label:"Claude User Commands",description:"Load commands from ~/.claude/commands/"}},"commands.enableClaudeProject":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Commands & Skills",label:"Claude Project Commands",description:"Load commands from .claude/commands/"}},"commands.enableOpencodeUser":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Commands & Skills",label:"OpenCode User Commands",description:"Load commands from ~/.config/opencode/commands/"}},"commands.enableOpencodeProject":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Commands & Skills",label:"OpenCode Project Commands",description:"Load commands from .opencode/commands/"}},"extensionHandlers.toolCallTimeoutMs":{type:"number",default:30000,ui:{tab:"tools",group:"Extensions",label:"Tool Call Handler Timeout (ms)",description:"Positive finite active-work timeout for extension tool_call handlers; invalid values use 30000ms, and time awaiting OMP-owned dialogs does not count"}},"extensionHandlers.modeControl":{type:"boolean",default:!0,ui:{tab:"tools",group:"Extensions",label:"Extension Mode Control",description:"Let extensions enter and exit plan, vibe, goal, and loop modes via ctx.sessionModes.set(); reading mode state stays available"}},"extensionRenderers.assistantText":{type:"boolean",default:!1,ui:{tab:"tools",group:"Extensions",label:"Extension Reply Renderers",description:"Let extensions change how assistant replies are drawn, redraw a reply in place, and receive clicks on their own links; the session, exports and model context keep the reply as written"}},"extensionRenderers.transcriptPresenters":{type:"boolean",default:!1,ui:{tab:"tools",group:"Extensions",label:"Extension Transcript Presenters",description:"Let extensions draw transcript blocks such as tool calls in full, as one compact row, or hidden; the session, exports and model context are unchanged"}},"exa.enabled":{type:"boolean",default:!0,ui:{tab:"providers",group:"Services",label:"Exa",description:"Enable the Exa web search provider"}},"exa.searchDelayMs":{type:"number",default:1000,ui:{tab:"providers",group:"Services",label:"Exa Search Delay",description:"Minimum delay between Exa web search requests in milliseconds; set 0 to disable pacing"}},"searxng.endpoint":{type:"string",ui:{tab:"providers",group:"Services",label:"SearXNG Endpoint",description:"Base URL of a self-hosted SearXNG instance used for web search"}},"browser.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Browser",description:"Enable the browser eval prelude for scripted browser automation"}},"browser.cdpUrl":{type:"string",ui:{tab:"tools",group:"Grep & Browser",label:"Browser CDP URL",description:"Default HTTP CDP discovery endpoint (for example http://127.0.0.1:9222) to attach to instead of launching a browser. An explicit app on the tool call takes precedence."}},"browser.relay":{type:"boolean",default:!1,ui:{tab:"tools",group:"Grep & Browser",label:"Browser Relay",description:'Drive your own Chrome tabs through the omp browser relay. Install the extension once (`omp browser-relay install`); its native host serves the relay while Chrome runs. Takes precedence over Browser CDP URL; set PI_BROWSER_RELAY=0 or PI_BROWSER_RELAY=1 to override, or PI_BROWSER_RELAY=only to make it the only browser (sessions started from the extension\'s side panel). Subagents skip it unless an open passes app: "relay" or the relay is the only browser.'}},"browser.relayUrl":{type:"string",ui:{tab:"tools",group:"Grep & Browser",label:"Browser Relay URL",description:"Override local browser relay discovery, for example to reach a relay forwarded from another machine."}},"browser.headless":{type:"boolean",default:!0,ui:{tab:"tools",group:"Grep & Browser",label:"Headless Browser",description:"Run the browser without a window (disable to show it). omp's WebKit tabs gain or lose their windows at once where the engine ships its viewer (macOS); elsewhere a visible browser is Chromium, launched in the new mode by the next open."}},"browser.cmux":{type:"boolean",default:!0,ui:{tab:"tools",group:"Grep & Browser",label:"cmux Browser",description:"Use cmux WKWebView surfaces for browser automation when a cmux socket is available (not for subagents). Set PI_BROWSER_CMUX=0 or PI_BROWSER_CMUX=1 to override."}},"browser.tern":{type:"boolean",default:!0,ui:{tab:"tools",group:"Grep & Browser",label:"Tern Browser",description:`Inside a Tern pane, open browser tabs as picture-in-pictures over omp's pane (native web view) instead of omp's own headless browser; falls back to that browser when no Tern window can host them. Subagents skip it unless an open passes app: "tern". An explicit app, the relay and Browser CDP URL take precedence; app "own" opts one open out. Set PI_BROWSER_TERN=0 or PI_BROWSER_TERN=1 to override.`}},"browser.webkit":{type:"boolean",default:!0,ui:{tab:"tools",group:"Grep & Browser",label:"WebKit Browser",description:`Open browser tabs in omp's own headless WebKit engine instead of managed Chromium when the engine is installed (omp downloads it to ~/.o2/lib/abkit before Chrome for Testing when no browser is installed; see Browser WebKit Path). Chromium still opens a visible browser where the engine ships no viewer, and tabs the engine fails to start; an explicit app, the relay, Browser CDP URL, Tern and cmux take precedence; app "chromium" opts one open out. Set PI_BROWSER_WEBKIT=0 or PI_BROWSER_WEBKIT=1 to override.`}},"browser.webkitPath":{type:"string",ui:{tab:"tools",group:"Grep & Browser",label:"Browser WebKit Path",description:"omp's WebKit engine: its host executable, or an ABKit engine directory (which holds it as ABHost; ABHost.exe on Windows). If unset, omp runs the installed engine, ~/.o2/lib/abkit/ABHost (ABHost.exe on Windows). Supports ~. PI_BROWSER_WEBKIT_PATH overrides it."}},"browser.freezeOnTurnEnd":{type:"boolean",default:!0,ui:{tab:"tools",group:"Grep & Browser",label:"Freeze Browser Tabs On Turn End",description:"Freeze OMP-owned headless Chromium tabs when a turn settles so animated pages stop burning CPU/GPU while idle (WebKit tabs draw nothing unless asked). Tabs unfreeze automatically on next use; pass persist:true on open to opt a tab out."}},"browser.idleCloseSec":{type:"number",default:1800,ui:{tab:"tools",group:"Grep & Browser",label:"Browser Idle Close Timeout",description:"Close OMP-owned headless browser tabs and Tern browser picture-in-pictures idle longer than this many seconds (0 = never; session dispose still reaps). Never touches relay/CDP/spawned browsers or other sessions' tabs.",options:[{value:"0",label:"Never"},{value:"900",label:"15 minutes"},{value:"1800",label:"30 minutes"},{value:"3600",label:"1 hour"}]}},"browser.screenshotDir":{type:"string",ui:{tab:"tools",group:"Grep & Browser",label:"Screenshot Directory",description:"Directory to save screenshots. If unset, screenshots go to a temp file. Supports ~. Examples: ~/Downloads, ~/Desktop, /sdcard/Download (Android)"}},"disassembler.backend":{type:"enum",default:"auto",values:["auto","ghidra","ida","binja","none"],ui:{tab:"tools",group:"Available Tools",label:"Disassembler",description:"Backend for analysis selectors in read and eval's dsm namespace; bare executable reads show metadata only. Auto uses IDA Pro when installed, else Ghidra (downloaded on first analysis); Binary Ninja is used only when selected",options:[{value:"auto",label:"Auto",description:"IDA Pro when an install with idalib is found, otherwise Ghidra; never Binary Ninja"},{value:"ghidra",label:"Ghidra",description:"Ghidra via PyGhidra; provisions Ghidra 12.2, a JDK 25 and PyGhidra on first analysis when not installed"},{value:"ida",label:"IDA Pro",description:"IDA Pro via idalib; analysis disabled when no install is found"},{value:"binja",label:"Binary Ninja",description:"Binary Ninja via its headless Python API (needs a headless-capable licence); never chosen by Auto; analysis disabled when no install is found"},{value:"none",label:"None",description:"Executable metadata only; analysis disabled"}]}},"disassembler.maxOpen":{type:"number",default:4,ui:{tab:"tools",group:"Disassembler",label:"Max Open Databases",description:"Most databases open at once per project (each is a disasm unit in omp ps, labelled with its backend and binary); opening another evicts an unreferenced idle one. Close retained dsm handles when done",options:[{value:"2",label:"2"},{value:"4",label:"4"},{value:"8",label:"8"},{value:"16",label:"16"}]}},"disassembler.idleCloseSec":{type:"number",default:900,ui:{tab:"tools",group:"Disassembler",label:"Idle Close Timeout",description:"Save and close unreferenced databases idle longer than this many seconds (0 = never); retained dsm handles stay open. The exec namespace resets on reopen",options:[{value:"0",label:"Never"},{value:"300",label:"5 minutes"},{value:"900",label:"15 minutes"},{value:"1800",label:"30 minutes"},{value:"3600",label:"1 hour"}]}},"ida.python":{type:"string",default:"",ui:{tab:"tools",group:"IDA Pro",label:"IDA Python",description:"Python interpreter that can import ida_domain and idapro; empty auto-detects"}},"ida.installDir":{type:"string",default:"",ui:{tab:"tools",group:"IDA Pro",label:"IDA Install Dir",description:"Directory containing libidalib, exported as IDADIR; empty auto-detects ($IDADIR, ida-config.json, standard install paths)"}},"ghidra.installDir":{type:"string",default:"",ui:{tab:"tools",group:"Ghidra",label:"Ghidra Install Dir",description:"Ghidra 12+ install directory (contains Ghidra/application.properties); empty uses $GHIDRA_INSTALL_DIR, Homebrew, else a managed download under ~/.omp/ghidra"}},"ghidra.python":{type:"string",default:"",ui:{tab:"tools",group:"Ghidra",label:"Ghidra Python",description:"Python interpreter that can import pyghidra; empty uses a managed venv built from the install's bundled wheels"}},"binja.installDir":{type:"string",default:"",ui:{tab:"tools",group:"Binary Ninja",label:"Binary Ninja Install Dir",description:"Directory containing the Binary Ninja core library, or the macOS .app bundle; empty uses $BN_INSTALL_DIR, the lastrun file in the Binary Ninja user folder, then the default install locations"}},"binja.python":{type:"string",default:"",ui:{tab:"tools",group:"Binary Ninja",label:"Binary Ninja Python",description:"Python 3 interpreter that can load the Binary Ninja API from the install's python directory; empty auto-detects"}},"mcp.enableProjectConfig":{type:"boolean",default:!0,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Project Config",description:"Load .mcp.json/mcp.json from project root"}},"mcp.startupTimeoutMs":{type:"number",default:250,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Startup Window",description:"Wait this many milliseconds for initial MCP tool discovery; 0 waits until connections settle"}},"mcp.shared":{type:"boolean",default:!0,ui:{tab:"tools",group:"Discovery & MCP",label:"Shared MCP Servers",description:"Run MCP servers through the daemon so every omp instance shares one process per server and a cached tool catalog. Servers that hold a session keep one process per instance (falls back to private servers when unavailable)"}},"mcp.idleStopMinutes":{type:"number",default:5,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Idle Stop",description:"Stop a shared MCP server after this many minutes without use; it restarts on the next request"}},"mcp.evalNamespaces":{type:"boolean",default:!1,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Eval Namespaces",description:"Expose each MCP server as an eval global (github.create_issue(...)) instead of top-level tools or tool commands"}},"mcp.builtinTransforms":{type:"boolean",default:!0,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Built-in Transforms",description:"Skip recognized MCP servers that omp's own tools replace (Codex's node_repl while eval runs JavaScript)"}},"mcp.renderMarkdownResults":{type:"boolean",default:!0,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Markdown Results",description:"Render non-JSON MCP text results as Markdown in the transcript"}},"mcp.notifications":{type:"boolean",default:!1,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Update Injection",description:"Inject MCP resource updates into the agent conversation"}},"mcp.notificationDebounceMs":{type:"number",default:500,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Notification Debounce",description:"Debounce window in milliseconds for MCP resource updates before injecting them into the conversation"}},"images.urls.enabled":{type:"boolean",default:!1,ui:{tab:"model",group:"Vision",label:"Serve Images as URLs",description:"Publish outgoing images through the configured backend chain and send URL-fetching providers short URLs instead of inline base64. Falls back to inline automatically when every backend or a provider fetch fails"}},"images.urls.backends":{type:"array",default:["provider-files","tailscale","cloudflared","litterbox"],ui:{tab:"model",group:"Vision",label:"Image URL Backends",description:"Ordered destinations tried when publishing images for provider access",options:[{value:"imgur",label:"Imgur",description:"Uploads require either an Imgur access token or client ID."},{value:"imageshack",label:"ImageShack",description:"The API requires a paid subscription."},{value:"flickr",label:"Flickr",description:"image-host"},{value:"chevereto",label:"Chevereto",description:"self-hosted"},{value:"vgyme",label:"vgy.me",description:"image-host"},{value:"dropbox",label:"Dropbox",description:"cloud-files"},{value:"ftp",label:"FTP / FTPS / SFTP",description:"file-transfer"},{value:"onedrive",label:"OneDrive",description:"cloud-files"},{value:"google-drive",label:"Google Drive",description:"cloud-files"},{value:"puush",label:"puush-compatible endpoint",description:"The public service is defunct; a replacement endpoint is required."},{value:"box",label:"Box",description:"cloud-files"},{value:"amazon-s3",label:"Amazon S3",description:"s3"},{value:"google-cloud-storage",label:"Google Cloud Storage",description:"object-storage"},{value:"azure-storage",label:"Azure Blob Storage",description:"object-storage"},{value:"backblaze-b2",label:"Backblaze B2",description:"Configure either native B2 application keys or S3-compatible access keys."},{value:"owncloud",label:"ownCloud / Nextcloud",description:"webdav"},{value:"mediafire",label:"MediaFire-compatible endpoint",description:"The public API is deprecated; a replacement endpoint is required."},{value:"sendspace",label:"SendSpace-compatible endpoint",description:"The public discovery API is deprecated; a replacement endpoint is required."},{value:"localhostr",label:"Hostr-compatible endpoint",description:"The public service is offline; a replacement endpoint is required."},{value:"lambda",label:"Lambda-compatible endpoint",description:"The public service is offline; a replacement endpoint is required."},{value:"pomf",label:"Pomf",description:"pomf"},{value:"uguu",label:"Uguu",description:"Public uploads expire after approximately three hours."},{value:"seafile",label:"Seafile",description:"cloud-files"},{value:"s-ul",label:"s-ul",description:"file-host"},{value:"lobfile",label:"LobFile-compatible endpoint",description:"The public service is offline; a replacement endpoint is required."},{value:"transfer-sh",label:"transfer.sh-compatible endpoint",description:"The defunct public endpoint is blocked; a self-hosted replacement is required."},{value:"plik",label:"Plik",description:"self-hosted"},{value:"shared-folder",label:"Shared folder",description:"filesystem"},{value:"catbox",label:"Catbox",description:"anonymous-host"},{value:"litterbox",label:"Litterbox",description:"Uploads are temporary."},{value:"0x0",label:"0x0.st",description:"Public uploads expire after a retention window determined by file size."},{value:"tmpfiles",label:"tmpfiles.org",description:"Public uploads are temporary."},{value:"discord",label:"Discord",description:"messaging"},{value:"provider-files",label:"Model provider files",description:"Provider file references are API-local rather than public image URLs."},{value:"direct",label:"Direct public URL",description:"local-serving"},{value:"cloudflared",label:"Cloudflare quick tunnel",description:"tunnel"},{value:"ngrok",label:"ngrok",description:"tunnel"},{value:"tailscale",label:"Tailscale Funnel",description:"tunnel"},{value:"ssh",label:"SSH reverse tunnel",description:"tunnel"},{value:"command",label:"Uploader command",description:"external-command"},{value:"localhost-run",label:"localhost.run",description:"tunnel"},{value:"pinggy",label:"Pinggy",description:"tunnel"},{value:"devtunnel",label:"Microsoft dev tunnel",description:"The devtunnel CLI must be logged in locally."},{value:"zrok",label:"zrok",description:"The local zrok environment must be enabled."},{value:"bore",label:"bore",description:"tunnel"},{value:"named-cloudflared",label:"Named Cloudflare Tunnel",description:"tunnel"},{value:"r2",label:"Cloudflare R2",description:"s3"},{value:"tigris",label:"Tigris",description:"s3"},{value:"minio",label:"MinIO",description:"s3"},{value:"garage",label:"Garage",description:"s3"}],ordered:!0}},"images.urls.command":{type:"string",ui:{tab:"model",group:"Vision",label:"Image Upload Command",description:"Argv template for the command backend; {file} is the image path, {mime}/{ext} optional. The last URL printed on stdout is used (e.g. pasta -b -f {file})"}},"images.urls.publicBaseUrl":{type:"string",ui:{tab:"model",group:"Vision",label:"Image URL Public Base",description:"Externally reachable base URL fronting the blob server (required for ssh, optional for direct)"}},"images.urls.ttlHours":{type:"number",default:72,ui:{tab:"model",group:"Vision",label:"Image URL Lifetime (hours)",description:"Serving window for locally hosted image URLs, measured from the last time a conversation sent them; resuming a conversation re-arms the window at the same link. 0 keeps links alive while the broker runs"}},"images.urls.bindHost":{type:"string",default:"127.0.0.1",ui:{tab:"model",group:"Vision",label:"Image URL Bind Host",description:"Host the blob server binds to; loopback for tunnels, 0.0.0.0 for direct serving"}},"images.urls.sshTarget":{type:"string",ui:{tab:"model",group:"Vision",label:"Image URL SSH Target",description:"user@host destination for the ssh reverse forward"}},"images.urls.sshRemotePort":{type:"number",default:8787,ui:{tab:"model",group:"Vision",label:"Image URL SSH Remote Port",description:"Remote listen port of the ssh reverse forward that your web server proxies to"}},"secrets.enabled":{type:"boolean",default:!1,ui:{tab:"providers",group:"Privacy",label:"Hide Secrets",description:"Obfuscate configured secrets and redact credential-shaped tokens before sending to AI providers"}},"stt.enabled":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Speech",label:"Speech-to-Text",description:"Enable speech-to-text input via microphone"}},"stt.submitTrigger":{type:"enum",default:"never",values:["never","release","release-complete","say-submit"],ui:{tab:"interaction",group:"Speech",label:"Speech-to-Text Submit Trigger",description:"Choose when speech dictation automatically submits: Never, Release (2+ words), Release with complete sentence, or When I Say Submit.",options:[{value:"never",label:"Never",description:"Never automatically submit; insert dictation and remain in editor."},{value:"release",label:"Release",description:"Submit on release if the utterance has 2+ words to avoid accidental sends."},{value:"release-complete",label:"Release with complete sentence",description:"Submit on release if the utterance ends with sentence-terminal punctuation (. ? ! etc.)."},{value:"say-submit",label:"When I Say Submit",description:"Submit if the utterance ends with a word containing 'submit' (strips that word before submitting)."}]}},"collab.relayUrl":{type:"string",default:"wss://my.omp.sh",ui:{tab:"interaction",group:"Collab",label:"Relay URL",description:"Relay used by /collab (wss://host[:port])"}},"collab.webUrl":{type:"string",default:"",ui:{tab:"interaction",group:"Collab",label:"Web UI URL",description:"Browser UI used by /collab links; empty derives from collab.relayUrl; explicit http:// is localhost-only"}},"collab.displayName":{type:"string",default:"",ui:{tab:"interaction",group:"Collab",label:"Display Name",description:"Name shown to other collab participants (default: OS username)"}},"collab.autoStart":{type:"enum",default:"off",values:["off","view","control"],ui:{tab:"interaction",group:"Collab",label:"Auto Start",description:"Host every interactive session via collab.relayUrl as it starts and publish it to the local registry (omp collab list); rooms rotate on session switch",options:[{value:"off",label:"Off",description:"Share only when /collab is run"},{value:"view",label:"View",description:"Auto-host; the registry hands out view-only links (omp collab link --view)"},{value:"control",label:"Control",description:"Auto-host; the registry hands out control links that can prompt the session"}]}},"share.serverUrl":{type:"string",default:"https://my.omp.sh/s",ui:{tab:"interaction",group:"Collab",label:"Share Server",description:"Share viewer/upload base used by /share (encrypted blob upload + viewer; links are <base>/<id>#<key>)"}},"share.store":{type:"enum",default:"blob",values:["blob","gist"],ui:{tab:"interaction",group:"Collab",label:"Share Store",description:"Where /share uploads the encrypted session blob",options:[{value:"blob",label:"Encrypted Blob",description:"Upload to the share server (no GitHub account needed; avoids gist API rate limits)"},{value:"gist",label:"GitHub Gist",description:"Push to a secret gist (needs authenticated gh), falling back to the share server"}]}},"share.redactSecrets":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Collab",label:"Share Secret Redaction",description:"Run the secret obfuscator over /share snapshots before upload (uses the secrets.* config)"}},"stream.serverUrl":{type:"string",default:"https://live.omp.sh",ui:{tab:"interaction",group:"Stream",label:"Stream Server",description:"Live stream server used by `omp stream` (https://host[:port]); viewers watch at <base>/<your Stencil username>"}},"stream.redactPatterns":{type:"array",default:[],ui:{tab:"interaction",group:"Stream",label:"Extra Redaction Patterns",description:"Additional regular expressions redacted from every streamed row, on top of env/secrets.yml values and built-in credential shapes"}},"spotlight.experiment.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Developer",label:"Spotlight Experiment",description:"Shape tool output and rank find results with Stencil Spotlight, and log each shaped result to the session"}}}};var Ha={"retry.enabled":{type:"boolean",default:!0,ui:{tab:"model",group:"Retry & Fallback",label:"Retry Enabled",description:"Retry transient provider errors (rate limits, outages, quota walls)."}},"retry.baseDelayMs":{type:"number",default:500,ui:{tab:"model",group:"Retry & Fallback",label:"Retry Base Delay (ms)",description:"Initial backoff before the first retry."}},"thinkingBudgets.minimal":{type:"number",default:1024,ui:{tab:"model",group:"Thinking",label:"Minimal Thinking Budget",description:"Token budget for the minimal thinking level."}},"thinkingBudgets.low":{type:"number",default:2048,ui:{tab:"model",group:"Thinking",label:"Low Thinking Budget",description:"Token budget for the low thinking level."}},"thinkingBudgets.medium":{type:"number",default:8192,ui:{tab:"model",group:"Thinking",label:"Medium Thinking Budget",description:"Token budget for the medium thinking level."}},"thinkingBudgets.high":{type:"number",default:16384,ui:{tab:"model",group:"Thinking",label:"High Thinking Budget",description:"Token budget for the high thinking level."}},"thinkingBudgets.xhigh":{type:"number",default:32768,ui:{tab:"model",group:"Thinking",label:"XHigh Thinking Budget",description:"Token budget for the xhigh thinking level."}},"thinkingBudgets.max":{type:"number",default:32768,ui:{tab:"model",group:"Thinking",label:"Max Thinking Budget",description:"Token budget for the max thinking level."}},"stt.language":{type:"string",default:"en",ui:{tab:"interaction",group:"Speech",label:"Speech-to-Text Language (omp)",description:"ISO-639-1 language for omp’s own dictation, and the fallback for Kabmo’s local engine when Settings → Dictation is set to detect automatically. The local engine cannot auto-detect: a missing value decodes as English."}},modelTags:{type:"record",default:{},ui:{tab:"model",group:"Prompt",label:"Model Tags",description:"Custom role/tag metadata; can introduce additional roles. JSON record."}},modelProviderOrder:{type:"array",default:[],ui:{tab:"model",group:"Prompt",label:"Model Provider Order",description:"Preferred provider order when a model id is ambiguous. JSON array."}},cycleOrder:{type:"array",default:["smol","default","slow"],ui:{tab:"model",group:"Prompt",label:"Model Cycle Order",description:"Roles cycled by the model switcher. JSON array."}},enabledModels:{type:"array",default:[],ui:{tab:"model",group:"Prompt",label:"Enabled Models",description:"Allow-list of models; supports path-scoped entries. Empty means all available models. JSON array."}},"task.agentServiceTierOverrides":{type:"record",default:{},ui:{tab:"model",group:"Sampling",label:"Agent Service Tier Overrides",description:"Sparse exact-name service-tier overrides for agents spawned by task/eval dispatch. JSON record."}},"compaction.reserveTokens":{type:"number",ui:{tab:"context",group:"Compaction",label:"Compaction Reserve Tokens",description:"Absolute reserve floor. Unset = larger of 16384 and 15% of the context window."}},"compaction.keepRecentTokens":{type:"number",default:20000,ui:{tab:"context",group:"Compaction",label:"Keep Recent Tokens",description:"Recent tokens always preserved through compaction."}},"compaction.autoContinue":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Auto-Continue",description:"Continue automatically after compaction."}},"autolearn.minToolCalls":{type:"number",default:5,ui:{tab:"memory",group:"Auto-Learn",label:"Min Tool Calls",description:"Only nudge after a turn that used at least this many tools.",condition:"autolearnActive"}},shellPath:{type:"string",ui:{tab:"shell",group:"Bash",label:"Shell Path",description:"Override the shell binary used by bash."}},"bash.autoBackground.thresholdMs":{type:"number",default:60000,ui:{tab:"shell",group:"Bash",label:"Auto-Background Threshold (ms)",description:"Threshold before auto-backgrounding long-running commands."}},"task.agentAdvisor":{type:"record",default:{},ui:{tab:"tasks",group:"Subagents",label:"Agent Advisor Overrides",description:'Per-agent subagent advisor: agent name → "on" / "off" / advisor model pattern. JSON record.'}},enabledProviders:{type:"array",default:[],ui:{tab:"providers",group:"Services",label:"Enabled Providers",description:"Foreign user-level discovery sources to load; supports path-scoped entries. JSON array."}},disabledProviders:{type:"array",default:[],ui:{tab:"providers",group:"Services",label:"Disabled Providers",description:"Disabled model/discovery providers; supports path-scoped entries. JSON array."}}};var Tt=Ka,pt={...Tt.entries,...Ha};function Ke(t,r){return t[r]?.value}function To(t,r){switch(t){case void 0:return!0;case"advisorEnabled":return Ke(r,"advisor.enabled")===!0;case"vimModeEnabled":return Ke(r,"tui.vimMode")===!0;case"hindsightActive":return Ke(r,"memory.backend")==="hindsight";case"mnemopiActive":return Ke(r,"memory.backend")==="mnemopi";case"autolearnActive":return Ke(r,"autolearn.enabled")===!0;case"autoThinkingActive":return Ke(r,"defaultThinkingLevel")==="auto";case"usageAwareFallbackEnabled":return Ke(r,"retry.usageAwareFallback")===!0;case"planModeEnabled":return Ke(r,"plan.enabled")===!0;case"composerPredictionsEnabled":return Ke(r,"composer.predictions")===!0;case"planAutosaveEnabled":return Ke(r,"plan.enabled")===!0&&Ke(r,"plan.autosave")===!0;case"unexpectedStopSmart":return Ke(r,"features.unexpectedStopDetection")==="smart";case"macOS":case"hasImageProtocol":return!0;default:return!0}}function za(t){return Object.entries(pt).filter(([,r])=>r.ui.tab===t)}function Io(t,r,l){if(!l)return!0;return t.toLowerCase().includes(l)||r.ui.label.toLowerCase().includes(l)||r.ui.description.toLowerCase().includes(l)}var Vt=Tt.entries["tts.localVoice"],Ga=Vt?.values??[],lg=new Map((Array.isArray(Vt?.ui.options)?Vt.ui.options:[]).map((t)=>[t.value,t.label]));function Wa(t){return lg.get(t)??t}function Va({config:t,localModels:r,onPatch:l}){let c=xs(t.engine),m=t.engine==="deepgram",g=t.engine==="local",b=g?r.find((y)=>y.id===t.model)??r[0]??null:null,v=g?Ra(b):k0.filter((y)=>c.language==="required"||y.id!=="auto"),x=c.speed.min===c.speed.max,P=c.language==="required"||c.language==="parameter"||c.language==="instructions";return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Voice and rate"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:["The voice every answer is read in. Rate is clamped to what ",c.label," accepts."]})]}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e("label",{className:"space-y-1",children:[e("span",{className:"block text-[11px] font-medium text-ink/70",children:m?"Voice model":"Model"}),g?e(Z,{ariaLabel:m?"Voice model":"Model",value:t.model||b?.id||"",onChange:(y)=>{l({model:y,voice:""})},placeholder:"No model installed",emptyText:"No model installed",disabled:r.length===0,triggerClassName:je,options:r.map((y)=>({value:y.id,label:y.label}))}):e(d,{children:[e("input",{type:"text",list:"tts-models",value:t.model,placeholder:c.defaultModel||"engine default",onInput:(y)=>l({model:y.currentTarget.value}),className:je}),e("datalist",{id:"tts-models",children:c.models.map((y)=>e("option",{value:y.id,children:y.label},y.id))})]}),m&&e("span",{className:"block text-[10px] text-ink/50",children:"Deepgram's model id is its voice; its last segment is the language."}),g&&e("span",{className:"block text-[10px] text-ink/50",children:r.length===0?"Download one under Local models above.":"Runs on this machine. Pick its voice and language below."})]}),!m&&e("label",{className:"space-y-1",children:[e("span",{className:"block text-[11px] font-medium text-ink/70",children:"Voice"}),t.engine==="omp"?e(Z,{ariaLabel:"Voice",value:t.voice,onChange:(y)=>l({voice:y}),placeholder:`omp default (${typeof Vt?.default==="string"?Wa(Vt.default):"harper"})`,searchable:Ga.length>10,triggerClassName:je,options:Ga.map((y)=>({value:y,label:Wa(y)}))}):g?e(Z,{ariaLabel:"Voice",value:t.voice||"0",onChange:(y)=>l({voice:y==="0"?"":y}),placeholder:"Default voice",searchable:!1,allowEmpty:!1,triggerClassName:je,options:Ea(b).map((y)=>({value:y.id,label:y.label}))}):e(d,{children:[e("input",{type:"text",list:"tts-voices",value:t.voice,placeholder:c.defaultVoice||"engine default",onInput:(y)=>l({voice:y.currentTarget.value}),className:je}),e("datalist",{id:"tts-voices",children:c.voices.map((y)=>e("option",{value:y.id,children:y.label},y.id))})]}),e("span",{className:"block text-[10px] text-ink/50",children:t.engine==="omp"?"“omp default” follows OMP Engine → Providers → Local TTS Voice.":g?"Voice 0 is the first style in the model; the count comes from the model itself.":"A typed id is accepted when the provider supports custom voices."})]}),!x&&e("label",{className:"space-y-1",children:[e("span",{className:"block text-[11px] font-medium text-ink/70",children:"Speed"}),e("input",{type:"number",min:c.speed.min,max:c.speed.max,step:0.05,value:t.speed,onChange:(y)=>l({speed:Number(y.currentTarget.value)}),className:je}),e("span",{className:"block text-[10px] text-ink/50",children:[c.speed.min,"–",c.speed.max,"; 1 is normal."]})]}),P&&e("label",{className:"space-y-1",children:[e("span",{className:"block text-[11px] font-medium text-ink/70",children:"Language"}),e(Z,{ariaLabel:"Language",value:t.language||(c.language==="required"?"auto":""),onChange:(y)=>l({language:y==="auto"?"":y}),placeholder:g?`Model default (${b?.defaultLanguage??"en"})`:"Auto / detect",searchable:v.length>10,allowEmpty:c.language!=="required",triggerClassName:je,options:v.map((y)=>({value:y.id,label:y.label}))}),e("span",{className:"block text-[10px] text-ink/50",children:c.language==="required"?"This provider requires a language.":g?b&&b.languages.length===0?"This model declares no languages; the code is passed through unchanged.":"These models have no auto-detect: pick the language of the answer. One they do not declare is refused.":c.language==="parameter"?(t.model||c.defaultModel)==="eleven_multilingual_v2"?"Multilingual v2 detects the language from the text; the newer models receive this as language_code.":"Sent as the provider language. “Auto” lets the model detect it.":"Only gpt-4o-mini-tts follows this instruction; tts-1 and compatible servers may ignore it."})]})]}),g&&b&&b.languages.includes("id")&&e("p",{className:"rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70",children:[b.label," speaks Indonesian. Pick ",e("span",{className:"font-medium text-ink",children:"Indonesian"})," and the answer is read in Indonesian — nothing leaves this machine."]}),c.language==="auto"&&e("p",{className:"rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70",children:"Detects the answer’s language automatically — Indonesian is supported."}),c.language==="none"&&e("p",{className:"rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70",children:c.id==="omp"?"omp’s local voices are English. For Indonesian, pick ElevenLabs, Gemini, xAI, or an OpenAI-compatible server with an Indonesian voice.":"The voice’s id carries the language: pick a flux-…-id voice (Dewi, Fajar, Fitri, Rizky, Teguh) for Indonesian — Flux speaks 41 languages, Aura seven. Early-access languages have no text normalization, so write numbers and dates out in words."})]})}function qa({config:t,hasKey:r,busy:l,onPatch:c,onSaveKey:m,onClearKey:g}){let b=xs(t.engine),[v,x]=n(t.baseUrl),[P,y]=n("");o(()=>x(t.baseUrl),[t.baseUrl]);let T=v.trim()&&ks(v)===null?"That is not an http(s) URL, or it embeds a username/password.":null;if(!b.editableBaseUrl&&!b.needsKey)return e("section",{className:"space-y-3",children:e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Local engine"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:b.id==="local"?"No key and no network. The model is downloaded once into Kabmo’s own directory, then every answer is synthesized in this process.":"No key and no network. The first run downloads omp’s voice; later runs are local."})]})});return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Endpoint and key"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:b.needsKey?b.keyOptional?"Optional for a local server; required for OpenAI itself. Stored outside the settings table.":"The key is stored outside the settings table, in a file only this server reads.":"No key is needed."})]}),b.editableBaseUrl&&e("div",{className:`${Co} space-y-2`,children:[e("div",{className:"flex flex-wrap gap-1.5",children:v0.map((w)=>e("button",{type:"button",title:w.note,onClick:()=>{x(w.baseUrl),c({baseUrl:w.baseUrl,model:w.model,voice:w.voice})},className:"rounded-full border border-ink/15 px-2.5 py-1 text-[10px] text-ink/70 transition-colors hover:border-ink/30 hover:text-ink",children:w.label},w.id))}),e("label",{className:"block space-y-1",children:[e("span",{className:"block text-[11px] font-medium text-ink/70",children:"Base URL"}),e("input",{type:"url",value:v,placeholder:b.baseUrl,onInput:(w)=>x(w.currentTarget.value),onBlur:()=>c({baseUrl:v}),className:je}),T&&e("span",{className:"block text-[10px] text-error",children:T})]})]}),b.needsKey&&e("div",{className:`${Co} space-y-2`,children:[e("div",{className:"flex items-center justify-between gap-2",children:[e("span",{className:"inline-flex items-center gap-1.5 text-[11px] text-ink/70",children:[e(to,{size:12,className:"text-ink/50"}),r?"A key is stored for this engine.":b.keyOptional?"No key stored — fine for a local server.":"No key stored for this engine."]}),r&&e("button",{type:"button",disabled:l,onClick:()=>g(t.engine),className:"inline-flex items-center gap-1 rounded-md px-1.5 py-1 text-[10px] text-ink/60 transition-colors hover:bg-ink/5 hover:text-error disabled:opacity-50",children:[e(Q,{size:11})," Clear"]})]}),e("div",{className:"flex gap-2",children:[e("input",{type:"password",value:P,placeholder:r?"Replace the stored key…":"Paste the API key…",autocomplete:"off",onInput:(w)=>y(w.currentTarget.value),className:je}),e("button",{type:"button",disabled:l||!P.trim(),onClick:()=>{m(t.engine,P),y("")},className:"shrink-0 rounded-md border border-ink/20 px-2.5 py-1.5 text-[11px] text-ink transition-colors hover:border-ink/40 disabled:opacity-40",children:"Save key"})]}),e("a",{href:b.docs,target:"_blank",rel:"noreferrer",className:"inline-block text-[10px] text-ink/50 underline decoration-ink/20 hover:text-ink",children:[b.label," documentation"]})]})]})}function Ya({config:t,onPatch:r}){return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Autoplay"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"What happens when a run finishes."})]}),e("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border border-ink/15 bg-paper px-3.5 py-3",children:[e("input",{type:"checkbox",checked:t.autoplay,onChange:(l)=>r({autoplay:l.currentTarget.checked}),className:`${be} mt-0.5 h-4 w-4 cursor-pointer accent-ink`}),e("span",{className:"min-w-0 space-y-1",children:[e("span",{className:"block text-[12px] font-medium text-ink",children:"Read the final answer aloud"}),e("span",{className:"block text-[11px] leading-relaxed text-ink/60",children:"A run that finishes while this chat is open is read once. History loaded on mount is not replayed. Browsers block audio until you have interacted with the page, so the very first automatic read may need one click on the speaker button."})]})]})]})}var dg="This is how Kabmo will read your answers aloud.",Ja="settings-test";function Xa({config:t}){let r=pf(),l=r.activeKey===Ja&&(r.status==="loading"||r.status==="playing"||r.status==="paused");return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Test"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Speaks one sentence with the settings above, even before they are saved."})]}),e("button",{type:"button",onClick:()=>{if(l)r.stop();else r.speak(dg,Ja,t)},className:"inline-flex items-center gap-2 rounded-md border border-ink/20 px-3 py-2 text-[12px] text-ink transition-colors hover:border-ink/40 hover:bg-ink/5",children:[l?r.status==="loading"?e(p,{size:14,className:"animate-spin"}):e(tn,{size:13}):e(Xn,{size:14}),l?"Stop":"Test voice"]})]})}function Qa({settings:t,onUpdate:r}){let l=wa(),c=Ta(),m=t.tts,g=c.state?.models??[],b=m.engine==="local"&&c.state!==null&&g.length>0&&m.model!==""&&!g.some((x)=>x.id===m.model);o(()=>{if(b)r({tts:{...m,model:"",voice:""}})},[b,m,r]);let v=(x)=>{r({tts:{...m,...x}})};return e("div",{className:"mx-auto w-full max-w-3xl space-y-7",children:[e("p",{className:"text-[11px] leading-relaxed text-ink/60",children:"The speaker button under an assistant answer. The engine you pick here is where that answer's text goes — the local engine keeps it on this machine, a hosted engine uploads it."}),(l.error??c.error)&&e("p",{className:"rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70",children:l.error??c.error}),e(Aa,{config:m,local:l.state?.local,localRuntime:c.state?.runtime,installedModels:g.length,busy:l.busy,onSelect:(x)=>v({engine:x,model:"",voice:"",speed:sf(x,m.speed),baseUrl:x==="openai"?m.baseUrl:"",language:x==="xai"?m.language:""}),onReprobe:()=>void l.reprobe()}),m.engine==="local"&&e(ja,{config:m,server:c,onSelect:(x)=>v({model:x,voice:""})}),e(Va,{config:m,localModels:g,onPatch:v}),e(qa,{config:m,hasKey:l.state?.hasKeys[m.engine]??!1,busy:l.busy,onPatch:v,onSaveKey:(x,P)=>void l.saveKey(x,P),onClearKey:(x)=>void l.clearKey(x)}),e(Ya,{config:m,onPatch:v}),e(Xa,{config:m})]})}var cg={dictation:ya,speech:Qa};function Za({settings:t,onUpdate:r}){let l=Pe(),[c,m]=n(Kt[0].id),g=Kt.find((b)=>b.id===c)??Kt[0];return e(Ce,{pane:l.pane,onBack:l.back,listLabel:"Voice settings",detailLabel:g.label,detailDescription:g.description,list:e(Pt,{groups:Kt,activeGroupId:g.id,onSelectGroup:(b)=>{m(b),l.openDetail()}}),detail:e(Ct,{group:g,children:g.sections.map((b)=>{let v=cg[b];return e(v,{settings:t,onUpdate:r},b)})})})}function es(t){let r=new Map;for(let c of t){let m=Q0(c.chord),g=r.get(m);if(g)g.push(c);else r.set(m,[c])}let l=[];for(let c of r.values())for(let m=0;m<c.length;m+=1)for(let g=m+1;g<c.length;g+=1){let b=c[m],v=c[g];if(b.command===v.command)continue;l.push({chord:b.chord,a:b,b:v,certain:!b.when||!v.when||b.when===v.when})}return l}var pg={Shift:!0,Control:!0,Alt:!0,Meta:!0,OS:!0,Super:!0,Hyper:!0,CapsLock:!0,Fn:!0},mg={ShiftLeft:!0,ShiftRight:!0,ControlLeft:!0,ControlRight:!0,AltLeft:!0,AltRight:!0,MetaLeft:!0,MetaRight:!0,OSLeft:!0,OSRight:!0,CapsLock:!0};function ts(t){return pg[t.key]===!0||mg[t.code]===!0}function ns({chord:t,onCommit:r}){let[l,c]=n(!1),[m,g]=n([]),b=i(null);o(()=>{if(l)b.current?.focus()},[l]);let v=()=>{c(!1),g([])},x=(y)=>{if(!l)return;if(y.preventDefault(),y.stopPropagation(),y.key==="Escape"){v();return}if(y.key==="Backspace"||y.key==="Delete"){if(m.length===0)r(null),v();else g([]);return}if(y.key==="Enter"&&m.length===1){r(pA(m)),v();return}if(ts(y))return;let T=mf(y);if(m.length===0){g([T]);return}r(pA([m[0],T])),v()},P=l?m.length>0?`${jo(m,_t())} …`:"Press keys…":t||"Unassigned";return e("button",{ref:b,type:"button",onClick:()=>{c(!0),g([])},onBlur:()=>{if(l)v()},onKeyDown:x,"aria-label":l?"Recording shortcut, press keys":`Shortcut ${t||"unassigned"}, click to change`,className:`min-w-[7rem] px-2 py-1 rounded-md border text-[11px] font-mono transition-colors ${l?"border-ink/60 bg-ink/5 text-ink":"border-ink/20 text-ink/70 hover:border-ink/40 hover:text-ink"}`,children:P})}function os(){let{commands:t,chords:r,rules:l}=Uc(),[c,m]=n(()=>ff()),[g,b]=n(""),v=u(()=>es(l),[l]),x=_t(),P=(R)=>t.find((D)=>D.id===R)?.title??R,y=(R,D)=>{let C={...c,[R]:D};m(C),Pd(C),mA(C)},T=(R)=>{let D={...c};delete D[R],m(D),Pd(D),mA(D)},w=g.trim().toLowerCase(),A=t.filter((R)=>!w||R.title.toLowerCase().includes(w)||(r.get(R.id)??"").toLowerCase().includes(w)).sort((R,D)=>R.category.localeCompare(D.category)||R.title.localeCompare(D.title));return e("section",{className:"space-y-3",children:[e("div",{className:"flex items-center justify-between gap-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Shortcuts"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"Click a chord to record a new one. Two strokes are allowed; Enter keeps a single stroke."})]}),e("div",{className:"flex items-center gap-2 px-2.5 py-1.5 border border-ink/15 rounded-md bg-canvas",children:[e(U,{size:13,className:"text-ink/40 flex-shrink-0"}),e("input",{type:"text",value:g,onInput:(R)=>b(R.currentTarget.value),placeholder:"Filter","aria-label":"Filter shortcuts",className:"w-32 bg-transparent text-xs text-ink focus:outline-none placeholder-ink/40"})]})]}),v.length>0?e("div",{className:"border border-ink/15 rounded-lg p-3 space-y-1.5 bg-ink/[0.02]",children:[e("p",{className:"text-[11px] font-semibold text-ink/75",children:[v.length," chord ",v.length===1?"conflict":"conflicts"]}),v.map((R)=>e("p",{className:"text-[11px] text-ink/60",children:[e("span",{className:"font-mono text-ink/80",children:jo(R.chord,x)})," ","— ",P(R.a.command)," and ",P(R.b.command),R.certain?"":" (may not overlap)"]},`${R.a.command}-${R.b.command}`))]}):null,e("div",{className:"bg-paper border border-ink/15 rounded-lg divide-y divide-ink/10 shadow-xs overflow-hidden",children:A.length===0?e("p",{className:"px-3 py-4 text-center text-xs text-ink/50",children:"No command matches that filter."}):A.map((R)=>{let D=c[R.id]!==void 0;return e("div",{className:"px-3 py-2 flex items-center justify-between gap-3",children:[e("div",{className:"min-w-0",children:[e("div",{className:"text-xs font-medium text-ink truncate",children:R.title}),e("div",{className:"text-[10px] text-ink/45",children:[R.category,R.pluginId?` · ${R.pluginId}`:"",D?" · custom":""]})]}),e("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[e(ns,{chord:r.get(R.id)??"",onCommit:(C)=>y(R.id,C)}),D?e("button",{type:"button",onClick:()=>T(R.id),title:"Reset to default","aria-label":`Reset ${R.title} to its default shortcut`,className:"p-1 rounded text-ink/40 hover:text-ink hover:bg-ink/5 transition-colors",children:e(kt,{size:12})}):null]})]},R.id)})})]})}function is({settings:t,onUpdate:r}){let l=["Enter","Shift + Enter","Ctrl / Cmd + Enter"],c=(g,b)=>{r((v)=>{let x={[g]:b},P=["keybindingSend","keybindingNewLine","keybindingSteering"].filter((y)=>y!==g);for(let y of P)if(v[y]===b)x[y]=v[g];return{...v,...x}})},m=[{id:"keybindingSend",label:"Send Message",desc:"Submit prompt and initiate agent reasoning",icon:Xe,value:t.keybindingSend||"Enter"},{id:"keybindingNewLine",label:"Line Break",desc:"Insert newline inside input box without dispatching",icon:un,value:t.keybindingNewLine||"Shift + Enter"},{id:"keybindingSteering",label:"Steering Intervention",desc:"Send prompt with steering interruption priority",icon:hn,value:t.keybindingSteering||"Ctrl / Cmd + Enter"}];return e("section",{className:"space-y-3",children:[e("div",{className:"flex items-center justify-between",children:[e("div",{className:"flex items-center gap-2",children:[e(Sa,{size:15,className:"text-ink/70"}),e("h4",{className:"text-sm font-semibold text-ink",children:"Keyboard Shortcuts"})]}),e("span",{className:"text-[10px] text-ink/50 font-mono",children:"Auto-conflict resolution"})]}),e("div",{className:"bg-paper border border-ink/15 rounded-lg divide-y divide-ink/10 shadow-xs overflow-hidden",children:m.map((g)=>e("div",{className:"p-3.5 flex flex-col sm:flex-row sm:items-center justify-between gap-3 hover:bg-ink/[0.015] transition-colors",children:[e("div",{className:"flex items-start gap-3",children:[e("div",{className:"w-7 h-7 rounded-md bg-ink/5 flex items-center justify-center text-ink/70 flex-shrink-0 mt-0.5",children:e(g.icon,{size:14})}),e("div",{children:[e("div",{className:"font-semibold text-xs text-ink",children:g.label}),e("div",{className:"text-[11px] text-ink/60 mt-0.5",children:g.desc})]})]}),e("div",{className:"flex items-center gap-2 self-end sm:self-center",children:e(Z,{ariaLabel:`${g.label} keybinding`,value:g.value,onChange:(b)=>c(g.id,b),placeholder:g.value,searchable:!1,allowEmpty:!1,triggerClassName:"bg-paper border border-ink/20 rounded-md px-2.5 py-1.5 outline-none focus:border-ink text-[11px] font-medium text-ink cursor-pointer hover:border-ink/40 transition-colors",options:l.map((b)=>({value:b,label:b}))})})]},g.id))})]})}function as({settings:t,onUpdate:r}){return e("div",{className:"flex-1 h-full overflow-y-auto scrollbar-overlay-container p-4 md:p-6 space-y-8 pb-8",children:[e(os,{}),e(is,{settings:t,onUpdate:r})]})}function ss({projects:t,selectedProjectId:r,onSelectProject:l,onAddProject:c,onTogglePin:m,isAdding:g=!1,folderFacts:b=[],loadError:v=null}){let x=new Map(b.map((P)=>[P.id,P.totalSessions]));return e("div",{className:"w-full md:w-64 md:border-r border-ink/10 h-full flex flex-col bg-paper/50 flex-shrink-0",children:[e("div",{className:`${Se} px-3.5 justify-between`,style:{height:Te},children:[e("span",{className:"text-xs font-semibold text-ink",children:[t.length," project",t.length===1?"":"s"]}),e("button",{type:"button",onClick:c,disabled:g,"aria-label":"Add project",title:"Add project",className:"p-1 rounded text-ink/60 hover:text-ink hover:bg-ink/5 transition-colors cursor-pointer disabled:opacity-50",children:e(F,{size:15,strokeWidth:2.2})})]}),e("div",{className:"flex-1 scrollbar-overlay-container p-1.5 space-y-0.5",children:[v&&e("p",{className:"px-2 py-2 text-[11px] text-error",title:v,children:["Projects could not be read: ",v]}),!v&&t.length===0&&e("div",{className:"px-2 py-3 space-y-1.5",children:[e("p",{className:"text-[11.5px] text-ink/60",children:"No projects yet."}),e("button",{type:"button",onClick:c,className:"text-[11px] font-medium text-ink underline underline-offset-2 hover:no-underline cursor-pointer",children:"Add the first one"})]}),t.map((P)=>{let y=P.id===r,T=pa(P.icon),w=P.folderId===void 0?void 0:x.get(P.folderId);return e("div",{className:`group flex items-center rounded-md transition-colors ${y?"bg-ink/10 shadow-2xs":"hover:bg-ink/5"}`,children:[e("button",{type:"button",onClick:()=>l(P.id),"aria-current":y?"true":void 0,className:"flex-1 min-w-0 flex items-center gap-2 px-2.5 py-1.5 text-left cursor-pointer",children:[P.customIconUrl?e("img",{src:P.customIconUrl,alt:"",className:"w-3.5 h-3.5 rounded-xs object-contain flex-shrink-0",referrerPolicy:"no-referrer"}):e(T,{size:14,className:"flex-shrink-0",style:{color:P.accentColor||"currentColor"}}),e("span",{className:`text-[11.5px] truncate flex-1 ${y?"font-medium text-ink":"text-ink/80"}`,children:P.name}),typeof w==="number"&&w>0&&e("span",{className:"shrink-0 font-mono text-[10px] text-ink/40",children:w})]}),e("button",{type:"button",onClick:()=>m(P),"aria-label":P.isPinned?`Unpin ${P.name}`:`Pin ${P.name}`,title:P.isPinned?"Unpin (stop sorting first)":"Pin (sort first in the sidebar)",className:`shrink-0 mr-1 p-1 rounded transition-colors cursor-pointer ${P.isPinned?"text-ink/70 hover:text-ink hover:bg-ink/10":"text-ink/30 hover:text-ink/70 hover:bg-ink/10 opacity-0 group-hover:opacity-100 focus-visible:opacity-100"}`,children:P.isPinned?e(no,{size:12}):e(wc,{size:12})})]},P.id)})]})]})}function ls({project:t,canDelete:r,isDeleting:l=!1,onDelete:c}){return e("div",{className:"flex items-start justify-between gap-4 pb-4 border-b border-ink/10",children:[e("div",{className:"min-w-0 flex-1",children:[e("h2",{className:"text-xl font-bold tracking-tight text-ink truncate",children:t.name}),e("p",{className:"text-[11px] font-mono text-ink/50 truncate mt-0.5 select-all",children:t.path||"Not bound to a directory"})]}),r&&e("button",{type:"button",onClick:c,disabled:l,title:"Delete this project",className:"inline-flex items-center gap-1.5 shrink-0 px-2.5 py-1.5 text-[11px] font-medium text-ink/50 hover:text-error hover:bg-error/10 rounded-md transition-colors cursor-pointer disabled:opacity-50",children:[e(Q,{size:13}),e("span",{children:"Delete"})]})]})}function ps({name:t,disabled:r=!1,onCommit:l}){let[c,m]=n(t);return o(()=>{m(t)},[t]),e("div",{className:"space-y-2",children:[e("label",{htmlFor:"project-name-input",className:"block text-xs font-semibold text-ink",children:"Project name"}),e("input",{id:"project-name-input",type:"text",value:c,disabled:r,onChange:(b)=>m(b.currentTarget.value),onBlur:()=>{let b=c.trim();if(!b){m(t);return}if(b===t)return;l(b)},onKeyDown:(b)=>{if(b.key==="Enter")b.preventDefault(),b.currentTarget.blur();if(b.key==="Escape")m(t),b.currentTarget.blur()},placeholder:"Enter project name…",className:"w-full bg-paper border border-ink/20 rounded-md px-3 py-2 text-xs font-medium text-ink outline-none focus:border-ink/60 transition-colors shadow-2xs disabled:opacity-60"}),e("p",{className:"text-[11px] text-ink/50",children:"Names are unique: the sidebar identifies a project by it."})]})}function us({path:t,disabled:r=!1,onCommit:l,onReveal:c,isRevealing:m=!1}){let[g,b]=n(t),[v,x]=n(!1);o(()=>{b(t)},[t]);let P=(y)=>{let T=y.trim();if(T===t)return;l(T)};return e("div",{className:"space-y-2",children:[e("div",{className:"flex items-center justify-between gap-2",children:[e("label",{htmlFor:"project-path-input",className:"block text-xs font-semibold text-ink",children:"Project directory"}),e("div",{className:"flex items-center gap-1",children:[e("button",{type:"button",onClick:()=>x(!0),disabled:r,className:"inline-flex items-center gap-1 px-2 py-1 rounded-md border border-ink/20 hover:border-ink/40 text-[11px] font-medium text-ink transition-colors cursor-pointer disabled:opacity-50",children:[e(Zn,{size:11}),e("span",{children:"Browse…"})]}),e("button",{type:"button",onClick:c,disabled:r||!t||m,title:t?"Reveal in the file manager":"This project is not bound to a directory",className:"inline-flex items-center gap-1 px-2 py-1 rounded-md border border-ink/20 hover:border-ink/40 text-[11px] font-medium text-ink transition-colors cursor-pointer disabled:opacity-40",children:[e(en,{size:11}),e("span",{children:"Reveal"})]})]})]}),e("input",{id:"project-path-input",type:"text",value:g,disabled:r,onChange:(y)=>b(y.currentTarget.value),onBlur:()=>P(g),onKeyDown:(y)=>{if(y.key==="Enter")y.preventDefault(),y.currentTarget.blur();if(y.key==="Escape")b(t),y.currentTarget.blur()},placeholder:"~ or /absolute/path, or leave empty for an unbound grouping",spellcheck:!1,className:"w-full bg-paper border border-ink/20 rounded-md px-3 py-2 text-[11.5px] font-mono text-ink outline-none focus:border-ink/60 transition-colors shadow-2xs disabled:opacity-60"}),e("p",{className:"text-[11px] text-ink/50",children:t?"Sessions found under this directory appear in the project. One directory can belong to one project.":"Not bound to a directory: this project groups chats only and discovers no sessions."}),v&&e(Gc,{initialPath:t||void 0,onSelect:(y)=>{x(!1),b(y),P(y)},onClose:()=>x(!1)})]})}function ms({model:t,models:r,onSelectModel:l,disabled:c=!1}){let[m,g]=n(!1),[b,v]=n(""),x=i(null);he(x,()=>g(!1));let P=F0(t,r)??"Inherit Kabmo’s default",y=u(()=>{let w=b.trim().toLowerCase();if(!w)return r;return r.filter((A)=>A.name.toLowerCase().includes(w)||A.id.toLowerCase().includes(w)||A.provider.toLowerCase().includes(w))},[r,b]),T=(w)=>{l(w),g(!1),v("")};return e("div",{className:"space-y-2.5",children:[e("div",{className:"flex items-center gap-1.5",children:[e("h4",{className:"text-xs font-semibold text-ink",children:"Defaults for new chats"}),e("span",{className:"inline-flex text-ink/40 hover:text-ink/70 transition-colors cursor-help",title:"The model a chat started in this project uses until you pick another one in the composer.",children:e(pe,{size:12})})]}),e("div",{className:"flex items-center justify-between gap-4 p-3 bg-paper border border-ink/15 rounded-lg",children:[e("div",{className:"min-w-0",children:[e("div",{className:"text-xs font-medium text-ink",children:"Project model"}),e("div",{className:"text-[11px] text-ink/50",children:r.length===0?"No model catalog yet — connect a provider first.":"Applied when the project starts a chat."})]}),e("div",{className:"relative shrink-0",ref:x,children:[e("button",{type:"button",onClick:()=>g((w)=>!w),disabled:c,className:"flex items-center gap-2 px-3 py-1.5 rounded-md border border-ink/20 hover:border-ink/40 bg-paper text-ink text-xs font-medium transition-colors cursor-pointer shadow-2xs max-w-[248px] disabled:opacity-50",children:[e(Ne,{size:13,className:"text-ink/70 shrink-0"}),e("span",{className:"truncate",children:P}),e(E,{size:13,className:"text-ink/50 shrink-0"})]}),m&&e("div",{className:"glass-popover absolute right-0 mt-1 w-[288px] bg-paper border border-ink/15 rounded-lg shadow-xl z-50 overflow-hidden",children:[e("div",{className:"flex items-center gap-1.5 px-2.5 py-2 border-b border-ink/10",children:[e(U,{size:12,className:"text-ink/40 shrink-0"}),e("input",{autoFocus:!0,value:b,onInput:(w)=>v(w.currentTarget.value),placeholder:"Search models…",className:"flex-1 bg-transparent text-xs text-ink outline-none placeholder:text-ink/35"})]}),e("div",{className:"max-h-64 scrollbar-overlay-container py-1",children:[e("button",{type:"button",onClick:()=>T(jc),className:"w-full flex items-center justify-between gap-2 px-3 py-1.5 text-left text-xs hover:bg-ink/5 transition-colors cursor-pointer",children:[e("span",{className:t===jc?"font-semibold text-ink":"text-ink/80",children:"Inherit Kabmo’s default"}),t===jc&&e(f,{size:13,className:"text-ink"})]}),y.length===0?e("p",{className:"px-3 py-2 text-[11px] text-ink/50",children:r.length===0?"The catalog is empty.":`No model matches “${b.trim()}”.`}):y.map((w)=>{let A=L0({provider:w.provider,modelId:w.id}),R=t===A;return e("button",{type:"button",onClick:()=>T(A),className:"w-full flex items-center justify-between gap-2 px-3 py-1.5 text-left hover:bg-ink/5 transition-colors cursor-pointer",children:[e("span",{className:"min-w-0 flex flex-col",children:[e("span",{className:`truncate text-xs ${R?"font-semibold text-ink":"text-ink/85"}`,children:w.name}),e("span",{className:"truncate text-[10.5px] text-ink/45",children:w.provider})]}),R&&e(f,{size:13,className:"text-ink shrink-0"})]},A)})]}),t!==jc&&e("button",{type:"button",onClick:()=>T(jc),className:"w-full flex items-center gap-1.5 px-3 py-2 border-t border-ink/10 text-[11px] text-ink/60 hover:text-ink hover:bg-ink/5 transition-colors cursor-pointer",children:[e(h,{size:11}),e("span",{children:"Clear the project model"})]})]})]})]})]})}function gs({accentColor:t,onSelectColor:r,options:l=fA,disabled:c=!1}){let m=l.length>0?l:fA,g=t.trim().toLowerCase(),b=m.some((D)=>D.value!==""&&D.value.toLowerCase()===g),v=g!==""&&!b,x=Af(g)??gf,[P,y]=n(x);o(()=>y(x),[x]);let T=(D)=>{let C=Af(D);if(C===null){y(x);return}if(y(C),C!==g)r(C)},w=i(null),A=i(null),R=i({commit:T,clear:()=>r("")});return R.current={commit:T,clear:()=>r("")},o(()=>{let D=w.current,C=A.current;if(!D||!C)return;let M=(j)=>y(j.target.value.toLowerCase()),L=(j)=>R.current.commit(j.target.value),O=()=>{let j=C.value.trim();if(j==="")R.current.clear();else R.current.commit(j)},_=(j)=>{if(j.key==="Enter")j.preventDefault(),O();if(j.key==="Escape")y(x)};return D.addEventListener("input",M),D.addEventListener("change",L),C.addEventListener("blur",O),C.addEventListener("keydown",_),()=>{D.removeEventListener("input",M),D.removeEventListener("change",L),C.removeEventListener("blur",O),C.removeEventListener("keydown",_)}},[x]),e("div",{className:"space-y-2.5",children:[e("h4",{className:"text-xs font-semibold text-ink",children:"Accent colour"}),e("div",{className:"flex flex-wrap items-center gap-2.5",children:m.map((D)=>{let C=g===D.value.toLowerCase();if(D.value==="")return e("button",{type:"button",onClick:()=>r(""),disabled:c,"aria-label":"No accent colour","aria-pressed":C,title:"No accent colour",className:`w-7 h-7 rounded-full border flex items-center justify-center transition-all cursor-pointer disabled:opacity-50 ${C?"border-ink bg-ink/10 ring-2 ring-ink/30 ring-offset-2 ring-offset-paper":"border-ink/25 bg-paper hover:border-ink/50 text-ink/60"}`,children:e(h,{size:12,strokeWidth:2.2})},"none");return e("button",{type:"button",onClick:()=>r(D.value),disabled:c,"aria-label":D.label,"aria-pressed":C,title:D.label,style:{backgroundColor:D.bgHex},className:`w-7 h-7 rounded-full transition-all cursor-pointer shadow-2xs disabled:opacity-50 ${C?"ring-2 ring-ink ring-offset-2 ring-offset-paper scale-105":"hover:scale-105 opacity-90 hover:opacity-100"}`},D.value)})}),e("div",{className:"flex items-center gap-2 pt-0.5",children:[e("label",{title:"Pick a custom accent colour",className:`relative w-7 h-7 shrink-0 rounded-full border overflow-hidden cursor-pointer transition-all ${v?"ring-2 ring-ink ring-offset-2 ring-offset-paper":"border-ink/25 hover:border-ink/50"} ${c?"opacity-50 pointer-events-none":""}`,children:[e("span",{"aria-hidden":"true",className:"absolute inset-0",style:{backgroundColor:P}}),e(oi,{size:12,strokeWidth:2.2,"aria-hidden":"true",className:"absolute inset-0 m-auto text-white/90 mix-blend-difference pointer-events-none"}),e("input",{ref:w,type:"color",value:Af(P)??gf,disabled:c,"aria-label":"Custom accent colour",className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer"})]}),e("input",{ref:A,type:"text",value:P,disabled:c,spellcheck:!1,"aria-label":"Custom accent colour hex",placeholder:gf,onInput:(D)=>y(D.currentTarget.value),className:"w-[86px] bg-paper border border-ink/20 rounded-md px-2 py-1 text-[11px] font-mono text-ink outline-none focus:border-ink/60 transition-colors disabled:opacity-50"}),e("span",{className:"text-[11px] text-ink/45",children:v?"Custom accent":"Pick any colour"})]})]})}var Ao=128,gg=700000;async function bg(t){let r=Promise.withResolvers(),l=new FileReader;l.onload=(A)=>{let R=A.target?.result;if(typeof R==="string"&&R)r.resolve(R);else r.reject(Error("That file could not be read as an image."))},l.onerror=()=>r.reject(Error("That file could not be read as an image.")),l.readAsDataURL(t);let c=await r.promise;if(t.type==="image/svg+xml")return c;let m=Promise.withResolvers(),g=new Image;g.onload=()=>m.resolve(g),g.onerror=()=>m.reject(Error("That file is not an image Kabmo can read.")),g.src=c;let b=await m.promise,v=Math.min(1,Ao/Math.max(b.naturalWidth,b.naturalHeight)),x=Math.max(1,Math.round(b.naturalWidth*v)),P=Math.max(1,Math.round(b.naturalHeight*v)),y=document.createElement("canvas");y.width=x,y.height=P;let T=y.getContext("2d");if(!T)return c;T.drawImage(b,0,0,x,P);let w=y.toDataURL("image/png");return w.length>0&&w.length<c.length?w:c}function hs({currentIcon:t,customIconUrl:r,projectName:l,onSelectIcon:c,onSetCustomIcon:m,disabled:g=!1}){let b=i(null),[v,x]=n(!1),[P,y]=n(!1),[T,w]=n(null),A=async(C)=>{let M=C.currentTarget.files?.[0];if(C.currentTarget.value="",!M)return;w(null),y(!0);try{let L=await bg(M);if(L.length>gg){w("That image is too detailed to store as a mark — try a PNG or SVG.");return}m(L)}catch(L){w(L instanceof Error?L.message:String(L))}finally{y(!1)}},R=()=>{let M=`https://api.dicebear.com/7.x/identicon/svg?seed=${l.toLowerCase().replace(/[^a-z0-9]/g,"")||"project"}&radius=50&size=${Ao}`;w(null),x(!0);let L=new Image;L.onload=()=>{x(!1),m(M)},L.onerror=()=>{x(!1),w("The generated icon could not be loaded — check your connection.")},L.src=M},D=g||P||v;return e("div",{className:"space-y-3",children:[e("div",{className:"flex items-center justify-between gap-2",children:[e("h4",{className:"text-xs font-semibold text-ink",children:"Project icon"}),r&&e("button",{type:"button",onClick:()=>m(void 0),disabled:D,className:"text-[11px] text-ink/50 hover:text-error transition-colors cursor-pointer disabled:opacity-50",children:"Use a standard icon"})]}),e("div",{className:"flex flex-wrap gap-1.5",children:R0.map((C)=>{let M=!r&&t===C.id,L=C.icon;return e("button",{type:"button",onClick:()=>c(C.id),disabled:D,"aria-label":C.label,"aria-pressed":M,title:C.label,className:`w-7 h-7 rounded-md flex items-center justify-center transition-all cursor-pointer disabled:opacity-50 ${M?"border border-ink/40 bg-ink/5 text-ink shadow-2xs":"border border-transparent text-ink/60 hover:text-ink hover:bg-ink/5"}`,children:e(L,{size:14,strokeWidth:1.8})},C.id)})}),e("div",{className:"flex flex-wrap items-center gap-2 pt-1",children:[e("input",{type:"file",ref:b,onChange:(C)=>void A(C),accept:"image/png,image/jpeg,image/svg+xml,image/webp,image/gif",className:"hidden"}),e("button",{type:"button",onClick:()=>b.current?.click(),disabled:D,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md border border-ink/20 hover:border-ink/40 bg-paper text-ink text-xs font-medium transition-colors cursor-pointer shadow-2xs disabled:opacity-50",children:[P?e(p,{size:13,className:"animate-spin text-ink/60"}):e(cs,{size:13,className:"text-ink/60"}),e("span",{children:P?"Reading…":"Upload image"})]}),e("button",{type:"button",onClick:R,disabled:D,title:"Generate a stable identicon from the project name",className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md border border-ink/20 hover:border-ink/40 bg-paper text-ink text-xs font-medium transition-colors cursor-pointer shadow-2xs disabled:opacity-50",children:[v?e(p,{size:13,className:"animate-spin text-ink/60"}):e(zr,{size:13,className:"text-ink/60"}),e("span",{children:v?"Generating…":"Generate mark"})]}),r&&e("div",{className:"flex items-center gap-2 ml-1 pl-2 border-l border-ink/10",children:[e("img",{src:r,alt:"Current custom icon",className:"w-5 h-5 rounded-xs object-contain border border-ink/15",referrerPolicy:"no-referrer"}),e("span",{className:"text-[11px] text-ink/60",children:"Custom icon in use"}),e("button",{type:"button",onClick:()=>m(void 0),disabled:D,"aria-label":"Remove the custom icon",className:"p-0.5 rounded text-ink/40 hover:text-error transition-colors cursor-pointer disabled:opacity-50",children:e(h,{size:12})})]})]}),e("p",{className:"text-[11px] text-ink/50",children:["Any image works — it is scaled down to a ",Ao,"px mark. PNG, JPEG, WebP, GIF or SVG."]}),T&&e("p",{className:"text-[11px] text-error",children:T})]})}function vs({project:t,canDelete:r,isDeleting:l=!1,isRevealing:c=!1,models:m,accentColorOptions:g,onUpdateField:b,onUpdateFields:v,onReveal:x,onDeleteProject:P}){return e("div",{className:"p-6 md:p-8 space-y-7",children:[e(ls,{project:t,canDelete:r,isDeleting:l,onDelete:P}),e(ps,{name:t.name,onCommit:(y)=>b("name",y)}),e(us,{path:t.path,onCommit:(y)=>b("path",y),onReveal:x,isRevealing:c}),e(ms,{model:t.model,models:m,onSelectModel:(y)=>b("model",y)}),e(gs,{accentColor:t.accentColor,onSelectColor:(y)=>b("accentColor",y),...g&&g.length>0?{options:g}:{}}),e(hs,{currentIcon:t.icon,customIconUrl:t.customIconUrl,projectName:t.name,onSelectIcon:(y)=>v({icon:y,customIconUrl:void 0}),onSetCustomIcon:(y)=>v({customIconUrl:y,icon:y===void 0?"default":"custom"})})]})}function fg(t){return(t.replace(/[\\/]+$/,"").split(/[\\/]/).pop()??"").toLowerCase()}function hg({isSaving:t,onClose:r,onSubmit:l}){let[c,m]=n(""),[g,b]=n(""),[v,x]=n(!1),[P,y]=n(!0),[T,w]=n(null),A=(D)=>{if(b(D),P||!c.trim())m(fg(D)),y(!0)},R=async()=>{let D=c.trim();if(!D){w("Enter a project name.");return}w(null);try{await l({name:D,path:g.trim()}),r()}catch(C){w(C instanceof Error?C.message:String(C))}};return e(d,{children:e(X,{onClose:t?()=>{}:r,ariaLabel:"Add project",maxWidthClass:"max-w-[480px]",header:e("div",{className:"min-w-0",children:[e("h2",{className:"text-sm font-semibold text-ink",children:"Add project"}),e("p",{className:"text-[11px] text-ink/50",children:"A name, and the directory its chats run in."})]}),footer:e("div",{className:"flex items-center justify-end gap-2 px-5 py-3.5 border-t border-ink/10",children:[e("button",{type:"button",onClick:r,disabled:t,className:"px-3.5 py-1.5 rounded-md border border-ink/20 text-xs font-medium text-ink hover:bg-ink/5 transition-colors cursor-pointer disabled:opacity-50",children:"Cancel"}),e("button",{type:"button",onClick:()=>void R(),disabled:t,className:"px-3.5 py-1.5 rounded-md bg-ink text-canvas text-xs font-medium hover:opacity-90 transition-opacity cursor-pointer disabled:opacity-50 inline-flex items-center gap-1.5",children:[t&&e(p,{size:13,className:"animate-spin"}),e("span",{children:t?"Adding…":"Add project"})]})]}),children:[e("div",{className:"px-5 py-4 space-y-4",children:[e("div",{className:"space-y-1.5",children:[e("label",{htmlFor:"add-project-name",className:"block text-xs font-semibold text-ink",children:"Name"}),e("input",{id:"add-project-name",type:"text",value:c,onInput:(D)=>{m(D.currentTarget.value),y(!1)},placeholder:"e.g. kabmo",className:"w-full bg-paper border border-ink/20 rounded-md px-3 py-2 text-xs text-ink outline-none focus:border-ink/60 transition-colors"}),e("p",{className:"text-[11px] text-ink/50",children:"Unique: the sidebar identifies a workspace by it."})]}),e("div",{className:"space-y-1.5",children:[e("label",{htmlFor:"add-project-path",className:"block text-xs font-semibold text-ink",children:["Directory ",e("span",{className:"text-ink/40 font-normal",children:"(optional)"})]}),e("div",{className:"flex items-center gap-2",children:[e("input",{id:"add-project-path",type:"text",value:g,onInput:(D)=>b(D.currentTarget.value),placeholder:"~ or /absolute/path",spellcheck:!1,className:"flex-1 min-w-0 bg-paper border border-ink/20 rounded-md px-3 py-2 text-[11.5px] font-mono text-ink outline-none focus:border-ink/60 transition-colors"}),e("button",{type:"button",onClick:()=>x(!0),className:"shrink-0 inline-flex items-center gap-1 px-2.5 py-2 rounded-md border border-ink/20 hover:border-ink/40 text-[11px] font-medium text-ink transition-colors cursor-pointer",children:[e(en,{size:12}),e("span",{children:"Browse…"})]})]}),e("p",{className:"text-[11px] text-ink/50",children:"Sessions under this directory are listed in the project. Leave it empty for a grouping with no directory behind it."})]}),T&&e("p",{className:"text-[11px] text-error",children:T})]}),v&&e(Gc,{initialPath:g||void 0,onSelect:(D)=>{A(D),x(!1)},onClose:()=>x(!1)})]})})}function Ss({isOpen:t,isSaving:r,onClose:l,onSubmit:c}){if(!t)return null;return e(hg,{isSaving:r,onClose:l,onSubmit:c})}function Ns({project:t,isDeleting:r,error:l,onClose:c,onConfirm:m}){if(o(()=>{let g=(b)=>{if(b.key!=="Escape"||r)return;b.preventDefault(),c()};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[c,r]),!t)return null;return e(X,{onClose:r?()=>{}:c,zClass:"z-[70]",maxWidthClass:"max-w-[440px]",ariaLabel:"Delete project",header:e("div",{className:"flex items-center gap-3 min-w-0",children:[e(Q,{size:16,className:"text-error shrink-0"}),e("div",{className:"min-w-0",children:[e("h2",{className:"text-sm font-semibold text-ink",children:"Delete project?"}),e("p",{className:"text-[11px] text-ink/50 truncate",children:t.name})]})]}),footer:e("div",{className:"flex items-center justify-end gap-2 px-5 py-3.5 border-t border-ink/10",children:[e("button",{type:"button",onClick:c,disabled:r,className:"px-3.5 py-1.5 rounded-md border border-ink/20 text-xs font-medium text-ink hover:bg-ink/5 transition-colors cursor-pointer disabled:opacity-50",children:"Cancel"}),e("button",{type:"button",onClick:m,disabled:r,className:"px-3.5 py-1.5 rounded-md bg-error text-canvas text-xs font-medium hover:opacity-90 transition-opacity cursor-pointer disabled:opacity-50 flex items-center gap-1.5",children:[r?e(p,{size:13,className:"animate-spin"}):e(Q,{size:13}),e("span",{children:r?"Deleting…":"Delete project"})]})]}),children:e("div",{className:"px-5 py-4 space-y-3",children:[e("ul",{className:"text-[11.5px] leading-relaxed text-ink/70 space-y-1.5",children:[e("li",{children:"The workspace is unregistered from Kabmo — its place in the sidebar, its chats' grouping and its settings go."}),e("li",{children:t.path?"The directory itself is NOT deleted; a tombstone keeps omp discovery from re-adding it on the next boot.":"It has no directory, so nothing on disk is touched."}),e("li",{children:"Chat transcripts stay on disk under ~/.omp/agent/sessions."})]}),l&&e("div",{className:"flex items-start gap-2 px-3 py-2 rounded-md border border-error/30 bg-error/5 text-[11px] text-ink/75",children:[e(I,{size:13,className:"mt-0.5 shrink-0 text-error"}),e("span",{children:l})]})]})})}var Eo="worktreeDirectory",Mo="worktreeCarryIgnored";function Ps(t){if(t.missing)return"folder is missing — its chats still open";let r=t.detached?`detached @ ${t.head.slice(0,7)||"unknown"}`:`${t.branch} checked out here`,l=t.sessions===1?"1 chat":`${t.sessions} chats`,c=t.dirty===0?"clean":`${t.dirty} changed`;return`${r} · ${l} · ${c}`}function Ts(t){return!t.detached&&Boolean(t.branch)&&t.aheadOfStart===0}function Lo(t){if(t.isPrimary)return"The main checkout cannot be removed.";if(t.dirty>0)return`${t.dirty} uncommitted file${t.dirty===1?"":"s"} here would be lost.`;return null}function Is({root:t,folderId:r,onReport:l}){let{worktrees:c,base:m,loading:g,error:b,isRepo:v,refresh:x}=hf({root:t,folderId:r},Boolean(t)),[P,y]=n(()=>{let C=N(Eo);return typeof C==="string"?C:""}),[T,w]=n(()=>N(Mo)!==!1),[A,R]=n(null);if(!t)return e("p",{className:"text-xs text-ink/50",children:"Bind this workspace to a repository to manage its worktrees."});let D=c.filter((C)=>!C.isPrimary);return e("div",{className:"flex flex-col gap-4",children:[e("section",{className:"flex flex-col gap-1",children:[e("h3",{className:"text-xs font-semibold text-ink",children:"Worktrees"}),g&&e("p",{className:"text-[11px] text-ink/50",children:"Reading worktrees…"}),b&&e("p",{className:"text-[11px] text-error",title:b,children:["Worktrees could not be read: ",b]}),!g&&!b&&v===!1&&e("p",{className:"text-[11px] text-ink/50",children:"Worktrees need a Git repository."}),!g&&!b&&v!==!1&&D.length===0&&e("p",{className:"text-[11px] text-ink/50",children:"No worktrees yet."}),D.map((C)=>e("div",{className:"group flex items-center gap-2 rounded-md px-1 py-1.5 hover:bg-ink/5",children:[e("div",{className:"min-w-0 flex-1",children:[e("p",{className:"truncate text-xs text-ink",children:C.branch||"detached"}),e("p",{className:"truncate text-[10.5px] text-ink/50",title:C.path,children:Ps(C)})]}),e("button",{type:"button",disabled:A===C.path||Lo(C)!==null,"aria-label":`Remove worktree ${C.branch||C.path}`,title:Lo(C)??"Remove worktree",onClick:()=>{R(C.path),M0({root:t,folderId:r},C.path,{deleteBranch:Ts(C)}).then((M)=>(l(M.branchDeleted?`Removed ${C.branch} and its branch`:`Removed ${C.branch}${M.branchKept?" (branch kept)":""}`,"success"),x())).catch((M)=>l(M instanceof Error?M.message:String(M),"error")).finally(()=>R(null))},className:"shrink-0 rounded px-2 py-1 text-[11px] text-ink/60 hover:bg-error/10 hover:text-error disabled:opacity-40",children:"Remove"})]},C.path))]}),e("label",{className:"flex flex-col gap-1",children:[e("span",{className:"text-xs font-semibold text-ink",children:"Worktree location"}),e("input",{value:P,onChange:(C)=>y(C.currentTarget.value),onBlur:()=>qe(Eo,P.trim()),placeholder:m,className:"h-8 rounded-md border border-ink/15 bg-paper px-2 text-xs text-ink outline-none focus:border-ink/40"}),e("span",{className:"text-[10.5px] text-ink/50",children:["Where new worktrees are created. Relative paths are resolved against the project; ~ is your home directory. Empty uses ",m,"."]})]}),e("label",{className:"flex items-start gap-2",children:[e("input",{type:"checkbox",checked:T,onChange:(C)=>{let M=C.currentTarget.checked;w(M),qe(Mo,M)},className:`${be} mt-0.5`}),e("span",{className:"flex flex-col gap-0.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:"Copy ignored files into new worktrees"}),e("span",{className:"text-[10.5px] text-ink/50",children:"A new worktree gets the project's ignored build folders (node_modules, .venv, target) copied in, so it works without reinstalling."})]})]})]})}var vg={full:"flex h-full w-full items-center justify-center text-xs text-ink/40",fill:"flex-1 flex items-center justify-center text-xs text-ink/40"},De=({variant:t="full",children:r})=>e("div",{className:vg[t],children:r});var Cn="";function As(t){if(!k(t))return!1;return typeof t.id==="string"&&typeof t.name==="string"&&typeof t.path==="string"}function xg(t){if(!k(t))return!1;return typeof t.label==="string"&&typeof t.value==="string"&&typeof t.bgHex==="string"}function yg(t,r){return t.some((c)=>c.id===r.id)?t.map((c)=>c.id===r.id?r:c):[...t,r]}function Rs(t){let[r,l]=n([]),[c,m]=n([]),[g,b]=n(Cn),[v,x]=n(!0),[P,y]=n(null),[T,w]=n(!1),[A,R]=n(!1),D=i(t);D.current=t;let C=a((H)=>{if(!k(H))return;let V=Array.isArray(H.projects)?H.projects.filter(As):null;if(V)l(V),b((ee)=>V.some((ne)=>ne.id===ee)?ee:V[0]?.id??Cn);if(Array.isArray(H.accentColorOptions))m(H.accentColorOptions.filter(xg))},[]),M=a(async()=>{try{let H=await fetch("/api/settings/projects"),V=await H.json();if(!H.ok){let ee=k(V)&&typeof V.error==="string"?V.error:`HTTP ${H.status}`;y(ee);return}y(null),C(V)}catch(H){y(H instanceof Error?H.message:String(H))}},[C]);o(()=>{let H=!0;return(async()=>{if(await M(),H)x(!1)})(),()=>{H=!1}},[M]);let L=at().folders,O=u(()=>L.map((H)=>`${H.id}:${H.name}:${H.model??""}:${H.icon??""}:${H.accentColor??""}:${H.project_path??""}:${H.isPinned?1:0}`).join("|"),[L]);o(()=>{if(!O)return;M()},[O,M]);let _=a(async(H,V)=>{if(H.folderId===void 0)return D.current("This project has no workspace row to save to."),!1;let ee=r;l((ue)=>ue.map((le)=>le.id===H.id?{...le,...V}:le));let ne={folderId:H.folderId};for(let[ue,le]of Object.entries(V))ne[ue]=le===void 0?null:le;try{let ue=await fetch("/api/settings/projects",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({project:ne})}),le=await ue.json().catch(()=>null);if(!ue.ok){let te=k(le)&&typeof le.error==="string"?le.error:`HTTP ${ue.status}`;throw Error(te)}let me=k(le)&&As(le.project)?le.project:null;if(me)l((te)=>yg(te,me));return!0}catch(ue){return l(ee),D.current(ue instanceof Error?ue.message:String(ue)),!1}},[r]),j=a((H,V,ee)=>_(H,{[V]:ee}),[_]),K=a((H,V)=>_(H,V),[_]),G=a(async(H)=>{w(!0);try{let V=await fetch("/api/folders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:H.name,path:H.path})}),ee=await V.json().catch(()=>null),ne=k(ee)?ee.folder:null,ue=k(ne)&&typeof ne.id==="number"?ne.id:null;if(!V.ok||!k(ee)||ee.success!==!0||ue===null){let le=k(ee)&&typeof ee.error==="string"?ee.error:`HTTP ${V.status}`;throw Error(le)}await M(),b(`folder-${ue}`)}catch(V){throw D.current(V instanceof Error?V.message:String(V)),V}finally{w(!1)}},[M]),z=a(async(H)=>{R(!0);try{let V=await fetch(`/api/settings/projects?id=${encodeURIComponent(H.id)}`,{method:"DELETE"}),ee=await V.json().catch(()=>null);if(!V.ok||!k(ee)||ee.success!==!0){let ne=k(ee)&&typeof ee.error==="string"?ee.error:`HTTP ${V.status}`;throw Error(ne)}l((ne)=>{let ue=ne.filter((le)=>le.id!==H.id);return b((le)=>le===H.id?ue[0]?.id??Cn:le),ue})}catch(V){throw D.current(V instanceof Error?V.message:String(V)),V}finally{R(!1)}},[]),W=po((H)=>Array.isArray(H.modelList)&&H.modelList.length>0?H.modelList.map((V)=>({provider:V.provider,id:V.id,name:V.name||V.id})):void 0)??[],q=r.find((H)=>H.id===g)??r[0]??null;return{projects:r,selected:q,selectedId:q?.id??Cn,select:b,accentColorOptions:c,models:W,isLoading:v,loadError:P,refresh:M,updateField:j,updateFields:K,isAdding:T,addProject:G,isDeleting:A,deleteProject:z,onError:t}}function Ms(){let t=Pe(),{pushToast:r}=We(),[l,c]=n(!1),[m,g]=n(null),[b,v]=n(null),[x,P]=n(null),y=Rs((D)=>r(D,"error",{duration:7000})),{folders:T}=at(),w=async(D)=>{if(!D.path||D.folderId===void 0){r("This project is not bound to a directory.","error");return}P(D.id);try{let C=await fetch(`/api/folders/${D.folderId}/open`,{method:"POST"}),M=await C.json().catch(()=>null);if(!C.ok){let L=M&&typeof M==="object"&&"error"in M&&typeof M.error==="string"?M.error:`HTTP ${C.status}`;throw Error(L)}}catch(C){r(C instanceof Error?C.message:String(C),"error")}finally{P(null)}},A=async()=>{if(!m)return;v(null);try{await y.deleteProject(m),g(null),t.back()}catch(D){v(D instanceof Error?D.message:String(D))}};if(y.isLoading)return e(De,{children:"Loading projects…"});let R=y.selected;return e("div",{className:"w-full h-full flex flex-col overflow-hidden bg-paper text-ink",children:[e(Ce,{pane:t.pane,onBack:t.back,listLabel:"Projects",list:e(ss,{projects:y.projects,selectedProjectId:R?.id??"",onSelectProject:(D)=>{y.select(D),t.openDetail()},onAddProject:()=>c(!0),onTogglePin:(D)=>{y.updateField(D,"isPinned",!D.isPinned)},isAdding:y.isAdding,folderFacts:T,loadError:y.loadError}),detail:R?e("div",{className:"flex-1 min-h-0 scrollbar-overlay-container flex flex-col",children:[e(vs,{project:R,canDelete:y.projects.length>1,isDeleting:y.isDeleting&&m?.id===R.id,isRevealing:x===R.id,models:y.models,accentColorOptions:y.accentColorOptions,onUpdateField:(D,C)=>{y.updateField(R,D,C)},onUpdateFields:(D)=>{y.updateFields(R,D)},onReveal:()=>void w(R),onDeleteProject:()=>{v(null),g(R)}}),e("div",{className:"border-t border-ink/10 px-6 md:px-8 py-4",children:e(Is,{root:R.path||null,folderId:R.folderId??null,onReport:(D,C)=>r(D,C??"success",{duration:6000})})})]}):e("div",{className:"flex-1 flex items-center justify-center px-6 text-center",children:e("div",{className:"space-y-2",children:[e("p",{className:"text-xs text-ink/60",children:"No project selected."}),e("button",{type:"button",onClick:()=>c(!0),className:"text-[11px] font-medium text-ink underline underline-offset-2 hover:no-underline cursor-pointer",children:"Add a project"})]})})}),e(Ss,{isOpen:l,isSaving:y.isAdding,onClose:()=>c(!1),onSubmit:async(D)=>{await y.addProject(D),t.openDetail()}}),e(Ns,{project:m,isDeleting:y.isDeleting,error:b,onClose:()=>{g(null),v(null)},onConfirm:()=>void A()})]})}var kg=/^[A-Za-z0-9_-]{1,64}$/,Ls=/[<>\n\r]/;function Ds(t){if(!t||typeof t!=="object"||Array.isArray(t))return!1;let r=t;return typeof r.id==="string"&&kg.test(r.id)&&typeof r.name==="string"&&r.name.trim().length>0&&r.name.length<=128&&!Ls.test(r.name)&&typeof r.email==="string"&&r.email.trim().length>0&&r.email.length<=254&&r.email.includes("@")&&!Ls.test(r.email)}var Us="w-full bg-paper border border-ink/20 rounded-md px-2.5 py-1.5 text-[11px] text-ink placeholder-ink/40 outline-none focus:border-ink/40 transition-colors";function $s({settings:t,onUpdate:r}){let l=t.gitIdentities??[],[c,m]=n(null),[g,b]=n(!0),[v,x]=n(null),[P,y]=n(null),[T,w]=n(""),[A,R]=n("");o(()=>{let _=!0;return b(!0),fetch("/api/settings/git-identity").then(async(j)=>{let K=await j.json().catch(()=>null);if(!j.ok||!K)throw Error(K?.error||`Request failed (HTTP ${j.status})`);if(_)m({global:K.global,appliedId:K.appliedId})}).catch((j)=>{if(_)y(j instanceof Error?j.message:String(j))}).finally(()=>{if(_)b(!1)}),()=>{_=!1}},[]);let D=async(_)=>{x(_||"global"),y(null);try{let j=await fetch("/api/settings/git-identity",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identityId:_})}),K=await j.json().catch(()=>null);if(!j.ok||!K)throw Error(K?.error||`Request failed (HTTP ${j.status})`);m({global:K.global,appliedId:K.appliedId})}catch(j){y(j instanceof Error?j.message:String(j))}finally{x(null)}},C=()=>{let _={id:typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,name:T.trim(),email:A.trim()};if(!Ds(_)){y("Enter a name and a valid email address.");return}r({gitIdentities:[...l,_]}),w(""),R(""),y(null)},M=async(_)=>{if(c?.appliedId===_)await D("");r({gitIdentities:l.filter((j)=>j.id!==_)})},L=c?.appliedId??"",O=c?.global??null;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Commit Identity"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"The name and email a commit carries. Applying an identity writes it to your global git config."})]}),e("div",{className:"rounded-lg border border-ink/15 bg-paper p-3.5 space-y-2",children:[e("label",{className:"block text-[10px] font-semibold uppercase tracking-wider text-ink/45",children:"Commit as"}),e(Z,{ariaLabel:"Commit identity",value:L,onChange:(_)=>void D(_),disabled:g||v!==null,placeholder:"Global config",searchable:l.length>8,options:[{value:"",label:"Global config",hint:"git's own user.name / user.email"},...l.map((_)=>({value:_.id,label:_.name,hint:_.email}))]}),e("p",{className:"text-[10px] text-ink/50",children:[g?"Reading git config…":O?`Current: ${O.name} <${O.email}>`:"No identity configured",v?" · applying…":""]})]}),l.length>0&&e("details",{className:"rounded-lg border border-ink/15 bg-paper",children:[e("summary",{className:"px-3.5 py-2.5 text-[10px] font-semibold uppercase tracking-wider text-ink/45 cursor-pointer select-none",children:["Manage saved identities (",l.length,")"]}),e("div",{className:"divide-y divide-ink/10 border-t border-ink/10 max-h-48 overflow-y-auto",children:l.map((_)=>e("div",{className:"flex items-center gap-3 px-3.5 py-2.5",children:[e("div",{className:"min-w-0 flex-1",children:[e("div",{className:"text-xs font-semibold text-ink truncate",children:_.name}),e("div",{className:"text-[10px] text-ink/50 truncate",children:_.email})]}),e("button",{type:"button",onClick:()=>void M(_.id),"aria-label":`Remove ${_.name}`,className:"p-1.5 rounded text-ink/40 hover:text-error hover:bg-ink/5 transition-colors cursor-pointer",children:e(Q,{size:12})})]},_.id))})]}),P&&e("p",{className:"text-[10px] text-error",children:P}),e("div",{className:"rounded-lg border border-ink/15 bg-paper p-3.5 space-y-3",children:[e("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[e("input",{type:"text",value:T,onChange:(_)=>{w(_.currentTarget.value),y(null)},placeholder:"User name",className:Us}),e("input",{type:"text",value:A,onChange:(_)=>{R(_.currentTarget.value),y(null)},onKeyDown:(_)=>{if(_.key==="Enter")_.preventDefault(),C()},placeholder:"Email address",className:Us})]}),e("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e("p",{className:"text-[10px] text-ink/50",children:"Saved identities are a library; pick one above to apply it globally."}),e("button",{type:"button",onClick:C,className:"flex items-center gap-1.5 px-2.5 py-1 rounded bg-ink text-canvas text-[10px] font-medium hover:bg-ink/90 transition-colors cursor-pointer",children:[e(F,{size:11})," Add identity"]})]})]}),e("p",{className:"text-[10px] text-ink/45 leading-relaxed",children:"Applying writes `user.name` and `user.email` to your global git config. Global config restores what was there before Kabmo wrote."})]})}var Fs=[{key:"scope",description:"“the staged change set”, or “the commit being amended”."},{key:"branch",description:"The current branch name."},{key:"recent_commits",description:"The last ten subjects, newest first."},{key:"files",description:"The files in this commit."},{key:"diff",description:"The staged patch. Required."},{key:"truncated",description:"A note when the diff was cut to fit the model."}],It=`You write git commit messages. Return only the commit message, no prose, no code fences.
|
|
1
|
+
import{d,zt,n,o,i,u,a,Ze,ie,Ut,Ba,rs,Ah,e,s,Qo,B,re,Le,ro,Qr,En,Wn,Pn,p,cn,Ne,un,Q,I,gl,dn,Ia,Bn,Al,_a,pn,it,Rr,f,E,ce,Ro,gi,aa,hi,ae,Xe,Yn,fe,Ie,Nt,et,en,Gt,de,Ue,oo,pe,Sa,oa,sa,yn,ki,mn,Da,xi,Na,ir,Zn,Xn,F,Fr,S,kt,U,La,Fa,vr,kr,tn,jt,Fe,la,cs,Ma,h,k,wh,ds,Tm,Ic,Dm,Ch,kn,wi,N,Eh,qe,Cr,Qe,Zg,Id,lr,Bh,Qt,nt,he,Re,fs,X,Bt,rn,se,Cl,We,be,El,bs,fn,Gh,jh,zm,Hh,qh,Um,Wh,Gm,jm,Oo,Kh,Vh,Hm,tA,qm,J,At,co,Xm,nA,e0,t0,n0,r0,a0,o0,rA,Si,i0,s0,ef,ys,oA,Fc,l0,c0,Mc,u0,tf,d0,p0,nf,m0,f0,g0,rf,A0,Pc,Rd,Ld,h0,zo,b0,y0,af,of,ks,Oc,Fd,v0,k0,xs,sf,iA,Uo,uo,da,Oa,lf,Md,cf,uf,x0,w0,sA,C0,E0,lA,cA,uA,B0,rt,st,_l,I0,dA,_0,S0,T0,D0,gn,ws,po,$c,df,pf,_t,jo,mf,pA,Q0,mA,Pd,ff,Uc,R0,pa,Gc,jc,L0,F0,gf,Af,fA,hf,M0,Hc,qc,bf,Wc,Cs,yf,at,an,gA,Kc,Es,Ee,Vc,Tl,vf,Bs,mo,Yc,Jc,Zc,kf}from"./index-dzp9rwy0.js";import{Wr,ql,Cp}from"./index-me7ag6sy.js";import{ug}from"./index-qva2vqbh.js";import{ht,ap,op,ip,Qu,sp,lp,Ul,Fu,Os,Gl,Mi}from"./index-1w92sjkm.js";import{fa,ed,al,KA,td,nd}from"./index-5j0wejvq.js";import{to,wd,wc,no,Cd,ml,Z,dh,ph,Cc,mh,fh}from"./index-ey0ckd66.js";function Tr(t,r,l){let c={},m=typeof l==="function"?Object.keys(r):Object.keys(l);for(let g of m)if(r[g]!==t[g])c[g]=r[g];return c}var Ir="color";var Ar=["color","monochrome"];function Eu(t){return t==="color"||t==="monochrome"}function Er(t){return Eu(t)?t:"color"}var Mr={color:{label:"Full colour",description:"The shipped app icon, plate and all. Matches the icon in the Dock, the taskbar and the launcher.",caption:"App icon"},monochrome:{label:"Monochrome",description:"A greyscale conversion of the app icon: the green plate and the cream strokes swap luminance with the theme, and the orange arm becomes the middle grey.",caption:"Greyscale"}};var Lr={theme:El,editorFont:Rd,editorTheme:ql,autoSessionTitle:!0,commitMessageMode:"auto",commitMessageHarness:"",commitMessageModel:"",commitMessagePrompt:"",gitIdentities:[],soundAlerts:!0,chatCompletionSound:!0,notifyDesktopEnabled:!0,notifyMobileEnabled:!0,notifyOnFinish:!1,notifyOnAsk:!1,notifyOnError:!1,goalAuditEnabled:!0,goalAuditModel:"",goalDefaultBudget:null,chatWidthMode:Xm,chatColumnWidth:e0,toolRenderStyle:n0,showChangedFiles:!0,sidebarStyle:dh,leftPanelNav:rA,rightPanelNav:rA,rightSideHiddenScope:oA,mobileLeftPanelNav:ef,mobileRightPanelNav:ef,composerStyle:c0,surfaceStyle:d0,borderStyle:f0,iconStyle:Hh,trayIconStyle:Ir,followUpBehavior:"queue",keybindingSend:"Enter",keybindingNewLine:"Shift + Enter",keybindingSteering:"Ctrl / Cmd + Enter",dictation:Oc,tts:iA};function Or(){let[t,r]=n(!1),l=a(async()=>{r(!0);try{let c=await fetch("/api/omp/reload-engine",{method:"POST"}),m=await c.json().catch(()=>null);if(!c.ok||!m?.success)return{ok:!1,message:m?.error??`Reload failed (HTTP ${c.status})`};Uo(),da();let g=m.utility??0,b=m.prewarmed??0;return{ok:!0,message:g+b===0?"No standby omp processes were running — the next command starts the current build.":`Reloaded omp engine — ${g} utility, ${b} prewarmed process${g+b===1?"":"es"} recycled.`}}catch(c){return{ok:!1,message:c instanceof Error?c.message:"Failed to reload the omp engine."}}finally{r(!1)}},[]);return{isReloading:t,reload:l}}function Dr(t={}){let{restart:r}=t,[l,c]=n(!1),m=a(async()=>{c(!0);try{let g=await Md(r),b=await fetch("/api/console/restart",{method:"POST"}),v=await b.json().catch(()=>null);if(!b.ok||!v?.success)return{ok:!1,message:v?.error??`Restart failed (HTTP ${b.status})`};if(!v.restarting)return{ok:!1,message:v.message??"This instance cannot be restarted from the console."};let x=await cf(g,r);if(x==="restarted")return window.location.reload(),{ok:!0,message:v.message??"Restarting — this page reloads on its own."};if(x==="timeout")return{ok:!1,message:`The server did not come back within ${Math.round((r?.timeoutMs??lf)/1000)} seconds — reload this page once it is up.`};return{ok:!1,message:"The restart was cancelled."}}catch(g){return{ok:!1,message:g instanceof Error?g.message:"Failed to restart Kabmo."}}finally{c(!1)}},[r]);return{isRestarting:l,restart:m}}function Ur(t,r){if(typeof document<"u"&&r.theme)qm(r.theme);if(typeof window<"u"&&r.editorFont!==t.editorFont)window.dispatchEvent(new CustomEvent(uA,{detail:r.editorFont}));if(typeof window<"u"&&r.editorTheme!==t.editorTheme)window.dispatchEvent(new CustomEvent(ap,{detail:r.editorTheme}));if(r.chatWidthMode!==t.chatWidthMode)uf(r.chatWidthMode,r.chatColumnWidth);if(r.toolRenderStyle!==t.toolRenderStyle)x0(r.toolRenderStyle);if(r.showChangedFiles!==t.showChangedFiles)w0(r.showChangedFiles);if(r.sidebarStyle!==t.sidebarStyle)fh(r.sidebarStyle);if(r.leftPanelNav!==t.leftPanelNav)sA("left",r.leftPanelNav);if(r.rightPanelNav!==t.rightPanelNav)sA("right",r.rightPanelNav);if(r.mobileLeftPanelNav!==t.mobileLeftPanelNav){if(ug("left",r.mobileLeftPanelNav),r.mobileLeftPanelNav==="tabs")Bh()}if(r.mobileRightPanelNav!==t.mobileRightPanelNav)ug("right",r.mobileRightPanelNav);if(r.rightSideHiddenScope!==t.rightSideHiddenScope)C0(r.rightSideHiddenScope);if(r.composerStyle!==t.composerStyle)E0(r.composerStyle);if(r.surfaceStyle!==t.surfaceStyle)lA(r.surfaceStyle);if(r.borderStyle!==t.borderStyle)cA(r.borderStyle);if(r.iconStyle!==t.iconStyle)tA(r.iconStyle);if(r.dictation!==t.dictation)B0(r.dictation)}var Mu={name:"sliders-vertical",size:24,node:[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],aliases:["sliders"]},$r=s(Mu);var Lu={name:"square-check-big",size:24,node:[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-square"]},_r=s(Lu);var Ou={name:"arrow-down-to-line",size:24,node:[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]},ct=s(Ou);var Du={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]},jr=s(Du);var Uu={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]},Br=s(Uu);var $u={name:"calendar-range",size:24,node:[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M16 2v3",key:"otl347"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M17 13h-6",key:"1qbiup"}],["path",{d:"M13 17H7",key:"1x38vv"}],["path",{d:"M7 13h.01",key:"1vezk1"}],["path",{d:"M17 17h.01",key:"1sd3ek"}]]},Kr=s($u);var _u={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]},Hr=s(_u);var ju={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]},hn=s(ju);var Bu={name:"dice-5",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M8 8h.01",key:"1e4136"}],["path",{d:"M8 16h.01",key:"18s6g9"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]]},zr=s(Bu);var Ku={name:"dollar-sign",size:24,node:[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]},Gr=s(Ku);var Hu={name:"file-diff",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]},Vr=s(Hu);var zu={name:"folder-git",size:24,node:[["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M14 13h3",key:"1dgedf"}],["path",{d:"M7 13h3",key:"1pygq7"}]]},qr=s(zu);var Gu={name:"folder-input",size:24,node:[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]]},Yr=s(Gu);var Wu={name:"hammer",size:24,node:[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]]},Jr=s(Wu);var Vu={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]},Xr=s(Vu);var qu={name:"key",size:24,node:[["path",{d:"m2 21 9.6-9.6",key:"9l79m3"}],["path",{d:"m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19",key:"fw8biw"}],["circle",{cx:"15.5",cy:"7.5",r:"5.5",key:"4wxmhb"}]]},St=s(qu);var Yu={name:"library",size:24,node:[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]},Zr=s(Yu);var Ju={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]},ei=s(Ju);var Xu={name:"list-music",size:24,node:[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M11 19H3",key:"zflm78"}],["path",{d:"M21 16V5",key:"yxg4q8"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]},ti=s(Xu);var Zu={name:"log-out",size:24,node:[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]},vn=s(Zu);var em={name:"log-in",size:24,node:[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]},ni=s(em);var tm={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]},xn=s(tm);var nm={name:"pipette",size:24,node:[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]]},oi=s(nm);var om={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]},ri=s(om);var rm={name:"shield-off",size:24,node:[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]},ii=s(rm);var im={name:"store",size:24,node:[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]]},ft=s(im);var am={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]},wn=s(am);var sm={name:"volume-x",size:24,node:[["path",{d:"M11 4.702a.7.7 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.7.7 0 0 0 11 19.298z",key:"1p7khw"}],["path",{d:"m16.5 14.5 5-5",key:"cul3yw"}],["path",{d:"m16.5 9.5 5 5",key:"1akey5"}]]},ai=s(sm);var lm={name:"waypoints",size:24,node:[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]]},bo=s(lm);var si=["KABMO","CONNECT","WORKSPACE","OMP","HARNESSES"];var Te="4rem",li="calc(4rem + env(safe-area-inset-top, 0px))",Se="flex items-center flex-shrink-0 border-b border-ink/10";var di=[{id:"appearance",label:"Appearance",icon:Na,section:"KABMO",description:"Palette, shell layout, icons, and the code editor’s face, theme and behaviour."},{id:"chats",label:"Chats",icon:yn,section:"KABMO",description:"Chat width, composer style, tool call rendering, session titles, and goal mode."},{id:"voice",label:"Voice",icon:Br,section:"KABMO",description:"The composer mic (speech to text) and spoken answers (text to speech): engines, voices, keys and autoplay."},{id:"keyboard",label:"Keyboard",icon:Sa,section:"KABMO",description:"Every command shortcut, the composer Enter keys, and chord conflicts."},{id:"notifications",label:"Notifications",icon:_a,section:"KABMO",description:"Completion sound, separate Desktop and Mobile delivery switches, and the finished, waiting-for-you and failed run triggers."},{id:"usage",label:"Usage",icon:Qo,section:"KABMO",description:"Build minutes quota, storage, and general usage."},{id:"token-usage",label:"Token Usage",icon:hi,section:"KABMO",description:"Token telemetry, cache, and cost breakdown."},{id:"panel-plugins",label:"Plugins Kabmo",icon:ml,section:"KABMO",description:"Plugins installed into Kabmo: panels, background services, and the MCP servers they register."},{id:"connect",label:"Connect",icon:Fr,section:"CONNECT",description:"Tunnels, addresses, and the devices paired to this server."},{id:"projects",label:"Projects",icon:qr,section:"WORKSPACE",description:"Workspace directories, roots, and ignored paths."},{id:"git",label:"Git",icon:de,section:"WORKSPACE",description:"Commit message generation, the agent that writes it, and the prompt template."},{id:"omp",label:"OMP Engine",icon:Yn,section:"OMP",description:"Live agent state and native omp config keys."},{id:"providers",label:"Providers",icon:Hr,section:"OMP",description:"AI model engines, endpoints, and credentials."},{id:"agents",label:"Agents",icon:it,section:"OMP",description:"Autonomous agent persona, self-healing, and reasoning."},{id:"behavior",label:"Behavior",icon:$r,section:"OMP",description:"Native AGENTS.md and RULES.md: global instructions, permission gates, and safety filters."},{id:"commands",label:"Commands",icon:Fe,section:"OMP",description:"Slash command macros and terminal shortcuts."},{id:"mcp",label:"MCP",icon:Rr,section:"OMP",description:"Model Context Protocol servers and dynamic tools."},{id:"plugins",label:"Plugins",icon:Cd,section:"OMP",description:"Installed omp plugins, marketplaces, features, and plugin settings."},{id:"skills",label:"Skills",icon:Zr,section:"OMP",description:"Manage downloaded skills and scripts."},{id:"skills-catalog",label:"Skills Catalog",icon:pn,section:"OMP",description:"Browse and install new skills."},...dA().map((t)=>({id:t.id,label:t.label,icon:bo,section:"HARNESSES",...t.harness?{harness:t.harness}:{},description:t.description}))];function ci(t){let r=dA(t&&t.length>0?t:void 0).map((c)=>({id:c.id,label:c.label,icon:bo,section:"HARNESSES",...c.harness?{harness:c.harness}:{},description:c.description}));return[...di.filter((c)=>c.section!=="HARNESSES"),...r]}function fo({activeCategory:t,onSelectCategory:r,searchQuery:l,onSearchChange:c,onReloadOmp:m,isReloading:g,onRestartKabmo:b,isRestarting:v,disabledHarnesses:x=[],categories:P=di,className:y=""}){let T=P.filter((w)=>{if(w.harness&&x.includes(w.harness))return!1;if(!l.trim())return!0;let A=l.toLowerCase();return w.label.toLowerCase().includes(A)||w.section.toLowerCase().includes(A)||w.description.toLowerCase().includes(A)});return e("div",{className:`flex flex-col h-full bg-canvas border-r border-ink/10 text-ink select-none ${y}`,children:[e("div",{className:`${Se} px-3`,style:{height:Te},children:e("div",{className:"relative flex w-full items-center",children:[e(U,{size:14,className:"absolute left-2.5 text-ink/40 pointer-events-none"}),e("input",{type:"text",placeholder:"Search settings",value:l,onChange:(w)=>c(w.currentTarget.value),className:"w-full bg-paper border border-ink/15 rounded-lg pl-8 pr-7 py-1.5 text-xs text-ink placeholder-ink/40 focus:outline-none focus:border-ink/40 transition-colors"}),l&&e("button",{type:"button",onClick:()=>c(""),className:"absolute right-2 text-ink/40 hover:text-ink p-0.5",children:e(h,{size:12})})]})}),e("div",{className:"flex-1 scrollbar-overlay-container p-2 space-y-4",children:T.length===0?e("div",{className:"text-center py-8 text-xs text-ink/50 italic",children:"No matching settings found"}):si.map((w)=>{let A=T.filter((R)=>R.section===w);if(A.length===0)return null;return e("div",{className:"space-y-1",children:[e("div",{className:"px-2.5 py-1 text-[10px] font-bold text-ink/40 tracking-wider font-mono uppercase",children:w}),e("div",{className:"space-y-0.5",children:A.map((R)=>{let D=R.icon,C=t===R.id;return e("button",{type:"button",onClick:()=>r(R.id),className:`w-full flex items-center justify-between px-2.5 py-1.5 rounded-lg text-xs transition-all text-left ${C?"bg-ink/10 font-semibold text-ink shadow-2xs":"text-ink/75 hover:bg-ink/5 hover:text-ink"}`,children:[e("div",{className:"flex items-center space-x-2.5 truncate",children:[R.harness?e("span",{className:"flex w-[14px] shrink-0 items-center justify-center",children:e(rt,{harness:R.harness,size:14})}):e(D,{size:14,className:C?"text-ink":"text-ink/60"}),e("span",{className:"truncate",children:R.label})]}),R.badge&&e("span",{className:"px-1.5 py-0.2 text-[10px] font-mono font-medium rounded border border-warning/30 bg-warning/15 text-warning",children:R.badge})]},R.id)})})]},w)})}),e("div",{className:"p-2 border-t border-ink/10 flex-shrink-0 bg-canvas flex items-center gap-0.5",children:[e("button",{type:"button",onClick:m,disabled:g||v,title:"Recycle the standby omp processes so the next command uses the installed binary","aria-label":"Reload OMP",className:"shrink-0 flex items-center space-x-1 px-1 py-1.5 text-[11px] text-ink/75 hover:text-ink hover:bg-ink/5 rounded-lg transition-colors font-medium cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed",children:[e(S,{size:12,className:`shrink-0 ${g?"animate-spin text-warning":"text-ink/60"}`}),e("span",{className:"whitespace-nowrap",children:g?"Reloading…":"Reload OMP"})]}),e("button",{type:"button",onClick:b,disabled:g||v,title:"Stop and start this Kabmo instance","aria-label":"Restart Kabmo",className:"flex-1 min-w-0 flex items-center space-x-1 px-1 py-1.5 text-[11px] text-ink/75 hover:text-ink hover:bg-ink/5 rounded-lg transition-colors font-medium cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed",children:[e(ri,{size:12,className:`shrink-0 ${v?"animate-pulse text-warning":"text-ink/60"}`}),e("span",{className:"truncate",children:v?"Restarting…":"Restart Kabmo"})]})]})]})}function Pe(){let[t,r]=n("list"),l=a(()=>r("detail"),[]),c=a(()=>r("list"),[]);return{pane:t,openDetail:l,back:c}}var pi=zt(null);function ui({register:t,children:r}){return e(pi.Provider,{value:t,children:r})}function mi(t){let r=Ze(pi),l=t?.label,c=t?.description,m=t?.back,g=t?.backLabel;o(()=>{if(!r)return;if(!l||!m||!g){r(null);return}return r({label:l,description:c,back:m,backLabel:g}),()=>r(null)},[r,l,c,m,g])}function bi(){let[t,r]=n(null);return{register:u(()=>(c)=>r((m)=>{if(c===null)return m===null?m:null;if(m&&m.label===c.label&&m.description===c.description&&m.back===c.back&&m.backLabel===c.backLabel)return m;return c}),[]),drill:t}}function Ce({pane:t,onBack:r,list:l,detail:c,listLabel:m,detailLabel:g,detailDescription:b,className:v=""}){return mi(t==="detail"?{label:g??m,description:b,back:r,backLabel:`Back to ${m}`}:null),e("div",{className:`flex-1 flex flex-col md:flex-row h-full w-full min-w-0 overflow-hidden bg-paper text-ink ${v}`,children:[e("div",{className:`${t==="list"?"flex":"hidden"} md:flex flex-1 md:flex-none md:w-auto min-h-0 min-w-0 flex-col`,children:l}),e("div",{className:`${t==="detail"?"flex":"hidden"} md:flex flex-1 min-h-0 min-w-0 flex-col`,children:c})]})}function Pt({groups:t,activeGroupId:r,onSelectGroup:l}){return e("div",{className:"w-full md:w-64 md:border-r border-ink/10 h-full flex flex-col bg-paper/50 flex-shrink-0 select-none",children:[e("div",{className:`${Se} hidden md:flex px-3.5 justify-between`,style:{height:Te},children:e("span",{className:"text-xs font-semibold text-ink",children:[t.length," group",t.length===1?"":"s"]})}),e("div",{className:"flex-1 scrollbar-overlay-container p-1.5 text-xs",children:e("div",{className:"space-y-0.5",children:t.map((c)=>{let m=c.id===r,g=c.icon;return e("button",{type:"button",onClick:()=>l(c.id),"aria-current":m?"true":void 0,"aria-label":`${c.label}: ${c.hint}`,className:`w-full text-left px-2.5 py-2 rounded-lg transition-colors cursor-pointer flex flex-col gap-0.5 ${m?"bg-ink/10 text-ink font-medium shadow-2xs":"text-ink/80 hover:bg-ink/5 hover:text-ink"}`,children:[e("span",{className:"flex items-center gap-1.5 min-w-0",children:[e("span",{"aria-hidden":!0,className:`w-5 h-5 rounded-md flex items-center justify-center flex-shrink-0 ${m?"bg-ink/10 text-ink":"bg-ink/5 text-ink/70"}`,children:e(g,{size:12})}),e("span",{className:"font-semibold text-xs text-ink truncate",children:c.label})]}),e("span",{className:"text-[11px] text-ink/60 line-clamp-1 leading-snug pl-[26px]",children:c.hint})]},c.id)})})})]})}function Ct({group:t,children:r}){return e("div",{className:"flex-1 h-full overflow-hidden flex flex-col text-xs text-ink",children:[e("div",{className:`${Se} hidden md:flex items-start flex-col justify-center px-3.5`,style:{height:Te},children:[e("span",{className:"text-xs font-semibold text-ink/75",children:t.label}),e("p",{className:"w-full text-[11px] text-ink/60 leading-snug mt-0.5 truncate",children:t.description})]}),e("div",{className:"flex-1 overflow-y-auto scrollbar-overlay-container p-3.5 space-y-7 pb-6",children:r})]})}var $t=[{id:"palette",label:"Palette",hint:"The console’s colours",description:"The palette every surface, row and dialog is painted from.",icon:Na,sections:["theme"]},{id:"shell",label:"Shell",hint:"Sidebar, panels, right side, material, rules, icons",description:"The shape of the console around the conversation: the session sidebar, how each desktop panel column is navigated, how long a closed right side is remembered, what the windows are made of, whether the hairlines are drawn, and how glyphs and marks are painted.",icon:cn,sections:["sidebar","panel-nav","right-side","surface","border","icons","tray"]},{id:"editor",label:"Editor",hint:"Typeface and colour theme",description:"The code editor’s own two axes, independent of the console palette: the face it is set in, and the TextMate theme it paints with.",icon:En,sections:["editor-font","editor-theme"]},{id:"editor-behaviour",label:"Editor behaviour",hint:"Indentation, typing, line blame",description:"What the editor does as you type, rather than how it looks. Each one reaches an editor that is already open without a reload.",icon:La,sections:["editor-indent","editor-typing","editor-blame"]}];function fi({theme:t,selected:r,onSelect:l}){return e("button",{type:"button",onClick:()=>l(t.id),"aria-pressed":r,className:`group flex w-full flex-col gap-2.5 rounded-lg border p-2.5 text-left transition-all cursor-pointer ${r?"border-ink bg-ink/5 ring-1 ring-ink/20":"border-ink/20 bg-paper hover:border-ink/40 hover:bg-ink/5"}`,children:[e("div",{className:"flex min-w-0 items-center gap-2",children:[e("span",{className:"min-w-0 truncate font-semibold text-ink",title:t.name,children:t.name}),e("span",{className:"shrink-0 rounded-full border border-ink/15 px-1.5 py-px text-[10px] font-semibold uppercase tracking-wider text-ink/50",children:t.variant}),r&&e(f,{size:14,className:"ml-auto shrink-0 text-ink"})]}),e("div",{className:"flex items-center gap-1",children:jh.map((c)=>e("span",{title:`${c.label} · ${t[c.key]}`,style:{backgroundColor:t[c.key]},className:"h-5 flex-1 rounded-[3px] border border-ink/10"},c.key))})]})}var dm=[{id:"all",label:"All"},{id:"light",label:"Light"},{id:"dark",label:"Dark"}];function cm(t){return t==="all"?bs:bs.filter((r)=>r.variant===t)}function vi({selectedId:t,onSelect:r}){let[l,c]=n("all"),m=u(()=>cm(l),[l]);return e("div",{className:"@container space-y-3 pb-6",children:[e("div",{className:"flex flex-wrap items-center gap-1.5",children:[dm.map((g)=>e("button",{type:"button",onClick:()=>c(g.id),className:`rounded-full border px-2.5 py-1 text-[11px] font-medium transition-colors cursor-pointer ${l===g.id?"border-ink bg-ink text-paper":"border-ink/20 bg-paper text-ink/70 hover:border-ink/40 hover:text-ink"}`,children:[g.id==="light"&&e(wn,{size:11,className:"mr-1 inline align-[-1px]"}),g.id==="dark"&&e(xn,{size:11,className:"mr-1 inline align-[-1px]"}),g.label]},g.id)),e("span",{className:"ml-auto min-w-0 font-mono text-[11px] text-ink/50 whitespace-nowrap",children:[m.length," themes"]})]}),e("div",{className:"grid grid-cols-1 gap-2.5 @[320px]:grid-cols-2 @[560px]:grid-cols-3",children:m.map((g)=>e(fi,{theme:g,selected:g.id===t,onSelect:r},g.id))})]})}function yi({settings:t,onUpdate:r}){return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Console palette"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"The colours every surface, row and dialog is painted from. The code editor has its own theme, in the Editor group."})]}),e(vi,{selectedId:t.theme,onSelect:(l)=>r({theme:Gh(l)})})]})}function vt({width:t,active:r=!1,trailing:l=!1}){return e("span",{className:"flex h-[9px] items-center gap-1 px-1",children:[e("span",{className:`h-[5px] w-[5px] shrink-0 rounded-full ${r?"bg-ink":"bg-ink/25"}`}),e("span",{className:`h-[3px] rounded-full ${r?"bg-ink/70":"bg-ink/25"}`,style:{width:`${t}%`}}),l&&e("span",{className:"ml-auto h-[3px] w-[6px] rounded-full bg-ink/20"})]})}function pm(){return e("span",{className:"flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1","aria-hidden":"true",children:[e("span",{className:"flex items-center gap-0.5",children:[e("span",{className:"h-[7px] w-[30%] rounded-sm bg-ink/80"}),e("span",{className:"h-[7px] w-[7px] rounded-sm border border-ink/20 bg-paper"}),e("span",{className:"h-[7px] w-[7px] rounded-sm border border-ink/20 bg-paper"}),e("span",{className:"ml-auto h-[7px] w-[7px] rounded-sm border border-ink/20 bg-paper"}),e("span",{className:"h-[7px] w-[7px] rounded-sm border border-ink/20 bg-paper"})]}),e("span",{className:"flex h-[7px] items-center gap-1 px-1",children:e("span",{className:"h-[3px] w-[45%] rounded-full bg-ink/45"})}),e(vt,{width:62,trailing:!0}),e(vt,{width:50,active:!0,trailing:!0}),e(vt,{width:44,trailing:!0}),e(vt,{width:56,trailing:!0})]})}function um(){return e("span",{className:"flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1","aria-hidden":"true",children:[e("span",{className:"flex h-[7px] items-center rounded-sm bg-ink/5 px-1",children:e("span",{className:"h-[3px] w-[38%] rounded-full bg-ink/30"})}),e("span",{className:"flex items-center gap-0.5",children:[e("span",{className:"h-[6px] w-[16%] rounded-full bg-ink/80"}),e("span",{className:"h-[6px] w-[22%] rounded-full border border-ink/20"}),e("span",{className:"h-[6px] w-[12%] rounded-full border border-ink/20"})]}),e("span",{className:"flex h-[9px] items-center gap-1 px-1",children:[e("span",{className:"h-[5px] w-[5px] shrink-0 rounded-full bg-ink/50"}),e("span",{className:"h-[3px] w-[40%] rounded-full bg-ink/45"}),e("span",{className:"ml-auto h-[3px] w-[5px] rounded-full bg-ink/20"})]}),e(vt,{width:62,active:!0,trailing:!0}),e(vt,{width:50,trailing:!0}),e(vt,{width:44,trailing:!0})]})}var mm={classic:pm,modern:um};function Ni({settings:t,onUpdate:r}){let l=Cc(t.sidebarStyle);return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Session sidebar"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"How the left column draws its workspaces and chats. Both styles list the same workspaces and offer the same actions; the choice applies to desktop and phone, and takes effect immediately."})]}),e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":"Session sidebar style",children:ph.map((c)=>{let m=mh[c],g=c===l,b=mm[c];return e("button",{type:"button",onClick:()=>r({sidebarStyle:c}),"aria-pressed":g,"aria-label":`${m.label} sidebar — ${m.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${g?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[86px]",children:e(b,{})}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:m.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:m.caption}),g&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:m.description})]},c)})})]})}function Pi(){return e("span",{className:"flex h-full gap-1 rounded-md border border-ink/10 bg-paper p-1","aria-hidden":"true",children:[e("span",{className:"flex w-[9px] flex-col items-center gap-1 border-r border-ink/10 pr-1",children:[e("span",{className:"h-[5px] w-[5px] rounded-sm bg-ink/70"}),e("span",{className:"h-[5px] w-[5px] rounded-sm bg-ink/25"}),e("span",{className:"h-[5px] w-[5px] rounded-sm bg-ink/25"})]}),e("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[e("span",{className:"h-[3px] w-[46%] rounded-full bg-ink/45"}),e("span",{className:"h-[3px] w-[62%] rounded-full bg-ink/25"}),e("span",{className:"h-[3px] w-[54%] rounded-full bg-ink/25"}),e("span",{className:"h-[3px] w-[40%] rounded-full bg-ink/20"})]})]})}function Ci(){return e("span",{className:"flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1","aria-hidden":"true",children:[e("span",{className:"flex items-center gap-1 border-b border-ink/10 pb-1",children:[e("span",{className:"h-[6px] w-[6px] rounded-sm border border-ink/20"}),e("span",{className:"h-[6px] w-[28%] rounded-sm bg-ink/70"}),e("span",{className:"h-[6px] w-[24%] rounded-sm border border-ink/20"})]}),e("span",{className:"flex gap-1",children:[e("span",{className:"h-[16px] w-[22%] rounded border border-ink/15"}),e("span",{className:"h-[16px] w-[22%] rounded border border-ink/15"}),e("span",{className:"h-[16px] w-[22%] rounded border border-ink/15"})]})]})}function Ti(){return e("span",{className:"flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1","aria-hidden":"true",children:[e("span",{className:"flex h-[7px] items-center gap-1 border-b border-ink/10 pb-1",children:[e("span",{className:"h-[6px] w-[16%] rounded-sm bg-ink/70"}),e("span",{className:"h-[6px] w-[16%] rounded-sm border border-ink/20"}),e("span",{className:"h-[6px] w-[16%] rounded-sm border border-ink/20"}),e("span",{className:"h-[6px] w-[16%] rounded-sm border border-ink/20"})]}),e("span",{className:"h-[3px] w-[62%] rounded-full bg-ink/25"}),e("span",{className:"h-[3px] w-[54%] rounded-full bg-ink/25"}),e("span",{className:"h-[3px] w-[40%] rounded-full bg-ink/20"})]})}function Ii({pinned:t=!1}){return e("span",{className:"flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1","aria-hidden":"true",children:[e("span",{className:"flex h-[7px] items-center gap-1 border-b border-ink/10 pb-1",children:[e("span",{className:"h-[6px] w-[6px] rounded-sm border border-ink/20"}),t?e("span",{className:"h-[6px] w-[20%] rounded-sm bg-ink/70"}):null,e("span",{className:`h-[6px] rounded-sm ${t?"w-[18%]":"w-[24%]"} bg-ink/70`}),e("span",{className:"h-[6px] w-[20%] rounded-sm border border-ink/20"})]}),e("span",{className:"flex gap-1",children:[e("span",{className:"h-[16px] w-[24%] rounded border border-ink/15"}),e("span",{className:"h-[16px] w-[24%] rounded border border-ink/15"}),e("span",{className:"h-[16px] w-[24%] rounded border border-ink/15"})]})]})}function gm(t){return t==="rail"?e(Pi,{}):e(Ci,{})}var bm={classic:{label:"Classic",description:"The strip lists every view; tapping one swaps the drawer body.",caption:"All views · one tap"},tabs:{label:"Tabs",description:"The strip holds only the views you opened, over a home page that lists them all. The drawer reopens where you left it.",caption:"Opened views · home page"}},fm={classic:{label:"Classic",description:"The strip lists every view the left dock holds; tapping one swaps the drawer body.",caption:"All views · one tap"},tabs:{label:"Tabs",description:"The strip holds the views you opened, with Sessions pinned first, over a home page that lists the rest. The drawer reopens where you left it.",caption:"Opened views · Sessions pinned"}};function Ai({styles:t,copy:r,miniature:l,current:c,onPick:m,label:g}){return e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":g,children:t.map((b)=>{let v=r[b],x=b===c;return e("button",{type:"button",onClick:()=>m(b),"aria-pressed":x,"aria-label":`${v.label} — ${v.description}`,className:`flex cursor-pointer flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors ${x?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[54px]",children:l(b)}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:v.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:v.caption}),x&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:v.description})]},b)})})}function ho({current:t,onPick:r}){return e(Ai,{styles:o0,copy:i0,miniature:gm,current:t,onPick:r,label:"Panel navigation"})}function vo({side:t,current:r,onPick:l}){let c=t==="left";return e(Ai,{styles:s0,copy:c?fm:bm,miniature:(m)=>m==="classic"?e(Ti,{}):e(Ii,{pinned:c}),current:r,onPick:l,label:c?"Phone left drawer":"Phone right drawer"})}function Ri({settings:t,onUpdate:r}){return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Panel navigation"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"How each panel surface is navigated. Everything is chosen independently: the desktop columns do not set each other, and each phone drawer has its own answer."})]}),e("div",{className:"space-y-2",children:[e("div",{children:[e("h5",{className:"text-[11px] font-semibold text-ink/70",children:"Left column"}),e("div",{className:"mt-1.5",children:e(ho,{current:Si(t.leftPanelNav),onPick:(l)=>r({leftPanelNav:l})})})]}),e("div",{children:[e("h5",{className:"text-[11px] font-semibold text-ink/70",children:"Right column"}),e("div",{className:"mt-1.5",children:e(ho,{current:Si(t.rightPanelNav),onPick:(l)=>r({rightPanelNav:l})})})]}),e("div",{children:[e("h5",{className:"text-[11px] font-semibold text-ink/70",children:"Phone · left drawer"}),e("p",{className:"mt-0.5 text-[11px] text-ink/50",children:"The drawer is one screen, so it has no rail to put beside it. This chooses what its strip lists instead. Under Tabs the session list stays the first, pinned chip."}),e("div",{className:"mt-1.5",children:e(vo,{side:"left",current:ys(t.mobileLeftPanelNav),onPick:(l)=>r({mobileLeftPanelNav:l})})})]}),e("div",{children:[e("h5",{className:"text-[11px] font-semibold text-ink/70",children:"Phone · right drawer"}),e("p",{className:"mt-0.5 text-[11px] text-ink/50",children:"A drawer is one screen, so it has no rail to put beside it. This chooses what its strip lists instead."}),e("div",{className:"mt-1.5",children:e(vo,{side:"right",current:ys(t.mobileRightPanelNav),onPick:(l)=>r({mobileRightPanelNav:l})})})]})]})]})}var hm=["session","global"],vm={session:{label:"Per chat",caption:"default",description:"Closing the side belongs to the chat you closed it in. Every other chat keeps the layout it was left with."},global:{label:"All chats",caption:"global",description:"Closing the side applies to every chat. Opening it once brings it back everywhere, whichever chat is open."}};function Ei({settings:t,onUpdate:r}){let l=Fc(t.rightSideHiddenScope);return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Right side"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"How long the navbar’s right-side button is remembered: the side you closed in one chat, or the side every chat opens with."})]}),e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":"Right side toggle",children:hm.map((c)=>{let m=vm[c],g=c===l;return e("button",{type:"button",onClick:()=>r({rightSideHiddenScope:c}),"aria-pressed":g,"aria-label":`${m.label} — ${m.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${g?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:m.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:m.caption}),g&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:m.description})]},c)})})]})}function Li({backdropFilter:t,reducedTransparency:r}){let l=[];if(!t)l.push("no-backdrop-filter");if(r)l.push("reduced-transparency");return l}var Oi={"no-backdrop-filter":"This engine reports no backdrop blur, so the frost falls back to opaque panels here — the window keeps the glass colours but loses the blur.","reduced-transparency":"Your system asks apps to reduce transparency, so the frost is switched off. Turn that system setting off to see the glass material."};var Di="(prefers-reduced-transparency: reduce)";function xm(){if(typeof CSS>"u"||typeof CSS.supports!=="function")return!1;return CSS.supports("backdrop-filter","blur(1px)")||CSS.supports("-webkit-backdrop-filter","blur(1px)")}function Ui(){let[t,r]=n(()=>typeof window>"u"?!1:window.matchMedia(Di).matches);return o(()=>{let l=window.matchMedia(Di),c=()=>r(l.matches);return c(),l.addEventListener("change",c),()=>l.removeEventListener("change",c)},[]),Li({backdropFilter:xm(),reducedTransparency:t})}function $i(){return e("span",{className:"flex h-full flex-col gap-1 p-1",children:[e("span",{className:"flex items-center gap-1",children:[e("span",{className:"h-[3px] w-[38%] rounded-full bg-ink/40"}),e("span",{className:"ml-auto h-[6px] w-[10%] rounded-[2px] border border-ink/20"})]}),e("span",{className:"h-[2px] w-full rounded-full bg-ink/15"}),e("span",{className:"flex items-center gap-1",children:[e("span",{className:"h-[3px] w-[52%] rounded-full bg-ink/30"}),e("span",{className:"h-[3px] w-[18%] rounded-full bg-ink/15"})]}),e("span",{className:"flex items-center gap-1",children:[e("span",{className:"h-[3px] w-[44%] rounded-full bg-ink/30"}),e("span",{className:"h-[3px] w-[22%] rounded-full bg-ink/15"})]})]})}function ym(){return e("span",{className:"block h-full rounded-md border border-ink/15 bg-paper","aria-hidden":"true",children:[e("span",{className:"block h-[13px] rounded-t-[5px] border-b border-ink/10 bg-paper",children:e("span",{className:"mx-1 mt-[4px] block h-[3px] w-[40%] rounded-full bg-ink/35"})}),e($i,{})]})}function km(){return e("span",{className:"relative block h-full overflow-hidden rounded-md border border-ink/15 bg-canvas","aria-hidden":"true",children:[e("span",{className:"pointer-events-none absolute inset-0",children:[e("span",{className:"absolute -left-2 top-2 h-[70%] w-[55%] rounded-full bg-info/40 blur-md"}),e("span",{className:"absolute -right-2 -top-2 h-[60%] w-[50%] rounded-full bg-meta/35 blur-md"}),e("span",{className:"absolute -bottom-2 right-3 h-[45%] w-[45%] rounded-full bg-success/30 blur-md"})]}),e("span",{className:"relative block h-[13px] border-b border-ink/10 bg-paper/40",children:e("span",{className:"mx-1 mt-[4px] block h-[3px] w-[40%] rounded-full bg-ink/40"})}),e("span",{className:"relative block h-[calc(100%-13px)] bg-paper/50",children:e($i,{})})]})}var wm={classic:ym,glass:km};function Sm(){let t=Ui();if(t.length===0)return null;return e("ul",{className:"space-y-1 rounded-lg border border-ink/15 bg-ink/[0.03] p-2.5","aria-live":"polite",children:t.map((r)=>e("li",{className:"flex gap-1.5 text-[11px] leading-relaxed text-ink/60",children:[e("span",{"aria-hidden":"true",className:"mt-[5px] h-1 w-1 shrink-0 rounded-full bg-ink/40"}),e("span",{children:Oi[r]})]},r))})}function Fi({settings:t,onUpdate:r}){let l=nf(t.surfaceStyle);return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Surfaces"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"What the windows are made of. Both styles draw the same panels, rows and dialogs; the frost is one blur pass per window, and it follows the palette — there is no separate glass colour to tune."})]}),e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":"Surface style",children:p0.map((c)=>{let m=m0[c],g=c===l,b=wm[c];return e("button",{type:"button",onClick:()=>r({surfaceStyle:c}),"aria-pressed":g,"aria-label":`${m.label} surfaces — ${m.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${g?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[78px]",children:e(b,{})}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:m.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:m.caption}),g&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:m.description})]},c)})}),l==="glass"&&e(Sm,{})]})}function Nm({ruled:t}){let r=t?"border-b border-ink/10":"";return e("span",{className:"flex h-full flex-col",children:[0,1,2].map((l)=>e("span",{className:`flex items-center gap-1 px-1 py-[3px] ${r}`,children:[e("span",{className:"h-[3px] w-[26%] rounded-full bg-ink/35"}),e("span",{className:"h-[3px] w-[14%] rounded-full bg-ink/15"})]},l))})}function _i({ruled:t}){return e("span",{className:"flex h-full overflow-hidden rounded-md border border-ink/15 bg-paper","aria-hidden":"true",children:[e("span",{className:`flex w-[34%] flex-col gap-1 p-1 ${t?"border-r border-ink/10":""}`,children:[e("span",{className:"h-[3px] w-[70%] rounded-full bg-ink/35"}),e("span",{className:"h-[3px] w-[52%] rounded-full bg-ink/20"}),e("span",{className:"h-[3px] w-[62%] rounded-full bg-ink/20"})]}),e("span",{className:"flex min-w-0 flex-1 flex-col",children:[e("span",{className:`flex h-[12px] flex-shrink-0 items-center px-1 ${t?"border-b border-ink/10":""}`,children:e("span",{className:"h-[3px] w-[40%] rounded-full bg-ink/30"})}),e(Nm,{ruled:t})]})]})}var Pm={hairline:()=>e(_i,{ruled:!0}),borderless:()=>e(_i,{ruled:!1})};function ji({settings:t,onUpdate:r}){let l=rf(t.borderStyle);return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Rules"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Whether the 1px rules between panels, columns and rows are painted. Controls keep their edge either way, and so do validation colours, drop zones and the focus ring."})]}),e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":"Border style",children:g0.map((c)=>{let m=A0[c],g=c===l,b=Pm[c];return e("button",{type:"button",onClick:()=>r({borderStyle:c}),"aria-pressed":g,"aria-label":`${m.label} rules — ${m.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${g?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[62px]",children:e(b,{})}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:m.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:m.caption}),g&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:m.description})]},c)})})]})}function Cm(t){return fn(t).paper}function xo({name:t,Icon:r,colored:l,paper:c}){let m=Kh(t),g=!l?void 0:m?jm[m]:Oo(Vh(t),"light",c);return e(r,{size:13,strokeWidth:2,style:g?{color:g}:void 0,"aria-hidden":"true"})}function Bi({name:t,base:r,colored:l}){let c=l?r:void 0;return e("span",{className:"flex h-5 w-5 items-center justify-center rounded-[5px] border border-ink/10",style:c?{backgroundColor:`${c}22`,color:c}:void 0,title:t,"aria-hidden":"true",children:e("span",{className:`block h-2 w-2 rounded-full ${l?"":"bg-ink/60"}`,style:c?{backgroundColor:c}:void 0})})}function Ki({colored:t,paper:r}){return e("span",{className:"flex h-full items-center gap-1.5 rounded-md border border-ink/10 bg-canvas/60 px-2",children:[e(xo,{name:"Trash2",Icon:Q,colored:t,paper:r}),e(xo,{name:"Check",Icon:f,colored:t,paper:r}),e(xo,{name:"Sparkles",Icon:Ne,colored:t,paper:r}),e("span",{className:"mx-0.5 h-4 w-px bg-ink/10"}),e(Bi,{name:"claude",base:Gm.claude.light,colored:t}),e(Bi,{name:"Typescript",base:Hm.Typescript.light,colored:t})]})}function Hi({settings:t,onUpdate:r}){let l=Um(t.iconStyle),c=Cm(t.theme),m={monochrome:()=>e(Ki,{colored:!1,paper:c}),color:()=>e(Ki,{colored:!0,paper:c})};return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Icons"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Every icon: toolbar and panel glyphs, provider logos and file-type marks. Full colour gives each glyph its own hue and keeps the palette’s red, green, amber and blue for signals; a colour that would disappear on the active theme falls back to the ink. A control that sets its own colour keeps it."})]}),e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":"Icon style",children:qh.map((g)=>{let b=Wh[g],v=g===l,x=m[g];return e("button",{type:"button",onClick:()=>r({iconStyle:g}),"aria-pressed":v,"aria-label":`${b.label} icons — ${b.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${v?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[42px]",children:e(x,{})}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:b.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:b.caption}),v&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:b.description})]},g)})})]})}function Im(){return e("span",{className:"flex h-full items-center justify-center rounded-md border border-ink/10 bg-canvas/60",children:e("img",{src:"/icon.svg",alt:"",width:26,height:26,className:"rounded-[6px]","aria-hidden":"true"})})}function Am({variant:t}){return e("span",{className:"flex h-full items-center justify-center rounded-md border border-ink/10 bg-canvas/60",children:e("img",{src:`/tray-monochrome-${t}.png`,alt:"",width:26,height:26,"aria-hidden":"true"})})}function zi({settings:t,onUpdate:r}){let l=Er(t.trayIconStyle),c=fn(t.theme).variant,m={color:Im,monochrome:()=>e(Am,{variant:c})};return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Tray icon"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"The menu-bar (macOS) or notification-area (Windows, Linux) icon. Full colour is the shipped app icon, orange arm and all; monochrome is a greyscale conversion: the green plate and the cream strokes swap luminance with the theme, and the orange arm becomes the middle grey. Applies the next time the tray starts, or immediately when it is already running."})]}),e("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",role:"group","aria-label":"Tray icon style",children:Ar.map((g)=>{let b=Mr[g],v=g===l,x=m[g];return e("button",{type:"button",onClick:()=>r({trayIconStyle:g}),"aria-pressed":v,"aria-label":`${b.label} tray icon — ${b.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${v?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[42px]",children:e(x,{})}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:b.label}),e("span",{className:"font-mono text-[10px] text-ink/40",children:b.caption}),v&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:b.description})]},g)})})]})}function Gi({settings:t,onUpdate:r}){let l=t.editorFont||Pc[0].id;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"flex items-center gap-2 text-sm font-semibold text-ink",children:[e(la,{size:15,className:"text-ink/60"}),"Editor font"]}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"Typeface for the code editor and its line numbers, in both the desktop panel and the phone's full-screen editor. Only Fira Code ships with the app; the others are used when your device has them, and fall back to Fira Code when it does not."})]}),e("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:Pc.map((c)=>{let m=l===c.id;return e("button",{type:"button",onClick:()=>r({editorFont:c.id}),"aria-pressed":m,className:`flex items-center justify-between gap-3 rounded-lg border px-3 py-2 text-left transition-colors ${m?"border-ink/40 bg-ink/5":"border-ink/12 hover:bg-ink/5"}`,children:[e("span",{className:"min-w-0",children:[e("span",{className:"block truncate text-xs text-ink",style:{fontFamily:`"${c.id}", monospace`},children:"const greet = () => 'hi'"}),e("span",{className:"mt-0.5 flex items-center gap-1.5 text-[10px] text-ink/50",children:[e("span",{children:c.label}),c.bundled&&e("span",{className:"rounded bg-ink/8 px-1 py-px text-[10px] uppercase tracking-wide",children:"Bundled"})]})]}),m&&e(f,{size:14,className:"text-ink flex-shrink-0"})]},c.id)})})]})}var Rm=[{id:"all",label:"All"},{id:"light",label:"Light"},{id:"dark",label:"Dark"}];function Em(t){return`"${Pc.find((l)=>l.id===t)?.id??Pc[0].id}", monospace`}function Mm({theme:t,face:r}){return e("span",{className:"block overflow-hidden rounded border border-ink/10",style:{backgroundColor:t.bg,color:t.fg},children:e("span",{className:"block px-1.5 py-1 font-mono text-[10px] leading-[1.4]",style:{fontFamily:r},children:[e("span",{style:{color:t.keyword},children:"const"})," ",e("span",{children:"answer"})," ",e("span",{style:{color:t.keyword},children:"="})," ",e("span",{style:{color:t.string},children:"42"}),e("span",{children:";"}),e("span",{className:"block truncate",style:{color:t.comment},children:["// ",t.label]})]})})}function Wi({settings:t,onUpdate:r}){let l=t.editorTheme||Wr,[c,m]=n("all"),g=Em(t.editorFont),b=u(()=>c==="all"?Cp:Cp.filter((v)=>v.variant===c),[c]);return e("section",{className:"@container space-y-3",children:[e("div",{children:[e("h4",{className:"flex items-center gap-2 text-sm font-semibold text-ink",children:[e(Na,{size:15,className:"text-ink/60"}),"Editor theme"]}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:["Colours for the code editor only: the console keeps the palette in the Palette group. ",e("strong",{children:"Auto"})," ","follows the app palette; any other choice paints the editor's own surface, gutter, selection and syntax, and applies to every open editor without a reload."]})]}),e("div",{className:"flex flex-wrap items-center gap-1.5",children:[Rm.map((v)=>e("button",{type:"button",onClick:()=>m(v.id),className:`rounded-full border px-2.5 py-1 text-[11px] font-medium transition-colors cursor-pointer ${c===v.id?"border-ink bg-ink text-paper":"border-ink/20 bg-paper text-ink/70 hover:border-ink/40 hover:text-ink"}`,children:[v.id==="light"&&e(wn,{size:11,className:"mr-1 inline align-[-1px]"}),v.id==="dark"&&e(xn,{size:11,className:"mr-1 inline align-[-1px]"}),v.label]},v.id)),e("span",{className:"ml-auto min-w-0 font-mono text-[11px] text-ink/50 whitespace-nowrap",children:c==="all"?`${b.length} themes`:`${b.length} shown`})]}),e("div",{className:"grid grid-cols-1 gap-2 @[320px]:grid-cols-2 @[560px]:grid-cols-3",children:[e("button",{type:"button",onClick:()=>r({editorTheme:Wr}),"aria-pressed":l===Wr,className:`flex w-full flex-col gap-2 rounded-lg border p-2 text-left transition-colors cursor-pointer ${l===Wr?"border-ink bg-ink/5 ring-1 ring-ink/20":"border-ink/20 bg-paper hover:border-ink/40 hover:bg-ink/5"}`,children:[e("span",{className:"flex items-center gap-2",children:[e("span",{className:"truncate font-semibold text-ink",children:"Auto"}),e("span",{className:"shrink-0 rounded-full border border-ink/15 px-1.5 py-px text-[10px] font-semibold uppercase tracking-wider text-ink/50",children:"app palette"}),l===Wr&&e(f,{size:14,className:"ml-auto shrink-0 text-ink"})]}),e("span",{className:"flex h-8 items-center justify-center rounded border border-dashed border-ink/20 text-[10px] text-ink/50",children:"Follows the theme above"})]}),b.map((v)=>{let x=l===v.id;return e("button",{type:"button",onClick:()=>r({editorTheme:v.id}),"aria-pressed":x,className:`flex w-full flex-col gap-2 rounded-lg border p-2 text-left transition-colors cursor-pointer ${x?"border-ink bg-ink/5 ring-1 ring-ink/20":"border-ink/20 bg-paper hover:border-ink/40 hover:bg-ink/5"}`,children:[e("span",{className:"flex items-center gap-2",children:[e("span",{className:"truncate font-semibold text-ink",title:v.label,children:v.label}),e("span",{className:"shrink-0 rounded-full border border-ink/15 px-1.5 py-px text-[10px] font-semibold uppercase tracking-wider text-ink/50",children:v.variant}),x&&e(f,{size:14,className:"ml-auto shrink-0 text-ink"})]}),e(Mm,{theme:v,face:g})]},v.id)})]})]})}function Vi({settings:t,onUpdate:r}){let l=N("editorIndentWidth"),c=typeof l==="number"&&ip.includes(l)?l:Qu.width,m=(g)=>{if(g===c)return;let b={...sp(),width:g};Cr({editorIndentWidth:g,editorInsertSpaces:!0}),r((v)=>({...v})),window.dispatchEvent(new CustomEvent(op,{detail:b}))};return e("section",{className:"space-y-3",children:e("div",{className:"flex items-center justify-between gap-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Editor indentation"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"One level, in spaces. Enter, Tab and the auto-indent rules all use it."})]}),e("div",{className:"flex items-center gap-1",role:"group","aria-label":"Indentation width",children:ip.map((g)=>e("button",{type:"button",onClick:()=>m(g),"aria-pressed":g===c,"aria-label":`${g} spaces`,className:`px-2.5 py-1 rounded border text-[11px] font-mono transition-colors cursor-pointer ${g===c?"border-ink/40 bg-ink/10 text-ink":"border-ink/15 text-ink/60 hover:bg-ink/5 hover:text-ink"}`,children:g},g))})]})})}function qi({label:t,hint:r,checked:l,onChange:c}){return e("label",{className:"flex items-start justify-between gap-3 cursor-pointer",children:[e("span",{className:"min-w-0",children:[e("span",{className:"block text-xs text-ink",children:t}),e("span",{className:"block text-[11px] text-ink/50 mt-0.5",children:r})]}),e("input",{type:"checkbox",checked:l,onChange:(m)=>c(m.currentTarget.checked),"aria-label":t,className:`${be} mt-0.5 accent-ink flex-shrink-0`})]})}function Yi({settings:t,onUpdate:r}){let l=Fu(),c=N("editorAutoCloseBrackets"),m=N("editorAutocomplete"),g=(b)=>{let v={...Fu(),...b};Cr(b),r((x)=>({...x})),window.dispatchEvent(new CustomEvent(lp,{detail:v}))};return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Editor typing"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"Both change what typing does, which is why they are switches rather than always-on."})]}),e("div",{className:"space-y-2.5 rounded-lg border border-ink/10 p-3",children:[e(qi,{label:"Auto-close brackets",hint:"Typing ( or { inserts the matching closer, and typing it again steps over it.",checked:typeof c==="boolean"?c:Ul.autoCloseBrackets,onChange:(b)=>g({editorAutoCloseBrackets:b})}),e(qi,{label:"Suggest words from the file",hint:`Offers identifiers already near the caret (${l.autocomplete?"on":"off"}). Words only — this is not a language server.`,checked:typeof m==="boolean"?m:Ul.autocomplete,onChange:(b)=>g({editorAutocomplete:b})})]})]})}function Ji({label:t,hint:r,checked:l,onChange:c}){return e("label",{className:"flex items-start justify-between gap-3 cursor-pointer",children:[e("span",{className:"min-w-0",children:[e("span",{className:"block text-xs text-ink",children:t}),e("span",{className:"block text-[11px] text-ink/50 mt-0.5",children:r})]}),e("input",{type:"checkbox",checked:l,onChange:(m)=>c(m.target.checked),className:`${be} mt-0.5 shrink-0 accent-ink`})]})}function Xi({settings:t,onUpdate:r}){let l=N("editorBlame"),c=N("editorBlameInline"),m=Mi(),g=(b)=>{let v={...Mi(),...b};Cr(b),r((x)=>({...x})),window.dispatchEvent(new CustomEvent(Os,{detail:v}))};return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Line blame"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"Who last touched a line, and which commit. Read from git, so it needs a committed file."})]}),e("div",{className:"space-y-2.5 rounded-lg border border-ink/10 p-3",children:[e(Ji,{label:"Show blame on hover",hint:"Hover a line number — or the label, when it is on — to see the author, the commit and the line's own history.",checked:typeof l==="boolean"?l:Gl.enabled,onChange:(b)=>g({editorBlame:b})}),e(Ji,{label:"Show the label in the editor",hint:`Puts “author · age” at the end of each block. It costs horizontal room, so it is off on a narrow panel by default (${m.inline?"on":"off"}).`,checked:typeof c==="boolean"?c:Gl.inline,onChange:(b)=>g({editorBlameInline:b})})]})]})}var Lm={theme:yi,sidebar:Ni,"panel-nav":Ri,"right-side":Ei,surface:Fi,border:ji,icons:Hi,tray:zi,"editor-font":Gi,"editor-theme":Wi,"editor-indent":Vi,"editor-typing":Yi,"editor-blame":Xi};function Qi({settings:t,onUpdate:r}){let l=Pe(),[c,m]=n($t[0].id),g=$t.find((b)=>b.id===c)??$t[0];return e(Ce,{pane:l.pane,onBack:l.back,listLabel:"Appearance settings",detailLabel:g.label,detailDescription:g.description,list:e(Pt,{groups:$t,activeGroupId:g.id,onSelectGroup:(b)=>{m(b),l.openDetail()}}),detail:e(Ct,{group:g,children:g.sections.map((b)=>{let v=Lm[b];return e(v,{settings:t,onUpdate:r},b)})})})}var Ft=[{id:"layout",label:"Layout",hint:"Chat width and composer shape",description:"How wide the conversation is drawn, and the shape of the box you type into.",icon:cn,sections:["width","composer"]},{id:"transcript",label:"Transcript",hint:"Tool calls, changed files and follow-up dispatch",description:"How a tool call is drawn, whether a run lists the files it changed, and what happens to a prompt sent while the agent is still running.",icon:oa,sections:["tool-calls","changed-files","follow-up"]},{id:"sessions",label:"Sessions",hint:"Titles and goal mode",description:"How a session gets its name, and the defaults a new goal starts with.",icon:yn,sections:["titles","goal"]}];var Om={compact:"60%",wide:"85%",full:"100%",custom:"80%"};function Zi({settings:t,onUpdate:r}){let l=t.chatWidthMode;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Chat Width"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"How wide the conversation is drawn. The composer follows the transcript, and no mode hides a panel. Drag the right edge of the transcript for any width in between."})]}),e("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-3",role:"group","aria-label":"Chat width",children:[...nA,"custom"].map((c)=>{let m=t0[c],g=l===c;return e("div",{onClick:()=>r({chatWidthMode:c}),role:"button",tabIndex:0,"aria-pressed":g,onKeyDown:(b)=>{if(b.key==="Enter"||b.key===" ")b.preventDefault(),r({chatWidthMode:c})},className:`p-3.5 rounded-lg border text-left transition-all cursor-pointer flex flex-col justify-between select-none ${g?"border-ink bg-ink/5 ring-1 ring-ink/20 shadow-xs":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:e("div",{children:[e("div",{className:"flex items-center justify-between mb-2",children:[e("span",{className:"font-semibold text-xs text-ink",children:[m.label,c==="custom"&&e("span",{className:"ml-1.5 font-mono font-normal text-[10px] text-ink/55",children:[t.chatColumnWidth,"px"]})]}),e("div",{className:`w-4 h-4 rounded-full border flex items-center justify-center ${g?"border-ink bg-ink text-paper":"border-ink/30 bg-transparent"}`,children:g&&e(f,{size:10,strokeWidth:3})})]}),e("div",{"aria-hidden":!0,className:"h-1.5 rounded-full bg-ink/10 mb-2.5 overflow-hidden",children:e("div",{className:`h-full rounded-full ${g?"bg-ink":"bg-ink/35"}`,style:{width:Om[c]}})}),e("p",{className:"text-[11px] text-ink/65 leading-relaxed",children:m.description})]})},c)})}),e("p",{className:"text-[10px] text-ink/45 font-mono",children:"On a phone the column already fills the screen, so the mode and the drag have no visible effect."})]})}function ea({active:t=!1}){return e("span",{className:`h-[6px] w-[16px] rounded-sm border ${t?"border-ink/40 bg-ink/15":"border-ink/20 bg-ink/5"}`})}function $m({hero:t=!1}){return e("span",{className:`flex flex-col gap-[3px] rounded-md border border-ink/15 bg-paper px-1.5 py-1 ${t?"flex-1 justify-center":""}`,children:[e("span",{className:"h-[2.5px] w-[72%] rounded-full bg-ink/25"}),e("span",{className:"h-[2.5px] w-[54%] rounded-full bg-ink/20"}),e("span",{className:"h-[2.5px] w-[30%] rounded-full bg-ink/15"})]})}function Fm({rail:t=!1}){if(t)return e("span",{className:"flex items-center gap-1 border-t border-ink/10 px-1 pt-1 font-mono",children:[e("span",{className:"h-[2.5px] w-[14px] rounded-full bg-ink/30"}),e("span",{className:"h-[2.5px] w-[9px] rounded-full bg-ink/20"}),e("span",{className:"h-[2.5px] w-[11px] rounded-full bg-ink/20"}),e("span",{className:"ml-auto h-[7px] w-[7px] rounded-sm bg-ink/80"})]});return e("span",{className:"flex items-center gap-1 px-1",children:[e("span",{className:"h-[6px] w-[20px] rounded-sm bg-ink/15"}),e("span",{className:"h-[6px] w-[10px] rounded-sm bg-ink/10"}),e("span",{className:"ml-auto h-[7px] w-[7px] rounded-full border border-ink/25"}),e("span",{className:"h-[7px] w-[7px] rounded-sm bg-ink/80"})]})}var _m={classic:"rounded-md bg-paper border-ink/10",calm:"rounded-lg bg-paper border-ink/10",console:"rounded-sm bg-paper border-ink/10",stage:"rounded-md bg-paper border-ink/15",glass:"rounded-xl border-ink/15 bg-gradient-to-b from-ink/[0.06] to-transparent"};function Bm({style:t}){let r=tf({style:t,hero:t==="stage"});return e("span",{className:`flex h-full flex-col gap-1 border p-1 ${_m[t]}`,"aria-hidden":"true",children:r.wire.map((l,c)=>l==="draft"?e($m,{hero:t==="stage"},c):l==="chip"?e("span",{className:"flex items-center gap-1 px-1",children:[e(ea,{active:t!=="calm"}),e(ea,{})]},c):e(Fm,{rail:r.toolbarTone==="rail"},c))})}function ta({settings:t,onUpdate:r}){let l=Mc(t.composerStyle);return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Composer"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"The shape of the box you type into. Every style offers the same controls — attachments, plan and goal, access mode, model, thinking, voice, send — and only their order and frame change. Applies to desktop and phone, and takes effect immediately."})]}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",role:"group","aria-label":"Composer style",children:l0.map((c)=>{let m=u0[c],g=c===l;return e("button",{type:"button",onClick:()=>r({composerStyle:c}),"aria-pressed":g,"aria-label":`${m.label} composer — ${m.description}`,className:`flex flex-col gap-2 rounded-xl border p-2.5 text-left transition-colors cursor-pointer ${g?"border-ink/40 bg-ink/5":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/5"}`,children:[e("span",{className:"block h-[92px]",children:e(Bm,{style:c})}),e("span",{className:"flex items-center gap-1.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:m.label}),g&&e("span",{className:"ml-auto rounded-full bg-ink px-1.5 py-[1px] text-[10px] font-semibold text-paper",children:"active"})]}),e("span",{className:"text-[11px] leading-relaxed text-ink/60",children:m.description})]},c)})})]})}function Km({mode:t}){if(t==="card")return e("div",{"aria-hidden":!0,className:"space-y-1 rounded-md border border-ink/15 bg-paper px-2 py-1.5",children:[e("div",{className:"flex items-center gap-1",children:[e("span",{className:"h-1.5 w-1.5 rounded-full bg-ink/50"}),e("span",{className:"h-1 w-10 rounded-full bg-ink/35"}),e("span",{className:"ml-auto h-1 w-5 rounded-full bg-ink/20"})]}),e("div",{className:"h-1 w-16 rounded-full bg-ink/15"})]});if(t==="compact")return e("div",{"aria-hidden":!0,className:"space-y-1.5 rounded-md border border-transparent px-1 py-1",children:[0,1].map((r)=>e("div",{className:"flex items-center gap-1",children:[e("span",{className:"h-1.5 w-1.5 rounded-full bg-ink/40"}),e("span",{className:"h-1 w-8 rounded-full bg-ink/30"}),e("span",{className:"ml-auto h-1 w-6 rounded-full bg-ink/15"})]},r))});if(t==="trace")return e("div",{"aria-hidden":!0,className:"relative ml-1 pl-3 py-1",children:[e("span",{className:"absolute left-[3px] top-1 bottom-1 w-px bg-ink/20"}),[0,1,2].map((r)=>e("div",{className:"flex items-center gap-1 py-0.5",children:[e("span",{className:"h-1.5 w-1.5 rounded-full bg-ink/40"}),e("span",{className:"h-1 w-10 rounded-full bg-ink/25"})]},r))]});if(t==="tui")return e("div",{"aria-hidden":!0,className:"space-y-1 px-1 py-1 font-mono",children:[0,1].map((r)=>e("div",{className:"flex items-baseline gap-1",children:[e("span",{className:"text-[6px] text-success",children:"✔"}),e("span",{className:"h-1 w-3 rounded-full bg-info/70"}),e("span",{className:"h-1 w-6 rounded-full bg-meta/70"}),e("span",{className:"ml-auto h-1 w-2 rounded-full bg-ink/25"})]},r))});return e("div",{"aria-hidden":!0,className:"space-y-1.5 px-1 py-1",children:[e("div",{className:"h-1 w-20 rounded-full bg-ink/25"}),e("div",{className:"h-1 w-14 rounded-full bg-ink/15"})]})}function na({settings:t,onUpdate:r}){let l=t.toolRenderStyle;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Tool Calls"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"How a tool call is drawn in the transcript. Every style shows the same outcome, facts and body."})]}),e("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:r0.map((c)=>{let m=a0[c],g=l===c;return e("div",{onClick:()=>r({toolRenderStyle:c}),role:"button",tabIndex:0,"aria-pressed":g,onKeyDown:(b)=>{if(b.key==="Enter"||b.key===" ")b.preventDefault(),r({toolRenderStyle:c})},className:`p-3.5 rounded-lg border text-left transition-all cursor-pointer flex flex-col justify-between select-none ${g?"border-ink bg-ink/5 ring-1 ring-ink/20 shadow-xs":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:e("div",{children:[e("div",{className:"flex items-center justify-between mb-2",children:[e("span",{className:"font-semibold text-xs text-ink",children:m.label}),e("div",{className:`w-4 h-4 rounded-full border flex items-center justify-center ${g?"border-ink bg-ink text-paper":"border-ink/30 bg-transparent"}`,children:g&&e(f,{size:10,strokeWidth:3})})]}),e("div",{className:"mb-2.5 h-12 rounded-md bg-canvas/50 px-1 py-1",children:e(Km,{mode:c})}),e("p",{className:"text-[11px] text-ink/65 leading-relaxed",children:m.description})]})},c)})}),e("p",{className:"text-[10px] text-ink/45 font-mono",children:"The style is global: it applies to every session, and the composer keeps its own frame."})]})}function Wm({label:t,enabled:r,onToggle:l}){return e("button",{type:"button",role:"switch","aria-checked":r,"aria-label":`${r?"Disable":"Enable"} ${t}`,onClick:l,className:`relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ${r?"bg-ink":"bg-ink/20"}`,children:e("span",{"aria-hidden":"true",className:`pointer-events-none inline-block h-5 w-5 transform rounded-full bg-paper shadow ring-0 transition duration-200 ease-in-out ${r?"translate-x-5":"translate-x-0"}`})})}function ra({settings:t,onUpdate:r}){let l=t.showChangedFiles;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Changed Files"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"A collapsed list of the files a run changed, above its footer. Clicking a file opens the agent's own diff — the content it wrote, not the current worktree."})]}),e("div",{className:"flex items-start justify-between gap-4 py-3",children:[e("div",{className:"flex items-start gap-3",children:[e("div",{className:"w-8 h-8 rounded-md bg-ink/5 border border-ink/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:e(Vr,{size:16,className:l?"text-ink":"text-ink/40"})}),e("div",{children:[e("div",{className:"text-sm font-semibold text-ink",children:"Show changed files"}),e("p",{className:"text-ink/65 text-[11px] mt-1 leading-relaxed",children:"Read from the session's change journal. Sessions recorded before omp 18.20.1 have no journal, so the list stays empty there."})]})]}),e(Wm,{label:"Show changed files",enabled:l,onToggle:()=>r({showChangedFiles:!l})})]})]})}function ia({settings:t,onUpdate:r}){return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Follow-up Dispatch"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"Choose how new user prompts are handled while the AI agent is actively executing."})]}),e("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e("div",{onClick:()=>r({followUpBehavior:"queue"}),role:"button",tabIndex:0,onKeyDown:(l)=>l.key==="Enter"&&r({followUpBehavior:"queue"}),className:`p-3.5 rounded-lg border text-left transition-all cursor-pointer flex flex-col justify-between select-none ${t.followUpBehavior==="queue"?"border-ink bg-ink/5 ring-1 ring-ink/20 shadow-xs":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:[e("div",{children:[e("div",{className:"flex items-center justify-between mb-2",children:[e("div",{className:"flex items-center gap-2",children:[e("div",{className:`w-7 h-7 rounded-md flex items-center justify-center ${t.followUpBehavior==="queue"?"bg-ink text-paper":"bg-ink/5 text-ink/70"}`,children:e(oa,{size:15})}),e("span",{className:"font-semibold text-xs text-ink",children:"Queue Mode"})]}),e("span",{className:"text-[10px] font-mono uppercase px-1.5 py-0.5 rounded bg-ink/10 text-ink/70 font-medium",children:"Sequential"})]}),e("p",{className:"text-[11px] text-ink/65 leading-relaxed",children:"Messages wait in an execution queue and run in succession once current inference completes."})]}),e("div",{className:"mt-3 pt-2.5 border-t border-ink/10 flex items-center justify-between text-[11px]",children:[e("span",{className:"text-ink/50 text-[10px]",children:"Recommended for batch operations"}),e("div",{className:`w-4 h-4 rounded-full border flex items-center justify-center ${t.followUpBehavior==="queue"?"border-ink bg-ink text-paper":"border-ink/30 bg-transparent"}`,children:t.followUpBehavior==="queue"&&e(f,{size:10,strokeWidth:3})})]})]}),e("div",{onClick:()=>r({followUpBehavior:"steering"}),role:"button",tabIndex:0,onKeyDown:(l)=>l.key==="Enter"&&r({followUpBehavior:"steering"}),className:`p-3.5 rounded-lg border text-left transition-all cursor-pointer flex flex-col justify-between select-none ${t.followUpBehavior==="steering"?"border-ink bg-ink/5 ring-1 ring-ink/20 shadow-xs":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:[e("div",{children:[e("div",{className:"flex items-center justify-between mb-2",children:[e("div",{className:"flex items-center gap-2",children:[e("div",{className:`w-7 h-7 rounded-md flex items-center justify-center ${t.followUpBehavior==="steering"?"bg-ink text-paper":"bg-ink/5 text-ink/70"}`,children:e(hn,{size:15})}),e("span",{className:"font-semibold text-xs text-ink",children:"Steering Mode"})]}),e("span",{className:"text-[10px] font-mono uppercase px-1.5 py-0.5 rounded bg-ink/10 text-ink/70 font-medium",children:"Intervention"})]}),e("p",{className:"text-[11px] text-ink/65 leading-relaxed",children:"Immediately redirects current agent trajectory and focuses runtime resources onto the new instruction."})]}),e("div",{className:"mt-3 pt-2.5 border-t border-ink/10 flex items-center justify-between text-[11px]",children:[e("span",{className:"text-ink/50 text-[10px]",children:"Recommended for active debugging"}),e("div",{className:`w-4 h-4 rounded-full border flex items-center justify-center ${t.followUpBehavior==="steering"?"border-ink bg-ink text-paper":"border-ink/30 bg-transparent"}`,children:t.followUpBehavior==="steering"&&e(f,{size:10,strokeWidth:3})})]})]})]})]})}var Vm=[{enabled:!0,label:"Generate Automatically",badge:"Default",icon:Ne,description:`As soon as your first message lands, the session is named from it using omp's own tiny title model — retried once when the run ends if that first attempt came back empty. Sessions stop showing "New Session - <timestamp>" in the sidebar.`,note:"One small model call per session"},{enabled:!1,label:"Manual Only",badge:"Opt-out",icon:la,description:"Sessions keep their timestamp placeholder until you rename them from the sidebar. Choose this when every title should be deliberate, or to avoid the extra model call.",note:"No background model calls"}];function ca({settings:t,onUpdate:r}){let l=t.autoSessionTitle??!0;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Session Titles"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"How a session gets its display name. A name you set yourself is never replaced."})]}),e("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:Vm.map(({enabled:c,label:m,badge:g,icon:b,description:v,note:x})=>{let P=l===c,y=()=>r({autoSessionTitle:c});return e("div",{onClick:y,role:"button",tabIndex:0,onKeyDown:(T)=>T.key==="Enter"&&y(),className:`p-3.5 rounded-lg border text-left transition-all cursor-pointer flex flex-col justify-between select-none ${P?"border-ink bg-ink/5 ring-1 ring-ink/20 shadow-xs":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:[e("div",{children:[e("div",{className:"flex items-center justify-between mb-2",children:[e("div",{className:"flex items-center gap-2",children:[e("div",{className:`w-7 h-7 rounded-md flex items-center justify-center ${P?"bg-ink text-paper":"bg-ink/5 text-ink/70"}`,children:e(b,{size:15})}),e("span",{className:"font-semibold text-xs text-ink",children:m})]}),e("span",{className:"text-[10px] font-mono uppercase px-1.5 py-0.5 rounded bg-ink/10 text-ink/70 font-medium",children:g})]}),e("p",{className:"text-[11px] text-ink/70 leading-relaxed",children:v})]}),e("div",{className:"mt-3 pt-2.5 border-t border-ink/10 flex items-center justify-between text-[11px]",children:[e("span",{className:"text-ink/50",children:x}),P&&e("span",{className:"flex items-center gap-1 text-ink font-medium",children:[e(f,{size:12})," Active"]})]})]},m)})})]})}var Ym=[{enabled:!0,label:"Independent auditor",badge:"Default",description:"After every finished turn a separate model reads the objective and the agent's own report and decides: keep going, done, or needs you. Without it nothing advances a goal on its own.",note:"One extra model call per turn"},{enabled:!1,label:"Manual only",badge:"Opt-out",description:"Goals still exist — objective, pause, resume and the token budget all work — but the loop never continues by itself. Use it when a goal should only ever run the turns you ask for.",note:"No background model calls"}];function ua({settings:t,onUpdate:r}){let l=$c(),[c,m]=n([]),[g,b]=n(!0),v=t.goalAuditEnabled??!0,x=t.goalAuditModel??"",P=t.goalDefaultBudget??null,[y,T]=n(P===null?"":String(P));o(()=>{T(P===null?"":String(P))},[P]);let w=()=>{let A=df(y);if(T(A===null?"":String(A)),A!==P)r({goalDefaultBudget:A})};return o(()=>{let A=!0;return uo().then((R)=>{if(!A)return;m(Array.isArray(R.modelList)?R.modelList.map((D)=>({id:D.id,name:D.name,provider:D.provider})):[])}).catch(()=>{}).finally(()=>{if(A)b(!1)}),()=>{A=!1}},[]),e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Goal Mode"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"A goal keeps a session working toward one objective until it is done, out of budget, or the auditor says it needs you."})]}),e("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:Ym.map(({enabled:A,label:R,badge:D,description:C,note:M})=>{let L=v===A,O=()=>r({goalAuditEnabled:A});return e("div",{onClick:O,role:"button",tabIndex:0,onKeyDown:(_)=>_.key==="Enter"&&O(),className:`p-3.5 rounded-lg border text-left transition-all cursor-pointer flex flex-col justify-between select-none ${L?"border-ink bg-ink/5 ring-1 ring-ink/20 shadow-xs":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:[e("div",{children:[e("div",{className:"flex items-center justify-between mb-2",children:[e("div",{className:"flex items-center gap-2",children:[e("div",{className:`w-7 h-7 rounded-md flex items-center justify-center ${L?"bg-ink text-paper":"bg-ink/5 text-ink/70"}`,children:e(Fa,{size:15})}),e("span",{className:"font-semibold text-xs text-ink",children:R})]}),e("span",{className:"text-[10px] font-mono uppercase px-1.5 py-0.5 rounded bg-ink/10 text-ink/70 font-medium",children:D})]}),e("p",{className:"text-[11px] text-ink/65 leading-relaxed",children:C})]}),e("div",{className:"mt-3 pt-2.5 border-t border-ink/10 flex items-center justify-between text-[11px]",children:[e("span",{className:"text-ink/50 text-[10px]",children:M}),e("div",{className:`w-4 h-4 rounded-full border flex items-center justify-center ${L?"border-ink bg-ink text-paper":"border-ink/30 bg-transparent"}`,children:L&&e(f,{size:10,strokeWidth:3})})]})]},R)})}),v&&e("div",{className:"rounded-lg border border-ink/15 bg-paper p-3.5 space-y-3",children:e("div",{children:[e("label",{className:"mb-1 block text-[10px] font-semibold uppercase tracking-wider text-ink/45",children:"Auditor model"}),e(Z,{ariaLabel:"Auditor model",value:x,onChange:(A)=>r({goalAuditModel:A}),disabled:g,placeholder:"Session model (default)",className:"w-full py-1.5 text-[11.5px]",options:c.map((A)=>({value:`${A.provider}/${A.id}`,label:A.name,hint:`${A.provider}/${A.id}`,group:ws(A.provider,l)}))}),e("p",{className:"mt-1 text-[10.5px] text-ink/45",children:"The audit is a classification, not a task: it runs with thinking off, one small call per turn."})]})}),e("div",{className:"rounded-lg border border-ink/15 bg-paper p-3.5",children:[e("label",{className:"mb-1 flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wider text-ink/45",children:[e(hi,{size:11})," Default token budget"]}),e("div",{className:"flex items-center gap-2",children:[e("input",{value:y,onChange:(A)=>T(A.currentTarget.value),onBlur:w,onKeyDown:(A)=>{if(A.key==="Enter")w()},placeholder:"none: the turn ceiling is then the only stop",inputMode:"numeric","aria-label":"Default goal token budget",className:"w-56 rounded border border-ink/15 bg-paper px-2 py-1.5 font-mono text-[11.5px] outline-none focus:border-ink"}),e("span",{className:"text-[10.5px] text-ink/45",children:"New goals start with this budget; a goal you set explicitly keeps its own."})]})]}),e("div",{className:"flex items-start gap-2 rounded-lg border border-ink/10 bg-canvas/40 p-3 text-[11px] text-ink/60",children:[e(jt,{size:12,className:"mt-0.5 shrink-0"}),e("span",{children:"The objective is set per goal from the composer's target button. The auditor judges progress from the objective and the agent's own report only — write an objective that says what finished looks like."})]})]})}var Jm={width:Zi,composer:ta,"tool-calls":na,"changed-files":ra,"follow-up":ia,titles:ca,goal:ua};function ma({settings:t,onUpdate:r}){let l=Pe(),[c,m]=n(Ft[0].id),g=Ft.find((b)=>b.id===c)??Ft[0];return e(Ce,{pane:l.pane,onBack:l.back,listLabel:"Chat settings",detailLabel:g.label,detailDescription:g.description,list:e(Pt,{groups:Ft,activeGroupId:g.id,onSelectGroup:(b)=>{m(b),l.openDetail()}}),detail:e(Ct,{group:g,children:g.sections.map((b)=>{let v=Jm[b];return e(v,{settings:t,onUpdate:r},b)})})})}var Kt=[{id:"dictation",label:"Dictation (STT)",hint:"The composer mic and its recognizer",description:"Which engine transcribes the microphone, in which language, and with which key and capture limits.",icon:ki,sections:["dictation"]},{id:"speech",label:"Speech (TTS)",hint:"Read answers aloud, engine and autoplay",description:"Which engine reads an assistant answer aloud, in which voice, and whether a finished run starts speaking by itself.",icon:Ma,sections:["speech"]}];function yo(t){if(typeof t!=="object"||t===null)return{available:!1};if(!("available"in t)||t.available!==!0)return{available:!1,..."reason"in t&&typeof t.reason==="string"?{reason:t.reason}:{}};return{available:!0}}var Ht={hasApiKey:!1,local:{available:!1}};async function ko(t){let r=await fetch("/api/settings/dictation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),l=await r.json().catch(()=>null),c=typeof l==="object"&&l!==null?l:{};if(r.ok)return{ok:!0,body:c};return{ok:!1,body:c,error:typeof c.error==="string"?c.error:`The route answered ${r.status}.`}}function Qm(t){let r=t.settings;return{hasApiKey:typeof r==="object"&&r!==null&&"hasApiKey"in r&&r.hasApiKey===!0,local:yo(t.local)}}function ga(){let[t,r]=n(null),[l,c]=n(null),[m,g]=n(!1),b=a(async()=>{try{let y=await fetch("/api/settings/dictation"),T=await y.json().catch(()=>null);if(!y.ok||typeof T!=="object"||T===null){c(`The dictation route answered ${y.status}.`),r(Ht);return}let w=T;r(Qm(w)),c(typeof w.error==="string"?w.error:null)}catch{c("Could not read the dictation settings from the server."),r(Ht)}},[]);o(()=>{b()},[b]);let v=a(async(y)=>{g(!0);try{let T=await ko({apiKey:y});if(!T.ok)return c(T.error??"Could not save the API key."),!1;return c(null),r((w)=>({...w??Ht,hasApiKey:!0})),!0}finally{g(!1)}},[]),x=a(async()=>{g(!0);try{let y=await ko({action:"clear-key"});if(!y.ok)return c(y.error??"Could not clear the API key."),!1;return c(null),r((T)=>({...T??Ht,hasApiKey:!1})),!0}finally{g(!1)}},[]),P=a(async()=>{g(!0);try{let y=await ko({action:"probe"});if(!y.ok){c(y.error??"Could not probe the local engine.");return}c(null),r((T)=>({...T??Ht,local:yo(y.body.local)}))}finally{g(!1)}},[]);return{state:t,error:l,busy:m,reload:b,saveApiKey:v,clearApiKey:x,reprobe:P}}function ba({config:t,local:r,busy:l,onSelect:c,onReprobe:m}){return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Engine"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Where the microphone audio is transcribed."})]}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:Ld.map((g)=>{let b=t.engine===g.id,v=g.id==="omp"?Yn:Qr,x=g.id==="omp"&&r!==void 0&&r!==null&&!r.available;return e("div",{role:"button",tabIndex:0,"aria-pressed":b,onClick:()=>c(g.id),onKeyDown:(P)=>P.key==="Enter"&&c(g.id),className:`flex cursor-pointer select-none flex-col justify-between rounded-lg border p-3.5 text-left transition-all ${b?"border-ink bg-ink/5 ring-1 ring-ink/20":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:[e("div",{children:[e("div",{className:"mb-2 flex items-center justify-between",children:[e("div",{className:"flex items-center gap-2",children:[e("div",{className:`flex h-7 w-7 items-center justify-center rounded-md ${b?"bg-ink text-paper":"bg-ink/5 text-ink/70"}`,children:e(v,{size:15})}),e("span",{className:"text-xs font-semibold text-ink",children:g.label})]}),g.needsKey&&e("span",{className:"rounded bg-ink/10 px-1.5 py-0.5 font-mono text-[10px] uppercase text-ink/70",children:"Key"})]}),e("p",{className:"text-[11px] leading-relaxed text-ink/70",children:g.where})]}),e("div",{className:"mt-3 flex items-start justify-between gap-2 border-t border-ink/10 pt-2.5 text-[11px]",children:[x?e("span",{className:"flex items-start gap-1 text-ink/60",children:[e(I,{size:11,className:"mt-0.5 shrink-0"}),e("span",{children:"Unavailable: the local worker did not start."})]}):e("span",{className:"text-ink/50",children:g.id==="omp"?r?.available?"Local worker is running":"Checked when the page opens":`Default model: ${g.defaultModel}`}),b&&e("span",{className:"flex shrink-0 items-center gap-1 font-medium text-ink",children:[e(f,{size:12})," Active"]})]})]},g.id)})}),r&&!r.available&&r.reason&&e("div",{className:"rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2",children:[e("p",{className:"text-[11px] leading-relaxed text-ink/70",children:r.reason}),e("button",{type:"button",disabled:l,onClick:m,className:"mt-2 inline-flex items-center gap-1.5 rounded-md border border-ink/20 px-2 py-1 text-[11px] font-medium text-ink transition-colors hover:bg-ink/5 disabled:opacity-40",children:[e(S,{size:11,className:l?"animate-spin":""}),"Check again"]})]})]})}function ha({config:t,onSelect:r}){let l=zo(t.engine).language==="detect";return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Language"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"The recognizer is told this language. Picking the wrong one is what turns Indonesian speech into English-looking words."})]}),e("div",{className:"divide-y divide-ink/10 rounded-lg border border-ink/15 bg-paper",children:y0.map((c)=>{let m=t.language===c.id,g=c.id==="auto"&&!l;return e("button",{type:"button","aria-pressed":m,disabled:g,onClick:()=>r(c.id),className:`flex w-full items-start justify-between gap-3 px-3.5 py-2.5 text-left transition-colors ${g?"cursor-not-allowed opacity-45":"hover:bg-ink/[0.03]"}`,children:[e("span",{className:"min-w-0",children:[e("span",{className:"block text-xs font-medium text-ink",children:[c.label,c.tag&&e("span",{className:"ml-1.5 font-mono text-[10px] text-ink/40",children:c.tag})]}),e("span",{className:"mt-0.5 block text-[11px] leading-relaxed text-ink/60",children:g?"The local engine cannot detect a language — a missing hint is English. Pick Indonesian or English.":c.note})]}),m&&e(f,{size:13,className:"mt-0.5 shrink-0 text-ink"})]},c.id)})})]})}var Sn="w-full rounded-md border border-ink/20 bg-paper px-2 py-1.5 font-mono text-[11px] text-ink outline-none transition-colors placeholder:text-ink/30 focus:border-ink/50";function va({config:t,hasApiKey:r,busy:l,onPatch:c,onSaveKey:m,onClearKey:g}){let b=zo(t.engine),[v,x]=n(t.baseUrl),[P,y]=n(t.model),[T,w]=n(t.prompt),[A,R]=n("");o(()=>x(t.baseUrl),[t.baseUrl]),o(()=>y(t.model),[t.model]),o(()=>w(t.prompt),[t.prompt]);let D=v.trim()&&ks(v)===null?"That is not an http(s) URL, or it embeds a username/password.":null;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Endpoint and model"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:[b.needsKey?"A key is required. It is stored outside the settings table, in a file only this server reads.":"The local engine needs no key and no network.",b.docs&&e(d,{children:[" ",e("a",{href:b.docs,target:"_blank",rel:"noreferrer",className:"underline decoration-ink/30 underline-offset-2 hover:text-ink",children:"API reference"})]})]})]}),b.editableBaseUrl&&e("div",{className:"space-y-2 rounded-lg border border-ink/15 bg-paper px-3.5 py-3",children:[e("div",{className:"flex flex-wrap gap-1.5",children:h0.map((C)=>e("button",{type:"button",title:C.note,onClick:()=>{x(C.baseUrl),y(C.model),c({baseUrl:C.baseUrl,model:C.model})},className:"rounded-md border border-ink/20 px-2 py-1 text-[11px] text-ink/75 transition-colors hover:bg-ink/5 hover:text-ink",children:C.label},C.id))}),e("label",{className:"flex flex-col gap-1",children:[e("span",{className:"text-[10px] text-ink/50",children:"Base URL"}),e("input",{type:"text",value:v,spellcheck:!1,placeholder:b.baseUrl,onInput:(C)=>x(C.currentTarget.value),onBlur:()=>{let C=v.trim();if(C!==t.baseUrl)c({baseUrl:C})},className:Sn})]}),D&&e("p",{className:"text-[11px] text-error",children:D})]}),e("div",{className:"space-y-2 rounded-lg border border-ink/15 bg-paper px-3.5 py-3",children:[e("label",{className:"flex flex-col gap-1",children:[e("span",{className:"text-[10px] text-ink/50",children:"Model"}),e("input",{type:"text",value:P,spellcheck:!1,list:"dictation-models",placeholder:b.defaultModel,onInput:(C)=>y(C.currentTarget.value),onBlur:()=>{let C=P.trim();if(C!==t.model)c({model:C})},className:Sn}),e("datalist",{id:"dictation-models",children:b.models.map((C)=>e("option",{value:C.id,children:C.hint},C.id))}),e("span",{className:"text-[11px] text-ink/50",children:["Empty uses ",b.label,"'s default (",b0(t.engine,""),")."]})]}),e("label",{className:"flex flex-col gap-1",children:[e("span",{className:"text-[10px] text-ink/50",children:"Vocabulary hint (optional)"}),e("input",{type:"text",value:T,placeholder:"Project names, jargon, acronyms",onInput:(C)=>w(C.currentTarget.value),onBlur:()=>{if(T!==t.prompt)c({prompt:T})},className:Sn}),e("span",{className:"text-[11px] text-ink/50",children:"Sent as the transcription prompt so unusual words are spelled as you write them. Ignored by Deepgram and ElevenLabs."})]}),b.needsKey&&e("div",{className:"space-y-1.5 border-t border-ink/10 pt-2.5",children:[e("span",{className:"flex items-center gap-1.5 text-[10px] text-ink/50",children:[e(to,{size:11}),"API key ",r?"— a key is stored":"— none stored"]}),e("div",{className:"flex gap-1.5",children:[e("input",{type:"password",value:A,autocomplete:"off",spellcheck:!1,placeholder:r?"Replace the stored key":"Paste the key",onInput:(C)=>R(C.currentTarget.value),className:Sn}),e("button",{type:"button",disabled:l||!A.trim(),onClick:()=>{m(A.trim()),R("")},className:"shrink-0 rounded-md bg-ink px-2.5 py-1 text-[11px] font-medium text-paper transition-opacity disabled:cursor-not-allowed disabled:opacity-40",children:"Save"}),r&&e("button",{type:"button",disabled:l,onClick:g,title:"Remove the stored key",className:"shrink-0 rounded-md border border-ink/20 px-2 py-1 text-ink/70 transition-colors hover:bg-ink/5 hover:text-ink disabled:opacity-40",children:e(Q,{size:12})})]})]})]})]})}var wo="w-full rounded-md border border-ink/20 bg-paper px-2 py-1.5 text-[11px] text-ink outline-none transition-colors focus:border-ink/50";function xa({config:t,onPatch:r}){let[l,c]=n(null),[m,g]=n(!1),b=async()=>{if(typeof navigator>"u"||!navigator.mediaDevices?.enumerateDevices){c([]);return}g(!0);try{let v=await navigator.mediaDevices.enumerateDevices();c(v.filter((x)=>x.kind==="audioinput").map((x,P)=>({id:x.deviceId,label:x.label||`Microphone ${P+1}`})))}catch{c([])}finally{g(!1)}};return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Microphone and limits"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Capture happens in this browser; the engine only ever sees the finished utterance."})]}),e("div",{className:"space-y-2 rounded-lg border border-ink/15 bg-paper px-3.5 py-3",children:[e("div",{className:"flex flex-col gap-1",children:[e("div",{className:"flex items-center justify-between gap-2 text-[10px] text-ink/50",children:[e("span",{className:"flex items-center gap-1.5",children:[e(ki,{size:11})," Input device"]}),e("button",{type:"button",disabled:m,onClick:()=>void b(),className:"inline-flex items-center gap-1 rounded-md border border-ink/20 px-1.5 py-0.5 text-[10px] font-medium text-ink/70 transition-colors hover:bg-ink/5 hover:text-ink disabled:opacity-40",children:[e(ti,{size:10,className:m?"animate-pulse":""}),l===null?"Find microphones":"Refresh list"]})]}),e(Z,{ariaLabel:"Input device",value:t.deviceId,onChange:(v)=>r({deviceId:v}),placeholder:"System default",searchable:(l??[]).length>10,triggerClassName:wo,options:(l??[]).map((v)=>({value:v.id,label:v.label}))}),l!==null&&l.length===0&&e("span",{className:"text-[11px] text-ink/50",children:"No input devices are listed — the browser hides them until microphone permission has been granted once."})]}),e("div",{className:"grid grid-cols-2 gap-2",children:[e("label",{className:"flex flex-col gap-1",children:[e("span",{className:"text-[10px] text-ink/50",children:"Shortest utterance (ms)"}),e("input",{type:"number",min:100,max:5000,step:50,value:t.minMs,onInput:(v)=>r({minMs:Number(v.currentTarget.value)}),className:wo})]}),e("label",{className:"flex flex-col gap-1",children:[e("span",{className:"text-[10px] text-ink/50",children:"Stop after (ms)"}),e("input",{type:"number",min:1000,max:of,step:1000,value:t.maxMs,onInput:(v)=>r({maxMs:Number(v.currentTarget.value)}),className:wo})]})]}),e("p",{className:"text-[11px] leading-relaxed text-ink/50",children:["Anything shorter than ",t.minMs," ms (default ",af," ms) is refused without a request, and silence is refused too — a stray tap is exactly what makes a recognizer answer with a hallucinated “Thank you.”. A recording stops itself at ",t.maxMs," ms so a forgotten mic cannot grow past the provider's upload limit."]})]})]})}function ya({settings:t,onUpdate:r}){let l=ga(),c=t.dictation,m=(g)=>{r({dictation:{...c,...g}})};return e("div",{className:"mx-auto w-full max-w-3xl space-y-7",children:[e("p",{className:"text-[11px] leading-relaxed text-ink/60",children:"The composer's mic button. The language you pick here is what the recognizer is told — with the wrong one, Indonesian speech is decoded as English words that sound similar, and English speech is mangled the other way round."}),l.error&&e("p",{className:"rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70",children:l.error}),e(ba,{config:c,local:l.state?.local,busy:l.busy,onSelect:(g)=>m({engine:g}),onReprobe:()=>void l.reprobe()}),e(ha,{config:c,onSelect:(g)=>m({language:g})}),e(va,{config:c,hasApiKey:l.state?.hasApiKey??!1,busy:l.busy,onPatch:m,onSaveKey:(g)=>void l.saveApiKey(g),onClearKey:()=>void l.clearApiKey()}),e(xa,{config:c,onPatch:m})]})}var xt={hasKeys:{},local:{available:!1}};async function So(t){try{let r=await fetch("/api/settings/speech",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),l=await r.json().catch(()=>null),c=typeof l==="object"&&l!==null?l:{};if(!r.ok)return{ok:!1,error:typeof c.error==="string"?c.error:`The speech route answered ${r.status}.`,body:c};return{ok:!0,body:c}}catch{return{ok:!1,error:"Could not reach the speech settings route.",body:{}}}}function ka(t){let r=t.settings,l={};if(typeof r==="object"&&r!==null){let m=r.hasKeys;if(typeof m==="object"&&m!==null){for(let[g,b]of Object.entries(m))if(b===!0)l[g]=!0}}let c=t.local;return{hasKeys:l,local:typeof c==="object"&&c!==null?{available:c.available===!0,...typeof c.reason==="string"?{reason:String(c.reason)}:{}}:{available:!1}}}function wa(){let[t,r]=n(null),[l,c]=n(null),[m,g]=n(!1),b=a(async()=>{try{let y=await fetch("/api/settings/speech"),T=await y.json().catch(()=>null);if(!y.ok||typeof T!=="object"||T===null){c(`The speech route answered ${y.status}.`),r(xt);return}let w=T;r(ka(w)),c(typeof w.error==="string"?w.error:null)}catch{c("Could not read the speech settings from the server."),r(xt)}},[]);o(()=>{b()},[b]);let v=a(async(y,T)=>{g(!0);try{let w=await So({engine:y,apiKey:T});if(!w.ok)return c(w.error??"Could not save the API key."),!1;return c(null),r((A)=>({...A??xt,hasKeys:{...(A??xt).hasKeys,[y]:!0}})),!0}finally{g(!1)}},[]),x=a(async(y)=>{g(!0);try{let T=await So({engine:y,action:"clear-key"});if(!T.ok)return c(T.error??"Could not clear the API key."),!1;return c(null),r((w)=>{let A={...(w??xt).hasKeys};return delete A[y],{...w??xt,hasKeys:A}}),!0}finally{g(!1)}},[]),P=a(async()=>{g(!0);try{let y=await So({action:"probe"});if(!y.ok){c(y.error??"Could not probe the local engine.");return}c(null),r((T)=>({...T??xt,local:ka(y.body).local}))}finally{g(!1)}},[]);return{state:t,error:l,busy:m,reload:b,saveKey:v,clearKey:x,reprobe:P}}var Zm=1000;function eg(t){return t==="downloading"||t==="extracting"||t==="probing"}function Wt(t){return typeof t==="object"&&t!==null?t:{}}function Pa(t){if(!Array.isArray(t))return[];return t.map((r)=>Wt(r)).filter((r)=>typeof r.id==="string")}function tg(t){let r=Wt(t),l=Wt(r.runtime);return{models:Pa(r.models),catalog:Pa(r.catalog),jobs:Array.isArray(r.jobs)?r.jobs:[],runtime:{available:l.available===!0,...typeof l.reason==="string"?{reason:l.reason}:{}}}}async function Ca(t){try{let r=await fetch("/api/tts/models",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),l=await r.json().catch(()=>null),c=Wt(l);if(!r.ok)return{ok:!1,error:typeof c.error==="string"?c.error:`The model route answered ${r.status}.`,body:c};return{ok:!0,body:c}}catch{return{ok:!1,error:"Could not reach the model route.",body:{}}}}function Ta(){let[t,r]=n(null),[l,c]=n(null),[m,g]=n(!1),b=i(!0),v=a(async()=>{try{let T=await fetch("/api/tts/models"),w=await T.json().catch(()=>null);if(!T.ok){let A=Wt(w);c(typeof A.error==="string"?A.error:`The model route answered ${T.status}.`);return}if(!b.current)return;c(null),r(tg(w))}catch{if(b.current)c("Could not reach the model route.")}},[]);o(()=>(b.current=!0,v(),()=>{b.current=!1}),[v]);let x=t?.jobs.some((T)=>eg(T.status))??!1;o(()=>{if(!x)return;let T=setInterval(()=>void v(),Zm);return()=>clearInterval(T)},[x,v]);let P=a(async(T)=>{g(!0),c(null);try{let w=await Ca({action:"install",...T});if(!w.ok)return c(w.error??"The install could not start."),!1;return await v(),!0}finally{g(!1)}},[v]),y=a(async(T)=>{g(!0),c(null);try{let w=await Ca({action:"remove",id:T});if(!w.ok)return c(w.error??"The model could not be removed."),!1;return await v(),!0}finally{g(!1)}},[v]);return{state:t,error:l,busy:m,install:P,remove:y,reload:v}}function Aa({config:t,local:r,localRuntime:l,installedModels:c,busy:m,onSelect:g,onReprobe:b}){return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Engine"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Where the answer's text is sent to be spoken."})]}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:Fd.map((v)=>{let x=t.engine===v.id,P=v.id==="omp"||v.id==="local"?Yn:Qr,y=v.id==="omp"&&r!==void 0&&r!==null&&!r.available;return e("div",{role:"button",tabIndex:0,"aria-pressed":x,onClick:()=>g(v.id),onKeyDown:(T)=>T.key==="Enter"&&g(v.id),className:`flex cursor-pointer select-none flex-col justify-between rounded-lg border p-3.5 text-left transition-all ${x?"border-ink bg-ink/5 ring-1 ring-ink/20":"border-ink/15 bg-paper hover:border-ink/30 hover:bg-ink/[0.02]"}`,children:[e("div",{children:[e("div",{className:"mb-2 flex items-center justify-between",children:[e("div",{className:"flex items-center gap-2",children:[e("div",{className:`flex h-7 w-7 items-center justify-center rounded-md ${x?"bg-ink text-paper":"bg-ink/5 text-ink/70"}`,children:e(P,{size:15})}),e("span",{className:"text-xs font-semibold text-ink",children:v.label})]}),x?e(f,{size:14,className:"text-success"}):v.needsKey&&e("span",{className:"rounded bg-ink/10 px-1.5 py-0.5 font-mono text-[10px] uppercase text-ink/70",children:"Key"})]}),e("p",{className:"text-[11px] leading-relaxed text-ink/70",children:v.where})]}),v.id==="omp"&&e("div",{className:"mt-2 flex items-start gap-1.5 text-[10px] leading-snug",children:y?e(d,{children:[e(I,{size:12,className:"mt-px flex-shrink-0 text-error"}),e("span",{className:"text-error",children:r?.reason??"The local engine is unavailable."})]}):e("span",{className:"text-ink/50",children:r===null||r===void 0?"Checking the local engine…":"omp can run local speech on this machine."})}),v.id==="local"&&e("div",{className:"mt-2 flex items-start gap-1.5 text-[10px] leading-snug",children:l&&!l.available?e(d,{children:[e(I,{size:12,className:"mt-px flex-shrink-0 text-error"}),e("span",{className:"text-error",children:l.reason??"The ONNX runtime is unavailable."})]}):e("span",{className:"text-ink/50",children:l===void 0?"Checking the ONNX runtime…":c===0?"No model installed yet — download one below.":`${c} model${c===1?"":"s"} installed on this machine.`})})]},v.id)})}),t.engine==="omp"&&r!==void 0&&r!==null&&!r.available&&e("button",{type:"button",disabled:m,onClick:b,className:"inline-flex items-center gap-1.5 rounded-md border border-ink/15 px-2 py-1 text-[11px] text-ink/70 transition-colors hover:border-ink/30 hover:text-ink disabled:opacity-50",children:[e(S,{size:11,className:m?"animate-spin":void 0}),"Check again"]})]})}var ng=["Female 1","Female 2","Female 3","Female 4","Female 5","Male 1","Male 2","Male 3","Male 4","Male 5"],No={ar:"Arabic",bg:"Bulgarian",cs:"Czech",da:"Danish",de:"German",el:"Greek",en:"English",es:"Spanish",et:"Estonian",fi:"Finnish",fr:"French",hi:"Hindi",hr:"Croatian",hu:"Hungarian",id:"Indonesian",it:"Italian",ja:"Japanese",ko:"Korean",lt:"Lithuanian",lv:"Latvian",nl:"Dutch",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sk:"Slovak",sl:"Slovenian",sv:"Swedish",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese"},og=Object.keys(No),N1=[{id:"supertonic-3",label:"Supertonic 3",arch:"supertonic",languages:[...og],defaultLanguage:"en",voices:10,voiceLabels:[...ng],sampleRate:44100,sizeBytes:146000000,curated:!0,sourceUrl:"https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/sherpa-onnx-supertonic-3-tts-int8-2026-05-11.tar.bz2",notes:"99M parameters, 31 languages including Indonesian, ten voices. Weights OpenRAIL-M, runtime MIT."},{id:"kokoro-en-zh",label:"Kokoro 82M (English + Chinese)",arch:"kokoro",languages:["en","zh"],defaultLanguage:"en",voices:103,sampleRate:24000,sizeBytes:140000000,curated:!0,sourceUrl:"https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/kokoro-int8-multi-lang-v1_1.tar.bz2",notes:"82M parameters, 103 voices, English and Chinese only — Supertonic 3 is the Indonesian one."}];function Ra(t){return(t&&t.languages.length>0?t.languages:Object.keys(No)).map((l)=>({id:l,label:No[l]??l.toUpperCase()}))}function rg(t,r){return t?.voiceLabels?.[r]??`Voice ${r}`}function Ea(t){let r=t?.voices??0;if(r<=0)return[{id:"0",label:"Default voice"}];return Array.from({length:r},(l,c)=>({id:String(c),label:rg(t,c)}))}function Nn(t){if(!t||t<=0)return"";let r=t/1e6;return r>=1000?`${(r/1000).toFixed(1)} GB`:`${Math.round(r)} MB`}function Po(t){let r=[];if(t.languages.length>0)r.push(`${t.languages.length} languages`);else r.push("languages not declared");if(t.voices>0)r.push(`${t.voices} voices`);let l=Nn(t.sizeBytes);if(l)r.push(l);return r.join(" · ")}var je="w-full rounded-md border border-ink/20 bg-paper px-2 py-1.5 font-mono text-[11px] text-ink outline-none transition-colors placeholder:text-ink/30 focus:border-ink/50 disabled:opacity-50",Co="rounded-lg border border-ink/15 bg-paper px-3.5 py-3";function Ua(t,r){return t.find((l)=>l.id===r)}function ig(t){if(!t)return"";switch(t.status){case"downloading":{let r=t.total>0?` of ${Nn(t.total)}`:"";return`Downloading ${Nn(t.received)||"0 MB"}${r}`}case"extracting":return"Unpacking";case"probing":return"Loading the model once";case"ready":return"Ready";case"error":return t.error??"The install failed."}}function $a({job:t,onRetry:r}){let l=t.status==="downloading"||t.status==="extracting"||t.status==="probing";return e("div",{className:"rounded-lg border border-ink/15 bg-ink/[0.02] px-3 py-2",children:[e("div",{className:"flex items-center gap-2 text-[11px] text-ink/70",children:[l?e(p,{size:12,className:"animate-spin"}):e(I,{size:12,className:"text-error"}),e("span",{className:"font-medium text-ink",children:t.label}),e("span",{className:"text-ink/60",children:ig(t)}),t.status==="error"&&e("button",{type:"button",onClick:r,className:"ml-auto rounded border border-ink/20 px-1.5 py-0.5 text-[10px] text-ink/70 hover:border-ink/40 hover:text-ink",children:"Try again"})]}),l&&e("div",{className:"mt-1.5 h-1 overflow-hidden rounded-full bg-ink/10",children:e("div",{className:"h-full rounded-full bg-ink/50 transition-[width] duration-300",style:{width:`${Math.round(Math.max(0.02,Math.min(1,t.progress))*100)}%`}})})]})}function ag({model:t,selected:r,job:l,busy:c,onSelect:m,onRemove:g}){return e("div",{className:`flex items-start justify-between gap-3 rounded-lg border p-3 text-left transition-colors ${r?"border-ink bg-ink/5 ring-1 ring-ink/20":"border-ink/15 bg-paper hover:border-ink/30"}`,children:[e("button",{type:"button",onClick:m,className:"min-w-0 flex-1 text-left",children:[e("div",{className:"flex items-center gap-2",children:[e("span",{className:"truncate text-xs font-semibold text-ink",children:t.label}),r&&e("span",{className:"rounded bg-ink px-1.5 py-0.5 text-[9px] uppercase text-paper",children:"In use"})]}),e("p",{className:"mt-0.5 text-[11px] leading-relaxed text-ink/60",children:Po(t)}),t.languages.length===0&&e("p",{className:"mt-1 text-[10px] leading-relaxed text-ink/50",children:"This model declares no languages, so the language is passed through unchanged."}),l?.status==="error"&&e("p",{className:"mt-1 text-[10px] text-error",children:l.error})]}),e("button",{type:"button",disabled:c,onClick:g,"aria-label":`Remove ${t.label}`,className:"rounded-md border border-ink/15 p-1.5 text-ink/60 transition-colors hover:border-error/40 hover:text-error disabled:opacity-40",children:e(Q,{size:12})})]})}function ja({config:t,server:r,onSelect:l}){let[c,m]=n(""),g=r.state,b=g?.models??[],v=g?.catalog??[],x=g?.jobs??[],P=new Set(b.map((w)=>w.id)),y=v.filter((w)=>!P.has(w.id)),T=g!==null&&!g.runtime.available;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Local models"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Runs inside Kabmo's own server — no key, no upload. Pick the model here, then its voice and language under Voice and rate."})]}),r.error&&e("p",{className:"rounded-lg border border-error/30 bg-error/5 px-3 py-2 text-[11px] leading-relaxed text-error",children:r.error}),T&&e("p",{className:"rounded-lg border border-ink/15 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70",children:g?.runtime.reason??"The ONNX runtime is unavailable on this platform."}),e("div",{className:"space-y-2",children:[e("p",{className:"text-[11px] font-medium text-ink/70",children:"Installed"}),g===null?e("p",{className:"text-[11px] text-ink/50",children:"Reading the installed models…"}):b.length===0?e("p",{className:"rounded-lg border border-dashed border-ink/20 px-3 py-3 text-[11px] leading-relaxed text-ink/60",children:"No model yet. Download one below — Supertonic 3 speaks Indonesian and English, and nothing leaves this machine."}):b.map((w)=>e(ag,{model:w,selected:t.model===w.id||!t.model&&b[0]?.id===w.id,job:Ua(x,w.id),busy:r.busy,onSelect:()=>l(w.id),onRemove:()=>void r.remove(w.id)},w.id))]}),y.length>0&&e("div",{className:"space-y-2",children:[e("p",{className:"text-[11px] font-medium text-ink/70",children:"Available to download"}),y.map((w)=>{let A=Ua(x,w.id);return e("div",{className:"rounded-lg border border-ink/15 bg-paper p-3",children:[e("div",{className:"flex items-start justify-between gap-3",children:[e("div",{className:"min-w-0",children:[e("p",{className:"text-xs font-semibold text-ink",children:w.label}),e("p",{className:"mt-0.5 text-[11px] leading-relaxed text-ink/60",children:Po(w)}),w.notes&&e("p",{className:"mt-1 text-[10px] leading-relaxed text-ink/50",children:w.notes})]}),e("button",{type:"button",disabled:r.busy||T||A!==void 0&&A.status!=="error",onClick:()=>void r.install({id:w.id}),className:"inline-flex flex-shrink-0 items-center gap-1.5 rounded-md border border-ink/20 px-2 py-1 text-[11px] text-ink transition-colors hover:border-ink/40 hover:bg-ink/5 disabled:opacity-40",children:[e(fe,{size:11}),"Download"]})]}),A&&e("div",{className:"mt-2",children:e($a,{job:A,onRetry:()=>void r.install({id:w.id})})})]},w.id)})]}),e("div",{className:"space-y-2",children:[e("label",{className:"block space-y-1",children:[e("span",{className:"block text-[11px] font-medium text-ink/70",children:"Add from a link"}),e("div",{className:"flex gap-2",children:[e("input",{type:"url",value:c,onInput:(w)=>m(w.currentTarget.value),placeholder:"https://…/sherpa-onnx-…-int8.tar.bz2",className:je}),e("button",{type:"button",disabled:r.busy||T||!c.trim(),onClick:()=>{let w=c.trim();if(!w)return;r.install({url:w}).then((A)=>{if(A)m("")})},className:"inline-flex flex-shrink-0 items-center gap-1.5 rounded-md border border-ink/20 px-2.5 text-[11px] text-ink transition-colors hover:border-ink/40 hover:bg-ink/5 disabled:opacity-40",children:[e(ei,{size:11}),"Add"]})]})]}),e("p",{className:"text-[10px] leading-relaxed text-ink/50",children:"A `.tar.bz2` or `.tar.gz` bundle from sherpa-onnx's TTS releases. Kabmo reads the archive and keeps it only if it is a Supertonic or Kokoro bundle; a model it cannot run is refused before anything is written."}),x.filter((w)=>w.status==="error"&&!P.has(w.id)).map((w)=>e($a,{job:w,onRetry:()=>void r.install(w.url?{url:w.url}:{id:w.id})},w.id))]})]})}var Ka={source:"@oh-my-pi/pi-coding-agent 10 tabs / 647 settings",tabs:[{id:"appearance",label:"Appearance",groups:["Theme","Composer","Status Line","Images","Display"]},{id:"model",label:"Model",groups:["Prompt","Prewalk","Vision","Thinking","Sampling","Retry & Fallback","Advisor"]},{id:"interaction",label:"Interaction",groups:["Startup & Updates","Git","Input","Magic Keywords","Notifications","Power","Agent","Approvals","Skills","Speech","Collab","Stream"]},{id:"context",label:"Context",groups:["General","Compaction","Experimental","Rules (TTSR)"]},{id:"memory",label:"Memory",groups:["General","Sharpshooter","Auto-Learn","Mnemopi","Hindsight"]},{id:"files",label:"Files",groups:["Editing","Reading","Read Summaries","LSP"]},{id:"shell",label:"Shell",groups:["Bash","Eval & Runtimes"]},{id:"tools",label:"Tools",groups:["Output Limits","Available Tools","Todos","Grep & Browser","Find","Computer","Execution","GitHub","Discovery & MCP","Developer","Extensions","Disassembler","IDA Pro","Ghidra","Binary Ninja"]},{id:"tasks",label:"Tasks",groups:["Isolation","Subagents","Modes","Commands & Skills"]},{id:"providers",label:"Providers",groups:["Services","Fireworks","Tiny Model","Protocol","Timeouts","Privacy"]}],entries:{"auth.unpausedProviders":{type:"array",default:[],ui:{tab:"providers",group:"Services",label:"Unpaused Providers",description:"Turn providers we paused back on: login, token refresh and stored credentials work again. Each pause names the account risk you accept. Project settings cannot set this",options:[{value:"google-antigravity",label:"Google Antigravity (Gemini, Claude, GPT-OSS)",description:"Google Antigravity is paused: Google's terms do not allow third-party sign-in and Google has suspended accounts that used it (see #18341). Use GEMINI_API_KEY (AI Studio) or google-vertex instead."}],condition:"unpausedProvidersNotProject"}},modelRoleStorage:{type:"enum",default:"global",values:["global","project"],ui:{tab:"model",group:"Prompt",label:"Model Role Storage",description:"Where model selector role assignments are saved",options:[{value:"global",label:"Global",description:"Save role models in the active profile config (current behavior)"},{value:"project",label:"Per-project",description:"Save project role models in .omp/config.yml; missing project roles use global defaults"}]}},autoResume:{type:"boolean",default:!1,ui:{tab:"interaction",group:"Startup & Updates",label:"Auto Resume",description:"Automatically resume the most recent session in the current directory. If its model cannot be restored and model fallback is disabled, interactive startup warns and starts a new session without the saved history"}},"git.enabled":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Git",label:"Enable Git Integration",description:"Show git branch, status, and PR information in the TUI and watch repository metadata."}},"theme.dark":{type:"string",default:"titanium",ui:{tab:"appearance",group:"Theme",label:"Dark Theme",description:"Theme used when the terminal has a dark background",options:"runtime"}},"theme.light":{type:"string",default:"light",ui:{tab:"appearance",group:"Theme",label:"Light Theme",description:"Theme used when the terminal has a light background",options:"runtime"}},symbolPreset:{type:"enum",default:"unicode",values:["unicode","nerd","ascii"],ui:{tab:"appearance",group:"Theme",label:"Symbol Preset",description:"Glyph set for icons and symbols (Unicode, Nerd Font, or ASCII)",options:[{value:"unicode",label:"Unicode",description:"Standard symbols (default)"},{value:"nerd",label:"Nerd Font",description:"Requires a Nerd Font, or a Glyph Protocol terminal (icons ship in-band)"},{value:"ascii",label:"ASCII",description:"Maximum compatibility"}]}},colorBlindMode:{type:"boolean",default:!1,ui:{tab:"appearance",group:"Theme",label:"Color-Blind Mode",description:"Use blue instead of green for diff additions"}},"composer.shape":{type:"string",default:"band",ui:{tab:"appearance",group:"Composer",label:"Composer Shape",description:"Visual layout of the input editor and status line",options:"runtime"}},"composer.tokenRate":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Composer",label:"Generation Rate",description:"Show a live generation tok/s readout: on the working row next to the session title, or in the native composer bar right after the thinking level, where the last reading stays between turns. Estimated from streamed deltas and corrected by the provider's billed output count as each message completes."}},"statusLine.preset":{type:"enum",default:"default",values:["default","minimal","compact","full","nerd","ascii","custom"],ui:{tab:"appearance",group:"Status Line",label:"Status Line Preset",description:"Pre-built status line configurations",options:[{value:"default",label:"Default",description:"Model, path, git, context, tokens, cost"},{value:"minimal",label:"Minimal",description:"Path and git only"},{value:"compact",label:"Compact",description:"Model, git, cost, context"},{value:"full",label:"Full",description:"All segments including time"},{value:"nerd",label:"Nerd",description:"Maximum info with Nerd Font icons"},{value:"ascii",label:"ASCII",description:"No special characters"},{value:"custom",label:"Custom",description:"User-defined segments"}]}},"statusLine.separator":{type:"enum",default:"powerline-thin",values:["powerline","powerline-thin","slash","pipe","block","none","ascii"],ui:{tab:"appearance",group:"Status Line",label:"Status Line Separator",description:"Style of separators between segments",options:[{value:"powerline",label:"Powerline",description:"Solid arrows (Nerd Font)"},{value:"powerline-thin",label:"Thin chevron",description:"Thin arrows (Nerd Font)"},{value:"slash",label:"Slash",description:"Forward slashes"},{value:"pipe",label:"Pipe",description:"Vertical pipes"},{value:"block",label:"Block",description:"Solid blocks"},{value:"none",label:"None",description:"Space only"},{value:"ascii",label:"ASCII",description:"Greater-than signs"}]}},"statusLine.contextLine":{type:"enum",default:"embedded",values:["off","percentage","annotated","embedded"],ui:{tab:"appearance",group:"Status Line",label:"Context-Reactive Line",description:"How the line between the left and right segments reflects context usage (box composer only)",options:[{value:"off",label:"Off",description:"Solid accent line, no context feedback"},{value:"percentage",label:"Percentage",description:"Used portion in accent color, remainder dimmed"},{value:"annotated",label:"Annotated",description:"Percentage plus ticks at the speculative and auto-compaction boundaries"},{value:"embedded",label:"Embedded",description:"Annotated line with the context percentage and window embedded in the gauge"}]}},"statusLine.sessionAccent":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Status Line",label:"Session Accent",description:"Use the session name color for the editor border and status line gap"}},"statusLine.transparent":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Status Line",label:"Transparent Status Line",description:"Use the terminal's default background for the status line instead of the theme's `statusLineBg`. Powerline end caps are dropped because they need a contrasting fill to bridge into the surrounding terminal."}},"statusLine.compactThinkingLevel":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Status Line",label:"Compact Thinking Level",description:"Show the thinking level as a single icon on the model name instead of a separate ` · <level>` suffix; in Tern's composer, as the model chip's icon instead of a separate chip (click the icon to cycle it)."}},"statusLine.showHookStatus":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Status Line",label:"Show Hook Status",description:"Display hook status messages below the status line"}},"terminal.showImages":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Images",label:"Show Inline Images",description:"Render images inline in the terminal",condition:"hasImageProtocol"}},"images.autoResize":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Images",label:"Auto-Resize Images",description:"Resize large images to 2000x2000 max for better model compatibility"}},"images.blockImages":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Images",label:"Block Images",description:"Prevent images from being sent to LLM providers"}},"tui.resizeScrollback":{type:"enum",default:"rebuild",values:["append","rebuild","preserve"],ui:{tab:"appearance",group:"Display",label:"Resize Scrollback",description:"How a settled terminal resize refreshes transcript rows retained in terminal scrollback",options:[{value:"append",label:"Append",description:"Replay the transcript at the new width below retained history"},{value:"rebuild",label:"Rebuild",description:"Erase all terminal scrollback, then replay one current-width transcript"},{value:"preserve",label:"Preserve",description:"Repaint only the viewport and keep history wrapped at its old width"}]}},"terminal.showProgress":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Native Terminal Progress",description:"Emit OSC 9;4 indeterminate progress while the agent or context maintenance is running (always on in Tern)"}},"terminal.programStatus":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Program Status (OSC 7501)",description:"Report whether the agent is working, waiting on you, done, or failed over OSC 7501, for terminal tab indicators and agent inboxes"}},"tui.textSizing":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Large Headings (Kitty)",description:"Render Markdown H1 headings at 2x scale using Kitty's OSC 66 text-sizing protocol. Only takes effect on Kitty terminals; ignored everywhere else. Off by default."}},"tui.colorfulMarkdown":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Colorful Markdown",description:"Color headings by level, bold and italic text, inline code, and table headers from the theme's ANSI palette. Off uses one heading color and plain bold/italic."}},"tui.renderMermaid":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Render Mermaid Diagrams",description:"Render Mermaid fenced code blocks as ASCII diagrams"}},"tui.renderSvg":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Render SVG Figures",description:"Invite the agent to draw diagrams and charts as SVG, rendered inline as images on terminals that show graphics"}},"tui.renderEmbeds":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Render Embedded Images and Pages",description:"Invite the agent to show pictures with <img> and web pages with <iframe>, loading them (remote addresses included) to draw inline on terminals that show graphics"}},"tui.autoGraph":{type:"enum",default:"auto",values:["auto","smart","always","off"],ui:{tab:"appearance",group:"Display",label:"Auto-Graph Tables",description:"Draw a chart under numeric tables in the agent's answers, in your theme's colors, on terminals that show graphics",options:[{value:"auto",label:"Auto",description:"Smart when the judge role resolves to a native TypeSafe jev model, else Always"},{value:"smart",label:"Smart",description:"The judge model refines each chart: kind, columns, row names and grouping, scales, which way is better, and its title"},{value:"always",label:"Always",description:"Chart every table that reads as numeric, using the built-in best guess"},{value:"off",label:"Off",description:"Leave tables as tables"}]}},"tui.reactions":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Agent Reactions",description:"Invite the agent to react to your message with an emoji badge on its bubble"}},"tui.codexResetFireworks":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Codex Reset Fireworks",description:"Celebrate unscheduled Codex weekly usage resets and newly banked saved resets with a top-third fireworks overlay that remains until ⎋"}},"tui.titleState":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Terminal Title Run State",description:"Show the agent run state in the terminal title's separator — an animated spinner while working (a static ':' under WSL), '>' when it's your turn, '!' when the agent is waiting on you"}},"tui.titleSpinner":{type:"enum",default:"braille",values:["braille","pulse","dots","line"],ui:{tab:"appearance",group:"Display",label:"Terminal Title Spinner",description:"Glyph set for the working-state spinner in the terminal title — braille sweep, filling moon, single-dot cycle, or ASCII-safe line",options:[{value:"braille",label:"Braille",description:"Classic ⠋⠙⠹ sweep (default)"},{value:"pulse",label:"Pulse",description:"Moon filling ○◑● then emptying"},{value:"dots",label:"Dots",description:"Single braille dots cycling"},{value:"line",label:"Line",description:"ASCII - \\ | / for fonts without braille coverage"}]}},"tui.spinnerInterval":{type:"number",ui:{tab:"appearance",group:"Display",label:"Spinner Interval (ms)",description:"Milliseconds between frames of every spinner, the terminal title included; 0 shows static glyphs. Unset follows Motion",options:[{value:"0",label:"Static",description:"No animation"},{value:"80",label:"80 ms",description:"12.5 frames/s"},{value:"250",label:"250 ms",description:"4 frames/s"},{value:"1000",label:"1 s",description:"1 frame/s"}]}},"tui.maxFps":{type:"number",default:30,ui:{tab:"appearance",group:"Display",label:"Max Frames Per Second",description:"Ceiling on how often the TUI repaints, streaming text included. Keystroke echo keeps 30 fps, so the pane you type in stays responsive",options:[{value:"30",label:"30 fps",description:"Default"},{value:"15",label:"15 fps"},{value:"4",label:"4 fps",description:"Quiet, for many panes"},{value:"1",label:"1 fps",description:"Minimum"}]}},"tui.hyperlinks":{type:"enum",default:"auto",values:["off","auto","always"],ui:{tab:"appearance",group:"Display",label:"Terminal Hyperlinks",description:"Wrap paths and URLs in OSC 8 hyperlinks for terminal-native click-to-open (auto: detect support; off: never; always: unconditional)"}},"tui.mouse":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Mouse Click-to-Focus",description:"Capture mouse clicks in the main session so live subagent cards and HUD rows focus on click, with a hover highlight on the target, and clicks on extension-owned links reach their extension (the link-hint key picks them without the mouse). Native text selection becomes ⇧+drag while on, and mouse capture stops wheel scrolling — the terminal reports wheel ticks to omp instead — so scroll with the terminal's keyboard scrollback keys, or turn this off"}},"tui.tight":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Tight Layout",description:"Remove the standard one-cell horizontal inset from terminal output; message bubbles and tool frames keep their padding"}},"display.shimmer":{type:"enum",default:"classic",values:["classic","kitt","disabled"],ui:{tab:"appearance",group:"Display",label:"Shimmer",description:"Animation style for working/loading messages; off under reduced or no Motion",options:[{value:"classic",label:"Classic",description:"Soft cosine wave sweeping across the text"},{value:"kitt",label:"KITT Scanner",description:"Knight Rider 1982 red light bouncing left-right"},{value:"disabled",label:"Disabled",description:"No animation; static muted text"}]}},"tui.motion":{type:"enum",default:"full",values:["full","reduced","none"],ui:{tab:"appearance",group:"Display",label:"Motion",description:"One switch over spinners, shimmer, and decorative blink/fade. Streaming text is unaffected (see Max Frames Per Second). A spinner interval you set still wins",options:[{value:"full",label:"Full",description:"Every animation at its own setting (default)"},{value:"reduced",label:"Reduced",description:"Spinners at 250 ms, no shimmer, no blink/fade"},{value:"none",label:"None",description:"Static spinners and title, no shimmer, no blink/fade"}]}},"display.pinnedAgents":{type:"enum",default:"collapsed",values:["off","collapsed","full"],ui:{tab:"appearance",group:"Display",label:"Pinned Agents",description:"Pinned live-agent jump list above the editor (off hides it; collapsed shows a few rows with an expander; full lists all)",options:[{value:"off",label:"Off",description:"Hide the pinned jump list"},{value:"collapsed",label:"Collapsed",description:"Show a few rows with an expander"},{value:"full",label:"Full",description:"Always list every live agent"}]}},"display.subagentLivePreview":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Subagent Live Preview",description:"Show each pinned subagent's current (or most recent) tool call beneath its row"}},"display.smoothStreaming":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Smooth Streaming",description:"Reveal assistant text and streamed tool input smoothly while chunks arrive (Tern types assistant text out itself)"}},"display.hideToolActivity":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Hide Tool Activity",description:"Hide model-initiated tool calls and results from the transcript"}},"display.showTokenUsage":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Show Token Usage",description:"Show per-turn token usage on assistant messages"}},"display.showTurnTime":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Show Turn Time",description:"Show the total prompt-to-yield time (including tool calls) on assistant message usage rows"}},"display.cacheMissMarker":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Cache Miss Marker",description:"Show a divider after an assistant turn whose request lost (missed) the prompt cache"}},"display.shellVisualization":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Shell Visualization",description:"Show bash commands as an interactive execution visualization instead of plain shell commands"}},"display.advisorCollapsedLines":{type:"number",default:0,ui:{tab:"appearance",group:"Display",label:"Advisor Collapsed Lines",description:"Maximum note lines a collapsed advisor card shows below its header (0 keeps the full preview; expand with the tool-output toggle)",options:[{value:"0",label:"No limit",description:"Default."},{value:"1",label:"1 line"},{value:"2",label:"2 lines"},{value:"3",label:"3 lines"},{value:"5",label:"5 lines"}]}},"display.collapseCompacted":{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Collapse Compacted History",description:"Collapse pre-compaction history behind the summary divider on the live transcript; disable to keep the full transcript inline with dividers at each compaction point"}},showHardwareCursor:{type:"boolean",default:!0,ui:{tab:"appearance",group:"Display",label:"Show Hardware Cursor",description:"Show terminal cursor for IME support"}},"tui.imeSafeCursor":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"IME-Safe Prompt Layout",description:"Move the prompt's bottom border to a separate row so macOS IME preedit cannot displace it"}},steeringMode:{type:"enum",default:"one-at-a-time",values:["all","one-at-a-time"],ui:{tab:"interaction",group:"Input",label:"Steering Mode",description:"How to process queued messages while agent is working"}},followUpMode:{type:"enum",default:"one-at-a-time",values:["all","one-at-a-time"],ui:{tab:"interaction",group:"Input",label:"Follow-Up Mode",description:"How to drain follow-up messages after a turn completes"}},interruptMode:{type:"enum",default:"immediate",values:["immediate","wait"],ui:{tab:"interaction",group:"Input",label:"Interrupt Mode",description:"When steering messages interrupt tool execution"}},"btw.inject":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Input",label:"/btw Steering Inject",description:"When you ask /btw for a steering prompt, it drafts one in <inject> tags, highlighted in the answer; Alt+I (app.btw.inject) sends it to the main session"}},"tui.vimMode":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Input",label:"Vim Editing Mode",description:"Modal prompt editing. ⎋ leaves Insert mode; Normal mode has hjkl, 0, $, ^, w, b, e, gg, G, counts, x/D/C, dd/yy, p and u; operators take motions or text objects (diw, ca(, dap); v/V start a Visual selection that y copies and d deletes"}},"tui.vimModeDisplay":{type:"enum",default:"text",values:["text","icon","none"],ui:{tab:"interaction",group:"Input",label:"Vim Mode Indicator",description:"How the current Vim mode appears in the status line",condition:"vimModeEnabled",options:[{value:"text",label:"Text",description:"Full mode name — NORMAL, INSERT, VISUAL, V-LINE, REPLACE"},{value:"icon",label:"Icon",description:"Single compact glyph per mode"},{value:"none",label:"Hidden",description:"Do not show the mode; a command being typed still shows with Vim Show Command"}]}},"tui.vimShowCommand":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Input",label:"Vim Show Command",description:"Show the command being typed in the status line, like Vim's showcmd: 15d before its last d. Shows even when the mode indicator is hidden",condition:"vimModeEnabled"}},"tui.vimYankToClipboard":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Input",label:"Vim Yanks Copy to Clipboard",description:'Every Vim yank also copies to the system clipboard, as in Vim with clipboard=unnamed. Off: only "+y and "*y do',condition:"vimModeEnabled"}},"tui.vimStartMode":{type:"enum",default:"insert",values:["insert","normal"],ui:{tab:"interaction",group:"Input",label:"Vim Start Mode",description:"Mode each new prompt starts in: at startup, after each message you send, and in dialog text boxes",condition:"vimModeEnabled",options:[{value:"insert",label:"Insert",description:"Type right away; Escape for Normal mode"},{value:"normal",label:"Normal",description:"Start on Vim commands; i, a, o and the like to type"}]}},"loop.mode":{type:"enum",default:"prompt",values:["prompt","compact","reset"],ui:{tab:"interaction",group:"Input",label:"Loop Mode",description:"What happens between /loop iterations before re-submitting the prompt",options:[{value:"prompt",label:"Prompt",description:"Re-submit the prompt as a follow-up message (current behavior)"},{value:"compact",label:"Compact",description:"Compact the session context, then re-submit the prompt"},{value:"reset",label:"Reset",description:"Start a new session, then re-submit the prompt"}]}},"loop.conditionTimeoutMs":{type:"number",default:30000,ui:{tab:"interaction",group:"Input",label:"Loop Condition Timeout (ms)",description:"Max wait for a `/loop --while` / `--until` condition command before treating it as broken and stopping the loop. Set to 0 to wait indefinitely",options:[{value:"0",label:"Unlimited"},{value:"10000",label:"10 seconds"},{value:"30000",label:"30 seconds"},{value:"120000",label:"2 minutes"}]}},"composer.recallClearedDrafts":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Input",label:"Recall Cleared Drafts",description:"Keep drafts cleared with ⌃C in local ↑/↓ history until exit; disabling affects future clears"}},doubleEscapeAction:{type:"enum",default:"rewind",values:["rewind","tree","none"],ui:{tab:"interaction",group:"Input",label:"Double-Escape Action",description:"What pressing ⎋ twice with an empty editor does: open the transcript rewind selector, open the session tree, or nothing"}},"input.bareExitOnEmptySession":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Input",label:"Bare Exit on Empty Session",description:"Submitting exactly `exit`, `quit`, or `q` (any case) before the first message quits instead of prompting the model"}},"input.bareSlashCommands":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Input",label:"Bare Slash Commands",description:"Submitting exactly a command name without the leading `/` (e.g. `model`, `compact`) runs that slash command; once the session has messages, press Enter twice to confirm"}},treeFilterMode:{type:"enum",default:"default",values:["default","no-tools","user-only","labeled-only","all"],ui:{tab:"interaction",group:"Input",label:"Session Tree Filter",description:"Default filter mode when opening the session tree"}},autocompleteMaxVisible:{type:"number",default:10,ui:{tab:"interaction",group:"Input",label:"Autocomplete Items",description:"Max visible items in autocomplete dropdown (3-20)",options:[{value:"3",label:"3 items"},{value:"5",label:"5 items"},{value:"7",label:"7 items"},{value:"10",label:"10 items"},{value:"15",label:"15 items"},{value:"20",label:"20 items"}]}},"spelling.typoDetection":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Input",label:"Typo Detection (macOS)",description:"Mark misspelled prompt words with the active macOS dictionaries",condition:"macOS"}},"spelling.autocomplete":{type:"enum",default:"auto",values:["off","auto","ngram","smollm","apple"],ui:{tab:"interaction",group:"Input",label:"Word Autocomplete",description:"Show predicted word completions as inline hints: ⇥ accepts with a space, → without",options:[{value:"off",label:"Off",description:"No word completion"},{value:"auto",label:"Auto",description:"N-gram (nothing to download)"},{value:"ngram",label:"N-gram",description:"Learns your vocabulary from prompt history"},{value:"smollm",label:"SmolLM",description:"Small on-device language model blended with N-gram (downloads weights on first use)"},{value:"apple",label:"Apple",description:"macOS dictionary completions"}]}},"composer.predictions":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Input",label:"Composer Predictions",description:"After a completed turn, ask the active model to predict your next message and show it as ghost text in the empty composer; ⇥ or → inserts it without sending. Extra usage: every completed turn sends one more billed request over the whole conversation (counted in /stats)"}},"composer.predictionAlternatives":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Input",label:"Prediction Alternatives",description:"Ask for up to four distinct predictions instead of one, most likely first. The ghost text shows the first one your draft matches; after inserting one, press ⇥ again to pick another. The same single request returns a few more output tokens",condition:"composerPredictionsEnabled"}},"spelling.autocorrect":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Input",label:"Autocorrect (macOS)",description:"Apply confident macOS spelling corrections after completed words",condition:"macOS"}},emojiAutocomplete:{type:"boolean",default:!0,ui:{tab:"interaction",group:"Input",label:"Emoji Autocomplete",description:"Suggest emojis from `:name:` shortcodes and expand text emoticons like `:D` or `:-)`"}},"paste.largeMenuThreshold":{type:"number",default:100,ui:{tab:"interaction",group:"Input",label:"Large Paste Menu",description:"When a paste reaches this many lines, offer a menu to wrap it in a code block, wrap it in XML tags, or save it to a file. 0 disables the menu (large pastes still collapse to a chip).",options:[{value:"0",label:"Off"},{value:"100",label:"100 lines"},{value:"250",label:"250 lines"},{value:"500",label:"500 lines"},{value:"1000",label:"1000 lines"}]}},"startup.quiet":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Startup & Updates",label:"Quiet Startup",description:"Skip welcome screen and startup status messages"}},"startup.showSplash":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Startup & Updates",label:"Show Startup Splash",description:"Show the full animated setup splash on normal interactive startup without rerunning setup. Quiet Startup still suppresses it."}},"startup.setupWizard":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Startup & Updates",label:"Setup Wizard",description:"Show newly added onboarding steps once per setup version"}},"startup.checkUpdate":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Startup & Updates",label:"Check for Updates",description:"Check for omp updates on startup"}},"update.channel":{type:"enum",default:"stable",values:["stable","canary"],ui:{tab:"interaction",group:"Startup & Updates",label:"Update Channel",description:"Update channel used by omp update and the startup update check",options:[{value:"stable",label:"Stable"},{value:"canary",label:"Canary"}]}},"update.auto":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Startup & Updates",label:"Auto Update",description:"Install omp updates in the background on startup; the next launch runs the new version"}},"marketplace.autoUpdate":{type:"enum",default:"notify",values:["off","notify","auto"],ui:{tab:"interaction",group:"Startup & Updates",label:"Marketplace Auto-Update",description:"Check for plugin updates on startup",options:[{value:"off",label:"Off",description:"Don't check for plugin updates"},{value:"notify",label:"Notify",description:"Check on startup and notify when updates are available"},{value:"auto",label:"Auto",description:"Check on startup and auto-install updates"}]}},"startup.changelogMode":{type:"enum",default:"summary",values:["summary","expanded","hidden"],ui:{tab:"interaction",group:"Startup & Updates",label:"Startup Changelog",description:"Choose whether update notes start as a summary, full details, or stay hidden",options:[{value:"summary",label:"Summary",description:"Show release and change counts with a /changelog hint"},{value:"expanded",label:"Expanded",description:"Show the recent release notes in full"},{value:"hidden",label:"Hidden",description:"Do not show release notes on startup"}]}},"magicKeywords.enabled":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Magic Keywords",label:"Magic Keywords",description:"Enable hidden notices for standalone ultrathink, chillax, orchestrate, workflowz, jevify keywords"}},"magicKeywords.ultrathink":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Magic Keywords",label:"Ultrathink Keyword",description:"Let standalone ultrathink request maximum automatic thinking and append its hidden notice"}},"magicKeywords.chillax":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Magic Keywords",label:"Chillax Keyword",description:"Let standalone chillax drop thinking to the model's lowest effort (models with per-message effort, even mid-turn) and append its hidden notice"}},"magicKeywords.orchestrate":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Magic Keywords",label:"Orchestrate Keyword",description:"Let standalone orchestrate append its hidden multi-agent orchestration notice"}},"magicKeywords.workflow":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Magic Keywords",label:"Workflow Keyword",description:"Let standalone workflowz append its hidden eval workflow notice"}},"magicKeywords.jevify":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Magic Keywords",label:"Jevify Keyword",description:"Let standalone jevify append its hidden bulk-judge classification notice"}},"completion.notify":{type:"enum",default:"on",values:["on","off"],ui:{tab:"interaction",group:"Notifications",label:"Completion Notification",description:"Notify when the agent finishes a turn"}},"error.notify":{type:"enum",default:"off",values:["on","off"],ui:{tab:"interaction",group:"Notifications",label:"Error Notification",description:"Notify when the agent stops with an error"}},"ask.timeout":{type:"number",default:0,ui:{tab:"interaction",group:"Notifications",label:"Ask Timeout",description:"Submit an ask form's current values (your preselected answers) after this many seconds (0 disables). Also bounds cfg:// approval prompts; an unanswered approval denies the write instead of auto-submitting",options:[{value:"0",label:"Disabled"},{value:"15",label:"15 seconds"},{value:"30",label:"30 seconds"},{value:"60",label:"60 seconds"},{value:"120",label:"120 seconds"}]}},"ask.notify":{type:"enum",default:"on",values:["on","off"],ui:{tab:"interaction",group:"Notifications",label:"Ask Notification",description:"Notify when the ask tool is waiting for input"}},"pty.notify":{type:"enum",default:"on",values:["on","off"],ui:{tab:"interaction",group:"Notifications",label:"Console Notification",description:"Notify when an interactive console (bash `pty`) is waiting on you"}},"recap.enabled":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Notifications",label:"Idle Recap",description:"Generate a brief LLM recap of where things stand after the terminal has been idle"}},"recap.idleSeconds":{type:"number",default:240,ui:{tab:"interaction",group:"Notifications",label:"Idle Recap Delay",description:"Seconds to wait while idle before showing the recap",options:[{value:"60",label:"1 minute"},{value:"120",label:"2 minutes"},{value:"240",label:"4 minutes"},{value:"300",label:"5 minutes"},{value:"600",label:"10 minutes"}]}},"session.worktreeScope":{type:"enum",default:"repo",values:["directory","repo"],ui:{tab:"interaction",group:"Startup & Updates",label:"Resume Worktree Scope",description:"Choose whether the resume picker's current folder includes sessions from other repository worktrees",options:[{value:"directory",label:"This Directory",description:"Only sessions saved for this directory"},{value:"repo",label:"Repository Worktrees",description:"Also include sessions from sibling worktrees"}]}},"power.sleepPrevention":{type:"enum",default:"idle",values:["off","idle","display","system"],ui:{tab:"interaction",group:"Power",label:"Sleep Prevention",description:"Prevent the system sleeping while the agent is running a turn; an idle session, including one waiting on background jobs, does not hold it. Each level is cumulative — it adds the flags of all lower levels.",options:[{value:"off",label:"Off",description:"Do not prevent any sleep"},{value:"idle",label:"Prevent Idle Sleep",description:"Keep the system awake while the agent is running a turn (macOS `caffeinate -i`)"},{value:"display",label:"Prevent Display Sleep",description:"Also keep the display from idle-sleeping (macOS `caffeinate -i -d`)"},{value:"system",label:"Prevent System Sleep",description:"Also block all system sleep on AC and declare the user active (macOS `caffeinate -i -d -s -u`)"}]}},"prewalk.enabled":{type:"boolean",default:!1,ui:{tab:"model",group:"Prewalk",label:"Enable Prewalk",description:"Start on the active model, then switch to a fast/cheap model (default the 'smol' role) at the first edit/write after the plan nudge's todo list exists — the strong model plans, commits the todos, and starts the implementation before handing off. Overridable per session with --prewalk / --no-prewalk."}},"prewalk.from":{type:"string",default:"@default",ui:{tab:"model",group:"Prewalk",label:"Prewalk planning model",description:"Model or role (default '@default') to plan on: /prewalk restart returns to it, and Auto Prewalk's Escalate mode moves a front-loaded task to it before planning."}},"prewalk.into":{type:"string",default:"@smol",ui:{tab:"model",group:"Prewalk",label:"Prewalk target",description:"Model or role (default '@smol') that prewalk hands off to at the first edit/write: /prewalk, /prewalk restart, Enable Prewalk, and --prewalk. Auto-prewalk uses its own target."}},"prewalk.auto":{type:"enum",default:"off",values:["off","suggest","on","escalate"],ui:{tab:"model",group:"Prewalk",label:"Auto Prewalk",description:"Ask the native judge resolved through the 'judge' role whether each new top-level user task front-loads its hard reasoning. Needs a native judge; without one nothing is classified. Independent of Enable Prewalk.",options:[{value:"off",label:"Off",description:"Never classify prompts for prewalk"},{value:"suggest",label:"Suggest",description:"Classify each task and report the decision, and whether Escalate would plan on another model, without arming prewalk"},{value:"on",label:"On",description:"For confidently front-loaded tasks, arm a handoff from the active model to the auto target; the next task starts back on the planning model"},{value:"escalate",label:"Escalate",description:"Like On, but plan on the Prewalk planning model (prewalk.from) first: a confidently front-loaded task moves there before setup and hands off from it; the next task starts back where this one started. When the planning model is already active, this is On, except that '@initial' then has nothing to hand back to"}]}},"prewalk.autoTarget":{type:"string",default:"@smol",ui:{tab:"model",group:"Prewalk",label:"Auto-prewalk target",description:"Model or role (default '@smol') auto-prewalk hands off to at the first edit/write. '@initial' (Escalate only) hands back to the model and thinking level the task started on."}},"providers.maxInFlightRequests":{type:"record",default:{},ui:{tab:"providers",group:"Services",label:"Max In-Flight Requests",description:'Maximum concurrent LLM requests per provider id (for example "openai" or "anthropic"), shared across local OMP processes with this config root. Omitted providers are unlimited.'}},"images.describeForTextModels":{type:"boolean",default:!0,ui:{tab:"model",group:"Vision",label:"Describe Images for Text Models",description:"When an image is attached to a model without vision support, save it under local:// and inject a description from a vision-capable model instead of dropping it"}},defaultThinkingLevel:{type:"enum",default:"high",values:["minimal","low","medium","high","xhigh","max","auto"],ui:{tab:"model",group:"Thinking",label:"Thinking Level",description:"Reasoning depth for thinking-capable models",options:[{value:"auto",label:"auto",description:"Auto-detect per prompt"},{value:"minimal",label:"min",description:"Very brief reasoning (~1k tokens)"},{value:"low",label:"low",description:"Light reasoning (~2k tokens)"},{value:"medium",label:"medium",description:"Moderate reasoning (~8k tokens)"},{value:"high",label:"high",description:"Deep reasoning (~16k tokens)"},{value:"xhigh",label:"xhigh",description:"Extended reasoning (~32k tokens)"},{value:"max",label:"max",description:"Maximum reasoning the model supports"}]}},hideThinkingBlock:{type:"boolean",default:!1,ui:{tab:"model",group:"Thinking",label:"Hide Thinking Blocks",description:"Hide thinking blocks in assistant responses"}},expandThinkingBlocks:{type:"boolean",default:!1,ui:{tab:"model",group:"Thinking",label:"Expand Thinking Blocks",description:"Keep finished thinking blocks expanded instead of collapsing them when the turn ends",condition:"nativeRendering"}},proseOnlyThinking:{type:"boolean",default:!0,ui:{tab:"model",group:"Thinking",label:"Prose Only Thinking",description:"Omit code blocks from thinking summaries and replace them with an ellipsis"}},omitThinking:{type:"boolean",default:!1,ui:{tab:"model",group:"Thinking",label:"Omit Thinking summaries",description:"Instruct upstream providers to completely omit thinking summaries from responses (where supported)"}},externalThinking:{type:"boolean",default:!1,ui:{tab:"model",group:"Thinking",label:"External Thinking",description:"Private scratchpad; not shown to user. Disables supported GPT, Claude, and Gemini reasoning",warning:"At your own risk: providers have flagged this request shape as abuse, up to account-level enforcement"}},"model.loopGuard.enabled":{type:"boolean",default:!0,ui:{tab:"model",group:"Thinking",label:"Loop Guard",description:"Enable automatic stream loop detection for model reasoning and prose"}},"model.loopGuard.checkAssistantContent":{type:"boolean",default:!0,ui:{tab:"model",group:"Thinking",label:"Loop Guard Scan Prose",description:"Apply loop guard to assistant prose messages in addition to thinking logs"}},"model.loopGuard.toolCallReminder":{type:"boolean",default:!0,ui:{tab:"model",group:"Thinking",label:"Loop Guard Tool-Call Reminder",description:"When a Gemini reasoning stream emits many consecutive planning headers without calling a tool, interrupt it and inject a reminder to issue a tool call (requires Loop Guard)"}},"model.toolCallLoopGuard.enabled":{type:"boolean",default:!0,ui:{tab:"model",group:"Thinking",label:"Tool-Call Loop Guard",description:"Detect consecutive identical tool calls across turns and inject a corrective steer"}},"model.toolCallLoopGuard.threshold":{type:"number",default:5,ui:{tab:"model",group:"Thinking",label:"Tool-Call Loop Threshold",description:"Consecutive identical tool calls required before the corrective steer is injected"}},"model.toolCallLoopGuard.exemptTools":{type:"array",default:["wait"],ui:{tab:"model",group:"Thinking",label:"Tool-Call Loop Exempt Tools",description:"Tool names, including tools run as commands through bash (for example mcp__peers_wait), that may repeat consecutively without triggering the cross-turn loop guard"}},inlineToolDescriptors:{type:"enum",default:"auto",values:["auto","on","off"],ui:{tab:"model",group:"Prompt",label:"Inline Tool Descriptors",description:"Render full tool descriptors in the system prompt and strip top-level/nested descriptions from provider tool schemas so descriptor text is sent once. Auto enables this for Gemini models and disables it otherwise",options:[{value:"auto",label:"Auto",description:"Inline descriptors for Gemini models; keep them in tool schemas otherwise"},{value:"on",label:"On",description:"Always inline descriptors in the system prompt"},{value:"off",label:"Off",description:"Keep descriptors in provider tool schemas only"}]}},includeModelInPrompt:{type:"boolean",default:!0,ui:{tab:"model",group:"Prompt",label:"Include Model in Prompt",description:"Surface the active model identifier in the system prompt so the agent knows which model it is"}},includeWorkspaceTree:{type:"boolean",default:!1,ui:{tab:"model",group:"Prompt",label:"Include Workspace Tree",description:"Render the workspace directory tree in the system prompt. WARNING: This can bust prompt caching across sessions when files are modified."}},encourageEdits:{type:"boolean",default:!0,ui:{tab:"model",group:"Prompt",label:"Encourage Edits",description:"Require the edit tool for file edits and forbid sed/perl/python edits"}},skillful:{type:"boolean",default:!0,ui:{tab:"model",group:"Prompt",label:"List Skills in Prompt",description:"List available skills in the system prompt; disable to save context and toggle per-session with /skillful"}},personality:{type:"enum",default:"default",values:["default","friendly","pragmatic","none"],ui:{tab:"model",group:"Prompt",label:"Personality",description:"Communication style rendered into the system prompt's personality block",options:[{value:"default",label:"Default",description:"Terse, evidence-first engineer; dense, action-oriented replies"},{value:"friendly",label:"Friendly",description:"Warm, encouraging collaborator focused on momentum and morale"},{value:"pragmatic",label:"Pragmatic",description:"Direct, efficient engineer focused on clarity and rigor"},{value:"none",label:"None",description:"Omit the personality block entirely"}]}},temperature:{type:"number",default:-1,ui:{tab:"model",group:"Sampling",label:"Temperature",description:"Sampling temperature (0 = deterministic, 1 = creative, -1 = provider default)",options:[{value:"-1",label:"Default",description:"Use provider default"},{value:"0",label:"0",description:"Deterministic"},{value:"0.2",label:"0.2",description:"Focused"},{value:"0.5",label:"0.5",description:"Balanced"},{value:"0.7",label:"0.7",description:"Creative"},{value:"1",label:"1",description:"Maximum variety"}]}},topP:{type:"number",default:-1,ui:{tab:"model",group:"Sampling",label:"Top P",description:"Nucleus sampling cutoff (0-1, -1 = provider default)",options:[{value:"-1",label:"Default",description:"Use provider default"},{value:"0.1",label:"0.1",description:"Very focused"},{value:"0.3",label:"0.3",description:"Focused"},{value:"0.5",label:"0.5",description:"Balanced"},{value:"0.9",label:"0.9",description:"Broad"},{value:"1",label:"1",description:"No nucleus filtering"}]}},topK:{type:"number",default:-1,ui:{tab:"model",group:"Sampling",label:"Top K",description:"Sample from top-K tokens (-1 = provider default)",options:[{value:"-1",label:"Default",description:"Use provider default"},{value:"1",label:"1",description:"Greedy top token"},{value:"20",label:"20",description:"Focused"},{value:"40",label:"40",description:"Balanced"},{value:"100",label:"100",description:"Broad"}]}},minP:{type:"number",default:-1,ui:{tab:"model",group:"Sampling",label:"Min P",description:"Minimum probability threshold (0-1, -1 = provider default)",options:[{value:"-1",label:"Default",description:"Use provider default"},{value:"0.01",label:"0.01",description:"Very permissive"},{value:"0.05",label:"0.05",description:"Balanced"},{value:"0.1",label:"0.1",description:"Strict"}]}},presencePenalty:{type:"number",default:-1,ui:{tab:"model",group:"Sampling",label:"Presence Penalty",description:"Penalty for introducing already-present tokens (-1 = provider default)",options:[{value:"-1",label:"Default",description:"Use provider default"},{value:"0",label:"0",description:"No penalty"},{value:"0.5",label:"0.5",description:"Mild novelty"},{value:"1",label:"1",description:"Encourage novelty"},{value:"2",label:"2",description:"Strong novelty"}]}},repetitionPenalty:{type:"number",default:-1,ui:{tab:"model",group:"Sampling",label:"Repetition Penalty",description:"Penalty for repeated tokens (-1 = provider default)",options:[{value:"-1",label:"Default",description:"Use provider default"},{value:"0.8",label:"0.8",description:"Allow repetition"},{value:"1",label:"1",description:"No penalty"},{value:"1.1",label:"1.1",description:"Mild penalty"},{value:"1.2",label:"1.2",description:"Balanced"},{value:"1.5",label:"1.5",description:"Strong penalty"}]}},textVerbosity:{type:"enum",default:"low",values:["low","medium","high"],ui:{tab:"model",group:"Sampling",label:"Text Verbosity",description:"OpenAI Responses and Codex response verbosity (low, medium, or high)",options:[{value:"low",label:"Low",description:"Prefer concise responses (default)"},{value:"medium",label:"Medium",description:"Balance brevity and detail"},{value:"high",label:"High",description:"Prefer detailed responses"}]}},"tier.openai":{type:"enum",default:"none",values:["none","auto","default","flex","scale","priority","ultrafast"],ui:{tab:"model",group:"Sampling",label:"Service Tier — OpenAI",description:"Processing tier for OpenAI / OpenAI-Codex requests, and OpenAI-family models routed via OpenRouter (none = omit). Sent as `service_tier`.",options:[{value:"none",label:"None",description:"Omit service_tier (standard processing)"},{value:"auto",label:"Auto",description:"Provider default tier selection"},{value:"default",label:"Default",description:"Standard priority processing"},{value:"flex",label:"Flex",description:"Lower cost, higher latency when available"},{value:"scale",label:"Scale",description:"Scale Tier credits when available"},{value:"priority",label:"Priority",description:"Faster, higher cost (premium request)"},{value:"ultrafast",label:"Ultrafast",description:"Lowest-latency serving; OpenAI API preview access, or Codex and relay models that advertise it"}]}},"tier.anthropic":{type:"enum",default:"none",values:["none","priority"],ui:{tab:"model",group:"Sampling",label:"Service Tier — Anthropic",description:'Processing tier for Claude requests. `priority` realizes fast mode (`speed: "fast"`) on supported direct Anthropic models; ignored on Bedrock/Vertex Claude and via OpenRouter.',options:[{value:"none",label:"None",description:"Standard processing"},{value:"priority",label:"Priority",description:'Fast mode (`speed: "fast"`) on supported direct Claude models; ignored on Bedrock/Vertex'}]}},"tier.google":{type:"enum",default:"none",values:["none","flex","priority"],ui:{tab:"model",group:"Sampling",label:"Service Tier — Google",description:"Processing tier for Gemini (Google AI Studio + Vertex) requests, and Google-family models routed via OpenRouter (none = omit). Sent as the top-level `serviceTier` field.",options:[{value:"none",label:"None",description:"Standard processing"},{value:"flex",label:"Flex",description:"Lower cost, higher latency (Gemini API + Vertex)"},{value:"priority",label:"Priority",description:"Faster, higher reliability (Gemini API + Vertex)"}]}},"tier.subagent":{type:"enum",default:"inherit",values:["inherit","none","auto","default","flex","scale","priority","ultrafast"],ui:{tab:"model",group:"Sampling",label:"Service Tier — Subagent",description:"Service Tier for spawned task/eval subagents. Inherit = match the main agent's live per-family tiers (tracks /fast); pick a value to apply it to whichever family the subagent's model belongs to.",options:[{value:"inherit",label:"Inherit",description:"Match the main agent's live per-family tiers"},{value:"none",label:"None",description:"Standard processing"},{value:"auto",label:"Auto",description:"Provider default tier selection (OpenAI family)"},{value:"default",label:"Default",description:"Standard priority processing (OpenAI family)"},{value:"flex",label:"Flex",description:"Flexible capacity tier (OpenAI/Google families)"},{value:"scale",label:"Scale",description:"Scale Tier credits (OpenAI family)"},{value:"priority",label:"Priority",description:"Priority on every supported family of the spawned model"},{value:"ultrafast",label:"Ultrafast",description:"Ultrafast serving (OpenAI family, where available)"}]}},"tier.advisor":{type:"enum",default:"none",values:["inherit","none","auto","default","flex","scale","priority","ultrafast"],ui:{tab:"model",group:"Sampling",label:"Service Tier — Advisor",description:"Service Tier for the advisor model. None = standard processing; Inherit = match the main agent's live per-family tiers; pick a value to apply it to the advisor model's family.",options:[{value:"inherit",label:"Inherit",description:"Match the main agent's live per-family tiers"},{value:"none",label:"None",description:"Standard processing"},{value:"auto",label:"Auto",description:"Provider default tier selection (OpenAI family)"},{value:"default",label:"Default",description:"Standard priority processing (OpenAI family)"},{value:"flex",label:"Flex",description:"Flexible capacity tier (OpenAI/Google families)"},{value:"scale",label:"Scale",description:"Scale Tier credits (OpenAI family)"},{value:"priority",label:"Priority",description:"Priority on every supported family of the spawned model"},{value:"ultrafast",label:"Ultrafast",description:"Ultrafast serving (OpenAI family, where available)"}],condition:"advisorEnabled"}},"retry.maxRetries":{type:"number",default:10,ui:{tab:"model",group:"Retry & Fallback",label:"Retry Attempts",description:"Maximum retry attempts on API errors",options:[{value:"1",label:"1 retry"},{value:"2",label:"2 retries"},{value:"3",label:"3 retries"},{value:"5",label:"5 retries"},{value:"10",label:"10 retries"}]}},"retry.maxDelayMs":{type:"number",default:300000,ui:{tab:"model",group:"Retry & Fallback",label:"Max Retry Delay",description:"Maximum wait between retries, in ms. When the retry would wait longer and no credential or model fallback succeeds, the request fails fast instead of sleeping (e.g. 3-hour Anthropic rate-limit windows). 0 disables the ceiling."}},"retry.waitForUsageReset":{type:"boolean",default:!1,ui:{tab:"model",group:"Retry & Fallback",label:"Wait For Usage Reset",description:"Usage-limit waits within retry.maxDelayMs are already allowed. Enable this to also wait past that cap when the provider reports a reset time, such as a 5-hour or weekly quota window. Waits are abortable (⎋) but also hold subagents, so leave off for unattended runs."}},"retry.modelFallback":{type:"boolean",default:!0,ui:{tab:"model",group:"Retry & Fallback",label:"Retry Model Fallback",description:"Allow retry recovery to switch to models in retry.fallbackChains after provider errors. Independent of Auto-Promote Context"}},"retry.fallbackOn":{type:"enum",default:"any",values:["any","usage-limit","except-usage-limit"],ui:{tab:"model",group:"Retry & Fallback",label:"Fallback Trigger",description:"Which failed requests may switch to a configured fallback model",options:[{value:"any",label:"Any error",description:"Every provider error may switch models"},{value:"usage-limit",label:"Usage limits only",description:"Switch only on a usage limit; retry other errors on the same model, then surface them"},{value:"except-usage-limit",label:"All but usage limits",description:"Wait out or surface a usage limit; switch on other errors"}]}},"retry.rateLimitWalksChain":{type:"boolean",default:!1,ui:{tab:"model",group:"Retry & Fallback",label:"Rate Limit Walks Chain",description:"On a rate limit, do not hold the retry.fallbackChains walk for a turn whose thinking is signed by the failing model. Off (the default), such a turn keeps retrying the rate-limited model until retry.maxRetries is spent before the chain is reached."}},"retry.usageAwareFallback":{type:"boolean",default:!1,ui:{tab:"model",group:"Retry & Fallback",label:"Usage-Aware Fallback",description:"Use reliable coding-plan quota reports to prefer same-provider accounts, then configured fallback models, before a hard usage limit. Ordinary configured API keys are excluded."}},"retry.usageReservePct":{type:"number",default:10,ui:{tab:"model",group:"Retry & Fallback",label:"Reserve Margin",description:"Treat a coding-plan model as near its limit below this remaining percentage. Unknown or unmapped usage keeps the primary model.",condition:"usageAwareFallbackEnabled",options:[{value:"5",label:"5%",description:"Act only when nearly exhausted"},{value:"10",label:"10%",description:"Balanced safety margin"},{value:"15",label:"15%",description:"Conservative"},{value:"20",label:"20%",description:"Early protection"},{value:"25",label:"25%",description:"Very conservative"}]}},"retry.usageReservePolicy":{type:"enum",default:"confirm",values:["confirm","auto","fail-closed"],ui:{tab:"model",group:"Retry & Fallback",label:"Reserve Policy",description:"What to do when every same-provider coding-plan account is inside the reserve margin.",condition:"usageAwareFallbackEnabled",options:[{value:"confirm",label:"Confirm interactively",description:"Keep interactive sessions on the primary until confirmed; background agents auto-fallback"},{value:"auto",label:"Auto-fallback",description:"Always select the next eligible configured fallback"},{value:"fail-closed",label:"Fail closed",description:"Do not spend reserve quota or select a fallback"}]}},"retry.fallbackChains":{type:"record",default:{},ui:{tab:"model",group:"Retry & Fallback",label:"Retry Fallback Chains",description:`JSON object mapping model roles, model selectors ("provider/model-id"), or provider wildcards ("provider/*") to ordered fallback selectors, e.g. {"default":["openai/gpt-4o-mini"],"google-antigravity/*":["google/*","google-vertex/*"]}. Model-oriented keys apply whenever that model/provider is active, regardless of role; a "provider/*" entry keeps the failing model's id and swaps the provider. An id-prefixed wildcard ("openrouter/google/*") re-prefixes the failing model's bare id (google-antigravity/gemini-x -> openrouter/google/gemini-x) and, used as a key, matches only that provider's ids under the prefix. A fallback entry may carry an explicit thinking suffix ("provider/model:low", ":high", ":max", ":off"); a bare entry inherits the failing turn's effort, and "provider/*" entries always inherit.`}},"retry.fallbackRevertPolicy":{type:"enum",default:"cooldown-expiry",values:["cooldown-expiry","never"],ui:{tab:"model",group:"Retry & Fallback",label:"Fallback Revert Policy",description:"When to return to the primary model after a fallback",options:[{value:"cooldown-expiry",label:"Cooldown expiry",description:"Return to the primary model after its suppression window ends"},{value:"never",label:"Never",description:"Stay on the fallback model until manually changed"}]}},"providers.anthropic.serverSideFallback":{type:"boolean",default:!1,ui:{tab:"model",group:"Retry & Fallback",label:"Anthropic Server-Side Fallback (Fable 5)",description:"When a Claude Fable 5 / Mythos 5 request is blocked by Anthropic's safety classifier, retry it on Claude Opus 5 server-side (Anthropic `server-side-fallback-2026-06-01` beta). Opt-in — leaving this off preserves the pre-fallback behavior for every request."}},"providers.ollama-cloud.maxConcurrency":{type:"number",default:3,ui:{tab:"providers",group:"Services",label:"Ollama Cloud Max Concurrency",description:"Maximum concurrent Ollama Cloud subagent runs per process; 0 disables the provider-specific limit"}},"providers.webSearchTimeoutSeconds":{type:"number",default:60,ui:{tab:"providers",group:"Services",label:"Web Search Timeout",description:"Hard timeout for each provider's search transport before web_search advances to the next fallback, in seconds (maximum 300)",options:[{value:"30",label:"30 seconds"},{value:"60",label:"1 minute"},{value:"120",label:"2 minutes"},{value:"180",label:"3 minutes"},{value:"300",label:"5 minutes"}]}},"providers.antigravityEndpoint":{type:"enum",default:"auto",values:["auto","production","sandbox"],ui:{tab:"providers",group:"Services",label:"Antigravity Endpoint Mode",description:"Endpoint routing strategy for google-antigravity providers (chat, search, image, discovery)",options:[{value:"auto",label:"Auto",description:"Try production endpoint, fail over to sandbox on 5xx/429"},{value:"production",label:"Production Only",description:"Force production endpoint only"},{value:"sandbox",label:"Sandbox Only",description:"Force sandbox endpoint only"}]}},"providers.fireworksTier":{type:"enum",default:"standard",values:["standard","priority"],ui:{tab:"providers",group:"Fireworks",label:"Fireworks Tier",description:'Serving path for Fireworks requests. Priority sends `service_tier: "priority"` for higher reliability during peak traffic at a higher price; Standard omits it. Fast (`-fast`) models ignore this — Fast is its own serving path.',options:[{value:"standard",label:"Standard",description:"Default serving path (no service_tier)"},{value:"priority",label:"Priority",description:"Priority serving path: higher reliability, premium per-token pricing"}]}},"providers.tinyModelDevice":{type:"enum",default:"default",values:["default","gpu","cpu","mlx","metal","webgpu","cuda","dml","coreml","auto","wasm","webnn","webnn-gpu","webnn-cpu","webnn-npu"],ui:{tab:"providers",group:"Tiny Model",label:"Tiny Model Device",description:"Inference backend for local tiny models (titles + memory): an ONNX execution provider, or `mlx` to download MLX weights and run them through mlx-lm on Apple silicon. Default uses CPU-only ONNX. The PI_TINY_DEVICE env var overrides this.",options:[{value:"default",label:"Default",description:"CPU-only inference"},{value:"gpu",label:"GPU",description:"Accelerated provider (WebGPU/Metal, CUDA, or DirectML)"},{value:"cpu",label:"CPU",description:"CPU-only inference"},{value:"mlx",label:"MLX",description:"Apple silicon GPU via mlx-lm (Python subprocess; macOS arm64)"},{value:"metal",label:"Metal",description:"Alias for MLX"},{value:"webgpu",label:"WebGPU",description:"WebGPU/Metal backend"},{value:"cuda",label:"CUDA",description:"NVIDIA CUDA (Linux x64)"},{value:"dml",label:"DirectML",description:"DirectML backend (Windows)"},{value:"coreml",label:"CoreML",description:"Apple CoreML (opt-in; can fail to load)"},{value:"auto",label:"Auto",description:"Let ONNX Runtime choose a provider"},{value:"wasm",label:"WASM",description:"WebAssembly backend"},{value:"webnn",label:"WebNN",description:"WebNN backend"},{value:"webnn-gpu",label:"WebNN GPU",description:"WebNN GPU device"},{value:"webnn-cpu",label:"WebNN CPU",description:"WebNN CPU device"},{value:"webnn-npu",label:"WebNN NPU",description:"WebNN NPU device"}]}},"providers.tinyModelDtype":{type:"enum",default:"default",values:["default","q4","q4f16","q8","fp16","fp32","int8","uint8","bnb4","q2","q2f16","q1","q1f16","auto"],ui:{tab:"providers",group:"Tiny Model",label:"Tiny Model Precision",description:"ONNX quantization/precision for local tiny models. Default uses each model's shipped dtype (q4); lower precision is faster, higher is more faithful. Ignored by the MLX backend (its repos are pre-quantized 4-bit). The PI_TINY_DTYPE env var overrides this.",options:[{value:"default",label:"Default",description:"Each model's shipped dtype (currently q4)"},{value:"q4",label:"q4",description:"4-bit weights; smallest and fastest"},{value:"q4f16",label:"q4f16",description:"4-bit weights with fp16 activations"},{value:"q8",label:"q8",description:"8-bit quantization"},{value:"fp16",label:"fp16",description:"16-bit float; higher fidelity, larger"},{value:"fp32",label:"fp32",description:"Full precision; largest and slowest"},{value:"int8",label:"int8",description:"Signed 8-bit integer"},{value:"uint8",label:"uint8",description:"Unsigned 8-bit integer"},{value:"bnb4",label:"bnb4",description:"bitsandbytes 4-bit"},{value:"q2",label:"q2",description:"2-bit weights"},{value:"q2f16",label:"q2f16",description:"2-bit weights with fp16 activations"},{value:"q1",label:"q1",description:"1-bit weights"},{value:"q1f16",label:"q1f16",description:"1-bit weights with fp16 activations"},{value:"auto",label:"Auto",description:"Let transformers.js choose per device"}]}},"providers.autoThinkingMaxEffort":{type:"enum",default:"xhigh",values:["xhigh","max"],ui:{tab:"model",group:"Thinking",label:"Auto Thinking Ceiling",description:"Highest effort the `auto` classifier may resolve. `xhigh` keeps the classifier one tier below the top, so only an explicit `ultrathink` reaches `max`; `max` lets a turn the classifier judges exceptional bill the top tier on models that expose it.",condition:"autoThinkingActive",options:[{value:"xhigh",label:"xhigh",description:"Classifier stops at xhigh (default)"},{value:"max",label:"max",description:"Classifier may resolve max where the model supports it"}]}},"features.unexpectedStopDetection":{type:"enum",default:"mechanical",values:["none","mechanical","smart"],ui:{tab:"interaction",group:"Agent",label:"Unexpected Stops",description:"Automatically recover when the assistant stops without a visible message. Smart also classifies text-only stops with a small model.",options:[{value:"none",label:"None",description:"Disabled"},{value:"mechanical",label:"Mechanical",description:"Retry stops with no visible assistant message; tool calls are excluded (default)"},{value:"smart",label:"Smart",description:"Mechanical + small-model classification of text-only stops"}]}},"providers.kimiApiFormat":{type:"enum",default:"auto",values:["auto","openai","anthropic"],ui:{tab:"providers",group:"Protocol",label:"Kimi API Format",description:"API format for Kimi Code provider (auto follows live model metadata)",options:[{value:"auto",label:"Auto",description:"Use the model's server-declared protocol"},{value:"openai",label:"OpenAI",description:"api.kimi.com"},{value:"anthropic",label:"Anthropic",description:"api.moonshot.ai"}]}},"providers.openaiWebsockets":{type:"enum",default:"auto",values:["auto","off","on"],ui:{tab:"providers",group:"Protocol",label:"OpenAI Codex WebSockets",description:"WebSocket policy for OpenAI Codex models only",options:[{value:"auto",label:"Auto",description:"Use Codex model defaults"},{value:"off",label:"Off",description:"Disable WebSockets for OpenAI Codex models"},{value:"on",label:"On",description:"Force websockets for OpenAI Codex models"}]}},"providers.openaiResponsesWebsockets":{type:"boolean",default:!1,ui:{tab:"providers",group:"Protocol",label:"OpenAI Responses WebSockets",description:"Opt in for catalog-supported standard Responses models; model or request false disables it"}},"providers.openaiLiveSteering":{type:"boolean",default:!1,ui:{tab:"providers",group:"Protocol",label:"OpenAI Live Steering",description:"Deliver messages typed while a GPT-6 response streams into that response over the Codex WebSocket, instead of waiting for the next tool boundary"}},"providers.muse-code.storeResponses":{type:"boolean",default:!1,ui:{tab:"providers",group:"Protocol",label:"Muse Code Stored Responses",description:"Store Muse Code results on Meta's servers so a turn whose connection drops is recovered instead of re-run. Stored runs keep prompts and outputs on Meta's side."}},"providers.openai-codex.daybreak":{type:"boolean",default:!0,ui:{tab:"providers",group:"Protocol",label:"Codex Daybreak Blue",description:"Automatically request the Daybreak Blue cyber access program on ChatGPT accounts eligible for it. OpenAI may use content from Daybreak Blue sessions to improve its models. Does not cover dedicated Daybreak Blue models (gpt-daybreak-blue-*), which may still run as Daybreak sessions."}},"providers.cacheRetention":{type:"enum",default:"auto",values:["auto","short","long","none"],ui:{tab:"providers",group:"Protocol",label:"Prompt Cache Retention",description:"Prompt-cache retention forwarded to providers that support it (Anthropic, Bedrock, OpenRouter, OpenAI)",options:[{value:"auto",label:"Auto",description:"Provider default — Anthropic OAuth subscriber sessions default to 1h, API keys use 5m; PI_CACHE_RETENTION still applies"},{value:"short",label:"Short (5m)",description:"Cheapest cache writes; pair with cache warming to keep short entries alive while idle"},{value:"long",label:"Long (1h+)",description:"Longer TTL where supported (Anthropic/Bedrock 1h, OpenAI GPT-5.6+ Responses 12h); pricier writes, only warmed during active runs"},{value:"none",label:"Off",description:"Disable prompt caching and cache-affinity routing"}]}},"providers.cacheWarming":{type:"enum",default:"idle",values:["off","streaming","idle"],ui:{tab:"providers",group:"Protocol",label:"Cache Warming",description:"Refresh the last request's prompt-cache entry shortly before it expires (Anthropic max_tokens 0 pre-warm, else a one-token replay)",options:[{value:"off",label:"Off",description:"Disable cache warming"},{value:"streaming",label:"Streaming",description:"Protect expensive prefixes during long tool executions; stops when the agent settles"},{value:"idle",label:"Idle",description:"Also refresh 5-minute entries between runs while the expected savings stay above the cost floor"}]}},"providers.cacheWarmingStrategy":{type:"enum",default:"auto",values:["auto","keepalive","compact"],ui:{tab:"providers",group:"Protocol",label:"Cache Warming Strategy",description:"How a long tool call is bridged once refreshing stops paying: compact the history before the cache expires, or let it expire",options:[{value:"auto",label:"Auto",description:"Refresh while the refresh spend stays within the cheaper buy-out, then compact large prompts or let the entry expire"},{value:"keepalive",label:"Keep Alive",description:"Never compact; refresh until it stops paying"},{value:"compact",label:"Compact",description:"Compact at the first decision once the prompt reaches the bridge-compaction threshold"}]}},"providers.cacheWarmingCompactPercent":{type:"number",default:60,ui:{tab:"providers",group:"Protocol",label:"Cache Bridge Compaction Percent",description:"Share of the context window a prompt must reach before a long tool call may be bridged with compaction; the lower of this and the token limit applies",options:[{value:"40",label:"40%"},{value:"50",label:"50%"},{value:"60",label:"60%"},{value:"70",label:"70%"},{value:"80",label:"80%"}]}},"providers.cacheWarmingCompactTokens":{type:"number",default:150000,ui:{tab:"providers",group:"Protocol",label:"Cache Bridge Compaction Tokens",description:"Prompt tokens from which a long tool call may be bridged with compaction; the lower of this and the window percent applies",options:[{value:"50000",label:"50K tokens"},{value:"100000",label:"100K tokens"},{value:"150000",label:"150K tokens"},{value:"200000",label:"200K tokens"},{value:"300000",label:"300K tokens"}]}},"providers.streamFirstEventTimeoutSeconds":{type:"number",default:-1,ui:{tab:"providers",group:"Timeouts",label:"Stream First Event Timeout",description:"Seconds to wait for the first model stream event; -1 uses provider/env defaults, 0 disables the watchdog",options:[{value:"-1",label:"Auto",description:"Use provider defaults and PI_* timeout env vars"},{value:"0",label:"Off",description:"Disable first-event timeout"},{value:"300",label:"5 minutes"},{value:"600",label:"10 minutes"},{value:"1800",label:"30 minutes"}]}},"providers.streamIdleTimeoutSeconds":{type:"number",default:-1,ui:{tab:"providers",group:"Timeouts",label:"Stream Idle Timeout",description:"Seconds a model stream may stay silent between events; -1 uses provider/env defaults, 0 disables the watchdog",options:[{value:"-1",label:"Auto",description:"Use provider defaults and PI_* timeout env vars"},{value:"0",label:"Off",description:"Disable idle timeout"},{value:"300",label:"5 minutes"},{value:"600",label:"10 minutes"},{value:"1800",label:"30 minutes"}]}},"providers.openrouterVariant":{type:"enum",default:"default",values:["default","nitro","floor","online","exacto"],ui:{tab:"providers",group:"Protocol",label:"OpenRouter Routing",description:"Default routing-variant suffix appended to OpenRouter model IDs (overridden when the selector already names a variant)",options:[{value:"default",label:"Default",description:"No suffix; use OpenRouter's default routing"},{value:"nitro",label:":nitro",description:"Prioritize throughput / lowest latency"},{value:"floor",label:":floor",description:"Prioritize cheapest available provider"},{value:"online",label:":online",description:"Enable OpenRouter's web-search plugin"},{value:"exacto",label:":exacto",description:"Cherry-picked high-quality providers (only defined for select models)"}]}},"live.voice":{type:"string",default:"sol",ui:{tab:"providers",group:"Services",label:"Live Voice",description:"Voice of realtime voice sessions; a custom live endpoint may take other names (set in config)",options:[{value:"arbor",label:"Arbor"},{value:"breeze",label:"Breeze"},{value:"cove",label:"Cove"},{value:"ember",label:"Ember"},{value:"juniper",label:"Juniper"},{value:"maple",label:"Maple"},{value:"sol",label:"Sol"},{value:"spruce",label:"Spruce"},{value:"vale",label:"Vale"}]}},"live.endpoint":{type:"string",ui:{tab:"providers",group:"Services",label:"Live Endpoint",description:"Base URL of an OpenAI Realtime WebRTC-compatible server (e.g. http://127.0.0.1:8080/v1) used for live voice instead of Codex; empty uses Codex"}},"live.apiKey":{type:"string",credential:!0,ui:{tab:"providers",group:"Services",label:"Live Endpoint API Key",description:"Bearer key sent only to the live endpoint: a literal, an environment variable name, or !command"}},"tts.localVoice":{type:"enum",default:"harper",values:["harper","hadley","delia","everly","easton","preston","miles","trevor","maeve","bryony","edwin","hugh"],ui:{tab:"providers",group:"Services",label:"Local TTS Voice",description:"Phonon voice used by the local TTS backend (American/British, female/male)",options:[{value:"harper",label:"Harper (American female)"},{value:"hadley",label:"Hadley (American female)"},{value:"delia",label:"Delia (American female)"},{value:"everly",label:"Everly (American female)"},{value:"easton",label:"Easton (American male)"},{value:"preston",label:"Preston (American male)"},{value:"miles",label:"Miles (American male)"},{value:"trevor",label:"Trevor (American male)"},{value:"maeve",label:"Maeve (British female)"},{value:"bryony",label:"Bryony (British female)"},{value:"edwin",label:"Edwin (British male)"},{value:"hugh",label:"Hugh (British male)"}]}},"tts.localSpeed":{type:"number",default:1,ui:{tab:"providers",group:"Services",label:"Local TTS Speed",description:"Speaking rate of the local TTS backend (tts tool, omp say). 1 = normal; clamped to 0.8–1.3",options:[{value:"0.8",label:"0.8×"},{value:"0.9",label:"0.9×"},{value:"1",label:"1× (normal)"},{value:"1.1",label:"1.1×"},{value:"1.2",label:"1.2×"},{value:"1.3",label:"1.3×"}]}},"speech.enabled":{type:"boolean",default:!1,ui:{tab:"providers",group:"Services",label:"Speech Vocalization",description:"Speak the assistant's output aloud through the speakers as it streams"}},"speech.mode":{type:"enum",default:"assistant",values:["all","assistant","yield"],ui:{tab:"providers",group:"Services",label:"Speech Vocalization Mode",description:"What to speak: all = assistant messages + thinking; assistant = messages only; yield = only the final message at turn end",options:[{value:"all",label:"All (messages + thinking)"},{value:"assistant",label:"Assistant messages"},{value:"yield",label:"Final message only"}]}},"speech.enhanced":{type:"boolean",default:!1,ui:{tab:"providers",group:"Services",label:"Enhanced Speech Rewriting",description:"Rewrite assistant output into natural spoken prose with the tiny/smol model before synthesis (describes code, drops links and markdown). Falls back to mechanical cleanup on failure"}},"speech.voice":{type:"enum",default:"harper",values:["harper","hadley","delia","everly","easton","preston","miles","trevor","maeve","bryony","edwin","hugh"],ui:{tab:"providers",group:"Services",label:"Speech Vocalization Voice",description:"Phonon voice used when speaking the assistant's output aloud",options:[{value:"harper",label:"Harper (American female)"},{value:"hadley",label:"Hadley (American female)"},{value:"delia",label:"Delia (American female)"},{value:"everly",label:"Everly (American female)"},{value:"easton",label:"Easton (American male)"},{value:"preston",label:"Preston (American male)"},{value:"miles",label:"Miles (American male)"},{value:"trevor",label:"Trevor (American male)"},{value:"maeve",label:"Maeve (British female)"},{value:"bryony",label:"Bryony (British female)"},{value:"edwin",label:"Edwin (British male)"},{value:"hugh",label:"Hugh (British male)"}]}},"speech.speed":{type:"number",default:1,ui:{tab:"providers",group:"Services",label:"Speech Vocalization Speed",description:"Speaking rate when reading the assistant's output aloud. 1 = normal; clamped to 0.8–1.3",options:[{value:"0.8",label:"0.8×"},{value:"0.9",label:"0.9×"},{value:"1",label:"1× (normal)"},{value:"1.1",label:"1.1×"},{value:"1.2",label:"1.2×"},{value:"1.3",label:"1.3×"}]}},"providers.fetch":{type:"enum",default:"auto",values:["auto","native","trafilatura","lynx","parallel","firecrawl","jina"],ui:{tab:"providers",group:"Services",label:"Fetch Provider",description:"Reader backend priority for the fetch/read URL tool",options:[{value:"auto",label:"Auto",description:"Priority: native > trafilatura > lynx > parallel > firecrawl > jina"},{value:"native",label:"Native",description:"In-process HTML→Markdown converter (always available)"},{value:"trafilatura",label:"Trafilatura",description:"Auto-installs via uv/pip"},{value:"lynx",label:"Lynx",description:"Requires lynx system package"},{value:"parallel",label:"Parallel",description:"Requires PARALLEL_API_KEY"},{value:"firecrawl",label:"Firecrawl",description:"Requires FIRECRAWL_API_KEY"},{value:"jina",label:"Jina",description:"Uses r.jina.ai reader (JINA_API_KEY optional)"}]}},"providers.webKeyless":{type:"boolean",default:!0,ui:{tab:"providers",group:"Services",label:"Keyless Web Services",description:"Let web search and URL reading use third-party services without your credential: keyless Parallel, Exa, Firecrawl, Keenable, and Perplexity, the Jina reader, and scraped engines (Startpage, DuckDuckGo, Ecosia, Google, Mojeek, Hacker News). Off, only services you configured run."}},"codexResets.autoRedeem5h":{type:"enum",default:"unset",values:["unset","yes","no"],ui:{tab:"providers",group:"Services",label:"Codex Auto-Redeem Saved Resets (5h)",description:"Spend saved Codex resets on 5-hour-only blocks and on expiring credits whose fullest chat window is 5h. unset asks before spending and never spends without a prompt; yes spends without asking; no never spends.",options:[{value:"unset",label:"Unset",description:"Ask before spending; never spend without a prompt."},{value:"yes",label:"Yes",description:"Spend eligible saved resets without asking."},{value:"no",label:"No",description:"Never spend saved resets for this window."}]}},"codexResets.autoRedeemWeekly":{type:"enum",default:"unset",values:["unset","yes","no"],ui:{tab:"providers",group:"Services",label:"Codex Auto-Redeem Saved Resets (Weekly)",description:"Spend saved Codex resets on weekly blocks and on expiring credits whose fullest chat window is weekly. A block known only from a short 429 wait needs both Codex windows. unset asks before spending and never spends without a prompt; yes spends without asking; no never spends.",options:[{value:"unset",label:"Unset",description:"Ask before spending; never spend without a prompt."},{value:"yes",label:"Yes",description:"Spend eligible saved resets without asking."},{value:"no",label:"No",description:"Never spend saved resets for this window."}]}},"codexResets.minBlockedMinutes":{type:"number",default:60,ui:{tab:"providers",group:"Services",label:"Codex Auto-Redeem Min Block",description:"Only auto-redeem when the natural unblock — the latest reset among the exhausted 5h/weekly windows — is at least this many minutes away (don't spend a scarce credit to save a short wait). Raise it (e.g. 360) to ignore 5h-only blocks."}},"codexResets.keepCredits":{type:"number",default:0,ui:{tab:"providers",group:"Services",label:"Codex Auto-Redeem Reserve",description:"Never auto-spend below this many saved resets (0 = the last credit may be spent automatically). Credits about to expire are exempt — a reserved credit that expires preserves nothing."}},"codexResets.salvageHorizonHours":{type:"number",default:12,ui:{tab:"providers",group:"Services",label:"Codex Reset Salvage Horizon",description:"With auto-redeem enabled, spend a saved Codex reset within this many hours of expiry when either chat window has meaningful usage. 0 disables early salvage; credits expiring within 5 minutes are still attempted regardless of usage."}},"claudeResets.autoRedeem5h":{type:"enum",default:"unset",values:["unset","yes","no"],ui:{tab:"providers",group:"Services",label:"Claude Auto-Redeem Saved Resets (5h)",description:"Spend Claude Cedar or Juniper resets on 5-hour-only blocks and on expiring grants whose fullest covered limit is 5h. unset asks before spending and never spends without a prompt; yes spends without asking; no never spends.",options:[{value:"unset",label:"Unset",description:"Ask before spending; never spend without a prompt."},{value:"yes",label:"Yes",description:"Spend eligible saved resets without asking."},{value:"no",label:"No",description:"Never spend saved resets for this window."}]}},"claudeResets.autoRedeemWeekly":{type:"enum",default:"unset",values:["unset","yes","no"],ui:{tab:"providers",group:"Services",label:"Claude Auto-Redeem Saved Resets (Weekly)",description:"Spend Claude Cedar resets on weekly or model-scoped blocks and on expiring grants whose fullest covered limit is weekly. unset asks before spending and never spends without a prompt; yes spends without asking; no never spends.",options:[{value:"unset",label:"Unset",description:"Ask before spending; never spend without a prompt."},{value:"yes",label:"Yes",description:"Spend eligible saved resets without asking."},{value:"no",label:"No",description:"Never spend saved resets for this window."}]}},"claudeResets.autoRedeemFable":{type:"enum",default:"unset",values:["unset","yes","no"],ui:{tab:"providers",group:"Services",label:"Claude Auto-Redeem Fable Resets",description:"Spend Claude Fable launch resets, which restore Fable weekly usage plus the 5h window. Only this setting governs them. unset asks before spending and never spends without a prompt; yes spends without asking; no never spends.",options:[{value:"unset",label:"Unset",description:"Ask before spending; never spend without a prompt."},{value:"yes",label:"Yes",description:"Spend eligible saved resets without asking."},{value:"no",label:"No",description:"Never spend saved resets for this window."}]}},"claudeResets.minBlockedMinutes":{type:"number",default:60,ui:{tab:"providers",group:"Services",label:"Claude Auto-Redeem Min Block",description:"Only auto-redeem when the natural unblock — the latest reset among the exhausted covered windows — is at least this many minutes away. A 5-hour-only reset is never used for a weekly or model-scoped block."}},"claudeResets.keepCredits":{type:"number",default:0,ui:{tab:"providers",group:"Services",label:"Claude Auto-Redeem Reserve",description:"Keep at least this many Claude resets banked (0 allows the last eligible reset to be spent automatically). The reserve applies to early salvage, but not to eligible resets expiring within 5 minutes."}},"claudeResets.salvageHorizonHours":{type:"number",default:12,ui:{tab:"providers",group:"Services",label:"Claude Reset Salvage Horizon",description:"With auto-redeem enabled, use a server-selected Cedar reset within this many hours of expiry when its covered windows have meaningful usage. 0 disables early salvage; eligible Cedar or Juniper resets expiring within 5 minutes are still attempted regardless of usage or reserve. Provider limit requirements still apply."}},"provider.appendOnlyContext":{type:"enum",default:"auto",values:["auto","on","off"],ui:{tab:"providers",group:"Protocol",label:"Append-Only Context",description:"Cache system prompt + tool specs and keep an append-only message log so provider prefix caches (DeepSeek, Xiaomi/SGLang, Anthropic) hit at maximum rate. Auto enables for known prefix-cache providers.",options:[{value:"auto",label:"Auto",description:"Enable for known prefix-cache providers (recommended)"},{value:"on",label:"On",description:"Always enable append-only context"},{value:"off",label:"Off",description:"Disable append-only context"}]}},"telemetry.otlpExportEnabled":{type:"boolean",default:!0,ui:{tab:"providers",group:"Privacy",label:"OTLP Telemetry Export",description:"Allow OMP to export traces, logs, and metrics using OTEL_* endpoints. Changes take effect on the next launch."}},"advisor.enabled":{type:"boolean",default:!1,ui:{tab:"model",group:"Advisor",label:"Enable Advisor",description:"Pair a second model (assigned to the 'advisor' role) that passively reviews each turn and injects notes."}},"advisor.syncBacklog":{type:"enum",default:"off",values:["off","1","3","5","strict"],ui:{tab:"model",group:"Advisor",label:"Advisor Sync Backlog",description:"Pause main agent until advisor backlog falls below threshold. Numeric values cap wait at 30 seconds; strict waits for all scheduled reviews without a wall-clock cap. Off disables catch-up delays. Abort, failure, and disposal release waits.",condition:"advisorEnabled"}},"advisor.immuneTurns":{type:"number",default:3,ui:{tab:"model",group:"Advisor",label:"Advisor Immune Turns",description:"After an advisor concern or blocker interrupts, route further concerns as non-interrupting asides for this many primary turns. Blockers are exempt from the cooldown.",options:[{value:"0",label:"0 steps",description:"No cooldown."},{value:"1",label:"1 step"},{value:"2",label:"2 steps"},{value:"3",label:"3 steps",description:"Default."},{value:"4",label:"4 steps"},{value:"5",label:"5 steps"}],condition:"advisorEnabled"}},"advisor.continueSeverity":{type:"enum",default:"concern",values:["nit","concern","blocker"],ui:{tab:"model",group:"Advisor",label:"Advisor Continue Severity",description:"Minimum severity of an advisor note that wakes the agent after it finished with a final answer. Lower-severity notes stay as a card at the end of the transcript and reach the agent with your next message.",options:[{value:"nit",label:"Nit",description:"Every note continues the run."},{value:"concern",label:"Concern",description:"Concerns and blockers continue the run. Default."},{value:"blocker",label:"Blocker",description:"Only blockers continue the run."}],condition:"advisorEnabled"}},"advisor.reviewMode":{type:"enum",default:"turn",values:["turn","agent-end"],ui:{tab:"model",group:"Advisor",label:"Advisor Review Mode",description:"Default advisor cadence when no WATCHDOG.yml roster is present. turn reviews every primary turn; agent-end reviews only final yields.",options:[{value:"turn",label:"Every turn",description:"Review every primary update (tool-call round)."},{value:"agent-end",label:"Agent end",description:"Review only at final yields (once per run)."}],condition:"advisorEnabled"}},"advisor.reviewInterval":{type:"number",default:1,ui:{tab:"model",group:"Advisor",label:"Advisor Review Interval",description:"Default advisor cadence when no WATCHDOG.yml roster is present: review every Nth eligible primary update. 1 = every update. Skipped updates are sent with the next scheduled review.",options:[{value:"1",label:"Every eligible update",description:"Default."},{value:"2",label:"Every 2nd"},{value:"3",label:"Every 3rd"},{value:"5",label:"Every 5th"},{value:"10",label:"Every 10th"}],condition:"advisorEnabled"}},"advisor.maxNotesPerUpdate":{type:"number",default:4,ui:{tab:"model",group:"Advisor",label:"Advisor Max Notes Per Update",description:"Maximum non-blocker advice notes accepted per advisor prompt update (1–32; UI offers 1–5 quick picks). Blockers are exempt.",options:[{value:"1",label:"1 note",description:"Anti-flood (strict)."},{value:"2",label:"2 notes"},{value:"3",label:"3 notes"},{value:"4",label:"4 notes",description:"Frontier reasoning models. Default."},{value:"5",label:"5 notes"}],condition:"advisorEnabled"}},"advisor.evictStaleResults":{type:"boolean",default:!0,ui:{tab:"model",group:"Advisor",label:"Advisor Evict Stale Results",description:"Before each review, replace the advisor's read/grep/glob output from older reviews with a short placeholder. The latest review is kept.",condition:"advisorEnabled"}},"workspace.additionalDirectories":{type:"array",default:[],ui:{tab:"context",group:"General",label:"Additional Workspace Dirs",description:"Extra workspace directories added to every session as additional roots (multi-root workspace). Managed live via /add-dir and /remove-dir. Paths resolve relative to cwd; absolute paths recommended. The agent is told these roots exist and can read/grep/glob them."}},"contextFiles.extra":{type:"array",default:[],ui:{tab:"context",group:"General",label:"Extra Context Files",editor:"json",description:'Extra instruction filenames loaded beside AGENTS.md. Use a JSON list of names, not paths, e.g. ["AGENTS.local.md"]; [] disables extras. Start a new session to load them.',condition:"contextFilesExtraNotProject"}},"contextPromotion.enabled":{type:"boolean",default:!1,ui:{tab:"context",group:"General",label:"Auto-Promote Context",description:"Promote to the model's contextPromotionTarget on context overflow instead of compacting. Retry fallback switches are controlled by Retry Model Fallback"}},extendedContext:{type:"boolean",default:!1,ui:{tab:"context",group:"General",label:"Extended Context",description:"Use larger context windows where supported; may incur premium pricing. Off keeps default or standard-pricing windows"}},"compaction.enabled":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Auto-Compact",description:"Automatically compact context when it gets too large"}},"compaction.experimentalContextManagement":{type:"boolean",default:!1,ui:{tab:"context",group:"Compaction",label:"Notes-backed context windows (experimental)",description:"Keep persistent notes and searchable raw history across context windows."}},"compaction.midTurnEnabled":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Mid-Turn Compaction",description:"Check thresholds at safe mid-turn tool-loop boundaries before the next provider request; subagents always check, since their whole assignment is one turn"}},"compaction.methodOrder":{type:"array",default:["remote","snapcompact","handoff","shake","soft"],ui:{tab:"context",group:"Compaction",label:"Compaction Method Order",description:"Preferred fallback order for automatic context maintenance; unavailable or failed methods advance to the next choice",options:[{value:"remote",label:"Server compaction",description:"Use provider-native server compaction (OpenAI Responses compact, Anthropic compaction beta, including on Bedrock) when the active route supports it"},{value:"snapcompact",label:"Snapcompact",description:"Archive history onto dense bitmap images the active vision model reads back; no LLM call"},{value:"handoff",label:"Handoff",description:"Generate a handoff document and continue from it as the compaction summary"},{value:"soft",label:"Soft compaction",description:"Summarize in place with a compaction model without using server compaction"},{value:"shake",label:"Shake",description:"Drop recoverable heavy content in place without an LLM call"}],ordered:!0}},"compaction.thresholdPercent":{type:"number",default:-1,ui:{tab:"context",group:"Compaction",label:"Compaction Threshold",description:"Percent threshold for context maintenance; set to Default to use legacy reserve-based behavior",options:[{value:"default",label:"Default",description:"Legacy reserve-based threshold"},{value:"10",label:"10%",description:"Extremely early maintenance"},{value:"20",label:"20%",description:"Very early maintenance"},{value:"30",label:"30%",description:"Early maintenance"},{value:"40",label:"40%",description:"Moderately early maintenance"},{value:"50",label:"50%",description:"Halfway point"},{value:"60",label:"60%",description:"Moderate context usage"},{value:"70",label:"70%",description:"Balanced"},{value:"75",label:"75%",description:"Slightly aggressive"},{value:"80",label:"80%",description:"Typical threshold"},{value:"85",label:"85%",description:"Aggressive context usage"},{value:"90",label:"90%",description:"Very aggressive"},{value:"95",label:"95%",description:"Near context limit"}]}},"compaction.thresholdTokens":{type:"number",default:-1,ui:{tab:"context",group:"Compaction",label:"Compaction Token Limit",description:"Fixed token limit for context maintenance; overrides percentage if set",options:[{value:"default",label:"Default",description:"Use percentage-based threshold"},{value:"25000",label:"25K tokens",description:"1/8 of a 200K window"},{value:"50000",label:"50K tokens",description:"1/4 of a 200K window"},{value:"100000",label:"100K tokens",description:"1/2 of a 200K window"},{value:"150000",label:"150K tokens",description:"3/4 of a 200K window"},{value:"200000",label:"200K tokens",description:"Full standard context window"},{value:"300000",label:"300K tokens",description:"Large context window"},{value:"500000",label:"500K tokens",description:"Very large context window"}]}},"compaction.handoffSaveToDisk":{type:"boolean",default:!1,ui:{tab:"context",group:"Compaction",label:"Save Handoff Docs",description:"Save generated handoff documents to markdown files for the auto-handoff flow"}},"compaction.remoteStreamingV2Enabled":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Remote Compaction V2",description:"Use Responses streaming compaction for compatible remote compaction models"}},"compaction.asyncEnabled":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Async Compaction",description:"Speculatively summarize in the background as context nears the compaction threshold, then splice the ready result in when the threshold is crossed"}},"compaction.idleEnabled":{type:"boolean",default:!1,ui:{tab:"context",group:"Compaction",label:"Idle Compaction",description:"Compact context while idle when token count exceeds threshold"}},"compaction.idleThresholdTokens":{type:"number",default:200000,ui:{tab:"context",group:"Compaction",label:"Idle Compaction Threshold",description:"Token count above which idle compaction triggers",options:[{value:"100000",label:"100K tokens"},{value:"200000",label:"200K tokens"},{value:"300000",label:"300K tokens"},{value:"400000",label:"400K tokens"},{value:"500000",label:"500K tokens"},{value:"600000",label:"600K tokens"},{value:"700000",label:"700K tokens"},{value:"800000",label:"800K tokens"},{value:"900000",label:"900K tokens"}]}},"compaction.idleTimeoutSeconds":{type:"number",default:300,ui:{tab:"context",group:"Compaction",label:"Idle Compaction Delay",description:"Seconds to wait while idle before compacting; with a 1-hour prompt cache, compaction instead runs just before the cache expires",options:[{value:"60",label:"1 minute"},{value:"120",label:"2 minutes"},{value:"300",label:"5 minutes"},{value:"600",label:"10 minutes"},{value:"1800",label:"30 minutes"},{value:"3600",label:"1 hour"}]}},"compaction.supersedeReads":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Supersede Stale Reads",description:"Prune older read results when the same file is read again (cache-aware, runs every turn)"}},"compaction.dropUseless":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Elide Uneventful Results",description:"Prune tool results flagged contextually useless (no matches, timed-out waits) once consumed (cache-aware)"}},"snapcompact.systemPrompt":{type:"enum",default:"none",values:["none","agents-md","all"],ui:{tab:"context",group:"Experimental",label:"Snapcompact System Prompt",description:"Experimental: render selected system prompt text as dense PNG image(s) and attach to the first user message (vision models only). Saves tokens; loses prompt caching for imaged text.",options:[{value:"none",label:"None",description:"Keep the system prompt as text."},{value:"agents-md",label:"AGENTS.md",description:"Only move loaded context-file instructions to images, when that saves tokens."},{value:"all",label:"All",description:"Move the full system prompt to images, when that saves tokens."}]}},"snapcompact.toolResults":{type:"boolean",default:!1,ui:{tab:"context",group:"Experimental",label:"Snapcompact Tool Results",description:"Experimental: render large tool results, the newest one included, as dense PNG image(s) instead of text (vision models only). Saves tokens on accumulated search and command output; read results stay text unless the model is known to edit exactly from images."}},"tools.format":{type:"enum",default:"auto",values:["auto","native","glm","hermes","kimi","xml","anthropic","deepseek","harmony","qwen3","gemini","gemma","minimax"],ui:{tab:"context",group:"Experimental",label:"Tool Calling Mode",description:"Controls how tools are exposed to the model. Auto uses provider-native tool calls unless the selected model is marked as not supporting them, then falls back to the GLM owned dialect. Native forces provider-native tools; the other values force the named owned dialect.",options:[{value:"auto",label:"Auto",description:"Use native tool calls unless the model is known not to support them."},{value:"native",label:"Native",description:"Use provider-native tool calls."},{value:"glm",label:"GLM",description:"Use GLM-style in-band tool calls."},{value:"hermes",label:"Hermes",description:"Use Hermes-style in-band tool calls."},{value:"kimi",label:"Kimi",description:"Use Kimi-style in-band tool calls."},{value:"xml",label:"XML",description:"Use generic XML in-band tool calls."},{value:"anthropic",label:"Anthropic",description:"Use Anthropic-style in-band tool calls."},{value:"deepseek",label:"DeepSeek",description:"Use DeepSeek-style in-band tool calls."},{value:"harmony",label:"Harmony",description:"Use Harmony-style in-band tool calls."},{value:"qwen3",label:"Qwen3",description:"Use the Qwen3 owned dialect."},{value:"gemini",label:"Gemini",description:"Use the Gemini owned dialect."},{value:"gemma",label:"Gemma",description:"Use the Gemma owned dialect."},{value:"minimax",label:"MiniMax",description:"Use the MiniMax owned dialect."}]}},"snapcompact.shape":{type:"enum",default:"auto",values:["auto","8x8r-bw","8x8r-sent","8x8u-bw","8x8u-sent","6x6u-bw","6x6u-sent","5x8-bw","5x8-sent","6x12-dim","8x13-bw","8on16-bw","8on22-bw","11on16-bw","silver16-bw","doc-8on16-bw","doc-8on16-sent","doc-8on16-sent-dim"],ui:{tab:"context",group:"Experimental",label:"Snapcompact Shape",description:"Frame shape snapcompact prints text with (compaction archive and inline imaging). Auto picks a shape tuned for the current model.",options:[{value:"auto",label:"Auto",description:"Picks a shape tuned for the current model, falling back to its provider family."},{value:"8x8r-bw",label:"8x8 repeated, black",description:"unscii square cell, black ink, every line printed twice with the copy on a pale highlight band."},{value:"8x8r-sent",label:"8x8 repeated, sentence hues",description:"Repeated grid with ink cycling six hues at sentence boundaries."},{value:"8x8u-bw",label:"8x8, black",description:"Plain unscii square cell, single-printed lines, black ink."},{value:"8x8u-sent",label:"8x8, sentence hues",description:"Plain unscii square cell with sentence-hue ink."},{value:"6x6u-bw",label:"6x6 dense, black",description:"unscii squeezed to 6x6 — densest readable cell, fewest frames — in black ink."},{value:"6x6u-sent",label:"6x6 dense, sentence hues",description:"Densest cell with sentence-hue ink."},{value:"5x8-bw",label:"5x8 legacy, black",description:"Original X.org 5x8 glyphs on the 2576px frame, black ink."},{value:"5x8-sent",label:"5x8 legacy, sentence hues",description:"The original snapcompact shape (pre-shape-table sessions rendered this)."},{value:"6x12-dim",label:"6x12, dimmed stopwords",description:"X.org 6x12 glyphs, black ink, function words dimmed gray."},{value:"8x13-bw",label:"8x13, black",description:"X.org 8x13 glyphs, black ink."},{value:"8on16-bw",label:"8x13 on 16px pitch, black",description:"8x13 glyphs on an 8x16 cell (extra leading), black ink."},{value:"8on22-bw",label:"8x13 on 22px pitch (leading), black",description:"8x13 glyphs on an 8x22 cell — extra line spacing so rows don't crowd. Default for OpenAI/Google."},{value:"11on16-bw",label:"8x13 on 11px advance (tracking), black",description:"8x13 glyphs on an 11x16 cell — extra letter spacing so characters don't merge. Default for Anthropic."},{value:"silver16-bw",label:"Silver 16, CJK",description:"Embedded Silver TrueType font on a 16px grid for CJK and other non-Latin text."},{value:"doc-8on16-bw",label:"Doc 8on16, black",description:"Two word-wrapped newspaper columns of 8x13 glyphs on a 16px pitch, black ink."},{value:"doc-8on16-sent",label:"Doc 8on16, sentence hues",description:"Two-column doc layout with sentence-hue ink."},{value:"doc-8on16-sent-dim",label:"Doc 8on16, sentence hues + dimmed stopwords",description:"Two-column doc layout, sentence-hue ink, function words dimmed gray."}]}},"branchSummary.enabled":{type:"boolean",default:!1,ui:{tab:"context",group:"General",label:"Branch Summaries",description:"Prompt to summarize when leaving a branch"}},"memory.backend":{type:"enum",default:"off",values:["off","local","hindsight","mnemopi","sharpshooter"],ui:{tab:"memory",group:"General",label:"Memory Backend",description:"Off, local summary pipeline, Mnemopi SQLite, Hindsight remote memory, or Sharpshooter",options:[{value:"off",label:"Off",description:"No memory subsystem runs"},{value:"local",label:"Local",description:"Local rollout summarisation pipeline (memory_summary.md)"},{value:"hindsight",label:"Hindsight",description:"Vectorize Hindsight remote memory service"},{value:"mnemopi",label:"Mnemopi",description:"Local SQLite recall/retain backend with optional embeddings"},{value:"sharpshooter",label:"Sharpshooter",description:"Friction-gated project decision files (architecture/product/style), consolidated in the background"}]}},"sharpshooter.model":{type:"string",ui:{tab:"memory",group:"Sharpshooter",label:"Sharpshooter Model",description:"Model selector for extraction/consolidation, empty = smol role"}},"autolearn.enabled":{type:"boolean",default:!1,ui:{tab:"memory",group:"Auto-Learn",label:"Auto-Learn (experimental)",description:"After the agent stops, nudge it to capture lessons to memory and create/enhance isolated managed skills"}},"autolearn.autoContinue":{type:"boolean",default:!1,ui:{tab:"memory",group:"Auto-Learn",label:"Auto-run capture at stop",description:"When on, auto-run one private capture turn at stop (uses extra tokens). When off, only standing auto-learn guidance remains.",condition:"autolearnActive"}},"mnemopi.dbPath":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi DB Path",description:"Optional SQLite DB path; a leading ~ is the home directory. Defaults to the agent memories directory.",condition:"mnemopiActive"}},"mnemopi.bank":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Bank",description:"Optional shared bank base name. Per-project modes derive project-local banks from it.",condition:"mnemopiActive"}},"mnemopi.scoping":{type:"enum",default:"per-project",values:["global","per-project","per-project-tagged"],ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Scoping",description:"global = one shared bank; per-project = isolated bank per cwd; per-project-tagged = project-local writes plus global recall visibility",options:[{value:"global",label:"Global",description:"One shared Mnemopi bank for every project"},{value:"per-project",label:"Per project",description:"Project-local Mnemopi bank per cwd basename"},{value:"per-project-tagged",label:"Per project (tagged)",description:"Write to a project-local bank but merge project + shared recall results"}],condition:"mnemopiActive"}},"mnemopi.embeddingVariant":{type:"enum",default:"en",values:["en","multilingual"],ui:{tab:"memory",group:"Mnemopi",label:"Embedding variant",description:"Local embedding model family. en = stronger English model; multilingual = cross-language model. Changing this rebuilds existing memory embeddings on next start.",options:[{value:"en",label:"English (bge-base-en-v1.5)",description:"BAAI/bge-base-en-v1.5 (768d), English-only"},{value:"multilingual",label:"Multilingual (multilingual-e5-large)",description:"intfloat/multilingual-e5-large (1024d), cross-language recall"}],condition:"mnemopiActive"}},"mnemopi.autoRecall":{type:"boolean",default:!0,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Auto Recall",description:"Recall local memories into the first turn of each session",condition:"mnemopiActive"}},"mnemopi.recallRelevance":{type:"enum",default:"off",values:["auto","on","off"],ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Recall Relevance",description:"Ask the judge model role whether each automatically recalled memory is relevant to the task before injecting it",options:[{value:"auto",label:"Auto",description:"Filter only with a native judge backend; otherwise inject every recalled memory"},{value:"on",label:"On",description:"Filter with whichever model the judge role resolves to; an on-device judge may answer only some memories in time"},{value:"off",label:"Off",description:"Never filter; inject every recalled memory"}],condition:"mnemopiActive"}},"mnemopi.autoRetain":{type:"boolean",default:!0,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Auto Retain",description:"Retain completed conversation turns into local Mnemopi memory",condition:"mnemopiActive"}},"mnemopi.polyphonicRecall":{type:"boolean",default:!1,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Polyphonic Recall",description:"Fuse recall with graph, fact, vector and temporal voices so linked memories surface without a keyword match",condition:"mnemopiActive"}},"mnemopi.enhancedRecall":{type:"boolean",default:!1,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Enhanced Recall",description:"Cache recall results for repeated and similar queries with identical options; any memory write clears it",condition:"mnemopiActive"}},"mnemopi.proactiveLinking":{type:"boolean",default:!1,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Proactive Linking",description:"Ingest new memories into the episodic graph as they are stored, linking them to related entities and memories",condition:"mnemopiActive"}},"mnemopi.noEmbeddings":{type:"boolean",default:!1,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Disable Embeddings",description:"Force deterministic FTS-only recall instead of vector embeddings",condition:"mnemopiActive"}},"mnemopi.embeddingModel":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Embedding Model",description:"Advanced: explicit embedding model id that overrides the variant. Leave empty to use mnemopi.embeddingVariant.",condition:"mnemopiActive"}},"mnemopi.embeddingApiUrl":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Embedding API URL",description:"Optional OpenAI-compatible embedding endpoint passed to Mnemopi",condition:"mnemopiActive"}},"mnemopi.embeddingApiKey":{type:"string",credential:!0,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Embedding API Key",description:"Optional embedding API key passed to Mnemopi",condition:"mnemopiActive"}},"mnemopi.embeddingQueryPrefix":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Embedding Query Prefix",description:"Text prepended to recall queries before embedding, for instruction-tuned embedders (Qwen3-Embedding, E5); stored memories are embedded unchanged",condition:"mnemopiActive"}},"mnemopi.embeddingInputType":{type:"boolean",default:!1,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi Embedding Input Type",description:"Send input_type (query for recall, passage for stored memories) with embedding API requests; NVIDIA NIM asymmetric embedders require it",condition:"mnemopiActive"}},"mnemopi.llmMode":{type:"enum",default:"smol",values:["none","smol","remote"],ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi LLM Mode",description:"Use no LLM, the online tiny model (the TINY role from /models, else @smol), or a remote OpenAI-compatible endpoint",condition:"mnemopiActive",options:[{value:"none",label:"None",description:"Disable Mnemopi LLM-backed extraction"},{value:"smol",label:"Online (tiny)",description:"Use the online tiny model (the TINY role from /models, else @smol)"},{value:"remote",label:"Remote",description:"Use the Mnemopi remote LLM settings below"}]}},"mnemopi.llmBaseUrl":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi LLM Base URL",description:"Optional OpenAI-compatible LLM endpoint for Mnemopi remote mode",condition:"mnemopiActive"}},"mnemopi.llmApiKey":{type:"string",credential:!0,ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi LLM API Key",description:"Optional LLM API key for Mnemopi remote mode",condition:"mnemopiActive"}},"mnemopi.llmModel":{type:"string",ui:{tab:"memory",group:"Mnemopi",label:"Mnemopi LLM Model",description:"Optional LLM model name for Mnemopi remote mode",condition:"mnemopiActive"}},"hindsight.apiUrl":{type:"string",default:"http://localhost:8888",ui:{tab:"memory",group:"Hindsight",label:"Hindsight API URL",description:"Hindsight server URL (Cloud or self-hosted)",condition:"hindsightActive"}},"hindsight.apiToken":{type:"string",credential:!0,ui:{tab:"memory",group:"Hindsight",label:"Hindsight API Token",description:"Bearer token for authenticated Hindsight servers",condition:"hindsightActive"}},"hindsight.bankId":{type:"string",ui:{tab:"memory",group:"Hindsight",label:"Hindsight Bank ID",description:"Memory bank identifier (default: project name)",condition:"hindsightActive"}},"hindsight.scoping":{type:"enum",default:"per-project-tagged",values:["global","per-project","per-project-tagged"],ui:{tab:"memory",group:"Hindsight",label:"Hindsight Scoping",description:"global = one shared bank; per-project = isolated bank per cwd; per-project-tagged = shared bank with project tags so global + project memories merge on recall",options:[{value:"global",label:"Global",description:"One shared bank — every project sees the same memories"},{value:"per-project",label:"Per project",description:"Isolated bank per cwd basename — projects cannot see each other's memories"},{value:"per-project-tagged",label:"Per project (tagged)",description:"Shared bank, retains tagged with project:<cwd>. Recall surfaces project + untagged global memories together"}],condition:"hindsightActive"}},"hindsight.globalScope":{type:"boolean",default:!1,ui:{tab:"memory",group:"Hindsight",label:"Hindsight Global Scope",description:"Let retain and learn take scope: global, which stores a memory without the project tag so every project recalls it. Needs global or per-project-tagged scoping",condition:"hindsightActive"}},"hindsight.autoRecall":{type:"boolean",default:!0,ui:{tab:"memory",group:"Hindsight",label:"Hindsight Auto Recall",description:"Recall memories on the first turn of each session",condition:"hindsightActive"}},"hindsight.autoRetain":{type:"boolean",default:!0,ui:{tab:"memory",group:"Hindsight",label:"Hindsight Auto Retain",description:"Retain transcript every N turns and at session boundaries",condition:"hindsightActive"}},"hindsight.retainMode":{type:"enum",default:"full-session",values:["full-session","last-turn"],ui:{tab:"memory",group:"Hindsight",label:"Hindsight Retain Mode",description:"full-session = upsert one document per session, last-turn = chunked",options:[{value:"full-session",label:"Full session",description:"Upsert one document per session (recommended)"},{value:"last-turn",label:"Last turn",description:"Chunked retention sliced by turn boundaries"}],condition:"hindsightActive"}},"hindsight.mentalModelsEnabled":{type:"boolean",default:!0,ui:{tab:"memory",group:"Hindsight",label:"Hindsight Mental Models",description:"Read curated reflect summaries (mental models) into developer instructions at boot. Loads existing models on the bank — does not write. Pair with hindsight.mentalModelAutoSeed to also auto-create the built-in seed set.",condition:"hindsightActive"}},"hindsight.mentalModelAutoSeed":{type:"boolean",default:!0,ui:{tab:"memory",group:"Hindsight",label:"Hindsight Mental Model Auto-Seed",description:"At session start, create any built-in mental models (project-conventions, project-decisions, user-preferences) that do not yet exist on the bank.",condition:"hindsightActive"}},"ttsr.enabled":{type:"boolean",default:!0,ui:{tab:"context",group:"Rules (TTSR)",label:"TTSR",description:"Interrupt the agent mid-stream when output matches rule patterns (Time-Traveling Stream Rules)"}},"ttsr.judge":{type:"enum",default:"auto",values:["auto","on","off"],ui:{tab:"context",group:"Rules (TTSR)",label:"Judged Rules",description:"Ask the judge model role each `question` rule about completed replies, reasoning, and tool calls; a yes injects the rule as a warning",options:[{value:"auto",label:"Auto",description:"Judge only when the judge role resolves to a native TypeSafe jev model"},{value:"on",label:"On",description:"Always judge, whichever model the judge role resolves to"},{value:"off",label:"Off",description:"Never judge; question rules stay inactive"}]}},"ttsr.contextMode":{type:"enum",default:"discard",values:["discard","keep"],ui:{tab:"context",group:"Rules (TTSR)",label:"TTSR Context Mode",description:"What to do with partial output when TTSR triggers"}},"ttsr.interruptMode":{type:"enum",default:"always",values:["never","prose-only","tool-only","always"],ui:{tab:"context",group:"Rules (TTSR)",label:"TTSR Interrupt Mode",description:"When to interrupt mid-stream vs inject warning after completion",options:[{value:"always",label:"always",description:"Interrupt on prose and tool streams"},{value:"prose-only",label:"prose-only",description:"Interrupt only on reply/thinking matches"},{value:"tool-only",label:"tool-only",description:"Interrupt only on tool-call argument matches"},{value:"never",label:"never",description:"Never interrupt; inject warning after completion"}]}},"ttsr.repeatMode":{type:"enum",default:"once",values:["once","after-gap"],ui:{tab:"context",group:"Rules (TTSR)",label:"TTSR Repeat Mode",description:"How rules can repeat: once per session or after a message gap"}},"ttsr.repeatGap":{type:"number",default:10,ui:{tab:"context",group:"Rules (TTSR)",label:"TTSR Repeat Gap",description:"Messages before a rule can trigger again",options:[{value:"5",label:"5 messages"},{value:"10",label:"10 messages"},{value:"15",label:"15 messages"},{value:"20",label:"20 messages"},{value:"30",label:"30 messages"}]}},"ttsr.builtinRules":{type:"boolean",default:!0,ui:{tab:"context",group:"Rules (TTSR)",label:"Built-in Rules",description:"Load the default rules shipped with the agent (override individually with ttsr.disabledRules)"}},"ttsr.disabledRules":{type:"array",default:[],ui:{tab:"context",group:"Rules (TTSR)",label:"Disabled Rules",description:"Rule names to ignore entirely (applies to bundled defaults and your own rules)"}},"edit.mode":{type:"enum",default:"hashline",values:["apply_patch","hashline","patch","replace","sloppy","magic","none"],ui:{tab:"files",group:"Editing",label:"Edit Mode",description:"Select the edit tool variant (replace, patch, hashline, or apply_patch); magic takes described changes that a fast model writes; none removes the edit tool and keeps bash enabled"}},"edit.magic.model":{type:"string",ui:{tab:"files",group:"Editing",label:"Magic Edit Model",description:"Model selector or role alias (@slow) for the model that applies magic-mode changes, empty = smol role"}},"edit.fuzzyMatch":{type:"boolean",default:!0,ui:{tab:"files",group:"Editing",label:"Fuzzy Match",description:"Accept high-confidence fuzzy matches for whitespace differences"}},"edit.fuzzyThreshold":{type:"number",default:0.95,ui:{tab:"files",group:"Editing",label:"Fuzzy Match Threshold",description:"Similarity threshold (0-1) for accepting fuzzy matches",options:[{value:"0.85",label:"0.85",description:"Lenient"},{value:"0.90",label:"0.90",description:"Moderate"},{value:"0.95",label:"0.95",description:"Default"},{value:"0.98",label:"0.98",description:"Strict"}]}},"edit.streamingAbort":{type:"boolean",default:!1,ui:{tab:"files",group:"Editing",label:"Abort on Failed Preview",description:"Abort streaming edit tool calls when patch preview fails"}},"edit.recoverInlineEdits":{type:"boolean",default:!0,ui:{tab:"files",group:"Editing",label:"Recover Inline Edit Payloads",description:"Execute edit payloads the model emits as plain text by converting them into edit tool calls"}},"edit.blockAutoGenerated":{type:"boolean",default:!0,ui:{tab:"files",group:"Editing",label:"Block Auto-Generated Files",description:"Prevent editing of files that appear to be auto-generated (protoc, sqlc, swagger, etc.)"}},"edit.enforceSeenLines":{type:"boolean",default:!0,ui:{tab:"files",group:"Editing",label:"Enforce Seen-Line Guard",description:"Reject edits anchored on lines a prior read/search never displayed in full"}},"edit.blackbox.enabled":{type:"boolean",default:!1,ui:{tab:"files",group:"Editing",label:"Record Parse Regressions",description:"Append full before/after source when an edit introduces an AST parse failure"}},"edit.autoRepair.enabled":{type:"boolean",default:!1,ui:{tab:"files",group:"Editing",label:"Auto-Repair Parse Regressions",description:"When an edit breaks a file's AST parse, ask the smol model to fix the broken region (validated by re-parse; falls back to a warning)"}},"tools.artifactSpillThreshold":{type:"number",default:50,ui:{tab:"tools",group:"Output Limits",label:"Artifact Spill Threshold (KB)",description:"Tool output above this size is saved as an artifact; tail is kept inline",options:[{value:"1",label:"1 KB",description:"~250 tokens"},{value:"2.5",label:"2.5 KB",description:"~625 tokens"},{value:"5",label:"5 KB",description:"~1.25K tokens"},{value:"10",label:"10 KB",description:"~2.5K tokens"},{value:"20",label:"20 KB",description:"~5K tokens"},{value:"30",label:"30 KB",description:"~7.5K tokens"},{value:"50",label:"50 KB",description:"Default; ~12.5K tokens"},{value:"75",label:"75 KB",description:"~19K tokens"},{value:"100",label:"100 KB",description:"~25K tokens"},{value:"200",label:"200 KB",description:"~50K tokens"},{value:"500",label:"500 KB",description:"~125K tokens"},{value:"1000",label:"1 MB",description:"~250K tokens"}]}},"tools.artifactTailBytes":{type:"number",default:20,ui:{tab:"tools",group:"Output Limits",label:"Artifact Tail Size (KB)",description:"Amount of tail content kept inline when output spills to artifact",options:[{value:"1",label:"1 KB",description:"~250 tokens"},{value:"2.5",label:"2.5 KB",description:"~625 tokens"},{value:"5",label:"5 KB",description:"~1.25K tokens"},{value:"10",label:"10 KB",description:"~2.5K tokens"},{value:"20",label:"20 KB",description:"Default; ~5K tokens"},{value:"50",label:"50 KB",description:"~12.5K tokens"},{value:"100",label:"100 KB",description:"~25K tokens"},{value:"200",label:"200 KB",description:"~50K tokens"}]}},"tools.artifactHeadBytes":{type:"number",default:20,ui:{tab:"tools",group:"Output Limits",label:"Artifact Head Size (KB)",description:"Amount of head content kept inline alongside the tail when output spills to artifact (middle elision). 0 disables — keep tail only.",options:[{value:"0",label:"0 KB",description:"Disabled; tail-only truncation"},{value:"1",label:"1 KB",description:"~250 tokens"},{value:"2.5",label:"2.5 KB",description:"~625 tokens"},{value:"5",label:"5 KB",description:"~1.25K tokens"},{value:"10",label:"10 KB",description:"~2.5K tokens"},{value:"20",label:"20 KB",description:"Default; ~5K tokens"},{value:"50",label:"50 KB",description:"~12.5K tokens"},{value:"100",label:"100 KB",description:"~25K tokens"},{value:"200",label:"200 KB",description:"~50K tokens"}]}},"tools.outputMaxColumns":{type:"number",default:768,ui:{tab:"tools",group:"Output Limits",label:"Output Column Cap",description:"Per-line byte cap for streaming tool outputs (bash, python, js eval) and `read`. Lines wider than this are ellipsis-truncated; remaining bytes up to the next newline are dropped. 0 disables.",options:[{value:"0",label:"Off",description:"No per-line cap"},{value:"256",label:"256",description:"Tight"},{value:"512",label:"512"},{value:"768",label:"768",description:"Default"},{value:"1024",label:"1024"},{value:"2048",label:"2048"},{value:"4096",label:"4096",description:"Loose"}]}},"tools.artifactTailLines":{type:"number",default:500,ui:{tab:"tools",group:"Output Limits",label:"Artifact Tail Lines",description:"Maximum lines of tail content kept inline when output spills to artifact",options:[{value:"50",label:"50 lines",description:"~250 tokens"},{value:"100",label:"100 lines",description:"~500 tokens"},{value:"250",label:"250 lines",description:"~1.25K tokens"},{value:"500",label:"500 lines",description:"Default; ~2.5K tokens"},{value:"1000",label:"1000 lines",description:"~5K tokens"},{value:"2000",label:"2000 lines",description:"~10K tokens"},{value:"5000",label:"5000 lines",description:"~25K tokens"}]}},"tools.artifactMaxBytes":{type:"number",default:16,ui:{tab:"tools",group:"Output Limits",label:"Artifact File Cap (MB)",description:"Maximum size of the artifact file saved for streaming tool output (bash, python, js eval). Larger output keeps its beginning (up to 3 MB) and its most recent remainder, with a truncation notice between them. 0 = unlimited.",options:[{value:"0",label:"Unlimited",description:"Save the complete output"},{value:"4",label:"4 MB"},{value:"16",label:"16 MB",description:"Default"},{value:"64",label:"64 MB"},{value:"256",label:"256 MB"},{value:"1024",label:"1 GB"}]}},readLineNumbers:{type:"boolean",default:!1,ui:{tab:"files",group:"Reading",label:"Line Numbers",description:"Prepend line numbers to read tool output by default"}},"read.defaultLimit":{type:"number",default:300,ui:{tab:"files",group:"Reading",label:"Default Read Limit",description:"Default number of lines returned when agent calls read without a limit",options:[{value:"200",label:"200 lines"},{value:"300",label:"300 lines"},{value:"500",label:"500 lines"},{value:"1000",label:"1000 lines"},{value:"5000",label:"5000 lines"}]}},"read.renderMarkdown":{type:"boolean",default:!1,ui:{tab:"files",group:"Reading",label:"Markdown Previews",description:"Render Markdown read results as formatted terminal Markdown previews instead of raw source"}},"read.summarize.enabled":{type:"boolean",default:!0,ui:{tab:"files",group:"Read Summaries",label:"Read Summaries",description:"Return structural code summaries when read is called without an explicit selector"}},"read.summarize.prose":{type:"boolean",default:!1,ui:{tab:"files",group:"Read Summaries",label:"Prose Summaries",description:"Return structural summaries for Markdown and plain text reads"}},"read.summarize.minBodyLines":{type:"number",default:4,ui:{tab:"files",group:"Read Summaries",label:"Read Summary Body Lines",description:"Minimum multiline body or literal length before read summaries collapse it"}},"read.summarize.minCommentLines":{type:"number",default:6,ui:{tab:"files",group:"Read Summaries",label:"Read Summary Comment Lines",description:"Minimum multiline block comment length before read summaries collapse it"}},"read.summarize.minTotalLines":{type:"number",default:100,ui:{tab:"files",group:"Read Summaries",label:"Read Summary Minimum File Length",description:"Files with fewer total lines are read verbatim instead of structurally summarized"}},"read.summarize.unfoldUntil":{type:"number",default:50,ui:{tab:"files",group:"Read Summaries",label:"Read Summary Unfold Target",description:"BFS-unfold elidable spans until the summary is at least this many visible lines. 0 keeps only the outermost elisions."}},"read.summarize.unfoldLimit":{type:"number",default:100,ui:{tab:"files",group:"Read Summaries",label:"Read Summary Unfold Ceiling",description:"Hard ceiling on summary size while BFS-unfolding. An unfold whose revealed lines would exceed this is skipped (that span stays folded) and unfolding continues with the remaining spans."}},"read.toolResultPreview":{type:"boolean",default:!1,ui:{tab:"files",group:"Reading",label:"Inline Read Previews",description:"Render read tool results inline in the transcript instead of summary rows"}},"tools.approval":{type:"record",default:{},ui:{tab:"interaction",group:"Approvals",label:"Tool Approval Policies",description:"Per-tool approval policies. Set to 'allow' to auto-approve, 'prompt' to require confirmation, or 'deny' to block. Overrides are honored in every approval mode."}},"tools.approvalMode":{type:"enum",default:"yolo",values:["always-ask","always-ask-cached","write","yolo"],ui:{tab:"interaction",group:"Approvals",label:"Tool Approval",description:"Default approval behavior for tool calls. 'Always ask' auto-approves read-only tools only. 'Ask and remember' also asks before file reads, and can remember a file or folder. 'Write' auto-approves read and workspace-write tools. 'Yolo' auto-approves all tiers; user policy may still prompt or block.",options:[{value:"always-ask",label:"Always ask",description:"Auto-approve read-only tools; require confirmation for write and exec tools."},{value:"always-ask-cached",label:"Ask and remember",description:"Ask before reading or writing a file, with answers that remember the file or its folder for this session or every session; require confirmation for exec tools."},{value:"write",label:"Write",description:"Auto-approve read-only and write tools; require confirmation for exec tools such as bash, eval, browser, and task."},{value:"yolo",label:"Yolo",description:"Auto-approve read, write, and exec tools. User policy can still require confirmation or block calls."}]}},"tools.restrictedFolders":{type:"array",default:[],ui:{tab:"interaction",group:"Approvals",label:"Restricted Folders",editor:"json",description:'Folders where every read, write, edit, search, or command needs an explicit approval, whatever the approval mode or a remembered grant. The folder and everything under it is restricted; commands are matched by the directory they run in. A JSON list of paths, e.g. ["~/secrets"].',condition:"restrictedFoldersNotProject"}},"todo.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Todos",description:"Enable the todo tool for task tracking"}},"todo.reminders":{type:"boolean",default:!0,ui:{tab:"tools",group:"Todos",label:"Todo Reminders",description:"Remind the agent to complete todos before stopping"}},"todo.remindersMax":{type:"number",default:3,ui:{tab:"tools",group:"Todos",label:"Todo Reminder Limit",description:"Maximum number of todo reminders before giving up",options:[{value:"1",label:"1 reminder"},{value:"2",label:"2 reminders"},{value:"3",label:"3 reminders"},{value:"5",label:"5 reminders"}]}},"todo.midRunNudges":{type:"enum",default:"capped",values:["off","capped","backoff"],ui:{tab:"tools",group:"Todos",label:"Mid-Run Todo Nudges",description:"How often a long turn is reminded to update its todo list while it keeps changing things",options:[{value:"off",label:"Off",description:"Never nudge mid-run"},{value:"capped",label:"Capped",description:"Nudge after 12 edits or commands, at most twice until the todo list changes or you send a message"},{value:"backoff",label:"Backoff",description:"Keep nudging with a doubling gap: after 12, 24, 48, 96, then every 192 edits or commands"}]}},"todo.eager":{type:"enum",default:"default",values:["default","preferred","always"],ui:{tab:"tools",group:"Todos",label:"Create Todos Automatically",description:"How strongly to push automatic todo-list creation after the first message",options:[{value:"default",label:"Default",description:"Model decides; no automatic todo list"},{value:"preferred",label:"Preferred",description:"Suggests a todo list on the first message (reminder, not forced)"},{value:"always",label:"Always",description:"Forces a comprehensive todo list on the first message"}]}},"todo.backend":{type:"string",default:"native",ui:{tab:"tools",group:"Todos",label:"Todo Backend",description:"Extension that the todo list is mirrored to; Native keeps it in the session only",options:"runtime"}},"tasks.todoClearDelay":{type:"number",default:60,ui:{tab:"tools",group:"Todos",label:"Todo Auto-Clear Delay",description:"Delay before completed or abandoned todos are removed from the todo widget",options:[{value:"0",label:"Instant"},{value:"60",label:"1 minute",description:"Default"},{value:"300",label:"5 minutes"},{value:"900",label:"15 minutes"},{value:"1800",label:"30 minutes"},{value:"3600",label:"1 hour"},{value:"-1",label:"Never"}]}},"glob.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Glob",description:"Enable the glob tool for glob-based file lookup"}},"grep.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Grep",description:"Enable the grep tool for regex content search"}},"grep.contextBefore":{type:"number",default:0,ui:{tab:"tools",group:"Grep & Browser",label:"Grep Context Before",description:"Lines of context before each grep match",options:[{value:"0",label:"0 lines"},{value:"1",label:"1 line"},{value:"2",label:"2 lines"},{value:"3",label:"3 lines"},{value:"5",label:"5 lines"}]}},"grep.contextAfter":{type:"number",default:0,ui:{tab:"tools",group:"Grep & Browser",label:"Grep Context After",description:"Lines of context after each grep match",options:[{value:"0",label:"0 lines"},{value:"1",label:"1 line"},{value:"2",label:"2 lines"},{value:"3",label:"3 lines"},{value:"5",label:"5 lines"},{value:"10",label:"10 lines"}]}},"astGrep.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"AST Grep",description:"Enable the ast_grep tool for structural AST search"}},"astEdit.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"AST Edit",description:"Enable the ast_edit tool for structural AST rewrites"}},"find.verifyModel":{type:"string",ui:{tab:"tools",group:"Find",label:"Find Verification Model",description:"Model selector (e.g. openrouter/liquid/d1-ultra) tried first for find's passage verification, before the judge role; filename and sketch ranking stay on the judge role. Unset: the judge role verifies too"}},"find.enabled":{type:"enum",default:"auto",values:["auto","on","off"],ui:{tab:"tools",group:"Available Tools",label:"Find (semantic grep)",description:"Enable the find tool: natural-language search for files and line ranges, judged by the judge model role. Auto enables it when the first usable judge is native",options:[{value:"auto",label:"Auto",description:"Enable when the first usable judge is native"},{value:"on",label:"On",description:"Always enable, whichever model the judge role resolves to"},{value:"off",label:"Off",description:"Disable the find tool"}]}},"debug.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Debug",description:"Enable the debug tool for DAP-based debugging"}},"launch.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Services",description:"Enable named bash services and proc:// supervision for shared long-running project processes"}},"speechgen.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Speech Generation",description:"Enable the tts tool for on-device (Phonon) or xAI Grok Voice speech-file synthesis"}},"generate_image.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Generate Image",description:"Enable the generate_image tool (text-to-image generation and editing). Mounted as a tool command when tools.commands is on."}},"computer.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Computer",description:"Enable the scriptable host-desktop eval prelude (screenshots, input, accessibility)"}},"ratchet.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Ratchet",description:"Enable the ratchet eval/hillclimb prelude; /ratchet turns it on for the current session"}},"archive.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Archive",description:"Enable the read-only archive eval prelude: prompt history, recent projects, past sessions and recaps"}},"commit.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Selective commit",description:"Enable the commit eval prelude and /commit: commit only the lines this agent and its subagents wrote"}},"computer.display":{type:"string",default:"active",ui:{tab:"tools",group:"Computer",label:"Computer Display",description:"Active window's display (active), all displays (all), or a native display id"}},"computer.maxWidth":{type:"number",default:3840,ui:{tab:"tools",group:"Computer",label:"Computer Screenshot Width",description:"Maximum screenshot width in pixels"}},"computer.maxHeight":{type:"number",default:2400,ui:{tab:"tools",group:"Computer",label:"Computer Screenshot Height",description:"Maximum screenshot height in pixels"}},"computer.takeover":{type:"enum",default:"fallback",values:["fallback","foreground","always","refuse"],ui:{tab:"tools",group:"Computer",label:"Computer Takeover",description:"When window input takes over (the real pointer and keyboard; your Escape stops it) instead of running in the background",options:[{value:"fallback",label:"Fallback",description:"Background first; a call whose background route is unavailable briefly brings the target forward, then returns focus to your app (on macOS even if you kept typing). The agent may also ask for takeover on a call"},{value:"foreground",label:"Foreground",description:"omp, never the agent, decides: take over input to a window already in front of you, and a call whose background route is unavailable; stay in the background otherwise"},{value:"always",label:"Always",description:"omp, never the agent, decides: take over every window and element input call, bringing the target forward for that call and then returning focus to your app"},{value:"refuse",label:"Refuse",description:"Never take over: a call whose background route is unavailable fails, and the agent's own takeover, raise, activating open, desktop input and macOS menus (context menus, popup and menu buttons; they take your keyboard while open) are refused too"}]}},"images.questionTimeoutMs":{type:"number",default:300000,ui:{tab:"tools",group:"Execution",label:"Image Question Timeout",description:"Per-request timeout for the vision-model call behind read's ?q= image questions, in milliseconds. A stalled provider fails fast with a timeout error instead of blocking until manual abort. Set to 0 to disable the timeout.",options:[{value:"0",label:"Disabled"},{value:"60000",label:"1 minute"},{value:"120000",label:"2 minutes"},{value:"180000",label:"3 minutes"},{value:"300000",label:"5 minutes"}]}},"checkpoint.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Checkpoint/Rewind",description:"Enable the checkpoint and rewind tools for context checkpointing"}},"fetch.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Read URLs",description:"Allow the read tool to fetch and process URLs"}},"vault.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Obsidian Vault",description:"Enable the vault:// internal URL for reading and editing Obsidian vault content via the Obsidian CLI. When disabled, vault:// resolution is refused and the vault:// entry is omitted from the system prompt."}},"github.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"GitHub CLI",description:"Enable the github tool (op-based dispatch for repository, issue, pull request, diff, search, checkout, push, and Actions watch workflows)"}},"github.cache.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"GitHub",label:"GitHub View Cache",description:"Cache rendered issue/PR view output in ~/.omp/cache/github-cache.db so repeated reads are free"}},"github.cache.softTtlSec":{type:"number",default:300,ui:{tab:"tools",group:"GitHub",label:"GitHub Cache Soft TTL",description:"Within this window, cached issue/PR view rows are returned directly (seconds; default 5 minutes)"}},"github.cache.hardTtlSec":{type:"number",default:604800,ui:{tab:"tools",group:"GitHub",label:"GitHub Cache Hard TTL",description:"Past the soft TTL the cached row is returned and refreshed in the background; past the hard TTL it is dropped (seconds; default 7 days)"}},"web_search.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Web Search",description:"Enable the web_search tool for live web results"}},"security.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Available Tools",label:"Security",description:"Enable OMP-native security scan planning, execution, and the read-only security:// resource namespace"}},"ask.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Ask",description:"Enable the ask tool for interactive user questions"}},"out.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Out",description:"Let the agent reply mid-task by writing to out://, shown like a response without ending its turn. Unset: on in the interactive TUI, off in print, RPC, and ACP"}},"tools.intentTracing":{type:"boolean",default:!0,ui:{tab:"tools",group:"Execution",label:"Intent Tracing",description:"Ask the agent to describe the intent of each tool call before executing it. Unset: on in the interactive TUI, off in print, RPC, ACP, and SDK sessions"}},"tools.abortOnFabricatedResult":{type:"boolean",default:!0,ui:{tab:"tools",group:"Execution",label:"Abort On Fabricated Tool Result",description:"With in-band tool calls, stop the model immediately when it starts hallucinating a tool result mid-turn. Disable to let the model finish generating and discard the fabricated continuation instead."}},"tools.speculativeExecution.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Execution",label:"Experimental Speculative Execution",description:"Enable the discard-safe first slice: validated local reads through direct read calls and nested eval. Network requests, provider completions, and live filesystem writes are not part of this baseline."}},"tools.speculativeExecution.maxInFlight":{type:"number",default:2,ui:{tab:"tools",group:"Execution",label:"Speculative Execution Concurrency",description:"Maximum number of validated local reads allowed to run before normal dispatch.",options:[{value:"1",label:"1 operation"},{value:"2",label:"2 operations"},{value:"3",label:"3 operations"},{value:"4",label:"4 operations"}]}},"tools.maxTimeout":{type:"number",default:0,ui:{tab:"tools",group:"Execution",label:"Max Tool Timeout",description:"Maximum timeout in seconds the agent can set for any tool (0 = no limit)",options:[{value:"0",label:"No limit"},{value:"30",label:"30 seconds"},{value:"60",label:"60 seconds"},{value:"120",label:"120 seconds"},{value:"300",label:"5 minutes"},{value:"600",label:"10 minutes"}]}},"async.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Execution",label:"Async Execution",description:"Enable async bash commands and background task execution"}},"async.printWake":{type:"boolean",default:!1,ui:{tab:"tools",group:"Execution",label:"Wake Print Mode on Job Results",description:"In print mode (-p, --mode json), keep running after the last prompt while this run's background jobs are active, and start another turn in the same session with each job's result; exits once no job or result is pending. Off: print mode exits after its prompts and cancels running jobs"}},"async.widgets":{type:"boolean",default:!0,ui:{tab:"tools",group:"Execution",label:"Live Job Widgets",description:"Draw a live widget for each running background job (charts, bars, status grids derived from its output) in the wait card, the jobs pill and the jobs sheet, and caption long shell commands with one line on what they do. The `widget` model role (default: `smol`) writes one spec and at most one caption per job; updates need no further model calls"}},"tools.commands":{type:"boolean",default:!0,ui:{tab:"tools",group:"Discovery & MCP",label:"Tool Commands",description:"Mount rarely-used (discoverable) tools as bash commands with schema-derived `--help` instead of shipping their schemas on every request. Needs the bash tool: sessions without it keep every enabled tool top-level. Disable to expose every enabled tool top-level."}},"tools.commandDocs":{type:"enum",default:"catalog",values:["inline","builtins","catalog"],ui:{tab:"tools",group:"Discovery & MCP",label:"Tool Command Prompt Docs",description:"Choose which mounted commands get their `--help` text inlined in the system prompt. Built-ins keeps core tools inline while MCP and extension tools stay on demand.",options:[{value:"inline",label:"All Commands",description:"Inline help for every mounted command."},{value:"builtins",label:"Built-ins Only",description:"Inline built-in help; MCP and extension help on demand."},{value:"catalog",label:"Catalog Only",description:"List every command; run `--help` on demand."}]}},"tools.commandInline":{type:"array",default:[],ui:{tab:"tools",group:"Discovery & MCP",label:"Tool Command Inline Help",description:"When Tool Command Prompt Docs is Built-ins Only, also inline dynamic commands whose names match these glob patterns (for example mcp__context_mode_*). Catalog Only ignores this setting."}},"tools.commandNotices":{type:"boolean",default:!0,ui:{tab:"tools",group:"Discovery & MCP",label:"Tool Command Mount Notices",description:"Show a notice when MCP or extension tools are mounted or unmounted as commands; the model still learns of the change with its next prompt."}},"dev.autoqa":{type:"boolean",default:!0,ui:{tab:"tools",group:"Developer",label:"Auto QA",description:"Automated tool issue reporting (`report_issue`). On by default; the first report asks for consent, and denying it disables reporting until re-enabled explicitly"}},"dev.autoqaPush.endpoint":{type:"string",default:"https://qa.omp.sh/v1/grievances",ui:{tab:"tools",group:"Developer",label:"Auto QA Push Endpoint",description:"Full URL receiving Auto QA JSON reports (default https://qa.omp.sh/v1/grievances)"}},"lsp.enabled":{type:"boolean",default:!0,ui:{tab:"files",group:"LSP",label:"LSP",description:"Language-server integration: the lsp tool, diagnostics on write/edit, and format on write (--no-lsp disables for the run)"}},"lsp.lazy":{type:"boolean",default:!0,ui:{tab:"files",group:"LSP",label:"Lazy LSP Startup",description:"Start language servers on first use (lsp tool or editing a matching file type) instead of at session startup"}},"lsp.shared":{type:"boolean",default:!0,ui:{tab:"files",group:"LSP",label:"Shared Language Servers",description:"Start language servers through the per-project daemon broker. Each connection gets its own server. While another omp instance in the project is running, a released server stays warm and the next connection reuses it instead of cold-starting (falls back to private servers when unavailable)"}},"lsp.formatOnWrite":{type:"boolean",default:!1,ui:{tab:"files",group:"LSP",label:"Format on Write",description:"Automatically format code files using LSP after writing"}},"lsp.diagnosticsOnWrite":{type:"boolean",default:!0,ui:{tab:"files",group:"LSP",label:"Diagnostics on Write",description:"Return LSP diagnostics after writing code files"}},"lsp.diagnosticsOnEdit":{type:"boolean",default:!1,ui:{tab:"files",group:"LSP",label:"Diagnostics on Edit",description:"Return LSP diagnostics after editing code files"}},"lsp.diagnosticsDeduplicate":{type:"boolean",default:!0,ui:{tab:"files",group:"LSP",label:"Deduplicate Diagnostics",description:"Suppress post-edit LSP diagnostics already shown for a file; only surface new or changed ones"}},"lsp.requestTimeout":{type:"number",default:10,ui:{tab:"files",group:"LSP",label:"Request Timeout",description:"Seconds to wait for a language server's diagnostics, hover and other answers when the agent sets no timeout; late post-edit diagnostics wait at least this long. Raise it for servers that are slow on a cold start. The lsp tool's timeout argument can still raise or lower it per call",options:[{value:"10",label:"10 seconds",description:"Default"},{value:"20",label:"20 seconds"},{value:"30",label:"30 seconds"},{value:"60",label:"1 minute"},{value:"120",label:"2 minutes"},{value:"300",label:"5 minutes"}]}},"bash.enabled":{type:"boolean",default:!0,ui:{tab:"shell",group:"Bash",label:"Bash",description:"Enable the bash tool for shell command execution"}},"bash.allowCompoundCommands":{type:"boolean",default:!1,ui:{tab:"shell",group:"Bash",label:"Allow Compound Commands",description:"Evaluate literal && chains per command; unmatched commands use normal bash approval policy and mode"}},"bash.autoBackground.enabled":{type:"boolean",default:!0,ui:{tab:"shell",group:"Bash",label:"Bash Auto-Background",description:"Automatically background long-running bash commands and deliver the result later"}},"bash.gitGuard":{type:"boolean",default:!1,ui:{tab:"shell",group:"Bash",label:"Git Guard",description:"Refuse git commands that discard or move shared work in a repository's main checkout: stash, reset --hard or to another commit, and checkout/switch/restore outside a merge or rebase conflict. In a linked worktree they run, saving uncommitted changes they discard first"}},"bash.patterns":{type:"array",default:[],ui:{tab:"shell",group:"Bash",label:"Bash Approval Patterns",description:"Ordered bash command approval rules. Each item has match and approval fields; only '*' wildcards are supported."}},"bash.allowedEnvVars":{type:"array",default:[],ui:{tab:"shell",group:"Bash",label:"Bash Allowed Environment Variables",description:"Exact environment variable names allowed as leading KEY=VALUE prefixes when matching bash.patterns allow rules (no wildcards). Any value is accepted, so list only benign build/test variables; execution-altering variables (PATH, LD_PRELOAD, BASH_ENV, *_RUNNER, *_WRAPPER) allow arbitrary command execution."}},"bashInterceptor.enabled":{type:"boolean",default:!1,ui:{tab:"shell",group:"Bash",label:"Bash Interceptor",description:"Block shell commands that have dedicated tools"}},"bash.direnv":{type:"enum",default:"auto",values:["auto","off"],ui:{tab:"shell",group:"Bash",label:"direnv Auto-Load",description:"Auto-load a repo's direnv/devenv `.envrc` into the bash session so devenv tools and env vars are present without manual `direnv exec`. Honors direnv's allow list: an `.envrc` you haven't `direnv allow`ed is never executed"}},"bash.direnvLoadTimeoutMs":{type:"number",default:30000,ui:{tab:"shell",group:"Bash",label:"direnv Load Timeout (ms)",description:"Max wait for the first `direnv export` (a cold devenv shell can be slow); on timeout the session runs without the direnv env"}},"shellMinimizer.enabled":{type:"boolean",default:!0,ui:{tab:"shell",group:"Bash",label:"Shell Minimizer",description:"Compress verbose shell output (git, npm, cargo, etc.) before returning it to the agent"}},"shellMinimizer.sourceOutlineLevel":{type:"enum",default:"default",values:["default","aggressive"],ui:{tab:"shell",group:"Bash",label:"Shell Minimizer Source Outline",description:"Source outline mode for cat/read of source files: default or aggressive"}},"eval.py":{type:"boolean",default:!0,ui:{tab:"shell",group:"Eval & Runtimes",label:"Python Eval Backend",description:"Allow the eval tool to dispatch Python cells to the IPython kernel"}},"eval.js":{type:"boolean",default:!0,ui:{tab:"shell",group:"Eval & Runtimes",label:"JavaScript Eval Backend",description:"Allow the eval tool to dispatch JavaScript cells to the in-process runtime"}},"eval.autoProvision":{type:"boolean",default:!0,ui:{tab:"shell",group:"Eval & Runtimes",label:"Eval Environment Provisioning",description:"Automatically create the managed JavaScript eval package environment on first install"}},"eval.tools.enabled":{type:"boolean",default:!1,ui:{tab:"shell",group:"Eval & Runtimes",label:"Eval-Defined Tools",description:"Let eval cells define tools (@tool in Python, tool(fn) in JS) that task, agent(), and workpool() subagents can call"}},"eval.workpool.freshAgents":{type:"boolean",default:!1,ui:{tab:"shell",group:"Eval & Runtimes",label:"Fresh Workpool Agents",description:"Spawn a new subagent for every workpool item instead of reusing workers or batching queued items"}},"eval.autoBackground.enabled":{type:"boolean",default:!1,ui:{tab:"shell",group:"Eval & Runtimes",label:"Eval Auto-Background",description:"Automatically background long-running eval cells and deliver the result later"}},"python.kernelMode":{type:"enum",default:"session",values:["session","per-call"],ui:{tab:"shell",group:"Eval & Runtimes",label:"Python Kernel Mode",description:"Keep the IPython kernel alive across eval calls or start fresh each time"}},"python.interpreter":{type:"string",default:"",ui:{tab:"shell",group:"Eval & Runtimes",label:"Python Interpreter",description:"Optional path to an exact Python executable. When set, automatic Python runtime discovery is skipped."}},"task.isolation.enabled":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Isolation",label:"Allow Isolated Subagents",description:"Allow per-task isolation with `isolated: true`; tasks without it run in the shared checkout"}},"isolation.backend":{type:"enum",default:"auto",values:["auto","apfs","btrfs","zfs","reflink","overlayfs","projfs","block-clone","rcopy"],ui:{tab:"tasks",group:"Isolation",label:"Isolation Backend",description:"Backend used for subagent isolation and worktree cloning",options:[{value:"auto",label:"Auto",description:"Isolated subagents and `/wt` use ovnfs checkouts when ovnfs is found; otherwise (and for other worktrees) the PAL picks the best available backend"},{value:"apfs",label:"APFS",description:"macOS clonefile reflink (APFS)"},{value:"btrfs",label:"btrfs",description:"btrfs subvolume snapshot"},{value:"zfs",label:"ZFS",description:"ZFS snapshot + clone"},{value:"reflink",label:"Reflink",description:"Linux FICLONE per-file reflink"},{value:"overlayfs",label:"Overlayfs",description:"Linux kernel overlay (or fuse-overlayfs fallback)"},{value:"projfs",label:"ProjFS",description:"Windows Projected File System"},{value:"block-clone",label:"Block clone",description:"Windows FSCTL_DUPLICATE_EXTENTS_TO_FILE (NTFS/ReFS)"},{value:"rcopy",label:"Recursive copy",description:"git worktree if available, otherwise recursive copy"}]}},"worktree.clone":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Isolation",label:"Clone Checkout into Worktrees",description:"New worktrees from `github pr_checkout` and `git worktree add` in bash start as a copy-on-write clone of the current checkout so ignored build artifacts (node_modules, target) carry over; falls back to a plain checkout when the filesystem cannot clone"}},"worktree.cleanSource":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Isolation",label:"Clean Source Checkout on /wt",description:"When creating a worktree with `/wt`, reset tracked changes and remove untracked files from the original checkout after carrying them over"}},"worktree.onStart":{type:"enum",default:"off",values:["off","ask","create"],ui:{tab:"tasks",group:"Isolation",label:"Worktree on Start",description:"Whether fresh interactive sessions start in a new linked worktree",options:[{value:"off",label:"Off",description:"Start in the current checkout"},{value:"ask",label:"Ask",description:"Ask at session start"},{value:"create",label:"Create",description:"Always start in a new worktree on a `wt/*` branch"}]}},"worktree.onExit":{type:"enum",default:"keep",values:["keep","ask","remove","force"],ui:{tab:"tasks",group:"Isolation",label:"Worktree on Exit",description:"What to do on exit with worktrees created since omp started (on start or with `/wt`)",options:[{value:"keep",label:"Keep",description:"Leave worktrees in place"},{value:"ask",label:"Ask",description:"Ask on exit"},{value:"remove",label:"Remove",description:"Remove clean worktrees; ask when they have uncommitted changes or new commits. Gitignored files (e.g. `.env`) are deleted too"},{value:"force",label:"Force Remove",description:"Remove every worktree without asking, even with uncommitted changes. Uncommitted work, gitignored files (e.g. `.env`), and commits only on a detached HEAD are lost; new commits on the branch are kept"}]}},"task.isolation.apply":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Isolation",label:"Apply Isolated Changes",description:"Automatically apply successful isolated task changes to the parent checkout; disable to retain patch or branch artifacts"}},"ovnfs.path":{type:"string",ui:{tab:"tasks",group:"Isolation",label:"ovnfs Binary",description:"ovnfs executable; unset looks for `ovnfs` on PATH. When it is found, ovnfs checkouts (copy-on-write views of a folder, ready in about a second at any size) serve every separate copy: the system prompt tells agents to open checkouts instead of git worktrees or copies, and with `isolation.backend` on auto, isolated subagents (when allowed) run in checkouts instead of native clones and `/wt` moves the session into a checkout instead of a linked worktree"}},"task.isolation.merge":{type:"enum",default:"patch",values:["patch","branch"],ui:{tab:"tasks",group:"Isolation",label:"Isolation Merge Strategy",description:"How isolated task changes are integrated (patch apply or branch merge)",options:[{value:"patch",label:"Patch",description:"Combine diffs and git apply"},{value:"branch",label:"Branch",description:"Commit per task, merge with --no-ff"}]}},"task.isolation.commits":{type:"enum",default:"generic",values:["generic","ai"],ui:{tab:"tasks",group:"Isolation",label:"Isolation Commit Style",description:"Commit message style for nested repo changes (generic or AI-generated)",options:[{value:"generic",label:"Generic",description:"Static commit message"},{value:"ai",label:"AI",description:"AI-generated commit message from diff"}]}},"worktree.base":{type:"string",ui:{tab:"tasks",group:"Isolation",label:"Worktree Base Directory",description:"Base directory for agent-managed worktrees — task-isolation copies, `github` PR checkouts, and `omp worktree` cleanup all live here. Unset uses ~/.omp/wt. Must be an absolute or ~-relative path; relative paths are ignored. The OMP_WORKTREE_DIR env var overrides this."}},"task.eager":{type:"enum",default:"default",values:["default","preferred","always"],ui:{tab:"tasks",group:"Subagents",label:"Prefer Task Delegation",description:"How strongly to push the main agent to delegate work; subagents keep the model's own policy",options:[{value:"default",label:"Default",description:"Uses the selected model's policy; some models require an explicit delegation request"},{value:"preferred",label:"Preferred",description:"Adds delegation guidance to the system prompt"},{value:"always",label:"Always",description:"Prompt guidance plus a first-turn delegation reminder"}]}},"task.autoParallel":{type:"enum",default:"off",values:["off","suggest","on"],ui:{tab:"tasks",group:"Subagents",label:"Auto Parallel",description:"Ask the native judge resolved through the 'judge' role which parts of each new top-level prompt can run concurrently. Needs a native judge and the task tool; without them nothing is judged.",options:[{value:"off",label:"Off",description:"Never split prompts"},{value:"suggest",label:"Suggest",description:"Judge each prompt and report the split without acting on it"},{value:"on",label:"On",description:"When a prompt splits into independent subtasks, tell the agent to delegate them in parallel"}]}},"task.batch":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Subagents",label:"Batch Task Calls",description:"Switch the task tool to its batch shape: one call carries { context, tasks[] } — one subagent per item, with an optional per-item agent (defaulting to the session spawn-policy agent), per-item isolation, and a required shared context prepended to every assignment. With async.enabled=true, each spawn runs as an independent background agent with the normal idle/parked lifecycle; otherwise the call blocks for merged results. Disable to restore the flat single-spawn schema."}},"task.steps":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Subagents",label:"Sequential Task Steps",description:"Spawns take ordered `steps` instead of one `task`: the subagent gets the first step, then each next one once it finishes the previous; past 4 steps, earlier messages carry two or more. The last step's result is the task's result."}},"task.structured":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Subagents",label:"Structured Task Results",description:"Expose outputSchema/schemaMode on the task tool and honor agent output schemas; a subagent with a schema returns its result through the yield tool, validated against it. Off: task subagents ignore schemas, except agents whose definition sets structured: true. A subagent without a schema has no yield tool and returns its final message. Eval agent()/workpool spawns always honor schemas."}},"task.speculativeLaunch":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Subagents",label:"Speculative Task Launch",description:"Start each batch subagent as soon as its tasks[] item finishes streaming instead of waiting for the whole task call. Launched agents are aborted if the finished call fails validation, is blocked, or its arguments change. Requires auto-allowed task approval and no extension tool lifecycle handlers."}},"task.enableEffort":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Subagents",label:"Per-Task Effort",description:"Expose the optional effort parameter on task spawns, allowing callers to override each subagent's thinking level"}},"task.perCallModel":{type:"enum",default:"off",values:["off","eval","on"],ui:{tab:"tasks",group:"Subagents",label:"Per-Call Model",description:"Whether a subagent call may pick its model with one exact provider/model-id[@upstream][:level] selector. An @upstream pin is part of the model identity and is supported only by aggregators. Only models the configuration already routes to are accepted. Project settings can turn it off but not on, and never approve a model.",options:[{value:"off",label:"Off",description:"Reject `model` on task items and eval agent()/workpool()"},{value:"eval",label:"Eval only",description:"Accept `model` in eval agent() and workpool() only"},{value:"on",label:"On",description:"Accept `model` on task items and in eval agent()/workpool()"}]}},"task.perCallModelAllow":{type:"array",default:[],ui:{tab:"tasks",group:"Subagents",label:"Per-Call Model Allowlist",editor:"json",condition:"perCallModelAllowNotProject",description:"Exact selectors: `provider/model-id`, including `@upstream` only for a pinned OpenRouter/Vercel route (e.g. `openrouter/x@y`). When set, a per-call model must also be listed here. Empty: every model the configuration grants. A project list can only narrow this one."}},"task.maxConcurrency":{type:"number",default:32,ui:{tab:"tasks",group:"Subagents",label:"Max Concurrent Tasks",description:"Maximum number of subagents running concurrently",options:[{value:"0",label:"Unlimited"},{value:"1",label:"1 task"},{value:"2",label:"2 tasks"},{value:"4",label:"4 tasks"},{value:"8",label:"8 tasks"},{value:"16",label:"16 tasks"},{value:"32",label:"32 tasks"},{value:"64",label:"64 tasks"}]}},"task.workerThreads":{type:"number",default:4,ui:{tab:"tasks",group:"Subagents",label:"Subagent Worker Threads",description:"Maximum worker threads for subagents. Up to 8 concurrent subagents run on the main thread; at 9 one worker joins, and one more each time the count doubles (18, 36, 72). Workers stop a minute after no subagent is live in them; 0 keeps every subagent on the main thread",options:[{value:"0",label:"Main thread only"},{value:"1",label:"Up to 1 worker"},{value:"2",label:"Up to 2 workers"},{value:"4",label:"Up to 4 workers",description:"Default"},{value:"8",label:"Up to 8 workers"}]}},"task.enableLsp":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Subagents",label:"LSP Edit Checks in Subagents",description:"Run LSP formatting and diagnostics on subagent edits. Off by default to keep subagents cheap; the lsp tool stays available to them either way."}},"task.crossInstance":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Subagents",label:"Cross-Instance Agent Messaging",description:"Let other omp instances in this folder read agent outputs and send messages that can wake agents"}},"task.maxRecursionDepth":{type:"number",default:2,ui:{tab:"tasks",group:"Subagents",label:"Max Task Recursion",description:"How many levels deep subagents can spawn their own subagents",options:[{value:"-1",label:"Unlimited"},{value:"0",label:"None"},{value:"1",label:"Single"},{value:"2",label:"Double"},{value:"3",label:"Triple"}]}},"task.maxRuntimeMs":{type:"number",default:0,ui:{tab:"tasks",group:"Subagents",label:"Max Subagent Runtime",description:"Hard wall-clock limit per subagent (ms). 0 disables it. Defense-in-depth against provider-side stream hangs that escape the inference-layer watchdog; triggers a normal subagent abort with a 'timed out' reason.",options:[{value:"0",label:"Unlimited",description:"Default"},{value:"300000",label:"5 minutes"},{value:"900000",label:"15 minutes"},{value:"1800000",label:"30 minutes"},{value:"3600000",label:"1 hour"}]}},"task.completionProbe":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Subagents",label:"Subagent Completion Probe",description:"Ask a working subagent, through a cached side request like /btw, to estimate how complete its task is: after 2, 5, 10 and 30 more minutes, then hourly. The estimate shows next to the subagent in wait and task views. Only subagents spawned by the main agent of an interactive session are asked; print, RPC, ACP and SDK runs never probe."}},"task.agentIdleTtlMs":{type:"number",default:420000,ui:{tab:"tasks",group:"Subagents",label:"Agent Idle TTL",description:"How long an idle subagent stays live in memory before being parked to disk (ms). Parked agents are revived automatically when messaged or resumed. 0 keeps idle agents live until exit."}},"task.softRequestBudget":{type:"number",default:200,ui:{tab:"tasks",group:"Subagents",label:"Soft Subagent Request Budget",description:"Soft per-subagent request budget (assistant requests per run). Crossing it injects a wrap-up steering notice (see task.softRequestBudgetNotice); at 1.5x the budget the run is force-stopped and the agent must hand back its partial findings. 0 disables the guard. Bundled scout/sonic agents cap out at a lower built-in budget, so a value below that cap still applies to them. A task.agentSoftRequestBudget entry replaces this budget for the agent it names.",options:[{value:"0",label:"Disabled"},{value:"90",label:"90 requests"},{value:"150",label:"150 requests"},{value:"200",label:"200 requests",description:"Default"}]}},"task.softRequestBudgetNotice":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Subagents",label:"Soft Request Budget Notice",description:"Inject one steering notice when a subagent crosses its soft request budget, asking it to wrap up before the 1.5x forced-yield stop."}},"task.maxEffort":{type:"enum",default:"max",values:["minimal","low","medium","high","xhigh","max"],ui:{tab:"tasks",group:"Subagents",label:"Maximum Per-Spawn Effort",description:"Maximum reasoning effort allowed for the task tool's per-spawn effort hint or a per-call model. An explicit `:level` is clamped to the highest supported effort at or below this ceiling, and an omitted `:level` inherits the agent's thinking level capped at this value; cold revival re-applies the cap. Unset, `:inherit` and `:off` keep their existing meaning. A per-call model must support an effort at or below this ceiling; the default preserves the model's full range.",options:[{value:"minimal",label:"min",description:"Very brief reasoning (~1k tokens)"},{value:"low",label:"low",description:"Light reasoning (~2k tokens)"},{value:"medium",label:"medium",description:"Moderate reasoning (~8k tokens)"},{value:"high",label:"high",description:"Deep reasoning (~16k tokens)"},{value:"xhigh",label:"xhigh",description:"Extended reasoning (~32k tokens)"},{value:"max",label:"max",description:"Maximum reasoning the model supports"}]}},"task.prewalk":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Subagents",label:"Generic Task Prewalk",description:"Arm prewalk for the bundled generic `task` subagent: it starts on its resolved model, plans and begins the implementation, then hands off to the 'smol' role at its first edit/write. Per-agent overrides (task.agentPrewalk, configured from the /agents hub) and user agent `prewalk` frontmatter apply regardless of this toggle."}},"task.showResolvedModelBadge":{type:"boolean",default:!1,ui:{tab:"appearance",group:"Display",label:"Show Resolved Model Badge",description:"Display the actual model ID used by each subagent in the task widget status line"}},"plan.enabled":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Modes",label:"Plan Mode",description:"Enable plan mode for read-only exploration and planning before execution"}},"plan.defaultOnStartup":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Modes",label:"Start in Plan Mode",description:"Automatically enter plan mode at the start of every new session",condition:"planModeEnabled"}},"plan.autosave":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Modes",label:"Autosave Plans",description:"Automatically save approved plans to disk when plan mode completes",condition:"planModeEnabled"}},"plan.autosaveDir":{type:"string",ui:{tab:"tasks",group:"Modes",label:"Autosave Directory",description:"Directory for autosaved plans. Supports ~, absolute, and cwd-relative paths. Empty uses <project>/.omp/plans/.",condition:"planAutosaveEnabled"}},"goal.enabled":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Modes",label:"Goal Mode",description:"Enable per-session goal mode and the hidden goal tool"}},"goal.statusInFooter":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Modes",label:"Goal Status in Footer",description:"Show token budget alongside the goal indicator in the status line"}},"goal.continuationModes":{type:"array",default:["interactive"],ui:{tab:"tasks",group:"Modes",label:"Goal Continuation Modes",description:'Run modes where active goals may auto-continue between turns ("interactive", "rpc")'}},"title.icons":{type:"enum",default:"nf+emoji",values:["nf+emoji","emoji","boring"],ui:{tab:"appearance",group:"Display",label:"Title Icons",description:"Icon and short code that head new generated or /rename session titles",options:[{value:"nf+emoji",label:"Nerd Font + Emoji",description:"Nerd Font glyph where the Nerd Font symbol preset renders it, else the emoji (default)"},{value:"emoji",label:"Emoji",description:"Always the emoji"},{value:"boring",label:"Boring",description:"Plain title: no icon or code"}]}},"title.generator":{type:"enum",default:"fork",values:["fork","tiny"],ui:{tab:"tasks",group:"Modes",label:"Title Generator",description:"What names an untitled session from the user's messages",options:[{value:"fork",label:"Fork",description:"A side turn of the reply on the session's model: reads its prompt cache, adds the card icon (default)"},{value:"tiny",label:"Tiny",description:"The title model role only; plain titles without a card"}]}},"title.refreshOnReplan":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Modes",label:"Refresh Title on Replan",description:"Refresh generated session titles after todo init replans unless the title was set by the user"}},"title.refreshAfterPrompts":{type:"number",default:0,ui:{tab:"tasks",group:"Modes",label:"Refresh Title After Prompts",description:"Every this many operator prompts, ask the judge model whether a generated session title still fits the conversation, and regenerate it if not",options:[{value:"0",label:"Off",description:"Default"},{value:"1",label:"Every prompt"},{value:"3",label:"Every 3 prompts"},{value:"5",label:"Every 5 prompts"},{value:"10",label:"Every 10 prompts"}]}},"skills.registryUrl":{type:"string",default:"https://skills.omp.sh",ui:{tab:"interaction",group:"Skills",label:"Skill Registry",description:"Skillshare registry used by `omp skill` to install, search, and publish skills (https://host[:port])"}},"skills.enableSkillCommands":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Commands & Skills",label:"Skill Commands",description:"Register skills as /skill:name commands"}},"commands.enableClaudeUser":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Commands & Skills",label:"Claude User Commands",description:"Load commands from ~/.claude/commands/"}},"commands.enableClaudeProject":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Commands & Skills",label:"Claude Project Commands",description:"Load commands from .claude/commands/"}},"commands.enableOpencodeUser":{type:"boolean",default:!1,ui:{tab:"tasks",group:"Commands & Skills",label:"OpenCode User Commands",description:"Load commands from ~/.config/opencode/commands/"}},"commands.enableOpencodeProject":{type:"boolean",default:!0,ui:{tab:"tasks",group:"Commands & Skills",label:"OpenCode Project Commands",description:"Load commands from .opencode/commands/"}},"extensionHandlers.toolCallTimeoutMs":{type:"number",default:30000,ui:{tab:"tools",group:"Extensions",label:"Tool Call Handler Timeout (ms)",description:"Positive finite active-work timeout for extension tool_call handlers; invalid values use 30000ms, and time awaiting OMP-owned dialogs does not count"}},"extensionHandlers.modeControl":{type:"boolean",default:!0,ui:{tab:"tools",group:"Extensions",label:"Extension Mode Control",description:"Let extensions enter and exit plan, vibe, goal, and loop modes via ctx.sessionModes.set(); reading mode state stays available"}},"extensionRenderers.assistantText":{type:"boolean",default:!1,ui:{tab:"tools",group:"Extensions",label:"Extension Reply Renderers",description:"Let extensions change how assistant replies are drawn, redraw a reply in place, and receive clicks on their own links; the session, exports and model context keep the reply as written"}},"extensionRenderers.transcriptPresenters":{type:"boolean",default:!1,ui:{tab:"tools",group:"Extensions",label:"Extension Transcript Presenters",description:"Let extensions draw transcript blocks such as tool calls in full, as one compact row, or hidden; the session, exports and model context are unchanged"}},"exa.enabled":{type:"boolean",default:!0,ui:{tab:"providers",group:"Services",label:"Exa",description:"Enable the Exa web search provider"}},"exa.searchDelayMs":{type:"number",default:1000,ui:{tab:"providers",group:"Services",label:"Exa Search Delay",description:"Minimum delay between Exa web search requests in milliseconds; set 0 to disable pacing"}},"searxng.endpoint":{type:"string",ui:{tab:"providers",group:"Services",label:"SearXNG Endpoint",description:"Base URL of a self-hosted SearXNG instance used for web search"}},"browser.enabled":{type:"boolean",default:!0,ui:{tab:"tools",group:"Available Tools",label:"Browser",description:"Enable the browser eval prelude for scripted browser automation"}},"browser.cdpUrl":{type:"string",ui:{tab:"tools",group:"Grep & Browser",label:"Browser CDP URL",description:"Default HTTP CDP discovery endpoint (for example http://127.0.0.1:9222) to attach to instead of launching a browser. An explicit app on the tool call takes precedence."}},"browser.relay":{type:"boolean",default:!1,ui:{tab:"tools",group:"Grep & Browser",label:"Browser Relay",description:'Drive your own Chrome tabs through the omp browser relay. Install the extension once (`omp browser-relay install`); its native host serves the relay while Chrome runs. Takes precedence over Browser CDP URL; set PI_BROWSER_RELAY=0 or PI_BROWSER_RELAY=1 to override, or PI_BROWSER_RELAY=only to make it the only browser (sessions started from the extension\'s side panel). Subagents skip it unless an open passes app: "relay" or the relay is the only browser.'}},"browser.relayUrl":{type:"string",ui:{tab:"tools",group:"Grep & Browser",label:"Browser Relay URL",description:"Override local browser relay discovery, for example to reach a relay forwarded from another machine."}},"browser.headless":{type:"boolean",default:!0,ui:{tab:"tools",group:"Grep & Browser",label:"Headless Browser",description:"Run the browser without a window (disable to show it). omp's WebKit tabs gain or lose their windows at once where the engine ships its viewer (macOS); elsewhere a visible browser is Chromium, launched in the new mode by the next open."}},"browser.cmux":{type:"boolean",default:!0,ui:{tab:"tools",group:"Grep & Browser",label:"cmux Browser",description:"Use cmux WKWebView surfaces for browser automation when a cmux socket is available (not for subagents). Set PI_BROWSER_CMUX=0 or PI_BROWSER_CMUX=1 to override."}},"browser.tern":{type:"boolean",default:!0,ui:{tab:"tools",group:"Grep & Browser",label:"Tern Browser",description:`Inside a Tern pane, open browser tabs as picture-in-pictures over omp's pane (native web view) instead of omp's own headless browser; falls back to that browser when no Tern window can host them. Subagents skip it unless an open passes app: "tern". An explicit app, the relay and Browser CDP URL take precedence; app "own" opts one open out. Set PI_BROWSER_TERN=0 or PI_BROWSER_TERN=1 to override.`}},"browser.webkit":{type:"boolean",default:!0,ui:{tab:"tools",group:"Grep & Browser",label:"WebKit Browser",description:`Open browser tabs in omp's own headless WebKit engine instead of managed Chromium when the engine is installed (omp downloads it to ~/.o2/lib/abkit before Chrome for Testing when no browser is installed; see Browser WebKit Path). Chromium still opens a visible browser where the engine ships no viewer, and tabs the engine fails to start; an explicit app, the relay, Browser CDP URL, Tern and cmux take precedence; app "chromium" opts one open out. Set PI_BROWSER_WEBKIT=0 or PI_BROWSER_WEBKIT=1 to override.`}},"browser.webkitPath":{type:"string",ui:{tab:"tools",group:"Grep & Browser",label:"Browser WebKit Path",description:"omp's WebKit engine: its host executable, or an ABKit engine directory (which holds it as ABHost; ABHost.exe on Windows). If unset, omp runs the installed engine, ~/.o2/lib/abkit/ABHost (ABHost.exe on Windows). Supports ~. PI_BROWSER_WEBKIT_PATH overrides it."}},"browser.freezeOnTurnEnd":{type:"boolean",default:!0,ui:{tab:"tools",group:"Grep & Browser",label:"Freeze Browser Tabs On Turn End",description:"Freeze OMP-owned headless Chromium tabs when a turn settles so animated pages stop burning CPU/GPU while idle (WebKit tabs draw nothing unless asked). Tabs unfreeze automatically on next use; pass persist:true on open to opt a tab out."}},"browser.idleCloseSec":{type:"number",default:1800,ui:{tab:"tools",group:"Grep & Browser",label:"Browser Idle Close Timeout",description:"Close OMP-owned headless browser tabs and Tern browser picture-in-pictures idle longer than this many seconds (0 = never; session dispose still reaps). Never touches relay/CDP/spawned browsers or other sessions' tabs.",options:[{value:"0",label:"Never"},{value:"900",label:"15 minutes"},{value:"1800",label:"30 minutes"},{value:"3600",label:"1 hour"}]}},"browser.screenshotDir":{type:"string",ui:{tab:"tools",group:"Grep & Browser",label:"Screenshot Directory",description:"Directory to save screenshots. If unset, screenshots go to a temp file. Supports ~. Examples: ~/Downloads, ~/Desktop, /sdcard/Download (Android)"}},"disassembler.backend":{type:"enum",default:"auto",values:["auto","ghidra","ida","binja","none"],ui:{tab:"tools",group:"Available Tools",label:"Disassembler",description:"Backend for analysis selectors in read and eval's dsm namespace; bare executable reads show metadata only. Auto uses IDA Pro when installed, else Ghidra (downloaded on first analysis); Binary Ninja is used only when selected",options:[{value:"auto",label:"Auto",description:"IDA Pro when an install with idalib is found, otherwise Ghidra; never Binary Ninja"},{value:"ghidra",label:"Ghidra",description:"Ghidra via PyGhidra; provisions Ghidra 12.2, a JDK 25 and PyGhidra on first analysis when not installed"},{value:"ida",label:"IDA Pro",description:"IDA Pro via idalib; analysis disabled when no install is found"},{value:"binja",label:"Binary Ninja",description:"Binary Ninja via its headless Python API (needs a headless-capable licence); never chosen by Auto; analysis disabled when no install is found"},{value:"none",label:"None",description:"Executable metadata only; analysis disabled"}]}},"disassembler.maxOpen":{type:"number",default:4,ui:{tab:"tools",group:"Disassembler",label:"Max Open Databases",description:"Most databases open at once per project (each is a disasm unit in omp ps, labelled with its backend and binary); opening another evicts an unreferenced idle one. Close retained dsm handles when done",options:[{value:"2",label:"2"},{value:"4",label:"4"},{value:"8",label:"8"},{value:"16",label:"16"}]}},"disassembler.idleCloseSec":{type:"number",default:900,ui:{tab:"tools",group:"Disassembler",label:"Idle Close Timeout",description:"Save and close unreferenced databases idle longer than this many seconds (0 = never); retained dsm handles stay open. The exec namespace resets on reopen",options:[{value:"0",label:"Never"},{value:"300",label:"5 minutes"},{value:"900",label:"15 minutes"},{value:"1800",label:"30 minutes"},{value:"3600",label:"1 hour"}]}},"ida.python":{type:"string",default:"",ui:{tab:"tools",group:"IDA Pro",label:"IDA Python",description:"Python interpreter that can import ida_domain and idapro; empty auto-detects"}},"ida.installDir":{type:"string",default:"",ui:{tab:"tools",group:"IDA Pro",label:"IDA Install Dir",description:"Directory containing libidalib, exported as IDADIR; empty auto-detects ($IDADIR, ida-config.json, standard install paths)"}},"ghidra.installDir":{type:"string",default:"",ui:{tab:"tools",group:"Ghidra",label:"Ghidra Install Dir",description:"Ghidra 12+ install directory (contains Ghidra/application.properties); empty uses $GHIDRA_INSTALL_DIR, Homebrew, else a managed download under ~/.omp/ghidra"}},"ghidra.python":{type:"string",default:"",ui:{tab:"tools",group:"Ghidra",label:"Ghidra Python",description:"Python interpreter that can import pyghidra; empty uses a managed venv built from the install's bundled wheels"}},"binja.installDir":{type:"string",default:"",ui:{tab:"tools",group:"Binary Ninja",label:"Binary Ninja Install Dir",description:"Directory containing the Binary Ninja core library, or the macOS .app bundle; empty uses $BN_INSTALL_DIR, the lastrun file in the Binary Ninja user folder, then the default install locations"}},"binja.python":{type:"string",default:"",ui:{tab:"tools",group:"Binary Ninja",label:"Binary Ninja Python",description:"Python 3 interpreter that can load the Binary Ninja API from the install's python directory; empty auto-detects"}},"mcp.enableProjectConfig":{type:"boolean",default:!0,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Project Config",description:"Load .mcp.json/mcp.json from project root"}},"mcp.startupTimeoutMs":{type:"number",default:250,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Startup Window",description:"Wait this many milliseconds for initial MCP tool discovery; 0 waits until connections settle"}},"mcp.shared":{type:"boolean",default:!0,ui:{tab:"tools",group:"Discovery & MCP",label:"Shared MCP Servers",description:"Run MCP servers through the daemon so every omp instance shares one process per server and a cached tool catalog. Servers that hold a session keep one process per instance (falls back to private servers when unavailable)"}},"mcp.idleStopMinutes":{type:"number",default:5,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Idle Stop",description:"Stop a shared MCP server after this many minutes without use; it restarts on the next request"}},"mcp.evalNamespaces":{type:"boolean",default:!1,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Eval Namespaces",description:"Expose each MCP server as an eval global (github.create_issue(...)) instead of top-level tools or tool commands"}},"mcp.builtinTransforms":{type:"boolean",default:!0,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Built-in Transforms",description:"Skip recognized MCP servers that omp's own tools replace (Codex's node_repl while eval runs JavaScript)"}},"mcp.renderMarkdownResults":{type:"boolean",default:!0,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Markdown Results",description:"Render non-JSON MCP text results as Markdown in the transcript"}},"mcp.notifications":{type:"boolean",default:!1,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Update Injection",description:"Inject MCP resource updates into the agent conversation"}},"mcp.notificationDebounceMs":{type:"number",default:500,ui:{tab:"tools",group:"Discovery & MCP",label:"MCP Notification Debounce",description:"Debounce window in milliseconds for MCP resource updates before injecting them into the conversation"}},"images.urls.enabled":{type:"boolean",default:!1,ui:{tab:"model",group:"Vision",label:"Serve Images as URLs",description:"Publish outgoing images through the configured backend chain and send URL-fetching providers short URLs instead of inline base64. Falls back to inline automatically when every backend or a provider fetch fails"}},"images.urls.backends":{type:"array",default:["provider-files","tailscale","cloudflared","litterbox"],ui:{tab:"model",group:"Vision",label:"Image URL Backends",description:"Ordered destinations tried when publishing images for provider access",options:[{value:"imgur",label:"Imgur",description:"Uploads require either an Imgur access token or client ID."},{value:"imageshack",label:"ImageShack",description:"The API requires a paid subscription."},{value:"flickr",label:"Flickr",description:"image-host"},{value:"chevereto",label:"Chevereto",description:"self-hosted"},{value:"vgyme",label:"vgy.me",description:"image-host"},{value:"dropbox",label:"Dropbox",description:"cloud-files"},{value:"ftp",label:"FTP / FTPS / SFTP",description:"file-transfer"},{value:"onedrive",label:"OneDrive",description:"cloud-files"},{value:"google-drive",label:"Google Drive",description:"cloud-files"},{value:"puush",label:"puush-compatible endpoint",description:"The public service is defunct; a replacement endpoint is required."},{value:"box",label:"Box",description:"cloud-files"},{value:"amazon-s3",label:"Amazon S3",description:"s3"},{value:"google-cloud-storage",label:"Google Cloud Storage",description:"object-storage"},{value:"azure-storage",label:"Azure Blob Storage",description:"object-storage"},{value:"backblaze-b2",label:"Backblaze B2",description:"Configure either native B2 application keys or S3-compatible access keys."},{value:"owncloud",label:"ownCloud / Nextcloud",description:"webdav"},{value:"mediafire",label:"MediaFire-compatible endpoint",description:"The public API is deprecated; a replacement endpoint is required."},{value:"sendspace",label:"SendSpace-compatible endpoint",description:"The public discovery API is deprecated; a replacement endpoint is required."},{value:"localhostr",label:"Hostr-compatible endpoint",description:"The public service is offline; a replacement endpoint is required."},{value:"lambda",label:"Lambda-compatible endpoint",description:"The public service is offline; a replacement endpoint is required."},{value:"pomf",label:"Pomf",description:"pomf"},{value:"uguu",label:"Uguu",description:"Public uploads expire after approximately three hours."},{value:"seafile",label:"Seafile",description:"cloud-files"},{value:"s-ul",label:"s-ul",description:"file-host"},{value:"lobfile",label:"LobFile-compatible endpoint",description:"The public service is offline; a replacement endpoint is required."},{value:"transfer-sh",label:"transfer.sh-compatible endpoint",description:"The defunct public endpoint is blocked; a self-hosted replacement is required."},{value:"plik",label:"Plik",description:"self-hosted"},{value:"shared-folder",label:"Shared folder",description:"filesystem"},{value:"catbox",label:"Catbox",description:"anonymous-host"},{value:"litterbox",label:"Litterbox",description:"Uploads are temporary."},{value:"0x0",label:"0x0.st",description:"Public uploads expire after a retention window determined by file size."},{value:"tmpfiles",label:"tmpfiles.org",description:"Public uploads are temporary."},{value:"discord",label:"Discord",description:"messaging"},{value:"provider-files",label:"Model provider files",description:"Provider file references are API-local rather than public image URLs."},{value:"direct",label:"Direct public URL",description:"local-serving"},{value:"cloudflared",label:"Cloudflare quick tunnel",description:"tunnel"},{value:"ngrok",label:"ngrok",description:"tunnel"},{value:"tailscale",label:"Tailscale Funnel",description:"tunnel"},{value:"ssh",label:"SSH reverse tunnel",description:"tunnel"},{value:"command",label:"Uploader command",description:"external-command"},{value:"localhost-run",label:"localhost.run",description:"tunnel"},{value:"pinggy",label:"Pinggy",description:"tunnel"},{value:"devtunnel",label:"Microsoft dev tunnel",description:"The devtunnel CLI must be logged in locally."},{value:"zrok",label:"zrok",description:"The local zrok environment must be enabled."},{value:"bore",label:"bore",description:"tunnel"},{value:"named-cloudflared",label:"Named Cloudflare Tunnel",description:"tunnel"},{value:"r2",label:"Cloudflare R2",description:"s3"},{value:"tigris",label:"Tigris",description:"s3"},{value:"minio",label:"MinIO",description:"s3"},{value:"garage",label:"Garage",description:"s3"}],ordered:!0}},"images.urls.command":{type:"string",ui:{tab:"model",group:"Vision",label:"Image Upload Command",description:"Argv template for the command backend; {file} is the image path, {mime}/{ext} optional. The last URL printed on stdout is used (e.g. pasta -b -f {file})"}},"images.urls.publicBaseUrl":{type:"string",ui:{tab:"model",group:"Vision",label:"Image URL Public Base",description:"Externally reachable base URL fronting the blob server (required for ssh, optional for direct)"}},"images.urls.ttlHours":{type:"number",default:72,ui:{tab:"model",group:"Vision",label:"Image URL Lifetime (hours)",description:"Serving window for locally hosted image URLs, measured from the last time a conversation sent them; resuming a conversation re-arms the window at the same link. 0 keeps links alive while the broker runs"}},"images.urls.bindHost":{type:"string",default:"127.0.0.1",ui:{tab:"model",group:"Vision",label:"Image URL Bind Host",description:"Host the blob server binds to; loopback for tunnels, 0.0.0.0 for direct serving"}},"images.urls.sshTarget":{type:"string",ui:{tab:"model",group:"Vision",label:"Image URL SSH Target",description:"user@host destination for the ssh reverse forward"}},"images.urls.sshRemotePort":{type:"number",default:8787,ui:{tab:"model",group:"Vision",label:"Image URL SSH Remote Port",description:"Remote listen port of the ssh reverse forward that your web server proxies to"}},"secrets.enabled":{type:"boolean",default:!1,ui:{tab:"providers",group:"Privacy",label:"Hide Secrets",description:"Obfuscate configured secrets and redact credential-shaped tokens before sending to AI providers"}},"stt.enabled":{type:"boolean",default:!1,ui:{tab:"interaction",group:"Speech",label:"Speech-to-Text",description:"Enable speech-to-text input via microphone"}},"stt.submitTrigger":{type:"enum",default:"never",values:["never","release","release-complete","say-submit"],ui:{tab:"interaction",group:"Speech",label:"Speech-to-Text Submit Trigger",description:"Choose when speech dictation automatically submits: Never, Release (2+ words), Release with complete sentence, or When I Say Submit.",options:[{value:"never",label:"Never",description:"Never automatically submit; insert dictation and remain in editor."},{value:"release",label:"Release",description:"Submit on release if the utterance has 2+ words to avoid accidental sends."},{value:"release-complete",label:"Release with complete sentence",description:"Submit on release if the utterance ends with sentence-terminal punctuation (. ? ! etc.)."},{value:"say-submit",label:"When I Say Submit",description:"Submit if the utterance ends with a word containing 'submit' (strips that word before submitting)."}]}},"collab.relayUrl":{type:"string",default:"wss://my.omp.sh",ui:{tab:"interaction",group:"Collab",label:"Relay URL",description:"Relay used by /collab (wss://host[:port])"}},"collab.webUrl":{type:"string",default:"",ui:{tab:"interaction",group:"Collab",label:"Web UI URL",description:"Browser UI used by /collab links; empty derives from collab.relayUrl; explicit http:// is localhost-only"}},"collab.displayName":{type:"string",default:"",ui:{tab:"interaction",group:"Collab",label:"Display Name",description:"Name shown to other collab participants (default: OS username)"}},"collab.autoStart":{type:"enum",default:"off",values:["off","view","control"],ui:{tab:"interaction",group:"Collab",label:"Auto Start",description:"Host every interactive session via collab.relayUrl as it starts and publish it to the local registry (omp collab list); rooms rotate on session switch",options:[{value:"off",label:"Off",description:"Share only when /collab is run"},{value:"view",label:"View",description:"Auto-host; the registry hands out view-only links (omp collab link --view)"},{value:"control",label:"Control",description:"Auto-host; the registry hands out control links that can prompt the session"}]}},"share.serverUrl":{type:"string",default:"https://my.omp.sh/s",ui:{tab:"interaction",group:"Collab",label:"Share Server",description:"Share viewer/upload base used by /share (encrypted blob upload + viewer; links are <base>/<id>#<key>)"}},"share.store":{type:"enum",default:"blob",values:["blob","gist"],ui:{tab:"interaction",group:"Collab",label:"Share Store",description:"Where /share uploads the encrypted session blob",options:[{value:"blob",label:"Encrypted Blob",description:"Upload to the share server (no GitHub account needed; avoids gist API rate limits)"},{value:"gist",label:"GitHub Gist",description:"Push to a secret gist (needs authenticated gh), falling back to the share server"}]}},"share.redactSecrets":{type:"boolean",default:!0,ui:{tab:"interaction",group:"Collab",label:"Share Secret Redaction",description:"Run the secret obfuscator over /share snapshots before upload (uses the secrets.* config)"}},"stream.serverUrl":{type:"string",default:"https://live.omp.sh",ui:{tab:"interaction",group:"Stream",label:"Stream Server",description:"Live stream server used by `omp stream` (https://host[:port]); viewers watch at <base>/<your Stencil username>"}},"stream.redactPatterns":{type:"array",default:[],ui:{tab:"interaction",group:"Stream",label:"Extra Redaction Patterns",description:"Additional regular expressions redacted from every streamed row, on top of env/secrets.yml values and built-in credential shapes"}},"spotlight.experiment.enabled":{type:"boolean",default:!1,ui:{tab:"tools",group:"Developer",label:"Spotlight Experiment",description:"Shape tool output and rank find results with Stencil Spotlight, and log each shaped result to the session"}}}};var Ha={"retry.enabled":{type:"boolean",default:!0,ui:{tab:"model",group:"Retry & Fallback",label:"Retry Enabled",description:"Retry transient provider errors (rate limits, outages, quota walls)."}},"retry.baseDelayMs":{type:"number",default:500,ui:{tab:"model",group:"Retry & Fallback",label:"Retry Base Delay (ms)",description:"Initial backoff before the first retry."}},"thinkingBudgets.minimal":{type:"number",default:1024,ui:{tab:"model",group:"Thinking",label:"Minimal Thinking Budget",description:"Token budget for the minimal thinking level."}},"thinkingBudgets.low":{type:"number",default:2048,ui:{tab:"model",group:"Thinking",label:"Low Thinking Budget",description:"Token budget for the low thinking level."}},"thinkingBudgets.medium":{type:"number",default:8192,ui:{tab:"model",group:"Thinking",label:"Medium Thinking Budget",description:"Token budget for the medium thinking level."}},"thinkingBudgets.high":{type:"number",default:16384,ui:{tab:"model",group:"Thinking",label:"High Thinking Budget",description:"Token budget for the high thinking level."}},"thinkingBudgets.xhigh":{type:"number",default:32768,ui:{tab:"model",group:"Thinking",label:"XHigh Thinking Budget",description:"Token budget for the xhigh thinking level."}},"thinkingBudgets.max":{type:"number",default:32768,ui:{tab:"model",group:"Thinking",label:"Max Thinking Budget",description:"Token budget for the max thinking level."}},"stt.language":{type:"string",default:"en",ui:{tab:"interaction",group:"Speech",label:"Speech-to-Text Language (omp)",description:"ISO-639-1 language for omp’s own dictation, and the fallback for Kabmo’s local engine when Settings → Dictation is set to detect automatically. The local engine cannot auto-detect: a missing value decodes as English."}},modelTags:{type:"record",default:{},ui:{tab:"model",group:"Prompt",label:"Model Tags",description:"Custom role/tag metadata; can introduce additional roles. JSON record."}},modelProviderOrder:{type:"array",default:[],ui:{tab:"model",group:"Prompt",label:"Model Provider Order",description:"Preferred provider order when a model id is ambiguous. JSON array."}},cycleOrder:{type:"array",default:["smol","default","slow"],ui:{tab:"model",group:"Prompt",label:"Model Cycle Order",description:"Roles cycled by the model switcher. JSON array."}},enabledModels:{type:"array",default:[],ui:{tab:"model",group:"Prompt",label:"Enabled Models",description:"Allow-list of models; supports path-scoped entries. Empty means all available models. JSON array."}},"task.agentServiceTierOverrides":{type:"record",default:{},ui:{tab:"model",group:"Sampling",label:"Agent Service Tier Overrides",description:"Sparse exact-name service-tier overrides for agents spawned by task/eval dispatch. JSON record."}},"compaction.reserveTokens":{type:"number",ui:{tab:"context",group:"Compaction",label:"Compaction Reserve Tokens",description:"Absolute reserve floor. Unset = larger of 16384 and 15% of the context window."}},"compaction.keepRecentTokens":{type:"number",default:20000,ui:{tab:"context",group:"Compaction",label:"Keep Recent Tokens",description:"Recent tokens always preserved through compaction."}},"compaction.autoContinue":{type:"boolean",default:!0,ui:{tab:"context",group:"Compaction",label:"Auto-Continue",description:"Continue automatically after compaction."}},"autolearn.minToolCalls":{type:"number",default:5,ui:{tab:"memory",group:"Auto-Learn",label:"Min Tool Calls",description:"Only nudge after a turn that used at least this many tools.",condition:"autolearnActive"}},shellPath:{type:"string",ui:{tab:"shell",group:"Bash",label:"Shell Path",description:"Override the shell binary used by bash."}},"bash.autoBackground.thresholdMs":{type:"number",default:60000,ui:{tab:"shell",group:"Bash",label:"Auto-Background Threshold (ms)",description:"Threshold before auto-backgrounding long-running commands."}},"task.agentAdvisor":{type:"record",default:{},ui:{tab:"tasks",group:"Subagents",label:"Agent Advisor Overrides",description:'Per-agent subagent advisor: agent name → "on" / "off" / advisor model pattern. JSON record.'}},enabledProviders:{type:"array",default:[],ui:{tab:"providers",group:"Services",label:"Enabled Providers",description:"Foreign user-level discovery sources to load; supports path-scoped entries. JSON array."}},disabledProviders:{type:"array",default:[],ui:{tab:"providers",group:"Services",label:"Disabled Providers",description:"Disabled model/discovery providers; supports path-scoped entries. JSON array."}}};var Tt=Ka,pt={...Tt.entries,...Ha};function Ke(t,r){return t[r]?.value}function To(t,r){switch(t){case void 0:return!0;case"advisorEnabled":return Ke(r,"advisor.enabled")===!0;case"vimModeEnabled":return Ke(r,"tui.vimMode")===!0;case"hindsightActive":return Ke(r,"memory.backend")==="hindsight";case"mnemopiActive":return Ke(r,"memory.backend")==="mnemopi";case"autolearnActive":return Ke(r,"autolearn.enabled")===!0;case"autoThinkingActive":return Ke(r,"defaultThinkingLevel")==="auto";case"usageAwareFallbackEnabled":return Ke(r,"retry.usageAwareFallback")===!0;case"planModeEnabled":return Ke(r,"plan.enabled")===!0;case"composerPredictionsEnabled":return Ke(r,"composer.predictions")===!0;case"planAutosaveEnabled":return Ke(r,"plan.enabled")===!0&&Ke(r,"plan.autosave")===!0;case"unexpectedStopSmart":return Ke(r,"features.unexpectedStopDetection")==="smart";case"macOS":case"hasImageProtocol":return!0;default:return!0}}function za(t){return Object.entries(pt).filter(([,r])=>r.ui.tab===t)}function Io(t,r,l){if(!l)return!0;return t.toLowerCase().includes(l)||r.ui.label.toLowerCase().includes(l)||r.ui.description.toLowerCase().includes(l)}var Vt=Tt.entries["tts.localVoice"],Ga=Vt?.values??[],lg=new Map((Array.isArray(Vt?.ui.options)?Vt.ui.options:[]).map((t)=>[t.value,t.label]));function Wa(t){return lg.get(t)??t}function Va({config:t,localModels:r,onPatch:l}){let c=xs(t.engine),m=t.engine==="deepgram",g=t.engine==="local",b=g?r.find((y)=>y.id===t.model)??r[0]??null:null,v=g?Ra(b):k0.filter((y)=>c.language==="required"||y.id!=="auto"),x=c.speed.min===c.speed.max,P=c.language==="required"||c.language==="parameter"||c.language==="instructions";return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Voice and rate"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:["The voice every answer is read in. Rate is clamped to what ",c.label," accepts."]})]}),e("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e("label",{className:"space-y-1",children:[e("span",{className:"block text-[11px] font-medium text-ink/70",children:m?"Voice model":"Model"}),g?e(Z,{ariaLabel:m?"Voice model":"Model",value:t.model||b?.id||"",onChange:(y)=>{l({model:y,voice:""})},placeholder:"No model installed",emptyText:"No model installed",disabled:r.length===0,triggerClassName:je,options:r.map((y)=>({value:y.id,label:y.label}))}):e(d,{children:[e("input",{type:"text",list:"tts-models",value:t.model,placeholder:c.defaultModel||"engine default",onInput:(y)=>l({model:y.currentTarget.value}),className:je}),e("datalist",{id:"tts-models",children:c.models.map((y)=>e("option",{value:y.id,children:y.label},y.id))})]}),m&&e("span",{className:"block text-[10px] text-ink/50",children:"Deepgram's model id is its voice; its last segment is the language."}),g&&e("span",{className:"block text-[10px] text-ink/50",children:r.length===0?"Download one under Local models above.":"Runs on this machine. Pick its voice and language below."})]}),!m&&e("label",{className:"space-y-1",children:[e("span",{className:"block text-[11px] font-medium text-ink/70",children:"Voice"}),t.engine==="omp"?e(Z,{ariaLabel:"Voice",value:t.voice,onChange:(y)=>l({voice:y}),placeholder:`omp default (${typeof Vt?.default==="string"?Wa(Vt.default):"harper"})`,searchable:Ga.length>10,triggerClassName:je,options:Ga.map((y)=>({value:y,label:Wa(y)}))}):g?e(Z,{ariaLabel:"Voice",value:t.voice||"0",onChange:(y)=>l({voice:y==="0"?"":y}),placeholder:"Default voice",searchable:!1,allowEmpty:!1,triggerClassName:je,options:Ea(b).map((y)=>({value:y.id,label:y.label}))}):e(d,{children:[e("input",{type:"text",list:"tts-voices",value:t.voice,placeholder:c.defaultVoice||"engine default",onInput:(y)=>l({voice:y.currentTarget.value}),className:je}),e("datalist",{id:"tts-voices",children:c.voices.map((y)=>e("option",{value:y.id,children:y.label},y.id))})]}),e("span",{className:"block text-[10px] text-ink/50",children:t.engine==="omp"?"“omp default” follows OMP Engine → Providers → Local TTS Voice.":g?"Voice 0 is the first style in the model; the count comes from the model itself.":"A typed id is accepted when the provider supports custom voices."})]}),!x&&e("label",{className:"space-y-1",children:[e("span",{className:"block text-[11px] font-medium text-ink/70",children:"Speed"}),e("input",{type:"number",min:c.speed.min,max:c.speed.max,step:0.05,value:t.speed,onChange:(y)=>l({speed:Number(y.currentTarget.value)}),className:je}),e("span",{className:"block text-[10px] text-ink/50",children:[c.speed.min,"–",c.speed.max,"; 1 is normal."]})]}),P&&e("label",{className:"space-y-1",children:[e("span",{className:"block text-[11px] font-medium text-ink/70",children:"Language"}),e(Z,{ariaLabel:"Language",value:t.language||(c.language==="required"?"auto":""),onChange:(y)=>l({language:y==="auto"?"":y}),placeholder:g?`Model default (${b?.defaultLanguage??"en"})`:"Auto / detect",searchable:v.length>10,allowEmpty:c.language!=="required",triggerClassName:je,options:v.map((y)=>({value:y.id,label:y.label}))}),e("span",{className:"block text-[10px] text-ink/50",children:c.language==="required"?"This provider requires a language.":g?b&&b.languages.length===0?"This model declares no languages; the code is passed through unchanged.":"These models have no auto-detect: pick the language of the answer. One they do not declare is refused.":c.language==="parameter"?(t.model||c.defaultModel)==="eleven_multilingual_v2"?"Multilingual v2 detects the language from the text; the newer models receive this as language_code.":"Sent as the provider language. “Auto” lets the model detect it.":"Only gpt-4o-mini-tts follows this instruction; tts-1 and compatible servers may ignore it."})]})]}),g&&b&&b.languages.includes("id")&&e("p",{className:"rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70",children:[b.label," speaks Indonesian. Pick ",e("span",{className:"font-medium text-ink",children:"Indonesian"})," and the answer is read in Indonesian — nothing leaves this machine."]}),c.language==="auto"&&e("p",{className:"rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70",children:"Detects the answer’s language automatically — Indonesian is supported."}),c.language==="none"&&e("p",{className:"rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70",children:c.id==="omp"?"omp’s local voices are English. For Indonesian, pick ElevenLabs, Gemini, xAI, or an OpenAI-compatible server with an Indonesian voice.":"The voice’s id carries the language: pick a flux-…-id voice (Dewi, Fajar, Fitri, Rizky, Teguh) for Indonesian — Flux speaks 41 languages, Aura seven. Early-access languages have no text normalization, so write numbers and dates out in words."})]})}function qa({config:t,hasKey:r,busy:l,onPatch:c,onSaveKey:m,onClearKey:g}){let b=xs(t.engine),[v,x]=n(t.baseUrl),[P,y]=n("");o(()=>x(t.baseUrl),[t.baseUrl]);let T=v.trim()&&ks(v)===null?"That is not an http(s) URL, or it embeds a username/password.":null;if(!b.editableBaseUrl&&!b.needsKey)return e("section",{className:"space-y-3",children:e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Local engine"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:b.id==="local"?"No key and no network. The model is downloaded once into Kabmo’s own directory, then every answer is synthesized in this process.":"No key and no network. The first run downloads omp’s voice; later runs are local."})]})});return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Endpoint and key"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:b.needsKey?b.keyOptional?"Optional for a local server; required for OpenAI itself. Stored outside the settings table.":"The key is stored outside the settings table, in a file only this server reads.":"No key is needed."})]}),b.editableBaseUrl&&e("div",{className:`${Co} space-y-2`,children:[e("div",{className:"flex flex-wrap gap-1.5",children:v0.map((w)=>e("button",{type:"button",title:w.note,onClick:()=>{x(w.baseUrl),c({baseUrl:w.baseUrl,model:w.model,voice:w.voice})},className:"rounded-full border border-ink/15 px-2.5 py-1 text-[10px] text-ink/70 transition-colors hover:border-ink/30 hover:text-ink",children:w.label},w.id))}),e("label",{className:"block space-y-1",children:[e("span",{className:"block text-[11px] font-medium text-ink/70",children:"Base URL"}),e("input",{type:"url",value:v,placeholder:b.baseUrl,onInput:(w)=>x(w.currentTarget.value),onBlur:()=>c({baseUrl:v}),className:je}),T&&e("span",{className:"block text-[10px] text-error",children:T})]})]}),b.needsKey&&e("div",{className:`${Co} space-y-2`,children:[e("div",{className:"flex items-center justify-between gap-2",children:[e("span",{className:"inline-flex items-center gap-1.5 text-[11px] text-ink/70",children:[e(to,{size:12,className:"text-ink/50"}),r?"A key is stored for this engine.":b.keyOptional?"No key stored — fine for a local server.":"No key stored for this engine."]}),r&&e("button",{type:"button",disabled:l,onClick:()=>g(t.engine),className:"inline-flex items-center gap-1 rounded-md px-1.5 py-1 text-[10px] text-ink/60 transition-colors hover:bg-ink/5 hover:text-error disabled:opacity-50",children:[e(Q,{size:11})," Clear"]})]}),e("div",{className:"flex gap-2",children:[e("input",{type:"password",value:P,placeholder:r?"Replace the stored key…":"Paste the API key…",autocomplete:"off",onInput:(w)=>y(w.currentTarget.value),className:je}),e("button",{type:"button",disabled:l||!P.trim(),onClick:()=>{m(t.engine,P),y("")},className:"shrink-0 rounded-md border border-ink/20 px-2.5 py-1.5 text-[11px] text-ink transition-colors hover:border-ink/40 disabled:opacity-40",children:"Save key"})]}),e("a",{href:b.docs,target:"_blank",rel:"noreferrer",className:"inline-block text-[10px] text-ink/50 underline decoration-ink/20 hover:text-ink",children:[b.label," documentation"]})]})]})}function Ya({config:t,onPatch:r}){return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Autoplay"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"What happens when a run finishes."})]}),e("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border border-ink/15 bg-paper px-3.5 py-3",children:[e("input",{type:"checkbox",checked:t.autoplay,onChange:(l)=>r({autoplay:l.currentTarget.checked}),className:`${be} mt-0.5 h-4 w-4 cursor-pointer accent-ink`}),e("span",{className:"min-w-0 space-y-1",children:[e("span",{className:"block text-[12px] font-medium text-ink",children:"Read the final answer aloud"}),e("span",{className:"block text-[11px] leading-relaxed text-ink/60",children:"A run that finishes while this chat is open is read once. History loaded on mount is not replayed. Browsers block audio until you have interacted with the page, so the very first automatic read may need one click on the speaker button."})]})]})]})}var dg="This is how Kabmo will read your answers aloud.",Ja="settings-test";function Xa({config:t}){let r=pf(),l=r.activeKey===Ja&&(r.status==="loading"||r.status==="playing"||r.status==="paused");return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Test"}),e("p",{className:"mt-0.5 text-[11px] text-ink/60",children:"Speaks one sentence with the settings above, even before they are saved."})]}),e("button",{type:"button",onClick:()=>{if(l)r.stop();else r.speak(dg,Ja,t)},className:"inline-flex items-center gap-2 rounded-md border border-ink/20 px-3 py-2 text-[12px] text-ink transition-colors hover:border-ink/40 hover:bg-ink/5",children:[l?r.status==="loading"?e(p,{size:14,className:"animate-spin"}):e(tn,{size:13}):e(Xn,{size:14}),l?"Stop":"Test voice"]})]})}function Qa({settings:t,onUpdate:r}){let l=wa(),c=Ta(),m=t.tts,g=c.state?.models??[],b=m.engine==="local"&&c.state!==null&&g.length>0&&m.model!==""&&!g.some((x)=>x.id===m.model);o(()=>{if(b)r({tts:{...m,model:"",voice:""}})},[b,m,r]);let v=(x)=>{r({tts:{...m,...x}})};return e("div",{className:"mx-auto w-full max-w-3xl space-y-7",children:[e("p",{className:"text-[11px] leading-relaxed text-ink/60",children:"The speaker button under an assistant answer. The engine you pick here is where that answer's text goes — the local engine keeps it on this machine, a hosted engine uploads it."}),(l.error??c.error)&&e("p",{className:"rounded-lg border border-ink/10 bg-ink/[0.03] px-3 py-2 text-[11px] leading-relaxed text-ink/70",children:l.error??c.error}),e(Aa,{config:m,local:l.state?.local,localRuntime:c.state?.runtime,installedModels:g.length,busy:l.busy,onSelect:(x)=>v({engine:x,model:"",voice:"",speed:sf(x,m.speed),baseUrl:x==="openai"?m.baseUrl:"",language:x==="xai"?m.language:""}),onReprobe:()=>void l.reprobe()}),m.engine==="local"&&e(ja,{config:m,server:c,onSelect:(x)=>v({model:x,voice:""})}),e(Va,{config:m,localModels:g,onPatch:v}),e(qa,{config:m,hasKey:l.state?.hasKeys[m.engine]??!1,busy:l.busy,onPatch:v,onSaveKey:(x,P)=>void l.saveKey(x,P),onClearKey:(x)=>void l.clearKey(x)}),e(Ya,{config:m,onPatch:v}),e(Xa,{config:m})]})}var cg={dictation:ya,speech:Qa};function Za({settings:t,onUpdate:r}){let l=Pe(),[c,m]=n(Kt[0].id),g=Kt.find((b)=>b.id===c)??Kt[0];return e(Ce,{pane:l.pane,onBack:l.back,listLabel:"Voice settings",detailLabel:g.label,detailDescription:g.description,list:e(Pt,{groups:Kt,activeGroupId:g.id,onSelectGroup:(b)=>{m(b),l.openDetail()}}),detail:e(Ct,{group:g,children:g.sections.map((b)=>{let v=cg[b];return e(v,{settings:t,onUpdate:r},b)})})})}function es(t){let r=new Map;for(let c of t){let m=Q0(c.chord),g=r.get(m);if(g)g.push(c);else r.set(m,[c])}let l=[];for(let c of r.values())for(let m=0;m<c.length;m+=1)for(let g=m+1;g<c.length;g+=1){let b=c[m],v=c[g];if(b.command===v.command)continue;l.push({chord:b.chord,a:b,b:v,certain:!b.when||!v.when||b.when===v.when})}return l}var pg={Shift:!0,Control:!0,Alt:!0,Meta:!0,OS:!0,Super:!0,Hyper:!0,CapsLock:!0,Fn:!0},mg={ShiftLeft:!0,ShiftRight:!0,ControlLeft:!0,ControlRight:!0,AltLeft:!0,AltRight:!0,MetaLeft:!0,MetaRight:!0,OSLeft:!0,OSRight:!0,CapsLock:!0};function ts(t){return pg[t.key]===!0||mg[t.code]===!0}function ns({chord:t,onCommit:r}){let[l,c]=n(!1),[m,g]=n([]),b=i(null);o(()=>{if(l)b.current?.focus()},[l]);let v=()=>{c(!1),g([])},x=(y)=>{if(!l)return;if(y.preventDefault(),y.stopPropagation(),y.key==="Escape"){v();return}if(y.key==="Backspace"||y.key==="Delete"){if(m.length===0)r(null),v();else g([]);return}if(y.key==="Enter"&&m.length===1){r(pA(m)),v();return}if(ts(y))return;let T=mf(y);if(m.length===0){g([T]);return}r(pA([m[0],T])),v()},P=l?m.length>0?`${jo(m,_t())} …`:"Press keys…":t||"Unassigned";return e("button",{ref:b,type:"button",onClick:()=>{c(!0),g([])},onBlur:()=>{if(l)v()},onKeyDown:x,"aria-label":l?"Recording shortcut, press keys":`Shortcut ${t||"unassigned"}, click to change`,className:`min-w-[7rem] px-2 py-1 rounded-md border text-[11px] font-mono transition-colors ${l?"border-ink/60 bg-ink/5 text-ink":"border-ink/20 text-ink/70 hover:border-ink/40 hover:text-ink"}`,children:P})}function os(){let{commands:t,chords:r,rules:l}=Uc(),[c,m]=n(()=>ff()),[g,b]=n(""),v=u(()=>es(l),[l]),x=_t(),P=(R)=>t.find((D)=>D.id===R)?.title??R,y=(R,D)=>{let C={...c,[R]:D};m(C),Pd(C),mA(C)},T=(R)=>{let D={...c};delete D[R],m(D),Pd(D),mA(D)},w=g.trim().toLowerCase(),A=t.filter((R)=>!w||R.title.toLowerCase().includes(w)||(r.get(R.id)??"").toLowerCase().includes(w)).sort((R,D)=>R.category.localeCompare(D.category)||R.title.localeCompare(D.title));return e("section",{className:"space-y-3",children:[e("div",{className:"flex items-center justify-between gap-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Shortcuts"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"Click a chord to record a new one. Two strokes are allowed; Enter keeps a single stroke."})]}),e("div",{className:"flex items-center gap-2 px-2.5 py-1.5 border border-ink/15 rounded-md bg-canvas",children:[e(U,{size:13,className:"text-ink/40 flex-shrink-0"}),e("input",{type:"text",value:g,onInput:(R)=>b(R.currentTarget.value),placeholder:"Filter","aria-label":"Filter shortcuts",className:"w-32 bg-transparent text-xs text-ink focus:outline-none placeholder-ink/40"})]})]}),v.length>0?e("div",{className:"border border-ink/15 rounded-lg p-3 space-y-1.5 bg-ink/[0.02]",children:[e("p",{className:"text-[11px] font-semibold text-ink/75",children:[v.length," chord ",v.length===1?"conflict":"conflicts"]}),v.map((R)=>e("p",{className:"text-[11px] text-ink/60",children:[e("span",{className:"font-mono text-ink/80",children:jo(R.chord,x)})," ","— ",P(R.a.command)," and ",P(R.b.command),R.certain?"":" (may not overlap)"]},`${R.a.command}-${R.b.command}`))]}):null,e("div",{className:"bg-paper border border-ink/15 rounded-lg divide-y divide-ink/10 shadow-xs overflow-hidden",children:A.length===0?e("p",{className:"px-3 py-4 text-center text-xs text-ink/50",children:"No command matches that filter."}):A.map((R)=>{let D=c[R.id]!==void 0;return e("div",{className:"px-3 py-2 flex items-center justify-between gap-3",children:[e("div",{className:"min-w-0",children:[e("div",{className:"text-xs font-medium text-ink truncate",children:R.title}),e("div",{className:"text-[10px] text-ink/45",children:[R.category,R.pluginId?` · ${R.pluginId}`:"",D?" · custom":""]})]}),e("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[e(ns,{chord:r.get(R.id)??"",onCommit:(C)=>y(R.id,C)}),D?e("button",{type:"button",onClick:()=>T(R.id),title:"Reset to default","aria-label":`Reset ${R.title} to its default shortcut`,className:"p-1 rounded text-ink/40 hover:text-ink hover:bg-ink/5 transition-colors",children:e(kt,{size:12})}):null]})]},R.id)})})]})}function is({settings:t,onUpdate:r}){let l=["Enter","Shift + Enter","Ctrl / Cmd + Enter"],c=(g,b)=>{r((v)=>{let x={[g]:b},P=["keybindingSend","keybindingNewLine","keybindingSteering"].filter((y)=>y!==g);for(let y of P)if(v[y]===b)x[y]=v[g];return{...v,...x}})},m=[{id:"keybindingSend",label:"Send Message",desc:"Submit prompt and initiate agent reasoning",icon:Xe,value:t.keybindingSend||"Enter"},{id:"keybindingNewLine",label:"Line Break",desc:"Insert newline inside input box without dispatching",icon:un,value:t.keybindingNewLine||"Shift + Enter"},{id:"keybindingSteering",label:"Steering Intervention",desc:"Send prompt with steering interruption priority",icon:hn,value:t.keybindingSteering||"Ctrl / Cmd + Enter"}];return e("section",{className:"space-y-3",children:[e("div",{className:"flex items-center justify-between",children:[e("div",{className:"flex items-center gap-2",children:[e(Sa,{size:15,className:"text-ink/70"}),e("h4",{className:"text-sm font-semibold text-ink",children:"Keyboard Shortcuts"})]}),e("span",{className:"text-[10px] text-ink/50 font-mono",children:"Auto-conflict resolution"})]}),e("div",{className:"bg-paper border border-ink/15 rounded-lg divide-y divide-ink/10 shadow-xs overflow-hidden",children:m.map((g)=>e("div",{className:"p-3.5 flex flex-col sm:flex-row sm:items-center justify-between gap-3 hover:bg-ink/[0.015] transition-colors",children:[e("div",{className:"flex items-start gap-3",children:[e("div",{className:"w-7 h-7 rounded-md bg-ink/5 flex items-center justify-center text-ink/70 flex-shrink-0 mt-0.5",children:e(g.icon,{size:14})}),e("div",{children:[e("div",{className:"font-semibold text-xs text-ink",children:g.label}),e("div",{className:"text-[11px] text-ink/60 mt-0.5",children:g.desc})]})]}),e("div",{className:"flex items-center gap-2 self-end sm:self-center",children:e(Z,{ariaLabel:`${g.label} keybinding`,value:g.value,onChange:(b)=>c(g.id,b),placeholder:g.value,searchable:!1,allowEmpty:!1,triggerClassName:"bg-paper border border-ink/20 rounded-md px-2.5 py-1.5 outline-none focus:border-ink text-[11px] font-medium text-ink cursor-pointer hover:border-ink/40 transition-colors",options:l.map((b)=>({value:b,label:b}))})})]},g.id))})]})}function as({settings:t,onUpdate:r}){return e("div",{className:"flex-1 h-full overflow-y-auto scrollbar-overlay-container p-4 md:p-6 space-y-8 pb-8",children:[e(os,{}),e(is,{settings:t,onUpdate:r})]})}function ss({projects:t,selectedProjectId:r,onSelectProject:l,onAddProject:c,onTogglePin:m,isAdding:g=!1,folderFacts:b=[],loadError:v=null}){let x=new Map(b.map((P)=>[P.id,P.totalSessions]));return e("div",{className:"w-full md:w-64 md:border-r border-ink/10 h-full flex flex-col bg-paper/50 flex-shrink-0",children:[e("div",{className:`${Se} px-3.5 justify-between`,style:{height:Te},children:[e("span",{className:"text-xs font-semibold text-ink",children:[t.length," project",t.length===1?"":"s"]}),e("button",{type:"button",onClick:c,disabled:g,"aria-label":"Add project",title:"Add project",className:"p-1 rounded text-ink/60 hover:text-ink hover:bg-ink/5 transition-colors cursor-pointer disabled:opacity-50",children:e(F,{size:15,strokeWidth:2.2})})]}),e("div",{className:"flex-1 scrollbar-overlay-container p-1.5 space-y-0.5",children:[v&&e("p",{className:"px-2 py-2 text-[11px] text-error",title:v,children:["Projects could not be read: ",v]}),!v&&t.length===0&&e("div",{className:"px-2 py-3 space-y-1.5",children:[e("p",{className:"text-[11.5px] text-ink/60",children:"No projects yet."}),e("button",{type:"button",onClick:c,className:"text-[11px] font-medium text-ink underline underline-offset-2 hover:no-underline cursor-pointer",children:"Add the first one"})]}),t.map((P)=>{let y=P.id===r,T=pa(P.icon),w=P.folderId===void 0?void 0:x.get(P.folderId);return e("div",{className:`group flex items-center rounded-md transition-colors ${y?"bg-ink/10 shadow-2xs":"hover:bg-ink/5"}`,children:[e("button",{type:"button",onClick:()=>l(P.id),"aria-current":y?"true":void 0,className:"flex-1 min-w-0 flex items-center gap-2 px-2.5 py-1.5 text-left cursor-pointer",children:[P.customIconUrl?e("img",{src:P.customIconUrl,alt:"",className:"w-3.5 h-3.5 rounded-xs object-contain flex-shrink-0",referrerPolicy:"no-referrer"}):e(T,{size:14,className:"flex-shrink-0",style:{color:P.accentColor||"currentColor"}}),e("span",{className:`text-[11.5px] truncate flex-1 ${y?"font-medium text-ink":"text-ink/80"}`,children:P.name}),typeof w==="number"&&w>0&&e("span",{className:"shrink-0 font-mono text-[10px] text-ink/40",children:w})]}),e("button",{type:"button",onClick:()=>m(P),"aria-label":P.isPinned?`Unpin ${P.name}`:`Pin ${P.name}`,title:P.isPinned?"Unpin (stop sorting first)":"Pin (sort first in the sidebar)",className:`shrink-0 mr-1 p-1 rounded transition-colors cursor-pointer ${P.isPinned?"text-ink/70 hover:text-ink hover:bg-ink/10":"text-ink/30 hover:text-ink/70 hover:bg-ink/10 opacity-0 group-hover:opacity-100 focus-visible:opacity-100"}`,children:P.isPinned?e(no,{size:12}):e(wc,{size:12})})]},P.id)})]})]})}function ls({project:t,canDelete:r,isDeleting:l=!1,onDelete:c}){return e("div",{className:"flex items-start justify-between gap-4 pb-4 border-b border-ink/10",children:[e("div",{className:"min-w-0 flex-1",children:[e("h2",{className:"text-xl font-bold tracking-tight text-ink truncate",children:t.name}),e("p",{className:"text-[11px] font-mono text-ink/50 truncate mt-0.5 select-all",children:t.path||"Not bound to a directory"})]}),r&&e("button",{type:"button",onClick:c,disabled:l,title:"Delete this project",className:"inline-flex items-center gap-1.5 shrink-0 px-2.5 py-1.5 text-[11px] font-medium text-ink/50 hover:text-error hover:bg-error/10 rounded-md transition-colors cursor-pointer disabled:opacity-50",children:[e(Q,{size:13}),e("span",{children:"Delete"})]})]})}function ps({name:t,disabled:r=!1,onCommit:l}){let[c,m]=n(t);return o(()=>{m(t)},[t]),e("div",{className:"space-y-2",children:[e("label",{htmlFor:"project-name-input",className:"block text-xs font-semibold text-ink",children:"Project name"}),e("input",{id:"project-name-input",type:"text",value:c,disabled:r,onChange:(b)=>m(b.currentTarget.value),onBlur:()=>{let b=c.trim();if(!b){m(t);return}if(b===t)return;l(b)},onKeyDown:(b)=>{if(b.key==="Enter")b.preventDefault(),b.currentTarget.blur();if(b.key==="Escape")m(t),b.currentTarget.blur()},placeholder:"Enter project name…",className:"w-full bg-paper border border-ink/20 rounded-md px-3 py-2 text-xs font-medium text-ink outline-none focus:border-ink/60 transition-colors shadow-2xs disabled:opacity-60"}),e("p",{className:"text-[11px] text-ink/50",children:"Names are unique: the sidebar identifies a project by it."})]})}function us({path:t,disabled:r=!1,onCommit:l,onReveal:c,isRevealing:m=!1}){let[g,b]=n(t),[v,x]=n(!1);o(()=>{b(t)},[t]);let P=(y)=>{let T=y.trim();if(T===t)return;l(T)};return e("div",{className:"space-y-2",children:[e("div",{className:"flex items-center justify-between gap-2",children:[e("label",{htmlFor:"project-path-input",className:"block text-xs font-semibold text-ink",children:"Project directory"}),e("div",{className:"flex items-center gap-1",children:[e("button",{type:"button",onClick:()=>x(!0),disabled:r,className:"inline-flex items-center gap-1 px-2 py-1 rounded-md border border-ink/20 hover:border-ink/40 text-[11px] font-medium text-ink transition-colors cursor-pointer disabled:opacity-50",children:[e(Zn,{size:11}),e("span",{children:"Browse…"})]}),e("button",{type:"button",onClick:c,disabled:r||!t||m,title:t?"Reveal in the file manager":"This project is not bound to a directory",className:"inline-flex items-center gap-1 px-2 py-1 rounded-md border border-ink/20 hover:border-ink/40 text-[11px] font-medium text-ink transition-colors cursor-pointer disabled:opacity-40",children:[e(en,{size:11}),e("span",{children:"Reveal"})]})]})]}),e("input",{id:"project-path-input",type:"text",value:g,disabled:r,onChange:(y)=>b(y.currentTarget.value),onBlur:()=>P(g),onKeyDown:(y)=>{if(y.key==="Enter")y.preventDefault(),y.currentTarget.blur();if(y.key==="Escape")b(t),y.currentTarget.blur()},placeholder:"~ or /absolute/path, or leave empty for an unbound grouping",spellcheck:!1,className:"w-full bg-paper border border-ink/20 rounded-md px-3 py-2 text-[11.5px] font-mono text-ink outline-none focus:border-ink/60 transition-colors shadow-2xs disabled:opacity-60"}),e("p",{className:"text-[11px] text-ink/50",children:t?"Sessions found under this directory appear in the project. One directory can belong to one project.":"Not bound to a directory: this project groups chats only and discovers no sessions."}),v&&e(Gc,{initialPath:t||void 0,onSelect:(y)=>{x(!1),b(y),P(y)},onClose:()=>x(!1)})]})}function ms({model:t,models:r,onSelectModel:l,disabled:c=!1}){let[m,g]=n(!1),[b,v]=n(""),x=i(null);he(x,()=>g(!1));let P=F0(t,r)??"Inherit Kabmo’s default",y=u(()=>{let w=b.trim().toLowerCase();if(!w)return r;return r.filter((A)=>A.name.toLowerCase().includes(w)||A.id.toLowerCase().includes(w)||A.provider.toLowerCase().includes(w))},[r,b]),T=(w)=>{l(w),g(!1),v("")};return e("div",{className:"space-y-2.5",children:[e("div",{className:"flex items-center gap-1.5",children:[e("h4",{className:"text-xs font-semibold text-ink",children:"Defaults for new chats"}),e("span",{className:"inline-flex text-ink/40 hover:text-ink/70 transition-colors cursor-help",title:"The model a chat started in this project uses until you pick another one in the composer.",children:e(pe,{size:12})})]}),e("div",{className:"flex items-center justify-between gap-4 p-3 bg-paper border border-ink/15 rounded-lg",children:[e("div",{className:"min-w-0",children:[e("div",{className:"text-xs font-medium text-ink",children:"Project model"}),e("div",{className:"text-[11px] text-ink/50",children:r.length===0?"No model catalog yet — connect a provider first.":"Applied when the project starts a chat."})]}),e("div",{className:"relative shrink-0",ref:x,children:[e("button",{type:"button",onClick:()=>g((w)=>!w),disabled:c,className:"flex items-center gap-2 px-3 py-1.5 rounded-md border border-ink/20 hover:border-ink/40 bg-paper text-ink text-xs font-medium transition-colors cursor-pointer shadow-2xs max-w-[248px] disabled:opacity-50",children:[e(Ne,{size:13,className:"text-ink/70 shrink-0"}),e("span",{className:"truncate",children:P}),e(E,{size:13,className:"text-ink/50 shrink-0"})]}),m&&e("div",{className:"glass-popover absolute right-0 mt-1 w-[288px] bg-paper border border-ink/15 rounded-lg shadow-xl z-50 overflow-hidden",children:[e("div",{className:"flex items-center gap-1.5 px-2.5 py-2 border-b border-ink/10",children:[e(U,{size:12,className:"text-ink/40 shrink-0"}),e("input",{autoFocus:!0,value:b,onInput:(w)=>v(w.currentTarget.value),placeholder:"Search models…",className:"flex-1 bg-transparent text-xs text-ink outline-none placeholder:text-ink/35"})]}),e("div",{className:"max-h-64 scrollbar-overlay-container py-1",children:[e("button",{type:"button",onClick:()=>T(jc),className:"w-full flex items-center justify-between gap-2 px-3 py-1.5 text-left text-xs hover:bg-ink/5 transition-colors cursor-pointer",children:[e("span",{className:t===jc?"font-semibold text-ink":"text-ink/80",children:"Inherit Kabmo’s default"}),t===jc&&e(f,{size:13,className:"text-ink"})]}),y.length===0?e("p",{className:"px-3 py-2 text-[11px] text-ink/50",children:r.length===0?"The catalog is empty.":`No model matches “${b.trim()}”.`}):y.map((w)=>{let A=L0({provider:w.provider,modelId:w.id}),R=t===A;return e("button",{type:"button",onClick:()=>T(A),className:"w-full flex items-center justify-between gap-2 px-3 py-1.5 text-left hover:bg-ink/5 transition-colors cursor-pointer",children:[e("span",{className:"min-w-0 flex flex-col",children:[e("span",{className:`truncate text-xs ${R?"font-semibold text-ink":"text-ink/85"}`,children:w.name}),e("span",{className:"truncate text-[10.5px] text-ink/45",children:w.provider})]}),R&&e(f,{size:13,className:"text-ink shrink-0"})]},A)})]}),t!==jc&&e("button",{type:"button",onClick:()=>T(jc),className:"w-full flex items-center gap-1.5 px-3 py-2 border-t border-ink/10 text-[11px] text-ink/60 hover:text-ink hover:bg-ink/5 transition-colors cursor-pointer",children:[e(h,{size:11}),e("span",{children:"Clear the project model"})]})]})]})]})]})}function gs({accentColor:t,onSelectColor:r,options:l=fA,disabled:c=!1}){let m=l.length>0?l:fA,g=t.trim().toLowerCase(),b=m.some((D)=>D.value!==""&&D.value.toLowerCase()===g),v=g!==""&&!b,x=Af(g)??gf,[P,y]=n(x);o(()=>y(x),[x]);let T=(D)=>{let C=Af(D);if(C===null){y(x);return}if(y(C),C!==g)r(C)},w=i(null),A=i(null),R=i({commit:T,clear:()=>r("")});return R.current={commit:T,clear:()=>r("")},o(()=>{let D=w.current,C=A.current;if(!D||!C)return;let M=(j)=>y(j.target.value.toLowerCase()),L=(j)=>R.current.commit(j.target.value),O=()=>{let j=C.value.trim();if(j==="")R.current.clear();else R.current.commit(j)},_=(j)=>{if(j.key==="Enter")j.preventDefault(),O();if(j.key==="Escape")y(x)};return D.addEventListener("input",M),D.addEventListener("change",L),C.addEventListener("blur",O),C.addEventListener("keydown",_),()=>{D.removeEventListener("input",M),D.removeEventListener("change",L),C.removeEventListener("blur",O),C.removeEventListener("keydown",_)}},[x]),e("div",{className:"space-y-2.5",children:[e("h4",{className:"text-xs font-semibold text-ink",children:"Accent colour"}),e("div",{className:"flex flex-wrap items-center gap-2.5",children:m.map((D)=>{let C=g===D.value.toLowerCase();if(D.value==="")return e("button",{type:"button",onClick:()=>r(""),disabled:c,"aria-label":"No accent colour","aria-pressed":C,title:"No accent colour",className:`w-7 h-7 rounded-full border flex items-center justify-center transition-all cursor-pointer disabled:opacity-50 ${C?"border-ink bg-ink/10 ring-2 ring-ink/30 ring-offset-2 ring-offset-paper":"border-ink/25 bg-paper hover:border-ink/50 text-ink/60"}`,children:e(h,{size:12,strokeWidth:2.2})},"none");return e("button",{type:"button",onClick:()=>r(D.value),disabled:c,"aria-label":D.label,"aria-pressed":C,title:D.label,style:{backgroundColor:D.bgHex},className:`w-7 h-7 rounded-full transition-all cursor-pointer shadow-2xs disabled:opacity-50 ${C?"ring-2 ring-ink ring-offset-2 ring-offset-paper scale-105":"hover:scale-105 opacity-90 hover:opacity-100"}`},D.value)})}),e("div",{className:"flex items-center gap-2 pt-0.5",children:[e("label",{title:"Pick a custom accent colour",className:`relative w-7 h-7 shrink-0 rounded-full border overflow-hidden cursor-pointer transition-all ${v?"ring-2 ring-ink ring-offset-2 ring-offset-paper":"border-ink/25 hover:border-ink/50"} ${c?"opacity-50 pointer-events-none":""}`,children:[e("span",{"aria-hidden":"true",className:"absolute inset-0",style:{backgroundColor:P}}),e(oi,{size:12,strokeWidth:2.2,"aria-hidden":"true",className:"absolute inset-0 m-auto text-white/90 mix-blend-difference pointer-events-none"}),e("input",{ref:w,type:"color",value:Af(P)??gf,disabled:c,"aria-label":"Custom accent colour",className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer"})]}),e("input",{ref:A,type:"text",value:P,disabled:c,spellcheck:!1,"aria-label":"Custom accent colour hex",placeholder:gf,onInput:(D)=>y(D.currentTarget.value),className:"w-[86px] bg-paper border border-ink/20 rounded-md px-2 py-1 text-[11px] font-mono text-ink outline-none focus:border-ink/60 transition-colors disabled:opacity-50"}),e("span",{className:"text-[11px] text-ink/45",children:v?"Custom accent":"Pick any colour"})]})]})}var Ao=128,gg=700000;async function bg(t){let r=Promise.withResolvers(),l=new FileReader;l.onload=(A)=>{let R=A.target?.result;if(typeof R==="string"&&R)r.resolve(R);else r.reject(Error("That file could not be read as an image."))},l.onerror=()=>r.reject(Error("That file could not be read as an image.")),l.readAsDataURL(t);let c=await r.promise;if(t.type==="image/svg+xml")return c;let m=Promise.withResolvers(),g=new Image;g.onload=()=>m.resolve(g),g.onerror=()=>m.reject(Error("That file is not an image Kabmo can read.")),g.src=c;let b=await m.promise,v=Math.min(1,Ao/Math.max(b.naturalWidth,b.naturalHeight)),x=Math.max(1,Math.round(b.naturalWidth*v)),P=Math.max(1,Math.round(b.naturalHeight*v)),y=document.createElement("canvas");y.width=x,y.height=P;let T=y.getContext("2d");if(!T)return c;T.drawImage(b,0,0,x,P);let w=y.toDataURL("image/png");return w.length>0&&w.length<c.length?w:c}function hs({currentIcon:t,customIconUrl:r,projectName:l,onSelectIcon:c,onSetCustomIcon:m,disabled:g=!1}){let b=i(null),[v,x]=n(!1),[P,y]=n(!1),[T,w]=n(null),A=async(C)=>{let M=C.currentTarget.files?.[0];if(C.currentTarget.value="",!M)return;w(null),y(!0);try{let L=await bg(M);if(L.length>gg){w("That image is too detailed to store as a mark — try a PNG or SVG.");return}m(L)}catch(L){w(L instanceof Error?L.message:String(L))}finally{y(!1)}},R=()=>{let M=`https://api.dicebear.com/7.x/identicon/svg?seed=${l.toLowerCase().replace(/[^a-z0-9]/g,"")||"project"}&radius=50&size=${Ao}`;w(null),x(!0);let L=new Image;L.onload=()=>{x(!1),m(M)},L.onerror=()=>{x(!1),w("The generated icon could not be loaded — check your connection.")},L.src=M},D=g||P||v;return e("div",{className:"space-y-3",children:[e("div",{className:"flex items-center justify-between gap-2",children:[e("h4",{className:"text-xs font-semibold text-ink",children:"Project icon"}),r&&e("button",{type:"button",onClick:()=>m(void 0),disabled:D,className:"text-[11px] text-ink/50 hover:text-error transition-colors cursor-pointer disabled:opacity-50",children:"Use a standard icon"})]}),e("div",{className:"flex flex-wrap gap-1.5",children:R0.map((C)=>{let M=!r&&t===C.id,L=C.icon;return e("button",{type:"button",onClick:()=>c(C.id),disabled:D,"aria-label":C.label,"aria-pressed":M,title:C.label,className:`w-7 h-7 rounded-md flex items-center justify-center transition-all cursor-pointer disabled:opacity-50 ${M?"border border-ink/40 bg-ink/5 text-ink shadow-2xs":"border border-transparent text-ink/60 hover:text-ink hover:bg-ink/5"}`,children:e(L,{size:14,strokeWidth:1.8})},C.id)})}),e("div",{className:"flex flex-wrap items-center gap-2 pt-1",children:[e("input",{type:"file",ref:b,onChange:(C)=>void A(C),accept:"image/png,image/jpeg,image/svg+xml,image/webp,image/gif",className:"hidden"}),e("button",{type:"button",onClick:()=>b.current?.click(),disabled:D,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md border border-ink/20 hover:border-ink/40 bg-paper text-ink text-xs font-medium transition-colors cursor-pointer shadow-2xs disabled:opacity-50",children:[P?e(p,{size:13,className:"animate-spin text-ink/60"}):e(cs,{size:13,className:"text-ink/60"}),e("span",{children:P?"Reading…":"Upload image"})]}),e("button",{type:"button",onClick:R,disabled:D,title:"Generate a stable identicon from the project name",className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md border border-ink/20 hover:border-ink/40 bg-paper text-ink text-xs font-medium transition-colors cursor-pointer shadow-2xs disabled:opacity-50",children:[v?e(p,{size:13,className:"animate-spin text-ink/60"}):e(zr,{size:13,className:"text-ink/60"}),e("span",{children:v?"Generating…":"Generate mark"})]}),r&&e("div",{className:"flex items-center gap-2 ml-1 pl-2 border-l border-ink/10",children:[e("img",{src:r,alt:"Current custom icon",className:"w-5 h-5 rounded-xs object-contain border border-ink/15",referrerPolicy:"no-referrer"}),e("span",{className:"text-[11px] text-ink/60",children:"Custom icon in use"}),e("button",{type:"button",onClick:()=>m(void 0),disabled:D,"aria-label":"Remove the custom icon",className:"p-0.5 rounded text-ink/40 hover:text-error transition-colors cursor-pointer disabled:opacity-50",children:e(h,{size:12})})]})]}),e("p",{className:"text-[11px] text-ink/50",children:["Any image works — it is scaled down to a ",Ao,"px mark. PNG, JPEG, WebP, GIF or SVG."]}),T&&e("p",{className:"text-[11px] text-error",children:T})]})}function vs({project:t,canDelete:r,isDeleting:l=!1,isRevealing:c=!1,models:m,accentColorOptions:g,onUpdateField:b,onUpdateFields:v,onReveal:x,onDeleteProject:P}){return e("div",{className:"p-6 md:p-8 space-y-7",children:[e(ls,{project:t,canDelete:r,isDeleting:l,onDelete:P}),e(ps,{name:t.name,onCommit:(y)=>b("name",y)}),e(us,{path:t.path,onCommit:(y)=>b("path",y),onReveal:x,isRevealing:c}),e(ms,{model:t.model,models:m,onSelectModel:(y)=>b("model",y)}),e(gs,{accentColor:t.accentColor,onSelectColor:(y)=>b("accentColor",y),...g&&g.length>0?{options:g}:{}}),e(hs,{currentIcon:t.icon,customIconUrl:t.customIconUrl,projectName:t.name,onSelectIcon:(y)=>v({icon:y,customIconUrl:void 0}),onSetCustomIcon:(y)=>v({customIconUrl:y,icon:y===void 0?"default":"custom"})})]})}function fg(t){return(t.replace(/[\\/]+$/,"").split(/[\\/]/).pop()??"").toLowerCase()}function hg({isSaving:t,onClose:r,onSubmit:l}){let[c,m]=n(""),[g,b]=n(""),[v,x]=n(!1),[P,y]=n(!0),[T,w]=n(null),A=(D)=>{if(b(D),P||!c.trim())m(fg(D)),y(!0)},R=async()=>{let D=c.trim();if(!D){w("Enter a project name.");return}w(null);try{await l({name:D,path:g.trim()}),r()}catch(C){w(C instanceof Error?C.message:String(C))}};return e(d,{children:e(X,{onClose:t?()=>{}:r,ariaLabel:"Add project",maxWidthClass:"max-w-[480px]",header:e("div",{className:"min-w-0",children:[e("h2",{className:"text-sm font-semibold text-ink",children:"Add project"}),e("p",{className:"text-[11px] text-ink/50",children:"A name, and the directory its chats run in."})]}),footer:e("div",{className:"flex items-center justify-end gap-2 px-5 py-3.5 border-t border-ink/10",children:[e("button",{type:"button",onClick:r,disabled:t,className:"px-3.5 py-1.5 rounded-md border border-ink/20 text-xs font-medium text-ink hover:bg-ink/5 transition-colors cursor-pointer disabled:opacity-50",children:"Cancel"}),e("button",{type:"button",onClick:()=>void R(),disabled:t,className:"px-3.5 py-1.5 rounded-md bg-ink text-canvas text-xs font-medium hover:opacity-90 transition-opacity cursor-pointer disabled:opacity-50 inline-flex items-center gap-1.5",children:[t&&e(p,{size:13,className:"animate-spin"}),e("span",{children:t?"Adding…":"Add project"})]})]}),children:[e("div",{className:"px-5 py-4 space-y-4",children:[e("div",{className:"space-y-1.5",children:[e("label",{htmlFor:"add-project-name",className:"block text-xs font-semibold text-ink",children:"Name"}),e("input",{id:"add-project-name",type:"text",value:c,onInput:(D)=>{m(D.currentTarget.value),y(!1)},placeholder:"e.g. kabmo",className:"w-full bg-paper border border-ink/20 rounded-md px-3 py-2 text-xs text-ink outline-none focus:border-ink/60 transition-colors"}),e("p",{className:"text-[11px] text-ink/50",children:"Unique: the sidebar identifies a workspace by it."})]}),e("div",{className:"space-y-1.5",children:[e("label",{htmlFor:"add-project-path",className:"block text-xs font-semibold text-ink",children:["Directory ",e("span",{className:"text-ink/40 font-normal",children:"(optional)"})]}),e("div",{className:"flex items-center gap-2",children:[e("input",{id:"add-project-path",type:"text",value:g,onInput:(D)=>b(D.currentTarget.value),placeholder:"~ or /absolute/path",spellcheck:!1,className:"flex-1 min-w-0 bg-paper border border-ink/20 rounded-md px-3 py-2 text-[11.5px] font-mono text-ink outline-none focus:border-ink/60 transition-colors"}),e("button",{type:"button",onClick:()=>x(!0),className:"shrink-0 inline-flex items-center gap-1 px-2.5 py-2 rounded-md border border-ink/20 hover:border-ink/40 text-[11px] font-medium text-ink transition-colors cursor-pointer",children:[e(en,{size:12}),e("span",{children:"Browse…"})]})]}),e("p",{className:"text-[11px] text-ink/50",children:"Sessions under this directory are listed in the project. Leave it empty for a grouping with no directory behind it."})]}),T&&e("p",{className:"text-[11px] text-error",children:T})]}),v&&e(Gc,{initialPath:g||void 0,onSelect:(D)=>{A(D),x(!1)},onClose:()=>x(!1)})]})})}function Ss({isOpen:t,isSaving:r,onClose:l,onSubmit:c}){if(!t)return null;return e(hg,{isSaving:r,onClose:l,onSubmit:c})}function Ns({project:t,isDeleting:r,error:l,onClose:c,onConfirm:m}){if(o(()=>{let g=(b)=>{if(b.key!=="Escape"||r)return;b.preventDefault(),c()};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[c,r]),!t)return null;return e(X,{onClose:r?()=>{}:c,zClass:"z-[70]",maxWidthClass:"max-w-[440px]",ariaLabel:"Delete project",header:e("div",{className:"flex items-center gap-3 min-w-0",children:[e(Q,{size:16,className:"text-error shrink-0"}),e("div",{className:"min-w-0",children:[e("h2",{className:"text-sm font-semibold text-ink",children:"Delete project?"}),e("p",{className:"text-[11px] text-ink/50 truncate",children:t.name})]})]}),footer:e("div",{className:"flex items-center justify-end gap-2 px-5 py-3.5 border-t border-ink/10",children:[e("button",{type:"button",onClick:c,disabled:r,className:"px-3.5 py-1.5 rounded-md border border-ink/20 text-xs font-medium text-ink hover:bg-ink/5 transition-colors cursor-pointer disabled:opacity-50",children:"Cancel"}),e("button",{type:"button",onClick:m,disabled:r,className:"px-3.5 py-1.5 rounded-md bg-error text-canvas text-xs font-medium hover:opacity-90 transition-opacity cursor-pointer disabled:opacity-50 flex items-center gap-1.5",children:[r?e(p,{size:13,className:"animate-spin"}):e(Q,{size:13}),e("span",{children:r?"Deleting…":"Delete project"})]})]}),children:e("div",{className:"px-5 py-4 space-y-3",children:[e("ul",{className:"text-[11.5px] leading-relaxed text-ink/70 space-y-1.5",children:[e("li",{children:"The workspace is unregistered from Kabmo — its place in the sidebar, its chats' grouping and its settings go."}),e("li",{children:t.path?"The directory itself is NOT deleted; a tombstone keeps omp discovery from re-adding it on the next boot.":"It has no directory, so nothing on disk is touched."}),e("li",{children:"Chat transcripts stay on disk under ~/.omp/agent/sessions."})]}),l&&e("div",{className:"flex items-start gap-2 px-3 py-2 rounded-md border border-error/30 bg-error/5 text-[11px] text-ink/75",children:[e(I,{size:13,className:"mt-0.5 shrink-0 text-error"}),e("span",{children:l})]})]})})}var Eo="worktreeDirectory",Mo="worktreeCarryIgnored";function Ps(t){if(t.missing)return"folder is missing — its chats still open";let r=t.detached?`detached @ ${t.head.slice(0,7)||"unknown"}`:`${t.branch} checked out here`,l=t.sessions===1?"1 chat":`${t.sessions} chats`,c=t.dirty===0?"clean":`${t.dirty} changed`;return`${r} · ${l} · ${c}`}function Ts(t){return!t.detached&&Boolean(t.branch)&&t.aheadOfStart===0}function Lo(t){if(t.isPrimary)return"The main checkout cannot be removed.";if(t.dirty>0)return`${t.dirty} uncommitted file${t.dirty===1?"":"s"} here would be lost.`;return null}function Is({root:t,folderId:r,onReport:l}){let{worktrees:c,base:m,loading:g,error:b,isRepo:v,refresh:x}=hf({root:t,folderId:r},Boolean(t)),[P,y]=n(()=>{let C=N(Eo);return typeof C==="string"?C:""}),[T,w]=n(()=>N(Mo)!==!1),[A,R]=n(null);if(!t)return e("p",{className:"text-xs text-ink/50",children:"Bind this workspace to a repository to manage its worktrees."});let D=c.filter((C)=>!C.isPrimary);return e("div",{className:"flex flex-col gap-4",children:[e("section",{className:"flex flex-col gap-1",children:[e("h3",{className:"text-xs font-semibold text-ink",children:"Worktrees"}),g&&e("p",{className:"text-[11px] text-ink/50",children:"Reading worktrees…"}),b&&e("p",{className:"text-[11px] text-error",title:b,children:["Worktrees could not be read: ",b]}),!g&&!b&&v===!1&&e("p",{className:"text-[11px] text-ink/50",children:"Worktrees need a Git repository."}),!g&&!b&&v!==!1&&D.length===0&&e("p",{className:"text-[11px] text-ink/50",children:"No worktrees yet."}),D.map((C)=>e("div",{className:"group flex items-center gap-2 rounded-md px-1 py-1.5 hover:bg-ink/5",children:[e("div",{className:"min-w-0 flex-1",children:[e("p",{className:"truncate text-xs text-ink",children:C.branch||"detached"}),e("p",{className:"truncate text-[10.5px] text-ink/50",title:C.path,children:Ps(C)})]}),e("button",{type:"button",disabled:A===C.path||Lo(C)!==null,"aria-label":`Remove worktree ${C.branch||C.path}`,title:Lo(C)??"Remove worktree",onClick:()=>{R(C.path),M0({root:t,folderId:r},C.path,{deleteBranch:Ts(C)}).then((M)=>(l(M.branchDeleted?`Removed ${C.branch} and its branch`:`Removed ${C.branch}${M.branchKept?" (branch kept)":""}`,"success"),x())).catch((M)=>l(M instanceof Error?M.message:String(M),"error")).finally(()=>R(null))},className:"shrink-0 rounded px-2 py-1 text-[11px] text-ink/60 hover:bg-error/10 hover:text-error disabled:opacity-40",children:"Remove"})]},C.path))]}),e("label",{className:"flex flex-col gap-1",children:[e("span",{className:"text-xs font-semibold text-ink",children:"Worktree location"}),e("input",{value:P,onChange:(C)=>y(C.currentTarget.value),onBlur:()=>qe(Eo,P.trim()),placeholder:m,className:"h-8 rounded-md border border-ink/15 bg-paper px-2 text-xs text-ink outline-none focus:border-ink/40"}),e("span",{className:"text-[10.5px] text-ink/50",children:["Where new worktrees are created. Relative paths are resolved against the project; ~ is your home directory. Empty uses ",m,"."]})]}),e("label",{className:"flex items-start gap-2",children:[e("input",{type:"checkbox",checked:T,onChange:(C)=>{let M=C.currentTarget.checked;w(M),qe(Mo,M)},className:`${be} mt-0.5`}),e("span",{className:"flex flex-col gap-0.5",children:[e("span",{className:"text-xs font-semibold text-ink",children:"Copy ignored files into new worktrees"}),e("span",{className:"text-[10.5px] text-ink/50",children:"A new worktree gets the project's ignored build folders (node_modules, .venv, target) copied in, so it works without reinstalling."})]})]})]})}var vg={full:"flex h-full w-full items-center justify-center text-xs text-ink/40",fill:"flex-1 flex items-center justify-center text-xs text-ink/40"},De=({variant:t="full",children:r})=>e("div",{className:vg[t],children:r});var Cn="";function As(t){if(!k(t))return!1;return typeof t.id==="string"&&typeof t.name==="string"&&typeof t.path==="string"}function xg(t){if(!k(t))return!1;return typeof t.label==="string"&&typeof t.value==="string"&&typeof t.bgHex==="string"}function yg(t,r){return t.some((c)=>c.id===r.id)?t.map((c)=>c.id===r.id?r:c):[...t,r]}function Rs(t){let[r,l]=n([]),[c,m]=n([]),[g,b]=n(Cn),[v,x]=n(!0),[P,y]=n(null),[T,w]=n(!1),[A,R]=n(!1),D=i(t);D.current=t;let C=a((H)=>{if(!k(H))return;let V=Array.isArray(H.projects)?H.projects.filter(As):null;if(V)l(V),b((ee)=>V.some((ne)=>ne.id===ee)?ee:V[0]?.id??Cn);if(Array.isArray(H.accentColorOptions))m(H.accentColorOptions.filter(xg))},[]),M=a(async()=>{try{let H=await fetch("/api/settings/projects"),V=await H.json();if(!H.ok){let ee=k(V)&&typeof V.error==="string"?V.error:`HTTP ${H.status}`;y(ee);return}y(null),C(V)}catch(H){y(H instanceof Error?H.message:String(H))}},[C]);o(()=>{let H=!0;return(async()=>{if(await M(),H)x(!1)})(),()=>{H=!1}},[M]);let L=at().folders,O=u(()=>L.map((H)=>`${H.id}:${H.name}:${H.model??""}:${H.icon??""}:${H.accentColor??""}:${H.project_path??""}:${H.isPinned?1:0}`).join("|"),[L]);o(()=>{if(!O)return;M()},[O,M]);let _=a(async(H,V)=>{if(H.folderId===void 0)return D.current("This project has no workspace row to save to."),!1;let ee=r;l((ue)=>ue.map((le)=>le.id===H.id?{...le,...V}:le));let ne={folderId:H.folderId};for(let[ue,le]of Object.entries(V))ne[ue]=le===void 0?null:le;try{let ue=await fetch("/api/settings/projects",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({project:ne})}),le=await ue.json().catch(()=>null);if(!ue.ok){let te=k(le)&&typeof le.error==="string"?le.error:`HTTP ${ue.status}`;throw Error(te)}let me=k(le)&&As(le.project)?le.project:null;if(me)l((te)=>yg(te,me));return!0}catch(ue){return l(ee),D.current(ue instanceof Error?ue.message:String(ue)),!1}},[r]),j=a((H,V,ee)=>_(H,{[V]:ee}),[_]),K=a((H,V)=>_(H,V),[_]),G=a(async(H)=>{w(!0);try{let V=await fetch("/api/folders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:H.name,path:H.path})}),ee=await V.json().catch(()=>null),ne=k(ee)?ee.folder:null,ue=k(ne)&&typeof ne.id==="number"?ne.id:null;if(!V.ok||!k(ee)||ee.success!==!0||ue===null){let le=k(ee)&&typeof ee.error==="string"?ee.error:`HTTP ${V.status}`;throw Error(le)}await M(),b(`folder-${ue}`)}catch(V){throw D.current(V instanceof Error?V.message:String(V)),V}finally{w(!1)}},[M]),z=a(async(H)=>{R(!0);try{let V=await fetch(`/api/settings/projects?id=${encodeURIComponent(H.id)}`,{method:"DELETE"}),ee=await V.json().catch(()=>null);if(!V.ok||!k(ee)||ee.success!==!0){let ne=k(ee)&&typeof ee.error==="string"?ee.error:`HTTP ${V.status}`;throw Error(ne)}l((ne)=>{let ue=ne.filter((le)=>le.id!==H.id);return b((le)=>le===H.id?ue[0]?.id??Cn:le),ue})}catch(V){throw D.current(V instanceof Error?V.message:String(V)),V}finally{R(!1)}},[]),W=po((H)=>Array.isArray(H.modelList)&&H.modelList.length>0?H.modelList.map((V)=>({provider:V.provider,id:V.id,name:V.name||V.id})):void 0)??[],q=r.find((H)=>H.id===g)??r[0]??null;return{projects:r,selected:q,selectedId:q?.id??Cn,select:b,accentColorOptions:c,models:W,isLoading:v,loadError:P,refresh:M,updateField:j,updateFields:K,isAdding:T,addProject:G,isDeleting:A,deleteProject:z,onError:t}}function Ms(){let t=Pe(),{pushToast:r}=We(),[l,c]=n(!1),[m,g]=n(null),[b,v]=n(null),[x,P]=n(null),y=Rs((D)=>r(D,"error",{duration:7000})),{folders:T}=at(),w=async(D)=>{if(!D.path||D.folderId===void 0){r("This project is not bound to a directory.","error");return}P(D.id);try{let C=await fetch(`/api/folders/${D.folderId}/open`,{method:"POST"}),M=await C.json().catch(()=>null);if(!C.ok){let L=M&&typeof M==="object"&&"error"in M&&typeof M.error==="string"?M.error:`HTTP ${C.status}`;throw Error(L)}}catch(C){r(C instanceof Error?C.message:String(C),"error")}finally{P(null)}},A=async()=>{if(!m)return;v(null);try{await y.deleteProject(m),g(null),t.back()}catch(D){v(D instanceof Error?D.message:String(D))}};if(y.isLoading)return e(De,{children:"Loading projects…"});let R=y.selected;return e("div",{className:"w-full h-full flex flex-col overflow-hidden bg-paper text-ink",children:[e(Ce,{pane:t.pane,onBack:t.back,listLabel:"Projects",list:e(ss,{projects:y.projects,selectedProjectId:R?.id??"",onSelectProject:(D)=>{y.select(D),t.openDetail()},onAddProject:()=>c(!0),onTogglePin:(D)=>{y.updateField(D,"isPinned",!D.isPinned)},isAdding:y.isAdding,folderFacts:T,loadError:y.loadError}),detail:R?e("div",{className:"flex-1 min-h-0 scrollbar-overlay-container flex flex-col",children:[e(vs,{project:R,canDelete:y.projects.length>1,isDeleting:y.isDeleting&&m?.id===R.id,isRevealing:x===R.id,models:y.models,accentColorOptions:y.accentColorOptions,onUpdateField:(D,C)=>{y.updateField(R,D,C)},onUpdateFields:(D)=>{y.updateFields(R,D)},onReveal:()=>void w(R),onDeleteProject:()=>{v(null),g(R)}}),e("div",{className:"border-t border-ink/10 px-6 md:px-8 py-4",children:e(Is,{root:R.path||null,folderId:R.folderId??null,onReport:(D,C)=>r(D,C??"success",{duration:6000})})})]}):e("div",{className:"flex-1 flex items-center justify-center px-6 text-center",children:e("div",{className:"space-y-2",children:[e("p",{className:"text-xs text-ink/60",children:"No project selected."}),e("button",{type:"button",onClick:()=>c(!0),className:"text-[11px] font-medium text-ink underline underline-offset-2 hover:no-underline cursor-pointer",children:"Add a project"})]})})}),e(Ss,{isOpen:l,isSaving:y.isAdding,onClose:()=>c(!1),onSubmit:async(D)=>{await y.addProject(D),t.openDetail()}}),e(Ns,{project:m,isDeleting:y.isDeleting,error:b,onClose:()=>{g(null),v(null)},onConfirm:()=>void A()})]})}var kg=/^[A-Za-z0-9_-]{1,64}$/,Ls=/[<>\n\r]/;function Ds(t){if(!t||typeof t!=="object"||Array.isArray(t))return!1;let r=t;return typeof r.id==="string"&&kg.test(r.id)&&typeof r.name==="string"&&r.name.trim().length>0&&r.name.length<=128&&!Ls.test(r.name)&&typeof r.email==="string"&&r.email.trim().length>0&&r.email.length<=254&&r.email.includes("@")&&!Ls.test(r.email)}var Us="w-full bg-paper border border-ink/20 rounded-md px-2.5 py-1.5 text-[11px] text-ink placeholder-ink/40 outline-none focus:border-ink/40 transition-colors";function $s({settings:t,onUpdate:r}){let l=t.gitIdentities??[],[c,m]=n(null),[g,b]=n(!0),[v,x]=n(null),[P,y]=n(null),[T,w]=n(""),[A,R]=n("");o(()=>{let _=!0;return b(!0),fetch("/api/settings/git-identity").then(async(j)=>{let K=await j.json().catch(()=>null);if(!j.ok||!K)throw Error(K?.error||`Request failed (HTTP ${j.status})`);if(_)m({global:K.global,appliedId:K.appliedId})}).catch((j)=>{if(_)y(j instanceof Error?j.message:String(j))}).finally(()=>{if(_)b(!1)}),()=>{_=!1}},[]);let D=async(_)=>{x(_||"global"),y(null);try{let j=await fetch("/api/settings/git-identity",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identityId:_})}),K=await j.json().catch(()=>null);if(!j.ok||!K)throw Error(K?.error||`Request failed (HTTP ${j.status})`);m({global:K.global,appliedId:K.appliedId})}catch(j){y(j instanceof Error?j.message:String(j))}finally{x(null)}},C=()=>{let _={id:typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,name:T.trim(),email:A.trim()};if(!Ds(_)){y("Enter a name and a valid email address.");return}r({gitIdentities:[...l,_]}),w(""),R(""),y(null)},M=async(_)=>{if(c?.appliedId===_)await D("");r({gitIdentities:l.filter((j)=>j.id!==_)})},L=c?.appliedId??"",O=c?.global??null;return e("section",{className:"space-y-3",children:[e("div",{children:[e("h4",{className:"text-sm font-semibold text-ink",children:"Commit Identity"}),e("p",{className:"text-[11px] text-ink/60 mt-0.5",children:"The name and email a commit carries. Applying an identity writes it to your global git config."})]}),e("div",{className:"rounded-lg border border-ink/15 bg-paper p-3.5 space-y-2",children:[e("label",{className:"block text-[10px] font-semibold uppercase tracking-wider text-ink/45",children:"Commit as"}),e(Z,{ariaLabel:"Commit identity",value:L,onChange:(_)=>void D(_),disabled:g||v!==null,placeholder:"Global config",searchable:l.length>8,options:[{value:"",label:"Global config",hint:"git's own user.name / user.email"},...l.map((_)=>({value:_.id,label:_.name,hint:_.email}))]}),e("p",{className:"text-[10px] text-ink/50",children:[g?"Reading git config…":O?`Current: ${O.name} <${O.email}>`:"No identity configured",v?" · applying…":""]})]}),l.length>0&&e("details",{className:"rounded-lg border border-ink/15 bg-paper",children:[e("summary",{className:"px-3.5 py-2.5 text-[10px] font-semibold uppercase tracking-wider text-ink/45 cursor-pointer select-none",children:["Manage saved identities (",l.length,")"]}),e("div",{className:"divide-y divide-ink/10 border-t border-ink/10 max-h-48 overflow-y-auto",children:l.map((_)=>e("div",{className:"flex items-center gap-3 px-3.5 py-2.5",children:[e("div",{className:"min-w-0 flex-1",children:[e("div",{className:"text-xs font-semibold text-ink truncate",children:_.name}),e("div",{className:"text-[10px] text-ink/50 truncate",children:_.email})]}),e("button",{type:"button",onClick:()=>void M(_.id),"aria-label":`Remove ${_.name}`,className:"p-1.5 rounded text-ink/40 hover:text-error hover:bg-ink/5 transition-colors cursor-pointer",children:e(Q,{size:12})})]},_.id))})]}),P&&e("p",{className:"text-[10px] text-error",children:P}),e("div",{className:"rounded-lg border border-ink/15 bg-paper p-3.5 space-y-3",children:[e("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[e("input",{type:"text",value:T,onChange:(_)=>{w(_.currentTarget.value),y(null)},placeholder:"User name",className:Us}),e("input",{type:"text",value:A,onChange:(_)=>{R(_.currentTarget.value),y(null)},onKeyDown:(_)=>{if(_.key==="Enter")_.preventDefault(),C()},placeholder:"Email address",className:Us})]}),e("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e("p",{className:"text-[10px] text-ink/50",children:"Saved identities are a library; pick one above to apply it globally."}),e("button",{type:"button",onClick:C,className:"flex items-center gap-1.5 px-2.5 py-1 rounded bg-ink text-canvas text-[10px] font-medium hover:bg-ink/90 transition-colors cursor-pointer",children:[e(F,{size:11})," Add identity"]})]})]}),e("p",{className:"text-[10px] text-ink/45 leading-relaxed",children:"Applying writes `user.name` and `user.email` to your global git config. Global config restores what was there before Kabmo wrote."})]})}var Fs=[{key:"scope",description:"“the staged change set”, or “the commit being amended”."},{key:"branch",description:"The current branch name."},{key:"recent_commits",description:"The last ten subjects, newest first."},{key:"files",description:"The files in this commit."},{key:"diff",description:"The staged patch. Required."},{key:"truncated",description:"A note when the diff was cut to fit the model."}],It=`You write git commit messages. Return only the commit message, no prose, no code fences.
|
|
2
2
|
|
|
3
3
|
The diff below is {{scope}} — exactly what this commit will contain. Do not describe unstaged or untracked changes; they are not part of this commit.
|
|
4
4
|
|