@happyvertical/smrt-chat 0.56.1 → 0.56.2
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-CahTvOic.js +2126 -0
- package/dist/chunks/chat-stream-CahTvOic.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/manifest.json +101 -7
- package/dist/smrt-knowledge.json +147 -833
- package/dist/sveltekit.js +1 -1
- package/package.json +17 -17
- package/dist/chunks/chat-stream-DdS94akU.js +0 -2126
- package/dist/chunks/chat-stream-DdS94akU.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-DjGf2AoJ.js";
|
|
2
|
-
import { A as MAX_CLIENT_TOOLS, B as RUNTIME_REPORT_DEFINE_FUNCTION_NAME, C as SESSION_CONTINUATIONS_FIELD, D as runAssistantTurn, E as createSessionContinuationStore, F as classifyToolError, G as RUNTIME_REPORT_RUN_TOOL_SLUG, H as RUNTIME_REPORT_LIST_FUNCTION_NAME, I as invokeManifestTool, J as createRuntimeReportTools, K as RUNTIME_REPORT_SOURCES_FUNCTION_NAME, L as manifestToolToAITool, M as MAX_CLIENT_TOOL_SCHEMA_BYTES, N as appendClientToolResults, O as CLIENT_TOOL_RESULT_GUIDANCE, P as buildManifestToolCatalog, R as runToolLoop, S as DEFAULT_CONTINUATION_TTL_MS, T as createMemoryContinuationStore, U as RUNTIME_REPORT_LIST_TOOL_SLUG, V as RUNTIME_REPORT_DEFINE_TOOL_SLUG, W as RUNTIME_REPORT_RUN_FUNCTION_NAME, _ as runPersonaConversationTurn, a as MAX_CHAT_STREAM_CONTENT_LENGTH, b as CONTINUATION_CLAIM_TTL_MS, c as encodeChatStreamEvent, d as conversationPersonaFromAgentPersona, f as conversationPersonaFromResolved, g as resolveConversationInstructions, h as recallPersonaMemory, i as DEFAULT_CHAT_STREAM_HEARTBEAT_MS, j as MAX_CLIENT_TOOL_RESULT_CHARS, k as DEFAULT_MAX_STEPS, l as runChatConversationStream, m as principalBindingFor, n as ChatStreamError, o as MAX_CHAT_STREAM_MESSAGES, p as formatRecalledMemory, q as RUNTIME_REPORT_SOURCES_TOOL_SLUG, r as ChatStreamUnauthorizedError, s as createChatStreamHandler, t as ChatStreamBadRequestError, u as bindPersonaToSession, v as ASSISTANT_TURN_GENERIC_ERROR, w as createAssistantTurnResponse, x as DEFAULT_ASSISTANT_TURN_HEARTBEAT_MS, y as AssistantTurnUserError, z as sanitizeClientToolDeclarations } from "./chunks/chat-stream-
|
|
2
|
+
import { A as MAX_CLIENT_TOOLS, B as RUNTIME_REPORT_DEFINE_FUNCTION_NAME, C as SESSION_CONTINUATIONS_FIELD, D as runAssistantTurn, E as createSessionContinuationStore, F as classifyToolError, G as RUNTIME_REPORT_RUN_TOOL_SLUG, H as RUNTIME_REPORT_LIST_FUNCTION_NAME, I as invokeManifestTool, J as createRuntimeReportTools, K as RUNTIME_REPORT_SOURCES_FUNCTION_NAME, L as manifestToolToAITool, M as MAX_CLIENT_TOOL_SCHEMA_BYTES, N as appendClientToolResults, O as CLIENT_TOOL_RESULT_GUIDANCE, P as buildManifestToolCatalog, R as runToolLoop, S as DEFAULT_CONTINUATION_TTL_MS, T as createMemoryContinuationStore, U as RUNTIME_REPORT_LIST_TOOL_SLUG, V as RUNTIME_REPORT_DEFINE_TOOL_SLUG, W as RUNTIME_REPORT_RUN_FUNCTION_NAME, _ as runPersonaConversationTurn, a as MAX_CHAT_STREAM_CONTENT_LENGTH, b as CONTINUATION_CLAIM_TTL_MS, c as encodeChatStreamEvent, d as conversationPersonaFromAgentPersona, f as conversationPersonaFromResolved, g as resolveConversationInstructions, h as recallPersonaMemory, i as DEFAULT_CHAT_STREAM_HEARTBEAT_MS, j as MAX_CLIENT_TOOL_RESULT_CHARS, k as DEFAULT_MAX_STEPS, l as runChatConversationStream, m as principalBindingFor, n as ChatStreamError, o as MAX_CHAT_STREAM_MESSAGES, p as formatRecalledMemory, q as RUNTIME_REPORT_SOURCES_TOOL_SLUG, r as ChatStreamUnauthorizedError, s as createChatStreamHandler, t as ChatStreamBadRequestError, u as bindPersonaToSession, v as ASSISTANT_TURN_GENERIC_ERROR, w as createAssistantTurnResponse, x as DEFAULT_ASSISTANT_TURN_HEARTBEAT_MS, y as AssistantTurnUserError, z as sanitizeClientToolDeclarations } from "./chunks/chat-stream-CahTvOic.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.56.
|
|
5
|
+
"packageVersion": "0.56.2",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-chat:AgentSessionCollection": {
|
|
8
8
|
"name": "agentsessioncollection",
|
|
@@ -130,7 +130,19 @@
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
"decoratorConfig": {
|
|
133
|
-
"tableName": "agent_sessions"
|
|
133
|
+
"tableName": "agent_sessions",
|
|
134
|
+
"api": {
|
|
135
|
+
"include": [
|
|
136
|
+
"list",
|
|
137
|
+
"get"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"mcp": {
|
|
141
|
+
"include": [
|
|
142
|
+
"list",
|
|
143
|
+
"get"
|
|
144
|
+
]
|
|
145
|
+
}
|
|
134
146
|
},
|
|
135
147
|
"extends": "SmrtCollection",
|
|
136
148
|
"extendsTypeArg": "AgentSession",
|
|
@@ -449,7 +461,19 @@
|
|
|
449
461
|
}
|
|
450
462
|
},
|
|
451
463
|
"decoratorConfig": {
|
|
452
|
-
"tableName": "chat_messages"
|
|
464
|
+
"tableName": "chat_messages",
|
|
465
|
+
"api": {
|
|
466
|
+
"include": [
|
|
467
|
+
"list",
|
|
468
|
+
"get"
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
"mcp": {
|
|
472
|
+
"include": [
|
|
473
|
+
"list",
|
|
474
|
+
"get"
|
|
475
|
+
]
|
|
476
|
+
}
|
|
453
477
|
},
|
|
454
478
|
"extends": "SmrtCollection",
|
|
455
479
|
"extendsTypeArg": "ChatMessage",
|
|
@@ -802,7 +826,19 @@
|
|
|
802
826
|
}
|
|
803
827
|
},
|
|
804
828
|
"decoratorConfig": {
|
|
805
|
-
"tableName": "chat_participants"
|
|
829
|
+
"tableName": "chat_participants",
|
|
830
|
+
"api": {
|
|
831
|
+
"include": [
|
|
832
|
+
"list",
|
|
833
|
+
"get"
|
|
834
|
+
]
|
|
835
|
+
},
|
|
836
|
+
"mcp": {
|
|
837
|
+
"include": [
|
|
838
|
+
"list",
|
|
839
|
+
"get"
|
|
840
|
+
]
|
|
841
|
+
}
|
|
806
842
|
},
|
|
807
843
|
"extends": "SmrtCollection",
|
|
808
844
|
"extendsTypeArg": "ChatParticipant",
|
|
@@ -1029,6 +1065,16 @@
|
|
|
1029
1065
|
},
|
|
1030
1066
|
"decoratorConfig": {
|
|
1031
1067
|
"tableName": "chat_reactions",
|
|
1068
|
+
"api": {
|
|
1069
|
+
"include": [
|
|
1070
|
+
"list"
|
|
1071
|
+
]
|
|
1072
|
+
},
|
|
1073
|
+
"mcp": {
|
|
1074
|
+
"include": [
|
|
1075
|
+
"list"
|
|
1076
|
+
]
|
|
1077
|
+
},
|
|
1032
1078
|
"cli": false
|
|
1033
1079
|
},
|
|
1034
1080
|
"extends": "SmrtCollection",
|
|
@@ -1229,7 +1275,19 @@
|
|
|
1229
1275
|
}
|
|
1230
1276
|
},
|
|
1231
1277
|
"decoratorConfig": {
|
|
1232
|
-
"tableName": "chat_rooms"
|
|
1278
|
+
"tableName": "chat_rooms",
|
|
1279
|
+
"api": {
|
|
1280
|
+
"include": [
|
|
1281
|
+
"list",
|
|
1282
|
+
"get"
|
|
1283
|
+
]
|
|
1284
|
+
},
|
|
1285
|
+
"mcp": {
|
|
1286
|
+
"include": [
|
|
1287
|
+
"list",
|
|
1288
|
+
"get"
|
|
1289
|
+
]
|
|
1290
|
+
}
|
|
1233
1291
|
},
|
|
1234
1292
|
"extends": "SmrtCollection",
|
|
1235
1293
|
"extendsTypeArg": "ChatRoom",
|
|
@@ -1411,7 +1469,19 @@
|
|
|
1411
1469
|
}
|
|
1412
1470
|
},
|
|
1413
1471
|
"decoratorConfig": {
|
|
1414
|
-
"tableName": "chat_threads"
|
|
1472
|
+
"tableName": "chat_threads",
|
|
1473
|
+
"api": {
|
|
1474
|
+
"include": [
|
|
1475
|
+
"list",
|
|
1476
|
+
"get"
|
|
1477
|
+
]
|
|
1478
|
+
},
|
|
1479
|
+
"mcp": {
|
|
1480
|
+
"include": [
|
|
1481
|
+
"list",
|
|
1482
|
+
"get"
|
|
1483
|
+
]
|
|
1484
|
+
}
|
|
1415
1485
|
},
|
|
1416
1486
|
"extends": "SmrtCollection",
|
|
1417
1487
|
"extendsTypeArg": "ChatThread",
|
|
@@ -1569,6 +1639,18 @@
|
|
|
1569
1639
|
},
|
|
1570
1640
|
"decoratorConfig": {
|
|
1571
1641
|
"tableName": "voice_gateway_turns",
|
|
1642
|
+
"api": {
|
|
1643
|
+
"include": [
|
|
1644
|
+
"list",
|
|
1645
|
+
"get"
|
|
1646
|
+
]
|
|
1647
|
+
},
|
|
1648
|
+
"mcp": {
|
|
1649
|
+
"include": [
|
|
1650
|
+
"list",
|
|
1651
|
+
"get"
|
|
1652
|
+
]
|
|
1653
|
+
},
|
|
1572
1654
|
"cli": false
|
|
1573
1655
|
},
|
|
1574
1656
|
"extends": "SmrtCollection",
|
|
@@ -1738,7 +1820,19 @@
|
|
|
1738
1820
|
}
|
|
1739
1821
|
},
|
|
1740
1822
|
"decoratorConfig": {
|
|
1741
|
-
"tableName": "voice_sessions"
|
|
1823
|
+
"tableName": "voice_sessions",
|
|
1824
|
+
"api": {
|
|
1825
|
+
"include": [
|
|
1826
|
+
"list",
|
|
1827
|
+
"get"
|
|
1828
|
+
]
|
|
1829
|
+
},
|
|
1830
|
+
"mcp": {
|
|
1831
|
+
"include": [
|
|
1832
|
+
"list",
|
|
1833
|
+
"get"
|
|
1834
|
+
]
|
|
1835
|
+
}
|
|
1742
1836
|
},
|
|
1743
1837
|
"extends": "SmrtCollection",
|
|
1744
1838
|
"extendsTypeArg": "VoiceSession",
|