@kitman-sh/cli 0.13.8 → 0.13.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{chunk-q5w3v4k1.js → chunk-0tjg9eya.js} +1 -1
  2. package/dist/{chunk-zz589n7a.js → chunk-0wj65j5e.js} +12 -12
  3. package/dist/{chunk-7bytsxkf.js → chunk-1ht6jwzm.js} +13 -12
  4. package/dist/{chunk-5zth85pj.js → chunk-53qp6kcp.js} +2 -2
  5. package/dist/{chunk-gj1padza.js → chunk-69fcvx7d.js} +39 -39
  6. package/dist/{chunk-eg1n8wvf.js → chunk-6jtjcvnc.js} +44 -44
  7. package/dist/{chunk-vm2qy986.js → chunk-9gg1w4aa.js} +283 -375
  8. package/dist/{chunk-96svx416.js → chunk-a44ebqzx.js} +6 -6
  9. package/dist/{chunk-0h49y8gf.js → chunk-aezq3fyy.js} +74 -214
  10. package/dist/{chunk-gq7y5v3e.js → chunk-cw61zyh5.js} +1 -1
  11. package/dist/{chunk-5zhh41gb.js → chunk-ezv4p0zr.js} +4 -4
  12. package/dist/{chunk-gy9rf14f.js → chunk-fh58za51.js} +3 -3
  13. package/dist/{chunk-byeasm6x.js → chunk-hezxa6q5.js} +7 -7
  14. package/dist/{chunk-mtkstrh3.js → chunk-kq88aaa3.js} +4 -4
  15. package/dist/{chunk-cq2h8q9e.js → chunk-ksgt1tdc.js} +4 -4
  16. package/dist/{chunk-c4ccpwjy.js → chunk-pj3mer60.js} +4 -4
  17. package/dist/{chunk-zw3gf6r5.js → chunk-qjqa338f.js} +333 -94
  18. package/dist/{chunk-h1rmw7yk.js → chunk-qkjfx2ts.js} +14 -14
  19. package/dist/{chunk-08dyrk6y.js → chunk-rz18qefg.js} +10 -10
  20. package/dist/{chunk-gr17n0z3.js → chunk-s63fjc69.js} +25 -25
  21. package/dist/{chunk-cbpb2rww.js → chunk-tspf987k.js} +8 -8
  22. package/dist/{chunk-ff1r9vcq.js → chunk-v190zzc5.js} +1 -1
  23. package/dist/{chunk-a24jc5rx.js → chunk-wzr1n3zy.js} +7 -3
  24. package/dist/{chunk-z68rzf0f.js → chunk-x8sewxzm.js} +145 -145
  25. package/dist/{chunk-y1krmnbv.js → chunk-z5f7g1w1.js} +2 -2
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-zw3gf6r5.js";
21
+ } from "./chunk-qjqa338f.js";
22
22
 
23
23
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
24
24
  var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
@@ -1,4 +1,10 @@
1
1
  // @bun
2
+ import {
3
+ FileSystem,
4
+ Path,
5
+ optionalEnv,
6
+ tempDirectoryScoped
7
+ } from "./chunk-aezq3fyy.js";
2
8
  import {
3
9
  Reference,
4
10
  TaggedError,
@@ -11,7 +17,7 @@ import {
11
17
  fail7,
12
18
  flatMap3,
13
19
  exit,
14
- map8,
20
+ map7,
15
21
  as,
16
22
  catch_,
17
23
  catchReason,
@@ -25,21 +31,15 @@ import {
25
31
  isString2,
26
32
  encodePrettyJsonString,
27
33
  decodeJsonStringSync
28
- } from "./chunk-zw3gf6r5.js";
29
- import {
30
- FileSystem,
31
- Path,
32
- optionalEnv,
33
- tempDirectoryScoped
34
- } from "./chunk-0h49y8gf.js";
34
+ } from "./chunk-qjqa338f.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-vm2qy986.js";
39
+ } from "./chunk-9gg1w4aa.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-byeasm6x.js";
42
+ } from "./chunk-hezxa6q5.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -123,7 +123,7 @@ function manifestSkillPaths(manifest) {
123
123
  return isString2(item.skillPath) ? [item.skillPath] : [];
