@tangle-network/agent-app 0.43.76 → 0.44.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.
- package/README.md +1 -1
- package/dist/DesignCanvas-Z362I3R3.js +10 -0
- package/dist/{DesignCanvasEditor-FJIVYOA2.js → DesignCanvasEditor-ZFE2W4OJ.js} +4 -4
- package/dist/assets/index.d.ts +4 -4
- package/dist/assets/index.js +223 -11
- package/dist/assets/index.js.map +1 -1
- package/dist/assistant/index.d.ts +7 -7
- package/dist/assistant/index.js +3 -3
- package/dist/assistant/index.js.map +1 -1
- package/dist/{attachment-validation-Dv1A_Puy.d.ts → attachment-validation-DRuLEjAE.d.ts} +1 -1
- package/dist/{auth-_FU8w01b.d.ts → auth-anc7mv2W.d.ts} +2 -2
- package/dist/chat-routes/index.d.ts +14 -11
- package/dist/chat-routes/index.js +16 -17
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-store/index.d.ts +26 -7
- package/dist/chat-store/index.js +14 -5
- package/dist/chat-store/index.js.map +1 -1
- package/dist/{chunk-ROLFDOMJ.js → chunk-4TI7QWLW.js} +3 -3
- package/dist/{chunk-3JUTOVUH.js → chunk-6KMAM7BL.js} +1 -1
- package/dist/chunk-6KMAM7BL.js.map +1 -0
- package/dist/{chunk-WL7XHLDK.js → chunk-ICOHEZK6.js} +77 -5
- package/dist/chunk-ICOHEZK6.js.map +1 -0
- package/dist/{chunk-22GLESKE.js → chunk-O63WWYET.js} +2 -4
- package/dist/chunk-O63WWYET.js.map +1 -0
- package/dist/{chunk-E7N67FYI.js → chunk-Q3FONVAK.js} +5 -5
- package/dist/{chunk-E7N67FYI.js.map → chunk-Q3FONVAK.js.map} +1 -1
- package/dist/{chunk-RXOTWZ4G.js → chunk-TKRI463Z.js} +4 -4
- package/dist/chunk-TKRI463Z.js.map +1 -0
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +123 -4
- package/dist/config/index.js.map +1 -1
- package/dist/{contract-B3h7peV3.d.ts → contract-CEewO6DI.d.ts} +1 -1
- package/dist/design-canvas/index.d.ts +4 -4
- package/dist/design-canvas-react/index.js +7 -7
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/eval/index.js +22 -8
- package/dist/eval/index.js.map +1 -1
- package/dist/{flow-types-CqomVAUN.d.ts → flow-types-CJxEmaRy.d.ts} +1 -1
- package/dist/integrations/index.js +67 -5
- package/dist/integrations/index.js.map +1 -1
- package/dist/interactions/index.d.ts +6 -4
- package/dist/interactions/index.js +1 -2
- package/dist/knowledge/index.js +63 -4
- package/dist/knowledge/index.js.map +1 -1
- package/dist/knowledge-loop/index.d.ts +1 -1
- package/dist/knowledge-loop/index.js +94 -4
- package/dist/knowledge-loop/index.js.map +1 -1
- package/dist/{mcp-BjPqQ-3C.d.ts → mcp-D3qVzbE1.d.ts} +2 -2
- package/dist/{mcp-rpc-BfUOsalw.d.ts → mcp-rpc-CzU5LWWT.d.ts} +1 -1
- package/dist/missions/index.js +1143 -23
- package/dist/missions/index.js.map +1 -1
- package/dist/{model-DmdkIteM.d.ts → model-CdCDfBA9.d.ts} +1 -1
- package/dist/object-store/index.js +113 -8
- package/dist/object-store/index.js.map +1 -1
- package/dist/{parts-2ymE5cs-.d.ts → parts-Co_lFgLI.d.ts} +3 -3
- package/dist/platform/index.d.ts +1 -1
- package/dist/preflight/cli.d.ts +13 -0
- package/dist/preflight/cli.js +50 -0
- package/dist/preflight/cli.js.map +1 -0
- package/dist/preset-cloudflare/index.d.ts +1 -1
- package/dist/preset-cloudflare/index.js +284 -11
- package/dist/preset-cloudflare/index.js.map +1 -1
- package/dist/{queue-C24V13h9.d.ts → queue-CD5-_VTX.d.ts} +1 -1
- package/dist/redact/index.js +116 -8
- package/dist/redact/index.js.map +1 -1
- package/dist/runtime/index.d.ts +19 -111
- package/dist/runtime/index.js +234 -14
- package/dist/runtime/index.js.map +1 -1
- package/dist/sandbox/index.d.ts +3 -3
- package/dist/sandbox/index.js +2 -3
- package/dist/sequences/index.d.ts +4 -4
- package/dist/stream/index.d.ts +4 -4
- package/dist/{stream-normalizer-QYUl4vnl.d.ts → stream-normalizer-DnuqkZvw.d.ts} +2 -2
- package/dist/tangle/index.js +42 -4
- package/dist/tangle/index.js.map +1 -1
- package/dist/teams/index.js +5 -5
- package/dist/teams/invitations-api.js +4 -4
- package/dist/teams-react/index.js +3 -3
- package/dist/theme/index.js +0 -1
- package/dist/tools/index.d.ts +6 -6
- package/dist/tools/index.js +5 -7
- package/dist/trace/index.d.ts +1 -1
- package/dist/trace/index.js +179 -10
- package/dist/trace/index.js.map +1 -1
- package/dist/{turn-buffer-BaSgxVmK.d.ts → turn-buffer-BcPfhr1_.d.ts} +1 -1
- package/dist/turn-stream/index.d.ts +1 -1
- package/dist/{types-CBRyqijY.d.ts → types-BCxK0wyS.d.ts} +1 -1
- package/dist/{types-CEchbvgz.d.ts → types-XIZqIdX1.d.ts} +1 -1
- package/dist/web-react/index.d.ts +10 -10
- package/dist/web-react/index.js +5 -5
- package/dist/work-product/index.d.ts +4 -4
- package/dist/work-product/index.js +735 -15
- package/dist/work-product/index.js.map +1 -1
- package/dist/work-product-react/index.d.ts +1 -1
- package/dist/work-product-react/index.js.map +1 -1
- package/package.json +4 -19
- package/dist/DesignCanvas-UNL34LS2.js +0 -12
- package/dist/chunk-22GLESKE.js.map +0 -1
- package/dist/chunk-3JUTOVUH.js.map +0 -1
- package/dist/chunk-5EQCITY3.js +0 -20
- package/dist/chunk-5EQCITY3.js.map +0 -1
- package/dist/chunk-5SD6HT2V.js +0 -236
- package/dist/chunk-5SD6HT2V.js.map +0 -1
- package/dist/chunk-5TESA4SN.js +0 -74
- package/dist/chunk-5TESA4SN.js.map +0 -1
- package/dist/chunk-6GQ5DKFK.js +0 -920
- package/dist/chunk-6GQ5DKFK.js.map +0 -1
- package/dist/chunk-7ESQUSAC.js +0 -343
- package/dist/chunk-7ESQUSAC.js.map +0 -1
- package/dist/chunk-7LNGJDNA.js +0 -1
- package/dist/chunk-7LNGJDNA.js.map +0 -1
- package/dist/chunk-AP2UXKUK.js +0 -69
- package/dist/chunk-AP2UXKUK.js.map +0 -1
- package/dist/chunk-FA4XR66Y.js +0 -32
- package/dist/chunk-FA4XR66Y.js.map +0 -1
- package/dist/chunk-FKCB5FTD.js +0 -126
- package/dist/chunk-FKCB5FTD.js.map +0 -1
- package/dist/chunk-GPBRL2XR.js +0 -102
- package/dist/chunk-GPBRL2XR.js.map +0 -1
- package/dist/chunk-HRH7ASAG.js +0 -759
- package/dist/chunk-HRH7ASAG.js.map +0 -1
- package/dist/chunk-HYTIHYNV.js +0 -297
- package/dist/chunk-HYTIHYNV.js.map +0 -1
- package/dist/chunk-LGBO24FL.js +0 -190
- package/dist/chunk-LGBO24FL.js.map +0 -1
- package/dist/chunk-NLSSFLLS.js +0 -1168
- package/dist/chunk-NLSSFLLS.js.map +0 -1
- package/dist/chunk-OSMNYPOG.js +0 -129
- package/dist/chunk-OSMNYPOG.js.map +0 -1
- package/dist/chunk-QYOD3K56.js +0 -124
- package/dist/chunk-QYOD3K56.js.map +0 -1
- package/dist/chunk-RXOTWZ4G.js.map +0 -1
- package/dist/chunk-UAKFCMWK.js +0 -1
- package/dist/chunk-UAKFCMWK.js.map +0 -1
- package/dist/chunk-UKTYKG57.js +0 -48
- package/dist/chunk-UKTYKG57.js.map +0 -1
- package/dist/chunk-UOAYS72M.js +0 -80
- package/dist/chunk-UOAYS72M.js.map +0 -1
- package/dist/chunk-WL7XHLDK.js.map +0 -1
- package/dist/composer/index.d.ts +0 -2
- package/dist/composer/index.js +0 -22
- package/dist/composer/index.js.map +0 -1
- package/dist/core-7qIM7svy.d.ts +0 -21
- package/dist/durable-chat/index.d.ts +0 -464
- package/dist/durable-chat/index.js +0 -59
- package/dist/durable-chat/index.js.map +0 -1
- package/dist/index.d.ts +0 -51
- package/dist/index.js +0 -827
- package/dist/index.js.map +0 -1
- /package/dist/{DesignCanvas-UNL34LS2.js.map → DesignCanvas-Z362I3R3.js.map} +0 -0
- /package/dist/{DesignCanvasEditor-FJIVYOA2.js.map → DesignCanvasEditor-ZFE2W4OJ.js.map} +0 -0
- /package/dist/{chunk-ROLFDOMJ.js.map → chunk-4TI7QWLW.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as AppToolContext } from './types-BCxK0wyS.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Header names carrying the server-set per-turn context + the capability token.
|
|
@@ -39,4 +39,4 @@ declare function authenticateToolRequest(request: Request, opts: AuthenticateOpt
|
|
|
39
39
|
* aliases (`args` / `arguments`) or a bare body. Returns null on non-JSON. */
|
|
40
40
|
declare function readToolArgs<T>(request: Request): Promise<T | null>;
|
|
41
41
|
|
|
42
|
-
export { type AuthenticateOptions as A, DEFAULT_HEADER_NAMES as D, type
|
|
42
|
+
export { type AuthenticateOptions as A, DEFAULT_HEADER_NAMES as D, type ToolHeaderNames as T, type ToolAuthResult as a, authenticateToolRequest as b, readToolArgs as r };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Q as ChatAttachmentInput,
|
|
3
|
-
export { A as ALLOWED_ATTACHMENT_SNIFFED_MIMES, a as ATTACHMENT_ACCEPT, b as ATTACHMENT_MAX_COUNT, c as AttachmentTypeCheckResult, C as CreateSandboxFileIndexRouteOptions, F as FileIndexAuthorization, d as FileIndexCache, e as FileIndexReadyResponse, f as FileIndexResponse, g as FileIndexWarmingResponse, M as MAX_ATTACHMENT_TOTAL_BYTES, h as MAX_BINARY_ATTACHMENT_BYTES, i as MAX_TEXT_ATTACHMENT_BYTES, S as SandboxFileTreeSource, j as SandboxTreeFile, k as SandboxTreeResult, l as SniffResult, m as attachmentSizeErrorMessage, n as attachmentTotalSizeErrorMessage, o as checkAttachmentType, p as createSandboxFileIndexRoute, s as sanitizeAttachmentFileName, q as sniffBinary } from '../attachment-validation-
|
|
1
|
+
import { C as ChatMessagePart, N as ChatTurnRequestPayload, O as ChatTurnPartInput, P as ChatTurnFilePartInput, b as ChatAttachmentPart, a as ChatAttachmentKind, g as ChatMentionPart } from '../parts-Co_lFgLI.js';
|
|
2
|
+
export { Q as ChatAttachmentInput, f as ChatMentionKind, R as ChatTurnInputError, T as ChatTurnTextPartInput, U as DISPATCH_MAX_MEDIA_PARTS, V as DISPATCH_MAX_PARTS, W as DISPATCH_REQUEST_MAX_BYTES, X as DISPATCH_STRUCTURAL_RESERVE_BYTES, M as FileMention, Y as FileMentionsToPartsOptions, Z as INLINE_PARTS_MAX_BYTES, _ as MENTION_MAX_COUNT, $ as ProducerErrorEvent, a0 as ProducerNoticeEvent, a1 as ProducerPassthroughEvent, a2 as ProducerPassthroughEventType, a3 as ProducerReasoningEvent, a4 as ProducerTextEvent, a5 as ProducerToolCallEvent, a6 as ProducerToolResultEvent, a7 as ProducerUsageEvent, a8 as ProducerWireEvent, a9 as SandboxMentionPathCheck, aa as assertPromptPartsWithinCap, ab as base64WireLen, ac as buildMentionPromptBlock, ad as chatTurnRequestInit, ae as fileMentionsToParts, af as formatBytes, ag as mediaTypeForMentionPath, ah as mentionKindForPath, ai as parseChatTurnParts, aj as parseFileMentions, ak as promptPartsByteSize, al as validateSandboxMentionPath } from '../parts-Co_lFgLI.js';
|
|
3
|
+
export { A as ALLOWED_ATTACHMENT_SNIFFED_MIMES, a as ATTACHMENT_ACCEPT, b as ATTACHMENT_MAX_COUNT, c as AttachmentTypeCheckResult, C as CreateSandboxFileIndexRouteOptions, F as FileIndexAuthorization, d as FileIndexCache, e as FileIndexReadyResponse, f as FileIndexResponse, g as FileIndexWarmingResponse, M as MAX_ATTACHMENT_TOTAL_BYTES, h as MAX_BINARY_ATTACHMENT_BYTES, i as MAX_TEXT_ATTACHMENT_BYTES, S as SandboxFileTreeSource, j as SandboxTreeFile, k as SandboxTreeResult, l as SniffResult, m as attachmentSizeErrorMessage, n as attachmentTotalSizeErrorMessage, o as checkAttachmentType, p as createSandboxFileIndexRoute, s as sanitizeAttachmentFileName, q as sniffBinary } from '../attachment-validation-DRuLEjAE.js';
|
|
4
4
|
import { ChatTurnIdentity, ChatTurnProducer } from '@tangle-network/agent-runtime';
|
|
5
5
|
import { InteractionAnswerRoute, InteractionAnswerRouteOptions } from '../interactions/index.js';
|
|
6
6
|
import { PersistedChatMessageForTurn } from '../stream/index.js';
|
|
7
|
-
import {
|
|
7
|
+
import { T as TurnEventStore } from '../turn-buffer-BcPfhr1_.js';
|
|
8
8
|
import { M as ModelFailoverAttempt } from '../failover-H0x12kY3.js';
|
|
9
9
|
export { D as DEFAULT_STALE_TURN_LOCK_GRACE_MS, a as DEFAULT_TERMINAL_TURN_LOCK_GRACE_MS, R as ReconcileStaleTurnLockOptions, b as ReconcileStaleTurnLockResult, S as StaleTurnLockSandboxProbeResult, c as StaleTurnLockSessionProbeResult, r as reconcileStaleTurnLock } from '../stale-turn-lock-DucQzvXu.js';
|
|
10
|
-
import { J as JsonRecord } from '../stream-normalizer-
|
|
10
|
+
import { J as JsonRecord } from '../stream-normalizer-DnuqkZvw.js';
|
|
11
11
|
import { SandboxExecChannel, PromptInputPart } from '../sandbox/index.js';
|
|
12
12
|
import '@tangle-network/agent-interface';
|
|
13
|
-
import '../contract-
|
|
14
|
-
import '../types-
|
|
13
|
+
import '../contract-CEewO6DI.js';
|
|
14
|
+
import '../types-XIZqIdX1.js';
|
|
15
15
|
import '../plans/index.js';
|
|
16
16
|
import '@tangle-network/sandbox';
|
|
17
|
-
import '../auth-
|
|
18
|
-
import '../types-
|
|
17
|
+
import '../auth-anc7mv2W.js';
|
|
18
|
+
import '../types-BCxK0wyS.js';
|
|
19
19
|
import '../harness/index.js';
|
|
20
|
-
import '../model-
|
|
20
|
+
import '../model-CdCDfBA9.js';
|
|
21
21
|
import '../fingerprint-DbmOgy0n.js';
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -1109,7 +1109,10 @@ interface ChatRouteDurableProjection {
|
|
|
1109
1109
|
/** Log chat route projection messages with optional metadata for durable processing */
|
|
1110
1110
|
type ChatRouteDurableProjectionLogger = (message: string, meta?: Record<string, unknown>) => void;
|
|
1111
1111
|
/** Adds durable lifecycle projection to any producer lane without moving its
|
|
1112
|
-
* transport into agent-app.
|
|
1112
|
+
* transport into agent-app. Purely STRUCTURAL: agent-app ships no implementer
|
|
1113
|
+
* of {@link ChatRouteDurableProjection} and deliberately does not — the one it
|
|
1114
|
+
* used to ship (`/durable-chat`) was removed in 0.44.0 with zero fleet imports.
|
|
1115
|
+
* Pass any `{ observe, materialize }` object backed by your own store. The projection is observed inline and its
|
|
1113
1116
|
* materialized parts replace same-key pending snapshots after the stream
|
|
1114
1117
|
* drains. Projection persistence is best-effort for the live lane: a store
|
|
1115
1118
|
* outage must not terminate an otherwise healthy sandbox stream. Failures are
|
|
@@ -12,19 +12,6 @@ import {
|
|
|
12
12
|
sanitizeAttachmentFileName,
|
|
13
13
|
sniffBinary
|
|
14
14
|
} from "../chunk-V55WJSR4.js";
|
|
15
|
-
import {
|
|
16
|
-
DEFAULT_STALE_TURN_LOCK_GRACE_MS,
|
|
17
|
-
DEFAULT_TERMINAL_TURN_LOCK_GRACE_MS,
|
|
18
|
-
reconcileStaleTurnLock
|
|
19
|
-
} from "../chunk-CCVWR33L.js";
|
|
20
|
-
import {
|
|
21
|
-
buildModelChain,
|
|
22
|
-
isUpstreamUnavailable,
|
|
23
|
-
runWithModelFailover
|
|
24
|
-
} from "../chunk-KFTRTOT2.js";
|
|
25
|
-
import {
|
|
26
|
-
parseJsonObjectBody
|
|
27
|
-
} from "../chunk-PTUMBMVH.js";
|
|
28
15
|
import {
|
|
29
16
|
coalesceDeltas,
|
|
30
17
|
createBufferedTurnTap,
|
|
@@ -33,9 +20,17 @@ import {
|
|
|
33
20
|
resolveChatTurn,
|
|
34
21
|
stampReplaySeq
|
|
35
22
|
} from "../chunk-2EJFIQUV.js";
|
|
23
|
+
import {
|
|
24
|
+
DEFAULT_STALE_TURN_LOCK_GRACE_MS,
|
|
25
|
+
DEFAULT_TERMINAL_TURN_LOCK_GRACE_MS,
|
|
26
|
+
reconcileStaleTurnLock
|
|
27
|
+
} from "../chunk-CCVWR33L.js";
|
|
36
28
|
import {
|
|
37
29
|
createInteractionAnswerRoute
|
|
38
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-6KMAM7BL.js";
|
|
31
|
+
import {
|
|
32
|
+
parseJsonObjectBody
|
|
33
|
+
} from "../chunk-PTUMBMVH.js";
|
|
39
34
|
import {
|
|
40
35
|
ChatTurnInputError,
|
|
41
36
|
DISPATCH_MAX_MEDIA_PARTS,
|
|
@@ -88,6 +83,11 @@ import {
|
|
|
88
83
|
parsePlanSubmittedEvent,
|
|
89
84
|
planToPersistedPart
|
|
90
85
|
} from "../chunk-YJMCRXQQ.js";
|
|
86
|
+
import {
|
|
87
|
+
buildModelChain,
|
|
88
|
+
isUpstreamUnavailable,
|
|
89
|
+
runWithModelFailover
|
|
90
|
+
} from "../chunk-KFTRTOT2.js";
|
|
91
91
|
import {
|
|
92
92
|
flattenHistory,
|
|
93
93
|
readSandboxBinaryBytes,
|
|
@@ -95,12 +95,11 @@ import {
|
|
|
95
95
|
} from "../chunk-JHYJZSFX.js";
|
|
96
96
|
import "../chunk-IVUN7FL7.js";
|
|
97
97
|
import "../chunk-CQZSAR77.js";
|
|
98
|
-
import "../chunk-
|
|
98
|
+
import "../chunk-ICOHEZK6.js";
|
|
99
99
|
import "../chunk-3EJ6SFJI.js";
|
|
100
|
+
import "../chunk-YEFFHORB.js";
|
|
100
101
|
import "../chunk-S5SRJJQG.js";
|
|
101
102
|
import "../chunk-JML7WKWU.js";
|
|
102
|
-
import "../chunk-UOAYS72M.js";
|
|
103
|
-
import "../chunk-YEFFHORB.js";
|
|
104
103
|
|
|
105
104
|
// src/chat-routes/turn-routes.ts
|
|
106
105
|
import { deriveExecutionId, handleChatTurn } from "@tangle-network/agent-runtime";
|