@north-light/cli 0.3.415 → 0.3.417
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/dist/builtin-memory/00-runtime-base/00-authoring.md +3 -1
- package/dist/cli.js +7 -7
- package/dist/clients/attach/viewer.js +1025 -1055
- package/dist/core/grants/on-sync.js +1 -1
- package/dist/core/graph/custom.js +5 -5
- package/dist/core/graph/reader.js +3 -3
- package/dist/core/graph/spaces/app.js +1 -1
- package/dist/core/graph/types.d.ts +5 -0
- package/dist/core/runs/confinement.d.ts +2 -0
- package/dist/core/runs/confinement.js +2 -2
- package/dist/core/runtime/recap.js +1 -1
- package/dist/core/runtime/run-command.d.ts +4 -0
- package/dist/core/runtime/run-command.js +1 -1
- package/dist/core/spaces/mounts.d.ts +5 -0
- package/dist/core/spaces/mounts.js +1 -1
- package/dist/core/spaces/process.d.ts +8 -0
- package/dist/core/spaces/process.js +1 -1
- package/dist/daemon/api/handlers/crons.js +1 -1
- package/dist/daemon/api/handlers/files.js +1 -1
- package/dist/daemon/api/handlers/nodes.js +1 -1
- package/dist/daemon/api/handlers/providers.js +1 -1
- package/dist/daemon/api/handlers/runs.js +1 -1
- package/dist/daemon/api/operations.d.ts +1 -1
- package/dist/daemon/api/operations.js +1 -1
- package/dist/daemon/api/router.d.ts +15 -0
- package/dist/daemon/api/router.js +1 -1
- package/dist/daemon/api/server.d.ts +5 -1
- package/dist/daemon/api/server.js +1 -1
- package/dist/daemon/cron/live-runs.d.ts +28 -0
- package/dist/daemon/cron/live-runs.js +1 -1
- package/dist/daemon/cron/run-socket.d.ts +30 -0
- package/dist/daemon/cron/run-socket.js +1 -0
- package/dist/daemon/cron-run.js +2 -1
- package/dist/daemon/crtrd.js +7 -7
- package/dist/daemon/reconcilers/cron-lane.js +1 -1
- package/dist/shared/env.d.ts +6 -5
- package/dist/shared/env.js +2 -2
- package/dist/types.js +1 -1
- package/package.json +9 -9
- package/packages/crouter-identity/package.json +1 -1
- package/runtime.lock.json +338 -2057
- package/scripts/postinstall.mjs +9 -0
package/scripts/postinstall.mjs
CHANGED
|
@@ -35,6 +35,15 @@ async function main() {
|
|
|
35
35
|
console.warn('[crtr postinstall] pi tree-root-ordering patch failed (non-fatal):', error?.message ?? error);
|
|
36
36
|
}
|
|
37
37
|
if (process.env.CI) return;
|
|
38
|
+
// A git checkout is a development tree: its `dist/` is whatever was last built
|
|
39
|
+
// (often stale against the dependencies just installed), and the global `crtr`
|
|
40
|
+
// may be linked to it. Staging it here would silently select that mix as the
|
|
41
|
+
// live runtime for every node on the machine. Generations from a checkout come
|
|
42
|
+
// only from an explicit `npm run build && npm run install-runtime`.
|
|
43
|
+
if (existsSync(join(ROOT, '.git'))) {
|
|
44
|
+
console.log('crouter source checkout installed. Run `npm run build && npm run install-runtime` to produce a runtime generation.');
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
38
47
|
// A published tarball always ships `dist/`; a source checkout being installed
|
|
39
48
|
// never does, and its runtime generation comes from an explicit
|
|
40
49
|
// `npm run build && npm run install-runtime` afterwards. Staging an unbuilt
|