@happyvertical/smrt-chat 0.55.1 → 0.55.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/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-C9UxuJaw.js";
2
- import { A as MAX_CLIENT_TOOLS, C as SESSION_CONTINUATIONS_FIELD, D as runAssistantTurn, E as createSessionContinuationStore, F as classifyToolError, I as invokeManifestTool, 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, _ 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, 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-DgIzeuv8.js";
2
+ import { A as MAX_CLIENT_TOOLS, C as SESSION_CONTINUATIONS_FIELD, D as runAssistantTurn, E as createSessionContinuationStore, F as classifyToolError, I as invokeManifestTool, 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, _ 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, 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-Bpx5qi-h.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 { CHAT_MODULE_META, CHAT_UI_SLOTS } from "./ui.js";
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-chat",
5
- "packageVersion": "0.55.1",
5
+ "packageVersion": "0.55.2",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-chat:AgentSessionCollection": {
8
8
  "name": "agentsessioncollection",
@@ -1998,7 +1998,12 @@
1998
1998
  "default": "active",
1999
1999
  "_meta": {
2000
2000
  "required": true
2001
- }
2001
+ },
2002
+ "enum": [
2003
+ "active",
2004
+ "closed",
2005
+ "expired"
2006
+ ]
2002
2007
  },
2003
2008
  "allowedTools": {
2004
2009
  "type": "text",
@@ -2455,7 +2460,15 @@
2455
2460
  "default": "text",
2456
2461
  "_meta": {
2457
2462
  "required": true
2458
- }
2463
+ },
2464
+ "enum": [
2465
+ "text",
2466
+ "system",
2467
+ "action",
2468
+ "file",
2469
+ "tool_call",
2470
+ "tool_result"
2471
+ ]
2459
2472
  },
2460
2473
  "role": {
2461
2474
  "type": "text",
@@ -2463,7 +2476,13 @@
2463
2476
  "default": "user",
2464
2477
  "_meta": {
2465
2478
  "required": true
2466
- }
2479
+ },
2480
+ "enum": [
2481
+ "user",
2482
+ "assistant",
2483
+ "system",
2484
+ "tool"
2485
+ ]
2467
2486
  },
2468
2487
  "isEdited": {
2469
2488
  "type": "boolean",
@@ -2944,7 +2963,13 @@
2944
2963
  "default": "member",
2945
2964
  "_meta": {
2946
2965
  "required": true
2947
- }
2966
+ },
2967
+ "enum": [
2968
+ "owner",
2969
+ "admin",
2970
+ "member",
2971
+ "viewer"
2972
+ ]
2948
2973
  },
2949
2974
  "status": {
2950
2975
  "type": "text",
@@ -2952,7 +2977,13 @@
2952
2977
  "default": "active",
2953
2978
  "_meta": {
2954
2979
  "required": true
2955
- }
2980
+ },
2981
+ "enum": [
2982
+ "active",
2983
+ "left",
2984
+ "kicked",
2985
+ "banned"
2986
+ ]
2956
2987
  },
2957
2988
  "onlineStatus": {
2958
2989
  "type": "text",
@@ -2960,7 +2991,13 @@
2960
2991
  "default": "offline",
2961
2992
  "_meta": {
2962
2993
  "required": true
2963
- }
2994
+ },
2995
+ "enum": [
2996
+ "online",
2997
+ "away",
2998
+ "dnd",
2999
+ "offline"
3000
+ ]
2964
3001
  },
2965
3002
  "lastReadMessageId": {
2966
3003
  "type": "foreignKey",
@@ -3486,7 +3523,13 @@
3486
3523
  "default": "public",
3487
3524
  "_meta": {
3488
3525
  "required": true
3489
- }
3526
+ },
3527
+ "enum": [
3528
+ "public",
3529
+ "private",
3530
+ "dm",
3531
+ "agent"
3532
+ ]
3490
3533
  },
3491
3534
  "status": {
3492
3535
  "type": "text",
@@ -3494,7 +3537,12 @@
3494
3537
  "default": "active",
3495
3538
  "_meta": {
3496
3539
  "required": true
3497
- }
3540
+ },
3541
+ "enum": [
3542
+ "active",
3543
+ "archived",
3544
+ "deleted"
3545
+ ]
3498
3546
  },
