@hintergrund/ui 0.2.3 → 0.3.1

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,4 +1,4 @@
1
- import { d as an, f as Ct } from "./Builder-H8tY8V9I.js";
1
+ import { D as an, H as Ct } from "./BuilderAgentPane-B7-K-t7-.js";
2
2
  import { s as on } from "./deferred-tools-BZWMWBYN.js";
3
3
  import { h as cn } from "./headers-D4iLzGaS.js";
4
4
  import { p as Ot, a as ln } from "./json-parse-LZdWp-Nd.js";
@@ -1,12 +1,12 @@
1
1
  import { O as y, a as p, r as f, i as R, b as g } from "./client-Cd7yMX39.js";
2
- import { d as _, e as I } from "./Builder-H8tY8V9I.js";
2
+ import { D as _, G as I } from "./BuilderAgentPane-B7-K-t7-.js";
3
3
  import { f as O, n as v } from "./error-body-BUPcH4GF.js";
4
4
  import { h as P } from "./headers-D4iLzGaS.js";
5
5
  import { g as m } from "./provider-env-D2VjEV3S.js";
6
6
  import { r as b } from "./provider-retry-BsigVlMg.js";
7
7
  import { c as h, b as w } from "./transform-messages-CsKsy6b4.js";
8
8
  import { c as N } from "./openai-prompt-cache-BJwqbEDx.js";
9
- import { p as U, c as z, a as S } from "./openai-responses-shared-DqdzMfa_.js";
9
+ import { p as U, c as z, a as S } from "./openai-responses-shared-C_oYyHxW.js";
10
10
  typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(r) {
11
11
  return Promise.resolve().then(r);
12
12
  } });
@@ -120,18 +120,18 @@ const Z = (r, a, e) => {
120
120
  throw new Error(`No API key for provider: ${r.provider}`);
121
121
  const i = C(r, o, e), u = h(a.tools, r.compat?.supportsOpenAIGrammarTools ?? !1);
122
122
  let c = G(r, a, e, n, u);
123
- const d = await e?.onPayload?.(c, r);
124
- d !== void 0 && (c = d);
123
+ const l = await e?.onPayload?.(c, r);
124
+ l !== void 0 && (c = l);
125
125
  const A = {
126
126
  ...e?.signal ? { signal: e.signal } : {},
127
127
  ...e?.timeoutMs !== void 0 ? { timeout: e.timeoutMs } : {},
128
128
  maxRetries: 0
129
- }, { data: E, response: l } = await b(() => i.responses.create(c, A).withResponse(), {
129
+ }, { data: E, response: d } = await b(() => i.responses.create(c, A).withResponse(), {
130
130
  maxRetries: e?.maxRetries,
131
131
  maxRetryDelayMs: e?.maxRetryDelayMs,
132
132
  signal: e?.signal
133
133
  });
134
- if (await e?.onResponse?.({ status: l.status, headers: P(l.headers) }, r), t.push({ type: "start", partial: s }), await U(E, s, t, r, { grammarToolInputProperties: u }), e?.signal?.aborted)
134
+ if (await e?.onResponse?.({ status: d.status, headers: P(d.headers) }, r), t.push({ type: "start", partial: s }), await U(E, s, t, r, { grammarToolInputProperties: u }), e?.signal?.aborted)
135
135
  throw new Error("Request was aborted");
136
136
  if (s.stopReason === "pending")
137
137
  throw new Error("Azure OpenAI Responses stream ended without a stop reason");
package/dist/builder.js CHANGED
@@ -1,8 +1,23 @@
1
- import "./global-Bk9T4Af5.js";
2
- import { B as i } from "./Builder-H8tY8V9I.js";
1
+ import { K as n, L as i, N as u, O as a, _ as l, $ as p } from "./global-CGPq4E9I.js";
2
+ import { u as c } from "./BuilderAgentPane-B7-K-t7-.js";
3
3
  typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
4
4
  return Promise.resolve().then(e);
5
5
  } });
6
+ function d(e, r) {
7
+ i(r, !0);
8
+ let t = u(r, "projectId", 7, "");
9
+ a();
10
+ var o = {
11
+ get projectId() {
12
+ return t();
13
+ },
14
+ set projectId(s = "") {
15
+ t(s), p();
16
+ }
17
+ };
18
+ return c(e, { floating: !1 }), l(o);
19
+ }
20
+ customElements.define("hintergrund-builder", n(d, { projectId: {} }, [], []));
6
21
  export {
7
- i as default
22
+ d as default
8
23
  };
@@ -0,0 +1,15 @@
1
+ typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
2
+ return Promise.resolve().then(e);
3
+ } });
4
+ const o = ["google", "deepseek"], s = {
5
+ google: "GEMINI_API_KEY",
6
+ deepseek: "DEEPSEEK_API_KEY"
7
+ }, E = {
8
+ google: "Google Gemini",
9
+ deepseek: "DeepSeek"
10
+ };
11
+ export {
12
+ E as A,
13
+ o as a,
14
+ s as b
15
+ };