@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/index.cjs +42 -26
- package/dist/index.mjs +42 -26
- package/dist/src/config.d.ts +7 -10
- package/dist/src/config.js +2 -3
- package/dist/src/engine.d.ts +31 -31
- package/dist/src/engine.js +12 -11
- package/dist/src/help-catalog.js +1 -2
- package/dist/src/index.js +42 -26
- package/dist/src/remote.d.ts +6 -6
- package/dist/src/remote.js +9 -8
- package/dist/src/rig.d.ts +11 -11
- package/dist/src/rig.js +12 -11
- package/dist/src/run-journal.d.ts +5 -5
- package/dist/src/run-journal.js +3 -3
- package/dist/src/run-session-journal.js +3 -3
- package/dist/src/run-timeline.d.ts +1 -0
- package/dist/src/run-timeline.js +30 -13
- package/dist/src/runtime.d.ts +2 -2
- package/dist/src/runtime.js +2 -2
- package/dist/src/serviceFabric.js +2 -2
- package/dist/src/workspace.d.ts +4 -4
- package/dist/src/workspace.js +2 -2
- package/dist/src/ws.d.ts +6 -6
- package/dist/src/ws.js +12 -11
- package/package.json +1 -1
package/dist/src/engine.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const EngineReadModel: Schema.Struct<{
|
|
|
15
15
|
readonly title: Schema.Trim;
|
|
16
16
|
readonly rootPath: Schema.Trim;
|
|
17
17
|
readonly sourceKind: Schema.Literals<readonly ["native", "rig-import", "manual", "remote"]>;
|
|
18
|
-
readonly defaultRuntimeAdapter: Schema.optional<Schema.
|
|
18
|
+
readonly defaultRuntimeAdapter: Schema.optional<Schema.Literal<"pi">>;
|
|
19
19
|
readonly defaultProvider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
20
20
|
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
21
21
|
readonly topology: Schema.optional<Schema.Struct<{
|
|
@@ -56,7 +56,7 @@ export declare const EngineReadModel: Schema.Struct<{
|
|
|
56
56
|
readonly region: Schema.NullOr<Schema.Trim>;
|
|
57
57
|
readonly labels: Schema.$Array<Schema.Trim>;
|
|
58
58
|
readonly capabilities: Schema.$Array<Schema.Trim>;
|
|
59
|
-
readonly runtimeAdapters: Schema.$Array<Schema.
|
|
59
|
+
readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
|
|
60
60
|
readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
|
|
61
61
|
readonly currentLeaseCount: Schema.Number;
|
|
62
62
|
readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
|
|
@@ -124,7 +124,7 @@ export declare const EngineReadModel: Schema.Struct<{
|
|
|
124
124
|
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
125
125
|
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
126
126
|
readonly status: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
|
|
127
|
-
readonly runtimeAdapter: Schema.
|
|
127
|
+
readonly runtimeAdapter: Schema.Literal<"pi">;
|
|
128
128
|
readonly model: Schema.NullOr<Schema.Trim>;
|
|
129
129
|
readonly initialPrompt: Schema.NullOr<Schema.String>;
|
|
130
130
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
@@ -147,7 +147,7 @@ export declare const EngineReadModel: Schema.Struct<{
|
|
|
147
147
|
readonly id: Schema.brand<Schema.Trim, "EngineRuntimeId">;
|
|
148
148
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
149
149
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
150
|
-
readonly adapterKind: Schema.
|
|
150
|
+
readonly adapterKind: Schema.Literal<"pi">;
|
|
151
151
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
152
152
|
readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
153
153
|
readonly status: Schema.Literals<readonly ["prepared", "starting", "running", "interrupted", "exited", "failed", "destroyed"]>;
|
|
@@ -315,7 +315,7 @@ export declare const EngineReadModel: Schema.Struct<{
|
|
|
315
315
|
readonly updatedAt: Schema.String;
|
|
316
316
|
}>;
|
|
317
317
|
export type EngineReadModel = typeof EngineReadModel.Type;
|
|
318
|
-
export declare const RuntimeAdapterKind: Schema.
|
|
318
|
+
export declare const RuntimeAdapterKind: Schema.Literal<"pi">;
|
|
319
319
|
export type RuntimeAdapterKind = typeof RuntimeAdapterKind.Type;
|
|
320
320
|
export declare const WorkspaceRegisterCommand: Schema.Struct<{
|
|
321
321
|
readonly type: Schema.Literal<"workspace.register">;
|
|
@@ -342,7 +342,7 @@ export declare const RunCreateAdhocCommand: Schema.Struct<{
|
|
|
342
342
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
343
343
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
344
344
|
readonly title: Schema.Trim;
|
|
345
|
-
readonly runtimeAdapter: Schema.optional<Schema.
|
|
345
|
+
readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
|
|
346
346
|
readonly model: Schema.optional<Schema.Trim>;
|
|
347
347
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
348
348
|
readonly remoteHostId: Schema.optional<Schema.Trim>;
|
|
@@ -358,7 +358,7 @@ export declare const RunCreateForTaskCommand: Schema.Struct<{
|
|
|
358
358
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
359
359
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
360
360
|
readonly taskId: Schema.brand<Schema.Trim, "TaskId">;
|
|
361
|
-
readonly runtimeAdapter: Schema.optional<Schema.
|
|
361
|
+
readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
|
|
362
362
|
readonly model: Schema.optional<Schema.Trim>;
|
|
363
363
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
364
364
|
readonly remoteHostId: Schema.optional<Schema.Trim>;
|
|
@@ -430,7 +430,7 @@ export declare const RuntimePrepareCommand: Schema.Struct<{
|
|
|
430
430
|
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
431
431
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
432
432
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
433
|
-
readonly adapter: Schema.
|
|
433
|
+
readonly adapter: Schema.Literal<"pi">;
|
|
434
434
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
435
435
|
readonly remoteHostId: Schema.optional<Schema.Trim>;
|
|
436
436
|
readonly model: Schema.optional<Schema.Trim>;
|
|
@@ -511,7 +511,7 @@ export declare const WorkspaceHydrateImportedStateCommand: Schema.Struct<{
|
|
|
511
511
|
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
512
512
|
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
513
513
|
readonly status: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
|
|
514
|
-
readonly runtimeAdapter: Schema.
|
|
514
|
+
readonly runtimeAdapter: Schema.Literal<"pi">;
|
|
515
515
|
readonly model: Schema.NullOr<Schema.Trim>;
|
|
516
516
|
readonly initialPrompt: Schema.NullOr<Schema.String>;
|
|
517
517
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
@@ -534,7 +534,7 @@ export declare const WorkspaceHydrateImportedStateCommand: Schema.Struct<{
|
|
|
534
534
|
readonly id: Schema.brand<Schema.Trim, "EngineRuntimeId">;
|
|
535
535
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
536
536
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
537
|
-
readonly adapterKind: Schema.
|
|
537
|
+
readonly adapterKind: Schema.Literal<"pi">;
|
|
538
538
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
539
539
|
readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
540
540
|
readonly status: Schema.Literals<readonly ["prepared", "starting", "running", "interrupted", "exited", "failed", "destroyed"]>;
|
|
@@ -678,7 +678,7 @@ export declare const WorkspaceSyncRemoteFleetCommand: Schema.Struct<{
|
|
|
678
678
|
readonly region: Schema.NullOr<Schema.Trim>;
|
|
679
679
|
readonly labels: Schema.$Array<Schema.Trim>;
|
|
680
680
|
readonly capabilities: Schema.$Array<Schema.Trim>;
|
|
681
|
-
readonly runtimeAdapters: Schema.$Array<Schema.
|
|
681
|
+
readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
|
|
682
682
|
readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
|
|
683
683
|
readonly currentLeaseCount: Schema.Number;
|
|
684
684
|
readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
|
|
@@ -731,7 +731,7 @@ export declare const WorkspaceRegisterRemoteHostCommand: Schema.Struct<{
|
|
|
731
731
|
readonly region: Schema.NullOr<Schema.Trim>;
|
|
732
732
|
readonly labels: Schema.$Array<Schema.Trim>;
|
|
733
733
|
readonly capabilities: Schema.$Array<Schema.Trim>;
|
|
734
|
-
readonly runtimeAdapters: Schema.$Array<Schema.
|
|
734
|
+
readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
|
|
735
735
|
readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
|
|
736
736
|
readonly currentLeaseCount: Schema.Number;
|
|
737
737
|
readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
|
|
@@ -1142,7 +1142,7 @@ export declare const EngineCommand: Schema.Union<readonly [Schema.Struct<{
|
|
|
1142
1142
|
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
1143
1143
|
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
1144
1144
|
readonly status: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
|
|
1145
|
-
readonly runtimeAdapter: Schema.
|
|
1145
|
+
readonly runtimeAdapter: Schema.Literal<"pi">;
|
|
1146
1146
|
readonly model: Schema.NullOr<Schema.Trim>;
|
|
1147
1147
|
readonly initialPrompt: Schema.NullOr<Schema.String>;
|
|
1148
1148
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
@@ -1165,7 +1165,7 @@ export declare const EngineCommand: Schema.Union<readonly [Schema.Struct<{
|
|
|
1165
1165
|
readonly id: Schema.brand<Schema.Trim, "EngineRuntimeId">;
|
|
1166
1166
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
1167
1167
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
1168
|
-
readonly adapterKind: Schema.
|
|
1168
|
+
readonly adapterKind: Schema.Literal<"pi">;
|
|
1169
1169
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
1170
1170
|
readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
1171
1171
|
readonly status: Schema.Literals<readonly ["prepared", "starting", "running", "interrupted", "exited", "failed", "destroyed"]>;
|
|
@@ -1305,7 +1305,7 @@ export declare const EngineCommand: Schema.Union<readonly [Schema.Struct<{
|
|
|
1305
1305
|
readonly region: Schema.NullOr<Schema.Trim>;
|
|
1306
1306
|
readonly labels: Schema.$Array<Schema.Trim>;
|
|
1307
1307
|
readonly capabilities: Schema.$Array<Schema.Trim>;
|
|
1308
|
-
readonly runtimeAdapters: Schema.$Array<Schema.
|
|
1308
|
+
readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
|
|
1309
1309
|
readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
|
|
1310
1310
|
readonly currentLeaseCount: Schema.Number;
|
|
1311
1311
|
readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
|
|
@@ -1354,7 +1354,7 @@ export declare const EngineCommand: Schema.Union<readonly [Schema.Struct<{
|
|
|
1354
1354
|
readonly region: Schema.NullOr<Schema.Trim>;
|
|
1355
1355
|
readonly labels: Schema.$Array<Schema.Trim>;
|
|
1356
1356
|
readonly capabilities: Schema.$Array<Schema.Trim>;
|
|
1357
|
-
readonly runtimeAdapters: Schema.$Array<Schema.
|
|
1357
|
+
readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
|
|
1358
1358
|
readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
|
|
1359
1359
|
readonly currentLeaseCount: Schema.Number;
|
|
1360
1360
|
readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
|
|
@@ -1390,7 +1390,7 @@ export declare const EngineCommand: Schema.Union<readonly [Schema.Struct<{
|
|
|
1390
1390
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
1391
1391
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
1392
1392
|
readonly title: Schema.Trim;
|
|
1393
|
-
readonly runtimeAdapter: Schema.optional<Schema.
|
|
1393
|
+
readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
|
|
1394
1394
|
readonly model: Schema.optional<Schema.Trim>;
|
|
1395
1395
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
1396
1396
|
readonly remoteHostId: Schema.optional<Schema.Trim>;
|
|
@@ -1404,7 +1404,7 @@ export declare const EngineCommand: Schema.Union<readonly [Schema.Struct<{
|
|
|
1404
1404
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
1405
1405
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
1406
1406
|
readonly taskId: Schema.brand<Schema.Trim, "TaskId">;
|
|
1407
|
-
readonly runtimeAdapter: Schema.optional<Schema.
|
|
1407
|
+
readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
|
|
1408
1408
|
readonly model: Schema.optional<Schema.Trim>;
|
|
1409
1409
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
1410
1410
|
readonly remoteHostId: Schema.optional<Schema.Trim>;
|
|
@@ -1477,7 +1477,7 @@ export declare const EngineCommand: Schema.Union<readonly [Schema.Struct<{
|
|
|
1477
1477
|
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
1478
1478
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
1479
1479
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
1480
|
-
readonly adapter: Schema.
|
|
1480
|
+
readonly adapter: Schema.Literal<"pi">;
|
|
1481
1481
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
1482
1482
|
readonly remoteHostId: Schema.optional<Schema.Trim>;
|
|
1483
1483
|
readonly model: Schema.optional<Schema.Trim>;
|
|
@@ -1788,7 +1788,7 @@ export declare const EngineRpcSchemas: {
|
|
|
1788
1788
|
readonly title: Schema.Trim;
|
|
1789
1789
|
readonly rootPath: Schema.Trim;
|
|
1790
1790
|
readonly sourceKind: Schema.Literals<readonly ["native", "rig-import", "manual", "remote"]>;
|
|
1791
|
-
readonly defaultRuntimeAdapter: Schema.optional<Schema.
|
|
1791
|
+
readonly defaultRuntimeAdapter: Schema.optional<Schema.Literal<"pi">>;
|
|
1792
1792
|
readonly defaultProvider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
1793
1793
|
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
1794
1794
|
readonly topology: Schema.optional<Schema.Struct<{
|
|
@@ -1829,7 +1829,7 @@ export declare const EngineRpcSchemas: {
|
|
|
1829
1829
|
readonly region: Schema.NullOr<Schema.Trim>;
|
|
1830
1830
|
readonly labels: Schema.$Array<Schema.Trim>;
|
|
1831
1831
|
readonly capabilities: Schema.$Array<Schema.Trim>;
|
|
1832
|
-
readonly runtimeAdapters: Schema.$Array<Schema.
|
|
1832
|
+
readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
|
|
1833
1833
|
readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
|
|
1834
1834
|
readonly currentLeaseCount: Schema.Number;
|
|
1835
1835
|
readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
|
|
@@ -1897,7 +1897,7 @@ export declare const EngineRpcSchemas: {
|
|
|
1897
1897
|
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
1898
1898
|
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
1899
1899
|
readonly status: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
|
|
1900
|
-
readonly runtimeAdapter: Schema.
|
|
1900
|
+
readonly runtimeAdapter: Schema.Literal<"pi">;
|
|
1901
1901
|
readonly model: Schema.NullOr<Schema.Trim>;
|
|
1902
1902
|
readonly initialPrompt: Schema.NullOr<Schema.String>;
|
|
1903
1903
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
@@ -1920,7 +1920,7 @@ export declare const EngineRpcSchemas: {
|
|
|
1920
1920
|
readonly id: Schema.brand<Schema.Trim, "EngineRuntimeId">;
|
|
1921
1921
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
1922
1922
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
1923
|
-
readonly adapterKind: Schema.
|
|
1923
|
+
readonly adapterKind: Schema.Literal<"pi">;
|
|
1924
1924
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
1925
1925
|
readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
1926
1926
|
readonly status: Schema.Literals<readonly ["prepared", "starting", "running", "interrupted", "exited", "failed", "destroyed"]>;
|
|
@@ -2146,7 +2146,7 @@ export declare const EngineRpcSchemas: {
|
|
|
2146
2146
|
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
2147
2147
|
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
2148
2148
|
readonly status: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
|
|
2149
|
-
readonly runtimeAdapter: Schema.
|
|
2149
|
+
readonly runtimeAdapter: Schema.Literal<"pi">;
|
|
2150
2150
|
readonly model: Schema.NullOr<Schema.Trim>;
|
|
2151
2151
|
readonly initialPrompt: Schema.NullOr<Schema.String>;
|
|
2152
2152
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
@@ -2169,7 +2169,7 @@ export declare const EngineRpcSchemas: {
|
|
|
2169
2169
|
readonly id: Schema.brand<Schema.Trim, "EngineRuntimeId">;
|
|
2170
2170
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
2171
2171
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
2172
|
-
readonly adapterKind: Schema.
|
|
2172
|
+
readonly adapterKind: Schema.Literal<"pi">;
|
|
2173
2173
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
2174
2174
|
readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
2175
2175
|
readonly status: Schema.Literals<readonly ["prepared", "starting", "running", "interrupted", "exited", "failed", "destroyed"]>;
|
|
@@ -2309,7 +2309,7 @@ export declare const EngineRpcSchemas: {
|
|
|
2309
2309
|
readonly region: Schema.NullOr<Schema.Trim>;
|
|
2310
2310
|
readonly labels: Schema.$Array<Schema.Trim>;
|
|
2311
2311
|
readonly capabilities: Schema.$Array<Schema.Trim>;
|
|
2312
|
-
readonly runtimeAdapters: Schema.$Array<Schema.
|
|
2312
|
+
readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
|
|
2313
2313
|
readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
|
|
2314
2314
|
readonly currentLeaseCount: Schema.Number;
|
|
2315
2315
|
readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
|
|
@@ -2358,7 +2358,7 @@ export declare const EngineRpcSchemas: {
|
|
|
2358
2358
|
readonly region: Schema.NullOr<Schema.Trim>;
|
|
2359
2359
|
readonly labels: Schema.$Array<Schema.Trim>;
|
|
2360
2360
|
readonly capabilities: Schema.$Array<Schema.Trim>;
|
|
2361
|
-
readonly runtimeAdapters: Schema.$Array<Schema.
|
|
2361
|
+
readonly runtimeAdapters: Schema.$Array<Schema.Literal<"pi">>;
|
|
2362
2362
|
readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
|
|
2363
2363
|
readonly currentLeaseCount: Schema.Number;
|
|
2364
2364
|
readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
|
|
@@ -2394,7 +2394,7 @@ export declare const EngineRpcSchemas: {
|
|
|
2394
2394
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
2395
2395
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
2396
2396
|
readonly title: Schema.Trim;
|
|
2397
|
-
readonly runtimeAdapter: Schema.optional<Schema.
|
|
2397
|
+
readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
|
|
2398
2398
|
readonly model: Schema.optional<Schema.Trim>;
|
|
2399
2399
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
2400
2400
|
readonly remoteHostId: Schema.optional<Schema.Trim>;
|
|
@@ -2408,7 +2408,7 @@ export declare const EngineRpcSchemas: {
|
|
|
2408
2408
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
2409
2409
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
2410
2410
|
readonly taskId: Schema.brand<Schema.Trim, "TaskId">;
|
|
2411
|
-
readonly runtimeAdapter: Schema.optional<Schema.
|
|
2411
|
+
readonly runtimeAdapter: Schema.optional<Schema.Literal<"pi">>;
|
|
2412
2412
|
readonly model: Schema.optional<Schema.Trim>;
|
|
2413
2413
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
2414
2414
|
readonly remoteHostId: Schema.optional<Schema.Trim>;
|
|
@@ -2481,7 +2481,7 @@ export declare const EngineRpcSchemas: {
|
|
|
2481
2481
|
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
2482
2482
|
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
2483
2483
|
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
2484
|
-
readonly adapter: Schema.
|
|
2484
|
+
readonly adapter: Schema.Literal<"pi">;
|
|
2485
2485
|
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
2486
2486
|
readonly remoteHostId: Schema.optional<Schema.Trim>;
|
|
2487
2487
|
readonly model: Schema.optional<Schema.Trim>;
|
|
@@ -2781,7 +2781,7 @@ export declare const EngineRpcSchemas: {
|
|
|
2781
2781
|
};
|
|
2782
2782
|
};
|
|
2783
2783
|
export declare const EngineRuntimeDefaults: Schema.Struct<{
|
|
2784
|
-
readonly runtimeAdapter: Schema.
|
|
2784
|
+
readonly runtimeAdapter: Schema.Literal<"pi">;
|
|
2785
2785
|
readonly runMode: Schema.Literals<readonly ["interactive", "autonomous", "supervised"]>;
|
|
2786
2786
|
readonly sandboxMode: Schema.Literals<readonly ["read-only", "workspace-write", "danger-full-access"]>;
|
|
2787
2787
|
readonly isolationMode: Schema.Literals<readonly ["none", "env", "worktree"]>;
|
package/dist/src/engine.js
CHANGED
|
@@ -1107,7 +1107,7 @@ var RunSummary = Schema9.Struct({
|
|
|
1107
1107
|
runtimeMode: RuntimeMode,
|
|
1108
1108
|
interactionMode: ProviderInteractionMode,
|
|
1109
1109
|
status: RunStatus,
|
|
1110
|
-
runtimeAdapter:
|
|
1110
|
+
runtimeAdapter: Schema9.Literal("pi"),
|
|
1111
1111
|
model: Schema9.NullOr(TrimmedNonEmptyString),
|
|
1112
1112
|
initialPrompt: Schema9.NullOr(Schema9.String),
|
|
1113
1113
|
executionTarget: Schema9.optional(RunExecutionTarget),
|
|
@@ -1130,7 +1130,7 @@ var RuntimeSummary = Schema9.Struct({
|
|
|
1130
1130
|
id: EngineRuntimeId,
|
|
1131
1131
|
workspaceId: WorkspaceId,
|
|
1132
1132
|
runId: RunId,
|
|
1133
|
-
adapterKind:
|
|
1133
|
+
adapterKind: Schema9.Literal("pi"),
|
|
1134
1134
|
executionTarget: Schema9.optional(RunExecutionTarget),
|
|
1135
1135
|
remoteHostId: Schema9.optional(Schema9.NullOr(TrimmedNonEmptyString)),
|
|
1136
1136
|
status: RuntimeStatus,
|
|
@@ -1257,7 +1257,7 @@ var WorkspaceRemoteHostSummary = Schema11.Struct({
|
|
|
1257
1257
|
region: Schema11.NullOr(TrimmedNonEmptyString),
|
|
1258
1258
|
labels: Schema11.Array(TrimmedNonEmptyString),
|
|
1259
1259
|
capabilities: Schema11.Array(TrimmedNonEmptyString),
|
|
1260
|
-
runtimeAdapters: Schema11.Array(
|
|
1260
|
+
runtimeAdapters: Schema11.Array(Schema11.Literal("pi")),
|
|
1261
1261
|
status: WorkspaceRemoteHostStatus,
|
|
1262
1262
|
currentLeaseCount: Schema11.Number,
|
|
1263
1263
|
lastHeartbeatAt: Schema11.NullOr(IsoDateTime),
|
|
@@ -1298,7 +1298,7 @@ var WorkspaceSummary = Schema11.Struct({
|
|
|
1298
1298
|
title: TrimmedNonEmptyString,
|
|
1299
1299
|
rootPath: TrimmedNonEmptyString,
|
|
1300
1300
|
sourceKind: WorkspaceSourceKind,
|
|
1301
|
-
defaultRuntimeAdapter: Schema11.optional(
|
|
1301
|
+
defaultRuntimeAdapter: Schema11.optional(Schema11.Literal("pi")),
|
|
1302
1302
|
defaultProvider: Schema11.optional(ProviderKind),
|
|
1303
1303
|
defaultModel: Schema11.NullOr(TrimmedNonEmptyString),
|
|
1304
1304
|
topology: Schema11.optional(WorkspaceTopologySummary),
|
|
@@ -1309,6 +1309,7 @@ var WorkspaceSummary = Schema11.Struct({
|
|
|
1309
1309
|
});
|
|
1310
1310
|
|
|
1311
1311
|
// packages/contracts/src/remote.ts
|
|
1312
|
+
var RemoteRuntimeAdapter = Schema12.Literal("pi");
|
|
1312
1313
|
var RemoteEndpoint = Schema12.Struct({
|
|
1313
1314
|
id: RemoteEndpointId,
|
|
1314
1315
|
alias: TrimmedNonEmptyString,
|
|
@@ -1393,7 +1394,7 @@ var RemoteRunnerRegisterInput = Schema12.Struct({
|
|
|
1393
1394
|
region: Schema12.optional(TrimmedNonEmptyString),
|
|
1394
1395
|
labels: Schema12.optional(Schema12.Array(TrimmedNonEmptyString)),
|
|
1395
1396
|
capabilities: Schema12.optional(Schema12.Array(TrimmedNonEmptyString)),
|
|
1396
|
-
runtimeAdapters: Schema12.optional(Schema12.Array(
|
|
1397
|
+
runtimeAdapters: Schema12.optional(Schema12.Array(RemoteRuntimeAdapter)),
|
|
1397
1398
|
status: Schema12.optional(WorkspaceRemoteHostStatus),
|
|
1398
1399
|
currentLeaseCount: Schema12.optional(Schema12.Number)
|
|
1399
1400
|
});
|
|
@@ -1414,14 +1415,14 @@ var RemoteRunnerLifecycleResult = Schema12.Struct({
|
|
|
1414
1415
|
var RemoteRunClaimInput = Schema12.Struct({
|
|
1415
1416
|
workspaceId: WorkspaceId,
|
|
1416
1417
|
hostId: TrimmedNonEmptyString,
|
|
1417
|
-
runtimeAdapters: Schema12.optional(Schema12.Array(
|
|
1418
|
+
runtimeAdapters: Schema12.optional(Schema12.Array(RemoteRuntimeAdapter))
|
|
1418
1419
|
});
|
|
1419
1420
|
var RemoteRunLeaseSummary = Schema12.Struct({
|
|
1420
1421
|
leaseId: TrimmedNonEmptyString,
|
|
1421
1422
|
runId: TrimmedNonEmptyString,
|
|
1422
1423
|
workspaceId: WorkspaceId,
|
|
1423
1424
|
title: TrimmedNonEmptyString,
|
|
1424
|
-
runtimeAdapter:
|
|
1425
|
+
runtimeAdapter: RemoteRuntimeAdapter,
|
|
1425
1426
|
model: Schema12.NullOr(TrimmedNonEmptyString),
|
|
1426
1427
|
runtimeMode: RuntimeMode,
|
|
1427
1428
|
interactionMode: ProviderInteractionMode,
|
|
@@ -1439,7 +1440,7 @@ var RemoteRunExecutionBundle = Schema12.Struct({
|
|
|
1439
1440
|
runId: TrimmedNonEmptyString,
|
|
1440
1441
|
leaseId: TrimmedNonEmptyString,
|
|
1441
1442
|
workspacePath: Schema12.NullOr(TrimmedNonEmptyString),
|
|
1442
|
-
runtimeAdapter:
|
|
1443
|
+
runtimeAdapter: RemoteRuntimeAdapter,
|
|
1443
1444
|
model: Schema12.NullOr(TrimmedNonEmptyString),
|
|
1444
1445
|
runtimeMode: RuntimeMode,
|
|
1445
1446
|
interactionMode: ProviderInteractionMode,
|
|
@@ -1600,7 +1601,7 @@ var EngineReadModel = Schema13.Struct({
|
|
|
1600
1601
|
remoteOrchestrations: Schema13.Array(RemoteOrchestrationSummary),
|
|
1601
1602
|
updatedAt: IsoDateTime
|
|
1602
1603
|
});
|
|
1603
|
-
var RuntimeAdapterKind = Schema13.
|
|
1604
|
+
var RuntimeAdapterKind = Schema13.Literal("pi");
|
|
1604
1605
|
var WorkspaceRegisterCommand = Schema13.Struct({
|
|
1605
1606
|
type: Schema13.Literal("workspace.register"),
|
|
1606
1607
|
commandId: CommandId,
|
|
@@ -1793,7 +1794,7 @@ var WorkspaceRegisterRemoteHostCommand = Schema13.Struct({
|
|
|
1793
1794
|
region: Schema13.NullOr(TrimmedNonEmptyString),
|
|
1794
1795
|
labels: Schema13.Array(TrimmedNonEmptyString),
|
|
1795
1796
|
capabilities: Schema13.Array(TrimmedNonEmptyString),
|
|
1796
|
-
runtimeAdapters: Schema13.Array(
|
|
1797
|
+
runtimeAdapters: Schema13.Array(RuntimeAdapterKind),
|
|
1797
1798
|
status: Schema13.Literals([
|
|
1798
1799
|
"registering",
|
|
1799
1800
|
"ready",
|
|
@@ -2206,7 +2207,7 @@ var EngineRpcSchemas = {
|
|
|
2206
2207
|
}
|
|
2207
2208
|
};
|
|
2208
2209
|
var EngineRuntimeDefaults = Schema13.Struct({
|
|
2209
|
-
runtimeAdapter:
|
|
2210
|
+
runtimeAdapter: RuntimeAdapterKind,
|
|
2210
2211
|
runMode: RunMode,
|
|
2211
2212
|
sandboxMode: EngineSandboxMode,
|
|
2212
2213
|
isolationMode: IsolationMode
|
package/dist/src/help-catalog.js
CHANGED
|
@@ -168,7 +168,7 @@ var TOP_LEVEL_SECTIONS = [
|
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
command: "rig config set <key> <value>",
|
|
171
|
-
description: "Write an override (relayUrl/registryUrl/
|
|
171
|
+
description: "Write an override (relayUrl/registryUrl/sshTarget or any RIG_*) into rig.config.ts.",
|
|
172
172
|
usecase: "Persist a setting so it survives across runs without env vars.",
|
|
173
173
|
examples: [
|
|
174
174
|
"rig config set sshTarget ubuntu@host # remote placement",
|
|
@@ -522,7 +522,6 @@ var ADVANCED_GROUPS = [
|
|
|
522
522
|
{ command: "cleanup [--all] [--id <id>]", description: "Remove prepared agent workspaces.", primary: true }
|
|
523
523
|
]
|
|
524
524
|
},
|
|
525
|
-
{ name: "inspector", summary: "Event stream and drift scanners.", usage: ["rig inspector <stream|scan-upstream-drift>"], commands: [{ command: "stream", description: "Stream events." }] },
|
|
526
525
|
{
|
|
527
526
|
name: "dist",
|
|
528
527
|
summary: "Build/install packaged Rig CLI.",
|
package/dist/src/index.js
CHANGED
|
@@ -1048,7 +1048,7 @@ var WorkspaceRemoteHostSummary = Schema4.Struct({
|
|
|
1048
1048
|
region: Schema4.NullOr(TrimmedNonEmptyString),
|
|
1049
1049
|
labels: Schema4.Array(TrimmedNonEmptyString),
|
|
1050
1050
|
capabilities: Schema4.Array(TrimmedNonEmptyString),
|
|
1051
|
-
runtimeAdapters: Schema4.Array(
|
|
1051
|
+
runtimeAdapters: Schema4.Array(Schema4.Literal("pi")),
|
|
1052
1052
|
status: WorkspaceRemoteHostStatus,
|
|
1053
1053
|
currentLeaseCount: Schema4.Number,
|
|
1054
1054
|
lastHeartbeatAt: Schema4.NullOr(IsoDateTime),
|
|
@@ -1089,7 +1089,7 @@ var WorkspaceSummary = Schema4.Struct({
|
|
|
1089
1089
|
title: TrimmedNonEmptyString,
|
|
1090
1090
|
rootPath: TrimmedNonEmptyString,
|
|
1091
1091
|
sourceKind: WorkspaceSourceKind,
|
|
1092
|
-
defaultRuntimeAdapter: Schema4.optional(
|
|
1092
|
+
defaultRuntimeAdapter: Schema4.optional(Schema4.Literal("pi")),
|
|
1093
1093
|
defaultProvider: Schema4.optional(ProviderKind),
|
|
1094
1094
|
defaultModel: Schema4.NullOr(TrimmedNonEmptyString),
|
|
1095
1095
|
topology: Schema4.optional(WorkspaceTopologySummary),
|
|
@@ -1194,7 +1194,7 @@ var RunSummary = Schema6.Struct({
|
|
|
1194
1194
|
runtimeMode: RuntimeMode,
|
|
1195
1195
|
interactionMode: ProviderInteractionMode,
|
|
1196
1196
|
status: RunStatus,
|
|
1197
|
-
runtimeAdapter:
|
|
1197
|
+
runtimeAdapter: Schema6.Literal("pi"),
|
|
1198
1198
|
model: Schema6.NullOr(TrimmedNonEmptyString),
|
|
1199
1199
|
initialPrompt: Schema6.NullOr(Schema6.String),
|
|
1200
1200
|
executionTarget: Schema6.optional(RunExecutionTarget),
|
|
@@ -1217,7 +1217,7 @@ var RuntimeSummary = Schema6.Struct({
|
|
|
1217
1217
|
id: EngineRuntimeId,
|
|
1218
1218
|
workspaceId: WorkspaceId,
|
|
1219
1219
|
runId: RunId,
|
|
1220
|
-
adapterKind:
|
|
1220
|
+
adapterKind: Schema6.Literal("pi"),
|
|
1221
1221
|
executionTarget: Schema6.optional(RunExecutionTarget),
|
|
1222
1222
|
remoteHostId: Schema6.optional(Schema6.NullOr(TrimmedNonEmptyString)),
|
|
1223
1223
|
status: RuntimeStatus,
|
|
@@ -1314,7 +1314,7 @@ var runRecordFields = {
|
|
|
1314
1314
|
taskId: Schema7.NullOr(TrimmedNonEmptyString),
|
|
1315
1315
|
threadId: Schema7.NullOr(TrimmedNonEmptyString),
|
|
1316
1316
|
mode: Schema7.Literals(["local", "remote"]),
|
|
1317
|
-
runtimeAdapter:
|
|
1317
|
+
runtimeAdapter: Schema7.Literal("pi"),
|
|
1318
1318
|
createdAt: IsoDateTime,
|
|
1319
1319
|
startedAt: Schema7.NullOr(IsoDateTime),
|
|
1320
1320
|
completedAt: Schema7.NullOr(IsoDateTime),
|
|
@@ -2240,19 +2240,35 @@ function projectWorkflowEntries(entries) {
|
|
|
2240
2240
|
function isRecord(value) {
|
|
2241
2241
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
2242
2242
|
}
|
|
2243
|
+
function timelineEntryFromCustomEntry(entry) {
|
|
2244
|
+
if (entry.customType !== CUSTOM_TYPE_FOR["timeline-entry"] || !isRecord(entry.data))
|
|
2245
|
+
return null;
|
|
2246
|
+
const payload = isRecord(entry.data.payload) ? entry.data.payload : entry.data;
|
|
2247
|
+
const type = typeof payload.type === "string" ? payload.type : "timeline";
|
|
2248
|
+
const stage = typeof payload.stage === "string" ? payload.stage : typeof payload.name === "string" ? payload.name : null;
|
|
2249
|
+
const status = typeof payload.status === "string" ? payload.status : typeof payload.outcome === "string" ? payload.outcome : null;
|
|
2250
|
+
const detail = typeof payload.detail === "string" ? payload.detail : typeof payload.message === "string" ? payload.message : null;
|
|
2251
|
+
const at = typeof entry.data.at === "string" ? entry.data.at : typeof payload.at === "string" ? payload.at : null;
|
|
2252
|
+
return { at, type, stage, status, detail };
|
|
2253
|
+
}
|
|
2243
2254
|
function timelineEntriesFromCustomEntries(entries) {
|
|
2244
2255
|
return entries.flatMap((entry) => {
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
const payload = isRecord(entry.data.payload) ? entry.data.payload : entry.data;
|
|
2248
|
-
const type = typeof payload.type === "string" ? payload.type : "timeline";
|
|
2249
|
-
const stage = typeof payload.stage === "string" ? payload.stage : typeof payload.name === "string" ? payload.name : null;
|
|
2250
|
-
const status = typeof payload.status === "string" ? payload.status : typeof payload.outcome === "string" ? payload.outcome : null;
|
|
2251
|
-
const detail = typeof payload.detail === "string" ? payload.detail : typeof payload.message === "string" ? payload.message : null;
|
|
2252
|
-
const at = typeof entry.data.at === "string" ? entry.data.at : typeof payload.at === "string" ? payload.at : null;
|
|
2253
|
-
return [{ at, type, stage, status, detail }];
|
|
2256
|
+
const timelineEntry = timelineEntryFromCustomEntry(entry);
|
|
2257
|
+
return timelineEntry ? [timelineEntry] : [];
|
|
2254
2258
|
});
|
|
2255
2259
|
}
|
|
2260
|
+
function latestTimelineEntriesFromCustomEntries(entries, limit) {
|
|
2261
|
+
if (limit <= 0)
|
|
2262
|
+
return [];
|
|
2263
|
+
const timeline = [];
|
|
2264
|
+
for (let index = entries.length - 1;index >= 0 && timeline.length < limit; index -= 1) {
|
|
2265
|
+
const timelineEntry = timelineEntryFromCustomEntry(entries[index]);
|
|
2266
|
+
if (timelineEntry)
|
|
2267
|
+
timeline.push(timelineEntry);
|
|
2268
|
+
}
|
|
2269
|
+
timeline.reverse();
|
|
2270
|
+
return timeline;
|
|
2271
|
+
}
|
|
2256
2272
|
// packages/contracts/src/run-status.ts
|
|
2257
2273
|
var OPERATOR_INACTIVE_RUN_STATUSES = new Set([
|
|
2258
2274
|
"completed",
|
|
@@ -2470,7 +2486,7 @@ var TaskSourceConfig = Schema11.Struct({
|
|
|
2470
2486
|
url: Schema11.optional(Schema11.String),
|
|
2471
2487
|
options: Schema11.optional(Schema11.Record(Schema11.String, Schema11.Unknown))
|
|
2472
2488
|
});
|
|
2473
|
-
var RuntimeHarness = Schema11.
|
|
2489
|
+
var RuntimeHarness = Schema11.Literal("pi");
|
|
2474
2490
|
var RigRuntimeMode = Schema11.Literals(["yolo", "approval-required"]);
|
|
2475
2491
|
var PiRuntimeConfig = Schema11.Struct({
|
|
2476
2492
|
packages: Schema11.optional(Schema11.Array(Schema11.String))
|
|
@@ -2479,7 +2495,6 @@ var RigServerConfig = Schema11.Struct({
|
|
|
2479
2495
|
host: Schema11.optional(Schema11.String),
|
|
2480
2496
|
relayUrl: Schema11.optional(Schema11.String),
|
|
2481
2497
|
registryUrl: Schema11.optional(Schema11.String),
|
|
2482
|
-
registrySecret: Schema11.optional(Schema11.String),
|
|
2483
2498
|
sshTarget: Schema11.optional(Schema11.String),
|
|
2484
2499
|
checkout: Schema11.optional(Schema11.String)
|
|
2485
2500
|
});
|
|
@@ -2545,7 +2560,7 @@ var IssueAnalysisConfig = Schema11.Struct({
|
|
|
2545
2560
|
});
|
|
2546
2561
|
var ReviewConfig = Schema11.Struct({
|
|
2547
2562
|
mode: Schema11.optional(Schema11.Literals(["off", "advisory", "required"])),
|
|
2548
|
-
provider: Schema11.optional(Schema11.
|
|
2563
|
+
provider: Schema11.optional(Schema11.Literals(["greptile", "github"]))
|
|
2549
2564
|
});
|
|
2550
2565
|
var RigConfig = Schema11.Struct({
|
|
2551
2566
|
project: ProjectIdentity,
|
|
@@ -2629,6 +2644,7 @@ import { Schema as Schema17 } from "effect";
|
|
|
2629
2644
|
|
|
2630
2645
|
// packages/contracts/src/remote.ts
|
|
2631
2646
|
import { Schema as Schema16 } from "effect";
|
|
2647
|
+
var RemoteRuntimeAdapter = Schema16.Literal("pi");
|
|
2632
2648
|
var RemoteEndpoint = Schema16.Struct({
|
|
2633
2649
|
id: RemoteEndpointId,
|
|
2634
2650
|
alias: TrimmedNonEmptyString,
|
|
@@ -2713,7 +2729,7 @@ var RemoteRunnerRegisterInput = Schema16.Struct({
|
|
|
2713
2729
|
region: Schema16.optional(TrimmedNonEmptyString),
|
|
2714
2730
|
labels: Schema16.optional(Schema16.Array(TrimmedNonEmptyString)),
|
|
2715
2731
|
capabilities: Schema16.optional(Schema16.Array(TrimmedNonEmptyString)),
|
|
2716
|
-
runtimeAdapters: Schema16.optional(Schema16.Array(
|
|
2732
|
+
runtimeAdapters: Schema16.optional(Schema16.Array(RemoteRuntimeAdapter)),
|
|
2717
2733
|
status: Schema16.optional(WorkspaceRemoteHostStatus),
|
|
2718
2734
|
currentLeaseCount: Schema16.optional(Schema16.Number)
|
|
2719
2735
|
});
|
|
@@ -2734,14 +2750,14 @@ var RemoteRunnerLifecycleResult = Schema16.Struct({
|
|
|
2734
2750
|
var RemoteRunClaimInput = Schema16.Struct({
|
|
2735
2751
|
workspaceId: WorkspaceId,
|
|
2736
2752
|
hostId: TrimmedNonEmptyString,
|
|
2737
|
-
runtimeAdapters: Schema16.optional(Schema16.Array(
|
|
2753
|
+
runtimeAdapters: Schema16.optional(Schema16.Array(RemoteRuntimeAdapter))
|
|
2738
2754
|
});
|
|
2739
2755
|
var RemoteRunLeaseSummary = Schema16.Struct({
|
|
2740
2756
|
leaseId: TrimmedNonEmptyString,
|
|
2741
2757
|
runId: TrimmedNonEmptyString,
|
|
2742
2758
|
workspaceId: WorkspaceId,
|
|
2743
2759
|
title: TrimmedNonEmptyString,
|
|
2744
|
-
runtimeAdapter:
|
|
2760
|
+
runtimeAdapter: RemoteRuntimeAdapter,
|
|
2745
2761
|
model: Schema16.NullOr(TrimmedNonEmptyString),
|
|
2746
2762
|
runtimeMode: RuntimeMode,
|
|
2747
2763
|
interactionMode: ProviderInteractionMode,
|
|
@@ -2759,7 +2775,7 @@ var RemoteRunExecutionBundle = Schema16.Struct({
|
|
|
2759
2775
|
runId: TrimmedNonEmptyString,
|
|
2760
2776
|
leaseId: TrimmedNonEmptyString,
|
|
2761
2777
|
workspacePath: Schema16.NullOr(TrimmedNonEmptyString),
|
|
2762
|
-
runtimeAdapter:
|
|
2778
|
+
runtimeAdapter: RemoteRuntimeAdapter,
|
|
2763
2779
|
model: Schema16.NullOr(TrimmedNonEmptyString),
|
|
2764
2780
|
runtimeMode: RuntimeMode,
|
|
2765
2781
|
interactionMode: ProviderInteractionMode,
|
|
@@ -2920,7 +2936,7 @@ var EngineReadModel = Schema17.Struct({
|
|
|
2920
2936
|
remoteOrchestrations: Schema17.Array(RemoteOrchestrationSummary),
|
|
2921
2937
|
updatedAt: IsoDateTime
|
|
2922
2938
|
});
|
|
2923
|
-
var RuntimeAdapterKind = Schema17.
|
|
2939
|
+
var RuntimeAdapterKind = Schema17.Literal("pi");
|
|
2924
2940
|
var WorkspaceRegisterCommand = Schema17.Struct({
|
|
2925
2941
|
type: Schema17.Literal("workspace.register"),
|
|
2926
2942
|
commandId: CommandId,
|
|
@@ -3113,7 +3129,7 @@ var WorkspaceRegisterRemoteHostCommand = Schema17.Struct({
|
|
|
3113
3129
|
region: Schema17.NullOr(TrimmedNonEmptyString),
|
|
3114
3130
|
labels: Schema17.Array(TrimmedNonEmptyString),
|
|
3115
3131
|
capabilities: Schema17.Array(TrimmedNonEmptyString),
|
|
3116
|
-
runtimeAdapters: Schema17.Array(
|
|
3132
|
+
runtimeAdapters: Schema17.Array(RuntimeAdapterKind),
|
|
3117
3133
|
status: Schema17.Literals([
|
|
3118
3134
|
"registering",
|
|
3119
3135
|
"ready",
|
|
@@ -3526,7 +3542,7 @@ var EngineRpcSchemas = {
|
|
|
3526
3542
|
}
|
|
3527
3543
|
};
|
|
3528
3544
|
var EngineRuntimeDefaults = Schema17.Struct({
|
|
3529
|
-
runtimeAdapter:
|
|
3545
|
+
runtimeAdapter: RuntimeAdapterKind,
|
|
3530
3546
|
runMode: RunMode,
|
|
3531
3547
|
sandboxMode: EngineSandboxMode,
|
|
3532
3548
|
isolationMode: IsolationMode
|
|
@@ -5573,7 +5589,7 @@ var TOP_LEVEL_SECTIONS = [
|
|
|
5573
5589
|
},
|
|
5574
5590
|
{
|
|
5575
5591
|
command: "rig config set <key> <value>",
|
|
5576
|
-
description: "Write an override (relayUrl/registryUrl/
|
|
5592
|
+
description: "Write an override (relayUrl/registryUrl/sshTarget or any RIG_*) into rig.config.ts.",
|
|
5577
5593
|
usecase: "Persist a setting so it survives across runs without env vars.",
|
|
5578
5594
|
examples: [
|
|
5579
5595
|
"rig config set sshTarget ubuntu@host # remote placement",
|
|
@@ -5927,7 +5943,6 @@ var ADVANCED_GROUPS = [
|
|
|
5927
5943
|
{ command: "cleanup [--all] [--id <id>]", description: "Remove prepared agent workspaces.", primary: true }
|
|
5928
5944
|
]
|
|
5929
5945
|
},
|
|
5930
|
-
{ name: "inspector", summary: "Event stream and drift scanners.", usage: ["rig inspector <stream|scan-upstream-drift>"], commands: [{ command: "stream", description: "Stream events." }] },
|
|
5931
5946
|
{
|
|
5932
5947
|
name: "dist",
|
|
5933
5948
|
summary: "Build/install packaged Rig CLI.",
|
|
@@ -5991,6 +6006,7 @@ export {
|
|
|
5991
6006
|
parsePauseSentinel,
|
|
5992
6007
|
parseInboxResolutionSentinel,
|
|
5993
6008
|
normalizeRunStatusToken,
|
|
6009
|
+
latestTimelineEntriesFromCustomEntries,
|
|
5994
6010
|
isTerminalRunStatus,
|
|
5995
6011
|
isRunSessionCustomType,
|
|
5996
6012
|
isOperatorActiveRunStatus,
|