@1agents/acp-service 0.1.1 → 0.1.3
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/bin/acp-service.js +3 -10
- package/package.json +3 -5
package/dist/bin/acp-service.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { execFileSync, spawn } from 'node:child_process';
|
|
3
3
|
import { createRequire } from 'node:module';
|
|
4
|
-
import path from 'node:path';
|
|
5
4
|
import fs from 'node:fs';
|
|
6
5
|
import { serveAcpService } from '../src/server.js';
|
|
7
6
|
import { attachProcessSignalHandlers } from '../src/bridge.js';
|
|
8
7
|
const require = createRequire(import.meta.url);
|
|
9
8
|
const rawArgs = process.argv.slice(2);
|
|
10
|
-
const invokedBin =
|
|
9
|
+
const invokedBin = 'acp-service';
|
|
11
10
|
function getAcpxCliPath() {
|
|
12
11
|
return require.resolve('@scottzx/1acp/dist/cli.js');
|
|
13
12
|
}
|
|
@@ -140,15 +139,9 @@ async function main() {
|
|
|
140
139
|
await runServer(options);
|
|
141
140
|
return;
|
|
142
141
|
}
|
|
143
|
-
// 5. No arguments
|
|
142
|
+
// 5. No arguments: default to running the server!
|
|
144
143
|
if (rawArgs.length === 0) {
|
|
145
|
-
|
|
146
|
-
if (invokedBin === 'acp-service') {
|
|
147
|
-
await runServer({});
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
// If invoked as 1acp or acpx with no arguments, forward to cli which displays help
|
|
151
|
-
forwardToCli(rawArgs);
|
|
144
|
+
await runServer({});
|
|
152
145
|
return;
|
|
153
146
|
}
|
|
154
147
|
// 6. Any other subcommand or arguments -> forward directly to @scottzx/1acp CLI
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1agents/acp-service",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "DreamMate Network ACP Agent Runtime Service: cross-agent execution runtime for Claude Code, Grok, Codex and ACP-compatible agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dreammate",
|
|
@@ -30,9 +30,7 @@
|
|
|
30
30
|
"./package.json": "./package.json"
|
|
31
31
|
},
|
|
32
32
|
"bin": {
|
|
33
|
-
"acp-service": "dist/bin/acp-service.js"
|
|
34
|
-
"1acp": "dist/bin/acp-service.js",
|
|
35
|
-
"acpx": "dist/bin/acp-service.js"
|
|
33
|
+
"acp-service": "dist/bin/acp-service.js"
|
|
36
34
|
},
|
|
37
35
|
"files": [
|
|
38
36
|
"dist",
|
|
@@ -41,7 +39,7 @@
|
|
|
41
39
|
"scripts": {
|
|
42
40
|
"build": "tsc -p tsconfig.build.json",
|
|
43
41
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
44
|
-
"test": "node --import tsx --test test/*.test.ts",
|
|
42
|
+
"test": "npm run build && node --import tsx --test test/*.test.ts",
|
|
45
43
|
"prepack": "npm run build",
|
|
46
44
|
"start": "tsx bin/acp-service.ts"
|
|
47
45
|
},
|