@tangle-network/agent-app 0.60.92 → 0.60.94

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 (37) hide show
  1. package/dist/assistant/index.js +13 -11
  2. package/dist/assistant/index.js.map +1 -1
  3. package/dist/chat-react/index.js +3 -2
  4. package/dist/chat-routes/index.js +4 -4
  5. package/dist/chat-store/index.js +2 -2
  6. package/dist/{chunk-ORFRFCXQ.js → chunk-5CEUXI5V.js} +42 -606
  7. package/dist/chunk-5CEUXI5V.js.map +1 -0
  8. package/dist/chunk-6OQYTH7T.js +2202 -0
  9. package/dist/chunk-6OQYTH7T.js.map +1 -0
  10. package/dist/{chunk-QJNMYG5H.js → chunk-BOEWSEGC.js} +18 -7
  11. package/dist/{chunk-QJNMYG5H.js.map → chunk-BOEWSEGC.js.map} +1 -1
  12. package/dist/chunk-EBNIZHRX.js +579 -0
  13. package/dist/chunk-EBNIZHRX.js.map +1 -0
  14. package/dist/{chunk-JWZ32ZGD.js → chunk-FZSIYAKQ.js} +2 -2
  15. package/dist/{chunk-736V4L2S.js → chunk-K7JI5WY4.js} +968 -3161
  16. package/dist/chunk-K7JI5WY4.js.map +1 -0
  17. package/dist/{chunk-IMTU5LCF.js → chunk-NRG2YHGY.js} +1 -1
  18. package/dist/{chunk-2YLSWZ5W.js → chunk-WKD4E52F.js} +4 -4
  19. package/dist/{chunk-2FLSODOX.js → chunk-Y4WLCFDZ.js} +6 -6
  20. package/dist/design-canvas-react/index.js +1 -1
  21. package/dist/design-canvas-react/lazy.js +1 -1
  22. package/dist/public-consultation/index.js +3 -3
  23. package/dist/sandbox/index.js +3 -1
  24. package/dist/sandbox/warm-lease-d1.d.ts +3 -1
  25. package/dist/sandbox/warm-lease.d.ts +15 -2
  26. package/dist/studio-react/index.js +2 -2
  27. package/dist/web-react/agent-profile-editor.js +17 -0
  28. package/dist/web-react/agent-profile-editor.js.map +1 -0
  29. package/dist/web-react/index.js +41 -37
  30. package/dist/workspace-react/index.js +5 -5
  31. package/package.json +1 -1
  32. package/dist/chunk-736V4L2S.js.map +0 -1
  33. package/dist/chunk-ORFRFCXQ.js.map +0 -1
  34. /package/dist/{chunk-JWZ32ZGD.js.map → chunk-FZSIYAKQ.js.map} +0 -0
  35. /package/dist/{chunk-IMTU5LCF.js.map → chunk-NRG2YHGY.js.map} +0 -0
  36. /package/dist/{chunk-2YLSWZ5W.js.map → chunk-WKD4E52F.js.map} +0 -0
  37. /package/dist/{chunk-2FLSODOX.js.map → chunk-Y4WLCFDZ.js.map} +0 -0
@@ -11,4 +11,4 @@ export {
11
11
  DesignCanvasLazy,
12
12
  DesignCanvasChromeLazy
13
13
  };
14
- //# sourceMappingURL=chunk-IMTU5LCF.js.map
14
+ //# sourceMappingURL=chunk-NRG2YHGY.js.map
@@ -1,9 +1,9 @@
1
- import {
2
- persistedPartToWorkProduct
3
- } from "./chunk-ZVEEWGDK.js";
4
1
  import {
5
2
  mentionKindForPath
6
3
  } from "./chunk-6E7LKHYV.js";
4
+ import {
5
+ persistedPartToWorkProduct
6
+ } from "./chunk-ZVEEWGDK.js";
7
7
  import {
8
8
  persistedPartToInteraction
9
9
  } from "./chunk-6VQCFJWP.js";
@@ -135,4 +135,4 @@ export {
135
135
  buildAttachmentPromptBlock,
136
136
  historyContentWithAttachments
137
137
  };
138
- //# sourceMappingURL=chunk-2YLSWZ5W.js.map
138
+ //# sourceMappingURL=chunk-WKD4E52F.js.map
@@ -2,16 +2,16 @@ import {
2
2
  ActionDialog,
3
3
  ActionDialogButton
4
4
  } from "./chunk-XEURJVS5.js";
