@kitman-sh/cli 0.12.14 → 0.12.15

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.
@@ -105,7 +105,7 @@ import {
105
105
  KitDigest,
106
106
  KitSetup,
107
107
  RunnerRpcError
108
- } from "./chunk-wx3cx43j.js";
108
+ } from "./chunk-cjzcg317.js";
109
109
  import {
110
110
  runForEach,
111
111
  FileSystem
@@ -34,14 +34,6 @@ import {
34
34
  encodePrettyJsonString
35
35
  } from "./chunk-zw3gf6r5.js";
36
36
  import"./chunk-q5w3v4k1.js";
37
- import {
38
- decodeText,
39
- mkString,
40
- FileSystem,
41
- Path,
42
- withDefault,
43
- String2
44
- } from "./chunk-0h49y8gf.js";
45
37
  import {
46
38
  SecureRandom,
47
39
  layerWebCrypto,
@@ -53,23 +45,31 @@ import {
53
45
  layer4,
54
46
  kitmanMcpServer,
55
47
  RunnerRpcProtocolVersion
56
- } from "./chunk-wx3cx43j.js";
48
+ } from "./chunk-cjzcg317.js";
49
+ import {
50
+ decodeText,
51
+ mkString,
52
+ FileSystem,
53
+ Path,
54
+ withDefault,
55
+ String2
56
+ } from "./chunk-0h49y8gf.js";
57
57
  import {
58
58
  Packument,
59
59
  tarballMatches
60
- } from "./chunk-xgdyj09a.js";
61
- import"./chunk-51ye0af0.js";
60
+ } from "./chunk-9sbkchpk.js";
61
+ import"./chunk-nve7atre.js";
62
62
  import {
63
63
  AgentDeclaration,
64
64
  KitDeclarations,
65
65
  describeFlag,
66
66
  Described
67
- } from "./chunk-q44g4vf7.js";
67
+ } from "./chunk-1625ftev.js";
68
68
  import {
69
69
  ChildProcessSpawner,
70
70
  make3
71
71
  } from "./chunk-mtkstrh3.js";
72
- import"./chunk-5wnjn5r0.js";
72
+ import"./chunk-nh27qwj1.js";
73
73
 
74
74
  // packages/sdk/src/build/index.ts
75
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -12,7 +12,7 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-wx3cx43j.js";
15
+ } from "./chunk-cjzcg317.js";
16
16
  import"./chunk-0h49y8gf.js";
17
17
  import"./chunk-zw3gf6r5.js";
18
18
  export {
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-wx3cx43j.js";
42
+ } from "./chunk-cjzcg317.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -12407,6 +12407,18 @@ class KitmanEffectClient {
12407
12407
  body: JSON.stringify(input)
12408
12408
  });
12409
12409
  }
