@things-factory/ai-assistant 10.1.18 → 10.1.20
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-client/components/assistant-chat.js +15 -15
- package/dist-client/components/assistant-chat.js.map +1 -1
- package/dist-client/components/assistant-session-toolbar.js +7 -7
- package/dist-client/components/assistant-session-toolbar.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
|
@@ -293,7 +293,7 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
|
|
|
293
293
|
else {
|
|
294
294
|
this.showToast(i18next.t('ai-assistant.text.mention-not-found', {
|
|
295
295
|
token,
|
|
296
|
-
defaultValue: `#${token}
|
|
296
|
+
defaultValue: `#${token} not found`
|
|
297
297
|
}));
|
|
298
298
|
}
|
|
299
299
|
};
|
|
@@ -2146,7 +2146,7 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
|
|
|
2146
2146
|
: line.role === 'system'
|
|
2147
2147
|
? html `<span
|
|
2148
2148
|
class="sys-text"
|
|
2149
|
-
title=${i18next.t('ai-assistant.text.toggle-system-note', { defaultValue: '
|
|
2149
|
+
title=${i18next.t('ai-assistant.text.toggle-system-note', { defaultValue: 'click to expand' })}
|
|
2150
2150
|
@click=${() => this.toggleSystemNote(idx)}
|
|
2151
2151
|
>${content}</span
|
|
2152
2152
|
>`
|
|
@@ -2230,7 +2230,7 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
|
|
|
2230
2230
|
? html `
|
|
2231
2231
|
<div class="drag-drop-overlay">
|
|
2232
2232
|
<md-icon>cloud_upload</md-icon>
|
|
2233
|
-
<span>${i18next.t('ai-assistant.text.drop-files-here', { defaultValue: '
|
|
2233
|
+
<span>${i18next.t('ai-assistant.text.drop-files-here', { defaultValue: 'Drop images or files here' })}</span>
|
|
2234
2234
|
</div>
|
|
2235
2235
|
`
|
|
2236
2236
|
: nothing}
|
|
@@ -2253,9 +2253,9 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
|
|
|
2253
2253
|
type="button"
|
|
2254
2254
|
class="action"
|
|
2255
2255
|
@click=${() => this.renderRoot.querySelector('#chat-file-input')?.click()}
|
|
2256
|
-
title=${i18next.t('ai-assistant.tooltip.attach-file', { defaultValue: '
|
|
2256
|
+
title=${i18next.t('ai-assistant.tooltip.attach-file', { defaultValue: 'Attach images or files (drag & drop or paste supported)' })}>
|
|
2257
2257
|
<md-icon>attach_file</md-icon>
|
|
2258
|
-
${i18next.t('ai-assistant.button.attach', { defaultValue: '
|
|
2258
|
+
${i18next.t('ai-assistant.button.attach', { defaultValue: 'Attach' })}
|
|
2259
2259
|
</button>
|
|
2260
2260
|
${hasMessages
|
|
2261
2261
|
? html `
|
|
@@ -2288,7 +2288,7 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
|
|
|
2288
2288
|
<button
|
|
2289
2289
|
type="button"
|
|
2290
2290
|
class="attachment-remove"
|
|
2291
|
-
title=${i18next.t('ai-assistant.button.remove-attachment', { defaultValue: '
|
|
2291
|
+
title=${i18next.t('ai-assistant.button.remove-attachment', { defaultValue: 'Remove attachment' })}
|
|
2292
2292
|
@click=${() => this.removeAttachment(att.id)}>
|
|
2293
2293
|
<md-icon>close</md-icon>
|
|
2294
2294
|
</button>
|
|
@@ -2835,11 +2835,11 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
|
|
|
2835
2835
|
${folded.summarized
|
|
2836
2836
|
? i18next.t('ai-assistant.text.history-folded-summarized', {
|
|
2837
2837
|
count: folded.omitted,
|
|
2838
|
-
defaultValue: '
|
|
2838
|
+
defaultValue: 'this conversation grew long — the earlier {count} messages were folded into a summary. a new conversation is better for a different topic.'
|
|
2839
2839
|
})
|
|
2840
2840
|
: i18next.t('ai-assistant.text.history-folded', {
|
|
2841
2841
|
count: folded.omitted,
|
|
2842
|
-
defaultValue: '
|
|
2842
|
+
defaultValue: 'this conversation grew long — the earlier {count} messages were left out. a new conversation is better for a different topic.'
|
|
2843
2843
|
})}
|
|
2844
2844
|
</span>
|
|
2845
2845
|
<button class="fn-new" @click=${this.startNewFromNotice}>
|
|
@@ -2891,8 +2891,8 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
|
|
|
2891
2891
|
class="run"
|
|
2892
2892
|
?disabled=${sent}
|
|
2893
2893
|
@click=${() => this.executeProposal(p, key)}>
|
|
2894
|
-
${sent ? i18next.t('ai-assistant.text.proposal-sent', { defaultValue: '
|
|
2895
|
-
: i18next.t('ai-assistant.button.run-proposal', { defaultValue: '
|
|
2894
|
+
${sent ? i18next.t('ai-assistant.text.proposal-sent', { defaultValue: 'execution requested' })
|
|
2895
|
+
: i18next.t('ai-assistant.button.run-proposal', { defaultValue: 'run' })}
|
|
2896
2896
|
</button>
|
|
2897
2897
|
${ /*
|
|
2898
2898
|
Drawn only where the host has said it staged this candidate, in the host's own
|
|
@@ -3004,7 +3004,7 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
|
|
|
3004
3004
|
<md-icon>report</md-icon>
|
|
3005
3005
|
<span>
|
|
3006
3006
|
${i18next.t('ai-assistant.text.ungrounded-mention', {
|
|
3007
|
-
defaultValue: '
|
|
3007
|
+
defaultValue: 'Mentions an unverified target — not present in the actual data:'
|
|
3008
3008
|
})}
|
|
3009
3009
|
<span class="ids">${ids.join(', ')}</span>
|
|
3010
3010
|
</span>
|
|
@@ -3025,7 +3025,7 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
|
|
|
3025
3025
|
const open = !!line.toolUsagesOpen;
|
|
3026
3026
|
const readCount = usages.filter(u => u.kind === 'read').length;
|
|
3027
3027
|
const writeCount = usages.filter(u => u.kind === 'write').length;
|
|
3028
|
-
const toolsLabel = i18next.t('ai-assistant.text.tools-used', { defaultValue: '
|
|
3028
|
+
const toolsLabel = i18next.t('ai-assistant.text.tools-used', { defaultValue: 'Tools used' });
|
|
3029
3029
|
/* 눈에 걸려야 하는 것을 머리줄에 올린다 — 거절·접힘이 있으면 펼치기 전에 보인다.
|
|
3030
3030
|
* (이번 사고들이 전부 그것이었다: 인자 빠진 호출이 거절됐고, 중복 제안이 접혔다.) */
|
|
3031
3031
|
const problems = usages.filter(u => u.outcome === 'rejected' || u.outcome === 'error').length;
|
|
@@ -3043,12 +3043,12 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
|
|
|
3043
3043
|
· read ${readCount} · write ${writeCount}${problems
|
|
3044
3044
|
? html ` · <span class="tu-flag bad">${i18next.t('ai-assistant.text.tool-rejected-count', {
|
|
3045
3045
|
count: problems,
|
|
3046
|
-
defaultValue: '
|
|
3046
|
+
defaultValue: 'rejected {count}'
|
|
3047
3047
|
})}</span>`
|
|
3048
3048
|
: nothing}${folded
|
|
3049
3049
|
? html ` · <span class="tu-flag">${i18next.t('ai-assistant.text.tool-folded-count', {
|
|
3050
3050
|
count: folded,
|
|
3051
|
-
defaultValue: '
|
|
3051
|
+
defaultValue: 'folded {count}'
|
|
3052
3052
|
})}</span>`
|
|
3053
3053
|
: nothing}
|
|
3054
3054
|
</span>
|
|
@@ -3089,7 +3089,7 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
|
|
|
3089
3089
|
return html `
|
|
3090
3090
|
${newTurn
|
|
3091
3091
|
? html `<li class="tu-turn">
|
|
3092
|
-
${i18next.t('ai-assistant.text.tool-turn', { n: (u.iter ?? 0) + 1, defaultValue: '{n}
|
|
3092
|
+
${i18next.t('ai-assistant.text.tool-turn', { n: (u.iter ?? 0) + 1, defaultValue: 'decision {n}' })}
|
|
3093
3093
|
</li>`
|
|
3094
3094
|
: nothing}
|
|
3095
3095
|
<li class="tool-usage-item kind-${u.kind} outcome-${outcome}">
|