@ai-matrx/chat 0.3.19 → 0.3.20
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ai-matrx/chat
|
|
2
2
|
|
|
3
|
+
## 0.3.20 — 2026-10-07
|
|
4
|
+
### Working-document realtime channel renamed
|
|
5
|
+
|
|
6
|
+
- The working-document row channel is `working-document-row` (was `cx-working-doc`). 0.3.19 changed that namespace's description in place, and a dev server that had loaded 0.3.15 refused the new declaration on every page ("cannot be re-declared"). A fresh process was never affected.
|
|
7
|
+
- Consumer action: none.
|
|
8
|
+
|
|
3
9
|
## 0.3.19 — 2026-10-07
|
|
4
10
|
### Working documents fix-up
|
|
5
11
|
|
|
@@ -82,7 +82,10 @@ import { selectUserId } from "../../host/identity.js";
|
|
|
82
82
|
const AUTOSAVE_MS = 700;
|
|
83
83
|
const wdChannels = /* @__PURE__ */ new Map();
|
|
84
84
|
const workingDocChannel = defineChannelNamespace({
|
|
85
|
-
|
|
85
|
+
// Renamed from "cx-working-doc" when the row moved to content.document (C5c):
|
|
86
|
+
// a namespace whose spec changes must take a new name, or a long-lived dev
|
|
87
|
+
// server that still holds the old declaration refuses the new one.
|
|
88
|
+
namespace: "working-document-row",
|
|
86
89
|
parts: ["documentId"],
|
|
87
90
|
description: "content.document row for one chat working document"
|
|
88
91
|
});
|
package/dist/host/db-types.d.ts
CHANGED
|
@@ -10184,6 +10184,113 @@ export type ChatDatabase = {
|
|
|
10184
10184
|
}
|
|
10185
10185
|
];
|
|
10186
10186
|
};
|
|
10187
|
+
udt_dataset_template_fields: {
|
|
10188
|
+
Row: {
|
|
10189
|
+
created_at: string;
|
|
10190
|
+
custom_fields: Json;
|
|
10191
|
+
data_type: Database["public"]["Enums"]["field_data_type"];
|
|
10192
|
+
default_value: Json | null;
|
|
10193
|
+
display_name: string;
|
|
10194
|
+
field_name: string;
|
|
10195
|
+
field_order: number;
|
|
10196
|
+
id: string;
|
|
10197
|
+
is_required: boolean;
|
|
10198
|
+
metadata: Json;
|
|
10199
|
+
organization_id: string;
|
|
10200
|
+
template_id: string;
|
|
10201
|
+
updated_at: string;
|
|
10202
|
+
validation_rules: Json | null;
|
|
10203
|
+
};
|
|
10204
|
+
Insert: {
|
|
10205
|
+
created_at?: string;
|
|
10206
|
+
custom_fields?: Json;
|
|
10207
|
+
data_type?: Database["public"]["Enums"]["field_data_type"];
|
|
10208
|
+
default_value?: Json | null;
|
|
10209
|
+
display_name: string;
|
|
10210
|
+
field_name: string;
|
|
10211
|
+
field_order?: number;
|
|
10212
|
+
id?: string;
|
|
10213
|
+
is_required?: boolean;
|
|
10214
|
+
metadata?: Json;
|
|
10215
|
+
organization_id: string;
|
|
10216
|
+
template_id: string;
|
|
10217
|
+
updated_at?: string;
|
|
10218
|
+
validation_rules?: Json | null;
|
|
10219
|
+
};
|
|
10220
|
+
Update: {
|
|
10221
|
+
created_at?: string;
|
|
10222
|
+
custom_fields?: Json;
|
|
10223
|
+
data_type?: Database["public"]["Enums"]["field_data_type"];
|
|
10224
|
+
default_value?: Json | null;
|
|
10225
|
+
display_name?: string;
|
|
10226
|
+
field_name?: string;
|
|
10227
|
+
field_order?: number;
|
|
10228
|
+
id?: string;
|
|
10229
|
+
is_required?: boolean;
|
|
10230
|
+
metadata?: Json;
|
|
10231
|
+
organization_id?: string;
|
|
10232
|
+
template_id?: string;
|
|
10233
|
+
updated_at?: string;
|
|
10234
|
+
validation_rules?: Json | null;
|
|
10235
|
+
};
|
|
10236
|
+
Relationships: [
|
|
10237
|
+
{
|
|
10238
|
+
foreignKeyName: "udt_dataset_template_fields_template_id_fkey";
|
|
10239
|
+
columns: ["template_id"];
|
|
10240
|
+
isOneToOne: false;
|
|
10241
|
+
referencedRelation: "udt_dataset_templates";
|
|
10242
|
+
referencedColumns: ["id"];
|
|
10243
|
+
}
|
|
10244
|
+
];
|
|
10245
|
+
};
|
|
10246
|
+
udt_dataset_templates: {
|
|
10247
|
+
Row: {
|
|
10248
|
+
created_at: string;
|
|
10249
|
+
created_by: string | null;
|
|
10250
|
+
custom_fields: Json;
|
|
10251
|
+
deleted_at: string | null;
|
|
10252
|
+
description: string;
|
|
10253
|
+
id: string;
|
|
10254
|
+
is_active: boolean;
|
|
10255
|
+
metadata: Json;
|
|
10256
|
+
name: string;
|
|
10257
|
+
organization_id: string;
|
|
10258
|
+
updated_at: string;
|
|
10259
|
+
updated_by: string | null;
|
|
10260
|
+
version: number;
|
|
10261
|
+
};
|
|
10262
|
+
Insert: {
|
|
10263
|
+
created_at?: string;
|
|
10264
|
+
created_by?: string | null;
|
|
10265
|
+
custom_fields?: Json;
|
|
10266
|
+
deleted_at?: string | null;
|
|
10267
|
+
description?: string;
|
|
10268
|
+
id?: string;
|
|
10269
|
+
is_active?: boolean;
|
|
10270
|
+
metadata?: Json;
|
|
10271
|
+
name: string;
|
|
10272
|
+
organization_id: string;
|
|
10273
|
+
updated_at?: string;
|
|
10274
|
+
updated_by?: string | null;
|
|
10275
|
+
version?: number;
|
|
10276
|
+
};
|
|
10277
|
+
Update: {
|
|
10278
|
+
created_at?: string;
|
|
10279
|
+
created_by?: string | null;
|
|
10280
|
+
custom_fields?: Json;
|
|
10281
|
+
deleted_at?: string | null;
|
|
10282
|
+
description?: string;
|
|
10283
|
+
id?: string;
|
|
10284
|
+
is_active?: boolean;
|
|
10285
|
+
metadata?: Json;
|
|
10286
|
+
name?: string;
|
|
10287
|
+
organization_id?: string;
|
|
10288
|
+
updated_at?: string;
|
|
10289
|
+
updated_by?: string | null;
|
|
10290
|
+
version?: number;
|
|
10291
|
+
};
|
|
10292
|
+
Relationships: [];
|
|
10293
|
+
};
|
|
10187
10294
|
udt_datasets: {
|
|
10188
10295
|
Row: {
|
|
10189
10296
|
created_at: string;
|
|
@@ -61,6 +61,12 @@ export declare function formatMetaNumber(n: number): string;
|
|
|
61
61
|
* line still says it is there.
|
|
62
62
|
*/
|
|
63
63
|
export declare function isNotApplicableValue(val: unknown): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* The collapsed omission line NAMES what did not apply (review 8041caec,
|
|
66
|
+
* 2026-10-07: "1 field did not apply" left the reader guessing which). Up to
|
|
67
|
+
* three names are listed; past that the rest is counted.
|
|
68
|
+
*/
|
|
69
|
+
export declare function notApplicableSummary(names: readonly string[]): string;
|
|
64
70
|
/**
|
|
65
71
|
* An object carrying its own `__kind` is a kind, not a field list: it renders
|
|
66
72
|
* through the value door (`KindValueNode` → `AnswerValueView`) and the caller
|
|
@@ -118,6 +118,13 @@ const IdentifierListRow = ({
|
|
|
118
118
|
open && /* @__PURE__ */ jsx("div", { className: "mt-1 flex flex-wrap items-center gap-1.5", children: ids.map((id, i) => /* @__PURE__ */ jsx(ShortId, { value: id }, `${id}-${i}`)) })
|
|
119
119
|
] });
|
|
120
120
|
};
|
|
121
|
+
function notApplicableSummary(names) {
|
|
122
|
+
if (names.length === 0) return "";
|
|
123
|
+
const head = `${names.length} ${names.length === 1 ? "field" : "fields"} did not apply`;
|
|
124
|
+
const shown = names.slice(0, 3).join(", ");
|
|
125
|
+
const more = names.length - 3;
|
|
126
|
+
return `${head}: ${shown}${more > 0 ? ` and ${more} more` : ""}`;
|
|
127
|
+
}
|
|
121
128
|
const NotApplicableRow = ({ entries, labels, density, depth, embedMedia }) => {
|
|
122
129
|
const [open, setOpen] = React.useState(false);
|
|
123
130
|
return /* @__PURE__ */ jsxs("div", { className: "text-xs text-muted-foreground", children: [
|
|
@@ -125,7 +132,7 @@ const NotApplicableRow = ({ entries, labels, density, depth, embedMedia }) => {
|
|
|
125
132
|
e.stopPropagation();
|
|
126
133
|
setOpen((v) => !v);
|
|
127
134
|
}, children: [
|
|
128
|
-
|
|
135
|
+
notApplicableSummary(entries.map(([key]) => fieldLabel(key, labels).label)),
|
|
129
136
|
open ? " \u2014 hide" : " \u2014 show"
|
|
130
137
|
] }),
|
|
131
138
|
open && /* @__PURE__ */ jsx("dl", { className: "mt-1 grid grid-cols-[fit-content(40%)_minmax(0,1fr)] items-baseline gap-x-4 gap-y-1", children: entries.map(([key, val]) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
@@ -287,5 +294,6 @@ export {
|
|
|
287
294
|
humanNameSiblingKey,
|
|
288
295
|
isIdentifierKey,
|
|
289
296
|
isIdentifierListKey,
|
|
290
|
-
isNotApplicableValue
|
|
297
|
+
isNotApplicableValue,
|
|
298
|
+
notApplicableSummary
|
|
291
299
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/chat",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"description": "THE one AI Matrx person-to-agent chat system: the full chat (running agents, conversations, tool calls, streaming, context, surfaces, voice) as per-module subpaths @ai-matrx/chat/<domain>/<module> over a host contract (/host, /host/react) whose only required value is a db; plus the kernel compatibility entries (., /external-store, /matrx, /react, /tools, styles.css, tokens.css) until P28.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -226,24 +226,24 @@
|
|
|
226
226
|
"server-only": "^0.0.1",
|
|
227
227
|
"uuid": "^14.0.2",
|
|
228
228
|
"zod": "^4.6.5",
|
|
229
|
-
"@ai-matrx/
|
|
229
|
+
"@ai-matrx/agents": "latest",
|
|
230
230
|
"@ai-matrx/associations": "latest",
|
|
231
|
-
"@ai-matrx/browser-audio": "latest",
|
|
232
|
-
"@ai-matrx/content-ir-react": "latest",
|
|
233
231
|
"@ai-matrx/canvas": "latest",
|
|
232
|
+
"@ai-matrx/browser-audio": "latest",
|
|
233
|
+
"@ai-matrx/alchemy": "latest",
|
|
234
234
|
"@ai-matrx/content-ir": "latest",
|
|
235
|
+
"@ai-matrx/content-ir-react": "latest",
|
|
235
236
|
"@ai-matrx/data": "latest",
|
|
236
237
|
"@ai-matrx/design-system": "latest",
|
|
237
238
|
"@ai-matrx/diff": "latest",
|
|
238
239
|
"@ai-matrx/icons": "latest",
|
|
239
|
-
"@ai-matrx/kit": "latest",
|
|
240
240
|
"@ai-matrx/media": "latest",
|
|
241
241
|
"@ai-matrx/print": "latest",
|
|
242
242
|
"@ai-matrx/realtime": "latest",
|
|
243
|
-
"@ai-matrx/
|
|
244
|
-
"@ai-matrx/records-ui": "latest",
|
|
243
|
+
"@ai-matrx/kit": "latest",
|
|
245
244
|
"@ai-matrx/tap-target": "latest",
|
|
246
|
-
"@ai-matrx/
|
|
245
|
+
"@ai-matrx/records": "latest",
|
|
246
|
+
"@ai-matrx/records-ui": "latest"
|
|
247
247
|
},
|
|
248
248
|
"devDependencies": {
|
|
249
249
|
"@arethetypeswrong/cli": "^0.18.5",
|