124
124
  }));
125
125
  }
126
- var readManifestSkillPaths2 = (manifestPath) => map8(readExistingText(manifestPath), (text) => manifestSkillPaths(parseJsonObject(text)));
126
+ var readManifestSkillPaths2 = (manifestPath) => map7(readExistingText(manifestPath), (text) => manifestSkillPaths(parseJsonObject(text)));
127
127
  var managedManifestPathForConfig = (paths, file) => gen(function* () {
128
128
  const fs = yield* FileSystem;
129
129
  const manifestRoot = managedManifestRootPath(paths, file);
@@ -944,7 +944,7 @@ var resolveGitSource = (subject, source, input) => gen(function* () {
944
944
  const resolver = yield* SourceResolver;
945
945
  const latest = input.versions === "latest";
946
946
  const ref = latest ? undefined : source.ref;
947
- const resolved = (isCommitHash(ref) ? succeed6(ref) : resolver.gitCommit(source.url, ref)).pipe(map8((commit) => ({ commit })), catch_((error) => succeed6({
947
+ const resolved = (isCommitHash(ref) ? succeed6(ref) : resolver.gitCommit(source.url, ref)).pipe(map7((commit) => ({ commit })), catch_((error) => succeed6({
948
948
  problem: `Kitman could not resolve ${subject} from ${source.url}${ref === undefined ? "" : ` at ${ref}`}: ${error.message}`
949
949
  })));
950
950
  if (input.requireReviewedSources !== true)
@@ -13,6 +13,7 @@ import {
13
13
  isSuccess2,
14
14
  addFinalizerExit,
15
15
  effectDiscard,
16
+ currentTimeMillis,
16
17
  forEach,
17
18
  promise,
18
19
  tryPromise,
@@ -24,7 +25,7 @@ import {
24
25
  flatMap3,
25
26
  andThen2,
26
27
  tap2,
27
- map8,
28
+ map7,
28
29
  orDie,
29
30
  context,
30
31
  contextWith,
@@ -75,12 +76,15 @@ import {
75
76
  toEquivalence,
76
77
  toCodecJson,
77
78
  Json
78
- } from "./chunk-zw3gf6r5.js";
79
+ } from "./chunk-qjqa338f.js";
80
+ import {
81
+ runForEach,
82
+ FileSystem
83
+ } from "./chunk-aezq3fyy.js";
79
84
  import {
80
85
  guard
81
- } from "./chunk-q5w3v4k1.js";
86
+ } from "./chunk-0tjg9eya.js";
82
87
  import {
83
- currentTimeMillis,
84
88
  WebCrypto,
85
89
  SafeJson,
86
90
  AgentSandboxNetwork,
@@ -105,11 +109,7 @@ import {
105
109
  KitDigest,
106
110
  KitSetup,
107
111
  RunnerRpcError
108
- } from "./chunk-vm2qy986.js";
109
- import {
110
- runForEach,
111
- FileSystem
112
- } from "./chunk-0h49y8gf.js";
112
+ } from "./chunk-9gg1w4aa.js";
113
113
 
114
114
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
115
115
  var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
@@ -350,7 +350,7 @@ class ManifestInvalid extends TaggedError2()("ManifestInvalid", {
350
350
  var JsonObjectSchema = Record(String4, Json);
351
351
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workflow/internal/crypto.js
352
352
  var encoder = /* @__PURE__ */ new TextEncoder;
353
- var makeHashDigest = (original) => WebCrypto.use((crypto) => map8(webCryptoDigest(crypto, sha256, encoder.encode(original)), (bytes) => encode(bytes).slice(0, 32)));
353
+ var makeHashDigest = (original) => WebCrypto.use((crypto) => map7(webCryptoDigest(crypto, sha256, encoder.encode(original)), (bytes) => encode(bytes).slice(0, 32)));
354
354
 
355
355
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workflow/Workflow.js
356
356
  var TypeId = "~effect/workflow/Workflow";
@@ -608,7 +608,8 @@ var ticketsProblem = (tickets) => {
608
608
  const { blocked } = wavesOf(tickets);
609
609
  return blocked.length === 0 ? undefined : cycleMessage(blocked);
610
610
  };
611
- var PlanTickets = ArraySchema(PlanTicket).check(makeFilter((tickets) => ticketsProblem(tickets) ?? true));
611
+ var planTicketsOf = (ticket) => ArraySchema(ticket).check(makeFilter((tickets) => ticketsProblem(tickets) ?? true));
612
+ var PlanTickets = planTicketsOf(PlanTicket);
612
613
 
613
614
  class BlockingCycle extends TaggedError2()("BlockingCycle", {
614
615
  tickets: ArraySchema(String4)
@@ -1123,7 +1124,7 @@ var programLease = (work) => ({
1123
1124
  });
1124
1125
  var rpcRunFiles = (rpc, lease) => ({
1125
1126
  createRunFile: (file) => rpc.createRunFile({ lease, ...file }),
1126
- runFileParts: (request) => map8(rpc.runFileParts({ lease, ...request, partNumbers: [...request.partNumbers] }), ({ parts }) => parts),
1127
+ runFileParts: (request) => map7(rpc.runFileParts({ lease, ...request, partNumbers: [...request.partNumbers] }), ({ parts }) => parts),
1127
1128
  completeRunFile: ({ parts, ...request }) => rpc.completeRunFile({ lease, ...request, ...parts === undefined ? undefined : { parts: [...parts] } })
1128
1129
  });
1129
1130
 
@@ -14,8 +14,8 @@ import {
14
14
  writeSrtSettings2,
15
15
  srtStepArgv2,
16
16
  srtArgv2
17
- } from "./chunk-0h49y8gf.js";
18
- import"./chunk-zw3gf6r5.js";
17
+ } from "./chunk-aezq3fyy.js";
18
+ import"./chunk-qjqa338f.js";
19
19
  export {
20
20
  compiled2 as compiled,
21
21
  harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
@@ -17,12 +17,12 @@ import {
17
17
  isSuccess,
18
18
  TaggedError,
19
19
  void_2,
20
- makeUnsafe5,
20
+ makeUnsafe4,
21
21
  _await,
22
22
  fail5,
23
23
  succeed4,
24
24
  doneUnsafe,
25
- makeUnsafe6,
25
+ makeUnsafe5,
26
26
  provide,
27
27
  close,
28
28
  buildWithScope,
@@ -30,6 +30,7 @@ import {
30
30
  provide2,
31
31
  provideMerge,
32
32
  squash,
33
+ currentTimeMillis,
33
34
  spaced,
34
35
  all3,
35
36
  forEach,
@@ -49,7 +50,7 @@ import {
49
50
  tap2,
50
51
  result,
51
52
  option2,
52
- map8,
53
+ map7,
53
54
  as,
54
55
  asVoid,
55
56
  catch_,
@@ -79,6 +80,8 @@ import {
79
80
  runSync,
80
81
  fnUntraced,
81
82
  fn,
83
+ makeUnsafe6,
84
+ formatIso,
82
85
  decodeUnknownEffect2,
83
86
  optionalKey,
84
87
  optional,
@@ -118,12 +121,9 @@ import {
118
121
  decodeJsonStringOption,
119
122
  encodeJsonStringSync,
120
123
  encodePrettyJsonString
121
- } from "./chunk-zw3gf6r5.js";
124
+ } from "./chunk-qjqa338f.js";
122
125
  import {
123
- currentTimeMillis,
124
126
  SecureRandom,
125
- makeUnsafe,
126
- formatIso,
127
127
  error,
128
128
  parseDate,
129
129
  currentDate,
@@ -170,13 +170,7 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-vm2qy986.js";
174
- import {
175
- guard,
176
- Id,
177
- Timestamp,
178
- ActorType
179
- } from "./chunk-q5w3v4k1.js";
173
+ } from "./chunk-9gg1w4aa.js";
180
174
  import {
181
175
  join,
182
176
  interrupt,
@@ -190,21 +184,27 @@ import {
190
184
  withDefault,
191
185
  option,
192
186
  String2
193
- } from "./chunk-0h49y8gf.js";
187
+ } from "./chunk-aezq3fyy.js";
188
+ import {
189
+ guard,
190
+ Id,
191
+ Timestamp,
192
+ ActorType
193
+ } from "./chunk-0tjg9eya.js";
194
194
  import {
195
195
  searchDocs2,
196
196
  readDoc2
197
- } from "./chunk-a24jc5rx.js";
197
+ } from "./chunk-wzr1n3zy.js";
198
198
  import {
199
199
  nextInt
200
- } from "./chunk-gq7y5v3e.js";
200
+ } from "./chunk-cw61zyh5.js";
201
201
  import {
202
202
  layerJson,
203
203
  make4,
204
204
  withHeaders,
205
205
  layerProtocolSocket,
206
206
  ConnectionHooks
207
- } from "./chunk-h1rmw7yk.js";
207
+ } from "./chunk-qkjfx2ts.js";
208
208
 
209
209
  // apps/cli/src/mcp.ts
210
210
  import { tmpdir as tmpdir2 } from "os";
@@ -2043,7 +2043,7 @@ function connectKitmanLiveRoot(protocol) {
2043
2043
  const authenticate = async (input) => {
2044
2044
  close2();
2045
2045
  const brokenListeners = new Set;
2046
- const scope = makeUnsafe6();
2046
+ const scope = makeUnsafe5();
2047
2047
  let connected = false;
2048
2048
  const hooks = succeed5(ConnectionHooks)({
2049
2049
  onConnect: sync2(() => {
@@ -2085,7 +2085,7 @@ function call(connection, effect) {
2085
2085
  }
2086
2086
  function openStream(connection, stream, isOpened, deliver) {
2087
2087
  return new Promise((resolve, reject) => {
2088
- const opened = makeUnsafe5();
2088
+ const opened = makeUnsafe4();
2089
2089
  const fiber = runFork(withHeaders2(connection, runForEach(stream, (message) => isOpened(message) ? succeed4(opened, message) : promise(() => deliver(message)))).pipe(mapError2(toError), tapError2((error) => fail5(opened, error)), ensuring2(fail5(opened, toError({ message: "Live subscription ended before it opened" }))), provide(connection.scope)));
2090
2090
  runPromise(_await(opened)).then((message) => resolve({
2091
2091
  opened: message,
@@ -5365,7 +5365,7 @@ process.stdin.on('data', chunk => {
5365
5365
  var bootGuest = gen(function* () {
5366
5366
  const assets = yield* codeModeAssets;
5367
5367
  const nonce = yield* (yield* SecureRandom).uuidV4();
5368
- const result = makeUnsafe5();
5368
+ const result = makeUnsafe4();
5369
5369
  let call = () => Promise.reject(new Error("Code Mode guest has no execution"));
5370
5370
  yield* sweepStaleSidecarTemp;
5371
5371
  const fs = yield* FileSystem;
@@ -5456,12 +5456,12 @@ var takeGuest = suspend3(() => {
5456
5456
  expireWhenIdle(booting);
5457
5457
  return join(taken);
5458
5458
  });
5459
- var outcomeOf = (warm) => raceFirst(map8(_await(warm.result), (text) => ({ text })), tryPromise({
5459
+ var outcomeOf = (warm) => raceFirst(map7(_await(warm.result), (text) => ({ text })), tryPromise({
5460
5460
  try: () => warm.guest.wait(),
5461
5461
  catch: (error) => new CodeModeExecutionError({
5462
5462
  message: `Code Mode secure-exec failed: ${error instanceof Error ? error.message : "unknown error"}`
5463
5463
  })
5464
- }).pipe(flatMap3((exitCode) => exitCode === 0 ? _await(warm.result).pipe(timeoutOrElse({ duration: millis(100), orElse: () => succeed6("{}") }), map8((text) => ({ text }))) : succeed6({ exitCode }))));
5464
+ }).pipe(flatMap3((exitCode) => exitCode === 0 ? _await(warm.result).pipe(timeoutOrElse({ duration: millis(100), orElse: () => succeed6("{}") }), map7((text) => ({ text }))) : succeed6({ exitCode }))));
5465
5465
  var executeCodeMode = fnUntraced(function* (input, options) {
5466
5466
  const startedAt = yield* currentTimeMillis;
5467
5467
  const codeHash = digestSha256(input.code, "hex");
@@ -5479,7 +5479,7 @@ var executeCodeMode = fnUntraced(function* (input, options) {
5479
5479
  return yield* new CodeModeExecutionError({
5480
5480
  message: `Code Mode secure-exec failed with exit code ${outcome.exitCode}`
5481
5481
  });
5482
- const returned = yield* decodeJsonString(outcome.text).pipe(map8((json) => isJsonObject(json) ? json : {}), mapError2(() => new CodeModeExecutionError({ message: "Code Mode secure-exec returned an unreadable result" })));
5482
+ const returned = yield* decodeJsonString(outcome.text).pipe(map7((json) => isJsonObject(json) ? json : {}), mapError2(() => new CodeModeExecutionError({ message: "Code Mode secure-exec returned an unreadable result" })));
5483
5483
  if (isString2(returned.thrown))
5484
5484
  return yield* new CodeModeExecutionError({ message: `Code Mode code threw ${returned.thrown}` });
5485
5485
  const finishedAt = yield* currentTimeMillis;
@@ -6058,7 +6058,7 @@ function createCodeModeHost(options) {
6058
6058
  const dispatchPrepared = fnUntraced(function* (operationName, preparedArgs, descriptor) {
6059
6059
  const startedAt = yield* currentTimeMillis;
6060
6060
  const backend = options.dispatchOperation ?? options.executeCapability ?? (() => fail7(new McpToolInputError({ message: "Kitman Code Mode dispatch is not configured." })));
6061
- return yield* backend(operationName, preparedArgs).pipe(tap2((output) => validateOperationOutput(descriptor, output)), tap2((output) => currentTimeMillis.pipe(map8((now) => calls.push({ operationName, status: "ok", durationMs: now - startedAt, resourceIds: resourceIds(output) })))), tapError2(() => currentTimeMillis.pipe(map8((now) => calls.push({ operationName, status: "error", durationMs: now - startedAt })))));
6061
+ return yield* backend(operationName, preparedArgs).pipe(tap2((output) => validateOperationOutput(descriptor, output)), tap2((output) => currentTimeMillis.pipe(map7((now) => calls.push({ operationName, status: "ok", durationMs: now - startedAt, resourceIds: resourceIds(output) })))), tapError2(() => currentTimeMillis.pipe(map7((now) => calls.push({ operationName, status: "error", durationMs: now - startedAt })))));
6062
6062
  });
6063
6063
  const dispatch = fnUntraced(function* (operationName, args) {
6064
6064
  const { descriptor, preparedArgs } = yield* prepareArgs(operationName, args);
@@ -6523,7 +6523,7 @@ function createCodeModeExecutionStore(options = {}) {
6523
6523
  ...input.content === undefined ? undefined : { content: input.content }
6524
6524
  });
6525
6525
  });
6526
- const listForActor = (actorDigest) => sweep.pipe(map8(() => [...entries.values()].flatMap((entry) => entry.approvalActorDigest === actorDigest && entry.status === "paused" ? [inspection(entry)] : [])));
6526
+ const listForActor = (actorDigest) => sweep.pipe(map7(() => [...entries.values()].flatMap((entry) => entry.approvalActorDigest === actorDigest && entry.status === "paused" ? [inspection(entry)] : [])));
6527
6527
  const markUnknown = (input) => {
6528
6528
  const entry = entries.get(input.executionId);
6529
6529
  if (entry === undefined || entry.ownerDigest !== ownerDigest(input.owner))
@@ -6533,7 +6533,7 @@ function createCodeModeExecutionStore(options = {}) {
6533
6533
  markUnknownEntry(entry, input.reason);
6534
6534
  return true;
6535
6535
  };
6536
- const inspect = (executionId) => sweep.pipe(map8(() => {
6536
+ const inspect = (executionId) => sweep.pipe(map7(() => {
6537
6537
  const entry = entries.get(executionId);
6538
6538
  return entry === undefined ? undefined : inspection(entry);
6539
6539
  }));
@@ -6556,7 +6556,7 @@ function createCodeModeExecutionStore(options = {}) {
6556
6556
  entry.onDecision = undefined;
6557
6557
  }
6558
6558
  function settle(entry, result) {
6559
- return currentTimeMillis.pipe(map8((now) => {
6559
+ return currentTimeMillis.pipe(map7((now) => {
6560
6560
  entry.status = "settled";
6561
6561
  entry.settledResult = result;
6562
6562
  entry.settledUntilMs = now + settledReplayTtlMs;
@@ -6566,7 +6566,7 @@ function createCodeModeExecutionStore(options = {}) {
6566
6566
  }));
6567
6567
  }
6568
6568
  function settledResume(entry, input) {
6569
- return currentTimeMillis.pipe(map8((now) => {
6569
+ return currentTimeMillis.pipe(map7((now) => {
6570
6570
  if (entry.settledResult === undefined || entry.settledUntilMs === undefined || now >= entry.settledUntilMs) {
6571
6571
  entry.status = "expired";
6572
6572
  entry.settledResult = undefined;
@@ -6581,7 +6581,7 @@ function createCodeModeExecutionStore(options = {}) {
6581
6581
  }
6582
6582
  }
6583
6583
  function isoString(epochMillis) {
6584
- return formatIso(makeUnsafe(epochMillis));
6584
+ return formatIso(makeUnsafe6(epochMillis));
6585
6585
  }
6586
6586
  function pauseValue(entry, ttlMs) {
6587
6587
  return {
@@ -6943,7 +6943,7 @@ function registerCodeModeTools(server, options = {}) {
6943
6943
  const resolveDecision = (id) => options.resolveExecutionDecision?.({ executionId: id, owner }) ?? undefined_;
6944
6944
  if (executionId === undefined) {
6945
6945
  const paused = yield* executionStore.listForActor(owner.approvalActorDigest ?? owner.actorDigest);
6946
- const decided = yield* forEach(paused, (execution) => resolveDecision(execution.executionId).pipe(map8((decision) => ({ execution, action: decision }))), { concurrency: "unbounded" });
6946
+ const decided = yield* forEach(paused, (execution) => resolveDecision(execution.executionId).pipe(map7((decision) => ({ execution, action: decision }))), { concurrency: "unbounded" });
6947
6947
  const resumable = decided.filter((candidate) => candidate.action !== undefined);
6948
6948
  if (resumable.length === 1) {
6949
6949
  executionId = resumable[0]?.execution.executionId;
@@ -8401,7 +8401,7 @@ function registerStepTools(server, adapt, input) {
8401
8401
  description: "Read the brief for the Step you are working on: its instructions, Context Pack and Output schema. A long brief comes in pages; each names the offset of the next.",
8402
8402
  inputSchema: adapt(StepBriefArguments),
8403
8403
  annotations: { readOnlyHint: true, idempotentHint: true }
8404
- }, (args) => run(map8(request("/brief"), (brief) => text(briefPage(brief.prompt, isNumber2(args.offset) ? args.offset : 0)))));
8404
+ }, (args) => run(map7(request("/brief"), (brief) => text(briefPage(brief.prompt, isNumber2(args.offset) ? args.offset : 0)))));
8405
8405
  const closed = (question) => gen(function* () {
8406
8406
  let current = question;
8407
8407
  const interval = fromInputUnsafe(input.answerPollInterval ?? "2 seconds");
@@ -8436,7 +8436,7 @@ function registerStepTools(server, adapt, input) {
8436
8436
  structuredContent: result
8437
8437
  });
8438
8438
  case "parked":
8439
- return map8(closed(result.question), (question) => ({
8439
+ return map7(closed(result.question), (question) => ({
8440
8440
  ...failure(question.answer === undefined ? `Output refused again: ${result.message}. The Question it put to a person was closed without an answer (${question.status}). Stop working.` : `Output refused again: ${result.message}. Your Step waited for a person, who answered: \u201C${question.answer.value}\u201D Correct the Output as they say and submit it again; you have one more submission and one repair.`),
8441
8441
  structuredContent: { ...result, question }
8442
8442
  }));
@@ -8449,11 +8449,11 @@ function registerStepTools(server, adapt, input) {
8449
8449
  inputSchema: adapt(SessionUpdateArguments),
8450
8450
  outputSchema: adapt(AnyResult),
8451
8451
  annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false }
8452
- }, (args) => run(map8(request("/session-updates", {
8452
+ }, (args) => run(map7(request("/session-updates", {
8453
8453
  kind: isString2(args.kind) ? args.kind : "progress",
8454
8454
  content: isString2(args.content) ? args.content : ""
8455
8455
  }), (result) => ({ content: [{ type: "text", text: "SessionUpdate recorded." }], structuredContent: result }))));
8456
- const answerOf = (question) => map8(closed(question), (current) => current.answer === undefined ? failure(`The Question was closed without an answer (${current.status}). Stop and submit what you have.`) : {
8456
+ const answerOf = (question) => map7(closed(question), (current) => current.answer === undefined ? failure(`The Question was closed without an answer (${current.status}). Stop and submit what you have.`) : {
8457
8457
  content: [
8458
8458
  { type: "text", text: encodeJsonStringSync({ answer: current.answer.value, questionId: current.id }) }
8459
8459
  ],
@@ -8478,7 +8478,7 @@ function registerStepTools(server, adapt, input) {
8478
8478
  const fitting = input.fittingSkills ?? [];
8479
8479
  const rank = (name) => fitting.includes(name) ? fitting.indexOf(name) : fitting.length;
8480
8480
  const names = (yield* fs.readDirectory(skillsDir).pipe(orElseSucceed(() => []))).toSorted((a, b) => rank(a) - rank(b) || a.localeCompare(b));
8481
- return yield* forEach(names, (name) => fs.readFileString(`${skillsDir}/${name}/SKILL.md`).pipe(map8((skill) => [
8481
+ return yield* forEach(names, (name) => fs.readFileString(`${skillsDir}/${name}/SKILL.md`).pipe(map7((skill) => [
8482
8482
  {
8483
8483
  name,
8484
8484
  description: skillDescription(skill),
@@ -8486,9 +8486,9 @@ function registerStepTools(server, adapt, input) {
8486
8486
 
8487
8487
  The skill's directory, for the files it points to: ${skillsDir}/${name}`
8488
8488
  }
8489
- ]), orElseSucceed(() => []))).pipe(map8((found) => found.flat()));
8489
+ ]), orElseSucceed(() => []))).pipe(map7((found) => found.flat()));
8490
8490
  });
8491
- const loadable = map8(kitSkills, (skills) => skills.some(({ name }) => name === scopeTasksSkill.name) ? skills : [
8491
+ const loadable = map7(kitSkills, (skills) => skills.some(({ name }) => name === scopeTasksSkill.name) ? skills : [
8492
8492
  ...skills,
8493
8493
  { name: scopeTasksSkill.name, description: scopeTasksSkill.summary, body: scopeTasksSkill.body.trim() }
8494
8494
  ]);
@@ -8496,7 +8496,7 @@ The skill's directory, for the files it points to: ${skillsDir}/${name}`
8496
8496
  description: "List the Run's skills you can load with no name, or load one by name; a second load answers that it is already in your context unless you pass reload: true after compaction.",
8497
8497
  inputSchema: adapt(SkillsArguments),
8498
8498
  annotations: { readOnlyHint: true, idempotentHint: false }
8499
- }, (args) => runMcpEffect(map8(loadable, (skills) => {
8499
+ }, (args) => runMcpEffect(map7(loadable, (skills) => {
8500
8500
  const name = isString2(args.name) ? args.name : undefined;
8501
8501
  if (name === undefined)
8502
8502
  return text(skills.map((found) => `- ${found.name}: ${found.description}`).join(`