@tangle-network/agent-app 0.63.60 → 0.63.62
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/{DesignCanvas-Q65UV4D5.js → DesignCanvas-566V5KVC.js} +3 -2
- package/dist/{DesignCanvasEditor-THEFESEX.js → DesignCanvasEditor-6XNHSREG.js} +5 -4
- package/dist/agent-profiles/d1.js +3 -3
- package/dist/agent-profiles/index.js +3 -3
- package/dist/app-auth/index.js +2 -1
- package/dist/app-auth/index.js.map +1 -1
- package/dist/assistant/index.js +6 -5
- package/dist/assistant/index.js.map +1 -1
- package/dist/chat-react/index.js +3 -3
- package/dist/chat-routes/agent-producers.d.ts +39 -0
- package/dist/chat-routes/dispatch-parts.d.ts +24 -2
- package/dist/chat-routes/hybrid-producer.d.ts +6 -2
- package/dist/chat-routes/index.d.ts +1 -0
- package/dist/chat-routes/index.js +31 -12
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-routes/turn-admission.d.ts +3 -3
- package/dist/chat-routes/turn-route-contracts.d.ts +39 -1
- package/dist/chat-routes/wire.d.ts +35 -4
- package/dist/chat-store/index.js +4 -2
- package/dist/chat-store/index.js.map +1 -1
- package/dist/chat-store/parts.d.ts +19 -3
- package/dist/{chunk-6XSQCP6W.js → chunk-43CV4JIT.js} +2 -2
- package/dist/{chunk-SFZELD6V.js → chunk-4JTEPK2G.js} +2 -2
- package/dist/{chunk-RILVJYXJ.js → chunk-5ERXADSW.js} +2 -2
- package/dist/{chunk-LAZCUQFZ.js → chunk-73AVOSH6.js} +179 -86
- package/dist/chunk-73AVOSH6.js.map +1 -0
- package/dist/{chunk-HHPQMFKP.js → chunk-7O62NYGT.js} +2 -2
- package/dist/{chunk-GGJYAV7R.js → chunk-AHBVQRJA.js} +2 -2
- package/dist/{chunk-GGJYAV7R.js.map → chunk-AHBVQRJA.js.map} +1 -1
- package/dist/{chunk-UTF7H6BK.js → chunk-EUQ46YWK.js} +15 -15
- package/dist/chunk-EUQ46YWK.js.map +1 -0
- package/dist/{chunk-PIGW5LRM.js → chunk-FJRQCF43.js} +3 -3
- package/dist/{chunk-AICYKYYF.js → chunk-GAYWV565.js} +17 -4
- package/dist/chunk-GAYWV565.js.map +1 -0
- package/dist/{chunk-5C3RXQQ7.js → chunk-H3DAXUKV.js} +2 -2
- package/dist/{chunk-SRA7VAVK.js → chunk-HJYEK4SU.js} +2 -2
- package/dist/{chunk-P7UB7ZVP.js → chunk-IAK227OO.js} +2 -2
- package/dist/{chunk-QGJOT6R6.js → chunk-K2JPSXKI.js} +54 -9
- package/dist/{chunk-QGJOT6R6.js.map → chunk-K2JPSXKI.js.map} +1 -1
- package/dist/{chunk-QFIVY6WA.js → chunk-NJW4JCSF.js} +2 -2
- package/dist/{chunk-IDQ7N36R.js → chunk-Q55WW6DO.js} +15 -15
- package/dist/{chunk-H6BRJU5M.js → chunk-RKNNMC6T.js} +1 -1
- package/dist/{chunk-KFO5R4SN.js → chunk-RYKANV3P.js} +945 -801
- package/dist/chunk-RYKANV3P.js.map +1 -0
- package/dist/{chunk-4E2MUVGL.js → chunk-VQIH5NAB.js} +3 -3
- package/dist/chunk-XBBXPZJI.js +47 -0
- package/dist/chunk-XBBXPZJI.js.map +1 -0
- package/dist/{chunk-DCGATWZ5.js → chunk-XPB2UYHU.js} +5 -5
- package/dist/{chunk-DCGATWZ5.js.map → chunk-XPB2UYHU.js.map} +1 -1
- package/dist/design-canvas/index.js +2 -1
- package/dist/design-canvas/index.js.map +1 -1
- package/dist/design-canvas-react/engine.js +2 -1
- package/dist/design-canvas-react/index.js +5 -4
- package/dist/design-canvas-react/index.js.map +1 -1
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/operator/index.js +2 -2
- package/dist/platform/index.js +2 -1
- package/dist/platform/index.js.map +1 -1
- package/dist/preset-cloudflare/index.js +6 -6
- package/dist/public-consultation/index.d.ts +2 -2
- package/dist/public-consultation/index.js +11 -10
- package/dist/public-consultation/index.js.map +1 -1
- package/dist/sandbox/index.js +6 -6
- package/dist/sequences/index.js +2 -1
- package/dist/sequences/index.js.map +1 -1
- package/dist/stories/chat/fixtures.d.ts +4 -0
- package/dist/theme/brand.generated.d.ts +15 -15
- package/dist/theme/dom.js +2 -2
- package/dist/theme/index.js +1 -1
- package/dist/theme/tokens.css +210 -356
- package/dist/tools/index.js +4 -4
- package/dist/web/index.d.ts +1 -0
- package/dist/web/index.js +7 -1
- package/dist/web/speakers.d.ts +30 -0
- package/dist/web-react/chat-messages.d.ts +1 -1
- package/dist/web-react/chat-stream.d.ts +7 -0
- package/dist/web-react/document.js +2 -2
- package/dist/web-react/entry-composer.d.ts +2 -2
- package/dist/web-react/index.d.ts +3 -0
- package/dist/web-react/index.js +18 -5
- package/dist/web-react/message-projection.d.ts +19 -0
- package/dist/web-react/use-file-mentions.d.ts +23 -4
- package/dist/work-product/index.js +2 -2
- package/dist/workspace-react/index.d.ts +29 -1
- package/dist/workspace-react/index.js +34 -0
- package/dist/workspace-react/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-AICYKYYF.js.map +0 -1
- package/dist/chunk-KFO5R4SN.js.map +0 -1
- package/dist/chunk-LAZCUQFZ.js.map +0 -1
- package/dist/chunk-UTF7H6BK.js.map +0 -1
- /package/dist/{DesignCanvas-Q65UV4D5.js.map → DesignCanvas-566V5KVC.js.map} +0 -0
- /package/dist/{DesignCanvasEditor-THEFESEX.js.map → DesignCanvasEditor-6XNHSREG.js.map} +0 -0
- /package/dist/{chunk-6XSQCP6W.js.map → chunk-43CV4JIT.js.map} +0 -0
- /package/dist/{chunk-SFZELD6V.js.map → chunk-4JTEPK2G.js.map} +0 -0
- /package/dist/{chunk-RILVJYXJ.js.map → chunk-5ERXADSW.js.map} +0 -0
- /package/dist/{chunk-HHPQMFKP.js.map → chunk-7O62NYGT.js.map} +0 -0
- /package/dist/{chunk-PIGW5LRM.js.map → chunk-FJRQCF43.js.map} +0 -0
- /package/dist/{chunk-5C3RXQQ7.js.map → chunk-H3DAXUKV.js.map} +0 -0
- /package/dist/{chunk-SRA7VAVK.js.map → chunk-HJYEK4SU.js.map} +0 -0
- /package/dist/{chunk-P7UB7ZVP.js.map → chunk-IAK227OO.js.map} +0 -0
- /package/dist/{chunk-QFIVY6WA.js.map → chunk-NJW4JCSF.js.map} +0 -0
- /package/dist/{chunk-IDQ7N36R.js.map → chunk-Q55WW6DO.js.map} +0 -0
- /package/dist/{chunk-H6BRJU5M.js.map → chunk-RKNNMC6T.js.map} +0 -0
- /package/dist/{chunk-4E2MUVGL.js.map → chunk-VQIH5NAB.js.map} +0 -0
package/dist/chat-react/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComposerModeControls,
|
|
3
3
|
EntryComposer
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-AHBVQRJA.js";
|
|
5
5
|
import "../chunk-L7MB2LLM.js";
|
|
6
6
|
import "../chunk-ARCXYOMS.js";
|
|
7
7
|
import "../chunk-2HQP2CTA.js";
|
|
@@ -10,8 +10,8 @@ import "../chunk-RO25WIVS.js";
|
|
|
10
10
|
import "../chunk-ZAMHLXNS.js";
|
|
11
11
|
import "../chunk-SJWIZT7B.js";
|
|
12
12
|
import "../chunk-RASGKEAL.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-IAK227OO.js";
|
|
14
|
+
import "../chunk-K2JPSXKI.js";
|
|
15
15
|
import "../chunk-AMUXRAUO.js";
|
|
16
16
|
import "../chunk-RCSAAWOH.js";
|
|
17
17
|
import "../chunk-TXD5HXLE.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A turn addressed to several agents runs them at the same time, each as its
|
|
3
|
+
* own producer with the same thread history, and presents them one after
|
|
4
|
+
* another in the order the mentions were typed: the route sees one stream,
|
|
5
|
+
* persists one assistant row, and the row's parts carry a `speaker` part
|
|
6
|
+
* before each responder's parts so a transcript can draw each answer under
|
|
7
|
+
* its author. The live stream carries the same boundary as a `speaker`
|
|
8
|
+
* event, so a viewer opens a new block as each agent's answer arrives.
|
|
9
|
+
*
|
|
10
|
+
* Parallel on purpose: the agents are addressed, not chained, so each answers
|
|
11
|
+
* independently and none waits on another. Ordered presentation on purpose:
|
|
12
|
+
* one live block at a time is what a reader can follow, and the stored order
|
|
13
|
+
* is the order typed, so the transcript rereads the same way every time.
|
|
14
|
+
*/
|
|
15
|
+
import type { ChatTurnIdentity } from '@tangle-network/agent-runtime/durable';
|
|
16
|
+
import type { TurnTrace } from '../turn-trace/recorder';
|
|
17
|
+
import type { ChatTurnAgentsOptions, ChatTurnAgentTarget, ChatTurnProduceArgs, ChatTurnRouteProducer } from './turn-route-contracts';
|
|
18
|
+
import { type ChatMention } from './wire';
|
|
19
|
+
/**
|
|
20
|
+
* Name a turn's responders from its agent mentions, before any lock, row or
|
|
21
|
+
* model call: the product's resolver maps mentioned ids to the profiles they
|
|
22
|
+
* run as, and a mention it does not return is refused. The thread's binding
|
|
23
|
+
* does not move. Returns the response to send on refusal, otherwise the
|
|
24
|
+
* produce args carrying `agents` in mention order (unchanged when none).
|
|
25
|
+
*/
|
|
26
|
+
export declare function addressAgents<TContext, TResource>(input: {
|
|
27
|
+
options: {
|
|
28
|
+
agents?: ChatTurnAgentsOptions<TContext>;
|
|
29
|
+
};
|
|
30
|
+
mentions: readonly ChatMention[];
|
|
31
|
+
identity: ChatTurnIdentity;
|
|
32
|
+
context: TContext;
|
|
33
|
+
produceArgs: ChatTurnProduceArgs<TContext, TResource>;
|
|
34
|
+
trace: TurnTrace;
|
|
35
|
+
}): Promise<Response | ChatTurnProduceArgs<TContext, TResource>>;
|
|
36
|
+
/** The event a viewer receives when the next responder starts. */
|
|
37
|
+
export declare const SPEAKER_EVENT = "speaker";
|
|
38
|
+
export declare function speakerPart(agent: ChatTurnAgentTarget): Record<string, unknown>;
|
|
39
|
+
export declare function composeAgentProducers<TContext, TResource>(args: ChatTurnProduceArgs<TContext, TResource>, produce: (final: ChatTurnProduceArgs<TContext, TResource>) => ChatTurnRouteProducer | Promise<ChatTurnRouteProducer>): Promise<ChatTurnRouteProducer>;
|
|
@@ -61,8 +61,30 @@ export interface DispatchHistoryMessage {
|
|
|
61
61
|
content: string;
|
|
62
62
|
parts?: ReadonlyArray<Record<string, unknown>> | null;
|
|
63
63
|
}
|
|
64
|
-
/**
|
|
65
|
-
export
|
|
64
|
+
/** Whose eyes the history is read through. */
|
|
65
|
+
export interface DispatchHistoryPov {
|
|
66
|
+
/** The agent being prompted (`args.agent?.id` on a mentioned turn). Its
|
|
67
|
+
* own answers stay `assistant`; every other agent's answer becomes a
|
|
68
|
+
* `user` message tagged `[Name] …`, the same tagging agent-runtime's
|
|
69
|
+
* `runConversation` uses, so three or more parties stay unambiguous. */
|
|
70
|
+
pov?: string;
|
|
71
|
+
/** The thread's own agent, so its untagged answers can be named when the
|
|
72
|
+
* history is read by someone else. Omit → untagged rows stay `assistant`. */
|
|
73
|
+
owner?: {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
};
|
|
77
|
+
/** Append each row's attachment pointers to its text, as dispatch does.
|
|
78
|
+
* Default true; a Router turn with no box to read from passes false. */
|
|
79
|
+
attachments?: boolean;
|
|
80
|
+
}
|
|
81
|
+
/** Project persisted rows using the same role and attachment policy as dispatch.
|
|
82
|
+
* A row written by several agents (a `speaker` part before each answer)
|
|
83
|
+
* projects as one message per speaker, each tagged with its name; with a
|
|
84
|
+
* point of view, the reader's own answers are untagged `assistant` turns and
|
|
85
|
+
* everyone else's are tagged `user` turns. Reasoning and tool parts never
|
|
86
|
+
* project: they are the writer's trace, not anyone's context. */
|
|
87
|
+
export declare function projectDispatchHistory(messages: ReadonlyArray<DispatchHistoryMessage>, view?: DispatchHistoryPov): Array<{
|
|
66
88
|
role: 'user' | 'assistant';
|
|
67
89
|
content: string;
|
|
68
90
|
}>;
|
|
@@ -41,6 +41,7 @@ import { type EscalationHint, type EscalationInput } from '../sandbox/escalation
|
|
|
41
41
|
import { SandboxRunError, type SandboxRunToolOptions } from '../sandbox/sandbox-run-tool';
|
|
42
42
|
import { type ComputerStepOptions } from '../sandbox/computer-step';
|
|
43
43
|
import type { PersistedChatMessageForTurn } from '../stream/index';
|
|
44
|
+
import { type DispatchHistoryPov } from './dispatch-parts';
|
|
44
45
|
import { type RouterTurnProducerOptions } from './router-producer';
|
|
45
46
|
import type { ChatTurnRouteProducer } from './turn-routes';
|
|
46
47
|
import type { ChatTurnPartInput, ChatTurnRequestPayload } from './wire';
|
|
@@ -99,8 +100,11 @@ export declare function turnPromptText(prompt: string | readonly ChatTurnPartInp
|
|
|
99
100
|
/** Whether the turn carries files. Files live in the box, so a turn with them runs on the sandbox lane. */
|
|
100
101
|
export declare function turnCarriesFiles(prompt: string | readonly ChatTurnPartInput[]): boolean;
|
|
101
102
|
/** The conversation so far as the plain text history a Router turn replays: the last `limit` user and assistant
|
|
102
|
-
* messages that have text
|
|
103
|
-
|
|
103
|
+
* messages that have text, read through the responder's point of view when the turn was addressed to agents
|
|
104
|
+
* (a row several agents wrote becomes one tagged message per speaker). Tool and reasoning parts are not replayed. */
|
|
105
|
+
export declare function routerTurnHistory(priorMessages: ReadonlyArray<Pick<PersistedChatMessageForTurn, 'role' | 'content'> & {
|
|
106
|
+
parts?: ReadonlyArray<Record<string, unknown>> | null;
|
|
107
|
+
}>, limit?: number, view?: Pick<DispatchHistoryPov, 'pov' | 'owner'>): Array<{
|
|
104
108
|
role: 'user' | 'assistant';
|
|
105
109
|
content: string;
|
|
106
110
|
}>;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* re-exported through `/web-react`'s chat-stream glue.
|
|
8
8
|
*/
|
|
9
9
|
export * from './wire';
|
|
10
|
+
export { composeAgentProducers, SPEAKER_EVENT, speakerPart } from './agent-producers';
|
|
10
11
|
export * from './binary-sniff';
|
|
11
12
|
export * from './attachment-validation';
|
|
12
13
|
export * from './turn-routes';
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
sanitizeAttachmentFileName,
|
|
28
28
|
sniffBinary,
|
|
29
29
|
sniffedMimeImpliedByName
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-IAK227OO.js";
|
|
31
31
|
import {
|
|
32
32
|
assertSafeKeySegment
|
|
33
33
|
} from "../chunk-6DOQ6T2O.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
observeNativeCompletion,
|
|
41
41
|
readCompletedSandboxTurn,
|
|
42
42
|
recoverSandboxAssistantMessage
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-5ERXADSW.js";
|
|
44
44
|
import {
|
|
45
45
|
runProtectedRouterTurn
|
|
46
46
|
} from "../chunk-6XEW5YXP.js";
|
|
@@ -53,12 +53,14 @@ import {
|
|
|
53
53
|
INTENT_LINE_TIMEOUT_MS,
|
|
54
54
|
MAX_EMPTY_TURN_RETRIES,
|
|
55
55
|
ModelFailoverTimeoutError,
|
|
56
|
+
SPEAKER_EVENT,
|
|
56
57
|
UPLOAD_INLINE_MAX_BYTES,
|
|
57
58
|
UPLOAD_MAX_FILE_BYTES,
|
|
58
59
|
buildDispatchParts,
|
|
59
60
|
bytesToBase64,
|
|
60
61
|
cancelChatTurn,
|
|
61
62
|
classifyTerminalFailure,
|
|
63
|
+
composeAgentProducers,
|
|
62
64
|
createChatTurnRoutes,
|
|
63
65
|
createHybridTurnProducer,
|
|
64
66
|
createRouterTurnProducer,
|
|
@@ -72,6 +74,7 @@ import {
|
|
|
72
74
|
resolveEmptyTurnRetries,
|
|
73
75
|
routerTurnHistory,
|
|
74
76
|
sanitizeUploadFilename,
|
|
77
|
+
speakerPart,
|
|
75
78
|
startHybridBox,
|
|
76
79
|
streamChatRouteAsSandboxEvents,
|
|
77
80
|
streamWithModelFailover,
|
|
@@ -79,13 +82,14 @@ import {
|
|
|
79
82
|
turnCarriesFiles,
|
|
80
83
|
turnPromptText,
|
|
81
84
|
withProducerStream
|
|
82
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-RYKANV3P.js";
|
|
83
86
|
import "../chunk-SBHFMDR7.js";
|
|
84
|
-
import "../chunk-
|
|
87
|
+
import "../chunk-RKNNMC6T.js";
|
|
88
|
+
import "../chunk-XBBXPZJI.js";
|
|
85
89
|
import "../chunk-4DBHC63F.js";
|
|
86
90
|
import "../chunk-RN4WPTBH.js";
|
|
87
91
|
import "../chunk-MM6RLOXF.js";
|
|
88
|
-
import "../chunk-
|
|
92
|
+
import "../chunk-Q55WW6DO.js";
|
|
89
93
|
import "../chunk-F4TUZYMX.js";
|
|
90
94
|
import {
|
|
91
95
|
redactErrorMessage
|
|
@@ -96,14 +100,14 @@ import {
|
|
|
96
100
|
isDraftContentEvent,
|
|
97
101
|
rowIdOf,
|
|
98
102
|
storeSupportsDraftPersistence
|
|
99
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-7O62NYGT.js";
|
|
100
104
|
import "../chunk-2PCNHHN2.js";
|
|
101
105
|
import "../chunk-YG66IHDU.js";
|
|
102
106
|
import {
|
|
103
107
|
attachmentInputToPart,
|
|
104
108
|
attachmentKindForMime,
|
|
105
109
|
toChatMessageParts
|
|
106
|
-
} from "../chunk-
|
|
110
|
+
} from "../chunk-GAYWV565.js";
|
|
107
111
|
import "../chunk-ZVEEWGDK.js";
|
|
108
112
|
import {
|
|
109
113
|
getPartKey,
|
|
@@ -122,6 +126,7 @@ import {
|
|
|
122
126
|
createBufferedTurnTap
|
|
123
127
|
} from "../chunk-3Q3UEWKK.js";
|
|
124
128
|
import {
|
|
129
|
+
AGENT_HANDLE_PATTERN,
|
|
125
130
|
ChatTurnInputError,
|
|
126
131
|
DISPATCH_MAX_MEDIA_PARTS,
|
|
127
132
|
DISPATCH_MAX_PARTS,
|
|
@@ -136,35 +141,40 @@ import {
|
|
|
136
141
|
TURN_RESPONSE_EVENT,
|
|
137
142
|
TURN_ROUTE_PHASE_MESSAGES,
|
|
138
143
|
TURN_STREAM_LOST_CODE,
|
|
144
|
+
agentHandle,
|
|
145
|
+
agentMentionsOf,
|
|
139
146
|
assertPromptPartsWithinCap,
|
|
140
147
|
base64WireLen,
|
|
141
148
|
buildMentionPromptBlock,
|
|
142
149
|
buildTurnPhaseEvent,
|
|
143
150
|
chatTurnRequestInit,
|
|
151
|
+
fileMentionsOf,
|
|
144
152
|
fileMentionsToParts,
|
|
145
153
|
formatBytes,
|
|
154
|
+
isAgentMention,
|
|
146
155
|
isTurnIntentEvent,
|
|
147
156
|
isTurnPhaseEvent,
|
|
148
157
|
mediaTypeForMentionPath,
|
|
149
158
|
mentionKindForPath,
|
|
150
159
|
parseChatTurnParts,
|
|
151
160
|
parseFileMentions,
|
|
161
|
+
parseMentions,
|
|
152
162
|
promptPartsByteSize,
|
|
153
163
|
settleTurnResponse,
|
|
154
164
|
turnResponseEventFor,
|
|
155
165
|
validateSandboxMentionPath
|
|
156
|
-
} from "../chunk-
|
|
166
|
+
} from "../chunk-K2JPSXKI.js";
|
|
157
167
|
import "../chunk-L3QR274L.js";
|
|
158
168
|
import "../chunk-XELWWXJJ.js";
|
|
159
169
|
import "../chunk-DSMGS4IV.js";
|
|
160
|
-
import "../chunk-
|
|
170
|
+
import "../chunk-FJRQCF43.js";
|
|
161
171
|
import "../chunk-OY7A6M7S.js";
|
|
162
172
|
import "../chunk-O7UX55EU.js";
|
|
163
|
-
import "../chunk-
|
|
173
|
+
import "../chunk-43CV4JIT.js";
|
|
164
174
|
import "../chunk-S5SRJJQG.js";
|
|
165
|
-
import "../chunk-
|
|
175
|
+
import "../chunk-HJYEK4SU.js";
|
|
166
176
|
import "../chunk-UGWQLQDS.js";
|
|
167
|
-
import "../chunk-
|
|
177
|
+
import "../chunk-XPB2UYHU.js";
|
|
168
178
|
import "../chunk-YRWUJKW5.js";
|
|
169
179
|
import "../chunk-D6UJEOZQ.js";
|
|
170
180
|
import "../chunk-W6G2HF6M.js";
|
|
@@ -1916,6 +1926,7 @@ function createStoredChatAttachments(options) {
|
|
|
1916
1926
|
return { readAttachment, writeAttachment, getAttachmentObject, attachmentObjectKey };
|
|
1917
1927
|
}
|
|
1918
1928
|
export {
|
|
1929
|
+
AGENT_HANDLE_PATTERN,
|
|
1919
1930
|
ALLOWED_ATTACHMENT_SNIFFED_MIMES,
|
|
1920
1931
|
ATTACHMENT_ACCEPT,
|
|
1921
1932
|
ATTACHMENT_MAX_COUNT,
|
|
@@ -1953,6 +1964,7 @@ export {
|
|
|
1953
1964
|
OOXML_WORD_MIME,
|
|
1954
1965
|
PROMOTE_MAX_FILE_BYTES,
|
|
1955
1966
|
RUNTIME_RESTARTED_ERROR,
|
|
1967
|
+
SPEAKER_EVENT,
|
|
1956
1968
|
STREAM_SNIFF_HEAD_BYTES,
|
|
1957
1969
|
STREAM_SNIFF_TAIL_BYTES,
|
|
1958
1970
|
TOOL_ABORTED_ERROR,
|
|
@@ -1965,6 +1977,8 @@ export {
|
|
|
1965
1977
|
TURN_STREAM_LOST_CODE,
|
|
1966
1978
|
UPLOAD_INLINE_MAX_BYTES,
|
|
1967
1979
|
UPLOAD_MAX_FILE_BYTES,
|
|
1980
|
+
agentHandle,
|
|
1981
|
+
agentMentionsOf,
|
|
1968
1982
|
aggregateNativeCompletionReceipts,
|
|
1969
1983
|
assertPromptPartsWithinCap,
|
|
1970
1984
|
assistantRowIdForTurn,
|
|
@@ -1980,6 +1994,7 @@ export {
|
|
|
1980
1994
|
chatTurnRequestInit,
|
|
1981
1995
|
checkAttachmentType,
|
|
1982
1996
|
classifyTerminalFailure,
|
|
1997
|
+
composeAgentProducers,
|
|
1983
1998
|
createAssistantDraftWriter,
|
|
1984
1999
|
createAtomicAttachmentWriter,
|
|
1985
2000
|
createAttachmentUploadRoute,
|
|
@@ -1994,9 +2009,11 @@ export {
|
|
|
1994
2009
|
createStreamingSniffer,
|
|
1995
2010
|
createUploadRoute,
|
|
1996
2011
|
defaultValidateAttachmentPath,
|
|
2012
|
+
fileMentionsOf,
|
|
1997
2013
|
fileMentionsToParts,
|
|
1998
2014
|
formatBytes,
|
|
1999
2015
|
immutableAttachmentPath,
|
|
2016
|
+
isAgentMention,
|
|
2000
2017
|
isCommittingSandboxEvent,
|
|
2001
2018
|
isDraftContentEvent,
|
|
2002
2019
|
isLiveLifecycleEvent,
|
|
@@ -2011,6 +2028,7 @@ export {
|
|
|
2011
2028
|
parseChatAttachmentInputs,
|
|
2012
2029
|
parseChatTurnParts,
|
|
2013
2030
|
parseFileMentions,
|
|
2031
|
+
parseMentions,
|
|
2014
2032
|
parsePlanFollowUpAttach,
|
|
2015
2033
|
planFollowUpExecutionId,
|
|
2016
2034
|
prepareDispatchAttachments,
|
|
@@ -2033,6 +2051,7 @@ export {
|
|
|
2033
2051
|
sniffBinary,
|
|
2034
2052
|
sniffMimeFromName,
|
|
2035
2053
|
sniffedMimeImpliedByName,
|
|
2054
|
+
speakerPart,
|
|
2036
2055
|
startHybridBox,
|
|
2037
2056
|
storeSupportsDraftPersistence,
|
|
2038
2057
|
streamChatRouteAsSandboxEvents,
|