3499
3547
  "topic": {
3500
3548
  "type": "text",
@@ -3646,6 +3694,7 @@
3646
3694
  "extends": "SmrtObject",
3647
3695
  "exportName": "ChatRoom",
3648
3696
  "collectionExportName": "ChatRoomCollection",
3697
+ "displayLabelField": "name",
3649
3698
  "validationRules": [
3650
3699
  {
3651
3700
  "field": "roomType",
@@ -3900,6 +3949,7 @@
3900
3949
  "extends": "SmrtObject",
3901
3950
  "exportName": "ChatThread",
3902
3951
  "collectionExportName": "ChatThreadCollection",
3952
+ "displayLabelField": "title",
3903
3953
  "validationRules": [
3904
3954
  {
3905
3955
  "field": "roomId",
@@ -4093,7 +4143,12 @@
4093
4143
  "default": "processing",
4094
4144
  "_meta": {
4095
4145
  "required": true
4096
- }
4146
+ },
4147
+ "enum": [
4148
+ "processing",
4149
+ "completed",
4150
+ "failed"
4151
+ ]
4097
4152
  },
4098
4153
  "completedAt": {
4099
4154
  "type": "datetime",
@@ -4383,7 +4438,12 @@
4383
4438
  "default": "active",
4384
4439
  "_meta": {
4385
4440
  "required": true
4386
- }
4441
+ },
4442
+ "enum": [
4443
+ "active",
4444
+ "expired",
4445
+ "revoked"
4446
+ ]
4387
4447
  },
4388
4448
  "expiresAt": {
4389
4449
  "type": "datetime",
@@ -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.55.1",
6
+ "packageVersion": "0.55.2",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "40c2955f65bf169116577ba78650df58094863958e43a99fb0f09fd442a0dcdb",
11
- "packageJson": "027fc15c671327d6d6e54aa2f79ea1d950c733bcae105b2ecc9d5e8edc19c724",
10
+ "manifest": "c75e87eccad2e9d1ee2d10133b30188cd05d29f4eef5c1f590b1363ab7590f6f",
11
+ "packageJson": "91ae029d4ea508b0cf0c447263a3ea18b70c396546e1bd0eb0c7f312da0d4155",
12
12
  "agents": "0d11ad3c134fc4de4c3fd61fb3a5e7d760ecf8ef6b2b16679b66358e6877dd74",
13
13
  "moduleDoc:agents/dev-workbench.md": "69b6f827d25c8aeb0e7516c90303af23948803213b5d34bc334c1e3376c83a16",
14
14
  "agentSurface:src/routes/chat-dev.intents.ts": "ff8f7c19c7eb6e841a08f03c97773c53092ed208004666bfed372bd1ad456b35"
@@ -2590,6 +2590,7 @@
2590
2590
  {
2591
2591
  "name": "ChatRoom",
2592
2592
  "qualifiedName": "@happyvertical/smrt-chat:ChatRoom",
2593
+ "displayLabelField": "name",
2593
2594
  "collection": "chatrooms",
2594
2595
  "tableName": "chat_rooms",
2595
2596
  "packageName": "@happyvertical/smrt-chat",
@@ -2943,6 +2944,7 @@
2943
2944
  {
2944
2945
  "name": "ChatThread",
2945
2946
  "qualifiedName": "@happyvertical/smrt-chat:ChatThread",
2947
+ "displayLabelField": "title",
2946
2948
  "collection": "chatthreads",
2947
2949
  "tableName": "chat_threads",
2948
2950
  "packageName": "@happyvertical/smrt-chat",
package/dist/sveltekit.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as clientRequestMessageId, n as ChatService, t as ChatClientRequestConflictError } from "./chunks/ChatService-C9UxuJaw.js";
2
- import { D as runAssistantTurn, E as createSessionContinuationStore, P as buildManifestToolCatalog, j as MAX_CLIENT_TOOL_RESULT_CHARS, v as ASSISTANT_TURN_GENERIC_ERROR, w as createAssistantTurnResponse, z as sanitizeClientToolDeclarations } from "./chunks/chat-stream-DgIzeuv8.js";
2
+ import { D as runAssistantTurn, E as createSessionContinuationStore, P as buildManifestToolCatalog, j as MAX_CLIENT_TOOL_RESULT_CHARS, v as ASSISTANT_TURN_GENERIC_ERROR, w as createAssistantTurnResponse, z as sanitizeClientToolDeclarations } from "./chunks/chat-stream-Bpx5qi-h.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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-chat",
3
- "version": "0.55.1",
3
+ "version": "0.55.2",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "Chat rooms, DMs, threads, and agent conversations for the SMRT framework",
6
6
  "type": "module",
@@ -78,17 +78,17 @@
78
78
  "access": "public"
79
79
  },
80
80
  "dependencies": {
81
- "@happyvertical/ai": "^0.102.1",
82
- "@happyvertical/smrt-agents": "0.55.1",
83
- "@happyvertical/smrt-config": "0.55.1",
84
- "@happyvertical/smrt-core": "0.55.1",
85
- "@happyvertical/smrt-personas": "0.55.1",
86
- "@happyvertical/smrt-profiles": "0.55.1",
87
- "@happyvertical/smrt-tenancy": "0.55.1",
88
- "@happyvertical/smrt-types": "0.55.1",
89
- "@happyvertical/smrt-ui": "0.55.1",
90
- "@happyvertical/smrt-users": "0.55.1",
91
- "@happyvertical/sql": "^0.102.1"
81
+ "@happyvertical/ai": "^0.102.2",
82
+ "@happyvertical/smrt-agents": "0.55.2",
83
+ "@happyvertical/smrt-config": "0.55.2",
84
+ "@happyvertical/smrt-core": "0.55.2",
85
+ "@happyvertical/smrt-personas": "0.55.2",
86
+ "@happyvertical/smrt-profiles": "0.55.2",
87
+ "@happyvertical/smrt-tenancy": "0.55.2",
88
+ "@happyvertical/smrt-types": "0.55.2",
89
+ "@happyvertical/smrt-ui": "0.55.2",
90
+ "@happyvertical/smrt-users": "0.55.2",
91
+ "@happyvertical/sql": "^0.102.2"
92
92
  },
93
93
  "peerDependencies": {
94
94
  "svelte": "^5.57.0"
@@ -99,9 +99,9 @@
99
99
  }
100
100
  },
101
101
  "devDependencies": {
102
- "@happyvertical/smrt-playground": "0.55.1",
103
- "@happyvertical/smrt-vitest": "0.55.1",
104
- "@happyvertical/smrt-web": "0.55.1",
102
+ "@happyvertical/smrt-playground": "0.55.2",
103
+ "@happyvertical/smrt-vitest": "0.55.2",
104
+ "@happyvertical/smrt-web": "0.55.2",
105
105
  "@mlc-ai/web-llm": "^0.2.85",
106
106
  "bitgpu": "0.19.1",
107
107
  "@sveltejs/kit": "2.69.1",