@burdenoff/fe-libs 2026.814.2 → 2026.814.3
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,5 +1,12 @@
|
|
|
1
1
|
import { AssistantMode } from './types';
|
|
2
2
|
declare const ASSISTANT_API_AUTH_STRATEGY = "sandbox-app-client-headers-v1";
|
|
3
|
+
/**
|
|
4
|
+
* Resolve the sandbox-image registry: build-time `VITE_SANDBOX_IMAGE_REGISTRY`
|
|
5
|
+
* override, else the Azure default. `import.meta.env` is only available in
|
|
6
|
+
* code paths Vite transforms; non-Vite test runners and SSR contexts may not
|
|
7
|
+
* see it, so the read is guarded (same pattern as config/gatewayUrls.ts).
|
|
8
|
+
*/
|
|
9
|
+
export declare function getSandboxImageRegistry(): string;
|
|
3
10
|
export declare function getImageTagForMode(mode: AssistantMode, isProd: boolean): string;
|
|
4
11
|
export declare function getImageForMode(mode: AssistantMode, isProd: boolean): string;
|
|
5
12
|
export declare function getResourcesForMode(mode: AssistantMode): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/shared/assistant/images.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/shared/assistant/images.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAU7C,QAAA,MAAM,2BAA2B,kCAAkC,CAAC;AAEpE;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAUhD;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,aAAa,EACnB,MAAM,EAAE,OAAO,GACd,MAAM,CASR;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAI5E;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,aAAa,GAAG;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,CAeA;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC,wBAAgB,2BAA2B,CAAC,OAAO,EAAE;IACnD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACzC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,GAAG,aAAa,GAAG,IAAI,CAgBvB"}
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
//#region src/shared/assistant/images.ts
|
|
2
2
|
var e = "burdenoffregistry.azurecr.io", t = "sandbox-app-client-headers-v1";
|
|
3
|
-
function n(
|
|
3
|
+
function n() {
|
|
4
|
+
try {
|
|
5
|
+
let e = {
|
|
6
|
+
BASE_URL: "/",
|
|
7
|
+
DEV: !1,
|
|
8
|
+
MODE: "production",
|
|
9
|
+
PROD: !0,
|
|
10
|
+
SSR: !1
|
|
11
|
+
}?.VITE_SANDBOX_IMAGE_REGISTRY?.trim();
|
|
12
|
+
if (e) return e.replace(/\/+$/, "");
|
|
13
|
+
} catch {}
|
|
14
|
+
return e;
|
|
15
|
+
}
|
|
16
|
+
function r(e, t) {
|
|
4
17
|
switch (e) {
|
|
5
18
|
case "general":
|
|
6
19
|
case "vibe-plugins": return t ? "prod" : "alpha-proxy-auth-v1";
|
|
@@ -8,10 +21,11 @@ function n(e, t) {
|
|
|
8
21
|
case "api-calls": return t ? "prod" : "alpha-delegated-auth-v11";
|
|
9
22
|
}
|
|
10
23
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
24
|
+
function i(e, t) {
|
|
25
|
+
let i = e === "assistant" ? "api-calls" : e;
|
|
26
|
+
return `${n()}/wspace/ai-assistant-${i}:${r(e, t)}`;
|
|
13
27
|
}
|
|
14
|
-
function
|
|
28
|
+
function a(e) {
|
|
15
29
|
return e === "general" ? {
|
|
16
30
|
cpuRequest: "100m",
|
|
17
31
|
cpuLimit: "500m",
|
|
@@ -24,11 +38,11 @@ function i(e) {
|
|
|
24
38
|
memoryLimit: "1536Mi"
|
|
25
39
|
};
|
|
26
40
|
}
|
|
27
|
-
function
|
|
41
|
+
function o(e) {
|
|
28
42
|
let t = e.metadata?.assistantMode;
|
|
29
43
|
if (t === "assistant" || t === "general" || t === "api-calls" || t === "vibe-plugins") return t;
|
|
30
44
|
let n = e.name ?? "";
|
|
31
45
|
return n.startsWith("ai-assistant-vibe-plugins-") ? "vibe-plugins" : n.startsWith("ai-assistant-api-calls-") ? "api-calls" : n.startsWith("ai-assistant-general-") ? "general" : n.startsWith("ai-assistant-assistant-") ? "assistant" : null;
|
|
32
46
|
}
|
|
33
47
|
//#endregion
|
|
34
|
-
export { t as ASSISTANT_API_AUTH_STRATEGY,
|
|
48
|
+
export { t as ASSISTANT_API_AUTH_STRATEGY, i as getImageForMode, r as getImageTagForMode, a as getResourcesForMode, o as resolveSandboxAssistantMode };
|