@tangle-network/agent-app 3.0.29 → 3.0.31
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/assistant/index.js +2 -85
- package/dist/assistant/index.js.map +1 -1
- package/dist/assistant/sse.d.ts +5 -20
- package/dist/chat-routes/index.d.ts +1 -0
- package/dist/chat-routes/index.js +6 -1
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-routes/redact-values.d.ts +5 -0
- package/dist/chat-routes/turn-route-contracts.d.ts +8 -0
- package/dist/{chunk-LRUH36LD.js → chunk-HP5KD7ZI.js} +27 -6
- package/dist/chunk-HP5KD7ZI.js.map +1 -0
- package/dist/chunk-M4QITAQV.js +193 -0
- package/dist/chunk-M4QITAQV.js.map +1 -0
- package/dist/public-consultation/index.d.ts +1 -1
- package/dist/public-consultation/index.js +2 -1
- package/dist/public-consultation/index.js.map +1 -1
- package/dist/workspace-export/index.js +6 -186
- package/dist/workspace-export/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-LRUH36LD.js.map +0 -1
package/dist/assistant/sse.d.ts
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
|
+
import { type ParsedSSEEvent } from "@tangle-network/agent-core/sse";
|
|
1
2
|
/**
|
|
2
|
-
* POST
|
|
3
|
-
*
|
|
4
|
-
* off a `fetch` POST response.
|
|
3
|
+
* Read the assistant's POST response through the shared SSE transport. The
|
|
4
|
+
* native EventSource is GET-only and cannot send the chat request body.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* standard SSE wire format: events separated by a blank line, `event:` / `data:`
|
|
9
|
-
* fields, `:`-prefixed comments ignored, multi-line `data:` joined with `\n`, and
|
|
10
|
-
* each event's data JSON-parsed (falling back to the raw string).
|
|
11
|
-
*/
|
|
12
|
-
interface ParsedSSEEvent<T = unknown> {
|
|
13
|
-
data: T;
|
|
14
|
-
rawData: string;
|
|
15
|
-
eventId?: string;
|
|
16
|
-
eventType?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Read a fetch `Response` body and invoke `onEvent` for each parsed SSE event
|
|
20
|
-
* (its `eventType` plus JSON-parsed `data`), in wire order. Resolves when the
|
|
21
|
-
* stream closes. The caller owns abort (via the fetch `signal`).
|
|
6
|
+
* Events retain their wire order and JSON/raw payload mapping. The shared
|
|
7
|
+
* reader owns UTF-8 framing, cancellation on failure, and releasing its lock.
|
|
22
8
|
*/
|
|
23
9
|
export declare function readSSEEvents(body: ReadableStream<Uint8Array>, onEvent: (event: ParsedSSEEvent) => void): Promise<void>;
|
|
24
|
-
export {};
|
|
@@ -13,6 +13,7 @@ export * from './attachment-validation.js';
|
|
|
13
13
|
export * from './turn-routes.js';
|
|
14
14
|
export type { ChatTurnPrefetch, ChatTurnPrefetchArgs, ChatTurnPrefetchIdentity } from './turn-prefetch.js';
|
|
15
15
|
export * from './turn-progress.js';
|
|
16
|
+
export * from './redact-values.js';
|
|
16
17
|
export * from './gateway-adapter.js';
|
|
17
18
|
export * from './stale-turn-lock.js';
|
|
18
19
|
export * from './sandbox-producer.js';
|
|
@@ -75,6 +75,7 @@ import {
|
|
|
75
75
|
projectDispatchHistory,
|
|
76
76
|
providerResetSentence,
|
|
77
77
|
providerRetryNotice,
|
|
78
|
+
redactEvents,
|
|
78
79
|
resolveEmptyTurnRetries,
|
|
79
80
|
routerTurnHistory,
|
|
80
81
|
sanitizeUploadFilename,
|
|
@@ -85,13 +86,15 @@ import {
|
|
|
85
86
|
summarizeFailoverReason,
|
|
86
87
|
turnCarriesFiles,
|
|
87
88
|
turnPromptText,
|
|
89
|
+
valueRedactor,
|
|
88
90
|
withProducerStream
|
|
89
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-HP5KD7ZI.js";
|
|
90
92
|
import "../chunk-SBHFMDR7.js";
|
|
91
93
|
import "../chunk-H6BRJU5M.js";
|
|
92
94
|
import "../chunk-4DBHC63F.js";
|
|
93
95
|
import "../chunk-RN4WPTBH.js";
|
|
94
96
|
import "../chunk-MM6RLOXF.js";
|
|
97
|
+
import "../chunk-M4QITAQV.js";
|
|
95
98
|
import "../chunk-3FKIGI3I.js";
|
|
96
99
|
import "../chunk-F4TUZYMX.js";
|
|
97
100
|
import {
|
|
@@ -2036,6 +2039,7 @@ export {
|
|
|
2036
2039
|
readCompletedSandboxTurn,
|
|
2037
2040
|
reconcileStaleTurnLock,
|
|
2038
2041
|
recoverSandboxAssistantMessage,
|
|
2042
|
+
redactEvents,
|
|
2039
2043
|
resolveChatAttachments,
|
|
2040
2044
|
resolveEmptyTurnRetries,
|
|
2041
2045
|
resolvePlanFollowUpRequest,
|
|
@@ -2060,6 +2064,7 @@ export {
|
|
|
2060
2064
|
turnResponseEventFor,
|
|
2061
2065
|
unwrapSessionEventPayload,
|
|
2062
2066
|
validateSandboxMentionPath,
|
|
2067
|
+
valueRedactor,
|
|
2063
2068
|
withDurableChatProjection
|
|
2064
2069
|
};
|
|
2065
2070
|
//# sourceMappingURL=index.js.map
|