@north-light/crouter-api 0.3.214 → 0.3.216

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.
@@ -17,7 +17,8 @@ export interface NodeSubjectDTO {
17
17
  }
18
18
  /** `POST /v1/nodes` body. Carries the full immediate spawn recipe. */
19
19
  export interface CreateNodeRequest {
20
- kind: string;
20
+ /** Persona kind. Omit to resolve the selected profile's `default_kind`, then `general`. */
21
+ kind?: string;
21
22
  prompt?: string;
22
23
  profile?: string;
23
24
  mode?: ModeDTO;
@@ -1,7 +1,13 @@
1
- /** `PUT /v1/profiles/{name}` body — idempotent ensure. */
1
+ /** `PUT /v1/profiles/{name}` body — idempotent ensure. Every field applies
2
+ * only at create; an existing same-named profile is returned untouched. */
2
3
  export interface EnsureProfileRequest {
3
4
  /** Absolute project directories in the profile's purview. */
4
5
  projects?: string[];
6
+ /** Persona kind for node creates under the profile that omit kind. */
7
+ default_kind?: string;
8
+ /** Profile facts (identity, role); each entry reaches every broker
9
+ * launched under the profile as `CRTR_PROFILE_META_<KEY>` env. */
10
+ metadata?: Record<string, string>;
5
11
  }
6
12
  /** `DELETE /v1/profiles/{name}` body. Destructive deletion is never implicit. */
7
13
  export interface DeleteProfileRequest {
@@ -35,6 +41,12 @@ export interface ProfileDTO {
35
41
  /** Where nodes under this profile run — one of `projects` (the first unless
36
42
  * re-pointed), or null when the profile owns none. */
37
43
  home: string | null;
44
+ /** ISO timestamp when the profile was paused, or null while active. */
45
+ paused_at: string | null;
46
+ /** Default node kind when a create omits kind; `general` when absent on the manifest. */
47
+ default_kind: string;
48
+ /** Stored profile facts; empty when the manifest carries none. */
49
+ metadata: Record<string, string>;
38
50
  /** The directory this profile is pinned as default for, if any. */
39
51
  default_dir?: string | null;
40
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/crouter-api",
3
- "version": "0.3.214",
3
+ "version": "0.3.216",
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/api/index.js",