@ai-matrx/chat 0.3.11 → 0.3.19
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 +83 -0
- package/dist/agent-copy/export.d.ts +10 -2
- package/dist/agent-copy/export.js +3 -2
- package/dist/agents/components/agent-widgets/chat-assistant/CompactAssistantInput.js +1 -1
- package/dist/agents/components/debug/SandboxFileViewer.js +1 -3
- package/dist/agents/components/inputs/AgentVariablesInline.js +1 -1
- package/dist/agents/components/inputs/smart-input/AgentTextarea.js +1 -1
- package/dist/agents/components/inputs/smart-input/InputActionButtons.js +1 -1
- package/dist/agents/components/inputs/smart-input/composer/ComposerAgentPeek.js +6 -6
- package/dist/agents/components/messages-display/TranscriptIntegrityCopyButton.js +4 -4
- package/dist/agents/components/messages-display/user/UserActionBar.js +3 -18
- package/dist/agents/components/run/AgentRunHeader.js +1 -2
- package/dist/agents/components/shared/AgentConversationColumn.js +1 -1
- package/dist/agents/components/shared/AgentHeader.js +1 -2
- package/dist/agents/components/shared/AgentHeaderMobile.js +1 -2
- package/dist/agents/components/working-document/DocumentLinkPicker.d.ts +1 -1
- package/dist/agents/components/working-document/WorkingDocumentPanel.js +1 -1
- package/dist/agents/components/working-document/documents-workspace/DocumentsListRail.js +2 -2
- package/dist/agents/components/working-document/documents-workspace/DocumentsWorkspace.js +2 -2
- package/dist/agents/hooks/useInstanceInputUndoRedo.d.ts +1 -1
- package/dist/agents/hooks/useInstanceInputUndoRedo.js +1 -1
- package/dist/agents/hooks/useWorkingDocument.js +7 -6
- package/dist/agents/model-registry/model-classes.d.ts +1 -43
- package/dist/agents/model-registry/model-classes.js +1 -40
- package/dist/agents/model-registry/parse.d.ts +1 -88
- package/dist/agents/model-registry/parse.js +1 -246
- package/dist/agents/prompt-preview/PromptPreviewContent.js +1 -3
- package/dist/agents/redux/agent-definition/selectors.d.ts +8 -8
- package/dist/agents/redux/execution-system/active-requests/active-requests.selectors.d.ts +14 -0
- package/dist/agents/redux/execution-system/active-requests/active-requests.selectors.js +30 -0
- package/dist/agents/redux/execution-system/client-capabilities/desktop-native.provider.js +10 -1
- package/dist/agents/redux/execution-system/instance-working-document/cx-working-document.service.d.ts +18 -16
- package/dist/agents/redux/execution-system/instance-working-document/cx-working-document.service.js +101 -52
- package/dist/agents/redux/execution-system/instance-working-document/instance-working-document.slice.d.ts +2 -2
- package/dist/agents/redux/execution-system/instance-working-document/instance-working-document.thunks.d.ts +1 -1
- package/dist/agents/redux/execution-system/instance-working-document/scratchpad.thunks.d.ts +1 -1
- package/dist/agents/redux/execution-system/message-crud/refetch-single-message.thunk.js +5 -0
- package/dist/agents/redux/execution-system/thunks/process-stream.js +2 -2
- package/dist/agents/redux/execution-system/utils/stream-block-accumulator.d.ts +14 -0
- package/dist/agents/redux/execution-system/utils/stream-block-accumulator.js +28 -0
- package/dist/agents/utils/platform-keys.d.ts +15 -0
- package/dist/agents/utils/platform-keys.js +69 -0
- package/dist/context/sources/scopes.d.ts +1 -1
- package/dist/cx-chat/components/user-input/ConversationInput.js +1 -1
- package/dist/cx-conversation/ConversationInput.js +1 -1
- package/dist/host/db-types.d.ts +23242 -23071
- package/dist/host/ui-slots.d.ts +50 -64
- package/dist/host/ui-slots.js +12 -52
- package/dist/public-chat/components/GuidedVariableInputs.js +1 -1
- package/dist/public-chat/components/PublicVariableInputs.js +1 -1
- package/dist/react.cjs +11 -23
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +11 -23
- package/dist/react.js.map +1 -1
- package/dist/surfaces/manifests/_conversation-document.manifest.js +1 -1
- package/dist/tool-call-visualization/registry/registry.js +13 -0
- package/dist/ui/composer/useTouchOnlyDevice.js +1 -1
- package/dist/ui/skills-types.d.ts +1 -275
- package/dist/ui/skills-types.js +1 -0
- package/dist/voice-agent/components/VoiceDebugPanel.js +1 -3
- package/package.json +60 -34
- package/dist/agents/components/run/run-sidebar/AgentRunsSidebar.d.ts +0 -15
- package/dist/agents/components/run/run-sidebar/AgentRunsSidebar.js +0 -201
- package/dist/agents/components/run-controls/AgentExecutionTestModal.d.ts +0 -36
- package/dist/agents/components/run-controls/AgentExecutionTestModal.js +0 -440
- package/dist/agents/components/run-controls/AgentLauncherSidebarTester.d.ts +0 -6
- package/dist/agents/components/run-controls/AgentLauncherSidebarTester.js +0 -127
- package/dist/agents/components/run-controls/AgentWidgetInvokerTester.d.ts +0 -6
- package/dist/agents/components/run-controls/AgentWidgetInvokerTester.js +0 -84
- package/dist/agents/components/run-controls/CreatorRunPanel.d.ts +0 -22
- package/dist/agents/components/run-controls/CreatorRunPanel.js +0 -108
- package/dist/agents/components/run-controls/CreatorRunTabContent.d.ts +0 -30
- package/dist/agents/components/run-controls/CreatorRunTabContent.js +0 -319
- package/dist/agents/components/run-controls/PayloadTab.d.ts +0 -5
- package/dist/agents/components/run-controls/PayloadTab.js +0 -388
- package/dist/agents/components/run-controls/TesterSettingsPanel.d.ts +0 -71
- package/dist/agents/components/run-controls/TesterSettingsPanel.js +0 -470
- package/dist/agents/components/shared/AgentOptionsMenu.d.ts +0 -8
- package/dist/agents/components/shared/AgentOptionsMenu.js +0 -776
- package/dist/agents/components/shared/AgentPeekDuplicateButton.d.ts +0 -8
- package/dist/agents/components/shared/AgentPeekDuplicateButton.js +0 -66
- package/dist/agents/components/shared/AgentSaveStatus.d.ts +0 -7
- package/dist/agents/components/shared/AgentSaveStatus.js +0 -128
- package/dist/agents/components/shared/AgentSaveTapButton.d.ts +0 -18
- package/dist/agents/components/shared/AgentSaveTapButton.js +0 -105
- package/dist/agents/components/shared/useAgentSaveAction.d.ts +0 -33
- package/dist/agents/components/shared/useAgentSaveAction.js +0 -179
- package/dist/agents/components/shell/AgentsListHeader.d.ts +0 -1
- package/dist/agents/components/shell/AgentsListHeader.js +0 -69
- package/dist/agents/components/undo-history/AgentEditHistory.d.ts +0 -9
- package/dist/agents/components/undo-history/AgentEditHistory.js +0 -244
- package/dist/agents/components/unused/AgentSharedHeader.d.ts +0 -3
- package/dist/agents/components/unused/AgentSharedHeader.js +0 -134
- package/dist/agents/components/widgets/AgentWidgetsPage.d.ts +0 -11
- package/dist/agents/components/widgets/AgentWidgetsPage.js +0 -571
- package/dist/agents/components/widgets/WidgetVariableInputs.d.ts +0 -8
- package/dist/agents/components/widgets/WidgetVariableInputs.js +0 -80
- package/dist/agents/components/widgets/build-widget-launch.d.ts +0 -70
- package/dist/agents/components/widgets/build-widget-launch.js +0 -90
- package/dist/agents/hooks/useAgentAutoSave.d.ts +0 -1
- package/dist/agents/hooks/useAgentAutoSave.js +0 -127
- package/dist/agents/hooks/useAgentBuilderWriteHandlers.d.ts +0 -9
- package/dist/agents/hooks/useAgentBuilderWriteHandlers.js +0 -102
- package/dist/agents/hooks/useAgentDuplicateFlow.d.ts +0 -25
- package/dist/agents/hooks/useAgentDuplicateFlow.js +0 -133
- package/dist/agents/hooks/useAgentUndoRedo.d.ts +0 -31
- package/dist/agents/hooks/useAgentUndoRedo.js +0 -134
- package/dist/agents/hooks/useAgentUsages.d.ts +0 -17
- package/dist/agents/hooks/useAgentUsages.js +0 -36
- package/dist/agents/hooks/useDriftAlerts.d.ts +0 -11
- package/dist/agents/hooks/useDriftAlerts.js +0 -36
- package/dist/agents/hooks/useDriftReport.d.ts +0 -20
- package/dist/agents/hooks/useDriftReport.js +0 -34
- package/dist/agents/lifecycle/useAgentLifecycleActions.d.ts +0 -17
- package/dist/agents/lifecycle/useAgentLifecycleActions.js +0 -63
- package/dist/agents/message-flags/useMessageFlags.d.ts +0 -8
- package/dist/agents/message-flags/useMessageFlags.js +0 -68
- package/dist/agents/services/agent-definition-snapshot.service.d.ts +0 -15
- package/dist/agents/services/agent-definition-snapshot.service.js +0 -20
- package/dist/agents/surface-catalog-profile.d.ts +0 -96
- package/dist/agents/surface-catalog-profile.js +0 -79
- package/dist/cx-chat/hooks/useAgentBootstrap.d.ts +0 -1
- package/dist/cx-chat/hooks/useAgentBootstrap.js +0 -110
- package/dist/host/builder-door.d.ts +0 -61
- package/dist/host/builder-door.js +0 -25
- package/dist/next/lazy/CreatorRunPanel.d.ts +0 -1
- package/dist/next/lazy/CreatorRunPanel.js +0 -11
- package/dist/ui/composer/composerSubmit.d.ts +0 -50
- package/dist/ui/composer/composerSubmit.js +0 -32
package/dist/host/ui-slots.d.ts
CHANGED
|
@@ -16,8 +16,6 @@ import type { EditableContextMenuProps, NonEditableContextMenuProps } from "../c
|
|
|
16
16
|
/** The host context menu's props (its registration is typed against them). */
|
|
17
17
|
export type { EditableContextMenuProps, NonEditableContextMenuProps };
|
|
18
18
|
import type { SkillRow } from "../ui/skills-types.js";
|
|
19
|
-
import type { AgentUsagesState, UsageScope } from "../ui/usages/usages.slice.js";
|
|
20
|
-
import type { AgentDriftReportAdminRow, AgentDriftReportRow, AgentUsageAggregate, AgentUsageRow, DriftAlertRow, DriftSeverity, ReportSortKey } from "../ui/usages/usages.types.js";
|
|
21
19
|
import type { AgentCatalog } from "@ai-matrx/agents/catalog";
|
|
22
20
|
import type { DecodedDirective } from "@ai-matrx/content-ir";
|
|
23
21
|
import type { AudioSessionControls, AudioSessionSource, PlaybackSessionHandle } from "../ui/audio-session-types.js";
|
|
@@ -99,18 +97,6 @@ interface ValueChangeProps<T> {
|
|
|
99
97
|
onChange?: (value: T) => void;
|
|
100
98
|
[extra: string]: any;
|
|
101
99
|
}
|
|
102
|
-
/** A selector the host's usages store answers; `state` is the host's root state. */
|
|
103
|
-
type UsageSelector<R> = (state: any) => R;
|
|
104
|
-
export interface RedFlagSummary {
|
|
105
|
-
bySeverity: Record<DriftSeverity, number>;
|
|
106
|
-
stalePins: number;
|
|
107
|
-
totalUsages: number;
|
|
108
|
-
updatableKeys: Array<{
|
|
109
|
-
usageType: string;
|
|
110
|
-
usageId: string;
|
|
111
|
-
}>;
|
|
112
|
-
hasRedFlags: boolean;
|
|
113
|
-
}
|
|
114
100
|
type AnyComponent = ComponentType<any>;
|
|
115
101
|
/**
|
|
116
102
|
* A component slot typed by the props the PACKAGE passes. Bivariant on purpose: the host
|
|
@@ -143,6 +129,8 @@ export interface ChatUiSlots {
|
|
|
143
129
|
RulebookNudge: AnyComponent;
|
|
144
130
|
NegativeVerdictFollowUp: AnyComponent;
|
|
145
131
|
SpeakerButton: AnyComponent;
|
|
132
|
+
/** The split Copy (one click = the person's flavor; the chevron offers markdown or plain text) over one markdown string: `{ text, label?, size? }`. */
|
|
133
|
+
CopySplit: AnyComponent;
|
|
146
134
|
GmailReviewCard: AnyComponent;
|
|
147
135
|
ShareButton: AnyComponent;
|
|
148
136
|
ShareModal: AnyComponent;
|
|
@@ -159,7 +147,6 @@ export interface ChatUiSlots {
|
|
|
159
147
|
NoteTitleActions: AnyComponent;
|
|
160
148
|
TaskBody: AnyComponent;
|
|
161
149
|
RichDocument: AnyComponent;
|
|
162
|
-
SystemInstructionEditor: AnyComponent;
|
|
163
150
|
SystemInstructionModal: AnyComponent;
|
|
164
151
|
confirm: AnyFn;
|
|
165
152
|
copyRichContent: AnyFn;
|
|
@@ -384,7 +371,6 @@ export interface ChatUiSlots {
|
|
|
384
371
|
peekMandateCatalogueEntry: AnyFn;
|
|
385
372
|
invalidateMandateCatalogueCache: AnyFn;
|
|
386
373
|
useLoginHref: AnyFn;
|
|
387
|
-
useAgentChangeReach: AnyFn;
|
|
388
374
|
useAccess: AnyFn;
|
|
389
375
|
selectShouldPromptForOrganization: AnyFn;
|
|
390
376
|
resolveEntityToken: AnyFn;
|
|
@@ -407,31 +393,34 @@ export interface ChatUiSlots {
|
|
|
407
393
|
resolvePreferredChatModel: AnyFn;
|
|
408
394
|
publishedToWebPatch: AnyFn;
|
|
409
395
|
isUuidValue: AnyFn;
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
396
|
+
/**
|
|
397
|
+
* Agent BUILDER contributions (B1, AGENT-CORE-PLAN): the builder owns these controls and
|
|
398
|
+
* draws them into chat's agent headers, the agent peek and the run column. A bare host
|
|
399
|
+
* registers none and each one is ABSENT — never a button that does nothing.
|
|
400
|
+
*/
|
|
401
|
+
AgentOptionsMenu: SlotComponent<{
|
|
402
|
+
agentId: string;
|
|
403
|
+
asTapTarget?: boolean;
|
|
404
|
+
basePath?: string;
|
|
405
|
+
}>;
|
|
406
|
+
AgentSaveStatus: SlotComponent<{
|
|
407
|
+
agentId: string;
|
|
408
|
+
editModeOverride?: boolean;
|
|
409
|
+
versionClassName?: string;
|
|
410
|
+
}>;
|
|
411
|
+
AgentSaveTapButton: SlotComponent<{
|
|
412
|
+
agentId: string;
|
|
413
|
+
}>;
|
|
414
|
+
AgentPeekDuplicateButton: SlotComponent<{
|
|
415
|
+
agentId: string;
|
|
416
|
+
onStart?: () => void;
|
|
428
417
|
}>;
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
418
|
+
CreatorRunPanel: SlotComponent<{
|
|
419
|
+
conversationId: string;
|
|
420
|
+
displayConversationId?: string;
|
|
421
|
+
surfaceKey: string;
|
|
422
|
+
tabs?: string[];
|
|
433
423
|
}>;
|
|
434
|
-
AgentSettingsModal: AnyComponent;
|
|
435
424
|
AgentSettingsCore: AnyComponent;
|
|
436
425
|
SettingControlInput: AnyComponent;
|
|
437
426
|
InputCapabilitiesEditor: AnyComponent;
|
|
@@ -491,6 +480,7 @@ export declare const MessageFilesStrip: AnyComponent;
|
|
|
491
480
|
export declare const RulebookNudge: AnyComponent;
|
|
492
481
|
export declare const NegativeVerdictFollowUp: AnyComponent;
|
|
493
482
|
export declare const SpeakerButton: AnyComponent;
|
|
483
|
+
export declare const CopySplit: AnyComponent;
|
|
494
484
|
export declare const GmailReviewCard: AnyComponent;
|
|
495
485
|
export declare const ShareButton: AnyComponent;
|
|
496
486
|
export declare const ShareModal: AnyComponent;
|
|
@@ -543,7 +533,6 @@ export declare const RichDocument: AnyComponent;
|
|
|
543
533
|
/** The canvas identity of one chat's cloud browser (the host's own scheme; a bare host just keys by chat). */
|
|
544
534
|
export declare const cloudBrowserCanvasSourceId: AnyFn;
|
|
545
535
|
/** Builder doors: a host without the agent builder shows one labelled line where the editor would be. */
|
|
546
|
-
export declare const SystemInstructionEditor: AnyComponent;
|
|
547
536
|
export declare const SystemInstructionModal: AnyComponent;
|
|
548
537
|
/** A bare host draws the package's own floating window; the app registers its window manager's. */
|
|
549
538
|
export declare const WindowPanel: AnyComponent;
|
|
@@ -736,7 +725,6 @@ export declare const fromGlobalOwnershipRecord: AnyFn;
|
|
|
736
725
|
export declare const peekMandateCatalogueEntry: AnyFn;
|
|
737
726
|
export declare const invalidateMandateCatalogueCache: AnyFn;
|
|
738
727
|
export declare const useLoginHref: AnyFn;
|
|
739
|
-
export declare const useAgentChangeReach: AnyFn;
|
|
740
728
|
export declare const useAccess: AnyFn;
|
|
741
729
|
export declare const selectShouldPromptForOrganization: AnyFn;
|
|
742
730
|
export declare const resolveEntityToken: AnyFn;
|
|
@@ -759,31 +747,29 @@ export declare const getAgentCatalog: () => AgentCatalog;
|
|
|
759
747
|
export declare const resolvePreferredChatModel: AnyFn;
|
|
760
748
|
export declare const publishedToWebPatch: AnyFn;
|
|
761
749
|
export declare const isUuidValue: AnyFn;
|
|
762
|
-
export declare const
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
export declare const
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
export declare const makeSelectUsageAggregates: (scope: UsageScope, agentId: string) => UsageSelector<AgentUsageAggregate[]>;
|
|
775
|
-
export declare const makeSelectRedFlagSummary: (scope: UsageScope, agentId: string) => UsageSelector<RedFlagSummary>;
|
|
776
|
-
export declare const makeSelectReport: (scope: UsageScope) => UsageSelector<AgentUsagesState["report"][UsageScope]>;
|
|
777
|
-
export declare const makeSelectReportSorted: (scope: UsageScope, sortKey: ReportSortKey, desc: boolean) => UsageSelector<{
|
|
778
|
-
rows: AgentDriftReportRow[];
|
|
779
|
-
adminRows: AgentDriftReportAdminRow[];
|
|
750
|
+
export declare const AgentOptionsMenu: SlotComponent<{
|
|
751
|
+
agentId: string;
|
|
752
|
+
asTapTarget?: boolean;
|
|
753
|
+
basePath?: string;
|
|
754
|
+
}>;
|
|
755
|
+
export declare const AgentSaveStatus: SlotComponent<{
|
|
756
|
+
agentId: string;
|
|
757
|
+
editModeOverride?: boolean;
|
|
758
|
+
versionClassName?: string;
|
|
759
|
+
}>;
|
|
760
|
+
export declare const AgentSaveTapButton: SlotComponent<{
|
|
761
|
+
agentId: string;
|
|
780
762
|
}>;
|
|
781
|
-
export declare const
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
763
|
+
export declare const AgentPeekDuplicateButton: SlotComponent<{
|
|
764
|
+
agentId: string;
|
|
765
|
+
onStart?: () => void;
|
|
766
|
+
}>;
|
|
767
|
+
export declare const CreatorRunPanel: SlotComponent<{
|
|
768
|
+
conversationId: string;
|
|
769
|
+
displayConversationId?: string;
|
|
770
|
+
surfaceKey: string;
|
|
771
|
+
tabs?: string[];
|
|
785
772
|
}>;
|
|
786
|
-
export declare const AgentSettingsModal: AnyComponent;
|
|
787
773
|
export declare const AgentSettingsCore: AnyComponent;
|
|
788
774
|
export declare const SettingControlInput: AnyComponent;
|
|
789
775
|
export declare const InputCapabilitiesEditor: AnyComponent;
|
package/dist/host/ui-slots.js
CHANGED
|
@@ -54,10 +54,6 @@ function slotHook(name, fallback) {
|
|
|
54
54
|
}
|
|
55
55
|
const NONE = [];
|
|
56
56
|
const NO_MAP = /* @__PURE__ */ new Map();
|
|
57
|
-
const EMPTY_REPORT = { status: "idle", error: null, fetchedAt: null, rows: NONE, adminRows: NONE };
|
|
58
|
-
const EMPTY_SORTED = { rows: NONE, adminRows: NONE };
|
|
59
|
-
const EMPTY_TOTALS = { totals: { breaking: 0, silent_breaking: 0, warning: 0, info: 0 }, agents: 0, order: NONE };
|
|
60
|
-
const EMPTY_RED_FLAGS = { bySeverity: { breaking: 0, silent_breaking: 0, warning: 0, info: 0 }, stalePins: 0, totalUsages: 0, updatableKeys: NONE, hasRedFlags: false };
|
|
61
57
|
const NO_ATTACH_HOST = (name) => () => Promise.reject(new Error(`The host registered no "${name}" for the chat package (registerChatUi).`));
|
|
62
58
|
const noopThunk = () => () => Promise.resolve(void 0);
|
|
63
59
|
const failingThunk = (name) => () => () => {
|
|
@@ -99,11 +95,6 @@ const STAND_INS = {
|
|
|
99
95
|
fetchNotesList: noopThunk,
|
|
100
96
|
loadProjectsWithTasks: noopThunk,
|
|
101
97
|
loadCodeEditHistoryThunk: noopThunk,
|
|
102
|
-
fetchDriftAlerts: noopThunk,
|
|
103
|
-
fetchAgentUsages: noopThunk,
|
|
104
|
-
fetchAgentUsageReport: noopThunk,
|
|
105
|
-
markDriftAlertViewed: noopThunk,
|
|
106
|
-
dismissDriftAlert: noopThunk,
|
|
107
98
|
noteBrowserActivity: noopThunk,
|
|
108
99
|
adoptCloudBrowserRunFromStream: noopThunk,
|
|
109
100
|
receivedFsChange: () => void 0,
|
|
@@ -120,15 +111,6 @@ const STAND_INS = {
|
|
|
120
111
|
selectContentBlocksByScopeRef: () => NONE,
|
|
121
112
|
selectActiveContentBlocks: () => NONE,
|
|
122
113
|
selectShouldPromptForOrganization: () => false,
|
|
123
|
-
selectActiveBannerAlerts: () => NONE,
|
|
124
|
-
selectDriftAlertsStatus: () => "idle",
|
|
125
|
-
makeSelectUsageCache: () => () => null,
|
|
126
|
-
makeSelectUsageGroups: () => () => NONE,
|
|
127
|
-
makeSelectUsageAggregates: () => () => NONE,
|
|
128
|
-
makeSelectRedFlagSummary: () => () => EMPTY_RED_FLAGS,
|
|
129
|
-
makeSelectReport: () => () => EMPTY_REPORT,
|
|
130
|
-
makeSelectReportSorted: () => () => EMPTY_SORTED,
|
|
131
|
-
makeSelectReportTotals: () => () => EMPTY_TOTALS,
|
|
132
114
|
humanLines: (lines) => Array.isArray(lines) ? lines.filter(Boolean).join("\n") : "",
|
|
133
115
|
generateLabelFromContent: (content, max) => String(content ?? "").trim().slice(0, max ?? 60),
|
|
134
116
|
precedingQuestion: () => null,
|
|
@@ -222,6 +204,7 @@ const MessageFilesStrip = slotComponent("MessageFilesStrip", unregisteredWidget(
|
|
|
222
204
|
const RulebookNudge = slotComponent("RulebookNudge", unregisteredWidget("RulebookNudge"));
|
|
223
205
|
const NegativeVerdictFollowUp = slotComponent("NegativeVerdictFollowUp", unregisteredWidget("NegativeVerdictFollowUp"));
|
|
224
206
|
const SpeakerButton = slotComponent("SpeakerButton", unregisteredWidget("SpeakerButton"));
|
|
207
|
+
const CopySplit = slotComponent("CopySplit", unregisteredWidget("CopySplit"));
|
|
225
208
|
const GmailReviewCard = slotComponent("GmailReviewCard", unregisteredWidget("GmailReviewCard"));
|
|
226
209
|
const ShareButton = slotComponent("ShareButton", unregisteredWidget("ShareButton"));
|
|
227
210
|
const ShareModal = slotComponent("ShareModal", unregisteredWidget("ShareModal"));
|
|
@@ -269,7 +252,6 @@ const RichDocument = slotComponent(
|
|
|
269
252
|
({ content, className }) => createElement("div", { className: `whitespace-pre-wrap text-sm ${className ?? ""}`, "data-chat-slot-fallback": "RichDocument" }, typeof content === "string" ? content : "")
|
|
270
253
|
);
|
|
271
254
|
const cloudBrowserCanvasSourceId = slotFn("cloudBrowserCanvasSourceId", (conversationId) => `cloud-browser:${conversationId}`);
|
|
272
|
-
const SystemInstructionEditor = slotComponent("SystemInstructionEditor", unregisteredWidget("SystemInstructionEditor"));
|
|
273
255
|
const SystemInstructionModal = slotComponent("SystemInstructionModal", unregisteredWidget("SystemInstructionModal"));
|
|
274
256
|
const WindowPanel = slotComponent("WindowPanel", DefaultWindowPanel);
|
|
275
257
|
const FullScreenOverlay = slotComponent("FullScreenOverlay", DefaultFullScreenOverlay);
|
|
@@ -448,7 +430,6 @@ const fromGlobalOwnershipRecord = slotFn("fromGlobalOwnershipRecord");
|
|
|
448
430
|
const peekMandateCatalogueEntry = slotFn("peekMandateCatalogueEntry");
|
|
449
431
|
const invalidateMandateCatalogueCache = slotFn("invalidateMandateCatalogueCache");
|
|
450
432
|
const useLoginHref = slotFn("useLoginHref");
|
|
451
|
-
const useAgentChangeReach = slotFn("useAgentChangeReach");
|
|
452
433
|
const useAccess = slotFn("useAccess");
|
|
453
434
|
const selectShouldPromptForOrganization = slotFn("selectShouldPromptForOrganization");
|
|
454
435
|
const resolveEntityToken = slotFn("resolveEntityToken");
|
|
@@ -464,21 +445,11 @@ const getAgentCatalog = slotFn("getAgentCatalog");
|
|
|
464
445
|
const resolvePreferredChatModel = slotFn("resolvePreferredChatModel", async () => null);
|
|
465
446
|
const publishedToWebPatch = slotFn("publishedToWebPatch");
|
|
466
447
|
const isUuidValue = slotFn("isUuidValue");
|
|
467
|
-
const
|
|
468
|
-
const
|
|
469
|
-
const
|
|
470
|
-
const
|
|
471
|
-
const
|
|
472
|
-
const selectActiveBannerAlerts = slotFn("selectActiveBannerAlerts");
|
|
473
|
-
const selectDriftAlertsStatus = slotFn("selectDriftAlertsStatus");
|
|
474
|
-
const makeSelectUsageCache = slotFn("makeSelectUsageCache");
|
|
475
|
-
const makeSelectUsageGroups = slotFn("makeSelectUsageGroups");
|
|
476
|
-
const makeSelectUsageAggregates = slotFn("makeSelectUsageAggregates");
|
|
477
|
-
const makeSelectRedFlagSummary = slotFn("makeSelectRedFlagSummary");
|
|
478
|
-
const makeSelectReport = slotFn("makeSelectReport");
|
|
479
|
-
const makeSelectReportSorted = slotFn("makeSelectReportSorted");
|
|
480
|
-
const makeSelectReportTotals = slotFn("makeSelectReportTotals");
|
|
481
|
-
const AgentSettingsModal = slotComponent("AgentSettingsModal", unregisteredWidget("AgentSettingsModal"));
|
|
448
|
+
const AgentOptionsMenu = slotComponent("AgentOptionsMenu");
|
|
449
|
+
const AgentSaveStatus = slotComponent("AgentSaveStatus");
|
|
450
|
+
const AgentSaveTapButton = slotComponent("AgentSaveTapButton");
|
|
451
|
+
const AgentPeekDuplicateButton = slotComponent("AgentPeekDuplicateButton");
|
|
452
|
+
const CreatorRunPanel = slotComponent("CreatorRunPanel");
|
|
482
453
|
const AgentSettingsCore = slotComponent("AgentSettingsCore", unregisteredWidget("AgentSettingsCore"));
|
|
483
454
|
const SettingControlInput = slotComponent("SettingControlInput", unregisteredWidget("SettingControlInput"));
|
|
484
455
|
const InputCapabilitiesEditor = slotComponent("InputCapabilitiesEditor", unregisteredWidget("InputCapabilitiesEditor"));
|
|
@@ -507,8 +478,11 @@ export {
|
|
|
507
478
|
AccessGate,
|
|
508
479
|
AdvancedMenu,
|
|
509
480
|
AgentEditAccessBadge,
|
|
481
|
+
AgentOptionsMenu,
|
|
482
|
+
AgentPeekDuplicateButton,
|
|
483
|
+
AgentSaveStatus,
|
|
484
|
+
AgentSaveTapButton,
|
|
510
485
|
AgentSettingsCore,
|
|
511
|
-
AgentSettingsModal,
|
|
512
486
|
AiModelRef,
|
|
513
487
|
AiToolRef,
|
|
514
488
|
AnswerTextPreview,
|
|
@@ -529,7 +503,9 @@ export {
|
|
|
529
503
|
ConnectorPromptHost,
|
|
530
504
|
ConversationHoverPreview,
|
|
531
505
|
CopyButtons,
|
|
506
|
+
CopySplit,
|
|
532
507
|
Cost,
|
|
508
|
+
CreatorRunPanel,
|
|
533
509
|
CustomDataBindingPreview,
|
|
534
510
|
CustomDataBindingSummary,
|
|
535
511
|
DataRefPreviewContent,
|
|
@@ -605,7 +581,6 @@ export {
|
|
|
605
581
|
StaleDataNotice,
|
|
606
582
|
StructuredValueView,
|
|
607
583
|
SurfaceBoundAgentsList,
|
|
608
|
-
SystemInstructionEditor,
|
|
609
584
|
SystemInstructionModal,
|
|
610
585
|
TableChooser,
|
|
611
586
|
TextInputDialog,
|
|
@@ -640,18 +615,14 @@ export {
|
|
|
640
615
|
currentCostUnit,
|
|
641
616
|
currentPointsRate,
|
|
642
617
|
detachConversationResource,
|
|
643
|
-
dismissDriftAlert,
|
|
644
618
|
dispatchWarRoomMasterTool,
|
|
645
619
|
dispatchWarRoomTool,
|
|
646
620
|
disposeFullScreenEditorCallbackGroup,
|
|
647
621
|
emitFullScreenEditorSave,
|
|
648
622
|
ensureOrgAvailability,
|
|
649
623
|
entityTitleFallback,
|
|
650
|
-
fetchAgentUsageReport,
|
|
651
|
-
fetchAgentUsages,
|
|
652
624
|
fetchArtifactsForMessageThunk,
|
|
653
625
|
fetchConversationAttachments,
|
|
654
|
-
fetchDriftAlerts,
|
|
655
626
|
fetchEntityTitles,
|
|
656
627
|
fetchNotesList,
|
|
657
628
|
flattenResourcePickerItems,
|
|
@@ -671,14 +642,6 @@ export {
|
|
|
671
642
|
loadCodeEditHistoryThunk,
|
|
672
643
|
loadProjectsWithTasks,
|
|
673
644
|
loadedSkills,
|
|
674
|
-
makeSelectRedFlagSummary,
|
|
675
|
-
makeSelectReport,
|
|
676
|
-
makeSelectReportSorted,
|
|
677
|
-
makeSelectReportTotals,
|
|
678
|
-
makeSelectUsageAggregates,
|
|
679
|
-
makeSelectUsageCache,
|
|
680
|
-
makeSelectUsageGroups,
|
|
681
|
-
markDriftAlertViewed,
|
|
682
645
|
materializeMessageArtifacts,
|
|
683
646
|
noteBrowserActivity,
|
|
684
647
|
notesCreate,
|
|
@@ -709,7 +672,6 @@ export {
|
|
|
709
672
|
resolveSystemOrgId,
|
|
710
673
|
saveNoteField,
|
|
711
674
|
saveOutputFeedback,
|
|
712
|
-
selectActiveBannerAlerts,
|
|
713
675
|
selectActiveContentBlocks,
|
|
714
676
|
selectActiveSandboxId,
|
|
715
677
|
selectActiveSandboxProxyUrl,
|
|
@@ -717,7 +679,6 @@ export {
|
|
|
717
679
|
selectCloudBrowserRunLive,
|
|
718
680
|
selectContentBlocksByScope,
|
|
719
681
|
selectContentBlocksByScopeRef,
|
|
720
|
-
selectDriftAlertsStatus,
|
|
721
682
|
selectEditorMode,
|
|
722
683
|
selectEditorState,
|
|
723
684
|
selectHtmlPageArtifactForMessage,
|
|
@@ -730,7 +691,6 @@ export {
|
|
|
730
691
|
traceWarRoomRenderPath,
|
|
731
692
|
updateArtifactThunk,
|
|
732
693
|
useAccess,
|
|
733
|
-
useAgentChangeReach,
|
|
734
694
|
useAttachResourcePicker,
|
|
735
695
|
useAuthGuardedAction,
|
|
736
696
|
useAutoLabel,
|
|
@@ -8,7 +8,7 @@ import { Button } from "@ai-matrx/design-system/controls";
|
|
|
8
8
|
import { Checkbox } from "../../ui/checkbox.js";
|
|
9
9
|
import { Minus, Plus } from "lucide-react";
|
|
10
10
|
import { variableRunLabel } from "@ai-matrx/agents";
|
|
11
|
-
import { enterSendsHere } from "
|
|
11
|
+
import { enterSendsHere } from "@ai-matrx/kit/composer-keys";
|
|
12
12
|
function InlineCustomInput({
|
|
13
13
|
value,
|
|
14
14
|
onChange,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "@ai-matrx/design-system";
|
|
11
11
|
import { variableRunLabel } from "@ai-matrx/agents";
|
|
12
12
|
import { VariableInputComponent } from "../../agents/components/inputs/input-components/VariableInputComponent.js";
|
|
13
|
-
import { enterSendsHere } from "
|
|
13
|
+
import { enterSendsHere } from "@ai-matrx/kit/composer-keys";
|
|
14
14
|
import { Button } from "@ai-matrx/design-system/controls";
|
|
15
15
|
function PublicVariableInputs({
|
|
16
16
|
variableDefaults,
|
package/dist/react.cjs
CHANGED
|
@@ -2071,6 +2071,7 @@ function useStickToBottom(enabled) {
|
|
|
2071
2071
|
var import_react9 = require("react");
|
|
2072
2072
|
|
|
2073
2073
|
// src/compat/react/plugins/message-actions.tsx
|
|
2074
|
+
var import_clipboard = require("@ai-matrx/kit/clipboard");
|
|
2074
2075
|
var import_react6 = require("react");
|
|
2075
2076
|
|
|
2076
2077
|
// src/compat/react/plain-text.ts
|
|
@@ -2116,30 +2117,17 @@ function ChatMessageActions(props) {
|
|
|
2116
2117
|
);
|
|
2117
2118
|
const copy = (0, import_react6.useCallback)(
|
|
2118
2119
|
(value, which) => {
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
level: "warning",
|
|
2124
|
-
message: CLIPBOARD_REFUSED,
|
|
2125
|
-
remedy: CLIPBOARD_REFUSED_REMEDY
|
|
2126
|
-
});
|
|
2127
|
-
return;
|
|
2128
|
-
}
|
|
2129
|
-
void write(value).then(
|
|
2130
|
-
() => {
|
|
2131
|
-
setCopied(which);
|
|
2132
|
-
if (timer.current !== null) clearTimeout(timer.current);
|
|
2133
|
-
timer.current = setTimeout(() => setCopied(null), COPIED_MS);
|
|
2134
|
-
},
|
|
2135
|
-
() => {
|
|
2136
|
-
notifier.notify({
|
|
2137
|
-
level: "warning",
|
|
2138
|
-
message: CLIPBOARD_REFUSED,
|
|
2139
|
-
remedy: CLIPBOARD_REFUSED_REMEDY
|
|
2140
|
-
});
|
|
2120
|
+
void (0, import_clipboard.copyText)(value, {
|
|
2121
|
+
failureMessage: CLIPBOARD_REFUSED,
|
|
2122
|
+
notify: (message2, kind) => {
|
|
2123
|
+
if (kind === "error") notifier.notify({ level: "warning", message: message2, remedy: CLIPBOARD_REFUSED_REMEDY });
|
|
2141
2124
|
}
|
|
2142
|
-
)
|
|
2125
|
+
}).then((copiedOk) => {
|
|
2126
|
+
if (!copiedOk) return;
|
|
2127
|
+
setCopied(which);
|
|
2128
|
+
if (timer.current !== null) clearTimeout(timer.current);
|
|
2129
|
+
timer.current = setTimeout(() => setCopied(null), COPIED_MS);
|
|
2130
|
+
});
|
|
2143
2131
|
},
|
|
2144
2132
|
[notifier]
|
|
2145
2133
|
);
|