@canonmsg/codex-plugin 0.23.0 → 0.23.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/README.md CHANGED
@@ -13,9 +13,6 @@ npm install -g @canonmsg/codex-plugin
13
13
  # Make sure Codex itself is logged in the way you want Canon to use
14
14
  codex login status
15
15
 
16
- # Select the Canon trust domain supplied for your account
17
- export CANON_ENVIRONMENT_ID=canon-legacy-v1
18
-
19
16
  # Register (approve in Canon when prompted)
20
17
  canon-codex-register --name "My Codex" --description "My local coding agent" --phone "+15551234567"
21
18
 
@@ -128,7 +125,7 @@ canon-codex --cwd /path/to/project --codex-bin /absolute/path/to/codex
128
125
  If Canon rejects authenticated requests with `401 Invalid API key`, the stored Canon profile needs a fresh key. Reconnect the same profile to overwrite `~/.canon/agents.json`, then restart or revive the host:
129
126
 
130
127
  ```bash
131
- canon-codex-register --environment canon-legacy-v1 --name "My Codex" --description "My local coding agent" --phone "+15551234567" --profile my-codex
128
+ canon-codex-register --name "My Codex" --description "My local coding agent" --phone "+15551234567" --profile my-codex
132
129
  ```
133
130
 
134
131
  If Codex reports API-key quota errors while another local tool on the same machine uses OpenAI API keys, check Codex's own stored login state:
@@ -150,7 +147,7 @@ Restart `canon-codex` after changing the Codex login state.
150
147
  ## Multiple agents
151
148
 
152
149
  ```bash
153
- canon-codex-register --environment canon-legacy-v1 --name "Frontend" --description "React work" --phone "+1..." --profile frontend
150
+ canon-codex-register --name "Frontend" --description "React work" --phone "+1..." --profile frontend
154
151
  CANON_AGENT=frontend canon-codex --cwd ~/projects/frontend
155
152
  ```
156
153
 
@@ -41,8 +41,6 @@ function nativeHandle(method, params) {
41
41
  const approvalId = readString(params, ['approvalId']);
42
42
  const pluginId = readString(params, ['pluginId']);
43
43
  const sessionKey = readString(params, ['sessionKey', 'sessionId']);
44
- const cwd = readString(params, ['cwd', 'workingDirectory']);
45
- const model = readString(params, ['model']);
46
44
  if (requestId)
47
45
  native.requestId = requestId;
48
46
  if (provider)
@@ -67,10 +65,6 @@ function nativeHandle(method, params) {
67
65
  native.pluginId = pluginId;
68
66
  if (sessionKey)
69
67
  native.sessionKey = sessionKey;
70
- if (cwd)
71
- native.cwd = cwd;
72
- if (model)
73
- native.model = model;
74
68
  return native;
75
69
  }
76
70
  function commandRisk(command) {
package/dist/register.js CHANGED
@@ -24,8 +24,8 @@ FLAGS
24
24
  --version, -V Show package version
25
25
 
26
26
  EXAMPLES
27
- canon-codex-register --environment canon-legacy-v1 --name "My Codex" --description "Local coding agent" --phone "+15551234567"
28
- canon-codex-register --environment canon-legacy-v1 --name "Frontend" --description "React work" --phone "+15551234567" --profile frontend
27
+ canon-codex-register --name "My Codex" --description "Local coding agent" --phone "+15551234567"
28
+ canon-codex-register --name "Frontend" --description "React work" --phone "+15551234567" --profile frontend
29
29
 
30
30
  After approval, start it with CANON_AGENT=<profile> canon-codex --cwd /path/to/project.`;
31
31
  export async function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonmsg/codex-plugin",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "description": "Canon host integration for Codex CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,9 +29,9 @@
29
29
  "prepack": "npm run build"
30
30
  },
31
31
  "dependencies": {
32
- "@canonmsg/agent-sdk": "^6.0.0",
32
+ "@canonmsg/agent-sdk": "^7.0.1",
33
33
  "@canonmsg/coding-agent-host": "^0.2.2",
34
- "@canonmsg/core": "^6.0.0"
34
+ "@canonmsg/core": "^7.0.2"
35
35
  },
36
36
  "engines": {
37
37
  "node": ">=18.0.0"