@north-light/cli 0.3.756 → 0.3.758

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 (50) hide show
  1. package/dist/api/contract.d.ts +1 -1
  2. package/dist/api/contract.js +1 -1
  3. package/dist/builtin-memory/internal/storage-tiers.md +2 -2
  4. package/dist/clients/attach/viewer.js +432 -432
  5. package/dist/commands/profile/new.js +1 -1
  6. package/dist/commands/profile/project.js +1 -1
  7. package/dist/commands/sys/import/move.d.ts +5 -0
  8. package/dist/commands/sys/import/move.js +7 -7
  9. package/dist/commands/sys/import/retry.d.ts +1 -0
  10. package/dist/commands/sys/import/retry.js +1 -0
  11. package/dist/commands/sys/import/start.js +1 -1
  12. package/dist/core/import/export/cloud.d.ts +1 -0
  13. package/dist/core/import/export/cloud.js +1 -1
  14. package/dist/core/import/load/bind.d.ts +5 -4
  15. package/dist/core/import/load/bind.js +16 -16
  16. package/dist/core/import/load/blobs.d.ts +6 -0
  17. package/dist/core/import/load/blobs.js +1 -1
  18. package/dist/core/import/load/prepare.js +8 -8
  19. package/dist/core/import/load/run.js +1 -1
  20. package/dist/core/profiles/manifest.js +1 -1
  21. package/dist/core/profiles/project-dir.d.ts +3 -0
  22. package/dist/core/profiles/project-dir.js +1 -0
  23. package/dist/daemon/api/handlers/imports.js +1 -1
  24. package/dist/daemon/api/handlers/profiles.js +1 -1
  25. package/dist/daemon/api/operations.js +1 -1
  26. package/dist/daemon/crtrd.js +12 -12
  27. package/dist/daemon/reconcilers/storage-maintenance.js +1 -1
  28. package/package.json +3 -3
  29. package/packages/crouter-api/dist/api/contract.js +1 -1
  30. package/packages/crouter-api/dist/commands/profile/new.js +2 -2
  31. package/packages/crouter-api/dist/commands/profile/project.js +2 -1
  32. package/packages/crouter-api/dist/commands/sys/import/move.js +1 -1
  33. package/packages/crouter-api/dist/commands/sys/import/retry.js +38 -0
  34. package/packages/crouter-api/dist/commands/sys/import/start.js +2 -1
  35. package/packages/crouter-api/dist/core/import/export/cloud.js +1 -0
  36. package/packages/crouter-api/dist/core/import/load/prepare.js +2 -2
  37. package/packages/crouter-api/dist/core/profiles/manifest.js +12 -18
  38. package/packages/crouter-api/dist/core/profiles/project-dir.js +20 -0
  39. package/packages/crouter-api/dist/daemon/api/operations.js +1 -0
  40. package/packages/crouter-api/package.json +1 -1
  41. package/packages/crouter-identity/package.json +1 -1
  42. package/packages/crouter-plugin/package.json +3 -3
  43. package/runtime.lock.json +14 -14
  44. package/scripts/install-runtime.mjs +1 -30
  45. package/dist/core/canvas/import-sqlite.d.ts +0 -46
  46. package/dist/core/canvas/import-sqlite.js +0 -19
  47. package/dist/core/canvas/migrations.d.ts +0 -16
  48. package/dist/core/canvas/migrations.js +0 -1073
  49. package/dist/migrations/004-canvas-documents/legacy-edges.d.ts +0 -6
  50. package/dist/migrations/004-canvas-documents/legacy-edges.js +0 -18
@@ -1,5 +1,5 @@
1
1
  /** The contract level this build serves and requires. Written by `scripts/contract.mjs release`; never edit by hand. */
2
- export declare const CONTRACT_LEVEL = "1.78";
2
+ export declare const CONTRACT_LEVEL = "1.79";
3
3
  /** Request header naming the one contract level the caller needs, e.g. `1.3`. Optional: absent means no check. */
4
4
  export declare const REQUIRED_CONTRACT_HEADER = "Crouter-Required-Contract";
5
5
  /** Response header listing the contract levels the server serves, comma-separated, one per major, e.g. `1.3`. */
