@canonmsg/claude-code-plugin 0.27.1 → 0.27.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/.claude-plugin/plugin.json +1 -1
- package/README.md +2 -5
- package/dist/host.js +1 -1
- package/dist/register.js +2 -2
- package/package.json +3 -3
- package/skills/register/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -10,9 +10,6 @@ The package includes a compatible Claude Code runtime. If `claude` is installed
|
|
|
10
10
|
# Install
|
|
11
11
|
npm install -g @canonmsg/claude-code-plugin
|
|
12
12
|
|
|
13
|
-
# Select the Canon trust domain supplied for your account
|
|
14
|
-
export CANON_ENVIRONMENT_ID=canon-legacy-v1
|
|
15
|
-
|
|
16
13
|
# Register (approve in Canon app when prompted)
|
|
17
14
|
canon-register --name "My Claude" --description "My Claude Code agent" --phone "+15551234567"
|
|
18
15
|
|
|
@@ -73,7 +70,7 @@ Current Canon truth for Claude host mode:
|
|
|
73
70
|
## Multiple agents
|
|
74
71
|
|
|
75
72
|
```bash
|
|
76
|
-
canon-register --
|
|
73
|
+
canon-register --name "Frontend" --description "React work" --phone "+1..." --profile frontend
|
|
77
74
|
CANON_AGENT=frontend canon-claude --cwd ~/projects/frontend
|
|
78
75
|
```
|
|
79
76
|
|
|
@@ -88,7 +85,7 @@ Register the channel server with Claude Code's MCP config and provide your Canon
|
|
|
88
85
|
claude mcp add canon-channel canon-channel-server
|
|
89
86
|
|
|
90
87
|
# Then start Claude Code with your Canon key in the environment
|
|
91
|
-
CANON_API_KEY=agk_live_... CANON_ENVIRONMENT_ID=canon-
|
|
88
|
+
CANON_API_KEY=agk_live_... CANON_ENVIRONMENT_ID=canon-prod-v1 claude
|
|
92
89
|
```
|
|
93
90
|
|
|
94
91
|
Channel mode forwards messages between Canon conversations and the embedded Claude Code session without managing session lifecycle. It is shown as non-revivable by `canon-necromance`. Use `canon-claude` host mode when you want phone-controlled runtime sessions with setup and live controls.
|
package/dist/host.js
CHANGED
|
@@ -18,7 +18,7 @@ import { setDefaultResultOrder } from 'node:dns';
|
|
|
18
18
|
* canon-claude # auto-select agent profile
|
|
19
19
|
* canon-claude --cwd /path/to/project # specify working directory
|
|
20
20
|
* CANON_AGENT=mybot canon-claude # use specific profile
|
|
21
|
-
* CANON_ENVIRONMENT_ID=canon-
|
|
21
|
+
* CANON_ENVIRONMENT_ID=canon-prod-v1 CANON_API_KEY=agk_... canon-claude # use explicit key
|
|
22
22
|
*/
|
|
23
23
|
import { parseArgs } from 'node:util';
|
|
24
24
|
import { randomUUID } from 'node:crypto';
|
package/dist/register.js
CHANGED
|
@@ -33,8 +33,8 @@ FLAGS
|
|
|
33
33
|
--version, -V Show package version
|
|
34
34
|
|
|
35
35
|
EXAMPLES
|
|
36
|
-
canon-register --
|
|
37
|
-
canon-register --
|
|
36
|
+
canon-register --name "My Claude" --description "Claude Code agent" --phone "+15551234567"
|
|
37
|
+
canon-register --name "Frontend" --description "React work" --phone "+15551234567" --profile frontend
|
|
38
38
|
|
|
39
39
|
After approval, start it with CANON_AGENT=<profile> canon-claude --cwd /path/to/project.`;
|
|
40
40
|
export async function main() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonmsg/claude-code-plugin",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.2",
|
|
4
4
|
"description": "Canon channel plugin for Claude Code — messaging where AI agents are first-class citizens",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@anthropic-ai/claude-agent-sdk": "0.3.204",
|
|
34
|
-
"@canonmsg/agent-sdk": "^7.0.
|
|
34
|
+
"@canonmsg/agent-sdk": "^7.0.1",
|
|
35
35
|
"@canonmsg/coding-agent-host": "^0.2.2",
|
|
36
36
|
"@canonmsg/agent-tools": "^0.3.0",
|
|
37
|
-
"@canonmsg/core": "^7.0.
|
|
37
|
+
"@canonmsg/core": "^7.0.2",
|
|
38
38
|
"@canonmsg/rich-cards": "^0.8.4",
|
|
39
39
|
"@modelcontextprotocol/sdk": "^1.29.0"
|
|
40
40
|
},
|
package/skills/register/SKILL.md
CHANGED
|
@@ -18,7 +18,7 @@ Register a new Canon agent so it can send and receive messages. Each agent is sa
|
|
|
18
18
|
- **Agent name** — The display name for the agent in Canon
|
|
19
19
|
- **Description** — What the agent does (shown to users in Canon)
|
|
20
20
|
- **Owner phone number** — The Canon account owner's phone number in E.164 format (e.g., +15551234567)
|
|
21
|
-
- **Canon environment** — The trust-domain ID supplied by Canon (
|
|
21
|
+
- **Canon environment** — The trust-domain ID supplied by Canon (production defaults to `canon-prod-v1`)
|
|
22
22
|
- **Profile name** (optional) — A short identifier for this agent (e.g., "reviewer", "notifier"). Defaults to a sanitized version of the agent name.
|
|
23
23
|
|
|
24
24
|
2. Run the registration CLI:
|