@artooi/ag-ui-web-component 0.22.0 → 0.23.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.
Files changed (122) hide show
  1. package/CHANGELOG.md +134 -36
  2. package/README.md +7 -7
  3. package/dist/ag-ui-web-component.bundle.js +145 -118
  4. package/dist/ag-ui-web-component.bundle.js.map +3 -3
  5. package/dist/constants.d.ts +65 -78
  6. package/dist/constants.d.ts.map +1 -1
  7. package/dist/core/ag_ui_chat.d.ts +93 -126
  8. package/dist/core/ag_ui_chat.d.ts.map +1 -1
  9. package/dist/core/agui_client.d.ts +24 -30
  10. package/dist/core/agui_client.d.ts.map +1 -1
  11. package/dist/core/attachment.d.ts +9 -14
  12. package/dist/core/attachment.d.ts.map +1 -1
  13. package/dist/core/conversation_store.d.ts +20 -27
  14. package/dist/core/conversation_store.d.ts.map +1 -1
  15. package/dist/core/create_http_agent.d.ts +13 -15
  16. package/dist/core/create_http_agent.d.ts.map +1 -1
  17. package/dist/core/remote_conversation_store.d.ts +8 -9
  18. package/dist/core/remote_conversation_store.d.ts.map +1 -1
  19. package/dist/core/run_index.d.ts +11 -20
  20. package/dist/core/run_index.d.ts.map +1 -1
  21. package/dist/core/transcribe_audio.d.ts +8 -8
  22. package/dist/core/transcribe_audio.d.ts.map +1 -1
  23. package/dist/core/upload_attachment.d.ts +15 -18
  24. package/dist/core/upload_attachment.d.ts.map +1 -1
  25. package/dist/core/utils.d.ts +4 -6
  26. package/dist/core/utils.d.ts.map +1 -1
  27. package/dist/dom/animations.d.ts +22 -30
  28. package/dist/dom/animations.d.ts.map +1 -1
  29. package/dist/dom/dom_driver.d.ts +7 -7
  30. package/dist/dom/native_setter.d.ts +2 -2
  31. package/dist/dom/native_setter.d.ts.map +1 -1
  32. package/dist/index.js +347 -401
  33. package/dist/index.js.map +2 -2
  34. package/dist/skills/fill_template.d.ts +4 -5
  35. package/dist/skills/fill_template.d.ts.map +1 -1
  36. package/dist/skills/parse_skills.d.ts.map +1 -1
  37. package/dist/skills/skill.d.ts +7 -8
  38. package/dist/skills/skill.d.ts.map +1 -1
  39. package/dist/tools/client_tool_registry.d.ts +2 -2
  40. package/dist/tools/page_action_tools.d.ts +7 -10
  41. package/dist/tools/page_action_tools.d.ts.map +1 -1
  42. package/dist/tools/page_state.d.ts +5 -8
  43. package/dist/tools/page_state.d.ts.map +1 -1
  44. package/dist/tools/route_map.d.ts +7 -10
  45. package/dist/tools/route_map.d.ts.map +1 -1
  46. package/dist/ui/approval_card.d.ts +15 -20
  47. package/dist/ui/approval_card.d.ts.map +1 -1
  48. package/dist/ui/attach_copy_buttons.d.ts +4 -10
  49. package/dist/ui/attach_copy_buttons.d.ts.map +1 -1
  50. package/dist/ui/attachment_chips.d.ts +13 -5
  51. package/dist/ui/attachment_chips.d.ts.map +1 -1
  52. package/dist/ui/attachment_tray.d.ts +6 -6
  53. package/dist/ui/attachment_tray.d.ts.map +1 -1
  54. package/dist/ui/checkpoint_menu.d.ts +7 -8
  55. package/dist/ui/checkpoint_menu.d.ts.map +1 -1
  56. package/dist/ui/confirmation_card.d.ts +10 -15
  57. package/dist/ui/confirmation_card.d.ts.map +1 -1
  58. package/dist/ui/question_card.d.ts +12 -15
  59. package/dist/ui/question_card.d.ts.map +1 -1
  60. package/dist/ui/relative_time.d.ts +5 -7
  61. package/dist/ui/relative_time.d.ts.map +1 -1
  62. package/dist/ui/render_markdown.d.ts +8 -8
  63. package/dist/ui/render_markdown.d.ts.map +1 -1
  64. package/dist/ui/resize_handle.d.ts +21 -34
  65. package/dist/ui/resize_handle.d.ts.map +1 -1
  66. package/dist/ui/run_notice.d.ts +5 -7
  67. package/dist/ui/run_notice.d.ts.map +1 -1
  68. package/dist/ui/skills_menu.d.ts +4 -5
  69. package/dist/ui/skills_menu.d.ts.map +1 -1
  70. package/dist/ui/styles.d.ts +1 -1
  71. package/dist/ui/styles.d.ts.map +1 -1
  72. package/dist/ui/thoughts_block.d.ts +9 -11
  73. package/dist/ui/thoughts_block.d.ts.map +1 -1
  74. package/dist/ui/thread_drawer.d.ts +6 -5
  75. package/dist/ui/thread_drawer.d.ts.map +1 -1
  76. package/dist/ui/tool_call_card.d.ts +17 -25
  77. package/dist/ui/tool_call_card.d.ts.map +1 -1
  78. package/dist/ui/ui_strings.d.ts +6 -12
  79. package/dist/ui/ui_strings.d.ts.map +1 -1
  80. package/dist/ui/voice_input.d.ts +10 -11
  81. package/dist/ui/voice_input.d.ts.map +1 -1
  82. package/package.json +1 -1
  83. package/src/constants.ts +71 -80
  84. package/src/core/ag_ui_chat.ts +242 -292
  85. package/src/core/agui_client.ts +60 -71
  86. package/src/core/attachment.ts +9 -14
  87. package/src/core/conversation_store.ts +25 -33
  88. package/src/core/create_http_agent.ts +18 -22
  89. package/src/core/remote_conversation_store.ts +14 -15
  90. package/src/core/run_index.ts +14 -23
  91. package/src/core/transcribe_audio.ts +9 -10
  92. package/src/core/upload_attachment.ts +18 -21
  93. package/src/core/utils.ts +4 -6
  94. package/src/dom/animations.ts +33 -43
  95. package/src/dom/dom_driver.ts +7 -7
  96. package/src/dom/native_setter.ts +11 -12
  97. package/src/skills/fill_template.ts +4 -5
  98. package/src/skills/parse_skills.ts +3 -4
  99. package/src/skills/skill.ts +7 -8
  100. package/src/tools/client_tool_registry.ts +2 -2
  101. package/src/tools/page_action_tools.ts +12 -15
  102. package/src/tools/page_state.ts +5 -8
  103. package/src/tools/route_map.ts +15 -19
  104. package/src/ui/approval_card.ts +15 -20
  105. package/src/ui/attach_copy_buttons.ts +9 -18
  106. package/src/ui/attachment_chips.ts +19 -10
  107. package/src/ui/attachment_tray.ts +8 -7
  108. package/src/ui/checkpoint_menu.ts +7 -8
  109. package/src/ui/confirmation_card.ts +10 -15
  110. package/src/ui/question_card.ts +12 -15
  111. package/src/ui/relative_time.ts +5 -7
  112. package/src/ui/render_markdown.ts +25 -51
  113. package/src/ui/resize_handle.ts +25 -38
  114. package/src/ui/run_notice.ts +9 -12
  115. package/src/ui/skills_menu.ts +4 -5
  116. package/src/ui/styles.ts +122 -93
  117. package/src/ui/thoughts_block.ts +11 -13
  118. package/src/ui/thread_drawer.ts +6 -5
  119. package/src/ui/tool_call_card.ts +22 -32
  120. package/src/ui/ui_strings.ts +6 -12
  121. package/src/ui/voice_input.ts +10 -11
  122. package/src/version.ts +1 -1
