@north-light/api 0.3.769 → 0.3.771
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/api/client.d.ts
CHANGED
|
@@ -231,8 +231,6 @@ export declare class CrtrClient {
|
|
|
231
231
|
commitBrokerModel(id: string, req: BrokerModelCommitRequest): Promise<BrokerModelCommitResultDTO>;
|
|
232
232
|
/** The sandbox's start bundle for an execution of the calling node. */
|
|
233
233
|
executionStart(executionId: string): Promise<StartBundleDTO>;
|
|
234
|
-
/** The calling node's imported files are unpacked in its sandbox (sets `import_node_files.unpacked_at`). */
|
|
235
|
-
executionImportUnpacked(executionId: string): Promise<void>;
|
|
236
234
|
/** A GitHub token limited to the environment's recipe repositories, for the calling node's environment. */
|
|
237
235
|
gitCredential(environmentId: string, req: GitCredentialRequest): Promise<GitCredentialDTO>;
|
|
238
236
|
/** File a crtr harness report as an issue on the crouter repository (a cloud node's report; the control plane attaches the node, environment and person). */
|
package/dist/api/client.js
CHANGED
|
@@ -406,10 +406,6 @@ export class CrtrClient {
|
|
|
406
406
|
executionStart(executionId) {
|
|
407
407
|
return this.request('GET', routes.executionStart(executionId));
|
|
408
408
|
}
|
|
409
|
-
/** The calling node's imported files are unpacked in its sandbox (sets `import_node_files.unpacked_at`). */
|
|
410
|
-
executionImportUnpacked(executionId) {
|
|
411
|
-
return this.request('POST', routes.executionImportUnpacked(executionId), {});
|
|
412
|
-
}
|
|
413
409
|
/** A GitHub token limited to the environment's recipe repositories, for the calling node's environment. */
|
|
414
410
|
gitCredential(environmentId, req) {
|
|
415
411
|
return this.request('POST', routes.environmentGitCredential(environmentId), req);
|
package/dist/api/contract.d.ts
CHANGED
|
@@ -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.
|
|
2
|
+
export declare const CONTRACT_LEVEL = "1.84";
|
|
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`. */
|
package/dist/api/contract.js
CHANGED
|
@@ -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.
|
|
15
|
+
export const CONTRACT_LEVEL = '1.84';
|
|
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`. */
|
|
@@ -22,16 +22,6 @@ export interface StartBundlePluginDTO {
|
|
|
22
22
|
};
|
|
23
23
|
version: string | null;
|
|
24
24
|
}
|
|
25
|
-
/** A hosted node's imported files, not yet unpacked (design-import, "Sandbox import step"). */
|
|
26
|
-
export interface StartBundleImportFilesDTO {
|
|
27
|
-
/** Signed GET URL of `import_node_files.blob_key` (a `tar.zst`). */
|
|
28
|
-
url: string;
|
|
29
|
-
/** The run's path map. Archive entries are named `<source prefix without its leading slash>/<path relative to the prefix>`; each is unpacked under that prefix's `to`. */
|
|
30
|
-
path_map: Array<{
|
|
31
|
-
from: string;
|
|
32
|
-
to: string;
|
|
33
|
-
}>;
|
|
34
|
-
}
|
|
35
25
|
/** What a broker opens its cycle with when the control plane carries it instead of the broker asking `cycle-start`: the same node state, names, bearings and
|
|
36
26
|
* first system-prompt block `cycle-start` would answer, rendered once by the control plane. With it the broker listens before it makes any request, then sends
|
|
37
27
|
* `session-bound`. `bind_pending` is as in `BrokerCycleStartResultDTO`: the session-start hook, not the broker, commits that bind. */
|
|
@@ -58,8 +48,6 @@ export interface StartBundleDTO {
|
|
|
58
48
|
} | null;
|
|
59
49
|
plugins_revision: number;
|
|
60
50
|
plugins: StartBundlePluginDTO[];
|
|
61
|
-
/** Null when the node has no `import_node_files` row, or its archive was deleted (30 days after the first unpack). Named on every start while the archive exists: a sandbox unpacks it only when it holds no marker of its own. */
|
|
62
|
-
import_node_files: StartBundleImportFilesDTO | null;
|
|
63
51
|
/** Present only for an execution on a machine environment (the Mac, which holds no database): the node's profile metadata (`CRTR_PROFILE_META_*`) and the secrets of its environment (the app's rows, the owning profile's rows, the deployment rows), merged in the process runner's order. Secret values: a sandbox reads them with the execution's node token; for a machine the control plane carries them in the `start` call's link frame, where they sit in `machine_calls.args_json` only while the call is in flight (erased when the call finishes). */
|
|
64
52
|
machine_env?: Record<string, string>;
|
|
65
53
|
/** The start data for a broker that reads it with the bundle instead of asking `cycle-start` (cloud-hosted and local launches carry it this way). */
|
package/dist/api/routes.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export declare const routes: {
|
|
|
14
14
|
readonly node: (id: string) => string;
|
|
15
15
|
readonly nodeMemoryReads: (id: string) => string;
|
|
16
16
|
readonly executionStart: (id: string) => string;
|
|
17
|
-
readonly executionImportUnpacked: (id: string) => string;
|
|
18
17
|
readonly environmentGitCredential: (id: string) => string;
|
|
19
18
|
readonly feedback: () => string;
|
|
20
19
|
readonly nodeOutcome: (id: string) => string;
|
package/dist/api/routes.js
CHANGED
|
@@ -29,7 +29,6 @@ export const routes = {
|
|
|
29
29
|
node: (id) => `${V}/nodes/${id}`,
|
|
30
30
|
nodeMemoryReads: (id) => `${V}/nodes/${id}/memory-reads`,
|
|
31
31
|
executionStart: (id) => `${V}/executions/${id}/start`,
|
|
32
|
-
executionImportUnpacked: (id) => `${V}/executions/${id}/import-unpacked`,
|
|
33
32
|
environmentGitCredential: (id) => `${V}/environments/${id}/git-credential`,
|
|
34
33
|
feedback: () => `${V}/feedback`,
|
|
35
34
|
nodeOutcome: (id) => `${V}/nodes/${id}/outcome`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.771",
|
|
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",
|