@kitman-sh/sdk 0.10.84 → 0.10.86

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.
@@ -4,7 +4,7 @@ import {
4
4
  KitDigest,
5
5
  AgentDeclaration,
6
6
  KitDeclarations
7
- } from "../chunk-cqknxyv9.js";
7
+ } from "../chunk-x8gnbtas.js";
8
8
  import {
9
9
  digestSha256,
10
10
  digestSha512,
@@ -13,7 +13,7 @@ import {
13
13
  RunnerRpcProtocolVersion,
14
14
  describeFlag2,
15
15
  Described2
16
- } from "../chunk-3pz068kn.js";
16
+ } from "../chunk-41m1ayrn.js";
17
17
 
18
18
  // packages/core/src/json.ts
19
19
  import * as Schema from "effect/Schema";
@@ -35,7 +35,7 @@ import {
35
35
  executeLoop2,
36
36
  LoopCheckError2,
37
37
  checkLoop2
38
- } from "./chunk-cqknxyv9.js";
38
+ } from "./chunk-x8gnbtas.js";
39
39
  // packages/core/src/agent-environment.ts
40
40
  import * as Schema from "effect/Schema";
41
41
  var AgentEnvironmentPolicy = Schema.Union([Schema.Literal("recommended"), Schema.Literal("required")]);
