@maiaos/protocol 0.1.0-canary.59 → 0.1.0-canary.60

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 CHANGED
@@ -7,7 +7,7 @@ receipts and MCP tool definitions.
7
7
  > **Pre-release.** Maia publishes `canary` builds to npm only, and `latest` follows the newest
8
8
  > one (earlier nightly builds are historical). They are not release-qualified,
9
9
  > and Maia has no stable release
10
- > ([D-202](https://github.com/vllnt/maia/blob/main/docs/decisions.md#d-202)).
10
+ > ([D-202](https://maia-os.vllnt.com/en/docs/decisions#d-202)).
11
11
 
12
12
  ## Requirements
13
13
 
@@ -48,10 +48,10 @@ wire contracts: the Node validates every request against it, and the SDK, CLI
48
48
  and MCP server are generated from it or checked against it. The contracts
49
49
  carry the `maia.protocol/v1alpha1` identifier, and additions to it are listed
50
50
  in the [compatibility
51
- policy](https://github.com/vllnt/maia/blob/main/docs/reference/contracts.md#version-and-compatibility-policy).
51
+ policy](https://maia-os.vllnt.com/en/docs/reference/contracts#version-and-compatibility-policy).
52
52
 
53
53
  ## Links
54
54
 
55
- - [Normative contracts](https://github.com/vllnt/maia/blob/main/docs/reference/contracts.md)
55
+ - [Normative contracts](https://maia-os.vllnt.com/en/docs/reference/contracts)
56
56
  - [Security policy](https://github.com/vllnt/maia/blob/main/SECURITY.md)
57
57
  - [Repository](https://github.com/vllnt/maia)
@@ -189,7 +189,7 @@ const hostAdoption = {
189
189
  };
190
190
  /**
191
191
  * The labels, role and title an adopted Session takes, as `session.create` does
192
- * ([D-201](../../../../docs/decisions.md#d-201)): a lane adopted as a manager
192
+ * ([D-201](https://maia-os.vllnt.com/en/docs/decisions#d-201)): a lane adopted as a manager
193
193
  * claims the Project's manager slot of its `owner` label. Bound into the
194
194
  * preview digest, like the permission mode.
195
195
  */
@@ -41,7 +41,7 @@ export declare const sessionEffectSchema: Schema.Struct<{
41
41
  }>>;
42
42
  /**
43
43
  * `none` for a host-authority Session: the vendor harness runs as the
44
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
44
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
45
45
  * A sandboxed Session carries none.
46
46
  */
47
47
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -333,7 +333,7 @@ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Str
333
333
  * (`agentId`) supplies the harness, Connection, model and effort itself, so it
334
334
  * excludes every one of them. `role` (default `worker`) bounds what the
335
335
  * Session's own credential reaches. `hostAuthority` opts one executor Session
336
- * out of the Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)): it
336
+ * out of the Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)): it
337
337
  * runs in an existing `cwd` as the Node's user, takes no worktree, Agent or
338
338
  * role, and passes `permission` to its vendor CLI unchanged. A vendor
339
339
  * executor Session with `worktree` is a coding Session: it gets its own
@@ -667,7 +667,7 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
667
667
  }>>;
668
668
  /**
669
669
  * `none` for a host-authority Session: the vendor harness runs as the
670
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
670
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
671
671
  * A sandboxed Session carries none.
672
672
  */
673
673
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -768,7 +768,7 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
768
768
  }>>;
769
769
  /**
770
770
  * `none` for a host-authority Session: the vendor harness runs as the
771
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
771
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
772
772
  * A sandboxed Session carries none.
773
773
  */
774
774
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -853,7 +853,7 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
853
853
  }>>;
854
854
  /**
855
855
  * `none` for a host-authority Session: the vendor harness runs as the
856
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
856
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
857
857
  * A sandboxed Session carries none.
858
858
  */
859
859
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -937,7 +937,7 @@ export declare const sessionShowResultEffectSchema: Schema.Struct<{
937
937
  }>>;
938
938
  /**
939
939
  * `none` for a host-authority Session: the vendor harness runs as the
940
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
940
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
941
941
  * A sandboxed Session carries none.
942
942
  */
943
943
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -1021,7 +1021,7 @@ export declare const sessionWaitResultEffectSchema: Schema.Struct<{
1021
1021
  }>>;
1022
1022
  /**
1023
1023
  * `none` for a host-authority Session: the vendor harness runs as the
1024
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
1024
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
1025
1025
  * A sandboxed Session carries none.
1026
1026
  */
1027
1027
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -1351,7 +1351,7 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
1351
1351
  }>>;
1352
1352
  /**
1353
1353
  * `none` for a host-authority Session: the vendor harness runs as the
1354
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
1354
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
1355
1355
  * A sandboxed Session carries none.
1356
1356
  */
1357
1357
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -1450,7 +1450,7 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
1450
1450
  }>>;
