@maiaos/protocol 0.1.0-canary.1 → 0.1.0-canary.3
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/README.md +25 -135
- package/dist/agent/definition.d.ts +2 -2
- package/dist/agent/worker-operation.d.ts +1 -0
- package/dist/agent/worker-operation.d.ts.map +1 -1
- package/dist/agents/contract.d.ts +341 -0
- package/dist/agents/contract.d.ts.map +1 -0
- package/dist/agents/contract.js +18 -0
- package/dist/agents/contract.js.map +1 -0
- package/dist/agents/effect-schema.d.ts +604 -0
- package/dist/agents/effect-schema.d.ts.map +1 -0
- package/dist/agents/effect-schema.js +164 -0
- package/dist/agents/effect-schema.js.map +1 -0
- package/dist/agents/feature.d.ts +113 -0
- package/dist/agents/feature.d.ts.map +1 -0
- package/dist/agents/feature.js +111 -0
- package/dist/agents/feature.js.map +1 -0
- package/dist/agents/index.d.ts +3 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +3 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/connection/contract.d.ts +130 -1
- package/dist/connection/contract.d.ts.map +1 -1
- package/dist/connection/contract.js +7 -1
- package/dist/connection/contract.js.map +1 -1
- package/dist/connection/effect-schema.d.ts +110 -0
- package/dist/connection/effect-schema.d.ts.map +1 -1
- package/dist/connection/feature.d.ts +75 -0
- package/dist/connection/feature.d.ts.map +1 -1
- package/dist/connection/feature.js +69 -0
- package/dist/connection/feature.js.map +1 -1
- package/dist/connection/index.d.ts +1 -1
- package/dist/connection/index.d.ts.map +1 -1
- package/dist/connection/index.js +1 -1
- package/dist/connection/index.js.map +1 -1
- package/dist/connection/system-effect-schema.d.ts +261 -1
- package/dist/connection/system-effect-schema.d.ts.map +1 -1
- package/dist/connection/system-effect-schema.js +101 -1
- package/dist/connection/system-effect-schema.js.map +1 -1
- package/dist/coordinator-tool/registry.d.ts +3 -1
- package/dist/coordinator-tool/registry.d.ts.map +1 -1
- package/dist/coordinator-tool/registry.js +66 -10
- package/dist/coordinator-tool/registry.js.map +1 -1
- package/dist/discovery/contract.d.ts +1 -0
- package/dist/discovery/contract.d.ts.map +1 -1
- package/dist/discovery/effect-schema.d.ts +2 -0
- package/dist/discovery/effect-schema.d.ts.map +1 -1
- package/dist/execution/worktree/effect-schema.d.ts.map +1 -1
- package/dist/execution/worktree/effect-schema.js +10 -2
- package/dist/execution/worktree/effect-schema.js.map +1 -1
- package/dist/feature/registry.d.ts +7 -1
- package/dist/feature/registry.d.ts.map +1 -1
- package/dist/feature/registry.js +6 -0
- package/dist/feature/registry.js.map +1 -1
- package/dist/index.d.ts +11 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/invocation-context/contract.d.ts +11 -1
- package/dist/invocation-context/contract.d.ts.map +1 -1
- package/dist/invocation-context/effect-schema.d.ts +24 -2
- package/dist/invocation-context/effect-schema.d.ts.map +1 -1
- package/dist/invocation-context/effect-schema.js +19 -1
- package/dist/invocation-context/effect-schema.js.map +1 -1
- package/dist/local-node/contract.d.ts +16 -8
- package/dist/local-node/contract.d.ts.map +1 -1
- package/dist/local-node/contract.js.map +1 -1
- package/dist/local-node/effect-schema.d.ts +570 -9
- package/dist/local-node/effect-schema.d.ts.map +1 -1
- package/dist/local-node/effect-schema.js +33 -0
- package/dist/local-node/effect-schema.js.map +1 -1
- package/dist/local-node/node-api/methods.d.ts +26 -3
- package/dist/local-node/node-api/methods.d.ts.map +1 -1
- package/dist/local-node/node-api/methods.js +46 -0
- package/dist/local-node/node-api/methods.js.map +1 -1
- package/dist/local-node/receipt-list.d.ts +1 -1
- package/dist/local-node/receipt-list.d.ts.map +1 -1
- package/dist/local-node/receipt-list.js +10 -0
- package/dist/local-node/receipt-list.js.map +1 -1
- package/dist/machine-lease/contract.d.ts +90 -0
- package/dist/machine-lease/contract.d.ts.map +1 -0
- package/dist/machine-lease/contract.js +8 -0
- package/dist/machine-lease/contract.js.map +1 -0
- package/dist/machine-lease/effect-schema.d.ts +85 -0
- package/dist/machine-lease/effect-schema.d.ts.map +1 -0
- package/dist/machine-lease/effect-schema.js +78 -0
- package/dist/machine-lease/effect-schema.js.map +1 -0
- package/dist/machine-lease/index.d.ts +3 -0
- package/dist/machine-lease/index.d.ts.map +1 -0
- package/dist/machine-lease/index.js +3 -0
- package/dist/machine-lease/index.js.map +1 -0
- package/dist/machine-lease/policy.d.ts +12 -0
- package/dist/machine-lease/policy.d.ts.map +1 -0
- package/dist/machine-lease/policy.js +12 -0
- package/dist/machine-lease/policy.js.map +1 -0
- package/dist/machine-principal/contract.d.ts +14 -0
- package/dist/machine-principal/contract.d.ts.map +1 -0
- package/dist/machine-principal/contract.js +5 -0
- package/dist/machine-principal/contract.js.map +1 -0
- package/dist/machine-principal/effect-schema.d.ts +12 -0
- package/dist/machine-principal/effect-schema.d.ts.map +1 -0
- package/dist/machine-principal/effect-schema.js +25 -0
- package/dist/machine-principal/effect-schema.js.map +1 -0
- package/dist/machine-principal/index.d.ts +2 -0
- package/dist/machine-principal/index.d.ts.map +1 -0
- package/dist/machine-principal/index.js +2 -0
- package/dist/machine-principal/index.js.map +1 -0
- package/dist/machine-principal/policy.d.ts +5 -0
- package/dist/machine-principal/policy.d.ts.map +1 -0
- package/dist/machine-principal/policy.js +5 -0
- package/dist/machine-principal/policy.js.map +1 -0
- package/dist/presentation/contract.d.ts +1 -0
- package/dist/presentation/contract.d.ts.map +1 -1
- package/dist/presentation/effect-schema.d.ts +1 -0
- package/dist/presentation/effect-schema.d.ts.map +1 -1
- package/dist/presentation/session-list-effect-schema.d.ts +1 -0
- package/dist/presentation/session-list-effect-schema.d.ts.map +1 -1
- package/dist/release/contract.d.ts +2 -0
- package/dist/release/contract.d.ts.map +1 -0
- package/dist/release/contract.js +4 -0
- package/dist/release/contract.js.map +1 -0
- package/dist/release/effect-schema.d.ts +3 -0
- package/dist/release/effect-schema.d.ts.map +1 -0
- package/dist/release/effect-schema.js +4 -0
- package/dist/release/effect-schema.js.map +1 -0
- package/dist/release/index.d.ts +3 -0
- package/dist/release/index.d.ts.map +1 -0
- package/dist/release/index.js +3 -0
- package/dist/release/index.js.map +1 -0
- package/dist/release/version.d.ts +29 -0
- package/dist/release/version.d.ts.map +1 -0
- package/dist/release/version.js +77 -0
- package/dist/release/version.js.map +1 -0
- package/dist/remote-node/bridge-effect-schema.d.ts +72 -2
- package/dist/remote-node/bridge-effect-schema.d.ts.map +1 -1
- package/dist/remote-node/bridge-effect-schema.js +64 -3
- package/dist/remote-node/bridge-effect-schema.js.map +1 -1
- package/dist/remote-node/contract.d.ts +163 -10
- package/dist/remote-node/contract.d.ts.map +1 -1
- package/dist/remote-node/contract.js +22 -3
- package/dist/remote-node/contract.js.map +1 -1
- package/dist/remote-node/index.d.ts +1 -1
- package/dist/remote-node/index.d.ts.map +1 -1
- package/dist/remote-node/index.js +1 -1
- package/dist/remote-node/index.js.map +1 -1
- package/dist/remote-node/request-effect-schema.d.ts +42 -0
- package/dist/remote-node/request-effect-schema.d.ts.map +1 -1
- package/dist/remote-node/request-effect-schema.js +25 -0
- package/dist/remote-node/request-effect-schema.js.map +1 -1
- package/dist/remote-node/result-effect-schema.d.ts +196 -21
- package/dist/remote-node/result-effect-schema.d.ts.map +1 -1
- package/dist/remote-node/result-effect-schema.js +42 -8
- package/dist/remote-node/result-effect-schema.js.map +1 -1
- package/dist/routine/contract.d.ts +470 -0
- package/dist/routine/contract.d.ts.map +1 -0
- package/dist/routine/contract.js +27 -0
- package/dist/routine/contract.js.map +1 -0
- package/dist/routine/effect-schema.d.ts +923 -0
- package/dist/routine/effect-schema.d.ts.map +1 -0
- package/dist/routine/effect-schema.js +268 -0
- package/dist/routine/effect-schema.js.map +1 -0
- package/dist/routine/feature.d.ts +263 -0
- package/dist/routine/feature.d.ts.map +1 -0
- package/dist/routine/feature.js +249 -0
- package/dist/routine/feature.js.map +1 -0
- package/dist/routine/index.d.ts +3 -0
- package/dist/routine/index.d.ts.map +1 -0
- package/dist/routine/index.js +3 -0
- package/dist/routine/index.js.map +1 -0
- package/dist/routine/policy.d.ts +15 -0
- package/dist/routine/policy.d.ts.map +1 -0
- package/dist/routine/policy.js +31 -0
- package/dist/routine/policy.js.map +1 -0
- package/dist/session/agent-permission-contract.d.ts +5 -5
- package/dist/session/agent-permission-effect-schema.d.ts +9 -9
- package/dist/session/contract.d.ts +13 -0
- package/dist/session/contract.d.ts.map +1 -1
- package/dist/session/effect-schema.d.ts +40 -5
- package/dist/session/effect-schema.d.ts.map +1 -1
- package/dist/session/effect-schema.js +33 -12
- package/dist/session/effect-schema.js.map +1 -1
- package/dist/session/feature.d.ts +58 -0
- package/dist/session/feature.d.ts.map +1 -1
- package/dist/session/feature.js +54 -0
- package/dist/session/feature.js.map +1 -1
- package/dist/session/index.d.ts +1 -1
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +1 -1
- package/dist/session/index.js.map +1 -1
- package/dist/session/policy.d.ts +23 -0
- package/dist/session/policy.d.ts.map +1 -1
- package/dist/session/policy.js +23 -0
- package/dist/session/policy.js.map +1 -1
- package/dist/session/stop-resume-contract.d.ts +2 -0
- package/dist/session/stop-resume-contract.d.ts.map +1 -1
- package/dist/session-guard/contract.d.ts +5 -2
- package/dist/session-guard/contract.d.ts.map +1 -1
- package/dist/session-guard/contract.js +13 -2
- package/dist/session-guard/contract.js.map +1 -1
- package/dist/team-workspace/contract.d.ts +77 -0
- package/dist/team-workspace/contract.d.ts.map +1 -0
- package/dist/team-workspace/contract.js +8 -0
- package/dist/team-workspace/contract.js.map +1 -0
- package/dist/team-workspace/effect-schema.d.ts +142 -0
- package/dist/team-workspace/effect-schema.d.ts.map +1 -0
- package/dist/team-workspace/effect-schema.js +102 -0
- package/dist/team-workspace/effect-schema.js.map +1 -0
- package/dist/team-workspace/feature.d.ts +54 -0
- package/dist/team-workspace/feature.d.ts.map +1 -0
- package/dist/team-workspace/feature.js +59 -0
- package/dist/team-workspace/feature.js.map +1 -0
- package/dist/team-workspace/index.d.ts +3 -0
- package/dist/team-workspace/index.d.ts.map +1 -0
- package/dist/team-workspace/index.js +3 -0
- package/dist/team-workspace/index.js.map +1 -0
- package/dist/team-workspace/policy.d.ts +9 -0
- package/dist/team-workspace/policy.d.ts.map +1 -0
- package/dist/team-workspace/policy.js +19 -0
- package/dist/team-workspace/policy.js.map +1 -0
- package/dist/terminal/contract.d.ts +65 -56
- package/dist/terminal/contract.d.ts.map +1 -1
- package/dist/terminal/effect-schema.d.ts +400 -382
- package/dist/terminal/effect-schema.d.ts.map +1 -1
- package/dist/terminal/effect-schema.js +12 -0
- package/dist/terminal/effect-schema.js.map +1 -1
- package/dist/terminal/index.d.ts +1 -1
- package/dist/terminal/index.d.ts.map +1 -1
- package/dist/terminal/index.js +1 -1
- package/dist/terminal/index.js.map +1 -1
- package/dist/terminal/live-effect-schema.d.ts +630 -621
- package/dist/terminal/live-effect-schema.d.ts.map +1 -1
- package/dist/terminal/live-effect-schema.js +15 -2
- package/dist/terminal/live-effect-schema.js.map +1 -1
- package/dist/terminal/live-policy.d.ts +9 -0
- package/dist/terminal/live-policy.d.ts.map +1 -1
- package/dist/terminal/live-policy.js +9 -0
- package/dist/terminal/live-policy.js.map +1 -1
- package/dist/terminal/live-types.d.ts +7 -1
- package/dist/terminal/live-types.d.ts.map +1 -1
- package/dist/turn/contract.d.ts +166 -1
- package/dist/turn/contract.d.ts.map +1 -1
- package/dist/turn/contract.js +10 -1
- package/dist/turn/contract.js.map +1 -1
- package/dist/turn/effect-schema.d.ts +325 -0
- package/dist/turn/effect-schema.d.ts.map +1 -1
- package/dist/turn/effect-schema.js +50 -2
- package/dist/turn/effect-schema.js.map +1 -1
- package/dist/turn/index.d.ts +2 -2
- package/dist/turn/index.d.ts.map +1 -1
- package/dist/turn/index.js +2 -2
- package/dist/turn/index.js.map +1 -1
- package/dist/turn/policy.d.ts +7 -0
- package/dist/turn/policy.d.ts.map +1 -1
- package/dist/turn/policy.js +7 -0
- package/dist/turn/policy.js.map +1 -1
- package/dist/voice/contract.d.ts +4 -4
- package/dist/voice/effect-schema.d.ts +6 -6
- package/dist/voice/effect-schema.d.ts.map +1 -1
- package/dist/voice/effect-schema.js +2 -0
- package/dist/voice/effect-schema.js.map +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/release/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EACL,SAAS,EACT,KAAK,kBAAkB,EACvB,oBAAoB,EACpB,KAAK,aAAa,EAClB,YAAY,EACZ,gBAAgB,EAChB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/release/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EACL,SAAS,EAET,oBAAoB,EAEpB,YAAY,EACZ,gBAAgB,GAEjB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The release version rules every Maia tool shares. The publish scripts load
|
|
3
|
+
* this file as source (Node strips its types), so it stays free of imports.
|
|
4
|
+
*/
|
|
5
|
+
export declare const RELEASE_CHANNELS: readonly ["canary", "next", "nightly", "stable"];
|
|
6
|
+
export type ReleaseChannel = (typeof RELEASE_CHANNELS)[number];
|
|
7
|
+
/** The channels Maia builds and installs while D-132 blocks stable and next. */
|
|
8
|
+
export type InstallableChannel = Extract<ReleaseChannel, "canary" | "nightly">;
|
|
9
|
+
export type ParsedVersion = {
|
|
10
|
+
readonly major: number;
|
|
11
|
+
readonly minor: number;
|
|
12
|
+
readonly patch: number;
|
|
13
|
+
readonly prerelease: readonly string[];
|
|
14
|
+
};
|
|
15
|
+
/** Parses SemVer text; any other text throws a `TypeError`. */
|
|
16
|
+
export declare const parseVersion: (text: string) => ParsedVersion;
|
|
17
|
+
/**
|
|
18
|
+
* The channel is a property of the version, never a separate setting:
|
|
19
|
+
* `-rc.N` is next, `-nightly.DATE.N` nightly, `-canary.N` canary, none stable.
|
|
20
|
+
*/
|
|
21
|
+
export declare const channelOf: (text: string) => ReleaseChannel;
|
|
22
|
+
/**
|
|
23
|
+
* The channel of a version Maia may publish or install, which is also its npm
|
|
24
|
+
* dist-tag. `X.Y.Z-canary.N` and `X.Y.Z-nightly.YYYYMMDD.N` pass; stable,
|
|
25
|
+
* next and every other pre-release shape, such as the retired
|
|
26
|
+
* `-canary.<sha>.manual.N`, throw (D-132).
|
|
27
|
+
*/
|
|
28
|
+
export declare const installableChannelOf: (version: string) => InstallableChannel;
|
|
29
|
+
//# sourceMappingURL=version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/release/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,gBAAgB,YAC3B,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAQ,CACA,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,gFAAgF;AAChF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,cAAc,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC;AAE/E,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC,CAAC;AAQF,+DAA+D;AAC/D,eAAO,MAAM,YAAY,SAAU,MAAM,KAAG,aAiB3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,SAAU,MAAM,KAAG,cAOxC,CAAC;AA0BF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,YAAa,MAAM,KAAG,kBAWtD,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The release version rules every Maia tool shares. The publish scripts load
|
|
3
|
+
* this file as source (Node strips its types), so it stays free of imports.
|
|
4
|
+
*/
|
|
5
|
+
export const RELEASE_CHANNELS = [
|
|
6
|
+
"canary",
|
|
7
|
+
"next",
|
|
8
|
+
"nightly",
|
|
9
|
+
"stable",
|
|
10
|
+
];
|
|
11
|
+
const versionPattern = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/u;
|
|
12
|
+
const numericIdentifier = /^(?:0|[1-9]\d*)$/u;
|
|
13
|
+
const sequencePattern = /^[1-9]\d*$/u;
|
|
14
|
+
const nightlyDatePattern = /^\d{8}$/u;
|
|
15
|
+
/** Parses SemVer text; any other text throws a `TypeError`. */
|
|
16
|
+
export const parseVersion = (text) => {
|
|
17
|
+
const match = versionPattern.exec(text.trim());
|
|
18
|
+
if (match === null)
|
|
19
|
+
throw new TypeError(`Invalid version: ${text}`);
|
|
20
|
+
const prerelease = match[4] === undefined ? [] : match[4].split(".");
|
|
21
|
+
if (prerelease.some((part) => /^\d+$/u.test(part) && !numericIdentifier.test(part))) {
|
|
22
|
+
throw new TypeError(`Invalid version: ${text}`);
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
major: Number(match[1]),
|
|
26
|
+
minor: Number(match[2]),
|
|
27
|
+
patch: Number(match[3]),
|
|
28
|
+
prerelease,
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* The channel is a property of the version, never a separate setting:
|
|
33
|
+
* `-rc.N` is next, `-nightly.DATE.N` nightly, `-canary.N` canary, none stable.
|
|
34
|
+
*/
|
|
35
|
+
export const channelOf = (text) => {
|
|
36
|
+
const [kind] = parseVersion(text).prerelease;
|
|
37
|
+
if (kind === undefined)
|
|
38
|
+
return "stable";
|
|
39
|
+
if (kind === "rc")
|
|
40
|
+
return "next";
|
|
41
|
+
if (kind === "nightly")
|
|
42
|
+
return "nightly";
|
|
43
|
+
if (kind === "canary")
|
|
44
|
+
return "canary";
|
|
45
|
+
throw new TypeError(`Version ${text} belongs to no release channel.`);
|
|
46
|
+
};
|
|
47
|
+
const isSequence = (text) => text !== undefined &&
|
|
48
|
+
sequencePattern.test(text) &&
|
|
49
|
+
Number.isSafeInteger(Number(text));
|
|
50
|
+
const isBuiltShape = (channel, prerelease) => channel === "nightly"
|
|
51
|
+
? prerelease.length === 3 &&
|
|
52
|
+
nightlyDatePattern.test(prerelease[1] ?? "") &&
|
|
53
|
+
isSequence(prerelease[2])
|
|
54
|
+
: prerelease.length === 2 && isSequence(prerelease[1]);
|
|
55
|
+
const isBuiltVersion = (channel, version) => {
|
|
56
|
+
const { major, minor, patch, prerelease } = parseVersion(version);
|
|
57
|
+
return (version === version.trim() &&
|
|
58
|
+
[major, minor, patch].every((part) => Number.isSafeInteger(part)) &&
|
|
59
|
+
isBuiltShape(channel, prerelease));
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* The channel of a version Maia may publish or install, which is also its npm
|
|
63
|
+
* dist-tag. `X.Y.Z-canary.N` and `X.Y.Z-nightly.YYYYMMDD.N` pass; stable,
|
|
64
|
+
* next and every other pre-release shape, such as the retired
|
|
65
|
+
* `-canary.<sha>.manual.N`, throw (D-132).
|
|
66
|
+
*/
|
|
67
|
+
export const installableChannelOf = (version) => {
|
|
68
|
+
const channel = channelOf(version);
|
|
69
|
+
if (channel !== "canary" && channel !== "nightly") {
|
|
70
|
+
throw new TypeError(`Maia publishes canary and nightly versions only, not ${version}: stable and next stay blocked until the owner lifts it (D-132).`);
|
|
71
|
+
}
|
|
72
|
+
if (!isBuiltVersion(channel, version)) {
|
|
73
|
+
throw new TypeError(`${version} is not a ${channel} version Maia builds.`);
|
|
74
|
+
}
|
|
75
|
+
return channel;
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/release/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,QAAQ;IACR,MAAM;IACN,SAAS;IACT,QAAQ;CACA,CAAC;AAcX,MAAM,cAAc,GAClB,sFAAsF,CAAC;AACzF,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAC9C,MAAM,eAAe,GAAG,aAAa,CAAC;AACtC,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAEtC,+DAA+D;AAC/D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAiB,EAAE;IAC1D,MAAM,KAAK,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAC/C,IAAI,KAAK,KAAK,IAAI;QAAE,MAAM,IAAI,SAAS,CAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC;IACpE,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACrE,IACE,UAAU,CAAC,IAAI,CACb,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC/D,EACD,CAAC;QACD,MAAM,IAAI,SAAS,CAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC;IAClD,CAAC;IACD,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC,KAA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KAAK,EAAE,UAAU,EAAE,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAClE,OAAO,CACL,OAAO,KAAK,OAAO,CAAC,IAAI,EAAE;QAC1B,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACjE,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAClC,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,OAAe,EAAsB,EAAE;IAC1E,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IACnC,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAClD,MAAM,IAAI,SAAS,CACjB,wDAAwD,OAAO,kEAAkE,CAClI,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC;QACtC,MAAM,IAAI,SAAS,CAAC,GAAG,OAAO,aAAa,OAAO,uBAAuB,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -3,7 +3,10 @@ import * as Schema from "effect/Schema";
|
|
|
3
3
|
* The SSH stdio bridge carries the Node API's own request and response
|
|
4
4
|
* envelopes, one JSON object per line, between a client and
|
|
5
5
|
* `maia-node bridge` on the Node's host. The bridge adds a ready handshake
|
|
6
|
-
* and transport failures and never rewrites an envelope.
|
|
6
|
+
* and transport failures and never rewrites an envelope. A request frame
|
|
7
|
+
* marked `coordinator` reaches the Node with the coordinator mark beside the
|
|
8
|
+
* host's bearer, as on loopback: the mark narrows that authority to the
|
|
9
|
+
* coordinator tool operations and never widens it.
|
|
7
10
|
*/
|
|
8
11
|
export declare const BRIDGE_PROTOCOL = "maia.node.stdio/v1";
|
|
9
12
|
/** One envelope plus the frame wrapper. */
|
|
@@ -12,14 +15,68 @@ export declare const MAX_BRIDGE_FRAME_BYTES: number;
|
|
|
12
15
|
export declare const MAX_BRIDGE_IN_FLIGHT = 8;
|
|
13
16
|
export declare const bridgeRequestFrameEffectSchema: Schema.Struct<{
|
|
14
17
|
readonly envelope: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
18
|
+
readonly principal: Schema.optional<Schema.Literal<"coordinator">>;
|
|
15
19
|
readonly type: Schema.Literal<"request">;
|
|
16
20
|
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Streams ride the same lines: a client opens one with a `subscribe` frame whose
|
|
23
|
+
* envelope is a Node API subscribe request (the bridge adds the host's
|
|
24
|
+
* credential, as for requests) and closes it with `unsubscribe`; the bridge
|
|
25
|
+
* answers with `item` frames, one Node frame each, and one `end`. The
|
|
26
|
+
* bridge opens up to MAX_BRIDGE_STREAMS at once, apart from the request
|
|
27
|
+
* permits. The `ready` frame gains no field, so an older client still reads it;
|
|
28
|
+
* a bridge built before streams refuses a `subscribe` as an invalid frame and
|
|
29
|
+
* exits, which is how a client learns it cannot stream.
|
|
30
|
+
*/
|
|
31
|
+
export declare const MAX_BRIDGE_STREAMS = 4;
|
|
17
32
|
export declare const bridgeReadyFrameEffectSchema: Schema.Struct<{
|
|
18
33
|
readonly protocol: Schema.Literal<"maia.node.stdio/v1">;
|
|
19
34
|
readonly status: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
20
35
|
readonly type: Schema.Literal<"ready">;
|
|
21
36
|
readonly version: Schema.String;
|
|
22
37
|
}>;
|
|
38
|
+
export declare const bridgeSubscribeFrameEffectSchema: Schema.Struct<{
|
|
39
|
+
readonly envelope: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
40
|
+
readonly principal: Schema.optional<Schema.Literal<"coordinator">>;
|
|
41
|
+
readonly type: Schema.Literal<"subscribe">;
|
|
42
|
+
}>;
|
|
43
|
+
export declare const bridgeUnsubscribeFrameEffectSchema: Schema.Struct<{
|
|
44
|
+
readonly messageId: Schema.String;
|
|
45
|
+
readonly type: Schema.Literal<"unsubscribe">;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const bridgeClientFrameEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
48
|
+
readonly envelope: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
49
|
+
readonly principal: Schema.optional<Schema.Literal<"coordinator">>;
|
|
50
|
+
readonly type: Schema.Literal<"request">;
|
|
51
|
+
}>, Schema.Struct<{
|
|
52
|
+
readonly envelope: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
53
|
+
readonly principal: Schema.optional<Schema.Literal<"coordinator">>;
|
|
54
|
+
readonly type: Schema.Literal<"subscribe">;
|
|
55
|
+
}>, Schema.Struct<{
|
|
56
|
+
readonly messageId: Schema.String;
|
|
57
|
+
readonly type: Schema.Literal<"unsubscribe">;
|
|
58
|
+
}>]>;
|
|
59
|
+
export declare const bridgeItemFrameEffectSchema: Schema.Struct<{
|
|
60
|
+
readonly frame: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
61
|
+
readonly messageId: Schema.String;
|
|
62
|
+
readonly type: Schema.Literal<"item">;
|
|
63
|
+
}>;
|
|
64
|
+
/**
|
|
65
|
+
* `completed`: the Node sent its terminal frame. `unsubscribed`: the client
|
|
66
|
+
* asked. `lost`: the socket dropped or the reader fell behind, so the client
|
|
67
|
+
* resubscribes after its cursor. `failure`: the bridge refused or could not
|
|
68
|
+
* open the stream, with a code.
|
|
69
|
+
*/
|
|
70
|
+
export declare const bridgeEndFrameEffectSchema: Schema.Union<readonly [Schema.Struct<{
|
|
71
|
+
readonly messageId: Schema.String;
|
|
72
|
+
readonly reason: Schema.Literals<readonly ["completed", "lost", "unsubscribed"]>;
|
|
73
|
+
readonly type: Schema.Literal<"end">;
|
|
74
|
+
}>, Schema.Struct<{
|
|
75
|
+
readonly code: Schema.String;
|
|
76
|
+
readonly messageId: Schema.String;
|
|
77
|
+
readonly reason: Schema.Literal<"failure">;
|
|
78
|
+
readonly type: Schema.Literal<"end">;
|
|
79
|
+
}>]>;
|
|
23
80
|
export declare const bridgeUnavailableFrameEffectSchema: Schema.Struct<{
|
|
24
81
|
readonly message: Schema.String;
|
|
25
82
|
readonly protocol: Schema.Literal<"maia.node.stdio/v1">;
|
|
@@ -56,5 +113,18 @@ export declare const bridgeServerFrameEffectSchema: Schema.Union<readonly [Schem
|
|
|
56
113
|
readonly messageId: Schema.String;
|
|
57
114
|
readonly remoteError: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
58
115
|
readonly type: Schema.Literal<"failure">;
|
|
59
|
-
}
|
|
116
|
+
}>, Schema.Struct<{
|
|
117
|
+
readonly frame: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
118
|
+
readonly messageId: Schema.String;
|
|
119
|
+
readonly type: Schema.Literal<"item">;
|
|
120
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
121
|
+
readonly messageId: Schema.String;
|
|
122
|
+
readonly reason: Schema.Literals<readonly ["completed", "lost", "unsubscribed"]>;
|
|
123
|
+
readonly type: Schema.Literal<"end">;
|
|
124
|
+
}>, Schema.Struct<{
|
|
125
|
+
readonly code: Schema.String;
|
|
126
|
+
readonly messageId: Schema.String;
|
|
127
|
+
readonly reason: Schema.Literal<"failure">;
|
|
128
|
+
readonly type: Schema.Literal<"end">;
|
|
129
|
+
}>]>]>;
|
|
60
130
|
//# sourceMappingURL=bridge-effect-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge-effect-schema.d.ts","sourceRoot":"","sources":["../../src/remote-node/bridge-effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"bridge-effect-schema.d.ts","sourceRoot":"","sources":["../../src/remote-node/bridge-effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAOxC;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,uBAAuB,CAAC;AAEpD,2CAA2C;AAC3C,eAAO,MAAM,sBAAsB,QAAsC,CAAC;AAE1E,yEAAyE;AACzE,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAoBtC,eAAO,MAAM,8BAA8B;;;;EAIzC,CAAC;AAaH;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAEpC,eAAO,MAAM,4BAA4B;;;;;EAKvC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;EAI3C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;EAG7C,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;IAIxC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;EAItC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;IAYrC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;EAK7C,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;EAG1C,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;EAMzC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxC,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
import { MAX_NODE_API_BODY_BYTES } from "../local-node/node-api/index.js";
|
|
2
|
+
import { MAX_NODE_API_BODY_BYTES, NODE_API_COORDINATOR_PRINCIPAL, } from "../local-node/node-api/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* The SSH stdio bridge carries the Node API's own request and response
|
|
5
5
|
* envelopes, one JSON object per line, between a client and
|
|
6
6
|
* `maia-node bridge` on the Node's host. The bridge adds a ready handshake
|
|
7
|
-
* and transport failures and never rewrites an envelope.
|
|
7
|
+
* and transport failures and never rewrites an envelope. A request frame
|
|
8
|
+
* marked `coordinator` reaches the Node with the coordinator mark beside the
|
|
9
|
+
* host's bearer, as on loopback: the mark narrows that authority to the
|
|
10
|
+
* coordinator tool operations and never widens it.
|
|
8
11
|
*/
|
|
9
12
|
export const BRIDGE_PROTOCOL = "maia.node.stdio/v1";
|
|
10
13
|
/** One envelope plus the frame wrapper. */
|
|
@@ -21,14 +24,70 @@ const envelopeWith = (field) => objectSchema.check(Schema.makeFilter((value) =>
|
|
|
21
24
|
}, { expected: `an envelope with a ${field}` }));
|
|
22
25
|
export const bridgeRequestFrameEffectSchema = Schema.Struct({
|
|
23
26
|
envelope: envelopeWith("messageId"),
|
|
27
|
+
principal: Schema.optional(Schema.Literal(NODE_API_COORDINATOR_PRINCIPAL)),
|
|
24
28
|
type: Schema.Literal("request"),
|
|
25
29
|
});
|
|
30
|
+
/**
|
|
31
|
+
* A maia-node version Maia builds: the numbers of a local build (`0.0.0`) or a
|
|
32
|
+
* stable release, with the `-nightly.YYYYMMDD.N` or `-canary.N` the release
|
|
33
|
+
* pipeline adds. A client prints it, so no other text passes.
|
|
34
|
+
*/
|
|
35
|
+
const bridgeVersionSchema = Schema.String.check(Schema.isPattern(/^\d{1,4}\.\d{1,4}\.\d{1,4}(?:-nightly\.\d{8}\.\d{1,6}|-canary\.\d{1,6})?$/u));
|
|
36
|
+
/**
|
|
37
|
+
* Streams ride the same lines: a client opens one with a `subscribe` frame whose
|
|
38
|
+
* envelope is a Node API subscribe request (the bridge adds the host's
|
|
39
|
+
* credential, as for requests) and closes it with `unsubscribe`; the bridge
|
|
40
|
+
* answers with `item` frames, one Node frame each, and one `end`. The
|
|
41
|
+
* bridge opens up to MAX_BRIDGE_STREAMS at once, apart from the request
|
|
42
|
+
* permits. The `ready` frame gains no field, so an older client still reads it;
|
|
43
|
+
* a bridge built before streams refuses a `subscribe` as an invalid frame and
|
|
44
|
+
* exits, which is how a client learns it cannot stream.
|
|
45
|
+
*/
|
|
46
|
+
export const MAX_BRIDGE_STREAMS = 4;
|
|
26
47
|
export const bridgeReadyFrameEffectSchema = Schema.Struct({
|
|
27
48
|
protocol: Schema.Literal(BRIDGE_PROTOCOL),
|
|
28
49
|
status: objectSchema,
|
|
29
50
|
type: Schema.Literal("ready"),
|
|
30
|
-
version:
|
|
51
|
+
version: bridgeVersionSchema,
|
|
52
|
+
});
|
|
53
|
+
export const bridgeSubscribeFrameEffectSchema = Schema.Struct({
|
|
54
|
+
envelope: envelopeWith("messageId"),
|
|
55
|
+
principal: Schema.optional(Schema.Literal(NODE_API_COORDINATOR_PRINCIPAL)),
|
|
56
|
+
type: Schema.Literal("subscribe"),
|
|
57
|
+
});
|
|
58
|
+
export const bridgeUnsubscribeFrameEffectSchema = Schema.Struct({
|
|
59
|
+
messageId: messageIdSchema,
|
|
60
|
+
type: Schema.Literal("unsubscribe"),
|
|
61
|
+
});
|
|
62
|
+
export const bridgeClientFrameEffectSchema = Schema.Union([
|
|
63
|
+
bridgeRequestFrameEffectSchema,
|
|
64
|
+
bridgeSubscribeFrameEffectSchema,
|
|
65
|
+
bridgeUnsubscribeFrameEffectSchema,
|
|
66
|
+
]);
|
|
67
|
+
export const bridgeItemFrameEffectSchema = Schema.Struct({
|
|
68
|
+
frame: objectSchema,
|
|
69
|
+
messageId: messageIdSchema,
|
|
70
|
+
type: Schema.Literal("item"),
|
|
31
71
|
});
|
|
72
|
+
/**
|
|
73
|
+
* `completed`: the Node sent its terminal frame. `unsubscribed`: the client
|
|
74
|
+
* asked. `lost`: the socket dropped or the reader fell behind, so the client
|
|
75
|
+
* resubscribes after its cursor. `failure`: the bridge refused or could not
|
|
76
|
+
* open the stream, with a code.
|
|
77
|
+
*/
|
|
78
|
+
export const bridgeEndFrameEffectSchema = Schema.Union([
|
|
79
|
+
Schema.Struct({
|
|
80
|
+
messageId: messageIdSchema,
|
|
81
|
+
reason: Schema.Literals(["completed", "lost", "unsubscribed"]),
|
|
82
|
+
type: Schema.Literal("end"),
|
|
83
|
+
}),
|
|
84
|
+
Schema.Struct({
|
|
85
|
+
code: Schema.String.check(Schema.isPattern(/^[a-z][a-z_]{0,63}$/u)),
|
|
86
|
+
messageId: messageIdSchema,
|
|
87
|
+
reason: Schema.Literal("failure"),
|
|
88
|
+
type: Schema.Literal("end"),
|
|
89
|
+
}),
|
|
90
|
+
]);
|
|
32
91
|
export const bridgeUnavailableFrameEffectSchema = Schema.Struct({
|
|
33
92
|
message: Schema.String.check(Schema.isMaxLength(1024)),
|
|
34
93
|
protocol: Schema.Literal(BRIDGE_PROTOCOL),
|
|
@@ -51,5 +110,7 @@ export const bridgeServerFrameEffectSchema = Schema.Union([
|
|
|
51
110
|
bridgeUnavailableFrameEffectSchema,
|
|
52
111
|
bridgeResponseFrameEffectSchema,
|
|
53
112
|
bridgeFailureFrameEffectSchema,
|
|
113
|
+
bridgeItemFrameEffectSchema,
|
|
114
|
+
bridgeEndFrameEffectSchema,
|
|
54
115
|
]);
|
|
55
116
|
//# sourceMappingURL=bridge-effect-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge-effect-schema.js","sourceRoot":"","sources":["../../src/remote-node/bridge-effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,
|
|
1
|
+
{"version":3,"file":"bridge-effect-schema.js","sourceRoot":"","sources":["../../src/remote-node/bridge-effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EACL,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAEpD,2CAA2C;AAC3C,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,GAAG,EAAE,GAAG,IAAI,CAAC;AAE1E,yEAAyE;AACzE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAEtC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,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C3B,CAAC,CAAC"}
|
|
@@ -105,14 +105,15 @@ export declare const remoteNodeRecordSchema: import("../runtime-schema/runtime-s
|
|
|
105
105
|
readonly launcherPath: string;
|
|
106
106
|
readonly maiaVersion?: string | undefined;
|
|
107
107
|
readonly name: string;
|
|
108
|
+
readonly origin?: "registered" | undefined;
|
|
108
109
|
readonly profile: string;
|
|
109
110
|
readonly releaseId?: string | undefined;
|
|
110
111
|
readonly remaining?: readonly string[] | undefined;
|
|
111
112
|
readonly revision: string;
|
|
112
|
-
readonly root
|
|
113
|
+
readonly root?: string | undefined;
|
|
113
114
|
readonly schemaVersion: "maia.remote-node/v1";
|
|
114
115
|
readonly state: "install_failed" | "installing" | "ready" | "remove_failed" | "removed" | "removing";
|
|
115
|
-
readonly unitName
|
|
116
|
+
readonly unitName?: string | undefined;
|
|
116
117
|
readonly updatedAt: string;
|
|
117
118
|
}>;
|
|
118
119
|
export type RemoteNodeRecord = InferRuntimeSchema<typeof remoteNodeRecordSchema>;
|
|
@@ -262,14 +263,15 @@ export declare const remoteNodeInstallConfirmResultSchema: import("../runtime-sc
|
|
|
262
263
|
readonly launcherPath: string;
|
|
263
264
|
readonly maiaVersion?: string | undefined;
|
|
264
265
|
readonly name: string;
|
|
266
|
+
readonly origin?: "registered" | undefined;
|
|
265
267
|
readonly profile: string;
|
|
266
268
|
readonly releaseId?: string | undefined;
|
|
267
269
|
readonly remaining?: readonly string[] | undefined;
|
|
268
270
|
readonly revision: string;
|
|
269
|
-
readonly root
|
|
271
|
+
readonly root?: string | undefined;
|
|
270
272
|
readonly schemaVersion: "maia.remote-node/v1";
|
|
271
273
|
readonly state: "install_failed" | "installing" | "ready" | "remove_failed" | "removed" | "removing";
|
|
272
|
-
readonly unitName
|
|
274
|
+
readonly unitName?: string | undefined;
|
|
273
275
|
readonly updatedAt: string;
|
|
274
276
|
};
|
|
275
277
|
readonly receipt: {
|
|
@@ -291,6 +293,111 @@ export declare const remoteNodeInstallConfirmResultSchema: import("../runtime-sc
|
|
|
291
293
|
readonly method: "node.remote.install.confirm";
|
|
292
294
|
}>;
|
|
293
295
|
export type RemoteNodeInstallConfirmResult = InferRuntimeSchema<typeof remoteNodeInstallConfirmResultSchema>;
|
|
296
|
+
export declare const remoteNodeRegisterPlanSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
297
|
+
readonly host: string;
|
|
298
|
+
readonly instanceId: string;
|
|
299
|
+
readonly launcherPath: string;
|
|
300
|
+
readonly maiaVersion: string;
|
|
301
|
+
readonly profile: string;
|
|
302
|
+
}>;
|
|
303
|
+
export type RemoteNodeRegisterPlan = InferRuntimeSchema<typeof remoteNodeRegisterPlanSchema>;
|
|
304
|
+
export declare const remoteNodeRegisterPreviewParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
305
|
+
readonly commandId: string;
|
|
306
|
+
readonly host: string;
|
|
307
|
+
readonly launcherPath?: string | undefined;
|
|
308
|
+
readonly name: string;
|
|
309
|
+
readonly profile?: string | undefined;
|
|
310
|
+
}>;
|
|
311
|
+
export type RemoteNodeRegisterPreviewParameters = InferRuntimeSchema<typeof remoteNodeRegisterPreviewParametersSchema>;
|
|
312
|
+
export declare const remoteNodeRegisterPreviewResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
313
|
+
readonly actorId: string;
|
|
314
|
+
readonly expiresAt: string;
|
|
315
|
+
readonly inputDigest: string;
|
|
316
|
+
readonly issuedAt: string;
|
|
317
|
+
readonly proof: string;
|
|
318
|
+
readonly commandId: string;
|
|
319
|
+
readonly method: "node.remote.register.preview";
|
|
320
|
+
readonly name: string;
|
|
321
|
+
readonly plan: {
|
|
322
|
+
readonly host: string;
|
|
323
|
+
readonly instanceId: string;
|
|
324
|
+
readonly launcherPath: string;
|
|
325
|
+
readonly maiaVersion: string;
|
|
326
|
+
readonly profile: string;
|
|
327
|
+
};
|
|
328
|
+
readonly planDigest: string;
|
|
329
|
+
}>;
|
|
330
|
+
export type RemoteNodeRegisterPreviewResult = InferRuntimeSchema<typeof remoteNodeRegisterPreviewResultSchema>;
|
|
331
|
+
export declare const remoteNodeRegisterConfirmParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
332
|
+
readonly commandId: string;
|
|
333
|
+
readonly host: string;
|
|
334
|
+
readonly launcherPath?: string | undefined;
|
|
335
|
+
readonly name: string;
|
|
336
|
+
readonly profile?: string | undefined;
|
|
337
|
+
readonly inputDigest: string;
|
|
338
|
+
readonly planDigest: string;
|
|
339
|
+
readonly proof: string;
|
|
340
|
+
}>;
|
|
341
|
+
export type RemoteNodeRegisterConfirmParameters = InferRuntimeSchema<typeof remoteNodeRegisterConfirmParametersSchema>;
|
|
342
|
+
export declare const remoteNodeRegisterConfirmResultSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
343
|
+
readonly actorId: string;
|
|
344
|
+
readonly commandId: string;
|
|
345
|
+
readonly delivery: "duplicate" | "new";
|
|
346
|
+
readonly inputDigest: string;
|
|
347
|
+
readonly node: {
|
|
348
|
+
readonly createdAt: string;
|
|
349
|
+
readonly error?: {
|
|
350
|
+
readonly code: string;
|
|
351
|
+
readonly message: string;
|
|
352
|
+
} | undefined;
|
|
353
|
+
readonly executors: readonly {
|
|
354
|
+
readonly executor: "claude-code" | "codex-cli";
|
|
355
|
+
readonly interpreter?: {
|
|
356
|
+
readonly path: string;
|
|
357
|
+
readonly sha256: string;
|
|
358
|
+
} | undefined;
|
|
359
|
+
readonly path?: string | undefined;
|
|
360
|
+
readonly realPath?: string | undefined;
|
|
361
|
+
readonly reason?: string | undefined;
|
|
362
|
+
readonly sha256?: string | undefined;
|
|
363
|
+
readonly source: "discovered" | "override";
|
|
364
|
+
readonly state: "available" | "unavailable";
|
|
365
|
+
}[];
|
|
366
|
+
readonly host: string;
|
|
367
|
+
readonly installedAt?: string | undefined;
|
|
368
|
+
readonly launcherPath: string;
|
|
369
|
+
readonly maiaVersion?: string | undefined;
|
|
370
|
+
readonly name: string;
|
|
371
|
+
readonly origin?: "registered" | undefined;
|
|
372
|
+
readonly profile: string;
|
|
373
|
+
readonly releaseId?: string | undefined;
|
|
374
|
+
readonly remaining?: readonly string[] | undefined;
|
|
375
|
+
readonly revision: string;
|
|
376
|
+
readonly root?: string | undefined;
|
|
377
|
+
readonly schemaVersion: "maia.remote-node/v1";
|
|
378
|
+
readonly state: "install_failed" | "installing" | "ready" | "remove_failed" | "removed" | "removing";
|
|
379
|
+
readonly unitName?: string | undefined;
|
|
380
|
+
readonly updatedAt: string;
|
|
381
|
+
};
|
|
382
|
+
readonly receipt: {
|
|
383
|
+
readonly actorId: string;
|
|
384
|
+
readonly aggregateRevision: string;
|
|
385
|
+
readonly commandId: string;
|
|
386
|
+
readonly createdAt: string;
|
|
387
|
+
readonly eventCursor: string;
|
|
388
|
+
readonly method: string;
|
|
389
|
+
readonly receiptId: string;
|
|
390
|
+
readonly schemaVersion: 1;
|
|
391
|
+
readonly state: "succeeded";
|
|
392
|
+
readonly target: {
|
|
393
|
+
readonly id: string;
|
|
394
|
+
readonly type: string;
|
|
395
|
+
};
|
|
396
|
+
readonly updatedAt: string;
|
|
397
|
+
};
|
|
398
|
+
readonly method: "node.remote.register.confirm";
|
|
399
|
+
}>;
|
|
400
|
+
export type RemoteNodeRegisterConfirmResult = InferRuntimeSchema<typeof remoteNodeRegisterConfirmResultSchema>;
|
|
294
401
|
export declare const remoteNodeListParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
295
402
|
readonly includeRemoved?: boolean | undefined;
|
|
296
403
|
}>;
|
|
@@ -321,14 +428,15 @@ export declare const remoteNodeListResultSchema: import("../runtime-schema/runti
|
|
|
321
428
|
readonly launcherPath: string;
|
|
322
429
|
readonly maiaVersion?: string | undefined;
|
|
323
430
|
readonly name: string;
|
|
431
|
+
readonly origin?: "registered" | undefined;
|
|
324
432
|
readonly profile: string;
|
|
325
433
|
readonly releaseId?: string | undefined;
|
|
326
434
|
readonly remaining?: readonly string[] | undefined;
|
|
327
435
|
readonly revision: string;
|
|
328
|
-
readonly root
|
|
436
|
+
readonly root?: string | undefined;
|
|
329
437
|
readonly schemaVersion: "maia.remote-node/v1";
|
|
330
438
|
readonly state: "install_failed" | "installing" | "ready" | "remove_failed" | "removed" | "removing";
|
|
331
|
-
readonly unitName
|
|
439
|
+
readonly unitName?: string | undefined;
|
|
332
440
|
readonly updatedAt: string;
|
|
333
441
|
}[];
|
|
334
442
|
}>;
|
|
@@ -352,9 +460,10 @@ export declare const remoteNodeRemovePreviewResultSchema: import("../runtime-sch
|
|
|
352
460
|
readonly expectedRevision: string;
|
|
353
461
|
readonly method: "node.remote.remove.preview";
|
|
354
462
|
readonly name: string;
|
|
463
|
+
readonly origin?: "registered" | undefined;
|
|
355
464
|
readonly purge: boolean;
|
|
356
|
-
readonly root
|
|
357
|
-
readonly unitName
|
|
465
|
+
readonly root?: string | undefined;
|
|
466
|
+
readonly unitName?: string | undefined;
|
|
358
467
|
}>;
|
|
359
468
|
export type RemoteNodeRemovePreviewResult = InferRuntimeSchema<typeof remoteNodeRemovePreviewResultSchema>;
|
|
360
469
|
export declare const remoteNodeRemoveConfirmParametersSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
@@ -396,14 +505,15 @@ export declare const remoteNodeRemoveConfirmResultSchema: import("../runtime-sch
|
|
|
396
505
|
readonly launcherPath: string;
|
|
397
506
|
readonly maiaVersion?: string | undefined;
|
|
398
507
|
readonly name: string;
|
|
508
|
+
readonly origin?: "registered" | undefined;
|
|
399
509
|
readonly profile: string;
|
|
400
510
|
readonly releaseId?: string | undefined;
|
|
401
511
|
readonly remaining?: readonly string[] | undefined;
|
|
402
512
|
readonly revision: string;
|
|
403
|
-
readonly root
|
|
513
|
+
readonly root?: string | undefined;
|
|
404
514
|
readonly schemaVersion: "maia.remote-node/v1";
|
|
405
515
|
readonly state: "install_failed" | "installing" | "ready" | "remove_failed" | "removed" | "removing";
|
|
406
|
-
readonly unitName
|
|
516
|
+
readonly unitName?: string | undefined;
|
|
407
517
|
readonly updatedAt: string;
|
|
408
518
|
};
|
|
409
519
|
readonly receipt: {
|
|
@@ -429,9 +539,27 @@ export declare const bridgeRequestFrameSchema: import("../runtime-schema/runtime
|
|
|
429
539
|
readonly envelope: {
|
|
430
540
|
readonly [x: string]: unknown;
|
|
431
541
|
};
|
|
542
|
+
readonly principal?: "coordinator" | undefined;
|
|
432
543
|
readonly type: "request";
|
|
433
544
|
}>;
|
|
434
545
|
export type BridgeRequestFrame = InferRuntimeSchema<typeof bridgeRequestFrameSchema>;
|
|
546
|
+
export declare const bridgeClientFrameSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
547
|
+
readonly envelope: {
|
|
548
|
+
readonly [x: string]: unknown;
|
|
549
|
+
};
|
|
550
|
+
readonly principal?: "coordinator" | undefined;
|
|
551
|
+
readonly type: "request";
|
|
552
|
+
} | {
|
|
553
|
+
readonly envelope: {
|
|
554
|
+
readonly [x: string]: unknown;
|
|
555
|
+
};
|
|
556
|
+
readonly principal?: "coordinator" | undefined;
|
|
557
|
+
readonly type: "subscribe";
|
|
558
|
+
} | {
|
|
559
|
+
readonly messageId: string;
|
|
560
|
+
readonly type: "unsubscribe";
|
|
561
|
+
}>;
|
|
562
|
+
export type BridgeClientFrame = InferRuntimeSchema<typeof bridgeClientFrameSchema>;
|
|
435
563
|
export declare const bridgeServerFrameSchema: import("../runtime-schema/runtime-schema.js").RuntimeSchema<{
|
|
436
564
|
readonly protocol: "maia.node.stdio/v1";
|
|
437
565
|
readonly status: {
|
|
@@ -457,11 +585,36 @@ export declare const bridgeServerFrameSchema: import("../runtime-schema/runtime-
|
|
|
457
585
|
readonly [x: string]: unknown;
|
|
458
586
|
} | undefined;
|
|
459
587
|
readonly type: "failure";
|
|
588
|
+
} | {
|
|
589
|
+
readonly frame: {
|
|
590
|
+
readonly [x: string]: unknown;
|
|
591
|
+
};
|
|
592
|
+
readonly messageId: string;
|
|
593
|
+
readonly type: "item";
|
|
594
|
+
} | {
|
|
595
|
+
readonly messageId: string;
|
|
596
|
+
readonly reason: "completed" | "lost" | "unsubscribed";
|
|
597
|
+
readonly type: "end";
|
|
598
|
+
} | {
|
|
599
|
+
readonly code: string;
|
|
600
|
+
readonly messageId: string;
|
|
601
|
+
readonly reason: "failure";
|
|
602
|
+
readonly type: "end";
|
|
460
603
|
}>;
|
|
461
604
|
export type BridgeServerFrame = InferRuntimeSchema<typeof bridgeServerFrameSchema>;
|
|
605
|
+
/**
|
|
606
|
+
* Why the registry refuses a register beyond install's own refusals (a
|
|
607
|
+
* taken name is `storage_conflict`, ssh or a bridge that never greets is
|
|
608
|
+
* `transport_failed`): the Node greets as another profile than the one
|
|
609
|
+
* asked, another name already holds the same Node, or another Node greets
|
|
610
|
+
* at confirmation than at preview.
|
|
611
|
+
*/
|
|
612
|
+
export declare const REMOTE_NODE_ERROR_CODES: readonly ["node_already_registered", "node_changed", "profile_mismatch"];
|
|
613
|
+
export type RemoteNodeErrorCode = (typeof REMOTE_NODE_ERROR_CODES)[number];
|
|
462
614
|
export declare const BRIDGE_PROTOCOL: "maia.node.stdio/v1";
|
|
463
615
|
export declare const MAX_BRIDGE_FRAME_BYTES: number;
|
|
464
616
|
export declare const MAX_BRIDGE_IN_FLIGHT: number;
|
|
617
|
+
export declare const MAX_BRIDGE_STREAMS: number;
|
|
465
618
|
export declare const MAX_REMOTE_NODES: number;
|
|
466
619
|
export declare const MAX_REMOTE_NODE_WAIT_MS: number;
|
|
467
620
|
export declare const MAX_REMOTE_NODE_KEEP_RELEASES: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/remote-node/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/remote-node/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EA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