@hintergrund/ui 0.3.9 → 0.3.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/dist/BuilderAgentPane-Cf2EQd0U.js +1 -0
- package/dist/IntegrationHealth-CBFYmR_K.js +1 -0
- package/dist/admin.js +2 -23351
- package/dist/anthropic-messages-CXPLHUpk.js +1 -0
- package/dist/assets/index-DI9TbuA9.js +34669 -0
- package/dist/builder.js +1 -28
- package/dist/config.types-CElC76m0.js +1 -0
- package/dist/deferred-tools-8QtAASke.js +1 -0
- package/dist/error-body-B13t5xBI.js +1 -0
- package/dist/github-copilot-headers-n6Dqf6oj.js +1 -0
- package/dist/global-BmWXMWNY.js +2 -0
- package/dist/google-generative-ai-CNHCOvQN.js +1 -0
- package/dist/legacy-DcJfom53.js +1 -0
- package/dist/login.js +1 -133
- package/dist/mail.js +1 -698
- package/dist/openai-completions-CSZJSCfj.js +1 -0
- package/dist/openai-prompt-cache-Mi5dPc0-.js +1 -0
- package/dist/openai-responses-BU24JgAs.js +1 -0
- package/dist/setup.js +1 -402
- package/dist/transform-messages-C1f-L9_8.js +1 -0
- package/package.json +4 -3
- package/dist/BuilderAgentPane-DsEI4-Al.js +0 -23164
- package/dist/IntegrationHealth-jTXhVEhP.js +0 -218
- package/dist/anthropic-messages-DeTygrtE.js +0 -3772
- package/dist/azure-openai-responses-BEt9HtWb.js +0 -168
- package/dist/config.types-DZ5yfeqq.js +0 -20
- package/dist/deferred-tools-nxpq94I4.js +0 -34
- package/dist/diagnostics-x5QOwca_.js +0 -91
- package/dist/error-body-pXgvw5vV.js +0 -68
- package/dist/font-pool/LICENSES.txt +0 -22
- package/dist/font-pool/inter.ttf +0 -0
- package/dist/font-pool/inter.woff2 +0 -0
- package/dist/font-pool/jetbrains-mono.ttf +0 -0
- package/dist/font-pool/jetbrains-mono.woff2 +0 -0
- package/dist/font-pool/lora.ttf +0 -0
- package/dist/font-pool/lora.woff2 +0 -0
- package/dist/font-pool/merriweather.ttf +0 -0
- package/dist/font-pool/merriweather.woff2 +0 -0
- package/dist/font-pool/montserrat.ttf +0 -0
- package/dist/font-pool/montserrat.woff2 +0 -0
- package/dist/font-pool/playfair-display.ttf +0 -0
- package/dist/font-pool/playfair-display.woff2 +0 -0
- package/dist/font-pool/poppins.ttf +0 -0
- package/dist/font-pool/poppins.woff2 +0 -0
- package/dist/font-pool/roboto.ttf +0 -0
- package/dist/font-pool/roboto.woff2 +0 -0
- package/dist/font-pool/space-grotesk.ttf +0 -0
- package/dist/font-pool/space-grotesk.woff2 +0 -0
- package/dist/font-pool/work-sans.ttf +0 -0
- package/dist/font-pool/work-sans.woff2 +0 -0
- package/dist/github-copilot-headers-pRo3v4t7.js +0 -27
- package/dist/global-5AbycIwc.js +0 -33349
- package/dist/google-generative-ai-CwE_Q3Ns.js +0 -291
- package/dist/google-shared-CG2Lbh1z.js +0 -8746
- package/dist/google-vertex-Bps529Az.js +0 -329
- package/dist/hash-BixfZjoG.js +0 -21
- package/dist/headers-CnTiKpOL.js +0 -24
- package/dist/json-parse-CxjAnWaM.js +0 -231
- package/dist/legacy-DeQqoiXf.js +0 -14
- package/dist/mistral-conversations-B48Orl3n.js +0 -558
- package/dist/openai-ClxLHXsh.js +0 -5371
- package/dist/openai-codex-responses-CV5PzsyD.js +0 -909
- package/dist/openai-completions-Lehh2IT3.js +0 -730
- package/dist/openai-prompt-cache-Bm8Re6Vv.js +0 -17
- package/dist/openai-responses-BXliJnO9.js +0 -192
- package/dist/openai-responses-shared-BfJJDr6-.js +0 -481
- package/dist/pi-messages-CRx0yqMp.js +0 -268
- package/dist/pi-user-agent-CsXkkH60.js +0 -20
- package/dist/provider-env-Cj6X7Wly.js +0 -35
- package/dist/provider-retry-BGImU1PV.js +0 -68
- package/dist/rolldown-runtime-nTTD767F.js +0 -37
- package/dist/transform-messages-DvxSeyBQ.js +0 -383
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
globalThis.process === void 0 && (globalThis.process = {
|
|
2
|
-
env: {},
|
|
3
|
-
platform: "browser",
|
|
4
|
-
version: "",
|
|
5
|
-
versions: {},
|
|
6
|
-
browser: !0,
|
|
7
|
-
nextTick: function(e) {
|
|
8
|
-
return Promise.resolve().then(e);
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
import { m as e } from "./BuilderAgentPane-DsEI4-Al.js";
|
|
12
|
-
import { i as t } from "./diagnostics-x5QOwca_.js";
|
|
13
|
-
import { t as n } from "./provider-env-Cj6X7Wly.js";
|
|
14
|
-
import { t as r } from "./headers-CnTiKpOL.js";
|
|
15
|
-
import { t as i } from "./provider-retry-BGImU1PV.js";
|
|
16
|
-
import { c as a, i as o } from "./transform-messages-DvxSeyBQ.js";
|
|
17
|
-
import { t as s } from "./openai-ClxLHXsh.js";
|
|
18
|
-
import { n as c, t as l } from "./error-body-pXgvw5vV.js";
|
|
19
|
-
import { t as u } from "./openai-prompt-cache-Bm8Re6Vv.js";
|
|
20
|
-
import { n as d, r as f, t as p } from "./openai-responses-shared-BfJJDr6-.js";
|
|
21
|
-
//#region ../../../../node_modules/.pnpm/@earendil-works+pi-ai@0.84.2_supports-color@10.2.2_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js
|
|
22
|
-
var m = "v1", h = /* @__PURE__ */ new Set([
|
|
23
|
-
"openai",
|
|
24
|
-
"openai-codex",
|
|
25
|
-
"opencode",
|
|
26
|
-
"azure-openai-responses"
|
|
27
|
-
]), g = 16;
|
|
28
|
-
function _(e) {
|
|
29
|
-
let t = /* @__PURE__ */ new Map();
|
|
30
|
-
if (!e) return t;
|
|
31
|
-
for (let n of e.split(",")) {
|
|
32
|
-
let e = n.trim();
|
|
33
|
-
if (!e) continue;
|
|
34
|
-
let [r, i] = e.split("=", 2);
|
|
35
|
-
r && i && t.set(r.trim(), i.trim());
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
}
|
|
39
|
-
function v(e, t) {
|
|
40
|
-
return t?.azureDeploymentName ? t.azureDeploymentName : _(n("AZURE_OPENAI_DEPLOYMENT_NAME_MAP", t?.env)).get(e.id) || e.id;
|
|
41
|
-
}
|
|
42
|
-
function y(e) {
|
|
43
|
-
return l(c(e), "Azure OpenAI API error");
|
|
44
|
-
}
|
|
45
|
-
var b = (e, n, o) => {
|
|
46
|
-
let s = new t();
|
|
47
|
-
return (async () => {
|
|
48
|
-
let t = v(e, o), c = {
|
|
49
|
-
role: "assistant",
|
|
50
|
-
content: [],
|
|
51
|
-
api: "azure-openai-responses",
|
|
52
|
-
provider: e.provider,
|
|
53
|
-
model: e.id,
|
|
54
|
-
usage: {
|
|
55
|
-
input: 0,
|
|
56
|
-
output: 0,
|
|
57
|
-
cacheRead: 0,
|
|
58
|
-
cacheWrite: 0,
|
|
59
|
-
totalTokens: 0,
|
|
60
|
-
cost: {
|
|
61
|
-
input: 0,
|
|
62
|
-
output: 0,
|
|
63
|
-
cacheRead: 0,
|
|
64
|
-
cacheWrite: 0,
|
|
65
|
-
total: 0
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
stopReason: "pending",
|
|
69
|
-
timestamp: Date.now()
|
|
70
|
-
};
|
|
71
|
-
try {
|
|
72
|
-
let l = o?.apiKey;
|
|
73
|
-
if (!l) throw Error(`No API key for provider: ${e.provider}`);
|
|
74
|
-
let u = T(e, l, o), d = a(n.tools, e.compat?.supportsOpenAIGrammarTools ?? !1), p = E(e, n, o, t, d), m = await o?.onPayload?.(p, e);
|
|
75
|
-
m !== void 0 && (p = m);
|
|
76
|
-
let h = {
|
|
77
|
-
...o?.signal ? { signal: o.signal } : {},
|
|
78
|
-
...o?.timeoutMs === void 0 ? {} : { timeout: o.timeoutMs },
|
|
79
|
-
maxRetries: 0
|
|
80
|
-
}, { data: g, response: _ } = await i(() => u.responses.create(p, h).withResponse(), {
|
|
81
|
-
maxRetries: o?.maxRetries,
|
|
82
|
-
maxRetryDelayMs: o?.maxRetryDelayMs,
|
|
83
|
-
signal: o?.signal
|
|
84
|
-
});
|
|
85
|
-
if (await o?.onResponse?.({
|
|
86
|
-
status: _.status,
|
|
87
|
-
headers: r(_.headers)
|
|
88
|
-
}, e), s.push({
|
|
89
|
-
type: "start",
|
|
90
|
-
partial: c
|
|
91
|
-
}), await f(g, c, s, e, { grammarToolInputProperties: d }), o?.signal?.aborted) throw Error("Request was aborted");
|
|
92
|
-
if (c.stopReason === "pending") throw Error("Azure OpenAI Responses stream ended without a stop reason");
|
|
93
|
-
if (c.stopReason === "aborted" || c.stopReason === "error") throw Error(c.errorMessage || "An unknown error occurred");
|
|
94
|
-
s.push({
|
|
95
|
-
type: "done",
|
|
96
|
-
reason: c.stopReason,
|
|
97
|
-
message: c
|
|
98
|
-
}), s.end();
|
|
99
|
-
} catch (e) {
|
|
100
|
-
for (let e of c.content) delete e.index, delete e.partialJson, delete e.customInput;
|
|
101
|
-
c.stopReason = o?.signal?.aborted ? "aborted" : "error", c.errorMessage = y(e), s.push({
|
|
102
|
-
type: "error",
|
|
103
|
-
reason: c.stopReason,
|
|
104
|
-
error: c
|
|
105
|
-
}), s.end();
|
|
106
|
-
}
|
|
107
|
-
})(), s;
|
|
108
|
-
}, x = (t, n, r) => {
|
|
109
|
-
let i = r?.apiKey;
|
|
110
|
-
if (!i) throw Error(`No API key for provider: ${t.provider}`);
|
|
111
|
-
let a = o(t, n, r, i), s = r?.reasoning ? e(t, r.reasoning) : void 0, c = s === "off" ? void 0 : s;
|
|
112
|
-
return b(t, n, {
|
|
113
|
-
...a,
|
|
114
|
-
reasoningEffort: c
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
function S(e) {
|
|
118
|
-
let t = e.trim().replace(/\/+$/, ""), n;
|
|
119
|
-
try {
|
|
120
|
-
n = new URL(t);
|
|
121
|
-
} catch {
|
|
122
|
-
throw Error(`Invalid Azure OpenAI base URL: ${e}`);
|
|
123
|
-
}
|
|
124
|
-
let r = n.hostname.endsWith(".openai.azure.com") || n.hostname.endsWith(".cognitiveservices.azure.com") || n.hostname.endsWith(".ai.azure.com"), i = n.pathname.replace(/\/+$/, "");
|
|
125
|
-
return r && (i === "" || i === "/" || i === "/openai" || i === "/openai/v1/responses") && (n.pathname = "/openai/v1", n.search = ""), n.toString().replace(/\/+$/, "");
|
|
126
|
-
}
|
|
127
|
-
function C(e) {
|
|
128
|
-
return `https://${e}.openai.azure.com/openai/v1`;
|
|
129
|
-
}
|
|
130
|
-
function w(e, t) {
|
|
131
|
-
let r = t?.azureApiVersion || n("AZURE_OPENAI_API_VERSION", t?.env) || m, i = t?.azureBaseUrl?.trim() || n("AZURE_OPENAI_BASE_URL", t?.env)?.trim() || void 0, a = t?.azureResourceName || n("AZURE_OPENAI_RESOURCE_NAME", t?.env), o = i;
|
|
132
|
-
if (!o && a && (o = C(a)), !o && e.baseUrl && (o = e.baseUrl), !o) throw Error("Azure OpenAI base URL is required. Set AZURE_OPENAI_BASE_URL or AZURE_OPENAI_RESOURCE_NAME, or pass azureBaseUrl, azureResourceName, or model.baseUrl.");
|
|
133
|
-
return {
|
|
134
|
-
baseUrl: S(o),
|
|
135
|
-
apiVersion: r
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
function T(e, t, n) {
|
|
139
|
-
let r = { ...e.headers };
|
|
140
|
-
n?.headers && Object.assign(r, n.headers);
|
|
141
|
-
let { baseUrl: i, apiVersion: a } = w(e, n);
|
|
142
|
-
return new s({
|
|
143
|
-
apiKey: t,
|
|
144
|
-
apiVersion: a,
|
|
145
|
-
dangerouslyAllowBrowser: !0,
|
|
146
|
-
fetch: n?.fetch,
|
|
147
|
-
defaultHeaders: r,
|
|
148
|
-
baseURL: i
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
function E(e, t, n, r, i = a(t.tools, e.compat?.supportsOpenAIGrammarTools ?? !1)) {
|
|
152
|
-
let o = {
|
|
153
|
-
model: r,
|
|
154
|
-
input: p(e, t, h, { grammarToolInputProperties: i }),
|
|
155
|
-
stream: !0,
|
|
156
|
-
prompt_cache_key: u(n?.sessionId),
|
|
157
|
-
store: !1
|
|
158
|
-
};
|
|
159
|
-
return n?.maxTokens && (o.max_output_tokens = Math.max(n.maxTokens, g)), n?.temperature !== void 0 && (o.temperature = n?.temperature), t.tools && t.tools.length > 0 && (o.tools = d(t.tools, {
|
|
160
|
-
supportsStrictMode: e.compat?.supportsStrictMode ?? !0,
|
|
161
|
-
supportsOpenAIGrammarTools: e.compat?.supportsOpenAIGrammarTools ?? !1
|
|
162
|
-
})), e.reasoning && (n?.reasoningEffort || n?.reasoningSummary ? (o.reasoning = {
|
|
163
|
-
effort: n?.reasoningEffort ? e.thinkingLevelMap?.[n.reasoningEffort] ?? n.reasoningEffort : "medium",
|
|
164
|
-
summary: n?.reasoningSummary || "auto"
|
|
165
|
-
}, o.include = ["reasoning.encrypted_content"]) : e.thinkingLevelMap?.off !== null && (o.reasoning = { effort: e.thinkingLevelMap?.off ?? "none" })), n?.samplingParams && Object.assign(o, n.samplingParams), o;
|
|
166
|
-
}
|
|
167
|
-
//#endregion
|
|
168
|
-
export { b as stream, x as streamSimple };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
globalThis.process === void 0 && (globalThis.process = {
|
|
2
|
-
env: {},
|
|
3
|
-
platform: "browser",
|
|
4
|
-
version: "",
|
|
5
|
-
versions: {},
|
|
6
|
-
browser: !0,
|
|
7
|
-
nextTick: function(e) {
|
|
8
|
-
return Promise.resolve().then(e);
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
//#region ../runtime-contracts/dist/config.types.js
|
|
12
|
-
var e = ["google", "deepseek"], t = {
|
|
13
|
-
google: "GEMINI_API_KEY",
|
|
14
|
-
deepseek: "DEEPSEEK_API_KEY"
|
|
15
|
-
}, n = {
|
|
16
|
-
google: "Google Gemini",
|
|
17
|
-
deepseek: "DeepSeek"
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { n, t as r, e as t };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
globalThis.process === void 0 && (globalThis.process = {
|
|
2
|
-
env: {},
|
|
3
|
-
platform: "browser",
|
|
4
|
-
version: "",
|
|
5
|
-
versions: {},
|
|
6
|
-
browser: !0,
|
|
7
|
-
nextTick: function(e) {
|
|
8
|
-
return Promise.resolve().then(e);
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
//#region ../../../../node_modules/.pnpm/@earendil-works+pi-ai@0.84.2_supports-color@10.2.2_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js
|
|
12
|
-
var e = (e) => e;
|
|
13
|
-
function t(t, n, r = e) {
|
|
14
|
-
let i = /* @__PURE__ */ new Map();
|
|
15
|
-
for (let e of t.tools ?? []) i.set(r(e.name), e);
|
|
16
|
-
if (!n) return {
|
|
17
|
-
immediate: [...i.values()],
|
|
18
|
-
deferred: /* @__PURE__ */ new Map()
|
|
19
|
-
};
|
|
20
|
-
let a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
|
|
21
|
-
for (let e of t.messages) if (e.role === "assistant") for (let t of e.content) t.type === "toolCall" && o.add(r(t.name));
|
|
22
|
-
else if (e.role === "toolResult") for (let t of e.addedToolNames ?? []) {
|
|
23
|
-
let e = r(t);
|
|
24
|
-
o.has(e) || a.add(e);
|
|
25
|
-
}
|
|
26
|
-
let s = [], c = /* @__PURE__ */ new Map();
|
|
27
|
-
for (let [e, t] of i) a.has(e) ? c.set(e, t) : s.push(t);
|
|
28
|
-
return {
|
|
29
|
-
immediate: s,
|
|
30
|
-
deferred: c
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
export { t };
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
globalThis.process === void 0 && (globalThis.process = {
|
|
2
|
-
env: {},
|
|
3
|
-
platform: "browser",
|
|
4
|
-
version: "",
|
|
5
|
-
versions: {},
|
|
6
|
-
browser: !0,
|
|
7
|
-
nextTick: function(e) {
|
|
8
|
-
return Promise.resolve().then(e);
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
//#region ../../../../node_modules/.pnpm/@earendil-works+pi-ai@0.84.2_supports-color@10.2.2_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js
|
|
12
|
-
var e = class {
|
|
13
|
-
queue = [];
|
|
14
|
-
waiting = [];
|
|
15
|
-
done = !1;
|
|
16
|
-
finalResultPromise;
|
|
17
|
-
resolveFinalResult;
|
|
18
|
-
isComplete;
|
|
19
|
-
extractResult;
|
|
20
|
-
constructor(e, t) {
|
|
21
|
-
this.isComplete = e, this.extractResult = t, this.finalResultPromise = new Promise((e) => {
|
|
22
|
-
this.resolveFinalResult = e;
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
push(e) {
|
|
26
|
-
if (this.done) return;
|
|
27
|
-
this.isComplete(e) && (this.done = !0, this.resolveFinalResult(this.extractResult(e)));
|
|
28
|
-
let t = this.waiting.shift();
|
|
29
|
-
t ? t({
|
|
30
|
-
value: e,
|
|
31
|
-
done: !1
|
|
32
|
-
}) : this.queue.push(e);
|
|
33
|
-
}
|
|
34
|
-
end(e) {
|
|
35
|
-
for (this.done = !0, e !== void 0 && this.resolveFinalResult(e); this.waiting.length > 0;) this.waiting.shift()({
|
|
36
|
-
value: void 0,
|
|
37
|
-
done: !0
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
async *[Symbol.asyncIterator]() {
|
|
41
|
-
for (;;) if (this.queue.length > 0) yield this.queue.shift();
|
|
42
|
-
else if (this.done) return;
|
|
43
|
-
else {
|
|
44
|
-
let e = await new Promise((e) => this.waiting.push(e));
|
|
45
|
-
if (e.done) return;
|
|
46
|
-
yield e.value;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
result() {
|
|
50
|
-
return this.finalResultPromise;
|
|
51
|
-
}
|
|
52
|
-
}, t = class extends e {
|
|
53
|
-
constructor() {
|
|
54
|
-
super((e) => e.type === "done" || e.type === "error", (e) => {
|
|
55
|
-
if (e.type === "done") return e.message;
|
|
56
|
-
if (e.type === "error") return e.error;
|
|
57
|
-
throw Error("Unexpected event type for final result");
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region ../../../../node_modules/.pnpm/@earendil-works+pi-ai@0.84.2_supports-color@10.2.2_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.js
|
|
63
|
-
function n(e) {
|
|
64
|
-
return e instanceof Error ? e.message || e.name : typeof e == "string" ? e : String(e);
|
|
65
|
-
}
|
|
66
|
-
function r(e) {
|
|
67
|
-
if (!(e instanceof Error)) return {
|
|
68
|
-
name: "ThrownValue",
|
|
69
|
-
message: n(e)
|
|
70
|
-
};
|
|
71
|
-
let t = e.code;
|
|
72
|
-
return {
|
|
73
|
-
name: e.name || void 0,
|
|
74
|
-
message: e.message || e.name,
|
|
75
|
-
stack: e.stack,
|
|
76
|
-
code: typeof t == "string" || typeof t == "number" ? t : void 0
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function i(e, t, n) {
|
|
80
|
-
return {
|
|
81
|
-
type: e,
|
|
82
|
-
timestamp: Date.now(),
|
|
83
|
-
error: r(t),
|
|
84
|
-
details: n
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function a(e, t) {
|
|
88
|
-
e.diagnostics = [...e.diagnostics ?? [], t];
|
|
89
|
-
}
|
|
90
|
-
//#endregion
|
|
91
|
-
export { t as i, i as n, n as r, a as t };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
globalThis.process === void 0 && (globalThis.process = {
|
|
2
|
-
env: {},
|
|
3
|
-
platform: "browser",
|
|
4
|
-
version: "",
|
|
5
|
-
versions: {},
|
|
6
|
-
browser: !0,
|
|
7
|
-
nextTick: function(e) {
|
|
8
|
-
return Promise.resolve().then(e);
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
//#region ../../../../node_modules/.pnpm/@earendil-works+pi-ai@0.84.2_supports-color@10.2.2_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js
|
|
12
|
-
var e = 4e3;
|
|
13
|
-
function t(e) {
|
|
14
|
-
if (!(e instanceof Error)) return {
|
|
15
|
-
message: l(e),
|
|
16
|
-
messageCarriesBody: !1
|
|
17
|
-
};
|
|
18
|
-
let t = e, i = n(t), a = r(t), o = a === void 0 || e.message.includes(a);
|
|
19
|
-
return {
|
|
20
|
-
status: i,
|
|
21
|
-
body: a,
|
|
22
|
-
message: e.message,
|
|
23
|
-
messageCarriesBody: o
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function n(e) {
|
|
27
|
-
if (typeof e.statusCode == "number") return e.statusCode;
|
|
28
|
-
if (typeof e.status == "number") return e.status;
|
|
29
|
-
if (typeof e.$metadata?.httpStatusCode == "number") return e.$metadata.httpStatusCode;
|
|
30
|
-
if (typeof e.$response?.statusCode == "number") return e.$response.statusCode;
|
|
31
|
-
}
|
|
32
|
-
function r(t) {
|
|
33
|
-
let n = i(t);
|
|
34
|
-
if (n === void 0) return;
|
|
35
|
-
let r = n.trim();
|
|
36
|
-
if (r.length !== 0) return c(r, e);
|
|
37
|
-
}
|
|
38
|
-
function i(e) {
|
|
39
|
-
if (typeof e.body == "string") return e.body;
|
|
40
|
-
if (o(e.error)) return l(e.error);
|
|
41
|
-
let t = e.$response?.body;
|
|
42
|
-
if (typeof t == "string") return t;
|
|
43
|
-
if (!a(t) && o(t)) return l(t);
|
|
44
|
-
}
|
|
45
|
-
function a(e) {
|
|
46
|
-
return typeof e == "object" && !!e && "pipe" in e && typeof e.pipe == "function";
|
|
47
|
-
}
|
|
48
|
-
function o(e) {
|
|
49
|
-
if (typeof e != "object" || !e) return !1;
|
|
50
|
-
let t = Object.getPrototypeOf(e);
|
|
51
|
-
return t !== Object.prototype && t !== null ? !1 : Object.keys(e).length > 0;
|
|
52
|
-
}
|
|
53
|
-
function s(e, t) {
|
|
54
|
-
return e.messageCarriesBody || e.status === void 0 || e.body === void 0 ? t !== void 0 && e.status !== void 0 ? `${t} (${e.status}): ${e.message}` : e.message : t === void 0 ? `${e.status}: ${e.body}` : `${t} (${e.status}): ${e.body}`;
|
|
55
|
-
}
|
|
56
|
-
function c(e, t) {
|
|
57
|
-
return e.length <= t ? e : `${e.slice(0, t)}... [truncated ${e.length - t} chars]`;
|
|
58
|
-
}
|
|
59
|
-
function l(e) {
|
|
60
|
-
try {
|
|
61
|
-
let t = JSON.stringify(e);
|
|
62
|
-
return t === void 0 ? String(e) : t;
|
|
63
|
-
} catch {
|
|
64
|
-
return String(e);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
//#endregion
|
|
68
|
-
export { t as n, s as t };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Fonts in this pool are vendored from Google Fonts and copied into a project
|
|
2
|
-
repository when the owner selects them.
|
|
3
|
-
|
|
4
|
-
Apache License 2.0:
|
|
5
|
-
Roboto https://fonts.google.com/specimen/Roboto
|
|
6
|
-
|
|
7
|
-
SIL Open Font License 1.1:
|
|
8
|
-
Inter https://fonts.google.com/specimen/Inter
|
|
9
|
-
Montserrat https://fonts.google.com/specimen/Montserrat
|
|
10
|
-
Poppins https://fonts.google.com/specimen/Poppins
|
|
11
|
-
Work Sans https://fonts.google.com/specimen/Work+Sans
|
|
12
|
-
Playfair Display https://fonts.google.com/specimen/Playfair+Display
|
|
13
|
-
Lora https://fonts.google.com/specimen/Lora
|
|
14
|
-
Merriweather https://fonts.google.com/specimen/Merriweather
|
|
15
|
-
Space Grotesk https://fonts.google.com/specimen/Space+Grotesk
|
|
16
|
-
JetBrains Mono https://fonts.google.com/specimen/JetBrains+Mono
|
|
17
|
-
|
|
18
|
-
Both licences permit embedding and redistribution, including inside a
|
|
19
|
-
customer's repository and in generated PDF documents.
|
|
20
|
-
|
|
21
|
-
Full licence texts: https://www.apache.org/licenses/LICENSE-2.0 and
|
|
22
|
-
https://openfontlicense.org/
|
package/dist/font-pool/inter.ttf
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/font-pool/lora.ttf
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
globalThis.process === void 0 && (globalThis.process = {
|
|
2
|
-
env: {},
|
|
3
|
-
platform: "browser",
|
|
4
|
-
version: "",
|
|
5
|
-
versions: {},
|
|
6
|
-
browser: !0,
|
|
7
|
-
nextTick: function(e) {
|
|
8
|
-
return Promise.resolve().then(e);
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
//#region ../../../../node_modules/.pnpm/@earendil-works+pi-ai@0.84.2_supports-color@10.2.2_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/api/github-copilot-headers.js
|
|
12
|
-
function e(e) {
|
|
13
|
-
let t = e[e.length - 1];
|
|
14
|
-
return t && t.role !== "user" ? "agent" : "user";
|
|
15
|
-
}
|
|
16
|
-
function t(e) {
|
|
17
|
-
return e.some((e) => e.role === "user" && Array.isArray(e.content) || e.role === "toolResult" && Array.isArray(e.content) ? e.content.some((e) => e.type === "image") : !1);
|
|
18
|
-
}
|
|
19
|
-
function n(t) {
|
|
20
|
-
let n = {
|
|
21
|
-
"X-Initiator": e(t.messages),
|
|
22
|
-
"Openai-Intent": "conversation-edits"
|
|
23
|
-
};
|
|
24
|
-
return t.hasImages && (n["Copilot-Vision-Request"] = "true"), n;
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { t as n, n as t };
|