12410
+ submitChangeRequestReview(changeRequestId, input) {
12411
+ return this.request("submitChangeRequestReview", `/change-requests/${segment(changeRequestId)}/review-submissions`, { method: "POST", headers: this.headers(true), body: JSON.stringify(input) });
12412
+ }
12413
+ listChangeRequestReviewComments(changeRequestId) {
12414
+ return this.request("listChangeRequestReviewComments", `/change-requests/${segment(changeRequestId)}/review-comments`, { headers: this.headers() });
12415
+ }
12416
+ resolveChangeRequestReviewComment(changeRequestId, commentId, input) {
12417
+ return this.request("resolveChangeRequestReviewComment", `/change-requests/${segment(changeRequestId)}/review-comments/${segment(commentId)}/resolve`, { method: "POST", headers: this.headers(true), body: JSON.stringify(input) });
12418
+ }
12419
+ redeliverChangeRequestReview(changeRequestId, reviewId, input = {}) {
12420
+ return this.request("redeliverChangeRequestReview", `/change-requests/${segment(changeRequestId)}/reviews/${segment(reviewId)}/deliveries`, { method: "POST", headers: this.headers(true), body: JSON.stringify(input) });
12421
+ }
12410
12422
  reportPipelineResult(changeRequestId, input) {
12411
12423
  return this.request("reportPipelineResult", `/change-requests/${segment(changeRequestId)}/pipeline-results`, {
12412
12424
  method: "POST",
@@ -170,7 +170,7 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-wx3cx43j.js";
173
+ } from "./chunk-cjzcg317.js";
174
174
  import {
175
175
  guard,
176
176
  Id,
@@ -194,7 +194,7 @@ import {
194
194
  import {
195
195
  searchDocs2,
196
196
  readDoc2
197
- } from "./chunk-gnxa022f.js";
197
+ } from "./chunk-m9revazf.js";
198
198
  import {
199
199
  nextInt
200
200
  } from "./chunk-gq7y5v3e.js";
@@ -204,7 +204,7 @@ import {
204
204
  withHeaders,
205
205
  layerProtocolSocket,
206
206
  ConnectionHooks
207
- } from "./chunk-5wnjn5r0.js";
207
+ } from "./chunk-nh27qwj1.js";
208
208
 
209
209
  // apps/cli/src/mcp.ts
210
210
  import { tmpdir as tmpdir2 } from "os";
@@ -2298,6 +2298,7 @@ var generatedOpenApiSchemas = {
2298
2298
  "30a4f7c22cd33328": JSON.parse('{"type":"object","properties":{"generatedAt":{"type":"string","format":"date-time"},"staleAfterSeconds":{"type":"integer","minimum":1,"maximum":9007199254740991},"coverage":{"type":"object","properties":{"runnerLimit":{"type":"integer","minimum":1,"maximum":100},"returnedRunners":{"type":"integer","minimum":0,"maximum":100},"hasMore":{"type":"boolean"},"isComplete":{"type":"boolean"}},"required":["runnerLimit","returnedRunners","hasMore","isComplete"],"additionalProperties":false},"metrics":{"type":"object","properties":{"runnerCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"replicaCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"acceptingReplicaCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"activeWorkUnitCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"blockedWorkUnitCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"failedWorkUnitCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"warmCacheHits":{"type":"integer","minimum":0,"maximum":9007199254740991},"warmCacheMisses":{"type":"integer","minimum":0,"maximum":9007199254740991},"staleReplicaCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"notClaimableRunnerCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknownQuotaRunnerCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknownCleanupRunnerCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["runnerCount","replicaCount","acceptingReplicaCount","activeWorkUnitCount","blockedWorkUnitCount","failedWorkUnitCount","warmCacheHits","warmCacheMisses","staleReplicaCount"],"additionalProperties":false},"runners":{"type":"array","items":{"type":"object","properties":{"runnerId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["active","disabled"]},"state":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["online"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["offline"]},"since":{"type":"string","format":"date-time"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["needs_attention"]},"problems":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["credential_missing","credential_refused","clock_skew","runner_removed","sandbox_missing","herdr_core_missing","update_failed","update_required","processes_unreaped","processes_uncontained","full_access_refused"]},"message":{"type":"string","minLength":1,"maxLength":500},"fix":{"type":"string","minLength":1,"maxLength":500},"startedAt":{"type":"string","format":"date-time"}},"required":["code","message","fix","startedAt"],"additionalProperties":false}}},"required":["kind","problems"],"additionalProperties":false}]},"heartbeatAgeSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"replicaCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"acceptingReplicas":{"type":"integer","minimum":0,"maximum":9007199254740991},"activeWorkUnits":{"type":"integer","minimum":0,"maximum":9007199254740991},"labels":{"type":"array","items":{"type":"string","minLength":1}},"harnesses":{"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]*$"}},"sandboxBackends":{"type":"array","items":{"type":"string","minLength":1}},"blockers":{"type":"array","items":{"type":"string","minLength":1}},"diagnostics":{"type":"object","properties":{"readiness":{"type":"object","properties":{"status":{"type":"string","enum":["ready","degraded","blocked","unknown"]},"reasons":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":30},"nextActions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":10}},"required":["status","reasons","nextActions"],"additionalProperties":false},"claimability":{"type":"object","properties":{"status":{"type":"string","enum":["claimable","not_claimable","unknown"]},"reasons":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":30},"nextActions":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":10}},"required":["status","reasons","nextActions"],"additionalProperties":false},"trust":{"type":"object","properties":{"status":{"type":"string","enum":["verified","unavailable","stale","revoked","unknown"]},"enrollment":{"type":"string","enum":["enrolled","pending_enrollment","lost_host","revoked","unknown"]},"preflight":{"type":"string","enum":["accepted","expired","revoked","unavailable","unknown"]},"profileDigest":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"artifactDigest":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"certificationDigest":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"configDigest":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"closureDigest":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"candidateDigest":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"acceptanceDigest":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"launchSnapshotHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"architecture":{"type":"string","enum":["amd64","arm64"]},"blockers":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":30}},"required":["status","enrollment","preflight","blockers"],"additionalProperties":false},"environment":{"type":"object","properties":{"status":{"type":"string","enum":["resolved","blocked","stale","unknown"]},"sourceMode":{"type":"string","enum":["none","repo_binding","direct","git_backed"]},"sandboxBackend":{"type":"string","minLength":1,"maxLength":120},"sandboxPosture":{"type":"string","enum":["verified","trusted","unknown"]},"developmentEnvironmentHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"syncKitHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"agentEnvironmentHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"sandboxPolicyHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"cacheStatus":{"type":"string","enum":["hit","miss","stale","corrupt","unknown"]},"warmCacheHits":{"type":"integer","minimum":0,"maximum":9007199254740991},"warmCacheMisses":{"type":"integer","minimum":0,"maximum":9007199254740991},"blockers":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":30}},"required":["status","sandboxPosture","cacheStatus","warmCacheHits","warmCacheMisses","blockers"],"additionalProperties":false},"quota":{"type":"object","properties":{"status":{"type":"string","enum":["available","waiting","blocked_manual","unknown"]},"freshness":{"type":"string","enum":["fresh","stale","expired","unknown"]},"evidenceGrade":{"type":"string","enum":["authoritative","strong","supporting","none"]},"observedAt":{"type":"string","format":"date-time"},"reason":{"type":"string","minLength":1,"maxLength":200},"blockers":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":20}},"required":["status","freshness","evidenceGrade","blockers"],"additionalProperties":false},"cleanup":{"type":"object","properties":{"status":{"type":"string","enum":["clean","pending","incomplete","unknown"]},"knownResourceClasses":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknownResourceClasses":{"type":"integer","minimum":0,"maximum":9007199254740991},"blockers":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":20}},"required":["status","knownResourceClasses","unknownResourceClasses","blockers"],"additionalProperties":false},"lifecycle":{"type":"object","properties":{"enrollment":{"type":"string","enum":["enrolled","pending_enrollment","lost_host","revoked","unknown"]},"rotation":{"type":"string","enum":["available","required","blocked","unknown"]},"revocation":{"type":"string","enum":["active","draining","revoked","unknown"]},"update":{"type":"string","enum":["available","blocked","unknown"]},"rollback":{"type":"string","enum":["available","blocked","unknown"]},"actions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["drain","rotate","revoke","update","rollback"]},"allowed":{"type":"boolean"},"reason":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","allowed","reason"],"additionalProperties":false},"maxItems":10}},"required":["enrollment","rotation","revocation","update","rollback","actions"],"additionalProperties":false}},"required":["readiness","claimability","trust","environment","quota","cleanup","lifecycle"],"additionalProperties":false},"replicas":{"type":"array","items":{"type":"object","properties":{"replicaId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":160},"status":{"type":"string","enum":["active","draining","stopped","disabled"]},"healthStatus":{"type":"string","enum":["healthy","degraded","unhealthy","unknown"]},"drainState":{"type":"string","enum":["accepting","draining","drained"]},"heartbeatAgeSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"activeWorkUnits":{"type":"integer","minimum":0,"maximum":9007199254740991},"capacitySlots":{"type":"integer","minimum":0,"maximum":9007199254740991},"cacheHints":{"type":"integer","minimum":0,"maximum":9007199254740991},"cacheHitRate":{"type":"number","minimum":0,"maximum":1},"placement":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"label":{"type":"string","minLength":1,"maxLength":160},"zone":{"type":"string","minLength":1,"maxLength":160}},"required":["kind"],"additionalProperties":false}},"required":["replicaId","name","status","healthStatus","drainState","activeWorkUnits","cacheHints"],"additionalProperties":false}}},"required":["runnerId","name","status","state","replicaCount","acceptingReplicas","activeWorkUnits","labels","harnesses","sandboxBackends","blockers","replicas"],"additionalProperties":false}},"workUnits":{"type":"array","items":{"type":"object","properties":{"workUnitId":{"type":"string","minLength":1},"runId":{"type":"string","minLength":1},"stepKey":{"type":"string","minLength":1,"maxLength":120},"attempt":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","claimed","running","blocked","completed","failed","canceled","expired"]},"runnerReplicaId":{"type":"string","minLength":1},"fencePresent":{"type":"boolean"},"leaseExpiresAt":{"type":"string","format":"date-time"},"heartbeatAgeSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"queueAgeSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"elapsedSeconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"participant":{"type":"string","minLength":1,"maxLength":200},"harness":{"type":"string","enum":["opencode","claude-code","codex","pi"]},"sandboxBackend":{"type":"string","minLength":1,"maxLength":120},"cacheStrategy":{"type":"string","enum":["none","best_effort","required"]},"cachePhase":{"type":"string","enum":["not_required","unknown","hit","miss","mixed"]},"commandPhase":{"type":"string","enum":["queued","claiming","preparation","sandbox_launch","harness_execution","verification","review","delivery","completion","blocked","completed","failed","canceled","expired","unknown"]},"currentBlocker":{"type":"string","minLength":1,"maxLength":200},"evidenceRefs":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["work_unit","run","runner_replica"]},"id":{"type":"string","minLength":1,"maxLength":240,"pattern":"^(?!.*:\\\\/\\\\/)(?!.*[\\\\\\\\/])(?!.*\\\\b(?:raw|log|source|diff|secret|token|password|credential|authorization|transcript|stdout|stderr|path|url|uri)\\\\b).+$"}},"required":["kind","id"],"additionalProperties":false},"maxItems":10},"warmCacheHits":{"type":"integer","minimum":0,"maximum":9007199254740991},"warmCacheMisses":{"type":"integer","minimum":0,"maximum":9007199254740991},"materializationSourceMode":{"type":"string","enum":["none","repo_binding","direct","git_backed"]},"blockers":{"type":"array","items":{"type":"string","minLength":1}}},"required":["workUnitId","runId","stepKey","attempt","status","fencePresent","warmCacheHits","warmCacheMisses","materializationSourceMode","blockers"],"additionalProperties":false}}},"required":["generatedAt","staleAfterSeconds","coverage","metrics","runners","workUnits"],"additionalProperties":false}'),
2299
2299
  "328f01dcd3e21d2b": JSON.parse('{"type":"object","additionalProperties":false,"required":["teamId"],"properties":{"teamId":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"taskId":{"type":"string","minLength":1},"runId":{"type":"string","minLength":1},"status":{"type":"string","enum":["draft","open","closed","merged"]},"limit":{"anyOf":[{"type":"number"},{"type":"string"}],"minimum":1,"maximum":100}}}}}'),
2300
2300
  "329effe3e10d3405": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","initiativeId","userId"],"properties":{"workspaceId":{"type":"string"},"initiativeId":{"type":"string"},"userId":{"type":"string"}}}'),
2301
+ "32a08d7d91ac1a5d": JSON.parse('{"type":"object","properties":{"review":{"type":"object","properties":{"id":{"type":"string","minLength":1},"workspaceId":{"type":"string","minLength":1},"teamId":{"type":"string","minLength":1},"changeRequestId":{"type":"string","minLength":1},"sessionId":{"type":"string","minLength":1},"stepAttemptId":{"type":"string","minLength":1},"reviewerActorType":{"type":"string","enum":["human","delegated_agent","agent"]},"reviewerActorId":{"type":"string","minLength":1},"outcome":{"type":"string","enum":["approved","changes_requested","commented","needs_human","failed"]},"headCommitSha":{"type":"string"},"summary":{"type":"string","minLength":1,"maxLength":4000},"providerActionRefs":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["provider_review","provider_comment","provider_approval","provider_change_request"]},"provider":{"type":"string","enum":["github","gitlab","forgejo","gitea","gitee","bitbucket","azure-devops","generic_git"]},"host":{"type":"string","minLength":1,"maxLength":253,"pattern":"^[A-Za-z0-9](?:[A-Za-z0-9.-]{0,251}[A-Za-z0-9])?$"},"externalId":{"type":"string","minLength":1,"maxLength":160,"pattern":"^(?!.*(?:token|secret|password|sk-|ghp_|glpat-|Bearer |eyJ))[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$"},"url":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^(?!.*(?:sk-|ghp_|glpat-|Bearer |token|secret|password))[Hh][Tt][Tt][Pp][Ss]?:\\\\/\\\\/[^\\\\s`<>]{1,2040}$"},"submittedAt":{"type":"string","format":"date-time"},"metadata":{"type":"object","properties":{"providerState":{"type":"string","minLength":1,"maxLength":240,"pattern":"^(?!.*(?:token|secret|password|sk-|ghp_|glpat-|Bearer |eyJ))[A-Za-z0-9][A-Za-z0-9 ._:-]{0,239}$"},"providerStatus":{"type":"string","minLength":1,"maxLength":240,"pattern":"^(?!.*(?:token|secret|password|sk-|ghp_|glpat-|Bearer |eyJ))[A-Za-z0-9][A-Za-z0-9 ._:-]{0,239}$"},"positionCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"threadCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"noteCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"actionCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"blocking":{"type":"boolean"},"resolved":{"type":"boolean"}},"additionalProperties":false}},"required":["kind","provider","host","externalId"],"additionalProperties":false},"maxItems":50},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","changeRequestId","outcome","summary","providerActionRefs","createdAt","updatedAt"],"additionalProperties":false},"comments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"changeRequestId":{"type":"string","minLength":1},"reviewId":{"type":"string","minLength":1},"path":{"type":"string","minLength":1,"maxLength":1024},"side":{"type":"string","enum":["base","head"]},"startLine":{"type":"integer","minimum":1,"maximum":2147483647},"endLine":{"type":"integer","minimum":1,"maximum":2147483647},"headCommitSha":{"type":"string","pattern":"^[a-fA-F0-9]{7,64}$"},"linesDigest":{"type":"string","pattern":"^[a-z0-9]{1,64}$"},"body":{"type":"string"},"authorActorType":{"type":"string","enum":["human","delegated_agent","agent"]},"authorActorId":{"type":"string","minLength":1},"status":{"type":"object","properties":{"state":{"type":"string","enum":["not_sent","queued","sent","not_delivered","resolved"]},"runId":{"type":"string","minLength":1},"pushed":{"type":"string","pattern":"^[a-fA-F0-9]{7,64}$"},"settled":{"type":"boolean"},"reason":{"type":"string","maxLength":1000}},"required":["state"],"additionalProperties":false},"resolvedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","changeRequestId","reviewId","path","side","startLine","endLine","headCommitSha","body","status","createdAt"],"additionalProperties":false}},"delivery":{"type":"object","properties":{"state":{"type":"string","enum":["queued","sent","not_delivered"]},"runId":{"type":"string","minLength":1},"started":{"type":"boolean"},"reason":{"type":"string"}},"required":["state"],"additionalProperties":false}},"required":["review","comments"],"additionalProperties":false}'),
2301
2302
  "32ac7de3d8fc8949": JSON.parse('{"type":"object","properties":{"usedBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quotaBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byPurpose":{"type":"object","properties":{"runFile":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taskAsset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"checkpoint":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["runFile","taskAsset","checkpoint"],"additionalProperties":false},"limits":{"type":"object","properties":{"fileBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"filesPerRun":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["fileBytes","filesPerRun"],"additionalProperties":false},"runFileRetentionDays":{"type":["integer","null"],"minimum":1,"maximum":3650}},"required":["usedBytes","quotaBytes","byPurpose","limits","runFileRetentionDays"],"additionalProperties":false}'),
2302
2303
  "33ecc39a5e097505": JSON.parse('{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"version":{"type":"string"},"layer":{"type":"string","enum":["team","workspace"]},"digest":{"type":"string"},"outcome":{"type":"string"},"offers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"loop":{"type":"string"},"from":{"type":"string"}},"required":["id","title","loop"],"additionalProperties":false}},"publishedAt":{"type":"string","format":"date-time"},"kit":{"type":"string"}},"required":["id","title","layer","digest","offers","publishedAt","kit"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}'),
2303
2304
  "3470fe86bc616e81": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","taskId","entryId","input"],"properties":{"workspaceId":{"type":"string"},"taskId":{"type":"string","description":"The Task: its id or any key it has had, such as `KIT-12`."},"entryId":{"type":"string"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"reaction":{"type":"string","enum":["thumbs_up","thumbs_down","heart","laugh","hooray","confused","eyes","rocket"]},"reacted":{"type":"boolean"}},"required":["reaction","reacted"],"additionalProperties":true}}}'),
@@ -2389,6 +2390,7 @@ var generatedOpenApiSchemas = {
2389
2390
  "7264750a1c5e0e5b": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","viewId","input"],"properties":{"workspaceId":{"type":"string"},"viewId":{"type":"string"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","pattern":"^\\\\S[\\\\s\\\\S]*\\\\S$|^\\\\S$|^$","minLength":1,"maxLength":80},"query":{"type":"object","properties":{"filter":{"type":"object","properties":{"match":{"type":"string","enum":["all","any"]},"conditions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"field":{"type":"string","enum":["team"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["state"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["stateCategory"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"type":"string","enum":["triage","backlog","unstarted","started","completed","canceled","duplicate"]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["assignee"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"anyOf":[{"type":"string","enum":["me","none"]},{"type":"string"}]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["creator"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"anyOf":[{"type":"string","enum":["me"]},{"type":"string"}]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["priority"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"type":"string","enum":["none","urgent","high","medium","low"]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["labels"]},"op":{"type":"string","enum":["any","all","none"]},"value":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["repository"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"anyOf":[{"type":"string","enum":["none"]},{"type":"string"}]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["project"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"anyOf":[{"type":"string","enum":["none"]},{"type":"string"}]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["milestone"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"anyOf":[{"type":"string","enum":["none"]},{"type":"string"}]},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["parent"]},"op":{"type":"string","enum":["any","none"]},"negate":{"type":"boolean"}},"required":["field","op"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["parent"]},"op":{"type":"string","enum":["is"]},"value":{"type":"string"},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["type"]},"op":{"type":"string","enum":["in"]},"value":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["text"]},"op":{"type":"string","enum":["contains"]},"value":{"type":"string","pattern":"^\\\\S[\\\\s\\\\S]*\\\\S$|^\\\\S$|^$","minLength":1,"maxLength":200},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["created","updated"]},"op":{"type":"string","enum":["between"]},"value":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"additionalProperties":true},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true},{"type":"object","properties":{"field":{"type":"string","enum":["run"]},"op":{"type":"string","enum":["is"]},"value":{"type":"string","enum":["active","needs_person","none"]},"negate":{"type":"boolean"}},"required":["field","op","value"],"additionalProperties":true}]},"maxItems":50}},"required":["match","conditions"],"additionalProperties":true},"grouping":{"type":"string","enum":["none","state","type","assignee","priority","repository","project","milestone"]},"ordering":{"type":"string","enum":["manual","priority","created","updated","key"]},"layout":{"type":"string","enum":["list","board"]},"includeTriage":{"type":"boolean"}},"required":["filter","grouping","ordering","layout","includeTriage"],"additionalProperties":true}},"additionalProperties":true}}}'),
2390
2391
  "726e1c534182dae3": JSON.parse('{"type":"object","properties":{"id":{"type":"string","minLength":1},"workspaceId":{"type":"string","minLength":1},"teamId":{"type":"string","minLength":1},"taskId":{"type":"string","minLength":1},"actorType":{"type":"string","enum":["human","delegated_agent","agent"]},"actorId":{"type":"string","minLength":1},"actorName":{"type":"string"},"delegatedByUserId":{"type":"string","minLength":1},"agentName":{"type":"string"},"agentIdentityId":{"type":"string","minLength":1},"runtimeMetadata":{"type":"object"},"modelMetadata":{"type":"object"},"status":{"type":"string","enum":["active","ended"]},"summary":{"type":"string"},"startedAt":{"type":"string","format":"date-time"},"endedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","taskId","actorType","actorId","status","startedAt","createdAt","updatedAt"],"additionalProperties":false}'),
2391
2392
  "72fdd3dbaa6e412a": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","digest"],"properties":{"workspaceId":{"type":"string"},"digest":{"type":"string"}}}'),
2393
+ "74ed5efefb2ce6b7": JSON.parse('{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"changeRequestId":{"type":"string","minLength":1},"reviewId":{"type":"string","minLength":1},"path":{"type":"string","minLength":1,"maxLength":1024},"side":{"type":"string","enum":["base","head"]},"startLine":{"type":"integer","minimum":1,"maximum":2147483647},"endLine":{"type":"integer","minimum":1,"maximum":2147483647},"headCommitSha":{"type":"string","pattern":"^[a-fA-F0-9]{7,64}$"},"linesDigest":{"type":"string","pattern":"^[a-z0-9]{1,64}$"},"body":{"type":"string"},"authorActorType":{"type":"string","enum":["human","delegated_agent","agent"]},"authorActorId":{"type":"string","minLength":1},"status":{"type":"object","properties":{"state":{"type":"string","enum":["not_sent","queued","sent","not_delivered","resolved"]},"runId":{"type":"string","minLength":1},"pushed":{"type":"string","pattern":"^[a-fA-F0-9]{7,64}$"},"settled":{"type":"boolean"},"reason":{"type":"string","maxLength":1000}},"required":["state"],"additionalProperties":false},"resolvedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","changeRequestId","reviewId","path","side","startLine","endLine","headCommitSha","body","status","createdAt"],"additionalProperties":false}},"notDelivered":{"type":"array","items":{"type":"object","properties":{"reviewId":{"type":"string","minLength":1},"reason":{"type":"string","maxLength":1000}},"required":["reviewId"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}'),
2392
2394
  "7552c43f668085dc": JSON.parse('{"type":"object","additionalProperties":false,"required":["runnerId","replicaId"],"properties":{"runnerId":{"type":"string"},"replicaId":{"type":"string"}}}'),
2393
2395
  "768d121221ce2589": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","repoBindingId"],"properties":{"workspaceId":{"type":"string"},"repoBindingId":{"type":"string"}}}'),
2394
2396
  "774c74b1c741a00a": JSON.parse('{"type":"object","additionalProperties":false,"required":["taskId","input"],"properties":{"taskId":{"type":"string"},"input":{"type":"object","properties":{"kind":{"type":"string","minLength":1},"url":{"type":"string","minLength":1},"title":{"type":"string"},"provider":{"type":"string"},"externalId":{"type":"string"},"metadata":{"type":"object"}},"required":["kind","url"],"additionalProperties":false}}}'),
@@ -2415,6 +2417,7 @@ var generatedOpenApiSchemas = {
2415
2417
  "83567d1d5cb4da04": JSON.parse('{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"plan":{"type":"string","enum":["free","solo_pro","team_starter"]},"notificationPreferences":{"type":"object","properties":{"decisionsRequiringAttention":{"type":"boolean"},"workReadyForReview":{"type":"boolean"}},"required":["decisionsRequiringAttention","workReadyForReview"],"additionalProperties":false},"releaseChannel":{"type":"string","enum":["stable","next"]},"createdByUserId":{"type":"string","minLength":1},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","plan","createdAt","updatedAt"],"additionalProperties":false}'),
2416
2418
  "845af131ce5efda9": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","teamId","input"],"properties":{"workspaceId":{"type":"string"},"teamId":{"type":"string"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1},"category":{"type":"string","enum":["triage","backlog","unstarted","started","completed","canceled","duplicate"]},"color":{"type":"string"},"agentPickup":{"type":"boolean"}},"required":["name","category","color"],"additionalProperties":true}}}'),
2417
2419
  "84dae8b425648f24": JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"workspaceId":{"type":"string"},"team":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"}},"required":["id","key","name"],"additionalProperties":true},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"description":{"type":"string"},"acceptanceCriteria":{"type":"array","items":{"type":"string"}},"type":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"},"outcome":{"type":"string","enum":["feature","bug","refactor","investigation","docs","migration","performance"]},"defaultLoop":{"type":"string"}},"required":["id","name","color"],"additionalProperties":true},"state":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string","enum":["triage","backlog","unstarted","started","completed","canceled","duplicate"]},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"color":{"type":"string"},"agentPickup":{"type":"boolean"}},"required":["id","name","category","position","color","agentPickup"],"additionalProperties":true},"priority":{"type":"string","enum":["none","urgent","high","medium","low"]},"assigneeId":{"type":"string"},"creator":{"type":"object","properties":{"type":{"type":"string","enum":["human","agent","system"]},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":true},"origin":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["manual"]}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["plan_ticket"]},"runId":{"type":"string"},"ticketKey":{"type":"string"}},"required":["kind","runId","ticketKey"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["launch"]},"runId":{"type":"string"}},"required":["kind","runId"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["event"]},"eventId":{"type":"string"}},"required":["kind","eventId"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["alert"]},"fingerprint":{"type":"string"}},"required":["kind","fingerprint"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["migrated"]},"previousKeys":{"type":"array","items":{"type":"string"}},"formerSourceKind":{"type":"string"},"formerSourceUrl":{"type":"string"}},"required":["kind","previousKeys","formerSourceKind"],"additionalProperties":true}]},"repoBindingId":{"type":"string"},"parentId":{"type":"string"},"labels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"}},"required":["id","name","color"],"additionalProperties":true}},"projectId":{"type":"string"},"milestoneId":{"type":"string"},"sortKey":{"type":"string"},"startedAt":{"type":"string"},"completedAt":{"type":"string"},"canceledAt":{"type":"string"},"triagedAt":{"type":"string"},"triageReason":{"type":"string","enum":["non_member","event","unattended_run","from_triage"]},"snoozedUntil":{"type":"string"},"snoozedBy":{"type":"string"},"waitingOn":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"hidden":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["keys","hidden"],"additionalProperties":true},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"appliedRules":{"type":"array","items":{"type":"string"}}},"required":["id","key","workspaceId","team","number","title","acceptanceCriteria","type","state","priority","creator","origin","labels","sortKey","createdAt","updatedAt","revision","appliedRules"],"additionalProperties":true}},"onDuty":{"type":"array","items":{"type":"object","properties":{"teamId":{"type":"string"},"userId":{"type":"string"}},"required":["teamId","userId"],"additionalProperties":true}}},"required":["items","onDuty"],"additionalProperties":true}'),