@@ -2338,7 +2338,8 @@ var RunDisplayStates = [
2338
2338
  var RunDisplay = Schema13.Struct({
2339
2339
  state: Schema13.Literals(RunDisplayStates),
2340
2340
  retried: Schema13.Boolean,
2341
- summary: Schema13.optionalKey(Schema13.String)
2341
+ summary: Schema13.optionalKey(Schema13.String),
2342
+ childQuestion: Schema13.optionalKey(Schema13.Struct({ runId: Id, name: Schema13.String, questionId: Id, prompt: Schema13.String }))
2342
2343
  });
2343
2344
  var RunGraphNodeKinds = ["agent", "check", "question", "child", "wait", "activity"];
2344
2345
  var RunGraphNode = Schema13.Struct({
@@ -179,7 +179,7 @@ import {
179
179
  syncBase2,
180
180
  Continuing2,
181
181
  continuingBrief2
182
- } from "../chunk-cqknxyv9.js";
182
+ } from "../chunk-x8gnbtas.js";
183
183
  export {
184
184
  AlertTaskActivity2 as AlertTaskActivity,
185
185
  AlertTaskRequest2 as AlertTaskRequest,
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"../chunk-cqknxyv9.js";
2
+ import"../chunk-x8gnbtas.js";
3
3
  import {
4
4
  JournalWriteFailed2,
5
5
  refusedStep2,
@@ -17,7 +17,7 @@ import {
17
17
  networkGuard2,
18
18
  carriedKits2,
19
19
  runKit2
20
- } from "../chunk-3pz068kn.js";
20
+ } from "../chunk-41m1ayrn.js";
21
21
  export {
22
22
  Described2 as Described,
23
23
  JournalWriteFailed2 as JournalWriteFailed,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/sdk",
3
- "version": "0.10.84",
3
+ "version": "0.10.86",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "exports": {
@@ -2366,6 +2366,13 @@ export declare const RunDisplay: Schema.Struct<{
2366
2366
  readonly retried: Schema.Boolean;
2367
2367
  /** What now: the open Question, the failure, what went missing, or the Steps it is in. */
2368
2368
  readonly summary: Schema.optionalKey<Schema.String>;
2369
+ /** The open Question of a Run below it that waits on a person, when the Run has none of its own. */
2370
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
2371
+ readonly runId: Schema.String;
2372
+ readonly name: Schema.String;
2373
+ readonly questionId: Schema.String;
2374
+ readonly prompt: Schema.String;
2375
+ }>>;
2369
2376
  }>;
2370
2377
  export type RunDisplay = (typeof RunDisplay)['Type'];
2371
2378
  export declare const RunGraphNodeKinds: readonly ['agent', 'check', 'question', 'child', 'wait', 'activity'];
@@ -2402,6 +2409,13 @@ export declare const RunGraphNode: Schema.Struct<{
2402
2409
  readonly retried: Schema.Boolean;
2403
2410
  /** What now: the open Question, the failure, what went missing, or the Steps it is in. */
2404
2411
  readonly summary: Schema.optionalKey<Schema.String>;
2412
+ /** The open Question of a Run below it that waits on a person, when the Run has none of its own. */
2413
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
2414
+ readonly runId: Schema.String;
2415
+ readonly name: Schema.String;
2416
+ readonly questionId: Schema.String;
2417
+ readonly prompt: Schema.String;
2418
+ }>>;
2405
2419
  }>;
2406
2420
  readonly task: Schema.optionalKey<Schema.Struct<{
2407
2421
  readonly id: Schema.String;
@@ -2445,6 +2459,13 @@ export declare const RunGraph: Schema.Struct<{
2445
2459
  readonly retried: Schema.Boolean;
2446
2460
  /** What now: the open Question, the failure, what went missing, or the Steps it is in. */
2447
2461
  readonly summary: Schema.optionalKey<Schema.String>;
2462
+ /** The open Question of a Run below it that waits on a person, when the Run has none of its own. */
2463
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
2464
+ readonly runId: Schema.String;
2465
+ readonly name: Schema.String;
2466
+ readonly questionId: Schema.String;
2467
+ readonly prompt: Schema.String;
2468
+ }>>;
2448
2469
  }>;
2449
2470
  readonly task: Schema.optionalKey<Schema.Struct<{
2450
2471
  readonly id: Schema.String;
@@ -2661,6 +2682,13 @@ export declare const RunShow: Schema.Struct<{
2661
2682
  readonly retried: Schema.Boolean;
2662
2683
  /** What now: the open Question, the failure, what went missing, or the Steps it is in. */
2663
2684
  readonly summary: Schema.optionalKey<Schema.String>;
2685
+ /** The open Question of a Run below it that waits on a person, when the Run has none of its own. */
2686
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
2687
+ readonly runId: Schema.String;
2688
+ readonly name: Schema.String;
2689
+ readonly questionId: Schema.String;
2690
+ readonly prompt: Schema.String;
2691
+ }>>;
2664
2692
  }>;
2665
2693
  readonly graph: Schema.Struct<{
2666
2694
  /** The Steps the Run reached together, left to right. */
@@ -2696,6 +2724,13 @@ export declare const RunShow: Schema.Struct<{
2696
2724
  readonly retried: Schema.Boolean;
2697
2725
  /** What now: the open Question, the failure, what went missing, or the Steps it is in. */
2698
2726
  readonly summary: Schema.optionalKey<Schema.String>;
2727
+ /** The open Question of a Run below it that waits on a person, when the Run has none of its own. */
2728
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
2729
+ readonly runId: Schema.String;
2730
+ readonly name: Schema.String;
2731
+ readonly questionId: Schema.String;
2732
+ readonly prompt: Schema.String;
2733
+ }>>;
2699
2734
  }>;
2700
2735
  readonly task: Schema.optionalKey<Schema.Struct<{
2701
2736
  readonly id: Schema.String;
@@ -3257,6 +3292,13 @@ export declare const RunListItem: Schema.Struct<{
3257
3292
  readonly retried: Schema.Boolean;
3258
3293
  /** What now: the open Question, the failure, what went missing, or the Steps it is in. */
3259
3294
  readonly summary: Schema.optionalKey<Schema.String>;
3295
+ /** The open Question of a Run below it that waits on a person, when the Run has none of its own. */
3296
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
3297
+ readonly runId: Schema.String;
3298
+ readonly name: Schema.String;
3299
+ readonly questionId: Schema.String;
3300
+ readonly prompt: Schema.String;
3301
+ }>>;
3260
3302
  }>;
3261
3303
  /** The worst node status of each Run graph column. */
3262
3304
  readonly miniGraph: Schema.$Array<Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>>;
@@ -3437,6 +3479,13 @@ export declare const RunList: Schema.Struct<{
3437
3479
  readonly retried: Schema.Boolean;
3438
3480
  /** What now: the open Question, the failure, what went missing, or the Steps it is in. */
3439
3481
  readonly summary: Schema.optionalKey<Schema.String>;
3482
+ /** The open Question of a Run below it that waits on a person, when the Run has none of its own. */
3483
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
3484
+ readonly runId: Schema.String;
3485
+ readonly name: Schema.String;
3486
+ readonly questionId: Schema.String;
3487
+ readonly prompt: Schema.String;
3488
+ }>>;
3440
3489
  }>;
3441
3490
  /** The worst node status of each Run graph column. */
3442
3491
  readonly miniGraph: Schema.$Array<Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>>;
@@ -182,6 +182,12 @@ declare const MyTeamsRun: Schema.Struct<{
182
182
  readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
183
183
  readonly retried: Schema.Boolean;
184
184
  readonly summary: Schema.optionalKey<Schema.String>;
185
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
186
+ readonly runId: Schema.String;
187
+ readonly name: Schema.String;
188
+ readonly questionId: Schema.String;
189
+ readonly prompt: Schema.String;
190
+ }>>;
185
191
  }>;
186
192
  }>;
