@ai-matrx/chat 0.3.15 → 0.3.20
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 +53 -0
- package/dist/agents/components/agent-widgets/chat-assistant/CompactAssistantInput.js +1 -1
- 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/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 +11 -7
- 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/redux/agent-definition/selectors.d.ts +8 -8
- 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/utils/platform-keys.d.ts +15 -0
- package/dist/agents/utils/platform-keys.js +69 -0
- 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 +1123 -1691
- package/dist/host/ui-slots.d.ts +47 -64
- package/dist/host/ui-slots.js +10 -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/tool-call-visualization/result-fields/KeyValueGrid.d.ts +6 -0
- package/dist/tool-call-visualization/result-fields/KeyValueGrid.js +10 -2
- 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/package.json +59 -33
- 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
|
|
@@ -161,7 +147,6 @@ export interface ChatUiSlots {
|
|
|
161
147
|
NoteTitleActions: AnyComponent;
|
|
162
148
|
TaskBody: AnyComponent;
|
|
163
149
|
RichDocument: AnyComponent;
|
|
164
|
-
SystemInstructionEditor: AnyComponent;
|
|
165
150
|
SystemInstructionModal: AnyComponent;
|
|
166
151
|
confirm: AnyFn;
|
|
167
152
|
copyRichContent: AnyFn;
|
|
@@ -386,7 +371,6 @@ export interface ChatUiSlots {
|
|
|
386
371
|
peekMandateCatalogueEntry: AnyFn;
|
|
387
372
|
invalidateMandateCatalogueCache: AnyFn;
|
|
388
373
|
useLoginHref: AnyFn;
|
|
389
|
-
useAgentChangeReach: AnyFn;
|
|
390
374
|
useAccess: AnyFn;
|
|
391
375
|
selectShouldPromptForOrganization: AnyFn;
|
|
392
376
|
resolveEntityToken: AnyFn;
|
|
@@ -409,31 +393,34 @@ export interface ChatUiSlots {
|
|
|
409
393
|
resolvePreferredChatModel: AnyFn;
|
|
410
394
|
publishedToWebPatch: AnyFn;
|
|
411
395
|
isUuidValue: AnyFn;
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
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;
|
|
430
417
|
}>;
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
418
|
+
CreatorRunPanel: SlotComponent<{
|
|
419
|
+
conversationId: string;
|
|
420
|
+
displayConversationId?: string;
|
|
421
|
+
surfaceKey: string;
|
|
422
|
+
tabs?: string[];
|
|
435
423
|
}>;
|
|
436
|
-
AgentSettingsModal: AnyComponent;
|
|
437
424
|
AgentSettingsCore: AnyComponent;
|
|
438
425
|
SettingControlInput: AnyComponent;
|
|
439
426
|
InputCapabilitiesEditor: AnyComponent;
|
|
@@ -546,7 +533,6 @@ export declare const RichDocument: AnyComponent;
|
|
|
546
533
|
/** The canvas identity of one chat's cloud browser (the host's own scheme; a bare host just keys by chat). */
|
|
547
534
|
export declare const cloudBrowserCanvasSourceId: AnyFn;
|
|
548
535
|
/** Builder doors: a host without the agent builder shows one labelled line where the editor would be. */
|
|
549
|
-
export declare const SystemInstructionEditor: AnyComponent;
|
|
550
536
|
export declare const SystemInstructionModal: AnyComponent;
|
|
551
537
|
/** A bare host draws the package's own floating window; the app registers its window manager's. */
|
|
552
538
|
export declare const WindowPanel: AnyComponent;
|
|
@@ -739,7 +725,6 @@ export declare const fromGlobalOwnershipRecord: AnyFn;
|
|
|
739
725
|
export declare const peekMandateCatalogueEntry: AnyFn;
|
|
740
726
|
export declare const invalidateMandateCatalogueCache: AnyFn;
|
|
741
727
|
export declare const useLoginHref: AnyFn;
|
|
742
|
-
export declare const useAgentChangeReach: AnyFn;
|
|
743
728
|
export declare const useAccess: AnyFn;
|
|
744
729
|
export declare const selectShouldPromptForOrganization: AnyFn;
|
|
745
730
|
export declare const resolveEntityToken: AnyFn;
|
|
@@ -762,31 +747,29 @@ export declare const getAgentCatalog: () => AgentCatalog;
|
|
|
762
747
|
export declare const resolvePreferredChatModel: AnyFn;
|
|
763
748
|
export declare const publishedToWebPatch: AnyFn;
|
|
764
749
|
export declare const isUuidValue: AnyFn;
|
|
765
|
-
export declare const
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
export declare const
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
export declare const makeSelectUsageAggregates: (scope: UsageScope, agentId: string) => UsageSelector<AgentUsageAggregate[]>;
|
|
778
|
-
export declare const makeSelectRedFlagSummary: (scope: UsageScope, agentId: string) => UsageSelector<RedFlagSummary>;
|
|
779
|
-
export declare const makeSelectReport: (scope: UsageScope) => UsageSelector<AgentUsagesState["report"][UsageScope]>;
|
|
780
|
-
export declare const makeSelectReportSorted: (scope: UsageScope, sortKey: ReportSortKey, desc: boolean) => UsageSelector<{
|
|
781
|
-
rows: AgentDriftReportRow[];
|
|
782
|
-
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;
|
|
783
762
|
}>;
|
|
784
|
-
export declare const
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
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[];
|
|
788
772
|
}>;
|
|
789
|
-
export declare const AgentSettingsModal: AnyComponent;
|
|
790
773
|
export declare const AgentSettingsCore: AnyComponent;
|
|
791
774
|
export declare const SettingControlInput: AnyComponent;
|
|
792
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,
|
|
@@ -270,7 +252,6 @@ const RichDocument = slotComponent(
|
|
|
270
252
|
({ content, className }) => createElement("div", { className: `whitespace-pre-wrap text-sm ${className ?? ""}`, "data-chat-slot-fallback": "RichDocument" }, typeof content === "string" ? content : "")
|
|
271
253
|
);
|
|
272
254
|
const cloudBrowserCanvasSourceId = slotFn("cloudBrowserCanvasSourceId", (conversationId) => `cloud-browser:${conversationId}`);
|
|
273
|
-
const SystemInstructionEditor = slotComponent("SystemInstructionEditor", unregisteredWidget("SystemInstructionEditor"));
|
|
274
255
|
const SystemInstructionModal = slotComponent("SystemInstructionModal", unregisteredWidget("SystemInstructionModal"));
|
|
275
256
|
const WindowPanel = slotComponent("WindowPanel", DefaultWindowPanel);
|
|
276
257
|
const FullScreenOverlay = slotComponent("FullScreenOverlay", DefaultFullScreenOverlay);
|
|
@@ -449,7 +430,6 @@ const fromGlobalOwnershipRecord = slotFn("fromGlobalOwnershipRecord");
|
|
|
449
430
|
const peekMandateCatalogueEntry = slotFn("peekMandateCatalogueEntry");
|
|
450
431
|
const invalidateMandateCatalogueCache = slotFn("invalidateMandateCatalogueCache");
|
|
451
432
|
const useLoginHref = slotFn("useLoginHref");
|
|
452
|
-
const useAgentChangeReach = slotFn("useAgentChangeReach");
|
|
453
433
|
const useAccess = slotFn("useAccess");
|
|
454
434
|
const selectShouldPromptForOrganization = slotFn("selectShouldPromptForOrganization");
|
|
455
435
|
const resolveEntityToken = slotFn("resolveEntityToken");
|
|
@@ -465,21 +445,11 @@ const getAgentCatalog = slotFn("getAgentCatalog");
|
|
|
465
445
|
const resolvePreferredChatModel = slotFn("resolvePreferredChatModel", async () => null);
|
|
466
446
|
const publishedToWebPatch = slotFn("publishedToWebPatch");
|
|
467
447
|
const isUuidValue = slotFn("isUuidValue");
|
|
468
|
-
const
|
|
469
|
-
const
|
|
470
|
-
const
|
|
471
|
-
const
|
|
472
|
-
const
|
|
473
|
-
const selectActiveBannerAlerts = slotFn("selectActiveBannerAlerts");
|
|
474
|
-
const selectDriftAlertsStatus = slotFn("selectDriftAlertsStatus");
|
|
475
|
-
const makeSelectUsageCache = slotFn("makeSelectUsageCache");
|
|
476
|
-
const makeSelectUsageGroups = slotFn("makeSelectUsageGroups");
|
|
477
|
-
const makeSelectUsageAggregates = slotFn("makeSelectUsageAggregates");
|
|
478
|
-
const makeSelectRedFlagSummary = slotFn("makeSelectRedFlagSummary");
|
|
479
|
-
const makeSelectReport = slotFn("makeSelectReport");
|
|
480
|
-
const makeSelectReportSorted = slotFn("makeSelectReportSorted");
|
|
481
|
-
const makeSelectReportTotals = slotFn("makeSelectReportTotals");
|
|
482
|
-
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");
|
|
483
453
|
const AgentSettingsCore = slotComponent("AgentSettingsCore", unregisteredWidget("AgentSettingsCore"));
|
|
484
454
|
const SettingControlInput = slotComponent("SettingControlInput", unregisteredWidget("SettingControlInput"));
|
|
485
455
|
const InputCapabilitiesEditor = slotComponent("InputCapabilitiesEditor", unregisteredWidget("InputCapabilitiesEditor"));
|
|
@@ -508,8 +478,11 @@ export {
|
|
|
508
478
|
AccessGate,
|
|
509
479
|
AdvancedMenu,
|
|
510
480
|
AgentEditAccessBadge,
|
|
481
|
+
AgentOptionsMenu,
|
|
482
|
+
AgentPeekDuplicateButton,
|
|
483
|
+
AgentSaveStatus,
|
|
484
|
+
AgentSaveTapButton,
|
|
511
485
|
AgentSettingsCore,
|
|
512
|
-
AgentSettingsModal,
|
|
513
486
|
AiModelRef,
|
|
514
487
|
AiToolRef,
|
|
515
488
|
AnswerTextPreview,
|
|
@@ -532,6 +505,7 @@ export {
|
|
|
532
505
|
CopyButtons,
|
|
533
506
|
CopySplit,
|
|
534
507
|
Cost,
|
|
508
|
+
CreatorRunPanel,
|
|
535
509
|
CustomDataBindingPreview,
|
|
536
510
|
CustomDataBindingSummary,
|
|
537
511
|
DataRefPreviewContent,
|
|
@@ -607,7 +581,6 @@ export {
|
|
|
607
581
|
StaleDataNotice,
|
|
608
582
|
StructuredValueView,
|
|
609
583
|
SurfaceBoundAgentsList,
|
|
610
|
-
SystemInstructionEditor,
|
|
611
584
|
SystemInstructionModal,
|
|
612
585
|
TableChooser,
|
|
613
586
|
TextInputDialog,
|
|
@@ -642,18 +615,14 @@ export {
|
|
|
642
615
|
currentCostUnit,
|
|
643
616
|
currentPointsRate,
|
|
644
617
|
detachConversationResource,
|
|
645
|
-
dismissDriftAlert,
|
|
646
618
|
dispatchWarRoomMasterTool,
|
|
647
619
|
dispatchWarRoomTool,
|
|
648
620
|
disposeFullScreenEditorCallbackGroup,
|
|
649
621
|
emitFullScreenEditorSave,
|
|
650
622
|
ensureOrgAvailability,
|
|
651
623
|
entityTitleFallback,
|
|
652
|
-
fetchAgentUsageReport,
|
|
653
|
-
fetchAgentUsages,
|
|
654
624
|
fetchArtifactsForMessageThunk,
|
|
655
625
|
fetchConversationAttachments,
|
|
656
|
-
fetchDriftAlerts,
|
|
657
626
|
fetchEntityTitles,
|
|
658
627
|
fetchNotesList,
|
|
659
628
|
flattenResourcePickerItems,
|
|
@@ -673,14 +642,6 @@ export {
|
|
|
673
642
|
loadCodeEditHistoryThunk,
|
|
674
643
|
loadProjectsWithTasks,
|
|
675
644
|
loadedSkills,
|
|
676
|
-
makeSelectRedFlagSummary,
|
|
677
|
-
makeSelectReport,
|
|
678
|
-
makeSelectReportSorted,
|
|
679
|
-
makeSelectReportTotals,
|
|
680
|
-
makeSelectUsageAggregates,
|
|
681
|
-
makeSelectUsageCache,
|
|
682
|
-
makeSelectUsageGroups,
|
|
683
|
-
markDriftAlertViewed,
|
|
684
645
|
materializeMessageArtifacts,
|
|
685
646
|
noteBrowserActivity,
|
|
686
647
|
notesCreate,
|
|
@@ -711,7 +672,6 @@ export {
|
|
|
711
672
|
resolveSystemOrgId,
|
|
712
673
|
saveNoteField,
|
|
713
674
|
saveOutputFeedback,
|
|
714
|
-
selectActiveBannerAlerts,
|
|
715
675
|
selectActiveContentBlocks,
|
|
716
676
|
selectActiveSandboxId,
|
|
717
677
|
selectActiveSandboxProxyUrl,
|
|
@@ -719,7 +679,6 @@ export {
|
|
|
719
679
|
selectCloudBrowserRunLive,
|
|
720
680
|
selectContentBlocksByScope,
|
|
721
681
|
selectContentBlocksByScopeRef,
|
|
722
|
-
selectDriftAlertsStatus,
|
|
723
682
|
selectEditorMode,
|
|
724
683
|
selectEditorState,
|
|
725
684
|
selectHtmlPageArtifactForMessage,
|
|
@@ -732,7 +691,6 @@ export {
|
|
|
732
691
|
traceWarRoomRenderPath,
|
|
733
692
|
updateArtifactThunk,
|
|
734
693
|
useAccess,
|
|
735
|
-
useAgentChangeReach,
|
|
736
694
|
useAttachResourcePicker,
|
|
737
695
|
useAuthGuardedAction,
|
|
738
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
|
);
|