@h-rig/contracts 0.0.6-alpha.129 → 0.0.6-alpha.130

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.
@@ -84,7 +84,7 @@ export declare const RemoteRunnerRegisterInput: Schema.Struct<{
84
84
  readonly region: Schema.optional<Schema.Trim>;
85
85
  readonly labels: Schema.optional<Schema.$Array<Schema.Trim>>;
86
86
  readonly capabilities: Schema.optional<Schema.$Array<Schema.Trim>>;
87
- readonly runtimeAdapters: Schema.optional<Schema.$Array<Schema.Trim>>;
87
+ readonly runtimeAdapters: Schema.optional<Schema.$Array<Schema.Literal<"pi">>>;
88
88
  readonly status: Schema.optional<Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>>;
89
89
  readonly currentLeaseCount: Schema.optional<Schema.Number>;
90
90
  }>;
@@ -108,7 +108,7 @@ export type RemoteRunnerLifecycleResult = typeof RemoteRunnerLifecycleResult.Typ
108
108
  export declare const RemoteRunClaimInput: Schema.Struct<{
109
109
  readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
110
110
  readonly hostId: Schema.Trim;
111
- readonly runtimeAdapters: Schema.optional<Schema.$Array<Schema.Trim>>;
111
+ readonly runtimeAdapters: Schema.optional<Schema.$Array<Schema.Literal<"pi">>>;
112
112
  }>;
113
113
  export type RemoteRunClaimInput = typeof RemoteRunClaimInput.Type;
