@burdenoff/fe-libs 2026.1118.11 → 2026.1118.13
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.
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { isBuiltInAssistantMode as e } from "./modeCopy.js";
|
|
2
2
|
import { isProductAssistantModeId as t } from "./modeIds.js";
|
|
3
|
+
import { RELEASE_SANDBOX_IMAGE_REGISTRY as n } from "./sandboxRegistry.js";
|
|
3
4
|
// src/shared/assistant/images.ts
|
|
4
|
-
var
|
|
5
|
-
function
|
|
5
|
+
var r = n, i = "sandbox-app-client-headers-v1";
|
|
6
|
+
function a() {
|
|
6
7
|
try {
|
|
7
8
|
let e = {
|
|
8
9
|
BASE_URL: "/",
|
|
@@ -13,27 +14,27 @@ function i() {
|
|
|
13
14
|
}.VITE_SANDBOX_IMAGE_REGISTRY?.trim();
|
|
14
15
|
if (e) return e.replace(/\/+$/, "");
|
|
15
16
|
} catch {}
|
|
16
|
-
return
|
|
17
|
+
return r;
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
+
function o(n) {
|
|
19
20
|
if (e(n)) return n;
|
|
20
21
|
if (t(n)) return "vibe-plugins";
|
|
21
22
|
throw Error(`Unknown assistant mode ${JSON.stringify(n)}: no sandbox image is defined for it.`);
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
-
switch (
|
|
24
|
+
function s(e, t) {
|
|
25
|
+
switch (o(e)) {
|
|
25
26
|
case "general":
|
|
26
27
|
case "vibe-plugins": return t ? "prod" : "alpha-proxy-auth-v1";
|
|
27
28
|
case "assistant":
|
|
28
29
|
case "api-calls": return t ? "prod" : "alpha-delegated-auth-v11";
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
let n =
|
|
33
|
-
return `${
|
|
32
|
+
function c(e, t) {
|
|
33
|
+
let n = o(e), r = n === "assistant" ? "api-calls" : n;
|
|
34
|
+
return `${a()}/wspace/ai-assistant-${r}:${s(e, t)}`;
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
36
|
+
function l(e) {
|
|
37
|
+
return o(e) === "general" ? {
|
|
37
38
|
cpuRequest: "100m",
|
|
38
39
|
cpuLimit: "500m",
|
|
39
40
|
memoryRequest: "256Mi",
|
|
@@ -45,11 +46,11 @@ function c(e) {
|
|
|
45
46
|
memoryLimit: "1536Mi"
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function u(n, r = []) {
|
|
49
50
|
let i = n.metadata?.assistantMode;
|
|
50
51
|
if (e(i) || t(i) && r.includes(i)) return i;
|
|
51
52
|
if (i != null) return null;
|
|
52
53
|
let a = n.name ?? "";
|
|
53
54
|
return a.startsWith("ai-assistant-vibe-plugins-") ? "vibe-plugins" : a.startsWith("ai-assistant-api-calls-") ? "api-calls" : a.startsWith("ai-assistant-general-") ? "general" : a.startsWith("ai-assistant-assistant-") ? "assistant" : null;
|
|
54
55
|
}
|
|
55
|
-
export {
|
|
56
|
+
export { i as ASSISTANT_API_AUTH_STRATEGY, c as getImageForMode, s as getImageTagForMode, l as getResourcesForMode, a as getSandboxImageRegistry, u as resolveSandboxAssistantMode, o as sandboxBaseModeFor };
|
|
@@ -91,6 +91,7 @@ export * from './voice/voiceStartedCue';
|
|
|
91
91
|
export * from './pendingWrite';
|
|
92
92
|
export * from './liveTurns';
|
|
93
93
|
export * from './images';
|
|
94
|
+
export * from './sandboxRegistry';
|
|
94
95
|
export * from './operations';
|
|
95
96
|
export * from './capabilities';
|
|
96
97
|
export * from './speech/hostedTtsProtocol';
|