@things-factory/ai-assistant 10.1.52 → 10.1.58

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/ai-assistant",
3
- "version": "10.1.52",
3
+ "version": "10.1.58",
4
4
  "main": "dist-server/index.js",
5
5
  "things-factory": true,
6
6
  "author": "heartyoh",
@@ -33,7 +33,7 @@
33
33
  "@operato/popup": "^10.16.0",
34
34
  "@operato/shell": "^10.0.0",
35
35
  "@operato/styles": "^10.0.0",
36
- "@things-factory/ai-client-base": "^10.1.39",
36
+ "@things-factory/ai-client-base": "^10.1.53",
37
37
  "@things-factory/apptool-base": "^10.1.47",
38
38
  "@things-factory/attachment-base": "^10.1.47",
39
39
  "@things-factory/auth-base": "^10.1.47",
@@ -51,5 +51,5 @@
51
51
  "copyfiles": "^2.4.1",
52
52
  "rimraf": "^5.0.0"
53
53
  },
54
- "gitHead": "b3ec4f0a38f0759d396f49b1f47c547bff4657be"
54
+ "gitHead": "9410a421e67ef11035d1e13a68a1ae88ed91d18b"
55
55
  }
@@ -122,3 +122,23 @@ describe('attachments in the chat follow the mode', () => {
122
122
  assert.match(chat, /chatAttachmentUrl\(this\.sessionId, att\.id\)/)
123
123
  })
124
124
  })
125
+
126
+ describe('what twin needed of the dock', () => {
127
+ it('a surface that says its words changed repaints the header without reopening the conversation', () => {
128
+ assert.match(dock, /next === this\.surface && this\.scopeKey\(next\) === this\.openedFor\) \{\s*this\.requestUpdate\(\)\s*return/)
129
+ })
130
+
131
+ it('a question with no conversation to go to is said now, never sent later; a draft waits', () => {
132
+ assert.match(dock, /if \(waiting\.ask\) notify\(/)
133
+ assert.match(dock, /else holdAssistantAsk\(waiting\)/)
134
+ assert.match(dock, /if \(this\.anchor && !isAnchor\(this\.anchor\)\) void this\.takeAsk\(\)/)
135
+ })
136
+
137
+ it('a handler\'s note stays in the conversation after its outcome is reported', () => {
138
+ assert.match(dock, /await this\.report\(sessionId, proposalKey, outcome\)\s*if \(outcome\.note && sessionId\) await this\.appendNote\(sessionId, outcome\.note\)/)
139
+ })
140
+
141
+ it('a carried conversation that could not be made is said, not swallowed', () => {
142
+ assert.match(dock, /this\.startCarried\(ask\)\.catch\(error => \{\s*notify\(\{ level: 'error'/)
143
+ })
144
+ })
@@ -170,5 +170,6 @@
170
170
  "ai-assistant.session.filter-any-visibility": "Public and private",
171
171
  "ai-assistant.session.filter-open": "Public",
172
172
  "ai-assistant.session.filter-private": "Private",
173
- "ai-assistant.session.filter-unread": "Unread"
173
+ "ai-assistant.session.filter-unread": "Unread",
174
+ "ai-assistant.dock.ask-needs-conversation": "the question was not sent."
174
175
  }
@@ -170,5 +170,6 @@
170
170
  "ai-assistant.session.filter-any-visibility": "公開・非公開",
171
171
  "ai-assistant.session.filter-open": "公開",
172
172
  "ai-assistant.session.filter-private": "非公開",
173
- "ai-assistant.session.filter-unread": "未読"
173
+ "ai-assistant.session.filter-unread": "未読",
174
+ "ai-assistant.dock.ask-needs-conversation": "質問は送信されませんでした。"
174
175
  }
@@ -170,5 +170,6 @@
170
170
  "ai-assistant.session.filter-any-visibility": "공개 · 비공개",
171
171
  "ai-assistant.session.filter-open": "공개",
172
172
  "ai-assistant.session.filter-private": "비공개",
173
- "ai-assistant.session.filter-unread": "안 읽음"
173
+ "ai-assistant.session.filter-unread": "안 읽음",
174
+ "ai-assistant.dock.ask-needs-conversation": "질문을 보내지 않았습니다."
174
175
  }
@@ -170,5 +170,6 @@
170
170
  "ai-assistant.session.filter-any-visibility": "Awam dan peribadi",
171
171
  "ai-assistant.session.filter-open": "Awam",
172
172
  "ai-assistant.session.filter-private": "Peribadi",
173
- "ai-assistant.session.filter-unread": "Belum dibaca"
173
+ "ai-assistant.session.filter-unread": "Belum dibaca",
174
+ "ai-assistant.dock.ask-needs-conversation": "soalan tidak dihantar."
174
175
  }
@@ -170,5 +170,6 @@
170
170
  "ai-assistant.session.filter-any-visibility": "公开和私密",
171
171
  "ai-assistant.session.filter-open": "公开",
172
172
  "ai-assistant.session.filter-private": "私密",
173
- "ai-assistant.session.filter-unread": "未读"
173
+ "ai-assistant.session.filter-unread": "未读",
174
+ "ai-assistant.dock.ask-needs-conversation": "问题未发送。"
174
175
  }