@veris-ai/daytona 0.3.0 → 0.4.0
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/README.md +36 -151
- package/dist/gateway.d.ts +6 -0
- package/dist/index.cjs +54 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +49 -42
- package/dist/index.js.map +1 -1
- package/dist/trust.d.ts +38 -0
- package/package.json +1 -4
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -2099
- package/dist/cli.js.map +0 -1
- package/dist/exec.d.ts +0 -15
- package/dist/provision.d.ts +0 -100
- package/dist/push.d.ts +0 -11
- package/dist/run.d.ts +0 -87
- package/dist/teardown.d.ts +0 -52
package/dist/trust.d.ts
CHANGED
|
@@ -136,6 +136,44 @@ export declare function bundledCaPatchScript(): string;
|
|
|
136
136
|
export declare const NODE_TRUST_FLAG = "--use-openssl-ca";
|
|
137
137
|
/** NODE_OPTIONS with the trust flag appended to whatever the caller set. */
|
|
138
138
|
export declare function nodeOptionsWithTrust(existing?: string): string;
|
|
139
|
+
/**
|
|
140
|
+
* Where the proxy preload lands in the sandbox. World-readable, like the CA
|
|
141
|
+
* bundle: anything that starts a Node process can name it.
|
|
142
|
+
*/
|
|
143
|
+
export declare const NODE_PROXY_PRELOAD = "/tmp/veris-node-proxy.cjs";
|
|
144
|
+
/** The NODE_OPTIONS flag that loads it before the application's first line. */
|
|
145
|
+
export declare const NODE_PROXY_FLAG = "--require /tmp/veris-node-proxy.cjs";
|
|
146
|
+
/**
|
|
147
|
+
* NODE_USE_ENV_PROXY reaches exactly two things: Node's global agents and the
|
|
148
|
+
* global fetch dispatcher. An SDK that constructs its own http(s).Agent — the
|
|
149
|
+
* usual way to get keep-alive pooling; stripe-node, the AWS SDK's Node handler
|
|
150
|
+
* and Twilio's client all do — never sees the proxy, resolves the vendor host
|
|
151
|
+
* itself, and dies on Daytona's blocked egress with EAI_AGAIN. Measured with
|
|
152
|
+
* stripe-node 15 in a wired sandbox: the global agent 200, its own agent
|
|
153
|
+
* EAI_AGAIN, its own agent with `proxyEnv: process.env` 200.
|
|
154
|
+
*
|
|
155
|
+
* So every Agent is given the proxy environment at construction, from a
|
|
156
|
+
* preload Node loads before the application: subclass the two Agent classes
|
|
157
|
+
* and default `proxyEnv` to the process environment. `proxyEnv` is Node 24+;
|
|
158
|
+
* older Node ignores the option, which is also where NODE_USE_ENV_PROXY is
|
|
159
|
+
* inert, so nothing regresses there. A caller's own `proxyEnv` wins because
|
|
160
|
+
* the spread comes after ours. Clients built on undici Pools or Clients hold
|
|
161
|
+
* their own dispatcher and are not covered here.
|
|
162
|
+
*/
|
|
163
|
+
export declare function nodeProxyPreloadScript(): string;
|
|
164
|
+
/** NODE_OPTIONS with the proxy preload appended to whatever the caller set. */
|
|
165
|
+
export declare function nodeOptionsWithProxy(existing?: string): string;
|
|
166
|
+
/**
|
|
167
|
+
* The NODE_OPTIONS a wired sandbox needs, merged into the caller's own: the
|
|
168
|
+
* proxy preload always, the trust flag when the CA is installed. Appended,
|
|
169
|
+
* never replaced, and never twice — a caller's `--max-old-space-size` or
|
|
170
|
+
* `--experimental-vm-modules` keeps working beside ours. Use it wherever a
|
|
171
|
+
* NODE_OPTIONS value is built for a command in the sandbox, so setting one
|
|
172
|
+
* for the application cannot silently drop what makes its vendor calls work.
|
|
173
|
+
*/
|
|
174
|
+
export declare function verisNodeOptions(existing?: string, opts?: {
|
|
175
|
+
trust?: boolean;
|
|
176
|
+
}): string;
|
|
139
177
|
/**
|
|
140
178
|
* The store-based install, for stacks that read a trust store rather than an
|
|
141
179
|
* env var — a Java client honours no CA variable at all. Rebuilds the system
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veris-ai/daytona",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Veris twin interception for Daytona: a drop-in @daytona/sdk whose sandboxes come up with a Veris twin already answering their vendor API calls. Unmodified code, real hostnames, receipts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
"require": "./dist/index.cjs"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
"bin": {
|
|
17
|
-
"veris-daytona": "./dist/cli.js"
|
|
18
|
-
},
|
|
19
16
|
"sideEffects": false,
|
|
20
17
|
"files": [
|
|
21
18
|
"dist",
|
package/dist/cli.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function main(argv: readonly string[]): Promise<number>;
|