187
193
  export declare const MyTeamsCard: Schema.Struct<{
@@ -357,6 +363,12 @@ export declare const MyTeamsCard: Schema.Struct<{
357
363
  readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
358
364
  readonly retried: Schema.Boolean;
359
365
  readonly summary: Schema.optionalKey<Schema.String>;
366
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
367
+ readonly runId: Schema.String;
368
+ readonly name: Schema.String;
369
+ readonly questionId: Schema.String;
370
+ readonly prompt: Schema.String;
371
+ }>>;
360
372
  }>;
361
373
  }>>;
362
374
  readonly questions: Schema.$Array<Schema.Struct<{
@@ -584,6 +596,12 @@ export declare const MyTeams: Schema.Struct<{
584
596
  readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
585
597
  readonly retried: Schema.Boolean;
586
598
  readonly summary: Schema.optionalKey<Schema.String>;
599
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
600
+ readonly runId: Schema.String;
601
+ readonly name: Schema.String;
602
+ readonly questionId: Schema.String;
603
+ readonly prompt: Schema.String;
604
+ }>>;
587
605
  }>;
588
606
  }>>;
589
607
  readonly questions: Schema.$Array<Schema.Struct<{
@@ -809,6 +827,12 @@ export declare const MyTeams: Schema.Struct<{
809
827
  readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
810
828
  readonly retried: Schema.Boolean;
811
829
  readonly summary: Schema.optionalKey<Schema.String>;
830
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
831
+ readonly runId: Schema.String;
832
+ readonly name: Schema.String;
833
+ readonly questionId: Schema.String;
834
+ readonly prompt: Schema.String;
835
+ }>>;
812
836
  }>;
813
837
  }>>;
814
838
  readonly questions: Schema.$Array<Schema.Struct<{
@@ -1034,6 +1058,12 @@ export declare const MyTeams: Schema.Struct<{
1034
1058
  readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
1035
1059
  readonly retried: Schema.Boolean;
1036
1060
  readonly summary: Schema.optionalKey<Schema.String>;
1061
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
1062
+ readonly runId: Schema.String;
1063
+ readonly name: Schema.String;
1064
+ readonly questionId: Schema.String;
1065
+ readonly prompt: Schema.String;
1066
+ }>>;
1037
1067
  }>;
1038
1068
  }>>;
1039
1069
  readonly questions: Schema.$Array<Schema.Struct<{
@@ -1259,6 +1289,12 @@ export declare const MyTeams: Schema.Struct<{
1259
1289
  readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
1260
1290
  readonly retried: Schema.Boolean;
1261
1291
  readonly summary: Schema.optionalKey<Schema.String>;
1292
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
1293
+ readonly runId: Schema.String;
1294
+ readonly name: Schema.String;
1295
+ readonly questionId: Schema.String;
1296
+ readonly prompt: Schema.String;
1297
+ }>>;
1262
1298
  }>;
1263
1299
  }>>;
