0agent 1.0.0 → 1.0.2
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/bin/0agent.js +4 -2
- package/package.json +18 -10
- package/packages/core/package.json +25 -0
- package/packages/daemon/package.json +29 -0
- package/packages/mcp-hub/package.json +21 -0
- package/packages/subagent/package.json +22 -0
- package/packages/subagent-runtime/package.json +19 -0
- package/pnpm-workspace.yaml +2 -0
- package/tsconfig.base.json +19 -0
- package/turbo.json +16 -0
package/bin/0agent.js
CHANGED
|
@@ -361,8 +361,10 @@ async function runSkill(skillName, extraArgs) {
|
|
|
361
361
|
async function streamSession(sessionId) {
|
|
362
362
|
await requireDaemon();
|
|
363
363
|
|
|
364
|
+
const WS = await importWS();
|
|
365
|
+
|
|
364
366
|
return new Promise((resolve) => {
|
|
365
|
-
const ws = new (
|
|
367
|
+
const ws = new WS(`ws://localhost:4200/ws`);
|
|
366
368
|
|
|
367
369
|
ws.on('open', () => {
|
|
368
370
|
ws.send(JSON.stringify({ type: 'subscribe', topics: ['sessions'] }));
|
|
@@ -531,7 +533,7 @@ async function runImprove(improveArgs) {
|
|
|
531
533
|
function showLogs(logArgs) {
|
|
532
534
|
const n = parseInt(logArgs.find(a => a.match(/^\d+$/)) ?? '100', 10);
|
|
533
535
|
if (!existsSync(LOG_PATH)) { console.log(' No logs yet. Run `0agent start` first.'); return; }
|
|
534
|
-
|
|
536
|
+
// execSync already imported at top level via node:child_process
|
|
535
537
|
execSync(`tail -${n} "${LOG_PATH}"`, { stdio: 'inherit' });
|
|
536
538
|
}
|
|
537
539
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "0agent",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A persistent, learning AI agent that runs on your machine. An agent that learns.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -11,12 +11,20 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"bin/",
|
|
13
13
|
"packages/core/dist/",
|
|
14
|
+
"packages/core/package.json",
|
|
14
15
|
"packages/mcp-hub/dist/",
|
|
16
|
+
"packages/mcp-hub/package.json",
|
|
15
17
|
"packages/daemon/dist/",
|
|
18
|
+
"packages/daemon/package.json",
|
|
16
19
|
"packages/subagent/dist/",
|
|
20
|
+
"packages/subagent/package.json",
|
|
17
21
|
"packages/subagent-runtime/dist/",
|
|
22
|
+
"packages/subagent-runtime/package.json",
|
|
18
23
|
"skills/",
|
|
19
|
-
"seeds/"
|
|
24
|
+
"seeds/",
|
|
25
|
+
"pnpm-workspace.yaml",
|
|
26
|
+
"turbo.json",
|
|
27
|
+
"tsconfig.base.json"
|
|
20
28
|
],
|
|
21
29
|
"scripts": {
|
|
22
30
|
"build": "turbo run build",
|
|
@@ -25,12 +33,12 @@
|
|
|
25
33
|
"prepublishOnly": "pnpm build --filter='!@0agent/dashboard' --filter='!@0agent/core-native'"
|
|
26
34
|
},
|
|
27
35
|
"dependencies": {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
36
|
+
"better-sqlite3": "^11.6.0",
|
|
37
|
+
"hono": "^4.6.0",
|
|
38
|
+
"@hono/node-server": "^1.13.0",
|
|
39
|
+
"ws": "^8.18.0",
|
|
40
|
+
"yaml": "^2.6.0",
|
|
41
|
+
"zod": "^3.23.0"
|
|
34
42
|
},
|
|
35
43
|
"devDependencies": {
|
|
36
44
|
"@biomejs/biome": "^1.9.0",
|
|
@@ -52,8 +60,8 @@
|
|
|
52
60
|
],
|
|
53
61
|
"repository": {
|
|
54
62
|
"type": "git",
|
|
55
|
-
"url": "https://github.com/
|
|
63
|
+
"url": "https://github.com/cadetmaze/0agentv1"
|
|
56
64
|
},
|
|
57
|
-
"homepage": "https://github.com/
|
|
65
|
+
"homepage": "https://github.com/cadetmaze/0agentv1#readme",
|
|
58
66
|
"packageManager": "pnpm@9.12.0"
|
|
59
67
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@0agent/core",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"test": "vitest run",
|
|
11
|
+
"test:watch": "vitest"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"better-sqlite3": "^11.6.0",
|
|
15
|
+
"uuid": "^10.0.0",
|
|
16
|
+
"zod": "^3.23.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/better-sqlite3": "^7.6.12",
|
|
20
|
+
"@types/node": "^25.5.0",
|
|
21
|
+
"@types/uuid": "^10.0.0",
|
|
22
|
+
"typescript": "^5.5.0",
|
|
23
|
+
"vitest": "^2.1.0"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@0agent/daemon",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"start": "node dist/index.js",
|
|
11
|
+
"dev": "tsx src/index.ts",
|
|
12
|
+
"test": "vitest run"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@0agent/core": "workspace:*",
|
|
16
|
+
"@0agent/mcp-hub": "workspace:*",
|
|
17
|
+
"@hono/node-server": "^1.13.0",
|
|
18
|
+
"hono": "^4.6.0",
|
|
19
|
+
"ws": "^8.18.0",
|
|
20
|
+
"yaml": "^2.6.0",
|
|
21
|
+
"zod": "^3.23.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/node": "^25.5.0",
|
|
25
|
+
"@types/ws": "^8.5.13",
|
|
26
|
+
"typescript": "^5.5.0",
|
|
27
|
+
"vitest": "^2.1.0"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@0agent/mcp-hub",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"test": "vitest run"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@0agent/core": "workspace:*",
|
|
14
|
+
"yaml": "^2.6.0"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/node": "^25.5.0",
|
|
18
|
+
"typescript": "^5.5.0",
|
|
19
|
+
"vitest": "^2.1.0"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@0agent/subagent",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"test": "vitest run"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@0agent/core": "workspace:*",
|
|
14
|
+
"@0agent/mcp-hub": "workspace:*",
|
|
15
|
+
"zod": "^3.23.0"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "^25.5.0",
|
|
19
|
+
"vitest": "^2.1.0",
|
|
20
|
+
"typescript": "^5.5.0"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@0agent/subagent-runtime",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/main.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"test": "vitest run"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"zod": "^3.23.0"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@types/node": "^25.5.0",
|
|
16
|
+
"vitest": "^2.1.0",
|
|
17
|
+
"typescript": "^5.5.0"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"lib": ["ES2022"],
|
|
7
|
+
"types": ["node"],
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"declaration": true,
|
|
14
|
+
"declarationMap": true,
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"outDir": "dist",
|
|
17
|
+
"rootDir": "src"
|
|
18
|
+
}
|
|
19
|
+
}
|
package/turbo.json
ADDED