1451
1451
  /**
1452
1452
  * `none` for a host-authority Session: the vendor harness runs as the
1453
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
1453
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
1454
1454
  * A sandboxed Session carries none.
1455
1455
  */
1456
1456
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -1549,7 +1549,7 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
1549
1549
  }>>;
1550
1550
  /**
1551
1551
  * `none` for a host-authority Session: the vendor harness runs as the
1552
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
1552
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
1553
1553
  * A sandboxed Session carries none.
1554
1554
  */
1555
1555
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -1648,7 +1648,7 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
1648
1648
  }>>;
1649
1649
  /**
1650
1650
  * `none` for a host-authority Session: the vendor harness runs as the
1651
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
1651
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
1652
1652
  * A sandboxed Session carries none.
1653
1653
  */
1654
1654
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -1758,7 +1758,7 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
1758
1758
  }>>;
1759
1759
  /**
1760
1760
  * `none` for a host-authority Session: the vendor harness runs as the
1761
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
1761
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
1762
1762
  * A sandboxed Session carries none.
1763
1763
  */
1764
1764
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -2009,7 +2009,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
2009
2009
  }>>;
2010
2010
  /**
2011
2011
  * `none` for a host-authority Session: the vendor harness runs as the
2012
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
2012
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
2013
2013
  * A sandboxed Session carries none.
2014
2014
  */
2015
2015
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -2172,7 +2172,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
2172
2172
  }>>;
2173
2173
  /**
2174
2174
  * `none` for a host-authority Session: the vendor harness runs as the
2175
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
2175
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
2176
2176
  * A sandboxed Session carries none.
2177
2177
  */
2178
2178
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -2321,7 +2321,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
2321
2321
  }>>;
2322
2322
  /**
2323
2323
  * `none` for a host-authority Session: the vendor harness runs as the
2324
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
2324
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
2325
2325
  * A sandboxed Session carries none.
2326
2326
  */
2327
2327
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -2403,7 +2403,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
2403
2403
  }>>;
2404
2404
  /**
2405
2405
  * `none` for a host-authority Session: the vendor harness runs as the
2406
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
2406
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
2407
2407
  * A sandboxed Session carries none.
2408
2408
  */
2409
2409
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -2503,7 +2503,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
2503
2503
  }>>;
2504
2504
  /**
2505
2505
  * `none` for a host-authority Session: the vendor harness runs as the
2506
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
2506
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
2507
2507
  * A sandboxed Session carries none.
2508
2508
  */
2509
2509
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -2831,7 +2831,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
2831
2831
  }>>;
2832
2832
  /**
2833
2833
  * `none` for a host-authority Session: the vendor harness runs as the
2834
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
2834
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
2835
2835
  * A sandboxed Session carries none.
2836
2836
  */
2837
2837
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -2929,7 +2929,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
2929
2929
  }>>;
2930
2930
  /**
2931
2931
  * `none` for a host-authority Session: the vendor harness runs as the
2932
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
2932
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
2933
2933
  * A sandboxed Session carries none.
2934
2934
  */
2935
2935
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -3027,7 +3027,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
3027
3027
  }>>;
3028
3028
  /**
3029
3029
  * `none` for a host-authority Session: the vendor harness runs as the
3030
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
3030
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
3031
3031
  * A sandboxed Session carries none.
3032
3032
  */
3033
3033
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -3148,7 +3148,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
3148
3148
  }>>;
3149
3149
  /**
3150
3150
  * `none` for a host-authority Session: the vendor harness runs as the
3151
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
3151
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
3152
3152
  * A sandboxed Session carries none.
3153
3153
  */
3154
3154
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -3249,7 +3249,7 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
3249
3249
  }>>;
3250
3250
  /**
3251
3251
  * `none` for a host-authority Session: the vendor harness runs as the
3252
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
3252
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
3253
3253
  * A sandboxed Session carries none.
3254
3254
  */
3255
3255
  readonly containment: Schema.optional<Schema.Literal<"none">>;