1264
1300
  readonly questions: Schema.$Array<Schema.Struct<{
@@ -1469,6 +1505,12 @@ export declare const TaskRuns: Schema.Struct<{
1469
1505
  readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
1470
1506
  readonly retried: Schema.Boolean;
1471
1507
  readonly summary: Schema.optionalKey<Schema.String>;
1508
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
1509
+ readonly runId: Schema.String;
1510
+ readonly name: Schema.String;
1511
+ readonly questionId: Schema.String;
1512
+ readonly prompt: Schema.String;
1513
+ }>>;
1472
1514
  }>;
1473
1515
  /** The worst node status of each Run graph column, as the Runs list draws it. */
1474
1516
  readonly miniGraph: Schema.$Array<Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>>;
@@ -1542,6 +1584,12 @@ export declare const TaskAgent: Schema.Struct<{
1542
1584
  readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
1543
1585
  readonly retried: Schema.Boolean;
1544
1586
  readonly summary: Schema.optionalKey<Schema.String>;
1587
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
1588
+ readonly runId: Schema.String;
1589
+ readonly name: Schema.String;
1590
+ readonly questionId: Schema.String;
1591
+ readonly prompt: Schema.String;
1592
+ }>>;
1545
1593
  }>;
1546
1594
  }>;
1547
1595
  export type TaskAgent = (typeof TaskAgent)['Type'];
@@ -1562,6 +1610,12 @@ export declare const LatestTaskRuns: Schema.Struct<{
1562
1610
  readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
1563
1611
  readonly retried: Schema.Boolean;
1564
1612
  readonly summary: Schema.optionalKey<Schema.String>;
1613
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
1614
+ readonly runId: Schema.String;
1615
+ readonly name: Schema.String;
1616
+ readonly questionId: Schema.String;
1617
+ readonly prompt: Schema.String;
1618
+ }>>;
1565
1619
  }>;
1566
1620
  readonly agent: Schema.optionalKey<Schema.Struct<{
1567
1621
  readonly runId: Schema.String;
@@ -1573,6 +1627,12 @@ export declare const LatestTaskRuns: Schema.Struct<{
1573
1627
  readonly state: Schema.Literals<readonly ["queued", "running", "needs_you", "blocked", "failed", "stopped", "succeeded", "partial"]>;
1574
1628
  readonly retried: Schema.Boolean;
1575
1629
  readonly summary: Schema.optionalKey<Schema.String>;
1630
+ readonly childQuestion: Schema.optionalKey<Schema.Struct<{
1631
+ readonly runId: Schema.String;
1632
+ readonly name: Schema.String;
1633
+ readonly questionId: Schema.String;
1634
+ readonly prompt: Schema.String;
1635
+ }>>;
1576
1636
  }>;
1577
1637
  }>>;
1578
1638
  }>>;
@@ -1,4 +1,4 @@
1
- import type { Run, RunDisplay, RunDisplayState, RunShow, RunWaiting } from './loop';
1
+ import type { Question, Run, RunDisplay, RunDisplayState, RunShow, RunWaiting } from './loop';
2
2
  export type RunDisplayInput = Pick<RunShow, 'run' | 'steps' | 'questions' | 'children' | 'waiting'> & {
3
3
  /** A Runner has leased one of the Run's orchestration Work Units. */
4
4
  readonly claimed: boolean;
@@ -6,6 +6,14 @@ export type RunDisplayInput = Pick<RunShow, 'run' | 'steps' | 'questions' | 'chi
6
6
  readonly runnerOnline: boolean;
7
7
  /** The `verify` Steps whose verification failed. */
8
8
  readonly failedChecks: readonly string[];
9
+ /** Open Questions of unsettled Runs below it, reached through unsettled Runs, oldest first. */
10
+ readonly questionsBelow?: readonly QuestionBelow[];
11
+ };
12
+ /** An open Question of a Run below another, and that Run's name from the top, such as `build:x › review`. */
13
+ export type QuestionBelow = {
14
+ readonly runId: string;
15
+ readonly name: string;
16
+ readonly question: Pick<Question, 'id' | 'prompt'>;
9
17
  };
10
18
  export declare const runDisplayLabels: Record<RunDisplayState, string>;
11
19
  /** A resource the Run waits its turn for, and who holds it. */