@ai-matrx/chat 0.3.32 → 0.4.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 +29 -0
- package/dist/agents/components/ambient-assistant/intelligence-places.js +2 -2
- package/dist/agents/components/chat/ChatConversationRoom.d.ts +7 -1
- package/dist/agents/components/chat/ChatConversationRoom.js +8 -2
- package/dist/agents/components/chat/intelligence-places.js +7 -7
- package/dist/agents/components/inputs/smart-input/RunToolPicker.js +7 -13
- package/dist/agents/components/inputs/smart-input/composer/ComposerAgentPill.js +3 -2
- package/dist/agents/components/inputs/smart-input/composer/useComposerAgent.js +5 -5
- package/dist/agents/components/inputs/smart-input/composer/useComposerAgentFilter.js +3 -2
- package/dist/agents/components/run-controls/RunConfigOverrides.js +10 -16
- package/dist/agents/components/run-controls/panels/shared.d.ts +0 -1
- package/dist/agents/hooks/useAgentModelLabel.js +4 -3
- package/dist/agents/hooks/useDiffEnrichment.js +3 -5
- package/dist/agents/hooks/useModelControls.d.ts +5 -161
- package/dist/agents/identity/model-catalog.d.ts +37 -0
- package/dist/agents/identity/model-catalog.js +103 -0
- package/dist/agents/redux/agent-definition/selectors.d.ts +0 -237
- package/dist/agents/redux/agent-definition/thunks.d.ts +1 -1
- package/dist/agents/redux/agent-settings/agentSettingsSlice.d.ts +1 -1
- package/dist/agents/redux/agent-settings/agentSettingsSlice.js +4 -6
- package/dist/agents/redux/agent-settings/selectors.d.ts +1 -152
- package/dist/agents/redux/agent-settings/selectors.js +0 -39
- package/dist/agents/redux/agent-settings/useNormalizedControls.d.ts +8 -0
- package/dist/agents/redux/agent-settings/useNormalizedControls.js +24 -0
- package/dist/agents/redux/agent-shortcut-categories/selectors.d.ts +0 -50
- package/dist/agents/redux/agent-shortcuts/selectors.d.ts +0 -147
- package/dist/agents/redux/conversation-history/selectors.d.ts +0 -16
- package/dist/agents/redux/conversation-list/conversation-list.selectors.d.ts +0 -2
- package/dist/agents/redux/execution-system/active-requests/active-requests.selectors.d.ts +0 -54
- package/dist/agents/redux/execution-system/context-state/context-state.selectors.d.ts +0 -14
- package/dist/agents/redux/execution-system/conversations/conversations.selectors.d.ts +0 -5
- package/dist/agents/redux/execution-system/instance-context/instance-context.selectors.d.ts +0 -3
- package/dist/agents/redux/execution-system/instance-resources/instance-resources.selectors.d.ts +0 -8
- package/dist/agents/redux/execution-system/instance-ui-state/instance-ui-state.selectors.d.ts +0 -5
- package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.selectors.d.ts +0 -7
- package/dist/agents/redux/execution-system/messages/messages.selectors.d.ts +0 -1
- package/dist/agents/redux/execution-system/observability/observability.selectors.d.ts +0 -7
- package/dist/agents/redux/execution-system/observational-memory/observational-memory.selectors.d.ts +0 -1
- package/dist/agents/redux/execution-system/selectors/aggregate.selectors.d.ts +0 -14
- package/dist/agents/redux/execution-system/thunks/execute-manual-instance.thunk.js +2 -2
- package/dist/agents/redux/execution-system/thunks/launch-agent-execution.thunk.js +10 -2
- package/dist/agents/redux/execution-system/utils/required-organization.d.ts +14 -0
- package/dist/agents/redux/execution-system/utils/required-organization.js +4 -0
- package/dist/agents/redux/model-registry.d.ts +6 -4
- package/dist/agents/redux/model-registry.js +23 -5
- package/dist/agents/redux/proposed-directives/proposedDirectivesSlice.d.ts +0 -1
- package/dist/agents/redux/tools/tools.selectors.d.ts +0 -1
- package/dist/agents/runtime/generation-job.js +4 -7
- package/dist/agents/runtime/get-model-capabilities.js +3 -3
- package/dist/agents/ui-first-tools/redux/agent-lists.selectors.d.ts +0 -2
- package/dist/host/db-types.d.ts +276 -9
- package/dist/store/create-chat-store.d.ts +0 -2
- package/dist/store/middlewares.d.ts +0 -5
- package/dist/store/slices.d.ts +0 -1
- package/dist/store/slices.js +0 -2
- package/dist/surfaces/redux/selectors.d.ts +0 -2
- package/dist/tool-call-visualization/intelligence-places.js +1 -1
- package/dist/tool-call-visualization/redux/selectors.d.ts +0 -1
- package/dist/voice-agent/intelligence-places.js +6 -6
- package/package.json +4 -4
- package/dist/agents/model-registry/modelRegistrySlice.d.ts +0 -691
- package/dist/agents/model-registry/modelRegistrySlice.js +0 -574
- package/dist/host/model-class.d.ts +0 -33
- package/dist/host/model-class.js +0 -21
|
@@ -8,6 +8,9 @@ function executionOrganizationForRequest(state, conversationId) {
|
|
|
8
8
|
if (isFingerprintGuestExecution(state)) return void 0;
|
|
9
9
|
return requireExecutionOrganizationId(state, conversationId);
|
|
10
10
|
}
|
|
11
|
+
function launchAsksForOrganizationBeforeOpen(launch) {
|
|
12
|
+
return launch.runsNow || launch.opensWindow;
|
|
13
|
+
}
|
|
11
14
|
async function ensureExecutionOrganization(state, conversationId) {
|
|
12
15
|
if (isFingerprintGuestExecution(state)) return null;
|
|
13
16
|
const instance = state.conversations.byConversationId[conversationId];
|
|
@@ -49,5 +52,6 @@ export {
|
|
|
49
52
|
ensureExecutionOrganization,
|
|
50
53
|
executionOrganizationForRequest,
|
|
51
54
|
isFingerprintGuestExecution,
|
|
55
|
+
launchAsksForOrganizationBeforeOpen,
|
|
52
56
|
requireExecutionOrganizationId
|
|
53
57
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The ONE door from package code to
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* The ONE door from package code to model records (agent core B3). Chat's `modelRegistry` slice is
|
|
3
|
+
* retired; records live in the core model catalog (`@ai-matrx/agents/models`), bound once per page
|
|
4
|
+
* by `agents/identity/model-catalog.ts`. Selectors take the records state (`readModelRecords()` in
|
|
5
|
+
* thunks, `useModelRecords(select)` in components).
|
|
5
6
|
*/
|
|
6
|
-
export {
|
|
7
|
+
export { classConfigKey, selectModelById, selectModelLabelById, selectModelLabelWithClass, selectModelFullyLoaded, selectModelDetailError, selectAllModels, selectModelClassConfig, type ModelRecord as AIModelRecord, type ModelRecord as AIModel, type ModelRecordsState, } from "@ai-matrx/agents/models";
|
|
8
|
+
export { getModelCatalog, getModelRecords, readModelRecords, useModelRecords, useModelRecord, useModelLabel, useModelLabelWithClass } from "../identity/model-catalog.js";
|
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
default as default2,
|
|
3
2
|
classConfigKey,
|
|
4
|
-
selectModelById
|
|
5
|
-
|
|
3
|
+
selectModelById,
|
|
4
|
+
selectModelLabelById,
|
|
5
|
+
selectModelLabelWithClass,
|
|
6
|
+
selectModelFullyLoaded,
|
|
7
|
+
selectModelDetailError,
|
|
8
|
+
selectAllModels,
|
|
9
|
+
selectModelClassConfig
|
|
10
|
+
} from "@ai-matrx/agents/models";
|
|
11
|
+
import { getModelCatalog, getModelRecords, readModelRecords, useModelRecords, useModelRecord, useModelLabel, useModelLabelWithClass } from "../identity/model-catalog.js";
|
|
6
12
|
export {
|
|
7
13
|
classConfigKey,
|
|
8
|
-
|
|
9
|
-
|
|
14
|
+
getModelCatalog,
|
|
15
|
+
getModelRecords,
|
|
16
|
+
readModelRecords,
|
|
17
|
+
selectAllModels,
|
|
18
|
+
selectModelById,
|
|
19
|
+
selectModelClassConfig,
|
|
20
|
+
selectModelDetailError,
|
|
21
|
+
selectModelFullyLoaded,
|
|
22
|
+
selectModelLabelById,
|
|
23
|
+
selectModelLabelWithClass,
|
|
24
|
+
useModelLabel,
|
|
25
|
+
useModelLabelWithClass,
|
|
26
|
+
useModelRecord,
|
|
27
|
+
useModelRecords
|
|
10
28
|
};
|
|
@@ -109,7 +109,6 @@ export declare const selectProposedDirectives: (conversationId: string) => ((sta
|
|
|
109
109
|
proposedDirectives: ProposedDirectivesState;
|
|
110
110
|
agentSettings: import("../agent-settings/types.js").AgentSettingsState;
|
|
111
111
|
conversationAttachments: import("../../connectors/attachments.slice.js").AttachmentsSliceState;
|
|
112
|
-
modelRegistry: import("../../model-registry/modelRegistrySlice.js").ModelRegistryState;
|
|
113
112
|
chatHost: import("../../../store/chat-host.slice.js").ChatHostState;
|
|
114
113
|
} & import("../../../store/root-state.js").ChatHostReadSlices) => ProposedDirective[]) & {
|
|
115
114
|
clearCache: () => void;
|
|
@@ -123,7 +123,6 @@ export declare const makeSelectToolById: () => ((state: {
|
|
|
123
123
|
proposedDirectives: import("../proposed-directives/proposedDirectivesSlice.js").ProposedDirectivesState;
|
|
124
124
|
agentSettings: import("../agent-settings/types.js").AgentSettingsState;
|
|
125
125
|
conversationAttachments: import("../../connectors/attachments.slice.js").AttachmentsSliceState;
|
|
126
|
-
modelRegistry: import("../../model-registry/modelRegistrySlice.js").ModelRegistryState;
|
|
127
126
|
chatHost: import("../../../store/chat-host.slice.js").ChatHostState;
|
|
128
127
|
} & import("../../../store/root-state.js").ChatHostReadSlices, toolId: string) => {
|
|
129
128
|
admin_only: boolean;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { selectAgentById } from "../redux/agent-definition/selectors.js";
|
|
2
|
-
import {
|
|
3
|
-
fetchModelById,
|
|
4
|
-
selectModelById
|
|
5
|
-
} from "../model-registry/modelRegistrySlice.js";
|
|
2
|
+
import { getModelRecords, readModelRecords, selectModelById } from "../redux/model-registry.js";
|
|
6
3
|
import { setRequestGenerationJob } from "../redux/execution-system/active-requests/active-requests.slice.js";
|
|
7
4
|
import { parseCapabilities } from "../model-registry/parse.js";
|
|
8
5
|
import { selectCurrentSettings } from "../redux/execution-system/instance-model-overrides/instance-model-overrides.selectors.js";
|
|
@@ -20,7 +17,7 @@ function selectRunModelId(state, conversationId) {
|
|
|
20
17
|
function resolveGenerationJob(state, conversationId) {
|
|
21
18
|
const modelId = selectRunModelId(state, conversationId);
|
|
22
19
|
if (!modelId) return null;
|
|
23
|
-
const model = selectModelById(
|
|
20
|
+
const model = selectModelById(readModelRecords(), modelId);
|
|
24
21
|
if (!model?.capabilities) return null;
|
|
25
22
|
const kind = runOutputKindFromModalities(
|
|
26
23
|
parseCapabilities(model.capabilities, {
|
|
@@ -38,9 +35,9 @@ function resolveGenerationJob(state, conversationId) {
|
|
|
38
35
|
async function labelGenerationJob(dispatch, getState, requestId, conversationId) {
|
|
39
36
|
const modelId = selectRunModelId(getState(), conversationId);
|
|
40
37
|
if (!modelId) return;
|
|
41
|
-
if (!selectModelById(
|
|
38
|
+
if (!selectModelById(readModelRecords(), modelId)) {
|
|
42
39
|
try {
|
|
43
|
-
await
|
|
40
|
+
await getModelRecords().loadModel(modelId);
|
|
44
41
|
} catch (err) {
|
|
45
42
|
console.warn(
|
|
46
43
|
"[generation-job] could not load the model to label this run; the generic working line stays",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { selectAgentById } from "../redux/agent-definition/selectors.js";
|
|
2
|
-
import { selectModelById } from "../model-registry
|
|
2
|
+
import { readModelRecords, selectModelById } from "../redux/model-registry.js";
|
|
3
3
|
import {
|
|
4
4
|
parseCapabilities
|
|
5
5
|
} from "../model-registry/parse.js";
|
|
@@ -8,7 +8,7 @@ function getCapabilitiesForConversation(state, conversationId) {
|
|
|
8
8
|
if (!instance?.agentId) return null;
|
|
9
9
|
const agent = selectAgentById(state, instance.agentId);
|
|
10
10
|
if (!agent?.modelId) return null;
|
|
11
|
-
const model = selectModelById(
|
|
11
|
+
const model = selectModelById(readModelRecords(), agent.modelId);
|
|
12
12
|
if (!model) return null;
|
|
13
13
|
return parseCapabilities(model.capabilities, {
|
|
14
14
|
modelId: agent.modelId,
|
|
@@ -16,7 +16,7 @@ function getCapabilitiesForConversation(state, conversationId) {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
function getCapabilitiesForModel(state, modelId) {
|
|
19
|
-
const model = selectModelById(
|
|
19
|
+
const model = selectModelById(readModelRecords(), modelId);
|
|
20
20
|
if (!model) return null;
|
|
21
21
|
return parseCapabilities(model.capabilities, {
|
|
22
22
|
modelId,
|
|
@@ -54,7 +54,6 @@ export declare const selectAgentTaskCounts: (conversationId: string) => ((state:
|
|
|
54
54
|
proposedDirectives: import("../../redux/proposed-directives/proposedDirectivesSlice.js").ProposedDirectivesState;
|
|
55
55
|
agentSettings: import("../../redux/agent-settings/types.js").AgentSettingsState;
|
|
56
56
|
conversationAttachments: import("../../connectors/attachments.slice.js").AttachmentsSliceState;
|
|
57
|
-
modelRegistry: import("../../model-registry/modelRegistrySlice.js").ModelRegistryState;
|
|
58
57
|
chatHost: import("../../../store/chat-host.slice.js").ChatHostState;
|
|
59
58
|
} & import("../../../store/root-state.js").ChatHostReadSlices) => {
|
|
60
59
|
total: number;
|
|
@@ -139,7 +138,6 @@ export declare const selectUserTodoCounts: (conversationId: string) => ((state:
|
|
|
139
138
|
proposedDirectives: import("../../redux/proposed-directives/proposedDirectivesSlice.js").ProposedDirectivesState;
|
|
140
139
|
agentSettings: import("../../redux/agent-settings/types.js").AgentSettingsState;
|
|
141
140
|
conversationAttachments: import("../../connectors/attachments.slice.js").AttachmentsSliceState;
|
|
142
|
-
modelRegistry: import("../../model-registry/modelRegistrySlice.js").ModelRegistryState;
|
|
143
141
|
chatHost: import("../../../store/chat-host.slice.js").ChatHostState;
|
|
144
142
|
} & import("../../../store/root-state.js").ChatHostReadSlices) => {
|
|
145
143
|
total: number;
|
package/dist/host/db-types.d.ts
CHANGED
|
@@ -14049,6 +14049,48 @@ export type ChatDatabase = {
|
|
|
14049
14049
|
}
|
|
14050
14050
|
];
|
|
14051
14051
|
};
|
|
14052
|
+
access_shadow_log: {
|
|
14053
|
+
Row: {
|
|
14054
|
+
at: string;
|
|
14055
|
+
caller: string;
|
|
14056
|
+
compared: number | null;
|
|
14057
|
+
disagreed: number | null;
|
|
14058
|
+
error: string | null;
|
|
14059
|
+
id: string;
|
|
14060
|
+
level: string;
|
|
14061
|
+
new_answer: boolean | null;
|
|
14062
|
+
old_answer: boolean | null;
|
|
14063
|
+
person: string;
|
|
14064
|
+
target: string | null;
|
|
14065
|
+
};
|
|
14066
|
+
Insert: {
|
|
14067
|
+
at?: string;
|
|
14068
|
+
caller: string;
|
|
14069
|
+
compared?: number | null;
|
|
14070
|
+
disagreed?: number | null;
|
|
14071
|
+
error?: string | null;
|
|
14072
|
+
id?: string;
|
|
14073
|
+
level: string;
|
|
14074
|
+
new_answer?: boolean | null;
|
|
14075
|
+
old_answer?: boolean | null;
|
|
14076
|
+
person: string;
|
|
14077
|
+
target?: string | null;
|
|
14078
|
+
};
|
|
14079
|
+
Update: {
|
|
14080
|
+
at?: string;
|
|
14081
|
+
caller?: string;
|
|
14082
|
+
compared?: number | null;
|
|
14083
|
+
disagreed?: number | null;
|
|
14084
|
+
error?: string | null;
|
|
14085
|
+
id?: string;
|
|
14086
|
+
level?: string;
|
|
14087
|
+
new_answer?: boolean | null;
|
|
14088
|
+
old_answer?: boolean | null;
|
|
14089
|
+
person?: string;
|
|
14090
|
+
target?: string | null;
|
|
14091
|
+
};
|
|
14092
|
+
Relationships: [];
|
|
14093
|
+
};
|
|
14052
14094
|
account_closure: {
|
|
14053
14095
|
Row: {
|
|
14054
14096
|
closed_at: string;
|
|
@@ -16511,12 +16553,6 @@ export type ChatDatabase = {
|
|
|
16511
16553
|
};
|
|
16512
16554
|
Returns: string;
|
|
16513
16555
|
};
|
|
16514
|
-
default_organization_id: {
|
|
16515
|
-
Args: {
|
|
16516
|
-
p_user_id: string;
|
|
16517
|
-
};
|
|
16518
|
-
Returns: string;
|
|
16519
|
-
};
|
|
16520
16556
|
derive_organization_abbreviation: {
|
|
16521
16557
|
Args: {
|
|
16522
16558
|
p_name: string;
|
|
@@ -16813,6 +16849,31 @@ export type ChatDatabase = {
|
|
|
16813
16849
|
};
|
|
16814
16850
|
Returns: boolean;
|
|
16815
16851
|
};
|
|
16852
|
+
has_access_for_many: {
|
|
16853
|
+
Args: {
|
|
16854
|
+
p_level: string;
|
|
16855
|
+
p_person: string;
|
|
16856
|
+
p_targets: string[];
|
|
16857
|
+
p_type?: string;
|
|
16858
|
+
};
|
|
16859
|
+
Returns: {
|
|
16860
|
+
allowed: boolean;
|
|
16861
|
+
target: string;
|
|
16862
|
+
}[];
|
|
16863
|
+
};
|
|
16864
|
+
has_access_for_shadow: {
|
|
16865
|
+
Args: {
|
|
16866
|
+
p_caller?: string;
|
|
16867
|
+
p_level: string;
|
|
16868
|
+
p_person: string;
|
|
16869
|
+
p_targets: string[];
|
|
16870
|
+
p_type?: string;
|
|
16871
|
+
};
|
|
16872
|
+
Returns: {
|
|
16873
|
+
allowed: boolean;
|
|
16874
|
+
target: string;
|
|
16875
|
+
}[];
|
|
16876
|
+
};
|
|
16816
16877
|
has_org_access: {
|
|
16817
16878
|
Args: {
|
|
16818
16879
|
p_org: string;
|
|
@@ -16924,6 +16985,12 @@ export type ChatDatabase = {
|
|
|
16924
16985
|
Args: never;
|
|
16925
16986
|
Returns: boolean;
|
|
16926
16987
|
};
|
|
16988
|
+
kernel_shadow_on: {
|
|
16989
|
+
Args: {
|
|
16990
|
+
p_person: string;
|
|
16991
|
+
};
|
|
16992
|
+
Returns: boolean;
|
|
16993
|
+
};
|
|
16927
16994
|
lane_of: {
|
|
16928
16995
|
Args: {
|
|
16929
16996
|
p_resource_id: string;
|
|
@@ -22497,6 +22564,108 @@ export type ChatDatabase = {
|
|
|
22497
22564
|
};
|
|
22498
22565
|
Relationships: [];
|
|
22499
22566
|
};
|
|
22567
|
+
device_handoff: {
|
|
22568
|
+
Row: {
|
|
22569
|
+
completed_at: string | null;
|
|
22570
|
+
created_at: string;
|
|
22571
|
+
created_by: string | null;
|
|
22572
|
+
deleted_at: string | null;
|
|
22573
|
+
envelope_id: string | null;
|
|
22574
|
+
expires_at: string;
|
|
22575
|
+
id: string;
|
|
22576
|
+
ip: unknown;
|
|
22577
|
+
metadata: Json;
|
|
22578
|
+
method: string | null;
|
|
22579
|
+
opened_at: string | null;
|
|
22580
|
+
organization_id: string;
|
|
22581
|
+
phone_last4: string | null;
|
|
22582
|
+
published_to_web: boolean;
|
|
22583
|
+
published_to_web_at: string | null;
|
|
22584
|
+
published_to_web_by: string | null;
|
|
22585
|
+
purpose: string;
|
|
22586
|
+
result_file_id: string | null;
|
|
22587
|
+
secret_hash: string;
|
|
22588
|
+
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
22589
|
+
status: string;
|
|
22590
|
+
strokes: Json | null;
|
|
22591
|
+
subject_id: string | null;
|
|
22592
|
+
subject_type: string | null;
|
|
22593
|
+
target: string | null;
|
|
22594
|
+
texts_sent: number;
|
|
22595
|
+
updated_at: string;
|
|
22596
|
+
updated_by: string | null;
|
|
22597
|
+
user_agent: string | null;
|
|
22598
|
+
version: number;
|
|
22599
|
+
visibility: Database["platform"]["Enums"]["visibility"];
|
|
22600
|
+
};
|
|
22601
|
+
Insert: {
|
|
22602
|
+
completed_at?: string | null;
|
|
22603
|
+
created_at?: string;
|
|
22604
|
+
created_by?: string | null;
|
|
22605
|
+
deleted_at?: string | null;
|
|
22606
|
+
envelope_id?: string | null;
|
|
22607
|
+
expires_at: string;
|
|
22608
|
+
id?: string;
|
|
22609
|
+
ip?: unknown;
|
|
22610
|
+
metadata?: Json;
|
|
22611
|
+
method?: string | null;
|
|
22612
|
+
opened_at?: string | null;
|
|
22613
|
+
organization_id: string;
|
|
22614
|
+
phone_last4?: string | null;
|
|
22615
|
+
published_to_web?: boolean;
|
|
22616
|
+
published_to_web_at?: string | null;
|
|
22617
|
+
published_to_web_by?: string | null;
|
|
22618
|
+
purpose: string;
|
|
22619
|
+
result_file_id?: string | null;
|
|
22620
|
+
secret_hash: string;
|
|
22621
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
22622
|
+
status?: string;
|
|
22623
|
+
strokes?: Json | null;
|
|
22624
|
+
subject_id?: string | null;
|
|
22625
|
+
subject_type?: string | null;
|
|
22626
|
+
target?: string | null;
|
|
22627
|
+
texts_sent?: number;
|
|
22628
|
+
updated_at?: string;
|
|
22629
|
+
updated_by?: string | null;
|
|
22630
|
+
user_agent?: string | null;
|
|
22631
|
+
version?: number;
|
|
22632
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
22633
|
+
};
|
|
22634
|
+
Update: {
|
|
22635
|
+
completed_at?: string | null;
|
|
22636
|
+
created_at?: string;
|
|
22637
|
+
created_by?: string | null;
|
|
22638
|
+
deleted_at?: string | null;
|
|
22639
|
+
envelope_id?: string | null;
|
|
22640
|
+
expires_at?: string;
|
|
22641
|
+
id?: string;
|
|
22642
|
+
ip?: unknown;
|
|
22643
|
+
metadata?: Json;
|
|
22644
|
+
method?: string | null;
|
|
22645
|
+
opened_at?: string | null;
|
|
22646
|
+
organization_id?: string;
|
|
22647
|
+
phone_last4?: string | null;
|
|
22648
|
+
published_to_web?: boolean;
|
|
22649
|
+
published_to_web_at?: string | null;
|
|
22650
|
+
published_to_web_by?: string | null;
|
|
22651
|
+
purpose?: string;
|
|
22652
|
+
result_file_id?: string | null;
|
|
22653
|
+
secret_hash?: string;
|
|
22654
|
+
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
22655
|
+
status?: string;
|
|
22656
|
+
strokes?: Json | null;
|
|
22657
|
+
subject_id?: string | null;
|
|
22658
|
+
subject_type?: string | null;
|
|
22659
|
+
target?: string | null;
|
|
22660
|
+
texts_sent?: number;
|
|
22661
|
+
updated_at?: string;
|
|
22662
|
+
updated_by?: string | null;
|
|
22663
|
+
user_agent?: string | null;
|
|
22664
|
+
version?: number;
|
|
22665
|
+
visibility?: Database["platform"]["Enums"]["visibility"];
|
|
22666
|
+
};
|
|
22667
|
+
Relationships: [];
|
|
22668
|
+
};
|
|
22500
22669
|
domain_classification: {
|
|
22501
22670
|
Row: {
|
|
22502
22671
|
authority: number | null;
|
|
@@ -25264,6 +25433,7 @@ export type ChatDatabase = {
|
|
|
25264
25433
|
published_to_web_by: string | null;
|
|
25265
25434
|
readable_columns: string[];
|
|
25266
25435
|
resource: string;
|
|
25436
|
+
session_sliding: boolean;
|
|
25267
25437
|
session_ttl_minutes: number;
|
|
25268
25438
|
shown_to: Database["platform"]["Enums"]["shown_to"] | null;
|
|
25269
25439
|
updated_at: string;
|
|
@@ -25297,6 +25467,7 @@ export type ChatDatabase = {
|
|
|
25297
25467
|
published_to_web_by?: string | null;
|
|
25298
25468
|
readable_columns?: string[];
|
|
25299
25469
|
resource: string;
|
|
25470
|
+
session_sliding?: boolean;
|
|
25300
25471
|
session_ttl_minutes?: number;
|
|
25301
25472
|
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
25302
25473
|
updated_at?: string;
|
|
@@ -25330,6 +25501,7 @@ export type ChatDatabase = {
|
|
|
25330
25501
|
published_to_web_by?: string | null;
|
|
25331
25502
|
readable_columns?: string[];
|
|
25332
25503
|
resource?: string;
|
|
25504
|
+
session_sliding?: boolean;
|
|
25333
25505
|
session_ttl_minutes?: number;
|
|
25334
25506
|
shown_to?: Database["platform"]["Enums"]["shown_to"] | null;
|
|
25335
25507
|
updated_at?: string;
|
|
@@ -28027,6 +28199,13 @@ export type ChatDatabase = {
|
|
|
28027
28199
|
};
|
|
28028
28200
|
Returns: Json;
|
|
28029
28201
|
};
|
|
28202
|
+
_device_handoff_live: {
|
|
28203
|
+
Args: {
|
|
28204
|
+
p_expires_at: string;
|
|
28205
|
+
p_status: string;
|
|
28206
|
+
};
|
|
28207
|
+
Returns: boolean;
|
|
28208
|
+
};
|
|
28030
28209
|
_door_follows_its_function_impl: {
|
|
28031
28210
|
Args: {
|
|
28032
28211
|
p_schemas: string[];
|
|
@@ -30030,6 +30209,64 @@ export type ChatDatabase = {
|
|
|
30030
30209
|
type_value: string;
|
|
30031
30210
|
}[];
|
|
30032
30211
|
};
|
|
30212
|
+
device_handoff_cancel: {
|
|
30213
|
+
Args: {
|
|
30214
|
+
p_handoff_id: string;
|
|
30215
|
+
p_subject_id: string;
|
|
30216
|
+
};
|
|
30217
|
+
Returns: Json;
|
|
30218
|
+
};
|
|
30219
|
+
device_handoff_complete: {
|
|
30220
|
+
Args: {
|
|
30221
|
+
p_image_file_id: string;
|
|
30222
|
+
p_ip: unknown;
|
|
30223
|
+
p_method: string;
|
|
30224
|
+
p_secret: string;
|
|
30225
|
+
p_strokes: Json;
|
|
30226
|
+
p_ua: string;
|
|
30227
|
+
};
|
|
30228
|
+
Returns: Json;
|
|
30229
|
+
};
|
|
30230
|
+
device_handoff_open: {
|
|
30231
|
+
Args: {
|
|
30232
|
+
p_ip: unknown;
|
|
30233
|
+
p_secret: string;
|
|
30234
|
+
p_ua: string;
|
|
30235
|
+
};
|
|
30236
|
+
Returns: Json;
|
|
30237
|
+
};
|
|
30238
|
+
device_handoff_start: {
|
|
30239
|
+
Args: {
|
|
30240
|
+
p_envelope_id: string;
|
|
30241
|
+
p_organization_id: string;
|
|
30242
|
+
p_path: string;
|
|
30243
|
+
p_purpose: string;
|
|
30244
|
+
p_subject_id: string;
|
|
30245
|
+
p_subject_type: string;
|
|
30246
|
+
p_target: string;
|
|
30247
|
+
p_ttl_minutes: number;
|
|
30248
|
+
};
|
|
30249
|
+
Returns: Json;
|
|
30250
|
+
};
|
|
30251
|
+
device_handoff_status: {
|
|
30252
|
+
Args: {
|
|
30253
|
+
p_handoff_id: string;
|
|
30254
|
+
p_subject_id: string;
|
|
30255
|
+
};
|
|
30256
|
+
Returns: Json;
|
|
30257
|
+
};
|
|
30258
|
+
device_handoff_text: {
|
|
30259
|
+
Args: {
|
|
30260
|
+
p_handoff_id: string;
|
|
30261
|
+
p_ip: unknown;
|
|
30262
|
+
p_per_ip_per_day: number;
|
|
30263
|
+
p_per_subject: number;
|
|
30264
|
+
p_phone: string;
|
|
30265
|
+
p_secret: string;
|
|
30266
|
+
p_subject_id: string;
|
|
30267
|
+
};
|
|
30268
|
+
Returns: Json;
|
|
30269
|
+
};
|
|
30033
30270
|
doctrine_shape_vocabulary: {
|
|
30034
30271
|
Args: never;
|
|
30035
30272
|
Returns: {
|
|
@@ -30487,10 +30724,18 @@ export type ChatDatabase = {
|
|
|
30487
30724
|
Args: never;
|
|
30488
30725
|
Returns: Json;
|
|
30489
30726
|
};
|
|
30727
|
+
kernel_fingerprint_status: {
|
|
30728
|
+
Args: never;
|
|
30729
|
+
Returns: Json;
|
|
30730
|
+
};
|
|
30490
30731
|
kernel_fixture_tokens: {
|
|
30491
30732
|
Args: never;
|
|
30492
30733
|
Returns: string[];
|
|
30493
30734
|
};
|
|
30735
|
+
kernel_follow_now: {
|
|
30736
|
+
Args: never;
|
|
30737
|
+
Returns: Json;
|
|
30738
|
+
};
|
|
30494
30739
|
knob_archive: {
|
|
30495
30740
|
Args: {
|
|
30496
30741
|
p_feature: string;
|
|
@@ -50930,12 +51175,13 @@ export type ChatDatabase = {
|
|
|
50930
51175
|
created_at: string;
|
|
50931
51176
|
created_by: string | null;
|
|
50932
51177
|
custom_fields: Json;
|
|
50933
|
-
default_organization_id: string | null;
|
|
50934
51178
|
deleted_at: string | null;
|
|
50935
51179
|
id: string;
|
|
51180
|
+
last_active_organization_id: string | null;
|
|
50936
51181
|
metadata: Json;
|
|
50937
51182
|
organization_id: string;
|
|
50938
51183
|
preferences: Json;
|
|
51184
|
+
startup_organization_id: string | null;
|
|
50939
51185
|
updated_at: string;
|
|
50940
51186
|
updated_by: string | null;
|
|
50941
51187
|
user_id: string;
|
|
@@ -50946,12 +51192,13 @@ export type ChatDatabase = {
|
|
|
50946
51192
|
created_at?: string;
|
|
50947
51193
|
created_by?: string | null;
|
|
50948
51194
|
custom_fields?: Json;
|
|
50949
|
-
default_organization_id?: string | null;
|
|
50950
51195
|
deleted_at?: string | null;
|
|
50951
51196
|
id?: string;
|
|
51197
|
+
last_active_organization_id?: string | null;
|
|
50952
51198
|
metadata?: Json;
|
|
50953
51199
|
organization_id: string;
|
|
50954
51200
|
preferences: Json;
|
|
51201
|
+
startup_organization_id?: string | null;
|
|
50955
51202
|
updated_at?: string;
|
|
50956
51203
|
updated_by?: string | null;
|
|
50957
51204
|
user_id: string;
|
|
@@ -50962,12 +51209,13 @@ export type ChatDatabase = {
|
|
|
50962
51209
|
created_at?: string;
|
|
50963
51210
|
created_by?: string | null;
|
|
50964
51211
|
custom_fields?: Json;
|
|
50965
|
-
default_organization_id?: string | null;
|
|
50966
51212
|
deleted_at?: string | null;
|
|
50967
51213
|
id?: string;
|
|
51214
|
+
last_active_organization_id?: string | null;
|
|
50968
51215
|
metadata?: Json;
|
|
50969
51216
|
organization_id?: string;
|
|
50970
51217
|
preferences?: Json;
|
|
51218
|
+
startup_organization_id?: string | null;
|
|
50971
51219
|
updated_at?: string;
|
|
50972
51220
|
updated_by?: string | null;
|
|
50973
51221
|
user_id?: string;
|
|
@@ -51303,6 +51551,13 @@ export type ChatDatabase = {
|
|
|
51303
51551
|
[_ in never]: never;
|
|
51304
51552
|
};
|
|
51305
51553
|
Functions: {
|
|
51554
|
+
_set_own_organization_choice: {
|
|
51555
|
+
Args: {
|
|
51556
|
+
p_column: string;
|
|
51557
|
+
p_organization_id: string;
|
|
51558
|
+
};
|
|
51559
|
+
Returns: string;
|
|
51560
|
+
};
|
|
51306
51561
|
admin_account_facts: {
|
|
51307
51562
|
Args: never;
|
|
51308
51563
|
Returns: {
|
|
@@ -51408,6 +51663,12 @@ export type ChatDatabase = {
|
|
|
51408
51663
|
vault_access: string;
|
|
51409
51664
|
}[];
|
|
51410
51665
|
};
|
|
51666
|
+
set_last_active_organization: {
|
|
51667
|
+
Args: {
|
|
51668
|
+
p_organization_id: string;
|
|
51669
|
+
};
|
|
51670
|
+
Returns: string;
|
|
51671
|
+
};
|
|
51411
51672
|
set_organization_vault_access: {
|
|
51412
51673
|
Args: {
|
|
51413
51674
|
p_access: string;
|
|
@@ -51417,6 +51678,12 @@ export type ChatDatabase = {
|
|
|
51417
51678
|
};
|
|
51418
51679
|
Returns: string;
|
|
51419
51680
|
};
|
|
51681
|
+
set_startup_organization: {
|
|
51682
|
+
Args: {
|
|
51683
|
+
p_organization_id: string;
|
|
51684
|
+
};
|
|
51685
|
+
Returns: string;
|
|
51686
|
+
};
|
|
51420
51687
|
user_preferences_drift_report: {
|
|
51421
51688
|
Args: never;
|
|
51422
51689
|
Returns: {
|
|
@@ -50,7 +50,6 @@ export declare function createChatStore(preloadedState?: Partial<ChatState>, opt
|
|
|
50
50
|
proposedDirectives: import("../agents/redux/proposed-directives/proposedDirectivesSlice.js").ProposedDirectivesState;
|
|
51
51
|
agentSettings: import("../agents/redux/agent-settings/types.js").AgentSettingsState;
|
|
52
52
|
conversationAttachments: import("../agents/connectors/attachments.slice.js").AttachmentsSliceState;
|
|
53
|
-
modelRegistry: import("../agents/model-registry/modelRegistrySlice.js").ModelRegistryState;
|
|
54
53
|
chatHost: import("./chat-host.slice.js").ChatHostState;
|
|
55
54
|
cloudFiles: import("@ai-matrx/media/files/engine").CloudFilesState;
|
|
56
55
|
}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
@@ -96,7 +95,6 @@ export declare function createChatStore(preloadedState?: Partial<ChatState>, opt
|
|
|
96
95
|
proposedDirectives: import("../agents/redux/proposed-directives/proposedDirectivesSlice.js").ProposedDirectivesState;
|
|
97
96
|
agentSettings: import("../agents/redux/agent-settings/types.js").AgentSettingsState;
|
|
98
97
|
conversationAttachments: import("../agents/connectors/attachments.slice.js").AttachmentsSliceState;
|
|
99
|
-
modelRegistry: import("../agents/model-registry/modelRegistrySlice.js").ModelRegistryState;
|
|
100
98
|
chatHost: import("./chat-host.slice.js").ChatHostState;
|
|
101
99
|
cloudFiles: import("@ai-matrx/media/files/engine").CloudFilesState;
|
|
102
100
|
}, undefined, import("redux").UnknownAction>;
|
|
@@ -41,7 +41,6 @@ export declare function chatMiddlewares(): readonly [Middleware<{}, any, import(
|
|
|
41
41
|
proposedDirectives: import("../agents/redux/proposed-directives/proposedDirectivesSlice.js").ProposedDirectivesState;
|
|
42
42
|
agentSettings: import("../agents/redux/agent-settings/types.js").AgentSettingsState;
|
|
43
43
|
conversationAttachments: import("../agents/connectors/attachments.slice.js").AttachmentsSliceState;
|
|
44
|
-
modelRegistry: import("../agents/model-registry/modelRegistrySlice.js").ModelRegistryState;
|
|
45
44
|
chatHost: import("./chat-host.slice.js").ChatHostState;
|
|
46
45
|
} & import("./root-state.js").ChatHostReadSlices, import("redux").Dispatch<import("redux").UnknownAction>>, Middleware<Record<string, never>, {
|
|
47
46
|
voiceAgent: import("../voice-agent/types.js").VoiceAgentState;
|
|
@@ -85,7 +84,6 @@ export declare function chatMiddlewares(): readonly [Middleware<{}, any, import(
|
|
|
85
84
|
proposedDirectives: import("../agents/redux/proposed-directives/proposedDirectivesSlice.js").ProposedDirectivesState;
|
|
86
85
|
agentSettings: import("../agents/redux/agent-settings/types.js").AgentSettingsState;
|
|
87
86
|
conversationAttachments: import("../agents/connectors/attachments.slice.js").AttachmentsSliceState;
|
|
88
|
-
modelRegistry: import("../agents/model-registry/modelRegistrySlice.js").ModelRegistryState;
|
|
89
87
|
chatHost: import("./chat-host.slice.js").ChatHostState;
|
|
90
88
|
} & import("./root-state.js").ChatHostReadSlices, import("redux").Dispatch<import("redux").UnknownAction>>, Middleware<object, {
|
|
91
89
|
voiceAgent: import("../voice-agent/types.js").VoiceAgentState;
|
|
@@ -129,7 +127,6 @@ export declare function chatMiddlewares(): readonly [Middleware<{}, any, import(
|
|
|
129
127
|
proposedDirectives: import("../agents/redux/proposed-directives/proposedDirectivesSlice.js").ProposedDirectivesState;
|
|
130
128
|
agentSettings: import("../agents/redux/agent-settings/types.js").AgentSettingsState;
|
|
131
129
|
conversationAttachments: import("../agents/connectors/attachments.slice.js").AttachmentsSliceState;
|
|
132
|
-
modelRegistry: import("../agents/model-registry/modelRegistrySlice.js").ModelRegistryState;
|
|
133
130
|
chatHost: import("./chat-host.slice.js").ChatHostState;
|
|
134
131
|
} & import("./root-state.js").ChatHostReadSlices, import("redux").Dispatch<import("redux").UnknownAction>>, Middleware<object, {
|
|
135
132
|
voiceAgent: import("../voice-agent/types.js").VoiceAgentState;
|
|
@@ -173,7 +170,6 @@ export declare function chatMiddlewares(): readonly [Middleware<{}, any, import(
|
|
|
173
170
|
proposedDirectives: import("../agents/redux/proposed-directives/proposedDirectivesSlice.js").ProposedDirectivesState;
|
|
174
171
|
agentSettings: import("../agents/redux/agent-settings/types.js").AgentSettingsState;
|
|
175
172
|
conversationAttachments: import("../agents/connectors/attachments.slice.js").AttachmentsSliceState;
|
|
176
|
-
modelRegistry: import("../agents/model-registry/modelRegistrySlice.js").ModelRegistryState;
|
|
177
173
|
chatHost: import("./chat-host.slice.js").ChatHostState;
|
|
178
174
|
} & import("./root-state.js").ChatHostReadSlices, import("redux").Dispatch<import("redux").UnknownAction>>, Middleware<object, {
|
|
179
175
|
voiceAgent: import("../voice-agent/types.js").VoiceAgentState;
|
|
@@ -217,6 +213,5 @@ export declare function chatMiddlewares(): readonly [Middleware<{}, any, import(
|
|
|
217
213
|
proposedDirectives: import("../agents/redux/proposed-directives/proposedDirectivesSlice.js").ProposedDirectivesState;
|
|
218
214
|
agentSettings: import("../agents/redux/agent-settings/types.js").AgentSettingsState;
|
|
219
215
|
conversationAttachments: import("../agents/connectors/attachments.slice.js").AttachmentsSliceState;
|
|
220
|
-
modelRegistry: import("../agents/model-registry/modelRegistrySlice.js").ModelRegistryState;
|
|
221
216
|
chatHost: import("./chat-host.slice.js").ChatHostState;
|
|
222
217
|
} & import("./root-state.js").ChatHostReadSlices, import("redux").Dispatch<import("redux").UnknownAction>>];
|
package/dist/store/slices.d.ts
CHANGED
|
@@ -40,7 +40,6 @@ export declare const chatReducers: {
|
|
|
40
40
|
proposedDirectives: import("redux").Reducer<import("../agents/redux/proposed-directives/proposedDirectivesSlice.js").ProposedDirectivesState>;
|
|
41
41
|
agentSettings: import("redux").Reducer<import("../agents/redux/agent-settings/types.js").AgentSettingsState>;
|
|
42
42
|
conversationAttachments: import("redux").Reducer<import("../agents/connectors/attachments.slice.js").AttachmentsSliceState>;
|
|
43
|
-
modelRegistry: import("redux").Reducer<import("../agents/model-registry/modelRegistrySlice.js").ModelRegistryState>;
|
|
44
43
|
chatHost: import("redux").Reducer<import("./chat-host.slice.js").ChatHostState>;
|
|
45
44
|
};
|
|
46
45
|
export type ChatReducers = typeof chatReducers;
|
package/dist/store/slices.js
CHANGED
|
@@ -39,7 +39,6 @@ import agentAssistantMarkdownDraftReducer from "../agents/redux/agent-assistant-
|
|
|
39
39
|
import proposedDirectivesReducer from "../agents/redux/proposed-directives/proposedDirectivesSlice.js";
|
|
40
40
|
import agentSettingsReducer from "../agents/redux/agent-settings/agentSettingsSlice.js";
|
|
41
41
|
import conversationAttachmentsReducer from "../agents/connectors/attachments.slice.js";
|
|
42
|
-
import modelRegistryReducer from "../agents/model-registry/modelRegistrySlice.js";
|
|
43
42
|
import { chatHostReducer } from "./chat-host.slice.js";
|
|
44
43
|
const chatReducers = {
|
|
45
44
|
voiceAgent: voiceAgentReducer,
|
|
@@ -89,7 +88,6 @@ const chatReducers = {
|
|
|
89
88
|
// What is attached to each chat (connector picks); package-owned since P17.
|
|
90
89
|
conversationAttachments: conversationAttachmentsReducer,
|
|
91
90
|
// The AI model catalogue every picker and label reads; package-owned since P17b.
|
|
92
|
-
modelRegistry: modelRegistryReducer,
|
|
93
91
|
// Host state the package reads (identity, active org, server, prefs), synced by <ChatProvider> (P3).
|
|
94
92
|
chatHost: chatHostReducer
|
|
95
93
|
};
|