5
- import {
6
- OVERLAY_SHADOW,
7
- PopoverSurface,
8
- usePopover
9
- } from "./chunk-HG4OONJA.js";
10
5
  import {
11
6
  UNTITLED_SESSION_LABEL,
12
7
  mergeSessionPages,
13
8
  sessionLabel
14
9
  } from "./chunk-SJWIZT7B.js";
10
+ import {
11
+ OVERLAY_SHADOW,
12
+ PopoverSurface,
13
+ usePopover
14
+ } from "./chunk-HG4OONJA.js";
15
15
 
16
16
  // src/web-react/session-history.tsx
17
17
  import {
@@ -745,4 +745,4 @@ export {
745
745
  formatSessionTimestamp,
746
746
  SessionHistoryPanel
747
747
  };
748
- //# sourceMappingURL=chunk-2FLSODOX.js.map
748
+ //# sourceMappingURL=chunk-Y4WLCFDZ.js.map
@@ -87,7 +87,7 @@ import {
87
87
  import {
88
88
  DesignCanvasChromeLazy,
89
89
  DesignCanvasLazy
90
- } from "../chunk-IMTU5LCF.js";
90
+ } from "../chunk-NRG2YHGY.js";
91
91
  import {
92
92
  assertSceneMediaSrc,
93
93
  bleedAwareExportBounds,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DesignCanvasChromeLazy,
3
3
  DesignCanvasLazy
4
- } from "../chunk-IMTU5LCF.js";
4
+ } from "../chunk-NRG2YHGY.js";
5
5
  export {
6
6
  DesignCanvasChromeLazy,
7
7
  DesignCanvasLazy
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createChatTurnRoutes,
3
3
  streamChatRouteAsSandboxEvents
4
- } from "../chunk-JWZ32ZGD.js";
4
+ } from "../chunk-FZSIYAKQ.js";
5
5
  import "../chunk-Q7WEEN7P.js";
6
6
  import "../chunk-UTAIRVOK.js";
7
7
  import "../chunk-RN4WPTBH.js";
8
8
  import "../chunk-3NCPXNBZ.js";
9
- import "../chunk-2YLSWZ5W.js";
10
- import "../chunk-ZVEEWGDK.js";
9
+ import "../chunk-WKD4E52F.js";
11
10
  import "../chunk-6E7LKHYV.js";
11
+ import "../chunk-ZVEEWGDK.js";
12
12
  import "../chunk-TXD5HXLE.js";
13
13
  import "../chunk-Z4RD5UF7.js";
14
14
  import "../chunk-YG66IHDU.js";
