@artooi/ag-ui-web-component 0.36.0 → 0.37.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ag_ui_chat.d.ts","sourceRoot":"","sources":["../../src/core/ag_ui_chat.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAsB,IAAI,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAqBL,YAAY,EAkBb,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EAEvB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,kCAAkC,CAAC;AAGvF,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAwB,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAE9E,OAAO,EAAoB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,wBAAwB,CAAC;AA6BhC,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAqBpE,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AASzF,OAAO,EAAE,KAAK,aAAa,EAAsB,MAAM,iBAAiB,CAAC;AACzE,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EAG1B,MAAM,yBAAyB,CAAC;AACjC,OAAO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AAC,OAAO,CAAC,CAmBtC;IA+OD;;;;;;;;;OASG;IACH,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG,cAAc,CAyBhE;IAm1BD;;;;;;;;;;;;;;OAcG;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,GAAE,SAAS,aAAa,EAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAgB5F;IAED;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAM9B;IA0gCD;;;;;;;;;;;;;;;;;OAiBG;IACH,YAAY,CAAC,MAAM,GAAE,SAAS,CAAC,MAAM,GAAG,UAAU,CAAC,EAAyB,GAAG,IAAI,CA2BlF;IAmCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,wBAAwB,CAAC,YAAY,EAAE,oBAAoB,GAAG,IAAI,CAGjE;IAED;;;;;;;;OAQG;IACH,IAAI,sBAAsB,IAAI,SAAS,MAAM,EAAE,CAE9C;CAoHF"}
package/dist/index.js CHANGED
@@ -829,6 +829,8 @@ var DEFAULT_UI_STRINGS = {
829
829
  runInterrupted: "The previous response didn\u2019t finish \u2014 the page changed before it arrived.",
830
830
  pageMoved: "The page changed since you last looked at it. Call read_page to see the current page, then retry.",
831
831
  attachmentsStillUploading: "{n} file still uploading \u2014 it was not sent with this message and is still attached.",
832
+ notConnected: "This chat isn\u2019t connected to an agent, so the message wasn\u2019t sent.",
833
+ continueNeedsTurn: "Type the next turn in the composer first, then pick a run to continue.",
832
834
  skillNeeds: "\u201C{title}\u201D needs {fields} \u2014 fill it in below, then send.",
833
835
  message: "Message",
834
836
  inputPlaceholder: "Ask anything\u2026",
@@ -12254,7 +12256,17 @@ var AgUiChat = class extends HTMLElement {
12254
12256
  #checkpoints;
12255
12257
  /** Built lazily from `data-runs-url`; `null` when the host didn't opt in. */
12256
12258
  #runIndex = null;
12257
- #skillHint;
12259
+ /**
12260
+ * The one-line hint above the composer, cleared by the next keystroke.
12261
+ *
12262
+ * Two things write it -- a skill whose template is short of a field, and a
12263
+ * run continuation picked with nothing typed -- and both say the same kind of
12264
+ * thing: what the composer still needs before this can go. Its `part` stays
12265
+ * `skill-hint`, which the skills feature named and the README documents;
12266
+ * renaming a part is breaking, and a second hint element in the same slot
12267
+ * would be worse than one whose name is a release older than its job.
12268
+ */
12269
+ #composerHint;
12258
12270
  /** File-picker button + hidden input + tray slot; the tray mounts on connect. */
12259
12271
  #attachButton;
12260
12272
  #fileInput;
@@ -12444,7 +12456,7 @@ var AgUiChat = class extends HTMLElement {
12444
12456
  this.#input = document.createElement("textarea");
12445
12457
  this.#send = document.createElement("button");
12446
12458
  this.#title = document.createElement("span");
12447
- this.#skillHint = document.createElement("div");
12459
+ this.#composerHint = document.createElement("div");
12448
12460
  this.#attachButton = document.createElement("button");
12449
12461
  this.#fileInput = document.createElement("input");
12450
12462
  this.#attachSlot = document.createElement("div");
@@ -12528,6 +12540,9 @@ var AgUiChat = class extends HTMLElement {
12528
12540
  }
12529
12541
  const content = this.#input.value.trim();
12530
12542
  if (content === "") {
12543
+ this.#composerHint.textContent = this.#strings.continueNeedsTurn;
12544
+ this.#composerHint.hidden = false;
12545
+ this.#input.focus();
12531
12546
  return;
12532
12547
  }
12533
12548
  this.#input.value = "";
@@ -13050,20 +13065,37 @@ var AgUiChat = class extends HTMLElement {
13050
13065
  const value = this.getAttribute(name);
13051
13066
  return value !== null && value !== "false";
13052
13067
  }
13053
- /** Parse the inline `data-strings` JSON overrides (empty when absent/malformed). */
13054
- #readStringOverrides() {
13055
- const raw = this.getAttribute("data-strings");
13068
+ /**
13069
+ * Parse a JSON-valued attribute, saying so when it will not parse.
13070
+ *
13071
+ * `null` for an absent attribute, and `null` again for one that is not JSON --
13072
+ * but not quietly the second time. Quoting JSON inside an HTML attribute is
13073
+ * fiddly, and the result of getting it wrong is indistinguishable from the
13074
+ * feature being switched off: no chips appear, or the strings stay English,
13075
+ * with nothing anywhere saying why. That is the same failure `data-paste-attach`
13076
+ * already reports for a value it cannot read.
13077
+ *
13078
+ * Console only. A page author's typo is not the reader's business, nothing the
13079
+ * reader did was refused, and the degraded widget is still perfectly usable.
13080
+ */
13081
+ #readJsonAttribute(name) {
13082
+ const raw = this.getAttribute(name);
13056
13083
  if (raw === null) {
13057
- return {};
13084
+ return null;
13058
13085
  }
13059
13086
  try {
13060
- const parsed = JSON.parse(raw);
13061
- if (typeof parsed === "object" && parsed !== null) {
13062
- return parsed;
13063
- }
13087
+ return JSON.parse(raw);
13064
13088
  } catch {
13089
+ console.warn(
13090
+ `<ag-ui-chat>: ${name} is not valid JSON, so it was ignored entirely and the built-in default is being used. Check the quoting -- JSON inside an HTML attribute needs single quotes around the attribute value, or its own double quotes escaped.`
13091
+ );
13092
+ return null;
13065
13093
  }
13066
- return {};
13094
+ }
13095
+ /** Parse the inline `data-strings` JSON overrides (empty when absent/malformed). */
13096
+ #readStringOverrides() {
13097
+ const parsed = this.#readJsonAttribute("data-strings");
13098
+ return typeof parsed === "object" && parsed !== null ? parsed : {};
13067
13099
  }
13068
13100
  /**
13069
13101
  * Enable the composer's file-upload tray when uploads are possible — either a
@@ -13474,15 +13506,7 @@ ${quoted}`;
13474
13506
  }
13475
13507
  /** Parse the inline `data-skills` JSON catalog (empty when absent/malformed). */
13476
13508
  #readEmbeddedSkills() {
13477
- const raw = this.getAttribute("data-skills");
13478
- if (raw === null) {
13479
- return [];
13480
- }
13481
- try {
13482
- return parseSkills(JSON.parse(raw));
13483
- } catch {
13484
- return [];
13485
- }
13509
+ return parseSkills(this.#readJsonAttribute("data-skills"));
13486
13510
  }
13487
13511
  /** Fetch the backend skills catalog from `data-skills-url`, if set. */
13488
13512
  async #fetchSkills() {
@@ -13521,21 +13545,21 @@ ${quoted}`;
13521
13545
  */
13522
13546
  #applySkill(skill) {
13523
13547
  if (skill.prompt === void 0) {
13524
- this.#skillHint.hidden = true;
13548
+ this.#composerHint.hidden = true;
13525
13549
  void this.sendMessage(`/${skill.name}`);
13526
13550
  return;
13527
13551
  }
13528
13552
  const { text: text4, missing } = fillTemplate(skill.prompt, this.skillContext());
13529
13553
  if (missing.length > 0) {
13530
- this.#skillHint.textContent = this.#strings.skillNeeds.replace("{title}", skill.title).replace("{fields}", missing.join(", "));
13531
- this.#skillHint.hidden = false;
13554
+ this.#composerHint.textContent = this.#strings.skillNeeds.replace("{title}", skill.title).replace("{fields}", missing.join(", "));
13555
+ this.#composerHint.hidden = false;
13532
13556
  this.#input.value = text4;
13533
13557
  this.#autoGrow();
13534
13558
  this.#input.focus();
13535
13559
  this.#selectFirstPlaceholder(text4);
13536
13560
  return;
13537
13561
  }
13538
- this.#skillHint.hidden = true;
13562
+ this.#composerHint.hidden = true;
13539
13563
  this.#input.value = text4;
13540
13564
  this.#autoGrow();
13541
13565
  if (skill.sendImmediately === false) {
@@ -15058,9 +15082,9 @@ ${quoted}`;
15058
15082
  }
