@g9tm/aiassistant 1.5.0 → 1.6.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.
package/dist/admin.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * one entry-test probe per request, the usage ledger with the model-free rate, a run's black box, the usage windows
4
4
  * and the audit; a separate entry (`@g9tm/aiassistant/admin`), loaded only by the manager's pages. Every server answer is read with type checks only; renderers draw what these functions return.
5
5
  */
6
- import { arr, num, obj, str } from "./api.js";
6
+ import { arr, item, num, obj, str } from "./api.js";
7
7
  import { createTexts } from "./i18n.js";
8
8
  const ADMIN_TEXTS = new Map([
9
9
  ["fa", {
@@ -231,7 +231,7 @@ export class AdminClient {
231
231
  }
232
232
  async backends() {
233
233
  return arr(obj(await this.api.get("admin/backends"))["backends"]).map(obj).map((b) => ({
234
- id: str(b["id"]), state: str(b["state"]), until: nul(b["until"]), usage: b["usage"] ? readWindows({ backends: [b["usage"]] }).at(0) ?? null : null,
234
+ id: str(b["id"]), state: str(b["state"]), until: nul(b["until"]), usage: b["usage"] ? item(readWindows({ backends: [b["usage"]] }), 0) ?? null : null,
235
235
  }));
236
236
  }
237
237
  async gatewayKeys() {
package/dist/api.d.ts CHANGED
@@ -17,6 +17,8 @@ export interface SendInput {
17
17
  subjectId?: string;
18
18
  subjectLabel?: string;
19
19
  };
20
+ /** The model a person picked (`id` or `id@effort`), kept on the conversation; the host must let them choose. */
21
+ model?: string;
20
22
  }
21
23
  export interface EventPage {
22
24
  events: RawEvent[];
@@ -31,6 +33,11 @@ export declare function obj(v: unknown): Record<string, unknown>;
31
33
  export declare function str(v: unknown, fallback?: string): string;
32
34
  export declare function num(v: unknown, fallback?: number): number;
33
35
  export declare function arr(v: unknown): unknown[];
36
+ /**
37
+ * The item at an index (negative counts from the end), or undefined: `Array.prototype.at` is ES2022 and the Lynx
38
+ * engine on a phone (PrimJS) has none, so library code never calls it.
39
+ */
40
+ export declare function item<T>(xs: readonly T[], i: number): T | undefined;
34
41
  export declare class AssistantApi {
35
42
  private readonly host;
36
43
  private readonly base;
package/dist/api.js CHANGED
@@ -20,6 +20,15 @@ export function num(v, fallback = 0) {
20
20
  export function arr(v) {
21
21
  return Array.isArray(v) ? v : [];
22
22
  }
23
+ /**
24
+ * The item at an index (negative counts from the end), or undefined: `Array.prototype.at` is ES2022 and the Lynx
25
+ * engine on a phone (PrimJS) has none, so library code never calls it.
26
+ */
27
+ export function item(xs, i) {
28
+ const k = i < 0 ? xs.length + i : i;
29
+ // eslint-disable-next-line security/detect-object-injection -- a number index into an array, bounds checked
30
+ return k >= 0 && k < xs.length ? xs[k] : undefined;
31
+ }
23
32
  export class AssistantApi {
24
33
  constructor(host, base = "/api/assistant/") {
25
34
  this.host = host;
@@ -59,6 +68,8 @@ export class AssistantApi {
59
68
  body["files"] = input.files;
60
69
  if (input.page)
61
70
  body["page"] = input.page;
71
+ if (input.model)
72
+ body["model"] = input.model;
62
73
  return this.request("POST", path, body).then((r) => ({ conversationId: str(obj(r)["conversationId"]), runId: str(obj(r)["runId"]) }));
63
74
  }
64
75
  async events(runId, after, wait) {
@@ -54,6 +54,8 @@ export declare class Assistant {
54
54
  /** Plans whose confirmation is in flight: no second confirmation and no refusal until it answers. */
55
55
  private readonly confirming;
56
56
  private attachments;
57
+ /** The model a person picked for what they send next (`id` or `id@effort`); null lets the route decide. */
58
+ model: string | null;
57
59
  private error;
58
60
  private stateNow;
59
61
  constructor(host: AssistantHost, options?: AssistantOptions);
package/dist/assistant.js CHANGED
@@ -27,6 +27,8 @@ export class Assistant {
27
27
  /** Plans whose confirmation is in flight: no second confirmation and no refusal until it answers. */
28
28
  this.confirming = new Set();
29
29
  this.attachments = [];
30
+ /** The model a person picked for what they send next (`id` or `id@effort`); null lets the route decide. */
31
+ this.model = null;
30
32
  this.error = null;
31
33
  this.api = new AssistantApi(host, options.base);
32
34
  this.texts = createTexts(host.locale, options.texts);
@@ -99,6 +101,8 @@ export class Assistant {
99
101
  input.files = this.attachments.map((a) => a.id);
100
102
  if (page)
101
103
  input.page = page;
104
+ if (this.model)
105
+ input.model = this.model;
102
106
  try {
103
107
  const t = await this.api.send(input);
104
108
  this.store.id = t.conversationId;
@@ -107,6 +111,7 @@ export class Assistant {
107
111
  return true;
108
112
  }
109
113
  catch (e) {
114
+ this.store.settle(); // not sent: the question stays, no longer dim
110
115
  this.error = e instanceof ApiError ? e.code : "error.network";
111
116
  this.emit();
112
117
  return false;
@@ -125,6 +130,8 @@ export class Assistant {
125
130
  if (!this.run || this.run.runId !== runId)
126
131
  return;
127
132
  this.run = reduceRun(this.run, e, timer(this.host).now());
133
+ if (e.type === "run.finished")
134
+ this.store.settle(); // answered or not, the question is no longer waiting
128
135
  if (e.type === "message") {
129
136
  const added = this.store.merge([e.body.message]);
130
137
  for (const m of added)
package/dist/blocks.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * wordy table becomes cards, a long one folds after 8 rows, a ranking is horizontal bars (at most 10), a line only on a
5
5
  * time axis, and too little data shows no percentages or averages.
6
6
  */
7
- import { arr, num, obj, str } from "./api.js";
7
+ import { arr, item, num, obj, str } from "./api.js";
8
8
  import { formatNumber } from "./fa.js";
9
9
  /** A table with more columns than this, or long texts, shows each row as a card. */
10
10
  export const CARD_COLUMNS = 4;
@@ -55,7 +55,7 @@ export function blockView(raw, locale, custom = new Set()) {
55
55
  const cols = columns(b["columns"]);
56
56
  if (cols.length === 0)
57
57
  return { type: "fallback", fallbackText };
58
- const rows = arr(b["rows"]).map((r) => cols.map((c, i) => cell(arr(r).at(i), c.kind, locale)));
58
+ const rows = arr(b["rows"]).map((r) => cols.map((c, i) => cell(item(arr(r), i), c.kind, locale)));
59
59
  const wordy = rows.some((r) => r.some((c) => c.length > 40));
60
60
  const shown = rows.length > FOLD_ROWS ? FOLD_ROWS : rows.length;
61
61
  return withTitle({ type: "table", columns: cols, rows, asCards: cols.length > CARD_COLUMNS || wordy, shown, more: rows.length - shown, truncated: b["truncated"] === true, fallbackText });
@@ -64,7 +64,7 @@ export function blockView(raw, locale, custom = new Set()) {
64
64
  case "kpi": {
65
65
  const cs = columns(b["columns"]);
66
66
  const row = arr(arr(b["rows"])[0]);
67
- const items = cs.map((c, i) => ({ label: c.label, value: cell(row.at(i), c.kind, locale) }));
67
+ const items = cs.map((c, i) => ({ label: c.label, value: cell(item(row, i), c.kind, locale) }));
68
68
  return items.length > 0 ? { type: "kpi", items, fallbackText } : { type: "fallback", fallbackText };
69
69
  }
70
70
  case "steps": return { type: "steps", items: arr(b["items"]).map(obj).map((s) => ({ text: str(s["text"]), state: str(s["state"], "todo") })), fallbackText };
@@ -76,7 +76,7 @@ export function blockView(raw, locale, custom = new Set()) {
76
76
  case "export": {
77
77
  // every row and column, as raw text: the file is for a spreadsheet, not for reading here
78
78
  const cols = columns(b["columns"]);
79
- const rows = arr(b["rows"]).map((r) => cols.map((_, i) => { const v = arr(r).at(i); return v === null || v === undefined ? "" : typeof v === "string" ? v : String(v); }));
79
+ const rows = arr(b["rows"]).map((r) => cols.map((_, i) => { const v = item(arr(r), i); return v === null || v === undefined ? "" : typeof v === "string" ? v : String(v); }));
80
80
  return withTitle({ type: "export", format: str(b["format"], "csv"), columns: cols, rows, fallbackText });
81
81
  }
82
82
  default: return { type: "fallback", fallbackText }; // compare, gauge, timeline, items: drawn by the host or shown as text
@@ -89,12 +89,12 @@ function chart(b, cs, fallbackText) {
89
89
  const rows = arr(b["rows"]).map(arr);
90
90
  const x = str(b["x"], cs[0]?.name ?? "");
91
91
  const xIndex = Math.max(0, cs.findIndex((c) => c.name === x));
92
- const xCol = cs.at(xIndex);
93
- const valueCols = cs.filter((_, i) => i !== xIndex && ["number", "money", "percent"].includes(cs.at(i)?.kind ?? ""));
92
+ const xCol = item(cs, xIndex);
93
+ const valueCols = cs.filter((_, i) => i !== xIndex && ["number", "money", "percent"].includes(item(cs, i)?.kind ?? ""));
94
94
  if (!xCol || valueCols.length === 0 || rows.length === 0)
95
95
  return { type: "fallback", fallbackText };
96
- const labels = rows.map((r) => (r.at(xIndex) === null || r.at(xIndex) === undefined ? "" : String(r.at(xIndex))));
97
- const series = valueCols.map((c) => ({ name: c.label, values: rows.map((r) => num(r.at(cs.indexOf(c)))) }));
96
+ const labels = rows.map((r) => (item(r, xIndex) === null || item(r, xIndex) === undefined ? "" : String(item(r, xIndex))));
97
+ const series = valueCols.map((c) => ({ name: c.label, values: rows.map((r) => num(item(r, cs.indexOf(c)))) }));
98
98
  const timeAxis = xCol.kind === "date" || xCol.kind === "day";
99
99
  const asked = str(b["kind"]);
100
100
  let kind;
@@ -107,8 +107,8 @@ function chart(b, cs, fallbackText) {
107
107
  else
108
108
  kind = timeAxis ? "line" : "hbars";
109
109
  if (kind === "hbars") {
110
- const order = labels.map((_, i) => i).sort((a, c) => (series[0]?.values.at(c) ?? 0) - (series[0]?.values.at(a) ?? 0)).slice(0, RANK_BARS);
111
- return { type: "chart", kind, labels: order.map((i) => labels.at(i) ?? ""), series: series.map((s) => ({ name: s.name, values: order.map((i) => s.values.at(i) ?? 0) })), fewData: rows.length < FEW_DATA, fallbackText };
110
+ const order = labels.map((_, i) => i).sort((a, c) => (item(series[0]?.values ?? [], c) ?? 0) - (item(series[0]?.values ?? [], a) ?? 0)).slice(0, RANK_BARS);
111
+ return { type: "chart", kind, labels: order.map((i) => item(labels, i) ?? ""), series: series.map((s) => ({ name: s.name, values: order.map((i) => item(s.values, i) ?? 0) })), fewData: rows.length < FEW_DATA, fallbackText };
112
112
  }
113
113
  return { type: "chart", kind, labels, series, fewData: rows.length < FEW_DATA, fallbackText };
114
114
  }
@@ -31,6 +31,8 @@ export declare class ConversationStore {
31
31
  merge(raw: readonly unknown[]): MessageView[];
32
32
  /** Shows the person's question at once, until the server's copy replaces it. */
33
33
  optimistic(text: string, at: string): MessageView;
34
+ /** The question stays, no longer dim: its run ended (answered or not) or it could not be sent; the server's copy still replaces it. */
35
+ settle(): void;
34
36
  private dropPending;
35
37
  /** Clears the store for another conversation. */
36
38
  reset(id: string | null): void;
@@ -59,6 +59,12 @@ export class ConversationStore {
59
59
  this.pendingId = id;
60
60
  return m;
61
61
  }
62
+ /** The question stays, no longer dim: its run ended (answered or not) or it could not be sent; the server's copy still replaces it. */
63
+ settle() {
64
+ const m = this.pendingId === null ? undefined : this.byId.get(this.pendingId);
65
+ if (m && this.pendingId !== null)
66
+ this.byId.set(this.pendingId, { ...m, pending: false });
67
+ }
62
68
  dropPending() {
63
69
  if (this.pendingId === null)
64
70
  return;
package/dist/csv.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /** A table as a CSV file a spreadsheet opens right: a BOM for the encoding, every cell quoted, no formula injection. */
2
1
  import type { AssistantHost } from "./host.js";
3
2
  /** One cell: quoted, with inner quotes doubled; a cell a spreadsheet would run as a formula gets a leading apostrophe. */
4
3
  export declare function csvCell(value: string): string;
package/dist/csv.js CHANGED
@@ -1,3 +1,5 @@
1
+ /** A table as a CSV file a spreadsheet opens right: a BOM for the encoding, every cell quoted, no formula injection. */
2
+ import { item } from "./api.js";
1
3
  const BOM = "\uFEFF";
2
4
  /** One cell: quoted, with inner quotes doubled; a cell a spreadsheet would run as a formula gets a leading apostrophe. */
3
5
  export function csvCell(value) {
@@ -6,7 +8,7 @@ export function csvCell(value) {
6
8
  }
7
9
  /** The whole file: a BOM, a header row of the column labels, then the rows, lines ended with CRLF. */
8
10
  export function toCsv(labels, rows) {
9
- const lines = [labels.map(csvCell).join(","), ...rows.map((r) => labels.map((_, i) => csvCell(r.at(i) ?? "")).join(","))];
11
+ const lines = [labels.map(csvCell).join(","), ...rows.map((r) => labels.map((_, i) => csvCell(item(r, i) ?? "")).join(","))];
10
12
  return BOM + lines.join("\r\n") + "\r\n";
11
13
  }
12
14
  /** A file name from a title: letters, digits and dashes only, with the extension. */
package/dist/history.d.ts CHANGED
@@ -7,7 +7,23 @@ export interface ConversationRow {
7
7
  waiting: boolean;
8
8
  /** When it last changed (milliseconds since 1970). */
9
9
  updatedAt: number;
10
+ /** The model it keeps (`id` or `id@effort`), if any. */
11
+ model?: string;
10
12
  }
13
+ /** A model a person may pick (`GET models`). */
14
+ export interface ModelChoice {
15
+ id: string;
16
+ kind: string;
17
+ ready: boolean;
18
+ /** Why it cannot answer now (`usage_limit`...), and when it opens again (milliseconds since 1970). */
19
+ unavailable?: string;
20
+ availableAt?: number;
21
+ }
22
+ /** Reads `GET models`: whether the person may pick at all, and the models to pick from. */
23
+ export declare function readModels(raw: unknown): {
24
+ choose: boolean;
25
+ models: ModelChoice[];
26
+ };
11
27
  export type HistoryTab = "today" | "earlier" | "pinned" | "waiting";
12
28
  export declare const HISTORY_TABS: readonly HistoryTab[];
13
29
  /** Reads the server's list (`GET conversations`), pinned first and then the newest. */
package/dist/history.js CHANGED
@@ -1,5 +1,19 @@
1
1
  /** The person's conversations as tabs: today, earlier, pinned and waiting for their code, each with its count. */
2
2
  import { latinDigits } from "./fa.js";
3
+ /** Reads `GET models`: whether the person may pick at all, and the models to pick from. */
4
+ export function readModels(raw) {
5
+ const r = obj(raw);
6
+ const list = Array.isArray(r["models"]) ? r["models"] : [];
7
+ const models = list.map(obj).filter((m) => typeof m["id"] === "string" && m["id"].length > 0).map((m) => {
8
+ const row = { id: m["id"], kind: typeof m["kind"] === "string" ? m["kind"] : "", ready: m["ready"] === true };
9
+ if (typeof m["unavailable"] === "string")
10
+ row.unavailable = m["unavailable"];
11
+ if (typeof m["availableAt"] === "number")
12
+ row.availableAt = m["availableAt"];
13
+ return row;
14
+ });
15
+ return { choose: r["choose"] === true, models };
16
+ }
3
17
  export const HISTORY_TABS = ["today", "earlier", "pinned", "waiting"];
4
18
  function obj(v) {
5
19
  return v !== null && typeof v === "object" && !Array.isArray(v) ? v : {};
@@ -14,6 +28,7 @@ export function readConversations(raw) {
14
28
  pinned: c["pinned"] === true,
15
29
  waiting: c["waiting"] === true,
16
30
  updatedAt: typeof c["updatedAt"] === "number" ? c["updatedAt"] : 0,
31
+ ...(typeof c["model"] === "string" ? { model: c["model"] } : {}),
17
32
  })).filter((c) => c.id.length > 0);
18
33
  return rows.sort((a, b) => Number(b.pinned) - Number(a.pinned) || b.updatedAt - a.updatedAt);
19
34
  }
package/dist/pages.d.ts CHANGED
@@ -18,6 +18,8 @@ export declare const pageCalls: {
18
18
  preview: (api: AssistantApi, routineId: string, values: Readonly<Record<string, string>>, conversationId?: string) => Promise<unknown>;
19
19
  /** Runs a previewed routine with the person's confirmation. */
20
20
  run: (api: AssistantApi, routineId: string, routineRunId: string, hash: string, code?: string) => Promise<unknown>;
21
+ /** The models the person may pick for a conversation (`readModels` reads the answer). */
22
+ models: (api: AssistantApi) => Promise<unknown>;
21
23
  };
22
24
  /**
23
25
  * Starts a run of a non-conversation capability (`POST capabilities/{id}/runs`, for a host's own screens without a
package/dist/pages.js CHANGED
@@ -17,6 +17,8 @@ export const pageCalls = {
17
17
  preview: (api, routineId, values, conversationId) => api.post("routines/" + enc(routineId) + "/preview", conversationId ? { values, conversationId } : { values }),
18
18
  /** Runs a previewed routine with the person's confirmation. */
19
19
  run: (api, routineId, routineRunId, hash, code) => api.post("routines/" + enc(routineId) + "/run", code ? { routineRunId, hash, code } : { routineRunId, hash }),
20
+ /** The models the person may pick for a conversation (`readModels` reads the answer). */
21
+ models: (api) => api.get("models"),
20
22
  };
21
23
  /**
22
24
  * Starts a run of a non-conversation capability (`POST capabilities/{id}/runs`, for a host's own screens without a
@@ -70,6 +72,14 @@ const PAGE_FA = {
70
72
  "page.actions.empty": "هنوز کاری انجام نشده است",
71
73
  "routine.type_to_search": "نامش را بنویسید",
72
74
  "confirm.remote_expired": "تأیید روی گوشی منقضی شد؛ دوباره بخواهید یا کد را وارد کنید",
75
+ "model.label": "مدل",
76
+ "model.auto": "خودکار",
77
+ "model.unavailable": "در دسترس نیست",
78
+ "model.effort": "عمق فکر",
79
+ "model.effort.default": "پیش‌فرض",
80
+ "model.effort.low": "کم",
81
+ "model.effort.medium": "متوسط",
82
+ "model.effort.high": "زیاد",
73
83
  "confirm.remote_refused": "روی گوشی رد شد",
74
84
  };
75
85
  const PAGE_EN = {
@@ -110,6 +120,14 @@ const PAGE_EN = {
110
120
  "page.actions.empty": "No actions yet",
111
121
  "routine.type_to_search": "Type its name",
112
122
  "confirm.remote_expired": "The approval on your phone expired: ask again or enter the code",
123
+ "model.label": "Model",
124
+ "model.auto": "Automatic",
125
+ "model.unavailable": "unavailable",
126
+ "model.effort": "Thinking",
127
+ "model.effort.default": "Default",
128
+ "model.effort.low": "Low",
129
+ "model.effort.medium": "Medium",
130
+ "model.effort.high": "High",
113
131
  "confirm.remote_refused": "It was refused on your phone",
114
132
  };
115
133
  /** The pages' texts over the assistant's: the host's texts and the core's win, then the pages' own. */
@@ -151,7 +169,7 @@ export function withHostTexts(texts, own) {
151
169
  t(key, args) {
152
170
  const v = texts.t(key, args);
153
171
  const mine = own();
154
- const words = Object.hasOwn(mine, key) ? new Map(Object.entries(mine)).get(key) : undefined; // never a prototype's member
172
+ const words = Object.prototype.hasOwnProperty.call(mine, key) ? new Map(Object.entries(mine)).get(key) : undefined; // never a prototype's member
155
173
  return v !== key || words === undefined ? v : createTexts(texts.locale, { [key]: words }).t(key, args);
156
174
  },
157
175
  };
package/dist/types.d.ts CHANGED
@@ -11,7 +11,7 @@ export declare const DEFAULT_THRESHOLDS: LayoutThresholds;
11
11
  /** The layout "auto" picks for a container width. */
12
12
  export declare function pickLayout(layout: Layout, containerWidth: number, thresholds?: LayoutThresholds): Exclude<Layout, "auto">;
13
13
  /** The stable part names hosts style and replace (layer 3): part of the public, versioned contract. */
14
- export declare const PARTS: readonly ["panel", "panel.header", "panel.body", "panel.footer", "hero", "bar-button", "ask-about", "chat", "messages", "message", "message.user", "message.assistant", "message.text", "message.provenance", "message.feedback", "composer", "composer.input", "composer.attach", "composer.mic", "composer.send", "composer.stop", "file-chips", "file-chip", "work", "work.stage", "work.progress", "work.tool", "work.elapsed", "card.approval", "card.approval.step", "card.approval.fact", "card.approval.code", "card.approval.confirm", "card.approval.refuse", "card.undo", "card.ask", "card.choice", "secret-field", "block", "block.text", "block.callout", "block.table", "block.table.card", "block.chart", "block.chart.bar", "block.chart.line", "block.kpi", "block.steps", "block.actions", "block.action", "block.flow", "block.image", "block.open", "block.fallback", "mode-banner", "usage-chip", "thinking-orb", "stages-thinking", "reveal-text"];
14
+ export declare const PARTS: readonly ["panel", "panel.header", "panel.body", "panel.footer", "hero", "bar-button", "ask-about", "chat", "messages", "message", "message.user", "message.assistant", "message.text", "message.provenance", "message.feedback", "composer", "composer.input", "composer.attach", "composer.mic", "composer.send", "composer.stop", "file-chips", "file-chip", "work", "work.stage", "work.progress", "work.tool", "work.elapsed", "card.approval", "card.approval.step", "card.approval.fact", "card.approval.code", "card.approval.confirm", "card.approval.refuse", "card.undo", "card.ask", "card.choice", "secret-field", "block", "block.text", "block.callout", "block.table", "block.table.card", "block.chart", "block.chart.bar", "block.chart.line", "block.kpi", "block.steps", "block.actions", "block.action", "block.flow", "block.image", "block.open", "block.fallback", "mode-banner", "usage-chip", "thinking-orb", "stages-thinking", "reveal-text", "model-picker"];
15
15
  export type PartName = (typeof PARTS)[number];
16
16
  /** Per-part classes and styles from the host (layer 3). */
17
17
  export interface PartStyles {
package/dist/types.js CHANGED
@@ -18,7 +18,7 @@ export const PARTS = [
18
18
  "card.undo", "card.ask", "card.choice", "secret-field",
19
19
  "block", "block.text", "block.callout", "block.table", "block.table.card", "block.chart", "block.chart.bar", "block.chart.line",
20
20
  "block.kpi", "block.steps", "block.actions", "block.action", "block.flow", "block.image", "block.open", "block.fallback",
21
- "mode-banner", "usage-chip", "thinking-orb", "stages-thinking", "reveal-text",
21
+ "mode-banner", "usage-chip", "thinking-orb", "stages-thinking", "reveal-text", "model-picker",
22
22
  ];
23
23
  /** The class of a part: the library's stable class plus the host's. */
24
24
  export function partClass(part, styles, unstyled = false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@g9tm/aiassistant",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "description": "Headless client of the G9 AI assistant: API client, run state, transports, block view models, safe text and Persian helpers. No DOM, no framework.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -33,7 +33,7 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@g9tm/aiassistant-contracts": "1.5.0"
36
+ "@g9tm/aiassistant-contracts": "1.6.1"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "tsc -p tsconfig.json",