@ai-matrx/chat 0.5.18 → 0.6.0
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 +6 -0
- package/dist/agents/components/identity-refs/AiIdentityRef.d.ts +33 -0
- package/dist/agents/components/identity-refs/AiIdentityRef.js +138 -0
- package/dist/agents/components/inputs/smart-input/QuicksetPanel.js +5 -9
- package/dist/agents/components/inputs/smart-input/RunSkillPicker.js +1 -1
- package/dist/agents/components/inputs/smart-input/RunToolPicker.js +6 -11
- package/dist/agents/components/inputs/smart-input/ShapeChipsRow.js +1 -1
- package/dist/agents/components/inputs/smart-input/composer/ComposerEffortPill.js +1 -1
- package/dist/agents/components/inputs/smart-input/composer/ComposerOutput.js +1 -1
- package/dist/agents/components/inputs/smart-input/composer/ComposerPlusMenu.js +1 -1
- package/dist/agents/components/inputs/smart-input/composer/useComposerAgent.js +1 -1
- package/dist/agents/components/inputs/smart-input/composer/useRunControlCounts.d.ts +3 -0
- package/dist/agents/components/inputs/smart-input/composer/useRunControlCounts.js +54 -0
- package/dist/agents/components/model-tiers/ModelTierIdentityList.js +1 -1
- package/dist/agents/components/run-controls/RunConfigOverrides.js +1 -1
- package/dist/agents/components/run-controls/RunInputCapabilities.js +1 -1
- package/dist/agents/components/run-controls/panels/shared.d.ts +0 -2
- package/dist/agents/hooks/useDiffEnrichment.js +3 -6
- package/dist/agents/identity/agent-catalog-lists.js +2 -1
- package/dist/agents/identity/agent-identity.js +2 -1
- package/dist/agents/identity/model-catalog.d.ts +9 -0
- package/dist/agents/identity/model-catalog.js +25 -0
- package/dist/agents/identity/preferred-chat-model.d.ts +9 -0
- package/dist/agents/identity/preferred-chat-model.js +33 -0
- package/dist/agents/identity/settings-store.d.ts +10 -0
- package/dist/agents/identity/settings-store.js +49 -0
- package/dist/agents/identity/skill-catalog.d.ts +27 -0
- package/dist/agents/identity/skill-catalog.js +100 -0
- package/dist/agents/identity/tool-catalog.d.ts +15 -0
- package/dist/agents/identity/tool-catalog.js +67 -0
- package/dist/agents/redux/agent-definition/cache-bust-middleware.d.ts +0 -1
- package/dist/agents/redux/agent-definition/cache-bust-middleware.js +1 -13
- package/dist/agents/redux/agent-definition/selectors.d.ts +12 -546
- package/dist/agents/redux/agent-settings/internal-utils.d.ts +2 -123
- package/dist/agents/redux/agent-settings/internal-utils.js +1 -315
- package/dist/agents/redux/agent-settings/settings-catalogue.d.ts +2 -78
- package/dist/agents/redux/agent-settings/settings-catalogue.js +1 -176
- package/dist/agents/redux/agent-settings/types.d.ts +2 -148
- package/dist/agents/redux/agent-settings/types.js +1 -0
- package/dist/agents/redux/agent-settings/ui-gates.d.ts +2 -54
- package/dist/agents/redux/agent-settings/ui-gates.js +1 -38
- package/dist/agents/redux/agent-shortcut-categories/selectors.d.ts +0 -100
- package/dist/agents/redux/agent-shortcuts/selectors.d.ts +0 -294
- package/dist/agents/redux/conversation-history/selectors.d.ts +0 -32
- package/dist/agents/redux/conversation-list/conversation-list.selectors.d.ts +0 -4
- package/dist/agents/redux/execution-system/active-requests/active-requests.selectors.d.ts +0 -108
- package/dist/agents/redux/execution-system/context-state/context-state.selectors.d.ts +0 -28
- package/dist/agents/redux/execution-system/conversations/conversations.selectors.d.ts +0 -10
- package/dist/agents/redux/execution-system/instance-context/instance-context.selectors.d.ts +0 -6
- package/dist/agents/redux/execution-system/instance-model-overrides/launch-model-overrides.js +1 -1
- package/dist/agents/redux/execution-system/instance-resources/instance-resources.selectors.d.ts +0 -16
- package/dist/agents/redux/execution-system/instance-ui-state/instance-ui-state.selectors.d.ts +0 -10
- package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.selectors.d.ts +0 -14
- package/dist/agents/redux/execution-system/messages/messages.selectors.d.ts +0 -2
- package/dist/agents/redux/execution-system/observability/observability.selectors.d.ts +0 -14
- package/dist/agents/redux/execution-system/observational-memory/observational-memory.selectors.d.ts +0 -2
- package/dist/agents/redux/execution-system/selectors/aggregate.selectors.d.ts +0 -28
- package/dist/agents/redux/execution-system/thunks/process-stream.js +2 -5
- package/dist/agents/redux/execution-system/utils/loaded-skill-sources.d.ts +1 -1
- package/dist/agents/redux/execution-system/utils/loaded-skill-sources.js +3 -3
- package/dist/agents/redux/proposed-directives/proposedDirectivesSlice.d.ts +0 -2
- package/dist/agents/ui-first-tools/redux/agent-lists.selectors.d.ts +0 -4
- package/dist/host/ui-slots.d.ts +0 -46
- package/dist/host/ui-slots.js +0 -33
- package/dist/store/create-chat-store.d.ts +0 -4
- package/dist/store/middlewares.d.ts +0 -10
- package/dist/store/slices.d.ts +0 -2
- package/dist/store/slices.js +0 -4
- package/dist/surfaces/redux/selectors.d.ts +0 -4
- package/dist/tool-call-visualization/redux/selectors.d.ts +0 -2
- package/dist/ui/chat-default-model-knob.d.ts +1 -1
- package/dist/ui/chat-default-model-knob.js +1 -1
- package/package.json +4 -4
- package/dist/agents/components/model/AgentModelPanel.d.ts +0 -4
- package/dist/agents/components/model/AgentModelPanel.js +0 -9
- package/dist/agents/redux/agent-settings/agentSettingsSlice.d.ts +0 -1015
- package/dist/agents/redux/agent-settings/agentSettingsSlice.js +0 -659
- package/dist/agents/redux/agent-settings/selectors.d.ts +0 -10057
- package/dist/agents/redux/agent-settings/selectors.js +0 -234
- package/dist/agents/redux/agent-settings/useNormalizedControls.d.ts +0 -8
- package/dist/agents/redux/agent-settings/useNormalizedControls.js +0 -24
- package/dist/agents/redux/tools/tools.selectors.d.ts +0 -529
- package/dist/agents/redux/tools/tools.selectors.js +0 -24
- package/dist/agents/redux/tools/tools.slice.d.ts +0 -12
- package/dist/agents/redux/tools/tools.slice.js +0 -37
- package/dist/agents/redux/tools/tools.thunks.d.ts +0 -125
- package/dist/agents/redux/tools/tools.thunks.js +0 -45
- package/dist/host/defaults/setting-control-input.d.ts +0 -11
- package/dist/host/defaults/setting-control-input.js +0 -91
|
@@ -1,529 +0,0 @@
|
|
|
1
|
-
import type { ChatRootState } from "../../../store/root-state.js";
|
|
2
|
-
export declare const selectAllTools: (state: ChatRootState) => {
|
|
3
|
-
admin_only: boolean;
|
|
4
|
-
annotations: import("@ai-matrx/data/types").Json | null;
|
|
5
|
-
category: string | null;
|
|
6
|
-
created_at: string;
|
|
7
|
-
created_by: string | null;
|
|
8
|
-
deactivated_at: string | null;
|
|
9
|
-
dedupe_exempt: boolean;
|
|
10
|
-
deleted_at: string | null;
|
|
11
|
-
description: string;
|
|
12
|
-
gating: import("@ai-matrx/data/types").Json;
|
|
13
|
-
icon: string | null;
|
|
14
|
-
id: string;
|
|
15
|
-
is_active: boolean;
|
|
16
|
-
managed_by_server_id: string | null;
|
|
17
|
-
max_client_wait_seconds: number | null;
|
|
18
|
-
metadata: import("@ai-matrx/data/types").Json;
|
|
19
|
-
name: string;
|
|
20
|
-
organization_id: string;
|
|
21
|
-
output_schema: import("@ai-matrx/data/types").Json | null;
|
|
22
|
-
parameters: import("@ai-matrx/data/types").Json;
|
|
23
|
-
published_to_web: boolean;
|
|
24
|
-
published_to_web_at: string | null;
|
|
25
|
-
published_to_web_by: string | null;
|
|
26
|
-
semver: string | null;
|
|
27
|
-
shown_to: import("@ai-matrx/data/types").Database["platform"]["Enums"]["shown_to"] | null;
|
|
28
|
-
side_effect_class: string | null;
|
|
29
|
-
source_kind: string;
|
|
30
|
-
tags: string[] | null;
|
|
31
|
-
tier: string | null;
|
|
32
|
-
tool_group: string;
|
|
33
|
-
updated_at: string;
|
|
34
|
-
updated_by: string | null;
|
|
35
|
-
updated_by_system: string | null;
|
|
36
|
-
updated_by_tier: string | null;
|
|
37
|
-
validation_exempt: boolean;
|
|
38
|
-
version: number;
|
|
39
|
-
visibility: import("@ai-matrx/data/types").Database["platform"]["Enums"]["visibility"];
|
|
40
|
-
}[];
|
|
41
|
-
export declare const selectToolsStatus: (state: ChatRootState) => "failed" | "idle" | "loading" | "succeeded";
|
|
42
|
-
export declare const selectToolsError: (state: ChatRootState) => string | null;
|
|
43
|
-
export declare const selectToolsReady: (state: ChatRootState) => boolean;
|
|
44
|
-
export declare const selectToolIdentityMap: (state: ChatRootState) => Record<string, {
|
|
45
|
-
admin_only: boolean;
|
|
46
|
-
annotations: import("@ai-matrx/data/types").Json | null;
|
|
47
|
-
category: string | null;
|
|
48
|
-
created_at: string;
|
|
49
|
-
created_by: string | null;
|
|
50
|
-
deactivated_at: string | null;
|
|
51
|
-
dedupe_exempt: boolean;
|
|
52
|
-
deleted_at: string | null;
|
|
53
|
-
description: string;
|
|
54
|
-
gating: import("@ai-matrx/data/types").Json;
|
|
55
|
-
icon: string | null;
|
|
56
|
-
id: string;
|
|
57
|
-
is_active: boolean;
|
|
58
|
-
managed_by_server_id: string | null;
|
|
59
|
-
max_client_wait_seconds: number | null;
|
|
60
|
-
metadata: import("@ai-matrx/data/types").Json;
|
|
61
|
-
name: string;
|
|
62
|
-
organization_id: string;
|
|
63
|
-
output_schema: import("@ai-matrx/data/types").Json | null;
|
|
64
|
-
parameters: import("@ai-matrx/data/types").Json;
|
|
65
|
-
published_to_web: boolean;
|
|
66
|
-
published_to_web_at: string | null;
|
|
67
|
-
published_to_web_by: string | null;
|
|
68
|
-
semver: string | null;
|
|
69
|
-
shown_to: import("@ai-matrx/data/types").Database["platform"]["Enums"]["shown_to"] | null;
|
|
70
|
-
side_effect_class: string | null;
|
|
71
|
-
source_kind: string;
|
|
72
|
-
tags: string[] | null;
|
|
73
|
-
tier: string | null;
|
|
74
|
-
tool_group: string;
|
|
75
|
-
updated_at: string;
|
|
76
|
-
updated_by: string | null;
|
|
77
|
-
updated_by_system: string | null;
|
|
78
|
-
updated_by_tier: string | null;
|
|
79
|
-
validation_exempt: boolean;
|
|
80
|
-
version: number;
|
|
81
|
-
visibility: import("@ai-matrx/data/types").Database["platform"]["Enums"]["visibility"];
|
|
82
|
-
}>;
|
|
83
|
-
/** Factory because many references can resolve different tool IDs at once. */
|
|
84
|
-
export declare const makeSelectToolById: () => ((state: {
|
|
85
|
-
voiceAgent: import("../../../voice-agent/types.js").VoiceAgentState;
|
|
86
|
-
agentDefinition: import("../../types/agent-definition.types.js").AgentDefinitionSliceState;
|
|
87
|
-
conversationList: import("../conversation-list/conversation-list.types.js").ConversationListState;
|
|
88
|
-
conversationHistory: import("../conversation-history/index.js").ConversationHistoryState;
|
|
89
|
-
agentShortcut: import("../agent-shortcuts/types.js").AgentShortcutSliceState;
|
|
90
|
-
agentShortcutCategory: import("../agent-shortcut-categories/types.js").AgentShortcutCategorySliceState;
|
|
91
|
-
surfaceUserState: import("../../../surfaces/redux/userStateSlice.js").SurfaceUserStateSlice;
|
|
92
|
-
tools: import("./tools.slice.js").ToolsSliceState;
|
|
93
|
-
conversations: import("../execution-system/conversations/conversations.slice.js").ConversationsState;
|
|
94
|
-
chatIncognito: import("../chat/chat-incognito.slice.js").ChatIncognitoState;
|
|
95
|
-
chatRoute: import("../chat/chat-route.slice.js").ChatRouteState;
|
|
96
|
-
instanceModelOverrides: import("../execution-system/instance-model-overrides/instance-model-overrides.slice.js").InstanceModelOverridesState;
|
|
97
|
-
instanceInputCapabilities: import("../execution-system/instance-input-capabilities/instance-input-capabilities.slice.js").InstanceInputCapabilitiesState;
|
|
98
|
-
instanceVariableValues: import("../execution-system/instance-variable-values/instance-variable-values.slice.js").InstanceVariableValuesState;
|
|
99
|
-
instanceResources: import("../execution-system/instance-resources/instance-resources.slice.js").InstanceResourcesState;
|
|
100
|
-
instanceContext: import("../execution-system/instance-context/instance-context.slice.js").InstanceContextState;
|
|
101
|
-
instanceWorkingDocument: import("../execution-system/instance-working-document/instance-working-document.slice.js").InstanceWorkingDocumentSliceState;
|
|
102
|
-
instanceUserInput: import("../execution-system/instance-user-input/instance-user-input.slice.js").InstanceUserInputSliceState;
|
|
103
|
-
instanceClientTools: import("../execution-system/instance-client-tools/instance-client-tools.slice.js").InstanceClientToolsState;
|
|
104
|
-
pendingAsks: import("../../ui-first-tools/redux/pending-asks.slice.js").PendingAsksState;
|
|
105
|
-
conversationInbox: import("../execution-system/inbox/inbox.slice.js").ConversationInboxState;
|
|
106
|
-
agentLists: import("../../ui-first-tools/redux/agent-lists.slice.js").AgentListsState;
|
|
107
|
-
instanceUIState: import("../execution-system/instance-ui-state/instance-ui-state.slice.js").InstanceUIStateSlice;
|
|
108
|
-
activeTools: import("../execution-system/active-tools/active-tools.slice.js").ActiveToolsState;
|
|
109
|
-
activeRequests: import("../execution-system/active-requests/active-requests.slice.js").ActiveRequestsState;
|
|
110
|
-
runSets: import("../execution-system/run-sets/run-sets.slice.js").RunSetsState;
|
|
111
|
-
messages: import("../execution-system/messages/messages.slice.js").MessagesState;
|
|
112
|
-
observability: import("../execution-system/observability/observability.slice.js").ObservabilityState;
|
|
113
|
-
contextState: import("../execution-system/context-state/context-state.slice.js").ContextStateSliceState;
|
|
114
|
-
observationalMemory: import("../execution-system/observational-memory/observational-memory.slice.js").ObservationalMemoryState;
|
|
115
|
-
cacheBypass: import("../execution-system/message-crud/cache-bypass.slice.js").CacheBypassState;
|
|
116
|
-
conversationFocus: import("../execution-system/conversation-focus/conversation-focus.slice.js").ConversationFocusState;
|
|
117
|
-
surfaces: import("../surfaces/surfaces.slice.js").SurfacesState;
|
|
118
|
-
surfacesCatalog: import("../../../surfaces/redux/surfacesCatalogSlice.js").SurfacesCatalogSliceState;
|
|
119
|
-
agentSurfaceBindings: import("../../../surfaces/redux/agentSurfaceBindingsSlice.js").AgentSurfaceBindingsSliceState;
|
|
120
|
-
surfaceConfig: import("../../../surfaces/redux/surfaceConfigSlice.js").SurfaceConfigSliceState;
|
|
121
|
-
agentAssistantMarkdownDraft: import("../agent-assistant-markdown-draft.slice.js").AgentAssistantMarkdownDraftState;
|
|
122
|
-
mcp: import("../mcp/mcp.slice.js").McpSliceState;
|
|
123
|
-
proposedDirectives: import("../proposed-directives/proposedDirectivesSlice.js").ProposedDirectivesState;
|
|
124
|
-
agentSettings: import("../agent-settings/types.js").AgentSettingsState;
|
|
125
|
-
conversationAttachments: import("../../connectors/attachments.slice.js").AttachmentsSliceState;
|
|
126
|
-
chatHost: import("../../../store/chat-host.slice.js").ChatHostState;
|
|
127
|
-
hostConversations: import("../execution-system/host-conversations/host-conversations.slice.js").HostConversationsState;
|
|
128
|
-
} & import("../../../store/root-state.js").ChatHostReadSlices, toolId: string) => {
|
|
129
|
-
admin_only: boolean;
|
|
130
|
-
annotations: import("@ai-matrx/data/types").Json | null;
|
|
131
|
-
category: string | null;
|
|
132
|
-
created_at: string;
|
|
133
|
-
created_by: string | null;
|
|
134
|
-
deactivated_at: string | null;
|
|
135
|
-
dedupe_exempt: boolean;
|
|
136
|
-
deleted_at: string | null;
|
|
137
|
-
description: string;
|
|
138
|
-
gating: import("@ai-matrx/data/types").Json;
|
|
139
|
-
icon: string | null;
|
|
140
|
-
id: string;
|
|
141
|
-
is_active: boolean;
|
|
142
|
-
managed_by_server_id: string | null;
|
|
143
|
-
max_client_wait_seconds: number | null;
|
|
144
|
-
metadata: import("@ai-matrx/data/types").Json;
|
|
145
|
-
name: string;
|
|
146
|
-
organization_id: string;
|
|
147
|
-
output_schema: import("@ai-matrx/data/types").Json | null;
|
|
148
|
-
parameters: import("@ai-matrx/data/types").Json;
|
|
149
|
-
published_to_web: boolean;
|
|
150
|
-
published_to_web_at: string | null;
|
|
151
|
-
published_to_web_by: string | null;
|
|
152
|
-
semver: string | null;
|
|
153
|
-
shown_to: import("@ai-matrx/data/types").Database["platform"]["Enums"]["shown_to"] | null;
|
|
154
|
-
side_effect_class: string | null;
|
|
155
|
-
source_kind: string;
|
|
156
|
-
tags: string[] | null;
|
|
157
|
-
tier: string | null;
|
|
158
|
-
tool_group: string;
|
|
159
|
-
updated_at: string;
|
|
160
|
-
updated_by: string | null;
|
|
161
|
-
updated_by_system: string | null;
|
|
162
|
-
updated_by_tier: string | null;
|
|
163
|
-
validation_exempt: boolean;
|
|
164
|
-
version: number;
|
|
165
|
-
visibility: import("@ai-matrx/data/types").Database["platform"]["Enums"]["visibility"];
|
|
166
|
-
}) & {
|
|
167
|
-
clearCache: () => void;
|
|
168
|
-
resultsCount: () => number;
|
|
169
|
-
resetResultsCount: () => void;
|
|
170
|
-
} & {
|
|
171
|
-
resultFunc: (resultFuncArgs_0: {
|
|
172
|
-
admin_only: boolean;
|
|
173
|
-
annotations: import("@ai-matrx/data/types").Json | null;
|
|
174
|
-
category: string | null;
|
|
175
|
-
created_at: string;
|
|
176
|
-
created_by: string | null;
|
|
177
|
-
deactivated_at: string | null;
|
|
178
|
-
dedupe_exempt: boolean;
|
|
179
|
-
deleted_at: string | null;
|
|
180
|
-
description: string;
|
|
181
|
-
gating: import("@ai-matrx/data/types").Json;
|
|
182
|
-
icon: string | null;
|
|
183
|
-
id: string;
|
|
184
|
-
is_active: boolean;
|
|
185
|
-
managed_by_server_id: string | null;
|
|
186
|
-
max_client_wait_seconds: number | null;
|
|
187
|
-
metadata: import("@ai-matrx/data/types").Json;
|
|
188
|
-
name: string;
|
|
189
|
-
organization_id: string;
|
|
190
|
-
output_schema: import("@ai-matrx/data/types").Json | null;
|
|
191
|
-
parameters: import("@ai-matrx/data/types").Json;
|
|
192
|
-
published_to_web: boolean;
|
|
193
|
-
published_to_web_at: string | null;
|
|
194
|
-
published_to_web_by: string | null;
|
|
195
|
-
semver: string | null;
|
|
196
|
-
shown_to: import("@ai-matrx/data/types").Database["platform"]["Enums"]["shown_to"] | null;
|
|
197
|
-
side_effect_class: string | null;
|
|
198
|
-
source_kind: string;
|
|
199
|
-
tags: string[] | null;
|
|
200
|
-
tier: string | null;
|
|
201
|
-
tool_group: string;
|
|
202
|
-
updated_at: string;
|
|
203
|
-
updated_by: string | null;
|
|
204
|
-
updated_by_system: string | null;
|
|
205
|
-
updated_by_tier: string | null;
|
|
206
|
-
validation_exempt: boolean;
|
|
207
|
-
version: number;
|
|
208
|
-
visibility: import("@ai-matrx/data/types").Database["platform"]["Enums"]["visibility"];
|
|
209
|
-
}[], resultFuncArgs_1: Record<string, {
|
|
210
|
-
admin_only: boolean;
|
|
211
|
-
annotations: import("@ai-matrx/data/types").Json | null;
|
|
212
|
-
category: string | null;
|
|
213
|
-
created_at: string;
|
|
214
|
-
created_by: string | null;
|
|
215
|
-
deactivated_at: string | null;
|
|
216
|
-
dedupe_exempt: boolean;
|
|
217
|
-
deleted_at: string | null;
|
|
218
|
-
description: string;
|
|
219
|
-
gating: import("@ai-matrx/data/types").Json;
|
|
220
|
-
icon: string | null;
|
|
221
|
-
id: string;
|
|
222
|
-
is_active: boolean;
|
|
223
|
-
managed_by_server_id: string | null;
|
|
224
|
-
max_client_wait_seconds: number | null;
|
|
225
|
-
metadata: import("@ai-matrx/data/types").Json;
|
|
226
|
-
name: string;
|
|
227
|
-
organization_id: string;
|
|
228
|
-
output_schema: import("@ai-matrx/data/types").Json | null;
|
|
229
|
-
parameters: import("@ai-matrx/data/types").Json;
|
|
230
|
-
published_to_web: boolean;
|
|
231
|
-
published_to_web_at: string | null;
|
|
232
|
-
published_to_web_by: string | null;
|
|
233
|
-
semver: string | null;
|
|
234
|
-
shown_to: import("@ai-matrx/data/types").Database["platform"]["Enums"]["shown_to"] | null;
|
|
235
|
-
side_effect_class: string | null;
|
|
236
|
-
source_kind: string;
|
|
237
|
-
tags: string[] | null;
|
|
238
|
-
tier: string | null;
|
|
239
|
-
tool_group: string;
|
|
240
|
-
updated_at: string;
|
|
241
|
-
updated_by: string | null;
|
|
242
|
-
updated_by_system: string | null;
|
|
243
|
-
updated_by_tier: string | null;
|
|
244
|
-
validation_exempt: boolean;
|
|
245
|
-
version: number;
|
|
246
|
-
visibility: import("@ai-matrx/data/types").Database["platform"]["Enums"]["visibility"];
|
|
247
|
-
}>, resultFuncArgs_2: string) => {
|
|
248
|
-
admin_only: boolean;
|
|
249
|
-
annotations: import("@ai-matrx/data/types").Json | null;
|
|
250
|
-
category: string | null;
|
|
251
|
-
created_at: string;
|
|
252
|
-
created_by: string | null;
|
|
253
|
-
deactivated_at: string | null;
|
|
254
|
-
dedupe_exempt: boolean;
|
|
255
|
-
deleted_at: string | null;
|
|
256
|
-
description: string;
|
|
257
|
-
gating: import("@ai-matrx/data/types").Json;
|
|
258
|
-
icon: string | null;
|
|
259
|
-
id: string;
|
|
260
|
-
is_active: boolean;
|
|
261
|
-
managed_by_server_id: string | null;
|
|
262
|
-
max_client_wait_seconds: number | null;
|
|
263
|
-
metadata: import("@ai-matrx/data/types").Json;
|
|
264
|
-
name: string;
|
|
265
|
-
organization_id: string;
|
|
266
|
-
output_schema: import("@ai-matrx/data/types").Json | null;
|
|
267
|
-
parameters: import("@ai-matrx/data/types").Json;
|
|
268
|
-
published_to_web: boolean;
|
|
269
|
-
published_to_web_at: string | null;
|
|
270
|
-
published_to_web_by: string | null;
|
|
271
|
-
semver: string | null;
|
|
272
|
-
shown_to: import("@ai-matrx/data/types").Database["platform"]["Enums"]["shown_to"] | null;
|
|
273
|
-
side_effect_class: string | null;
|
|
274
|
-
source_kind: string;
|
|
275
|
-
tags: string[] | null;
|
|
276
|
-
tier: string | null;
|
|
277
|
-
tool_group: string;
|
|
278
|
-
updated_at: string;
|
|
279
|
-
updated_by: string | null;
|
|
280
|
-
updated_by_system: string | null;
|
|
281
|
-
updated_by_tier: string | null;
|
|
282
|
-
validation_exempt: boolean;
|
|
283
|
-
version: number;
|
|
284
|
-
visibility: import("@ai-matrx/data/types").Database["platform"]["Enums"]["visibility"];
|
|
285
|
-
};
|
|
286
|
-
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
287
|
-
admin_only: boolean;
|
|
288
|
-
annotations: import("@ai-matrx/data/types").Json | null;
|
|
289
|
-
category: string | null;
|
|
290
|
-
created_at: string;
|
|
291
|
-
created_by: string | null;
|
|
292
|
-
deactivated_at: string | null;
|
|
293
|
-
dedupe_exempt: boolean;
|
|
294
|
-
deleted_at: string | null;
|
|
295
|
-
description: string;
|
|
296
|
-
gating: import("@ai-matrx/data/types").Json;
|
|
297
|
-
icon: string | null;
|
|
298
|
-
id: string;
|
|
299
|
-
is_active: boolean;
|
|
300
|
-
managed_by_server_id: string | null;
|
|
301
|
-
max_client_wait_seconds: number | null;
|
|
302
|
-
metadata: import("@ai-matrx/data/types").Json;
|
|
303
|
-
name: string;
|
|
304
|
-
organization_id: string;
|
|
305
|
-
output_schema: import("@ai-matrx/data/types").Json | null;
|
|
306
|
-
parameters: import("@ai-matrx/data/types").Json;
|
|
307
|
-
published_to_web: boolean;
|
|
308
|
-
published_to_web_at: string | null;
|
|
309
|
-
published_to_web_by: string | null;
|
|
310
|
-
semver: string | null;
|
|
311
|
-
shown_to: import("@ai-matrx/data/types").Database["platform"]["Enums"]["shown_to"] | null;
|
|
312
|
-
side_effect_class: string | null;
|
|
313
|
-
source_kind: string;
|
|
314
|
-
tags: string[] | null;
|
|
315
|
-
tier: string | null;
|
|
316
|
-
tool_group: string;
|
|
317
|
-
updated_at: string;
|
|
318
|
-
updated_by: string | null;
|
|
319
|
-
updated_by_system: string | null;
|
|
320
|
-
updated_by_tier: string | null;
|
|
321
|
-
validation_exempt: boolean;
|
|
322
|
-
version: number;
|
|
323
|
-
visibility: import("@ai-matrx/data/types").Database["platform"]["Enums"]["visibility"];
|
|
324
|
-
}[], resultFuncArgs_1: Record<string, {
|
|
325
|
-
admin_only: boolean;
|
|
326
|
-
annotations: import("@ai-matrx/data/types").Json | null;
|
|
327
|
-
category: string | null;
|
|
328
|
-
created_at: string;
|
|
329
|
-
created_by: string | null;
|
|
330
|
-
deactivated_at: string | null;
|
|
331
|
-
dedupe_exempt: boolean;
|
|
332
|
-
deleted_at: string | null;
|
|
333
|
-
description: string;
|
|
334
|
-
gating: import("@ai-matrx/data/types").Json;
|
|
335
|
-
icon: string | null;
|
|
336
|
-
id: string;
|
|
337
|
-
is_active: boolean;
|
|
338
|
-
managed_by_server_id: string | null;
|
|
339
|
-
max_client_wait_seconds: number | null;
|
|
340
|
-
metadata: import("@ai-matrx/data/types").Json;
|
|
341
|
-
name: string;
|
|
342
|
-
organization_id: string;
|
|
343
|
-
output_schema: import("@ai-matrx/data/types").Json | null;
|
|
344
|
-
parameters: import("@ai-matrx/data/types").Json;
|
|
345
|
-
published_to_web: boolean;
|
|
346
|
-
published_to_web_at: string | null;
|
|
347
|
-
published_to_web_by: string | null;
|
|
348
|
-
semver: string | null;
|
|
349
|
-
shown_to: import("@ai-matrx/data/types").Database["platform"]["Enums"]["shown_to"] | null;
|
|
350
|
-
side_effect_class: string | null;
|
|
351
|
-
source_kind: string;
|
|
352
|
-
tags: string[] | null;
|
|
353
|
-
tier: string | null;
|
|
354
|
-
tool_group: string;
|
|
355
|
-
updated_at: string;
|
|
356
|
-
updated_by: string | null;
|
|
357
|
-
updated_by_system: string | null;
|
|
358
|
-
updated_by_tier: string | null;
|
|
359
|
-
validation_exempt: boolean;
|
|
360
|
-
version: number;
|
|
361
|
-
visibility: import("@ai-matrx/data/types").Database["platform"]["Enums"]["visibility"];
|
|
362
|
-
}>, resultFuncArgs_2: string) => {
|
|
363
|
-
admin_only: boolean;
|
|
364
|
-
annotations: import("@ai-matrx/data/types").Json | null;
|
|
365
|
-
category: string | null;
|
|
366
|
-
created_at: string;
|
|
367
|
-
created_by: string | null;
|
|
368
|
-
deactivated_at: string | null;
|
|
369
|
-
dedupe_exempt: boolean;
|
|
370
|
-
deleted_at: string | null;
|
|
371
|
-
description: string;
|
|
372
|
-
gating: import("@ai-matrx/data/types").Json;
|
|
373
|
-
icon: string | null;
|
|
374
|
-
id: string;
|
|
375
|
-
is_active: boolean;
|
|
376
|
-
managed_by_server_id: string | null;
|
|
377
|
-
max_client_wait_seconds: number | null;
|
|
378
|
-
metadata: import("@ai-matrx/data/types").Json;
|
|
379
|
-
name: string;
|
|
380
|
-
organization_id: string;
|
|
381
|
-
output_schema: import("@ai-matrx/data/types").Json | null;
|
|
382
|
-
parameters: import("@ai-matrx/data/types").Json;
|
|
383
|
-
published_to_web: boolean;
|
|
384
|
-
published_to_web_at: string | null;
|
|
385
|
-
published_to_web_by: string | null;
|
|
386
|
-
semver: string | null;
|
|
387
|
-
shown_to: import("@ai-matrx/data/types").Database["platform"]["Enums"]["shown_to"] | null;
|
|
388
|
-
side_effect_class: string | null;
|
|
389
|
-
source_kind: string;
|
|
390
|
-
tags: string[] | null;
|
|
391
|
-
tier: string | null;
|
|
392
|
-
tool_group: string;
|
|
393
|
-
updated_at: string;
|
|
394
|
-
updated_by: string | null;
|
|
395
|
-
updated_by_system: string | null;
|
|
396
|
-
updated_by_tier: string | null;
|
|
397
|
-
validation_exempt: boolean;
|
|
398
|
-
version: number;
|
|
399
|
-
visibility: import("@ai-matrx/data/types").Database["platform"]["Enums"]["visibility"];
|
|
400
|
-
}) & {
|
|
401
|
-
clearCache: () => void;
|
|
402
|
-
resultsCount: () => number;
|
|
403
|
-
resetResultsCount: () => void;
|
|
404
|
-
};
|
|
405
|
-
lastResult: () => {
|
|
406
|
-
admin_only: boolean;
|
|
407
|
-
annotations: import("@ai-matrx/data/types").Json | null;
|
|
408
|
-
category: string | null;
|
|
409
|
-
created_at: string;
|
|
410
|
-
created_by: string | null;
|
|
411
|
-
deactivated_at: string | null;
|
|
412
|
-
dedupe_exempt: boolean;
|
|
413
|
-
deleted_at: string | null;
|
|
414
|
-
description: string;
|
|
415
|
-
gating: import("@ai-matrx/data/types").Json;
|
|
416
|
-
icon: string | null;
|
|
417
|
-
id: string;
|
|
418
|
-
is_active: boolean;
|
|
419
|
-
managed_by_server_id: string | null;
|
|
420
|
-
max_client_wait_seconds: number | null;
|
|
421
|
-
metadata: import("@ai-matrx/data/types").Json;
|
|
422
|
-
name: string;
|
|
423
|
-
organization_id: string;
|
|
424
|
-
output_schema: import("@ai-matrx/data/types").Json | null;
|
|
425
|
-
parameters: import("@ai-matrx/data/types").Json;
|
|
426
|
-
published_to_web: boolean;
|
|
427
|
-
published_to_web_at: string | null;
|
|
428
|
-
published_to_web_by: string | null;
|
|
429
|
-
semver: string | null;
|
|
430
|
-
shown_to: import("@ai-matrx/data/types").Database["platform"]["Enums"]["shown_to"] | null;
|
|
431
|
-
side_effect_class: string | null;
|
|
432
|
-
source_kind: string;
|
|
433
|
-
tags: string[] | null;
|
|
434
|
-
tier: string | null;
|
|
435
|
-
tool_group: string;
|
|
436
|
-
updated_at: string;
|
|
437
|
-
updated_by: string | null;
|
|
438
|
-
updated_by_system: string | null;
|
|
439
|
-
updated_by_tier: string | null;
|
|
440
|
-
validation_exempt: boolean;
|
|
441
|
-
version: number;
|
|
442
|
-
visibility: import("@ai-matrx/data/types").Database["platform"]["Enums"]["visibility"];
|
|
443
|
-
};
|
|
444
|
-
dependencies: [(state: ChatRootState) => {
|
|
445
|
-
admin_only: boolean;
|
|
446
|
-
annotations: import("@ai-matrx/data/types").Json | null;
|
|
447
|
-
category: string | null;
|
|
448
|
-
created_at: string;
|
|
449
|
-
created_by: string | null;
|
|
450
|
-
deactivated_at: string | null;
|
|
451
|
-
dedupe_exempt: boolean;
|
|
452
|
-
deleted_at: string | null;
|
|
453
|
-
description: string;
|
|
454
|
-
gating: import("@ai-matrx/data/types").Json;
|
|
455
|
-
icon: string | null;
|
|
456
|
-
id: string;
|
|
457
|
-
is_active: boolean;
|
|
458
|
-
managed_by_server_id: string | null;
|
|
459
|
-
max_client_wait_seconds: number | null;
|
|
460
|
-
metadata: import("@ai-matrx/data/types").Json;
|
|
461
|
-
name: string;
|
|
462
|
-
organization_id: string;
|
|
463
|
-
output_schema: import("@ai-matrx/data/types").Json | null;
|
|
464
|
-
parameters: import("@ai-matrx/data/types").Json;
|
|
465
|
-
published_to_web: boolean;
|
|
466
|
-
published_to_web_at: string | null;
|
|
467
|
-
published_to_web_by: string | null;
|
|
468
|
-
semver: string | null;
|
|
469
|
-
shown_to: import("@ai-matrx/data/types").Database["platform"]["Enums"]["shown_to"] | null;
|
|
470
|
-
side_effect_class: string | null;
|
|
471
|
-
source_kind: string;
|
|
472
|
-
tags: string[] | null;
|
|
473
|
-
tier: string | null;
|
|
474
|
-
tool_group: string;
|
|
475
|
-
updated_at: string;
|
|
476
|
-
updated_by: string | null;
|
|
477
|
-
updated_by_system: string | null;
|
|
478
|
-
updated_by_tier: string | null;
|
|
479
|
-
validation_exempt: boolean;
|
|
480
|
-
version: number;
|
|
481
|
-
visibility: import("@ai-matrx/data/types").Database["platform"]["Enums"]["visibility"];
|
|
482
|
-
}[], (state: ChatRootState) => Record<string, {
|
|
483
|
-
admin_only: boolean;
|
|
484
|
-
annotations: import("@ai-matrx/data/types").Json | null;
|
|
485
|
-
category: string | null;
|
|
486
|
-
created_at: string;
|
|
487
|
-
created_by: string | null;
|
|
488
|
-
deactivated_at: string | null;
|
|
489
|
-
dedupe_exempt: boolean;
|
|
490
|
-
deleted_at: string | null;
|
|
491
|
-
description: string;
|
|
492
|
-
gating: import("@ai-matrx/data/types").Json;
|
|
493
|
-
icon: string | null;
|
|
494
|
-
id: string;
|
|
495
|
-
is_active: boolean;
|
|
496
|
-
managed_by_server_id: string | null;
|
|
497
|
-
max_client_wait_seconds: number | null;
|
|
498
|
-
metadata: import("@ai-matrx/data/types").Json;
|
|
499
|
-
name: string;
|
|
500
|
-
organization_id: string;
|
|
501
|
-
output_schema: import("@ai-matrx/data/types").Json | null;
|
|
502
|
-
parameters: import("@ai-matrx/data/types").Json;
|
|
503
|
-
published_to_web: boolean;
|
|
504
|
-
published_to_web_at: string | null;
|
|
505
|
-
published_to_web_by: string | null;
|
|
506
|
-
semver: string | null;
|
|
507
|
-
shown_to: import("@ai-matrx/data/types").Database["platform"]["Enums"]["shown_to"] | null;
|
|
508
|
-
side_effect_class: string | null;
|
|
509
|
-
source_kind: string;
|
|
510
|
-
tags: string[] | null;
|
|
511
|
-
tier: string | null;
|
|
512
|
-
tool_group: string;
|
|
513
|
-
updated_at: string;
|
|
514
|
-
updated_by: string | null;
|
|
515
|
-
updated_by_system: string | null;
|
|
516
|
-
updated_by_tier: string | null;
|
|
517
|
-
validation_exempt: boolean;
|
|
518
|
-
version: number;
|
|
519
|
-
visibility: import("@ai-matrx/data/types").Database["platform"]["Enums"]["visibility"];
|
|
520
|
-
}>, (_state: ChatRootState, toolId: string) => string];
|
|
521
|
-
recomputations: () => number;
|
|
522
|
-
resetRecomputations: () => void;
|
|
523
|
-
dependencyRecomputations: () => number;
|
|
524
|
-
resetDependencyRecomputations: () => void;
|
|
525
|
-
} & {
|
|
526
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
527
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
528
|
-
};
|
|
529
|
-
export declare const selectToolLookupStatus: (state: ChatRootState, toolId: string) => "failed" | "idle" | "loading" | "succeeded";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { createSelector } from "@reduxjs/toolkit";
|
|
2
|
-
const selectAllTools = (state) => state.tools.tools;
|
|
3
|
-
const selectToolsStatus = (state) => state.tools.status;
|
|
4
|
-
const selectToolsError = (state) => state.tools.error;
|
|
5
|
-
const selectToolsReady = (state) => state.tools.status === "succeeded";
|
|
6
|
-
const selectToolIdentityMap = (state) => state.tools.identityById;
|
|
7
|
-
const makeSelectToolById = () => createSelector(
|
|
8
|
-
[
|
|
9
|
-
(state) => state.tools.tools,
|
|
10
|
-
(state) => state.tools.identityById,
|
|
11
|
-
(_state, toolId) => toolId
|
|
12
|
-
],
|
|
13
|
-
(tools, identityById, toolId) => tools.find((tool) => tool.id === toolId) ?? identityById[toolId]
|
|
14
|
-
);
|
|
15
|
-
const selectToolLookupStatus = (state, toolId) => state.tools.lookupStatusById[toolId] ?? "idle";
|
|
16
|
-
export {
|
|
17
|
-
makeSelectToolById,
|
|
18
|
-
selectAllTools,
|
|
19
|
-
selectToolIdentityMap,
|
|
20
|
-
selectToolLookupStatus,
|
|
21
|
-
selectToolsError,
|
|
22
|
-
selectToolsReady,
|
|
23
|
-
selectToolsStatus
|
|
24
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { DatabaseTool } from "../../../ui/database-tool.js";
|
|
2
|
-
export interface ToolsSliceState {
|
|
3
|
-
tools: DatabaseTool[];
|
|
4
|
-
status: "idle" | "loading" | "succeeded" | "failed";
|
|
5
|
-
error: string | null;
|
|
6
|
-
/** Historical/inactive records never leak into the active picker list. */
|
|
7
|
-
identityById: Record<string, DatabaseTool>;
|
|
8
|
-
/** Per-record audit lookup status; independent of the active picker list. */
|
|
9
|
-
lookupStatusById: Record<string, "idle" | "loading" | "succeeded" | "failed">;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: import("redux").Reducer<ToolsSliceState>;
|
|
12
|
-
export default _default;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { createSlice } from "@reduxjs/toolkit";
|
|
2
|
-
import { fetchAvailableTools, fetchToolById } from "./tools.thunks.js";
|
|
3
|
-
const initialState = {
|
|
4
|
-
tools: [],
|
|
5
|
-
status: "idle",
|
|
6
|
-
error: null,
|
|
7
|
-
identityById: {},
|
|
8
|
-
lookupStatusById: {}
|
|
9
|
-
};
|
|
10
|
-
const toolsSlice = createSlice({
|
|
11
|
-
name: "tools",
|
|
12
|
-
initialState,
|
|
13
|
-
reducers: {},
|
|
14
|
-
extraReducers: (builder) => {
|
|
15
|
-
builder.addCase(fetchAvailableTools.pending, (state) => {
|
|
16
|
-
state.status = "loading";
|
|
17
|
-
state.error = null;
|
|
18
|
-
}).addCase(fetchAvailableTools.fulfilled, (state, action) => {
|
|
19
|
-
state.tools = action.payload;
|
|
20
|
-
state.status = "succeeded";
|
|
21
|
-
}).addCase(fetchAvailableTools.rejected, (state, action) => {
|
|
22
|
-
state.status = "failed";
|
|
23
|
-
state.error = action.error.message ?? "Failed to fetch tools";
|
|
24
|
-
}).addCase(fetchToolById.pending, (state, action) => {
|
|
25
|
-
state.lookupStatusById[action.meta.arg] = "loading";
|
|
26
|
-
}).addCase(fetchToolById.fulfilled, (state, action) => {
|
|
27
|
-
state.identityById[action.payload.id] = action.payload;
|
|
28
|
-
state.lookupStatusById[action.payload.id] = "succeeded";
|
|
29
|
-
}).addCase(fetchToolById.rejected, (state, action) => {
|
|
30
|
-
state.lookupStatusById[action.meta.arg] = "failed";
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
var tools_slice_default = toolsSlice.reducer;
|
|
35
|
-
export {
|
|
36
|
-
tools_slice_default as default
|
|
37
|
-
};
|