@almyty/acp-server 1.0.3 → 1.0.4
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/index.js +13 -30
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24,45 +24,28 @@ if (args.some((a) => HELP_FLAGS.includes(a)) || args.length === 0) {
|
|
|
24
24
|
const text = `
|
|
25
25
|
@almyty/acp-server — Expose any almyty agent via the Agent Client Protocol
|
|
26
26
|
|
|
27
|
-
Connects an almyty agent to ACP-compatible clients (Zed, JetBrains AI,
|
|
28
|
-
Toad, and others) over ndjson stdio. The server proxies all requests to
|
|
29
|
-
the almyty backend REST API.
|
|
30
|
-
|
|
31
27
|
Usage:
|
|
32
|
-
npx @almyty/acp-server <agent>
|
|
33
|
-
npx @almyty/acp-server my-agent
|
|
34
|
-
npx @almyty/acp-server 550e8400-e29b-41d4-a716-446655440000
|
|
28
|
+
npx @almyty/acp-server <agent-name>
|
|
35
29
|
|
|
36
30
|
Authentication:
|
|
37
|
-
npx @almyty/auth login
|
|
31
|
+
npx @almyty/auth login
|
|
38
32
|
|
|
39
33
|
Environment:
|
|
40
|
-
ALMYTY_URL
|
|
41
|
-
ALMYTY_TOKEN API key (auto-read from ~/.almyty/credentials.json)
|
|
42
|
-
|
|
43
|
-
Client configuration:
|
|
34
|
+
ALMYTY_URL Backend URL (default: https://api.almyty.com)
|
|
35
|
+
ALMYTY_TOKEN API key (or auto-read from ~/.almyty/credentials.json)
|
|
44
36
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"name": "npx",
|
|
53
|
-
"args": ["-y", "@almyty/acp-server", "my-agent"]
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
37
|
+
Zed (add to settings.json → agent_servers):
|
|
38
|
+
{
|
|
39
|
+
"agent_servers": {
|
|
40
|
+
"almyty": {
|
|
41
|
+
"type": "custom",
|
|
42
|
+
"command": "npx",
|
|
43
|
+
"args": ["-y", "@almyty/acp-server", "<agent-name>"]
|
|
57
44
|
}
|
|
58
45
|
}
|
|
46
|
+
}
|
|
59
47
|
|
|
60
|
-
|
|
61
|
-
Binary path: npx
|
|
62
|
-
Arguments: -y @almyty/acp-server my-agent
|
|
63
|
-
|
|
64
|
-
Custom / stdio:
|
|
65
|
-
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":1}}' | npx @almyty/acp-server my-agent
|
|
48
|
+
Docs: https://docs.almyty.com/cli/acp-server
|
|
66
49
|
`;
|
|
67
50
|
// Write help to stdout (not stderr) so piping works
|
|
68
51
|
process.stdout.write(text.trimStart());
|