@yuriai/web 0.2.0-beta.1 → 0.2.0-beta.11
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 +5 -1
- package/dist/assets/{AgentAvatar-k7s0gPMz.js → AgentAvatar-BeM4lXfE.js} +1 -1
- package/dist/assets/{AssistantView-CKSBN9HQ.js → AssistantView-CuYOySq7.js} +3 -3
- package/dist/assets/DiagramView-Dg3mmHBS.js +1 -0
- package/dist/assets/{FadeInOnReveal-DuelAGXz.js → FadeInOnReveal-B8BCjwPb.js} +1 -1
- package/dist/assets/GuiPluginLoadingNotice-DjO_uy_0.js +1 -0
- package/dist/assets/GuiPluginSurface-yIOzahfo.js +1 -0
- package/dist/assets/GuiPluginWindow-jUuZl9JF.js +1 -0
- package/dist/assets/{Icon-BX4GW-k_.js → Icon-DofI60x2.js} +1 -1
- package/dist/assets/{ImageLoadingPlaceholder-OnlbaJBG.js → ImageLoadingPlaceholder-CZSbfJci.js} +1 -1
- package/dist/assets/{LoadingImage-DDEN3tpH.js → LoadingImage-BA2Cwg_Q.js} +1 -1
- package/dist/assets/MarkdownRenderer-CXQc3p23.js +2 -0
- package/dist/assets/MarkdownRendererImpl-Bik13Wcr.js +10 -0
- package/dist/assets/MarkstreamRendererImpl-DULutx8r.js +3 -0
- package/dist/assets/{MobileDetailNavigation-K8AyOZUE.js → MobileDetailNavigation-C6-wtXZH.js} +1 -1
- package/dist/assets/MobileResizableSheet-CuRgnS-k.js +1 -0
- package/dist/assets/MobileShareBridge-m6bxtE6w.js +4 -0
- package/dist/assets/MobileTabPageHeader-Cm0sKyHi.js +2 -0
- package/dist/assets/{MultiRunWindow-CLGnrnLn.js → MultiRunWindow-uYxVeVne.js} +1 -1
- package/dist/assets/OnboardingScreen-hvLlaoKt.js +1 -0
- package/dist/assets/{OverlayScrollbar-C-Od80p5.js → OverlayScrollbar-Bi17Olmj.js} +1 -1
- package/dist/assets/SettingsView-B2YuF8r0.js +26 -0
- package/dist/assets/{SettingsWindow-B-z25PVS.js → SettingsWindow--qnxFujm.js} +1 -1
- package/dist/assets/TerminalView-6gTVdIYb.js +8 -0
- package/dist/assets/{ToolOutputDialog-CMiPmx7q.js → ToolOutputDialog-C5kcd8b5.js} +3 -3
- package/dist/assets/{YuriLogo-DvKVga_x.js → YuriLogo-D9cfwLdW.js} +1 -1
- package/dist/assets/appThemeRegistry-BnfnOg7_.js +1 -0
- package/dist/assets/{assistant-attachment-cache-BIxi1vPM.js → assistant-attachment-cache-Cqs65voA.js} +1 -1
- package/dist/assets/button-CT7WL0lp.js +1 -0
- package/dist/assets/{capgoAdapter-CEzjhZ15.js → capgoAdapter-BPj5WQuJ.js} +1 -1
- package/dist/assets/clipboard-Bj6jZiuP.js +1 -0
- package/dist/assets/{collapsible-BT03pxhm.js → collapsible-UDWFNcbF.js} +1 -1
- package/dist/assets/desktop-CfMDfs6c.js +1 -0
- package/dist/assets/desktopHosts-BEzVZGiW.js +1 -0
- package/dist/assets/desktopRelayRestore-aNSNYVEB.js +1 -0
- package/dist/assets/device-BDrEmxBm.js +2 -0
- package/dist/assets/{diagram-1AdssMXJ.js → diagram-BxF_wECt.js} +1 -1
- package/dist/assets/dialog-BpsbJk8Y.js +1 -0
- package/dist/assets/download-progress-MobTWf23.js +1 -0
- package/dist/assets/dropdown-menu.styles-D6MTYFvx.js +1 -0
- package/dist/assets/{es-BQC0Cjvs.js → es-iuy57SFI.js} +2 -2
- package/dist/assets/{fileMentionTouchSelection-BCTXha9_.js → fileMentionTouchSelection-mWJrsy1N.js} +2 -2
- package/dist/assets/{path-utils-QNmCUIdP.js → fileQueries-voABZL1r.js} +1 -1
- package/dist/assets/fileReferenceActions-CgsqIeIM.js +1 -0
- package/dist/assets/{fileReferenceParser-D6pFtXag.js → fileReferenceParser-1HHDBUum.js} +1 -1
- package/dist/assets/{fr-BEs3arTt.js → fr-LyrJa2Qb.js} +2 -2
- package/dist/assets/gitApi-_0x9rm4Q.js +10 -0
- package/dist/assets/gitApiHttp-BKM9BbT8.js +7 -0
- package/dist/assets/gui-CTKa6rbU.js +1 -0
- package/dist/assets/host-1RDqqL9w.js +1 -0
- package/dist/assets/{image-loading-ClwkpTt4.js → image-loading-ClQZD7Z9.js} +1 -1
- package/dist/assets/{input-BhopRvzu.js → input-D86Oqf3B.js} +1 -1
- package/dist/assets/insertionBoundaries-DK8Nfduw.js +1 -0
- package/dist/assets/{ja-DwjQqURQ.js → ja-QqNYiTeY.js} +2 -2
- package/dist/assets/{ko-5ebvOeiM.js → ko-CL-s2hwZ.js} +2 -2
- package/dist/assets/main-CtUjac3v.js +169 -0
- package/dist/assets/main-mDmZG5F3.js +2 -0
- package/dist/assets/{markdownHeightCache-Ci4Phpkv.js → markdownHeightCache-DB_NzPGt.js} +1 -1
- package/dist/assets/mcpQueries-CzVXx1pS.js +1 -0
- package/dist/assets/miniChat-B1m57jX8.js +2 -0
- package/dist/assets/mobile-CwqGwE_K.js +2 -0
- package/dist/assets/{mobileBackNavigation-htjL23a2.js → mobileBackNavigation-BGpGSVKE.js} +1 -1
- package/dist/assets/multirun-LSYLvvZF.js +3 -0
- package/dist/assets/native-BMAEg2E6.js +1 -0
- package/dist/assets/native-config-PMhVH43d.js +1 -0
- package/dist/assets/native-errors-06if6eu-.js +1 -0
- package/dist/assets/path-utils-jGozTg9d.js +1 -0
- package/dist/assets/persistence-Ck0wskDR.js +3 -0
- package/dist/assets/{pl-ptv06x7p.js → pl-AKGY_sFU.js} +2 -2
- package/dist/assets/platform-kv0OsX45.js +1 -0
- package/dist/assets/{projectMeta-tXx77gZG.js → projectMeta-Ds630MLq.js} +1 -1
- package/dist/assets/{pt-BR-DREchPJf.js → pt-BR-BFRFGU_b.js} +2 -2
- package/dist/assets/{queryRuntime-BuRnpVtK.js → queryRuntime-CpsVmMzy.js} +1 -1
- package/dist/assets/readiness-79gVgf9B.js +1 -0
- package/dist/assets/reasoning-projection-client-BEhVknv9.js +1 -0
- package/dist/assets/renderElectronMiniChatApp-yEPiD9np.js +2 -0
- package/dist/assets/renderMobileApp-6XHYSl6x.js +28 -0
- package/dist/assets/runtime-fetch-BclMrQHc.js +1 -0
- package/dist/assets/{runtime-file-download-CwMwe_O9.js → runtime-file-download-CZ2qtdn9.js} +1 -1
- package/dist/assets/runtime-file-resource-CEkq2Pj2.js +2 -0
- package/dist/assets/runtime-file-store-BVRgEtI-.js +1 -0
- package/dist/assets/runtime-switch-WzPG6NMR.js +1 -0
- package/dist/assets/runtimeConfig-CNms027t.js +2 -0
- package/dist/assets/runtimeEndpointReset-CiSl3D_G.js +149 -0
- package/dist/assets/{runtimeEndpointReset-DmY_4gYI.css → runtimeEndpointReset-HYSytKO-.css} +1 -1
- package/dist/assets/{scheduledTaskNavigation-B71VHwFK.js → scheduledTaskNavigation-tOa4Azh_.js} +1 -1
- package/dist/assets/scheduling-DCTDfxV-.js +1 -0
- package/dist/assets/sessionChangeSummary-BU-_7fX2.js +1 -0
- package/dist/assets/sessionLookup-B8YOzsKe.js +1 -0
- package/dist/assets/{sortable-tabs-strip-CnaQoAAB.js → sortable-tabs-strip-CSXgXPyP.js} +1 -1
- package/dist/assets/speechSettingsQueries-DXe6PVAa.js +4 -0
- package/dist/assets/src-D3pZqEZM.css +2 -0
- package/dist/assets/{store-Dy_l1m3m.js → store-CGMD02tA.js} +3 -3
- package/dist/assets/terminalApi-DbFIyF-J.js +1 -0
- package/dist/assets/{textarea-CaGuTnhs.js → textarea-CMvxcQhR.js} +1 -1
- package/dist/assets/{tooltip-Bxj4llmx.js → tooltip-CnIKZ6bg.js} +1 -1
- package/dist/assets/types-xdR_RNnd.js +2 -0
- package/dist/assets/{uk-HcldNNPe.js → uk-C21_nQhw.js} +2 -2
- package/dist/assets/{useAppFontEffects-DDdQeaoM.js → useAppFontEffects-BWa0kmau.js} +53 -53
- package/dist/assets/{useAssistantUIStore-D7JZlg_Q.js → useAssistantUIStore-4a569vpy.js} +1 -1
- package/dist/assets/useDesktopWindowControlsLayout-DlxAzo2A.js +1 -0
- package/dist/assets/useEffectiveDirectory-PrUfhsEz.js +1 -0
- package/dist/assets/{useFontPreferences-D-XYUHOV.js → useFontPreferences-Dx-plsme.js} +1 -1
- package/dist/assets/useMobileNavigationStore-_TdcYM33.js +417 -0
- package/dist/assets/useUIStore-DqtgX2FB.js +1 -0
- package/dist/assets/{useWorkerHighlightedLines-OsRfq7LD.js → useWorkerHighlightedLines-CQTgx3GG.js} +1 -1
- package/dist/assets/{vendor-effect-DXlObQuU.js → vendor-effect-DV9F8PTZ.js} +1 -1
- package/dist/assets/vendor-opencode-client-fxfj4IA_.js +12 -0
- package/dist/assets/{vendor-opencode-plugin-DhwD3Tat.js → vendor-opencode-plugin-CQ5ogY33.js} +1 -1
- package/dist/assets/vendor-solid-js-Dmt4_-Zk.js +1 -0
- package/dist/assets/yuri-mark-black-DxEnMyCE.svg +1 -0
- package/dist/assets/{zh-CN-Dg3fYgX1.js → zh-CN-C7PVNr9_.js} +2 -2
- package/dist/assets/{zh-TW-FIWAmsGT.js → zh-TW-DLLoB3-e.js} +2 -2
- package/dist/index.html +27 -23
- package/dist/mini-chat.html +30 -34
- package/dist/mobile.html +33 -23
- package/package.json +3 -3
- package/server/index.d.ts +2 -0
- package/server/index.js +9 -13
- package/server/lib/content-search/DOCUMENTATION.md +33 -13
- package/server/lib/content-search/event-ingest.integration.test.js +52 -0
- package/server/lib/content-search/event-repair.test.js +48 -0
- package/server/lib/content-search/index.js +3 -2
- package/server/lib/content-search/runtime.js +75 -10
- package/server/lib/content-search/runtime.test.js +91 -1
- package/server/lib/content-search/service.js +19 -2
- package/server/lib/fs/DOCUMENTATION.md +1 -0
- package/server/lib/fs/binary-file.d.ts +3 -0
- package/server/lib/fs/binary-file.js +21 -0
- package/server/lib/fs/routes.js +1 -21
- package/server/lib/fs/routes.test.js +43 -0
- package/server/lib/opencode/DOCUMENTATION.md +14 -9
- package/server/lib/opencode/ensure-cli.js +12 -14
- package/server/lib/opencode/ensure-cli.test.js +8 -8
- package/server/lib/opencode/env-runtime.test.js +1 -1
- package/server/lib/opencode/gui-plugin-source.js +14 -0
- package/server/lib/opencode/gui-plugin-source.test.js +28 -0
- package/server/lib/opencode/lifecycle.js +19 -1
- package/server/lib/opencode/opencode2-pin.js +3 -4
- package/server/lib/opencode/opencode2-pin.test.js +5 -4
- package/server/lib/opencode/owned-runtime-upgrade.js +4 -11
- package/server/lib/opencode/owned-runtime-upgrade.test.js +4 -0
- package/server/lib/opencode/plugin-gui-response.d.ts +7 -0
- package/server/lib/opencode/plugin-gui-response.js +62 -0
- package/server/lib/opencode/plugin-gui-response.test.js +89 -0
- package/server/lib/opencode/proxy.js +32 -0
- package/server/lib/opencode/routes.js +2 -1
- package/server/lib/opencode/routes.test.js +1 -1
- package/server/lib/opencode/runtime-contract.js +3 -4
- package/server/lib/opencode/session-directory-runtime.js +2 -13
- package/server/lib/opencode/session-directory-runtime.test.js +69 -4
- package/server/lib/opencode/upgrade-screen.js +9 -5
- package/server/lib/opencode/upgrade-screen.test.js +20 -0
- package/server/lib/opencode/version-alignment.test.js +6 -6
- package/server/lib/question-auto-delegate/DOCUMENTATION.md +5 -1
- package/server/lib/question-auto-delegate/core.d.ts +2 -2
- package/server/lib/question-auto-delegate/runtime.js +11 -27
- package/server/lib/question-auto-delegate/runtime.test.js +25 -0
- package/server/lib/relay/DOCUMENTATION.md +1 -0
- package/server/lib/request-cors.js +2 -2
- package/server/lib/request-cors.test.js +3 -0
- package/server/lib/scheduled-tasks/DOCUMENTATION.md +5 -0
- package/server/lib/scheduled-tasks/runtime.js +16 -0
- package/server/lib/scheduled-tasks/runtime.test.js +33 -0
- package/server/lib/session-index/DOCUMENTATION.md +22 -8
- package/server/lib/session-index/routes.js +3 -1
- package/server/lib/session-index/routes.test.js +2 -0
- package/server/lib/session-index/service.js +23 -0
- package/server/lib/session-index/sync-runtime.js +78 -20
- package/server/lib/session-index/sync-runtime.test.js +23 -5
- package/server/plugin-gui-proxy.test.js +134 -0
- package/dist/assets/DiagramView-RmE0gXVx.js +0 -1
- package/dist/assets/GuiPluginSurface-DWGYdQLr.js +0 -1
- package/dist/assets/GuiPluginWindow-CLgceKTX.js +0 -1
- package/dist/assets/MarkdownRenderer-7zj1J9EY.js +0 -2
- package/dist/assets/MarkdownRendererImpl-lXwdc-kG.js +0 -10
- package/dist/assets/MarkstreamRendererImpl-B5or38qI.js +0 -3
- package/dist/assets/MobileResizableSheet-THVjYOSA.js +0 -1
- package/dist/assets/MobileShareBridge-9RP7ni2F.js +0 -4
- package/dist/assets/MobileTabPageHeader-ZZTO3phT.js +0 -2
- package/dist/assets/OnboardingScreen-BHomvleJ.js +0 -1
- package/dist/assets/SettingsView-BlruenEQ.js +0 -26
- package/dist/assets/TerminalView-CRyh7cpp.js +0 -8
- package/dist/assets/appThemeRegistry-e1zU7R2C.js +0 -1
- package/dist/assets/button-4sNruiRJ.js +0 -1
- package/dist/assets/desktopHosts-DNc_ga0E.js +0 -1
- package/dist/assets/desktopRelayRestore-BWl7Zy8M.js +0 -1
- package/dist/assets/device-CCFr0Aht.js +0 -2
- package/dist/assets/dialog-DLc0nKV7.js +0 -1
- package/dist/assets/dropdown-menu.styles-4tACRbYU.js +0 -1
- package/dist/assets/fileReferenceActions-B0iaTe0c.js +0 -1
- package/dist/assets/gitApi-DIwsfb2k.js +0 -10
- package/dist/assets/gui-CTnzY_cr.js +0 -1
- package/dist/assets/host-CEMl6ZlP.js +0 -1
- package/dist/assets/insertionBoundaries-CFDcBxaK.js +0 -1
- package/dist/assets/main-DBJ19laz.js +0 -169
- package/dist/assets/main-XMhFdW0K.js +0 -2
- package/dist/assets/mcpQueries-f0cDQQKu.js +0 -1
- package/dist/assets/miniChat-BVTtOggs.js +0 -2
- package/dist/assets/mobile-0X6dYZAB.js +0 -2
- package/dist/assets/multirun-mBD1Y3Eb.js +0 -3
- package/dist/assets/native-config-B9V18QgV.js +0 -1
- package/dist/assets/persistence-CcGnI3Ek.js +0 -3
- package/dist/assets/platform-HIkm-CHn.js +0 -7
- package/dist/assets/readiness-Da7jHHss.js +0 -1
- package/dist/assets/renderElectronMiniChatApp-DwIydDUm.js +0 -2
- package/dist/assets/renderMobileApp-TNkNM5Zx.js +0 -28
- package/dist/assets/runtime-fetch-BAN5Gnnp.js +0 -1
- package/dist/assets/runtime-file-resource-yx0xpKe-.js +0 -2
- package/dist/assets/runtime-switch-CAZiOV2G.js +0 -1
- package/dist/assets/runtimeConfig-ChR1FQv1.js +0 -2
- package/dist/assets/runtimeEndpointReset-CxMEqgDx.js +0 -149
- package/dist/assets/sessionChangeSummary-DDbB-N5p.js +0 -1
- package/dist/assets/sessionLookup-CsJ8Vrq8.js +0 -1
- package/dist/assets/speechSettingsQueries-X0jStYkm.js +0 -4
- package/dist/assets/src-CZA3gFyl.css +0 -2
- package/dist/assets/terminalApi-DVZUO2Uv.js +0 -1
- package/dist/assets/types-Dfj_Rn0L.js +0 -2
- package/dist/assets/useDesktopWindowControlsLayout-BFyKfmUX.js +0 -1
- package/dist/assets/useEffectiveDirectory-CST6AXTm.js +0 -1
- package/dist/assets/useMobileNavigationStore-BdWv0Da4.js +0 -417
- package/dist/assets/useUIStore-NMQx_cnG.js +0 -1
- package/dist/assets/vendor-opencode-client-Eb-_7KbZ.js +0 -23
- package/dist/assets/vendor-solid-js-CXSXbuQO.js +0 -1
package/dist/index.html
CHANGED
|
@@ -560,39 +560,44 @@
|
|
|
560
560
|
opacity: 0.72;
|
|
561
561
|
}
|
|
562
562
|
</style>
|
|
563
|
-
<script type="module" crossorigin src="/assets/main-
|
|
563
|
+
<script type="module" crossorigin src="/assets/main-mDmZG5F3.js"></script>
|
|
564
564
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
565
565
|
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-ef9W7A43.js">
|
|
566
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-
|
|
567
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
566
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-WzPG6NMR.js">
|
|
567
|
+
<link rel="modulepreload" crossorigin href="/assets/reasoning-projection-client-BEhVknv9.js">
|
|
568
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-fetch-BclMrQHc.js">
|
|
568
569
|
<link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
|
|
570
|
+
<link rel="modulepreload" crossorigin href="/assets/desktop-CfMDfs6c.js">
|
|
571
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-BEzVZGiW.js">
|
|
572
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-aNSNYVEB.js">
|
|
569
573
|
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CdzJ6My_.js">
|
|
570
574
|
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-o69pgTEK.js">
|
|
575
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-DV9F8PTZ.js">
|
|
576
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-fxfj4IA_.js">
|
|
571
577
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
|
|
572
578
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
|
|
573
|
-
<link rel="modulepreload" crossorigin href="/assets/useUIStore-
|
|
579
|
+
<link rel="modulepreload" crossorigin href="/assets/useUIStore-DqtgX2FB.js">
|
|
574
580
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-BP2cRVqX.js">
|
|
575
581
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-BWz0ose6.js">
|
|
576
|
-
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-
|
|
582
|
+
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-CpsVmMzy.js">
|
|
577
583
|
<link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
|
|
578
584
|
<link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
|
|
579
|
-
<link rel="modulepreload" crossorigin href="/assets/persistence-
|
|
580
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-DNc_ga0E.js">
|
|
581
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-BWl7Zy8M.js">
|
|
582
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-DXlObQuU.js">
|
|
583
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-Eb-_7KbZ.js">
|
|
585
|
+
<link rel="modulepreload" crossorigin href="/assets/persistence-Ck0wskDR.js">
|
|
584
586
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-CdqCAt40.js">
|
|
585
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
587
|
+
<link rel="modulepreload" crossorigin href="/assets/fileQueries-voABZL1r.js">
|
|
588
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
|
|
589
|
+
<link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
|
|
586
590
|
<link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
|
|
587
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-
|
|
588
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
589
|
-
<link rel="modulepreload" crossorigin href="/assets/terminalApi-
|
|
590
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-
|
|
591
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
592
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
593
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
594
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
595
|
-
<link rel="
|
|
591
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-CEkq2Pj2.js">
|
|
592
|
+
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-BKM9BbT8.js">
|
|
593
|
+
<link rel="modulepreload" crossorigin href="/assets/terminalApi-DbFIyF-J.js">
|
|
594
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-CZ2qtdn9.js">
|
|
595
|
+
<link rel="modulepreload" crossorigin href="/assets/platform-kv0OsX45.js">
|
|
596
|
+
<link rel="modulepreload" crossorigin href="/assets/types-xdR_RNnd.js">
|
|
597
|
+
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-BPj5WQuJ.js">
|
|
598
|
+
<link rel="modulepreload" crossorigin href="/assets/native-config-PMhVH43d.js">
|
|
599
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-CNms027t.js">
|
|
600
|
+
<link rel="stylesheet" crossorigin href="/assets/src-D3pZqEZM.css">
|
|
596
601
|
</head>
|
|
597
602
|
<body class="h-full bg-background text-foreground">
|
|
598
603
|
<!-- Keep the startup layer outside #root. React replaces every child of
|
|
@@ -619,7 +624,7 @@
|
|
|
619
624
|
<div id="root" class="h-full"></div>
|
|
620
625
|
|
|
621
626
|
<script>
|
|
622
|
-
// Fallback: hide loading screen
|
|
627
|
+
// Fallback: hide loading screen only when React has committed content.
|
|
623
628
|
// Desktop shells manage their own splash via the injected boot outcome;
|
|
624
629
|
// do not force-remove for desktop windows.
|
|
625
630
|
setTimeout(function() {
|
|
@@ -627,8 +632,7 @@
|
|
|
627
632
|
return;
|
|
628
633
|
}
|
|
629
634
|
var loading = document.getElementById('initial-loading');
|
|
630
|
-
if (loading) {
|
|
631
|
-
console.warn('Loading screen timeout - forcing hide after 10s');
|
|
635
|
+
if (loading && document.getElementById('root')?.childElementCount > 0) {
|
|
632
636
|
loading.classList.add('fade-out');
|
|
633
637
|
setTimeout(function() {
|
|
634
638
|
loading.remove();
|
package/dist/mini-chat.html
CHANGED
|
@@ -60,6 +60,8 @@
|
|
|
60
60
|
html[data-splash-variant='dark'] { --splash-background: var(--splash-background-dark); }
|
|
61
61
|
|
|
62
62
|
#initial-loading {
|
|
63
|
+
display: grid;
|
|
64
|
+
place-items: center;
|
|
63
65
|
background-color: var(--splash-background);
|
|
64
66
|
height: 100vh;
|
|
65
67
|
width: 100%;
|
|
@@ -72,59 +74,53 @@
|
|
|
72
74
|
opacity: 0;
|
|
73
75
|
pointer-events: none;
|
|
74
76
|
}
|
|
77
|
+
.dark #initial-loading img { filter: invert(1); }
|
|
75
78
|
</style>
|
|
76
79
|
|
|
77
|
-
<script type="module" crossorigin src="/assets/miniChat-
|
|
80
|
+
<script type="module" crossorigin src="/assets/miniChat-B1m57jX8.js"></script>
|
|
78
81
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
79
82
|
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-ef9W7A43.js">
|
|
80
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-
|
|
81
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
83
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-WzPG6NMR.js">
|
|
84
|
+
<link rel="modulepreload" crossorigin href="/assets/reasoning-projection-client-BEhVknv9.js">
|
|
85
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-fetch-BclMrQHc.js">
|
|
82
86
|
<link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
|
|
87
|
+
<link rel="modulepreload" crossorigin href="/assets/desktop-CfMDfs6c.js">
|
|
88
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-BEzVZGiW.js">
|
|
89
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-aNSNYVEB.js">
|
|
83
90
|
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CdzJ6My_.js">
|
|
84
91
|
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-o69pgTEK.js">
|
|
92
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-DV9F8PTZ.js">
|
|
93
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-fxfj4IA_.js">
|
|
85
94
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
|
|
86
95
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
|
|
87
|
-
<link rel="modulepreload" crossorigin href="/assets/useUIStore-
|
|
96
|
+
<link rel="modulepreload" crossorigin href="/assets/useUIStore-DqtgX2FB.js">
|
|
88
97
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-BP2cRVqX.js">
|
|
89
98
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-BWz0ose6.js">
|
|
90
|
-
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-
|
|
99
|
+
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-CpsVmMzy.js">
|
|
91
100
|
<link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
|
|
92
101
|
<link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
|
|
93
|
-
<link rel="modulepreload" crossorigin href="/assets/persistence-
|
|
94
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-DNc_ga0E.js">
|
|
95
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-BWl7Zy8M.js">
|
|
96
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-DXlObQuU.js">
|
|
97
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-Eb-_7KbZ.js">
|
|
102
|
+
<link rel="modulepreload" crossorigin href="/assets/persistence-Ck0wskDR.js">
|
|
98
103
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-CdqCAt40.js">
|
|
99
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
104
|
+
<link rel="modulepreload" crossorigin href="/assets/fileQueries-voABZL1r.js">
|
|
105
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
|
|
106
|
+
<link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
|
|
100
107
|
<link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
|
|
101
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-
|
|
102
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
103
|
-
<link rel="modulepreload" crossorigin href="/assets/terminalApi-
|
|
104
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-
|
|
105
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
106
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
107
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
108
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
109
|
-
<link rel="
|
|
108
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-CEkq2Pj2.js">
|
|
109
|
+
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-BKM9BbT8.js">
|
|
110
|
+
<link rel="modulepreload" crossorigin href="/assets/terminalApi-DbFIyF-J.js">
|
|
111
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-CZ2qtdn9.js">
|
|
112
|
+
<link rel="modulepreload" crossorigin href="/assets/platform-kv0OsX45.js">
|
|
113
|
+
<link rel="modulepreload" crossorigin href="/assets/types-xdR_RNnd.js">
|
|
114
|
+
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-BPj5WQuJ.js">
|
|
115
|
+
<link rel="modulepreload" crossorigin href="/assets/native-config-PMhVH43d.js">
|
|
116
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-CNms027t.js">
|
|
117
|
+
<link rel="stylesheet" crossorigin href="/assets/src-D3pZqEZM.css">
|
|
110
118
|
</head>
|
|
111
119
|
<body class="h-full bg-background text-foreground">
|
|
112
120
|
<div id="root" class="h-full">
|
|
113
|
-
<!--
|
|
114
|
-
|
|
115
|
-
the single Yuri cube itself. -->
|
|
116
|
-
<div id="initial-loading"></div>
|
|
121
|
+
<!-- React replaces the static logo with its startup state on first commit. -->
|
|
122
|
+
<div id="initial-loading"><img src="/assets/yuri-mark-black-DxEnMyCE.svg" width="120" height="120" alt="Yuri" /></div>
|
|
117
123
|
</div>
|
|
118
124
|
|
|
119
|
-
<script>
|
|
120
|
-
// Safety net: never let the splash hang if the app fails to dismiss it.
|
|
121
|
-
setTimeout(function() {
|
|
122
|
-
var loading = document.getElementById('initial-loading');
|
|
123
|
-
if (loading) {
|
|
124
|
-
loading.classList.add('fade-out');
|
|
125
|
-
setTimeout(function() { loading.remove(); }, 300);
|
|
126
|
-
}
|
|
127
|
-
}, 8000);
|
|
128
|
-
</script>
|
|
129
125
|
</body>
|
|
130
126
|
</html>
|
package/dist/mobile.html
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
// paint. Without this the WebView shows its default (light) canvas until React mounts
|
|
11
11
|
// and the theme CSS variables are applied a frame later, which flashed
|
|
12
12
|
// white -> default-theme -> resolved-theme on every cold launch. Mirrors the same
|
|
13
|
-
// pre-paint logic in index.html
|
|
14
|
-
//
|
|
13
|
+
// pre-paint logic in index.html; the mobile logo lives inside the React root,
|
|
14
|
+
// so we paint the document background directly. Bundled-only: reads the
|
|
15
15
|
// theme the app itself persisted to localStorage; no server involved.
|
|
16
16
|
(function () {
|
|
17
17
|
try {
|
|
@@ -63,41 +63,51 @@
|
|
|
63
63
|
})();
|
|
64
64
|
</script>
|
|
65
65
|
|
|
66
|
-
<
|
|
66
|
+
<style>.dark #mobile-startup-logo img { filter: invert(1); }</style>
|
|
67
|
+
<script type="module" crossorigin src="/assets/mobile-CwqGwE_K.js"></script>
|
|
67
68
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
68
69
|
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-ef9W7A43.js">
|
|
69
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-
|
|
70
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
70
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-WzPG6NMR.js">
|
|
71
|
+
<link rel="modulepreload" crossorigin href="/assets/reasoning-projection-client-BEhVknv9.js">
|
|
72
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-fetch-BclMrQHc.js">
|
|
71
73
|
<link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
|
|
74
|
+
<link rel="modulepreload" crossorigin href="/assets/desktop-CfMDfs6c.js">
|
|
75
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-BEzVZGiW.js">
|
|
76
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-aNSNYVEB.js">
|
|
72
77
|
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CdzJ6My_.js">
|
|
73
78
|
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-o69pgTEK.js">
|
|
79
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-DV9F8PTZ.js">
|
|
80
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-fxfj4IA_.js">
|
|
74
81
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
|
|
75
82
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
|
|
76
|
-
<link rel="modulepreload" crossorigin href="/assets/useUIStore-
|
|
83
|
+
<link rel="modulepreload" crossorigin href="/assets/useUIStore-DqtgX2FB.js">
|
|
77
84
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-BP2cRVqX.js">
|
|
78
85
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-BWz0ose6.js">
|
|
79
|
-
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-
|
|
86
|
+
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-CpsVmMzy.js">
|
|
80
87
|
<link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
|
|
81
88
|
<link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
|
|
82
|
-
<link rel="modulepreload" crossorigin href="/assets/persistence-
|
|
83
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-DNc_ga0E.js">
|
|
84
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-BWl7Zy8M.js">
|
|
85
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-DXlObQuU.js">
|
|
86
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-Eb-_7KbZ.js">
|
|
89
|
+
<link rel="modulepreload" crossorigin href="/assets/persistence-Ck0wskDR.js">
|
|
87
90
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-CdqCAt40.js">
|
|
88
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
91
|
+
<link rel="modulepreload" crossorigin href="/assets/fileQueries-voABZL1r.js">
|
|
92
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
|
|
93
|
+
<link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
|
|
89
94
|
<link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
|
|
90
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-
|
|
91
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
92
|
-
<link rel="modulepreload" crossorigin href="/assets/terminalApi-
|
|
93
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-
|
|
94
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
95
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
96
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
97
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
98
|
-
<link rel="
|
|
95
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-CEkq2Pj2.js">
|
|
96
|
+
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-BKM9BbT8.js">
|
|
97
|
+
<link rel="modulepreload" crossorigin href="/assets/terminalApi-DbFIyF-J.js">
|
|
98
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-CZ2qtdn9.js">
|
|
99
|
+
<link rel="modulepreload" crossorigin href="/assets/platform-kv0OsX45.js">
|
|
100
|
+
<link rel="modulepreload" crossorigin href="/assets/types-xdR_RNnd.js">
|
|
101
|
+
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-BPj5WQuJ.js">
|
|
102
|
+
<link rel="modulepreload" crossorigin href="/assets/native-config-PMhVH43d.js">
|
|
103
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-CNms027t.js">
|
|
104
|
+
<link rel="stylesheet" crossorigin href="/assets/src-D3pZqEZM.css">
|
|
99
105
|
</head>
|
|
100
106
|
<body class="h-full bg-background text-foreground">
|
|
101
|
-
<div id="root" class="h-full"
|
|
107
|
+
<div id="root" class="h-full">
|
|
108
|
+
<div id="mobile-startup-logo" style="position:fixed;inset:0;display:grid;place-items:center" aria-label="Yuri">
|
|
109
|
+
<img src="/assets/yuri-mark-black-DxEnMyCE.svg" width="120" height="120" alt="Yuri" />
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
102
112
|
</body>
|
|
103
113
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuriai/web",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./server/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@clack/prompts": "^1.1.0",
|
|
27
27
|
"@earendil-works/pi-agent-core": "0.84.4",
|
|
28
28
|
"@octokit/rest": "^22.0.1",
|
|
29
|
-
"@opencode/client": "2.0.23",
|
|
30
|
-
"@opencode/schema": "2.0.23",
|
|
29
|
+
"@opencode/client": "^2.0.23",
|
|
30
|
+
"@opencode/schema": "^2.0.23",
|
|
31
31
|
"@simplewebauthn/server": "13.3.1",
|
|
32
32
|
"adm-zip": "^0.5.16",
|
|
33
33
|
"better-sqlite3": "^12.10.0",
|
package/server/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export interface WebUiServerController {
|
|
|
6
6
|
httpServer: Server;
|
|
7
7
|
getPort: () => number | null;
|
|
8
8
|
getOpenCodePort: () => number | null;
|
|
9
|
+
/** Authenticated process-local client for the desktop GUI host; never expose over HTTP/IPC. */
|
|
10
|
+
getGuiPluginClient: () => import('@opencode/client').OpenCodeClient;
|
|
9
11
|
isReady: () => boolean;
|
|
10
12
|
restartOpenCode: () => Promise<void>;
|
|
11
13
|
stop: (options?: { exitProcess?: boolean; forceCloseConnections?: boolean }) => Promise<void>;
|
package/server/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import './lib/brand-migration-bootstrap.js';
|
|
2
2
|
import 'reflect-metadata';
|
|
3
3
|
import express from 'express';
|
|
4
|
-
import { configureOpenCodeCredentials, openCodeCredentialSource } from './lib/opencode/auth.js';
|
|
4
|
+
import { configureOpenCodeCredentials, openCodeCredentialSource, currentClient } from './lib/opencode/auth.js';
|
|
5
|
+
import { trustedGuiPluginClient } from './lib/opencode/gui-plugin-source.js';
|
|
5
6
|
import compression from 'compression';
|
|
6
7
|
import path from 'path';
|
|
7
8
|
import { spawn, spawnSync } from 'child_process';
|
|
@@ -1019,18 +1020,6 @@ questionAutoDelegateRuntime = createQuestionAutoDelegateRuntime({
|
|
|
1019
1020
|
buildOpenCodeUrl,
|
|
1020
1021
|
getOpenCodeAuthHeaders,
|
|
1021
1022
|
readSettingsFromDiskMigrated,
|
|
1022
|
-
sanitizeProjects,
|
|
1023
|
-
listIndexedDirectories: async () => {
|
|
1024
|
-
try {
|
|
1025
|
-
const snap = sessionIndexServiceRef?.snapshot?.();
|
|
1026
|
-
const directories = Array.isArray(snap?.directories) ? snap.directories : [];
|
|
1027
|
-
return directories
|
|
1028
|
-
.map((entry) => (typeof entry?.directory === 'string' ? entry.directory.trim() : ''))
|
|
1029
|
-
.filter(Boolean);
|
|
1030
|
-
} catch {
|
|
1031
|
-
return [];
|
|
1032
|
-
}
|
|
1033
|
-
},
|
|
1034
1023
|
broadcastGlobalUiEvent,
|
|
1035
1024
|
broadcastYuriEvent: broadcastQuestionAutoDelegateTip,
|
|
1036
1025
|
onUserTakeover: ({ sessionID, directory }) => {
|
|
@@ -1600,6 +1589,7 @@ async function main(options = {}) {
|
|
|
1600
1589
|
const contentSearch = createGlobalContentSearch({
|
|
1601
1590
|
dataDir: path.dirname(resolveSessionIndexDbPath({ sessionIndexDbPath }, YURI_DATA_DIR)),
|
|
1602
1591
|
getRuntimeKey: () => sessionIndexService.getRuntimeKey(),
|
|
1592
|
+
getEventRuntimeKey: () => messageQueueService?.getRuntimeKey() ?? null,
|
|
1603
1593
|
buildOpenCodeUrl, getOpenCodeAuthHeaders, waitForReady: waitForOpenCodeReady,
|
|
1604
1594
|
});
|
|
1605
1595
|
const unsubscribeContentSearch = globalMessageStreamHub.subscribeEvent((event) => contentSearch.runtime.observe(event));
|
|
@@ -2170,6 +2160,12 @@ async function main(options = {}) {
|
|
|
2170
2160
|
httpServer: server,
|
|
2171
2161
|
getPort: () => tunnelRuntimeContext.getActivePort(),
|
|
2172
2162
|
getOpenCodePort: () => openCodePort,
|
|
2163
|
+
// In-process desktop only: never serialize this authenticated client to a renderer.
|
|
2164
|
+
getGuiPluginClient: () => trustedGuiPluginClient({
|
|
2165
|
+
managed: Boolean(openCodeProcess && !isExternalOpenCode),
|
|
2166
|
+
shared: openCodeLifecycleRuntime.isSharedOpenCodeService(),
|
|
2167
|
+
ready: isOpenCodeReady, url: buildOpenCodeUrl('', ''), client: currentClient,
|
|
2168
|
+
}),
|
|
2173
2169
|
getQuitRiskStatus: () => ({
|
|
2174
2170
|
scheduledTasks: scheduledTasksRuntime.getStatus(),
|
|
2175
2171
|
}),
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
The Host owns `content-search.sqlite` alongside the session index. This index is
|
|
4
4
|
independent of browser transcript caches and includes all projects exposed by the
|
|
5
5
|
active OpenCode runtime. `session.list` is called without a project/directory
|
|
6
|
-
filter
|
|
6
|
+
filter during initial backfill; descending opaque cursors stop at the thirty-day
|
|
7
|
+
boundary or exhaustion. The default coverage is
|
|
7
8
|
messages created in the last thirty days in recently updated root sessions.
|
|
8
9
|
Sessions with a non-empty `parentID` (subagents) are excluded before message
|
|
9
10
|
fetching and progress counting. Only root IDs enter the authoritative pruning
|
|
10
|
-
set, so a
|
|
11
|
+
set, so a fully exhausted catalog scan also removes previously indexed subagent
|
|
11
12
|
messages, FTS entries and checkpoints. Failed catalog reads preserve the old index.
|
|
12
13
|
|
|
13
14
|
Two workers page native `message.list` directly, normalize via the shared server
|
|
@@ -31,12 +32,24 @@ and checkpoint until a complete replacement succeeds.
|
|
|
31
32
|
`search_coverage` durably records each runtime's `indexStartedAt`,
|
|
32
33
|
`indexCompletedAt`, `coveredSince`, and `verifiedAt`. These are index operation
|
|
33
34
|
timestamps, not installation/version timestamps or browser onboarding flags.
|
|
34
|
-
An absent completion marker requires initialization.
|
|
35
|
-
the
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
An absent completion marker requires initialization. A completed runtime does not
|
|
36
|
+
walk the catalog on startup or on a timer. It resumes only the durable dirty-session
|
|
37
|
+
queue populated by live events. Each dirty session is read by ID and refreshes its
|
|
38
|
+
own messages; unrelated sessions incur no upstream work. Initialization passes
|
|
39
|
+
resolve pending IDs outside a bounded catalog through `session.get`; excluded
|
|
40
|
+
children and expired sessions leave the dirty queue, while failed reads retain it.
|
|
41
|
+
This prevents filtered-out dirty IDs from keeping initialization in a rescan loop.
|
|
42
|
+
Initialization failures
|
|
43
|
+
retry using committed per-session checkpoints. Explicit `sync()` remains deliberate
|
|
44
|
+
catalog reconciliation; automatic scheduling uses incremental mode.
|
|
45
|
+
The event-identity hotfix adds `search_coverage.event_identity_repaired` without
|
|
46
|
+
changing existing runtime keys or deleting results. Older completed indexes perform
|
|
47
|
+
one bounded thirty-day catalog reconciliation to recover updates dropped by the
|
|
48
|
+
old event fence. Unchanged checkpoints are reused; changed/missing sessions are
|
|
49
|
+
refetched with the same two-worker limit. Partial failures preserve old hits and
|
|
50
|
+
retry after thirty seconds, including after restart. Only successful reconciliation
|
|
51
|
+
sets the durable repair marker; subsequent warm starts resume dirty work only.
|
|
52
|
+
Already verified unchanged sessions are reused, including
|
|
40
53
|
sessions with no searchable text. Each session now commits an `indexed_at`
|
|
41
54
|
completion timestamp atomically with its projection, source update time and
|
|
42
55
|
coverage boundary. Existing databases gain this nullable column and the coverage
|
|
@@ -60,7 +73,7 @@ coverage (for example after a system-clock correction).
|
|
|
60
73
|
The status response adds `initializationRequired` and these durable timestamps.
|
|
61
74
|
`updatedAt` remains the current process's latest completed pass, including partial
|
|
62
75
|
passes; clients must not confuse it with successful durable completion. A warm
|
|
63
|
-
startup may be `pending` with `initializationRequired: false`;
|
|
76
|
+
startup may be `pending` with `initializationRequired: false`; queued dirty sessions
|
|
64
77
|
remain background work. `initializationRequired` indicates unfinished first-time
|
|
65
78
|
initialization, not whether the latest incremental pass has caught up. No
|
|
66
79
|
UI-triggered import or OpenCode database conversion is needed:
|
|
@@ -80,10 +93,17 @@ dismissal; runtime changes recheck. Older Hosts without the new status fields
|
|
|
80
93
|
keep their existing behavior. VS Code's direct OpenCode connection has no Host
|
|
81
94
|
FTS service and does not mount this step.
|
|
82
95
|
|
|
83
|
-
Global upstream events mark sessions dirty and coalesce
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
96
|
+
Global upstream events durably mark sessions dirty and coalesce work within one
|
|
97
|
+
second. Successful writes acknowledge only the captured dirty revision, so an event
|
|
98
|
+
during the fetch survives for another pass. Thirty-second retries are scheduled
|
|
99
|
+
only for unfinished initialization or pending dirty sessions, never idle catalog
|
|
100
|
+
polling. Deleted-session events and confirmed 404 remove that session; a time-bounded
|
|
101
|
+
catalog is not authoritative absence for unvisited IDs. Indexing does not depend on
|
|
102
|
+
any UI session being opened. The persisted partition is owned by the Host session
|
|
103
|
+
index; the incoming event fence is checked against the message queue's runtime key,
|
|
104
|
+
the same provider used by the global hub. These are distinct hash namespaces and
|
|
105
|
+
must never be compared to each other. Old-runtime events remain rejected;
|
|
106
|
+
in-flight results are rejected if the index partition changes. Stop aborts reads and drains the
|
|
87
107
|
active pass before closing SQLite.
|
|
88
108
|
|
|
89
109
|
`GET /api/yuri/content-search?q=...&limit=30` returns `{hits,index}`.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { expect, test, vi } from 'vitest';
|
|
2
|
+
import { createSessionIndexService } from '../session-index/service.js';
|
|
3
|
+
import { createMessageQueueService } from '../message-queue/service.js';
|
|
4
|
+
import { createGlobalMessageStreamHub } from '../event-stream/global-hub.js';
|
|
5
|
+
import { createContentSearchService } from './service.js';
|
|
6
|
+
import { createContentSearchRuntime } from './runtime.js';
|
|
7
|
+
|
|
8
|
+
test('real hub runtime identity admits completed replies into search and rejects a previous runtime', async () => {
|
|
9
|
+
let config = { apiBaseUrl: 'http://runtime-a' };
|
|
10
|
+
const getRuntimeConfig = () => config;
|
|
11
|
+
const index = createSessionIndexService({ dbPath: ':memory:', getRuntimeConfig });
|
|
12
|
+
const queue = createMessageQueueService({ dbPath: ':memory:', getRuntimeConfig });
|
|
13
|
+
const service = createContentSearchService({ dbPath: ':memory:' });
|
|
14
|
+
const key = index.getRuntimeKey();
|
|
15
|
+
service.beginInitialization(key, 1);
|
|
16
|
+
service.completeInitialization(key, 0, 2);
|
|
17
|
+
const listSessions = vi.fn();
|
|
18
|
+
const listMessages = vi.fn(async () => ({ data: [{
|
|
19
|
+
id: 'reply', sessionID: 's', type: 'assistant', time: { created: 10, completed: 20 },
|
|
20
|
+
finish: 'stop', content: [{ type: 'text', text: '卡顿和高资源占用属实' }],
|
|
21
|
+
}], cursor: {} }));
|
|
22
|
+
const runtime = createContentSearchRuntime({ service, getRuntimeKey: () => index.getRuntimeKey(),
|
|
23
|
+
getEventRuntimeKey: () => queue.getRuntimeKey(), now: () => 100, listSessions, listMessages,
|
|
24
|
+
getSession: async () => ({ id: 's', time: { updated: 20 } }),
|
|
25
|
+
});
|
|
26
|
+
let captured;
|
|
27
|
+
let stream;
|
|
28
|
+
const hub = createGlobalMessageStreamHub({
|
|
29
|
+
buildOpenCodeUrl: (pathname) => `http://runtime-a${pathname}`, getOpenCodeAuthHeaders: () => ({}),
|
|
30
|
+
getRuntimeIdentity: () => ({ runtimeKey: queue.getRuntimeKey() }),
|
|
31
|
+
fetchImpl: async () => new Response(new ReadableStream({ start(controller) {
|
|
32
|
+
stream = controller;
|
|
33
|
+
controller.enqueue(new TextEncoder().encode('id: event-1\ndata: {"type":"session.execution.succeeded","data":{"sessionID":"s"}}\n\n'));
|
|
34
|
+
} })),
|
|
35
|
+
});
|
|
36
|
+
hub.subscribeEvent((event) => { captured = event; runtime.observe(event); });
|
|
37
|
+
try {
|
|
38
|
+
hub.start();
|
|
39
|
+
await vi.waitFor(() => expect(captured).toBeDefined());
|
|
40
|
+
expect(queue.getRuntimeKey()).not.toBe(key);
|
|
41
|
+
expect(service.pending(key)).toHaveLength(1);
|
|
42
|
+
await runtime.sync({ incremental: true });
|
|
43
|
+
expect(service.search(key, '卡顿和高资源占用属实')).toMatchObject([{ sessionID: 's', messageID: 'reply' }]);
|
|
44
|
+
expect(listSessions).not.toHaveBeenCalled();
|
|
45
|
+
expect(listMessages).toHaveBeenCalledTimes(1);
|
|
46
|
+
config = { apiBaseUrl: 'http://runtime-b' };
|
|
47
|
+
runtime.observe(captured);
|
|
48
|
+
expect(service.pending(index.getRuntimeKey())).toEqual([]);
|
|
49
|
+
} finally {
|
|
50
|
+
hub.stop(); stream?.close(); await runtime.stop(); service.close(); index.close(); queue.close();
|
|
51
|
+
}
|
|
52
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { expect, test, vi } from 'vitest';
|
|
2
|
+
import Database from 'better-sqlite3';
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import os from 'node:os';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
import { createContentSearchService } from './service.js';
|
|
7
|
+
import { createContentSearchRuntime } from './runtime.js';
|
|
8
|
+
|
|
9
|
+
test('old completed indexes repair missed updates once, preserve failed results and resume after restart', async () => {
|
|
10
|
+
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'content-event-repair-'));
|
|
11
|
+
const dbPath = path.join(dir, 'search.sqlite');
|
|
12
|
+
const old = new Database(dbPath);
|
|
13
|
+
old.exec(`CREATE TABLE search_coverage(runtime TEXT PRIMARY KEY, started_at REAL NOT NULL, completed_at REAL, since REAL, verified_at REAL);
|
|
14
|
+
INSERT INTO search_coverage VALUES('host',1,2,0,3);`);
|
|
15
|
+
old.close();
|
|
16
|
+
let service = createContentSearchService({ dbPath });
|
|
17
|
+
const now = 40 * 86400000;
|
|
18
|
+
const record = (id, text) => ({ info: { id, role: 'user', time: { created: now } }, parts: [{ type: 'text', text }] });
|
|
19
|
+
for (const id of ['unchanged', 'missed', 'failed']) service.replaceSession('host', { id, time: { updated: 10 } }, [record(id, 'previous result')], 0);
|
|
20
|
+
let fail = true;
|
|
21
|
+
const listSessions = vi.fn(async () => ({ data: [
|
|
22
|
+
{ id: 'missed', time: { updated: now } }, { id: 'failed', time: { updated: now } },
|
|
23
|
+
{ id: 'unchanged', time: { updated: 10 } },
|
|
24
|
+
], cursor: { next: 'older' } }));
|
|
25
|
+
const listMessages = vi.fn(async ({ sessionID }) => {
|
|
26
|
+
if (sessionID === 'failed' && fail) throw new Error('offline');
|
|
27
|
+
return { data: [{ type: 'user', id: sessionID, sessionID, time: { created: now }, text: 'recovered result' }], cursor: {} };
|
|
28
|
+
});
|
|
29
|
+
const create = () => createContentSearchRuntime({ service, getRuntimeKey: () => 'host', now: () => now, listSessions, listMessages });
|
|
30
|
+
let runtime = create();
|
|
31
|
+
try {
|
|
32
|
+
await runtime.sync({ incremental: true });
|
|
33
|
+
expect(service.search('host', 'recovered')).toHaveLength(1);
|
|
34
|
+
expect(service.search('host', 'previous').map((hit) => hit.sessionID).sort()).toEqual(['failed', 'unchanged']);
|
|
35
|
+
expect(runtime.status()).toMatchObject({ phase: 'partial', initializationRequired: false, indexCompletedAt: 2 });
|
|
36
|
+
await runtime.stop(); service.close();
|
|
37
|
+
service = createContentSearchService({ dbPath }); runtime = create(); fail = false;
|
|
38
|
+
await runtime.sync({ incremental: true });
|
|
39
|
+
expect(service.search('host', 'recovered')).toHaveLength(2);
|
|
40
|
+
expect(listMessages.mock.calls.map(([q]) => q.sessionID)).toEqual(['missed', 'failed', 'failed']);
|
|
41
|
+
expect(listSessions).toHaveBeenCalledTimes(2);
|
|
42
|
+
await runtime.stop(); service.close();
|
|
43
|
+
service = createContentSearchService({ dbPath }); runtime = create();
|
|
44
|
+
await runtime.sync({ incremental: true });
|
|
45
|
+
expect(listSessions).toHaveBeenCalledTimes(2);
|
|
46
|
+
expect(listMessages).toHaveBeenCalledTimes(3);
|
|
47
|
+
} finally { await runtime.stop(); service.close(); fs.rmSync(dir, { recursive: true, force: true }); }
|
|
48
|
+
});
|
|
@@ -3,10 +3,11 @@ import { makeOpenCodeV2Client } from '../opencode/v2-client.js';
|
|
|
3
3
|
import { createContentSearchService } from './service.js';
|
|
4
4
|
import { createContentSearchRuntime } from './runtime.js';
|
|
5
5
|
|
|
6
|
-
export function createGlobalContentSearch({ dataDir, getRuntimeKey, buildOpenCodeUrl, getOpenCodeAuthHeaders, waitForReady }) {
|
|
6
|
+
export function createGlobalContentSearch({ dataDir, getRuntimeKey, getEventRuntimeKey, buildOpenCodeUrl, getOpenCodeAuthHeaders, waitForReady }) {
|
|
7
7
|
const service = createContentSearchService({ dbPath: path.join(dataDir, 'content-search.sqlite') });
|
|
8
8
|
const client = () => makeOpenCodeV2Client({ baseUrl: buildOpenCodeUrl('/', ''), authHeaders: getOpenCodeAuthHeaders() });
|
|
9
|
-
const runtime = createContentSearchRuntime({ service, getRuntimeKey,
|
|
9
|
+
const runtime = createContentSearchRuntime({ service, getRuntimeKey, getEventRuntimeKey,
|
|
10
|
+
getSession: ({ sessionID, signal }) => client().session.get({ sessionID }, { signal: AbortSignal.any([signal, AbortSignal.timeout(30_000)]) }),
|
|
10
11
|
listSessions: async ({ signal, ...query }) => {
|
|
11
12
|
await waitForReady();
|
|
12
13
|
return client().session.list(query, { signal: AbortSignal.any([signal, AbortSignal.timeout(30_000)]) });
|