@ai-matrx/chat 0.3.6 → 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 +39 -0
- package/dist/agents/components/context-items/bodies/WebpageBody.js +3 -8
- package/dist/agents/components/inputs/smart-input/InputActionButtons.d.ts +4 -0
- package/dist/agents/components/inputs/smart-input/InputActionButtons.js +16 -9
- package/dist/agents/components/inputs/smart-input/RunControlsMenu.d.ts +2 -0
- package/dist/agents/components/inputs/smart-input/RunControlsMenu.js +2 -0
- package/dist/agents/components/inputs/smart-input/SmartAgentInputStacked.js +1 -1
- package/dist/agents/components/inputs/smart-input/composer/ComposerAgentPill.js +4 -6
- package/dist/agents/components/inputs/smart-input/composer/ComposerMenu.js +16 -2
- package/dist/agents/components/inputs/smart-input/composer/ComposerOutput.js +9 -4
- package/dist/agents/components/inputs/smart-input/composer/ComposerPlusMenu.d.ts +3 -1
- package/dist/agents/components/inputs/smart-input/composer/ComposerPlusMenu.js +2 -2
- package/dist/agents/components/inputs/smart-input/composer/composer-types.d.ts +5 -0
- package/dist/agents/components/inputs/variable-input-variations/AgentVariableCards.js +1 -1
- 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/components/shared/AgentOptionsMenu.js +2 -2
- 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/agents/redux/execution-system/message-crud/edit-message.thunk.js +3 -6
- package/dist/agents/redux/execution-system/message-crud/fork-and-resubmit-from-message.thunk.js +1 -1
- package/dist/compute/targets.d.ts +2 -6
- package/dist/context/sources/scopes.d.ts +3 -3
- package/dist/host/db-types.d.ts +350 -168
- package/dist/host/window-openers.d.ts +23 -5
- 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/voice-agent/relay/VoiceRelayBar.d.ts +7 -1
- package/dist/voice-agent/relay/VoiceRelayBar.js +90 -24
- package/dist/window-panels/windows/agents/LiveRunWindow.d.ts +3 -1
- package/dist/window-panels/windows/agents/LiveRunWindow.js +5 -2
- package/package.json +8 -8
package/dist/agents/redux/execution-system/message-crud/fork-and-resubmit-from-message.thunk.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createAsyncThunk } from "@reduxjs/toolkit";
|
|
2
2
|
import { forkConversation } from "./fork-conversation.thunk.js";
|
|
3
3
|
import { mergeEditedText } from "./content-blocks.util.js";
|
|
4
|
+
import { toastDoor } from "../../../../host/ui-slots.js";
|
|
4
5
|
const forkAndResubmitFromMessage = createAsyncThunk(
|
|
5
6
|
"messages/forkAndResubmitFromMessage",
|
|
6
7
|
async ({ conversationId, messageId, newContent, surfaceKey }, { dispatch, getState, rejectWithValue }) => {
|
|
@@ -48,7 +49,6 @@ const forkAndResubmitFromMessage = createAsyncThunk(
|
|
|
48
49
|
);
|
|
49
50
|
} else {
|
|
50
51
|
const { toast } = await import("../../../../host/notify.js");
|
|
51
|
-
const { toastDoor } = await import("../../../../host/ui-slots.js");
|
|
52
52
|
toast.success("Branch created", {
|
|
53
53
|
action: toastDoor("conversation", newConversationId)
|
|
54
54
|
});
|
|
@@ -116,15 +116,13 @@ export interface ChatComputeTargetsSource {
|
|
|
116
116
|
error: string | null;
|
|
117
117
|
fetchInstances: (opts?: {
|
|
118
118
|
limit?: number;
|
|
119
|
-
[option: string]: unknown;
|
|
120
119
|
}) => Promise<unknown>;
|
|
121
120
|
createInstance: (request: {
|
|
122
121
|
organization_id: string;
|
|
123
122
|
template?: string;
|
|
124
|
-
tier
|
|
123
|
+
tier: "ec2" | "hosted";
|
|
125
124
|
ttl_seconds?: number;
|
|
126
125
|
labels?: Record<string, string>;
|
|
127
|
-
[field: string]: unknown;
|
|
128
126
|
}) => Promise<{
|
|
129
127
|
instance: SandboxInstance | null;
|
|
130
128
|
error: string | null;
|
|
@@ -190,15 +188,13 @@ export declare const useSandboxInstances: () => {
|
|
|
190
188
|
error: string | null;
|
|
191
189
|
fetchInstances: (opts?: {
|
|
192
190
|
limit?: number;
|
|
193
|
-
[option: string]: unknown;
|
|
194
191
|
}) => Promise<unknown>;
|
|
195
192
|
createInstance: (request: {
|
|
196
193
|
organization_id: string;
|
|
197
194
|
template?: string;
|
|
198
|
-
tier
|
|
195
|
+
tier: "ec2" | "hosted";
|
|
199
196
|
ttl_seconds?: number;
|
|
200
197
|
labels?: Record<string, string>;
|
|
201
|
-
[field: string]: unknown;
|
|
202
198
|
}) => Promise<{
|
|
203
199
|
instance: SandboxInstance | null;
|
|
204
200
|
error: string | null;
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* have no honest default and throw, naming themselves.
|
|
18
18
|
*/
|
|
19
19
|
import type { ComponentType } from "react";
|
|
20
|
+
import type { AssociationSourceEdge, AssociationTargetEdge } from "@ai-matrx/associations";
|
|
20
21
|
import type { ChatDatabase, Json } from "../../host/db-types.js";
|
|
21
22
|
import { type AnyComponent, type AnyFn } from "../../host/registered-source.js";
|
|
22
23
|
export type ContextItemRow = ChatDatabase["context"]["Tables"]["context_items"]["Row"];
|
|
@@ -61,7 +62,6 @@ export interface ScopeTreeOrganization {
|
|
|
61
62
|
projects?: Array<{
|
|
62
63
|
id: string;
|
|
63
64
|
name: string;
|
|
64
|
-
[field: string]: unknown;
|
|
65
65
|
}>;
|
|
66
66
|
}
|
|
67
67
|
export interface ContextItemValue {
|
|
@@ -175,10 +175,10 @@ export interface AssociationEdgeRow {
|
|
|
175
175
|
}
|
|
176
176
|
export interface ChatAssociationsService {
|
|
177
177
|
listForTargets(targetType: string, targetIds: string[], ...rest: any[]): Promise<ScopesRpcResult<{
|
|
178
|
-
edges:
|
|
178
|
+
edges: AssociationTargetEdge[];
|
|
179
179
|
}>>;
|
|
180
180
|
listForSources(sourceType: string, sourceIds: string[], ...rest: any[]): Promise<ScopesRpcResult<{
|
|
181
|
-
edges:
|
|
181
|
+
edges: AssociationSourceEdge[];
|
|
182
182
|
}>>;
|
|
183
183
|
add(input: any): Promise<ScopesRpcResult<any>>;
|
|
184
184
|
remove(input: any): Promise<ScopesRpcResult<any>>;
|