@ai-matrx/chat 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/CHANGELOG.md +19 -0
- package/dist/agents/components/context-items/bodies/WebpageBody.js +3 -8
- package/dist/agents/components/inputs/smart-input/composer/ComposerMenu.js +16 -2
- package/dist/agents/components/live-run/LiveRunDisplay.d.ts +7 -1
- package/dist/agents/components/live-run/LiveRunDisplay.js +10 -3
- package/dist/agents/components/messages-display/TranscriptIntegrityCopyButton.js +4 -10
- package/dist/agents/constants/system-agent-registry.d.ts +0 -3
- package/dist/agents/constants/system-agent-registry.js +0 -3
- package/dist/agents/hooks/useFloatingAgentRun.d.ts +19 -0
- package/dist/agents/hooks/useFloatingAgentRun.js +32 -9
- package/dist/agents/prompt-preview/PromptPreviewContent.js +2 -6
- package/dist/host/db-types.d.ts +350 -168
- package/dist/host/window-openers.d.ts +2 -0
- package/dist/surfaces/manifests/chat.manifest.js +3 -1
- package/dist/ui/mandates-storage/mandateStorage.d.ts +15 -0
- package/dist/ui/mandates-storage/shortcutStorage.d.ts +3 -0
- package/dist/utils/rich-editor/in-place/caret-handoff.js +2 -1
- package/dist/voice-agent/components/VoiceDebugPanel.js +4 -8
- package/dist/window-panels/windows/agents/LiveRunWindow.d.ts +3 -1
- package/dist/window-panels/windows/agents/LiveRunWindow.js +5 -2
- package/package.json +9 -9
|
@@ -198,6 +198,8 @@ export interface OpenLiveRunWindowOptions {
|
|
|
198
198
|
runSetKey?: string | null;
|
|
199
199
|
label?: string | null;
|
|
200
200
|
pending?: boolean;
|
|
201
|
+
/** The launch failed before a stream existed: its reason, shown in the window. */
|
|
202
|
+
failure?: string | null;
|
|
201
203
|
/** Stable id to reuse one window per subject. Omit for a fresh window. */
|
|
202
204
|
instanceId?: string;
|
|
203
205
|
width?: number | string;
|
|
@@ -73,7 +73,9 @@ const surfaceSpecific = [
|
|
|
73
73
|
valueType: "array",
|
|
74
74
|
alwaysAvailable: false,
|
|
75
75
|
typicalCharCount: 6e3,
|
|
76
|
-
|
|
76
|
+
// Page budget 10,000 (shared with the 2,000 custom_fields baseline and the two 1,000 values above):
|
|
77
|
+
// the newest messages fit in 6,000; older text is a `transcript` lookup away.
|
|
78
|
+
inlineUpTo: 6e3,
|
|
77
79
|
sortOrder: 295,
|
|
78
80
|
group: "thread"
|
|
79
81
|
},
|
|
@@ -586,6 +586,7 @@ declare const definitionTable: (supabase: Client) => import("@supabase/supabase-
|
|
|
586
586
|
required_output_keys: string[];
|
|
587
587
|
shown_to: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
588
588
|
source_mandate_id: string | null;
|
|
589
|
+
typed_input_complete: boolean;
|
|
589
590
|
updated_at: string;
|
|
590
591
|
updated_by: string | null;
|
|
591
592
|
version: number;
|
|
@@ -631,6 +632,7 @@ declare const definitionTable: (supabase: Client) => import("@supabase/supabase-
|
|
|
631
632
|
required_output_keys?: string[];
|
|
632
633
|
shown_to?: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
633
634
|
source_mandate_id?: string | null;
|
|
635
|
+
typed_input_complete?: boolean;
|
|
634
636
|
updated_at?: string;
|
|
635
637
|
updated_by?: string | null;
|
|
636
638
|
version?: number;
|
|
@@ -676,6 +678,7 @@ declare const definitionTable: (supabase: Client) => import("@supabase/supabase-
|
|
|
676
678
|
required_output_keys?: string[];
|
|
677
679
|
shown_to?: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
678
680
|
source_mandate_id?: string | null;
|
|
681
|
+
typed_input_complete?: boolean;
|
|
679
682
|
updated_at?: string;
|
|
680
683
|
updated_by?: string | null;
|
|
681
684
|
version?: number;
|
|
@@ -2048,6 +2051,7 @@ declare const definitionTable: (supabase: Client) => import("@supabase/supabase-
|
|
|
2048
2051
|
required_output_keys: string[];
|
|
2049
2052
|
shown_to: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
2050
2053
|
source_mandate_id: string | null;
|
|
2054
|
+
typed_input_complete: boolean;
|
|
2051
2055
|
updated_at: string;
|
|
2052
2056
|
updated_by: string | null;
|
|
2053
2057
|
version: number;
|
|
@@ -2093,6 +2097,7 @@ declare const definitionTable: (supabase: Client) => import("@supabase/supabase-
|
|
|
2093
2097
|
required_output_keys?: string[];
|
|
2094
2098
|
shown_to?: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
2095
2099
|
source_mandate_id?: string | null;
|
|
2100
|
+
typed_input_complete?: boolean;
|
|
2096
2101
|
updated_at?: string;
|
|
2097
2102
|
updated_by?: string | null;
|
|
2098
2103
|
version?: number;
|
|
@@ -2138,6 +2143,7 @@ declare const definitionTable: (supabase: Client) => import("@supabase/supabase-
|
|
|
2138
2143
|
required_output_keys?: string[];
|
|
2139
2144
|
shown_to?: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
2140
2145
|
source_mandate_id?: string | null;
|
|
2146
|
+
typed_input_complete?: boolean;
|
|
2141
2147
|
updated_at?: string;
|
|
2142
2148
|
updated_by?: string | null;
|
|
2143
2149
|
version?: number;
|
|
@@ -2718,6 +2724,7 @@ declare const provisionTable: (supabase: Client) => import("@supabase/supabase-j
|
|
|
2718
2724
|
required_output_keys: string[];
|
|
2719
2725
|
shown_to: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
2720
2726
|
source_mandate_id: string | null;
|
|
2727
|
+
typed_input_complete: boolean;
|
|
2721
2728
|
updated_at: string;
|
|
2722
2729
|
updated_by: string | null;
|
|
2723
2730
|
version: number;
|
|
@@ -2763,6 +2770,7 @@ declare const provisionTable: (supabase: Client) => import("@supabase/supabase-j
|
|
|
2763
2770
|
required_output_keys?: string[];
|
|
2764
2771
|
shown_to?: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
2765
2772
|
source_mandate_id?: string | null;
|
|
2773
|
+
typed_input_complete?: boolean;
|
|
2766
2774
|
updated_at?: string;
|
|
2767
2775
|
updated_by?: string | null;
|
|
2768
2776
|
version?: number;
|
|
@@ -2808,6 +2816,7 @@ declare const provisionTable: (supabase: Client) => import("@supabase/supabase-j
|
|
|
2808
2816
|
required_output_keys?: string[];
|
|
2809
2817
|
shown_to?: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
2810
2818
|
source_mandate_id?: string | null;
|
|
2819
|
+
typed_input_complete?: boolean;
|
|
2811
2820
|
updated_at?: string;
|
|
2812
2821
|
updated_by?: string | null;
|
|
2813
2822
|
version?: number;
|
|
@@ -4748,6 +4757,7 @@ declare const bindingTable: (supabase: Client) => import("@supabase/supabase-js"
|
|
|
4748
4757
|
required_output_keys: string[];
|
|
4749
4758
|
shown_to: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
4750
4759
|
source_mandate_id: string | null;
|
|
4760
|
+
typed_input_complete: boolean;
|
|
4751
4761
|
updated_at: string;
|
|
4752
4762
|
updated_by: string | null;
|
|
4753
4763
|
version: number;
|
|
@@ -4793,6 +4803,7 @@ declare const bindingTable: (supabase: Client) => import("@supabase/supabase-js"
|
|
|
4793
4803
|
required_output_keys?: string[];
|
|
4794
4804
|
shown_to?: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
4795
4805
|
source_mandate_id?: string | null;
|
|
4806
|
+
typed_input_complete?: boolean;
|
|
4796
4807
|
updated_at?: string;
|
|
4797
4808
|
updated_by?: string | null;
|
|
4798
4809
|
version?: number;
|
|
@@ -4838,6 +4849,7 @@ declare const bindingTable: (supabase: Client) => import("@supabase/supabase-js"
|
|
|
4838
4849
|
required_output_keys?: string[];
|
|
4839
4850
|
shown_to?: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
4840
4851
|
source_mandate_id?: string | null;
|
|
4852
|
+
typed_input_complete?: boolean;
|
|
4841
4853
|
updated_at?: string;
|
|
4842
4854
|
updated_by?: string | null;
|
|
4843
4855
|
version?: number;
|
|
@@ -6826,6 +6838,7 @@ declare const treatmentTable: (supabase: Client) => import("@supabase/supabase-j
|
|
|
6826
6838
|
required_output_keys: string[];
|
|
6827
6839
|
shown_to: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
6828
6840
|
source_mandate_id: string | null;
|
|
6841
|
+
typed_input_complete: boolean;
|
|
6829
6842
|
updated_at: string;
|
|
6830
6843
|
updated_by: string | null;
|
|
6831
6844
|
version: number;
|
|
@@ -6871,6 +6884,7 @@ declare const treatmentTable: (supabase: Client) => import("@supabase/supabase-j
|
|
|
6871
6884
|
required_output_keys?: string[];
|
|
6872
6885
|
shown_to?: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
6873
6886
|
source_mandate_id?: string | null;
|
|
6887
|
+
typed_input_complete?: boolean;
|
|
6874
6888
|
updated_at?: string;
|
|
6875
6889
|
updated_by?: string | null;
|
|
6876
6890
|
version?: number;
|
|
@@ -6916,6 +6930,7 @@ declare const treatmentTable: (supabase: Client) => import("@supabase/supabase-j
|
|
|
6916
6930
|
required_output_keys?: string[];
|
|
6917
6931
|
shown_to?: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
6918
6932
|
source_mandate_id?: string | null;
|
|
6933
|
+
typed_input_complete?: boolean;
|
|
6919
6934
|
updated_at?: string;
|
|
6920
6935
|
updated_by?: string | null;
|
|
6921
6936
|
version?: number;
|
|
@@ -4778,6 +4778,7 @@ declare const mandateContextMenuView: (supabase: Client) => import("@supabase/su
|
|
|
4778
4778
|
required_output_keys: string[];
|
|
4779
4779
|
shown_to: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
4780
4780
|
source_mandate_id: string | null;
|
|
4781
|
+
typed_input_complete: boolean;
|
|
4781
4782
|
updated_at: string;
|
|
4782
4783
|
updated_by: string | null;
|
|
4783
4784
|
version: number;
|
|
@@ -4823,6 +4824,7 @@ declare const mandateContextMenuView: (supabase: Client) => import("@supabase/su
|
|
|
4823
4824
|
required_output_keys?: string[];
|
|
4824
4825
|
shown_to?: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
4825
4826
|
source_mandate_id?: string | null;
|
|
4827
|
+
typed_input_complete?: boolean;
|
|
4826
4828
|
updated_at?: string;
|
|
4827
4829
|
updated_by?: string | null;
|
|
4828
4830
|
version?: number;
|
|
@@ -4868,6 +4870,7 @@ declare const mandateContextMenuView: (supabase: Client) => import("@supabase/su
|
|
|
4868
4870
|
required_output_keys?: string[];
|
|
4869
4871
|
shown_to?: import("../../host/db-types.js").Database["platform"]["Enums"]["shown_to"] | null;
|
|
4870
4872
|
source_mandate_id?: string | null;
|
|
4873
|
+
typed_input_complete?: boolean;
|
|
4871
4874
|
updated_at?: string;
|
|
4872
4875
|
updated_by?: string | null;
|
|
4873
4876
|
version?: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const PENDING_KEY = /* @__PURE__ */ Symbol.for("ai-matrx.rich-editor.in-place-caret-handoff");
|
|
2
|
+
const pending = globalThis[PENDING_KEY] ??= /* @__PURE__ */ new Map();
|
|
2
3
|
function handInPlaceCaret(key, caret) {
|
|
3
4
|
if (caret) pending.set(key, caret);
|
|
4
5
|
else pending.delete(key);
|
|
@@ -74,14 +74,10 @@ function VoiceDebugPanel({
|
|
|
74
74
|
})} [${e.level}] ${e.label}${e.detail ? ` \u2014 ${e.detail}` : ""}`
|
|
75
75
|
)
|
|
76
76
|
];
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
toast.success("Voice debug copied");
|
|
82
|
-
} catch {
|
|
83
|
-
toast.error("Copy failed");
|
|
84
|
-
}
|
|
77
|
+
if (!await copyText(lines.join("\n"))) return;
|
|
78
|
+
setCopied(true);
|
|
79
|
+
setTimeout(() => setCopied(false), 1500);
|
|
80
|
+
toast.success("Voice debug copied");
|
|
85
81
|
};
|
|
86
82
|
return /* @__PURE__ */ jsxs("div", { className: "pointer-events-auto w-full overflow-hidden rounded-lg border border-border bg-zinc-950/95 text-zinc-100 shadow-lg backdrop-blur", children: [
|
|
87
83
|
/* @__PURE__ */ jsxs("div", { className: "flex w-full items-center justify-between gap-2 px-3 py-1.5", children: [
|
|
@@ -35,6 +35,8 @@ export interface LiveRunWindowProps {
|
|
|
35
35
|
label?: string | null;
|
|
36
36
|
/** The run has been launched but no stream has connected yet. */
|
|
37
37
|
pending?: boolean;
|
|
38
|
+
/** The launch failed before a stream existed: its reason, shown in the body. */
|
|
39
|
+
failure?: string | null;
|
|
38
40
|
/**
|
|
39
41
|
* Per-kind size override. Only pass these once you have WATCHED that kind
|
|
40
42
|
* render and seen the default box be wrong — a kind whose output is three
|
|
@@ -49,4 +51,4 @@ export interface LiveRunWindowProps {
|
|
|
49
51
|
workingMessage?: string | null;
|
|
50
52
|
completeMessage?: string | null;
|
|
51
53
|
}
|
|
52
|
-
export default function LiveRunWindow({ windowInstanceId, onClose, conversationId, requestId, runSetKey, label, pending, width, height, progress, initialMinimized, workingMessage, completeMessage, }: LiveRunWindowProps): React.JSX.Element;
|
|
54
|
+
export default function LiveRunWindow({ windowInstanceId, onClose, conversationId, requestId, runSetKey, label, pending, failure, width, height, progress, initialMinimized, workingMessage, completeMessage, }: LiveRunWindowProps): React.JSX.Element;
|
|
@@ -24,6 +24,7 @@ function LiveRunWindow({
|
|
|
24
24
|
runSetKey = null,
|
|
25
25
|
label = null,
|
|
26
26
|
pending = false,
|
|
27
|
+
failure = null,
|
|
27
28
|
width = LIVE_RUN_WIDTH,
|
|
28
29
|
height = LIVE_RUN_HEIGHT,
|
|
29
30
|
progress = null,
|
|
@@ -41,10 +42,11 @@ function LiveRunWindow({
|
|
|
41
42
|
const { statusText } = useLiveRunStatus(
|
|
42
43
|
conversationId,
|
|
43
44
|
statusRequestId,
|
|
44
|
-
pending && !statusRequestId
|
|
45
|
+
pending && !statusRequestId && !failure
|
|
45
46
|
);
|
|
46
47
|
const hasOutput = Boolean(requestId || conversationId || runSetKey);
|
|
47
|
-
const
|
|
48
|
+
const phase = failure && !statusRequestId ? "Failed" : statusText;
|
|
49
|
+
const title = phase ? `${label ?? "AI is working"} \u2014 ${phase}` : label ?? "AI is working";
|
|
48
50
|
return /* @__PURE__ */ jsx(
|
|
49
51
|
WindowPanel,
|
|
50
52
|
{
|
|
@@ -81,6 +83,7 @@ function LiveRunWindow({
|
|
|
81
83
|
conversationId,
|
|
82
84
|
requestId,
|
|
83
85
|
pending: pending && !progress,
|
|
86
|
+
failure,
|
|
84
87
|
variant: "bare",
|
|
85
88
|
className: "h-full",
|
|
86
89
|
bodyClassName: "max-h-none h-full overflow-y-auto"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/chat",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
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",
|
|
@@ -202,23 +202,23 @@
|
|
|
202
202
|
"uuid": "^14.0.2",
|
|
203
203
|
"zod": "^4.6.5",
|
|
204
204
|
"@ai-matrx/agents": "latest",
|
|
205
|
-
"@ai-matrx/alchemy": "latest",
|
|
206
205
|
"@ai-matrx/associations": "latest",
|
|
207
|
-
"@ai-matrx/canvas": "latest",
|
|
208
206
|
"@ai-matrx/browser-audio": "latest",
|
|
209
|
-
"@ai-matrx/
|
|
207
|
+
"@ai-matrx/alchemy": "latest",
|
|
208
|
+
"@ai-matrx/canvas": "latest",
|
|
210
209
|
"@ai-matrx/content-ir": "latest",
|
|
211
210
|
"@ai-matrx/data": "latest",
|
|
212
|
-
"@ai-matrx/
|
|
211
|
+
"@ai-matrx/content-ir-react": "latest",
|
|
213
212
|
"@ai-matrx/diff": "latest",
|
|
213
|
+
"@ai-matrx/design-system": "latest",
|
|
214
214
|
"@ai-matrx/icons": "latest",
|
|
215
|
-
"@ai-matrx/
|
|
216
|
-
"@ai-matrx/media": "latest",
|
|
215
|
+
"@ai-matrx/print": "latest",
|
|
217
216
|
"@ai-matrx/realtime": "latest",
|
|
218
217
|
"@ai-matrx/records": "latest",
|
|
219
218
|
"@ai-matrx/records-ui": "latest",
|
|
220
|
-
"@ai-matrx/
|
|
221
|
-
"@ai-matrx/
|
|
219
|
+
"@ai-matrx/media": "latest",
|
|
220
|
+
"@ai-matrx/kit": "latest",
|
|
221
|
+
"@ai-matrx/tap-target": "latest"
|
|
222
222
|
},
|
|
223
223
|
"devDependencies": {
|
|
224
224
|
"@arethetypeswrong/cli": "^0.18.5",
|