2420
+ "84eb887929b85c32": JSON.parse('{"type":"object","additionalProperties":false,"required":["changeRequestId","commentId","input"],"properties":{"changeRequestId":{"type":"string"},"commentId":{"type":"string"},"input":{"type":"object","properties":{"resolved":{"type":"boolean"}},"required":["resolved"],"additionalProperties":false}}}'),
2418
2421
  "85052ed9c5ab32f1": JSON.parse('{"type":"object","additionalProperties":false,"required":["runId","idempotencyKey"],"properties":{"runId":{"type":"string"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":240}}}'),
2419
2422
  "856f1e0aa005ec68": JSON.parse('{"type":"object","additionalProperties":false,"required":["teamId","input"],"properties":{"teamId":{"type":"string"},"input":{"type":"object","properties":{"trigger":{"type":["string","null"],"enum":["merge","milestone","project"]}},"required":["trigger"],"additionalProperties":false}}}'),
2420
2423
  "86f759a555d71b93": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","update"],"properties":{"workspaceId":{"type":"string"},"update":{"type":"object","properties":{"runFileRetentionDays":{"type":["integer","null"],"minimum":1,"maximum":3650}},"required":["runFileRetentionDays"],"additionalProperties":false}}}'),
@@ -2449,6 +2452,7 @@ var generatedOpenApiSchemas = {
2449
2452
  "987dd799df75624b": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","repoBindingId","name"],"properties":{"workspaceId":{"type":"string"},"repoBindingId":{"type":"string"},"name":{"type":"string"}}}'),
2450
2453
  "99057071a31ecd6d": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","input"],"properties":{"workspaceId":{"type":"string"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","pattern":"^\\\\S[\\\\s\\\\S]*\\\\S$|^\\\\S$|^$","minLength":1,"maxLength":120},"description":{"type":"string"},"leadId":{"type":"string"},"status":{"type":"string","enum":["planned","active","paused","completed","canceled"]},"targetDate":{"type":"string"}},"required":["name"],"additionalProperties":true}}}'),
