@tangle-network/agent-app 0.44.60 → 0.45.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.
@@ -13,10 +13,7 @@ import {
13
13
  assertEnvWithinLimits,
14
14
  assertProvisionPayloadWithinCap,
15
15
  attachReasoningEffort,
16
- bearerSubprotocolToken,
17
- bearerToken,
18
16
  buildAppToolMcpServers,
19
- buildSandboxRuntimeProxyHeaders,
20
17
  buildSandboxToolFileMounts,
21
18
  buildSandboxToolPathSetupScript,
22
19
  classifySeveredStream,
@@ -24,26 +21,18 @@ import {
24
21
  createD1PrewarmClaimStore,
25
22
  createSandboxPrewarmer,
26
23
  createSandboxTerminalConnectionRoute,
27
- createSandboxTerminalToken,
28
- createWorkspaceSandboxConnectionHandler,
29
24
  createWorkspaceSandboxManager,
30
- createWorkspaceSandboxRuntimeProxyHandler,
31
- createWorkspaceSandboxTerminalUpgradeHandler,
32
25
  deferredCorpusHash,
33
26
  deleteSecret,
34
27
  detectInteractiveQuestion,
35
28
  driveSandboxTurn,
36
- encodeSandboxRuntimePath,
37
29
  ensureWorkspaceSandbox,
38
30
  flattenHistory,
39
31
  getClient,
40
- isSandboxTerminalWsUpgrade,
41
32
  isTerminalPromptEvent,
42
- matchSandboxTerminalWsPath,
43
33
  mergeExtraMcp,
44
34
  mergeHistoryIntoParts,
45
35
  mintSandboxScopedToken,
46
- mintTerminalProxyToken,
47
36
  peekWorkspaceSandbox,
48
37
  readSandboxBinaryBytes,
49
38
  readSecret,
@@ -54,12 +43,10 @@ import {
54
43
  resolveSandboxClientCredentials,
55
44
  runSandboxPrompt,
56
45
  runSandboxToolPathSetup,
57
- sandboxSidecarProxyUrl,
58
46
  sandboxToolBinDir,
59
47
  sandboxToolPath,
60
48
  sandboxToolRootDir,
61
49
  secretStoreFromClient,
62
- selectedBearerSubprotocol,
63
50
  shellQuote,
64
51
  splitDeferredProfileFiles,
65
52
  statSandboxFileSize,
@@ -68,12 +55,8 @@ import {
68
55
  syncSandboxMemberAdd,
69
56
  syncSandboxMemberRemove,
70
57
  syncSandboxMemberRole,
71
- terminalTokenFromRequest,
72
- terminalUpgradeSubprotocolEcho,
73
- verifySandboxTerminalToken,
74
- verifyTerminalProxyToken,
75
58
  writeProfileFilesToBox
76
- } from "../chunk-APFJITYT.js";
59
+ } from "../chunk-EC7CUA4L.js";
77
60
  import "../chunk-LWSJK546.js";
78
61
  import "../chunk-CQZSAR77.js";
79
62
  import "../chunk-ICOHEZK6.js";
@@ -96,10 +79,7 @@ export {
96
79
  assertEnvWithinLimits,
97
80
  assertProvisionPayloadWithinCap,
98
81
  attachReasoningEffort,
99
- bearerSubprotocolToken,
100
- bearerToken,
101
82
  buildAppToolMcpServers,
102
- buildSandboxRuntimeProxyHeaders,
103
83
  buildSandboxToolFileMounts,
104
84
  buildSandboxToolPathSetupScript,
105
85
  classifySeveredStream,
@@ -107,26 +87,18 @@ export {
107
87
  createD1PrewarmClaimStore,
108
88
  createSandboxPrewarmer,
109
89
  createSandboxTerminalConnectionRoute,
110
- createSandboxTerminalToken,
111
- createWorkspaceSandboxConnectionHandler,
112
90
  createWorkspaceSandboxManager,
113
- createWorkspaceSandboxRuntimeProxyHandler,
114
- createWorkspaceSandboxTerminalUpgradeHandler,
115
91
  deferredCorpusHash,
116
92
  deleteSecret,
117
93
  detectInteractiveQuestion,
118
94
  driveSandboxTurn,
119
- encodeSandboxRuntimePath,
120
95
  ensureWorkspaceSandbox,
121
96
  flattenHistory,
122
97
  getClient,
123
- isSandboxTerminalWsUpgrade,
124
98
  isTerminalPromptEvent,
125
- matchSandboxTerminalWsPath,
126
99
  mergeExtraMcp,
127
100
  mergeHistoryIntoParts,
128
101
  mintSandboxScopedToken,
129
- mintTerminalProxyToken,
130
102
  peekWorkspaceSandbox,
131
103
  readSandboxBinaryBytes,
132
104
  readSecret,
@@ -137,12 +109,10 @@ export {
137
109
  resolveSandboxClientCredentials,
138
110
  runSandboxPrompt,
139
111
  runSandboxToolPathSetup,
140
- sandboxSidecarProxyUrl,
141
112
  sandboxToolBinDir,
142
113
  sandboxToolPath,
143
114
  sandboxToolRootDir,
144
115
  secretStoreFromClient,
145
- selectedBearerSubprotocol,
146
116
  shellQuote,
147
117
  splitDeferredProfileFiles,
148
118
  statSandboxFileSize,
@@ -151,10 +121,6 @@ export {
151
121
  syncSandboxMemberAdd,
152
122
  syncSandboxMemberRemove,
153
123
  syncSandboxMemberRole,
154
- terminalTokenFromRequest,
155
- terminalUpgradeSubprotocolEcho,
156
- verifySandboxTerminalToken,
157
- verifyTerminalProxyToken,
158
124
  writeProfileFilesToBox
159
125
  };
160
126
  //# sourceMappingURL=index.js.map
@@ -102,7 +102,7 @@ import {
102
102
  import {
103
103
  tabTerminalConnectionId,
104
104
  useSandboxTerminalConnection
105
- } from "../chunk-S4YW2Y52.js";
105
+ } from "../chunk-BATKJP3P.js";
106
106
  import "../chunk-QY4BRKRJ.js";
107
107
  import {
108
108
  ATTACHMENT_ACCEPT
@@ -13,13 +13,10 @@ interface SandboxTerminalConnection {
13
13
  /**
14
14
  * Define the response structure for a sandbox terminal connection including URLs, token, status, and errors
15
15
  *
16
- * Transport-agnostic by construction (#341/#349): the browser-direct
17
- * scoped-token route (`createSandboxTerminalConnectionRoute`,
18
- * `src/sandbox/terminal-connection.ts`) returns `sidecarUrl` only no
19
- * `runtimeUrl` while the (now `@deprecated`) same-origin proxy route
20
- * returns both. `useSandboxTerminalConnection` below resolves
21
- * `runtimeUrl ?? sidecarUrl` so either shape lands on the same connection
22
- * state without a hook change.
16
+ * The browser-direct scoped-token route (`createSandboxTerminalConnectionRoute`,
17
+ * `src/sandbox/terminal-connection.ts`) returns `sidecarUrl`. The hook also
18
+ * exposes that URL through the historical `runtimeUrl` state field so existing
19
+ * terminal panels do not need transport-specific branching.
23
20
  *
24
21
  * `connectionId` is the id the route's minted token's `sid` is bound to
25
22
  * (echoed back from the `connectionId` the hook sent) — pass it straight
@@ -63,12 +60,11 @@ interface UseSandboxTerminalConnectionResult extends SandboxTerminalConnection {
63
60
  /**
64
61
  * Manage and maintain a sandbox terminal connection with automatic polling and token refresh handling
65
62
  *
66
- * Transport-agnostic (#341/#349): this hook does not care whether
67
- * `connectionUrl` is backed by the fleet-default browser-direct
68
- * scoped-token route (`createSandboxTerminalConnectionRoute`,
69
- * `src/sandbox/terminal-connection.ts`, `sidecarUrl` only) or the
70
- * `@deprecated` same-origin proxy route (`runtimeUrl` + `sidecarUrl`) — it
71
- * resolves `runtimeUrl ?? sidecarUrl` either way.
63
+ * `connectionUrl` is backed by the browser-direct scoped-token route
64
+ * (`createSandboxTerminalConnectionRoute`,
65
+ * `src/sandbox/terminal-connection.ts`). The route returns `sidecarUrl`; the
66
+ * hook normalizes it into both URL fields for compatibility with existing
67
+ * terminal panels.
72
68
  *
73
69
  * Pass `tabTerminalConnectionId()` as `opts.connectionId` — the hook forwards
74
70
  * it as the `connectionId` query parameter the browser-direct route requires
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  tabTerminalConnectionId,
3
3
  useSandboxTerminalConnection
4
- } from "../chunk-S4YW2Y52.js";
4
+ } from "../chunk-BATKJP3P.js";
5
5
  export {
6
6
  tabTerminalConnectionId,
7
7
  useSandboxTerminalConnection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.44.60",
3
+ "version": "0.45.1",
4
4
  "packageManager": "pnpm@11.17.0",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [