@elaraai/e3-cloud-codex-plugin 1.1.18 → 1.1.20
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.121_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.121_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.121_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.121_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.121_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.121_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.121_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.121_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.121_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.121_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.121_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.121_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.121_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.121_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.20",
|
|
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
|
@@ -874,10 +874,15 @@
|
|
|
874
874
|
"package": "e3-cloud-cli",
|
|
875
875
|
"file": "static",
|
|
876
876
|
"suite": "e3-cloud app --for-platform",
|
|
877
|
-
"test": "Before a platform upgrade:
|
|
877
|
+
"test": "Before a platform upgrade: deploy each app built with the next e3 as always; it is prepared by itself, its own package held for the move where the repository lacks it, and nothing is removed",
|
|
878
878
|
"keywords": [
|
|
879
879
|
"for-platform",
|
|
880
880
|
"stage",
|
|
881
|
+
"prepare",
|
|
882
|
+
"prepared build",
|
|
883
|
+
"hold",
|
|
884
|
+
"held package",
|
|
885
|
+
"remove-prepared",
|
|
881
886
|
"platform upgrade",
|
|
882
887
|
"e3 version",
|
|
883
888
|
"list-all",
|
|
@@ -885,7 +890,7 @@
|
|
|
885
890
|
"builtWith"
|
|
886
891
|
],
|
|
887
892
|
"imports": [],
|
|
888
|
-
"source": "e3-cloud app
|
|
893
|
+
"source": "# At a version change of e3 (nothing is removed):\n# 1. bump the project's @elaraai dependencies to the next release (1.0.88, say)\n# 2. if an app has a page reading a record through indexes, give the package a new version in its source\n# 3. deploy each app as always: a build of a newer e3 than the platform runs is prepared by itself\ne3-cloud app deploy https://e3.example.com/repos/acme staging --from-source src/apps/ops.tsx\n# This platform runs e3 1.0.87, and ops is built with e3 1.0.88: preparing it for the platform's move to e3 1.0.88 on staging. …\n# where the repository lacks the package it was built against (acme@1.6.0, say), the platform holds it for the move:\n# Holding acme@1.6.0 (exported with e3 1.0.88) in acme for the platform's move to e3 1.0.88: the move imports it and deploys it to staging\n# the same version exported to other bytes: prepared on the workspace's package when the app fits it; else refused, saying to give it a new version\n# 4. release staging to production\ne3-cloud release https://e3.example.com/repos/acme staging production # carries the prepared builds to production\ne3-cloud app list https://e3.example.com/repos/acme staging # … · build for 1.0.88 prepared, with acme@1.6.0\ne3-cloud app remove-prepared https://e3.example.com/repos/acme staging ops # removes a prepared build; the live version stays\ne3-cloud app list-all https://e3.example.com # admin: every app, and which needs a build for the platform's e3\n# a changed package under an unchanged version is refused: a version names one package once in use, and the move imports exactly what was checked",
|
|
889
894
|
"languages": [
|
|
890
895
|
"typescript"
|
|
891
896
|
]
|
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.20",
|
|
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",
|
|
@@ -147,19 +147,23 @@ e3-cloud app versions URL staging ops
|
|
|
147
147
|
### 4. Change the package
|
|
148
148
|
|
|
149
149
|
```bash
|
|
150
|
-
e3 workspace deploy URL staging --from-source src/package.ts --
|
|
151
|
-
e3 workspace deploy URL staging --from-source src/package.ts
|
|
150
|
+
e3 workspace deploy URL staging --from-source src/package.ts --plan
|
|
151
|
+
e3 workspace deploy URL staging --from-source src/package.ts
|
|
152
152
|
e3 dataflow run URL staging
|
|
153
153
|
```
|
|
154
154
|
|
|
155
155
|
- `--plan` says what the deploy does to each record, index and input, and
|
|
156
|
-
writes nothing.
|
|
157
|
-
|
|
156
|
+
writes nothing. A deploy keeps the inputs people set while their type is
|
|
157
|
+
unchanged (`--inputs keep-edited`, the default since e3 1.0.120);
|
|
158
|
+
`--inputs reset` gives every input the package's value.
|
|
158
159
|
- A deploy that would break an app of the workspace is refused, naming each
|
|
159
160
|
app's problems: rebuild the apps against the new package and deploy them
|
|
160
161
|
with it (`e3-cloud app deploy … --from-source`, which deploys the package
|
|
161
162
|
first).
|
|
162
|
-
- A deploy runs nothing
|
|
163
|
+
- A deploy runs nothing, but sets each task's output its execution cache
|
|
164
|
+
still serves (for at most 30 s, never failing the deploy; a deploy that
|
|
165
|
+
stops short says so among its warnings): the next run computes only the
|
|
166
|
+
tasks whose inputs changed, and what the deploy left. Files
|
|
163
167
|
declarations that no longer fit the package make a sync refuse until
|
|
164
168
|
they're deployed again (6).
|
|
165
169
|
|
|
@@ -324,15 +328,61 @@ e3-cloud feedback close URL/workspaces/production 12
|
|
|
324
328
|
|
|
325
329
|
```bash
|
|
326
330
|
e3-cloud app list-all https://e3.example.com # admins: which apps need a bundle
|
|
327
|
-
e3-cloud app deploy URL staging --from-source src/apps/ops.tsx
|
|
331
|
+
e3-cloud app deploy URL staging --from-source src/apps/ops.tsx # built with the next e3: prepared by itself
|
|
328
332
|
e3-cloud release URL staging production
|
|
329
333
|
```
|
|
330
334
|
|
|
335
|
+
At a version change of e3, step by step (nothing is removed):
|
|
336
|
+
|
|
337
|
+
1. Bump the project's `@elaraai` dependencies to the release built with the next e3.
|
|
338
|
+
2. If an app has a page that reads a record through indexes, give the package a new version in its source.
|
|
339
|
+
3. Deploy each app as always: `e3-cloud app deploy URL staging --from-source src/apps/ops.tsx`. A build made with a newer e3 than the platform runs is prepared for the platform's move by itself.
|
|
340
|
+
4. Release staging to production: `e3-cloud release URL staging production`.
|
|
341
|
+
|
|
342
|
+
A version names one package once it is in use (two workspaces, a staging or a protected workspace, or a build prepared on it), and the move must import exactly the package each build was checked against. So when a build's package is the version the workspace runs at other bytes, `app deploy` (with no flag) tells the two cases apart by what differs:
|
|
343
|
+
- **Code alone** (a function's compiled code with its signature unchanged; a task whose object differs, which includes its inputs and its runner as well as its code; a record's programs: its mutations', indexes' or migrations' code), which the next e3's export also changes: the build is prepared on the package the workspace runs if the app fits it, and the CLI says so first: "This prepares ops on the package production runs, acme@1.5.0, not on the package built here: a change you made to the package's code is not deployed. To send it with the app, give acme a new version in its source and deploy again". A change to a function's body or a task's logic is code alone, so it is not deployed this way.
|
|
344
|
+
- **Anything e3 shows** (a dataset, a type, a function's signature, an initial value, a file source): that is your change to the package, and it is refused before anything is sent, naming what differs, with the step: give the package a new version (it is X now). Where an input's file source differs, the workspace's Files declarations must fit the new version too: until they do, its deploy is refused `package_files_differ`, which says how.
|
|
345
|
+
- Which case a difference is is decided where the comparison finds it, never from its words. Two packages whose hashes differ where the comparison reads nothing different (a part it does not read) are said so on a line of their own, and refused as a change shown, never bound as code alone.
|
|
346
|
+
- A page that reads through indexes, or a fit the checks refuse, is refused the same way.
|
|
347
|
+
|
|
348
|
+
`--against-workspace`, given explicitly, binds as it always has, saying what differs.
|
|
349
|
+
|
|
331
350
|
- Build with the e3 cloud release built with the next e3 (its packages pin
|
|
332
|
-
it) and
|
|
333
|
-
platform moves to that e3. A release
|
|
334
|
-
|
|
335
|
-
|
|
351
|
+
it) and prepare a build of each app beside its live version: it goes live
|
|
352
|
+
when the platform moves to that e3. A release carries staging's prepared
|
|
353
|
+
builds, so production gets them through its staging.
|
|
354
|
+
- A build may bring a package of its own, one the repository lacks: the
|
|
355
|
+
platform holds it until the move ("Holding acme@1.6.0 (exported with e3
|
|
356
|
+
1.0.93) in acme for the platform's move to e3 1.0.93: …"), and the move
|
|
357
|
+
deploys it to each workspace a build is prepared on with it, keeping the
|
|
358
|
+
inputs people set and migrating records, with no run (each such workspace
|
|
359
|
+
then usually needs one: the deploy keeps only the outputs of tasks it
|
|
360
|
+
leaves unchanged, and the next e3's export usually changes every task).
|
|
361
|
+
The CLI checks the build against that package first, by the project's
|
|
362
|
+
checks, and holds nothing when it does not fit; a platform
|
|
363
|
+
on an older e3 may not read the package, and then checks the build only
|
|
364
|
+
at the move, before it deploys. `--dry-run` with a package not held yet is
|
|
365
|
+
answered by those checks alone. After preparing, the CLI names the
|
|
366
|
+
workspace's apps still without a build. A deployment gains this only once
|
|
367
|
+
it runs a release that has it: an older one says so, naming its release,
|
|
368
|
+
and offers `--against-workspace`.
|
|
369
|
+
- `app list` shows `· build for 1.0.93 prepared, with acme@1.6.0`; `app
|
|
370
|
+
remove-prepared URL staging ops` removes a prepared build, the live
|
|
371
|
+
version staying. Another build of a held version is refused: give the
|
|
372
|
+
package a new version (an admin alone may `--replace` the zip held, while
|
|
373
|
+
no build is prepared on it).
|
|
374
|
+
- Refused `package_version_conflict` (the next e3 exports the package to
|
|
375
|
+
other bytes, a Python-authored function's code say)? Build against the
|
|
376
|
+
package staging runs: `e3-cloud app deploy URL staging --from-source
|
|
377
|
+
src/apps/ops.tsx --against-workspace --for-platform 1.0.93`. The bundle
|
|
378
|
+
names that package and carries none. It needs nothing of the platform's
|
|
379
|
+
release. It is refused for a source of another version, for an app with a
|
|
380
|
+
page reading a record through indexes (prepare it with a package of its own
|
|
381
|
+
instead, above),
|
|
382
|
+
and when its pages bind what staging's package declares otherwise (in the
|
|
383
|
+
platform's checks' words); a bundle carrying no package deploys only onto
|
|
384
|
+
exactly its package, as read seconds before the deploy (a workspace deploy
|
|
385
|
+
finishing within them is said loudly, exit 1).
|
|
336
386
|
|
|
337
387
|
### 14. Retire
|
|
338
388
|
|
|
@@ -353,7 +403,9 @@ e3-cloud release URL staging production --remove-apps
|
|
|
353
403
|
when the repository lacks it, checks every app against it, and deploys: at
|
|
354
404
|
once when the workspace runs that package (UI only); else the package deploys
|
|
355
405
|
first, keeping the inputs people set, and the apps go live as it completes
|
|
356
|
-
(the CLI waits). `--dry-run` checks and changes nothing
|
|
406
|
+
(the CLI waits). `--dry-run` checks and changes nothing a person, a deploy
|
|
407
|
+
or a listing can see: no package is imported or held, and the build it
|
|
408
|
+
sends to be checked is dropped, its object never written; `--from-source`
|
|
357
409
|
builds sources instead of bundles; several apps deploy together or not at all.
|
|
358
410
|
- An app is developed in the cloud, not locally: deploy it to a workspace
|
|
359
411
|
of your own (`--from-source` after each change, `--dry-run` to check
|
|
@@ -362,9 +414,18 @@ e3-cloud release URL staging production --remove-apps
|
|
|
362
414
|
- `app deploy` and `app remove` to a protected workspace are refused, naming
|
|
363
415
|
its staging; an admin alone forces one with `--force`, which warns first and
|
|
364
416
|
which the workspace's history records as forced.
|
|
365
|
-
- `app deploy … --for-platform <version>`
|
|
366
|
-
platform's next e3
|
|
367
|
-
|
|
417
|
+
- `app deploy … --for-platform <version>` prepares a build made with the
|
|
418
|
+
platform's next e3, holding its own package for the move where the
|
|
419
|
+
repository lacks it (`--replace`, an admin's, replaces a zip held); `app
|
|
420
|
+
remove-prepared` removes one; `app list-all` (admins) lists every app and
|
|
421
|
+
which needs one.
|
|
422
|
+
- `--against-workspace` (`app build <source> --against-workspace
|
|
423
|
+
<workspace-url>`, or `app deploy … --from-source … --against-workspace`)
|
|
424
|
+
builds against the package the workspace runs, as the repository holds it,
|
|
425
|
+
not the package the source exports again: the bundle carries no package.
|
|
426
|
+
Only for a source of that package and version, with no page reading a
|
|
427
|
+
record through indexes, whose pages fit the held package; other differences
|
|
428
|
+
are printed.
|
|
368
429
|
|
|
369
430
|
## Staging
|
|
370
431
|
|
|
@@ -118,7 +118,7 @@ What do you need?
|
|
|
118
118
|
│ ├─ Undo a release → e3-cloud rollback <url> <production> (declarations go back with the package)
|
|
119
119
|
│ ├─ An emergency change → e3-cloud files deploy … --force (an admin's; history records it; the next release undoes it)
|
|
120
120
|
│ └─ Rehearse on production's files → e3-cloud staging add … (a copy: values kept, own storage empty), then bind ../production/upload/
|
|
121
|
-
├─ Keep synced inputs across a package deploy → e3 workspace deploy … --inputs
|
|
121
|
+
├─ Keep synced inputs across a package deploy → e3 workspace deploy … (keep-edited, the default; --inputs reset resets them)
|
|
122
122
|
└─ Drive it from code
|
|
123
123
|
├─ The checks → @elaraai/e3-cloud-files/check: checkFiles, checkBindings, readPackageSurface
|
|
124
124
|
├─ The sync over your own ports → @elaraai/e3-cloud-files/sync: syncFiles (FilesReader, FilesWriter, FilesLedger), planPush
|
|
@@ -286,9 +286,9 @@ keeps only each folder's n greatest keys.
|
|
|
286
286
|
So is a file the sync can't read (archived, under a key it may not use,
|
|
287
287
|
changed while it read it): the sync goes on, and the next tries it again.
|
|
288
288
|
- Deploying a new package can make the declarations no longer fit: a sync then
|
|
289
|
-
refuses until they're deployed again. A package deploy
|
|
290
|
-
|
|
291
|
-
them again whole.
|
|
289
|
+
refuses until they're deployed again. A package deploy keeps synced inputs
|
|
290
|
+
as they are (`--inputs keep-edited`, the default); one asked to reset them
|
|
291
|
+
(`--inputs reset`) empties them, and the next sync takes them again whole.
|
|
292
292
|
- A changed declaration has its targets taken again whole at the next sync;
|
|
293
293
|
so does a source bound elsewhere, for the targets that took files where it
|
|
294
294
|
was (`files bind` names them).
|