2451
2454
  "996611f15f70f2eb": JSON.parse('{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"resource":{"type":"string","pattern":"^[a-z0-9][a-z0-9._:-]*$","minLength":1,"maxLength":128},"runId":{"type":"string","minLength":1},"loopId":{"type":"string"},"runStatus":{"type":"string","enum":["pending","running","blocked","completed","failed","canceled","expired"]},"claimedAt":{"type":"string","format":"date-time"},"keptAt":{"type":"string","format":"date-time"},"keptReason":{"type":"string"},"waiting":{"type":"array","items":{"type":"string","minLength":1}}},"required":["resource","runId","loopId","runStatus","claimedAt","waiting"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}'),
2455
+ "99a46818d8f4a9fe": JSON.parse('{"type":"object","additionalProperties":false,"required":["changeRequestId","reviewId"],"properties":{"changeRequestId":{"type":"string"},"reviewId":{"type":"string"},"input":{"type":["object","null"],"properties":{"overrideBlockers":{"type":"boolean"}},"additionalProperties":false}}}'),
2452
2456
  "99e3bb647e0102a1": JSON.parse('{"type":"object","additionalProperties":false,"required":["input"],"properties":{"input":{"type":"object","properties":{"code":{"type":"string"},"publicKey":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"anyOf":[{"type":"string","maxLength":4000},{"type":"boolean"},{"type":"array","items":{"type":"string","maxLength":4000}}]}}},"required":["code"],"additionalProperties":false}}}'),
