@elaraai/e3-cloud-codex-plugin 0.0.0-stage → 1.0.90-alpha.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/.build/hooks/codex-tools.js +306 -0
- package/.build/mcp/server.js +23610 -0
- package/.codex-plugin/plugin.json +34 -0
- package/.mcp.json +11 -0
- package/LICENSE.md +682 -0
- package/README.md +65 -2
- package/hooks/hooks.json +29 -0
- package/index.json +749 -0
- package/package.json +30 -4
- package/skills/e3-cloud-cli/SKILL.md +129 -0
- package/skills/e3-cloud-client/SKILL.md +76 -0
- package/skills/e3-cloud-ui/SKILL.md +108 -0
package/README.md
CHANGED
|
@@ -1,3 +1,66 @@
|
|
|
1
|
-
#
|
|
1
|
+
# e3 cloud plugin for Codex
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
e3 cloud for Codex: the `e3-cloud-ui`, `e3-cloud-cli` and `e3-cloud-client`
|
|
4
|
+
skills, the example search and the search-first hook, as the Claude Code
|
|
5
|
+
plugin has them. Install it beside East's Codex plugin, which covers East, e3
|
|
6
|
+
and e3-ui.
|
|
7
|
+
|
|
8
|
+
The plugin is the npm package `@elaraai/e3-cloud-codex-plugin`: its bundles,
|
|
9
|
+
its skills as real files (Codex caches only the plugin; each adapted to
|
|
10
|
+
Codex's names) and the example index, with no dependency. Installing it needs
|
|
11
|
+
no build.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Requires Node.js 22+ on `PATH` and a Codex client with `codex plugin` and
|
|
16
|
+
lifecycle hooks. The public catalog
|
|
17
|
+
[elaraai/plugins](https://github.com/elaraai/plugins) is a Codex marketplace,
|
|
18
|
+
named `elaraai-codex`, that lists the plugin at the version each release
|
|
19
|
+
publishes:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
codex plugin marketplace add elaraai/plugins
|
|
23
|
+
codex plugin add e3-cloud-codex-plugin@elaraai-codex
|
|
24
|
+
codex plugin add east-codex-plugin@elaraai-codex # East's, beside it
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Start a new Codex thread, open `/hooks` and trust the e3 cloud hook:
|
|
28
|
+
installation alone does not trust its command. Ask Codex to call
|
|
29
|
+
`search_e3_cloud_examples` with `query: "release staging to production"`.
|
|
30
|
+
|
|
31
|
+
A new release reaches you with `codex plugin marketplace upgrade elaraai-codex`,
|
|
32
|
+
then removing and adding the plugin. Pre-releases are the catalog's `beta`
|
|
33
|
+
branch (`codex plugin marketplace add elaraai/plugins --ref beta`, named
|
|
34
|
+
`elaraai-codex-beta`).
|
|
35
|
+
|
|
36
|
+
## The hook
|
|
37
|
+
|
|
38
|
+
Codex runs one hook for every tool (east-plugin's `codexSearchGate` with e3
|
|
39
|
+
cloud's names): after a search of e3 cloud's index or East's it records the
|
|
40
|
+
search; before a call it reminds a read of
|
|
41
|
+
`node_modules/@elaraai/e3-cloud-{ui,cli,client}`, and tells the first write of
|
|
42
|
+
code importing `@elaraai/e3-cloud-ui` or `@elaraai/e3-cloud-client` with no
|
|
43
|
+
search recorded to search first (`E3_CLOUD_REQUIRE_SEARCH=deny`: a refusal).
|
|
44
|
+
|
|
45
|
+
## Developing it
|
|
46
|
+
|
|
47
|
+
In e3 cloud's repository, `pnpm run plugins` (or `make plugins`) bundles the
|
|
48
|
+
plugin and assembles it, as npm publishes it, under
|
|
49
|
+
`packages/e3-cloud-plugin/marketplace/`: a local marketplace named
|
|
50
|
+
`elaraai-e3-cloud-codex`. Remove the catalog's
|
|
51
|
+
`e3-cloud-codex-plugin@elaraai-codex` first, since both are named
|
|
52
|
+
`e3-cloud-codex-plugin`, then:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
codex plugin marketplace add <checkout>/packages/e3-cloud-plugin/marketplace
|
|
56
|
+
codex plugin add e3-cloud-codex-plugin@elaraai-e3-cloud-codex
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Installed plugins run from a cached copy: after a rebuild, remove and add the
|
|
60
|
+
plugin again, and start a new thread. The shared package's README
|
|
61
|
+
(`packages/e3-cloud-plugin/README.md`) says how to change it.
|
|
62
|
+
|
|
63
|
+
## License
|
|
64
|
+
|
|
65
|
+
Dual-licensed under AGPL-3.0 and a commercial license. See
|
|
66
|
+
[LICENSE.md](LICENSE.md).
|
package/hooks/hooks.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "e3 cloud plugin hooks: the search-before-coding gate for code using @elaraai/e3-cloud-ui or @elaraai/e3-cloud-client, and a reminder on reading their installed packages",
|
|
3
|
+
"hooks": {
|
|
4
|
+
"PreToolUse": [
|
|
5
|
+
{
|
|
6
|
+
"matcher": "apply_patch|Bash|exec_command|shell_command|Read|Edit|Write|Grep|Glob|mcp__.*__(?:search_e3_cloud_examples|get_e3_cloud_example|search_east_examples|get_east_example)$",
|
|
7
|
+
"hooks": [
|
|
8
|
+
{
|
|
9
|
+
"type": "command",
|
|
10
|
+
"command": "node \"${PLUGIN_ROOT}/.build/hooks/codex-tools.js\"",
|
|
11
|
+
"timeout": 30
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"PostToolUse": [
|
|
17
|
+
{
|
|
18
|
+
"matcher": "mcp__.*__(?:search_e3_cloud_examples|get_e3_cloud_example|search_east_examples|get_east_example)$",
|
|
19
|
+
"hooks": [
|
|
20
|
+
{
|
|
21
|
+
"type": "command",
|
|
22
|
+
"command": "node \"${PLUGIN_ROOT}/.build/hooks/codex-tools.js\"",
|
|
23
|
+
"timeout": 30
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|