@tangle-network/agent-app 0.60.99 → 0.60.101

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.
@@ -1,4 +1,5 @@
1
1
  import {
2
+ DEFAULT_ESCALATION_TOOLS,
2
3
  DEFAULT_FOREGROUND_PROVISION_CLAIM_TTL_SECONDS,
3
4
  DEFAULT_FOREGROUND_PROVISION_POLL_INTERVAL_MS,
4
5
  DEFAULT_PREWARM_CLAIM_TABLE,
@@ -37,6 +38,7 @@ import {
37
38
  collectSandboxPromptText,
38
39
  createD1PrewarmClaimStore,
39
40
  createD1WarmLeaseStore,
41
+ createEscalationSpeculator,
40
42
  createSandboxPrewarmer,
41
43
  createSandboxTerminalConnectionRoute,
42
44
  createWarmLeases,
@@ -49,6 +51,7 @@ import {
49
51
  driveSandboxTurn,
50
52
  ensureSandboxToolBinDir,
51
53
  ensureWorkspaceSandbox,
54
+ escalationHints,
52
55
  flattenHistory,
53
56
  getClient,
54
57
  isAutomatedPrewarmRequest,
@@ -56,6 +59,7 @@ import {
56
59
  mergeExtraMcp,
57
60
  mergeHistoryIntoParts,
58
61
  mintSandboxScopedToken,
62
+ parsePrewarmHint,
59
63
  peekWorkspaceSandbox,
60
64
  predictColdArrival,
61
65
  readSandboxBinaryBytes,
@@ -85,7 +89,7 @@ import {
85
89
  warmBinOf,
86
90
  warmWeekdayOf,
87
91
  writeProfileFilesToBox
88
- } from "../chunk-N2UQIEWN.js";
92
+ } from "../chunk-MWJK4HLU.js";
89
93
  import {
90
94
  EGRESS_PROXY_RECOVERY_PHASE,
91
95
  EGRESS_PROXY_RECOVERY_REQUIRED,
@@ -135,6 +139,7 @@ import "../chunk-UGWQLQDS.js";
135
139
  import "../chunk-TMOYOMSW.js";
136
140
  import "../chunk-D6UJEOZQ.js";
137
141
  export {
142
+ DEFAULT_ESCALATION_TOOLS,
138
143
  DEFAULT_FOREGROUND_PROVISION_CLAIM_TTL_SECONDS,
139
144
  DEFAULT_FOREGROUND_PROVISION_POLL_INTERVAL_MS,
140
145
  DEFAULT_PREWARM_CLAIM_TABLE,
@@ -187,6 +192,7 @@ export {
187
192
  collectSandboxPromptText,
188
193
  createD1PrewarmClaimStore,
189
194
  createD1WarmLeaseStore,
195
+ createEscalationSpeculator,
190
196
  createSandboxPrewarmer,
191
197
  createSandboxTerminalConnectionRoute,
192
198
  createWarmLeases,
@@ -200,6 +206,7 @@ export {
200
206
  driveSandboxTurn,
201
207
  ensureSandboxToolBinDir,
202
208
  ensureWorkspaceSandbox,
209
+ escalationHints,
203
210
  flattenHistory,
204
211
  formatSandboxProvisioningSupportDetails,
205
212
  formatSandboxProvisioningUserMessage,
@@ -219,6 +226,7 @@ export {
219
226
  mergeExtraMcp,
220
227
  mergeHistoryIntoParts,
221
228
  mintSandboxScopedToken,
229
+ parsePrewarmHint,
222
230
  peekWorkspaceSandbox,
223
231
  predictColdArrival,
224
232
  preferredWorkspaceSandboxRecoveryBoxKey,
@@ -40,7 +40,10 @@
40
40
  * rate and wasted minutes per workspace from its logs alone.
41
41
  */
42
42
  /** Why a warm was requested. Products may add their own reasons. */
43
- export type WarmReason = 'page-open' | 'composer-focus' | 'line-ingress' | 'member-activity' | 'predicted' | 'scheduled' | (string & {});
43
+ export type WarmReason = 'page-open' | 'composer-focus' | 'line-ingress' | 'member-activity' | 'predicted' | 'scheduled'
44
+ /** A turn is likely to call a sandbox tool (deterministic input rules, or a
45
+ * `sandbox_run` call starting to stream). See `createEscalationSpeculator`. */
46
+ | 'escalation-likely' | (string & {});
44
47
  /** What the product's `warm` did to the box. */
45
48
  export type WarmBoxOutcome =
46
49
  /** The box was stopped and is now running: this warm caused its up-time. */
@@ -199,7 +202,7 @@ export interface WarmLeasesOptions {
199
202
  absentCooldownMs?: number;
200
203
  /** After a capacity refusal, refuse that key's signals this long. Default 5 min. */
201
204
  capacityCooldownMs?: number;
202
- /** Reasons subject to the budget. Default page-open, member-activity, predicted, scheduled. */
205
+ /** Reasons subject to the budget. Default page-open, member-activity, predicted, scheduled, escalation-likely. */
203
206
  budgetedReasons?: readonly string[];
204
207
  /** Starting predicted-warm threshold, a probability. Default 0.25. */
205
208
  initialThreshold?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.60.99",
3
+ "version": "0.60.101",
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": [