@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.
Files changed (39) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/agents/components/context-items/bodies/WebpageBody.js +3 -8
  3. package/dist/agents/components/inputs/smart-input/InputActionButtons.d.ts +4 -0
  4. package/dist/agents/components/inputs/smart-input/InputActionButtons.js +16 -9
  5. package/dist/agents/components/inputs/smart-input/RunControlsMenu.d.ts +2 -0
  6. package/dist/agents/components/inputs/smart-input/RunControlsMenu.js +2 -0
  7. package/dist/agents/components/inputs/smart-input/SmartAgentInputStacked.js +1 -1
  8. package/dist/agents/components/inputs/smart-input/composer/ComposerAgentPill.js +4 -6
  9. package/dist/agents/components/inputs/smart-input/composer/ComposerMenu.js +16 -2
  10. package/dist/agents/components/inputs/smart-input/composer/ComposerOutput.js +9 -4
  11. package/dist/agents/components/inputs/smart-input/composer/ComposerPlusMenu.d.ts +3 -1
  12. package/dist/agents/components/inputs/smart-input/composer/ComposerPlusMenu.js +2 -2
  13. package/dist/agents/components/inputs/smart-input/composer/composer-types.d.ts +5 -0
  14. package/dist/agents/components/inputs/variable-input-variations/AgentVariableCards.js +1 -1
  15. package/dist/agents/components/live-run/LiveRunDisplay.d.ts +7 -1
  16. package/dist/agents/components/live-run/LiveRunDisplay.js +10 -3
  17. package/dist/agents/components/messages-display/TranscriptIntegrityCopyButton.js +4 -10
  18. package/dist/agents/components/shared/AgentOptionsMenu.js +2 -2
  19. package/dist/agents/constants/system-agent-registry.d.ts +0 -3
  20. package/dist/agents/constants/system-agent-registry.js +0 -3
  21. package/dist/agents/hooks/useFloatingAgentRun.d.ts +19 -0
  22. package/dist/agents/hooks/useFloatingAgentRun.js +32 -9
  23. package/dist/agents/prompt-preview/PromptPreviewContent.js +2 -6
  24. package/dist/agents/redux/execution-system/message-crud/edit-message.thunk.js +3 -6
  25. package/dist/agents/redux/execution-system/message-crud/fork-and-resubmit-from-message.thunk.js +1 -1
  26. package/dist/compute/targets.d.ts +2 -6
  27. package/dist/context/sources/scopes.d.ts +3 -3
  28. package/dist/host/db-types.d.ts +350 -168
  29. package/dist/host/window-openers.d.ts +23 -5
  30. package/dist/surfaces/manifests/chat.manifest.js +3 -1
  31. package/dist/ui/mandates-storage/mandateStorage.d.ts +15 -0
  32. package/dist/ui/mandates-storage/shortcutStorage.d.ts +3 -0
  33. package/dist/utils/rich-editor/in-place/caret-handoff.js +2 -1
  34. package/dist/voice-agent/components/VoiceDebugPanel.js +4 -8
  35. package/dist/voice-agent/relay/VoiceRelayBar.d.ts +7 -1
  36. package/dist/voice-agent/relay/VoiceRelayBar.js +90 -24
  37. package/dist/window-panels/windows/agents/LiveRunWindow.d.ts +3 -1
  38. package/dist/window-panels/windows/agents/LiveRunWindow.js +5 -2
  39. package/package.json +8 -8
@@ -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?: string;
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?: string;
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: AssociationEdgeRow[];
178
+ edges: AssociationTargetEdge[];
179
179
  }>>;
180
180
  listForSources(sourceType: string, sourceIds: string[], ...rest: any[]): Promise<ScopesRpcResult<{
181
- edges: AssociationEdgeRow[];
181
+ edges: AssociationSourceEdge[];
182
182
  }>>;
183
183
  add(input: any): Promise<ScopesRpcResult<any>>;
184
184
  remove(input: any): Promise<ScopesRpcResult<any>>;