oysterun 1.6.0-beta.37 → 1.6.0-beta.38
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/dev/client/connectivity/managed-host-browser.mjs +24 -2
- package/dev/client/web-chat/dist/assets/{ReactPrism-BQLzibYJ.js → ReactPrism-Ut1t0ay2.js} +1 -1
- package/dev/client/web-chat/dist/assets/{ReactPrism-BQLzibYJ.js.map → ReactPrism-Ut1t0ay2.js.map} +1 -1
- package/dev/client/web-chat/dist/assets/TerminalSurface-DcH4WvVE.js +59 -0
- package/dev/client/web-chat/dist/assets/{TerminalSurface-UboWle1Y.js.map → TerminalSurface-DcH4WvVE.js.map} +1 -1
- package/dev/client/web-chat/dist/assets/{index-5kL-BJtt.js → index-D4_BFppX.js} +2 -2
- package/dev/client/web-chat/dist/assets/{index-5kL-BJtt.js.map → index-D4_BFppX.js.map} +1 -1
- package/dev/client/web-chat/dist/assets/{index-BOITwSCu.js → index-DoO049dA.js} +1 -1
- package/dev/client/web-chat/dist/assets/{index-BOITwSCu.js.map → index-DoO049dA.js.map} +1 -1
- package/dev/client/web-chat/dist/assets/{index-1nZeDzD1.js → index-Dxi0xwNV.js} +1 -1
- package/dev/client/web-chat/dist/assets/{index-1nZeDzD1.js.map → index-Dxi0xwNV.js.map} +1 -1
- package/dev/client/web-chat/dist/assets/{index-CxVYmVx2.js → index-lnWBihc5.js} +2 -2
- package/dev/client/web-chat/dist/assets/{index-CxVYmVx2.js.map → index-lnWBihc5.js.map} +1 -1
- package/dev/client/web-chat/dist/assets/{matrix-entry-BUYlg-cC.js → matrix-entry-CN3ae4-n.js} +164 -164
- package/dev/client/web-chat/dist/assets/matrix-entry-CN3ae4-n.js.map +1 -0
- package/dev/client/web-chat/dist/assets/{pdf-CMJ22bXX.js → pdf-D8op4ZAO.js} +3 -3
- package/dev/client/web-chat/dist/assets/pdf-D8op4ZAO.js.map +1 -0
- package/dev/client/web-chat/dist/assets/{web-b6yQ-GX-.js → web-BcveD4s1.js} +1 -1
- package/dev/client/web-chat/dist/assets/{web-b6yQ-GX-.js.map → web-BcveD4s1.js.map} +1 -1
- package/dev/client/web-chat/dist/assets/{web-adGuzdwy.js → web-D5ZlSBA-.js} +1 -1
- package/dev/client/web-chat/dist/assets/{web-adGuzdwy.js.map → web-D5ZlSBA-.js.map} +1 -1
- package/dev/client/web-chat/dist/index.html +1 -1
- package/host-service/log-retention.mjs +8 -3
- package/host-service/manual-p037-turn-data-plane.mjs +257 -0
- package/host-service/manual-p066-production-copy-qualification.mjs +540 -0
- package/host-service/matrix-facade.mjs +46 -0
- package/host-service/node-npm-runtime-identity.mjs +2 -0
- package/host-service/package.json +3 -4
- package/host-service/provider-command-detection.mjs +37 -0
- package/host-service/provider-model-refresh-runner.mjs +41 -0
- package/host-service/routec-matrix-media-store.mjs +127 -9
- package/host-service/routec-p135-semantic-bridge-pacing.mjs +77 -0
- package/host-service/server.mjs +42 -41
- package/host-service/session-list-preview-write-helper.mjs +44 -0
- package/host-service/setup-provider-model-defaults.mjs +6 -1
- package/host-service/telegram-bridge.mjs +2 -1
- package/host-service/test-fixtures/fake-codex-provider.mjs +24 -0
- package/package.json +1 -1
- package/static/site/install.sh +4 -2
- package/static/site_source/downloads/install.sh +4 -2
- package/tool_scripts/oysterun_npm_package_manifest.mjs +2 -2
- package/dev/client/web-chat/dist/assets/TerminalSurface-UboWle1Y.js +0 -59
- package/dev/client/web-chat/dist/assets/matrix-entry-BUYlg-cC.js.map +0 -1
- package/dev/client/web-chat/dist/assets/pdf-CMJ22bXX.js.map +0 -1
- /package/tool_scripts/{test_environment_remote_cloud_deprovision.mjs → environment_remote_cloud_deprovision.mjs} +0 -0
|
@@ -1358,6 +1358,10 @@ export class ManagedHostBrowserConnection {
|
|
|
1358
1358
|
this.managedBackgroundGraceMs = managedBackgroundGraceMs;
|
|
1359
1359
|
this.managedHealthProbeTimeoutMs = managedHealthProbeTimeoutMs;
|
|
1360
1360
|
this.backgroundCloseTimer = null;
|
|
1361
|
+
// Owner walk 2026-11-08: a hidden page does not close the WebRTC path under a media
|
|
1362
|
+
// upload; the close waits until the last upload ends (only if the page is still hidden).
|
|
1363
|
+
this.uploadsInFlight = 0;
|
|
1364
|
+
this.backgroundCloseWaitsForUpload = false;
|
|
1361
1365
|
this.healthProbePromise = null;
|
|
1362
1366
|
this.pageHideHandler = () => this.handlePageHide();
|
|
1363
1367
|
this.visibilityHandler = () => this.handleVisibilityChange();
|
|
@@ -2197,12 +2201,18 @@ export class ManagedHostBrowserConnection {
|
|
|
2197
2201
|
}
|
|
2198
2202
|
this.backgroundCloseTimer ??= setTimeout(() => {
|
|
2199
2203
|
this.backgroundCloseTimer = null;
|
|
2200
|
-
if (document.visibilityState
|
|
2204
|
+
if (document.visibilityState !== "hidden") return;
|
|
2205
|
+
if (this.uploadsInFlight > 0) {
|
|
2206
|
+
this.backgroundCloseWaitsForUpload = true;
|
|
2207
|
+
return;
|
|
2208
|
+
}
|
|
2209
|
+
void this.closeForBackground();
|
|
2201
2210
|
}, this.managedBackgroundGraceMs);
|
|
2202
2211
|
return;
|
|
2203
2212
|
}
|
|
2204
2213
|
clearTimeout(this.backgroundCloseTimer);
|
|
2205
2214
|
this.backgroundCloseTimer = null;
|
|
2215
|
+
this.backgroundCloseWaitsForUpload = false;
|
|
2206
2216
|
void this.handleLifecycleRecovery("page_foregrounded");
|
|
2207
2217
|
}
|
|
2208
2218
|
|
|
@@ -2773,7 +2783,9 @@ export class ManagedHostBrowserConnection {
|
|
|
2773
2783
|
|
|
2774
2784
|
async fetch(input, init = {}, recovery = {}) {
|
|
2775
2785
|
const path = normalizeHostPath(input);
|
|
2786
|
+
const upload = recovery.upload === true;
|
|
2776
2787
|
this.hostRequestsInFlight += 1;
|
|
2788
|
+
if (upload) this.uploadsInFlight += 1;
|
|
2777
2789
|
try {
|
|
2778
2790
|
const response = await this.performFetch(input, init, recovery);
|
|
2779
2791
|
this.markRequestResult(false, path);
|
|
@@ -2783,9 +2795,19 @@ export class ManagedHostBrowserConnection {
|
|
|
2783
2795
|
throw error;
|
|
2784
2796
|
} finally {
|
|
2785
2797
|
this.hostRequestsInFlight -= 1;
|
|
2798
|
+
if (upload) {
|
|
2799
|
+
this.uploadsInFlight -= 1;
|
|
2800
|
+
this.closeForBackgroundAfterUploads();
|
|
2801
|
+
}
|
|
2786
2802
|
}
|
|
2787
2803
|
}
|
|
2788
2804
|
|
|
2805
|
+
closeForBackgroundAfterUploads() {
|
|
2806
|
+
if (this.uploadsInFlight > 0 || !this.backgroundCloseWaitsForUpload) return;
|
|
2807
|
+
this.backgroundCloseWaitsForUpload = false;
|
|
2808
|
+
if (document.visibilityState === "hidden") void this.closeForBackground();
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2789
2811
|
async performFetch(input, init = {}, recovery = {}) {
|
|
2790
2812
|
if (this.closed) {
|
|
2791
2813
|
throw managedHostConnectionClosedError();
|
|
@@ -3128,7 +3150,7 @@ export function managedBlobUpload(
|
|
|
3128
3150
|
return getManagedHostBrowserConnection().fetch(
|
|
3129
3151
|
input,
|
|
3130
3152
|
{ ...init, body },
|
|
3131
|
-
{ onUploadProgress: onProgress }
|
|
3153
|
+
{ onUploadProgress: onProgress, upload: true }
|
|
3132
3154
|
);
|
|
3133
3155
|
}
|
|
3134
3156
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ee,f as Y,r as K,j as Z}from"./matrix-entry-
|
|
1
|
+
import{e as ee,f as Y,r as K,j as Z}from"./matrix-entry-CN3ae4-n.js";import"./index-Dxi0xwNV.js";var X={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
2
2
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
3
3
|
*
|
|
4
4
|
* @license MIT <https://opensource.org/licenses/MIT>
|