@@ -17,6 +17,7 @@ import {
17
17
  SandboxProvisioningFailedElsewhereError,
18
18
  SandboxRecoveryFailedError,
19
19
  SandboxRuntimeAuthRefreshError,
20
+ WARM_LEASE_DECLINED_UNTIL_DDL,
20
21
  WARM_LEASE_TABLE_DDL,
21
22
  WARM_SLOTS,
22
23
  adaptSandboxStream,
@@ -84,7 +85,7 @@ import {
84
85
  warmBinOf,
85
86
  warmWeekdayOf,
86
87
  writeProfileFilesToBox
87
- } from "../chunk-QJNMYG5H.js";
88
+ } from "../chunk-BOEWSEGC.js";
88
89
  import {
89
90
  EGRESS_PROXY_RECOVERY_PHASE,
90
91
  EGRESS_PROXY_RECOVERY_REQUIRED,
@@ -157,6 +158,7 @@ export {
157
158
  SandboxRecoveryFailedError,
158
159
  SandboxRuntimeAuthRefreshError,
159
160
  SandboxTransientDeadlineError,
161
+ WARM_LEASE_DECLINED_UNTIL_DDL,
160
162
  WARM_LEASE_TABLE_DDL,
161
163
  WARM_SLOTS,
162
164
  WORKSPACE_SANDBOX_HOST_EXHAUSTED,
@@ -15,7 +15,9 @@ import { type WarmLeaseStore } from './warm-lease';
15
15
  */
16
16
  export declare const DEFAULT_WARM_LEASE_TABLE = "sandbox_warm_lease";
17
17
  /** Paste into a migration. Times are epoch milliseconds; 0 means never. */
18
- export declare const WARM_LEASE_TABLE_DDL = "CREATE TABLE IF NOT EXISTS sandbox_warm_lease (\n key TEXT PRIMARY KEY,\n lease_id TEXT,\n reason TEXT,\n started_at INTEGER NOT NULL DEFAULT 0,\n hold_until INTEGER NOT NULL DEFAULT 0,\n warm_at INTEGER NOT NULL DEFAULT 0,\n used_at INTEGER NOT NULL DEFAULT 0,\n resumed INTEGER NOT NULL DEFAULT 0,\n ping_at INTEGER NOT NULL DEFAULT 0,\n last_turn_at INTEGER NOT NULL DEFAULT 0,\n day TEXT NOT NULL DEFAULT '',\n day_warm_ms INTEGER NOT NULL DEFAULT 0,\n threshold REAL NOT NULL DEFAULT 0,\n slots TEXT NOT NULL DEFAULT '',\n slots_at INTEGER NOT NULL DEFAULT 0,\n first_seen_at INTEGER NOT NULL DEFAULT 0,\n predicted_at INTEGER NOT NULL DEFAULT 0\n)";
18
+ export declare const WARM_LEASE_TABLE_DDL = "CREATE TABLE IF NOT EXISTS sandbox_warm_lease (\n key TEXT PRIMARY KEY,\n lease_id TEXT,\n reason TEXT,\n started_at INTEGER NOT NULL DEFAULT 0,\n hold_until INTEGER NOT NULL DEFAULT 0,\n warm_at INTEGER NOT NULL DEFAULT 0,\n used_at INTEGER NOT NULL DEFAULT 0,\n resumed INTEGER NOT NULL DEFAULT 0,\n ping_at INTEGER NOT NULL DEFAULT 0,\n last_turn_at INTEGER NOT NULL DEFAULT 0,\n day TEXT NOT NULL DEFAULT '',\n day_warm_ms INTEGER NOT NULL DEFAULT 0,\n threshold REAL NOT NULL DEFAULT 0,\n slots TEXT NOT NULL DEFAULT '',\n slots_at INTEGER NOT NULL DEFAULT 0,\n first_seen_at INTEGER NOT NULL DEFAULT 0,\n predicted_at INTEGER NOT NULL DEFAULT 0,\n declined_until INTEGER NOT NULL DEFAULT 0\n)";
19
+ /** For a table created from an earlier \`WARM_LEASE_TABLE_DDL\`: paste into a migration. */
20
+ export declare const WARM_LEASE_DECLINED_UNTIL_DDL = "ALTER TABLE sandbox_warm_lease ADD COLUMN declined_until INTEGER NOT NULL DEFAULT 0";
19
21
  /** The D1 surface this store uses: `prepare().bind()` with `first`, `run` and `all`. A real `D1Database` satisfies it. */
20
22
  export interface WarmLeaseD1Like {
21
23
  prepare(query: string): {
@@ -48,7 +48,11 @@ export type WarmBoxOutcome =
48
48
  /** The box was already running: nothing to warm, nothing charged. */
49
49
  | 'running'
50
50
  /** No box exists for this key. Leases never create boxes. */
51
- | 'absent';
51
+ | 'absent'
52
+ /** The platform refused the resume for capacity (HTTP 429: the org is at its
53
+ * concurrent-box limit). A speculative warm must not compete with real work
54
+ * for the last slots, so the key cools down instead of retrying. */
55
+ | 'capacity';
52
56
  export type WarmLeaseEvent = {
53
57
  type: 'warm_started';
54
58
  key: string;
@@ -69,7 +73,7 @@ export type WarmLeaseEvent = {
69
73
  type: 'warm_declined';
70
74
  key: string;
71
75
  reason: WarmReason;
72
- why: 'budget' | 'absent';
76
+ why: 'budget' | 'absent' | 'capacity';
73
77
  } | {
74
78
  type: 'warm_failed';
75
79
  key: string;
@@ -128,6 +132,9 @@ export interface WarmLeaseRow {
128
132
  slotsAt: number;
129
133
  firstSeenAt: number;
130
134
  predictedAt: number;
135
+ /** Signals are refused without calling the product's warm until this time:
136
+ * set after an 'absent' or 'capacity' outcome, cleared by a turn. */
137
+ declinedUntil: number;
131
138
  }
132
139
  /** Persistence for leases. `begin` and `markUsed` must be atomic across isolates. */
133
140
  export interface WarmLeaseStore {
@@ -158,6 +165,8 @@ export interface WarmLeaseStore {
158
165
  writeProfile(key: string, slots: number[], slotsAt: number, firstSeenAt: number): Promise<void>;
159
166
  markPinged(key: string, at: number): Promise<void>;
160
167
  markPredicted(key: string, at: number): Promise<void>;
168
+ /** Refuse signals for `key` until `until` (cleared by the next turn). */
169
+ markDeclined(key: string, until: number): Promise<void>;
161
170
  /** Bounded batches for `sweep`. */
162
171
  listExpired(now: number, limit: number): Promise<WarmLeaseRow[]>;
163
172
  listHeld(now: number, limit: number): Promise<WarmLeaseRow[]>;
@@ -186,6 +195,10 @@ export interface WarmLeasesOptions {
186
195
  * takes the lease over and warms again. Default 2 min, past a slow resume.
187
196
  */
188
197
  warmDeadlineMs?: number;
198
+ /** After a warm finds no box, refuse that key's signals this long. Default 10 min. */
199
+ absentCooldownMs?: number;
200
+ /** After a capacity refusal, refuse that key's signals this long. Default 5 min. */
201
+ capacityCooldownMs?: number;
189
202
  /** Reasons subject to the budget. Default page-open, member-activity, predicted, scheduled. */
190
203
  budgetedReasons?: readonly string[];
191
204
  /** Starting predicted-warm threshold, a probability. Default 0.25. */
@@ -39,8 +39,9 @@ import {
39
39
  } from "../chunk-PT7H37YH.js";
40
40
  import {
41
41
  useInfiniteScroll
42
- } from "../chunk-2FLSODOX.js";
42
+ } from "../chunk-Y4WLCFDZ.js";
43
43
  import "../chunk-XEURJVS5.js";
44
+ import "../chunk-SJWIZT7B.js";
44
45
  import {
45
46
  CheckGlyph,
46
47
  ChevronDown,
@@ -50,7 +51,6 @@ import {
50
51
  PopoverSurface,
51
52
  usePopover
52
53
  } from "../chunk-HG4OONJA.js";
53
- import "../chunk-SJWIZT7B.js";
54
54
  import {
55
55
  ProviderLogo
56
56
  } from "../chunk-MLG6XKPV.js";
@@ -0,0 +1,17 @@
1
+ import {
2
+ AGENT_PROFILE_EDITOR_SECTIONS,
3
+ AgentProfileEditor
4
+ } from "../chunk-6OQYTH7T.js";
5
+ import "../chunk-EBNIZHRX.js";
6
+ import "../chunk-NJDQ2JCP.js";
7
+ import "../chunk-HG4OONJA.js";
8
+ import "../chunk-MLG6XKPV.js";
9
+ import "../chunk-MCYJON3F.js";
10
+ import "../chunk-B7CL7ENS.js";
11
+ import "../chunk-PV33JZKV.js";
12
+ import "../chunk-7YA4QNTU.js";
13
+ export {
14
+ AGENT_PROFILE_EDITOR_SECTIONS,
15
+ AgentProfileEditor
16
+ };
17
+ //# sourceMappingURL=agent-profile-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,9 +1,6 @@
1
1
  import {
2
- AGENT_PROFILE_EDITOR_SECTIONS,
3
2
  AgentActivityPanel,
4
3
  AgentProfileChoices,
5
- AgentProfileEditor,
6
- AgentProfileRegistryError,
7
4
  AgentProfileViewer,
8
5
  AgentSetupBlock,
9
6
  ApiAccessPanel,
@@ -139,18 +136,32 @@ import {
139
136
  withoutRecordGridCreated,
140
137
  withoutRecordGridRemoved,
141
138
  withoutRecordGridUpdate
142
- } from "../chunk-736V4L2S.js";
139
+ } from "../chunk-K7JI5WY4.js";
143
140
  import {
144
141
  SessionHistoryPanel,
145
142
  formatSessionTimestamp,
146
143
  useInfiniteScroll,
147
144
  useSessionActions,
148
145
  useSessionHistory
149
- } from "../chunk-2FLSODOX.js";
146
+ } from "../chunk-Y4WLCFDZ.js";
150
147
  import {
151
148
  MENTION_PILL_CLASS
152
149
  } from "../chunk-3HUFJ5LO.js";
153
150
  import "../chunk-FBVLEGEG.js";
151
+ import {
152
+ ChatComposer,
153
+ ComposerModeControls,
154
+ EntryComposer,
155
+ RouteChunkBoundary,
156
+ dictationErrorMessage,
157
+ formatDictationElapsed,
158
+ lazyRoute,
159
+ pickDictationMimeType,
160
+ preloadWhenIdle,
161
+ useComposerAttachments,
162
+ useDictation
163
+ } from "../chunk-5CEUXI5V.js";
164
+ import "../chunk-L7MB2LLM.js";
154
165
  import {
155
166
  WorkspaceInitial,
156
167
  WorkspaceSwitcher
@@ -160,44 +171,22 @@ import {
160
171
  tabTerminalConnectionId,
161
172
  useSandboxTerminalConnection
162
173
  } from "../chunk-E4AY62T2.js";
174
+ import "../chunk-SJWIZT7B.js";
163
175
  import {
164
- EvidenceLineageTable,
165
- ExceptionList,
166
- ProvenanceStamp,
167
- QualityCheckList,
168
- ReviewQueuePanel,
169
- WorkProductCard,
170
- WorkProductStatusPill,
171
- mergeReviewQueuePages,
172
- workProductPartsFromMessageParts,
173
- workProductStatusLabel,
174
- workProductStatusTone
175
- } from "../chunk-Y6PRDUFJ.js";
176
- import {
177
- parseReviewQueueItem
178
- } from "../chunk-GEYACSFW.js";
176
+ AGENT_PROFILE_EDITOR_SECTIONS,
177
+ AgentProfileEditor,
178
+ AgentProfileRegistryError
179
+ } from "../chunk-6OQYTH7T.js";
179
180
  import {
180
181
  AgentSessionControls,
181
182
  AgentSettingsPopover,
182
- ChatComposer,
183
- ComposerModeControls,
184
- EntryComposer,
185
183
  HarnessGlyph,
186
184
  HarnessPicker,
187
- RouteChunkBoundary,
188
185
  acceptRejectionReason,
189
- dictationErrorMessage,
190
186
  filterAcceptedFiles,
191
- formatDictationElapsed,
192
187
  isAcceptedFileType,
193
- lazyRoute,
194
- pickDictationMimeType,
195
- preloadWhenIdle,
196
- renamePastedImages,
197
- useComposerAttachments,
198
- useDictation
199
- } from "../chunk-ORFRFCXQ.js";
200
- import "../chunk-L7MB2LLM.js";
188
+ renamePastedImages
189
+ } from "../chunk-EBNIZHRX.js";
201
190
  import "../chunk-NJDQ2JCP.js";
202
191
  import {
203
192
  DEFAULT_EFFORT_LEVELS,
@@ -216,7 +205,22 @@ import {
216
205
  usePending,
217
206
  usePopover
218
207
  } from "../chunk-HG4OONJA.js";
219
- import "../chunk-SJWIZT7B.js";
208
+ import {
209
+ EvidenceLineageTable,
210
+ ExceptionList,
211
+ ProvenanceStamp,
212
+ QualityCheckList,
213
+ ReviewQueuePanel,
214
+ WorkProductCard,
215
+ WorkProductStatusPill,
216
+ mergeReviewQueuePages,
217
+ workProductPartsFromMessageParts,
218
+ workProductStatusLabel,
219
+ workProductStatusTone
220
+ } from "../chunk-Y6PRDUFJ.js";
221
+ import {
222
+ parseReviewQueueItem
223
+ } from "../chunk-GEYACSFW.js";
220
224
  import {
221
225
  ProviderLogo
222
226
  } from "../chunk-MLG6XKPV.js";
@@ -236,8 +240,7 @@ import {
236
240
  isChatAttachmentPart,
237
241
  mentionInputToPart,
238
242
  mentionPartsFromMessageParts
239
- } from "../chunk-2YLSWZ5W.js";
240
- import "../chunk-ZVEEWGDK.js";
243
+ } from "../chunk-WKD4E52F.js";
241
244
  import {
242
245
  DISPATCH_MAX_MEDIA_PARTS,
243
246
  DISPATCH_MAX_PARTS,
@@ -259,6 +262,7 @@ import {
259
262
  mentionKindForPath,
260
263
  settleTurnResponse
261
264
  } from "../chunk-6E7LKHYV.js";
265
+ import "../chunk-ZVEEWGDK.js";
262
266
  import "../chunk-TXD5HXLE.js";
263
267
  import {
264
268
  attachmentPartKey
@@ -6,6 +6,11 @@ import {
6
6
  ActionDialog,
7
7
  ActionDialogButton
8
8
  } from "../chunk-XEURJVS5.js";
9
+ import {
10
+ buildSessionNavItem,
11
+ composeSidebarSessions,
12
+ resolveActiveNavId
13
+ } from "../chunk-SJWIZT7B.js";
9
14
  import {
10
15
  usePopoverDialog
11
16
  } from "../chunk-NJDQ2JCP.js";
@@ -15,11 +20,6 @@ import {
15
20
  PopoverSurface,
16
21
  usePopover
17
22
  } from "../chunk-HG4OONJA.js";
18
- import {
19
- buildSessionNavItem,
20
- composeSidebarSessions,
21
- resolveActiveNavId
22
- } from "../chunk-SJWIZT7B.js";
23
23
  import "../chunk-MLG6XKPV.js";
24
24
  import "../chunk-7YA4QNTU.js";
25
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.60.92",
3
+ "version": "0.60.94",
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": [