@noodleseed/assistant 1.15.0 → 1.16.1

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.
@@ -8383,6 +8383,11 @@ function toAssistantClientEvent(event) {
8383
8383
  return event;
8384
8384
  }
8385
8385
  break;
8386
+ case "auth_requested":
8387
+ if (hasString(value, "id") && hasString(value, "tool") && hasString(value, "continuation") && hasString(value, "expiresAt") && hasOptionalTurnId(value)) {
8388
+ return event;
8389
+ }
8390
+ break;
8386
8391
  case "interaction_resolved":
8387
8392
  if (hasString(value, "id") && (value.action === void 0 || isInteractionAction(value.action)) && hasOptionalTurnId(value)) {
8388
8393
  return event;
@@ -8763,6 +8768,10 @@ var DefaultAssistantClient = class {
8763
8768
  getChatState() {
8764
8769
  return this.#chat.getState();
8765
8770
  }
8771
+ /** Whether a session already exists, so a caller can avoid re-entering its loading state. */
8772
+ hasSession() {
8773
+ return this.#session !== void 0;
8774
+ }
8766
8775
  async connect() {
8767
8776
  if (this.#session) return;
8768
8777
  await this.#singleFlight(async (signal) => {
@@ -9251,4 +9260,4 @@ export {
9251
9260
  AssistantClientError,
9252
9261
  createAssistantClient
9253
9262
  };
9254
- //# sourceMappingURL=chunk-RRJIK473.js.map
9263
+ //# sourceMappingURL=chunk-RIKRQFKS.js.map