@tangle-network/agent-app 0.60.270 → 0.60.272

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 (41) hide show
  1. package/dist/assistant/index.js +5 -5
  2. package/dist/chat-react/index.js +3 -3
  3. package/dist/chat-routes/index.d.ts +1 -0
  4. package/dist/chat-routes/index.js +6 -5
  5. package/dist/chat-routes/index.js.map +1 -1
  6. package/dist/chat-routes/minted-thread.d.ts +63 -0
  7. package/dist/chat-routes/turn-route-contracts.d.ts +12 -3
  8. package/dist/chat-routes/turn-routes.d.ts +1 -1
  9. package/dist/chat-routes/wire.d.ts +7 -0
  10. package/dist/chat-store/index.js +2 -2
  11. package/dist/{chunk-UJKWM4UY.js → chunk-DJIN3YUJ.js} +1 -59
  12. package/dist/chunk-DJIN3YUJ.js.map +1 -0
  13. package/dist/chunk-F4TUZYMX.js +63 -0
  14. package/dist/chunk-F4TUZYMX.js.map +1 -0
  15. package/dist/{chunk-RZLCBWGG.js → chunk-FAXSYC2C.js} +2 -2
  16. package/dist/{chunk-5TSRFF5W.js → chunk-G7M2C72Q.js} +1 -1
  17. package/dist/chunk-G7M2C72Q.js.map +1 -0
  18. package/dist/{chunk-NHVSO47Q.js → chunk-IUVDR3KJ.js} +2 -2
  19. package/dist/{chunk-CNBVWPQC.js → chunk-LXYQOOXU.js} +2 -2
  20. package/dist/{chunk-3RRYI24K.js → chunk-S2IEOSN3.js} +22 -4
  21. package/dist/chunk-S2IEOSN3.js.map +1 -0
  22. package/dist/{chunk-O2RCDK5D.js → chunk-SKI2F3NL.js} +7 -3
  23. package/dist/chunk-SKI2F3NL.js.map +1 -0
  24. package/dist/operator/index.js +2 -2
  25. package/dist/platform/billable-turn-admission.d.ts +83 -0
  26. package/dist/platform/index.d.ts +1 -0
  27. package/dist/platform/index.js +49 -0
  28. package/dist/platform/index.js.map +1 -1
  29. package/dist/public-consultation/index.d.ts +2 -2
  30. package/dist/public-consultation/index.js +3 -3
  31. package/dist/sandbox/index.js +4 -2
  32. package/dist/web-react/chat-stream.d.ts +7 -0
  33. package/dist/web-react/index.js +7 -5
  34. package/package.json +1 -1
  35. package/dist/chunk-3RRYI24K.js.map +0 -1
  36. package/dist/chunk-5TSRFF5W.js.map +0 -1
  37. package/dist/chunk-O2RCDK5D.js.map +0 -1
  38. package/dist/chunk-UJKWM4UY.js.map +0 -1
  39. /package/dist/{chunk-RZLCBWGG.js.map → chunk-FAXSYC2C.js.map} +0 -0
  40. /package/dist/{chunk-NHVSO47Q.js.map → chunk-IUVDR3KJ.js.map} +0 -0
  41. /package/dist/{chunk-CNBVWPQC.js.map → chunk-LXYQOOXU.js.map} +0 -0
