@ai-matrx/chat 0.4.22 → 0.4.26
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 +43 -0
- package/dist/agent-copy/RichCopySplit.d.ts +11 -1
- package/dist/agent-copy/RichCopySplit.js +9 -3
- package/dist/agents/components/chat/ChatConversationRoom.js +6 -4
- package/dist/agents/components/chat/ChatNewClient.js +7 -4
- package/dist/agents/components/chat/ChatNewHeader.js +3 -2
- package/dist/agents/components/chat/default-chat-mandate.d.ts +7 -0
- package/dist/agents/components/chat/default-chat-mandate.js +9 -0
- package/dist/agents/components/context-items/bodies/UnregisteredBody.d.ts +6 -3
- package/dist/agents/components/context-items/bodies/UnregisteredBody.js +3 -9
- package/dist/agents/components/inputs/resources/attach-resource.js +1 -0
- package/dist/agents/components/inputs/smart-input/SmartAgentInput.js +16 -1
- package/dist/agents/components/inputs/smart-input/composer/ComposerMenu.js +3 -2
- package/dist/agents/components/inputs/smart-input/composer/ComposerPlusMenu.js +41 -35
- package/dist/agents/components/messages-display/assistant/AgentAssistantMessage.js +29 -20
- package/dist/agents/components/messages-display/user/AgentUserMessage.js +3 -1
- package/dist/agents/components/shared/AgentConversationColumn.d.ts +10 -1
- package/dist/agents/components/shared/AgentConversationColumn.js +26 -2
- package/dist/agents/redux/execution-system/messages/messages.slice.js +6 -1
- package/dist/agents/redux/execution-system/thunks/await-launching-conversation.d.ts +16 -0
- package/dist/agents/redux/execution-system/thunks/await-launching-conversation.js +16 -0
- package/dist/agents/redux/execution-system/thunks/execute-instance.thunk.js +34 -1
- package/dist/agents/redux/execution-system/thunks/process-stream.js +11 -0
- package/dist/agents/redux/execution-system/thunks/smart-execute.thunk.js +10 -0
- package/dist/agents/redux/execution-system/utils/required-organization.js +2 -2
- package/dist/agents/ui-first-tools/redux/build-ambient-context.js +8 -7
- package/dist/host/app-data-slots.d.ts +0 -1
- package/dist/host/app-data-slots.js +25 -5
- package/dist/host/bare-host-chrome.js +4 -0
- package/dist/host/contract.d.ts +8 -2
- package/dist/host/contract.js +2 -1
- package/dist/host/conversation-hooks-react.d.ts +2 -0
- package/dist/host/conversation-hooks-react.js +12 -0
- package/dist/host/conversation-hooks.d.ts +79 -0
- package/dist/host/conversation-hooks.js +91 -0
- package/dist/host/defaults/bare-block-dispatch.d.ts +6 -0
- package/dist/host/defaults/bare-block-dispatch.js +60 -0
- package/dist/host/defaults/files-host.d.ts +26 -0
- package/dist/host/defaults/files-host.js +212 -0
- package/dist/host/defaults/memory-navigation.d.ts +12 -0
- package/dist/host/defaults/memory-navigation.js +102 -0
- package/dist/host/defaults/resource-picker-menu.d.ts +14 -0
- package/dist/host/defaults/resource-picker-menu.js +117 -0
- package/dist/host/defaults/setting-control-input.d.ts +11 -0
- package/dist/host/defaults/setting-control-input.js +91 -0
- package/dist/host/index.d.ts +2 -0
- package/dist/host/index.js +5 -0
- package/dist/host/react.d.ts +1 -0
- package/dist/host/react.js +2 -0
- package/dist/host/ui-slots.d.ts +25 -1
- package/dist/host/ui-slots.js +83 -25
- package/dist/host/window-openers.d.ts +2 -0
- package/dist/host/window-openers.js +4 -0
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/tool-call-visualization/registry/registry.js +4 -4
- package/dist/ui/aspect-ratio-options.d.ts +4 -26
- package/dist/ui/aspect-ratio-options.js +7 -75
- package/dist/ui/chat-panel/ChatPanel.d.ts +50 -0
- package/dist/ui/chat-panel/ChatPanel.js +175 -0
- package/dist/ui/chat-panel/drag.d.ts +87 -0
- package/dist/ui/chat-panel/drag.js +194 -0
- package/dist/window-panels/windows/agents/AgentRunWindow.js +17 -0
- package/dist/window-panels/windows/agents/agentRunWindowAddress.d.ts +19 -0
- package/dist/window-panels/windows/agents/agentRunWindowAddress.js +11 -1
- package/package.json +5 -5
|
@@ -33,3 +33,22 @@ export declare function addressableConversationId(args: {
|
|
|
33
33
|
liveConversationId: string | null;
|
|
34
34
|
liveConversationHasMessages: boolean;
|
|
35
35
|
}): string | null;
|
|
36
|
+
export interface WindowSeed {
|
|
37
|
+
agent: string | null;
|
|
38
|
+
conversation: string | null;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A Chat link's agent and conversation can reach a window instance that is
|
|
42
|
+
* already mounted (it opened before its address was read, on the registry's
|
|
43
|
+
* empty default). The window adopts a seed that arrives late — but never over
|
|
44
|
+
* a choice the person already made. Returns null when nothing changed.
|
|
45
|
+
*/
|
|
46
|
+
export declare function adoptLateWindowSeed(args: {
|
|
47
|
+
seen: WindowSeed;
|
|
48
|
+
incoming: WindowSeed;
|
|
49
|
+
current: WindowSeed;
|
|
50
|
+
}): {
|
|
51
|
+
seen: WindowSeed;
|
|
52
|
+
agent: string | null;
|
|
53
|
+
conversation: string | null;
|
|
54
|
+
} | null;
|
|
@@ -5,9 +5,19 @@ function addressableConversationId(args) {
|
|
|
5
5
|
if (args.selectedConversationId) return args.selectedConversationId;
|
|
6
6
|
return args.liveConversationHasMessages ? args.liveConversationId : null;
|
|
7
7
|
}
|
|
8
|
+
function adoptLateWindowSeed(args) {
|
|
9
|
+
const { seen, incoming, current } = args;
|
|
10
|
+
if (seen.agent === incoming.agent && seen.conversation === incoming.conversation) return null;
|
|
11
|
+
return {
|
|
12
|
+
seen: incoming,
|
|
13
|
+
agent: current.agent ?? incoming.agent,
|
|
14
|
+
conversation: current.conversation ?? incoming.conversation
|
|
15
|
+
};
|
|
16
|
+
}
|
|
8
17
|
export {
|
|
9
18
|
AGENT_RUN_WINDOW_AGENT_ARG,
|
|
10
19
|
AGENT_RUN_WINDOW_CONVERSATION_ARG,
|
|
11
20
|
AGENT_RUN_WINDOW_URL_MODE,
|
|
12
|
-
addressableConversationId
|
|
21
|
+
addressableConversationId,
|
|
22
|
+
adoptLateWindowSeed
|
|
13
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/chat",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.26",
|
|
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,26 +226,26 @@
|
|
|
226
226
|
"server-only": "^0.0.1",
|
|
227
227
|
"uuid": "^14.0.2",
|
|
228
228
|
"zod": "^4.6.5",
|
|
229
|
+
"@ai-matrx/agents": "latest",
|
|
229
230
|
"@ai-matrx/alchemy": "latest",
|
|
230
231
|
"@ai-matrx/associations": "latest",
|
|
231
232
|
"@ai-matrx/browser-audio": "latest",
|
|
232
|
-
"@ai-matrx/agents": "latest",
|
|
233
233
|
"@ai-matrx/canvas": "latest",
|
|
234
234
|
"@ai-matrx/content-ir": "latest",
|
|
235
235
|
"@ai-matrx/content-ir-react": "latest",
|
|
236
236
|
"@ai-matrx/data": "latest",
|
|
237
237
|
"@ai-matrx/design-system": "latest",
|
|
238
238
|
"@ai-matrx/diff": "latest",
|
|
239
|
-
"@ai-matrx/kit": "latest",
|
|
240
239
|
"@ai-matrx/icons": "latest",
|
|
240
|
+
"@ai-matrx/media": "latest",
|
|
241
241
|
"@ai-matrx/print": "latest",
|
|
242
|
+
"@ai-matrx/kit": "latest",
|
|
242
243
|
"@ai-matrx/realtime": "latest",
|
|
243
244
|
"@ai-matrx/records": "latest",
|
|
244
245
|
"@ai-matrx/records-ui": "latest",
|
|
245
246
|
"@ai-matrx/rich-content": "latest",
|
|
246
247
|
"@ai-matrx/rich-editor": "latest",
|
|
247
|
-
"@ai-matrx/tap-target": "latest"
|
|
248
|
-
"@ai-matrx/media": "latest"
|
|
248
|
+
"@ai-matrx/tap-target": "latest"
|
|
249
249
|
},
|
|
250
250
|
"devDependencies": {
|
|
251
251
|
"@arethetypeswrong/cli": "^0.18.5",
|