@north-light/api 0.3.492 → 0.3.493

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,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.13";
2
+ export declare const CONTRACT_LEVEL = "1.14";
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`. */
@@ -12,7 +12,7 @@
12
12
  //
13
13
  // PURITY (spec §3.1): Node built-ins + `src/api/*` only.
14
14
  /** The contract level this build serves and requires. Written by `scripts/contract.mjs release`; never edit by hand. */
15
- export const CONTRACT_LEVEL = '1.13';
15
+ export const CONTRACT_LEVEL = '1.14';
16
16
  /** Request header naming the one contract level the caller needs, e.g. `1.3`. Optional: absent means no check. */
17
17
  export const REQUIRED_CONTRACT_HEADER = 'Crouter-Required-Contract';
18
18
  /** Response header listing the contract levels the server serves, comma-separated, one per major, e.g. `1.3`. */
@@ -25,6 +25,14 @@ export interface ReviveResultDTO {
25
25
  * already running, `frozen` found no free broker slot and left the row
26
26
  * waiting for one. */
27
27
  outcome: 'launched' | 'already-live' | 'frozen';
28
+ /** Whether the node's `view.sock` accepted a connection, checked by the
29
+ * daemon in its own namespace (a caller's sandbox cannot see another node's
30
+ * socket) for up to 10 s, ending early if the launched broker exits. `true`
31
+ * means the node is attachable; nothing more — it does not show the task was
32
+ * delivered or the model is making progress. `false` means no connection
33
+ * yet: a slow start, an exited broker, or (`frozen`) no broker launched.
34
+ * Absent from a daemon that predates the field: readiness is then unknown. */
35
+ ready?: boolean;
28
36
  }
29
37
  /** `POST /v1/nodes/{id}/relaunch-root` result. A null id means the target
30
38
  * was not a relaunchable live root, or its replacement failed to launch. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/api",
3
- "version": "0.3.492",
3
+ "version": "0.3.493",
4
4
  "description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, the CrtrClient, and the command-plugin manifest format. Zero runtime dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/api/index.js",