@@ -1 +1 @@
1
- var c=Object.defineProperty;var e=(r,t)=>c(r,"name",{value:t,configurable:!0});const f="1.78",i="Crouter-Required-Contract",p="Crouter-Contract";function l(r){const t=/^(\d+)\.(\d+)$/.exec(r.trim());return t===null?null:{major:Number(t[1]),minor:Number(t[2])}}e(l,"parseContractLevel");function a(r){return r==null?[]:r.split(",").map(t=>l(t)).filter(t=>t!==null)}e(a,"parseServedContracts");function s(r,t){const n=l(r);return n===null?!1:(typeof t=="string"||t===null||t===void 0?a(t):t).some(u=>u.major===n.major&&u.minor>=n.minor)}e(s,"contractSatisfies");function C(r,t,n={}){if(r===void 0)return null;if(l(r)===null)return{status:400,code:"invalid_request",param:i,message:`${i} must be a contract level like 1.0.`};if(s(r,t))return null;const o=r.trim();return{status:426,code:"runtime_version_unsupported",message:t===null||a(t).length===0?`The runtime did not name its contract level; the caller requires contract ${o} or later. Roll the runtime forward.`:`The runtime serves contract ${t}; the caller requires contract ${o} or later within the same major. Roll the runtime forward, or pin an SDK whose crouterContract the runtime serves.`,details:{sdk_version:(n.legacyMinimum??"").trim(),runtime_version:n.runtimeVersion??null,required_contract:o,runtime_contract:t}}}e(C,"contractRefusal");export{p as CONTRACT_HEADER,f as CONTRACT_LEVEL,i as REQUIRED_CONTRACT_HEADER,C as contractRefusal,s as contractSatisfies,l as parseContractLevel,a as parseServedContracts};
1
+ var c=Object.defineProperty;var e=(r,t)=>c(r,"name",{value:t,configurable:!0});const f="1.79",i="Crouter-Required-Contract",p="Crouter-Contract";function l(r){const t=/^(\d+)\.(\d+)$/.exec(r.trim());return t===null?null:{major:Number(t[1]),minor:Number(t[2])}}e(l,"parseContractLevel");function a(r){return r==null?[]:r.split(",").map(t=>l(t)).filter(t=>t!==null)}e(a,"parseServedContracts");function s(r,t){const n=l(r);return n===null?!1:(typeof t=="string"||t===null||t===void 0?a(t):t).some(u=>u.major===n.major&&u.minor>=n.minor)}e(s,"contractSatisfies");function C(r,t,n={}){if(r===void 0)return null;if(l(r)===null)return{status:400,code:"invalid_request",param:i,message:`${i} must be a contract level like 1.0.`};if(s(r,t))return null;const o=r.trim();return{status:426,code:"runtime_version_unsupported",message:t===null||a(t).length===0?`The runtime did not name its contract level; the caller requires contract ${o} or later. Roll the runtime forward.`:`The runtime serves contract ${t}; the caller requires contract ${o} or later within the same major. Roll the runtime forward, or pin an SDK whose crouterContract the runtime serves.`,details:{sdk_version:(n.legacyMinimum??"").trim(),runtime_version:n.runtimeVersion??null,required_contract:o,runtime_contract:t}}}e(C,"contractRefusal");export{p as CONTRACT_HEADER,f as CONTRACT_LEVEL,i as REQUIRED_CONTRACT_HEADER,C as contractRefusal,s as contractSatisfies,l as parseContractLevel,a as parseServedContracts};
@@ -15,7 +15,7 @@ Everything on the canvas — documents, nodes, jobs, owners, custom objects —
15
15
 
16
16
  ## 1. Where the database and blobs are
17
17
 
18
- - **On a Mac**, crtrd supervises its own Postgres 18 cluster under `<runtime>/pg/`; `CRTR_DATABASE_URL` points it at any other Postgres instead. Blobs are files under `<runtime>/blobs/`.
18
+ - **On a Mac not yet moved to the cloud**, the no-role crtrd supervises its own Postgres 18 cluster under `<runtime>/pg/`; this is the database `crtr sys import --kind machine` reads when moving the Mac to the cloud. `CRTR_DATABASE_URL` points it at any other Postgres instead. Blobs are files under `<runtime>/blobs/`.
19
19
  - **In the cloud**, the `api` and `reconcile` crtrd roles share one RDS Postgres with the directory (crouter's tables are in schema `crtr`), and blobs are in R2 (`CRTR_R2_BUCKET` plus the other `CRTR_R2_*` variables). The API processes share no disk, so anything they must both see is a row or a blob.
20
20
  - **An imported Mac** runs crtrd as the `machine` role: it opens no database and serves no API. It holds an outbound link to the cloud and runs that account's processes for nodes whose environment is this machine.
21
21
 
@@ -40,7 +40,7 @@ The layout root is `~/.crouter` on macOS and `/` on Linux (a container or sandbo
40
40
  - `crtrd.log` (the daemon's event stream), `crtrd.err` (raw residue), `generations/` and `selected` (sealed install generations — install machinery, not storage).
41
41
  - The API socket `api.sock` is here on macOS and in `/run/crtr` on Linux.
42
42
 
43
- Leftovers from older layouts may remain and are never read in normal operation: `canvas.db.imported*` (the one-time SQLite import into Postgres), `bodies/` (body files copied once into the `bodies` table), and per-node `meta.json`, `inbox.jsonl` and `transcript.jsonl`.
43
+ Files from older layouts (`canvas.db*`, `bodies/`, per-node `meta.json`, `inbox.jsonl` and `transcript.jsonl`) may remain on disk; nothing reads them and no command imports them.
44
44
 
45
45
  ### `apps/<app>/` — what an app's processes may touch
46
46