114
114
  export declare const RemoteRunLeaseSummary: Schema.Struct<{
@@ -116,7 +116,7 @@ export declare const RemoteRunLeaseSummary: Schema.Struct<{
116
116
  readonly runId: Schema.Trim;
117
117
  readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
118
118
  readonly title: Schema.Trim;
119
- readonly runtimeAdapter: Schema.Trim;
119
+ readonly runtimeAdapter: Schema.Literal<"pi">;
120
120
  readonly model: Schema.NullOr<Schema.Trim>;
121
121
  readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
122
122
  readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
@@ -136,7 +136,7 @@ export declare const RemoteRunExecutionBundle: Schema.Struct<{
136
136
  readonly runId: Schema.Trim;
137
137
  readonly leaseId: Schema.Trim;
138
138
  readonly workspacePath: Schema.NullOr<Schema.Trim>;
139
- readonly runtimeAdapter: Schema.Trim;
139
+ readonly runtimeAdapter: Schema.Literal<"pi">;
140
140
  readonly model: Schema.NullOr<Schema.Trim>;
141
141
  readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
142
142
  readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
@@ -160,7 +160,7 @@ export declare const RemoteRunClaimResult: Schema.Struct<{
160
160
  readonly runId: Schema.Trim;
161
161
  readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
162
162
  readonly title: Schema.Trim;
163
- readonly runtimeAdapter: Schema.Trim;
163
+ readonly runtimeAdapter: Schema.Literal<"pi">;
164
164
  readonly model: Schema.NullOr<Schema.Trim>;
165
165
  readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
166
166
  readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
@@ -173,7 +173,7 @@ export declare const RemoteRunClaimResult: Schema.Struct<{
173
173
  readonly runId: Schema.Trim;
174
174
  readonly leaseId: Schema.Trim;
175
175
  readonly workspacePath: Schema.NullOr<Schema.Trim>;
176
- readonly runtimeAdapter: Schema.Trim;
176
+ readonly runtimeAdapter: Schema.Literal<"pi">;
177
177
  readonly model: Schema.NullOr<Schema.Trim>;
178
178
  readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
179
179
  readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
@@ -1010,7 +1010,7 @@ var RunSummary = Schema5.Struct({
1010
1010
  runtimeMode: RuntimeMode,
1011
1011
  interactionMode: ProviderInteractionMode,
1012
1012
  status: RunStatus,
1013
- runtimeAdapter: TrimmedNonEmptyString,
1013
+ runtimeAdapter: Schema5.Literal("pi"),
1014
1014
  model: Schema5.NullOr(TrimmedNonEmptyString),
1015
1015
  initialPrompt: Schema5.NullOr(Schema5.String),
1016
1016
  executionTarget: Schema5.optional(RunExecutionTarget),
@@ -1033,7 +1033,7 @@ var RuntimeSummary = Schema5.Struct({
1033
1033
  id: EngineRuntimeId,
1034
1034
  workspaceId: WorkspaceId,
1035
1035
  runId: RunId,
1036
- adapterKind: TrimmedNonEmptyString,
1036
+ adapterKind: Schema5.Literal("pi"),
1037
1037
  executionTarget: Schema5.optional(RunExecutionTarget),
1038
1038
  remoteHostId: Schema5.optional(Schema5.NullOr(TrimmedNonEmptyString)),
1039
1039
  status: RuntimeStatus,
@@ -1137,7 +1137,7 @@ var WorkspaceRemoteHostSummary = Schema6.Struct({
1137
1137
  region: Schema6.NullOr(TrimmedNonEmptyString),
1138
1138
  labels: Schema6.Array(TrimmedNonEmptyString),
1139
1139
  capabilities: Schema6.Array(TrimmedNonEmptyString),
1140
- runtimeAdapters: Schema6.Array(TrimmedNonEmptyString),
1140
+ runtimeAdapters: Schema6.Array(Schema6.Literal("pi")),
1141
1141
  status: WorkspaceRemoteHostStatus,
1142
1142
  currentLeaseCount: Schema6.Number,
1143
1143
  lastHeartbeatAt: Schema6.NullOr(IsoDateTime),
@@ -1178,7 +1178,7 @@ var WorkspaceSummary = Schema6.Struct({
1178
1178
  title: TrimmedNonEmptyString,
1179
1179
  rootPath: TrimmedNonEmptyString,
1180
1180
  sourceKind: WorkspaceSourceKind,
1181
- defaultRuntimeAdapter: Schema6.optional(TrimmedNonEmptyString),
1181
+ defaultRuntimeAdapter: Schema6.optional(Schema6.Literal("pi")),
1182
1182
  defaultProvider: Schema6.optional(ProviderKind),
1183
1183
  defaultModel: Schema6.NullOr(TrimmedNonEmptyString),
1184
1184
  topology: Schema6.optional(WorkspaceTopologySummary),
@@ -1189,6 +1189,7 @@ var WorkspaceSummary = Schema6.Struct({
1189
1189
  });
1190
1190
 
1191
1191
  // packages/contracts/src/remote.ts
1192
+ var RemoteRuntimeAdapter = Schema7.Literal("pi");
1192
1193
  var RemoteEndpoint = Schema7.Struct({
1193
1194
  id: RemoteEndpointId,
1194
1195
  alias: TrimmedNonEmptyString,
@@ -1273,7 +1274,7 @@ var RemoteRunnerRegisterInput = Schema7.Struct({
1273
1274
  region: Schema7.optional(TrimmedNonEmptyString),
1274
1275
  labels: Schema7.optional(Schema7.Array(TrimmedNonEmptyString)),
1275
1276
  capabilities: Schema7.optional(Schema7.Array(TrimmedNonEmptyString)),
1276
- runtimeAdapters: Schema7.optional(Schema7.Array(TrimmedNonEmptyString)),
1277
+ runtimeAdapters: Schema7.optional(Schema7.Array(RemoteRuntimeAdapter)),
1277
1278
  status: Schema7.optional(WorkspaceRemoteHostStatus),
1278
1279
  currentLeaseCount: Schema7.optional(Schema7.Number)
1279
1280
  });
@@ -1294,14 +1295,14 @@ var RemoteRunnerLifecycleResult = Schema7.Struct({
1294
1295
  var RemoteRunClaimInput = Schema7.Struct({
1295
1296
  workspaceId: WorkspaceId,
1296
1297
  hostId: TrimmedNonEmptyString,
1297
- runtimeAdapters: Schema7.optional(Schema7.Array(TrimmedNonEmptyString))
1298
+ runtimeAdapters: Schema7.optional(Schema7.Array(RemoteRuntimeAdapter))
1298
1299
  });
1299
1300
  var RemoteRunLeaseSummary = Schema7.Struct({
1300
1301
  leaseId: TrimmedNonEmptyString,
1301
1302
  runId: TrimmedNonEmptyString,
1302
1303
  workspaceId: WorkspaceId,
1303
1304
  title: TrimmedNonEmptyString,
1304
- runtimeAdapter: TrimmedNonEmptyString,
1305
+ runtimeAdapter: RemoteRuntimeAdapter,
1305
1306
  model: Schema7.NullOr(TrimmedNonEmptyString),
1306
1307
  runtimeMode: RuntimeMode,
1307
1308
  interactionMode: ProviderInteractionMode,
@@ -1319,7 +1320,7 @@ var RemoteRunExecutionBundle = Schema7.Struct({
1319
1320
  runId: TrimmedNonEmptyString,
1320
1321
  leaseId: TrimmedNonEmptyString,
1321
1322
  workspacePath: Schema7.NullOr(TrimmedNonEmptyString),
1322
- runtimeAdapter: TrimmedNonEmptyString,
1323
+ runtimeAdapter: RemoteRuntimeAdapter,
1323
1324
  model: Schema7.NullOr(TrimmedNonEmptyString),
1324
1325
  runtimeMode: RuntimeMode,
1325
1326
  interactionMode: ProviderInteractionMode,
package/dist/src/rig.d.ts CHANGED
@@ -38,7 +38,7 @@ export declare const RigSnapshot: Schema.Struct<{
38
38
  readonly title: Schema.Trim;
39
39
  readonly rootPath: Schema.Trim;
40
40
  readonly sourceKind: Schema.Literals<readonly ["native", "rig-import", "manual", "remote"]>;
41
- readonly defaultRuntimeAdapter: Schema.optional<Schema.Trim>;
41
+ readonly defaultRuntimeAdapter: Schema.optional<Schema.Literal<"pi">>;
42
42
  readonly defaultProvider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
43
43
  readonly defaultModel: Schema.NullOr<Schema.Trim>;
44
44
  readonly topology: Schema.optional<Schema.Struct<{
@@ -79,7 +79,7 @@ export declare const RigSnapshot: Schema.Struct<{
79
79
  readonly region: Schema.NullOr<Schema.Trim>;
80
80
  readonly labels: Schema.$Array<Schema.Trim>;
81
81
  readonly capabilities: Schema.$Array<Schema.Trim>;
82
- readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
82
+ readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
83
83
  readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
84
84
  readonly currentLeaseCount: Schema.Number;
85
85
  readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
@@ -147,7 +147,7 @@ export declare const RigSnapshot: Schema.Struct<{
147
147
  readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
148
148
  readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
149
149
  readonly status: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
150
- readonly runtimeAdapter: Schema.Trim;
150
+ readonly runtimeAdapter: Schema.Literal<"pi">;
151
151
  readonly model: Schema.NullOr<Schema.Trim>;
152
152
  readonly initialPrompt: Schema.NullOr<Schema.String>;
153
153
  readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
@@ -170,7 +170,7 @@ export declare const RigSnapshot: Schema.Struct<{
170
170
  readonly id: Schema.brand<Schema.Trim, "EngineRuntimeId">;
171
171
  readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
172
172
  readonly runId: Schema.brand<Schema.Trim, "RunId">;
173
- readonly adapterKind: Schema.Trim;
173
+ readonly adapterKind: Schema.Literal<"pi">;
174
174
  readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
175
175
  readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
176
176
  readonly status: Schema.Literals<readonly ["prepared", "starting", "running", "interrupted", "exited", "failed", "destroyed"]>;
@@ -360,7 +360,7 @@ export declare const RigListWorkspacesResult: Schema.$Array<Schema.Struct<{
360
360
  readonly title: Schema.Trim;
361
361
  readonly rootPath: Schema.Trim;
362
362
  readonly sourceKind: Schema.Literals<readonly ["native", "rig-import", "manual", "remote"]>;
363
- readonly defaultRuntimeAdapter: Schema.optional<Schema.Trim>;
363
+ readonly defaultRuntimeAdapter: Schema.optional<Schema.Literal<"pi">>;
364
364
  readonly defaultProvider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
365
365
  readonly defaultModel: Schema.NullOr<Schema.Trim>;
366
366
  readonly topology: Schema.optional<Schema.Struct<{
@@ -401,7 +401,7 @@ export declare const RigListWorkspacesResult: Schema.$Array<Schema.Struct<{
401
401
  readonly region: Schema.NullOr<Schema.Trim>;
402
402
  readonly labels: Schema.$Array<Schema.Trim>;
403
403
  readonly capabilities: Schema.$Array<Schema.Trim>;
404
- readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
404
+ readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
405
405
  readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
406
406
  readonly currentLeaseCount: Schema.Number;
407
407
  readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
@@ -443,7 +443,7 @@ export declare const RigGetWorkspaceResult: Schema.Struct<{
443
443
  readonly title: Schema.Trim;
444
444
  readonly rootPath: Schema.Trim;
445
445
  readonly sourceKind: Schema.Literals<readonly ["native", "rig-import", "manual", "remote"]>;
446
- readonly defaultRuntimeAdapter: Schema.optional<Schema.Trim>;
446
+ readonly defaultRuntimeAdapter: Schema.optional<Schema.Literal<"pi">>;
447
447
  readonly defaultProvider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
448
448
  readonly defaultModel: Schema.NullOr<Schema.Trim>;
449
449
  readonly topology: Schema.optional<Schema.Struct<{
@@ -484,7 +484,7 @@ export declare const RigGetWorkspaceResult: Schema.Struct<{
484
484
  readonly region: Schema.NullOr<Schema.Trim>;
485
485
  readonly labels: Schema.$Array<Schema.Trim>;
486
486
  readonly capabilities: Schema.$Array<Schema.Trim>;
487
- readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
487
+ readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
488
488
  readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
489
489
  readonly currentLeaseCount: Schema.Number;
490
490
  readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
@@ -544,7 +544,7 @@ export declare const RigGetWorkspaceResult: Schema.Struct<{
544
544
  readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
545
545
  readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
546
546
  readonly status: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
547
- readonly runtimeAdapter: Schema.Trim;
547
+ readonly runtimeAdapter: Schema.Literal<"pi">;
548
548
  readonly model: Schema.NullOr<Schema.Trim>;
549
549
  readonly initialPrompt: Schema.NullOr<Schema.String>;
550
550
  readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
@@ -650,7 +650,7 @@ export declare const RigCreateAdhocRunInput: Schema.Struct<{
650
650
  readonly runId: Schema.brand<Schema.Trim, "RunId">;
651
651
  readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
652
652
  readonly title: Schema.String;
653
- readonly runtimeAdapter: Schema.optional<Schema.Literals<readonly ["codex", "claude-code", "pi"]>>;
653
+ readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
654
654
  readonly model: Schema.optional<Schema.String>;
655
655
  readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
656
656
  readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
@@ -668,7 +668,7 @@ export declare const RigCreateTaskRunInput: Schema.Struct<{
668
668
  readonly runId: Schema.brand<Schema.Trim, "RunId">;
669
669
  readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
670
670
  readonly taskId: Schema.brand<Schema.Trim, "TaskId">;
671
- readonly runtimeAdapter: Schema.optional<Schema.Literals<readonly ["codex", "claude-code", "pi"]>>;
671
+ readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
672
672
  readonly model: Schema.optional<Schema.String>;
673
673
  readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
674
674
  readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
package/dist/src/rig.js CHANGED
@@ -1112,7 +1112,7 @@ var RunSummary = Schema9.Struct({
1112
1112
  runtimeMode: RuntimeMode,
1113
1113
  interactionMode: ProviderInteractionMode,
1114
1114
  status: RunStatus,
1115
- runtimeAdapter: TrimmedNonEmptyString,
1115
+ runtimeAdapter: Schema9.Literal("pi"),
1116
1116
  model: Schema9.NullOr(TrimmedNonEmptyString),
1117
1117
  initialPrompt: Schema9.NullOr(Schema9.String),
1118
1118
  executionTarget: Schema9.optional(RunExecutionTarget),
@@ -1135,7 +1135,7 @@ var RuntimeSummary = Schema9.Struct({
1135
1135
  id: EngineRuntimeId,
1136
1136
  workspaceId: WorkspaceId,
1137
1137
  runId: RunId,
1138
- adapterKind: TrimmedNonEmptyString,
1138
+ adapterKind: Schema9.Literal("pi"),
1139
1139
  executionTarget: Schema9.optional(RunExecutionTarget),
1140
1140
  remoteHostId: Schema9.optional(Schema9.NullOr(TrimmedNonEmptyString)),
1141
1141
  status: RuntimeStatus,
@@ -1262,7 +1262,7 @@ var WorkspaceRemoteHostSummary = Schema11.Struct({
1262
1262
  region: Schema11.NullOr(TrimmedNonEmptyString),
1263
1263
  labels: Schema11.Array(TrimmedNonEmptyString),
1264
1264
  capabilities: Schema11.Array(TrimmedNonEmptyString),
1265
- runtimeAdapters: Schema11.Array(TrimmedNonEmptyString),
1265
+ runtimeAdapters: Schema11.Array(Schema11.Literal("pi")),
1266
1266
  status: WorkspaceRemoteHostStatus,
1267
1267
  currentLeaseCount: Schema11.Number,
1268
1268
  lastHeartbeatAt: Schema11.NullOr(IsoDateTime),
@@ -1303,7 +1303,7 @@ var WorkspaceSummary = Schema11.Struct({
1303
1303
  title: TrimmedNonEmptyString,
1304
1304
  rootPath: TrimmedNonEmptyString,
1305
1305
  sourceKind: WorkspaceSourceKind,
1306
- defaultRuntimeAdapter: Schema11.optional(TrimmedNonEmptyString),
1306
+ defaultRuntimeAdapter: Schema11.optional(Schema11.Literal("pi")),
1307
1307
  defaultProvider: Schema11.optional(ProviderKind),
1308
1308
  defaultModel: Schema11.NullOr(TrimmedNonEmptyString),
1309
1309
  topology: Schema11.optional(WorkspaceTopologySummary),
@@ -1314,6 +1314,7 @@ var WorkspaceSummary = Schema11.Struct({
1314
1314
  });
1315
1315
 
1316
1316
  // packages/contracts/src/remote.ts
1317
+ var RemoteRuntimeAdapter = Schema12.Literal("pi");
1317
1318
  var RemoteEndpoint = Schema12.Struct({
1318
1319
  id: RemoteEndpointId,
1319
1320
  alias: TrimmedNonEmptyString,
@@ -1398,7 +1399,7 @@ var RemoteRunnerRegisterInput = Schema12.Struct({
1398
1399
  region: Schema12.optional(TrimmedNonEmptyString),
1399
1400
  labels: Schema12.optional(Schema12.Array(TrimmedNonEmptyString)),
1400
1401
  capabilities: Schema12.optional(Schema12.Array(TrimmedNonEmptyString)),
1401
- runtimeAdapters: Schema12.optional(Schema12.Array(TrimmedNonEmptyString)),
1402
+ runtimeAdapters: Schema12.optional(Schema12.Array(RemoteRuntimeAdapter)),
1402
1403
  status: Schema12.optional(WorkspaceRemoteHostStatus),
1403
1404
  currentLeaseCount: Schema12.optional(Schema12.Number)
1404
1405
  });
@@ -1419,14 +1420,14 @@ var RemoteRunnerLifecycleResult = Schema12.Struct({
1419
1420
  var RemoteRunClaimInput = Schema12.Struct({
1420
1421
  workspaceId: WorkspaceId,
1421
1422
  hostId: TrimmedNonEmptyString,
1422
- runtimeAdapters: Schema12.optional(Schema12.Array(TrimmedNonEmptyString))
1423
+ runtimeAdapters: Schema12.optional(Schema12.Array(RemoteRuntimeAdapter))
1423
1424
  });
1424
1425
  var RemoteRunLeaseSummary = Schema12.Struct({
1425
1426
  leaseId: TrimmedNonEmptyString,
1426
1427
  runId: TrimmedNonEmptyString,
1427
1428
  workspaceId: WorkspaceId,
1428
1429
  title: TrimmedNonEmptyString,
1429
- runtimeAdapter: TrimmedNonEmptyString,
1430
+ runtimeAdapter: RemoteRuntimeAdapter,
1430
1431
  model: Schema12.NullOr(TrimmedNonEmptyString),
1431
1432
  runtimeMode: RuntimeMode,
1432
1433
  interactionMode: ProviderInteractionMode,
@@ -1444,7 +1445,7 @@ var RemoteRunExecutionBundle = Schema12.Struct({
1444
1445
  runId: TrimmedNonEmptyString,
1445
1446
  leaseId: TrimmedNonEmptyString,
1446
1447
  workspacePath: Schema12.NullOr(TrimmedNonEmptyString),
1447
- runtimeAdapter: TrimmedNonEmptyString,
1448
+ runtimeAdapter: RemoteRuntimeAdapter,
1448
1449
  model: Schema12.NullOr(TrimmedNonEmptyString),
1449
1450
  runtimeMode: RuntimeMode,
1450
1451
  interactionMode: ProviderInteractionMode,
@@ -1605,7 +1606,7 @@ var EngineReadModel = Schema13.Struct({
1605
1606
  remoteOrchestrations: Schema13.Array(RemoteOrchestrationSummary),
1606
1607
  updatedAt: IsoDateTime
1607
1608
  });
1608
- var RuntimeAdapterKind = Schema13.Literals(["codex", "claude-code", "pi"]);
1609
+ var RuntimeAdapterKind = Schema13.Literal("pi");
1609
1610
  var WorkspaceRegisterCommand = Schema13.Struct({
1610
1611
  type: Schema13.Literal("workspace.register"),
1611
1612
  commandId: CommandId,
@@ -1798,7 +1799,7 @@ var WorkspaceRegisterRemoteHostCommand = Schema13.Struct({
1798
1799
  region: Schema13.NullOr(TrimmedNonEmptyString),
1799
1800
  labels: Schema13.Array(TrimmedNonEmptyString),
1800
1801
  capabilities: Schema13.Array(TrimmedNonEmptyString),
1801
- runtimeAdapters: Schema13.Array(TrimmedNonEmptyString),
1802
+ runtimeAdapters: Schema13.Array(RuntimeAdapterKind),
1802
1803
  status: Schema13.Literals([
1803
1804
  "registering",
1804
1805
  "ready",
@@ -2193,7 +2194,7 @@ var EngineGetTaskArtifactsInput = Schema13.Struct({
2193
2194
  });
2194
2195
  var EngineGetTaskArtifactsResult = Schema13.Array(ArtifactSummary);
2195
2196
  var EngineRuntimeDefaults = Schema13.Struct({
2196
- runtimeAdapter: TrimmedNonEmptyString,
2197
+ runtimeAdapter: RuntimeAdapterKind,
2197
2198
  runMode: RunMode,
2198
2199
  sandboxMode: EngineSandboxMode,
2199
2200
  isolationMode: IsolationMode
@@ -44,7 +44,7 @@ export declare const RunJournalRecord: Schema.Struct<{
44
44
  readonly taskId: Schema.NullOr<Schema.Trim>;
45
45
  readonly threadId: Schema.NullOr<Schema.Trim>;
46
46
  readonly mode: Schema.Literals<readonly ["local", "remote"]>;
47
- readonly runtimeAdapter: Schema.Trim;
47
+ readonly runtimeAdapter: Schema.Literal<"pi">;
48
48
  readonly createdAt: Schema.String;
49
49
  readonly startedAt: Schema.NullOr<Schema.String>;
50
50
  readonly completedAt: Schema.NullOr<Schema.String>;
@@ -105,7 +105,7 @@ export declare const RunRecordPatch: Schema.Struct<{
105
105
  readonly taskId: Schema.optional<Schema.NullOr<Schema.Trim>>;
106
106
  readonly threadId: Schema.optional<Schema.NullOr<Schema.Trim>>;
107
107
  readonly mode: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
108
- readonly runtimeAdapter: Schema.optional<Schema.Trim>;
108
+ readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
109
109
  readonly createdAt: Schema.optional<Schema.String>;
110
110
  readonly startedAt: Schema.optional<Schema.NullOr<Schema.String>>;
111
111
  readonly completedAt: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -183,7 +183,7 @@ export declare const RunRecordPatchEvent: Schema.Struct<{
183
183
  readonly taskId: Schema.optional<Schema.NullOr<Schema.Trim>>;
184
184
  readonly threadId: Schema.optional<Schema.NullOr<Schema.Trim>>;
185
185
  readonly mode: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
186
- readonly runtimeAdapter: Schema.optional<Schema.Trim>;
186
+ readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
187
187
  readonly createdAt: Schema.optional<Schema.String>;
188
188
  readonly startedAt: Schema.optional<Schema.NullOr<Schema.String>>;
189
189
  readonly completedAt: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -376,7 +376,7 @@ export declare const RunJournalEvent: Schema.Union<readonly [Schema.Struct<{
376
376
  readonly taskId: Schema.optional<Schema.NullOr<Schema.Trim>>;
377
377
  readonly threadId: Schema.optional<Schema.NullOr<Schema.Trim>>;
378
378
  readonly mode: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
379
- readonly runtimeAdapter: Schema.optional<Schema.Trim>;
379
+ readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
380
380
  readonly createdAt: Schema.optional<Schema.String>;
381
381
  readonly startedAt: Schema.optional<Schema.NullOr<Schema.String>>;
382
382
  readonly completedAt: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -564,10 +564,10 @@ export declare const decodeRunJournalEvent: (input: unknown, options?: import("e
564
564
  readonly interactionMode?: string | null | undefined;
565
565
  readonly branch?: string | null | undefined;
566
566
  readonly worktreePath?: string | null | undefined;
567
+ readonly runtimeAdapter?: "pi" | undefined;
567
568
  readonly initialPrompt?: string | null | undefined;
568
569
  readonly latestMessageId?: string | null | undefined;
569
570
  readonly errorText?: string | null | undefined;
570
- readonly runtimeAdapter?: string | undefined;
571
571
  readonly sessionLogPath?: string | null | undefined;
572
572
  readonly pid?: number | null | undefined;
573
573
  readonly endpointId?: string | null | undefined;
@@ -962,7 +962,7 @@ var RunSummary = Schema4.Struct({
962
962
  runtimeMode: RuntimeMode,
963
963
  interactionMode: ProviderInteractionMode,
964
964
  status: RunStatus,
965
- runtimeAdapter: TrimmedNonEmptyString,
965
+ runtimeAdapter: Schema4.Literal("pi"),
966
966
  model: Schema4.NullOr(TrimmedNonEmptyString),
967
967
  initialPrompt: Schema4.NullOr(Schema4.String),
968
968
  executionTarget: Schema4.optional(RunExecutionTarget),
@@ -985,7 +985,7 @@ var RuntimeSummary = Schema4.Struct({
985
985
  id: EngineRuntimeId,
986
986
  workspaceId: WorkspaceId,
987
987
  runId: RunId,
988
- adapterKind: TrimmedNonEmptyString,
988
+ adapterKind: Schema4.Literal("pi"),
989
989
  executionTarget: Schema4.optional(RunExecutionTarget),
990
990
  remoteHostId: Schema4.optional(Schema4.NullOr(TrimmedNonEmptyString)),
991
991
  status: RuntimeStatus,
@@ -1082,7 +1082,7 @@ var runRecordFields = {
1082
1082
  taskId: Schema5.NullOr(TrimmedNonEmptyString),
1083
1083
  threadId: Schema5.NullOr(TrimmedNonEmptyString),
1084
1084
  mode: Schema5.Literals(["local", "remote"]),
1085
- runtimeAdapter: TrimmedNonEmptyString,
1085
+ runtimeAdapter: Schema5.Literal("pi"),
1086
1086
  createdAt: IsoDateTime,
1087
1087
  startedAt: Schema5.NullOr(IsoDateTime),
1088
1088
  completedAt: Schema5.NullOr(IsoDateTime),
@@ -962,7 +962,7 @@ var RunSummary = Schema4.Struct({
962
962
  runtimeMode: RuntimeMode,
963
963
  interactionMode: ProviderInteractionMode,
964
964
  status: RunStatus,
965
- runtimeAdapter: TrimmedNonEmptyString,
965
+ runtimeAdapter: Schema4.Literal("pi"),
966
966
  model: Schema4.NullOr(TrimmedNonEmptyString),
967
967
  initialPrompt: Schema4.NullOr(Schema4.String),
968
968
  executionTarget: Schema4.optional(RunExecutionTarget),
@@ -985,7 +985,7 @@ var RuntimeSummary = Schema4.Struct({
985
985
  id: EngineRuntimeId,
986
986
  workspaceId: WorkspaceId,
987
987
  runId: RunId,
988
- adapterKind: TrimmedNonEmptyString,
988
+ adapterKind: Schema4.Literal("pi"),
989
989
  executionTarget: Schema4.optional(RunExecutionTarget),
990
990
  remoteHostId: Schema4.optional(Schema4.NullOr(TrimmedNonEmptyString)),
991
991
  status: RuntimeStatus,
@@ -1082,7 +1082,7 @@ var runRecordFields = {
1082
1082
  taskId: Schema5.NullOr(TrimmedNonEmptyString),
1083
1083
  threadId: Schema5.NullOr(TrimmedNonEmptyString),
1084
1084
  mode: Schema5.Literals(["local", "remote"]),
1085
- runtimeAdapter: TrimmedNonEmptyString,
1085
+ runtimeAdapter: Schema5.Literal("pi"),
1086
1086
  createdAt: IsoDateTime,
1087
1087
  startedAt: Schema5.NullOr(IsoDateTime),
1088
1088
  completedAt: Schema5.NullOr(IsoDateTime),
@@ -7,3 +7,4 @@ export type RigRunTimelineEntry = {
7
7
  detail?: string | null;
8
8
  };
9
9
  export declare function timelineEntriesFromCustomEntries(entries: readonly RunSessionCustomEntry[]): readonly RigRunTimelineEntry[];
10
+ export declare function latestTimelineEntriesFromCustomEntries(entries: readonly RunSessionCustomEntry[], limit: number): readonly RigRunTimelineEntry[];
@@ -962,7 +962,7 @@ var RunSummary = Schema4.Struct({
962
962
  runtimeMode: RuntimeMode,
963
963
  interactionMode: ProviderInteractionMode,
964
964
  status: RunStatus,
965
- runtimeAdapter: TrimmedNonEmptyString,
965
+ runtimeAdapter: Schema4.Literal("pi"),
966
966
  model: Schema4.NullOr(TrimmedNonEmptyString),
967
967
  initialPrompt: Schema4.NullOr(Schema4.String),
968
968
  executionTarget: Schema4.optional(RunExecutionTarget),
@@ -985,7 +985,7 @@ var RuntimeSummary = Schema4.Struct({
985
985
  id: EngineRuntimeId,
986
986
  workspaceId: WorkspaceId,
987
987
  runId: RunId,
988
- adapterKind: TrimmedNonEmptyString,
988
+ adapterKind: Schema4.Literal("pi"),
989
989
  executionTarget: Schema4.optional(RunExecutionTarget),
990
990
  remoteHostId: Schema4.optional(Schema4.NullOr(TrimmedNonEmptyString)),
991
991
  status: RuntimeStatus,
@@ -1082,7 +1082,7 @@ var runRecordFields = {
1082
1082
  taskId: Schema5.NullOr(TrimmedNonEmptyString),
1083
1083
  threadId: Schema5.NullOr(TrimmedNonEmptyString),
1084
1084
  mode: Schema5.Literals(["local", "remote"]),
1085
- runtimeAdapter: TrimmedNonEmptyString,
1085
+ runtimeAdapter: Schema5.Literal("pi"),
1086
1086
  createdAt: IsoDateTime,
1087
1087
  startedAt: Schema5.NullOr(IsoDateTime),
1088
1088
  completedAt: Schema5.NullOr(IsoDateTime),
@@ -1342,19 +1342,36 @@ var TYPE_FOR_CUSTOM = {
1342
1342
  function isRecord(value) {
1343
1343
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
1344
1344
  }
1345
+ function timelineEntryFromCustomEntry(entry) {
1346
+ if (entry.customType !== CUSTOM_TYPE_FOR["timeline-entry"] || !isRecord(entry.data))
1347
+ return null;
1348
+ const payload = isRecord(entry.data.payload) ? entry.data.payload : entry.data;
1349
+ const type = typeof payload.type === "string" ? payload.type : "timeline";
1350
+ const stage = typeof payload.stage === "string" ? payload.stage : typeof payload.name === "string" ? payload.name : null;
1351
+ const status = typeof payload.status === "string" ? payload.status : typeof payload.outcome === "string" ? payload.outcome : null;
1352
+ const detail = typeof payload.detail === "string" ? payload.detail : typeof payload.message === "string" ? payload.message : null;
1353
+ const at = typeof entry.data.at === "string" ? entry.data.at : typeof payload.at === "string" ? payload.at : null;
1354
+ return { at, type, stage, status, detail };
1355
+ }
1345
1356
  function timelineEntriesFromCustomEntries(entries) {
1346
1357
  return entries.flatMap((entry) => {
1347
- if (entry.customType !== CUSTOM_TYPE_FOR["timeline-entry"] || !isRecord(entry.data))
1348
- return [];
1349
- const payload = isRecord(entry.data.payload) ? entry.data.payload : entry.data;
1350
- const type = typeof payload.type === "string" ? payload.type : "timeline";
1351
- const stage = typeof payload.stage === "string" ? payload.stage : typeof payload.name === "string" ? payload.name : null;
1352
- const status = typeof payload.status === "string" ? payload.status : typeof payload.outcome === "string" ? payload.outcome : null;
1353
- const detail = typeof payload.detail === "string" ? payload.detail : typeof payload.message === "string" ? payload.message : null;
1354
- const at = typeof entry.data.at === "string" ? entry.data.at : typeof payload.at === "string" ? payload.at : null;
1355
- return [{ at, type, stage, status, detail }];
1358
+ const timelineEntry = timelineEntryFromCustomEntry(entry);
1359
+ return timelineEntry ? [timelineEntry] : [];
1356
1360
  });
1357
1361
  }
1362
+ function latestTimelineEntriesFromCustomEntries(entries, limit) {
1363
+ if (limit <= 0)
1364
+ return [];
1365
+ const timeline = [];
1366
+ for (let index = entries.length - 1;index >= 0 && timeline.length < limit; index -= 1) {
1367
+ const timelineEntry = timelineEntryFromCustomEntry(entries[index]);
1368
+ if (timelineEntry)
1369
+ timeline.push(timelineEntry);
1370
+ }
1371
+ timeline.reverse();
1372
+ return timeline;
1373
+ }
1358
1374
  export {
1359
- timelineEntriesFromCustomEntries
1375
+ timelineEntriesFromCustomEntries,
1376
+ latestTimelineEntriesFromCustomEntries
1360
1377
  };
@@ -23,7 +23,7 @@ export declare const RunSummary: Schema.Struct<{
23
23
  readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
24
24
  readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
25
25
  readonly status: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
26
- readonly runtimeAdapter: Schema.Trim;
26
+ readonly runtimeAdapter: Schema.Literal<"pi">;
27
27
  readonly model: Schema.NullOr<Schema.Trim>;
28
28
  readonly initialPrompt: Schema.NullOr<Schema.String>;
29
29
  readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
@@ -47,7 +47,7 @@ export declare const RuntimeSummary: Schema.Struct<{
47
47
  readonly id: Schema.brand<Schema.Trim, "EngineRuntimeId">;
48
48
  readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
49
49
  readonly runId: Schema.brand<Schema.Trim, "RunId">;
50
- readonly adapterKind: Schema.Trim;
50
+ readonly adapterKind: Schema.Literal<"pi">;
51
51
  readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
52
52
  readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
53
53
  readonly status: Schema.Literals<readonly ["prepared", "starting", "running", "interrupted", "exited", "failed", "destroyed"]>;
@@ -959,7 +959,7 @@ var RunSummary = Schema4.Struct({
959
959
  runtimeMode: RuntimeMode,
960
960
  interactionMode: ProviderInteractionMode,
961
961
  status: RunStatus,
962
- runtimeAdapter: TrimmedNonEmptyString,
962
+ runtimeAdapter: Schema4.Literal("pi"),
963
963
  model: Schema4.NullOr(TrimmedNonEmptyString),
964
964
  initialPrompt: Schema4.NullOr(Schema4.String),
965
965
  executionTarget: Schema4.optional(RunExecutionTarget),
@@ -982,7 +982,7 @@ var RuntimeSummary = Schema4.Struct({
982
982
  id: EngineRuntimeId,
983
983
  workspaceId: WorkspaceId,
984
984
  runId: RunId,
985
- adapterKind: TrimmedNonEmptyString,
985
+ adapterKind: Schema4.Literal("pi"),
986
986
  executionTarget: Schema4.optional(RunExecutionTarget),
987
987
  remoteHostId: Schema4.optional(Schema4.NullOr(TrimmedNonEmptyString)),
988
988
  status: RuntimeStatus,
@@ -970,7 +970,7 @@ var WorkspaceRemoteHostSummary = Schema4.Struct({
970
970
  region: Schema4.NullOr(TrimmedNonEmptyString),
971
971
  labels: Schema4.Array(TrimmedNonEmptyString),
972
972
  capabilities: Schema4.Array(TrimmedNonEmptyString),
973
- runtimeAdapters: Schema4.Array(TrimmedNonEmptyString),
973
+ runtimeAdapters: Schema4.Array(Schema4.Literal("pi")),
974
974
  status: WorkspaceRemoteHostStatus,
975
975
  currentLeaseCount: Schema4.Number,
976
976
  lastHeartbeatAt: Schema4.NullOr(IsoDateTime),
@@ -1011,7 +1011,7 @@ var WorkspaceSummary = Schema4.Struct({
1011
1011
  title: TrimmedNonEmptyString,
1012
1012
  rootPath: TrimmedNonEmptyString,
1013
1013
  sourceKind: WorkspaceSourceKind,
1014
- defaultRuntimeAdapter: Schema4.optional(TrimmedNonEmptyString),
1014
+ defaultRuntimeAdapter: Schema4.optional(Schema4.Literal("pi")),
1015
1015
  defaultProvider: Schema4.optional(ProviderKind),
1016
1016
  defaultModel: Schema4.NullOr(TrimmedNonEmptyString),
1017
1017
  topology: Schema4.optional(WorkspaceTopologySummary),
@@ -58,7 +58,7 @@ export declare const WorkspaceRemoteHostSummary: Schema.Struct<{
58
58
  readonly region: Schema.NullOr<Schema.Trim>;
59
59
  readonly labels: Schema.$Array<Schema.Trim>;
60
60
  readonly capabilities: Schema.$Array<Schema.Trim>;
61
- readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
61
+ readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
62
62
  readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
63
63
  readonly currentLeaseCount: Schema.Number;
64
64
  readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
@@ -82,7 +82,7 @@ export declare const WorkspaceRemoteFleetSummary: Schema.Struct<{
82
82
  readonly region: Schema.NullOr<Schema.Trim>;
83
83
  readonly labels: Schema.$Array<Schema.Trim>;
84
84
  readonly capabilities: Schema.$Array<Schema.Trim>;
85
- readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
85
+ readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
86
86
  readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
87
87
  readonly currentLeaseCount: Schema.Number;
88
88
  readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
@@ -129,7 +129,7 @@ export declare const WorkspaceSummary: Schema.Struct<{
129
129
  readonly title: Schema.Trim;
130
130
  readonly rootPath: Schema.Trim;
131
131
  readonly sourceKind: Schema.Literals<readonly ["native", "rig-import", "manual", "remote"]>;
132
- readonly defaultRuntimeAdapter: Schema.optional<Schema.Trim>;
132
+ readonly defaultRuntimeAdapter: Schema.optional<Schema.Literal<"pi">>;
133
133
  readonly defaultProvider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
134
134
  readonly defaultModel: Schema.NullOr<Schema.Trim>;
135
135
  readonly topology: Schema.optional<Schema.Struct<{
@@ -170,7 +170,7 @@ export declare const WorkspaceSummary: Schema.Struct<{
170
170
  readonly region: Schema.NullOr<Schema.Trim>;
171
171
  readonly labels: Schema.$Array<Schema.Trim>;
172
172
  readonly capabilities: Schema.$Array<Schema.Trim>;
173
- readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
173
+ readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
174
174
  readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
175
175
  readonly currentLeaseCount: Schema.Number;
176
176
  readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
@@ -967,7 +967,7 @@ var WorkspaceRemoteHostSummary = Schema4.Struct({
967
967
  region: Schema4.NullOr(TrimmedNonEmptyString),
968
968
  labels: Schema4.Array(TrimmedNonEmptyString),
969
969
  capabilities: Schema4.Array(TrimmedNonEmptyString),
970
- runtimeAdapters: Schema4.Array(TrimmedNonEmptyString),
970
+ runtimeAdapters: Schema4.Array(Schema4.Literal("pi")),
971
971
  status: WorkspaceRemoteHostStatus,
972
972
  currentLeaseCount: Schema4.Number,
973
973
  lastHeartbeatAt: Schema4.NullOr(IsoDateTime),
@@ -1008,7 +1008,7 @@ var WorkspaceSummary = Schema4.Struct({
1008
1008
  title: TrimmedNonEmptyString,
1009
1009
  rootPath: TrimmedNonEmptyString,
1010
1010
  sourceKind: WorkspaceSourceKind,
1011
- defaultRuntimeAdapter: Schema4.optional(TrimmedNonEmptyString),
1011
+ defaultRuntimeAdapter: Schema4.optional(Schema4.Literal("pi")),
1012
1012
  defaultProvider: Schema4.optional(ProviderKind),
1013
1013
  defaultModel: Schema4.NullOr(TrimmedNonEmptyString),
1014
1014
  topology: Schema4.optional(WorkspaceTopologySummary),