15059
15083
  void this.#submit();
15060
15084
  });
15061
- this.#skillHint.className = "skill-hint";
15062
- this.#skillHint.setAttribute("part", "skill-hint");
15063
- this.#skillHint.hidden = true;
15085
+ this.#composerHint.className = "skill-hint";
15086
+ this.#composerHint.setAttribute("part", "skill-hint");
15087
+ this.#composerHint.hidden = true;
15064
15088
  this.#attachButton.className = "attach-btn";
15065
15089
  this.#attachButton.type = "button";
15066
15090
  this.#attachButton.setAttribute("part", "attach-button");
@@ -15088,7 +15112,7 @@ ${quoted}`;
15088
15112
  this.#messagesWrap,
15089
15113
  this.#skillsMenu.palette,
15090
15114
  this.#skillsMenu.chips,
15091
- this.#skillHint,
15115
+ this.#composerHint,
15092
15116
  this.#queuedRow,
15093
15117
  this.#attachSlot,
15094
15118
  inputRow,
@@ -15361,10 +15385,16 @@ ${quoted}`;
15361
15385
  #updateEmptyState() {
15362
15386
  this.#emptyWrap.hidden = this.#messages.childElementCount > 1;
15363
15387
  }
15364
- /** Forward input changes to the skills palette and clear any stale hint. */
15388
+ /**
15389
+ * Forward input changes to the skills palette and clear any stale hint.
15390
+ *
15391
+ * Typing is the answer to every hint that surface carries -- a skill short of
15392
+ * a field, a continuation short of its next turn -- so the keystroke that
15393
+ * starts answering it is the right moment to take it down.
15394
+ */
15365
15395
  #onInput() {
