@codeworksh/harness 0.0.1-canary.10.1.g65d5c167

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.
@@ -0,0 +1,81 @@
1
+ import { t as SandboxDriver } from "./sandbox-BL7BdHZc.mjs";
2
+ import { Schema } from "effect";
3
+ //#region src/sandboxes/vercel/index.d.ts
4
+ declare const Options: Schema.Struct<{
5
+ readonly token: Schema.optional<Schema.String>;
6
+ readonly teamId: Schema.optional<Schema.String>;
7
+ readonly projectId: Schema.optional<Schema.String>;
8
+ }>;
9
+ type Options = typeof Options.Type;
10
+ declare const ClientOptions: Schema.Struct<{
11
+ readonly token: Schema.optional<Schema.String>;
12
+ readonly teamId: Schema.optional<Schema.String>;
13
+ readonly projectId: Schema.optional<Schema.String>;
14
+ }>;
15
+ type ClientOptions = Options;
16
+ declare const Source: Schema.Union<readonly [Schema.Struct<{
17
+ readonly type: Schema.Literal<"git">;
18
+ readonly url: Schema.String;
19
+ readonly revision: Schema.optional<Schema.String>;
20
+ readonly depth: Schema.optional<Schema.Finite>;
21
+ }>, Schema.Struct<{
22
+ readonly type: Schema.Literal<"tarball">;
23
+ readonly url: Schema.String;
24
+ }>]>;
25
+ type Source = typeof Source.Type;
26
+ declare const CreateConfig: Schema.Struct<{
27
+ readonly snapshot: Schema.optional<Schema.String>;
28
+ readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
29
+ readonly type: Schema.Literal<"git">;
30
+ readonly url: Schema.String;
31
+ readonly revision: Schema.optional<Schema.String>;
32
+ readonly depth: Schema.optional<Schema.Finite>;
33
+ }>, Schema.Struct<{
34
+ readonly type: Schema.Literal<"tarball">;
35
+ readonly url: Schema.String;
36
+ }>]>>;
37
+ readonly runtime: Schema.optional<Schema.String>;
38
+ readonly ports: Schema.optional<Schema.$Array<Schema.Finite>>;
39
+ readonly envVars: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
40
+ readonly vcpus: Schema.optional<Schema.Finite>;
41
+ readonly timeout: Schema.optional<Schema.Finite>;
42
+ readonly execTimeout: Schema.optional<Schema.Finite>;
43
+ }>;
44
+ type CreateConfig = typeof CreateConfig.Type;
45
+ declare const RuntimeConfig: Schema.Struct<{
46
+ readonly defaultCwd: Schema.brand<Schema.String, "SandboxDriver.AbsolutePath">;
47
+ readonly execTimeout: Schema.optional<Schema.Finite>;
48
+ }>;
49
+ type RuntimeConfig = typeof RuntimeConfig.Type;
50
+ declare const make: (client?: ClientOptions) => SandboxDriver.Driver<CreateConfig, RuntimeConfig> & SandboxDriver.Registration;
51
+ declare const sandbox: SandboxDriver.Module<{
52
+ readonly token?: string | undefined;
53
+ readonly teamId?: string | undefined;
54
+ readonly projectId?: string | undefined;
55
+ }>;
56
+ declare const config: (value: CreateConfig) => {
57
+ driver: "vercel";
58
+ config: {
59
+ readonly snapshot?: string | undefined;
60
+ readonly source?: {
61
+ readonly type: "git";
62
+ readonly url: string;
63
+ readonly revision?: string | undefined;
64
+ readonly depth?: number | undefined;
65
+ } | {
66
+ readonly type: "tarball";
67
+ readonly url: string;
68
+ } | undefined;
69
+ readonly runtime?: string | undefined;
70
+ readonly ports?: readonly number[] | undefined;
71
+ readonly envVars?: {
72
+ readonly [x: string]: string;
73
+ } | undefined;
74
+ readonly vcpus?: number | undefined;
75
+ readonly timeout?: number | undefined;
76
+ readonly execTimeout?: number | undefined;
77
+ };
78
+ };
79
+ //#endregion
80
+ export { Source as a, sandbox as c, RuntimeConfig as i, CreateConfig as n, config as o, Options as r, make as s, ClientOptions as t };
81
+ //# sourceMappingURL=index-DIP2u0Pr.d.mts.map
@@ -0,0 +1,75 @@
1
+ import { t as SandboxDriver } from "./sandbox-BL7BdHZc.mjs";
2
+ import { Schema } from "effect";
3
+ //#region src/sandboxes/daytona/index.d.ts
4
+ declare const Options: Schema.Struct<{
5
+ readonly apiKey: Schema.optional<Schema.String>;
6
+ readonly apiUrl: Schema.optional<Schema.String>;
7
+ readonly target: Schema.optional<Schema.String>;
8
+ }>;
9
+ type Options = typeof Options.Type;
10
+ declare const ClientOptions: Schema.Struct<{
11
+ readonly apiKey: Schema.optional<Schema.String>;
12
+ readonly apiUrl: Schema.optional<Schema.String>;
13
+ readonly target: Schema.optional<Schema.String>;
14
+ }>;
15
+ type ClientOptions = Options;
16
+ declare const ResourcesConfig: Schema.Struct<{
17
+ readonly cpu: Schema.optional<Schema.Finite>;
18
+ readonly gpu: Schema.optional<Schema.Finite>;
19
+ readonly memory: Schema.optional<Schema.Finite>;
20
+ readonly disk: Schema.optional<Schema.Finite>;
21
+ }>;
22
+ type ResourcesConfig = typeof ResourcesConfig.Type;
23
+ declare const CreateConfig: Schema.Struct<{
24
+ readonly snapshot: Schema.optional<Schema.String>;
25
+ readonly image: Schema.optional<Schema.String>;
26
+ readonly language: Schema.optional<Schema.String>;
27
+ readonly envVars: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
28
+ readonly resources: Schema.optional<Schema.Struct<{
29
+ readonly cpu: Schema.optional<Schema.Finite>;
30
+ readonly gpu: Schema.optional<Schema.Finite>;
31
+ readonly memory: Schema.optional<Schema.Finite>;
32
+ readonly disk: Schema.optional<Schema.Finite>;
33
+ }>>;
34
+ readonly user: Schema.optional<Schema.String>;
35
+ readonly cwd: Schema.optional<Schema.String>;
36
+ readonly autoStopInterval: Schema.optional<Schema.Finite>;
37
+ readonly execTimeout: Schema.optional<Schema.Finite>;
38
+ }>;
39
+ type CreateConfig = typeof CreateConfig.Type;
40
+ declare const RuntimeConfig: Schema.Struct<{
41
+ readonly defaultCwd: Schema.brand<Schema.String, "SandboxDriver.AbsolutePath">;
42
+ readonly user: Schema.optional<Schema.String>;
43
+ readonly execTimeout: Schema.optional<Schema.Finite>;
44
+ }>;
45
+ type RuntimeConfig = typeof RuntimeConfig.Type;
46
+ declare const make: (client?: ClientOptions) => SandboxDriver.Driver<CreateConfig, RuntimeConfig> & SandboxDriver.Registration;
47
+ declare const sandbox: SandboxDriver.Module<{
48
+ readonly apiKey?: string | undefined;
49
+ readonly apiUrl?: string | undefined;
50
+ readonly target?: string | undefined;
51
+ }>;
52
+ declare const config: (value: CreateConfig) => {
53
+ driver: "daytona";
54
+ config: {
55
+ readonly snapshot?: string | undefined;
56
+ readonly image?: string | undefined;
57
+ readonly language?: string | undefined;
58
+ readonly envVars?: {
59
+ readonly [x: string]: string;
60
+ } | undefined;
61
+ readonly resources?: {
62
+ readonly cpu?: number | undefined;
63
+ readonly gpu?: number | undefined;
64
+ readonly memory?: number | undefined;
65
+ readonly disk?: number | undefined;
66
+ } | undefined;
67
+ readonly user?: string | undefined;
68
+ readonly cwd?: string | undefined;
69
+ readonly autoStopInterval?: number | undefined;
70
+ readonly execTimeout?: number | undefined;
71
+ };
72
+ };
73
+ //#endregion
74
+ export { RuntimeConfig as a, sandbox as c, ResourcesConfig as i, CreateConfig as n, config as o, Options as r, make as s, ClientOptions as t };
75
+ //# sourceMappingURL=index-DjPzwUHF.d.mts.map
package/index.d.mts ADDED
@@ -0,0 +1 @@
1
+ export {}
package/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,95 @@
1
+ {
2
+ "name": "@codeworksh/harness",
3
+ "version": "0.0.1-canary.10.1.g65d5c167",
4
+ "description": "AI agent harness — agent loop, tools, plugins, sandbox, and more.",
5
+ "keywords": [
6
+ "agent",
7
+ "ai",
8
+ "ai-sdk",
9
+ "anthropic",
10
+ "grok",
11
+ "harness",
12
+ "llm",
13
+ "node",
14
+ "openai",
15
+ "sandbox"
16
+ ],
17
+ "homepage": "https://www.codework.sh",
18
+ "bugs": {
19
+ "url": "https://github.com/codeworksh/codework/issues"
20
+ },
21
+ "license": "MIT",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/codeworksh/codework.git",
25
+ "directory": "packages/harness"
26
+ },
27
+ "type": "module",
28
+ "types": "./index.d.mts",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./index.d.mts",
32
+ "import": "./index.mjs",
33
+ "default": "./index.mjs"
34
+ },
35
+ "./effect": {
36
+ "types": "./effect.d.mts",
37
+ "import": "./effect.mjs",
38
+ "default": "./effect.mjs"
39
+ },
40
+ "./sandbox": {
41
+ "types": "./sandbox.d.mts",
42
+ "import": "./sandbox.mjs",
43
+ "default": "./sandbox.mjs"
44
+ },
45
+ "./sandboxes/daytona": {
46
+ "types": "./sandboxes/daytona/index.d.mts",
47
+ "import": "./sandboxes/daytona/index.mjs",
48
+ "default": "./sandboxes/daytona/index.mjs"
49
+ },
50
+ "./sandboxes/vercel": {
51
+ "types": "./sandboxes/vercel/index.d.mts",
52
+ "import": "./sandboxes/vercel/index.mjs",
53
+ "default": "./sandboxes/vercel/index.mjs"
54
+ },
55
+ "./package.json": "./package.json"
56
+ },
57
+ "files": [
58
+ "**/*",
59
+ "README.md",
60
+ "LICENSE"
61
+ ],
62
+ "publishConfig": {
63
+ "access": "public"
64
+ },
65
+ "engines": {
66
+ "node": ">=24.14.1"
67
+ },
68
+ "dependencies": {
69
+ "@codeworksh/aikit": "0.9.3-canary.10.1.g65d5c167",
70
+ "@codeworksh/plugin": "0.0.1-canary.10.1.g65d5c167",
71
+ "@effect/platform-node": "4.0.0-rc.115",
72
+ "@effect/sql-sqlite-node": "4.0.0-rc.115",
73
+ "@npmcli/arborist": "^10.0.2",
74
+ "@npmcli/config": "^11.0.1",
75
+ "@platformatic/vfs": "^0.4.0",
76
+ "jsonc-parser": "3.3.1",
77
+ "just-bash": "^3.4.2",
78
+ "npm-package-arg": "^14.0.0",
79
+ "pacote": "^22.0.0",
80
+ "uuidv7": "^1.2.1"
81
+ },
82
+ "peerDependencies": {
83
+ "@daytona/sdk": "*",
84
+ "@vercel/sandbox": "*",
85
+ "effect": "4.0.0-rc.115"
86
+ },
87
+ "peerDependenciesMeta": {
88
+ "@daytona/sdk": {
89
+ "optional": true
90
+ },
91
+ "@vercel/sandbox": {
92
+ "optional": true
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,35 @@
1
+ import { n as __reExport, t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
2
+ import { posix } from "@codeworksh/plugin/posix";
3
+ //#region src/sandbox/instance.ts
4
+ var instance_exports = /* @__PURE__ */ __exportAll({});
5
+ import * as import__codeworksh_plugin_sandbox_instance from "@codeworksh/plugin/sandbox/instance";
6
+ __reExport(instance_exports, import__codeworksh_plugin_sandbox_instance);
7
+ //#endregion
8
+ //#region src/sandbox/io.ts
9
+ var io_exports = /* @__PURE__ */ __exportAll({});
10
+ import * as import__codeworksh_plugin_sandbox_io from "@codeworksh/plugin/sandbox/io";
11
+ __reExport(io_exports, import__codeworksh_plugin_sandbox_io);
12
+ //#endregion
13
+ //#region src/sandbox/errors.ts
14
+ var errors_exports = /* @__PURE__ */ __exportAll({});
15
+ import * as import__codeworksh_plugin_sandbox_errors from "@codeworksh/plugin/sandbox/errors";
16
+ __reExport(errors_exports, import__codeworksh_plugin_sandbox_errors);
17
+ //#endregion
18
+ //#region src/sandbox/fs/filesystem.ts
19
+ var filesystem_exports = /* @__PURE__ */ __exportAll({});
20
+ import * as import__codeworksh_plugin_sandbox_filesystem from "@codeworksh/plugin/sandbox/filesystem";
21
+ __reExport(filesystem_exports, import__codeworksh_plugin_sandbox_filesystem);
22
+ //#endregion
23
+ //#region src/sandbox/shell/shell.ts
24
+ var shell_exports = /* @__PURE__ */ __exportAll({});
25
+ import * as import__codeworksh_plugin_sandbox_shell from "@codeworksh/plugin/sandbox/shell";
26
+ __reExport(shell_exports, import__codeworksh_plugin_sandbox_shell);
27
+ //#endregion
28
+ //#region src/sandbox/resource.ts
29
+ var resource_exports = /* @__PURE__ */ __exportAll({});
30
+ import * as import__codeworksh_plugin_sandbox_resource from "@codeworksh/plugin/sandbox/resource";
31
+ __reExport(resource_exports, import__codeworksh_plugin_sandbox_resource);
32
+ //#endregion
33
+ export { io_exports as a, errors_exports as i, shell_exports as n, instance_exports as o, filesystem_exports as r, posix as s, resource_exports as t };
34
+
35
+ //# sourceMappingURL=resource-DFZh0e-s.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource-DFZh0e-s.mjs","names":[],"sources":["../../src/sandbox/instance.ts","../../src/sandbox/io.ts","../../src/sandbox/errors.ts","../../src/sandbox/fs/filesystem.ts","../../src/sandbox/shell/shell.ts","../../src/sandbox/resource.ts"],"sourcesContent":["export * from \"@codeworksh/plugin/sandbox/instance\";\n","export * from \"@codeworksh/plugin/sandbox/io\";\n","export * from \"@codeworksh/plugin/sandbox/errors\";\n","export * from \"@codeworksh/plugin/sandbox/filesystem\";\n","export * from \"@codeworksh/plugin/sandbox/shell\";\n","export * from \"@codeworksh/plugin/sandbox/resource\";\n"],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import "node:module";
2
+ //#region \0rolldown/runtime.js
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __exportAll = (all, no_symbols) => {
8
+ let target = {};
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
14
+ return target;
15
+ };
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18
+ key = keys[i];
19
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
20
+ get: ((k) => from[k]).bind(null, key),
21
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
22
+ });
23
+ }
24
+ return to;
25
+ };
26
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
27
+ //#endregion
28
+ export { __reExport as n, __exportAll as t };
@@ -0,0 +1,2 @@
1
+ import { SandboxDriver, SandboxFileSystem, SandboxIO, SandboxInstance, SandboxProvider, SandboxResource, SandboxShell } from "@codeworksh/plugin/sandbox";
2
+ export { SandboxProvider as a, SandboxInstance as i, SandboxFileSystem as n, SandboxResource as o, SandboxIO as r, SandboxShell as s, SandboxDriver as t };
package/sandbox.d.mts ADDED
@@ -0,0 +1,2 @@
1
+ import { a as SandboxProvider, i as SandboxInstance, n as SandboxFileSystem, o as SandboxResource, r as SandboxIO, s as SandboxShell, t as SandboxDriver } from "./sandbox-BL7BdHZc.mjs";
2
+ export { SandboxDriver, SandboxFileSystem, SandboxIO, SandboxInstance, SandboxProvider, SandboxResource, SandboxShell };
package/sandbox.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import { SandboxDriver, SandboxFileSystem, SandboxIO, SandboxInstance, SandboxProvider, SandboxResource, SandboxShell } from "@codeworksh/plugin/sandbox";
2
+ export { SandboxDriver, SandboxFileSystem, SandboxIO, SandboxInstance, SandboxProvider, SandboxResource, SandboxShell };
@@ -0,0 +1,2 @@
1
+ import { a as RuntimeConfig, c as sandbox, i as ResourcesConfig, n as CreateConfig, o as config, r as Options, s as make, t as ClientOptions } from "../../index-DjPzwUHF.mjs";
2
+ export { ClientOptions, CreateConfig, Options, ResourcesConfig, RuntimeConfig, config, sandbox as default, make };
@@ -0,0 +1,2 @@
1
+ import { a as RuntimeConfig, c as sandbox, i as ResourcesConfig, n as CreateConfig, o as config, r as Options, s as make, t as ClientOptions } from "../../daytona-BAurx6Gp.mjs";
2
+ export { ClientOptions, CreateConfig, Options, ResourcesConfig, RuntimeConfig, config, sandbox as default, make };
@@ -0,0 +1,2 @@
1
+ import { a as Source, c as sandbox, i as RuntimeConfig, n as CreateConfig, o as config, r as Options, s as make, t as ClientOptions } from "../../index-DIP2u0Pr.mjs";
2
+ export { ClientOptions, CreateConfig, Options, RuntimeConfig, Source, config, sandbox as default, make };
@@ -0,0 +1,2 @@
1
+ import { a as Source, c as sandbox, i as RuntimeConfig, n as CreateConfig, o as config, r as Options, s as make, t as ClientOptions } from "../../vercel-C0v5nh20.mjs";
2
+ export { ClientOptions, CreateConfig, Options, RuntimeConfig, Source, config, sandbox as default, make };