@things-factory/ai-assistant 10.1.44 → 10.1.45

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.
@@ -4226,7 +4226,7 @@ export class OxAssistantChat extends LitElement {
4226
4226
  <div class="tool-usage-head" @click=${() => this.toggleToolStep(openKey)}>
4227
4227
  <span class="tool-usage-step">${i + 1}.</span>
4228
4228
  <span class="tool-usage-name">${u.name}</span>
4229
- <span class="tu-badge ${outcome}">${this.outcomeLabel(outcome)}</span>
4229
+ <span class="tu-badge ${outcome}">${this.outcomeLabel(outcome, u.kind)}</span>
4230
4230
  <span class="tu-line" title=${this.stepSummary(u)}>${this.stepSummary(u)}</span>
4231
4231
  <md-icon class="tu-more">${open ? 'expand_less' : 'expand_more'}</md-icon>
4232
4232
  </div>
@@ -4242,8 +4242,17 @@ export class OxAssistantChat extends LitElement {
4242
4242
  `
4243
4243
  }
4244
4244
 
4245
- /** 배지 문구 — 코드가 아니라 사람 말로. */
4246
- private outcomeLabel(outcome: string): string {
4245
+ /**
4246
+ * 배지 문구 — 코드가 아니라 사람 말로.
4247
+ *
4248
+ * 끝까지 간 호출(ok)은 무엇을 했는지로 부른다 — 읽기는 「조회」, 쓰기는 「적용」. 전에는 ok 가
4249
+ * 언제나 「조회」였어서, 보드를 바꾼 addComponent 도 「read」 배지를 달았다(머리줄은 write 2 라고
4250
+ * 세는데).
4251
+ */
4252
+ private outcomeLabel(outcome: string, kind?: string): string {
4253
+ if (outcome === 'ok' && kind === 'write') {
4254
+ return i18next.t('ai-assistant.text.outcome-applied', { defaultValue: 'applied' })
4255
+ }
4247
4256
  const map: Record<string, [string, string]> = {
4248
4257
  ok: ['ai-assistant.text.outcome-ok', 'read'],
4249
4258
  rejected: ['ai-assistant.text.outcome-rejected', 'rejected'],
@@ -589,7 +589,13 @@ export declare class OxAssistantChat extends LitElement {
589
589
  * 안 보인다. 한 줄로 줄이고 원본은 항목별로 눌러서 본다.
590
590
  */
591
591
  private renderToolStep;
592
- /** 배지 문구 — 코드가 아니라 사람 말로. */
592
+ /**
593
+ * 배지 문구 — 코드가 아니라 사람 말로.
594
+ *
595
+ * 끝까지 간 호출(ok)은 무엇을 했는지로 부른다 — 읽기는 「조회」, 쓰기는 「적용」. 전에는 ok 가
596
+ * 언제나 「조회」였어서, 보드를 바꾼 addComponent 도 「read」 배지를 달았다(머리줄은 write 2 라고
597
+ * 세는데).
598
+ */
593
599
  private outcomeLabel;
594
600
  /**
595
601
  * 결과 한 줄 — 무엇을 얻었는지/왜 막혔는지만. 목록에서 훑어 읽을 수 있어야 한다.
@@ -3751,7 +3751,7 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
3751
3751
  <div class="tool-usage-head" @click=${() => this.toggleToolStep(openKey)}>
3752
3752
  <span class="tool-usage-step">${i + 1}.</span>
3753
3753
  <span class="tool-usage-name">${u.name}</span>
3754
- <span class="tu-badge ${outcome}">${this.outcomeLabel(outcome)}</span>
3754
+ <span class="tu-badge ${outcome}">${this.outcomeLabel(outcome, u.kind)}</span>
3755
3755
  <span class="tu-line" title=${this.stepSummary(u)}>${this.stepSummary(u)}</span>
3756
3756
  <md-icon class="tu-more">${open ? 'expand_less' : 'expand_more'}</md-icon>
3757
3757
  </div>
@@ -3766,8 +3766,17 @@ let OxAssistantChat = class OxAssistantChat extends LitElement {
3766
3766
  </li>
3767
3767
  `;
3768
3768
  }
3769
- /** 배지 문구 — 코드가 아니라 사람 말로. */
3770
- outcomeLabel(outcome) {
3769
+ /**
3770
+ * 배지 문구 — 코드가 아니라 사람 말로.
3771
+ *
3772
+ * 끝까지 간 호출(ok)은 무엇을 했는지로 부른다 — 읽기는 「조회」, 쓰기는 「적용」. 전에는 ok 가
3773
+ * 언제나 「조회」였어서, 보드를 바꾼 addComponent 도 「read」 배지를 달았다(머리줄은 write 2 라고
3774
+ * 세는데).
3775
+ */
3776
+ outcomeLabel(outcome, kind) {
3777
+ if (outcome === 'ok' && kind === 'write') {
3778
+ return i18next.t('ai-assistant.text.outcome-applied', { defaultValue: 'applied' });
3779
+ }
3771
3780
  const map = {
3772
3781
  ok: ['ai-assistant.text.outcome-ok', 'read'],
3773
3782
  rejected: ['ai-assistant.text.outcome-rejected', 'rejected'],