@punkcode/cli 0.1.2 → 0.1.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/README.md +8 -3
- package/dist/cli.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,10 +38,15 @@ Your machine will appear in the punk app — you can now send prompts to Claude
|
|
|
38
38
|
| `punk connect` | Connect this machine to punk |
|
|
39
39
|
| `punk logout` | Log out and clear stored credentials |
|
|
40
40
|
|
|
41
|
-
##
|
|
41
|
+
## Cloud Deployment
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
Run Punk on a cloud server with Ollama cloud models (no Anthropic API key required). See the [Cloud Deployment Guide](docs/cloud-deployment.md).
|
|
44
|
+
|
|
45
|
+
## Updating
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npm update -g @punkcode/cli
|
|
49
|
+
```
|
|
45
50
|
|
|
46
51
|
## License
|
|
47
52
|
|
package/dist/cli.js
CHANGED
|
@@ -43,6 +43,7 @@ function runClaude(options, callbacks) {
|
|
|
43
43
|
prompt: options.images?.length ? promptWithImages(options.prompt, options.images, options.sessionId || "") : options.prompt,
|
|
44
44
|
options: {
|
|
45
45
|
permissionMode: opts.permissionMode || "default",
|
|
46
|
+
settingSources: ["user", "project"],
|
|
46
47
|
...isBypass && { allowDangerouslySkipPermissions: true },
|
|
47
48
|
...opts.model && { model: opts.model },
|
|
48
49
|
...opts.allowedTools && { allowedTools: opts.allowedTools },
|
|
@@ -1021,7 +1022,7 @@ function logout() {
|
|
|
1021
1022
|
|
|
1022
1023
|
// src/commands/index.ts
|
|
1023
1024
|
function registerCommands(program2) {
|
|
1024
|
-
program2.command("connect
|
|
1025
|
+
program2.command("connect").argument("[server]", "Backend server URL", "https://api.punkcode.dev").description("Connect to backend server").option("-t, --token <token>", "Authentication token").option("-d, --device-id <deviceId>", "Device identifier (defaults to hostname)").action(connect);
|
|
1025
1026
|
program2.command("login").description("Log in with your email and password").action(login);
|
|
1026
1027
|
program2.command("logout").description("Log out and clear stored credentials").action(logout);
|
|
1027
1028
|
}
|