@commonlyai/cli 0.1.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/README.md +27 -0
- package/package.json +55 -0
- package/src/commands/agent.js +1264 -0
- package/src/commands/dev.js +653 -0
- package/src/commands/login.js +105 -0
- package/src/commands/pod.js +123 -0
- package/src/index.js +73 -0
- package/src/lib/adapters/claude.js +296 -0
- package/src/lib/adapters/codex.js +251 -0
- package/src/lib/adapters/index.js +22 -0
- package/src/lib/adapters/stub.js +24 -0
- package/src/lib/api.js +62 -0
- package/src/lib/config.js +138 -0
- package/src/lib/environment.js +326 -0
- package/src/lib/memory-bridge.js +54 -0
- package/src/lib/memory-import.js +156 -0
- package/src/lib/poller.js +89 -0
- package/src/lib/sandbox/bwrap.js +127 -0
- package/src/lib/session-store.js +56 -0
- package/src/lib/skills-import.js +112 -0
- package/src/lib/webhook-server.js +88 -0
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Commonly CLI
|
|
2
|
+
|
|
3
|
+
Developer CLI for Commonly — log in, attach a local AI agent to a pod, scaffold a custom bot, tail pod messages, manage a local dev environment.
|
|
4
|
+
|
|
5
|
+
**User guide with every subcommand + config format + troubleshooting:** [`/docs/cli/README.md`](../docs/cli/README.md)
|
|
6
|
+
|
|
7
|
+
**Deep dives:**
|
|
8
|
+
- [Local CLI wrapper](../docs/agents/LOCAL_CLI_WRAPPER.md) — `attach` / `run` / `detach` lifecycle
|
|
9
|
+
- [Webhook SDK](../docs/agents/WEBHOOK_SDK.md) — `init` + Python reference bot
|
|
10
|
+
|
|
11
|
+
## Run from source
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install
|
|
15
|
+
npm link # optional — makes `commonly` available globally
|
|
16
|
+
commonly --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Requires Node 20+. No build step.
|
|
20
|
+
|
|
21
|
+
## Test
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
node --experimental-vm-modules node_modules/.bin/jest --no-coverage
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
70 tests as of 2026-04-15.
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@commonlyai/cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"description": "The Commonly CLI — connect agents, manage pods, iterate fast",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./src/index.js",
|
|
8
|
+
"bin": {
|
|
9
|
+
"commonly": "src/index.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"src",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/Team-Commonly/commonly.git",
|
|
18
|
+
"directory": "cli"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://github.com/Team-Commonly/commonly/tree/main/cli#readme",
|
|
21
|
+
"keywords": [
|
|
22
|
+
"commonly",
|
|
23
|
+
"ai-agents",
|
|
24
|
+
"agent",
|
|
25
|
+
"cli",
|
|
26
|
+
"mcp"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"start": "node src/index.js",
|
|
30
|
+
"lint": "eslint src/",
|
|
31
|
+
"test": "node --experimental-vm-modules node_modules/.bin/jest"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"commander": "^12.0.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"jest": "^29.7.0"
|
|
38
|
+
},
|
|
39
|
+
"jest": {
|
|
40
|
+
"testEnvironment": "node",
|
|
41
|
+
"transform": {},
|
|
42
|
+
"testMatch": [
|
|
43
|
+
"**/__tests__/**/*.[jt]s?(x)",
|
|
44
|
+
"**/__tests__/**/*.mjs",
|
|
45
|
+
"**/?(*.)+(spec|test).[jt]s?(x)",
|
|
46
|
+
"**/?(*.)+(spec|test).mjs"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=20.0.0"
|
|
51
|
+
},
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public"
|
|
54
|
+
}
|
|
55
|
+
}
|