@yuriai/web 0.2.19 → 0.2.20
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 +8 -0
- package/dist/assets/AgentAvatar-MK9jNcwx.js +1 -0
- package/dist/assets/AssistantView-CVf9ta92.js +3 -0
- package/dist/assets/{DiagramView-HNaj_sVG.js → DiagramView-ys2UVvx1.js} +1 -1
- package/dist/assets/{FadeInOnReveal-Dq1IuEQp.js → FadeInOnReveal-B1g8C4P7.js} +1 -1
- package/dist/assets/{GuiPluginSurface-N-iK-MeX.js → GuiPluginSurface-C1KQZUmj.js} +1 -1
- package/dist/assets/{GuiPluginWindow-ClutFX_h.js → GuiPluginWindow-D4TIvZDn.js} +1 -1
- package/dist/assets/{Icon-tnX3bel1.js → Icon-C93bLV0e.js} +1 -1
- package/dist/assets/{ImageLoadingPlaceholder-IE6JO3WM.js → ImageLoadingPlaceholder-DM2ifWd8.js} +1 -1
- package/dist/assets/{LoadingImage-DNZmZRZS.js → LoadingImage-BoaGSpZ_.js} +1 -1
- package/dist/assets/{MarkdownRenderer-DuA1vlFT.js → MarkdownRenderer-B8LWUc6A.js} +2 -2
- package/dist/assets/{MarkdownRendererImpl-BwZ91PA5.js → MarkdownRendererImpl-DL069I2q.js} +1 -1
- package/dist/assets/{MarkstreamRendererImpl-kgBwH_VF.js → MarkstreamRendererImpl-CwR_p-oQ.js} +1 -1
- package/dist/assets/{MobileDetailNavigation-sm5MbnK3.js → MobileDetailNavigation-C7Z7mVZV.js} +1 -1
- package/dist/assets/{MobileResizableSheet-Cw6rRBR2.js → MobileResizableSheet-ChrM2_er.js} +1 -1
- package/dist/assets/{MobileShareBridge-BjpB1cz1.js → MobileShareBridge-DtXwoQtk.js} +2 -2
- package/dist/assets/MobileTabPageHeader-BT7U61qi.js +2 -0
- package/dist/assets/{MultiRunWindow-pslncrAh.js → MultiRunWindow-CFWkmiwx.js} +1 -1
- package/dist/assets/{OnboardingScreen-o9e7j2Lk.js → OnboardingScreen-Bb3wmiKY.js} +1 -1
- package/dist/assets/{OverlayScrollbar-BA6KEyhj.js → OverlayScrollbar-DD6avzvO.js} +1 -1
- package/dist/assets/SettingsView-B4xkRLZ3.js +29 -0
- package/dist/assets/SettingsView-BRIvklfP.css +1 -0
- package/dist/assets/{SettingsWindow-D-Vjsme7.js → SettingsWindow-jF7nPmJG.js} +1 -1
- package/dist/assets/{TerminalView-B4bliT5i.js → TerminalView-Cms4rfIE.js} +1 -1
- package/dist/assets/{ToolOutputDialog-D1rZbaHo.js → ToolOutputDialog-CBSb39qy.js} +1 -1
- package/dist/assets/{YuriLogo-CDmH1ycw.js → YuriLogo-CeZsIqiE.js} +1 -1
- package/dist/assets/{appThemeRegistry-DyTPt9Uq.js → appThemeRegistry-Bps27som.js} +1 -1
- package/dist/assets/{assistant-attachment-cache-lEUFn3mr.js → assistant-attachment-cache-C2SmtQG7.js} +1 -1
- package/dist/assets/{button-BEOJB042.js → button--mt1oJ-H.js} +1 -1
- package/dist/assets/{capgoAdapter-BrU-ms8F.js → capgoAdapter-ZBPKiKyL.js} +1 -1
- package/dist/assets/{collapsible-DrQlDm15.js → collapsible-Dh2xZynB.js} +1 -1
- package/dist/assets/{desktop-dp2Z0toS.js → desktop-CiqEZVr5.js} +1 -1
- package/dist/assets/{desktopHosts-CYKaLp1V.js → desktopHosts-B4HMNmrx.js} +1 -1
- package/dist/assets/{desktopRelayRestore-5yuHB356.js → desktopRelayRestore-CRl62mqn.js} +1 -1
- package/dist/assets/{device-DzWRCXhq.js → device-Coc5tapU.js} +1 -1
- package/dist/assets/{diagram-DyQPPDKS.js → diagram-CrQbE7QP.js} +1 -1
- package/dist/assets/{dialog-CooVl0xA.js → dialog-BG9W4FO9.js} +1 -1
- package/dist/assets/{dropdown-menu.styles-Bj4YEb3T.js → dropdown-menu.styles-BOP49Dw2.js} +1 -1
- package/dist/assets/es-CuWYQYZ1.js +15 -0
- package/dist/assets/{fileMentionTouchSelection-8I9u8H6l.js → fileMentionTouchSelection-m4Xsn0cx.js} +1 -1
- package/dist/assets/{fileQueries-DbUx7NwP.js → fileQueries-Bd-OEFmO.js} +1 -1
- package/dist/assets/{fileReferenceActions-No7p4Kdo.js → fileReferenceActions-BnPPqYXw.js} +1 -1
- package/dist/assets/fr-yebDRPGw.js +13 -0
- package/dist/assets/{gitApi-BVMvxPtG.js → gitApi-C1pkEDXu.js} +1 -1
- package/dist/assets/{gitApiHttp-BtI23x-7.js → gitApiHttp-CoNokuDM.js} +1 -1
- package/dist/assets/{gui-BCPFcL_m.js → gui-D3wrcUs6.js} +1 -1
- package/dist/assets/{host-BoCxB_x4.js → host-BqNFap4A.js} +1 -1
- package/dist/assets/{image-loading-FUFYiO1j.js → image-loading-DVZlFuU5.js} +1 -1
- package/dist/assets/{input-B-4VixoV.js → input-BMUm4I0i.js} +1 -1
- package/dist/assets/{insertionBoundaries-YVc2e3H2.js → insertionBoundaries-WLpirs0A.js} +1 -1
- package/dist/assets/ja-f1wDEfxS.js +15 -0
- package/dist/assets/ko-n8CMb8k9.js +15 -0
- package/dist/assets/{main-Cs5VJerX.js → main-CNmq04w8.js} +21 -21
- package/dist/assets/{main-DZ5HVH-j.js → main-djohnOii.js} +2 -2
- package/dist/assets/{markdownHeightCache-SdaL8x58.js → markdownHeightCache-BWrnxGTO.js} +1 -1
- package/dist/assets/{mcpQueries-B1ZULr7c.js → mcpQueries-BfSiXImW.js} +1 -1
- package/dist/assets/miniChat-DXN8mcdi.js +2 -0
- package/dist/assets/mobile--08sYbKy.js +2 -0
- package/dist/assets/{mobileBackNavigation-D-cRdrKd.js → mobileBackNavigation-EIV61ZvG.js} +1 -1
- package/dist/assets/{multirun-D6bNScic.js → multirun-Dfuqt2Sd.js} +1 -1
- package/dist/assets/{native-config-obwt8WA1.js → native-config-Cswl9jqU.js} +1 -1
- package/dist/assets/{persistence-BfjCXjLZ.js → persistence-CNEHspb4.js} +1 -1
- package/dist/assets/pl-BpveZ1bR.js +15 -0
- package/dist/assets/{platform-syRnKuVU.js → platform-Q45KPuGv.js} +1 -1
- package/dist/assets/{projectMeta-LtQkG8fN.js → projectMeta-CuVxfoYb.js} +1 -1
- package/dist/assets/pt-BR-bq37AHb6.js +15 -0
- package/dist/assets/{queryRuntime-BuRnpVtK.js → queryRuntime-DWgXfxGx.js} +1 -1
- package/dist/assets/{readiness-BWBtf7Am.js → readiness-DDF6yf-o.js} +1 -1
- package/dist/assets/{renderElectronMiniChatApp-EL2J2wQd.js → renderElectronMiniChatApp-Cfs2xjgL.js} +2 -2
- package/dist/assets/{renderMobileApp-DOCWKmuC.js → renderMobileApp-B66uW5zc.js} +7 -7
- package/dist/assets/runtime-auth-BaBM02zI.js +1 -0
- package/dist/assets/{runtime-fetch-BAN5Gnnp.js → runtime-fetch-DfALP7-b.js} +1 -1
- package/dist/assets/{runtime-file-download-BzblfnMx.js → runtime-file-download-xvItwYMc.js} +1 -1
- package/dist/assets/{runtime-file-resource-D3k0hKDj.js → runtime-file-resource-DtsKbFf3.js} +1 -1
- package/dist/assets/{runtime-switch-CAZiOV2G.js → runtime-switch-DhMY9eiB.js} +1 -1
- package/dist/assets/{runtimeConfig-D577Rc9x.js → runtimeConfig-DTkP4z43.js} +1 -1
- package/dist/assets/runtimeEndpointReset-BMAP5ZCY.js +149 -0
- package/dist/assets/{scheduledTaskNavigation-CJEzv5Zr.js → scheduledTaskNavigation-7slq1geN.js} +1 -1
- package/dist/assets/{sessionChangeSummary-DAV313F8.js → sessionChangeSummary-BYv_KUyn.js} +1 -1
- package/dist/assets/{sessionLookup-CN_iYfk5.js → sessionLookup-Cx0pE6yS.js} +1 -1
- package/dist/assets/{sortable-tabs-strip-9okrTn1K.js → sortable-tabs-strip-D_efLXen.js} +1 -1
- package/dist/assets/{speechSettingsQueries-BvJCYdR_.js → speechSettingsQueries-BxHtdoOT.js} +2 -2
- package/dist/assets/src-DHHaXffU.css +2 -0
- package/dist/assets/store-CKBj6kYd.js +15 -0
- package/dist/assets/{terminalApi-Dw1h9m3h.js → terminalApi-DFhCeMya.js} +1 -1
- package/dist/assets/{textarea-9sBs8Uld.js → textarea-CNvFHvhC.js} +1 -1
- package/dist/assets/{tooltip-BkcQKx-p.js → tooltip-C-gdI2Am.js} +1 -1
- package/dist/assets/{types-BcumvHrl.js → types-BHKyslK4.js} +1 -1
- package/dist/assets/uk-Ds3imyqV.js +15 -0
- package/dist/assets/{useAppFontEffects-D9c0mG1P.js → useAppFontEffects-Ucq0gPN8.js} +9 -9
- package/dist/assets/{useAssistantUIStore-rdsbsVts.js → useAssistantUIStore-BZt-lLlW.js} +1 -1
- package/dist/assets/{useDesktopWindowControlsLayout-Dx-zWLPl.js → useDesktopWindowControlsLayout-BEscodj1.js} +1 -1
- package/dist/assets/{useEffectiveDirectory-DPvKdopQ.js → useEffectiveDirectory-BWRQNoDF.js} +1 -1
- package/dist/assets/{useFontPreferences-B4LGrKaG.js → useFontPreferences-DmeLn0t9.js} +1 -1
- package/dist/assets/{useMobileNavigationStore-9pGm6Lkc.js → useMobileNavigationStore-DzkVc9H_.js} +12 -11
- package/dist/assets/{useUIStore-NMQx_cnG.js → useUIStore-CEingF2z.js} +1 -1
- package/dist/assets/{useWorkerHighlightedLines-DSzghYUI.js → useWorkerHighlightedLines-Dz6lLZ-1.js} +1 -1
- package/dist/assets/zh-CN-BNJ3ElZ9.js +15 -0
- package/dist/assets/{zh-TW-CtLsIcFb.js → zh-TW-C0jQloeH.js} +2 -2
- package/dist/index.html +21 -21
- package/dist/mini-chat.html +21 -21
- package/dist/mobile.html +21 -21
- package/package.json +1 -1
- package/server/lib/assistants/DOCUMENTATION.md +192 -20
- package/server/lib/assistants/assign.js +2 -1
- package/server/lib/assistants/contact-store.js +151 -17
- package/server/lib/assistants/contact-store.test.js +44 -2
- package/server/lib/assistants/contact-tools.js +54 -12
- package/server/lib/assistants/contact-tools.test.js +21 -0
- package/server/lib/assistants/harness.js +39 -16
- package/server/lib/assistants/harness.test.js +58 -18
- package/server/lib/assistants/opencode-tools.js +167 -0
- package/server/lib/assistants/opencode-tools.test.js +295 -0
- package/server/lib/assistants/progressive-tools.js +33 -0
- package/server/lib/assistants/progressive-tools.test.js +66 -0
- package/server/lib/assistants/routes.js +1 -0
- package/server/lib/assistants/service.js +87 -40
- package/server/lib/assistants/service.test.js +270 -40
- package/server/lib/assistants/summary.js +90 -0
- package/server/lib/assistants/summary.test.js +86 -0
- package/server/lib/assistants/yuri-project.http.test.js +126 -0
- package/server/lib/assistants/yuri-tools.js +42 -0
- package/server/lib/assistants/yuri-tools.test.js +151 -0
- package/server/lib/llm/DOCUMENTATION.md +12 -2
- package/server/lib/llm/bridge-client.js +65 -16
- package/server/lib/llm/bridge-client.test.js +63 -2
- package/server/lib/opencode/DOCUMENTATION.md +2 -0
- package/server/lib/opencode/feature-routes-runtime.js +9 -0
- package/server/lib/opencode/feature-routes-runtime.test.js +12 -0
- package/server/lib/opencode/npm-registry.js +106 -11
- package/server/lib/opencode/npm-registry.test.js +64 -0
- package/server/lib/opencode/plugin-routes.js +3 -1
- package/server/lib/opencode/plugin-routes.test.js +3 -3
- package/server/lib/opencode/routes.js +4 -32
- package/server/lib/opencode/settings-runtime.js +7 -2
- package/server/lib/projects/DOCUMENTATION.md +29 -0
- package/server/lib/projects/registry.js +36 -0
- package/server/lib/projects/registry.test.js +107 -0
- package/server/lib/quota/providers/index.js +6 -2
- package/server/lib/quota/providers/index.test.js +6 -1
- package/server/lib/relay/DOCUMENTATION.md +3 -3
- package/server/lib/relay/host-client.js +4 -6
- package/server/lib/relay/host-client.reconnect.test.js +3 -2
- package/server/lib/relay/relay-server.e2e.test.ts +144 -1
- package/server/lib/small-model/DOCUMENTATION.md +2 -1
- package/dist/assets/AgentAvatar-CVIpaYPU.js +0 -1
- package/dist/assets/AssistantView-D5vJW3gp.js +0 -3
- package/dist/assets/MobileTabPageHeader-CEsc9PYV.js +0 -2
- package/dist/assets/SettingsView-20rmUHhk.js +0 -26
- package/dist/assets/es-DklBd0ox.js +0 -15
- package/dist/assets/fr-CVUs46wM.js +0 -13
- package/dist/assets/ja-5reg09JK.js +0 -15
- package/dist/assets/ko-DZdC6ooz.js +0 -15
- package/dist/assets/miniChat-DUSGfEUO.js +0 -2
- package/dist/assets/mobile-CMXtTX1x.js +0 -2
- package/dist/assets/pl-BerZSK-a.js +0 -15
- package/dist/assets/pt-BR-ydmV6U49.js +0 -15
- package/dist/assets/runtime-auth-ef9W7A43.js +0 -1
- package/dist/assets/runtimeEndpointReset-C5EiiaQf.js +0 -149
- package/dist/assets/src-nJdn6EvY.css +0 -2
- package/dist/assets/store-ClIuNNU7.js +0 -15
- package/dist/assets/uk-BnTevguX.js +0 -15
- package/dist/assets/zh-CN-DT6qIAPJ.js +0 -15
package/dist/index.html
CHANGED
|
@@ -560,43 +560,43 @@
|
|
|
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-djohnOii.js"></script>
|
|
564
564
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
565
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-
|
|
566
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-
|
|
567
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-fetch-
|
|
565
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-BaBM02zI.js">
|
|
566
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-DhMY9eiB.js">
|
|
567
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-fetch-DfALP7-b.js">
|
|
568
568
|
<link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
|
|
569
|
-
<link rel="modulepreload" crossorigin href="/assets/desktop-
|
|
570
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-
|
|
571
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-
|
|
569
|
+
<link rel="modulepreload" crossorigin href="/assets/desktop-CiqEZVr5.js">
|
|
570
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-B4HMNmrx.js">
|
|
571
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-CRl62mqn.js">
|
|
572
572
|
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CdzJ6My_.js">
|
|
573
573
|
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-o69pgTEK.js">
|
|
574
574
|
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-DV9F8PTZ.js">
|
|
575
575
|
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-fxfj4IA_.js">
|
|
576
576
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
|
|
577
577
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
|
|
578
|
-
<link rel="modulepreload" crossorigin href="/assets/useUIStore-
|
|
578
|
+
<link rel="modulepreload" crossorigin href="/assets/useUIStore-CEingF2z.js">
|
|
579
579
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-BP2cRVqX.js">
|
|
580
580
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-BWz0ose6.js">
|
|
581
|
-
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-
|
|
581
|
+
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-DWgXfxGx.js">
|
|
582
582
|
<link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
|
|
583
583
|
<link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
|
|
584
|
-
<link rel="modulepreload" crossorigin href="/assets/persistence-
|
|
584
|
+
<link rel="modulepreload" crossorigin href="/assets/persistence-CNEHspb4.js">
|
|
585
585
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-CdqCAt40.js">
|
|
586
|
-
<link rel="modulepreload" crossorigin href="/assets/fileQueries-
|
|
586
|
+
<link rel="modulepreload" crossorigin href="/assets/fileQueries-Bd-OEFmO.js">
|
|
587
587
|
<link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
|
|
588
588
|
<link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
|
|
589
589
|
<link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
|
|
590
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-
|
|
591
|
-
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-
|
|
592
|
-
<link rel="modulepreload" crossorigin href="/assets/terminalApi-
|
|
593
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-
|
|
594
|
-
<link rel="modulepreload" crossorigin href="/assets/platform-
|
|
595
|
-
<link rel="modulepreload" crossorigin href="/assets/types-
|
|
596
|
-
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-
|
|
597
|
-
<link rel="modulepreload" crossorigin href="/assets/native-config-
|
|
598
|
-
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-
|
|
599
|
-
<link rel="stylesheet" crossorigin href="/assets/src-
|
|
590
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-DtsKbFf3.js">
|
|
591
|
+
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-CoNokuDM.js">
|
|
592
|
+
<link rel="modulepreload" crossorigin href="/assets/terminalApi-DFhCeMya.js">
|
|
593
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-xvItwYMc.js">
|
|
594
|
+
<link rel="modulepreload" crossorigin href="/assets/platform-Q45KPuGv.js">
|
|
595
|
+
<link rel="modulepreload" crossorigin href="/assets/types-BHKyslK4.js">
|
|
596
|
+
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-ZBPKiKyL.js">
|
|
597
|
+
<link rel="modulepreload" crossorigin href="/assets/native-config-Cswl9jqU.js">
|
|
598
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-DTkP4z43.js">
|
|
599
|
+
<link rel="stylesheet" crossorigin href="/assets/src-DHHaXffU.css">
|
|
600
600
|
</head>
|
|
601
601
|
<body class="h-full bg-background text-foreground">
|
|
602
602
|
<!-- Keep the startup layer outside #root. React replaces every child of
|
package/dist/mini-chat.html
CHANGED
|
@@ -77,43 +77,43 @@
|
|
|
77
77
|
.dark #initial-loading img { filter: invert(1); }
|
|
78
78
|
</style>
|
|
79
79
|
|
|
80
|
-
<script type="module" crossorigin src="/assets/miniChat-
|
|
80
|
+
<script type="module" crossorigin src="/assets/miniChat-DXN8mcdi.js"></script>
|
|
81
81
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
82
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-
|
|
83
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-
|
|
84
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-fetch-
|
|
82
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-BaBM02zI.js">
|
|
83
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-DhMY9eiB.js">
|
|
84
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-fetch-DfALP7-b.js">
|
|
85
85
|
<link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
|
|
86
|
-
<link rel="modulepreload" crossorigin href="/assets/desktop-
|
|
87
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-
|
|
88
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-
|
|
86
|
+
<link rel="modulepreload" crossorigin href="/assets/desktop-CiqEZVr5.js">
|
|
87
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-B4HMNmrx.js">
|
|
88
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-CRl62mqn.js">
|
|
89
89
|
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CdzJ6My_.js">
|
|
90
90
|
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-o69pgTEK.js">
|
|
91
91
|
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-DV9F8PTZ.js">
|
|
92
92
|
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-fxfj4IA_.js">
|
|
93
93
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
|
|
94
94
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
|
|
95
|
-
<link rel="modulepreload" crossorigin href="/assets/useUIStore-
|
|
95
|
+
<link rel="modulepreload" crossorigin href="/assets/useUIStore-CEingF2z.js">
|
|
96
96
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-BP2cRVqX.js">
|
|
97
97
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-BWz0ose6.js">
|
|
98
|
-
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-
|
|
98
|
+
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-DWgXfxGx.js">
|
|
99
99
|
<link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
|
|
100
100
|
<link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
|
|
101
|
-
<link rel="modulepreload" crossorigin href="/assets/persistence-
|
|
101
|
+
<link rel="modulepreload" crossorigin href="/assets/persistence-CNEHspb4.js">
|
|
102
102
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-CdqCAt40.js">
|
|
103
|
-
<link rel="modulepreload" crossorigin href="/assets/fileQueries-
|
|
103
|
+
<link rel="modulepreload" crossorigin href="/assets/fileQueries-Bd-OEFmO.js">
|
|
104
104
|
<link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
|
|
105
105
|
<link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
|
|
106
106
|
<link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
|
|
107
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-
|
|
108
|
-
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-
|
|
109
|
-
<link rel="modulepreload" crossorigin href="/assets/terminalApi-
|
|
110
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-
|
|
111
|
-
<link rel="modulepreload" crossorigin href="/assets/platform-
|
|
112
|
-
<link rel="modulepreload" crossorigin href="/assets/types-
|
|
113
|
-
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-
|
|
114
|
-
<link rel="modulepreload" crossorigin href="/assets/native-config-
|
|
115
|
-
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-
|
|
116
|
-
<link rel="stylesheet" crossorigin href="/assets/src-
|
|
107
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-DtsKbFf3.js">
|
|
108
|
+
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-CoNokuDM.js">
|
|
109
|
+
<link rel="modulepreload" crossorigin href="/assets/terminalApi-DFhCeMya.js">
|
|
110
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-xvItwYMc.js">
|
|
111
|
+
<link rel="modulepreload" crossorigin href="/assets/platform-Q45KPuGv.js">
|
|
112
|
+
<link rel="modulepreload" crossorigin href="/assets/types-BHKyslK4.js">
|
|
113
|
+
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-ZBPKiKyL.js">
|
|
114
|
+
<link rel="modulepreload" crossorigin href="/assets/native-config-Cswl9jqU.js">
|
|
115
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-DTkP4z43.js">
|
|
116
|
+
<link rel="stylesheet" crossorigin href="/assets/src-DHHaXffU.css">
|
|
117
117
|
</head>
|
|
118
118
|
<body class="h-full bg-background text-foreground">
|
|
119
119
|
<div id="root" class="h-full">
|
package/dist/mobile.html
CHANGED
|
@@ -64,43 +64,43 @@
|
|
|
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
|
|
67
|
+
<script type="module" crossorigin src="/assets/mobile--08sYbKy.js"></script>
|
|
68
68
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
69
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-
|
|
70
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-
|
|
71
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-fetch-
|
|
69
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-auth-BaBM02zI.js">
|
|
70
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-switch-DhMY9eiB.js">
|
|
71
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-fetch-DfALP7-b.js">
|
|
72
72
|
<link rel="modulepreload" crossorigin href="/assets/runtimeAPIRegistry-C2VogTny.js">
|
|
73
|
-
<link rel="modulepreload" crossorigin href="/assets/desktop-
|
|
74
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-
|
|
75
|
-
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-
|
|
73
|
+
<link rel="modulepreload" crossorigin href="/assets/desktop-CiqEZVr5.js">
|
|
74
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopHosts-B4HMNmrx.js">
|
|
75
|
+
<link rel="modulepreload" crossorigin href="/assets/desktopRelayRestore-CRl62mqn.js">
|
|
76
76
|
<link rel="modulepreload" crossorigin href="/assets/vendor-base-ui-CdzJ6My_.js">
|
|
77
77
|
<link rel="modulepreload" crossorigin href="/assets/vendor-zustand-o69pgTEK.js">
|
|
78
78
|
<link rel="modulepreload" crossorigin href="/assets/vendor-effect-DV9F8PTZ.js">
|
|
79
79
|
<link rel="modulepreload" crossorigin href="/assets/vendor-opencode-client-fxfj4IA_.js">
|
|
80
80
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-migration-Bhz6UOBJ.js">
|
|
81
81
|
<link rel="modulepreload" crossorigin href="/assets/brand-storage-bootstrap-D4BW3w-M.js">
|
|
82
|
-
<link rel="modulepreload" crossorigin href="/assets/useUIStore-
|
|
82
|
+
<link rel="modulepreload" crossorigin href="/assets/useUIStore-CEingF2z.js">
|
|
83
83
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-BP2cRVqX.js">
|
|
84
84
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-query-core-BWz0ose6.js">
|
|
85
|
-
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-
|
|
85
|
+
<link rel="modulepreload" crossorigin href="/assets/queryRuntime-DWgXfxGx.js">
|
|
86
86
|
<link rel="modulepreload" crossorigin href="/assets/vendor-pathe-vBmvQE8f.js">
|
|
87
87
|
<link rel="modulepreload" crossorigin href="/assets/pathNormalization-ewtPqJWn.js">
|
|
88
|
-
<link rel="modulepreload" crossorigin href="/assets/persistence-
|
|
88
|
+
<link rel="modulepreload" crossorigin href="/assets/persistence-CNEHspb4.js">
|
|
89
89
|
<link rel="modulepreload" crossorigin href="/assets/vendor-tanstack-react-query-CdqCAt40.js">
|
|
90
|
-
<link rel="modulepreload" crossorigin href="/assets/fileQueries-
|
|
90
|
+
<link rel="modulepreload" crossorigin href="/assets/fileQueries-Bd-OEFmO.js">
|
|
91
91
|
<link rel="modulepreload" crossorigin href="/assets/runtime-file-store-BVRgEtI-.js">
|
|
92
92
|
<link rel="modulepreload" crossorigin href="/assets/path-utils-jGozTg9d.js">
|
|
93
93
|
<link rel="modulepreload" crossorigin href="/assets/vendor-aparajita-capacitor-secure-storage-xol_6BsB.js">
|
|
94
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-
|
|
95
|
-
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-
|
|
96
|
-
<link rel="modulepreload" crossorigin href="/assets/terminalApi-
|
|
97
|
-
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-
|
|
98
|
-
<link rel="modulepreload" crossorigin href="/assets/platform-
|
|
99
|
-
<link rel="modulepreload" crossorigin href="/assets/types-
|
|
100
|
-
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-
|
|
101
|
-
<link rel="modulepreload" crossorigin href="/assets/native-config-
|
|
102
|
-
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-
|
|
103
|
-
<link rel="stylesheet" crossorigin href="/assets/src-
|
|
94
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-resource-DtsKbFf3.js">
|
|
95
|
+
<link rel="modulepreload" crossorigin href="/assets/gitApiHttp-CoNokuDM.js">
|
|
96
|
+
<link rel="modulepreload" crossorigin href="/assets/terminalApi-DFhCeMya.js">
|
|
97
|
+
<link rel="modulepreload" crossorigin href="/assets/runtime-file-download-xvItwYMc.js">
|
|
98
|
+
<link rel="modulepreload" crossorigin href="/assets/platform-Q45KPuGv.js">
|
|
99
|
+
<link rel="modulepreload" crossorigin href="/assets/types-BHKyslK4.js">
|
|
100
|
+
<link rel="modulepreload" crossorigin href="/assets/capgoAdapter-ZBPKiKyL.js">
|
|
101
|
+
<link rel="modulepreload" crossorigin href="/assets/native-config-Cswl9jqU.js">
|
|
102
|
+
<link rel="modulepreload" crossorigin href="/assets/runtimeConfig-DTkP4z43.js">
|
|
103
|
+
<link rel="stylesheet" crossorigin href="/assets/src-DHHaXffU.css">
|
|
104
104
|
</head>
|
|
105
105
|
<body class="h-full bg-background text-foreground">
|
|
106
106
|
<div id="root" class="h-full">
|
package/package.json
CHANGED
|
@@ -59,7 +59,11 @@ changes do not reset sessions or alter the assistant identity.
|
|
|
59
59
|
New creates without `avatarSeed` persist a complete
|
|
60
60
|
`yuri-avatar:v1:round:capsule:<color>:neutral:1:<assistantID>` recipe. The twelve
|
|
61
61
|
pigments are chosen randomly; shape, eye style and rest pose are fixed. This
|
|
62
|
-
service-owned default covers HTTP/API
|
|
62
|
+
service-owned default covers HTTP/API and first-run seeding. The contact's
|
|
63
|
+
`create_assistant` tool instead supplies a fresh complete recipe from the existing
|
|
64
|
+
random-avatar generator (shape and twelve-color pigment), on both user and
|
|
65
|
+
automatic follow-up turns. It is persisted atomically with the new contact and
|
|
66
|
+
greeting; reloads never randomize it again. Manual creation keeps the round default.
|
|
63
67
|
Explicit caller-supplied seeds/recipes remain untouched. Existing null/legacy
|
|
64
68
|
seeds retain their original shape/color mapping; no migration or read-time write
|
|
65
69
|
is introduced. The shared renderer now uses one fixed capsule-eye specification
|
|
@@ -172,31 +176,199 @@ storage/session meaning. Only the contact pi working directory changes.
|
|
|
172
176
|
Discovery starts in the configured directory, checks existing session metadata,
|
|
173
177
|
and walks parent directories to locate the nearest relevant workspace; broader
|
|
174
178
|
`list_sessions` lookups can find related conversations. Ambiguous targets need
|
|
175
|
-
clarification. An empty registered catalog still allows discovery
|
|
176
|
-
|
|
179
|
+
clarification. An empty registered catalog still allows discovery. On interactive
|
|
180
|
+
turns, `register_project` registers the user-requested existing directory through
|
|
181
|
+
the shared Host project registry, then `assign_session` can open it in the same
|
|
182
|
+
turn. Missing registration support remains an explicit Settings prerequisite.
|
|
183
|
+
|
|
184
|
+
### Assistant-only progressive tools
|
|
185
|
+
|
|
186
|
+
`progressive-tools.js` owns a turn-local `load_tools` entrypoint shared by Yuri and
|
|
187
|
+
OpenCode. Each owner declares groups of existing tool objects; the shared module
|
|
188
|
+
only manages disclosure, never business execution, authentication or SDK calls.
|
|
189
|
+
`yuri-tools.js` declares Yuri groups and the registration adapter;
|
|
190
|
+
`opencode-tools.js` declares OpenCode groups and its SDK adapters. The harness
|
|
191
|
+
applies its allowed-tool policy before building these groups, and the shared
|
|
192
|
+
loader intersects group members with that granted set. Default interactive
|
|
193
|
+
requests retain the existing high-frequency session, project/task lookup, memory,
|
|
194
|
+
persona/settings and peer-message tools. The loader's schema contains only the
|
|
195
|
+
available domain names and short descriptions, not every deferred schema:
|
|
196
|
+
|
|
197
|
+
| Domain | Deferred tools | Owning behavior |
|
|
198
|
+
| --- | --- | --- |
|
|
199
|
+
| `yuri.projects` | `register_project` | Register an existing directory through shared `projects/registry.js` |
|
|
200
|
+
| `yuri.assistants` | `create_assistant`, `update_avatar` | Existing Bot creation and avatar owners |
|
|
201
|
+
| `yuri.tasks` | `schedule_task`, `update_scheduled_task` | Existing task creation/update/pause/resume owners |
|
|
202
|
+
| `opencode.web` | `websearch`, `list_websearch_providers` | Existing authenticated SDK search; provider listing is optional, not a search prerequisite |
|
|
203
|
+
| `opencode.activity` | `list_active_sessions` | Authoritative live execution membership, not history-derived completion |
|
|
204
|
+
| `opencode.catalog` | `list_opencode_capabilities`, `read_opencode_skill` | Remote capability metadata and bounded, on-demand skill instructions |
|
|
205
|
+
|
|
206
|
+
Of the previous eleven-tool expansion, only project registration remains. Project
|
|
207
|
+
rename/removal, Bot listing/settings/deletion, session rename, full task read,
|
|
208
|
+
manual task run/deletion and the redundant full capability directory were removed
|
|
209
|
+
from this assistant extension. Their ordinary UI/API behavior is unchanged.
|
|
210
|
+
There is no arbitrary HTTP, credential, pairing or global settings proxy.
|
|
211
|
+
|
|
212
|
+
The native Agent's `prepareNextTurnWithContext` hook applies the selected tools
|
|
213
|
+
and prompt to both the executor context and the next model request. Updating
|
|
214
|
+
`agent.state.tools` alone is insufficient because pi snapshots the execution
|
|
215
|
+
context. Hidden names are rejected by the existing native-call allowlist before
|
|
216
|
+
execution; loading and invoking a hidden operation in the same response cannot
|
|
217
|
+
bypass that check. Duplicate loads do not duplicate tools or execute operations.
|
|
218
|
+
Unknown groups/arguments fail explicitly. The harness uses pi's `afterToolCall`
|
|
219
|
+
hook to retain an adapter's returned `isError: true` as an actual Agent tool-result
|
|
220
|
+
failure; thrown failures remain errors and successful returns remain successes.
|
|
221
|
+
Only public tool text is sent to the model, never arbitrary internal `details`.
|
|
222
|
+
One business operation per response and existing terminal assignment/watch
|
|
223
|
+
behavior remain. Missed-operation detection
|
|
224
|
+
still uses the available business operations, not a loader result as evidence of
|
|
225
|
+
completing the requested mutation. Loading never changes business validations.
|
|
226
|
+
|
|
227
|
+
Every `runContactTurn` creates its own loader state, including concurrent contacts;
|
|
228
|
+
subsequent contact turns must load again. Read-only background reviews receive
|
|
229
|
+
only their existing read allowlist, without any loader or deferred mutation tools.
|
|
230
|
+
|
|
231
|
+
**Isolation:** this is a capability of the Yuri assistant harness, not a global or
|
|
232
|
+
project Skill. No `SKILL.md`, OpenCode plugin/tool registration, skill attachment,
|
|
233
|
+
session system instruction or global config entry is created. Ordinary Session
|
|
234
|
+
conversations, assigned workers, CLI/TUI and other OpenCode clients do not receive
|
|
235
|
+
or inherit the loader or its schemas. It has no skill catalog ID/path to discover
|
|
236
|
+
or reference from a Session. Existing user-installed skills are unchanged.
|
|
237
|
+
|
|
238
|
+
Project registration canonicalizes the absolute Host directory and rejects
|
|
239
|
+
`assistant-workspaces`, including symlink aliases. Successful writes refresh the
|
|
240
|
+
Host allowed roots before returning, so assignment does not wait for a UI request
|
|
241
|
+
or reconnect. No existing registered-directory assignment gate is relaxed. A later
|
|
242
|
+
assignment failure leaves the valid project and cloned files intact for retry.
|
|
243
|
+
Full settings and private fields are not returned to the model. Registration
|
|
244
|
+
failure remains an explicit tool error, not authoritative empty success.
|
|
245
|
+
|
|
246
|
+
These new tools are absent from read-only background reviews. Web, Electron,
|
|
247
|
+
hosted mobile and Capacitor use the connected Host's implementation and filesystem,
|
|
248
|
+
not the phone/browser filesystem. Extension-only VS Code does not gain an assistant
|
|
249
|
+
Host. No shared UI API contract or transport is added.
|
|
250
|
+
|
|
251
|
+
`yuri-project.http.test.js` exercises real HTTP admission, the native Agent/tool
|
|
252
|
+
loop, settings persistence, same-turn root refresh and session-card persistence,
|
|
253
|
+
replacing only external model and upstream SDK execution. It also checks the
|
|
254
|
+
existing UI directory API reuses the saved project identity and an ordinary Session
|
|
255
|
+
created afterward does not inherit assistant tools/skills/instructions. Tool and
|
|
256
|
+
harness tests cover deferred schema/executor activation, guessed-call rejection,
|
|
257
|
+
repeat loads, per-turn reset, group isolation, cancellation and read-only limits.
|
|
258
|
+
These automated checks are not live-provider decision-quality or mobile evidence.
|
|
259
|
+
Separate live acceptance on the shared authenticated OpenCode service also ran
|
|
260
|
+
the previous Yuri-only loader → `register_project` → `assign_session` autonomously,
|
|
261
|
+
created one worker and persisted one card. The real OpenCode skill
|
|
262
|
+
catalog was readable and contained neither assistant entry. The temporary registry,
|
|
263
|
+
worker and files were cleaned up without changing the user's project list.
|
|
177
264
|
|
|
178
265
|
Worker submission uses one admission path for new and existing sessions.
|
|
266
|
+
Admission recognizes the official V2 raw user-inbox item (`id`, `type:user`),
|
|
267
|
+
as well as the existing confirmed HTTP/envelope forms. A confirmed raw SDK result
|
|
268
|
+
must not be downgraded into ambiguous admission or lose the session card.
|
|
179
269
|
Definite rejection cleans up only a session created by that call. Ambiguous
|
|
180
270
|
admission keeps the worker and confirms the exact message ID before reporting
|
|
181
271
|
success. Attachment deduplication uses ordered content digests; reordering
|
|
182
272
|
attachments is a different request.
|
|
183
273
|
|
|
184
|
-
The in-app Assistant is
|
|
274
|
+
The in-app Assistant is a Yuri-owned **contact**. OpenCode is only the LLM gateway (`POST /api/yuri/llm/chat/completions`) using already-connected `{providerID, modelID}`. Composer send runs `@earendil-works/pi-agent-core` with `thinkingLevel: 'off'`. When the assistant has an effective workspace, the harness attaches pi's four coding tools (`read`, `write`, `edit`, `bash`) via `NodeExecutionEnv` in that directory, applies `defaultPrompt`, and merges skills from `~/.claude/skills`, `~/.agents/skills`, plus the project's `.claude/skills` and `.agents/skills` (project wins on name). Yuri API tools follow the progressive policy above. It does not use `SessionPrompt` / `session.prompt` as the conversation engine. File and shell work runs in-process through pi. Native-function schemas include only currently mounted tools; deferred tools are absent until loaded. Skill directory entries are instructions loaded via `read`, not native/MCP tool names.
|
|
185
275
|
|
|
186
276
|
User contact turns retain the Yuri operation tools alongside the four
|
|
187
277
|
pi tools. Skill discovery contributes instructions to this combined tool set.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
278
|
+
`opencode-tools.js` supplies five direct tools to the shared progressive policy on
|
|
279
|
+
interactive turns: `websearch`, `list_websearch_providers`, `list_active_sessions`,
|
|
280
|
+
`list_opencode_capabilities`, and `read_opencode_skill`. Their schemas and executors
|
|
281
|
+
are mounted only after their group is loaded. Loading resolves no SDK client and
|
|
282
|
+
performs no network read. Actual operations call the current
|
|
283
|
+
authenticated official SDK client at execution time, with the contact's effective
|
|
284
|
+
pi directory (including user-home semantics for managed contacts). There is no CLI
|
|
285
|
+
subprocess, additional HTTP route, global config mutation, or second LLM request
|
|
286
|
+
for execution. Web, Electron, hosted mobile and Capacitor use the same Host path;
|
|
287
|
+
extension-only VS Code does not gain a separate Host implementation.
|
|
288
|
+
|
|
289
|
+
Search results include real source URLs and bounded excerpts, plus `partial` when
|
|
290
|
+
truncated. Provider discovery is not search success; failed/unsupported/malformed
|
|
291
|
+
reads return tool errors rather than authoritative empty results. There is no
|
|
292
|
+
silent provider switching or automatic retry. The model may explicitly choose
|
|
293
|
+
another discovered provider after a provider failure, respecting user retry limits.
|
|
294
|
+
SDK errors expose only an allowlisted HTTP status and fixed error category, never
|
|
295
|
+
raw upstream bodies or credentials. Declared `UnauthorizedError`, `ForbiddenError`
|
|
296
|
+
and `ServiceUnavailableError` tags retain their known status even when the Promise
|
|
297
|
+
SDK omits the HTTP status. Status-only errors retain the same classification.
|
|
298
|
+
The public error text contains JSON with the category, optional status and safe
|
|
299
|
+
guidance, so the model sees `authentication_required`, `permission_denied`,
|
|
300
|
+
`timeout`, `validation_error` or `opencode_failed` rather than losing the type in
|
|
301
|
+
internal `details`. Authentication/access failures require checking the existing
|
|
302
|
+
connection, not switching providers/servers or bypassing controls. Timeouts are
|
|
303
|
+
reported explicitly and any retry must respect the user's constraints.
|
|
304
|
+
Requests have cancellation and a 30-second deadline, including uncooperative SDK
|
|
305
|
+
flights. The owning pi loop retains its sequential and terminal-operation gates.
|
|
306
|
+
|
|
307
|
+
Live activity comes only from `session.active()` membership. Missing membership
|
|
308
|
+
means `not_active`, not successful completion. IDs can be matched with the index
|
|
309
|
+
or inspected using `read_session`; the new tool does not create a watch or prompt.
|
|
310
|
+
Active/catalog pages are bounded with `nextOffset` and are fresh snapshots rather
|
|
311
|
+
than durable pagination. Capability discovery projects only skill/agent/command/
|
|
312
|
+
reference names/descriptions and MCP connection status, excluding agent system
|
|
313
|
+
prompts, request configuration and raw MCP error bodies. Skill reads use exact
|
|
314
|
+
catalog IDs and bounded content chunks, including virtual built-in paths.
|
|
315
|
+
Native/MCP tools without a public execution API still run in an assigned worker
|
|
316
|
+
with normal OpenCode permissions; catalogs never pretend to be direct executors.
|
|
317
|
+
The new tools are absent from read-only background reviews.
|
|
318
|
+
|
|
319
|
+
`progressive-tools.test.js` covers granted membership, base tools, independent
|
|
320
|
+
turns, overlapping/repeated loads and cancellation. `opencode-tools.test.js` covers
|
|
321
|
+
the official SDK wire boundary, real pi native-tool loop, one shared Yuri/OpenCode
|
|
322
|
+
loader, hidden-call rejection, scope/auth/signal fidelity, cancellation/deadlines,
|
|
323
|
+
failure versus empty data, declared SDK error tags, model-visible typed failure
|
|
324
|
+
guidance, bounded pages and private-field projections. Harness tests exercise
|
|
325
|
+
returned failures, thrown failures and success through the real Agent while
|
|
326
|
+
asserting internal-only details stay private. Service tests cover ordinary chat
|
|
327
|
+
without any skill-catalog fetch, explicit on-demand skill
|
|
328
|
+
reads (including missing/failed/malformed catalogs), and native search/activity
|
|
329
|
+
after group loading without opening a worker. Earlier live acceptance
|
|
330
|
+
also exercised the real provider: the contact selected provider discovery and
|
|
331
|
+
`websearch`, then returned actual source links, without a CLI or worker session.
|
|
332
|
+
|
|
333
|
+
Interactive turns no longer fetch or inject the OpenCode built-in skill by default.
|
|
334
|
+
The permanent prompt retains only short routing and evidence/authorization rules;
|
|
335
|
+
CLI authentication instructions, endpoint URLs and skill bodies are not duplicated
|
|
336
|
+
there. Load `opencode.catalog`, discover the applicable skill ID, and call
|
|
337
|
+
`read_opencode_skill` when instructions are relevant. The virtual
|
|
338
|
+
`/builtin/opencode.md` / `<built-in>` markers are not local files. A skill result is
|
|
339
|
+
instruction content, not tool registration or evidence of execution. Local skill
|
|
340
|
+
indexes and `read` retain their existing separate instruction-loading behavior.
|
|
341
|
+
|
|
342
|
+
The existing SDK adapters retain per-call current-client resolution, effective
|
|
343
|
+
workspace scope, cancellation, deadlines and safe error projections. No automatic
|
|
344
|
+
CLI fallback, service discovery/switch, generic HTTP/RPC executor, API routes,
|
|
345
|
+
global config writes or OpenCode Agent loop are introduced. Unoffered native/MCP
|
|
346
|
+
operations still belong to an assigned worker and its normal permissions; existing
|
|
347
|
+
contact operations retain their cards and follow-up. Read-only background reviews
|
|
348
|
+
receive neither the loader nor OpenCode execution/shell tools. All Host-backed
|
|
349
|
+
surfaces share this server path. Assistant-only disclosure is not a filesystem or
|
|
350
|
+
shell security sandbox. Separate live acceptance of the unified loader against the
|
|
351
|
+
authenticated shared service and a connected OpenAI model completed all three
|
|
352
|
+
OpenCode groups: web search with a real source link, explicit skill discovery/read,
|
|
353
|
+
and live session membership. The first request contained only `load_tools` and
|
|
354
|
+
`notify_user`; no skill read occurred before explicit use. A failed search was
|
|
355
|
+
followed by model-selected provider discovery and an explicit successful retry,
|
|
356
|
+
not a silent adapter fallback. No Session mutation occurred. This bounded run is
|
|
357
|
+
not evidence for every provider, account, project scope or mobile transport.
|
|
358
|
+
|
|
359
|
+
After the typed-error and Agent failure-flag fixes, a separate real-model run
|
|
360
|
+
passed 13 read-only acceptance scenarios: search/skill/activity success, first
|
|
361
|
+
search-provider failure followed by discovery and successful retry, all search
|
|
362
|
+
providers unavailable, authentication failure, unavailable/malformed live state,
|
|
363
|
+
absent membership versus completion, missing skill, unavailable catalog, timeout
|
|
364
|
+
with a user no-retry constraint, invalid group correction, hidden-call correction,
|
|
365
|
+
and cancellation. HTTP faults were injected at the official SDK fetch boundary;
|
|
366
|
+
the two protocol scenarios injected only the first proposed call, with subsequent
|
|
367
|
+
decisions made by the real model. Authentication prompted connection checks without
|
|
368
|
+
provider discovery/retry; timeout produced one search and an explicit timeout
|
|
369
|
+
report. No real Session/project/task mutation was performed. These are bounded
|
|
370
|
+
decision-quality observations, not a guarantee across all models or transports.
|
|
371
|
+
|
|
200
372
|
Assignment intent includes “建个会话” and “再建个会话”. Watch intent includes
|
|
201
373
|
“监听会话”; stop intent includes “停止会话”. The single missed-call
|
|
202
374
|
retry checks for a result from a requested operation tool; a `read` result alone
|
|
@@ -255,7 +427,7 @@ and keep their existing error result handling.
|
|
|
255
427
|
- **`watch_session`:** listen-only attach for an existing session (`sessionID` required). No `session.prompt`. Emits the same session card slot and reuses `assistant_contact_watch` + `reportAssignedSession` / reconcile / resume. Baseline card/watch status comes from live `session.get` (+ messages when needed) via `mapSessionToWatchStatus` so an already-terminal idle is **not** treated as a fresh complete transition (no false resume). In-flight baseline (`busy`/`question`) keeps the watch until real settle. A plain user `@session:id` (or JSON title/sessionID/directory) reference is **context only** — it does not auto-call `watch_session`; the model must hear an explicit listen/watch/monitor intent.
|
|
256
428
|
- **`stop_session`:** calls real OpenCode `session.interrupt` for `sessionID` after the same authoritative directory resolve. Returns the true abort result — transport/`not_found`/upstream errors stay errors (never claim stopped on failure). Abort is registered in a private per-session inflight map before `await abort` so concurrent SSE `complete`/`error` cannot schedule a `resume=true` continuation ahead of `resume=false`. On successful abort the service marks the watch/card `cancelled` even when upstream emits no idle/error event. Idle/error events still flow through the existing watch reporter when a watch exists.
|
|
257
429
|
- **Worker model selection:** optional tool args `providerID` / `modelID` / `model` resolve against the live connected OpenCode catalog (`loadConnectedCatalog` / `GET /provider` + `GET /config/providers`). Explicit selection must match uniquely — missing or ambiguous names fail closed (`model_not_found` / `model_ambiguous`) with **no silent fallback**. Omitting model args on a **new** worker keeps the contact assistant's default provider/model. **Reusing `sessionID` without an explicit model** follows that session's last model (`session.get` → `session.model` `{ providerID, id|modelID }`, else newest user/assistant `info.model`) when it is still an exact providerID+modelID match in the connected catalog (`source: 'session'`); missing session model, catalog miss, or lookup failure **degrades** to the assistant default (`source: 'assistant'`) and never fails assign once the session itself resolved. Selecting a worker model **never** mutates the contact assistant row.
|
|
258
|
-
-
|
|
430
|
+
- The connected model catalog is **not** injected into turns. The base tool `list_models({ query? })` (absent from read-only background reviews) loads it on demand; each call reloads the current instance's **Connected OpenCode models** block (exact providerID, modelID, providerName, name, acceptsImages), plus settings-backed favorite models in saved order and recent models newest first. Only connected catalog entries qualify as preference candidates; variants remain separate from model IDs. Catalog and preference read failures remain explicit unknown states, distinct from successful empty lists; either read can succeed independently. The tool projects only favoriteModels/recentModels from the strict settings reader; defaultModel/defaultVariant are used separately for initial contact creation, never arbitrary settings or credentials. No catalog is cached across turns or runtime switches. Informal `model` aliases normalize punctuation/spacing and require a unique catalog match; explicit `modelID` stays exact. Ambiguous aliases never silently prefer a favorite/provider. This server-owned context is shared by web, desktop, and mobile clients of that instance.
|
|
259
431
|
- **Current-turn attachments:** server-authoritative `userParts` file parts from this contact turn are forwarded into worker `session.prompt` parts by default (including “just open a session” intents). The model must not base64-encode or invent local paths. History images are **not** unbounded-forwarded. Image parts require a vision-capable catalog entry (`acceptsImages`); otherwise assign fails with `image_not_supported` before create. Sensitive file bodies are never logged.
|
|
260
432
|
- **Create-then-prompt failure:** if `session.create` succeeds and `session.prompt` fails, assign best-effort `session.delete`s the new worker so empty sessions are not left behind. Reused `sessionID` paths never delete on prompt failure.
|
|
261
433
|
- Successful `assign_session` and `watch_session` return `terminate: true` to stop the mutation loop. The harness then requests a tools-disabled model summary. Prerequisite tools (`list_projects` / `list_sessions`) may still run before assign/watch/stop in the same turn; multi-operation user intents remain ordered **across turns** after a successful assign/watch.
|
|
@@ -276,7 +448,7 @@ and keep their existing error result handling.
|
|
|
276
448
|
|
|
277
449
|
**Registered projects + sessions (this PR)**
|
|
278
450
|
|
|
279
|
-
- Every contact turn injects a **Registered projects** block (`id`, `path`, `label`) from `listProjects()`
|
|
451
|
+
- Every contact turn injects a **Registered projects** block (`id`, `path`, `label`) from `listProjects()` via `formatRegisteredProjectsPrompt`, sorted by path for byte-stable output. It travels in a turn-context user message placed immediately before the latest user message of each completion request (`createContactStreamFn({ turnContext })`, never stored in Agent state or the transcript), not in the system prompt. A catalog change therefore invalidates only the prompt-cache tail; the system prompt orders static content first and the load_tools-dependent tool list last. The model can fuzzy-match names like "yuri yee" without a tool call first. Empty catalog → discover the relevant existing workspace using sessions and directory lookups, then request registration in Settings before assignment.
|
|
280
452
|
- `list_projects` refreshes/filters that catalog (`query` optional). `list_sessions` searches the existing session-index (`sessionIndexService.snapshot()`) for sessions in a project (`projectPath` / `projectID`, optional title query). Results are bounded (`sessionID`, `title`, `directory`, `updatedAt`). Index/catalog failure is an error, never an empty success.
|
|
281
453
|
- After matching a project, open work with `assign_session` (`projectPath` and/or existing `sessionID`).
|
|
282
454
|
|
|
@@ -314,7 +486,7 @@ Reply language follows the user's latest substantive message and conversation co
|
|
|
314
486
|
|
|
315
487
|
**Contact LLM window (this PR)**
|
|
316
488
|
|
|
317
|
-
- `contactHistoryForLlm` is a short algorithmic window documented in `contact-store.js`: durable context boundary first, then `CONTACT_LLM_MAX_TURNS` (32), `CONTACT_LLM_MAX_CHARS` (48000), `CONTACT_LLM_FETCH_LIMIT` (100), `CONTACT_LLM_FILE_CHAR_WEIGHT` (80). Newest user+assistant text pairs after the watermark are kept; peer / error rows are dropped; cards retain structured ID/status context.
|
|
489
|
+
- `contactHistoryForLlm` is a short algorithmic window documented in `contact-store.js`: durable context boundary first, then `CONTACT_LLM_MAX_TURNS` (32), `CONTACT_LLM_MAX_CHARS` (48000), `CONTACT_LLM_FETCH_LIMIT` (100), `CONTACT_LLM_FILE_CHAR_WEIGHT` (80). Newest user+assistant text pairs after the watermark are kept; peer / error rows are dropped; cards retain structured ID/status context. The window start is aligned to a multiple of `CONTACT_LLM_ALIGN_STEP` (16) message ordinals, so once the budget is full the history prefix stays byte-stable for several turns (prompt-cache friendly) and the window runs a few turns under budget right after each jump. Turns that fall out are folded into a rolling summary (`summary.js`, table `assistant_contact_summary`) that is prepended as a leading user item labelled lossy background; it is regenerated on the contact lane before the window loads, only when the window start moved past the summarized ordinal, with the assistant's own provider/model (60 s limit). A summary is valid only while the clear-memory boundaries and transcript generation it was written under are unchanged; clear-memory and wipe delete it, and a write racing a clear is discarded. A failed summary call logs a warning, keeps the previous summary, and the turn still runs. There is no user-facing compress or continuous/stateless memory control. SQLite and the transcript UI may still scroll older bubbles, including rows before the boundary.
|
|
318
490
|
|
|
319
491
|
**Contact attachments (this PR)**
|
|
320
492
|
|
|
@@ -442,7 +614,7 @@ Contact tools expose `assign_session` (new or continued session), `steer_session
|
|
|
442
614
|
|
|
443
615
|
### Contact context and background notification boundary
|
|
444
616
|
|
|
445
|
-
- The model history is bounded to 32 recent turns, 48,000 estimated characters and 100 transcript rows (newest turn remains intact).
|
|
617
|
+
- The model history is bounded to 32 recent turns, 48,000 estimated characters and 100 transcript rows (newest turn remains intact). Older turns are represented only by the lossy rolling summary above; it is not unlimited memory. Clear-memory still applies its persisted ordinal boundary. User instructions and assistant replies retain chronological ordering; card-only rows now contribute structured card context with exact session ID, directory and current status, instead of disappearing from the next model request. Peer inbox and failed rows remain excluded.
|
|
446
618
|
- Assigned-session settlement is a read-only result notification. The harness filters its tools to project/session/settings lookups and does not create a coding runtime. It cannot restart, assign, steer, archive, delete or write files even if the model attempts to do so. The latest user constraints remain in history.
|
|
447
619
|
- A new admitted user turn cancels running background notifications and durably disables notifications from existing watches (`resume_allowed`). Live card status continues updating truthfully. Explicit assign/watch admission rearms only that watch. This prevents a delayed completion after a stop/new instruction from restarting an obsolete background turn, including after server restart.
|
|
448
620
|
- Contact turns own AbortControllers. The existing session-abort route validates the current binding/generation, cancels active/queued contact turns and background notifications even without a legacy OpenCode binding, propagates the signal into the harness, and discards late generated output. With no active contact work it retains the legacy binding abort behavior. Already committed side effects are not rolled back.
|
|
@@ -81,7 +81,8 @@ export function requireProvidedString(value, { field, max }) {
|
|
|
81
81
|
|
|
82
82
|
const promptAdmitted = (result) => (
|
|
83
83
|
!result?.error
|
|
84
|
-
&& (result?.response?.status === 204 || result?.status === 204 || result?.data !== undefined || result?.response?.ok === true
|
|
84
|
+
&& (result?.response?.status === 204 || result?.status === 204 || result?.data !== undefined || result?.response?.ok === true
|
|
85
|
+
|| (typeof result?.id === 'string' && result.id.length > 0 && result.type === 'user'))
|
|
85
86
|
);
|
|
86
87
|
|
|
87
88
|
const isTransportError = (error) => {
|