15366
15396
  this.#skillsMenu.onInput(this.#input.value);
15367
- this.#skillHint.hidden = true;
15397
+ this.#composerHint.hidden = true;
15368
15398
  this.#autoGrow();
15369
15399
  this.#recallIndex = null;
15370
15400
  }
@@ -15601,8 +15631,36 @@ ${quoted}`;
15601
15631
  })
15602
15632
  );
15603
15633
  }
15634
+ /**
15635
+ * Hand the message to the client, or say why it is going nowhere.
15636
+ *
15637
+ * With no `endpoint` there is nothing to send to, and this used to return
15638
+ * here in silence. That is the worst shape the failure can take, because the
15639
+ * two halves of a send that *did* work have already happened by now: the
15640
+ * user's bubble is on screen and {@link SUBMIT_EVENT} has been dispatched. So
15641
+ * the message looks sent, the composer is empty, the Send button never turns
15642
+ * into Stop, and no request is ever made -- an unanswered question rather
15643
+ * than a broken widget. Nothing reached the console either, so the developer
15644
+ * had no thread to pull and the user had no reason to think anything was
15645
+ * wrong with the page.
15646
+ *
15647
+ * Both audiences are told, because they need different things. The console
15648
+ * carries the developer's version -- the attribute is missing, here is what
15649
+ * to set -- since a missing attribute is a page's mistake and not the
15650
+ * reader's. The transcript carries the reader's, because they are looking at
15651
+ * their own message waiting for a reply that cannot come, and the honest
15652
+ * alternative to one muted line is an indefinite wait.
15653
+ *
15654
+ * Said on every attempt rather than once. Each send is a separate thing the
15655
+ * user asked for and did not get, and a once-only report is silence for every
15656
+ * attempt after the first -- which is the defect again, just later.
15657
+ */
15604
15658
  async #client_send(content, attachments) {
15605
15659
  if (this.endpoint === "") {
15660
+ console.error(
15661
+ '<ag-ui-chat>: no endpoint is set, so this message was not sent and no request was made. Point the element at your AG-UI mount with the endpoint attribute (endpoint="/agent/"), or assign chat.endpoint before sending.'
15662
+ );
15663
+ this.#appendNotice("\u26A0", this.#strings.notConnected, "not-connected");
15606
15664
  return;
15607
15665
  }
15608
15666
  await this.#ensureClient().send(content, attachments);
@@ -16609,7 +16667,7 @@ function setControlValue(el2, value) {
16609
16667
  }
16610
16668
 
16611
16669
  // src/version.ts
16612
- var VERSION = "0.36.0";
16670
+ var VERSION = "0.37.0";
16613
16671
  export {
16614
16672
  ATTACHMENT_EVENT,
16615
16673
  AgUiChat,