@@ -102,8 +102,8 @@ interface GatewayConsultationContext {
102
102
  /** Compose gateway admission, scoped knowledge and the maintained persisted chat route. */
103
103
  export declare function createPublicConsultation(options: PublicConsultationOptions): {
104
104
  authorizeConsumer(agent: ConsultationAgent, consumer: ConsultationConsumer): Promise<{
105
- reason?: undefined;
106
105
  allow: true;
106
+ reason?: undefined;
107
107
  code?: undefined;
108
108
  } | {
109
109
  allow: false;
@@ -121,9 +121,9 @@ export declare function createPublicConsultation(options: PublicConsultationOpti
121
121
  executionBudget?: ChatTurnExecutionLimits;
122
122
  maxOutputTokens?: number;
123
123
  }) => Promise<{
124
- start?: undefined;
125
124
  status: 'unsupported';
126
125
  reason: string;
126
+ start?: undefined;
127
127
  } | {
128
128
  reason?: undefined;
129
129
  status: 'prepared';
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  createChatTurnRoutes,
3
3
  streamChatRouteAsSandboxEvents
4
- } from "../chunk-3RRYI24K.js";
4
+ } from "../chunk-S2IEOSN3.js";
5
5
  import "../chunk-KH4QSBNI.js";
6
6
  import "../chunk-CQGEGPY7.js";
7
7
  import "../chunk-RN4WPTBH.js";
8
8
  import "../chunk-WP2GYFZ4.js";
9
9
  import "../chunk-UK7QG5BW.js";
10
- import "../chunk-RZLCBWGG.js";
10
+ import "../chunk-FAXSYC2C.js";
11
11
  import "../chunk-ZVEEWGDK.js";
12
- import "../chunk-5TSRFF5W.js";
12
+ import "../chunk-G7M2C72Q.js";
13
13
  import "../chunk-Z4RD5UF7.js";
14
14
  import "../chunk-YG66IHDU.js";
15
15
  import "../chunk-VUBJZEZB.js";
@@ -53,7 +53,6 @@ import {
53
53
  createSandboxPrewarmer,
54
54
  createSandboxRunTool,
55
55
  createSandboxTerminalConnectionRoute,
56
- createWarmCache,
57
56
  createWarmLeases,
58
57
  createWorkspacePrewarmRoute,
59
58
  createWorkspaceSandboxManager,
@@ -102,7 +101,10 @@ import {
102
101
  warmKey,
103
102
  warmReceiptId,
104
103
  warmWeekdayOf
105
- } from "../chunk-UJKWM4UY.js";
104
+ } from "../chunk-DJIN3YUJ.js";
105
+ import {
106
+ createWarmCache
107
+ } from "../chunk-F4TUZYMX.js";
106
108
  import {
107
109
  EGRESS_PROXY_RECOVERY_PHASE,
108
110
  EGRESS_PROXY_RECOVERY_REQUIRED,
@@ -16,6 +16,13 @@ import { type ChatInteraction, type InteractionCancelData } from './chat-interac
16
16
  import { type ChatPlan } from '../plans/index';
17
17
  import { type TurnIntentData, type TurnPhaseData } from '../chat-routes/turn-progress';
18
18
  export { chatTurnRequestInit, type ChatTurnFilePartInput, type ChatTurnPartInput, type ChatTurnRequestPayload, type ProducerTextEvent, type ProducerReasoningEvent, type ProducerToolCallEvent, type ProducerToolResultEvent, type ProducerUsageEvent, type ProducerNoticeEvent, type ProducerErrorEvent, type ProducerPassthroughEventType, type ProducerPassthroughEvent, type ProducerWireEvent, type FileMention, fileMentionsToParts, buildMentionPromptBlock, mediaTypeForMentionPath, mentionKindForPath, type ChatAttachmentKind, type ChatAttachmentInput, DISPATCH_REQUEST_MAX_BYTES, DISPATCH_STRUCTURAL_RESERVE_BYTES, DISPATCH_MAX_PARTS, DISPATCH_MAX_MEDIA_PARTS, base64WireLen, } from '../chat-routes/wire';
19
+ /**
20
+ * A thread id in the server's own format (32 lowercase hex), minted in the
21
+ * browser for a new chat's first turn: send it as both `threadId` and
22
+ * `newThread.id`, and the turn route's `createThread` option creates the thread
23
+ * with the turn, with no thread POST first.
24
+ */
25
+ export declare function mintThreadId(): string;
19
26
  export { buildTurnPhaseEvent, isTurnIntentEvent, isTurnPhaseEvent, settleTurnResponse, TURN_INTENT_EVENT, TURN_PHASE_EVENT, TURN_PROGRESS_FIRST, TURN_PROGRESS_HEADER, TURN_RESPONSE_EVENT, TURN_ROUTE_PHASE_MESSAGES, TURN_STREAM_LOST_CODE, type TurnIntentData, type TurnIntentEvent, type TurnPhaseData, type TurnPhaseEvent, type TurnResponseData, type TurnRoutePhase, } from '../chat-routes/turn-progress';
20
27
  export { type FileIndexResponse, type FileIndexReadyResponse, type FileIndexWarmingResponse, } from '../chat-routes/file-index';
21
28
  /** Define the structure for a chat tool call including optional ID, name, and arguments object */
@@ -90,6 +90,7 @@ import {
90
90
  loadAttachmentFile,
91
91
  loadingProvenanceSources,
92
92
  mergeActivityPages,
93
+ mintThreadId,
93
94
  missingAnswerHint,
94
95
  nextRevealCount,
95
96
  parseRecordGridInput,
@@ -145,7 +146,7 @@ import {
145
146
  withoutRecordGridCreated,
146
147
  withoutRecordGridRemoved,
147
148
  withoutRecordGridUpdate
148
- } from "../chunk-O2RCDK5D.js";
149
+ } from "../chunk-SKI2F3NL.js";
149
150
  import {
150
151
  useInfiniteScroll
151
152
  } from "../chunk-BDEBQ4WO.js";
@@ -186,7 +187,7 @@ import {
186
187
  preloadWhenIdle,
187
188
  useComposerAttachments,
188
189
  useDictation
189
- } from "../chunk-CNBVWPQC.js";
190
+ } from "../chunk-LXYQOOXU.js";
190
191
  import "../chunk-L7MB2LLM.js";
191
192
  import {
192
193
  AgentSessionControls,
@@ -245,7 +246,7 @@ import {
245
246
  ALLOWED_ATTACHMENT_SNIFFED_MIMES,
246
247
  ATTACHMENT_ACCEPT,
247
248
  OOXML_SNIFFED_MIMES
248
- } from "../chunk-NHVSO47Q.js";
249
+ } from "../chunk-IUVDR3KJ.js";
249
250
  import "../chunk-B7CL7ENS.js";
250
251
  import "../chunk-AMUXRAUO.js";
251
252
  import {
@@ -255,7 +256,7 @@ import {
255
256
  isChatAttachmentPart,
256
257
  mentionInputToPart,
257
258
  mentionPartsFromMessageParts
258
- } from "../chunk-RZLCBWGG.js";
259
+ } from "../chunk-FAXSYC2C.js";
259
260
  import "../chunk-ZVEEWGDK.js";
260
261
  import {
261
262
  DISPATCH_MAX_MEDIA_PARTS,
@@ -279,7 +280,7 @@ import {
279
280
  mediaTypeForMentionPath,
280
281
  mentionKindForPath,
281
282
  settleTurnResponse
282
- } from "../chunk-5TSRFF5W.js";
283
+ } from "../chunk-G7M2C72Q.js";
283
284
  import {
284
285
  attachmentPartKey
285
286
  } from "../chunk-VUBJZEZB.js";
@@ -493,6 +494,7 @@ export {
493
494
  mentionPartsFromMessageParts,
494
495
  mergeActivityPages,
495
496
  mergeReviewQueuePages,
497
+ mintThreadId,
496
498
  missingAnswerHint,
497
499
  nextRevealCount,
498
500
  noticePart,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.60.270",
3
+ "version": "0.60.272",
4
4
  "packageManager": "pnpm@11.24.0",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [