@myagentroam/protocol 0.9.125 → 0.9.127

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/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './mcp.js';
6
6
  export * from './git-identity.js';
7
7
  export * from './direct-transfer.js';
8
8
  export * from './terminal-direct.js';
9
+ export * from './mail-notification.js';
9
10
  export declare const healthStatusSchema: z.ZodObject<{
10
11
  status: z.ZodLiteral<"ok">;
11
12
  }, "strip", z.ZodTypeAny, {
@@ -1813,6 +1814,7 @@ export declare const runtimeCredentialResolveRequestSchema: z.ZodEffects<z.ZodOb
1813
1814
  }, "strict", z.ZodTypeAny, {
1814
1815
  reason: "REQUEST" | "UNAUTHORIZED" | "RECONNECT";
1815
1816
  modelId: string;
1817
+ executionId: string;
1816
1818
  runtimeScopeId: string;
1817
1819
  ticket: {
1818
1820
  workspaceId: string;
@@ -1828,10 +1830,10 @@ export declare const runtimeCredentialResolveRequestSchema: z.ZodEffects<z.ZodOb
1828
1830
  purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
1829
1831
  sessionId?: string | undefined;
1830
1832
  };
1831
- executionId: string;
1832
1833
  }, {
1833
1834
  reason: "REQUEST" | "UNAUTHORIZED" | "RECONNECT";
1834
1835
  modelId: string;
1836
+ executionId: string;
1835
1837
  runtimeScopeId: string;
1836
1838
  ticket: {
1837
1839
  workspaceId: string;
@@ -1847,10 +1849,10 @@ export declare const runtimeCredentialResolveRequestSchema: z.ZodEffects<z.ZodOb
1847
1849
  purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
1848
1850
  sessionId?: string | undefined;
1849
1851
  };
1850
- executionId: string;
1851
1852
  }>, {
1852
1853
  reason: "REQUEST" | "UNAUTHORIZED" | "RECONNECT";
1853
1854
  modelId: string;
1855
+ executionId: string;
1854
1856
  runtimeScopeId: string;
1855
1857
  ticket: {
1856
1858
  workspaceId: string;
@@ -1866,10 +1868,10 @@ export declare const runtimeCredentialResolveRequestSchema: z.ZodEffects<z.ZodOb
1866
1868
  purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
1867
1869
  sessionId?: string | undefined;
1868
1870
  };
1869
- executionId: string;
1870
1871
  }, {
1871
1872
  reason: "REQUEST" | "UNAUTHORIZED" | "RECONNECT";
1872
1873
  modelId: string;
1874
+ executionId: string;
1873
1875
  runtimeScopeId: string;
1874
1876
  ticket: {
1875
1877
  workspaceId: string;
@@ -1885,7 +1887,6 @@ export declare const runtimeCredentialResolveRequestSchema: z.ZodEffects<z.ZodOb
1885
1887
  purpose?: "MODEL" | "IMAGE_GENERATION" | undefined;
1886
1888
  sessionId?: string | undefined;
1887
1889
  };
1888
- executionId: string;
1889
1890
  }>;
1890
1891
  export type RuntimeCredentialResolveRequest = z.infer<typeof runtimeCredentialResolveRequestSchema>;
1891
1892
  export declare const resolvedRuntimeCredentialSchema: z.ZodObject<{
@@ -4044,14 +4045,14 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
4044
4045
  [x: string]: any;
4045
4046
  }>;
4046
4047
  }, "strict", z.ZodTypeAny, {
4047
- runtimeScopeId: string;
4048
4048
  executionId: string;
4049
+ runtimeScopeId: string;
4049
4050
  model: {
4050
4051
  [x: string]: any;
4051
4052
  };
4052
4053
  }, {
4053
- runtimeScopeId: string;
4054
4054
  executionId: string;
4055
+ runtimeScopeId: string;
4055
4056
  model: {
4056
4057
  [x: string]: any;
4057
4058
  };
@@ -5182,9 +5183,9 @@ export declare const recentRunProjectionSchema: z.ZodObject<Omit<{
5182
5183
  runId: string;
5183
5184
  sessionId: string;
5184
5185
  version: number;
5186
+ userId: number;
5185
5187
  completedAt: number | null;
5186
5188
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5187
- userId: number;
5188
5189
  sessionTitle: string;
5189
5190
  startedAt: number;
5190
5191
  sortAt: number;
@@ -5198,9 +5199,9 @@ export declare const recentRunProjectionSchema: z.ZodObject<Omit<{
5198
5199
  runId: string;
5199
5200
  sessionId: string;
5200
5201
  version: number;
5202
+ userId: number;
5201
5203
  completedAt: number | null;
5202
5204
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5203
- userId: number;
5204
5205
  sessionTitle: string;
5205
5206
  startedAt: number;
5206
5207
  sortAt: number;
@@ -5236,9 +5237,9 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
5236
5237
  runId: string;
5237
5238
  sessionId: string;
5238
5239
  version: number;
5240
+ userId: number;
5239
5241
  completedAt: number | null;
5240
5242
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5241
- userId: number;
5242
5243
  sessionTitle: string;
5243
5244
  startedAt: number;
5244
5245
  sortAt: number;
@@ -5252,9 +5253,9 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
5252
5253
  runId: string;
5253
5254
  sessionId: string;
5254
5255
  version: number;
5256
+ userId: number;
5255
5257
  completedAt: number | null;
5256
5258
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5257
- userId: number;
5258
5259
  sessionTitle: string;
5259
5260
  startedAt: number;
5260
5261
  sortAt: number;
@@ -5271,9 +5272,9 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
5271
5272
  runId: string;
5272
5273
  sessionId: string;
5273
5274
  version: number;
5275
+ userId: number;
5274
5276
  completedAt: number | null;
5275
5277
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5276
- userId: number;
5277
5278
  sessionTitle: string;
5278
5279
  startedAt: number;
5279
5280
  sortAt: number;
@@ -5290,9 +5291,9 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
5290
5291
  runId: string;
5291
5292
  sessionId: string;
5292
5293
  version: number;
5294
+ userId: number;
5293
5295
  completedAt: number | null;
5294
5296
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5295
- userId: number;
5296
5297
  sessionTitle: string;
5297
5298
  startedAt: number;
5298
5299
  sortAt: number;
@@ -5327,9 +5328,9 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
5327
5328
  runId: string;
5328
5329
  sessionId: string;
5329
5330
  version: number;
5331
+ userId: number;
5330
5332
  completedAt: number | null;
5331
5333
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5332
- userId: number;
5333
5334
  sessionTitle: string;
5334
5335
  startedAt: number;
5335
5336
  sortAt: number;
@@ -5343,9 +5344,9 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
5343
5344
  runId: string;
5344
5345
  sessionId: string;
5345
5346
  version: number;
5347
+ userId: number;
5346
5348
  completedAt: number | null;
5347
5349
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5348
- userId: number;
5349
5350
  sessionTitle: string;
5350
5351
  startedAt: number;
5351
5352
  sortAt: number;
@@ -5362,9 +5363,9 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
5362
5363
  runId: string;
5363
5364
  sessionId: string;
5364
5365
  version: number;
5366
+ userId: number;
5365
5367
  completedAt: number | null;
5366
5368
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5367
- userId: number;
5368
5369
  sessionTitle: string;
5369
5370
  startedAt: number;
5370
5371
  sortAt: number;
@@ -5381,9 +5382,9 @@ export declare const recentRunProjectionMessageSchema: z.ZodDiscriminatedUnion<"
5381
5382
  runId: string;
5382
5383
  sessionId: string;
5383
5384
  version: number;
5385
+ userId: number;
5384
5386
  completedAt: number | null;
5385
5387
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5386
- userId: number;
5387
5388
  sessionTitle: string;
5388
5389
  startedAt: number;
5389
5390
  sortAt: number;
@@ -5861,45 +5862,45 @@ export declare const runnerCommandDescriptorSchema: z.ZodEffects<z.ZodObject<{
5861
5862
  }, "strip", z.ZodTypeAny, {
5862
5863
  id: string;
5863
5864
  description: string;
5865
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
5864
5866
  available: boolean;
5865
5867
  reasonCode: string | null;
5866
5868
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5867
5869
  label: string;
5868
5870
  inputHint: string;
5869
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
5870
5871
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
5871
5872
  stateLabel?: string | undefined;
5872
5873
  }, {
5873
5874
  id: string;
5874
5875
  description: string;
5876
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
5875
5877
  available: boolean;
5876
5878
  reasonCode: string | null;
5877
5879
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5878
5880
  label: string;
5879
5881
  inputHint: string;
5880
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
5881
5882
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
5882
5883
  stateLabel?: string | undefined;
5883
5884
  }>, {
5884
5885
  id: string;
5885
5886
  description: string;
5887
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
5886
5888
  available: boolean;
5887
5889
  reasonCode: string | null;
5888
5890
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5889
5891
  label: string;
5890
5892
  inputHint: string;
5891
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
5892
5893
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
5893
5894
  stateLabel?: string | undefined;
5894
5895
  }, {
5895
5896
  id: string;
5896
5897
  description: string;
5898
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
5897
5899
  available: boolean;
5898
5900
  reasonCode: string | null;
5899
5901
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
5900
5902
  label: string;
5901
5903
  inputHint: string;
5902
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
5903
5904
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
5904
5905
  stateLabel?: string | undefined;
5905
5906
  }>;
@@ -6028,45 +6029,45 @@ export declare const runnerProfileSchema: z.ZodObject<{
6028
6029
  }, "strip", z.ZodTypeAny, {
6029
6030
  id: string;
6030
6031
  description: string;
6032
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6031
6033
  available: boolean;
6032
6034
  reasonCode: string | null;
6033
6035
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6034
6036
  label: string;
6035
6037
  inputHint: string;
6036
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6037
6038
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6038
6039
  stateLabel?: string | undefined;
6039
6040
  }, {
6040
6041
  id: string;
6041
6042
  description: string;
6043
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6042
6044
  available: boolean;
6043
6045
  reasonCode: string | null;
6044
6046
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6045
6047
  label: string;
6046
6048
  inputHint: string;
6047
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6048
6049
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6049
6050
  stateLabel?: string | undefined;
6050
6051
  }>, {
6051
6052
  id: string;
6052
6053
  description: string;
6054
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6053
6055
  available: boolean;
6054
6056
  reasonCode: string | null;
6055
6057
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6056
6058
  label: string;
6057
6059
  inputHint: string;
6058
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6059
6060
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6060
6061
  stateLabel?: string | undefined;
6061
6062
  }, {
6062
6063
  id: string;
6063
6064
  description: string;
6065
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6064
6066
  available: boolean;
6065
6067
  reasonCode: string | null;
6066
6068
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6067
6069
  label: string;
6068
6070
  inputHint: string;
6069
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6070
6071
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6071
6072
  stateLabel?: string | undefined;
6072
6073
  }>, "many">;
@@ -6089,12 +6090,12 @@ export declare const runnerProfileSchema: z.ZodObject<{
6089
6090
  commands: {
6090
6091
  id: string;
6091
6092
  description: string;
6093
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6092
6094
  available: boolean;
6093
6095
  reasonCode: string | null;
6094
6096
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6095
6097
  label: string;
6096
6098
  inputHint: string;
6097
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6098
6099
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6099
6100
  stateLabel?: string | undefined;
6100
6101
  }[];
@@ -6116,12 +6117,12 @@ export declare const runnerProfileSchema: z.ZodObject<{
6116
6117
  commands: {
6117
6118
  id: string;
6118
6119
  description: string;
6120
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6119
6121
  available: boolean;
6120
6122
  reasonCode: string | null;
6121
6123
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6122
6124
  label: string;
6123
6125
  inputHint: string;
6124
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6125
6126
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6126
6127
  stateLabel?: string | undefined;
6127
6128
  }[];
@@ -6273,45 +6274,45 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
6273
6274
  }, "strip", z.ZodTypeAny, {
6274
6275
  id: string;
6275
6276
  description: string;
6277
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6276
6278
  available: boolean;
6277
6279
  reasonCode: string | null;
6278
6280
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6279
6281
  label: string;
6280
6282
  inputHint: string;
6281
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6282
6283
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6283
6284
  stateLabel?: string | undefined;
6284
6285
  }, {
6285
6286
  id: string;
6286
6287
  description: string;
6288
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6287
6289
  available: boolean;
6288
6290
  reasonCode: string | null;
6289
6291
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6290
6292
  label: string;
6291
6293
  inputHint: string;
6292
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6293
6294
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6294
6295
  stateLabel?: string | undefined;
6295
6296
  }>, {
6296
6297
  id: string;
6297
6298
  description: string;
6299
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6298
6300
  available: boolean;
6299
6301
  reasonCode: string | null;
6300
6302
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6301
6303
  label: string;
6302
6304
  inputHint: string;
6303
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6304
6305
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6305
6306
  stateLabel?: string | undefined;
6306
6307
  }, {
6307
6308
  id: string;
6308
6309
  description: string;
6310
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6309
6311
  available: boolean;
6310
6312
  reasonCode: string | null;
6311
6313
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6312
6314
  label: string;
6313
6315
  inputHint: string;
6314
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6315
6316
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6316
6317
  stateLabel?: string | undefined;
6317
6318
  }>, "many">;
@@ -6334,12 +6335,12 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
6334
6335
  commands: {
6335
6336
  id: string;
6336
6337
  description: string;
6338
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6337
6339
  available: boolean;
6338
6340
  reasonCode: string | null;
6339
6341
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6340
6342
  label: string;
6341
6343
  inputHint: string;
6342
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6343
6344
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6344
6345
  stateLabel?: string | undefined;
6345
6346
  }[];
@@ -6361,12 +6362,12 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
6361
6362
  commands: {
6362
6363
  id: string;
6363
6364
  description: string;
6365
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6364
6366
  available: boolean;
6365
6367
  reasonCode: string | null;
6366
6368
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6367
6369
  label: string;
6368
6370
  inputHint: string;
6369
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6370
6371
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6371
6372
  stateLabel?: string | undefined;
6372
6373
  }[];
@@ -6561,12 +6562,12 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
6561
6562
  commands: {
6562
6563
  id: string;
6563
6564
  description: string;
6565
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6564
6566
  available: boolean;
6565
6567
  reasonCode: string | null;
6566
6568
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6567
6569
  label: string;
6568
6570
  inputHint: string;
6569
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6570
6571
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6571
6572
  stateLabel?: string | undefined;
6572
6573
  }[];
@@ -6621,12 +6622,12 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
6621
6622
  commands: {
6622
6623
  id: string;
6623
6624
  description: string;
6625
+ source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6624
6626
  available: boolean;
6625
6627
  reasonCode: string | null;
6626
6628
  runner: "codex" | "claude-code" | "opencode" | "mar-agent";
6627
6629
  label: string;
6628
6630
  inputHint: string;
6629
- source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER" | "MAR_RUNTIME";
6630
6631
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "DESTRUCTIVE_ACTION" | "TOGGLE" | "VALUE";
6631
6632
  stateLabel?: string | undefined;
6632
6633
  }[];
@@ -11651,8 +11652,8 @@ export declare const conversationFileProjectionSchema: z.ZodObject<{
11651
11652
  updatedAt: number;
11652
11653
  displayName: string;
11653
11654
  conversationId: string;
11654
- category: "UPLOAD" | "OUTPUT";
11655
11655
  source: "USER" | "SYSTEM" | "AGENT";
11656
+ category: "UPLOAD" | "OUTPUT";
11656
11657
  relativePath: string;
11657
11658
  mimeType: string;
11658
11659
  turnId?: string | undefined;
@@ -11664,8 +11665,8 @@ export declare const conversationFileProjectionSchema: z.ZodObject<{
11664
11665
  updatedAt: number;
11665
11666
  displayName: string;
11666
11667
  conversationId: string;
11667
- category: "UPLOAD" | "OUTPUT";
11668
11668
  source: "USER" | "SYSTEM" | "AGENT";
11669
+ category: "UPLOAD" | "OUTPUT";
11669
11670
  relativePath: string;
11670
11671
  mimeType: string;
11671
11672
  turnId?: string | undefined;
@@ -13988,8 +13989,8 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13988
13989
  updatedAt: number;
13989
13990
  displayName: string;
13990
13991
  conversationId: string;
13991
- category: "UPLOAD" | "OUTPUT";
13992
13992
  source: "USER" | "SYSTEM" | "AGENT";
13993
+ category: "UPLOAD" | "OUTPUT";
13993
13994
  relativePath: string;
13994
13995
  mimeType: string;
13995
13996
  turnId?: string | undefined;
@@ -14001,8 +14002,8 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
14001
14002
  updatedAt: number;
14002
14003
  displayName: string;
14003
14004
  conversationId: string;
14004
- category: "UPLOAD" | "OUTPUT";
14005
14005
  source: "USER" | "SYSTEM" | "AGENT";
14006
+ category: "UPLOAD" | "OUTPUT";
14006
14007
  relativePath: string;
14007
14008
  mimeType: string;
14008
14009
  turnId?: string | undefined;
@@ -14187,8 +14188,8 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
14187
14188
  updatedAt: number;
14188
14189
  displayName: string;
14189
14190
  conversationId: string;
14190
- category: "UPLOAD" | "OUTPUT";
14191
14191
  source: "USER" | "SYSTEM" | "AGENT";
14192
+ category: "UPLOAD" | "OUTPUT";
14192
14193
  relativePath: string;
14193
14194
  mimeType: string;
14194
14195
  turnId?: string | undefined;
@@ -14613,8 +14614,8 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
14613
14614
  updatedAt: number;
14614
14615
  displayName: string;
14615
14616
  conversationId: string;
14616
- category: "UPLOAD" | "OUTPUT";
14617
14617
  source: "USER" | "SYSTEM" | "AGENT";
14618
+ category: "UPLOAD" | "OUTPUT";
14618
14619
  relativePath: string;
14619
14620
  mimeType: string;
14620
14621
  turnId?: string | undefined;
@@ -15039,8 +15040,8 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15039
15040
  updatedAt: number;
15040
15041
  displayName: string;
15041
15042
  conversationId: string;
15042
- category: "UPLOAD" | "OUTPUT";
15043
15043
  source: "USER" | "SYSTEM" | "AGENT";
15044
+ category: "UPLOAD" | "OUTPUT";
15044
15045
  relativePath: string;
15045
15046
  mimeType: string;
15046
15047
  turnId?: string | undefined;
@@ -15465,8 +15466,8 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15465
15466
  updatedAt: number;
15466
15467
  displayName: string;
15467
15468
  conversationId: string;
15468
- category: "UPLOAD" | "OUTPUT";
15469
15469
  source: "USER" | "SYSTEM" | "AGENT";
15470
+ category: "UPLOAD" | "OUTPUT";
15470
15471
  relativePath: string;
15471
15472
  mimeType: string;
15472
15473
  turnId?: string | undefined;
@@ -19179,8 +19180,8 @@ export declare const hostedConversationFilesSchema: z.ZodObject<{
19179
19180
  updatedAt: number;
19180
19181
  displayName: string;
19181
19182
  conversationId: string;
19182
- category: "UPLOAD" | "OUTPUT";
19183
19183
  source: "USER" | "SYSTEM" | "AGENT";
19184
+ category: "UPLOAD" | "OUTPUT";
19184
19185
  relativePath: string;
19185
19186
  mimeType: string;
19186
19187
  turnId?: string | undefined;
@@ -19192,8 +19193,8 @@ export declare const hostedConversationFilesSchema: z.ZodObject<{
19192
19193
  updatedAt: number;
19193
19194
  displayName: string;
19194
19195
  conversationId: string;
19195
- category: "UPLOAD" | "OUTPUT";
19196
19196
  source: "USER" | "SYSTEM" | "AGENT";
19197
+ category: "UPLOAD" | "OUTPUT";
19197
19198
  relativePath: string;
19198
19199
  mimeType: string;
19199
19200
  turnId?: string | undefined;
@@ -19207,8 +19208,8 @@ export declare const hostedConversationFilesSchema: z.ZodObject<{
19207
19208
  updatedAt: number;
19208
19209
  displayName: string;
19209
19210
  conversationId: string;
19210
- category: "UPLOAD" | "OUTPUT";
19211
19211
  source: "USER" | "SYSTEM" | "AGENT";
19212
+ category: "UPLOAD" | "OUTPUT";
19212
19213
  relativePath: string;
19213
19214
  mimeType: string;
19214
19215
  turnId?: string | undefined;
@@ -19222,8 +19223,8 @@ export declare const hostedConversationFilesSchema: z.ZodObject<{
19222
19223
  updatedAt: number;
19223
19224
  displayName: string;
19224
19225
  conversationId: string;
19225
- category: "UPLOAD" | "OUTPUT";
19226
19226
  source: "USER" | "SYSTEM" | "AGENT";
19227
+ category: "UPLOAD" | "OUTPUT";
19227
19228
  relativePath: string;
19228
19229
  mimeType: string;
19229
19230
  turnId?: string | undefined;
@@ -19283,8 +19284,8 @@ export declare const hostedConversationFileDeleteResultSchema: z.ZodEffects<z.Zo
19283
19284
  updatedAt: number;
19284
19285
  displayName: string;
19285
19286
  conversationId: string;
19286
- category: "UPLOAD" | "OUTPUT";
19287
19287
  source: "USER" | "SYSTEM" | "AGENT";
19288
+ category: "UPLOAD" | "OUTPUT";
19288
19289
  relativePath: string;
19289
19290
  mimeType: string;
19290
19291
  turnId?: string | undefined;
@@ -19296,8 +19297,8 @@ export declare const hostedConversationFileDeleteResultSchema: z.ZodEffects<z.Zo
19296
19297
  updatedAt: number;
19297
19298
  displayName: string;
19298
19299
  conversationId: string;
19299
- category: "UPLOAD" | "OUTPUT";
19300
19300
  source: "USER" | "SYSTEM" | "AGENT";
19301
+ category: "UPLOAD" | "OUTPUT";
19301
19302
  relativePath: string;
19302
19303
  mimeType: string;
19303
19304
  turnId?: string | undefined;
@@ -19311,8 +19312,8 @@ export declare const hostedConversationFileDeleteResultSchema: z.ZodEffects<z.Zo
19311
19312
  updatedAt: number;
19312
19313
  displayName: string;
19313
19314
  conversationId: string;
19314
- category: "UPLOAD" | "OUTPUT";
19315
19315
  source: "USER" | "SYSTEM" | "AGENT";
19316
+ category: "UPLOAD" | "OUTPUT";
19316
19317
  relativePath: string;
19317
19318
  mimeType: string;
19318
19319
  turnId?: string | undefined;
@@ -19327,8 +19328,8 @@ export declare const hostedConversationFileDeleteResultSchema: z.ZodEffects<z.Zo
19327
19328
  updatedAt: number;
19328
19329
  displayName: string;
19329
19330
  conversationId: string;
19330
- category: "UPLOAD" | "OUTPUT";
19331
19331
  source: "USER" | "SYSTEM" | "AGENT";
19332
+ category: "UPLOAD" | "OUTPUT";
19332
19333
  relativePath: string;
19333
19334
  mimeType: string;
19334
19335
  turnId?: string | undefined;
@@ -19343,8 +19344,8 @@ export declare const hostedConversationFileDeleteResultSchema: z.ZodEffects<z.Zo
19343
19344
  updatedAt: number;
19344
19345
  displayName: string;
19345
19346
  conversationId: string;
19346
- category: "UPLOAD" | "OUTPUT";
19347
19347
  source: "USER" | "SYSTEM" | "AGENT";
19348
+ category: "UPLOAD" | "OUTPUT";
19348
19349
  relativePath: string;
19349
19350
  mimeType: string;
19350
19351
  turnId?: string | undefined;
@@ -19359,8 +19360,8 @@ export declare const hostedConversationFileDeleteResultSchema: z.ZodEffects<z.Zo
19359
19360
  updatedAt: number;
19360
19361
  displayName: string;
19361
19362
  conversationId: string;
19362
- category: "UPLOAD" | "OUTPUT";
19363
19363
  source: "USER" | "SYSTEM" | "AGENT";
19364
+ category: "UPLOAD" | "OUTPUT";
19364
19365
  relativePath: string;
19365
19366
  mimeType: string;
19366
19367
  turnId?: string | undefined;
@@ -19390,8 +19391,8 @@ export declare const hostedConversationFileReadResultSchema: z.ZodEffects<z.ZodO
19390
19391
  updatedAt: number;
19391
19392
  displayName: string;
19392
19393
  conversationId: string;
19393
- category: "UPLOAD" | "OUTPUT";
19394
19394
  source: "USER" | "SYSTEM" | "AGENT";
19395
+ category: "UPLOAD" | "OUTPUT";
19395
19396
  relativePath: string;
19396
19397
  mimeType: string;
19397
19398
  turnId?: string | undefined;
@@ -19403,8 +19404,8 @@ export declare const hostedConversationFileReadResultSchema: z.ZodEffects<z.ZodO
19403
19404
  updatedAt: number;
19404
19405
  displayName: string;
19405
19406
  conversationId: string;
19406
- category: "UPLOAD" | "OUTPUT";
19407
19407
  source: "USER" | "SYSTEM" | "AGENT";
19408
+ category: "UPLOAD" | "OUTPUT";
19408
19409
  relativePath: string;
19409
19410
  mimeType: string;
19410
19411
  turnId?: string | undefined;
@@ -19425,8 +19426,8 @@ export declare const hostedConversationFileReadResultSchema: z.ZodEffects<z.ZodO
19425
19426
  updatedAt: number;
19426
19427
  displayName: string;
19427
19428
  conversationId: string;
19428
- category: "UPLOAD" | "OUTPUT";
19429
19429
  source: "USER" | "SYSTEM" | "AGENT";
19430
+ category: "UPLOAD" | "OUTPUT";
19430
19431
  relativePath: string;
19431
19432
  mimeType: string;
19432
19433
  turnId?: string | undefined;
@@ -19445,8 +19446,8 @@ export declare const hostedConversationFileReadResultSchema: z.ZodEffects<z.ZodO
19445
19446
  updatedAt: number;
19446
19447
  displayName: string;
19447
19448
  conversationId: string;
19448
- category: "UPLOAD" | "OUTPUT";
19449
19449
  source: "USER" | "SYSTEM" | "AGENT";
19450
+ category: "UPLOAD" | "OUTPUT";
19450
19451
  relativePath: string;
19451
19452
  mimeType: string;
19452
19453
  turnId?: string | undefined;
@@ -19465,8 +19466,8 @@ export declare const hostedConversationFileReadResultSchema: z.ZodEffects<z.ZodO
19465
19466
  updatedAt: number;
19466
19467
  displayName: string;
19467
19468
  conversationId: string;
19468
- category: "UPLOAD" | "OUTPUT";
19469
19469
  source: "USER" | "SYSTEM" | "AGENT";
19470
+ category: "UPLOAD" | "OUTPUT";
19470
19471
  relativePath: string;
19471
19472
  mimeType: string;
19472
19473
  turnId?: string | undefined;
@@ -19485,8 +19486,8 @@ export declare const hostedConversationFileReadResultSchema: z.ZodEffects<z.ZodO
19485
19486
  updatedAt: number;
19486
19487
  displayName: string;
19487
19488
  conversationId: string;
19488
- category: "UPLOAD" | "OUTPUT";
19489
19489
  source: "USER" | "SYSTEM" | "AGENT";
19490
+ category: "UPLOAD" | "OUTPUT";
19490
19491
  relativePath: string;
19491
19492
  mimeType: string;
19492
19493
  turnId?: string | undefined;
@@ -19631,8 +19632,8 @@ export declare const hostedConversationUploadSchema: z.ZodEffects<z.ZodObject<{
19631
19632
  updatedAt: number;
19632
19633
  displayName: string;
19633
19634
  conversationId: string;
19634
- category: "UPLOAD" | "OUTPUT";
19635
19635
  source: "USER" | "SYSTEM" | "AGENT";
19636
+ category: "UPLOAD" | "OUTPUT";
19636
19637
  relativePath: string;
19637
19638
  mimeType: string;
19638
19639
  turnId?: string | undefined;
@@ -19644,8 +19645,8 @@ export declare const hostedConversationUploadSchema: z.ZodEffects<z.ZodObject<{
19644
19645
  updatedAt: number;
19645
19646
  displayName: string;
19646
19647
  conversationId: string;
19647
- category: "UPLOAD" | "OUTPUT";
19648
19648
  source: "USER" | "SYSTEM" | "AGENT";
19649
+ category: "UPLOAD" | "OUTPUT";
19649
19650
  relativePath: string;
19650
19651
  mimeType: string;
19651
19652
  turnId?: string | undefined;
@@ -19666,8 +19667,8 @@ export declare const hostedConversationUploadSchema: z.ZodEffects<z.ZodObject<{
19666
19667
  updatedAt: number;
19667
19668
  displayName: string;
19668
19669
  conversationId: string;
19669
- category: "UPLOAD" | "OUTPUT";
19670
19670
  source: "USER" | "SYSTEM" | "AGENT";
19671
+ category: "UPLOAD" | "OUTPUT";
19671
19672
  relativePath: string;
19672
19673
  mimeType: string;
19673
19674
  turnId?: string | undefined;
@@ -19688,8 +19689,8 @@ export declare const hostedConversationUploadSchema: z.ZodEffects<z.ZodObject<{
19688
19689
  updatedAt: number;
19689
19690
  displayName: string;
19690
19691
  conversationId: string;
19691
- category: "UPLOAD" | "OUTPUT";
19692
19692
  source: "USER" | "SYSTEM" | "AGENT";
19693
+ category: "UPLOAD" | "OUTPUT";
19693
19694
  relativePath: string;
19694
19695
  mimeType: string;
19695
19696
  turnId?: string | undefined;
@@ -19710,8 +19711,8 @@ export declare const hostedConversationUploadSchema: z.ZodEffects<z.ZodObject<{
19710
19711
  updatedAt: number;
19711
19712
  displayName: string;
19712
19713
  conversationId: string;
19713
- category: "UPLOAD" | "OUTPUT";
19714
19714
  source: "USER" | "SYSTEM" | "AGENT";
19715
+ category: "UPLOAD" | "OUTPUT";
19715
19716
  relativePath: string;
19716
19717
  mimeType: string;
19717
19718
  turnId?: string | undefined;
@@ -19732,8 +19733,8 @@ export declare const hostedConversationUploadSchema: z.ZodEffects<z.ZodObject<{
19732
19733
  updatedAt: number;
19733
19734
  displayName: string;
19734
19735
  conversationId: string;
19735
- category: "UPLOAD" | "OUTPUT";
19736
19736
  source: "USER" | "SYSTEM" | "AGENT";
19737
+ category: "UPLOAD" | "OUTPUT";
19737
19738
  relativePath: string;
19738
19739
  mimeType: string;
19739
19740
  turnId?: string | undefined;
@@ -24041,8 +24042,8 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
24041
24042
  latestVisibleAt: z.ZodNumber;
24042
24043
  deferredOlderHistory: z.ZodOptional<z.ZodBoolean>;
24043
24044
  }, "strip", z.ZodTypeAny, {
24044
- snapshotSequence: number;
24045
24045
  source: "runtime" | "official" | "native";
24046
+ snapshotSequence: number;
24046
24047
  nextCursor: string | null;
24047
24048
  unit: "SEGMENT";
24048
24049
  segments: {
@@ -24409,8 +24410,8 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
24409
24410
  latestVisibleAt: number;
24410
24411
  deferredOlderHistory?: boolean | undefined;
24411
24412
  }, {
24412
- snapshotSequence: number;
24413
24413
  source: "runtime" | "official" | "native";
24414
+ snapshotSequence: number;
24414
24415
  nextCursor: string | null;
24415
24416
  unit: "SEGMENT";
24416
24417
  segments: {
@@ -25492,6 +25493,7 @@ export declare const workspaceChangesRepositorySchema: z.ZodEffects<z.ZodObject<
25492
25493
  }>, "many">;
25493
25494
  }, "strip", z.ZodTypeAny, {
25494
25495
  repositoryPath: string;
25496
+ source: "ROOT" | "SUBMODULE" | "WORKTREE";
25495
25497
  branch: string | null;
25496
25498
  changes: {
25497
25499
  path: string;
@@ -25502,23 +25504,23 @@ export declare const workspaceChangesRepositorySchema: z.ZodEffects<z.ZodObject<
25502
25504
  diffAvailable: boolean;
25503
25505
  binary: boolean;
25504
25506
  }[];
25505
- source: "ROOT" | "SUBMODULE" | "WORKTREE";
25506
25507
  repositoryName: string;
25507
25508
  status?: "UNAVAILABLE" | "CLEAN" | "DIRTY" | undefined;
25508
25509
  worktreePath?: string | undefined;
25509
- head?: string | undefined;
25510
25510
  error?: {
25511
25511
  code: string;
25512
25512
  message: string;
25513
25513
  details?: string | undefined;
25514
25514
  parameters?: Record<string, string | number> | undefined;
25515
25515
  } | undefined;
25516
+ head?: string | undefined;
25516
25517
  current?: boolean | undefined;
25517
25518
  locked?: boolean | undefined;
25518
25519
  prunable?: boolean | undefined;
25519
25520
  physicalPath?: string | undefined;
25520
25521
  }, {
25521
25522
  repositoryPath: string;
25523
+ source: "ROOT" | "SUBMODULE" | "WORKTREE";
25522
25524
  branch: string | null;
25523
25525
  changes: {
25524
25526
  path: string;
@@ -25529,23 +25531,23 @@ export declare const workspaceChangesRepositorySchema: z.ZodEffects<z.ZodObject<
25529
25531
  diffAvailable: boolean;
25530
25532
  binary: boolean;
25531
25533
  }[];
25532
- source: "ROOT" | "SUBMODULE" | "WORKTREE";
25533
25534
  repositoryName: string;
25534
25535
  status?: "UNAVAILABLE" | "CLEAN" | "DIRTY" | undefined;
25535
25536
  worktreePath?: string | undefined;
25536
- head?: string | undefined;
25537
25537
  error?: {
25538
25538
  code: string;
25539
25539
  message: string;
25540
25540
  details?: string | undefined;
25541
25541
  parameters?: Record<string, string | number> | undefined;
25542
25542
  } | undefined;
25543
+ head?: string | undefined;
25543
25544
  current?: boolean | undefined;
25544
25545
  locked?: boolean | undefined;
25545
25546
  prunable?: boolean | undefined;
25546
25547
  physicalPath?: string | undefined;
25547
25548
  }>, {
25548
25549
  repositoryPath: string;
25550
+ source: "ROOT" | "SUBMODULE" | "WORKTREE";
25549
25551
  branch: string | null;
25550
25552
  changes: {
25551
25553
  path: string;
@@ -25556,23 +25558,23 @@ export declare const workspaceChangesRepositorySchema: z.ZodEffects<z.ZodObject<
25556
25558
  diffAvailable: boolean;
25557
25559
  binary: boolean;
25558
25560
  }[];
25559
- source: "ROOT" | "SUBMODULE" | "WORKTREE";
25560
25561
  repositoryName: string;
25561
25562
  status?: "UNAVAILABLE" | "CLEAN" | "DIRTY" | undefined;
25562
25563
  worktreePath?: string | undefined;
25563
- head?: string | undefined;
25564
25564
  error?: {
25565
25565
  code: string;
25566
25566
  message: string;
25567
25567
  details?: string | undefined;
25568
25568
  parameters?: Record<string, string | number> | undefined;
25569
25569
  } | undefined;
25570
+ head?: string | undefined;
25570
25571
  current?: boolean | undefined;
25571
25572
  locked?: boolean | undefined;
25572
25573
  prunable?: boolean | undefined;
25573
25574
  physicalPath?: string | undefined;
25574
25575
  }, {
25575
25576
  repositoryPath: string;
25577
+ source: "ROOT" | "SUBMODULE" | "WORKTREE";
25576
25578
  branch: string | null;
25577
25579
  changes: {
25578
25580
  path: string;
@@ -25583,17 +25585,16 @@ export declare const workspaceChangesRepositorySchema: z.ZodEffects<z.ZodObject<
25583
25585
  diffAvailable: boolean;
25584
25586
  binary: boolean;
25585
25587
  }[];
25586
- source: "ROOT" | "SUBMODULE" | "WORKTREE";
25587
25588
  repositoryName: string;
25588
25589
  status?: "UNAVAILABLE" | "CLEAN" | "DIRTY" | undefined;
25589
25590
  worktreePath?: string | undefined;
25590
- head?: string | undefined;
25591
25591
  error?: {
25592
25592
  code: string;
25593
25593
  message: string;
25594
25594
  details?: string | undefined;
25595
25595
  parameters?: Record<string, string | number> | undefined;
25596
25596
  } | undefined;
25597
+ head?: string | undefined;
25597
25598
  current?: boolean | undefined;
25598
25599
  locked?: boolean | undefined;
25599
25600
  prunable?: boolean | undefined;
@@ -25682,6 +25683,7 @@ export declare const workspaceChangesSummarySchema: z.ZodObject<{
25682
25683
  }>, "many">;
25683
25684
  }, "strip", z.ZodTypeAny, {
25684
25685
  repositoryPath: string;
25686
+ source: "ROOT" | "SUBMODULE" | "WORKTREE";
25685
25687
  branch: string | null;
25686
25688
  changes: {
25687
25689
  path: string;
@@ -25692,23 +25694,23 @@ export declare const workspaceChangesSummarySchema: z.ZodObject<{
25692
25694
  diffAvailable: boolean;
25693
25695
  binary: boolean;
25694
25696
  }[];
25695
- source: "ROOT" | "SUBMODULE" | "WORKTREE";
25696
25697
  repositoryName: string;
25697
25698
  status?: "UNAVAILABLE" | "CLEAN" | "DIRTY" | undefined;
25698
25699
  worktreePath?: string | undefined;
25699
- head?: string | undefined;
25700
25700
  error?: {
25701
25701
  code: string;
25702
25702
  message: string;
25703
25703
  details?: string | undefined;
25704
25704
  parameters?: Record<string, string | number> | undefined;
25705
25705
  } | undefined;
25706
+ head?: string | undefined;
25706
25707
  current?: boolean | undefined;
25707
25708
  locked?: boolean | undefined;
25708
25709
  prunable?: boolean | undefined;
25709
25710
  physicalPath?: string | undefined;
25710
25711
  }, {
25711
25712
  repositoryPath: string;
25713
+ source: "ROOT" | "SUBMODULE" | "WORKTREE";
25712
25714
  branch: string | null;
25713
25715
  changes: {
25714
25716
  path: string;
@@ -25719,23 +25721,23 @@ export declare const workspaceChangesSummarySchema: z.ZodObject<{
25719
25721
  diffAvailable: boolean;
25720
25722
  binary: boolean;
25721
25723
  }[];
25722
- source: "ROOT" | "SUBMODULE" | "WORKTREE";
25723
25724
  repositoryName: string;
25724
25725
  status?: "UNAVAILABLE" | "CLEAN" | "DIRTY" | undefined;
25725
25726
  worktreePath?: string | undefined;
25726
- head?: string | undefined;
25727
25727
  error?: {
25728
25728
  code: string;
25729
25729
  message: string;
25730
25730
  details?: string | undefined;
25731
25731
  parameters?: Record<string, string | number> | undefined;
25732
25732
  } | undefined;
25733
+ head?: string | undefined;
25733
25734
  current?: boolean | undefined;
25734
25735
  locked?: boolean | undefined;
25735
25736
  prunable?: boolean | undefined;
25736
25737
  physicalPath?: string | undefined;
25737
25738
  }>, {
25738
25739
  repositoryPath: string;
25740
+ source: "ROOT" | "SUBMODULE" | "WORKTREE";
25739
25741
  branch: string | null;
25740
25742
  changes: {
25741
25743
  path: string;
@@ -25746,23 +25748,23 @@ export declare const workspaceChangesSummarySchema: z.ZodObject<{
25746
25748
  diffAvailable: boolean;
25747
25749
  binary: boolean;
25748
25750
  }[];
25749
- source: "ROOT" | "SUBMODULE" | "WORKTREE";
25750
25751
  repositoryName: string;
25751
25752
  status?: "UNAVAILABLE" | "CLEAN" | "DIRTY" | undefined;
25752
25753
  worktreePath?: string | undefined;
25753
- head?: string | undefined;
25754
25754
  error?: {
25755
25755
  code: string;
25756
25756
  message: string;
25757
25757
  details?: string | undefined;
25758
25758
  parameters?: Record<string, string | number> | undefined;
25759
25759
  } | undefined;
25760
+ head?: string | undefined;
25760
25761
  current?: boolean | undefined;
25761
25762
  locked?: boolean | undefined;
25762
25763
  prunable?: boolean | undefined;
25763
25764
  physicalPath?: string | undefined;
25764
25765
  }, {
25765
25766
  repositoryPath: string;
25767
+ source: "ROOT" | "SUBMODULE" | "WORKTREE";
25766
25768
  branch: string | null;
25767
25769
  changes: {
25768
25770
  path: string;
@@ -25773,17 +25775,16 @@ export declare const workspaceChangesSummarySchema: z.ZodObject<{
25773
25775
  diffAvailable: boolean;
25774
25776
  binary: boolean;
25775
25777
  }[];
25776
- source: "ROOT" | "SUBMODULE" | "WORKTREE";
25777
25778
  repositoryName: string;
25778
25779
  status?: "UNAVAILABLE" | "CLEAN" | "DIRTY" | undefined;
25779
25780
  worktreePath?: string | undefined;
25780
- head?: string | undefined;
25781
25781
  error?: {
25782
25782
  code: string;
25783
25783
  message: string;
25784
25784
  details?: string | undefined;
25785
25785
  parameters?: Record<string, string | number> | undefined;
25786
25786
  } | undefined;
25787
+ head?: string | undefined;
25787
25788
  current?: boolean | undefined;
25788
25789
  locked?: boolean | undefined;
25789
25790
  prunable?: boolean | undefined;
@@ -25845,6 +25846,7 @@ export declare const workspaceChangesSummarySchema: z.ZodObject<{
25845
25846
  }[];
25846
25847
  repositories: {
25847
25848
  repositoryPath: string;
25849
+ source: "ROOT" | "SUBMODULE" | "WORKTREE";
25848
25850
  branch: string | null;
25849
25851
  changes: {
25850
25852
  path: string;
@@ -25855,17 +25857,16 @@ export declare const workspaceChangesSummarySchema: z.ZodObject<{
25855
25857
  diffAvailable: boolean;
25856
25858
  binary: boolean;
25857
25859
  }[];
25858
- source: "ROOT" | "SUBMODULE" | "WORKTREE";
25859
25860
  repositoryName: string;
25860
25861
  status?: "UNAVAILABLE" | "CLEAN" | "DIRTY" | undefined;
25861
25862
  worktreePath?: string | undefined;
25862
- head?: string | undefined;
25863
25863
  error?: {
25864
25864
  code: string;
25865
25865
  message: string;
25866
25866
  details?: string | undefined;
25867
25867
  parameters?: Record<string, string | number> | undefined;
25868
25868
  } | undefined;
25869
+ head?: string | undefined;
25869
25870
  current?: boolean | undefined;
25870
25871
  locked?: boolean | undefined;
25871
25872
  prunable?: boolean | undefined;
@@ -25901,6 +25902,7 @@ export declare const workspaceChangesSummarySchema: z.ZodObject<{
25901
25902
  }[];
25902
25903
  repositories: {
25903
25904
  repositoryPath: string;
25905
+ source: "ROOT" | "SUBMODULE" | "WORKTREE";
25904
25906
  branch: string | null;
25905
25907
  changes: {
25906
25908
  path: string;
@@ -25911,17 +25913,16 @@ export declare const workspaceChangesSummarySchema: z.ZodObject<{
25911
25913
  diffAvailable: boolean;
25912
25914
  binary: boolean;
25913
25915
  }[];
25914
- source: "ROOT" | "SUBMODULE" | "WORKTREE";
25915
25916
  repositoryName: string;
25916
25917
  status?: "UNAVAILABLE" | "CLEAN" | "DIRTY" | undefined;
25917
25918
  worktreePath?: string | undefined;
25918
- head?: string | undefined;
25919
25919
  error?: {
25920
25920
  code: string;
25921
25921
  message: string;
25922
25922
  details?: string | undefined;
25923
25923
  parameters?: Record<string, string | number> | undefined;
25924
25924
  } | undefined;
25925
+ head?: string | undefined;
25925
25926
  current?: boolean | undefined;
25926
25927
  locked?: boolean | undefined;
25927
25928
  prunable?: boolean | undefined;
package/dist/index.js CHANGED
@@ -8,6 +8,7 @@ export * from './mcp.js';
8
8
  export * from './git-identity.js';
9
9
  export * from './direct-transfer.js';
10
10
  export * from './terminal-direct.js';
11
+ export * from './mail-notification.js';
11
12
  export const healthStatusSchema = z.object({
12
13
  status: z.literal('ok')
13
14
  });
@@ -0,0 +1,62 @@
1
+ import { z } from 'zod';
2
+ export declare const mailNotificationRequestSchema: z.ZodObject<{
3
+ executionId: z.ZodString;
4
+ sessionId: z.ZodString;
5
+ workspaceId: z.ZodString;
6
+ userId: z.ZodNumber;
7
+ source: z.ZodEnum<["MANUAL", "SCHEDULED"]>;
8
+ callId: z.ZodString;
9
+ templateId: z.ZodString;
10
+ recipientEmail: z.ZodString;
11
+ message: z.ZodString;
12
+ }, "strict", z.ZodTypeAny, {
13
+ message: string;
14
+ workspaceId: string;
15
+ templateId: string;
16
+ sessionId: string;
17
+ executionId: string;
18
+ userId: number;
19
+ source: "MANUAL" | "SCHEDULED";
20
+ callId: string;
21
+ recipientEmail: string;
22
+ }, {
23
+ message: string;
24
+ workspaceId: string;
25
+ templateId: string;
26
+ sessionId: string;
27
+ executionId: string;
28
+ userId: number;
29
+ source: "MANUAL" | "SCHEDULED";
30
+ callId: string;
31
+ recipientEmail: string;
32
+ }>;
33
+ export type MailNotificationRequest = z.infer<typeof mailNotificationRequestSchema>;
34
+ export declare const mailNotificationResponseSchema: z.ZodUnion<[z.ZodObject<{
35
+ accepted: z.ZodLiteral<true>;
36
+ }, "strict", z.ZodTypeAny, {
37
+ accepted: true;
38
+ }, {
39
+ accepted: true;
40
+ }>, z.ZodObject<{
41
+ error: z.ZodObject<{
42
+ code: z.ZodString;
43
+ message: z.ZodString;
44
+ }, "strict", z.ZodTypeAny, {
45
+ code: string;
46
+ message: string;
47
+ }, {
48
+ code: string;
49
+ message: string;
50
+ }>;
51
+ }, "strict", z.ZodTypeAny, {
52
+ error: {
53
+ code: string;
54
+ message: string;
55
+ };
56
+ }, {
57
+ error: {
58
+ code: string;
59
+ message: string;
60
+ };
61
+ }>]>;
62
+ export type MailNotificationResponse = z.infer<typeof mailNotificationResponseSchema>;
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod';
2
+ const id = z
3
+ .string()
4
+ .min(1)
5
+ .max(128)
6
+ .regex(/^[A-Za-z0-9_-]+$/u);
7
+ export const mailNotificationRequestSchema = z
8
+ .object({
9
+ executionId: id,
10
+ sessionId: id,
11
+ workspaceId: id,
12
+ userId: z.number().int().positive().safe(),
13
+ source: z.enum(['MANUAL', 'SCHEDULED']),
14
+ callId: z.string().uuid(),
15
+ templateId: z
16
+ .string()
17
+ .max(64)
18
+ .regex(/^[A-Za-z0-9-]*$/u),
19
+ recipientEmail: z.string().min(3).max(320),
20
+ message: z.string().min(1).max(4000)
21
+ })
22
+ .strict();
23
+ export const mailNotificationResponseSchema = z.union([
24
+ z.object({ accepted: z.literal(true) }).strict(),
25
+ z
26
+ .object({
27
+ error: z
28
+ .object({
29
+ code: z.string().regex(/^[A-Z][A-Z0-9_]{0,127}$/u),
30
+ message: z.string().min(1).max(512)
31
+ })
32
+ .strict()
33
+ })
34
+ .strict()
35
+ ]);
package/dist/mcp.d.ts CHANGED
@@ -410,6 +410,7 @@ export declare const mcpTargetInspectionSchema: z.ZodObject<{
410
410
  catalogEntryId: string;
411
411
  origin: "NODE" | "WORKSPACE";
412
412
  }>, "many">;
413
+ executionBuiltIns: z.ZodOptional<z.ZodArray<z.ZodEnum<["mar_schedule", "mar_notification"]>, "many">>;
413
414
  }, "strict", z.ZodTypeAny, {
414
415
  targetKind: "NODE" | "WORKSPACE";
415
416
  installations: {
@@ -422,6 +423,7 @@ export declare const mcpTargetInspectionSchema: z.ZodObject<{
422
423
  catalogEntryId: string;
423
424
  origin: "NODE" | "WORKSPACE";
424
425
  }[];
426
+ executionBuiltIns?: ("mar_schedule" | "mar_notification")[] | undefined;
425
427
  }, {
426
428
  targetKind: "NODE" | "WORKSPACE";
427
429
  installations: {
@@ -434,5 +436,6 @@ export declare const mcpTargetInspectionSchema: z.ZodObject<{
434
436
  catalogEntryId: string;
435
437
  origin: "NODE" | "WORKSPACE";
436
438
  }[];
439
+ executionBuiltIns?: ("mar_schedule" | "mar_notification")[] | undefined;
437
440
  }>;
438
441
  export type McpTargetInspection = z.infer<typeof mcpTargetInspectionSchema>;
package/dist/mcp.js CHANGED
@@ -136,6 +136,10 @@ export const installedMcpSchema = z
136
136
  export const mcpTargetInspectionSchema = z
137
137
  .object({
138
138
  targetKind: z.enum(['NODE', 'WORKSPACE']),
139
- installations: z.array(installedMcpSchema).max(500)
139
+ installations: z.array(installedMcpSchema).max(500),
140
+ executionBuiltIns: z
141
+ .array(z.enum(['mar_schedule', 'mar_notification']))
142
+ .max(2)
143
+ .optional()
140
144
  })
141
145
  .strict();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.9.125",
3
+ "version": "0.9.127",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",