@tangle-network/agent-app 0.43.39 → 0.43.41

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 (35) hide show
  1. package/dist/assistant/index.d.ts +1 -1
  2. package/dist/assistant/index.js +2 -2
  3. package/dist/chat-routes/index.d.ts +2 -2
  4. package/dist/chat-routes/index.js +22 -14
  5. package/dist/chat-routes/index.js.map +1 -1
  6. package/dist/chunk-2EO7CPL3.js +191 -0
  7. package/dist/chunk-2EO7CPL3.js.map +1 -0
  8. package/dist/{chunk-H4WCEZE3.js → chunk-5GWXCSLQ.js} +5 -5
  9. package/dist/{chunk-D4HB72W2.js → chunk-KM766NN3.js} +159 -25
  10. package/dist/chunk-KM766NN3.js.map +1 -0
  11. package/dist/{chunk-3II3AWHY.js → chunk-PJC4NXPA.js} +7 -34
  12. package/dist/chunk-PJC4NXPA.js.map +1 -0
  13. package/dist/chunk-S5SRJJQG.js +36 -0
  14. package/dist/chunk-S5SRJJQG.js.map +1 -0
  15. package/dist/chunk-UMSOSUEU.js +124 -0
  16. package/dist/chunk-UMSOSUEU.js.map +1 -0
  17. package/dist/design-canvas-react/index.js +4 -4
  18. package/dist/file-index-Bw_IQE_G.d.ts +194 -0
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.js +43 -28
  21. package/dist/object-store/index.d.ts +202 -0
  22. package/dist/object-store/index.js +18 -0
  23. package/dist/object-store/index.js.map +1 -0
  24. package/dist/sandbox/index.js +3 -2
  25. package/dist/teams-react/index.js +3 -3
  26. package/dist/tools/index.js +2 -1
  27. package/dist/web-react/index.d.ts +94 -2
  28. package/dist/web-react/index.js +19 -3
  29. package/package.json +6 -1
  30. package/dist/chunk-3II3AWHY.js.map +0 -1
  31. package/dist/chunk-5SV5PSU7.js +0 -80
  32. package/dist/chunk-5SV5PSU7.js.map +0 -1
  33. package/dist/chunk-D4HB72W2.js.map +0 -1
  34. package/dist/wire-BaUF66AS.d.ts +0 -61
  35. /package/dist/{chunk-H4WCEZE3.js.map → chunk-5GWXCSLQ.js.map} +0 -0
@@ -1,61 +0,0 @@
1
- /**
2
- * Wire contract between the chat client (composer + `streamChatTurn`) and the
3
- * assembled server vertical (`createChatTurnRoutes`). Import-free on purpose:
4
- * `/web-react` re-exports these types into browser bundles, so nothing here may
5
- * reach a Node builtin or an engine package.
6
- *
7
- * The part shape mirrors the sandbox SDK's `PromptInputPart` structurally
8
- * (text | image | file with filename/mediaType/url/path/content) — derived
9
- * here, not imported, so the client bundle never touches the SDK.
10
- */
11
- interface ChatTurnTextPartInput {
12
- type: 'text';
13
- text: string;
14
- }
15
- /** A non-text prompt part the upload route hands back and the client echoes
16
- * on send. `url` carries an inline `data:` URI for small files; `path` is a
17
- * sandbox workspace reference for large ones (the >1 MiB gateway body cap
18
- * makes the two-step upload mandatory). */
19
- interface ChatTurnFilePartInput {
20
- type: 'image' | 'file';
21
- filename?: string;
22
- mediaType?: string;
23
- url?: string;
24
- path?: string;
25
- content?: string;
26
- }
27
- type ChatTurnPartInput = ChatTurnTextPartInput | ChatTurnFilePartInput;
28
- /** POST body for the turn route. `content` may be empty when `parts` carry the
29
- * message (an image-only send). Product routing fields (workspaceId etc.) ride
30
- * alongside and are read by the product's `authorize` seam. */
31
- interface ChatTurnRequestPayload {
32
- threadId: string;
33
- content?: string;
34
- /** Non-text parts from the upload route, echoed back verbatim. */
35
- parts?: ChatTurnFilePartInput[];
36
- model?: string;
37
- effort?: 'auto' | 'low' | 'medium' | 'high';
38
- harness?: string;
39
- /** Client-generated idempotency key for the logical turn (retry-safe). */
40
- turnId?: string;
41
- [key: string]: unknown;
42
- }
43
- /** `fetch` init for the turn route — the one place the client wire shape is
44
- * serialized, so composer glue and products never drift from the server's
45
- * parser. */
46
- declare function chatTurnRequestInit(payload: ChatTurnRequestPayload): RequestInit;
47
- declare const INLINE_PARTS_MAX_BYTES = 950000;
48
- declare class ChatTurnInputError extends Error {
49
- readonly status: number;
50
- readonly code: string;
51
- constructor(message: string, status?: number, code?: string);
52
- }
53
- declare function promptPartsByteSize(parts: ChatTurnPartInput[]): number;
54
- /** Throws `ChatTurnInputError` (413) when the parts' inline payload would blow
55
- * the gateway cap. Path-ref parts are tiny by construction and always pass. */
56
- declare function assertPromptPartsWithinCap(parts: ChatTurnPartInput[], maxBytes?: number): void;
57
- /** Validates the untyped `parts` array off the wire. Returns the typed parts
58
- * or throws `ChatTurnInputError` (400) naming the offending entry. */
59
- declare function parseChatTurnParts(raw: unknown): ChatTurnFilePartInput[];
60
-
61
- export { type ChatTurnRequestPayload as C, INLINE_PARTS_MAX_BYTES as I, type ChatTurnPartInput as a, type ChatTurnFilePartInput as b, ChatTurnInputError as c, type ChatTurnTextPartInput as d, assertPromptPartsWithinCap as e, chatTurnRequestInit as f, promptPartsByteSize as g, parseChatTurnParts as p };