2453
2457
  "99e4d49868110007": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId"],"properties":{"workspaceId":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"teamId":{"type":"string","minLength":1},"me":{"type":"string","enum":["true","false"]}}}}}'),
2454
2458
  "99fd651cae8dcad1": JSON.parse('{"type":"object","properties":{"trigger":{"type":["string","null"],"enum":["merge","milestone","project"]},"resolved":{"type":"object","properties":{"trigger":{"type":"string","enum":["merge","milestone","project"]},"layer":{"type":"string","enum":["run","project","team","workspace"]}},"required":["trigger","layer"],"additionalProperties":false}},"required":["trigger"],"additionalProperties":false}'),
@@ -2523,6 +2527,7 @@ var generatedOpenApiSchemas = {
2523
2527
  c18b4c3d2b15cd83: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","projectId","input"],"properties":{"workspaceId":{"type":"string"},"projectId":{"type":"string"},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","pattern":"^\\\\S[\\\\s\\\\S]*\\\\S$|^\\\\S$|^$","minLength":1,"maxLength":120},"targetDate":{"type":"string"}},"required":["name"],"additionalProperties":true}}}'),
2524
2528
  c22ed8f45d9b6fec: JSON.parse('{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"workspaceId":{"type":"string","minLength":1},"scopeType":{"type":"string","enum":["workspace","repository","loop","kit","team","task"]},"scopeId":{"type":"string","minLength":1},"content":{"type":"string","minLength":1,"maxLength":10000},"status":{"type":"string","enum":["proposed","accepted","rejected","deprecated"]},"confidence":{"type":"string","enum":["low","medium","high"]},"sourceType":{"type":"string","enum":["user","agent","session","context_pack","run"]},"sourceId":{"type":"string","minLength":1},"createdByActorType":{"type":"string","enum":["human","delegated_agent","agent"]},"createdByActorId":{"type":"string","minLength":1},"approvedByUserId":{"type":"string","minLength":1},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","scopeType","scopeId","content","status","confidence","createdByActorType","createdByActorId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}'),
2525
2529
  c2537422466fee59: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","taskId","input"],"properties":{"workspaceId":{"type":"string"},"taskId":{"type":"string","description":"The Task: its id or any key it has had, such as `KIT-12`."},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"repoBindingId":{"type":"string"}},"additionalProperties":true}}}'),
2530
+ c3aabaf7fbba522d: JSON.parse('{"type":"object","additionalProperties":false,"required":["changeRequestId","input"],"properties":{"changeRequestId":{"type":"string"},"input":{"type":"object","properties":{"outcome":{"type":"string","enum":["commented","changes_requested","approved"]},"headCommitSha":{"type":"string","pattern":"^[a-fA-F0-9]{40,64}$"},"summary":{"type":"string","maxLength":4000},"comments":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":1024},"side":{"type":"string","enum":["base","head"]},"startLine":{"type":"integer","minimum":1,"maximum":2147483647},"endLine":{"type":"integer","minimum":1,"maximum":2147483647},"headCommitSha":{"type":"string","pattern":"^[a-fA-F0-9]{7,64}$"},"linesDigest":{"type":"string","pattern":"^[a-z0-9]{1,64}$"},"body":{"type":"string","minLength":1,"maxLength":4000}},"required":["path","side","startLine","endLine","headCommitSha","body"],"additionalProperties":false},"maxItems":100},"overrideBlockers":{"type":"boolean"}},"required":["outcome","headCommitSha","comments"],"additionalProperties":false}}}'),
2526
2531
  c3b0d3c355064364: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","initiativeId"],"properties":{"workspaceId":{"type":"string"},"initiativeId":{"type":"string"}}}'),
2527
2532
  c3b716caa5d68d15: JSON.parse('{"type":"object","additionalProperties":false,"required":["runnerId","input"],"properties":{"runnerId":{"type":"string"},"input":{"anyOf":[{"type":"object","properties":{"runId":{"type":"string","minLength":1},"stepKey":{"type":"string","minLength":1,"maxLength":120}},"required":["runId"],"additionalProperties":false},{"type":"object","properties":{"taskId":{"type":"string","minLength":1}},"required":["taskId"],"additionalProperties":false}]}}}'),
2528
2533
  c3df38f19202e8bd: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","templateId"],"properties":{"workspaceId":{"type":"string"},"templateId":{"type":"string"}}}'),
@@ -2576,6 +2581,7 @@ var generatedOpenApiSchemas = {
2576
2581
  e3996d0f808ba500: JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"states":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string","enum":["triage","backlog","unstarted","started","completed","canceled","duplicate"]},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"color":{"type":"string"},"agentPickup":{"type":"boolean"}},"required":["id","name","category","position","color","agentPickup"],"additionalProperties":true}},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"workspaceId":{"type":"string"},"team":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"}},"required":["id","key","name"],"additionalProperties":true},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"description":{"type":"string"},"acceptanceCriteria":{"type":"array","items":{"type":"string"}},"type":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"},"outcome":{"type":"string","enum":["feature","bug","refactor","investigation","docs","migration","performance"]},"defaultLoop":{"type":"string"}},"required":["id","name","color"],"additionalProperties":true},"state":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string","enum":["triage","backlog","unstarted","started","completed","canceled","duplicate"]},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"color":{"type":"string"},"agentPickup":{"type":"boolean"}},"required":["id","name","category","position","color","agentPickup"],"additionalProperties":true},"priority":{"type":"string","enum":["none","urgent","high","medium","low"]},"assigneeId":{"type":"string"},"creator":{"type":"object","properties":{"type":{"type":"string","enum":["human","agent","system"]},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":true},"origin":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["manual"]}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["plan_ticket"]},"runId":{"type":"string"},"ticketKey":{"type":"string"}},"required":["kind","runId","ticketKey"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["launch"]},"runId":{"type":"string"}},"required":["kind","runId"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["event"]},"eventId":{"type":"string"}},"required":["kind","eventId"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["alert"]},"fingerprint":{"type":"string"}},"required":["kind","fingerprint"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","enum":["migrated"]},"previousKeys":{"type":"array","items":{"type":"string"}},"formerSourceKind":{"type":"string"},"formerSourceUrl":{"type":"string"}},"required":["kind","previousKeys","formerSourceKind"],"additionalProperties":true}]},"repoBindingId":{"type":"string"},"parentId":{"type":"string"},"labels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"}},"required":["id","name","color"],"additionalProperties":true}},"projectId":{"type":"string"},"milestoneId":{"type":"string"},"sortKey":{"type":"string"},"startedAt":{"type":"string"},"completedAt":{"type":"string"},"canceledAt":{"type":"string"},"triagedAt":{"type":"string"},"triageReason":{"type":"string","enum":["non_member","event","unattended_run","from_triage"]},"snoozedUntil":{"type":"string"},"snoozedBy":{"type":"string"},"waitingOn":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"hidden":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["keys","hidden"],"additionalProperties":true},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","key","workspaceId","team","number","title","acceptanceCriteria","type","state","priority","creator","origin","labels","sortKey","createdAt","updatedAt","revision"],"additionalProperties":true}},"nextCursor":{"type":"string"}},"required":["states","items"],"additionalProperties":true}'),
