@air-jam/devtools 1.0.0-beta.7 → 1.0.0-beta.9

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.
@@ -308,7 +308,7 @@ declare const observeGameSession: (input: ObserveGameSessionOptions) => Promise<
308
308
  participantId: string | null;
309
309
  };
310
310
  sequence: number;
311
- scope: "player" | "diagnostic";
311
+ scope: "diagnostic" | "player";
312
312
  controllerId: string | null;
313
313
  capturedAt: string;
314
314
  durationMs: number;
@@ -344,7 +344,7 @@ declare const observeGameSession: (input: ObserveGameSessionOptions) => Promise<
344
344
  };
345
345
  host?: {
346
346
  before: {
347
- runtimeState: "paused" | "playing";
347
+ runtimeState: "playing" | "paused";
348
348
  connectionStatus: "connected" | "connecting" | "reconnecting" | "idle" | "disconnected";
349
349
  fault?: {
350
350
  name: string;
@@ -358,7 +358,7 @@ declare const observeGameSession: (input: ObserveGameSessionOptions) => Promise<
358
358
  } | null | undefined;
359
359
  } | null;
360
360
  after: {
361
- runtimeState: "paused" | "playing";
361
+ runtimeState: "playing" | "paused";
362
362
  connectionStatus: "connected" | "connecting" | "reconnecting" | "idle" | "disconnected";
363
363
  fault?: {
364
364
  name: string;
@@ -382,7 +382,7 @@ declare const observeGameSession: (input: ObserveGameSessionOptions) => Promise<
382
382
  description: string | null;
383
383
  availability: string | null;
384
384
  payload: {
385
- kind: "string" | "number" | "boolean" | "json" | "enum" | "none";
385
+ kind: "string" | "number" | "boolean" | "enum" | "none" | "json";
386
386
  description: string | null;
387
387
  allowedValues?: string[] | undefined;
388
388
  };
@@ -433,12 +433,12 @@ declare const controlGameSessionParticipant: (input: ControlGameSessionParticipa
433
433
  result: {
434
434
  ok: true;
435
435
  status: "accepted";
436
- source: "client" | "host";
436
+ source: "host" | "client";
437
437
  result?: unknown;
438
438
  } | {
439
439
  ok: false;
440
440
  status: "rejected";
441
- source: "server" | "client" | "host";
441
+ source: "host" | "client" | "server";
442
442
  reason: string;
443
443
  message: string;
444
444
  details?: Record<string, unknown> | undefined;
@@ -491,11 +491,11 @@ declare const startGameRun: (input: StartGameRunOptions, attachment?: CurrentRoo
491
491
  target: {
492
492
  kind: "current";
493
493
  };
494
- cwd?: string | undefined;
495
494
  gameId?: string | undefined;
495
+ cwd?: string | undefined;
496
496
  intent?: string | undefined;
497
497
  };
498
- state: "setup" | "playing" | "starting" | "stopping" | "ended";
498
+ state: "starting" | "setup" | "playing" | "stopping" | "ended";
499
499
  startedAt: string;
500
500
  seats: {
501
501
  seatId: string;
@@ -561,7 +561,7 @@ declare const startGameRun: (input: StartGameRunOptions, attachment?: CurrentRoo
561
561
  input?: z.core.util.JSONType | undefined;
562
562
  })[];
563
563
  actions: string[];
564
- scope: "player" | "diagnostic";
564
+ scope: "diagnostic" | "player";
565
565
  includeImage: boolean;
566
566
  timing: {
567
567
  intervalMs: number;
@@ -608,11 +608,11 @@ declare const startGameRun: (input: StartGameRunOptions, attachment?: CurrentRoo
608
608
  } | undefined;
609
609
  decisionModel?: string | undefined;
610
610
  build?: {
611
- version: 1;
612
611
  buildKey: string;
613
612
  sourceHash: string;
614
613
  lockfileHash: string;
615
614
  distHash: string;
615
+ version: 1;
616
616
  toolchain: {
617
617
  node: string;
618
618
  pnpm: string;
@@ -667,24 +667,24 @@ declare const startGameRun: (input: StartGameRunOptions, attachment?: CurrentRoo
667
667
  at: string;
668
668
  seatId: string;
669
669
  intent: string | null;
670
- source: "agent" | "creator" | "operator";
670
+ source: "creator" | "agent" | "operator";
671
671
  }[] | undefined;
672
672
  evaluation?: {
673
673
  play?: {
674
- status: "failed" | "pending" | "passed";
674
+ status: "pending" | "passed" | "failed";
675
675
  message?: string | undefined;
676
676
  metrics?: Record<string, number> | undefined;
677
677
  } | undefined;
678
678
  final?: {
679
- status: "failed" | "pending" | "passed";
679
+ status: "pending" | "passed" | "failed";
680
680
  message?: string | undefined;
681
681
  metrics?: Record<string, number> | undefined;
682
682
  } | undefined;
683
683
  } | undefined;
684
684
  end?: {
685
- reason: "error" | "runtime_replaced" | "failed" | "budget" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
685
+ reason: "error" | "budget" | "failed" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "runtime_replaced" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
686
686
  message: string;
687
- outcome?: "failed" | "passed" | "inconclusive" | undefined;
687
+ outcome?: "passed" | "failed" | "inconclusive" | undefined;
688
688
  hostFault?: {
689
689
  name: string;
690
690
  message: string;
@@ -714,12 +714,12 @@ declare const startGameRun: (input: StartGameRunOptions, attachment?: CurrentRoo
714
714
  result: {
715
715
  ok: true;
716
716
  status: "accepted";
717
- source: "client" | "host";
717
+ source: "host" | "client";
718
718
  result?: unknown;
719
719
  } | {
720
720
  ok: false;
721
721
  status: "rejected";
722
- source: "server" | "client" | "host";
722
+ source: "host" | "client" | "server";
723
723
  reason: string;
724
724
  message: string;
725
725
  details?: Record<string, unknown> | undefined;
@@ -751,12 +751,12 @@ declare const startGameRun: (input: StartGameRunOptions, attachment?: CurrentRoo
751
751
  result: {
752
752
  ok: true;
753
753
  status: "accepted";
754
- source: "client" | "host";
754
+ source: "host" | "client";
755
755
  result?: unknown;
756
756
  } | {
757
757
  ok: false;
758
758
  status: "rejected";
759
- source: "server" | "client" | "host";
759
+ source: "host" | "client" | "server";
760
760
  reason: string;
761
761
  message: string;
762
762
  details?: Record<string, unknown> | undefined;
@@ -807,12 +807,12 @@ declare const startGameRun: (input: StartGameRunOptions, attachment?: CurrentRoo
807
807
  result: {
808
808
  ok: true;
809
809
  status: "accepted";
810
- source: "client" | "host";
810
+ source: "host" | "client";
811
811
  result?: unknown;
812
812
  } | {
813
813
  ok: false;
814
814
  status: "rejected";
815
- source: "server" | "client" | "host";
815
+ source: "host" | "client" | "server";
816
816
  reason: string;
817
817
  message: string;
818
818
  details?: Record<string, unknown> | undefined;
@@ -923,11 +923,11 @@ declare const readGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
923
923
  target: {
924
924
  kind: "current";
925
925
  };
926
- cwd?: string | undefined;
927
926
  gameId?: string | undefined;
927
+ cwd?: string | undefined;
928
928
  intent?: string | undefined;
929
929
  };
930
- state: "setup" | "playing" | "starting" | "stopping" | "ended";
930
+ state: "starting" | "setup" | "playing" | "stopping" | "ended";
931
931
  startedAt: string;
932
932
  seats: {
933
933
  seatId: string;
@@ -993,7 +993,7 @@ declare const readGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
993
993
  input?: z.core.util.JSONType | undefined;
994
994
  })[];
995
995
  actions: string[];
996
- scope: "player" | "diagnostic";
996
+ scope: "diagnostic" | "player";
997
997
  includeImage: boolean;
998
998
  timing: {
999
999
  intervalMs: number;
@@ -1040,11 +1040,11 @@ declare const readGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
1040
1040
  } | undefined;
1041
1041
  decisionModel?: string | undefined;
1042
1042
  build?: {
1043
- version: 1;
1044
1043
  buildKey: string;
1045
1044
  sourceHash: string;
1046
1045
  lockfileHash: string;
1047
1046
  distHash: string;
1047
+ version: 1;
1048
1048
  toolchain: {
1049
1049
  node: string;
1050
1050
  pnpm: string;
@@ -1099,24 +1099,24 @@ declare const readGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
1099
1099
  at: string;
1100
1100
  seatId: string;
1101
1101
  intent: string | null;
1102
- source: "agent" | "creator" | "operator";
1102
+ source: "creator" | "agent" | "operator";
1103
1103
  }[] | undefined;
1104
1104
  evaluation?: {
1105
1105
  play?: {
1106
- status: "failed" | "pending" | "passed";
1106
+ status: "pending" | "passed" | "failed";
1107
1107
  message?: string | undefined;
1108
1108
  metrics?: Record<string, number> | undefined;
1109
1109
  } | undefined;
1110
1110
  final?: {
1111
- status: "failed" | "pending" | "passed";
1111
+ status: "pending" | "passed" | "failed";
1112
1112
  message?: string | undefined;
1113
1113
  metrics?: Record<string, number> | undefined;
1114
1114
  } | undefined;
1115
1115
  } | undefined;
1116
1116
  end?: {
1117
- reason: "error" | "runtime_replaced" | "failed" | "budget" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
1117
+ reason: "error" | "budget" | "failed" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "runtime_replaced" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
1118
1118
  message: string;
1119
- outcome?: "failed" | "passed" | "inconclusive" | undefined;
1119
+ outcome?: "passed" | "failed" | "inconclusive" | undefined;
1120
1120
  hostFault?: {
1121
1121
  name: string;
1122
1122
  message: string;
@@ -1146,12 +1146,12 @@ declare const readGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
1146
1146
  result: {
1147
1147
  ok: true;
1148
1148
  status: "accepted";
1149
- source: "client" | "host";
1149
+ source: "host" | "client";
1150
1150
  result?: unknown;
1151
1151
  } | {
1152
1152
  ok: false;
1153
1153
  status: "rejected";
1154
- source: "server" | "client" | "host";
1154
+ source: "host" | "client" | "server";
1155
1155
  reason: string;
1156
1156
  message: string;
1157
1157
  details?: Record<string, unknown> | undefined;
@@ -1183,12 +1183,12 @@ declare const readGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
1183
1183
  result: {
1184
1184
  ok: true;
1185
1185
  status: "accepted";
1186
- source: "client" | "host";
1186
+ source: "host" | "client";
1187
1187
  result?: unknown;
1188
1188
  } | {
1189
1189
  ok: false;
1190
1190
  status: "rejected";
1191
- source: "server" | "client" | "host";
1191
+ source: "host" | "client" | "server";
1192
1192
  reason: string;
1193
1193
  message: string;
1194
1194
  details?: Record<string, unknown> | undefined;
@@ -1239,12 +1239,12 @@ declare const readGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
1239
1239
  result: {
1240
1240
  ok: true;
1241
1241
  status: "accepted";
1242
- source: "client" | "host";
1242
+ source: "host" | "client";
1243
1243
  result?: unknown;
1244
1244
  } | {
1245
1245
  ok: false;
1246
1246
  status: "rejected";
1247
- source: "server" | "client" | "host";
1247
+ source: "host" | "client" | "server";
1248
1248
  reason: string;
1249
1249
  message: string;
1250
1250
  details?: Record<string, unknown> | undefined;
@@ -1355,11 +1355,11 @@ declare const waitGameRun: (input: z.input<typeof gameRunWaitSchema>) => Promise
1355
1355
  target: {
1356
1356
  kind: "current";
1357
1357
  };
1358
- cwd?: string | undefined;
1359
1358
  gameId?: string | undefined;
1359
+ cwd?: string | undefined;
1360
1360
  intent?: string | undefined;
1361
1361
  };
1362
- state: "setup" | "playing" | "starting" | "stopping" | "ended";
1362
+ state: "starting" | "setup" | "playing" | "stopping" | "ended";
1363
1363
  startedAt: string;
1364
1364
  seats: {
1365
1365
  seatId: string;
@@ -1425,7 +1425,7 @@ declare const waitGameRun: (input: z.input<typeof gameRunWaitSchema>) => Promise
1425
1425
  input?: z.core.util.JSONType | undefined;
1426
1426
  })[];
1427
1427
  actions: string[];
1428
- scope: "player" | "diagnostic";
1428
+ scope: "diagnostic" | "player";
1429
1429
  includeImage: boolean;
1430
1430
  timing: {
1431
1431
  intervalMs: number;
@@ -1472,11 +1472,11 @@ declare const waitGameRun: (input: z.input<typeof gameRunWaitSchema>) => Promise
1472
1472
  } | undefined;
1473
1473
  decisionModel?: string | undefined;
1474
1474
  build?: {
1475
- version: 1;
1476
1475
  buildKey: string;
1477
1476
  sourceHash: string;
1478
1477
  lockfileHash: string;
1479
1478
  distHash: string;
1479
+ version: 1;
1480
1480
  toolchain: {
1481
1481
  node: string;
1482
1482
  pnpm: string;
@@ -1531,24 +1531,24 @@ declare const waitGameRun: (input: z.input<typeof gameRunWaitSchema>) => Promise
1531
1531
  at: string;
1532
1532
  seatId: string;
1533
1533
  intent: string | null;
1534
- source: "agent" | "creator" | "operator";
1534
+ source: "creator" | "agent" | "operator";
1535
1535
  }[] | undefined;
1536
1536
  evaluation?: {
1537
1537
  play?: {
1538
- status: "failed" | "pending" | "passed";
1538
+ status: "pending" | "passed" | "failed";
1539
1539
  message?: string | undefined;
1540
1540
  metrics?: Record<string, number> | undefined;
1541
1541
  } | undefined;
1542
1542
  final?: {
1543
- status: "failed" | "pending" | "passed";
1543
+ status: "pending" | "passed" | "failed";
1544
1544
  message?: string | undefined;
1545
1545
  metrics?: Record<string, number> | undefined;
1546
1546
  } | undefined;
1547
1547
  } | undefined;
1548
1548
  end?: {
1549
- reason: "error" | "runtime_replaced" | "failed" | "budget" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
1549
+ reason: "error" | "budget" | "failed" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "runtime_replaced" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
1550
1550
  message: string;
1551
- outcome?: "failed" | "passed" | "inconclusive" | undefined;
1551
+ outcome?: "passed" | "failed" | "inconclusive" | undefined;
1552
1552
  hostFault?: {
1553
1553
  name: string;
1554
1554
  message: string;
@@ -1578,12 +1578,12 @@ declare const waitGameRun: (input: z.input<typeof gameRunWaitSchema>) => Promise
1578
1578
  result: {
1579
1579
  ok: true;
1580
1580
  status: "accepted";
1581
- source: "client" | "host";
1581
+ source: "host" | "client";
1582
1582
  result?: unknown;
1583
1583
  } | {
1584
1584
  ok: false;
1585
1585
  status: "rejected";
1586
- source: "server" | "client" | "host";
1586
+ source: "host" | "client" | "server";
1587
1587
  reason: string;
1588
1588
  message: string;
1589
1589
  details?: Record<string, unknown> | undefined;
@@ -1615,12 +1615,12 @@ declare const waitGameRun: (input: z.input<typeof gameRunWaitSchema>) => Promise
1615
1615
  result: {
1616
1616
  ok: true;
1617
1617
  status: "accepted";
1618
- source: "client" | "host";
1618
+ source: "host" | "client";
1619
1619
  result?: unknown;
1620
1620
  } | {
1621
1621
  ok: false;
1622
1622
  status: "rejected";
1623
- source: "server" | "client" | "host";
1623
+ source: "host" | "client" | "server";
1624
1624
  reason: string;
1625
1625
  message: string;
1626
1626
  details?: Record<string, unknown> | undefined;
@@ -1671,12 +1671,12 @@ declare const waitGameRun: (input: z.input<typeof gameRunWaitSchema>) => Promise
1671
1671
  result: {
1672
1672
  ok: true;
1673
1673
  status: "accepted";
1674
- source: "client" | "host";
1674
+ source: "host" | "client";
1675
1675
  result?: unknown;
1676
1676
  } | {
1677
1677
  ok: false;
1678
1678
  status: "rejected";
1679
- source: "server" | "client" | "host";
1679
+ source: "host" | "client" | "server";
1680
1680
  reason: string;
1681
1681
  message: string;
1682
1682
  details?: Record<string, unknown> | undefined;
@@ -1787,11 +1787,11 @@ declare const stopGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
1787
1787
  target: {
1788
1788
  kind: "current";
1789
1789
  };
1790
- cwd?: string | undefined;
1791
1790
  gameId?: string | undefined;
1791
+ cwd?: string | undefined;
1792
1792
  intent?: string | undefined;
1793
1793
  };
1794
- state: "setup" | "playing" | "starting" | "stopping" | "ended";
1794
+ state: "starting" | "setup" | "playing" | "stopping" | "ended";
1795
1795
  startedAt: string;
1796
1796
  seats: {
1797
1797
  seatId: string;
@@ -1857,7 +1857,7 @@ declare const stopGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
1857
1857
  input?: z.core.util.JSONType | undefined;
1858
1858
  })[];
1859
1859
  actions: string[];
1860
- scope: "player" | "diagnostic";
1860
+ scope: "diagnostic" | "player";
1861
1861
  includeImage: boolean;
1862
1862
  timing: {
1863
1863
  intervalMs: number;
@@ -1904,11 +1904,11 @@ declare const stopGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
1904
1904
  } | undefined;
1905
1905
  decisionModel?: string | undefined;
1906
1906
  build?: {
1907
- version: 1;
1908
1907
  buildKey: string;
1909
1908
  sourceHash: string;
1910
1909
  lockfileHash: string;
1911
1910
  distHash: string;
1911
+ version: 1;
1912
1912
  toolchain: {
1913
1913
  node: string;
1914
1914
  pnpm: string;
@@ -1963,24 +1963,24 @@ declare const stopGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
1963
1963
  at: string;
1964
1964
  seatId: string;
1965
1965
  intent: string | null;
1966
- source: "agent" | "creator" | "operator";
1966
+ source: "creator" | "agent" | "operator";
1967
1967
  }[] | undefined;
1968
1968
  evaluation?: {
1969
1969
  play?: {
1970
- status: "failed" | "pending" | "passed";
1970
+ status: "pending" | "passed" | "failed";
1971
1971
  message?: string | undefined;
1972
1972
  metrics?: Record<string, number> | undefined;
1973
1973
  } | undefined;
1974
1974
  final?: {
1975
- status: "failed" | "pending" | "passed";
1975
+ status: "pending" | "passed" | "failed";
1976
1976
  message?: string | undefined;
1977
1977
  metrics?: Record<string, number> | undefined;
1978
1978
  } | undefined;
1979
1979
  } | undefined;
1980
1980
  end?: {
1981
- reason: "error" | "runtime_replaced" | "failed" | "budget" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
1981
+ reason: "error" | "budget" | "failed" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "runtime_replaced" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
1982
1982
  message: string;
1983
- outcome?: "failed" | "passed" | "inconclusive" | undefined;
1983
+ outcome?: "passed" | "failed" | "inconclusive" | undefined;
1984
1984
  hostFault?: {
1985
1985
  name: string;
1986
1986
  message: string;
@@ -2010,12 +2010,12 @@ declare const stopGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
2010
2010
  result: {
2011
2011
  ok: true;
2012
2012
  status: "accepted";
2013
- source: "client" | "host";
2013
+ source: "host" | "client";
2014
2014
  result?: unknown;
2015
2015
  } | {
2016
2016
  ok: false;
2017
2017
  status: "rejected";
2018
- source: "server" | "client" | "host";
2018
+ source: "host" | "client" | "server";
2019
2019
  reason: string;
2020
2020
  message: string;
2021
2021
  details?: Record<string, unknown> | undefined;
@@ -2047,12 +2047,12 @@ declare const stopGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
2047
2047
  result: {
2048
2048
  ok: true;
2049
2049
  status: "accepted";
2050
- source: "client" | "host";
2050
+ source: "host" | "client";
2051
2051
  result?: unknown;
2052
2052
  } | {
2053
2053
  ok: false;
2054
2054
  status: "rejected";
2055
- source: "server" | "client" | "host";
2055
+ source: "host" | "client" | "server";
2056
2056
  reason: string;
2057
2057
  message: string;
2058
2058
  details?: Record<string, unknown> | undefined;
@@ -2103,12 +2103,12 @@ declare const stopGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Prom
2103
2103
  result: {
2104
2104
  ok: true;
2105
2105
  status: "accepted";
2106
- source: "client" | "host";
2106
+ source: "host" | "client";
2107
2107
  result?: unknown;
2108
2108
  } | {
2109
2109
  ok: false;
2110
2110
  status: "rejected";
2111
- source: "server" | "client" | "host";
2111
+ source: "host" | "client" | "server";
2112
2112
  reason: string;
2113
2113
  message: string;
2114
2114
  details?: Record<string, unknown> | undefined;
@@ -2219,11 +2219,11 @@ declare const steerGameRun: (input: GameRunSteerOptions) => Promise<{
2219
2219
  target: {
2220
2220
  kind: "current";
2221
2221
  };
2222
- cwd?: string | undefined;
2223
2222
  gameId?: string | undefined;
2223
+ cwd?: string | undefined;
2224
2224
  intent?: string | undefined;
2225
2225
  };
2226
- state: "setup" | "playing" | "starting" | "stopping" | "ended";
2226
+ state: "starting" | "setup" | "playing" | "stopping" | "ended";
2227
2227
  startedAt: string;
2228
2228
  seats: {
2229
2229
  seatId: string;
@@ -2289,7 +2289,7 @@ declare const steerGameRun: (input: GameRunSteerOptions) => Promise<{
2289
2289
  input?: z.core.util.JSONType | undefined;
2290
2290
  })[];
2291
2291
  actions: string[];
2292
- scope: "player" | "diagnostic";
2292
+ scope: "diagnostic" | "player";
2293
2293
  includeImage: boolean;
2294
2294
  timing: {
2295
2295
  intervalMs: number;
@@ -2336,11 +2336,11 @@ declare const steerGameRun: (input: GameRunSteerOptions) => Promise<{
2336
2336
  } | undefined;
2337
2337
  decisionModel?: string | undefined;
2338
2338
  build?: {
2339
- version: 1;
2340
2339
  buildKey: string;
2341
2340
  sourceHash: string;
2342
2341
  lockfileHash: string;
2343
2342
  distHash: string;
2343
+ version: 1;
2344
2344
  toolchain: {
2345
2345
  node: string;
2346
2346
  pnpm: string;
@@ -2395,24 +2395,24 @@ declare const steerGameRun: (input: GameRunSteerOptions) => Promise<{
2395
2395
  at: string;
2396
2396
  seatId: string;
2397
2397
  intent: string | null;
2398
- source: "agent" | "creator" | "operator";
2398
+ source: "creator" | "agent" | "operator";
2399
2399
  }[] | undefined;
2400
2400
  evaluation?: {
2401
2401
  play?: {
2402
- status: "failed" | "pending" | "passed";
2402
+ status: "pending" | "passed" | "failed";
2403
2403
  message?: string | undefined;
2404
2404
  metrics?: Record<string, number> | undefined;
2405
2405
  } | undefined;
2406
2406
  final?: {
2407
- status: "failed" | "pending" | "passed";
2407
+ status: "pending" | "passed" | "failed";
2408
2408
  message?: string | undefined;
2409
2409
  metrics?: Record<string, number> | undefined;
2410
2410
  } | undefined;
2411
2411
  } | undefined;
2412
2412
  end?: {
2413
- reason: "error" | "runtime_replaced" | "failed" | "budget" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
2413
+ reason: "error" | "budget" | "failed" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "runtime_replaced" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
2414
2414
  message: string;
2415
- outcome?: "failed" | "passed" | "inconclusive" | undefined;
2415
+ outcome?: "passed" | "failed" | "inconclusive" | undefined;
2416
2416
  hostFault?: {
2417
2417
  name: string;
2418
2418
  message: string;
@@ -2442,12 +2442,12 @@ declare const steerGameRun: (input: GameRunSteerOptions) => Promise<{
2442
2442
  result: {
2443
2443
  ok: true;
2444
2444
  status: "accepted";
2445
- source: "client" | "host";
2445
+ source: "host" | "client";
2446
2446
  result?: unknown;
2447
2447
  } | {
2448
2448
  ok: false;
2449
2449
  status: "rejected";
2450
- source: "server" | "client" | "host";
2450
+ source: "host" | "client" | "server";
2451
2451
  reason: string;
2452
2452
  message: string;
2453
2453
  details?: Record<string, unknown> | undefined;
@@ -2479,12 +2479,12 @@ declare const steerGameRun: (input: GameRunSteerOptions) => Promise<{
2479
2479
  result: {
2480
2480
  ok: true;
2481
2481
  status: "accepted";
2482
- source: "client" | "host";
2482
+ source: "host" | "client";
2483
2483
  result?: unknown;
2484
2484
  } | {
2485
2485
  ok: false;
2486
2486
  status: "rejected";
2487
- source: "server" | "client" | "host";
2487
+ source: "host" | "client" | "server";
2488
2488
  reason: string;
2489
2489
  message: string;
2490
2490
  details?: Record<string, unknown> | undefined;
@@ -2535,12 +2535,12 @@ declare const steerGameRun: (input: GameRunSteerOptions) => Promise<{
2535
2535
  result: {
2536
2536
  ok: true;
2537
2537
  status: "accepted";
2538
- source: "client" | "host";
2538
+ source: "host" | "client";
2539
2539
  result?: unknown;
2540
2540
  } | {
2541
2541
  ok: false;
2542
2542
  status: "rejected";
2543
- source: "server" | "client" | "host";
2543
+ source: "host" | "client" | "server";
2544
2544
  reason: string;
2545
2545
  message: string;
2546
2546
  details?: Record<string, unknown> | undefined;
@@ -2655,11 +2655,11 @@ declare const cancelGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Pr
2655
2655
  target: {
2656
2656
  kind: "current";
2657
2657
  };
2658
- cwd?: string | undefined;
2659
2658
  gameId?: string | undefined;
2659
+ cwd?: string | undefined;
2660
2660
  intent?: string | undefined;
2661
2661
  };
2662
- state: "setup" | "playing" | "starting" | "stopping" | "ended";
2662
+ state: "starting" | "setup" | "playing" | "stopping" | "ended";
2663
2663
  startedAt: string;
2664
2664
  seats: {
2665
2665
  seatId: string;
@@ -2725,7 +2725,7 @@ declare const cancelGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Pr
2725
2725
  input?: z.core.util.JSONType | undefined;
2726
2726
  })[];
2727
2727
  actions: string[];
2728
- scope: "player" | "diagnostic";
2728
+ scope: "diagnostic" | "player";
2729
2729
  includeImage: boolean;
2730
2730
  timing: {
2731
2731
  intervalMs: number;
@@ -2772,11 +2772,11 @@ declare const cancelGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Pr
2772
2772
  } | undefined;
2773
2773
  decisionModel?: string | undefined;
2774
2774
  build?: {
2775
- version: 1;
2776
2775
  buildKey: string;
2777
2776
  sourceHash: string;
2778
2777
  lockfileHash: string;
2779
2778
  distHash: string;
2779
+ version: 1;
2780
2780
  toolchain: {
2781
2781
  node: string;
2782
2782
  pnpm: string;
@@ -2831,24 +2831,24 @@ declare const cancelGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Pr
2831
2831
  at: string;
2832
2832
  seatId: string;
2833
2833
  intent: string | null;
2834
- source: "agent" | "creator" | "operator";
2834
+ source: "creator" | "agent" | "operator";
2835
2835
  }[] | undefined;
2836
2836
  evaluation?: {
2837
2837
  play?: {
2838
- status: "failed" | "pending" | "passed";
2838
+ status: "pending" | "passed" | "failed";
2839
2839
  message?: string | undefined;
2840
2840
  metrics?: Record<string, number> | undefined;
2841
2841
  } | undefined;
2842
2842
  final?: {
2843
- status: "failed" | "pending" | "passed";
2843
+ status: "pending" | "passed" | "failed";
2844
2844
  message?: string | undefined;
2845
2845
  metrics?: Record<string, number> | undefined;
2846
2846
  } | undefined;
2847
2847
  } | undefined;
2848
2848
  end?: {
2849
- reason: "error" | "runtime_replaced" | "failed" | "budget" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
2849
+ reason: "error" | "budget" | "failed" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "runtime_replaced" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
2850
2850
  message: string;
2851
- outcome?: "failed" | "passed" | "inconclusive" | undefined;
2851
+ outcome?: "passed" | "failed" | "inconclusive" | undefined;
2852
2852
  hostFault?: {
2853
2853
  name: string;
2854
2854
  message: string;
@@ -2878,12 +2878,12 @@ declare const cancelGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Pr
2878
2878
  result: {
2879
2879
  ok: true;
2880
2880
  status: "accepted";
2881
- source: "client" | "host";
2881
+ source: "host" | "client";
2882
2882
  result?: unknown;
2883
2883
  } | {
2884
2884
  ok: false;
2885
2885
  status: "rejected";
2886
- source: "server" | "client" | "host";
2886
+ source: "host" | "client" | "server";
2887
2887
  reason: string;
2888
2888
  message: string;
2889
2889
  details?: Record<string, unknown> | undefined;
@@ -2915,12 +2915,12 @@ declare const cancelGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Pr
2915
2915
  result: {
2916
2916
  ok: true;
2917
2917
  status: "accepted";
2918
- source: "client" | "host";
2918
+ source: "host" | "client";
2919
2919
  result?: unknown;
2920
2920
  } | {
2921
2921
  ok: false;
2922
2922
  status: "rejected";
2923
- source: "server" | "client" | "host";
2923
+ source: "host" | "client" | "server";
2924
2924
  reason: string;
2925
2925
  message: string;
2926
2926
  details?: Record<string, unknown> | undefined;
@@ -2971,12 +2971,12 @@ declare const cancelGameRun: (input: z.infer<typeof gameRunAddressSchema>) => Pr
2971
2971
  result: {
2972
2972
  ok: true;
2973
2973
  status: "accepted";
2974
- source: "client" | "host";
2974
+ source: "host" | "client";
2975
2975
  result?: unknown;
2976
2976
  } | {
2977
2977
  ok: false;
2978
2978
  status: "rejected";
2979
- source: "server" | "client" | "host";
2979
+ source: "host" | "client" | "server";
2980
2980
  reason: string;
2981
2981
  message: string;
2982
2982
  details?: Record<string, unknown> | undefined;
@@ -3091,11 +3091,11 @@ declare const listGameRuns: (input?: {
3091
3091
  target: {
3092
3092
  kind: "current";
3093
3093
  };
3094
- cwd?: string | undefined;
3095
3094
  gameId?: string | undefined;
3095
+ cwd?: string | undefined;
3096
3096
  intent?: string | undefined;
3097
3097
  };
3098
- state: "setup" | "playing" | "starting" | "stopping" | "ended";
3098
+ state: "starting" | "setup" | "playing" | "stopping" | "ended";
3099
3099
  startedAt: string;
3100
3100
  seats: {
3101
3101
  seatId: string;
@@ -3161,7 +3161,7 @@ declare const listGameRuns: (input?: {
3161
3161
  input?: z.core.util.JSONType | undefined;
3162
3162
  })[];
3163
3163
  actions: string[];
3164
- scope: "player" | "diagnostic";
3164
+ scope: "diagnostic" | "player";
3165
3165
  includeImage: boolean;
3166
3166
  timing: {
3167
3167
  intervalMs: number;
@@ -3208,11 +3208,11 @@ declare const listGameRuns: (input?: {
3208
3208
  } | undefined;
3209
3209
  decisionModel?: string | undefined;
3210
3210
  build?: {
3211
- version: 1;
3212
3211
  buildKey: string;
3213
3212
  sourceHash: string;
3214
3213
  lockfileHash: string;
3215
3214
  distHash: string;
3215
+ version: 1;
3216
3216
  toolchain: {
3217
3217
  node: string;
3218
3218
  pnpm: string;
@@ -3267,24 +3267,24 @@ declare const listGameRuns: (input?: {
3267
3267
  at: string;
3268
3268
  seatId: string;
3269
3269
  intent: string | null;
3270
- source: "agent" | "creator" | "operator";
3270
+ source: "creator" | "agent" | "operator";
3271
3271
  }[] | undefined;
3272
3272
  evaluation?: {
3273
3273
  play?: {
3274
- status: "failed" | "pending" | "passed";
3274
+ status: "pending" | "passed" | "failed";
3275
3275
  message?: string | undefined;
3276
3276
  metrics?: Record<string, number> | undefined;
3277
3277
  } | undefined;
3278
3278
  final?: {
3279
- status: "failed" | "pending" | "passed";
3279
+ status: "pending" | "passed" | "failed";
3280
3280
  message?: string | undefined;
3281
3281
  metrics?: Record<string, number> | undefined;
3282
3282
  } | undefined;
3283
3283
  } | undefined;
3284
3284
  end?: {
3285
- reason: "error" | "runtime_replaced" | "failed" | "budget" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
3285
+ reason: "error" | "budget" | "failed" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "runtime_replaced" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
3286
3286
  message: string;
3287
- outcome?: "failed" | "passed" | "inconclusive" | undefined;
3287
+ outcome?: "passed" | "failed" | "inconclusive" | undefined;
3288
3288
  hostFault?: {
3289
3289
  name: string;
3290
3290
  message: string;
@@ -3314,12 +3314,12 @@ declare const listGameRuns: (input?: {
3314
3314
  result: {
3315
3315
  ok: true;
3316
3316
  status: "accepted";
3317
- source: "client" | "host";
3317
+ source: "host" | "client";
3318
3318
  result?: unknown;
3319
3319
  } | {
3320
3320
  ok: false;
3321
3321
  status: "rejected";
3322
- source: "server" | "client" | "host";
3322
+ source: "host" | "client" | "server";
3323
3323
  reason: string;
3324
3324
  message: string;
3325
3325
  details?: Record<string, unknown> | undefined;
@@ -3351,12 +3351,12 @@ declare const listGameRuns: (input?: {
3351
3351
  result: {
3352
3352
  ok: true;
3353
3353
  status: "accepted";
3354
- source: "client" | "host";
3354
+ source: "host" | "client";
3355
3355
  result?: unknown;
3356
3356
  } | {
3357
3357
  ok: false;
3358
3358
  status: "rejected";
3359
- source: "server" | "client" | "host";
3359
+ source: "host" | "client" | "server";
3360
3360
  reason: string;
3361
3361
  message: string;
3362
3362
  details?: Record<string, unknown> | undefined;
@@ -3407,12 +3407,12 @@ declare const listGameRuns: (input?: {
3407
3407
  result: {
3408
3408
  ok: true;
3409
3409
  status: "accepted";
3410
- source: "client" | "host";
3410
+ source: "host" | "client";
3411
3411
  result?: unknown;
3412
3412
  } | {
3413
3413
  ok: false;
3414
3414
  status: "rejected";
3415
- source: "server" | "client" | "host";
3415
+ source: "host" | "client" | "server";
3416
3416
  reason: string;
3417
3417
  message: string;
3418
3418
  details?: Record<string, unknown> | undefined;
@@ -3525,11 +3525,11 @@ declare const stopAllGameRuns: (input?: {
3525
3525
  target: {
3526
3526
  kind: "current";
3527
3527
  };
3528
- cwd?: string | undefined;
3529
3528
  gameId?: string | undefined;
3529
+ cwd?: string | undefined;
3530
3530
  intent?: string | undefined;
3531
3531
  };
3532
- state: "setup" | "playing" | "starting" | "stopping" | "ended";
3532
+ state: "starting" | "setup" | "playing" | "stopping" | "ended";
3533
3533
  startedAt: string;
3534
3534
  seats: {
3535
3535
  seatId: string;
@@ -3595,7 +3595,7 @@ declare const stopAllGameRuns: (input?: {
3595
3595
  input?: z.core.util.JSONType | undefined;
3596
3596
  })[];
3597
3597
  actions: string[];
3598
- scope: "player" | "diagnostic";
3598
+ scope: "diagnostic" | "player";
3599
3599
  includeImage: boolean;
3600
3600
  timing: {
3601
3601
  intervalMs: number;
@@ -3642,11 +3642,11 @@ declare const stopAllGameRuns: (input?: {
3642
3642
  } | undefined;
3643
3643
  decisionModel?: string | undefined;
3644
3644
  build?: {
3645
- version: 1;
3646
3645
  buildKey: string;
3647
3646
  sourceHash: string;
3648
3647
  lockfileHash: string;
3649
3648
  distHash: string;
3649
+ version: 1;
3650
3650
  toolchain: {
3651
3651
  node: string;
3652
3652
  pnpm: string;
@@ -3701,24 +3701,24 @@ declare const stopAllGameRuns: (input?: {
3701
3701
  at: string;
3702
3702
  seatId: string;
3703
3703
  intent: string | null;
3704
- source: "agent" | "creator" | "operator";
3704
+ source: "creator" | "agent" | "operator";
3705
3705
  }[] | undefined;
3706
3706
  evaluation?: {
3707
3707
  play?: {
3708
- status: "failed" | "pending" | "passed";
3708
+ status: "pending" | "passed" | "failed";
3709
3709
  message?: string | undefined;
3710
3710
  metrics?: Record<string, number> | undefined;
3711
3711
  } | undefined;
3712
3712
  final?: {
3713
- status: "failed" | "pending" | "passed";
3713
+ status: "pending" | "passed" | "failed";
3714
3714
  message?: string | undefined;
3715
3715
  metrics?: Record<string, number> | undefined;
3716
3716
  } | undefined;
3717
3717
  } | undefined;
3718
3718
  end?: {
3719
- reason: "error" | "runtime_replaced" | "failed" | "budget" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
3719
+ reason: "error" | "budget" | "failed" | "completed" | "safety_deadline" | "stopped" | "owner_stopping" | "owner_lost" | "session_expired" | "runtime_replaced" | "policy_unresponsive" | "decision_latency" | "host_not_advancing" | "seat_replaced" | "untested_seat" | "evaluator_unresponsive" | "trace_budget";
3720
3720
  message: string;
3721
- outcome?: "failed" | "passed" | "inconclusive" | undefined;
3721
+ outcome?: "passed" | "failed" | "inconclusive" | undefined;
3722
3722
  hostFault?: {
3723
3723
  name: string;
3724
3724
  message: string;
@@ -3748,12 +3748,12 @@ declare const stopAllGameRuns: (input?: {
3748
3748
  result: {
3749
3749
  ok: true;
3750
3750
  status: "accepted";
3751
- source: "client" | "host";
3751
+ source: "host" | "client";
3752
3752
  result?: unknown;
3753
3753
  } | {
3754
3754
  ok: false;
3755
3755
  status: "rejected";
3756
- source: "server" | "client" | "host";
3756
+ source: "host" | "client" | "server";
3757
3757
  reason: string;
3758
3758
  message: string;
3759
3759
  details?: Record<string, unknown> | undefined;
@@ -3785,12 +3785,12 @@ declare const stopAllGameRuns: (input?: {
3785
3785
  result: {
3786
3786
  ok: true;
3787
3787
  status: "accepted";
3788
- source: "client" | "host";
3788
+ source: "host" | "client";
3789
3789
  result?: unknown;
3790
3790
  } | {
3791
3791
  ok: false;
3792
3792
  status: "rejected";
3793
- source: "server" | "client" | "host";
3793
+ source: "host" | "client" | "server";
3794
3794
  reason: string;
3795
3795
  message: string;
3796
3796
  details?: Record<string, unknown> | undefined;
@@ -3841,12 +3841,12 @@ declare const stopAllGameRuns: (input?: {
3841
3841
  result: {
3842
3842
  ok: true;
3843
3843
  status: "accepted";
3844
- source: "client" | "host";
3844
+ source: "host" | "client";
3845
3845
  result?: unknown;
3846
3846
  } | {
3847
3847
  ok: false;
3848
3848
  status: "rejected";
3849
- source: "server" | "client" | "host";
3849
+ source: "host" | "client" | "server";
3850
3850
  reason: string;
3851
3851
  message: string;
3852
3852
  details?: Record<string, unknown> | undefined;