@hasna/sandboxes 0.1.23 → 0.1.24
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/dist/cli/index.d.ts +0 -1
- package/dist/cli/index.js +3690 -2940
- package/dist/db/agents.d.ts +0 -1
- package/dist/db/database.d.ts +1 -2
- package/dist/db/events.d.ts +0 -1
- package/dist/db/pg-migrations.d.ts +0 -1
- package/dist/db/projects.d.ts +0 -1
- package/dist/db/sandboxes.d.ts +0 -1
- package/dist/db/sessions.d.ts +0 -1
- package/dist/db/snapshots.d.ts +0 -1
- package/dist/db/templates.d.ts +0 -1
- package/dist/db/webhooks.d.ts +0 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4197 -3171
- package/dist/lib/agent-runner.d.ts +0 -1
- package/dist/lib/agents/claude.d.ts +0 -1
- package/dist/lib/agents/codex.d.ts +0 -1
- package/dist/lib/agents/gemini.d.ts +0 -1
- package/dist/lib/agents/index.d.ts +0 -1
- package/dist/lib/agents/opencode.d.ts +0 -1
- package/dist/lib/agents/pi.d.ts +0 -1
- package/dist/lib/agents/takumi.d.ts +9 -0
- package/dist/lib/agents/types.d.ts +0 -1
- package/dist/lib/archive.d.ts +31 -0
- package/dist/lib/config.d.ts +0 -1
- package/dist/lib/images.d.ts +0 -1
- package/dist/lib/keepalive.d.ts +0 -1
- package/dist/lib/runtime-state.d.ts +0 -1
- package/dist/lib/secrets.d.ts +26 -0
- package/dist/lib/stream.d.ts +0 -1
- package/dist/lib/version.d.ts +0 -1
- package/dist/lib/webhook.d.ts +0 -1
- package/dist/mcp/index.d.ts +0 -1
- package/dist/mcp/index.js +9916 -8415
- package/dist/providers/daytona.d.ts +2 -2
- package/dist/providers/e2b.d.ts +2 -2
- package/dist/providers/index.d.ts +0 -1
- package/dist/providers/modal.d.ts +2 -2
- package/dist/providers/types.d.ts +3 -2
- package/dist/sdk.d.ts +65 -0
- package/dist/server/index.d.ts +0 -1
- package/dist/server/index.js +3875 -3134
- package/dist/server/serve.d.ts +0 -1
- package/dist/types/index.d.ts +9 -2
- package/package.json +1 -1
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/db/agents.d.ts.map +0 -1
- package/dist/db/database.d.ts.map +0 -1
- package/dist/db/events.d.ts.map +0 -1
- package/dist/db/pg-migrations.d.ts.map +0 -1
- package/dist/db/projects.d.ts.map +0 -1
- package/dist/db/sandboxes.d.ts.map +0 -1
- package/dist/db/sessions.d.ts.map +0 -1
- package/dist/db/snapshots.d.ts.map +0 -1
- package/dist/db/templates.d.ts.map +0 -1
- package/dist/db/webhooks.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/agent-runner.d.ts.map +0 -1
- package/dist/lib/agents/claude.d.ts.map +0 -1
- package/dist/lib/agents/codex.d.ts.map +0 -1
- package/dist/lib/agents/gemini.d.ts.map +0 -1
- package/dist/lib/agents/index.d.ts.map +0 -1
- package/dist/lib/agents/opencode.d.ts.map +0 -1
- package/dist/lib/agents/pi.d.ts.map +0 -1
- package/dist/lib/agents/types.d.ts.map +0 -1
- package/dist/lib/config.d.ts.map +0 -1
- package/dist/lib/images.d.ts.map +0 -1
- package/dist/lib/keepalive.d.ts.map +0 -1
- package/dist/lib/runtime-state.d.ts.map +0 -1
- package/dist/lib/stream.d.ts.map +0 -1
- package/dist/lib/version.d.ts.map +0 -1
- package/dist/lib/webhook.d.ts.map +0 -1
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/providers/daytona.d.ts.map +0 -1
- package/dist/providers/e2b.d.ts.map +0 -1
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/modal.d.ts.map +0 -1
- package/dist/providers/types.d.ts.map +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/serve.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
package/dist/db/agents.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export declare function listAgents(): Agent[];
|
|
|
7
7
|
export declare function heartbeatAgent(idOrName: string): Agent;
|
|
8
8
|
export declare function setAgentFocus(idOrName: string, projectId: string | null): Agent;
|
|
9
9
|
export declare function deleteAgent(id: string): void;
|
|
10
|
-
//# sourceMappingURL=agents.d.ts.map
|
package/dist/db/database.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Database } from "bun:sqlite";
|
|
2
2
|
export declare function getDatabase(): Database;
|
|
3
3
|
export declare function closeDatabase(): void;
|
|
4
4
|
export declare function resetDatabase(): void;
|
|
@@ -6,4 +6,3 @@ export declare function uuid(): string;
|
|
|
6
6
|
export declare function shortId(): string;
|
|
7
7
|
export declare function now(): string;
|
|
8
8
|
export declare function resolvePartialId(table: string, partialId: string): string | null;
|
|
9
|
-
//# sourceMappingURL=database.d.ts.map
|
package/dist/db/events.d.ts
CHANGED
package/dist/db/projects.d.ts
CHANGED
|
@@ -6,4 +6,3 @@ export declare function getProjectByPath(path: string): Project | null;
|
|
|
6
6
|
export declare function listProjects(): Project[];
|
|
7
7
|
export declare function ensureProject(name: string, path: string, description?: string): Project;
|
|
8
8
|
export declare function deleteProject(id: string): void;
|
|
9
|
-
//# sourceMappingURL=projects.d.ts.map
|
package/dist/db/sandboxes.d.ts
CHANGED
|
@@ -9,4 +9,3 @@ export declare function listSandboxes(opts?: {
|
|
|
9
9
|
}): Sandbox[];
|
|
10
10
|
export declare function updateSandbox(id: string, updates: Partial<Pick<Sandbox, "status" | "provider_sandbox_id" | "name" | "image" | "timeout" | "config" | "env_vars" | "keep_alive_until" | "started_at">>): Sandbox;
|
|
11
11
|
export declare function deleteSandbox(id: string): void;
|
|
12
|
-
//# sourceMappingURL=sandboxes.d.ts.map
|
package/dist/db/sessions.d.ts
CHANGED
|
@@ -8,4 +8,3 @@ export declare function listSessions(opts?: {
|
|
|
8
8
|
}): SandboxSession[];
|
|
9
9
|
export declare function updateSession(id: string, updates: Partial<Pick<SandboxSession, "status" | "exit_code">>): SandboxSession;
|
|
10
10
|
export declare function endSession(id: string, exit_code: number, status?: SessionStatus): SandboxSession;
|
|
11
|
-
//# sourceMappingURL=sessions.d.ts.map
|
package/dist/db/snapshots.d.ts
CHANGED
|
@@ -26,4 +26,3 @@ export declare function createSnapshot(input: {
|
|
|
26
26
|
export declare function getSnapshot(id: string): Snapshot;
|
|
27
27
|
export declare function listSnapshots(sandboxId?: string): Snapshot[];
|
|
28
28
|
export declare function deleteSnapshot(id: string): void;
|
|
29
|
-
//# sourceMappingURL=snapshots.d.ts.map
|
package/dist/db/templates.d.ts
CHANGED
|
@@ -4,4 +4,3 @@ export declare function getTemplate(id: string): Template;
|
|
|
4
4
|
export declare function getTemplateByName(name: string): Template | null;
|
|
5
5
|
export declare function listTemplates(): Template[];
|
|
6
6
|
export declare function deleteTemplate(id: string): void;
|
|
7
|
-
//# sourceMappingURL=templates.d.ts.map
|
package/dist/db/webhooks.d.ts
CHANGED
|
@@ -4,4 +4,3 @@ export declare function createWebhook(input: CreateWebhookInput): Webhook;
|
|
|
4
4
|
export declare function getWebhook(id: string): Webhook;
|
|
5
5
|
export declare function listWebhooks(): Webhook[];
|
|
6
6
|
export declare function deleteWebhook(id: string): void;
|
|
7
|
-
//# sourceMappingURL=webhooks.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export { loadConfig, saveConfig, getDefaultProvider, getDefaultTimeout, getDefau
|
|
|
14
14
|
export { BUILTIN_IMAGES, resolveImage, getBuiltinImageSetupScript } from "./lib/images.js";
|
|
15
15
|
export { getProvider } from "./providers/index.js";
|
|
16
16
|
export type { SandboxProvider, ProviderSandbox, CreateSandboxOpts, ExecOptions } from "./providers/types.js";
|
|
17
|
+
export { SandboxesSDK, createSandboxesSDK, } from "./sdk.js";
|
|
18
|
+
export type { ExecCommandResult, ProviderFactory, RunAgentOptions, SandboxesSDKOptions, WaitForSessionOptions, } from "./sdk.js";
|
|
17
19
|
export { createStreamCollector, addStreamListener, emitLifecycleEvent } from "./lib/stream.js";
|
|
18
20
|
export { getAgentDriver, listAgentDrivers } from "./lib/agents/index.js";
|
|
19
21
|
export type { AgentDriver } from "./lib/agents/types.js";
|
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|