@elaraai/e3-cloud-codex-plugin 1.1.20 → 1.1.22
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
1
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/codex-hook.js
|
|
2
2
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
3
3
|
import { existsSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import { tmpdir } from "node:os";
|
|
6
6
|
import { join, resolve as resolve3 } from "node:path";
|
|
7
7
|
|
|
8
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
8
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/codex-tools.js
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
function patchFiles(command, cwd) {
|
|
11
11
|
const files = [];
|
|
@@ -43,7 +43,7 @@ function shellReadPaths(command, cwd) {
|
|
|
43
43
|
return [...paths];
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
46
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/bash-writes.js
|
|
47
47
|
import { resolve as resolve2 } from "node:path";
|
|
48
48
|
function isRealPath(token) {
|
|
49
49
|
if (token === "" || token.startsWith("&"))
|
|
@@ -92,7 +92,7 @@ function writtenPaths(command, cwd) {
|
|
|
92
92
|
return [...found];
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
95
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/transcript.js
|
|
96
96
|
import { readFile } from "node:fs/promises";
|
|
97
97
|
var SEARCH_TOOLS = ["mcp__plugin_east_east__search_east_examples", "mcp__plugin_east_east__get_east_example", "mcp__east__search_east_examples", "mcp__east__get_east_example"];
|
|
98
98
|
async function searchedInTranscript(transcriptPath, tools = SEARCH_TOOLS) {
|
|
@@ -105,7 +105,7 @@ async function searchedInTranscript(transcriptPath, tools = SEARCH_TOOLS) {
|
|
|
105
105
|
return tools.some((tool) => raw.includes(`"name":"${tool}"`) || raw.includes(`"name": "${tool}"`));
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
108
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/search-guidance.js
|
|
109
109
|
var EAST_GUIDANCE = {
|
|
110
110
|
searchTool: "mcp__plugin_east_east__search_east_examples",
|
|
111
111
|
getTool: "mcp__plugin_east_east__get_east_example",
|
|
@@ -147,7 +147,7 @@ var GATE_TEXT = gateText(EAST_GUIDANCE);
|
|
|
147
147
|
var READ_TEXT = readText(EAST_GUIDANCE);
|
|
148
148
|
var isExampleCorpusRead = corpusReadFor(EAST_GUIDANCE.scope);
|
|
149
149
|
|
|
150
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
150
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/codex-hook.js
|
|
151
151
|
function codexToolCall(event) {
|
|
152
152
|
const cwd = event.cwd || process.cwd();
|
|
153
153
|
const input = event.tool_input ?? {};
|
|
@@ -199,7 +199,7 @@ async function codexSearchGate(event, options, call = codexToolCall(event)) {
|
|
|
199
199
|
return context.length > 0 ? { decision: "context", text: context.join("\n\n") } : null;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
202
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/host.js
|
|
203
203
|
import { existsSync as existsSync2 } from "node:fs";
|
|
204
204
|
import { fileURLToPath } from "node:url";
|
|
205
205
|
var isCodex = existsSync2(fileURLToPath(new URL("../../.codex-plugin/plugin.json", import.meta.url)));
|
|
@@ -207,7 +207,7 @@ function hostText(text) {
|
|
|
207
207
|
return isCodex ? text.replaceAll("mcp__plugin_east_east__", "").replaceAll("/east:", "$east-codex-plugin:").replaceAll("Claude Code", "Codex") : text;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
210
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/hook-io.js
|
|
211
211
|
async function readHookInput() {
|
|
212
212
|
let input = "";
|
|
213
213
|
for await (const chunk of process.stdin) {
|
|
@@ -235,7 +235,7 @@ function writeHookDecision(hookEventName, decision, reason) {
|
|
|
235
235
|
process.stdout.write(JSON.stringify(output));
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
238
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/search-hooks.js
|
|
239
239
|
function writeSearchHookReply(hookEventName, reply) {
|
|
240
240
|
if (reply.decision === "deny")
|
|
241
241
|
writeHookDecision(hookEventName, "deny", reply.text);
|
package/.build/mcp/server.js
CHANGED
|
@@ -21556,7 +21556,7 @@ var StdioServerTransport = class {
|
|
|
21556
21556
|
}
|
|
21557
21557
|
};
|
|
21558
21558
|
|
|
21559
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
21559
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/search.js
|
|
21560
21560
|
import { readFile } from "node:fs/promises";
|
|
21561
21561
|
|
|
21562
21562
|
// ../../node_modules/.pnpm/minisearch@7.2.0/node_modules/minisearch/dist/es/index.js
|
|
@@ -23369,7 +23369,7 @@ var objectToNumericMapAsync = async (object3) => {
|
|
|
23369
23369
|
var wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
23370
23370
|
var SPACE_OR_PUNCTUATION = /[\n\r\p{Z}\p{P}]+/u;
|
|
23371
23371
|
|
|
23372
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
23372
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/search-guidance.js
|
|
23373
23373
|
var EAST_GUIDANCE = {
|
|
23374
23374
|
searchTool: "mcp__plugin_east_east__search_east_examples",
|
|
23375
23375
|
getTool: "mcp__plugin_east_east__get_east_example",
|
|
@@ -23411,7 +23411,7 @@ var GATE_TEXT = gateText(EAST_GUIDANCE);
|
|
|
23411
23411
|
var READ_TEXT = readText(EAST_GUIDANCE);
|
|
23412
23412
|
var isExampleCorpusRead = corpusReadFor(EAST_GUIDANCE.scope);
|
|
23413
23413
|
|
|
23414
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
23414
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/search.js
|
|
23415
23415
|
var MIN_SCORE = 5;
|
|
23416
23416
|
async function loadIndexes(indexPaths) {
|
|
23417
23417
|
const entries = [];
|
|
@@ -23537,7 +23537,7 @@ function getEntry(index, id) {
|
|
|
23537
23537
|
return stored === void 0 ? null : stored;
|
|
23538
23538
|
}
|
|
23539
23539
|
|
|
23540
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
23540
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/mcp/example-tools.js
|
|
23541
23541
|
var EAST_PACKAGES = ["east", "east-node-std", "east-node-io", "east-py-datascience", "east-ui", "e3-ui", "e3", "e3-ui-cli", "e3-create"];
|
|
23542
23542
|
function isLoaded(index) {
|
|
23543
23543
|
return typeof index.then === "function";
|
|
@@ -23610,7 +23610,7 @@ function registerExampleTools(server2, options) {
|
|
|
23610
23610
|
import { fileURLToPath } from "node:url";
|
|
23611
23611
|
var E3_CLOUD_INDEX_PATH = fileURLToPath(new URL("../../index.json", import.meta.url));
|
|
23612
23612
|
|
|
23613
|
-
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.
|
|
23613
|
+
// ../../node_modules/.pnpm/@elaraai+east-plugin@1.0.122_typescript@5.9.3/node_modules/@elaraai/east-plugin/dist/lib/transcript.js
|
|
23614
23614
|
var SEARCH_TOOLS = ["mcp__plugin_east_east__search_east_examples", "mcp__plugin_east_east__get_east_example", "mcp__east__search_east_examples", "mcp__east__get_east_example"];
|
|
23615
23615
|
|
|
23616
23616
|
// ../e3-cloud-plugin/dist/lib/names.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "e3-cloud-codex-plugin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
4
4
|
"description": "e3 cloud - apps for hosted e3 workspaces with @elaraai/e3-cloud-ui, files from buckets as inputs with @elaraai/e3-cloud-files, the e3-cloud CLI and @elaraai/e3-cloud-client: skills, example search and the search-first hooks",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Elara AI",
|
package/index.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 2,
|
|
3
3
|
"stats": {
|
|
4
|
-
"totalEntries":
|
|
4
|
+
"totalEntries": 49,
|
|
5
5
|
"totalFiles": 3,
|
|
6
6
|
"packages": {
|
|
7
7
|
"e3-cloud-ui": 13,
|
|
8
8
|
"e3-cloud-files": 14,
|
|
9
|
-
"e3-cloud-cli":
|
|
9
|
+
"e3-cloud-cli": 16,
|
|
10
10
|
"e3-cloud-client": 6
|
|
11
11
|
}
|
|
12
12
|
},
|
|
@@ -1205,6 +1205,35 @@
|
|
|
1205
1205
|
"typescript"
|
|
1206
1206
|
]
|
|
1207
1207
|
},
|
|
1208
|
+
{
|
|
1209
|
+
"id": "e3-cloud-cli:static:deliveries-admin",
|
|
1210
|
+
"skill": "e3-cloud-cli",
|
|
1211
|
+
"package": "e3-cloud-cli",
|
|
1212
|
+
"file": "static",
|
|
1213
|
+
"suite": "e3-cloud admin deliveries",
|
|
1214
|
+
"test": "A repository's encrypted deliveries (Files.deliveries()), for server admins: the area, its OpenPGP keys' fingerprints, a key rotated or retired, and a probe of one delivered file: whether a sync would take it, its plaintext's size and the key it was encrypted to, or the sync's refusal in the sync's words, without taking it",
|
|
1215
|
+
"keywords": [
|
|
1216
|
+
"admin",
|
|
1217
|
+
"deliveries",
|
|
1218
|
+
"Files.deliveries",
|
|
1219
|
+
"OpenPGP",
|
|
1220
|
+
"key",
|
|
1221
|
+
"fingerprint",
|
|
1222
|
+
"--rotate-key",
|
|
1223
|
+
"--retire-key",
|
|
1224
|
+
"--retire-from",
|
|
1225
|
+
"--probe",
|
|
1226
|
+
"probe",
|
|
1227
|
+
"refused",
|
|
1228
|
+
"encrypted",
|
|
1229
|
+
"e3-cloud"
|
|
1230
|
+
],
|
|
1231
|
+
"imports": [],
|
|
1232
|
+
"source": "e3-cloud admin deliveries https://e3.example.com acme # the area, whether it is encrypted, every key's fingerprint (the public key only on a terminal)\ne3-cloud admin deliveries https://e3.example.com acme --rotate-key # a new current key; every earlier key kept and still decrypts\ne3-cloud admin deliveries https://e3.example.com acme --retire-key ABCD1234… # an earlier key closed to files written from now\n# Whether a sync would take one delivered file (its key relative to the deliveries folder), without taking it:\ne3-cloud admin deliveries https://e3.example.com acme --probe in/prices.csv\n# in/prices.csv would be taken: 23 bytes of plaintext, encrypted to the key with fingerprint 5EE4… (the current key)\n# or: in/prices.csv would be refused, in the words a sync gives:\n# in/prices.csv is not encrypted: deliveries take only OpenPGP messages to the deliveries key\n# exits 0 taken, 2 refused, 3 not found, 1 any other error; --probe goes alone",
|
|
1233
|
+
"languages": [
|
|
1234
|
+
"typescript"
|
|
1235
|
+
]
|
|
1236
|
+
},
|
|
1208
1237
|
{
|
|
1209
1238
|
"id": "e3-cloud-client:static:basics",
|
|
1210
1239
|
"skill": "e3-cloud-client",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elaraai/e3-cloud-codex-plugin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
4
4
|
"description": "e3 cloud - apps for hosted e3 workspaces with @elaraai/e3-cloud-ui, files from buckets as inputs with @elaraai/e3-cloud-files, the e3-cloud CLI and @elaraai/e3-cloud-client: skills, example search and the search-first hooks",
|
|
5
5
|
"license": "AGPL-3.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -507,6 +507,14 @@ path or a repository URL:
|
|
|
507
507
|
- `files status <repo> <ws>`: the declarations, where each source's files
|
|
508
508
|
are (`own storage upload/`, or a bucket's URL), what each mapping holds,
|
|
509
509
|
the last sync.
|
|
510
|
+
- `admin deliveries <server> <repo>` (server admins): a repository's
|
|
511
|
+
deliveries (`Files.deliveries()`, files a client sends, encrypted to the
|
|
512
|
+
deployment's OpenPGP key): where they are, every key's fingerprint,
|
|
513
|
+
`--rotate-key`, `--retire-key <fingerprint>`; and `--probe <key>`, whether
|
|
514
|
+
a sync would take one delivered file (its key relative to the deliveries
|
|
515
|
+
folder) without taking it: its plaintext's size and the key it was
|
|
516
|
+
encrypted to, or the sync's refusal in the sync's words. It exits 0 when
|
|
517
|
+
taken, 2 when refused, 3 when there is no such file, 1 otherwise.
|
|
510
518
|
|
|
511
519
|
## Traps
|
|
512
520
|
|