2577
2582
  e40d3806534c4e6c: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","typeId"],"properties":{"workspaceId":{"type":"string"},"typeId":{"type":"string"}}}'),
2578
2583
  e43995eff3f29217: JSON.parse('{"type":"object","additionalProperties":false,"required":["runnerId","input"],"properties":{"runnerId":{"type":"string"},"input":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"capacity":{"type":"object","properties":{"maxConcurrentRuns":{"type":"number","minimum":1},"maxCpuCores":{"type":"number","minimum":1},"maxMemoryMb":{"type":"number","minimum":1},"maxRunSeconds":{"type":"number","minimum":1}},"additionalProperties":false},"cacheHints":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":240,"pattern":"^(?!\\\\/)(?!.*:\\\\/\\\\/)(?!.*\\\\\\\\)(?!.*\\\\s)(?!.*(?:^|\\\\/)\\\\.\\\\.?($|\\\\/))[A-Za-z0-9._:@/-]+$"},"sharing":{"type":"string","enum":["runner","replica","workspace"]},"warmed":{"type":"boolean"},"cacheClass":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[A-Za-z0-9._:-]+$"},"developmentEnvironmentHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"agentEnvironmentHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"sandboxPolicyHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"secretScopeHash":{"type":"string","minLength":32,"maxLength":64,"pattern":"^[a-fA-F0-9]{64}$"},"cacheState":{"type":"string","enum":["hit","miss","stale","corrupt","lock_wait","invalidated"]}},"required":["key","sharing","warmed"],"additionalProperties":false}},"placement":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"label":{"type":"string","minLength":1,"maxLength":160},"zone":{"type":"string","minLength":1,"maxLength":160}},"required":["kind"],"additionalProperties":false},"telemetry":{"type":"object","properties":{"activeWorkUnits":{"type":"integer","minimum":0,"maximum":9007199254740991},"queuedWorkUnits":{"type":"integer","minimum":0,"maximum":9007199254740991},"cacheHitRate":{"type":"number","minimum":0,"maximum":1}},"additionalProperties":false}},"required":["name"],"additionalProperties":false}}}'),
2584
+ e4be76b1166a050c: JSON.parse('{"type":"object","properties":{"id":{"type":"string","minLength":1},"changeRequestId":{"type":"string","minLength":1},"reviewId":{"type":"string","minLength":1},"path":{"type":"string","minLength":1,"maxLength":1024},"side":{"type":"string","enum":["base","head"]},"startLine":{"type":"integer","minimum":1,"maximum":2147483647},"endLine":{"type":"integer","minimum":1,"maximum":2147483647},"headCommitSha":{"type":"string","pattern":"^[a-fA-F0-9]{7,64}$"},"linesDigest":{"type":"string","pattern":"^[a-z0-9]{1,64}$"},"body":{"type":"string"},"authorActorType":{"type":"string","enum":["human","delegated_agent","agent"]},"authorActorId":{"type":"string","minLength":1},"status":{"type":"object","properties":{"state":{"type":"string","enum":["not_sent","queued","sent","not_delivered","resolved"]},"runId":{"type":"string","minLength":1},"pushed":{"type":"string","pattern":"^[a-fA-F0-9]{7,64}$"},"settled":{"type":"boolean"},"reason":{"type":"string","maxLength":1000}},"required":["state"],"additionalProperties":false},"resolvedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","changeRequestId","reviewId","path","side","startLine","endLine","headCommitSha","body","status","createdAt"],"additionalProperties":false}'),
2579
2585
  e4ddf18f7b229efd: JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"},"description":{"type":"string"}},"required":["id","name","color"],"additionalProperties":true}'),
2580
2586
  e55d85896adc4f2e: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","input"],"properties":{"workspaceId":{"type":"string"},"input":{"type":"object","properties":{"target":{"type":["string","null"],"enum":["default_branch","epic_branch"]}},"required":["target"],"additionalProperties":false}}}'),
2581
2587
  e586b37a5f63ef6f: JSON.parse('{"type":"object","additionalProperties":false,"required":["changeRequestId"],"properties":{"changeRequestId":{"type":"string","minLength":1}}}'),
