@hasna/sandboxes 0.1.27 → 0.1.29
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 +32 -4
- package/dist/cli/cloud.d.ts +2 -0
- package/dist/cli/index.js +5454 -9376
- package/dist/db/cloud-config.d.ts +13 -0
- package/dist/db/cloud-sync.d.ts +29 -0
- package/dist/db/database.d.ts +1 -0
- package/dist/db/pg-migrate.d.ts +7 -0
- package/dist/db/remote-storage.d.ts +11 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5525 -9678
- package/dist/lib/archive.d.ts +2 -0
- package/dist/lib/secrets.d.ts +1 -1
- package/dist/mcp/cloud-tools.d.ts +2 -0
- package/dist/mcp/http.d.ts +2 -1
- package/dist/mcp/index.js +1989 -6787
- package/dist/sdk.d.ts +1 -0
- package/dist/server/index.js +2560 -7388
- package/dist/types/index.d.ts +6 -0
- package/package.json +4 -3
package/dist/lib/archive.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export interface TarDirectoryOptions {
|
|
|
11
11
|
* {@link DEFAULT_UPLOAD_EXCLUDES}; pass `[]` to include everything.
|
|
12
12
|
*/
|
|
13
13
|
exclude?: string[];
|
|
14
|
+
/** Prepare a temporary upload tree with rsync before creating the archive. */
|
|
15
|
+
syncStrategy?: "archive" | "rsync";
|
|
14
16
|
}
|
|
15
17
|
/** Single-quote a value for safe POSIX shell interpolation. */
|
|
16
18
|
export declare function shellQuote(value: string): string;
|
package/dist/lib/secrets.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type SecretResolver = (key: string) => Promise<string>;
|
|
|
6
6
|
export interface SecretMapping {
|
|
7
7
|
/** Environment variable name to expose inside the sandbox (e.g. ANTHROPIC_API_KEY). */
|
|
8
8
|
env: string;
|
|
9
|
-
/** Vault key to read (e.g.
|
|
9
|
+
/** Vault key to read (e.g. example/anthropic/test/api_key). */
|
|
10
10
|
key: string;
|
|
11
11
|
}
|
|
12
12
|
/** Parse an `ENV_NAME=vault/key` spec into a {@link SecretMapping}. */
|
package/dist/mcp/http.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Server } from "node:http";
|
|
2
|
-
export declare const DEFAULT_MCP_HTTP_PORT =
|
|
2
|
+
export declare const DEFAULT_MCP_HTTP_PORT = 8875;
|
|
3
3
|
export declare function isHttpMode(argv: string[]): boolean;
|
|
4
|
+
export declare function isStdioMode(argv: string[]): boolean;
|
|
4
5
|
export declare function resolveMcpHttpPort(argv: string[]): number;
|
|
5
6
|
export declare function healthPayload(name?: string): {
|
|
6
7
|
status: string;
|