@kitman-sh/sdk 0.10.77 → 0.10.78

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-g7x3s4x6.js";
7
+ } from "../chunk-r609bz8q.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-3qttynnn.js";
16
+ } from "../chunk-7tbysqtf.js";
17
17
 
18
18
  // packages/core/src/json.ts
19
19
  import * as Schema from "effect/Schema";
@@ -33,7 +33,7 @@ import {
33
33
  executeLoop2,
34
34
  LoopCheckError2,
35
35
  checkLoop2
36
- } from "./chunk-g7x3s4x6.js";
36
+ } from "./chunk-r609bz8q.js";
37
37
  // packages/core/src/agent-environment.ts
38
38
  import * as Schema from "effect/Schema";
39
39
  var AgentEnvironmentPolicy = Schema.Union([Schema.Literal("recommended"), Schema.Literal("required")]);
@@ -1057,6 +1057,8 @@ class RunnerCapabilityRpcs extends RpcGroup.make(Rpc.make("PutQuestion", {
1057
1057
  runnerChecks: Schema7.optionalKey(Schema7.Array(Schema7.String)),
1058
1058
  approved: Schema7.optionalKey(Schema7.String),
1059
1059
  repository: Schema7.optionalKey(Schema7.String),
1060
+ conflicts: Schema7.optionalKey(Schema7.Boolean),
1061
+ needsRebase: Schema7.optionalKey(Schema7.Boolean),
1060
1062
  target: Schema7.optionalKey(Schema7.Struct({
1061
1063
  branch: Schema7.String,
1062
1064
  head: Schema7.String,
@@ -1552,6 +1552,12 @@ var LoopSafeReferenceString = Schema12.String.check(Schema12.isMinLength(1), Sch
1552
1552
  var LoopSafeInternalReferenceString = Schema12.String.check(Schema12.isMinLength(1), Schema12.isMaxLength(240), Schema12.isPattern(new RegExp(LoopSafeInternalReferencePattern, "u")));
1553
1553
  var LoopSafeText = Schema12.String.check(Schema12.isMaxLength(4000), Schema12.isPattern(new RegExp(`^(?![\\s\\S]*(?:${LoopCredentialContentPattern}|[A-Za-z][A-Za-z0-9+.-]*://(?:[^\\s/?#]*@|[^\\s?#]*\\?)))[\\s\\S]*$`, "u")));
1554
1554
  var recommendedDefault = (recommended) => recommended !== undefined && Schema12.is(LoopSafeText)(recommended) ? recommended : undefined;
1555
+ var unansweredQuestionLead = "Nobody answers in full auto, and the agent's Question has no answer to take";
1556
+ var unansweredQuestionReason2 = (prompt) => {
1557
+ const reason = `${unansweredQuestionLead}: ${prompt}`.slice(0, 4000);
1558
+ return Schema12.is(LoopSafeText)(reason) ? reason : `${unansweredQuestionLead}; its text is on the Run`;
1559
+ };
1560
+ var isUnansweredQuestion2 = (reason) => reason.startsWith(unansweredQuestionLead);
1555
1561
  var QuestionText = Schema12.String;
1556
1562
  var LoopSafeOutputDataString = Schema12.String.check(Schema12.isMaxLength(4000), Schema12.isPattern(new RegExp(LoopSafeInternalReferencePattern, "u")));
1557
1563
  var LoopSafePackageName = Schema12.String.check(Schema12.isMinLength(1), Schema12.isMaxLength(200), Schema12.isPattern(new RegExp(LoopSafeReferencePattern, "u")));
@@ -3285,6 +3291,8 @@ var PipelineStatus2 = Schema19.Struct({
3285
3291
  runnerChecks: Schema19.optionalKey(Schema19.Array(Schema19.String)),
3286
3292
  approved: Schema19.optionalKey(Schema19.String),
3287
3293
  repository: Schema19.optionalKey(Schema19.String),
3294
+ conflicts: Schema19.optionalKey(Schema19.Boolean),
3295
+ needsRebase: Schema19.optionalKey(Schema19.Boolean),
3288
3296
  target: Schema19.optionalKey(Schema19.Struct({ branch: Schema19.String, head: Schema19.String, jobs: Schema19.Array(PipelineJob2) }))
3289
3297
  });
3290
3298
  var ReviewThread2 = Schema19.Struct({
@@ -4520,4 +4528,4 @@ var continuingBrief2 = (continuing) => [
4520
4528
  "The ChangeRequest's description lists what was left unsettled; settle those first."
4521
4529
  ].join(`
4522
4530
  `);
4523
- export { Numeric, isWholeNumber, guard, Id, Timestamp, canonicalJson, KitDigest, LoopCapabilities2, LoopManifest, AgentDeclaration, KitDeclarations, LoopOutcome2, capabilitiesOf2, defineLoop2, ManifestInvalid2, jsonSchemaOf2, loopManifest2, questionAdvice, EvidenceCheck2, VerifyResult2, OutcomeTable2, failsOn2, testsNotRunReasons2, evidenceGate2, StepFailed2, OutputInvalid2, QuestionRefused2, WaitTimedOut2, ChangeRequestClosed2, ChildFailed2, CapabilityDenied2, DuplicateStep2, InputInvalid2, LoopEvent2, LoopRun2, LoopHost2, agentDeferredNamed2, agentWorkDeferred2, syncDeferred2, answerDeferred2, childDeferred2, eventDeferred2, verifyDeferred2, takeStep2, launch2, agentWork2, agentWorkAs2, agentWorkOnce2, ask2, call2, waitFor2, verify2, suggestVerification2, PlanTicket2, PlanTickets2, BlockingCycle2, planWaves2, ChangeRequestRequest2, ChangeRequestResult2, WriteBackMilestones2, WriteBackRequest2, RunFile2, FileRequest2, ArtifactRequest2, ArtifactResult2, NoteRequest2, CreateTasksRequest2, CreateTasksResult2, AlertTaskRequest2, AlertTaskResult2, IntegrationBranchRequest2, IntegrationBranch2, MergeChangeRequestRequest2, MergeResult2, ApproveChangeRequestRequest2, ApproveChangeRequestResult2, CloseChangeRequestRequest2, CloseChangeRequestResult2, RerunPipelineRequest2, RerunPipelineResult2, ReportPipelineRequest2, ReportPipelineResult2, CommentRequest2, ReleaseRequest2, ReleaseResult2, ChangeRequestReadRequest2, PipelineJob2, PipelineStatus2, ReviewThread2, ReviewThreads2, OpenChangeRequestsRequest2, OpenChangeRequest2, OpenChangeRequests2, OwnChangeRequest2, OwnChangeRequests2, TranscriptPoint2, TranscriptsRequest2, TranscriptsResult2, ProposeRequest2, ProposeResult2, ProjectActivityRequest2, ProjectActivityResult2, DraftUpdateRequest2, DraftUpdateResult2, ChangeRequestActivity2, WriteBackActivity2, ArtifactActivity2, FileActivity2, NoteActivity2, CommentActivity2, CreateTasksActivity2, AlertTaskActivity2, IntegrationBranchActivity2, MergeChangeRequestActivity2, ReleaseActivity2, TranscriptsActivity2, ProposeActivity2, ProjectActivityActivity2, DraftUpdateActivity2, ChangeRequestReadActivity2, changeRequest2, writeBack2, artifact2, file2, note2, comment2, createTasks2, alertTask2, integrationBranch2, mergeChangeRequest2, approveChangeRequest2, closeChangeRequest2, pipelineMoved2, rerunPipeline2, reportPipeline2, release2, transcripts2, propose2, projectActivity2, pipelineStatus2, reviewThreads2, openChangeRequests2, ownChangeRequests2, draftUpdate2, ResourceName, ClaimResult2, claimDeferred2, letGoDeferred2, claim2, letGo2, WorkUnitRepoBinding, ProgramWorkUnit, CheckName2, ApprovedCheck, MeasurePlan2, WorkUnitClaimResult, WorkUnitClaimInput, WorkUnitHeartbeatInput, WorkUnitHeartbeatResult, WorkUnitReleaseInput, WorkUnitCompletion, MetricStats2, MeasureVerdict2, Measurement2, measureDeferred2, noiseFloor2, judgeMeasurement2, measure2, LoopJournal2, ScriptedFailure2, scriptedFailure2, loopWorkflow2, executeLoop2, testLoop2, Severity2, Finding2, MergedFinding2, Rebuttal2, RebuttalVerdict2, ScopeJudgement2, isBlocking2, mergeFindings2, splitDisputed2, settleRound2, rallyStop2, CheckFailed2, StepNamedTwice2, ReplayDiverged2, LoopCheckError2, checkLoop2, defineKit2, BaseSync2, syncBase2, Continuing2, continuingBrief2 };
4531
+ export { Numeric, isWholeNumber, guard, Id, Timestamp, canonicalJson, KitDigest, unansweredQuestionReason2, isUnansweredQuestion2, LoopCapabilities2, LoopManifest, AgentDeclaration, KitDeclarations, LoopOutcome2, capabilitiesOf2, defineLoop2, ManifestInvalid2, jsonSchemaOf2, loopManifest2, questionAdvice, EvidenceCheck2, VerifyResult2, OutcomeTable2, failsOn2, testsNotRunReasons2, evidenceGate2, StepFailed2, OutputInvalid2, QuestionRefused2, WaitTimedOut2, ChangeRequestClosed2, ChildFailed2, CapabilityDenied2, DuplicateStep2, InputInvalid2, LoopEvent2, LoopRun2, LoopHost2, agentDeferredNamed2, agentWorkDeferred2, syncDeferred2, answerDeferred2, childDeferred2, eventDeferred2, verifyDeferred2, takeStep2, launch2, agentWork2, agentWorkAs2, agentWorkOnce2, ask2, call2, waitFor2, verify2, suggestVerification2, PlanTicket2, PlanTickets2, BlockingCycle2, planWaves2, ChangeRequestRequest2, ChangeRequestResult2, WriteBackMilestones2, WriteBackRequest2, RunFile2, FileRequest2, ArtifactRequest2, ArtifactResult2, NoteRequest2, CreateTasksRequest2, CreateTasksResult2, AlertTaskRequest2, AlertTaskResult2, IntegrationBranchRequest2, IntegrationBranch2, MergeChangeRequestRequest2, MergeResult2, ApproveChangeRequestRequest2, ApproveChangeRequestResult2, CloseChangeRequestRequest2, CloseChangeRequestResult2, RerunPipelineRequest2, RerunPipelineResult2, ReportPipelineRequest2, ReportPipelineResult2, CommentRequest2, ReleaseRequest2, ReleaseResult2, ChangeRequestReadRequest2, PipelineJob2, PipelineStatus2, ReviewThread2, ReviewThreads2, OpenChangeRequestsRequest2, OpenChangeRequest2, OpenChangeRequests2, OwnChangeRequest2, OwnChangeRequests2, TranscriptPoint2, TranscriptsRequest2, TranscriptsResult2, ProposeRequest2, ProposeResult2, ProjectActivityRequest2, ProjectActivityResult2, DraftUpdateRequest2, DraftUpdateResult2, ChangeRequestActivity2, WriteBackActivity2, ArtifactActivity2, FileActivity2, NoteActivity2, CommentActivity2, CreateTasksActivity2, AlertTaskActivity2, IntegrationBranchActivity2, MergeChangeRequestActivity2, ReleaseActivity2, TranscriptsActivity2, ProposeActivity2, ProjectActivityActivity2, DraftUpdateActivity2, ChangeRequestReadActivity2, changeRequest2, writeBack2, artifact2, file2, note2, comment2, createTasks2, alertTask2, integrationBranch2, mergeChangeRequest2, approveChangeRequest2, closeChangeRequest2, pipelineMoved2, rerunPipeline2, reportPipeline2, release2, transcripts2, propose2, projectActivity2, pipelineStatus2, reviewThreads2, openChangeRequests2, ownChangeRequests2, draftUpdate2, ResourceName, ClaimResult2, claimDeferred2, letGoDeferred2, claim2, letGo2, WorkUnitRepoBinding, ProgramWorkUnit, CheckName2, ApprovedCheck, MeasurePlan2, WorkUnitClaimResult, WorkUnitClaimInput, WorkUnitHeartbeatInput, WorkUnitHeartbeatResult, WorkUnitReleaseInput, WorkUnitCompletion, MetricStats2, MeasureVerdict2, Measurement2, measureDeferred2, noiseFloor2, judgeMeasurement2, measure2, LoopJournal2, ScriptedFailure2, scriptedFailure2, loopWorkflow2, executeLoop2, testLoop2, Severity2, Finding2, MergedFinding2, Rebuttal2, RebuttalVerdict2, ScopeJudgement2, isBlocking2, mergeFindings2, splitDisputed2, settleRound2, rallyStop2, CheckFailed2, StepNamedTwice2, ReplayDiverged2, LoopCheckError2, checkLoop2, defineKit2, BaseSync2, syncBase2, Continuing2, continuingBrief2 };
@@ -1,5 +1,7 @@
1
1
  // @bun
2
2
  import {
3
+ unansweredQuestionReason2,
4
+ isUnansweredQuestion2,
3
5
  LoopCapabilities2,
4
6
  LoopOutcome2,
5
7
  capabilitiesOf2,
@@ -174,7 +176,7 @@ import {
174
176
  syncBase2,
175
177
  Continuing2,
176
178
  continuingBrief2
177
- } from "../chunk-g7x3s4x6.js";
179
+ } from "../chunk-r609bz8q.js";
178
180
  export {
179
181
  AlertTaskActivity2 as AlertTaskActivity,
180
182
  AlertTaskRequest2 as AlertTaskRequest,
@@ -311,6 +313,7 @@ export {
311
313
  file2 as file,
312
314
  integrationBranch2 as integrationBranch,
313
315
  isBlocking2 as isBlocking,
316
+ isUnansweredQuestion2 as isUnansweredQuestion,
314
317
  jsonSchemaOf2 as jsonSchemaOf,
315
318
  judgeMeasurement2 as judgeMeasurement,
316
319
  launch2 as launch,
@@ -346,6 +349,7 @@ export {
346
349
  testLoop2 as testLoop,
347
350
  testsNotRunReasons2 as testsNotRunReasons,
348
351
  transcripts2 as transcripts,
352
+ unansweredQuestionReason2 as unansweredQuestionReason,
349
353
  verify2 as verify,
350
354
  verifyDeferred2 as verifyDeferred,
351
355
  waitFor2 as waitFor,
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"../chunk-g7x3s4x6.js";
2
+ import"../chunk-r609bz8q.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-3qttynnn.js";
20
+ } from "../chunk-7tbysqtf.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.77",
3
+ "version": "0.10.78",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "exports": {
@@ -16,6 +16,10 @@ export declare const LoopSourceMode: Schema.Literals<readonly ["direct", "git_ba
16
16
  export declare const LoopCapabilityKind: Schema.Literals<readonly ["read_task", "read_repo_binding", "read_agent_environment", "read_kit", "update_task_status", "read_change_request", "read_change_request_review", "read_task_link", "refresh_change_request_metadata", "record_change_request_review", "record_session_update", "create_task_link", "create_task_dependency", "create_task_asset", "create_follow_up_task", "execute_agent", "read_step_attempt", "record_task_thread_entry", "write_provider_repository", "write_provider_change_request", "publish_provider_check", "write_provider_comment", "request_provider_changes", "approve_provider_change_request", "merge_provider_change_request", "wait_for_event", "request_human_approval", "execute_package_ref", "read_context_feedback", "read_session_update", "read_repo_binding", "read_agent_environment", "read_kit", "read_memory", "read_decision", "create_task_dependency", "propose_memory", "propose_kit", "propose_decision", "propose_agent_environment_policy", "propose_team_context", "propose_context_relevance", "execute_runner_sandbox"]>;
17
17
  /** A Question's recommendation as its default, when it can be stored as one: a default must be LoopSafeText. */
18
18
  export declare const recommendedDefault: (recommended: string | undefined) => string | undefined;
19
+ /** Why an agent Step ended on a Question in full auto that has neither a default nor a recommendation to take. */
20
+ export declare const unansweredQuestionReason: (prompt: string) => string;
21
+ /** Whether a Step failed because its agent asked a Question in full auto that nothing could answer. */
22
+ export declare const isUnansweredQuestion: (reason: string) => boolean;
19
23
  export declare const LoopDataSchemaRef: Schema.Struct<{
20
24
  readonly kind: Schema.Literal<"typebox_ref">;
21
25
  readonly name: Schema.String;
@@ -1731,6 +1731,8 @@ export declare const makeProgramRpcClient: (options: ConnectionOptions) => Effec
1731
1731
  readonly runnerChecks?: readonly string[];
1732
1732
  readonly approved?: string;
1733
1733
  readonly repository?: string;
1734
+ readonly conflicts?: boolean;
1735
+ readonly needsRebase?: boolean;
1734
1736
  readonly target?: {
1735
1737
  readonly branch: string;
1736
1738
  readonly head: string;
@@ -1755,6 +1757,8 @@ export declare const makeProgramRpcClient: (options: ConnectionOptions) => Effec
1755
1757
  readonly runnerChecks?: readonly string[];
1756
1758
  readonly approved?: string;
1757
1759
  readonly repository?: string;
1760
+ readonly conflicts?: boolean;
1761
+ readonly needsRebase?: boolean;
1758
1762
  readonly target?: {
1759
1763
  readonly branch: string;
1760
1764
  readonly head: string;
@@ -123,7 +123,65 @@ export declare const ProgramOutcome: Schema.Union<readonly [Schema.Struct<{
123
123
  readonly status: Schema.Literal<"failed">;
124
124
  readonly failureSummary: Schema.String;
125
125
  }>]>;
126
- declare const RunnerReplicaRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"AppendTranscript", Schema.Struct<{
126
+ declare const RunnerReplicaRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"Signals", Schema.Struct<{
127
+ runnerReplicaId: Schema.String;
128
+ }>, import("effect/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.TaggedStruct<"WorkAvailable", {}>, Schema.TaggedStruct<"LeaseRevoked", {
129
+ readonly workUnitId: Schema.String;
130
+ }>, Schema.TaggedStruct<"Settled", {
131
+ readonly workUnitId: Schema.String;
132
+ }>, Schema.TaggedStruct<"Canceled", {
133
+ readonly workUnitId: Schema.String;
134
+ }>, Schema.TaggedStruct<"RunSettled", {
135
+ readonly runId: Schema.String;
136
+ }>, Schema.TaggedStruct<"Steer", {
137
+ readonly workUnitId: Schema.String;
138
+ readonly messageId: Schema.String;
139
+ readonly text: Schema.String;
140
+ }>, Schema.TaggedStruct<"SessionUpdated", {
141
+ readonly workUnitId: Schema.String;
142
+ }>, Schema.TaggedStruct<"UpdateAvailable", {
143
+ readonly version: Schema.String;
144
+ }>]>, typeof RunnerRpcError>, Schema.Never, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateCheckpointFile", Schema.Struct<{
145
+ lease: Schema.Struct<{
146
+ readonly workUnitId: Schema.String;
147
+ readonly leaseOwnerId: Schema.String;
148
+ readonly runnerReplicaId: Schema.String;
149
+ readonly leaseId: Schema.String;
150
+ readonly attempt: Schema.Int;
151
+ readonly fencingToken: Schema.String;
152
+ readonly capacitySlot: Schema.String;
153
+ }>;
154
+ byteSize: Schema.Int;
155
+ sha256: Schema.String;
156
+ }>, Schema.Struct<{
157
+ readonly file: Schema.Struct<{
158
+ readonly id: Schema.String;
159
+ readonly runId: Schema.String;
160
+ readonly step: Schema.String;
161
+ readonly name: Schema.String;
162
+ readonly caption: Schema.optionalKey<Schema.String>;
163
+ readonly contentType: Schema.String;
164
+ readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
165
+ readonly byteSize: Schema.Int;
166
+ readonly sha256: Schema.String;
167
+ readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
168
+ }>;
169
+ readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
170
+ readonly url: Schema.String;
171
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
172
+ readonly expiresAt: Schema.String;
173
+ readonly kind: Schema.Literal<"single">;
174
+ }>, Schema.Struct<{
175
+ readonly kind: Schema.Literal<"multipart">;
176
+ readonly partSize: Schema.Int;
177
+ readonly parts: Schema.$Array<Schema.Struct<{
178
+ readonly url: Schema.String;
179
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
180
+ readonly expiresAt: Schema.String;
181
+ readonly partNumber: Schema.Int;
182
+ }>>;
183
+ }>]>>;
184
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"AppendTranscript", Schema.Struct<{
127
185
  workUnitId: Schema.String;
128
186
  entries: Schema.$Array<Schema.Struct<{
129
187
  readonly sequence: Schema.Int;
@@ -493,47 +551,7 @@ declare const RunnerReplicaRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"AppendTranscrip
493
551
  readonly byteSize: Schema.Int;
494
552
  readonly sha256: Schema.String;
495
553
  readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
496
- }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateCheckpointFile", Schema.Struct<{
497
- lease: Schema.Struct<{
498
- readonly workUnitId: Schema.String;
499
- readonly leaseOwnerId: Schema.String;
500
- readonly runnerReplicaId: Schema.String;
501
- readonly leaseId: Schema.String;
502
- readonly attempt: Schema.Int;
503
- readonly fencingToken: Schema.String;
504
- readonly capacitySlot: Schema.String;
505
- }>;
506
- byteSize: Schema.Int;
507
- sha256: Schema.String;
508
- }>, Schema.Struct<{
509
- readonly file: Schema.Struct<{
510
- readonly id: Schema.String;
511
- readonly runId: Schema.String;
512
- readonly step: Schema.String;
513
- readonly name: Schema.String;
514
- readonly caption: Schema.optionalKey<Schema.String>;
515
- readonly contentType: Schema.String;
516
- readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
517
- readonly byteSize: Schema.Int;
518
- readonly sha256: Schema.String;
519
- readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
520
- }>;
521
- readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
522
- readonly url: Schema.String;
523
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
524
- readonly expiresAt: Schema.String;
525
- readonly kind: Schema.Literal<"single">;
526
- }>, Schema.Struct<{
527
- readonly kind: Schema.Literal<"multipart">;
528
- readonly partSize: Schema.Int;
529
- readonly parts: Schema.$Array<Schema.Struct<{
530
- readonly url: Schema.String;
531
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
532
- readonly expiresAt: Schema.String;
533
- readonly partNumber: Schema.Int;
534
- }>>;
535
- }>]>>;
536
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"ForgetCheckpoints", Schema.Struct<{
554
+ }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"ForgetCheckpoints", Schema.Struct<{
537
555
  stepAttemptIds: Schema.$Array<Schema.String>;
538
556
  }>, Schema.Void, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"GitCredential", Schema.Struct<{
539
557
  repoBindingId: Schema.String;
@@ -650,25 +668,7 @@ declare const RunnerReplicaRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"AppendTranscrip
650
668
  }>>;
651
669
  }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"SettledRuns", Schema.Struct<{
652
670
  runIds: Schema.$Array<Schema.String>;
653
- }>, Schema.$Array<Schema.String>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"Signals", Schema.Struct<{
654
- runnerReplicaId: Schema.String;
655
- }>, import("effect/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.TaggedStruct<"WorkAvailable", {}>, Schema.TaggedStruct<"LeaseRevoked", {
656
- readonly workUnitId: Schema.String;
657
- }>, Schema.TaggedStruct<"Settled", {
658
- readonly workUnitId: Schema.String;
659
- }>, Schema.TaggedStruct<"Canceled", {
660
- readonly workUnitId: Schema.String;
661
- }>, Schema.TaggedStruct<"RunSettled", {
662
- readonly runId: Schema.String;
663
- }>, Schema.TaggedStruct<"Steer", {
664
- readonly workUnitId: Schema.String;
665
- readonly messageId: Schema.String;
666
- readonly text: Schema.String;
667
- }>, Schema.TaggedStruct<"SessionUpdated", {
668
- readonly workUnitId: Schema.String;
669
- }>, Schema.TaggedStruct<"UpdateAvailable", {
670
- readonly version: Schema.String;
671
- }>]>, typeof RunnerRpcError>, Schema.Never, typeof RunnerAuthentication, never>>;
671
+ }>, Schema.$Array<Schema.String>, typeof RunnerRpcError, typeof RunnerAuthentication, never>>;
672
672
  /** The Runner process's procedures: Work Unit leases, signals, checkpoints and bundles. */
673
673
  export declare class RunnerReplicaRpcs extends RunnerReplicaRpcs_base {
674
674
  }
@@ -1043,6 +1043,8 @@ declare const RunnerCapabilityRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild",
1043
1043
  readonly runnerChecks: Schema.optionalKey<Schema.$Array<Schema.String>>;
1044
1044
  readonly approved: Schema.optionalKey<Schema.String>;
1045
1045
  readonly repository: Schema.optionalKey<Schema.String>;
1046
+ readonly conflicts: Schema.optionalKey<Schema.Boolean>;
1047
+ readonly needsRebase: Schema.optionalKey<Schema.Boolean>;
1046
1048
  readonly target: Schema.optionalKey<Schema.Struct<{
1047
1049
  readonly branch: Schema.String;
1048
1050
  readonly head: Schema.String;
@@ -1378,7 +1380,51 @@ declare const RunnerCapabilityRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild",
1378
1380
  /** A program's domain calls. */
1379
1381
  export declare class RunnerCapabilityRpcs extends RunnerCapabilityRpcs_base {
1380
1382
  }
1381
- declare const RunnerRunFileRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"CompleteRunFile", Schema.Struct<{
1383
+ declare const RunnerRunFileRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"CreateRunFile", Schema.Struct<{
1384
+ lease: Schema.Struct<{
1385
+ readonly workUnitId: Schema.String;
1386
+ readonly leaseOwnerId: Schema.String;
1387
+ readonly runnerReplicaId: Schema.String;
1388
+ readonly leaseId: Schema.String;
1389
+ readonly attempt: Schema.Int;
1390
+ readonly fencingToken: Schema.String;
1391
+ readonly capacitySlot: Schema.String;
1392
+ }>;
1393
+ step: Schema.String;
1394
+ name: Schema.String;
1395
+ caption: Schema.optional<Schema.String>;
1396
+ contentType: Schema.String;
1397
+ byteSize: Schema.Int;
1398
+ sha256: Schema.String;
1399
+ }>, Schema.Struct<{
1400
+ readonly file: Schema.Struct<{
1401
+ readonly id: Schema.String;
1402
+ readonly runId: Schema.String;
1403
+ readonly step: Schema.String;
1404
+ readonly name: Schema.String;
1405
+ readonly caption: Schema.optionalKey<Schema.String>;
1406
+ readonly contentType: Schema.String;
1407
+ readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
1408
+ readonly byteSize: Schema.Int;
1409
+ readonly sha256: Schema.String;
1410
+ readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
1411
+ }>;
1412
+ readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
1413
+ readonly url: Schema.String;
1414
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1415
+ readonly expiresAt: Schema.String;
1416
+ readonly kind: Schema.Literal<"single">;
1417
+ }>, Schema.Struct<{
1418
+ readonly kind: Schema.Literal<"multipart">;
1419
+ readonly partSize: Schema.Int;
1420
+ readonly parts: Schema.$Array<Schema.Struct<{
1421
+ readonly url: Schema.String;
1422
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1423
+ readonly expiresAt: Schema.String;
1424
+ readonly partNumber: Schema.Int;
1425
+ }>>;
1426
+ }>]>>;
1427
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"CompleteRunFile", Schema.Struct<{
1382
1428
  lease: Schema.Struct<{
1383
1429
  readonly workUnitId: Schema.String;
1384
1430
  readonly leaseOwnerId: Schema.String;
@@ -1404,7 +1450,31 @@ declare const RunnerRunFileRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"CompleteRunFile
1404
1450
  readonly byteSize: Schema.Int;
1405
1451
  readonly sha256: Schema.String;
1406
1452
  readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
1407
- }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateRunFile", Schema.Struct<{
1453
+ }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"RunFileParts", Schema.Struct<{
1454
+ lease: Schema.Struct<{
1455
+ readonly workUnitId: Schema.String;
1456
+ readonly leaseOwnerId: Schema.String;
1457
+ readonly runnerReplicaId: Schema.String;
1458
+ readonly leaseId: Schema.String;
1459
+ readonly attempt: Schema.Int;
1460
+ readonly fencingToken: Schema.String;
1461
+ readonly capacitySlot: Schema.String;
1462
+ }>;
1463
+ fileId: Schema.String;
1464
+ partNumbers: Schema.$Array<Schema.Int>;
1465
+ }>, Schema.Struct<{
1466
+ readonly parts: Schema.$Array<Schema.Struct<{
1467
+ readonly url: Schema.String;
1468
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1469
+ readonly expiresAt: Schema.String;
1470
+ readonly partNumber: Schema.Int;
1471
+ }>>;
1472
+ }>, typeof RunnerRpcError, typeof RunnerAuthentication, never>>;
1473
+ /** Run File uploads, under a program's orchestration lease or the Runner's verification lease. */
1474
+ export declare class RunnerRunFileRpcs extends RunnerRunFileRpcs_base {
1475
+ }
1476
+ /** What a program process may call; its bundle speaks the Runner RPC protocol version through these. */
1477
+ export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"CreateRunFile", Schema.Struct<{
1408
1478
  lease: Schema.Struct<{
1409
1479
  readonly workUnitId: Schema.String;
1410
1480
  readonly leaseOwnerId: Schema.String;
@@ -1448,31 +1518,7 @@ declare const RunnerRunFileRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"CompleteRunFile
1448
1518
  readonly partNumber: Schema.Int;
1449
1519
  }>>;
1450
1520
  }>]>>;
1451
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"RunFileParts", Schema.Struct<{
1452
- lease: Schema.Struct<{
1453
- readonly workUnitId: Schema.String;
1454
- readonly leaseOwnerId: Schema.String;
1455
- readonly runnerReplicaId: Schema.String;
1456
- readonly leaseId: Schema.String;
1457
- readonly attempt: Schema.Int;
1458
- readonly fencingToken: Schema.String;
1459
- readonly capacitySlot: Schema.String;
1460
- }>;
1461
- fileId: Schema.String;
1462
- partNumbers: Schema.$Array<Schema.Int>;
1463
- }>, Schema.Struct<{
1464
- readonly parts: Schema.$Array<Schema.Struct<{
1465
- readonly url: Schema.String;
1466
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1467
- readonly expiresAt: Schema.String;
1468
- readonly partNumber: Schema.Int;
1469
- }>>;
1470
- }>, typeof RunnerRpcError, typeof RunnerAuthentication, never>>;
1471
- /** Run File uploads, under a program's orchestration lease or the Runner's verification lease. */
1472
- export declare class RunnerRunFileRpcs extends RunnerRunFileRpcs_base {
1473
- }
1474
- /** What a program process may call; its bundle speaks the Runner RPC protocol version through these. */
1475
- export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.Struct<{
1521
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"AdmitChild", Schema.Struct<{
1476
1522
  lease: Schema.Struct<{
1477
1523
  readonly workUnitId: Schema.String;
1478
1524
  readonly leaseOwnerId: Schema.String;
@@ -1639,51 +1685,7 @@ export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema
1639
1685
  }>, Schema.$Array<Schema.Struct<{
1640
1686
  readonly key: Schema.String;
1641
1687
  readonly taskId: Schema.String;
1642
- }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateRunFile", Schema.Struct<{
1643
- lease: Schema.Struct<{
1644
- readonly workUnitId: Schema.String;
1645
- readonly leaseOwnerId: Schema.String;
1646
- readonly runnerReplicaId: Schema.String;
1647
- readonly leaseId: Schema.String;
1648
- readonly attempt: Schema.Int;
1649
- readonly fencingToken: Schema.String;
1650
- readonly capacitySlot: Schema.String;
1651
- }>;
1652
- step: Schema.String;
1653
- name: Schema.String;
1654
- caption: Schema.optional<Schema.String>;
1655
- contentType: Schema.String;
1656
- byteSize: Schema.Int;
1657
- sha256: Schema.String;
1658
- }>, Schema.Struct<{
1659
- readonly file: Schema.Struct<{
1660
- readonly id: Schema.String;
1661
- readonly runId: Schema.String;
1662
- readonly step: Schema.String;
1663
- readonly name: Schema.String;
1664
- readonly caption: Schema.optionalKey<Schema.String>;
1665
- readonly contentType: Schema.String;
1666
- readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
1667
- readonly byteSize: Schema.Int;
1668
- readonly sha256: Schema.String;
1669
- readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
1670
- }>;
1671
- readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
1672
- readonly url: Schema.String;
1673
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1674
- readonly expiresAt: Schema.String;
1675
- readonly kind: Schema.Literal<"single">;
1676
- }>, Schema.Struct<{
1677
- readonly kind: Schema.Literal<"multipart">;
1678
- readonly partSize: Schema.Int;
1679
- readonly parts: Schema.$Array<Schema.Struct<{
1680
- readonly url: Schema.String;
1681
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1682
- readonly expiresAt: Schema.String;
1683
- readonly partNumber: Schema.Int;
1684
- }>>;
1685
- }>]>>;
1686
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"DeferredDone", Schema.Struct<{
1688
+ }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"DeferredDone", Schema.Struct<{
1687
1689
  lease: Schema.Struct<{
1688
1690
  readonly workUnitId: Schema.String;
1689
1691
  readonly leaseOwnerId: Schema.String;
@@ -1873,6 +1875,8 @@ export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema
1873
1875
  readonly runnerChecks: Schema.optionalKey<Schema.$Array<Schema.String>>;
1874
1876
  readonly approved: Schema.optionalKey<Schema.String>;
1875
1877
  readonly repository: Schema.optionalKey<Schema.String>;
1878
+ readonly conflicts: Schema.optionalKey<Schema.Boolean>;
1879
+ readonly needsRebase: Schema.optionalKey<Schema.Boolean>;
1876
1880
  readonly target: Schema.optionalKey<Schema.Struct<{
1877
1881
  readonly branch: Schema.String;
1878
1882
  readonly head: Schema.String;
@@ -2261,7 +2265,109 @@ export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema
2261
2265
  }>;
2262
2266
  }>, Schema.Void, typeof RunnerRpcError, typeof RunnerAuthentication, never>>;
2263
2267
  /** Every group, served on the one Runner RPC endpoint; a request names its procedure by tag alone. */
2264
- export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.Struct<{
2268
+ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Signals", Schema.Struct<{
2269
+ runnerReplicaId: Schema.String;
2270
+ }>, import("effect/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.TaggedStruct<"WorkAvailable", {}>, Schema.TaggedStruct<"LeaseRevoked", {
2271
+ readonly workUnitId: Schema.String;
2272
+ }>, Schema.TaggedStruct<"Settled", {
2273
+ readonly workUnitId: Schema.String;
2274
+ }>, Schema.TaggedStruct<"Canceled", {
2275
+ readonly workUnitId: Schema.String;
2276
+ }>, Schema.TaggedStruct<"RunSettled", {
2277
+ readonly runId: Schema.String;
2278
+ }>, Schema.TaggedStruct<"Steer", {
2279
+ readonly workUnitId: Schema.String;
2280
+ readonly messageId: Schema.String;
2281
+ readonly text: Schema.String;
2282
+ }>, Schema.TaggedStruct<"SessionUpdated", {
2283
+ readonly workUnitId: Schema.String;
2284
+ }>, Schema.TaggedStruct<"UpdateAvailable", {
2285
+ readonly version: Schema.String;
2286
+ }>]>, typeof RunnerRpcError>, Schema.Never, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateCheckpointFile", Schema.Struct<{
2287
+ lease: Schema.Struct<{
2288
+ readonly workUnitId: Schema.String;
2289
+ readonly leaseOwnerId: Schema.String;
2290
+ readonly runnerReplicaId: Schema.String;
2291
+ readonly leaseId: Schema.String;
2292
+ readonly attempt: Schema.Int;
2293
+ readonly fencingToken: Schema.String;
2294
+ readonly capacitySlot: Schema.String;
2295
+ }>;
2296
+ byteSize: Schema.Int;
2297
+ sha256: Schema.String;
2298
+ }>, Schema.Struct<{
2299
+ readonly file: Schema.Struct<{
2300
+ readonly id: Schema.String;
2301
+ readonly runId: Schema.String;
2302
+ readonly step: Schema.String;
2303
+ readonly name: Schema.String;
2304
+ readonly caption: Schema.optionalKey<Schema.String>;
2305
+ readonly contentType: Schema.String;
2306
+ readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
2307
+ readonly byteSize: Schema.Int;
2308
+ readonly sha256: Schema.String;
2309
+ readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2310
+ }>;
2311
+ readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2312
+ readonly url: Schema.String;
2313
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2314
+ readonly expiresAt: Schema.String;
2315
+ readonly kind: Schema.Literal<"single">;
2316
+ }>, Schema.Struct<{
2317
+ readonly kind: Schema.Literal<"multipart">;
2318
+ readonly partSize: Schema.Int;
2319
+ readonly parts: Schema.$Array<Schema.Struct<{
2320
+ readonly url: Schema.String;
2321
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2322
+ readonly expiresAt: Schema.String;
2323
+ readonly partNumber: Schema.Int;
2324
+ }>>;
2325
+ }>]>>;
2326
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateRunFile", Schema.Struct<{
2327
+ lease: Schema.Struct<{
2328
+ readonly workUnitId: Schema.String;
2329
+ readonly leaseOwnerId: Schema.String;
2330
+ readonly runnerReplicaId: Schema.String;
2331
+ readonly leaseId: Schema.String;
2332
+ readonly attempt: Schema.Int;
2333
+ readonly fencingToken: Schema.String;
2334
+ readonly capacitySlot: Schema.String;
2335
+ }>;
2336
+ step: Schema.String;
2337
+ name: Schema.String;
2338
+ caption: Schema.optional<Schema.String>;
2339
+ contentType: Schema.String;
2340
+ byteSize: Schema.Int;
2341
+ sha256: Schema.String;
2342
+ }>, Schema.Struct<{
2343
+ readonly file: Schema.Struct<{
2344
+ readonly id: Schema.String;
2345
+ readonly runId: Schema.String;
2346
+ readonly step: Schema.String;
2347
+ readonly name: Schema.String;
2348
+ readonly caption: Schema.optionalKey<Schema.String>;
2349
+ readonly contentType: Schema.String;
2350
+ readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
2351
+ readonly byteSize: Schema.Int;
2352
+ readonly sha256: Schema.String;
2353
+ readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2354
+ }>;
2355
+ readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2356
+ readonly url: Schema.String;
2357
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2358
+ readonly expiresAt: Schema.String;
2359
+ readonly kind: Schema.Literal<"single">;
2360
+ }>, Schema.Struct<{
2361
+ readonly kind: Schema.Literal<"multipart">;
2362
+ readonly partSize: Schema.Int;
2363
+ readonly parts: Schema.$Array<Schema.Struct<{
2364
+ readonly url: Schema.String;
2365
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2366
+ readonly expiresAt: Schema.String;
2367
+ readonly partNumber: Schema.Int;
2368
+ }>>;
2369
+ }>]>>;
2370
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"AdmitChild", Schema.Struct<{
2265
2371
  lease: Schema.Struct<{
2266
2372
  readonly workUnitId: Schema.String;
2267
2373
  readonly leaseOwnerId: Schema.String;
@@ -2776,47 +2882,7 @@ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.
2776
2882
  readonly byteSize: Schema.Int;
2777
2883
  readonly sha256: Schema.String;
2778
2884
  readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2779
- }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateCheckpointFile", Schema.Struct<{
2780
- lease: Schema.Struct<{
2781
- readonly workUnitId: Schema.String;
2782
- readonly leaseOwnerId: Schema.String;
2783
- readonly runnerReplicaId: Schema.String;
2784
- readonly leaseId: Schema.String;
2785
- readonly attempt: Schema.Int;
2786
- readonly fencingToken: Schema.String;
2787
- readonly capacitySlot: Schema.String;
2788
- }>;
2789
- byteSize: Schema.Int;
2790
- sha256: Schema.String;
2791
- }>, Schema.Struct<{
2792
- readonly file: Schema.Struct<{
2793
- readonly id: Schema.String;
2794
- readonly runId: Schema.String;
2795
- readonly step: Schema.String;
2796
- readonly name: Schema.String;
2797
- readonly caption: Schema.optionalKey<Schema.String>;
2798
- readonly contentType: Schema.String;
2799
- readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
2800
- readonly byteSize: Schema.Int;
2801
- readonly sha256: Schema.String;
2802
- readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2803
- }>;
2804
- readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2805
- readonly url: Schema.String;
2806
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2807
- readonly expiresAt: Schema.String;
2808
- readonly kind: Schema.Literal<"single">;
2809
- }>, Schema.Struct<{
2810
- readonly kind: Schema.Literal<"multipart">;
2811
- readonly partSize: Schema.Int;
2812
- readonly parts: Schema.$Array<Schema.Struct<{
2813
- readonly url: Schema.String;
2814
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2815
- readonly expiresAt: Schema.String;
2816
- readonly partNumber: Schema.Int;
2817
- }>>;
2818
- }>]>>;
2819
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreatePlanTasks", Schema.Struct<{
2885
+ }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreatePlanTasks", Schema.Struct<{
2820
2886
  lease: Schema.Struct<{
2821
2887
  readonly workUnitId: Schema.String;
2822
2888
  readonly leaseOwnerId: Schema.String;
@@ -2838,51 +2904,7 @@ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.
2838
2904
  }>, Schema.$Array<Schema.Struct<{
2839
2905
  readonly key: Schema.String;
2840
2906
  readonly taskId: Schema.String;
2841
- }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateRunFile", Schema.Struct<{
2842
- lease: Schema.Struct<{
2843
- readonly workUnitId: Schema.String;
2844
- readonly leaseOwnerId: Schema.String;
2845
- readonly runnerReplicaId: Schema.String;
2846
- readonly leaseId: Schema.String;
2847
- readonly attempt: Schema.Int;
2848
- readonly fencingToken: Schema.String;
2849
- readonly capacitySlot: Schema.String;
2850
- }>;
2851
- step: Schema.String;
2852
- name: Schema.String;
2853
- caption: Schema.optional<Schema.String>;
2854
- contentType: Schema.String;
2855
- byteSize: Schema.Int;
2856
- sha256: Schema.String;
2857
- }>, Schema.Struct<{
2858
- readonly file: Schema.Struct<{
2859
- readonly id: Schema.String;
2860
- readonly runId: Schema.String;
2861
- readonly step: Schema.String;
2862
- readonly name: Schema.String;
2863
- readonly caption: Schema.optionalKey<Schema.String>;
2864
- readonly contentType: Schema.String;
2865
- readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
2866
- readonly byteSize: Schema.Int;
2867
- readonly sha256: Schema.String;
2868
- readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2869
- }>;
2870
- readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2871
- readonly url: Schema.String;
2872
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2873
- readonly expiresAt: Schema.String;
2874
- readonly kind: Schema.Literal<"single">;
2875
- }>, Schema.Struct<{
2876
- readonly kind: Schema.Literal<"multipart">;
2877
- readonly partSize: Schema.Int;
2878
- readonly parts: Schema.$Array<Schema.Struct<{
2879
- readonly url: Schema.String;
2880
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2881
- readonly expiresAt: Schema.String;
2882
- readonly partNumber: Schema.Int;
2883
- }>>;
2884
- }>]>>;
2885
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"DeferredDone", Schema.Struct<{
2907
+ }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"DeferredDone", Schema.Struct<{
2886
2908
  lease: Schema.Struct<{
2887
2909
  readonly workUnitId: Schema.String;
2888
2910
  readonly leaseOwnerId: Schema.String;
@@ -3115,6 +3137,8 @@ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.
3115
3137
  readonly runnerChecks: Schema.optionalKey<Schema.$Array<Schema.String>>;
3116
3138
  readonly approved: Schema.optionalKey<Schema.String>;
3117
3139
  readonly repository: Schema.optionalKey<Schema.String>;
3140
+ readonly conflicts: Schema.optionalKey<Schema.Boolean>;
3141
+ readonly needsRebase: Schema.optionalKey<Schema.Boolean>;
3118
3142
  readonly target: Schema.optionalKey<Schema.Struct<{
3119
3143
  readonly branch: Schema.String;
3120
3144
  readonly head: Schema.String;
@@ -3479,25 +3503,7 @@ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.
3479
3503
  }>>;
3480
3504
  }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"SettledRuns", Schema.Struct<{
3481
3505
  runIds: Schema.$Array<Schema.String>;
3482
- }>, Schema.$Array<Schema.String>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"Signals", Schema.Struct<{
3483
- runnerReplicaId: Schema.String;
3484
- }>, import("effect/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.TaggedStruct<"WorkAvailable", {}>, Schema.TaggedStruct<"LeaseRevoked", {
3485
- readonly workUnitId: Schema.String;
3486
- }>, Schema.TaggedStruct<"Settled", {
3487
- readonly workUnitId: Schema.String;
3488
- }>, Schema.TaggedStruct<"Canceled", {
3489
- readonly workUnitId: Schema.String;
3490
- }>, Schema.TaggedStruct<"RunSettled", {
3491
- readonly runId: Schema.String;
3492
- }>, Schema.TaggedStruct<"Steer", {
3493
- readonly workUnitId: Schema.String;
3494
- readonly messageId: Schema.String;
3495
- readonly text: Schema.String;
3496
- }>, Schema.TaggedStruct<"SessionUpdated", {
3497
- readonly workUnitId: Schema.String;
3498
- }>, Schema.TaggedStruct<"UpdateAvailable", {
3499
- readonly version: Schema.String;
3500
- }>]>, typeof RunnerRpcError>, Schema.Never, typeof RunnerAuthentication, never> | Rpc.Rpc<"StartAgentStep", Schema.Struct<{
3506
+ }>, Schema.$Array<Schema.String>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"StartAgentStep", Schema.Struct<{
3501
3507
  lease: Schema.Struct<{
3502
3508
  readonly workUnitId: Schema.String;
3503
3509
  readonly leaseOwnerId: Schema.String;
@@ -265,9 +265,13 @@ export declare const PipelineStatus: Schema.Struct<{
265
265
  readonly approved: Schema.optionalKey<Schema.String>;
266
266
  /** The ChangeRequest's RepoBinding. */
267
267
  readonly repository: Schema.optionalKey<Schema.String>;
268
+ /** The forge says the ChangeRequest conflicts with its target; left out while it has not worked that out. */
269
+ readonly conflicts: Schema.optionalKey<Schema.Boolean>;
270
+ /** The forge says the branch must take its target in before it can merge, as a semi-linear project does. */
271
+ readonly needsRebase: Schema.optionalKey<Schema.Boolean>;
268
272
  /**
269
- * While the pipeline fails: the head of the ChangeRequest's target branch and the forge's checks on it, none where
270
- * the forge runs no pipeline. Left out when the forge could not say.
273
+ * While the pipeline fails, or the forge says the ChangeRequest conflicts or needs rebase: the head of its target
274
+ * branch and the forge's checks on it, none where the forge runs no pipeline. Left out when the forge could not say.
271
275
  */
272
276
  readonly target: Schema.optionalKey<Schema.Struct<{
273
277
  readonly branch: Schema.String;
@@ -750,6 +754,8 @@ export declare const pipelineStatus: (name: string, request: typeof ChangeReques
750
754
  readonly runnerChecks?: readonly string[];
751
755
  readonly approved?: string;
752
756
  readonly repository?: string;
757
+ readonly conflicts?: boolean;
758
+ readonly needsRebase?: boolean;
753
759
  readonly target?: {
754
760
  readonly branch: string;
755
761
  readonly head: string;
@@ -13,3 +13,4 @@ export * from './measure';
13
13
  export * from './claims';
14
14
  /** What a verification is called, as a Loop's Output names one. */
15
15
  export { CheckName } from '../../../core/src/work-unit';
16
+ export { isUnansweredQuestion, unansweredQuestionReason } from '../../../core/src/loop';