@things-factory/ai-assistant 10.1.234 → 10.1.241
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-server/service/chat-message/chat-message.js +3 -3
- package/dist-server/service/chat-message/chat-message.js.map +1 -1
- package/dist-server/service/chat-session/chat-session.js +2 -2
- package/dist-server/service/chat-session/chat-session.js.map +1 -1
- package/dist-server/service/chat-session-participant/chat-session-participant.js +1 -1
- package/dist-server/service/chat-session-participant/chat-session-participant.js.map +1 -1
- package/dist-server/service/unattended-run/assistant-run.js +1 -1
- package/dist-server/service/unattended-run/assistant-run.js.map +1 -1
- package/dist-server/service/unattended-run/run-unattended.js +1 -1
- package/dist-server/service/unattended-run/run-unattended.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/server/service/chat-message/chat-message.ts +3 -3
- package/server/service/chat-session/chat-session.ts +2 -2
- package/server/service/chat-session-participant/chat-session-participant.ts +1 -1
- package/server/service/unattended-run/assistant-run.ts +1 -1
- package/server/service/unattended-run/run-unattended.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/ai-assistant",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.241",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"things-factory": true,
|
|
6
6
|
"author": "heartyoh",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"@operato/shell": "^10.29.39",
|
|
36
36
|
"@operato/styles": "^10.0.0",
|
|
37
37
|
"@operato/utils": "^10.29.39",
|
|
38
|
-
"@things-factory/ai-client-base": "^10.1.
|
|
38
|
+
"@things-factory/ai-client-base": "^10.1.241",
|
|
39
39
|
"@things-factory/apptool-base": "^10.1.234",
|
|
40
|
-
"@things-factory/attachment-base": "^10.1.
|
|
41
|
-
"@things-factory/auth-base": "^10.1.
|
|
40
|
+
"@things-factory/attachment-base": "^10.1.241",
|
|
41
|
+
"@things-factory/auth-base": "^10.1.241",
|
|
42
42
|
"@things-factory/env": "^10.1.149",
|
|
43
|
-
"@things-factory/setting-base": "^10.1.
|
|
43
|
+
"@things-factory/setting-base": "^10.1.241",
|
|
44
44
|
"@things-factory/shell": "^10.1.234",
|
|
45
45
|
"dompurify": "^3.0.0",
|
|
46
46
|
"exceljs": "4.2.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"copyfiles": "^2.4.1",
|
|
58
58
|
"rimraf": "^5.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "d7fe2e1a1eb7c02cb21b897da26d385df014f908"
|
|
61
61
|
}
|
|
@@ -42,7 +42,7 @@ export class ChatMessage {
|
|
|
42
42
|
@RelationId((message: ChatMessage) => message.session)
|
|
43
43
|
sessionId?: string
|
|
44
44
|
|
|
45
|
-
@Column({
|
|
45
|
+
@Column({ length: 16 })
|
|
46
46
|
@Field({ description: "'user' | 'assistant' | 'system'" })
|
|
47
47
|
role!: string
|
|
48
48
|
|
|
@@ -71,7 +71,7 @@ export class ChatMessage {
|
|
|
71
71
|
* 사람의 행에만 뜻이 있다. 어시스턴트의 답은 `parentMessage` 로 자기를 부른 턴에 귀속되고,
|
|
72
72
|
* `system` 행은 누구에게 한 말이 아니다.
|
|
73
73
|
*/
|
|
74
|
-
@Column({
|
|
74
|
+
@Column({ length: 16, nullable: true })
|
|
75
75
|
@Field({ nullable: true, description: "Who this turn was for: 'assistant' | 'room'. Written by the door that stored it, never sent by the client." })
|
|
76
76
|
addressee?: string
|
|
77
77
|
|
|
@@ -210,7 +210,7 @@ export class ChatMessage {
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
@Column({ type: '
|
|
213
|
+
@Column({ type: 'text', nullable: true })
|
|
214
214
|
groundingWarnings?: string
|
|
215
215
|
|
|
216
216
|
/** GraphQL 노출용 — 식별자 배열로 parse. */
|
|
@@ -136,7 +136,7 @@ export class ChatSession {
|
|
|
136
136
|
* 값이 없는 세션은 이 칸이 서기 전에 난 것이다. 다음 턴에 요청한 kind 로 한 번 찍고, 찍힌 뒤에는
|
|
137
137
|
* 「요청한 모드와 다르면 거절」 하나만 남는다. 마이그레이션은 만들지 않는다.
|
|
138
138
|
*/
|
|
139
|
-
@Column({
|
|
139
|
+
@Column({ length: 64, nullable: true })
|
|
140
140
|
@Field({ nullable: true, description: "Which conversation this session is — the registered mode kind. Written by the server, never sent by the client." })
|
|
141
141
|
kind?: string
|
|
142
142
|
|
|
@@ -156,7 +156,7 @@ export class ChatSession {
|
|
|
156
156
|
*
|
|
157
157
|
* open 이어도 답 행의 문 판정(ADR-0073 판정 1)은 그대로다 — 방에 들어온 것과 값을 읽는 것은 다르다.
|
|
158
158
|
*/
|
|
159
|
-
@Column({
|
|
159
|
+
@Column({ length: 16, default: 'open' })
|
|
160
160
|
@Field({ description: "Who may read this conversation: 'open' (anyone in the domain), 'group' (the owner and the people the owner brought in) or 'private' (the owner alone)." })
|
|
161
161
|
visibility!: string
|
|
162
162
|
|
|
@@ -73,7 +73,7 @@ export class ChatSessionParticipant {
|
|
|
73
73
|
*
|
|
74
74
|
* 시작은 'owner' / 'member' 둘로 충분. 더 세분화 필요해지면 enum 확장.
|
|
75
75
|
*/
|
|
76
|
-
@Column({
|
|
76
|
+
@Column({ length: 16, default: 'member' })
|
|
77
77
|
@Field({ description: 'Role of this participant: owner | member | viewer.' })
|
|
78
78
|
role!: string
|
|
79
79
|
|
|
@@ -233,7 +233,7 @@ export async function runAssistantUnattended(input: UnattendedRunInput, deps: Un
|
|
|
233
233
|
draft: result.baseText,
|
|
234
234
|
doors,
|
|
235
235
|
cardsDropped: result.loop.proposals?.length ?? 0,
|
|
236
|
-
groundingWarnings: result.groundingWarnings?.length ? JSON.stringify(result.groundingWarnings)
|
|
236
|
+
groundingWarnings: result.groundingWarnings?.length ? JSON.stringify(result.groundingWarnings) : null,
|
|
237
237
|
...spent()
|
|
238
238
|
} as any)
|
|
239
239
|
}
|