@happyvertical/smrt-chat 0.60.9 → 0.60.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chat-stream-DShxzl3C.js → chat-stream-lnzfyqWp.js} +2 -2
- package/dist/chunks/chat-stream-lnzfyqWp.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/manifest.json +129 -33
- package/dist/smrt-knowledge.json +3 -3
- package/dist/smrt-knowledge.okf.md +138 -0
- package/dist/sveltekit.js +1 -1
- package/package.json +21 -21
- package/dist/chunks/chat-stream-DShxzl3C.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as ChatThread, d as ChatParticipant, f as ChatMessage, i as clientRequestMessageId, l as ChatRoom, n as ChatService, o as VoiceSessionCollection, p as AgentSession, s as VoiceSession, t as ChatClientRequestConflictError, u as ChatReaction } from "./chunks/ChatService-BGBAqmZq.js";
|
|
2
|
-
import { $ as isFallbackReply, A as DEFAULT_EMPTY_ANSWER_FALLBACK, B as MAX_SERVER_TOOL_OBSERVATION_CHARS, C as DEFAULT_CONTINUATION_TTL_MS, D as createSessionContinuationStore, E as createMemoryContinuationStore, F as MAX_CLIENT_TOOLS, G as TOOL_CALL_DEDUPED_REJECTED_NOTE, H as MAX_TOOL_LOOP_REASONING_CHARS, I as MAX_CLIENT_TOOL_RESULT_CHARS, J as TOOL_LOOP_REPEATED_CALLS_INSTRUCTION, K as TOOL_EXECUTION_ERROR_HINT, L as MAX_CLIENT_TOOL_SCHEMA_BYTES, M as DEFAULT_MAX_STEPS, N as FALLBACK_HISTORY_PLACEHOLDER, O as runAssistantTurn, P as FALLBACK_REPLY_METADATA_KEY, Q as invokeManifestTool, R as MAX_DEDUPED_CALLS_PER_TURN, S as DEFAULT_ASSISTANT_TURN_HEARTBEAT_MS, T as createAssistantTurnResponse, U as SERVER_TOOL_OBSERVATION_TRUNCATED_MARKER, V as MAX_TOOL_FAILURE_ARGS_CHARS, W as TOOL_CALL_DEDUPED_NOTE, X as buildManifestToolCatalog, Y as appendClientToolResults, Z as classifyToolError, _ as resolveConversationInstructions, a as DEFAULT_CHAT_STREAM_HEARTBEAT_MS, at as sanitizeClientToolDeclarations, b as AssistantTurnUserError, c as createChatStreamHandler, ct as RUNTIME_REPORT_DEFINE_FUNCTION_NAME, d as bindPersonaToSession, dt as RUNTIME_REPORT_LIST_TOOL_SLUG, et as manifestToolToAITool, f as conversationPersonaFromAgentPersona, ft as RUNTIME_REPORT_RUN_FUNCTION_NAME, g as recallPersonaMemory, gt as createRuntimeReportTools, h as principalBindingFor, ht as RUNTIME_REPORT_SOURCES_TOOL_SLUG, i as ChatStreamUnauthorizedError, it as runToolLoop, j as DEFAULT_MAX_REPEATED_CALLS, k as CLIENT_TOOL_RESULT_GUIDANCE, l as encodeChatStreamEvent, lt as RUNTIME_REPORT_DEFINE_TOOL_SLUG, m as formatRecalledMemory, mt as RUNTIME_REPORT_SOURCES_FUNCTION_NAME, n as ChatStreamBadRequestError, nt as replyMetadataFor, o as MAX_CHAT_STREAM_CONTENT_LENGTH, ot as toolFailureAuditMetadata, p as conversationPersonaFromResolved, pt as RUNTIME_REPORT_RUN_TOOL_SLUG, q as TOOL_LOOP_ANSWER_NOW_INSTRUCTION, r as ChatStreamError, rt as resolveTurnReply, s as MAX_CHAT_STREAM_MESSAGES, st as toolFailureRecord, t as CHAT_STREAM_TIMEOUT_ERROR, tt as replyContentFor, u as runChatConversationStream, ut as RUNTIME_REPORT_LIST_FUNCTION_NAME, v as runPersonaConversationTurn, w as SESSION_CONTINUATIONS_FIELD, x as CONTINUATION_CLAIM_TTL_MS, y as ASSISTANT_TURN_GENERIC_ERROR, z as MAX_REPEATED_CALLS_LIMIT } from "./chunks/chat-stream-
|
|
2
|
+
import { $ as isFallbackReply, A as DEFAULT_EMPTY_ANSWER_FALLBACK, B as MAX_SERVER_TOOL_OBSERVATION_CHARS, C as DEFAULT_CONTINUATION_TTL_MS, D as createSessionContinuationStore, E as createMemoryContinuationStore, F as MAX_CLIENT_TOOLS, G as TOOL_CALL_DEDUPED_REJECTED_NOTE, H as MAX_TOOL_LOOP_REASONING_CHARS, I as MAX_CLIENT_TOOL_RESULT_CHARS, J as TOOL_LOOP_REPEATED_CALLS_INSTRUCTION, K as TOOL_EXECUTION_ERROR_HINT, L as MAX_CLIENT_TOOL_SCHEMA_BYTES, M as DEFAULT_MAX_STEPS, N as FALLBACK_HISTORY_PLACEHOLDER, O as runAssistantTurn, P as FALLBACK_REPLY_METADATA_KEY, Q as invokeManifestTool, R as MAX_DEDUPED_CALLS_PER_TURN, S as DEFAULT_ASSISTANT_TURN_HEARTBEAT_MS, T as createAssistantTurnResponse, U as SERVER_TOOL_OBSERVATION_TRUNCATED_MARKER, V as MAX_TOOL_FAILURE_ARGS_CHARS, W as TOOL_CALL_DEDUPED_NOTE, X as buildManifestToolCatalog, Y as appendClientToolResults, Z as classifyToolError, _ as resolveConversationInstructions, a as DEFAULT_CHAT_STREAM_HEARTBEAT_MS, at as sanitizeClientToolDeclarations, b as AssistantTurnUserError, c as createChatStreamHandler, ct as RUNTIME_REPORT_DEFINE_FUNCTION_NAME, d as bindPersonaToSession, dt as RUNTIME_REPORT_LIST_TOOL_SLUG, et as manifestToolToAITool, f as conversationPersonaFromAgentPersona, ft as RUNTIME_REPORT_RUN_FUNCTION_NAME, g as recallPersonaMemory, gt as createRuntimeReportTools, h as principalBindingFor, ht as RUNTIME_REPORT_SOURCES_TOOL_SLUG, i as ChatStreamUnauthorizedError, it as runToolLoop, j as DEFAULT_MAX_REPEATED_CALLS, k as CLIENT_TOOL_RESULT_GUIDANCE, l as encodeChatStreamEvent, lt as RUNTIME_REPORT_DEFINE_TOOL_SLUG, m as formatRecalledMemory, mt as RUNTIME_REPORT_SOURCES_FUNCTION_NAME, n as ChatStreamBadRequestError, nt as replyMetadataFor, o as MAX_CHAT_STREAM_CONTENT_LENGTH, ot as toolFailureAuditMetadata, p as conversationPersonaFromResolved, pt as RUNTIME_REPORT_RUN_TOOL_SLUG, q as TOOL_LOOP_ANSWER_NOW_INSTRUCTION, r as ChatStreamError, rt as resolveTurnReply, s as MAX_CHAT_STREAM_MESSAGES, st as toolFailureRecord, t as CHAT_STREAM_TIMEOUT_ERROR, tt as replyContentFor, u as runChatConversationStream, ut as RUNTIME_REPORT_LIST_FUNCTION_NAME, v as runPersonaConversationTurn, w as SESSION_CONTINUATIONS_FIELD, x as CONTINUATION_CLAIM_TTL_MS, y as ASSISTANT_TURN_GENERIC_ERROR, z as MAX_REPEATED_CALLS_LIMIT } from "./chunks/chat-stream-lnzfyqWp.js";
|
|
3
3
|
import { i as matchesToolAllowList, n as encodeAssistantTurnEvent, r as readAssistantTurnStream, t as AssistantTurnStreamError } from "./chunks/assistant-turn-events-BbZUf-Ju.js";
|
|
4
4
|
import { a as createServerDataSurfaceBridge, i as createDataSurfaceCommandBridge, n as DEFAULT_DATA_SURFACE_BRIDGE_TTL_MS, r as createDataSurfaceBridge, t as DATA_SURFACE_BRIDGE_VERSION } from "./chunks/data-surface-bridge-BJomMxjS.js";
|
|
5
5
|
import { HELPER_CLEARED_PREFERENCES, HELPER_PREFERENCES_VERSION, helperPreferenceFields, isHelperClearedPreferences, parseHelperPreferences } from "./helper-preferences.js";
|
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-chat",
|
|
5
|
-
"packageVersion": "0.60.
|
|
5
|
+
"packageVersion": "0.60.11",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-chat:AgentSessionCollection": {
|
|
8
8
|
"name": "agentsessioncollection",
|
|
@@ -155,8 +155,14 @@
|
|
|
155
155
|
],
|
|
156
156
|
"schema": {
|
|
157
157
|
"tableName": "agent_sessions",
|
|
158
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"agent_sessions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"agent_id\" TEXT NOT NULL DEFAULT '',\n \"agent_profile_id\" UUID,\n \"participant_profile_id\" UUID NOT NULL,\n \"chat_room_id\" UUID,\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"allowed_tools\" TEXT DEFAULT '[]',\n \"session_context\" TEXT DEFAULT '{}',\n \"system_prompt\" TEXT DEFAULT '',\n \"message_count\" INTEGER DEFAULT 0,\n \"total_tokens_used\" INTEGER DEFAULT 0,\n \"max_tokens\" INTEGER DEFAULT 0,\n \"max_messages\" INTEGER DEFAULT 0,\n \"last_message_at\" TIMESTAMP,\n \"expires_at\" TIMESTAMP,\n \"closed_at\" TIMESTAMP\n);",
|
|
158
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"agent_sessions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"agent_id\" TEXT NOT NULL DEFAULT '',\n \"agent_profile_id\" UUID,\n \"participant_profile_id\" UUID NOT NULL,\n \"chat_room_id\" UUID,\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"allowed_tools\" TEXT DEFAULT '[]',\n \"session_context\" TEXT DEFAULT '{}',\n \"system_prompt\" TEXT DEFAULT '',\n \"message_count\" INTEGER DEFAULT 0,\n \"total_tokens_used\" INTEGER DEFAULT 0,\n \"max_tokens\" INTEGER DEFAULT 0,\n \"max_messages\" INTEGER DEFAULT 0,\n \"last_message_at\" TIMESTAMP,\n \"expires_at\" TIMESTAMP,\n \"closed_at\" TIMESTAMP\n);",
|
|
159
159
|
"columns": {
|
|
160
|
+
"_sync_origin_device_id": {
|
|
161
|
+
"type": "TEXT"
|
|
162
|
+
},
|
|
163
|
+
"_sync_revision": {
|
|
164
|
+
"type": "INTEGER"
|
|
165
|
+
},
|
|
160
166
|
"id": {
|
|
161
167
|
"type": "UUID",
|
|
162
168
|
"primaryKey": true,
|
|
@@ -319,7 +325,7 @@
|
|
|
319
325
|
]
|
|
320
326
|
}
|
|
321
327
|
],
|
|
322
|
-
"version": "
|
|
328
|
+
"version": "0a330023"
|
|
323
329
|
},
|
|
324
330
|
"importPath": "@happyvertical/smrt-chat"
|
|
325
331
|
},
|
|
@@ -492,8 +498,14 @@
|
|
|
492
498
|
],
|
|
493
499
|
"schema": {
|
|
494
500
|
"tableName": "chat_messages",
|
|
495
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_messages\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"room_id\" UUID NOT NULL,\n \"thread_id\" UUID,\n \"sender_profile_id\" UUID NOT NULL,\n \"agent_session_id\" UUID,\n \"content\" TEXT DEFAULT '',\n \"message_type\" TEXT NOT NULL DEFAULT 'text',\n \"role\" TEXT NOT NULL DEFAULT 'user',\n \"is_edited\" BOOLEAN DEFAULT FALSE,\n \"edited_at\" TIMESTAMP,\n \"is_deleted\" BOOLEAN DEFAULT FALSE,\n \"reply_to_message_id\" UUID,\n \"metadata\" TEXT DEFAULT '{}',\n \"tool_call_data\" TEXT,\n \"attachments\" TEXT DEFAULT '[]'\n);",
|
|
501
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_messages\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"room_id\" UUID NOT NULL,\n \"thread_id\" UUID,\n \"sender_profile_id\" UUID NOT NULL,\n \"agent_session_id\" UUID,\n \"content\" TEXT DEFAULT '',\n \"message_type\" TEXT NOT NULL DEFAULT 'text',\n \"role\" TEXT NOT NULL DEFAULT 'user',\n \"is_edited\" BOOLEAN DEFAULT FALSE,\n \"edited_at\" TIMESTAMP,\n \"is_deleted\" BOOLEAN DEFAULT FALSE,\n \"reply_to_message_id\" UUID,\n \"metadata\" TEXT DEFAULT '{}',\n \"tool_call_data\" TEXT,\n \"attachments\" TEXT DEFAULT '[]'\n);",
|
|
496
502
|
"columns": {
|
|
503
|
+
"_sync_origin_device_id": {
|
|
504
|
+
"type": "TEXT"
|
|
505
|
+
},
|
|
506
|
+
"_sync_revision": {
|
|
507
|
+
"type": "INTEGER"
|
|
508
|
+
},
|
|
497
509
|
"id": {
|
|
498
510
|
"type": "UUID",
|
|
499
511
|
"primaryKey": true,
|
|
@@ -680,7 +692,7 @@
|
|
|
680
692
|
]
|
|
681
693
|
}
|
|
682
694
|
],
|
|
683
|
-
"version": "
|
|
695
|
+
"version": "83f829da"
|
|
684
696
|
},
|
|
685
697
|
"importPath": "@happyvertical/smrt-chat"
|
|
686
698
|
},
|
|
@@ -862,8 +874,14 @@
|
|
|
862
874
|
],
|
|
863
875
|
"schema": {
|
|
864
876
|
"tableName": "chat_participants",
|
|
865
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_participants\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"room_id\" UUID NOT NULL,\n \"profile_id\" UUID NOT NULL,\n \"role\" TEXT NOT NULL DEFAULT 'member',\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"online_status\" TEXT NOT NULL DEFAULT 'offline',\n \"last_read_message_id\" UUID,\n \"last_seen_at\" TIMESTAMP,\n \"joined_at\" TIMESTAMP,\n \"nickname\" TEXT DEFAULT '',\n \"is_muted\" BOOLEAN DEFAULT FALSE,\n \"is_pinned\" BOOLEAN DEFAULT FALSE\n);",
|
|
877
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_participants\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"room_id\" UUID NOT NULL,\n \"profile_id\" UUID NOT NULL,\n \"role\" TEXT NOT NULL DEFAULT 'member',\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"online_status\" TEXT NOT NULL DEFAULT 'offline',\n \"last_read_message_id\" UUID,\n \"last_seen_at\" TIMESTAMP,\n \"joined_at\" TIMESTAMP,\n \"nickname\" TEXT DEFAULT '',\n \"is_muted\" BOOLEAN DEFAULT FALSE,\n \"is_pinned\" BOOLEAN DEFAULT FALSE\n);",
|
|
866
878
|
"columns": {
|
|
879
|
+
"_sync_origin_device_id": {
|
|
880
|
+
"type": "TEXT"
|
|
881
|
+
},
|
|
882
|
+
"_sync_revision": {
|
|
883
|
+
"type": "INTEGER"
|
|
884
|
+
},
|
|
867
885
|
"id": {
|
|
868
886
|
"type": "UUID",
|
|
869
887
|
"primaryKey": true,
|
|
@@ -1008,7 +1026,7 @@
|
|
|
1008
1026
|
]
|
|
1009
1027
|
}
|
|
1010
1028
|
],
|
|
1011
|
-
"version": "
|
|
1029
|
+
"version": "166a9740"
|
|
1012
1030
|
},
|
|
1013
1031
|
"importPath": "@happyvertical/smrt-chat"
|
|
1014
1032
|
},
|
|
@@ -1105,8 +1123,14 @@
|
|
|
1105
1123
|
],
|
|
1106
1124
|
"schema": {
|
|
1107
1125
|
"tableName": "chat_reactions",
|
|
1108
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_reactions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"message_id\" UUID NOT NULL,\n \"profile_id\" UUID NOT NULL,\n \"emoji\" TEXT NOT NULL DEFAULT ''\n);",
|
|
1126
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_reactions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"message_id\" UUID NOT NULL,\n \"profile_id\" UUID NOT NULL,\n \"emoji\" TEXT NOT NULL DEFAULT ''\n);",
|
|
1109
1127
|
"columns": {
|
|
1128
|
+
"_sync_origin_device_id": {
|
|
1129
|
+
"type": "TEXT"
|
|
1130
|
+
},
|
|
1131
|
+
"_sync_revision": {
|
|
1132
|
+
"type": "INTEGER"
|
|
1133
|
+
},
|
|
1110
1134
|
"id": {
|
|
1111
1135
|
"type": "UUID",
|
|
1112
1136
|
"primaryKey": true,
|
|
@@ -1193,7 +1217,7 @@
|
|
|
1193
1217
|
]
|
|
1194
1218
|
}
|
|
1195
1219
|
],
|
|
1196
|
-
"version": "
|
|
1220
|
+
"version": "635cdbec"
|
|
1197
1221
|
},
|
|
1198
1222
|
"importPath": "@happyvertical/smrt-chat"
|
|
1199
1223
|
},
|
|
@@ -1322,8 +1346,14 @@
|
|
|
1322
1346
|
],
|
|
1323
1347
|
"schema": {
|
|
1324
1348
|
"tableName": "chat_rooms",
|
|
1325
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_rooms\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"room_type\" TEXT NOT NULL DEFAULT 'public',\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"topic\" TEXT DEFAULT '',\n \"avatar_url\" TEXT DEFAULT '',\n \"is_archived\" BOOLEAN DEFAULT FALSE,\n \"max_participants\" INTEGER DEFAULT 0,\n \"metadata\" TEXT DEFAULT '{}',\n \"created_by_profile_id\" UUID,\n \"last_message_at\" TIMESTAMP\n);",
|
|
1349
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_rooms\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"room_type\" TEXT NOT NULL DEFAULT 'public',\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"topic\" TEXT DEFAULT '',\n \"avatar_url\" TEXT DEFAULT '',\n \"is_archived\" BOOLEAN DEFAULT FALSE,\n \"max_participants\" INTEGER DEFAULT 0,\n \"metadata\" TEXT DEFAULT '{}',\n \"created_by_profile_id\" UUID,\n \"last_message_at\" TIMESTAMP\n);",
|
|
1326
1350
|
"columns": {
|
|
1351
|
+
"_sync_origin_device_id": {
|
|
1352
|
+
"type": "TEXT"
|
|
1353
|
+
},
|
|
1354
|
+
"_sync_revision": {
|
|
1355
|
+
"type": "INTEGER"
|
|
1356
|
+
},
|
|
1327
1357
|
"id": {
|
|
1328
1358
|
"type": "UUID",
|
|
1329
1359
|
"primaryKey": true,
|
|
@@ -1445,7 +1475,7 @@
|
|
|
1445
1475
|
]
|
|
1446
1476
|
}
|
|
1447
1477
|
],
|
|
1448
|
-
"version": "
|
|
1478
|
+
"version": "8093a86b"
|
|
1449
1479
|
},
|
|
1450
1480
|
"importPath": "@happyvertical/smrt-chat"
|
|
1451
1481
|
},
|
|
@@ -1521,8 +1551,14 @@
|
|
|
1521
1551
|
],
|
|
1522
1552
|
"schema": {
|
|
1523
1553
|
"tableName": "chat_threads",
|
|
1524
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_threads\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"room_id\" UUID NOT NULL,\n \"root_message_id\" UUID,\n \"title\" TEXT DEFAULT '',\n \"is_resolved\" BOOLEAN DEFAULT FALSE,\n \"message_count\" INTEGER DEFAULT 0,\n \"last_message_at\" TIMESTAMP,\n \"participant_count\" INTEGER DEFAULT 0\n);",
|
|
1554
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_threads\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"room_id\" UUID NOT NULL,\n \"root_message_id\" UUID,\n \"title\" TEXT DEFAULT '',\n \"is_resolved\" BOOLEAN DEFAULT FALSE,\n \"message_count\" INTEGER DEFAULT 0,\n \"last_message_at\" TIMESTAMP,\n \"participant_count\" INTEGER DEFAULT 0\n);",
|
|
1525
1555
|
"columns": {
|
|
1556
|
+
"_sync_origin_device_id": {
|
|
1557
|
+
"type": "TEXT"
|
|
1558
|
+
},
|
|
1559
|
+
"_sync_revision": {
|
|
1560
|
+
"type": "INTEGER"
|
|
1561
|
+
},
|
|
1526
1562
|
"id": {
|
|
1527
1563
|
"type": "UUID",
|
|
1528
1564
|
"primaryKey": true,
|
|
@@ -1638,7 +1674,7 @@
|
|
|
1638
1674
|
]
|
|
1639
1675
|
}
|
|
1640
1676
|
],
|
|
1641
|
-
"version": "
|
|
1677
|
+
"version": "a24026da"
|
|
1642
1678
|
},
|
|
1643
1679
|
"importPath": "@happyvertical/smrt-chat"
|
|
1644
1680
|
},
|
|
@@ -1697,8 +1733,14 @@
|
|
|
1697
1733
|
],
|
|
1698
1734
|
"schema": {
|
|
1699
1735
|
"tableName": "voice_gateway_turns",
|
|
1700
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"voice_gateway_turns\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"voice_session_id\" UUID NOT NULL,\n \"gateway_session_id\" TEXT NOT NULL DEFAULT '',\n \"gateway_turn_id\" TEXT NOT NULL DEFAULT '',\n \"target\" TEXT NOT NULL DEFAULT 'smrt:chat',\n \"status\" TEXT NOT NULL DEFAULT 'processing',\n \"completed_at\" TIMESTAMP,\n \"failed_at\" TIMESTAMP\n);",
|
|
1736
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"voice_gateway_turns\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"voice_session_id\" UUID NOT NULL,\n \"gateway_session_id\" TEXT NOT NULL DEFAULT '',\n \"gateway_turn_id\" TEXT NOT NULL DEFAULT '',\n \"target\" TEXT NOT NULL DEFAULT 'smrt:chat',\n \"status\" TEXT NOT NULL DEFAULT 'processing',\n \"completed_at\" TIMESTAMP,\n \"failed_at\" TIMESTAMP\n);",
|
|
1701
1737
|
"columns": {
|
|
1738
|
+
"_sync_origin_device_id": {
|
|
1739
|
+
"type": "TEXT"
|
|
1740
|
+
},
|
|
1741
|
+
"_sync_revision": {
|
|
1742
|
+
"type": "INTEGER"
|
|
1743
|
+
},
|
|
1702
1744
|
"id": {
|
|
1703
1745
|
"type": "UUID",
|
|
1704
1746
|
"primaryKey": true,
|
|
@@ -1801,7 +1843,7 @@
|
|
|
1801
1843
|
]
|
|
1802
1844
|
}
|
|
1803
1845
|
],
|
|
1804
|
-
"version": "
|
|
1846
|
+
"version": "993ad9ea"
|
|
1805
1847
|
},
|
|
1806
1848
|
"importPath": "@happyvertical/smrt-chat"
|
|
1807
1849
|
},
|
|
@@ -1883,8 +1925,14 @@
|
|
|
1883
1925
|
],
|
|
1884
1926
|
"schema": {
|
|
1885
1927
|
"tableName": "voice_sessions",
|
|
1886
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"voice_sessions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"gateway_session_id\" TEXT NOT NULL DEFAULT '',\n \"actor_profile_id\" UUID NOT NULL,\n \"actor_user_id\" UUID,\n \"persona_id\" UUID NOT NULL,\n \"agent_session_id\" UUID NOT NULL,\n \"chat_room_id\" UUID NOT NULL,\n \"thread_id\" UUID,\n \"target\" TEXT NOT NULL DEFAULT 'smrt:chat',\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"expires_at\" TIMESTAMP NOT NULL,\n \"last_turn_at\" TIMESTAMP,\n \"last_gateway_turn_id\" TEXT,\n \"persona_snapshot\" TEXT DEFAULT '{}',\n \"metadata\" TEXT DEFAULT '{}',\n \"processed_turn_ids\" TEXT DEFAULT '[]'\n);",
|
|
1928
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"voice_sessions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"gateway_session_id\" TEXT NOT NULL DEFAULT '',\n \"actor_profile_id\" UUID NOT NULL,\n \"actor_user_id\" UUID,\n \"persona_id\" UUID NOT NULL,\n \"agent_session_id\" UUID NOT NULL,\n \"chat_room_id\" UUID NOT NULL,\n \"thread_id\" UUID,\n \"target\" TEXT NOT NULL DEFAULT 'smrt:chat',\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"expires_at\" TIMESTAMP NOT NULL,\n \"last_turn_at\" TIMESTAMP,\n \"last_gateway_turn_id\" TEXT,\n \"persona_snapshot\" TEXT DEFAULT '{}',\n \"metadata\" TEXT DEFAULT '{}',\n \"processed_turn_ids\" TEXT DEFAULT '[]'\n);",
|
|
1887
1929
|
"columns": {
|
|
1930
|
+
"_sync_origin_device_id": {
|
|
1931
|
+
"type": "TEXT"
|
|
1932
|
+
},
|
|
1933
|
+
"_sync_revision": {
|
|
1934
|
+
"type": "INTEGER"
|
|
1935
|
+
},
|
|
1888
1936
|
"id": {
|
|
1889
1937
|
"type": "UUID",
|
|
1890
1938
|
"primaryKey": true,
|
|
@@ -2076,7 +2124,7 @@
|
|
|
2076
2124
|
]
|
|
2077
2125
|
}
|
|
2078
2126
|
],
|
|
2079
|
-
"version": "
|
|
2127
|
+
"version": "848752a1"
|
|
2080
2128
|
},
|
|
2081
2129
|
"importPath": "@happyvertical/smrt-chat"
|
|
2082
2130
|
},
|
|
@@ -2371,8 +2419,14 @@
|
|
|
2371
2419
|
],
|
|
2372
2420
|
"schema": {
|
|
2373
2421
|
"tableName": "agent_sessions",
|
|
2374
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"agent_sessions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"agent_id\" TEXT NOT NULL DEFAULT '',\n \"agent_profile_id\" UUID,\n \"participant_profile_id\" UUID NOT NULL,\n \"chat_room_id\" UUID,\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"allowed_tools\" TEXT DEFAULT '[]',\n \"session_context\" TEXT DEFAULT '{}',\n \"system_prompt\" TEXT DEFAULT '',\n \"message_count\" INTEGER DEFAULT 0,\n \"total_tokens_used\" INTEGER DEFAULT 0,\n \"max_tokens\" INTEGER DEFAULT 0,\n \"max_messages\" INTEGER DEFAULT 0,\n \"last_message_at\" TIMESTAMP,\n \"expires_at\" TIMESTAMP,\n \"closed_at\" TIMESTAMP\n);",
|
|
2422
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"agent_sessions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"agent_id\" TEXT NOT NULL DEFAULT '',\n \"agent_profile_id\" UUID,\n \"participant_profile_id\" UUID NOT NULL,\n \"chat_room_id\" UUID,\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"allowed_tools\" TEXT DEFAULT '[]',\n \"session_context\" TEXT DEFAULT '{}',\n \"system_prompt\" TEXT DEFAULT '',\n \"message_count\" INTEGER DEFAULT 0,\n \"total_tokens_used\" INTEGER DEFAULT 0,\n \"max_tokens\" INTEGER DEFAULT 0,\n \"max_messages\" INTEGER DEFAULT 0,\n \"last_message_at\" TIMESTAMP,\n \"expires_at\" TIMESTAMP,\n \"closed_at\" TIMESTAMP\n);",
|
|
2375
2423
|
"columns": {
|
|
2424
|
+
"_sync_origin_device_id": {
|
|
2425
|
+
"type": "TEXT"
|
|
2426
|
+
},
|
|
2427
|
+
"_sync_revision": {
|
|
2428
|
+
"type": "INTEGER"
|
|
2429
|
+
},
|
|
2376
2430
|
"id": {
|
|
2377
2431
|
"type": "UUID",
|
|
2378
2432
|
"primaryKey": true,
|
|
@@ -2535,7 +2589,7 @@
|
|
|
2535
2589
|
]
|
|
2536
2590
|
}
|
|
2537
2591
|
],
|
|
2538
|
-
"version": "
|
|
2592
|
+
"version": "0a330023"
|
|
2539
2593
|
},
|
|
2540
2594
|
"importPath": "@happyvertical/smrt-chat"
|
|
2541
2595
|
},
|
|
@@ -2916,8 +2970,14 @@
|
|
|
2916
2970
|
],
|
|
2917
2971
|
"schema": {
|
|
2918
2972
|
"tableName": "chat_messages",
|
|
2919
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_messages\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"room_id\" UUID NOT NULL,\n \"thread_id\" UUID,\n \"sender_profile_id\" UUID NOT NULL,\n \"agent_session_id\" UUID,\n \"content\" TEXT DEFAULT '',\n \"message_type\" TEXT NOT NULL DEFAULT 'text',\n \"role\" TEXT NOT NULL DEFAULT 'user',\n \"is_edited\" BOOLEAN DEFAULT FALSE,\n \"edited_at\" TIMESTAMP,\n \"is_deleted\" BOOLEAN DEFAULT FALSE,\n \"reply_to_message_id\" UUID,\n \"metadata\" TEXT DEFAULT '{}',\n \"tool_call_data\" TEXT,\n \"attachments\" TEXT DEFAULT '[]'\n);",
|
|
2973
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_messages\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"room_id\" UUID NOT NULL,\n \"thread_id\" UUID,\n \"sender_profile_id\" UUID NOT NULL,\n \"agent_session_id\" UUID,\n \"content\" TEXT DEFAULT '',\n \"message_type\" TEXT NOT NULL DEFAULT 'text',\n \"role\" TEXT NOT NULL DEFAULT 'user',\n \"is_edited\" BOOLEAN DEFAULT FALSE,\n \"edited_at\" TIMESTAMP,\n \"is_deleted\" BOOLEAN DEFAULT FALSE,\n \"reply_to_message_id\" UUID,\n \"metadata\" TEXT DEFAULT '{}',\n \"tool_call_data\" TEXT,\n \"attachments\" TEXT DEFAULT '[]'\n);",
|
|
2920
2974
|
"columns": {
|
|
2975
|
+
"_sync_origin_device_id": {
|
|
2976
|
+
"type": "TEXT"
|
|
2977
|
+
},
|
|
2978
|
+
"_sync_revision": {
|
|
2979
|
+
"type": "INTEGER"
|
|
2980
|
+
},
|
|
2921
2981
|
"id": {
|
|
2922
2982
|
"type": "UUID",
|
|
2923
2983
|
"primaryKey": true,
|
|
@@ -3104,7 +3164,7 @@
|
|
|
3104
3164
|
]
|
|
3105
3165
|
}
|
|
3106
3166
|
],
|
|
3107
|
-
"version": "
|
|
3167
|
+
"version": "83f829da"
|
|
3108
3168
|
},
|
|
3109
3169
|
"importPath": "@happyvertical/smrt-chat"
|
|
3110
3170
|
},
|
|
@@ -3374,8 +3434,14 @@
|
|
|
3374
3434
|
],
|
|
3375
3435
|
"schema": {
|
|
3376
3436
|
"tableName": "chat_participants",
|
|
3377
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_participants\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"room_id\" UUID NOT NULL,\n \"profile_id\" UUID NOT NULL,\n \"role\" TEXT NOT NULL DEFAULT 'member',\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"online_status\" TEXT NOT NULL DEFAULT 'offline',\n \"last_read_message_id\" UUID,\n \"last_seen_at\" TIMESTAMP,\n \"joined_at\" TIMESTAMP,\n \"nickname\" TEXT DEFAULT '',\n \"is_muted\" BOOLEAN DEFAULT FALSE,\n \"is_pinned\" BOOLEAN DEFAULT FALSE\n);",
|
|
3437
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_participants\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"room_id\" UUID NOT NULL,\n \"profile_id\" UUID NOT NULL,\n \"role\" TEXT NOT NULL DEFAULT 'member',\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"online_status\" TEXT NOT NULL DEFAULT 'offline',\n \"last_read_message_id\" UUID,\n \"last_seen_at\" TIMESTAMP,\n \"joined_at\" TIMESTAMP,\n \"nickname\" TEXT DEFAULT '',\n \"is_muted\" BOOLEAN DEFAULT FALSE,\n \"is_pinned\" BOOLEAN DEFAULT FALSE\n);",
|
|
3378
3438
|
"columns": {
|
|
3439
|
+
"_sync_origin_device_id": {
|
|
3440
|
+
"type": "TEXT"
|
|
3441
|
+
},
|
|
3442
|
+
"_sync_revision": {
|
|
3443
|
+
"type": "INTEGER"
|
|
3444
|
+
},
|
|
3379
3445
|
"id": {
|
|
3380
3446
|
"type": "UUID",
|
|
3381
3447
|
"primaryKey": true,
|
|
@@ -3520,7 +3586,7 @@
|
|
|
3520
3586
|
]
|
|
3521
3587
|
}
|
|
3522
3588
|
],
|
|
3523
|
-
"version": "
|
|
3589
|
+
"version": "166a9740"
|
|
3524
3590
|
},
|
|
3525
3591
|
"importPath": "@happyvertical/smrt-chat"
|
|
3526
3592
|
},
|
|
@@ -3625,8 +3691,14 @@
|
|
|
3625
3691
|
],
|
|
3626
3692
|
"schema": {
|
|
3627
3693
|
"tableName": "chat_reactions",
|
|
3628
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_reactions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"message_id\" UUID NOT NULL,\n \"profile_id\" UUID NOT NULL,\n \"emoji\" TEXT NOT NULL DEFAULT ''\n);",
|
|
3694
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_reactions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"message_id\" UUID NOT NULL,\n \"profile_id\" UUID NOT NULL,\n \"emoji\" TEXT NOT NULL DEFAULT ''\n);",
|
|
3629
3695
|
"columns": {
|
|
3696
|
+
"_sync_origin_device_id": {
|
|
3697
|
+
"type": "TEXT"
|
|
3698
|
+
},
|
|
3699
|
+
"_sync_revision": {
|
|
3700
|
+
"type": "INTEGER"
|
|
3701
|
+
},
|
|
3630
3702
|
"id": {
|
|
3631
3703
|
"type": "UUID",
|
|
3632
3704
|
"primaryKey": true,
|
|
@@ -3713,7 +3785,7 @@
|
|
|
3713
3785
|
]
|
|
3714
3786
|
}
|
|
3715
3787
|
],
|
|
3716
|
-
"version": "
|
|
3788
|
+
"version": "635cdbec"
|
|
3717
3789
|
},
|
|
3718
3790
|
"importPath": "@happyvertical/smrt-chat"
|
|
3719
3791
|
},
|
|
@@ -3987,8 +4059,14 @@
|
|
|
3987
4059
|
],
|
|
3988
4060
|
"schema": {
|
|
3989
4061
|
"tableName": "chat_rooms",
|
|
3990
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_rooms\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"room_type\" TEXT NOT NULL DEFAULT 'public',\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"topic\" TEXT DEFAULT '',\n \"avatar_url\" TEXT DEFAULT '',\n \"is_archived\" BOOLEAN DEFAULT FALSE,\n \"max_participants\" INTEGER DEFAULT 0,\n \"metadata\" TEXT DEFAULT '{}',\n \"created_by_profile_id\" UUID,\n \"last_message_at\" TIMESTAMP\n);",
|
|
4062
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_rooms\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"room_type\" TEXT NOT NULL DEFAULT 'public',\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"topic\" TEXT DEFAULT '',\n \"avatar_url\" TEXT DEFAULT '',\n \"is_archived\" BOOLEAN DEFAULT FALSE,\n \"max_participants\" INTEGER DEFAULT 0,\n \"metadata\" TEXT DEFAULT '{}',\n \"created_by_profile_id\" UUID,\n \"last_message_at\" TIMESTAMP\n);",
|
|
3991
4063
|
"columns": {
|
|
4064
|
+
"_sync_origin_device_id": {
|
|
4065
|
+
"type": "TEXT"
|
|
4066
|
+
},
|
|
4067
|
+
"_sync_revision": {
|
|
4068
|
+
"type": "INTEGER"
|
|
4069
|
+
},
|
|
3992
4070
|
"id": {
|
|
3993
4071
|
"type": "UUID",
|
|
3994
4072
|
"primaryKey": true,
|
|
@@ -4110,7 +4188,7 @@
|
|
|
4110
4188
|
]
|
|
4111
4189
|
}
|
|
4112
4190
|
],
|
|
4113
|
-
"version": "
|
|
4191
|
+
"version": "8093a86b"
|
|
4114
4192
|
},
|
|
4115
4193
|
"importPath": "@happyvertical/smrt-chat"
|
|
4116
4194
|
},
|
|
@@ -4262,8 +4340,14 @@
|
|
|
4262
4340
|
],
|
|
4263
4341
|
"schema": {
|
|
4264
4342
|
"tableName": "chat_threads",
|
|
4265
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_threads\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"room_id\" UUID NOT NULL,\n \"root_message_id\" UUID,\n \"title\" TEXT DEFAULT '',\n \"is_resolved\" BOOLEAN DEFAULT FALSE,\n \"message_count\" INTEGER DEFAULT 0,\n \"last_message_at\" TIMESTAMP,\n \"participant_count\" INTEGER DEFAULT 0\n);",
|
|
4343
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"chat_threads\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"room_id\" UUID NOT NULL,\n \"root_message_id\" UUID,\n \"title\" TEXT DEFAULT '',\n \"is_resolved\" BOOLEAN DEFAULT FALSE,\n \"message_count\" INTEGER DEFAULT 0,\n \"last_message_at\" TIMESTAMP,\n \"participant_count\" INTEGER DEFAULT 0\n);",
|
|
4266
4344
|
"columns": {
|
|
4345
|
+
"_sync_origin_device_id": {
|
|
4346
|
+
"type": "TEXT"
|
|
4347
|
+
},
|
|
4348
|
+
"_sync_revision": {
|
|
4349
|
+
"type": "INTEGER"
|
|
4350
|
+
},
|
|
4267
4351
|
"id": {
|
|
4268
4352
|
"type": "UUID",
|
|
4269
4353
|
"primaryKey": true,
|
|
@@ -4379,7 +4463,7 @@
|
|
|
4379
4463
|
]
|
|
4380
4464
|
}
|
|
4381
4465
|
],
|
|
4382
|
-
"version": "
|
|
4466
|
+
"version": "a24026da"
|
|
4383
4467
|
},
|
|
4384
4468
|
"importPath": "@happyvertical/smrt-chat"
|
|
4385
4469
|
},
|
|
@@ -4548,8 +4632,14 @@
|
|
|
4548
4632
|
],
|
|
4549
4633
|
"schema": {
|
|
4550
4634
|
"tableName": "voice_gateway_turns",
|
|
4551
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"voice_gateway_turns\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"voice_session_id\" UUID NOT NULL,\n \"gateway_session_id\" TEXT NOT NULL DEFAULT '',\n \"gateway_turn_id\" TEXT NOT NULL DEFAULT '',\n \"target\" TEXT NOT NULL DEFAULT 'smrt:chat',\n \"status\" TEXT NOT NULL DEFAULT 'processing',\n \"completed_at\" TIMESTAMP,\n \"failed_at\" TIMESTAMP\n);",
|
|
4635
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"voice_gateway_turns\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"voice_session_id\" UUID NOT NULL,\n \"gateway_session_id\" TEXT NOT NULL DEFAULT '',\n \"gateway_turn_id\" TEXT NOT NULL DEFAULT '',\n \"target\" TEXT NOT NULL DEFAULT 'smrt:chat',\n \"status\" TEXT NOT NULL DEFAULT 'processing',\n \"completed_at\" TIMESTAMP,\n \"failed_at\" TIMESTAMP\n);",
|
|
4552
4636
|
"columns": {
|
|
4637
|
+
"_sync_origin_device_id": {
|
|
4638
|
+
"type": "TEXT"
|
|
4639
|
+
},
|
|
4640
|
+
"_sync_revision": {
|
|
4641
|
+
"type": "INTEGER"
|
|
4642
|
+
},
|
|
4553
4643
|
"id": {
|
|
4554
4644
|
"type": "UUID",
|
|
4555
4645
|
"primaryKey": true,
|
|
@@ -4652,7 +4742,7 @@
|
|
|
4652
4742
|
]
|
|
4653
4743
|
}
|
|
4654
4744
|
],
|
|
4655
|
-
"version": "
|
|
4745
|
+
"version": "993ad9ea"
|
|
4656
4746
|
},
|
|
4657
4747
|
"importPath": "@happyvertical/smrt-chat"
|
|
4658
4748
|
},
|
|
@@ -4985,8 +5075,14 @@
|
|
|
4985
5075
|
],
|
|
4986
5076
|
"schema": {
|
|
4987
5077
|
"tableName": "voice_sessions",
|
|
4988
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"voice_sessions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"gateway_session_id\" TEXT NOT NULL DEFAULT '',\n \"actor_profile_id\" UUID NOT NULL,\n \"actor_user_id\" UUID,\n \"persona_id\" UUID NOT NULL,\n \"agent_session_id\" UUID NOT NULL,\n \"chat_room_id\" UUID NOT NULL,\n \"thread_id\" UUID,\n \"target\" TEXT NOT NULL DEFAULT 'smrt:chat',\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"expires_at\" TIMESTAMP NOT NULL,\n \"last_turn_at\" TIMESTAMP,\n \"last_gateway_turn_id\" TEXT,\n \"persona_snapshot\" TEXT DEFAULT '{}',\n \"metadata\" TEXT DEFAULT '{}',\n \"processed_turn_ids\" TEXT DEFAULT '[]'\n);",
|
|
5078
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"voice_sessions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"gateway_session_id\" TEXT NOT NULL DEFAULT '',\n \"actor_profile_id\" UUID NOT NULL,\n \"actor_user_id\" UUID,\n \"persona_id\" UUID NOT NULL,\n \"agent_session_id\" UUID NOT NULL,\n \"chat_room_id\" UUID NOT NULL,\n \"thread_id\" UUID,\n \"target\" TEXT NOT NULL DEFAULT 'smrt:chat',\n \"status\" TEXT NOT NULL DEFAULT 'active',\n \"expires_at\" TIMESTAMP NOT NULL,\n \"last_turn_at\" TIMESTAMP,\n \"last_gateway_turn_id\" TEXT,\n \"persona_snapshot\" TEXT DEFAULT '{}',\n \"metadata\" TEXT DEFAULT '{}',\n \"processed_turn_ids\" TEXT DEFAULT '[]'\n);",
|
|
4989
5079
|
"columns": {
|
|
5080
|
+
"_sync_origin_device_id": {
|
|
5081
|
+
"type": "TEXT"
|
|
5082
|
+
},
|
|
5083
|
+
"_sync_revision": {
|
|
5084
|
+
"type": "INTEGER"
|
|
5085
|
+
},
|
|
4990
5086
|
"id": {
|
|
4991
5087
|
"type": "UUID",
|
|
4992
5088
|
"primaryKey": true,
|
|
@@ -5178,7 +5274,7 @@
|
|
|
5178
5274
|
]
|
|
5179
5275
|
}
|
|
5180
5276
|
],
|
|
5181
|
-
"version": "
|
|
5277
|
+
"version": "848752a1"
|
|
5182
5278
|
},
|
|
5183
5279
|
"importPath": "@happyvertical/smrt-chat"
|
|
5184
5280
|
}
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-chat",
|
|
6
|
-
"packageVersion": "0.60.
|
|
6
|
+
"packageVersion": "0.60.11",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "a33e5b18c765ae3917adc9c0df814777b640ca61c75caa68a4bcdebf9c580b6e",
|
|
11
|
+
"packageJson": "e2635976f8b87139aa89a9da52d211ca5c3faa9807fea0828ffdac5564ec48a8",
|
|
12
12
|
"agents": "44b54fd3a94f6f255b66032c138c81f120d4d8ba9fe219b45c5d926b3f22fcb3",
|
|
13
13
|
"moduleDoc:agents/dev-workbench.md": "f07a428519e8cca4a46371da0a3b33b9c8d3102f1d9056e4c8efba3c0b702048",
|
|
14
14
|
"moduleDoc:agents/overview-tools.md": "752a4afb6b57a2e9224f3c65a98b0deb23cda87371f01ac0566f0887e9bb12da",
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: "Component"
|
|
3
|
+
title: "@happyvertical/smrt-chat"
|
|
4
|
+
description: "Chat rooms, DMs, threads, and agent conversations for the SMRT framework"
|
|
5
|
+
status: "stable"
|
|
6
|
+
generated:
|
|
7
|
+
by: "smrt/scripts/generate-knowledge-okf.ts"
|
|
8
|
+
at: "2026-11-05T15:48:19Z"
|
|
9
|
+
audience: "internal"
|
|
10
|
+
evidence_level: "source-inspected"
|
|
11
|
+
source_revision: "sha256:6d305ee403a1fc43b71f10a8be7764a9a48be5d3617ddd315b2c0c0ea14d73ac"
|
|
12
|
+
sources:
|
|
13
|
+
- id: "manifest"
|
|
14
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/chat/package.json"
|
|
15
|
+
title: "@happyvertical/smrt-chat package manifest"
|
|
16
|
+
- id: "agents"
|
|
17
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/chat/AGENTS.md"
|
|
18
|
+
title: "@happyvertical/smrt-chat packages/chat/AGENTS.md"
|
|
19
|
+
- id: "agents-2"
|
|
20
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/chat/agents/assistant-questions.md"
|
|
21
|
+
title: "@happyvertical/smrt-chat packages/chat/agents/assistant-questions.md"
|
|
22
|
+
- id: "agents-3"
|
|
23
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/chat/agents/dev-workbench.md"
|
|
24
|
+
title: "@happyvertical/smrt-chat packages/chat/agents/dev-workbench.md"
|
|
25
|
+
- id: "agents-4"
|
|
26
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/chat/agents/overview-tools.md"
|
|
27
|
+
title: "@happyvertical/smrt-chat packages/chat/agents/overview-tools.md"
|
|
28
|
+
- id: "agents-5"
|
|
29
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/chat/agents/recipes.md"
|
|
30
|
+
title: "@happyvertical/smrt-chat packages/chat/agents/recipes.md"
|
|
31
|
+
- id: "agents-6"
|
|
32
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/chat/agents/token-streaming.md"
|
|
33
|
+
title: "@happyvertical/smrt-chat packages/chat/agents/token-streaming.md"
|
|
34
|
+
- id: "agents-7"
|
|
35
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/chat/agents/tool-loop.md"
|
|
36
|
+
title: "@happyvertical/smrt-chat packages/chat/agents/tool-loop.md"
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
# @happyvertical/smrt-chat
|
|
40
|
+
|
|
41
|
+
## Package
|
|
42
|
+
|
|
43
|
+
- Directory: `packages/chat`
|
|
44
|
+
- Private: no
|
|
45
|
+
- Object source: `domain-artifact`
|
|
46
|
+
- Evidence level: `source-inspected`
|
|
47
|
+
|
|
48
|
+
## Documentation
|
|
49
|
+
|
|
50
|
+
- `packages/chat/AGENTS.md`
|
|
51
|
+
- `packages/chat/agents/assistant-questions.md`
|
|
52
|
+
- `packages/chat/agents/dev-workbench.md`
|
|
53
|
+
- `packages/chat/agents/overview-tools.md`
|
|
54
|
+
- `packages/chat/agents/recipes.md`
|
|
55
|
+
- `packages/chat/agents/token-streaming.md`
|
|
56
|
+
- `packages/chat/agents/tool-loop.md`
|
|
57
|
+
|
|
58
|
+
## Framework dependencies
|
|
59
|
+
|
|
60
|
+
- [smrt-agents](/components/smrt-agents.md)
|
|
61
|
+
- [smrt-assets](/components/smrt-assets.md)
|
|
62
|
+
- [smrt-config](/components/smrt-config.md)
|
|
63
|
+
- [smrt-core](/components/smrt-core.md)
|
|
64
|
+
- [smrt-images](/components/smrt-images.md)
|
|
65
|
+
- [smrt-personas](/components/smrt-personas.md)
|
|
66
|
+
- [smrt-playground](/components/smrt-playground.md)
|
|
67
|
+
- [smrt-profiles](/components/smrt-profiles.md)
|
|
68
|
+
- [smrt-reports](/components/smrt-reports.md)
|
|
69
|
+
- [smrt-scanner](/components/smrt-scanner.md)
|
|
70
|
+
- [smrt-tenancy](/components/smrt-tenancy.md)
|
|
71
|
+
- [smrt-types](/components/smrt-types.md)
|
|
72
|
+
- [smrt-ui](/components/smrt-ui.md)
|
|
73
|
+
- [smrt-users](/components/smrt-users.md)
|
|
74
|
+
- [smrt-vitest](/components/smrt-vitest.md)
|
|
75
|
+
- [smrt-web](/components/smrt-web.md)
|
|
76
|
+
|
|
77
|
+
## SDK dependencies
|
|
78
|
+
|
|
79
|
+
- `@happyvertical/ai`
|
|
80
|
+
- `@happyvertical/images`
|
|
81
|
+
- `@happyvertical/sql`
|
|
82
|
+
|
|
83
|
+
## Exports
|
|
84
|
+
|
|
85
|
+
- `.`
|
|
86
|
+
- `./assistant-turn`
|
|
87
|
+
- `./client`
|
|
88
|
+
- `./data-surface`
|
|
89
|
+
- `./data-surface-bridge`
|
|
90
|
+
- `./helper-preferences`
|
|
91
|
+
- `./internal/agent-runtime`
|
|
92
|
+
- `./manifest`
|
|
93
|
+
- `./manifest.json`
|
|
94
|
+
- `./playground`
|
|
95
|
+
- `./svelte`
|
|
96
|
+
- `./sveltekit`
|
|
97
|
+
- `./ui`
|
|
98
|
+
|
|
99
|
+
## Models
|
|
100
|
+
|
|
101
|
+
- `AgentSession` (collection `agentsessions`, extends `SmrtObject`)
|
|
102
|
+
- `AgentSessionCollection` (collection `agentsessions`, extends `SmrtCollection`)
|
|
103
|
+
- `ChatMessage` (collection `chatmessages`, extends `SmrtObject`)
|
|
104
|
+
- `ChatMessageCollection` (collection `chatmessages`, extends `SmrtCollection`)
|
|
105
|
+
- `ChatParticipant` (collection `chatparticipants`, extends `SmrtObject`)
|
|
106
|
+
- `ChatParticipantCollection` (collection `chatparticipants`, extends `SmrtCollection`)
|
|
107
|
+
- `ChatReaction` (collection `chatreactions`, extends `SmrtObject`)
|
|
108
|
+
- `ChatReactionCollection` (collection `chatreactions`, extends `SmrtCollection`)
|
|
109
|
+
- `ChatRoom` (collection `chatrooms`, extends `SmrtObject`)
|
|
110
|
+
- `ChatRoomCollection` (collection `chatrooms`, extends `SmrtCollection`)
|
|
111
|
+
- `ChatThread` (collection `chatthreads`, extends `SmrtObject`)
|
|
112
|
+
- `ChatThreadCollection` (collection `chatthreads`, extends `SmrtCollection`)
|
|
113
|
+
- `VoiceGatewayTurn` (collection `voicegatewayturns`, extends `SmrtObject`)
|
|
114
|
+
- `VoiceGatewayTurnCollection` (collection `voicegatewayturns`, extends `SmrtCollection`)
|
|
115
|
+
- `VoiceSession` (collection `voicesessions`, extends `SmrtObject`)
|
|
116
|
+
- `VoiceSessionCollection` (collection `voicesessions`, extends `SmrtCollection`)
|
|
117
|
+
|
|
118
|
+
## MCP tools
|
|
119
|
+
|
|
120
|
+
- `agentsession_get`: get on `@happyvertical/smrt-chat:AgentSession`
|
|
121
|
+
- `agentsession_list`: list on `@happyvertical/smrt-chat:AgentSession`
|
|
122
|
+
- `chatmessage_get`: get on `@happyvertical/smrt-chat:ChatMessage`
|
|
123
|
+
- `chatmessage_list`: list on `@happyvertical/smrt-chat:ChatMessage`
|
|
124
|
+
- `chatparticipant_get`: get on `@happyvertical/smrt-chat:ChatParticipant`
|
|
125
|
+
- `chatparticipant_list`: list on `@happyvertical/smrt-chat:ChatParticipant`
|
|
126
|
+
- `chatreaction_list`: list on `@happyvertical/smrt-chat:ChatReaction`
|
|
127
|
+
- `chatroom_get`: get on `@happyvertical/smrt-chat:ChatRoom`
|
|
128
|
+
- `chatroom_list`: list on `@happyvertical/smrt-chat:ChatRoom`
|
|
129
|
+
- `chatthread_get`: get on `@happyvertical/smrt-chat:ChatThread`
|
|
130
|
+
- `chatthread_list`: list on `@happyvertical/smrt-chat:ChatThread`
|
|
131
|
+
- `voicegatewayturn_get`: get on `@happyvertical/smrt-chat:VoiceGatewayTurn`
|
|
132
|
+
- `voicegatewayturn_list`: list on `@happyvertical/smrt-chat:VoiceGatewayTurn`
|
|
133
|
+
- `voicesession_get`: get on `@happyvertical/smrt-chat:VoiceSession`
|
|
134
|
+
- `voicesession_list`: list on `@happyvertical/smrt-chat:VoiceSession`
|
|
135
|
+
|
|
136
|
+
## Agent intents
|
|
137
|
+
|
|
138
|
+
- `chatdev.stage_draft_subject`: Stage a subject line into the dev workbench draft form. The value is a proposal: a human reviews and applies it. (`src/routes/chat-dev.intents.ts`)
|
package/dist/sveltekit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as clientRequestMessageId, n as ChatService, t as ChatClientRequestConflictError } from "./chunks/ChatService-BGBAqmZq.js";
|
|
2
|
-
import { $ as isFallbackReply, D as createSessionContinuationStore, I as MAX_CLIENT_TOOL_RESULT_CHARS, N as FALLBACK_HISTORY_PLACEHOLDER, O as runAssistantTurn, T as createAssistantTurnResponse, X as buildManifestToolCatalog, at as sanitizeClientToolDeclarations, y as ASSISTANT_TURN_GENERIC_ERROR } from "./chunks/chat-stream-
|
|
2
|
+
import { $ as isFallbackReply, D as createSessionContinuationStore, I as MAX_CLIENT_TOOL_RESULT_CHARS, N as FALLBACK_HISTORY_PLACEHOLDER, O as runAssistantTurn, T as createAssistantTurnResponse, X as buildManifestToolCatalog, at as sanitizeClientToolDeclarations, y as ASSISTANT_TURN_GENERIC_ERROR } from "./chunks/chat-stream-lnzfyqWp.js";
|
|
3
3
|
import { getCurrentSessionPermissionContext, getRequestScopedDatabase } from "@happyvertical/smrt-users";
|
|
4
4
|
import { getConfig, loadConfig, resolveConfiguredAIProvider, toAIClientOptions } from "@happyvertical/smrt-config";
|
|
5
5
|
//#region src/sveltekit.ts
|