@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.
package/dist/src/ws.d.ts CHANGED
@@ -77,7 +77,7 @@ export declare const WebSocketRequest: Schema.Struct<{
77
77
  readonly runId: Schema.brand<Schema.Trim, "RunId">;
78
78
  readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
79
79
  readonly title: Schema.String;
80
- readonly runtimeAdapter: Schema.optional<Schema.Literals<readonly ["codex", "claude-code", "pi"]>>;
80
+ readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
81
81
  readonly model: Schema.optional<Schema.String>;
82
82
  readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
83
83
  readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
@@ -94,7 +94,7 @@ export declare const WebSocketRequest: Schema.Struct<{
94
94
  readonly runId: Schema.brand<Schema.Trim, "RunId">;
95
95
  readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
96
96
  readonly taskId: Schema.brand<Schema.Trim, "TaskId">;
97
- readonly runtimeAdapter: Schema.optional<Schema.Literals<readonly ["codex", "claude-code", "pi"]>>;
97
+ readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
98
98
  readonly model: Schema.optional<Schema.String>;
99
99
  readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
100
100
  readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
@@ -417,7 +417,7 @@ export declare const EngineGetSnapshotResult: Schema.Struct<{
417
417
  readonly title: Schema.Trim;
418
418
  readonly rootPath: Schema.Trim;
419
419
  readonly sourceKind: Schema.Literals<readonly ["native", "rig-import", "manual", "remote"]>;
420
- readonly defaultRuntimeAdapter: Schema.optional<Schema.Trim>;
420
+ readonly defaultRuntimeAdapter: Schema.optional<Schema.Literal<"pi">>;
421
421
  readonly defaultProvider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
422
422
  readonly defaultModel: Schema.NullOr<Schema.Trim>;
423
423
  readonly topology: Schema.optional<Schema.Struct<{
@@ -458,7 +458,7 @@ export declare const EngineGetSnapshotResult: Schema.Struct<{
458
458
  readonly region: Schema.NullOr<Schema.Trim>;
459
459
  readonly labels: Schema.$Array<Schema.Trim>;
460
460
  readonly capabilities: Schema.$Array<Schema.Trim>;
461
- readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
461
+ readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
462
462
  readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
463
463
  readonly currentLeaseCount: Schema.Number;
464
464
  readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
@@ -526,7 +526,7 @@ export declare const EngineGetSnapshotResult: Schema.Struct<{
526
526
  readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
527
527
  readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
528
528
  readonly status: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
529
- readonly runtimeAdapter: Schema.Trim;
529
+ readonly runtimeAdapter: Schema.Literal<"pi">;
530
530
  readonly model: Schema.NullOr<Schema.Trim>;
531
531
  readonly initialPrompt: Schema.NullOr<Schema.String>;
532
532
  readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
@@ -549,7 +549,7 @@ export declare const EngineGetSnapshotResult: Schema.Struct<{
549
549
  readonly id: Schema.brand<Schema.Trim, "EngineRuntimeId">;
550
550
  readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
551
551
  readonly runId: Schema.brand<Schema.Trim, "RunId">;
552
- readonly adapterKind: Schema.Trim;
552
+ readonly adapterKind: Schema.Literal<"pi">;
553
553
  readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
554
554
  readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
555
555
  readonly status: Schema.Literals<readonly ["prepared", "starting", "running", "interrupted", "exited", "failed", "destroyed"]>;
package/dist/src/ws.js CHANGED
@@ -1110,7 +1110,7 @@ var RunSummary = Schema9.Struct({
1110
1110
  runtimeMode: RuntimeMode,
1111
1111
  interactionMode: ProviderInteractionMode,
1112
1112
  status: RunStatus,
1113
- runtimeAdapter: TrimmedNonEmptyString,
1113
+ runtimeAdapter: Schema9.Literal("pi"),
1114
1114
  model: Schema9.NullOr(TrimmedNonEmptyString),
1115
1115
  initialPrompt: Schema9.NullOr(Schema9.String),
1116
1116
  executionTarget: Schema9.optional(RunExecutionTarget),
@@ -1133,7 +1133,7 @@ var RuntimeSummary = Schema9.Struct({
1133
1133
  id: EngineRuntimeId,
1134
1134
  workspaceId: WorkspaceId,
1135
1135
  runId: RunId,
1136
- adapterKind: TrimmedNonEmptyString,
1136
+ adapterKind: Schema9.Literal("pi"),
1137
1137
  executionTarget: Schema9.optional(RunExecutionTarget),
1138
1138
  remoteHostId: Schema9.optional(Schema9.NullOr(TrimmedNonEmptyString)),
1139
1139
  status: RuntimeStatus,
@@ -1260,7 +1260,7 @@ var WorkspaceRemoteHostSummary = Schema11.Struct({
1260
1260
  region: Schema11.NullOr(TrimmedNonEmptyString),
1261
1261
  labels: Schema11.Array(TrimmedNonEmptyString),
1262
1262
  capabilities: Schema11.Array(TrimmedNonEmptyString),
1263
- runtimeAdapters: Schema11.Array(TrimmedNonEmptyString),
1263
+ runtimeAdapters: Schema11.Array(Schema11.Literal("pi")),
1264
1264
  status: WorkspaceRemoteHostStatus,
1265
1265
  currentLeaseCount: Schema11.Number,
1266
1266
  lastHeartbeatAt: Schema11.NullOr(IsoDateTime),
@@ -1301,7 +1301,7 @@ var WorkspaceSummary = Schema11.Struct({
1301
1301
  title: TrimmedNonEmptyString,
1302
1302
  rootPath: TrimmedNonEmptyString,
1303
1303
  sourceKind: WorkspaceSourceKind,
1304
- defaultRuntimeAdapter: Schema11.optional(TrimmedNonEmptyString),
1304
+ defaultRuntimeAdapter: Schema11.optional(Schema11.Literal("pi")),
1305
1305
  defaultProvider: Schema11.optional(ProviderKind),
1306
1306
  defaultModel: Schema11.NullOr(TrimmedNonEmptyString),
1307
1307
  topology: Schema11.optional(WorkspaceTopologySummary),
@@ -1312,6 +1312,7 @@ var WorkspaceSummary = Schema11.Struct({
1312
1312
  });
1313
1313
 
1314
1314
  // packages/contracts/src/remote.ts
1315
+ var RemoteRuntimeAdapter = Schema12.Literal("pi");
1315
1316
  var RemoteEndpoint = Schema12.Struct({
1316
1317
  id: RemoteEndpointId,
1317
1318
  alias: TrimmedNonEmptyString,
@@ -1396,7 +1397,7 @@ var RemoteRunnerRegisterInput = Schema12.Struct({
1396
1397
  region: Schema12.optional(TrimmedNonEmptyString),
1397
1398
  labels: Schema12.optional(Schema12.Array(TrimmedNonEmptyString)),
1398
1399
  capabilities: Schema12.optional(Schema12.Array(TrimmedNonEmptyString)),
1399
- runtimeAdapters: Schema12.optional(Schema12.Array(TrimmedNonEmptyString)),
1400
+ runtimeAdapters: Schema12.optional(Schema12.Array(RemoteRuntimeAdapter)),
1400
1401
  status: Schema12.optional(WorkspaceRemoteHostStatus),
1401
1402
  currentLeaseCount: Schema12.optional(Schema12.Number)
1402
1403
  });
@@ -1417,14 +1418,14 @@ var RemoteRunnerLifecycleResult = Schema12.Struct({
1417
1418
  var RemoteRunClaimInput = Schema12.Struct({
1418
1419
  workspaceId: WorkspaceId,
1419
1420
  hostId: TrimmedNonEmptyString,
1420
- runtimeAdapters: Schema12.optional(Schema12.Array(TrimmedNonEmptyString))
1421
+ runtimeAdapters: Schema12.optional(Schema12.Array(RemoteRuntimeAdapter))
1421
1422
  });
1422
1423
  var RemoteRunLeaseSummary = Schema12.Struct({
1423
1424
  leaseId: TrimmedNonEmptyString,
1424
1425
  runId: TrimmedNonEmptyString,
1425
1426
  workspaceId: WorkspaceId,
1426
1427
  title: TrimmedNonEmptyString,
1427
- runtimeAdapter: TrimmedNonEmptyString,
1428
+ runtimeAdapter: RemoteRuntimeAdapter,
1428
1429
  model: Schema12.NullOr(TrimmedNonEmptyString),
1429
1430
  runtimeMode: RuntimeMode,
1430
1431
  interactionMode: ProviderInteractionMode,
@@ -1442,7 +1443,7 @@ var RemoteRunExecutionBundle = Schema12.Struct({
1442
1443
  runId: TrimmedNonEmptyString,
1443
1444
  leaseId: TrimmedNonEmptyString,
1444
1445
  workspacePath: Schema12.NullOr(TrimmedNonEmptyString),
1445
- runtimeAdapter: TrimmedNonEmptyString,
1446
+ runtimeAdapter: RemoteRuntimeAdapter,
1446
1447
  model: Schema12.NullOr(TrimmedNonEmptyString),
1447
1448
  runtimeMode: RuntimeMode,
1448
1449
  interactionMode: ProviderInteractionMode,
@@ -1603,7 +1604,7 @@ var EngineReadModel = Schema13.Struct({
1603
1604
  remoteOrchestrations: Schema13.Array(RemoteOrchestrationSummary),
1604
1605
  updatedAt: IsoDateTime
1605
1606
  });
1606
- var RuntimeAdapterKind = Schema13.Literals(["codex", "claude-code", "pi"]);
1607
+ var RuntimeAdapterKind = Schema13.Literal("pi");
1607
1608
  var WorkspaceRegisterCommand = Schema13.Struct({
1608
1609
  type: Schema13.Literal("workspace.register"),
1609
1610
  commandId: CommandId,
@@ -1796,7 +1797,7 @@ var WorkspaceRegisterRemoteHostCommand = Schema13.Struct({
1796
1797
  region: Schema13.NullOr(TrimmedNonEmptyString),
1797
1798
  labels: Schema13.Array(TrimmedNonEmptyString),
1798
1799
  capabilities: Schema13.Array(TrimmedNonEmptyString),
1799
- runtimeAdapters: Schema13.Array(TrimmedNonEmptyString),
1800
+ runtimeAdapters: Schema13.Array(RuntimeAdapterKind),
1800
1801
  status: Schema13.Literals([
1801
1802
  "registering",
1802
1803
  "ready",
@@ -2191,7 +2192,7 @@ var EngineGetTaskArtifactsInput = Schema13.Struct({
2191
2192
  });
2192
2193
  var EngineGetTaskArtifactsResult = Schema13.Array(ArtifactSummary);
2193
2194
  var EngineRuntimeDefaults = Schema13.Struct({
2194
- runtimeAdapter: TrimmedNonEmptyString,
2195
+ runtimeAdapter: RuntimeAdapterKind,
2195
2196
  runMode: RunMode,
2196
2197
  sandboxMode: EngineSandboxMode,
2197
2198
  isolationMode: IsolationMode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/contracts",
3
- "version": "0.0.6-alpha.129",
3
+ "version": "0.0.6-alpha.130",
4
4
  "type": "module",
5
5
  "description": "Rig package",
6
6
  "license": "UNLICENSED",