@@ -103,7 +103,7 @@ export const sessionEffectSchema = Schema.Struct({
103
103
  agentDefinitionRef: Schema.optional(agentDefinitionReferenceEffectSchema),
104
104
  /**
105
105
  * `none` for a host-authority Session: the vendor harness runs as the
106
- * Node's user with no Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)).
106
+ * Node's user with no Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)).
107
107
  * A sandboxed Session carries none.
108
108
  */
109
109
  containment: Schema.optional(Schema.Literal("none")),
@@ -230,7 +230,7 @@ const sessionCreateBaseFields = {
230
230
  * an account, and takes no Agent, definition or worktree: those are the
231
231
  * sandboxed worker's options. The one role it takes is `orchestrator` with an
232
232
  * `owner` label: it records the manager slot
233
- * ([D-201](../../../../docs/decisions.md#d-201)) and grants no credential. A
233
+ * ([D-201](https://maia-os.vllnt.com/en/docs/decisions#d-201)) and grants no credential. A
234
234
  * mode must be one the executor kind defines.
235
235
  */
236
236
  const hostAuthorityAllowed = (value) => value.hostAuthority === undefined
@@ -252,7 +252,7 @@ const hostAuthorityAllowed = (value) => value.hostAuthority === undefined
252
252
  * (`agentId`) supplies the harness, Connection, model and effort itself, so it
253
253
  * excludes every one of them. `role` (default `worker`) bounds what the
254
254
  * Session's own credential reaches. `hostAuthority` opts one executor Session
255
- * out of the Maia sandbox ([D-198](../../../../docs/decisions.md#d-198)): it
255
+ * out of the Maia sandbox ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)): it
256
256
  * runs in an existing `cwd` as the Node's user, takes no worktree, Agent or
257
257
  * role, and passes `permission` to its vendor CLI unchanged. A vendor
258
258
  * executor Session with `worktree` is a coding Session: it gets its own
@@ -52,14 +52,14 @@ export declare const EXECUTOR_HOST_ERROR_CODES: {
52
52
  };
53
53
  /**
54
54
  * A Node refuses to create, start or resume a host-authority Session
55
- * ([D-198](../../../../docs/decisions.md#d-198)) while its owner has not
55
+ * ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)) while its owner has not
56
56
  * enabled the mode; the Node's own setting, never the caller's, decides.
57
57
  */
58
58
  export declare const HOST_AUTHORITY_DISABLED_ERROR_CODE: "host_authority_disabled";
59
59
  /**
60
60
  * A Node refuses to create a top-level orchestrator Session while another
61
61
  * one of the same Project and `owner` label is not archived
62
- * ([D-201](../../../../docs/decisions.md#d-201)). The refusal names the
62
+ * ([D-201](https://maia-os.vllnt.com/en/docs/decisions#d-201)). The refusal names the
63
63
  * existing Session; the caller reattaches to it or resumes it instead.
64
64
  */
65
65
  export declare const MANAGER_EXISTS_ERROR_CODE: "manager_exists";
@@ -59,14 +59,14 @@ export const EXECUTOR_HOST_ERROR_CODES = {
59
59
  };
60
60
  /**
61
61
  * A Node refuses to create, start or resume a host-authority Session
62
- * ([D-198](../../../../docs/decisions.md#d-198)) while its owner has not
62
+ * ([D-198](https://maia-os.vllnt.com/en/docs/decisions#d-198)) while its owner has not
63
63
  * enabled the mode; the Node's own setting, never the caller's, decides.
64
64
  */
65
65
  export const HOST_AUTHORITY_DISABLED_ERROR_CODE = "host_authority_disabled";
66
66
  /**
67
67
  * A Node refuses to create a top-level orchestrator Session while another
68
68
  * one of the same Project and `owner` label is not archived
69
- * ([D-201](../../../../docs/decisions.md#d-201)). The refusal names the
69
+ * ([D-201](https://maia-os.vllnt.com/en/docs/decisions#d-201)). The refusal names the
70
70
  * existing Session; the caller reattaches to it or resumes it instead.
71
71
  */
72
72
  export const MANAGER_EXISTS_ERROR_CODE = "manager_exists";
@@ -72,7 +72,7 @@ export declare const sessionArchiveSummaryEffectSchema: Schema.String;
72
72
  export declare const sessionTranscriptPathEffectSchema: Schema.String;
73
73
  /**
74
74
  * `summary` and `transcriptPath` are what the caller wants kept with the
75
- * archive ([D-201](../../../../docs/decisions.md#d-201)): both are optional,
75
+ * archive ([D-201](https://maia-os.vllnt.com/en/docs/decisions#d-201)): both are optional,
76
76
  * bound into the command's identity, and returned in its receipt.
77
77
  */
78
78
  export declare const sessionArchiveParametersEffectSchema: Schema.Struct<{
@@ -118,7 +118,7 @@ export const sessionTranscriptPathEffectSchema = Schema.String.check(Schema.make
118
118
  }));
119
119
  /**
120
120
  * `summary` and `transcriptPath` are what the caller wants kept with the
121
- * archive ([D-201](../../../../docs/decisions.md#d-201)): both are optional,
121
+ * archive ([D-201](https://maia-os.vllnt.com/en/docs/decisions#d-201)): both are optional,
122
122
  * bound into the command's identity, and returned in its receipt.
123
123
  */
124
124
  export const sessionArchiveParametersEffectSchema = Schema.Struct({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maiaos/protocol",
3
- "version": "0.1.0-canary.59",
3
+ "version": "0.1.0-canary.60",
4
4
  "description": "Operation registry and Effect Schema contracts for Maia OS: operation IDs, envelopes, errors, receipts and MCP tool definitions for AI coding agents.",
5
5
  "keywords": [
6
6
  "maia",