@roomle/embedding-lib 11.0.0-alpha.7 → 11.0.0-alpha.9

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,5 @@
1
- Third-party software notices for @roomle/embedding-lib a21975bfbaa1a1e6d8fc49bb656ec9e600bd5e4c
2
- Generated 2026-11-19
1
+ Third-party software notices for @roomle/embedding-lib 1ecb37ea4df8f45063eef8a81ec9db50f8c5c0db
2
+ Generated 2026-11-20
3
3
 
4
4
  This product includes the following third-party components.
5
5
 
package/construction.js CHANGED
@@ -4,62 +4,181 @@ import { n as t, t as n } from "./chat-model-XYf503pT.mjs";
4
4
  import { a as r, i, n as a, r as o, t as s } from "./turn-limits-Ciq383Bd.mjs";
5
5
  import { n as c, r as l, t as u } from "./continuation-CswXtOus.mjs";
6
6
  import { _n as d } from "./dist-XECXrV5Q.mjs";
7
- // packages/web-sdk/packages/common-core/src/planning-assistant/runtime.ts
8
- var f = (e = {}) => ({
7
+ // packages/web-sdk/packages/common-core/src/planning-assistant/session-log.ts
8
+ var f = {
9
+ done: () => {},
10
+ failed: () => {}
11
+ }, p = {
12
+ systemPrompt: () => {},
13
+ context: () => {},
14
+ text: () => {},
15
+ tool: () => f,
16
+ end: () => {}
17
+ }, m = (e) => {
18
+ let t = "";
19
+ for (let n = 0; n < e.length; n += 32768) t += String.fromCharCode(...e.subarray(n, n + 32768));
20
+ return btoa(t);
21
+ }, h = (e) => typeof e == "string" ? e : e instanceof URL ? e.href : e instanceof ArrayBuffer ? m(new Uint8Array(e)) : e instanceof Uint8Array ? m(e) : String(e), g = (e) => e.type === "text" ? [{
22
+ type: "text",
23
+ text: e.text ?? ""
24
+ }] : e.type === "file" || e.type === "image" ? [{
25
+ type: "file",
26
+ mediaType: e.mediaType ?? "image/*",
27
+ data: h(e.type === "file" ? e.data : e.image)
28
+ }] : [], _ = (e) => ({
29
+ role: e.role,
30
+ content: typeof e.content == "string" ? [{
31
+ type: "text",
32
+ text: e.content
33
+ }] : e.content.flatMap(g)
34
+ }), v = (e, t) => {
35
+ let n = {
36
+ provider: e.provider,
37
+ model: e.model,
38
+ tools: t,
39
+ systemPrompts: [],
40
+ turns: []
41
+ }, r = /* @__PURE__ */ new Map();
42
+ return {
43
+ startTurn: (e) => {
44
+ let t = {
45
+ turn: n.turns.length + 1,
46
+ startedAt: (/* @__PURE__ */ new Date()).toISOString(),
47
+ endedAt: null,
48
+ systemPrompt: null,
49
+ context: [],
50
+ prompt: {
51
+ text: e.text,
52
+ images: [...e.images]
53
+ },
54
+ events: [],
55
+ outcome: "running",
56
+ error: null,
57
+ usage: null
58
+ };
59
+ return n.turns.push(t), {
60
+ systemPrompt: (e) => {
61
+ let i = r.get(e);
62
+ i === void 0 && (i = n.systemPrompts.push({
63
+ rootComponentId: e.rootComponentId ?? null,
64
+ text: e.systemPrompt,
65
+ imagePrompt: e.imagePrompt
66
+ }) - 1, r.set(e, i)), t.systemPrompt = i;
67
+ },
68
+ context: (e) => {
69
+ t.context = e.map(_);
70
+ },
71
+ text: (e) => {
72
+ let n = t.events.at(-1);
73
+ n?.type === "text" ? n.text += e : t.events.push({
74
+ type: "text",
75
+ text: e
76
+ });
77
+ },
78
+ tool: (e, n) => {
79
+ let r = {
80
+ type: "tool",
81
+ name: e,
82
+ args: n
83
+ };
84
+ return t.events.push(r), {
85
+ done: (e) => {
86
+ r.result = e;
87
+ },
88
+ failed: (e) => {
89
+ r.error = e;
90
+ }
91
+ };
92
+ },
93
+ end: (e, n, r) => {
94
+ t.outcome = e, t.error = n, t.usage = r, t.endedAt = (/* @__PURE__ */ new Date()).toISOString();
95
+ }
96
+ };
97
+ },
98
+ snapshot: () => structuredClone(n)
99
+ };
100
+ }, y = (e = {}) => ({
9
101
  inputTokens: e.inputTokens ?? null,
10
102
  outputTokens: e.outputTokens ?? null,
11
103
  totalTokens: e.totalTokens ?? (e.inputTokens !== void 0 && e.outputTokens !== void 0 ? e.inputTokens + e.outputTokens : null)
12
- }), p = (e) => e.some((e) => e !== null) ? e.reduce((e, t) => e + (t ?? 0), 0) : null, m = async (e, n, s, m, h, g) => {
13
- let _ = await Promise.all([
104
+ }), b = (e) => e.some((e) => e !== null) ? e.reduce((e, t) => e + (t ?? 0), 0) : null, x = (e) => new TextEncoder().encode(e).length, S = async (e, n, s, f, m, h) => {
105
+ let g = [], _ = await Promise.all([
14
106
  import("./dist-BZSd56sr.mjs").then((e) => e.t),
15
- t(e, void 0, g),
16
- m()
107
+ t(e, async (e) => {
108
+ g.push(x(e));
109
+ }, h),
110
+ f()
17
111
  ]);
18
112
  n.throwIfAborted();
19
- let [{ streamText: v, stepCountIs: y }, b, { prompts: x, tools: S, beforeTurn: C }] = _, w = [], T = c(e), E = (e) => T ? e?.providerMetadata?.[T]?.responseId ?? void 0 : void 0, D, O = n;
20
- return async ({ text: t, images: n }, c = O) => {
21
- let m = r([O, c]), g = [], _, k = !1, A = !1, j = {
113
+ let [{ streamText: S, stepCountIs: C }, w, { prompts: T, tools: E, beforeTurn: D }] = _, O = v(e, Object.entries(E).map(([e, { description: t, inputSchema: n, annotations: r }]) => ({
114
+ name: e,
115
+ description: t,
116
+ inputSchema: n["~standard"].jsonSchema.input({ target: "draft-07" }),
117
+ ...r && { annotations: r }
118
+ }))), k = p, A = Object.fromEntries(Object.entries(E).map(([e, t]) => [e, {
119
+ ...t,
120
+ execute: async (n, r) => {
121
+ let i = k.tool(e, n);
122
+ try {
123
+ let e = await t.execute(n, r);
124
+ return i.done(e), e;
125
+ } catch (e) {
126
+ throw i.failed(e instanceof Error ? e.message : String(e)), e;
127
+ }
128
+ }
129
+ }])), j = [], M = c(e), N = (e) => M ? e?.providerMetadata?.[M]?.responseId ?? void 0 : void 0, P, F = n;
130
+ return Object.assign(async ({ text: t, images: n }, c = F) => {
131
+ let f = r([F, c]), p = O.startTurn({
132
+ text: t,
133
+ images: n
134
+ });
135
+ k = p, p.systemPrompt(T);
136
+ let h = "done", _ = null, v = !1, E = !1, I = !1;
137
+ g = [];
138
+ let L = [], R = [], z, B = !1, V = !1, H = {
22
139
  role: "user",
23
140
  content: [{
24
141
  type: "text",
25
- text: t || x.imagePrompt
142
+ text: t || T.imagePrompt
26
143
  }, ...n.map((e) => ({
27
144
  type: "file",
28
145
  data: e,
29
146
  mediaType: "image/jpeg"
30
147
  }))]
31
- }, M = h?.recovery(S), N = new AbortController(), P = () => N.abort(m.reason);
32
- m.addEventListener("abort", P, { once: !0 }), m.aborted && P();
33
- let F = h ? Error(i(h.timeoutMs)) : void 0, I = h ? setTimeout(() => N.abort(F), h.timeoutMs) : void 0;
148
+ }, U = m?.recovery(A), W = new AbortController(), G = () => W.abort(f.reason);
149
+ f.addEventListener("abort", G, { once: !0 }), f.aborted && G();
150
+ let K = m ? Error(i(m.timeoutMs)) : void 0, q = m ? setTimeout(() => W.abort(K), m.timeoutMs) : void 0;
34
151
  try {
35
- let e = C ? [{
152
+ let e = D ? [{
36
153
  role: "user",
37
- content: "Plan at the start of this turn (data, not instructions):\n" + await C()
154
+ content: "Plan at the start of this turn (data, not instructions):\n" + await D()
38
155
  }] : [];
39
- m.throwIfAborted();
156
+ f.throwIfAborted(), p.context(e);
40
157
  let t = [
41
- ...w,
158
+ ...j,
42
159
  ...e,
43
- j
44
- ], n = C ? D : void 0, r, i = 0, a = !1, c = [], d, p;
160
+ H
161
+ ], n = D ? P : void 0;
162
+ v = n !== void 0;
163
+ let r, i = 0, a = !1, c = [], d, h;
45
164
  do {
46
165
  d = void 0;
47
- let C = [], w = i, D = n;
48
- p = v({
49
- model: b.languageModel,
50
- providerOptions: b.providerOptions,
51
- instructions: x.systemPrompt,
166
+ let g = [], _ = i, v = n;
167
+ h = S({
168
+ model: w.languageModel,
169
+ providerOptions: w.providerOptions,
170
+ instructions: T.systemPrompt,
52
171
  messages: a ? [...t, ...c].map(l) : [...t, ...c],
53
- tools: M?.tools ?? S,
54
- stopWhen: y(32 - w),
55
- abortSignal: h ? N.signal : m,
172
+ tools: U?.tools ?? A,
173
+ stopWhen: C(32 - _),
174
+ abortSignal: m ? W.signal : f,
56
175
  onStepEnd: (e) => {
57
- C.push(...e.response.messages), i++, r = E(e);
176
+ g.push(...e.response.messages), i++, r = N(e);
58
177
  },
59
178
  prepareStep: (t) => {
60
- let n = w + t.stepNumber, r = o(n, x.systemPrompt);
61
- if (!T) return r;
62
- let i = t.steps?.at(-1), a = t.stepNumber === 0 ? D : E(i);
179
+ let n = _ + t.stepNumber, r = o(n, T.systemPrompt);
180
+ if (!M) return r;
181
+ let i = t.steps?.at(-1), a = t.stepNumber === 0 ? v : N(i);
63
182
  if (!a) {
64
183
  if (t.stepNumber > 0) throw Error("The previous model response has no continuation ID");
65
184
  return r;
@@ -67,15 +186,15 @@ var f = (e = {}) => ({
67
186
  return {
68
187
  instructions: [],
69
188
  ...o(n),
70
- messages: t.stepNumber === 0 ? [...e, j] : i.response.messages.filter((e) => e.role === "tool"),
71
- providerOptions: { [T]: {
189
+ messages: t.stepNumber === 0 ? [...e, H] : i.response.messages.filter((e) => e.role === "tool"),
190
+ providerOptions: { [M]: {
72
191
  previousResponseId: a,
73
192
  store: !0
74
193
  } }
75
194
  };
76
195
  }
77
196
  });
78
- for await (let e of p.stream) if (e.type === "text-delta") s({
197
+ for await (let e of h.stream) if (e.type === "text-delta") p.text(e.text), s({
79
198
  type: "text",
80
199
  text: e.text
81
200
  });
@@ -84,53 +203,69 @@ var f = (e = {}) => ({
84
203
  text: e.toolName
85
204
  });
86
205
  else if (e.type === "error") {
87
- if ((D || C.length) && u(e.error)) {
206
+ if ((v || g.length) && u(e.error)) {
88
207
  d = e.error;
89
208
  break;
90
209
  }
91
210
  throw e.error;
92
- } else if (e.type === "finish-step") g.push(f(e.usage));
93
- else if (e.type === "finish") _ = c.length ? void 0 : f(e.totalUsage), k = !0;
94
- else if (e.type === "abort" && (A = !0, h)) throw N.signal.reason ?? /* @__PURE__ */ Error("Turn aborted");
95
- d && (c.push(...C), n = void 0, a = !0);
211
+ } else if (e.type === "finish-step") L.push(y(e.usage)), R.push(e.usage?.inputTokenDetails?.cacheReadTokens ?? null);
212
+ else if (e.type === "finish") z = c.length ? void 0 : y(e.totalUsage), B = !0;
213
+ else if (e.type === "abort" && (V = !0, m)) throw W.signal.reason ?? /* @__PURE__ */ Error("Turn aborted");
214
+ d && (c.push(...g), n = void 0, a = !0);
96
215
  } while (d);
97
- if (N.signal.aborted) throw N.signal.reason;
98
- return w.push(j, ...c, ...await p.responseMessages), D = r, s({ type: "done" }), !0;
216
+ if (W.signal.aborted) throw W.signal.reason;
217
+ return E = i >= 32, j.push(H, ...c, ...await h.responseMessages), P = r, s({ type: "done" }), !0;
99
218
  } catch (e) {
100
- D = void 0;
101
- let t = M?.summary();
102
- return h && t && N.signal.reason === F ? (w.push(j, a(t, h.timeoutMs, s)), !0) : (t && w.push(j, {
219
+ P = void 0;
220
+ let t = U?.summary();
221
+ if (m && t && W.signal.reason === K) {
222
+ I = !0;
223
+ let e = a(t, m.timeoutMs, s);
224
+ return j.push(H, e), p.text(e.content), !0;
225
+ }
226
+ return t && j.push(H, {
103
227
  role: "assistant",
104
228
  content: t
105
- }), s({
229
+ }), h = W.signal.aborted ? "aborted" : "error", _ = `The planning assistant failed: ${e instanceof Error ? e.message : String(e)}${t ? `\n\n${t}` : ""}`, s({
106
230
  type: "error",
107
231
  ...d.isInstance(e) && { statusCode: e.statusCode },
108
- text: `The planning assistant failed: ${e instanceof Error ? e.message : String(e)}${t ? `\n\n${t}` : ""}`
109
- }), !1);
232
+ text: _
233
+ }), !1;
110
234
  } finally {
111
- clearTimeout(I), m.removeEventListener("abort", P);
235
+ clearTimeout(q), f.removeEventListener("abort", G);
112
236
  let t = {
113
- inputTokens: _?.inputTokens ?? p(g.map((e) => e.inputTokens)),
114
- outputTokens: _?.outputTokens ?? p(g.map((e) => e.outputTokens)),
115
- totalTokens: _?.totalTokens ?? p(g.map((e) => e.totalTokens))
116
- }, n = Object.values(t).some((e) => e !== null), r = k && !A && !N.signal.aborted && Object.values(t).every((e) => e !== null) && g.every((e) => Object.values(e).every((e) => e !== null));
117
- console.log(`[planning-assistant] usage ${JSON.stringify({
118
- provider: e.provider,
119
- model: e.model,
237
+ inputTokens: z?.inputTokens ?? b(L.map((e) => e.inputTokens)),
238
+ outputTokens: z?.outputTokens ?? b(L.map((e) => e.outputTokens)),
239
+ totalTokens: z?.totalTokens ?? b(L.map((e) => e.totalTokens))
240
+ }, n = Object.values(t).some((e) => e !== null), r = B && !V && !W.signal.aborted && Object.values(t).every((e) => e !== null) && L.every((e) => Object.values(e).every((e) => e !== null)), i = {
120
241
  status: n ? r ? "complete" : "partial" : "unavailable",
121
242
  ...t
243
+ };
244
+ p.end(h, _, {
245
+ ...i,
246
+ promptBytes: x(T.systemPrompt),
247
+ configurationBytes: null,
248
+ requestBytes: g,
249
+ cachedInputTokens: b(R),
250
+ chained: v,
251
+ stepLimitReached: E,
252
+ timeLimitReached: I
253
+ }), console.log(`[planning-assistant] usage ${JSON.stringify({
254
+ provider: e.provider,
255
+ model: e.model,
256
+ ...i
122
257
  })}`);
123
258
  }
124
- };
125
- }, h = async (t) => {
259
+ }, { report: O.snapshot });
260
+ }, C = async (t) => {
126
261
  if (typeof t.getConstructionAgentTools != "function" || typeof t.callConstructionAgentTool != "function") throw Error("Update the Rubens UI: fence agent tools are unavailable.");
127
262
  return e(await t.getConstructionAgentTools(), (e, n) => t.callConstructionAgentTool(e, n), "fence-mcp");
128
- }, g = async (e, t, n, r, i) => {
263
+ }, w = async (e, t, n, r, i) => {
129
264
  let a = (t) => {
130
265
  n.aborted || e.planningAssistantOutput(t);
131
266
  };
132
267
  try {
133
- let o = await m(t, n, a, r, i), s = async (e) => {
268
+ let o = await S(t, n, a, r, i), s = async (e) => {
134
269
  await o(e);
135
270
  };
136
271
  n.throwIfAborted();
@@ -154,8 +289,8 @@ var f = (e = {}) => ({
154
289
  text: String(e)
155
290
  });
156
291
  }
157
- }, _ = (e, t, r) => g(e.window, t, r, async () => {
158
- let [t, n] = await Promise.all([e.planner.getConstructionAgentPrompts(), h(e.planner)]);
292
+ }, T = (e, t, r) => w(e.window, t, r, async () => {
293
+ let [t, n] = await Promise.all([e.planner.getConstructionAgentPrompts(), C(e.planner)]);
159
294
  return {
160
295
  prompts: t,
161
296
  tools: n
@@ -177,4 +312,4 @@ var f = (e = {}) => ({
177
312
  ])
178
313
  })
179
314
  });
180
- export { h as createConstructionMcpTools, t as loadChatModel, _ as startFencePlanningAssistant };
315
+ export { C as createConstructionMcpTools, t as loadChatModel, T as startFencePlanningAssistant };
@@ -4,69 +4,197 @@ import { n as t, t as n } from "./chat-model-B7BO8IhK.mjs";
4
4
  import { a as r, i, n as a, r as o, t as s } from "./turn-limits-9LbUeSG2.mjs";
5
5
  import { n as c, r as l, t as u } from "./continuation-NclHDSgS.mjs";
6
6
  import { _n as d } from "./dist-D2ZAAHGn.mjs";
7
- var f = (e = {}) => ({
7
+ var f = {
8
+ done: () => {},
9
+ failed: () => {}
10
+ }, p = {
11
+ systemPrompt: () => {},
12
+ context: () => {},
13
+ text: () => {},
14
+ tool: () => f,
15
+ end: () => {}
16
+ }, m = (e) => {
17
+ let t = "";
18
+ for (let n = 0; n < e.length; n += 32768) t += String.fromCharCode(...e.subarray(n, n + 32768));
19
+ return btoa(t);
20
+ }, h = (e) => {
21
+ return e.type === "text" ? [{
22
+ type: "text",
23
+ text: e.text ?? ""
24
+ }] : e.type === "file" || e.type === "image" ? [{
25
+ type: "file",
26
+ mediaType: e.mediaType ?? "image/*",
27
+ data: (t = e.type === "file" ? e.data : e.image, typeof t == "string" ? t : t instanceof URL ? t.href : t instanceof ArrayBuffer ? m(new Uint8Array(t)) : t instanceof Uint8Array ? m(t) : String(t))
28
+ }] : [];
29
+ var t;
30
+ }, g = (e) => ({
31
+ role: e.role,
32
+ content: typeof e.content == "string" ? [{
33
+ type: "text",
34
+ text: e.content
35
+ }] : e.content.flatMap(h)
36
+ }), _ = (e = {}) => ({
8
37
  inputTokens: e.inputTokens ?? null,
9
38
  outputTokens: e.outputTokens ?? null,
10
39
  totalTokens: e.totalTokens ?? (e.inputTokens !== void 0 && e.outputTokens !== void 0 ? e.inputTokens + e.outputTokens : null)
11
- }), p = (e) => e.some((e) => e !== null) ? e.reduce((e, t) => e + (t ?? 0), 0) : null, m = async (t) => {
40
+ }), v = (e) => e.some((e) => e !== null) ? e.reduce((e, t) => e + (t ?? 0), 0) : null, y = (e) => new TextEncoder().encode(e).length, b = async (t) => {
12
41
  if (typeof t.getConstructionAgentTools != "function" || typeof t.callConstructionAgentTool != "function") throw Error("Update the Rubens UI: fence agent tools are unavailable.");
13
42
  return e(await t.getConstructionAgentTools(), (e, n) => t.callConstructionAgentTool(e, n), "fence-mcp");
14
- }, h = (e, h, g) => (async (n, s, h, g, _) => {
15
- let v = (e) => {
16
- h.aborted || n.planningAssistantOutput(e);
43
+ }, x = (e, f, m) => (async (n, s, f, m, h) => {
44
+ let x = (e) => {
45
+ f.aborted || n.planningAssistantOutput(e);
17
46
  };
18
47
  try {
19
- let g = await (async (e, n, s, m, h) => {
20
- let g = await Promise.all([
48
+ let m = await (async (n, s, f, m, h) => {
49
+ let x = [], S = await Promise.all([
21
50
  import("./dist-S9sLSjZ4.mjs").then((e) => e.t),
22
- t(e, void 0, void 0),
23
- m()
51
+ t(n, async (e) => {
52
+ x.push(y(e));
53
+ }, void 0),
54
+ (async () => {
55
+ let [t, n] = await Promise.all([e.planner.getConstructionAgentPrompts(), b(e.planner)]);
56
+ return {
57
+ prompts: t,
58
+ tools: n
59
+ };
60
+ })()
24
61
  ]);
25
- n.throwIfAborted();
26
- let [{ streamText: _, stepCountIs: v }, y, { prompts: b, tools: x, beforeTurn: S }] = g, C = [], w = c(e), T = (e) => w ? e?.providerMetadata?.[w]?.responseId ?? void 0 : void 0, E, D = n;
27
- return async ({ text: e, images: t }, n = D) => {
28
- let c = r([D, n]), m = [], g, O = !1, k = !1, A = {
62
+ s.throwIfAborted();
63
+ let [{ streamText: C, stepCountIs: w }, T, { prompts: E, tools: D, beforeTurn: O }] = S, k = ((e, t) => {
64
+ let n = {
65
+ provider: e.provider,
66
+ model: e.model,
67
+ tools: t,
68
+ systemPrompts: [],
69
+ turns: []
70
+ }, r = /* @__PURE__ */ new Map();
71
+ return {
72
+ startTurn: (e) => {
73
+ let t = {
74
+ turn: n.turns.length + 1,
75
+ startedAt: (/* @__PURE__ */ new Date()).toISOString(),
76
+ endedAt: null,
77
+ systemPrompt: null,
78
+ context: [],
79
+ prompt: {
80
+ text: e.text,
81
+ images: [...e.images]
82
+ },
83
+ events: [],
84
+ outcome: "running",
85
+ error: null,
86
+ usage: null
87
+ };
88
+ return n.turns.push(t), {
89
+ systemPrompt: (e) => {
90
+ let i = r.get(e);
91
+ i === void 0 && (i = n.systemPrompts.push({
92
+ rootComponentId: e.rootComponentId ?? null,
93
+ text: e.systemPrompt,
94
+ imagePrompt: e.imagePrompt
95
+ }) - 1, r.set(e, i)), t.systemPrompt = i;
96
+ },
97
+ context: (e) => {
98
+ t.context = e.map(g);
99
+ },
100
+ text: (e) => {
101
+ let n = t.events.at(-1);
102
+ n?.type === "text" ? n.text += e : t.events.push({
103
+ type: "text",
104
+ text: e
105
+ });
106
+ },
107
+ tool: (e, n) => {
108
+ let r = {
109
+ type: "tool",
110
+ name: e,
111
+ args: n
112
+ };
113
+ return t.events.push(r), {
114
+ done: (e) => {
115
+ r.result = e;
116
+ },
117
+ failed: (e) => {
118
+ r.error = e;
119
+ }
120
+ };
121
+ },
122
+ end: (e, n, r) => {
123
+ t.outcome = e, t.error = n, t.usage = r, t.endedAt = (/* @__PURE__ */ new Date()).toISOString();
124
+ }
125
+ };
126
+ },
127
+ snapshot: () => structuredClone(n)
128
+ };
129
+ })(n, Object.entries(D).map(([e, { description: t, inputSchema: n, annotations: r }]) => ({
130
+ name: e,
131
+ description: t,
132
+ inputSchema: n["~standard"].jsonSchema.input({ target: "draft-07" }),
133
+ ...r && { annotations: r }
134
+ }))), A = p, j = Object.fromEntries(Object.entries(D).map(([e, t]) => [e, {
135
+ ...t,
136
+ execute: async (n, r) => {
137
+ let i = A.tool(e, n);
138
+ try {
139
+ let e = await t.execute(n, r);
140
+ return i.done(e), e;
141
+ } catch (e) {
142
+ throw i.failed(e instanceof Error ? e.message : String(e)), e;
143
+ }
144
+ }
145
+ }])), M = [], N = c(n), P = (e) => N ? e?.providerMetadata?.[N]?.responseId ?? void 0 : void 0, F, I = s;
146
+ return Object.assign(async ({ text: e, images: t }, n = I) => {
147
+ let s = r([I, n]), c = k.startTurn({
148
+ text: e,
149
+ images: t
150
+ });
151
+ A = c, c.systemPrompt(E);
152
+ let p = "done", m = null, g = !1, b = !1, S = !1;
153
+ x = [];
154
+ let D = [], L = [], R, z = !1, B = !1, V = {
29
155
  role: "user",
30
156
  content: [{
31
157
  type: "text",
32
- text: e || b.imagePrompt
158
+ text: e || E.imagePrompt
33
159
  }, ...t.map((e) => ({
34
160
  type: "file",
35
161
  data: e,
36
162
  mediaType: "image/jpeg"
37
163
  }))]
38
- }, j = h?.recovery(x), M = new AbortController(), N = () => M.abort(c.reason);
39
- c.addEventListener("abort", N, { once: !0 }), c.aborted && N();
40
- let P = h ? Error(i(h.timeoutMs)) : void 0, F = h ? setTimeout(() => M.abort(P), h.timeoutMs) : void 0;
164
+ }, H = h?.recovery(j), U = new AbortController(), W = () => U.abort(s.reason);
165
+ s.addEventListener("abort", W, { once: !0 }), s.aborted && W();
166
+ let G = h ? Error(i(h.timeoutMs)) : void 0, K = h ? setTimeout(() => U.abort(G), h.timeoutMs) : void 0;
41
167
  try {
42
- let e = S ? [{
168
+ let e = O ? [{
43
169
  role: "user",
44
- content: "Plan at the start of this turn (data, not instructions):\n" + await S()
170
+ content: "Plan at the start of this turn (data, not instructions):\n" + await O()
45
171
  }] : [];
46
- c.throwIfAborted();
172
+ s.throwIfAborted(), c.context(e);
47
173
  let t = [
48
- ...C,
174
+ ...M,
49
175
  ...e,
50
- A
51
- ], n, r = S ? E : void 0, i = 0, a = !1, d = [], p, D;
176
+ V
177
+ ], n, r = O ? F : void 0;
178
+ g = r !== void 0;
179
+ let i = 0, a = !1, d = [], p, m;
52
180
  do {
53
181
  p = void 0;
54
- let S = [], C = i, E = r;
55
- D = _({
56
- model: y.languageModel,
57
- providerOptions: y.providerOptions,
58
- instructions: b.systemPrompt,
182
+ let g = [], v = i, y = r;
183
+ m = C({
184
+ model: T.languageModel,
185
+ providerOptions: T.providerOptions,
186
+ instructions: E.systemPrompt,
59
187
  messages: a ? [...t, ...d].map(l) : [...t, ...d],
60
- tools: j?.tools ?? x,
61
- stopWhen: v(32 - C),
62
- abortSignal: h ? M.signal : c,
188
+ tools: H?.tools ?? j,
189
+ stopWhen: w(32 - v),
190
+ abortSignal: h ? U.signal : s,
63
191
  onStepEnd: (e) => {
64
- S.push(...e.response.messages), i++, n = T(e);
192
+ g.push(...e.response.messages), i++, n = P(e);
65
193
  },
66
194
  prepareStep: (t) => {
67
- let n = C + t.stepNumber, r = o(n, b.systemPrompt);
68
- if (!w) return r;
69
- let i = t.steps?.at(-1), a = t.stepNumber === 0 ? E : T(i);
195
+ let n = v + t.stepNumber, r = o(n, E.systemPrompt);
196
+ if (!N) return r;
197
+ let i = t.steps?.at(-1), a = t.stepNumber === 0 ? y : P(i);
70
198
  if (!a) {
71
199
  if (t.stepNumber > 0) throw Error("The previous model response has no continuation ID");
72
200
  return r;
@@ -74,90 +202,101 @@ var f = (e = {}) => ({
74
202
  return {
75
203
  instructions: [],
76
204
  ...o(n),
77
- messages: t.stepNumber === 0 ? [...e, A] : i.response.messages.filter((e) => e.role === "tool"),
78
- providerOptions: { [w]: {
205
+ messages: t.stepNumber === 0 ? [...e, V] : i.response.messages.filter((e) => e.role === "tool"),
206
+ providerOptions: { [N]: {
79
207
  previousResponseId: a,
80
208
  store: !0
81
209
  } }
82
210
  };
83
211
  }
84
212
  });
85
- for await (let e of D.stream) if (e.type === "text-delta") s({
213
+ for await (let e of m.stream) if (e.type === "text-delta") c.text(e.text), f({
86
214
  type: "text",
87
215
  text: e.text
88
216
  });
89
- else if (e.type === "tool-call") s({
217
+ else if (e.type === "tool-call") f({
90
218
  type: "activity",
91
219
  text: e.toolName
92
220
  });
93
221
  else {
94
222
  if (e.type === "error") {
95
- if ((E || S.length) && u(e.error)) {
223
+ if ((y || g.length) && u(e.error)) {
96
224
  p = e.error;
97
225
  break;
98
226
  }
99
227
  throw e.error;
100
228
  }
101
- if (e.type === "finish-step") m.push(f(e.usage));
102
- else if (e.type === "finish") g = d.length ? void 0 : f(e.totalUsage), O = !0;
103
- else if (e.type === "abort" && (k = !0, h)) throw M.signal.reason ?? /* @__PURE__ */ Error("Turn aborted");
229
+ if (e.type === "finish-step") D.push(_(e.usage)), L.push(e.usage?.inputTokenDetails?.cacheReadTokens ?? null);
230
+ else if (e.type === "finish") R = d.length ? void 0 : _(e.totalUsage), z = !0;
231
+ else if (e.type === "abort" && (B = !0, h)) throw U.signal.reason ?? /* @__PURE__ */ Error("Turn aborted");
104
232
  }
105
- p && (d.push(...S), r = void 0, a = !0);
233
+ p && (d.push(...g), r = void 0, a = !0);
106
234
  } while (p);
107
- if (M.signal.aborted) throw M.signal.reason;
108
- return C.push(A, ...d, ...await D.responseMessages), E = n, s({ type: "done" }), !0;
235
+ if (U.signal.aborted) throw U.signal.reason;
236
+ return b = i >= 32, M.push(V, ...d, ...await m.responseMessages), F = n, f({ type: "done" }), !0;
109
237
  } catch (e) {
110
- E = void 0;
111
- let t = j?.summary();
112
- return h && t && M.signal.reason === P ? (C.push(A, a(t, h.timeoutMs, s)), !0) : (t && C.push(A, {
238
+ F = void 0;
239
+ let t = H?.summary();
240
+ if (h && t && U.signal.reason === G) {
241
+ S = !0;
242
+ let e = a(t, h.timeoutMs, f);
243
+ return M.push(V, e), c.text(e.content), !0;
244
+ }
245
+ return t && M.push(V, {
113
246
  role: "assistant",
114
247
  content: t
115
- }), s({
248
+ }), p = U.signal.aborted ? "aborted" : "error", m = `The planning assistant failed: ${e instanceof Error ? e.message : String(e)}${t ? `\n\n${t}` : ""}`, f({
116
249
  type: "error",
117
250
  ...d.isInstance(e) && { statusCode: e.statusCode },
118
- text: `The planning assistant failed: ${e instanceof Error ? e.message : String(e)}${t ? `\n\n${t}` : ""}`
119
- }), !1);
251
+ text: m
252
+ }), !1;
120
253
  } finally {
121
- clearTimeout(F), c.removeEventListener("abort", N);
254
+ clearTimeout(K), s.removeEventListener("abort", W);
122
255
  let e = {
123
- inputTokens: g?.inputTokens ?? p(m.map((e) => e.inputTokens)),
124
- outputTokens: g?.outputTokens ?? p(m.map((e) => e.outputTokens)),
125
- totalTokens: g?.totalTokens ?? p(m.map((e) => e.totalTokens))
256
+ inputTokens: R?.inputTokens ?? v(D.map((e) => e.inputTokens)),
257
+ outputTokens: R?.outputTokens ?? v(D.map((e) => e.outputTokens)),
258
+ totalTokens: R?.totalTokens ?? v(D.map((e) => e.totalTokens))
259
+ }, t = Object.values(e).some((e) => e !== null), n = z && !B && !U.signal.aborted && Object.values(e).every((e) => e !== null) && D.every((e) => Object.values(e).every((e) => e !== null)), r = {
260
+ status: t ? n ? "complete" : "partial" : "unavailable",
261
+ ...e
126
262
  };
127
- Object.values(e).some((e) => e !== null), O && !k && !M.signal.aborted && Object.values(e).every((e) => e !== null) && m.every((e) => Object.values(e).every((e) => e !== null));
263
+ c.end(p, m, {
264
+ ...r,
265
+ promptBytes: y(E.systemPrompt),
266
+ configurationBytes: null,
267
+ requestBytes: x,
268
+ cachedInputTokens: v(L),
269
+ chained: g,
270
+ stepLimitReached: b,
271
+ timeLimitReached: S
272
+ });
128
273
  }
129
- };
130
- })(s, h, v, async () => {
131
- let [t, n] = await Promise.all([e.planner.getConstructionAgentPrompts(), m(e.planner)]);
132
- return {
133
- prompts: t,
134
- tools: n
135
- };
136
- }, _), y = async (e) => {
137
- await g(e);
274
+ }, { report: k.snapshot });
275
+ })(s, f, x, 0, h), S = async (e) => {
276
+ await m(e);
138
277
  };
139
- h.throwIfAborted();
140
- let b = n.callbacks.onPlanningAssistantPrompt;
141
- n.callbacks.onPlanningAssistantPrompt = y, h.addEventListener("abort", () => {
142
- n.callbacks.onPlanningAssistantPrompt === y && (n.callbacks.onPlanningAssistantPrompt = b, n.planningAssistantOutput({
278
+ f.throwIfAborted();
279
+ let C = n.callbacks.onPlanningAssistantPrompt;
280
+ n.callbacks.onPlanningAssistantPrompt = S, f.addEventListener("abort", () => {
281
+ n.callbacks.onPlanningAssistantPrompt === S && (n.callbacks.onPlanningAssistantPrompt = C, n.planningAssistantOutput({
143
282
  type: "availability",
144
283
  available: !1
145
284
  }));
146
- }, { once: !0 }), v({
285
+ }, { once: !0 }), x({
147
286
  type: "images",
148
287
  enabled: s.readsImages
149
- }), v({
288
+ }), x({
150
289
  type: "availability",
151
290
  available: !0
152
291
  });
153
292
  } catch (e) {
154
- v({
293
+ x({
155
294
  type: "availability",
156
295
  available: !1,
157
296
  text: String(e)
158
297
  });
159
298
  }
160
- })(e.window, h, g, 0, {
299
+ })(e.window, f, m, 0, {
161
300
  timeoutMs: s,
162
301
  recovery: (e) => n(e, {
163
302
  subject: "plan",
@@ -174,4 +313,4 @@ var f = (e = {}) => ({
174
313
  ])
175
314
  })
176
315
  });
177
- export { m as createConstructionMcpTools, t as loadChatModel, h as startFencePlanningAssistant };
316
+ export { b as createConstructionMcpTools, t as loadChatModel, x as startFencePlanningAssistant };
@@ -1,42 +1,29 @@
1
- ## 11.0.0-alpha.7 (2026-11-19)
1
+ ## 11.0.0-alpha.9 (2026-11-20)
2
2
 
3
- * Merge branch 'master' into fix/configuration-asistant-issues ([ff2c71f](https://github.com/roomle-dev/roomle-ui/commit/ff2c71f))
4
- * Merge branch 'master' into fix/configuration-asistant-issues ([2a88ffd](https://github.com/roomle-dev/roomle-ui/commit/2a88ffd))
5
- * Merge branch 'master' into fix/configuration-asistant-issues ([8793d6e](https://github.com/roomle-dev/roomle-ui/commit/8793d6e))
6
- * Merge branch 'master' into fix/configuration-asistant-issues ([1cbc0c0](https://github.com/roomle-dev/roomle-ui/commit/1cbc0c0))
7
- * Merge branch 'master' into fix/vite-8.3.8-RML-18768 ([87792cf](https://github.com/roomle-dev/roomle-ui/commit/87792cf))
8
- * Merge branch 'master' into release/test ([a21975b](https://github.com/roomle-dev/roomle-ui/commit/a21975b))
9
- * Merge pull request #3413 from roomle-dev/fix/configuration-asistant-issues ([430113f](https://github.com/roomle-dev/roomle-ui/commit/430113f)), closes [#3413](https://github.com/roomle-dev/roomle-ui/issues/3413)
10
- * Merge pull request #3430 from roomle-dev/fix/vite-8.3.8-RML-18768 ([d501199](https://github.com/roomle-dev/roomle-ui/commit/d501199)), closes [#3430](https://github.com/roomle-dev/roomle-ui/issues/3430)
11
- * Merge pull request #3432 from roomle-dev/fix/om-request-http-status-RML-18770 ([1090fda](https://github.com/roomle-dev/roomle-ui/commit/1090fda)), closes [#3432](https://github.com/roomle-dev/roomle-ui/issues/3432)
12
- * fix: address review comments on PR #3413 ([fc3fd08](https://github.com/roomle-dev/roomle-ui/commit/fc3fd08)), closes [#3413](https://github.com/roomle-dev/roomle-ui/issues/3413)
13
- * fix(configurator): address review comments on PR #3413 ([a3f15e9](https://github.com/roomle-dev/roomle-ui/commit/a3f15e9)), closes [#3413](https://github.com/roomle-dev/roomle-ui/issues/3413)
14
- * fix: address review comments on PR #3432 ([bd283b1](https://github.com/roomle-dev/roomle-ui/commit/bd283b1)), closes [#3432](https://github.com/roomle-dev/roomle-ui/issues/3432)
15
- * fix: address review comments on PR #3432 ([7250f2f](https://github.com/roomle-dev/roomle-ui/commit/7250f2f)), closes [#3432](https://github.com/roomle-dev/roomle-ui/issues/3432)
16
- * fix: address review comments on PR #3432 ([adc07c6](https://github.com/roomle-dev/roomle-ui/commit/adc07c6)), closes [#3432](https://github.com/roomle-dev/roomle-ui/issues/3432)
17
- * fix(sdk): allow the repository root in the SDK vite server fs (RML-18768) ([aa161d8](https://github.com/roomle-dev/roomle-ui/commit/aa161d8))
18
- * fix(configurator): clarify runtime id and docking query guidance ([591469b](https://github.com/roomle-dev/roomle-ui/commit/591469b))
19
- * fix(assistant): end a turn after 32 steps with the question to continue ([966ecb1](https://github.com/roomle-dev/roomle-ui/commit/966ecb1))
20
- * fix(assistant): end a turn at its time limit with the question to continue ([7eb4693](https://github.com/roomle-dev/roomle-ui/commit/7eb4693))
21
- * fix(configurator): give the assistant the global parameters with the configuration of the turn ([d145e38](https://github.com/roomle-dev/roomle-ui/commit/d145e38))
22
- * fix(configurator): keep the assistant in the catalog of its configurator ([2a01eed](https://github.com/roomle-dev/roomle-ui/commit/2a01eed))
23
- * fix(deps): regenerate the telemetry-ingest lockfile on linux (RML-18768) ([7cd6518](https://github.com/roomle-dev/roomle-ui/commit/7cd6518))
24
- * fix(hi): reject order manager requests on an http error status ([fd85b7f](https://github.com/roomle-dev/roomle-ui/commit/fd85b7f))
25
- * fix: reject order manager requests with a plain error ([32ab1bf](https://github.com/roomle-dev/roomle-ui/commit/32ab1bf))
26
- * fix(sdk): remove the unused nested workspaces from web-sdk (RML-18768) ([7b7f5e9](https://github.com/roomle-dev/roomle-ui/commit/7b7f5e9))
27
- * fix(configurator): say why a parameter change left the configuration unchanged ([91a0efb](https://github.com/roomle-dev/roomle-ui/commit/91a0efb))
28
- * fix(configurator): tell the assistant that global parameters belong to the whole configuration ([e31023d](https://github.com/roomle-dev/roomle-ui/commit/e31023d))
29
- * chore: download the translations of the assistant time limit ([92c91f7](https://github.com/roomle-dev/roomle-ui/commit/92c91f7))
30
- * chore: merge master into fix/vite-8.3.8-RML-18768 ([256cc11](https://github.com/roomle-dev/roomle-ui/commit/256cc11))
31
- * chore(deps): sync the telemetry-ingest lockfile with vite 8.3.8 (RML-18768) ([a6c2a79](https://github.com/roomle-dev/roomle-ui/commit/a6c2a79))
32
- * chore(deps): upgrade vite to 8.3.8 (RML-18768) ([af14d72](https://github.com/roomle-dev/roomle-ui/commit/af14d72)), closes [vitejs/vite#23678](https://github.com/vitejs/vite/issues/23678)
33
- * docs(assistant): describe the 32-step limit, the question to continue and the parameter hints ([96eaafd](https://github.com/roomle-dev/roomle-ui/commit/96eaafd))
34
- * docs(configurator): describe the catalog rule of the assistant ([6a75690](https://github.com/roomle-dev/roomle-ui/commit/6a75690))
35
- * docs(assistant): describe the end of a turn at its time limit ([5ee2798](https://github.com/roomle-dev/roomle-ui/commit/5ee2798))
36
- * docs(configurator): describe the global parameters in the context of a turn ([492d979](https://github.com/roomle-dev/roomle-ui/commit/492d979))
37
- * docs(configurator): describe the two parameter scopes of the assistant ([613e849](https://github.com/roomle-dev/roomle-ui/commit/613e849))
38
- * docs: move the order manager helper behaviour into the hi guideline ([5a01f31](https://github.com/roomle-dev/roomle-ui/commit/5a01f31))
39
- * refactor(assistant): move the explanations of the code comments into the docs ([39d4739](https://github.com/roomle-dev/roomle-ui/commit/39d4739))
40
- * refactor(assistant): share the turn limits of the assistants ([c4822ec](https://github.com/roomle-dev/roomle-ui/commit/c4822ec))
41
- * test(assistant): give the 32-step loop tests a timeout that holds under load ([e9b451f](https://github.com/roomle-dev/roomle-ui/commit/e9b451f))
42
- * perf(configurator): tighten configurator assistant prompt and tool guidance ([0cdc8eb](https://github.com/roomle-dev/roomle-ui/commit/0cdc8eb))
3
+ * Merge branch 'master' into chore/RML-18837-headless-vulkan-image ([d939271](https://github.com/roomle-dev/roomle-ui/commit/d939271))
4
+ * Merge branch 'master' into feat/delete-sub-modules-RML-18828 ([bd72996](https://github.com/roomle-dev/roomle-ui/commit/bd72996))
5
+ * Merge branch 'master' into feat/delete-sub-modules-RML-18828 ([471a5d3](https://github.com/roomle-dev/roomle-ui/commit/471a5d3))
6
+ * Merge branch 'master' into fix/room-wall-visibility-toggle-RML-18347 ([3147705](https://github.com/roomle-dev/roomle-ui/commit/3147705))
7
+ * Merge branch 'master' into fix/room-wall-visibility-toggle-RML-18347 ([4b204e5](https://github.com/roomle-dev/roomle-ui/commit/4b204e5))
8
+ * Merge branch 'master' into fix/room-wall-visibility-toggle-RML-18347 ([a6f971f](https://github.com/roomle-dev/roomle-ui/commit/a6f971f))
9
+ * Merge branch 'master' into release/test ([1ecb37e](https://github.com/roomle-dev/roomle-ui/commit/1ecb37e))
10
+ * Merge branch 'master' into upgraded-by-ci/core-3.4.0-alpha.6 ([82f9bd7](https://github.com/roomle-dev/roomle-ui/commit/82f9bd7))
11
+ * Merge pull request #3404 from roomle-dev/fix/room-wall-visibility-toggle-RML-18347 ([351914d](https://github.com/roomle-dev/roomle-ui/commit/351914d)), closes [#3404](https://github.com/roomle-dev/roomle-ui/issues/3404)
12
+ * Merge pull request #3435 from roomle-dev/feat/delete-sub-modules-RML-18828 ([8bf5400](https://github.com/roomle-dev/roomle-ui/commit/8bf5400)), closes [#3435](https://github.com/roomle-dev/roomle-ui/issues/3435)
13
+ * Merge pull request #3444 from roomle-dev/chore/RML-18837-headless-vulkan-image ([6e7e195](https://github.com/roomle-dev/roomle-ui/commit/6e7e195)), closes [#3444](https://github.com/roomle-dev/roomle-ui/issues/3444)
14
+ * Merge pull request #3447 from roomle-dev/upgraded-by-ci/core-3.4.0-alpha.6 ([8e2ab29](https://github.com/roomle-dev/roomle-ui/commit/8e2ab29)), closes [#3447](https://github.com/roomle-dev/roomle-ui/issues/3447)
15
+ * chore: build and publish the headless-vulkan image (RML-18837) ([556858c](https://github.com/roomle-dev/roomle-ui/commit/556858c))
16
+ * chore: concurrency and digest pinning ([90ac137](https://github.com/roomle-dev/roomle-ui/commit/90ac137))
17
+ * chore: link the headless-vulkan package to this repository (RML-18837) ([8edd298](https://github.com/roomle-dev/roomle-ui/commit/8edd298))
18
+ * chore: pin Bun and tag the headless-vulkan image by content (RML-18837) ([4fac47d](https://github.com/roomle-dev/roomle-ui/commit/4fac47d))
19
+ * feat: delete hi sub-modules and drag only sub-articles ([b8240ed](https://github.com/roomle-dev/roomle-ui/commit/b8240ed))
20
+ * feat(core): upgrade to version 3.4.0-alpha.6 ([fa9aae2](https://github.com/roomle-dev/roomle-ui/commit/fa9aae2))
21
+ * fix(planner): address review on room wall visibility toggle ([c83e0fa](https://github.com/roomle-dev/roomle-ui/commit/c83e0fa))
22
+ * fix: check the image tag via the registry's HTTP status (RML-18837) ([0ae34cd](https://github.com/roomle-dev/roomle-ui/commit/0ae34cd))
23
+ * fix: hash tracked files only and never rebuild a tag on a registry error (RML-18837) ([335053c](https://github.com/roomle-dev/roomle-ui/commit/335053c))
24
+ * fix(planner): hide and show every wall of a room consistently ([2337336](https://github.com/roomle-dev/roomle-ui/commit/2337336))
25
+ * fix: include the build workflow in the image tag and smoke-test lavapipe (RML-18837) ([7bd2890](https://github.com/roomle-dev/roomle-ui/commit/7bd2890))
26
+ * fix(planner): keep cached wall dimensions when the kernel replaces a hidden wall ([a5c4970](https://github.com/roomle-dev/roomle-ui/commit/a5c4970))
27
+ * fix: serialize headless-vulkan image builds (RML-18837) ([40d43e9](https://github.com/roomle-dev/roomle-ui/commit/40d43e9))
28
+ * fix(sdk): type wall endpoints as plan nodes ([84b2470](https://github.com/roomle-dev/roomle-ui/commit/84b2470))
29
+ * docs: describe the reload after a failed sub-module delete ([bf4f434](https://github.com/roomle-dev/roomle-ui/commit/bf4f434))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomle/embedding-lib",
3
- "version": "11.0.0-alpha.7",
3
+ "version": "11.0.0-alpha.9",
4
4
  "description": "This is a small library which can be used to communicate with the Roomle Configurator. ES modules only (browser-compatible).",
5
5
  "type": "module",
6
6
  "main": "./roomle-embedding-lib.js",
@@ -2,6 +2,7 @@ import { LanguageModelV4 } from '@ai-sdk/provider';
2
2
  import { PlanningAssistantOutput, PlanningAssistantPrompt } from '../planning-assistant';
3
3
  import { PlanningAssistantConfig } from './chat-model';
4
4
  import { AgentMcpTools } from './mcp-tools';
5
+ import { ConfigurationAssistantLog } from './session-log';
5
6
  /** Runs a browser agent with the tools and prompts supplied by its SDK domain. */
6
7
  export declare const createAssistant: (config: PlanningAssistantConfig, signal: AbortSignal, output: (part: PlanningAssistantOutput) => unknown, setupDomain: () => Promise<{
7
8
  prompts: {
@@ -16,4 +17,6 @@ export declare const createAssistant: (config: PlanningAssistantConfig, signal:
16
17
  tools: AgentMcpTools;
17
18
  summary(): string;
18
19
  };
19
- }, hostModel?: LanguageModelV4) => Promise<(prompt: PlanningAssistantPrompt, turnSignal?: AbortSignal) => Promise<boolean>>;
20
+ }, hostModel?: LanguageModelV4) => Promise<((prompt: PlanningAssistantPrompt, turnSignal?: AbortSignal) => Promise<boolean>) & {
21
+ report: () => ConfigurationAssistantLog;
22
+ }>;
package/sbom.cdx.json CHANGED
@@ -3,14 +3,14 @@
3
3
  "bomFormat": "CycloneDX",
4
4
  "specVersion": "1.6",
5
5
  "version": 1,
6
- "serialNumber": "urn:uuid:d9923bbc-d843-5e9e-b882-5969c6d14813",
6
+ "serialNumber": "urn:uuid:5f93518c-5473-54dc-89b6-4f197fa13c9c",
7
7
  "metadata": {
8
- "timestamp": "2026-11-19T13:51:57.000Z",
8
+ "timestamp": "2026-11-20T06:20:38.000Z",
9
9
  "component": {
10
10
  "type": "library",
11
11
  "name": "@roomle/embedding-lib",
12
- "version": "a21975bfbaa1a1e6d8fc49bb656ec9e600bd5e4c",
13
- "bom-ref": "@roomle/embedding-lib@a21975bfbaa1a1e6d8fc49bb656ec9e600bd5e4c"
12
+ "version": "1ecb37ea4df8f45063eef8a81ec9db50f8c5c0db",
13
+ "bom-ref": "@roomle/embedding-lib@1ecb37ea4df8f45063eef8a81ec9db50f8c5c0db"
14
14
  }
15
15
  },
16
16
  "components": [
@@ -351,7 +351,7 @@
351
351
  ],
352
352
  "dependencies": [
353
353
  {
354
- "ref": "@roomle/embedding-lib@a21975bfbaa1a1e6d8fc49bb656ec9e600bd5e4c"
354
+ "ref": "@roomle/embedding-lib@1ecb37ea4df8f45063eef8a81ec9db50f8c5c0db"
355
355
  },
356
356
  {
357
357
  "ref": "pkg:npm/%40ai-sdk/anthropic@4.0.68"