@noodleseed/assistant 1.1.1 → 1.3.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.
package/dist/index.d.cts CHANGED
@@ -1,4 +1,13 @@
1
+ import { a as AssistantViewAvailableDetail, b as AssistantContext, c as AssistantModelContextUpdate, d as AssistantInteractionResponse } from './client-Bm990MFE.cjs';
2
+ export { A as AssistantErrorDetail, e as AssistantEvent, f as AssistantViewAvailableEvent } from './client-Bm990MFE.cjs';
3
+ import './appearance-BLO7kFYB.cjs';
4
+
1
5
  declare const ASSISTANT_TAG_NAME = "noodle-assistant";
6
+ declare global {
7
+ interface HTMLElementEventMap {
8
+ 'assistant-view-available': CustomEvent<AssistantViewAvailableDetail>;
9
+ }
10
+ }
2
11
  declare const HTMLElementBase: typeof HTMLElement;
3
12
  declare class NoodleAssistantElement extends HTMLElementBase {
4
13
  #private;
@@ -12,20 +21,13 @@ declare class NoodleAssistantElement extends HTMLElementBase {
12
21
  toggle(): void;
13
22
  focusComposer(): void;
14
23
  resetSession(): void;
15
- updateContext(context: Readonly<Record<string, string | number | boolean | null>>): void;
24
+ updateContext(context: AssistantContext): void;
25
+ /** Replace the compact renderer summary attached to subsequent message turns. */
26
+ updateModelContext(update: AssistantModelContextUpdate): void;
16
27
  sendMessage(text: string): Promise<void>;
17
28
  confirmTool(id: string): Promise<void>;
29
+ respond(id: string, response: AssistantInteractionResponse): Promise<void>;
18
30
  }
19
31
  declare function registerNoodleAssistant(): void;
20
32
 
21
- interface AssistantEvent {
22
- readonly event: string;
23
- readonly data: Readonly<Record<string, unknown>>;
24
- }
25
- interface AssistantErrorDetail {
26
- readonly code: string;
27
- readonly status?: number;
28
- readonly retryable: boolean;
29
- }
30
-
31
- export { ASSISTANT_TAG_NAME, type AssistantErrorDetail, type AssistantEvent, NoodleAssistantElement, registerNoodleAssistant };
33
+ export { ASSISTANT_TAG_NAME, AssistantViewAvailableDetail, NoodleAssistantElement, registerNoodleAssistant };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,13 @@
1
+ import { a as AssistantViewAvailableDetail, b as AssistantContext, c as AssistantModelContextUpdate, d as AssistantInteractionResponse } from './client-Dd7_LZLY.js';
2
+ export { A as AssistantErrorDetail, e as AssistantEvent, f as AssistantViewAvailableEvent } from './client-Dd7_LZLY.js';
3
+ import './appearance-BLO7kFYB.js';
4
+
1
5
  declare const ASSISTANT_TAG_NAME = "noodle-assistant";
6
+ declare global {
7
+ interface HTMLElementEventMap {
8
+ 'assistant-view-available': CustomEvent<AssistantViewAvailableDetail>;
9
+ }
10
+ }
2
11
  declare const HTMLElementBase: typeof HTMLElement;
3
12
  declare class NoodleAssistantElement extends HTMLElementBase {
4
13
  #private;
@@ -12,20 +21,13 @@ declare class NoodleAssistantElement extends HTMLElementBase {
12
21
  toggle(): void;
13
22
  focusComposer(): void;
14
23
  resetSession(): void;
15
- updateContext(context: Readonly<Record<string, string | number | boolean | null>>): void;
24
+ updateContext(context: AssistantContext): void;
25
+ /** Replace the compact renderer summary attached to subsequent message turns. */
26
+ updateModelContext(update: AssistantModelContextUpdate): void;
16
27
  sendMessage(text: string): Promise<void>;
17
28
  confirmTool(id: string): Promise<void>;
29
+ respond(id: string, response: AssistantInteractionResponse): Promise<void>;
18
30
  }
19
31
  declare function registerNoodleAssistant(): void;
20
32
 
21
- interface AssistantEvent {
22
- readonly event: string;
23
- readonly data: Readonly<Record<string, unknown>>;
24
- }
25
- interface AssistantErrorDetail {
26
- readonly code: string;
27
- readonly status?: number;
28
- readonly retryable: boolean;
29
- }
30
-
31
- export { ASSISTANT_TAG_NAME, type AssistantErrorDetail, type AssistantEvent, NoodleAssistantElement, registerNoodleAssistant };
33
+ export { ASSISTANT_TAG_NAME, AssistantViewAvailableDetail, NoodleAssistantElement, registerNoodleAssistant };
package/dist/index.js CHANGED
@@ -2,7 +2,8 @@ import {
2
2
  ASSISTANT_TAG_NAME,
3
3
  NoodleAssistantElement,
4
4
  registerNoodleAssistant
5
- } from "./chunk-IM7SAHNE.js";
5
+ } from "./chunk-QMDSNLTA.js";
6
+ import "./chunk-N6TFOYOX.js";
6
7
 
7
8
  // src/index.ts
8
9
  registerNoodleAssistant();
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n ASSISTANT_TAG_NAME,\n NoodleAssistantElement,\n registerNoodleAssistant,\n} from './element.js';\nexport type { AssistantErrorDetail, AssistantEvent } from './transport.js';\n\nimport { registerNoodleAssistant } from './element.js';\n\nregisterNoodleAssistant();\n"],"mappings":";;;;;;;AASA,wBAAwB;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n ASSISTANT_TAG_NAME,\n NoodleAssistantElement,\n registerNoodleAssistant,\n} from './element.js';\nexport type { AssistantViewAvailableDetail, AssistantViewAvailableEvent } from './events.js';\nexport type { AssistantErrorDetail, AssistantEvent } from './transport.js';\n\nimport { registerNoodleAssistant } from './element.js';\n\nregisterNoodleAssistant();\n"],"mappings":";;;;;;;;AAUA,wBAAwB;","names":[]}