@@ -2742,6 +2748,7 @@ var generatedOpenApiOperationContracts = {
2742
2748
  linkInitiativeProject: { inputSchemaId: "ad8f790dc961fdb3", outputSchemaId: "a338183ae192be44" },
2743
2749
  listApprovedVerifications: { inputSchemaId: "768d121221ce2589", outputSchemaId: "51db0dcb3996dd0e" },
2744
2750
  listAutomaticStarts: { inputSchemaId: "d8b76fb0a112e16f", outputSchemaId: "dcec57d72d479eb8" },
2751
+ listChangeRequestReviewComments: { inputSchemaId: "25f6dd90044eeba7", outputSchemaId: "74ed5efefb2ce6b7" },
2745
2752
  listChangeRequests: { inputSchemaId: "328f01dcd3e21d2b", outputSchemaId: "8acb03724a9a9351" },
2746
2753
  listClaims: { inputSchemaId: "fcc72cba1350bf89", outputSchemaId: "996611f15f70f2eb" },
2747
2754
  listDecisions: { inputSchemaId: "ffa54fae23fff74d", outputSchemaId: "166289a936e57a89" },
@@ -2834,6 +2841,7 @@ var generatedOpenApiOperationContracts = {
2834
2841
  recordChangeRequestReview: { inputSchemaId: "678f394db28394ec", outputSchemaId: "f7dae9095279fe57" },
2835
2842
  recordSessionUpdate: { inputSchemaId: "e90d3f6a3c555be7", outputSchemaId: "efc4a219a6db5db6" },
2836
2843
  redeemPairingCode: { inputSchemaId: "99e3bb647e0102a1", outputSchemaId: "05685ba8581805de" },
2844
+ redeliverChangeRequestReview: { inputSchemaId: "99a46818d8f4a9fe", outputSchemaId: "32a08d7d91ac1a5d" },
2837
2845
  refreshChangeRequest: { inputSchemaId: "e586b37a5f63ef6f", outputSchemaId: "4ccb5380c4874d72" },
2838
2846
  registerRunner: { inputSchemaId: "7a9473d7e33d1678", outputSchemaId: "78511d1825cf827b" },
2839
2847
  registerRunnerReplica: { inputSchemaId: "e43995eff3f29217", outputSchemaId: "8163b6a455de3acf" },
@@ -2864,6 +2872,7 @@ var generatedOpenApiOperationContracts = {
2864
2872
  reportPipelineResult: { inputSchemaId: "1782da5dfa842b31", outputSchemaId: "f6be957667a1a1ed" },
2865
2873
  requestRunnerUpdate: { inputSchemaId: "5e0b7d98d3c08ffe", outputSchemaId: "fc573e2a6b53d361" },
2866
2874
  rescopeRunner: { inputSchemaId: "9e894f2e6226d3e8", outputSchemaId: "ce450ba8281a5050" },
2875
+ resolveChangeRequestReviewComment: { inputSchemaId: "84eb887929b85c32", outputSchemaId: "e4be76b1166a050c" },
2867
2876
  resumeRun: { inputSchemaId: "c7cbf805dc240d5f", outputSchemaId: "147590cfd3e8e49d" },
2868
2877
  runDrift: { inputSchemaId: "c7cbf805dc240d5f", outputSchemaId: "0e53a44694740ca3" },
2869
2878
  runFileUrls: { inputSchemaId: "51ef287568ad1a89", outputSchemaId: "a4d0adfc384cd578" },
@@ -2908,6 +2917,7 @@ var generatedOpenApiOperationContracts = {
2908
2917
  steerRun: { inputSchemaId: "e924e4b953c1c480", outputSchemaId: "eefcb71686e5fc66" },
2909
2918
  stopRun: { inputSchemaId: "85052ed9c5ab32f1", outputSchemaId: "c6630404afb21b98" },
2910
2919
  stopRunnerReplica: { inputSchemaId: "7552c43f668085dc", outputSchemaId: "8163b6a455de3acf" },
2920
+ submitChangeRequestReview: { inputSchemaId: "c3aabaf7fbba522d", outputSchemaId: "32a08d7d91ac1a5d" },
2911
2921
  takeRunAction: { inputSchemaId: "65a64ae3a3916e5c", outputSchemaId: "16038bd4fdc27f07" },
2912
2922
  unassignTeamTask: { inputSchemaId: "b3a4a685eec1c2ff", outputSchemaId: "c74ab999e37f9557" },
2913
2923
  unfollowWork: { inputSchemaId: "bfa33bb20e494b64", outputSchemaId: "de90438708568b06" },
@@ -4385,6 +4395,33 @@ var operationSpecs = [
4385
4395
  tags: ["change-requests"],
4386
4396
  summary: "Review or approve a ChangeRequest. Only a person signed in as themselves can approve, naming the head they read in `headCommitSha`, and not a ChangeRequest they opened; that approval is the independent Kitman approval readiness needs, and Loops waiting on `change_request.approval`, such as Shepherd, resume on it. An agent, or a tool acting for a person such as Code Mode, is refused an approval because it may be working in the Run that wrote the change; it can still comment or request changes."
4387
4397
  },
4398
+ {
4399
+ name: "submitChangeRequestReview",
4400
+ parameters: ["changeRequestId", "input"],
4401
+ namespacePath: ["changeRequests", "submitReview"],
4402
+ tags: ["change-requests"],
4403
+ summary: "Submit a review with comments anchored to diff lines (file, side, lines, head commit): Comment, Request changes or Approve. Request changes sends every comment as one note to the Run working on the ChangeRequest, or starts the next Run of the Loop that wrote it on its branch, and says where the note went."
4404
+ },
4405
+ {
4406
+ name: "listChangeRequestReviewComments",
4407
+ parameters: ["changeRequestId"],
4408
+ namespacePath: ["changeRequests", "reviewComments"],
4409
+ tags: ["change-requests"],
4410
+ summary: "The ChangeRequest's review comments, oldest first, each with where it stands: queued, sent or not delivered to a Run, resolved, and the commit that Run pushed after reading it."
4411
+ },
4412
+ {
4413
+ name: "resolveChangeRequestReviewComment",
4414
+ parameters: ["changeRequestId", "commentId", "input"],
4415
+ namespacePath: ["changeRequests", "resolveReviewComment"],
4416
+ tags: ["change-requests"]
4417
+ },
4418
+ {
4419
+ name: "redeliverChangeRequestReview",
4420
+ parameters: ["changeRequestId", "reviewId", ["input", false]],
4421
+ namespacePath: ["changeRequests", "redeliverReview"],
4422
+ tags: ["change-requests"],
4423
+ summary: "Send a request for changes whose note reached no agent again, to the Run working on the ChangeRequest now, or to the next Run it starts."
4424
+ },
4388
4425
  {
4389
4426
  name: "reportPipelineResult",
4390
4427
  parameters: ["changeRequestId", "input"],
@@ -7678,6 +7715,18 @@ class KitmanClient {
7678
7715
  recordChangeRequestReview(changeRequestId, input) {
7679
7716
  return this.run(this.effectClient.recordChangeRequestReview(changeRequestId, input));
7680
7717
  }
7718
+ submitChangeRequestReview(changeRequestId, input) {
7719
+ return this.run(this.effectClient.submitChangeRequestReview(changeRequestId, input));
7720
+ }
7721
+ listChangeRequestReviewComments(changeRequestId) {
7722
+ return this.run(this.effectClient.listChangeRequestReviewComments(changeRequestId));
7723
+ }
7724
+ resolveChangeRequestReviewComment(changeRequestId, commentId, input) {
7725
+ return this.run(this.effectClient.resolveChangeRequestReviewComment(changeRequestId, commentId, input));
7726
+ }
7727
+ redeliverChangeRequestReview(changeRequestId, reviewId, input) {
7728
+ return this.run(this.effectClient.redeliverChangeRequestReview(changeRequestId, reviewId, input));
7729
+ }
7681
7730
  reportPipelineResult(changeRequestId, input) {
7682
7731
  return this.run(this.effectClient.reportPipelineResult(changeRequestId, input));
7683
7732
  }
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-gnxa022f.js";
7
+ } from "./chunk-m9revazf.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -247,7 +247,7 @@ import {
247
247
  installCommand,
248
248
  checkServicesFile,
249
249
  checkServices
250
- } from "./chunk-wx3cx43j.js";
250
+ } from "./chunk-cjzcg317.js";
251
251
  import {
252
252
  join,
253
253
  interrupt,
@@ -304,8 +304,8 @@ import {
304
304
  applyAgentEnvironmentMaterialization2,
305
305
  isPathWithin2,
306
306
  skillIdentity2
307
- } from "./chunk-f0h8f3kw.js";
308
- import"./chunk-xgdyj09a.js";
307
+ } from "./chunk-rt5czket.js";
308
+ import"./chunk-9sbkchpk.js";
309
309
  import {
310
310
  egressAllowed,
311
311
  writeSecretRegistry,
@@ -330,8 +330,8 @@ import {
330
330
  rpcRunFiles,
331
331
  programHostsEnv,
332
332
  undeclaredHostsEnv
333
- } from "./chunk-q44g4vf7.js";
334
- import"./chunk-51ye0af0.js";
333
+ } from "./chunk-1625ftev.js";
334
+ import"./chunk-nve7atre.js";
335
335
  import {
336
336
  nextInt
337
337
  } from "./chunk-gq7y5v3e.js";
@@ -339,7 +339,7 @@ import {
339
339
  ChildProcessSpawner,
340
340
  make3
341
341
  } from "./chunk-mtkstrh3.js";
342
- import"./chunk-5wnjn5r0.js";
342
+ import"./chunk-nh27qwj1.js";
343
343
 
344
344
  // packages/core/src/sync-kit.ts
345
345
  import { createHash } from "crypto";
@@ -24,15 +24,15 @@ import {
24
24
  tomlKeyPath2,
25
25
  kitmanSkillEntry,
26
26
  isPathWithin2
27
- } from "./chunk-f0h8f3kw.js";
27
+ } from "./chunk-rt5czket.js";
28
28
  import {
29
29
  instructionsStart,
30
30
  instructionsEnd,
31
31
  renderMcpServer,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-wx3cx43j.js";
35
- import"./chunk-xgdyj09a.js";
34
+ } from "./chunk-cjzcg317.js";
35
+ import"./chunk-9sbkchpk.js";
36
36
  import"./chunk-mtkstrh3.js";
37
37
 
38
38
  // packages/agent-runtime/src/kit-setup-sync.ts
@@ -312,7 +312,7 @@ Open the item and use **Start run** in it: pick the Loop, and give what is missi
312
312
  path: "inbox",
313
313
  level: 1,
314
314
  link: "https://kitman.sh/knowledge/docs/inbox",
315
- text: `What arrives in your Inbox, acting on it in place, the review queue and the My Teams view.
315
+ text: `What arrives in your Inbox, acting on it in place, the review queue, commenting on a diff and the My Teams view.
316
316
 
317
317
  Kitman opens on your Inbox: the work that needs you, and news about the work you care about. Each item is one Task, Run or Proposal, with every Notification about it, newest first, and what is new since you last looked.`
318
318
  },
@@ -370,6 +370,21 @@ From the keyboard: **J** and **K** move between items, **A** approves, **R** req
370
370
  | Memory | Accept it | Reject it |
371
371
 
372
372
  An item leaves the queue as soon as it is resolved, here or anywhere else: on the forge, on the Run page, in the CLI or by its Run taking a default. A ChangeRequest leaves once it closes or merges, or once a person approves or requests changes on the head under review; it comes back when a new head is pushed. A review on GitHub or GitLab counts once the forge's webhook reports it, and only a person's: not a bot's, not the account Kitman reviews as, and not approval rules that pass with no approver.`
373
+ },
374
+ {
375
+ title: "Inbox \u203A Commenting on a diff",
376
+ path: "inbox#commenting-on-a-diff",
377
+ level: 2,
378
+ link: "https://kitman.sh/knowledge/docs/inbox#commenting-on-a-diff",
379
+ text: `## Commenting on a diff
380
+
381
+ Wherever Kitman shows a ChangeRequest's diff, select one or more lines to comment on them. The comment box names the file, the side (old or new), the lines and the head commit you read. Each comment waits in your pending review, in this browser, until you submit the review:
382
+
383
+ - **Comment** records the comments on the ChangeRequest.
384
+ - **Request changes** records the review as changes requested and sends every comment, with its file, lines and head commit, as one note to the Run working on the ChangeRequest. An agent writing that branch reads it at once in its live Session; otherwise the next Step that writes the branch reads it, in that Run or a Run it called on the branch, such as Shepherd. Review and Release Steps never get it. When no Run is working on it, the Loop that wrote it starts a new Run on that ChangeRequest's branch from your review, which reads the note first. Kitman shows whether the note is queued, delivered or not delivered, and why; **Send again** sends a note that reached no agent to where the work is now.
385
+ - **Approve** approves the head you read, with your comments.
386
+
387
+ Each comment then shows where it stands: **Sent** once the agent got the note, **Addressed in** the commit the agent's Run pushed after reading it once that commit changed the comment's lines, or **Resolved** once a person resolves it. A comment is marked **Outdated** when a later head changed its lines or dropped them from the diff; a comment on a file the diff no longer shows is listed under the diff, with its status. Your pending review is kept for you alone: another person signed in to the same browser does not see it.`
373
388
  },
374
389
  {
375
390
  title: "Inbox \u203A My Teams",
@@ -1488,7 +1503,7 @@ var pathOfLink = (link) => {
1488
1503
  return page === null ? link : page[1] || "index";
1489
1504
  };
1490
1505
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
1491
- var pinnedLink2 = (link, version = "0.12.14") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1506
+ var pinnedLink2 = (link, version = "0.12.15") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1492
1507
  var pageOf = (path) => path.split("#")[0];
1493
1508
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
1494
1509
  function excerpt(text, queryTerms) {
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-wx3cx43j.js";
126
+ } from "./chunk-cjzcg317.js";
127
127
 
128
128
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
129
129
  class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-wx3cx43j.js";
22
+ } from "./chunk-cjzcg317.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-5wnjn5r0.js";
28
+ } from "./chunk-nh27qwj1.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -4,9 +4,9 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-51ye0af0.js";
8
- import"./chunk-5wnjn5r0.js";
9
- import"./chunk-wx3cx43j.js";
7
+ } from "./chunk-nve7atre.js";
8
+ import"./chunk-nh27qwj1.js";
9
+ import"./chunk-cjzcg317.js";
10
10
  import"./chunk-q5w3v4k1.js";
