@sjawhar/codex-envoy 0.0.0-stage → 5.0.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.
Files changed (35) hide show
  1. package/.codex-plugin/plugin.json +89 -0
  2. package/README.md +23 -2
  3. package/dist/THIRD_PARTY_NOTICES +786 -0
  4. package/dist/codex-hook.js +30553 -0
  5. package/dist/codex-tool-hook.js +135 -0
  6. package/dist/dispatch.js +32230 -0
  7. package/dist/envoy-channel.js +67186 -0
  8. package/dist/session-hook.js +30806 -0
  9. package/dist/session-title-hook.js +373 -0
  10. package/hooks/hooks.json +48 -0
  11. package/package.json +16 -4
  12. package/skills/agent-secrets/SKILL.md +106 -0
  13. package/skills/agent-secrets/references/store-a-secret.md +9 -0
  14. package/skills/approval-review/SKILL.md +35 -0
  15. package/skills/approval-review/references/never-decide.md +154 -0
  16. package/skills/asd-ste100/LICENSE +21 -0
  17. package/skills/asd-ste100/SKILL.md +81 -0
  18. package/skills/asd-ste100/examples/before-after.md +57 -0
  19. package/skills/dispatch/SKILL.md +92 -0
  20. package/skills/dispatch-first/SKILL.md +48 -0
  21. package/skills/dispatch-writing-specs/SKILL.md +77 -0
  22. package/skills/envoy/SKILL.md +93 -0
  23. package/skills/envoy/references/check-settlement.md +45 -0
  24. package/skills/envoy/references/deliveries.md +28 -0
  25. package/skills/envoy/references/legion.md +17 -0
  26. package/skills/envoy/references/roles.md +14 -0
  27. package/skills/envoy/references/sources.md +33 -0
  28. package/skills/outside-message/SKILL.md +45 -0
  29. package/skills/plain-words/SKILL.md +54 -0
  30. package/skills/thermonuclear-code-quality/LICENSE +21 -0
  31. package/skills/thermonuclear-code-quality/SKILL.md +59 -0
  32. package/skills/thermonuclear-code-quality/agents/openai.yaml +5 -0
  33. package/skills/thermonuclear-deep-review/LICENSE +21 -0
  34. package/skills/thermonuclear-deep-review/SKILL.md +76 -0
  35. package/skills/thermonuclear-deep-review/agents/openai.yaml +5 -0
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "codex-envoy",
3
+ "version": "5.0.0",
4
+ "description": "Put Envoy and Dispatch messages into the Codex session's own conversation, show it on Dispatch's Agents page, and expose the Envoy and dispatch tools.",
5
+ "author": {
6
+ "name": "Legion",
7
+ "url": "https://github.com/cybermonklabs/legion"
8
+ },
9
+ "license": "Apache-2.0",
10
+ "repository": "https://github.com/cybermonklabs/legion",
11
+ "keywords": [
12
+ "envoy",
13
+ "dispatch",
14
+ "legion"
15
+ ],
16
+ "skills": "./skills/",
17
+ "mcpServers": {
18
+ "envoy": {
19
+ "command": "bun",
20
+ "args": [
21
+ "./dist/envoy-channel.js",
22
+ "--host",
23
+ "codex"
24
+ ],
25
+ "cwd": "./",
26
+ "env_vars": [
27
+ "AGENTBOX_HOST",
28
+ "AGENT_SECRETS_MACHINE_AUDIENCE",
29
+ "AGENT_SECRETS_MACHINE_IDENTITY",
30
+ "AGENT_SECRETS_MACHINE_TOKEN_FILE",
31
+ "AGENT_SECRETS_PERSON",
32
+ "AGENT_SECRETS_POOL_ACCOUNT",
33
+ "AGENT_SECRETS_POOL_AUDIENCE",
34
+ "AGENT_SECRETS_PROJECTS",
35
+ "AGENT_SECRETS_SESSION",
36
+ "AGENT_SECRETS_SIGNIN_CLIENT_ID",
37
+ "AGENT_SECRETS_SIGNIN_CLIENT_SECRET_FILE",
38
+ "AGENT_SECRETS_SIGNIN_DIR",
39
+ "AGENT_SECRETS_SIGNIN_ISSUER",
40
+ "AGENT_SECRETS_URL",
41
+ "CODEX_HOME",
42
+ "DISPATCH_PUBLIC_URL",
43
+ "DISPATCH_STATE_DIR",
44
+ "DISPATCH_TOKEN",
45
+ "DISPATCH_TOKEN_BROKER",
46
+ "DISPATCH_TOKEN_FILE",
47
+ "DISPATCH_URL",
48
+ "ENVOY_CONFIG_FILE",
49
+ "ENVOY_HEARTBEAT_MS",
50
+ "ENVOY_INBOUND",
51
+ "ENVOY_MACHINE_ID",
52
+ "ENVOY_NATS_URL",
53
+ "ENVOY_SESSION_TITLE",
54
+ "ENVOY_TOKEN",
55
+ "ENVOY_TOKEN_FILE",
56
+ "ENVOY_URL",
57
+ "GCE_METADATA_HOST",
58
+ "NATS_AUTH",
59
+ "NATS_NKEY_SEED",
60
+ "NATS_NKEY_SEED_FILE",
61
+ "PERSON_SIGNIN_TRADE",
62
+ "TMUX",
63
+ "TMUX_PANE",
64
+ "XDG_CONFIG_HOME",
65
+ "XDG_RUNTIME_DIR",
66
+ "XDG_STATE_HOME"
67
+ ],
68
+ "tools": {
69
+ "dispatch": {
70
+ "approval_mode": "approve"
71
+ }
72
+ }
73
+ }
74
+ },
75
+ "interface": {
76
+ "displayName": "Envoy",
77
+ "shortDescription": "This session on Dispatch's Agents page, with its messages",
78
+ "longDescription": "Registers this Codex session with Envoy under its own session id, so it shows on Dispatch's Agents page with a live view of its conversation. Messages sent to the session from the Agents page (Aside, BTW and Steer) and messages on Dispatch issues routed to it arrive in its conversation, and the dispatch tool runs the dispatch command as this session. Ships the Dispatch skills.",
79
+ "developerName": "Legion",
80
+ "category": "Productivity",
81
+ "capabilities": [
82
+ "Interactive",
83
+ "Write"
84
+ ],
85
+ "defaultPrompt": [
86
+ "Use $dispatch-first to find the Dispatch issue for this work."
87
+ ]
88
+ }
89
+ }
package/README.md CHANGED
@@ -1,3 +1,24 @@
1
- # Temporary Holding Version
1
+ # Envoy for the Codex CLI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `@sjawhar/codex-envoy` is Legion's Envoy and Dispatch plugin for the Codex CLI.
4
+ A Codex session that loads it registers with Envoy under its own session id and shows on Dispatch's
5
+ Agents page with a live view of its conversation.
6
+ Messages sent to it from the Agents page (Aside, BTW and Steer) and messages on Dispatch issues
7
+ routed to it arrive in its conversation, and its `dispatch` tool runs the `dispatch` command as
8
+ the session.
9
+ It ships the Dispatch skills.
10
+
11
+ That holds for a session in a `codex` process of its own, such as the terminal on Codex 0.154.0
12
+ or `codex exec`.
13
+ Codex's shared app server runs several sessions in one process (`codex agents`, a plain `codex`
14
+ that joins a running one, and on Codex 0.170.0 every terminal session), and there the plugin
15
+ registers no session with Envoy: such a session gets no Envoy messages and does not show on the
16
+ Agents page, though its `dispatch` tool and its Dispatch hooks still work.
17
+
18
+ ```bash
19
+ codex plugin marketplace add cybermonklabs/legion
20
+ codex plugin add codex-envoy@legion-plugins
21
+ ```
22
+
23
+ It is built from the same source as the Claude Code plugin, `@sjawhar/claude-envoy`, whose README
24
+ describes both hosts: https://github.com/cybermonklabs/legion/tree/main/packages/claude-envoy