@north-light/crouter-api 0.3.175 → 0.3.176
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/dto/nodes.d.ts +7 -1
- package/dist/dto/profiles.d.ts +3 -0
- package/package.json +1 -1
package/dist/dto/nodes.d.ts
CHANGED
|
@@ -5,7 +5,13 @@ export interface CreateNodeRequest {
|
|
|
5
5
|
prompt?: string;
|
|
6
6
|
profile?: string;
|
|
7
7
|
mode?: ModeDTO;
|
|
8
|
+
/** The DIRECTORY CONTEXT the create came from — not necessarily where the
|
|
9
|
+
* node lands. It is what the daemon selects a profile from when the request
|
|
10
|
+
* neither names one nor inherits one from a parent. */
|
|
8
11
|
cwd?: string;
|
|
12
|
+
/** Pin the node to this exact directory, overriding the profile home a node
|
|
13
|
+
* otherwise runs in. See `crtr node new --cwd`. */
|
|
14
|
+
pin_cwd?: string;
|
|
9
15
|
/** Display name (tmux window + resume picker). Defaults to the kind. */
|
|
10
16
|
name?: string;
|
|
11
17
|
parent?: NodeIdDTO | null;
|
|
@@ -22,7 +28,7 @@ export interface CreateNodeRequest {
|
|
|
22
28
|
* HTTP 409 `node_id_exists`). See `crtr node new --node-id`. */
|
|
23
29
|
node_id?: string;
|
|
24
30
|
/** Serve this create from the warm pool when a pre-booted spare matches the
|
|
25
|
-
* request's frozen launch tuple (kind, mode, cwd, profile, model,
|
|
31
|
+
* request's frozen launch tuple (kind, mode, resolved cwd, profile, model,
|
|
26
32
|
* situational_context) — answering in milliseconds instead of waiting out a
|
|
27
33
|
* full engine boot. Only a bare root with no kickoff qualifies; anything the
|
|
28
34
|
* pool cannot honor (or an empty pool) falls back to an ordinary cold spawn,
|
package/dist/dto/profiles.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export interface ProfileDTO {
|
|
|
9
9
|
id: string;
|
|
10
10
|
name: string;
|
|
11
11
|
projects: string[];
|
|
12
|
+
/** Where nodes under this profile run — one of `projects` (the first unless
|
|
13
|
+
* re-pointed), or null when the profile owns none. */
|
|
14
|
+
home: string | null;
|
|
12
15
|
/** The directory this profile is pinned as default for, if any. */
|
|
13
16
|
default_dir?: string | null;
|
|
14
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/crouter-api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.176",
|
|
4
4
|
"description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, and the CrtrClient. Zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|