computeragent 0.2.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ComputerAgent contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # computeragent
2
+
3
+ > Run any AI agent, anywhere, with any loop, and any memory backend.
4
+
5
+ The umbrella entry point for [ComputerAgent](https://github.com/open-gitagent/ComputerAgent). One install, one import, a running agent.
6
+
7
+ ```bash
8
+ npm install computeragent
9
+ ```
10
+
11
+ ```ts
12
+ import { runTask, LocalSubstrate } from "computeragent";
13
+
14
+ const result = await runTask({
15
+ source: {
16
+ type: "inline",
17
+ manifest: { name: "hello", version: "0.1.0" },
18
+ files: {
19
+ "agent.yaml": [
20
+ 'spec_version: "0.1.0"',
21
+ "name: hello",
22
+ "version: 0.1.0",
23
+ "model:",
24
+ " preferred: claude-haiku-4-5-20251001",
25
+ ].join("\n"),
26
+ "SOUL.md": "Respond in one short sentence.",
27
+ },
28
+ },
29
+ harness: "claude-agent-sdk",
30
+ envs: { ANTHROPIC_API_KEY: process.env.ANTHROPIC_API_KEY! },
31
+ runtime: new LocalSubstrate(),
32
+ message: "Say hi.",
33
+ });
34
+ ```
35
+
36
+ ## What's in the box
37
+
38
+ This package re-exports:
39
+
40
+ - **`ComputerAgent`**, **`ChatHandle`**, **`runTask`** — the user-facing SDK
41
+ - **`LocalSubstrate`** — the default (subprocess) runtime
42
+ - All the SDK's TypeScript types
43
+
44
+ That's enough for a complete agent in one import. For other substrates, session stores, or engines, install the scoped packages alongside:
45
+
46
+ ```bash
47
+ npm install @computeragent/runtime-e2b # cloud sandbox
48
+ npm install @computeragent/runtime-vzvm # Apple VZ via Tart
49
+ npm install @computeragent/session-store-mongo # MongoDB-backed memory
50
+ npm install @computeragent/session-store-sqlite # SQLite-backed memory
51
+ npm install @computeragent/engine-gitagent # gitclaw engine
52
+ ```
53
+
54
+ ## Why an umbrella package
55
+
56
+ `computeragent` is the one-line entry point for the common case. The 13 scoped `@computeragent/*` packages stay independently publishable for power users who want minimal deps (a custom `harness-server` build with no SDK, or just the protocol types for a non-JS client).
57
+
58
+ This is the same shape as `next` (the umbrella) + `@next/*` (the parts) — install the one you need, ignore the rest.
59
+
60
+ ## See also
61
+
62
+ - **Repo / docs:** https://github.com/open-gitagent/ComputerAgent
63
+ - **Scaffold a project in 60 seconds:** `npx create-computeragent my-agent`
64
+ - **Conformance suite for plug-in authors:** `@computeragent/testing`
65
+
66
+ ## License
67
+
68
+ [MIT](../../LICENSE)
@@ -0,0 +1,19 @@
1
+ /**
2
+ * `computeragent` — the umbrella entry point.
3
+ *
4
+ * One-line install for the common case:
5
+ *
6
+ * npm install computeragent
7
+ *
8
+ * import { runTask, ComputerAgent, LocalSubstrate } from "computeragent";
9
+ *
10
+ * Re-exports the user-facing SDK plus the default `LocalSubstrate` so a
11
+ * fresh project can get to a running agent without touching the scoped
12
+ * `@computeragent/*` packages directly. For other substrates (E2B, VZVM)
13
+ * or other session-store backends (Mongo, SQLite), install those scoped
14
+ * packages alongside.
15
+ */
16
+ export { ComputerAgent, ChatHandle, runTask, } from "@computeragent/sdk";
17
+ export type { ChatInput, ChatResult, ComputerAgentOptions, PermissionDecision, RunTaskOptions, ToolCallContext, Substrate, BootHarnessOptions, BootedHarness, HarnessEvent, IdentitySource, UserMessage, } from "@computeragent/sdk";
18
+ export { LocalSubstrate } from "@computeragent/runtime-local";
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,aAAa,EACb,UAAU,EACV,OAAO,GACR,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,SAAS,EACT,UAAU,EACV,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,SAAS,EACT,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ /**
2
+ * `computeragent` — the umbrella entry point.
3
+ *
4
+ * One-line install for the common case:
5
+ *
6
+ * npm install computeragent
7
+ *
8
+ * import { runTask, ComputerAgent, LocalSubstrate } from "computeragent";
9
+ *
10
+ * Re-exports the user-facing SDK plus the default `LocalSubstrate` so a
11
+ * fresh project can get to a running agent without touching the scoped
12
+ * `@computeragent/*` packages directly. For other substrates (E2B, VZVM)
13
+ * or other session-store backends (Mongo, SQLite), install those scoped
14
+ * packages alongside.
15
+ */
16
+ export { ComputerAgent, ChatHandle, runTask, } from "@computeragent/sdk";
17
+ export { LocalSubstrate } from "@computeragent/runtime-local";
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,aAAa,EACb,UAAU,EACV,OAAO,GACR,MAAM,oBAAoB,CAAC;AAgB5B,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC"}
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "computeragent",
3
+ "version": "0.2.0",
4
+ "description": "Run any AI agent, anywhere, with any loop, and any memory backend. The umbrella entry point for the ComputerAgent stack — re-exports the SDK + the local substrate so `npm install computeragent` is the one-line install.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "src",
18
+ "README.md"
19
+ ],
20
+ "keywords": [
21
+ "ai-agents",
22
+ "agent-framework",
23
+ "agent-protocol",
24
+ "anthropic",
25
+ "claude",
26
+ "claude-agent-sdk",
27
+ "harness-protocol",
28
+ "session-store",
29
+ "computeragent",
30
+ "typescript"
31
+ ],
32
+ "homepage": "https://github.com/open-gitagent/ComputerAgent",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/open-gitagent/ComputerAgent.git",
36
+ "directory": "packages/computeragent"
37
+ },
38
+ "dependencies": {
39
+ "@computeragent/runtime-local": "0.2.0",
40
+ "@computeragent/sdk": "0.2.0"
41
+ },
42
+ "devDependencies": {
43
+ "typescript": "^5.5.0",
44
+ "vitest": "^2.0.0"
45
+ },
46
+ "engines": {
47
+ "node": ">=20"
48
+ },
49
+ "scripts": {
50
+ "build": "tsc -p tsconfig.json",
51
+ "typecheck": "tsc -p tsconfig.json --noEmit",
52
+ "test": "vitest run --passWithNoTests",
53
+ "clean": "rm -rf dist .turbo *.tsbuildinfo"
54
+ }
55
+ }
package/src/index.ts ADDED
@@ -0,0 +1,36 @@
1
+ /**
2
+ * `computeragent` — the umbrella entry point.
3
+ *
4
+ * One-line install for the common case:
5
+ *
6
+ * npm install computeragent
7
+ *
8
+ * import { runTask, ComputerAgent, LocalSubstrate } from "computeragent";
9
+ *
10
+ * Re-exports the user-facing SDK plus the default `LocalSubstrate` so a
11
+ * fresh project can get to a running agent without touching the scoped
12
+ * `@computeragent/*` packages directly. For other substrates (E2B, VZVM)
13
+ * or other session-store backends (Mongo, SQLite), install those scoped
14
+ * packages alongside.
15
+ */
16
+ export {
17
+ ComputerAgent,
18
+ ChatHandle,
19
+ runTask,
20
+ } from "@computeragent/sdk";
21
+ export type {
22
+ ChatInput,
23
+ ChatResult,
24
+ ComputerAgentOptions,
25
+ PermissionDecision,
26
+ RunTaskOptions,
27
+ ToolCallContext,
28
+ Substrate,
29
+ BootHarnessOptions,
30
+ BootedHarness,
31
+ HarnessEvent,
32
+ IdentitySource,
33
+ UserMessage,
34
+ } from "@computeragent/sdk";
35
+
36
+ export { LocalSubstrate } from "@computeragent/runtime-local";