@kitman-sh/cli 0.45.0 → 0.47.0

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.
@@ -9,9 +9,9 @@ import {
9
9
  readOpencode2,
10
10
  databaseStamp2,
11
11
  runOpencodeReader2
12
- } from "./chunk-8gkrs473.js";
13
- import"./chunk-fqh4pj6b.js";
14
- import"./chunk-5smh4dp2.js";
12
+ } from "./chunk-6ne389p2.js";
13
+ import"./chunk-zr1kvjzj.js";
14
+ import"./chunk-xajmb07d.js";
15
15
  import"./chunk-k462v2v7.js";
16
16
  export {
17
17
  databaseStamp2 as databaseStamp,
@@ -1,4 +1,8 @@
1
1
  // @bun
2
+ import {
3
+ FileSystem,
4
+ Path
5
+ } from "./chunk-xajmb07d.js";
2
6
  import {
3
7
  isObject,
4
8
  isUint8Array,
@@ -14,16 +18,12 @@ import {
14
18
  decodeJsonString,
15
19
  encodePrettyJsonString
16
20
  } from "./chunk-k462v2v7.js";
17
- import {
18
- FileSystem,
19
- Path
20
- } from "./chunk-5smh4dp2.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-g26y214g.js";
26
+ } from "./chunk-0hb5d4rz.js";
27
27
  import {
28
28
  instructionsStart,
29
29
  instructionsEnd,
@@ -31,9 +31,9 @@ import {
31
31
  antigravityPlugins,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-69y8j7fs.js";
35
- import"./chunk-es6rnmyw.js";
36
- import"./chunk-fqh4pj6b.js";
34
+ } from "./chunk-qvvph24z.js";
35
+ import"./chunk-zr1kvjzj.js";
36
+ import"./chunk-e2dszepq.js";
37
37
  import"./chunk-4vxbxjf8.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
@@ -202,6 +202,7 @@ import {
202
202
  is,
203
203
  decodeUnknownEffect2,
204
204
  decodeEffect,
205
+ decodeUnknownExit,
205
206
  decodeUnknownOption,
206
207
  decodeOption,
207
208
  make17,
@@ -271,6 +272,7 @@ import {
271
272
  makeEquivalence,
272
273
  Clock,
273
274
  currentTimeMillis,
275
+ toNumber,
274
276
  bytes,
275
277
  BadArgument,
276
278
  systemError,
@@ -335,7 +337,7 @@ import {
335
337
  optionalEnv,
336
338
  harnessesUnsupportedInSrt2,
337
339
  harnessesUnsupportedInDocker2
338
- } from "./chunk-5smh4dp2.js";
340
+ } from "./chunk-xajmb07d.js";
339
341
  import {
340
342
  ExitCode,
341
343
  ProcessId,
@@ -346,7 +348,7 @@ import {
346
348
  make2,
347
349
  parseFdName,
348
350
  fdName
349
- } from "./chunk-fqh4pj6b.js";
351
+ } from "./chunk-zr1kvjzj.js";
350
352
  import {
351
353
  isDateTime,
352
354
  Numeric,
@@ -360,7 +362,6 @@ import {
360
362
  SecretHosts,
361
363
  isSecretReference
362
364
  } from "./chunk-4vxbxjf8.js";
363
-
364
365
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
365
366
  var makeEquivalence3 = Tuple;
366
367
 
@@ -897,15 +898,6 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
897
898
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
898
899
  var runMain = runMain2;
899
900
 
900
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
901
- var BigInt2 = globalThis.BigInt;
902
- var toNumber = (b) => {
903
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
904
- return none();
905
- }
906
- return some(Number(b));
907
- };
908
-
909
901
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
910
902
  var makeUnsafe = makeUnsafe6;
911
903
  var make18 = make3;
@@ -6377,6 +6369,184 @@ var checkTests = (reports, printed = []) => {
6377
6369
  };
6378
6370
  };
6379
6371
 
6372
+ // packages/core/src/question-answer.ts
6373
+ var AnswerSchemaJson = Record(String4, Json);
6374
+ var description = optionalKey(String4);
6375
+ var Count = Int.check(isGreaterThanOrEqualTo(0));
6376
+ var Nested = suspend4(() => DeclaredAnswerSchema);
6377
+ var DeclaredAnswerSchema = Union([
6378
+ Struct({ description, type: Literal("boolean"), const: optionalKey(Boolean2) }),
6379
+ Struct({
6380
+ description,
6381
+ type: Literal("string"),
6382
+ const: optionalKey(String4),
6383
+ enum: optionalKey(ArraySchema(String4).check(isMinLength(1))),
6384
+ minLength: optionalKey(Count),
6385
+ maxLength: optionalKey(Count)
6386
+ }),
6387
+ Struct({
6388
+ description,
6389
+ type: Literal("integer"),
6390
+ const: optionalKey(Int),
6391
+ minimum: optionalKey(Int),
6392
+ maximum: optionalKey(Int)
6393
+ }),
6394
+ Struct({
6395
+ description,
6396
+ type: Literal("array"),
6397
+ items: Nested,
6398
+ minItems: optionalKey(Count),
6399
+ maxItems: optionalKey(Count)
6400
+ }),
6401
+ Struct({
6402
+ description,
6403
+ type: Literal("object"),
6404
+ properties: Record(String4, Nested),
6405
+ required: ArraySchema(String4),
6406
+ additionalProperties: Literal(false)
6407
+ }),
6408
+ Struct({ description, anyOf: ArraySchema(Nested).check(isMinLength(1)) })
6409
+ ]);
6410
+ var decodeDeclared = decodeUnknownExit(DeclaredAnswerSchema, { onExcessProperty: "error" });
6411
+ var inverted = (low, high) => low !== undefined && high !== undefined && low > high;
6412
+ var declarationProblem = (schema, path) => {
6413
+ if ("anyOf" in schema) {
6414
+ for (const [index, form] of schema.anyOf.entries()) {
6415
+ const problem = declarationProblem(form, `${path}anyOf[${index}].`);
6416
+ if (problem !== undefined)
6417
+ return problem;
6418
+ }
6419
+ return;
6420
+ }
6421
+ switch (schema.type) {
6422
+ case "boolean":
6423
+ return;
6424
+ case "string":
6425
+ return inverted(schema.minLength, schema.maxLength) ? `${path}minLength is past maxLength` : undefined;
6426
+ case "integer":
6427
+ return inverted(schema.minimum, schema.maximum) ? `${path}minimum is past maximum` : undefined;
6428
+ case "array":
6429
+ return inverted(schema.minItems, schema.maxItems) ? `${path}minItems is past maxItems` : declarationProblem(schema.items, `${path}items.`);
6430
+ case "object": {
6431
+ const missing = schema.required.find((key) => !Object.hasOwn(schema.properties, key));
6432
+ if (missing !== undefined)
6433
+ return `${path}required names "${missing}", which is not one of its properties`;
6434
+ for (const [key, field] of Object.entries(schema.properties)) {
6435
+ const problem = declarationProblem(field, `${path}properties.${key}.`);
6436
+ if (problem !== undefined)
6437
+ return problem;
6438
+ }
6439
+ return;
6440
+ }
6441
+ }
6442
+ };
6443
+ var decodeAnswerSchema = (declared) => {
6444
+ const decoded = decodeDeclared(declared);
6445
+ if (decoded._tag === "Failure")
6446
+ return {
6447
+ problem: `The answer schema is not one Kitman supports: boolean, string, integer, array, object with additionalProperties false, or anyOf, each with only their own keywords`
6448
+ };
6449
+ const problem = declarationProblem(decoded.value, "");
6450
+ return problem === undefined ? { schema: decoded.value } : { problem: `The answer schema is invalid: ${problem}` };
6451
+ };
6452
+ var shown = (value) => encodeJsonStringSync(value);
6453
+ var valueProblem = (schema, value, path) => {
6454
+ const at = path === "" ? "The answer" : path;
6455
+ if ("anyOf" in schema)
6456
+ return schema.anyOf.some((form) => valueProblem(form, value, path) === undefined) ? undefined : `${at} is none of the forms it accepts`;
6457
+ switch (schema.type) {
6458
+ case "boolean":
6459
+ if (!isBoolean2(value))
6460
+ return `${at} must be true or false`;
6461
+ return schema.const !== undefined && value !== schema.const ? `${at} must be ${schema.const}` : undefined;
6462
+ case "string":
6463
+ if (!isString2(value))
6464
+ return `${at} must be a string`;
6465
+ if (schema.const !== undefined && value !== schema.const)
6466
+ return `${at} must be ${shown(schema.const)}`;
6467
+ if (schema.enum !== undefined && !schema.enum.includes(value))
6468
+ return `${at} must be one of ${schema.enum.map(shown).join(", ")}`;
6469
+ if (schema.minLength !== undefined && value.length < schema.minLength)
6470
+ return `${at} must be at least ${schema.minLength} characters`;
6471
+ return schema.maxLength !== undefined && value.length > schema.maxLength ? `${at} must be at most ${schema.maxLength} characters` : undefined;
6472
+ case "integer":
6473
+ if (!Number.isInteger(value))
6474
+ return `${at} must be an integer`;
6475
+ if (schema.const !== undefined && value !== schema.const)
6476
+ return `${at} must be ${schema.const}`;
6477
+ if (schema.minimum !== undefined && Number(value) < schema.minimum)
6478
+ return `${at} must be at least ${schema.minimum}`;
6479
+ return schema.maximum !== undefined && Number(value) > schema.maximum ? `${at} must be at most ${schema.maximum}` : undefined;
6480
+ case "array": {
6481
+ if (!Array.isArray(value))
6482
+ return `${at} must be an array`;
6483
+ if (schema.minItems !== undefined && value.length < schema.minItems)
6484
+ return `${at} must hold at least ${schema.minItems} item${schema.minItems === 1 ? "" : "s"}`;
6485
+ if (schema.maxItems !== undefined && value.length > schema.maxItems)
6486
+ return `${at} must hold at most ${schema.maxItems} item${schema.maxItems === 1 ? "" : "s"}`;
6487
+ for (const [index, item] of value.entries()) {
6488
+ const problem = valueProblem(schema.items, item, `${path === "" ? "" : path}[${index}]`);
6489
+ if (problem !== undefined)
6490
+ return problem;
6491
+ }
6492
+ return;
6493
+ }
6494
+ case "object": {
6495
+ if (!isJsonObject(value))
6496
+ return `${at} must be an object`;
6497
+ const extra = Object.keys(value).find((key) => !Object.hasOwn(schema.properties, key));
6498
+ if (extra !== undefined)
6499
+ return `${at} must not have "${extra}"`;
6500
+ const missing = schema.required.find((key) => !Object.hasOwn(value, key));
6501
+ if (missing !== undefined)
6502
+ return `${at} must have "${missing}"`;
6503
+ for (const [key, field] of Object.entries(schema.properties)) {
6504
+ const given = value[key];
6505
+ if (given === undefined)
6506
+ continue;
6507
+ const problem = valueProblem(field, given, path === "" ? key : `${path}.${key}`);
6508
+ if (problem !== undefined)
6509
+ return problem;
6510
+ }
6511
+ return;
6512
+ }
6513
+ }
6514
+ };
6515
+ var sketch = (schema) => {
6516
+ if ("anyOf" in schema)
6517
+ return schema.anyOf.map(sketch).join(" or ");
6518
+ switch (schema.type) {
6519
+ case "boolean":
6520
+ return schema.const === undefined ? "<true or false>" : String(schema.const);
6521
+ case "string":
6522
+ if (schema.const !== undefined)
6523
+ return shown(schema.const);
6524
+ return schema.enum === undefined ? '"<text>"' : schema.enum.map(shown).join(" or ");
6525
+ case "integer":
6526
+ return schema.const === undefined ? "<integer>" : String(schema.const);
6527
+ case "array":
6528
+ return `[${sketch(schema.items)}, \u2026]`;
6529
+ case "object":
6530
+ return `{${Object.entries(schema.properties).map(([key, field]) => `${shown(key)}${schema.required.includes(key) ? "" : "?"}:${sketch(field)}`).join(",")}}`;
6531
+ }
6532
+ };
6533
+ var answerAccepts = (declared) => {
6534
+ const read = decodeAnswerSchema(declared);
6535
+ if ("problem" in read)
6536
+ return "JSON its schema accepts";
6537
+ const described = read.schema.description?.trim();
6538
+ return redactCredentialText(described === undefined || described === "" ? `JSON like ${sketch(read.schema)}` : described);
6539
+ };
6540
+ var answerProblem = (schema, answer) => {
6541
+ const decoded = decodeJsonStringOption(answer);
6542
+ const problem = decoded._tag === "None" ? "The answer is not JSON" : valueProblem(schema, decoded.value, "");
6543
+ return problem === undefined ? undefined : redactCredentialText(`${problem}. It accepts ${answerAccepts(schema)}`);
6544
+ };
6545
+ var answerValue = (schema, answer) => {
6546
+ const decoded = decodeJsonStringOption(answer);
6547
+ return decoded._tag === "Some" && valueProblem(schema, decoded.value, "") === undefined ? { value: decoded.value } : undefined;
6548
+ };
6549
+
6380
6550
  // packages/core/src/loop.ts
6381
6551
  var LoopStatuses = ["draft", "active", "disabled", "archived"];
6382
6552
  var LoopStepImplementationKinds = [
@@ -6603,6 +6773,7 @@ var LoopSafeInternalReferenceString = String4.check(isMinLength(1), isMaxLength(
6603
6773
  var loopSafeTextMaxLength = 4000;
6604
6774
  var LoopSafeText = String4.check(isMaxLength(loopSafeTextMaxLength), isPattern(new RegExp(`^(?![\\s\\S]*(?:${LoopCredentialContentPattern}|[A-Za-z][A-Za-z0-9+.-]*://(?:[^\\s/?#]*@|[^\\s?#]*\\?)))[\\s\\S]*$`, "u")));
6605
6775
  var recommendedDefault = (recommended) => recommended !== undefined && is(LoopSafeText)(recommended) ? recommended : undefined;
6776
+ var isLoopSafeText = is(LoopSafeText);
6606
6777
  var reportedModelName = (named) => /^[A-Za-z0-9][\w.:/@+[\]-]{0,199}$/u.test(named) && is(LoopSafeText)(named) && redactCredentialText(named) === named ? named : undefined;
6607
6778
  var QuestionText = String4;
6608
6779
  var LoopSafeOutputDataString = String4.check(isMaxLength(4000), isPattern(new RegExp(LoopSafeInternalReferencePattern, "u")));
@@ -7216,6 +7387,7 @@ var Question = Struct({
7216
7387
  prompt: QuestionText,
7217
7388
  options: optionalKey(ArraySchema(QuestionText)),
7218
7389
  freeText: optionalKey(Boolean2),
7390
+ answerSchema: optionalKey(AnswerSchemaJson),
7219
7391
  optionDescriptions: optionalKey(Record(String4, QuestionText)),
7220
7392
  recommended: optionalKey(QuestionText),
7221
7393
  recommendationReason: optionalKey(QuestionText),
@@ -15993,6 +16165,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
15993
16165
  step: String4,
15994
16166
  prompt: String4,
15995
16167
  options: optional(ArraySchema(String4)),
16168
+ answerSchema: optional(AnswerSchemaJson),
15996
16169
  optionDescriptions: optional(Record(String4, String4)),
15997
16170
  recommended: optional(String4),
15998
16171
  recommendationReason: optional(String4),
@@ -17888,4 +18061,4 @@ function serviceChecks(declaration) {
17888
18061
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
17889
18062
  }
17890
18063
 
17891
- export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, verificationCap, PinnedImage, RunnerSettings, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepLogDirFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, WorkAvailable, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
18064
+ export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, decodeAnswerSchema, answerAccepts, answerProblem, answerValue, loopSafeTextMaxLength, recommendedDefault, isLoopSafeText, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, verificationCap, PinnedImage, RunnerSettings, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepLogDirFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, WorkAvailable, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
@@ -570,7 +570,7 @@ Pause holds a Run and its Child Runs without stopping them: Runners are offered
570
570
 
571
571
  Before you are asked to approve a plan, a plan reviewer checks each of its tickets: one Promise with its Out of scope list, small enough for one agent session, no design decision left open, and the right blockers. When it has concerns, the planner revises the plan once and the reviewer checks it again. What it still disputes is listed at the end of the plan under **Still disputed**, with the planner's reason when it gave one. Each revision you ask for is checked the same way.
572
572
 
573
- A Plan Run waits for a person to approve each revision of its plan, the first and each one a review or the menu's Refine makes, before it offers to build or file it. Its Run page opens on the **Plan** tab while a revision waits for review or is being revised, and the tab renders the plan as a document. Select any text in it, a line, a sentence or a single word, to comment on that quote; your comments collect into one review, kept in the browser until you send it. **Request changes** sends every comment to the planner with its quote, its line in the plan's Markdown and the revision it is on, and the tab stays open to say the planner is revising. The next revision shows **Changes since revision N**, the diff from the last one, and marks each comment of your review **Addressed**, with how, or **Open**, with why when the planner says why it did not act on it. **Approve plan** lets the Run carry on; until then it waits. A Run started with \`implement\` approves a revision nobody answers within an hour, or at once when nobody attends the Run. Words typed in place of a review, in the Inbox or the CLI, reach the planner as one comment on the whole revision.`
573
+ A Plan Run waits for a person to approve each revision of its plan, the first and each one a review or the menu's Refine makes, before it offers to build or file it. Its Run page opens on the **Plan** tab while a revision waits for review or is being revised, and the tab renders the plan as a document. Select any text in it, a line, a sentence or a single word, to comment on that quote; your comments collect into one review, kept in the browser until you send it. **Request changes** sends every comment to the planner with its quote, its line in the plan's Markdown and the revision it is on, and the tab stays open to say the planner is revising. The next revision shows **Changes since revision N**, the diff from the last one, and marks each comment of your review **Addressed**, with how, or **Open**, with why when the planner says why it did not act on it. **Approve plan** lets the Run carry on; until then it waits. A Run started with \`implement\` approves a revision nobody answers within an hour, or at once when nobody attends the Run. From the CLI or Code Mode's \`runs.answer\`, answer the review Question with \`{"approve":true}\` to approve, or with \`{"planReview":{"revision":<n>,"comments":[{"id":"c1","body":"<what should change>"}]}}\` to request changes, \`<n>\` being the revision it asks about; Enter at the CLI's question prompt approves. Kitman refuses any other answer, such as \`approve\`, \`lgtm\` or a review of another revision, says what it accepts, and leaves the Question open; at the CLI's prompt you answer again.`
574
574
  },
575
575
  {
576
576
  title: "Loop Operations Guide \u203A Constraints",
@@ -2230,7 +2230,7 @@ var pathOfLink = (link) => {
2230
2230
  return page === null ? link : page[1] || "index";
2231
2231
  };
2232
2232
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
2233
- var pinnedLink2 = (link, version = "0.45.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2233
+ var pinnedLink2 = (link, version = "0.47.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2234
2234
  var pageOf = (path) => path.split("#")[0];
2235
2235
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
2236
2236
  function excerpt(text, queryTerms) {