@@ -23,9 +23,9 @@ export interface ToolExecution {
23
23
  /**
24
24
  * Executes a frontend tool call.
25
25
  *
26
- * Returns the {@link ToolExecution} to post back to the agent, or ``null`` when
27
- * the call is not a frontend tool the host owns (a server-side tool the server
28
- * already executed the client must not re-run for it).
26
+ * Returns the {@link ToolExecution} to post back to the agent, or `null` when
27
+ * the call is not a frontend tool the host owns a server-side tool the server
28
+ * already executed, which the client must not re-run.
29
29
  */
30
30
  export type ExecuteTool = (call: AgUiToolCall) => Promise<ToolExecution | null>;
31
31
  /**
@@ -43,11 +43,10 @@ export type InterruptResponse = {
43
43
  /**
44
44
  * Resolves the approval interrupts a run finished on, keyed by interrupt id.
45
45
  *
46
- * When a gated **server-side** tool defers instead of executing, the run
47
- * finishes on an AG-UI interrupt outcome; the host renders an approval card per
48
- * interrupt and returns each decision here, and the loop resumes the run with
49
- * the answers. Omit for agents that never gate server-side tools — an
50
- * unresolved interrupt then simply ends the loop.
46
+ * A gated server-side tool defers instead of executing, so the run finishes on
47
+ * an interrupt outcome; the host collects one decision per interrupt and the
48
+ * loop resumes with the answers. Omit for agents that never gate server-side
49
+ * tools an unresolved interrupt then ends the loop.
51
50
  */
52
51
  export type ResolveInterrupts = (interrupts: readonly Interrupt[]) => Promise<Record<string, InterruptResponse>>;
53
52
  /**
@@ -57,9 +56,9 @@ export type ResolveInterrupts = (interrupts: readonly Interrupt[]) => Promise<Re
57
56
  */
58
57
  export interface AgUiClientHandlers {
59
58
  onRunStart(): void;
60
- /** Fired on every streamed token; ``buffer`` is the full text so far. */
59
+ /** Fired on every streamed token; `buffer` is the full text so far. */
61
60
  onTextDelta(buffer: string): void;
62
- /** Fired when the assistant message completes; ``buffer`` is the final text. */
61
+ /** Fired when the assistant message completes; `buffer` is the final text. */
63
62
  onTextEnd(buffer: string): void;
64
63
  /** Fired when the agent finishes calling a tool (server- or frontend-side). */
65
64
  onToolCall(call: AgUiToolCall): void;
@@ -85,17 +84,15 @@ export interface AgUiClientHandlers {
85
84
  onError(message: string): void;
86
85
  /**
87
86
  * Fired when the user cancelled the run ({@link AgUiClient.cancel}) — the
88
- * deliberate-stop sibling of `onError`. Any partial assistant text already
89
- * streamed stays valid; the host should keep the bubble and show a muted
90
- * "stopped" affordance rather than an error. `onSettled` still follows.
87
+ * deliberate-stop sibling of `onError`. Partial assistant text already
88
+ * streamed stays valid, so the host keeps the bubble and shows a stopped
89
+ * affordance rather than an error. `onSettled` still follows.
91
90
  */
92
91
  onCancelled(): void;
93
92
  /**
94
- * Fired exactly once when the whole interaction settles after the run loop
95
- * ends for any reason (a server-only round, frontend-tool rounds exhausted,
96
- * a cancellation, or an error). The terminal guarantee that the UI returns
97
- * to rest (pending indicator cleared, input re-enabled) no matter how the
98
- * run finished.
93
+ * Fired exactly once when the interaction settles, however the run loop ended
94
+ * server-only round, rounds exhausted, cancellation, or error. The terminal
95
+ * guarantee that the UI returns to rest.
99
96
  */
100
97
  onSettled(): void;
101
98
  }
@@ -126,17 +123,15 @@ export interface AgUiClientConfig extends AgUiRunInputs {
126
123
  */
127
124
  onPersist?: (messages: readonly Message[]) => void;
128
125
  /**
129
- * Called whenever AG-UI shared state changes — the server streamed a
130
- * `STATE_SNAPSHOT` / `STATE_DELTA`, or {@link AgUiClient.setState} was
131
- * called. `@ag-ui/client` owns applying those events; this only forwards
132
- * the result so a host can react.
126
+ * Called whenever AG-UI shared state changes — a streamed `STATE_SNAPSHOT` /
127
+ * `STATE_DELTA`, or {@link AgUiClient.setState}. `@ag-ui/client` owns applying
128
+ * those events; this only forwards the result.
133
129
  */
134
130
  onStateChanged?: (state: Readonly<Record<string, unknown>>) => void;
135
131
  /**
136
- * Error text surfaced to {@link AgUiClientHandlers.onError} when a run's
137
- * stream closes without a terminal AG-UI event (`RUN_FINISHED`/`RUN_ERROR`)
138
- * a dropped connection. Defaults to `"Connection lost"`; the host passes its
139
- * localized string.
132
+ * Error text for {@link AgUiClientHandlers.onError} when a run's stream closes
133
+ * without a terminal AG-UI event. Defaults to `"Connection lost"`; the host
134
+ * passes its localized string.
140
135
  */
141
136
  connectionLostMessage?: string;
142
137
  }
@@ -175,15 +170,14 @@ export declare class AgUiClient {
175
170
  * tools (bounded by {@link MAX_TOOL_ROUNDS}).
176
171
  *
177
172
  * `attachments` ride on the user message as a non-standard field so the
178
- * default client store round-trips them for history replay; the agent learns
179
- * the ids from the run context (the server's strict validation ignores the
180
- * unknown message field), then reads bytes via the `read_attachment` tool.
173
+ * default store round-trips them for history replay; see
174
+ * {@link messageAttachments}.
181
175
  */
182
176
  send(content: string, attachments?: readonly AttachmentRef[]): Promise<void>;
183
177
  /**
184
178
  * Resume the run loop after a navigating tool's result was supplied
185
179
  * post-reload (via {@link addToolResult}). Unlike {@link send}, adds no user
186
- * message it simply continues the conversation already in history.
180
+ * message; it continues the conversation already in history.
187
181
  */
188
182
  resume(): Promise<void>;
189
183
  /** Append a frontend tool result to history (used by the resume path). */
@@ -1 +1 @@
1
- {"version":3,"file":"agui_client.d.ts","sourceRoot":"","sources":["../../src/core/agui_client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAKnB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAe,IAAI,EAAE,MAAM,aAAa,CAAC;AAElF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,8DAA8D;AAC9D,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,M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EAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAWrF;IAED;;;;OAIG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAE5B;IAED,0EAA0E;IAC1E,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAGvD;IAED;;;;;;OAMG;IACH,MAAM,IAAI,IAAI,CAGb;CAgMF"}
@@ -3,11 +3,9 @@ import type { Message } from "@ag-ui/core";
3
3
  * A durable, lightweight reference to one uploaded file — what an upload
4
4
  * returns and what rides on a sent message, never the bytes.
5
5
  *
6
- * Mirrors django-ag-ui's `AttachmentRef`: a file uploads out-of-band to the
6
+ * Mirrors django-ag-ui's `AttachmentRef`: the file uploads out-of-band to the
7
7
  * attachments endpoint, the server hands back this ref, and the agent reads the
8
- * actual content server-side via the `read_attachment` tool. Keeping the AG-UI
9
- * message stream free of base64 mirrors how the tool catalog keeps schemas off
10
- * the wire.
8
+ * content server-side via the `read_attachment` tool.
11
9
  */
12
10
  export interface AttachmentRef {
13
11
  /** Opaque, owner-scoped handle the server resolves back to bytes. */
@@ -24,17 +22,14 @@ export interface AttachmentRef {
24
22
  /**
25
23
  * The attachment refs a user message carries.
26
24
  *
27
- * Refs are stored on the user message as a non-standard `attachments` field: a
28
- * web-component augmentation that the default client store round-trips and
29
- * `@ag-ui/client` preserves through `addMessage` / `structuredClone`, so a
30
- * restored conversation re-renders its attachment chips. The server's strict
31
- * `RunAgentInput` validation ignores the unknown field — the model learns the
32
- * ids from the run context manifest instead.
25
+ * Refs ride on the message as a non-standard `attachments` field, which the
26
+ * default store round-trips and `@ag-ui/client` preserves through `addMessage`
27
+ * / `structuredClone`, so a restored conversation re-renders its chips. The
28
+ * server's strict `RunAgentInput` validation ignores the unknown field.
33
29
  *
34
- * The persisted array is untrusted (it can be hand-edited, truncated, or
35
- * corrupted in storage), so every entry is validated and malformed ones are
36
- * dropped a `null` or shapeless entry would otherwise throw in `iconFor` and
37
- * abort the whole history replay.
30
+ * Storage is untrusted hand-edited, truncated, or corrupted — so malformed
31
+ * entries are dropped here; a shapeless one would throw in `iconFor` and abort
32
+ * the whole history replay.
38
33
  */
39
34
  export declare function messageAttachments(message: Message): readonly AttachmentRef[];
40
35
  //# sourceMappingURL=attachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../src/core/attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;GASG;AACH,MAAM,WAAW,aAAa;IAC5B,qEAAqE;IACrE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uEAAuE;IACvE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,aAAa,EAAE,CAG7E"}
1
+ {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../src/core/attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,qEAAqE;IACrE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uEAAuE;IACvE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,aAAa,EAAE,CAG7E"}
@@ -10,13 +10,11 @@ export interface NavigationCheckpoint {
10
10
  readonly toolCallId: string;
11
11
  }
12
12
  /**
13
- * Lightweight metadata for one conversation — the thread-drawer row shape.
14
- *
15
- * Returned by {@link ClientConversationStore.listThreads} so the drawer can
16
- * render a list without loading message bodies. `title` defaults to a
17
- * truncation of the first user message (until an explicit rename); `preview`
18
- * is a one-line excerpt of the latest message; `updatedAt` is epoch ms of the
19
- * last change, used to order the list.
13
+ * Lightweight metadata for one conversation — the thread-drawer row shape, so
14
+ * the drawer renders without loading message bodies. `title` defaults to a
15
+ * truncation of the first user message until an explicit rename, `preview` is a
16
+ * one-line excerpt of the latest message, and `updatedAt` is epoch ms of the
17
+ * last change, which orders the list.
20
18
  */
21
19
  export interface ThreadMeta {
22
20
  readonly threadId: string;
@@ -28,16 +26,14 @@ export interface ThreadMeta {
28
26
  * Client-side persistence seam for the conversation and a pending-navigation
29
27
  * checkpoint, keyed by `thread_id`.
30
28
  *
31
- * The default {@link SessionStorageStore} keeps everything per-tab in
32
- * `sessionStorage`, so the chat survives the full page reloads of a
33
- * multi-page app. A host may inject a server-backed store instead (e.g. one
34
- * that rehydrates from a history endpoint); `loadMessages` and `listThreads`
35
- * are therefore async-friendly. The checkpoint methods stay synchronous — the
36
- * marker is a tiny local hint a server store can derive from history and no-op.
29
+ * The default {@link SessionStorageStore} keeps everything per-tab. A host may
30
+ * inject a server-backed store instead, which is why `loadMessages` and
31
+ * `listThreads` are async. The checkpoint methods stay synchronous: the marker
32
+ * is a small local hint a server store can derive from history and no-op.
37
33
  *
38
- * Thread enumeration (`listThreads` / `setActiveThread` / `renameThread`) backs
39
- * the chat-history drawer; "delete a thread" reuses {@link clear} and "new
40
- * chat" reuses {@link threadId} after clearing the active thread.
34
+ * Thread enumeration backs the chat-history drawer; deleting a thread reuses
35
+ * {@link clear} and "new chat" reuses {@link threadId} after clearing the
36
+ * active thread.
41
37
  */
42
38
  export interface ClientConversationStore {
43
39
  /** The active conversation id, generated and persisted on first read. */
@@ -62,18 +58,15 @@ export interface ClientConversationStore {
62
58
  /**
63
59
  * Default {@link ClientConversationStore}: per-tab `sessionStorage`.
64
60
  *
65
- * Survives full page reloads and same-tab navigation, clears on tab close
66
- * the right scope for an embedded agent's conversation in a multi-page app.
67
- * Tracks multiple threads per tab: the active id lives under one key, the
68
- * message history / checkpoint are namespaced by id, and a small index feeds
69
- * the drawer so it works with no server.
61
+ * Survives full page reloads and same-tab navigation, clears on tab close.
62
+ * Tracks multiple threads per tab: the active id under one key, message history
63
+ * and checkpoint namespaced by id, and a small index feeding the drawer with no
64
+ * server involved.
70
65
  *
71
- * An optional `namespace` scopes every key to one element (its `id`, else its
72
- * endpoint), so two `<ag-ui-chat>` instances — or two apps — on the same origin
73
- * keep separate active-thread pointers and drawer indexes instead of clobbering
74
- * each other. Constructing with a namespace migrates any pre-namespacing
75
- * (`ag-ui-chat:*`) keys into it once, so an existing conversation survives the
76
- * upgrade; the default empty namespace keeps the legacy origin-global keys.
66
+ * An optional `namespace` scopes every key to one element, so two
67
+ * `<ag-ui-chat>` instances on the same origin keep separate active-thread
68
+ * pointers and drawer indexes instead of clobbering each other. The default
69
+ * empty namespace keeps the origin-global keys; see {@link #migrateLegacyKeys}.
77
70
  */
78
71
  export declare class SessionStorageStore implements ClientConversationStore {
79
72
  #private;
@@ -1 +1 @@
1
- {"version":3,"file":"conversation_store.d.ts","sourceRoot":"","sources":["../../src/core/conversation_store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC,uEAAuE;IACvE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB,Q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IAED,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CASlD;CAuFF"}
@@ -6,20 +6,18 @@ export interface HttpAgentOptions {
6
6
  headers?: Record<string, string>;
7
7
  /**
8
8
  * Cookie policy for the run request, as `fetch`'s own `credentials` mode.
9
- * Unset leaves the browser default (`same-origin`) alone — which sends **no**
10
- * cookies when the agent endpoint is on a different origin (or a different
11
- * subdomain) from the page. A cookie-authenticated cross-origin deployment
12
- * needs `"include"` here, and a server that answers it with
13
- * `Access-Control-Allow-Credentials: true` and a concrete origin.
9
+ * Unset leaves the browser default (`same-origin`), which sends no cookies
10
+ * to an agent endpoint on a different origin or subdomain. A
11
+ * cookie-authenticated cross-origin deployment needs `"include"` here plus a
12
+ * server answering with `Access-Control-Allow-Credentials: true` and a
13
+ * concrete origin.
14
14
  */
15
15
  credentials?: RequestCredentials;
16
16
  /**
17
- * Live header source, re-read on **every** request. `HttpAgent` bakes the
18
- * static `headers` into its constructor and the element caches the agent
19
- * for the whole conversation so a rotated token (CSRF, short-lived JWT)
20
- * would otherwise never reach the agent endpoint and a long session 401s
21
- * mid-conversation. When set, the fetch wrapper overlays these values on
22
- * each call; `headers` still seeds the initial/static configuration.
17
+ * Live header source, re-read on every request, overlaid on `headers`.
18
+ * `HttpAgent` bakes static `headers` in at construction and the element
19
+ * caches the agent for the whole conversation, so rotating credentials (CSRF,
20
+ * short-lived JWT) must come through here.
23
21
  */
24
22
  getHeaders?: () => Record<string, string>;
25
23
  /** Stable conversation id, so the agent's runs share a thread. */
@@ -34,11 +32,11 @@ export interface HttpAgentOptions {
34
32
  initialState?: Readonly<Record<string, unknown>>;
35
33
  }
36
34
  /**
37
- * Build an AG-UI {@link HttpAgent} pointed at ``endpoint``.
35
+ * Build an AG-UI {@link HttpAgent} pointed at `endpoint`.
38
36
  *
39
- * This is the default agent factory used by ``<ag-ui-chat>``. Tests and
40
- * advanced hosts override the element's ``agentFactory`` to inject a
41
- * different {@link AbstractAgent} (e.g. a fake, or a middleware-wrapped one).
37
+ * The default agent factory for `<ag-ui-chat>`; tests and advanced hosts
38
+ * override the element's `agentFactory` to inject a different
39
+ * {@link AbstractAgent}.
42
40
  */
43
41
  export declare function createHttpAgent(options: HttpAgentOptions): AbstractAgent;
44
42
  /** Signature of the agent factory the element calls to build its agent. */
@@ -1 +1 @@
1
- {"version":3,"file":"create_http_agent.d.ts","sourceRoot":"","sources":["../../src/core/create_http_agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,eAAe,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,0CAA0C;AAC1C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wEAAwE;IACxE,eAAe,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IACrC;;;;OAIG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAClD;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,aAAa,CA8BxE;AAED,2EAA2E;AAC3E,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,gBAAgB,KAAK,aAAa,CAAC"}
1
+ {"version":3,"file":"create_http_agent.d.ts","sourceRoot":"","sources":["../../src/core/create_http_agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,eAAe,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,0CAA0C;AAC1C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wEAAwE;IACxE,eAAe,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IACrC;;;;OAIG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAClD;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,aAAa,CA4BxE;AAED,2EAA2E;AAC3E,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,gBAAgB,KAAK,aAAa,CAAC"}
@@ -3,10 +3,9 @@ import { type ClientConversationStore, type NavigationCheckpoint, type ThreadMet
3
3
  /** Live header source, read per request so rotated tokens / CSRF reach the server. */
4
4
  type HeadersProvider = () => Record<string, string>;
5
5
  /**
6
- * Live cookie policy, read per request. A provider rather than a value because
7
- * the store is built once (on connect) and kept, while a host may configure the
8
- * element after inserting it a captured value would pin whatever was set
9
- * during that first frame.
6
+ * Live cookie policy, read per request. A provider rather than a value: the
7
+ * store is built once on connect, but a host may configure the element after
8
+ * inserting it, and a captured value would pin that first frame's setting.
10
9
  */
11
10
  type CredentialsProvider = () => RequestCredentials | undefined;
12
11
  /**
@@ -19,11 +18,11 @@ type CredentialsProvider = () => RequestCredentials | undefined;
19
18
  * - `PATCH <url><id>/` → rename (`{ "title": … }`);
20
19
  * - `DELETE <url><id>/` → delete.
21
20
  *
22
- * It wraps a local store (default {@link SessionStorageStore}) for the
23
- * client-only concerns — the active thread id, the navigation checkpoint, and a
24
- * message cache — and as the graceful fallback when a request fails. Rename and
25
- * delete apply **optimistically** (a small local overlay) so the drawer
26
- * reflects them at once, before the fire-and-forget server round-trip lands.
21
+ * Wraps a local store (default {@link SessionStorageStore}) for the client-only
22
+ * concerns — active thread id, navigation checkpoint, message cache — and as
23
+ * the fallback when a request fails. Rename and delete apply optimistically via
24
+ * a local overlay, so the drawer reflects them before the fire-and-forget
25
+ * round-trip lands.
27
26
  */
28
27
  export declare class RemoteConversationStore implements ClientConversationStore {
29
28
  #private;
@@ -1 +1 @@
1
- {"version":3,"file":"remote_conversation_store.d.ts","sourceRoot":"","sources":["../../src/core/remote_conversation_store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EAEzB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AAWjC,sFAAsF;AACtF,KAAK,eAAe,GAAG,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpD;;;;;GAKG;AACH,KAAK,mBAAmB,GAAG,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAEhE;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,uBAAwB,YAAW,uBAAuB;;IAQrE,YACE,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,eAA4B,EACrC,KAAK,GAAE,uBAAmD,EAC1D,WAAW,GAAE,mBAAqC,EAMnD;IAED,QAAQ,IAAI,MAAM,CAEjB;IAED,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAEtC;IAED,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,OAAO,EAAE,GAAG,IAAI,CAGjE;IAED,cAAc,CAAC,QAAQ,EAAE,MAAM,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AG,oBAAoB,GAAG,IAAI,CAE5D;IAED,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,oBAAoB,GAAG,IAAI,GAAG,IAAI,CAE9E;IAED,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAIlD;IAED,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAI5B;IAEK,WAAW,IAAI,OAAO,CAAC,SAAS,UAAU,EAAE,CAAC,CAMlD;IAEK,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,OAAO,EAAE,GAAG,IAAI,CAAC,CAavE;CAoEF"}
@@ -9,12 +9,7 @@ export interface RunRow {
9
9
  }
10
10
  /** Live header source, read per request so rotated tokens / CSRF reach the server. */
11
11
  type HeadersProvider = () => Record<string, string>;
12
- /**
13
- * Live cookie policy, read per request. A provider rather than a value because
14
- * the index is built once (on connect) and kept, while a host may configure the
15
- * element after inserting it — a captured value would pin whatever was set
16
- * during that first frame.
17
- */
12
+ /** Live cookie policy, read per request; see `RemoteConversationStore`'s note. */
18
13
  type CredentialsProvider = () => RequestCredentials | undefined;
19
14
  /**
20
15
  * Reads the server's run index and derives the resume / fork URLs beside it.
@@ -24,26 +19,22 @@ type CredentialsProvider = () => RequestCredentials | undefined;
24
19
  *
25
20
  * - `GET <url>` → the user's runs, newest first.
26
21
  *
27
- * **Only `continuable` rows can be resumed.** The server reports whether a run
28
- * has a saved snapshot to seed from; a run that never reached a provider-valid
29
- * boundary has none, so resuming it would start from nothing. Callers should
30
- * offer the action only for those rows and treat the rest as informational — a
31
- * crashed run worth showing, not worth continuing. {@link continuable} filters
32
- * for exactly that.
22
+ * Only `continuable` rows can be resumed: the server reports whether a run has
23
+ * a saved snapshot to seed from, and a run that never reached a provider-valid
24
+ * boundary has none. Offer the action only for those rows ({@link continuable}
25
+ * filters them) and treat the rest as informational.
33
26
  *
34
- * **Resume and fork are siblings of the index**, not separate configuration.
35
- * django-ag-ui mounts all three under one prefix whenever a step store is
36
- * configured (`runs/`, `resume/<id>/`, `fork/<id>/`), so one URL locates them
37
- * all and there is no way to configure a half-working set.
27
+ * Resume and fork are siblings of the index rather than separate configuration
28
+ * django-ag-ui mounts `runs/`, `resume/<id>/` and `fork/<id>/` under one
29
+ * prefix so this one URL locates all three.
38
30
  */
39
31
  export declare class RunIndex {
40
32
  #private;
41
33
  constructor(url: string, headers?: HeadersProvider, credentials?: CredentialsProvider);
42
34
  /**
43
- * The user's runs, or `[]` when the endpoint is unreachable or answers with
44
- * an error. A history affordance that cannot load is empty, never broken:
45
- * the caller renders its empty state rather than surfacing a transport fault
46
- * the user can do nothing about.
35
+ * The user's runs, or `[]` when the endpoint is unreachable or errors — the
36
+ * caller renders its empty state rather than a transport fault the user can
37
+ * do nothing about.
47
38
  */
48
39
  list(): Promise<readonly RunRow[]>;
49
40
  /** The rows a client may actually continue. */
@@ -1 +1 @@
1
- {"version":3,"file":"run_index.d.ts","sourceRoot":"","sources":["../../src/core/run_index.ts"],"names":[],"mappings":"AAEA,8EAA8E;AAC9E,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,0EAA0E;IAC1E,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED,sFAAsF;AACtF,KAAK,eAAe,GAAG,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpD;;;;;GAKG;AACH,KAAK,mBAAmB,GAAG,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,QAAQ;;IAKnB,YACE,GAAG,EAAE,MAAM,E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AAE,MAAM,GAAG,MAAM,CAE/B;IAED,uFAAuF;IACvF,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE7B;CAaF"}
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * The composer's voice-transcription contract: take a recorded audio `Blob` and
3
- * resolve to the transcript text. The built-in handler is {@link transcribeAudio}
4
- * (multipart POST to `data-transcribe-url`); a host swaps in its own e.g. a
5
- * browser Web Speech adapter or a direct-to-provider call via
6
- * `AgUiChat.transcribeHandler`, without touching the mic button.
3
+ * resolve to the transcript text. The built-in handler is
4
+ * {@link transcribeAudio}; a host swaps in its own (a Web Speech adapter, a
5
+ * direct-to-provider call) via `AgUiChat.transcribeHandler` without touching
6
+ * the mic button.
7
7
  */
8
8
  export type TranscribeHandler = (audio: Blob) => Promise<string>;
9
9
  /** Options for {@link transcribeAudio}. */
@@ -23,10 +23,10 @@ export interface TranscribeOptions {
23
23
  /**
24
24
  * POST a recorded clip to the transcription endpoint and resolve to its text.
25
25
  *
26
- * The clip is sent as multipart under the `audio` field with the element's
27
- * `headers`, mirroring {@link uploadAttachment}; the server replies
28
- * `{ "text": "<transcript>" }`. A non-2xx response or a network error rejects so
29
- * the mic button can surface the failure.
26
+ * The clip goes as multipart under the `audio` field with the element's
27
+ * `headers`, mirroring {@link uploadAttachment}, and the server replies
28
+ * `{ "text": "<transcript>" }`. A non-2xx response or a network error rejects
29
+ * so the mic button can surface the failure.
30
30
  */
31
31
  export declare function transcribeAudio(audio: Blob, options: TranscribeOptions): Promise<string>;
32
32
  //# sourceMappingURL=transcribe_audio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transcribe_audio.d.ts","sourceRoot":"","sources":["../../src/core/transcribe_audio.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAEjE,2CAA2C;AAC3C,MAAM,WAAW,iBAAiB;IAChC,0DAA0D;IAC1D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAC3C;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CA6B9F"}
1
+ {"version":3,"file":"transcribe_audio.d.ts","sourceRoot":"","sources":["../../src/core/transcribe_audio.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAEjE,2CAA2C;AAC3C,MAAM,WAAW,iBAAiB;IAChC,0DAA0D;IAC1D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAC3C;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CA4B9F"}
@@ -2,16 +2,13 @@ import type { AttachmentRef } from "./attachment.js";
2
2
  /**
3
3
  * The composer's upload contract: take a `File`, report `0..1` progress, and
4
4
  * resolve to a durable {@link AttachmentRef}. The built-in handler is
5
- * {@link uploadAttachment} (multipart POST); a host swaps in its own e.g. a
6
- * `tus-js-client` or direct-to-S3 adapter via `AgUiChat.uploadHandler`,
7
- * **without** touching the tray, the chips, or the AG-UI wire (refs are
8
- * transport-agnostic).
5
+ * {@link uploadAttachment}; a host swaps in its own (a `tus-js-client` or
6
+ * direct-to-S3 adapter) via `AgUiChat.uploadHandler` without touching the tray,
7
+ * the chips, or the AG-UI wire, refs being transport-agnostic.
9
8
  *
10
- * The optional third `signal` argument lets the tray abort an in-flight upload
11
- * when its chip is removed (or the element is torn down), so a cancelled upload
12
- * doesn't orphan a server-side file. It is non-breaking: existing two-argument
13
- * handlers keep working (the extra argument is simply ignored), and a custom
14
- * handler that honours it should abort its own transport when the signal fires.
9
+ * The optional `signal` fires when the tray removes a chip or the element is
10
+ * torn down; a handler that honours it should abort its own transport, so a
11
+ * cancelled upload doesn't orphan a server-side file.
15
12
  */
16
13
  export type UploadHandler = (file: File, onProgress: (fraction: number) => void, signal?: AbortSignal) => Promise<AttachmentRef>;
17
14
  /** Options for {@link uploadAttachment}. */
@@ -22,11 +19,11 @@ export interface UploadOptions {
22
19
  readonly headers?: Record<string, string>;
23
20
  /**
24
21
  * Cookie policy, spelled as `fetch`'s `credentials` mode for consistency with
25
- * the component's other endpoints but carried by `XMLHttpRequest`, which
26
- * only has the two-state `withCredentials`. `"include"` sets it; every other
27
- * value leaves it off, which matches `"same-origin"`. `"omit"` therefore
28
- * **cannot** be honoured for a same-origin upload (XHR always sends cookies
29
- * there); use a custom {@link UploadHandler} if that matters.
22
+ * the other endpoints, but carried by `XMLHttpRequest`'s two-state
23
+ * `withCredentials`: `"include"` sets it and every other value leaves it off,
24
+ * matching `"same-origin"`. `"omit"` therefore cannot be honoured for a
25
+ * same-origin upload, XHR always sending cookies there; use a custom
26
+ * {@link UploadHandler} if that matters.
30
27
  */
31
28
  readonly credentials?: RequestCredentials;
32
29
  /** Progress callback, `0..1`, fired as the body uploads. */
@@ -38,10 +35,10 @@ export interface UploadOptions {
38
35
  * Upload one file to the attachments endpoint and resolve to its durable
39
36
  * {@link AttachmentRef}.
40
37
  *
41
- * Uses `XMLHttpRequest` (not `fetch`) for real upload-progress events: the file
42
- * is sent as multipart under the `file` field, with the element's `headers` so
43
- * CSRF / auth ride along exactly like the skills/tools fetches. A non-2xx
44
- * response or a network/abort error rejects, so the tray can show an error chip.
38
+ * Uses `XMLHttpRequest` rather than `fetch` for real upload-progress events.
39
+ * The file goes as multipart under the `file` field with the element's
40
+ * `headers`, so CSRF / auth ride along; a non-2xx response or a network/abort
41
+ * error rejects, letting the tray show an error chip.
45
42
  */
46
43
  export declare function uploadAttachment(file: File, options: UploadOptions): Promise<AttachmentRef>;
47
44
  //# sourceMappingURL=upload_attachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload_attachment.d.ts","sourceRoot":"","sources":["../../src/core/upload_attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,aAAa,GAAG,CAC1B,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,EACtC,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,aAAa,CAAC,CAAC;AAE5B,4CAA4C;AAC5C,MAAM,WAAW,aAAa;IAC5B,yDAAyD;IACzD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C;;;;;;;OAOG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IAC1C,4DAA4D;IAC5D,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,mDAAmD;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CAC3C;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CA6C3F"}
1
+ {"version":3,"file":"upload_attachment.d.ts","sourceRoot":"","sources":["../../src/core/upload_attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,GAAG,CAC1B,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,EACtC,MAAM,CAAC,EAAE,WAAW,KACjB,OAAO,CAAC,aAAa,CAAC,CAAC;AAE5B,4CAA4C;AAC5C,MAAM,WAAW,aAAa;IAC5B,yDAAyD;IACzD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C;;;;;;;OAOG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IAC1C,4DAA4D;IAC5D,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,mDAAmD;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CAC3C;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CA6C3F"}
@@ -1,12 +1,10 @@
1
1
  /**
2
2
  * Overlay a `credentials` mode onto a fetch `init`, or hand the `init` back
3
- * untouched when the caller has none configured.
3
+ * untouched when none is configured.
4
4
  *
5
- * Absent and `undefined` are not the same thing here. `exactOptionalPropertyTypes`
6
- * rejects an explicit `credentials: undefined`, and writing one anyway would
7
- * state a mode where the point is to leave the browser's own default in place.
8
- * Every fetch this component makes has to make that choice, so it is made in one
9
- * place rather than repeated (and eventually forgotten) at each call site.
5
+ * Absent and `undefined` differ: `exactOptionalPropertyTypes` rejects an
6
+ * explicit `credentials: undefined`, and writing one anyway would state a mode
7
+ * where the point is to leave the browser's own default in place.
10
8
  */
11
9
  export declare function withCredentials(init: RequestInit | undefined, credentials: RequestCredentials | undefined): RequestInit | undefined;
12
10
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/core/utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,WAAW,GAAG,SAAS,EAC7B,WAAW,EAAE,kBAAkB,GAAG,SAAS,GAC1C,WAAW,GAAG,SAAS,CAEzB"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/core/utils.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,WAAW,GAAG,SAAS,EAC7B,WAAW,EAAE,kBAAkB,GAAG,SAAS,GAC1C,WAAW,GAAG,SAAS,CAEzB"}