11
11
  import"./chunk-0h49y8gf.js";
12
12
  import"./chunk-zw3gf6r5.js";
@@ -36,10 +36,10 @@ import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-wx3cx43j.js";
39
+ } from "./chunk-cjzcg317.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-xgdyj09a.js";
42
+ } from "./chunk-9sbkchpk.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -228,7 +228,7 @@ import {
228
228
  harnessNames,
229
229
  herdrRunnerCapabilities2,
230
230
  declaredChecks
231
- } from "./chunk-wx3cx43j.js";
231
+ } from "./chunk-cjzcg317.js";
232
232
  import {
233
233
  Id
234
234
  } from "./chunk-q5w3v4k1.js";
@@ -989,10 +989,10 @@ var sandboxMissing = (sandbox, missing) => ({
989
989
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
990
990
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
991
991
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
992
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-mxq6zpkw.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
992
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-55sk24xq.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
993
993
  });
994
994
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
995
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-mxq6zpkw.js")), (module) => module.updateHerdrCore(options))
995
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-55sk24xq.js")), (module) => module.updateHerdrCore(options))
996
996
  });
997
997
  var herdrCoreMissing = (error) => {
998
998
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1412,7 +1412,7 @@ var syncTargets = (harness) => gen(function* () {
1412
1412
  });
1413
1413
  var syncKits = (input) => gen(function* () {
1414
1414
  const fs = yield* FileSystem;
1415
- const { syncKitSetup } = yield* promise(() => import("./chunk-hhnx6314.js"));
1415
+ const { syncKitSetup } = yield* promise(() => import("./chunk-kedmv3za.js"));
1416
1416
  const harnesses = yield* syncTargets(input.harness);
1417
1417
  const chain = yield* input.client.getKitChain(input.workspaceId);
1418
1418
  for (const { name, problem } of chain.skipped)
@@ -2331,7 +2331,7 @@ var package_default = {
2331
2331
  };
2332
2332
 
2333
2333
  // apps/cli/src/scaffold.ts
2334
- var cliVersion = "0.12.14";
2334
+ var cliVersion = "0.12.15";
2335
2335
  var packageJson = (name, scaffold) => `${JSON.stringify({
2336
2336
  name,
2337
2337
  private: true,
@@ -2483,7 +2483,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2483
2483
 
2484
2484
  // apps/cli/src/commands.ts
2485
2485
  var ClientId = "kitman-cli";
2486
- var agentRuntime = promise(() => import("./chunk-bzq3bz0d.js"));
2486
+ var agentRuntime = promise(() => import("./chunk-hkwxb1am.js"));
2487
2487
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2488
2488
  defaultValue: () => gen(function* () {
2489
2489
  const tui = yield* tryPromise({
@@ -3507,7 +3507,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3507
3507
  });
3508
3508
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3509
3509
  defaultValue: () => (options) => gen(function* () {
3510
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-0300vp5q.js"));
3510
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-pg4tyn18.js"));
3511
3511
  return yield* makeRunnerRpcClient({
3512
3512
  runnerId: options.runnerId,
3513
3513
  bearer: options.bearer,
@@ -4039,7 +4039,7 @@ function mcpCommand(args) {
4039
4039
  if (command.action === "run") {
4040
4040
  if (command.args.length > 0)
4041
4041
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4042
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-br7t2pre.js"));
4042
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-ekr50hg6.js"));
4043
4043
  return yield* runMcpServerCommand({ flags: command.flags });
4044
4044
  }
4045
4045
  if (command.action !== "setup")
@@ -4527,7 +4527,7 @@ function programLoopCommand(command) {
4527
4527
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4528
4528
  });
4529
4529
  }
4530
- var docsModule = promise(() => import("./chunk-tfd4pnnt.js"));
4530
+ var docsModule = promise(() => import("./chunk-f8ck3syn.js"));
4531
4531
  function docsCommand(args) {
4532
4532
  return gen(function* () {
4533
4533
  const command = parseCommand(args);
@@ -5361,9 +5361,9 @@ function changeRequestCommand(args) {
5361
5361
  yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
5362
5362
  });
5363
5363
  }
5364
- var KitWriter = map8(promise(() => import("./chunk-x7574rns.js")), (build) => build.writeKit);
5364
+ var KitWriter = map8(promise(() => import("./chunk-44mcajbw.js")), (build) => build.writeKit);
5365
5365
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5366
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-x7574rns.js")), (build) => build.buildKit(directory))
5366
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-44mcajbw.js")), (build) => build.buildKit(directory))
5367
5367
  });
5368
5368
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5369
5369
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
package/dist/index.js CHANGED
@@ -14,6 +14,6 @@ if (args[0] === "srt") {
14
14
  const { runOpencodeReader } = await import("./chunk-5zhh41gb.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-hh7rg13h.js");
17
+ const { runCli } = await import("./chunk-saeb3621.js");
18
18
  runCli(args);
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/cli",
3
- "version": "0.12.14",
3
+ "version": "0.12.15",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {