@kitman-sh/cli 0.13.9 → 0.13.10

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-ksgt1tdc.js → chunk-0nh3w4vn.js} +7 -7
  2. package/dist/{chunk-cw61zyh5.js → chunk-24h0y27w.js} +1 -1
  3. package/dist/{chunk-0wj65j5e.js → chunk-2dwqak36.js} +7 -7
  4. package/dist/{chunk-53qp6kcp.js → chunk-4crf5vhd.js} +2 -2
  5. package/dist/{chunk-wzr1n3zy.js → chunk-6n3m0t02.js} +25 -5
  6. package/dist/{chunk-hezxa6q5.js → chunk-6x4wkf0x.js} +7 -7
  7. package/dist/{chunk-s63fjc69.js → chunk-813vn8sn.js} +20 -20
  8. package/dist/{chunk-rz18qefg.js → chunk-bkecckjn.js} +7 -7
  9. package/dist/{chunk-6jtjcvnc.js → chunk-c60xk73g.js} +46 -46
  10. package/dist/{chunk-qkjfx2ts.js → chunk-d4pxty7x.js} +16 -16
  11. package/dist/{chunk-z5f7g1w1.js → chunk-ggmwpwhf.js} +2 -2
  12. package/dist/{chunk-1ht6jwzm.js → chunk-hkg8s472.js} +8 -8
  13. package/dist/{chunk-v190zzc5.js → chunk-j34gensq.js} +1 -1
  14. package/dist/{chunk-69fcvx7d.js → chunk-jkddgvev.js} +74 -54
  15. package/dist/{chunk-a44ebqzx.js → chunk-kj1zjrs9.js} +6 -6
  16. package/dist/{chunk-ezv4p0zr.js → chunk-kk32jckf.js} +4 -4
  17. package/dist/{chunk-fh58za51.js → chunk-mmd7mjv0.js} +3 -3
  18. package/dist/{chunk-tspf987k.js → chunk-mtdz4k32.js} +5 -5
  19. package/dist/{chunk-0tjg9eya.js → chunk-pxvd8w2v.js} +1 -1
  20. package/dist/{chunk-x8sewxzm.js → chunk-r5v7df8h.js} +106 -106
  21. package/dist/{chunk-9gg1w4aa.js → chunk-rz01craf.js} +434 -350
  22. package/dist/{chunk-pj3mer60.js → chunk-s00cj5sw.js} +4 -4
  23. package/dist/{chunk-aezq3fyy.js → chunk-t82w7459.js} +218 -69
  24. package/dist/{chunk-kq88aaa3.js → chunk-vxfajzpz.js} +16 -62
  25. package/dist/{chunk-qjqa338f.js → chunk-zgraq2y3.js} +111 -308
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -6,10 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-qjqa338f.js";
9
+ } from "./chunk-zgraq2y3.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-aezq3fyy.js";
12
+ } from "./chunk-t82w7459.js";
13
13
  import {
14
14
  WebSocketConstructor,
15
15
  layerWebSocketConstructorGlobal,
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-9gg1w4aa.js";
22
+ } from "./chunk-rz01craf.js";
23
23
  import {
24
24
  layerJson,
25
- make4,
25
+ make3,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-qkjfx2ts.js";
28
+ } from "./chunk-d4pxty7x.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
46
46
  var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
47
47
  var makeRunnerRpcClient2 = (options) => gen(function* () {
48
48
  const protocol = yield* build(options.protocol);
49
- const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
49
+ const client = yield* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
50
50
  const authorized = authorizer(options);
51
51
  return {
52
52
  claim: (input) => authorized(client.Claim(input)),
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
74
74
  });
75
75
  var makeProgramRpcClient2 = (options) => gen(function* () {
76
76
  const protocol = yield* build(options.protocol);
77
- const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
77
+ const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
78
78
  const authorized = authorizer(options);
79
79
  return {
80
80
  recordActivity: (input) => authorized(client.RecordActivity(input)),
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-qjqa338f.js";
6
+ } from "./chunk-zgraq2y3.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -4,7 +4,7 @@ import {
4
4
  Path,
5
5
  optionalEnv,
6
6
  tempDirectoryScoped
7
- } from "./chunk-aezq3fyy.js";
7
+ } from "./chunk-t82w7459.js";
8
8
  import {
9
9
  Reference,
10
10
  TaggedError,
@@ -17,7 +17,7 @@ import {
17
17
  fail7,
18
18
  flatMap3,
19
19
  exit,
20
- map7,
20
+ map8,
21
21
  as,
22
22
  catch_,
23
23
  catchReason,
@@ -31,15 +31,15 @@ import {
31
31
  isString2,
32
32
  encodePrettyJsonString,
33
33
  decodeJsonStringSync
34
- } from "./chunk-qjqa338f.js";
34
+ } from "./chunk-zgraq2y3.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-9gg1w4aa.js";
39
+ } from "./chunk-rz01craf.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-hezxa6q5.js";
42
+ } from "./chunk-6x4wkf0x.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) => map7(readExistingText(manifestPath), (text) => manifestSkillPaths(parseJsonObject(text)));
126
+ var readManifestSkillPaths2 = (manifestPath) => map8(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(map7((commit) => ({ commit })), catch_((error) => succeed6({
947
+ const resolved = (isCommitHash(ref) ? succeed6(ref) : resolver.gitCommit(source.url, ref)).pipe(map8((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)
@@ -14,8 +14,8 @@ import {
14
14
  writeSrtSettings2,
15
15
  srtStepArgv2,
16
16
  srtArgv2
17
- } from "./chunk-aezq3fyy.js";
18
- import"./chunk-qjqa338f.js";
17
+ } from "./chunk-t82w7459.js";
18
+ import"./chunk-zgraq2y3.js";
19
19
  export {
20
20
  compiled2 as compiled,
21
21
  harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
@@ -847,7 +847,7 @@ Write no code and no line numbers: both are out of date before the Task is built
847
847
  link: "https://kitman.sh/knowledge/docs/scope-tasks#two-or-more-related-tasks",
848
848
  text: `## Two or more related Tasks
849
849
 
850
- Start the **File Tasks** Loop instead of creating related Tasks one by one. It makes a Task of each ticket and relates their blockers, so none is picked up before the Tasks it needs. In Code Mode:
850
+ Start the **File Tasks** Loop instead of creating related Tasks one by one. It checks the tickets with a plan review, then makes a Task of each ticket and relates their blockers, so none is picked up before the Tasks it needs. In Code Mode:
851
851
 
852
852
  \`\`\`js
853
853
  await kitman.runs.start({
@@ -856,14 +856,34 @@ await kitman.runs.start({
856
856
  loop: 'file-tasks',
857
857
  input: {
858
858
  tickets: [
859
- { key: 'first', title: '\u2026', body: '\u2026', acceptanceCriteria: ['\u2026'], blockedBy: [] },
860
- { key: 'wider', title: '\u2026', body: '\u2026', acceptanceCriteria: ['\u2026'], blockedBy: ['first'] }
859
+ {
860
+ key: 'first',
861
+ title: '\u2026',
862
+ body: '\u2026',
863
+ promise: '\u2026',
864
+ outOfScope: ['\u2026'],
865
+ acceptanceCriteria: ['\u2026'],
866
+ blockedBy: []
867
+ },
868
+ {
869
+ key: 'wider',
870
+ title: '\u2026',
871
+ body: '\u2026',
872
+ promise: '\u2026',
873
+ outOfScope: ['\u2026'],
874
+ acceptanceCriteria: ['\u2026'],
875
+ blockedBy: ['first']
876
+ }
861
877
  ]
862
878
  }
863
879
  })
864
880
  \`\`\`
865
881
 
866
- From a terminal, pass the same Input to \`kitman run start file-tasks --input '<json>'\`. Add \`projectId\` to the Input to file them in a Project. In a Plan Run, write the tickets in the plan: Plan files them.`
882
+ From a terminal, pass the same Input to \`kitman run start file-tasks --input '<json>'\`. Add \`projectId\` to the Input to file them in a Project, and \`repoBindingId\` when they change another repository than the Team's default: the review reads it, and each Task is filed for it. A ticket that changes another repository than that names its own \`repoBindingId\`. Each ticket needs a \`promise\` and an \`outOfScope\` list, which may be empty.
883
+
884
+ When the plan review has concerns, File Tasks files none of the tickets. The Run completes with an Output whose \`concerns\` each name a \`ticket\` and what is wrong with it. Revise the tickets and start File Tasks again with all of them. With no concerns, \`concerns\` is empty and \`tasks\` gives each ticket's Task.
885
+
886
+ In a Plan Run, write the tickets in the plan: Plan files them.`
867
887
  },
868
888
  {
869
889
  title: "Tasks Guide",
@@ -1535,7 +1555,7 @@ var pathOfLink = (link) => {
1535
1555
  return page === null ? link : page[1] || "index";
1536
1556
  };
1537
1557
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
1538
- var pinnedLink2 = (link, version = "0.13.9") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1558
+ var pinnedLink2 = (link, version = "0.13.10") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1539
1559
  var pageOf = (path) => path.split("#")[0];
1540
1560
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
1541
1561
  function excerpt(text, queryTerms) {
@@ -12,7 +12,7 @@ import {
12
12
  gen,
13
13
  fail7,
14
14
  flatMap3,
15
- map7,
15
+ map8,
16
16
  mapError2,
17
17
  orDie,
18
18
  provide3,
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-qjqa338f.js";
27
+ } from "./chunk-zgraq2y3.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-aezq3fyy.js";
31
+ } from "./chunk-t82w7459.js";
32
32
  import {
33
33
  newerKitmanVersion,
34
34
  digestSha256,
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-9gg1w4aa.js";
42
+ } from "./chunk-rz01craf.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -73,7 +73,7 @@ var PackageJson = Struct({ kitman: optionalKey(Unknown) });
73
73
  var decodePackageJson = decodeUnknownOption(fromJsonString(PackageJson));
74
74
  var decodeManifest = decodeUnknownOption(KitManifest);
75
75
  var decodeJson = decodeUnknownOption(fromJsonString(Unknown));
76
- var gunzip = (bytes) => tryPromise(() => new Response(new Blob([new Uint8Array(bytes)]).stream().pipeThrough(new DecompressionStream("gzip"))).arrayBuffer()).pipe(map7((buffer) => new Uint8Array(buffer)));
76
+ var gunzip = (bytes) => tryPromise(() => new Response(new Blob([new Uint8Array(bytes)]).stream().pipeThrough(new DecompressionStream("gzip"))).arrayBuffer()).pipe(map8((buffer) => new Uint8Array(buffer)));
77
77
  var text = (bytes) => new TextDecoder().decode(bytes).replace(/\0.*$/su, "");
78
78
  var untar = (tar) => {
79
79
  const files = new Map;
@@ -103,7 +103,7 @@ var untar = (tar) => {
103
103
  var registryUrl = String2("NPM_CONFIG_REGISTRY").pipe(withDefault("https://registry.npmjs.org"));
104
104
  var newerOf = (latest, next) => latest === undefined || next !== undefined && newerKitmanVersion(next, latest) ? next : latest;
105
105
  var npmRegistryAt = (url = registryUrl) => {
106
- const base = (isString(url) ? succeed6(url) : orDie(url)).pipe(map7((value) => value.replace(/\/+$/u, "")));
106
+ const base = (isString(url) ? succeed6(url) : orDie(url)).pipe(map8((value) => value.replace(/\/+$/u, "")));
107
107
  const unreachable = (name, version) => (error) => new NpmRegistryError({
108
108
  kind: "unreachable",
109
109
  message: `npm did not answer for ${name}@${version}: ${error.message}; try again`
@@ -131,7 +131,7 @@ var npmRegistryAt = (url = registryUrl) => {
131
131
  const dist = found.versions[version]?.dist;
132
132
  if (dist === undefined)
133
133
  return yield* new NpmRegistryError({ kind: "not_found", message: `npm has no ${name}@${wanted}` });
134
- const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), map7((buffer) => new Uint8Array(buffer)), mapError2(unreachable(name, version)), provide3(layer4));
134
+ const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), map8((buffer) => new Uint8Array(buffer)), mapError2(unreachable(name, version)), provide3(layer4));
135
135
  if (!tarballMatches(tarball, dist))
136
136
  return yield* new NpmRegistryError({
137
137
  kind: "integrity",
@@ -6,7 +6,7 @@ import {
6
6
  Path,
7
7
  withDefault,
8
8
  String2
9
- } from "./chunk-aezq3fyy.js";
9
+ } from "./chunk-t82w7459.js";
10
10
  import {
11
11
  isString,
12
12
  hasProperty,
@@ -18,7 +18,7 @@ import {
18
18
  gen,
19
19
  fail7,
20
20
  flatMap3,
21
- map7,
21
+ map8,
22
22
  catchTags,
23
23
  mapError2,
24
24
  orDie,
@@ -40,8 +40,8 @@ import {
40
40
  toCodecJson,
41
41
  Json,
42
42
  encodePrettyJsonString
43
- } from "./chunk-qjqa338f.js";
44
- import"./chunk-0tjg9eya.js";
43
+ } from "./chunk-zgraq2y3.js";
44
+ import"./chunk-pxvd8w2v.js";
45
45
  import {
46
46
  SecureRandom,
47
47
  layerWebCrypto,
@@ -53,23 +53,23 @@ import {
53
53
  layer4,
54
54
  kitmanMcpServer,
55
55
  RunnerRpcProtocolVersion
56
- } from "./chunk-9gg1w4aa.js";
56
+ } from "./chunk-rz01craf.js";
57
57
  import {
58
58
  Packument,
59
59
  tarballMatches
60
- } from "./chunk-hezxa6q5.js";
61
- import"./chunk-ksgt1tdc.js";
60
+ } from "./chunk-6x4wkf0x.js";
61
+ import"./chunk-0nh3w4vn.js";
62
62
  import {
63
63
  AgentDeclaration,
64
64
  KitDeclarations,
65
65
  describeFlag,
66
66
  Described
67
- } from "./chunk-1ht6jwzm.js";
67
+ } from "./chunk-hkg8s472.js";
68
68
  import {
69
69
  ChildProcessSpawner,
70
- make3
71
- } from "./chunk-kq88aaa3.js";
72
- import"./chunk-qkjfx2ts.js";
70
+ make2
71
+ } from "./chunk-vxfajzpz.js";
72
+ import"./chunk-d4pxty7x.js";
73
73
 
74
74
  // packages/sdk/src/build/index.ts
75
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -108,7 +108,7 @@ var ConfigAgents = Record(String4, Struct({
108
108
  }));
109
109
  var run = (command, args, cwd) => gen(function* () {
110
110
  const spawner = yield* ChildProcessSpawner;
111
- const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
111
+ const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
112
112
  const [stdout, stderr, exitCode] = yield* all3([
113
113
  mkString(decodeText(handle.stdout)),
114
114
  mkString(decodeText(handle.stderr)),
@@ -118,7 +118,7 @@ var run = (command, args, cwd) => gen(function* () {
118
118
  }).pipe(scoped);
119
119
  var failure = (result) => (result.stderr.trim() || result.stdout.trim()).slice(-2000);
120
120
  var provenance = (directory) => gen(function* () {
121
- const git = (...args) => run("git", args, directory).pipe(map7((result) => result.ok ? result.stdout.trim() : undefined), orElseSucceed(() => {
121
+ const git = (...args) => run("git", args, directory).pipe(map8((result) => result.ok ? result.stdout.trim() : undefined), orElseSucceed(() => {
122
122
  return;
123
123
  }));
124
124
  const repository = yield* git("remote", "get-url", "origin");
@@ -144,7 +144,7 @@ var readText = (directory, text, what) => gen(function* () {
144
144
  const file = yield* inKit(directory, text.file, what);
145
145
  return yield* fs.readFileString(file).pipe(mapError2(() => new DeclarationsInvalid({ reason: `${what} ${text.file} does not read` })));
146
146
  });
147
- var readAgents = (directory, agents) => forEach(Object.entries(agents), ([id, { instructions, ...agent }]) => instructions === undefined ? succeed6([id, agent]) : map7(readText(directory, instructions, `Agent "${id}" instructions`), (text) => [id, { ...agent, instructions: text.trim() }])).pipe(map7(Object.fromEntries));
147
+ var readAgents = (directory, agents) => forEach(Object.entries(agents), ([id, { instructions, ...agent }]) => instructions === undefined ? succeed6([id, agent]) : map8(readText(directory, instructions, `Agent "${id}" instructions`), (text) => [id, { ...agent, instructions: text.trim() }])).pipe(map8(Object.fromEntries));
148
148
  var utf8 = new TextDecoder("utf-8", { fatal: true });
149
149
  var setupFile = (bytes) => {
150
150
  try {
@@ -219,7 +219,7 @@ var fetchNpm = (name, wanted, what) => gen(function* () {
219
219
  const dist = packument.versions[packument["dist-tags"][wanted] ?? wanted]?.dist;
220
220
  if (dist === undefined)
221
221
  return yield* failed("npm has no such version or dist-tag");
222
- const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), map7((buffer) => new Uint8Array(buffer)), mapError2((error) => failed(error.message)));
222
+ const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), map8((buffer) => new Uint8Array(buffer)), mapError2((error) => failed(error.message)));
223
223
  if (!tarballMatches(tarball, dist))
224
224
  return yield* failed(`the tarball does not match its integrity ${dist.integrity ?? `sha1 ${dist.shasum}`}`);
225
225
  const directory = yield* fs.makeTempDirectoryScoped({ prefix: "kitman-npm-" });
@@ -260,11 +260,11 @@ var setupArchive = (directory, kit, setup, checkouts) => gen(function* () {
260
260
  const file = yield* inKit(directory, setup.instructions, what);
261
261
  files["instructions.md"] = setupFile(yield* fs.readFile(file).pipe(mapError2(() => new DeclarationsInvalid({ reason: `${what} do not read` }))));
262
262
  }
263
- const skills = setup.skills === undefined ? undefined : yield* forEach(setup.skills, (skill) => map7(sourceTree(directory, skill.source, `Kit ${kit} skill ${skill.name}`, checkouts), (tree) => ({
263
+ const skills = setup.skills === undefined ? undefined : yield* forEach(setup.skills, (skill) => map8(sourceTree(directory, skill.source, `Kit ${kit} skill ${skill.name}`, checkouts), (tree) => ({
264
264
  ...skill,
265
265
  source: place(`skills/${skill.name}`, tree)
266
266
  })));
267
- const plugins = setup.plugins === undefined ? undefined : yield* forEach(setup.plugins, (plugin) => map7(sourceTree(directory, plugin.sources[0], `Kit ${kit} plugin ${plugin.name}`, checkouts), (tree) => ({
267
+ const plugins = setup.plugins === undefined ? undefined : yield* forEach(setup.plugins, (plugin) => map8(sourceTree(directory, plugin.sources[0], `Kit ${kit} plugin ${plugin.name}`, checkouts), (tree) => ({
268
268
  ...plugin,
269
269
  sources: [place(`plugins/${plugin.name}`, tree)]
270
270
  })));
@@ -310,7 +310,7 @@ var importedFile = (file, specifier) => gen(function* () {
310
310
  const path = yield* Path;
311
311
  const target = path.resolve(path.dirname(file), specifier);
312
312
  for (const candidate of [target, `${target}.ts`, path.join(target, "kitman.config.ts")])
313
- if (yield* fs.stat(candidate).pipe(map7((info) => info.type === "File"), orElseSucceed(() => false)))
313
+ if (yield* fs.stat(candidate).pipe(map8((info) => info.type === "File"), orElseSucceed(() => false)))
314
314
  return candidate;
315
315
  return;
316
316
  });
@@ -351,7 +351,7 @@ var kitModules = (root) => gen(function* () {
351
351
  if (visited.has(file))
352
352
  return;
353
353
  visited.add(file);
354
- const transpiled = yield* run("bun", ["build", "--no-bundle", file], root).pipe(map7((result) => result.ok ? result.stdout : ""), orElseSucceed(() => ""));
354
+ const transpiled = yield* run("bun", ["build", "--no-bundle", file], root).pipe(map8((result) => result.ok ? result.stdout : ""), orElseSucceed(() => ""));
355
355
  for (const [, specifier] of transpiled.matchAll(/\b(?:from|import)\s*"(\.{1,2}\/[^"]+)"/gu)) {
356
356
  const module = specifier === undefined ? undefined : yield* importedFile(file, specifier);
357
357
  if (module === undefined || visited.has(module))
@@ -477,7 +477,7 @@ var buildKit = (directory, options = {}) => gen(function* () {
477
477
  ...own.schedules === undefined ? undefined : { schedules: own.schedules },
478
478
  carried
479
479
  }).pipe(mapError2((error) => new DeclarationsInvalid({ reason: error.message })));
480
- const bundle = yield* fs.readFileString(bundleFile).pipe(map7((text) => new TextEncoder().encode(text.replaceAll(entryName, ".kitman-build-entry.ts"))), mapError2((error) => new BundleFailed({ reason: error.message })));
480
+ const bundle = yield* fs.readFileString(bundleFile).pipe(map8((text) => new TextEncoder().encode(text.replaceAll(entryName, ".kitman-build-entry.ts"))), mapError2((error) => new BundleFailed({ reason: error.message })));
481
481
  return {
482
482
  ...identity,
483
483
  bundle,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  FileSystem,
4
4
  Path
5
- } from "./chunk-aezq3fyy.js";
5
+ } from "./chunk-t82w7459.js";
6
6
  import {
7
7
  isObject,
8
8
  isUint8Array,
@@ -17,23 +17,23 @@ import {
17
17
  isJsonObject,
18
18
  decodeJsonString,
19
19
  encodePrettyJsonString
20
- } from "./chunk-qjqa338f.js";
21
- import"./chunk-0tjg9eya.js";
20
+ } from "./chunk-zgraq2y3.js";
21
+ import"./chunk-pxvd8w2v.js";
22
22
  import {
23
23
  tomlTableHeader2,
24
24
  tomlKeyPath2,
25
25
  kitmanSkillEntry,
26
26
  isPathWithin2
27
- } from "./chunk-0wj65j5e.js";
27
+ } from "./chunk-2dwqak36.js";
28
28
  import {
29
29
  instructionsStart,
30
30
  instructionsEnd,
31
31
  renderMcpServer,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-9gg1w4aa.js";
35
- import"./chunk-hezxa6q5.js";
36
- import"./chunk-kq88aaa3.js";
34
+ } from "./chunk-rz01craf.js";
35
+ import"./chunk-6x4wkf0x.js";
36
+ import"./chunk-vxfajzpz.js";
37
37
 
38
38
  // packages/agent-runtime/src/kit-setup-sync.ts
39
39
  class KitSyncError extends TaggedError("KitSyncError") {