@things-factory/ai-assistant 10.1.122 → 10.1.125
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/client/components/assistant-chat.ts +23 -27
- package/client/utils/assistant-navigation.test.ts +22 -0
- package/dist-client/components/assistant-chat.js +21 -26
- package/dist-client/components/assistant-chat.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/utils/assistant-navigation.test.js +20 -0
- package/dist-client/utils/assistant-navigation.test.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/test/assistant-request-context.test.ts +3 -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.125",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"things-factory": true,
|
|
6
6
|
"author": "heartyoh",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@operato/shell": "^10.0.0",
|
|
35
35
|
"@operato/styles": "^10.0.0",
|
|
36
36
|
"@things-factory/ai-client-base": "^10.1.114",
|
|
37
|
-
"@things-factory/apptool-base": "^10.1.
|
|
38
|
-
"@things-factory/attachment-base": "^10.1.
|
|
39
|
-
"@things-factory/auth-base": "^10.1.
|
|
37
|
+
"@things-factory/apptool-base": "^10.1.123",
|
|
38
|
+
"@things-factory/attachment-base": "^10.1.123",
|
|
39
|
+
"@things-factory/auth-base": "^10.1.123",
|
|
40
40
|
"@things-factory/env": "^10.1.20",
|
|
41
|
-
"@things-factory/shell": "^10.1.
|
|
41
|
+
"@things-factory/shell": "^10.1.123",
|
|
42
42
|
"dompurify": "^3.0.0",
|
|
43
43
|
"exceljs": "4.2.0",
|
|
44
44
|
"graphql-scalars": "^1.22.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"copyfiles": "^2.4.1",
|
|
53
53
|
"rimraf": "^5.0.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "74e02381ea5f179dca2b7516078eb2709ac28ffe"
|
|
56
56
|
}
|
|
@@ -63,7 +63,9 @@ test('no draft, nothing to do', () => {
|
|
|
63
63
|
|
|
64
64
|
test('the component places the draft and never sends it', () => {
|
|
65
65
|
const chat = readFileSync(join(__dirname, '../client/components/assistant-chat.ts'), 'utf8')
|
|
66
|
-
const
|
|
66
|
+
const start = chat.indexOf(' updated(changed')
|
|
67
|
+
const updated = chat.slice(start, chat.indexOf('// 자동 스크롤', start))
|
|
68
|
+
assert.ok(updated.includes('assistantDraftDecision('), 'the draft decision is made in updated()')
|
|
67
69
|
const draftPart = updated.slice(updated.indexOf('assistantDraftDecision('))
|
|
68
70
|
assert.match(draftPart, /this\.input = this\.draft!/)
|
|
69
71
|
assert.doesNotMatch(draftPart, /this\.send\(\)/)
|