@codeworksh/harness 0.0.1-dev.20260825093030 → 0.0.1-dev.20260907151726
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 +14 -3
- package/daytona-C6wWlJ4z.mjs +291 -0
- package/daytona-C6wWlJ4z.mjs.map +1 -0
- package/effect.d.mts +10573 -729
- package/effect.mjs +6567 -3
- package/effect.mjs.map +1 -1
- package/index-CTm6Qzer.d.mts +75 -0
- package/index-D5gDWEaM.d.mts +81 -0
- package/package.json +34 -8
- package/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/sandbox-DnL9UPzZ.d.mts +668 -0
- package/sandbox-QCmZ3UhD.mjs +713 -0
- package/sandbox-QCmZ3UhD.mjs.map +1 -0
- package/sandbox.d.mts +2 -0
- package/sandbox.mjs +2 -0
- package/sandboxes/daytona/index.d.mts +2 -0
- package/sandboxes/daytona/index.mjs +2 -0
- package/sandboxes/vercel/index.d.mts +2 -0
- package/sandboxes/vercel/index.mjs +2 -0
- package/vercel-DW62mvsC.mjs +341 -0
- package/vercel-DW62mvsC.mjs.map +1 -0
- package/cli/index.d.mts +0 -22
- package/cli/index.mjs +0 -289
- package/cli/index.mjs.map +0 -1
- package/esm-1rae63aY.mjs +0 -63852
- package/esm-1rae63aY.mjs.map +0 -1
- package/rolldown-runtime-B4iAMlE-.mjs +0 -35
- package/session-B8PG8cMg.mjs +0 -7418
- package/session-B8PG8cMg.mjs.map +0 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { g as Module, h as Driver, y as Registration } from "./sandbox-DnL9UPzZ.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) => Driver<CreateConfig, RuntimeConfig> & Registration;
|
|
47
|
+
declare const sandbox: 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-CTm6Qzer.d.mts.map
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { g as Module, h as Driver, y as Registration } from "./sandbox-DnL9UPzZ.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) => Driver<CreateConfig, RuntimeConfig> & Registration;
|
|
51
|
+
declare const sandbox: 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-D5gDWEaM.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeworksh/harness",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.20260907151726",
|
|
4
4
|
"description": "AI agent harness — agent loop, tools, and code execution sandbox.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"url": "https://github.com/codeworksh/codework/issues"
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
|
-
"author": "Sanchit Kudari",
|
|
19
18
|
"repository": {
|
|
20
19
|
"type": "git",
|
|
21
20
|
"url": "git+https://github.com/codeworksh/codework.git",
|
|
@@ -23,20 +22,37 @@
|
|
|
23
22
|
},
|
|
24
23
|
"type": "module",
|
|
25
24
|
"types": "./index.d.mts",
|
|
26
|
-
"bin": {
|
|
27
|
-
"codework": "cli/index.mjs"
|
|
28
|
-
},
|
|
29
25
|
"exports": {
|
|
30
26
|
".": {
|
|
27
|
+
"development": "./src/index.ts",
|
|
31
28
|
"types": "./index.d.mts",
|
|
32
29
|
"import": "./index.mjs",
|
|
33
30
|
"default": "./index.mjs"
|
|
34
31
|
},
|
|
35
32
|
"./effect": {
|
|
33
|
+
"development": "./src/effect.ts",
|
|
36
34
|
"types": "./effect.d.mts",
|
|
37
35
|
"import": "./effect.mjs",
|
|
38
36
|
"default": "./effect.mjs"
|
|
39
37
|
},
|
|
38
|
+
"./sandbox": {
|
|
39
|
+
"development": "./src/sandbox.ts",
|
|
40
|
+
"types": "./sandbox.d.mts",
|
|
41
|
+
"import": "./sandbox.mjs",
|
|
42
|
+
"default": "./sandbox.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./sandboxes/daytona": {
|
|
45
|
+
"development": "./src/sandboxes/daytona/index.ts",
|
|
46
|
+
"types": "./sandboxes/daytona/index.d.mts",
|
|
47
|
+
"import": "./sandboxes/daytona/index.mjs",
|
|
48
|
+
"default": "./sandboxes/daytona/index.mjs"
|
|
49
|
+
},
|
|
50
|
+
"./sandboxes/vercel": {
|
|
51
|
+
"development": "./src/sandboxes/vercel/index.ts",
|
|
52
|
+
"types": "./sandboxes/vercel/index.d.mts",
|
|
53
|
+
"import": "./sandboxes/vercel/index.mjs",
|
|
54
|
+
"default": "./sandboxes/vercel/index.mjs"
|
|
55
|
+
},
|
|
40
56
|
"./package.json": "./package.json"
|
|
41
57
|
},
|
|
42
58
|
"files": [
|
|
@@ -51,17 +67,27 @@
|
|
|
51
67
|
"node": ">=24.14.1"
|
|
52
68
|
},
|
|
53
69
|
"dependencies": {
|
|
54
|
-
"@codeworksh/aikit": "0.
|
|
55
|
-
"@daytona/sdk": "^0.187.0",
|
|
70
|
+
"@codeworksh/aikit": "0.8.0",
|
|
56
71
|
"@effect/platform-node": "4.0.0-beta.107",
|
|
57
72
|
"@effect/sql-sqlite-node": "4.0.0-beta.107",
|
|
58
73
|
"@platformatic/vfs": "^0.4.0",
|
|
59
|
-
"@vercel/sandbox": "^2.9.2",
|
|
60
74
|
"effect": "4.0.0-beta.107",
|
|
61
75
|
"just-bash": "^2.14.5",
|
|
62
76
|
"tslib": "^2.8.1",
|
|
63
77
|
"typebox": "^1.3.10",
|
|
64
78
|
"uuid": "^14.0.1",
|
|
65
79
|
"uuidv7": "^1.2.1"
|
|
80
|
+
},
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"@daytona/sdk": "*",
|
|
83
|
+
"@vercel/sandbox": "*"
|
|
84
|
+
},
|
|
85
|
+
"peerDependenciesMeta": {
|
|
86
|
+
"@daytona/sdk": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"@vercel/sandbox": {
|
|
90
|
+
"optional": true
|
|
91
|
+
}
|
|
66
92
|
}
|
|
67
93
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|