@kitman-sh/cli 0.51.0 → 0.53.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.
Files changed (28) hide show
  1. package/dist/{chunk-tse7tfe9.js → chunk-1zvfqdby.js} +16 -16
  2. package/dist/{chunk-whspb67e.js → chunk-38prvh9d.js} +12 -9
  3. package/dist/{chunk-hf0chy5n.js → chunk-5bpp6k0h.js} +3 -3
  4. package/dist/{chunk-4vxbxjf8.js → chunk-5tgpa02q.js} +1 -1
  5. package/dist/{chunk-8gkrs473.js → chunk-72ht3484.js} +4 -4
  6. package/dist/{chunk-hasds4yd.js → chunk-7enqpa5x.js} +20 -20
  7. package/dist/{chunk-adevz872.js → chunk-7y50jhm7.js} +6 -6
  8. package/dist/{chunk-fqh4pj6b.js → chunk-8r9k7pqk.js} +9 -3
  9. package/dist/{chunk-5hsqbwzd.js → chunk-ab7r6p1s.js} +6 -4
  10. package/dist/{chunk-tfwgeqx5.js → chunk-ag79vvjy.js} +4 -4
  11. package/dist/{chunk-04wqa07j.js → chunk-apv9h5tz.js} +1 -1
  12. package/dist/{chunk-a71b15k3.js → chunk-brbym443.js} +2 -2
  13. package/dist/{chunk-vaeva1k8.js → chunk-c6yxzkz2.js} +12 -20
  14. package/dist/{chunk-xg5essbk.js → chunk-c9vcvseh.js} +18 -18
  15. package/dist/{chunk-c3yzdpwf.js → chunk-cy13pst5.js} +4 -4
  16. package/dist/{chunk-6ryjppc7.js → chunk-e627b064.js} +12 -6
  17. package/dist/{chunk-5smh4dp2.js → chunk-hyaq30ne.js} +21 -161
  18. package/dist/{chunk-2d1ck2fa.js → chunk-jh5vjc8h.js} +1 -1
  19. package/dist/{chunk-ptqswdck.js → chunk-jwr750jd.js} +20 -20
  20. package/dist/{chunk-9ykh05hz.js → chunk-k1fdsn2c.js} +1 -1
  21. package/dist/{chunk-n3jpxd14.js → chunk-n00cpb86.js} +2 -2
  22. package/dist/{chunk-k462v2v7.js → chunk-n381rqax.js} +157 -13
  23. package/dist/{chunk-5pjbxhxy.js → chunk-qfwhsqej.js} +3 -3
  24. package/dist/{chunk-558rmyma.js → chunk-stx87en6.js} +4 -4
  25. package/dist/{chunk-s5qejghj.js → chunk-vdaq7292.js} +7 -7
  26. package/dist/{chunk-j3x7fcrd.js → chunk-y52g539d.js} +4 -4
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -191,6 +191,8 @@ import {
191
191
  clockWith,
192
192
  logError,
193
193
  effectify,
194
+ toNumber,
195
+ bytes,
194
196
  decode,
195
197
  isRedacted,
196
198
  make16,
@@ -266,13 +268,10 @@ import {
266
268
  decodeJsonStringOption,
267
269
  encodeJsonStringSync,
268
270
  encodePrettyJsonString
269
- } from "./chunk-k462v2v7.js";
271
+ } from "./chunk-n381rqax.js";
270
272
  import {
271
273
  map,
272
274
  makeEquivalence,
273
- Clock,
274
- currentTimeMillis,
275
- bytes,
276
275
  BadArgument,
277
276
  systemError,
278
277
  badArgument,
@@ -336,8 +335,10 @@ import {
336
335
  optionalEnv,
337
336
  harnessesUnsupportedInSrt2,
338
337
  harnessesUnsupportedInDocker2
339
- } from "./chunk-5smh4dp2.js";
338
+ } from "./chunk-hyaq30ne.js";
340
339
  import {
340
+ Clock,
341
+ currentTimeMillis,
341
342
  ExitCode,
342
343
  ProcessId,
343
344
  makeHandle,
@@ -347,7 +348,7 @@ import {
347
348
  make2,
348
349
  parseFdName,
349
350
  fdName
350
- } from "./chunk-fqh4pj6b.js";
351
+ } from "./chunk-8r9k7pqk.js";
351
352
  import {
352
353
  isDateTime,
353
354
  Numeric,
@@ -360,7 +361,7 @@ import {
360
361
  SecretScope,
361
362
  SecretHosts,
362
363
  isSecretReference
363
- } from "./chunk-4vxbxjf8.js";
364
+ } from "./chunk-5tgpa02q.js";
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;
@@ -12940,6 +12932,13 @@ var DeployBindingList = Struct({ items: ArraySchema(DeployBinding) });
12940
12932
  var defaultKitName = "@kitman-sh/software-engineering";
12941
12933
 
12942
12934
  // packages/core/src/kit-declarations.ts
12935
+ var LoopIntent = Union([
12936
+ Literal("task"),
12937
+ Struct({
12938
+ goal: String4.check(makeFilter((goal) => goal.trim() !== "" || "a non-blank goal")),
12939
+ doneWhen: ArraySchema(String4)
12940
+ })
12941
+ ]);
12943
12942
  var LoopCapabilities = [
12944
12943
  "agent_work",
12945
12944
  "ask",
@@ -12999,6 +12998,7 @@ var LoopManifest = Struct({
12999
12998
  secrets: optionalKey(ArraySchema(SecretName2)),
13000
12999
  network: optionalKey(AgentSandboxNetwork),
13001
13000
  schedule: optionalKey(Struct({ rule: ScheduleRule, timezone: String4 })),
13001
+ intent: optionalKey(LoopIntent),
13002
13002
  outline: optionalKey(LoopOutline)
13003
13003
  });
13004
13004
  var ProgramLoopListing = Struct({ ...ProgramLoop.fields, schedule: LoopManifest.fields.schedule });
@@ -118,7 +118,7 @@ import {
118
118
  decodeJsonStringOption,
119
119
  encodeJsonStringSync,
120
120
  encodePrettyJsonString
121
- } from "./chunk-k462v2v7.js";
121
+ } from "./chunk-n381rqax.js";
122
122
  import {
123
123
  SecureRandom,
124
124
  makeUnsafe,
@@ -170,9 +170,8 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-tse7tfe9.js";
173
+ } from "./chunk-1zvfqdby.js";
174
174
  import {
175
- currentTimeMillis,
176
175
  join,
177
176
  interrupt,
178
177
  empty3,
@@ -188,30 +187,33 @@ import {
188
187
  withDefault,
189
188
  option,
190
189
  String2
191
- } from "./chunk-5smh4dp2.js";
190
+ } from "./chunk-hyaq30ne.js";
192
191
  import {
193
192
  searchDocs2,
194
193
  readDoc2
195
- } from "./chunk-vaeva1k8.js";
194
+ } from "./chunk-c6yxzkz2.js";
196
195
  import {
197
196
  nextInt
198
- } from "./chunk-04wqa07j.js";
197
+ } from "./chunk-apv9h5tz.js";
199
198
  import {
200
199
  recommendationProblem
201
- } from "./chunk-9ykh05hz.js";
200
+ } from "./chunk-k1fdsn2c.js";
201
+ import {
202
+ currentTimeMillis
203
+ } from "./chunk-8r9k7pqk.js";
202
204
  import {
203
205
  layerJson,
204
206
  make3,
205
207
  withHeaders,
206
208
  layerProtocolSocket,
207
209
  ConnectionHooks
208
- } from "./chunk-5hsqbwzd.js";
210
+ } from "./chunk-ab7r6p1s.js";
209
211
  import {
210
212
  guard,
211
213
  Id,
212
214
  Timestamp,
213
215
  ActorType
214
- } from "./chunk-4vxbxjf8.js";
216
+ } from "./chunk-5tgpa02q.js";
215
217
 
216
218
  // apps/cli/src/mcp.ts
217
219
  import { tmpdir as tmpdir2 } from "os";
@@ -5958,6 +5960,7 @@ Read this before you create a Task or write a plan's ticket.
5958
5960
  ## One Promise per Task
5959
5961
 
5960
5962
  - Give a Task one Promise: one sentence that says what is true once it is done. Write it in the Task's \`promise\`. Two Promises are two Tasks.
5963
+ - Every Acceptance Criterion serves the Task's Promise. One that serves another Promise belongs to another Task.
5961
5964
  - A Promise is open-ended when it covers cases nobody can list, such as every path, any input or all source code. Reviews of it keep finding one more case. Split it into a first Task with a bounded case, whose cases you list, and later Tasks that each widen it.
5962
5965
  - Size a Task to fit one agent session under 200k tokens of context, from reading the code to a verified change. Split one that does not fit.
5963
5966
 
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-k462v2v7.js";
27
+ } from "./chunk-n381rqax.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-5smh4dp2.js";
31
+ } from "./chunk-hyaq30ne.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-tse7tfe9.js";
42
+ } from "./chunk-1zvfqdby.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-k462v2v7.js";
21
+ } from "./chunk-n381rqax.js";
22
22
 
23
23
  // packages/core/src/schema.ts
24
24
  var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -35,19 +35,19 @@ import {
35
35
  isJsonObject,
36
36
  isString2,
37
37
  encodeUnknownJsonStringSync
38
- } from "./chunk-k462v2v7.js";
38
+ } from "./chunk-n381rqax.js";
39
39
  import {
40
- currentTimeMillis,
41
40
  make10,
42
41
  runForEach,
43
42
  toPull,
44
43
  FileSystem,
45
44
  compiled2
46
- } from "./chunk-5smh4dp2.js";
45
+ } from "./chunk-hyaq30ne.js";
47
46
  import {
47
+ currentTimeMillis,
48
48
  ChildProcessSpawner,
49
49
  make2
50
- } from "./chunk-fqh4pj6b.js";
50
+ } from "./chunk-8r9k7pqk.js";
51
51
 
52
52
  // packages/agent-runtime/src/opencode-store.ts
53
53
  import { lstatSync, readFileSync, realpathSync, writeSync } from "fs";
@@ -109,9 +109,8 @@ import {
109
109
  decodeJsonStringOption,
110
110
  encodeJsonStringSync,
111
111
  encodePrettyJsonString
112
- } from "./chunk-k462v2v7.js";
112
+ } from "./chunk-n381rqax.js";
113
113
  import {
114
- currentTimeMillis,
115
114
  tap,
116
115
  mapError,
117
116
  decodeText,
@@ -122,7 +121,12 @@ import {
122
121
  withDefault,
123
122
  option,
124
123
  String2
125
- } from "./chunk-5smh4dp2.js";
124
+ } from "./chunk-hyaq30ne.js";
125
+ import {
126
+ currentTimeMillis,
127
+ ChildProcessSpawner,
128
+ make2
129
+ } from "./chunk-8r9k7pqk.js";
126
130
  import {
127
131
  SecureRandom,
128
132
  layerWebCrypto,
@@ -253,15 +257,11 @@ import {
253
257
  harnessNames,
254
258
  herdrRunnerCapabilities2,
255
259
  declaredChecks
256
- } from "./chunk-tse7tfe9.js";
257
- import {
258
- ChildProcessSpawner,
259
- make2
260
- } from "./chunk-fqh4pj6b.js";
260
+ } from "./chunk-1zvfqdby.js";
261
261
  import {
262
262
  Id,
263
263
  Timestamp
264
- } from "./chunk-4vxbxjf8.js";
264
+ } from "./chunk-5tgpa02q.js";
265
265
 
266
266
  // apps/cli/src/cli-error.ts
267
267
  function cliErrorCode(error, status) {
@@ -1329,10 +1329,10 @@ var sandboxMissing = (sandbox, missing) => ({
1329
1329
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1330
1330
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1331
1331
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1332
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-j3x7fcrd.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-y52g539d.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1333
1333
  });
1334
1334
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1335
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-j3x7fcrd.js")), (module) => module.updateHerdrCore(options))
1335
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-y52g539d.js")), (module) => module.updateHerdrCore(options))
1336
1336
  });
1337
1337
  var herdrCoreMissing = (error) => {
1338
1338
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1799,7 +1799,7 @@ var syncTargets = (harness) => gen(function* () {
1799
1799
  });
1800
1800
  var syncKits = (input) => gen(function* () {
1801
1801
  const fs = yield* FileSystem;
1802
- const { syncKitSetup } = yield* promise(() => import("./chunk-s5qejghj.js"));
1802
+ const { syncKitSetup } = yield* promise(() => import("./chunk-vdaq7292.js"));
1803
1803
  const harnesses = yield* syncTargets(input.harness);
1804
1804
  const chain = yield* input.client.getKitChain(input.workspaceId);
1805
1805
  for (const { name, problem } of chain.skipped)
@@ -3295,7 +3295,7 @@ var shipped_steps_generated_default = {
3295
3295
  };
3296
3296
 
3297
3297
  // apps/cli/src/scaffold-files.ts
3298
- var cliVersion = "0.51.0";
3298
+ var cliVersion = "0.53.0";
3299
3299
  var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
3300
3300
  var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
3301
3301
  var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
@@ -3560,7 +3560,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
3560
3560
 
3561
3561
  // apps/cli/src/commands.ts
3562
3562
  var ClientId = "kitman-cli";
3563
- var agentRuntime = promise(() => import("./chunk-xg5essbk.js"));
3563
+ var agentRuntime = promise(() => import("./chunk-c9vcvseh.js"));
3564
3564
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
3565
3565
  defaultValue: () => gen(function* () {
3566
3566
  const tui = yield* tryPromise({
@@ -5099,7 +5099,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
5099
5099
  });
5100
5100
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
5101
5101
  defaultValue: () => (options) => gen(function* () {
5102
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-adevz872.js"));
5102
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-7y50jhm7.js"));
5103
5103
  return yield* makeRunnerRpcClient({
5104
5104
  runnerId: options.runnerId,
5105
5105
  bearer: options.bearer,
@@ -5711,7 +5711,7 @@ function mcpCommand(args) {
5711
5711
  if (command.action === "run") {
5712
5712
  if (command.args.length > 0)
5713
5713
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
5714
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-whspb67e.js"));
5714
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-38prvh9d.js"));
5715
5715
  return yield* runMcpServerCommand({ flags: command.flags });
5716
5716
  }
5717
5717
  if (command.action !== "setup")
@@ -6211,7 +6211,7 @@ function programLoopCommand(command) {
6211
6211
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
6212
6212
  });
6213
6213
  }
6214
- var docsModule = promise(() => import("./chunk-2d1ck2fa.js"));
6214
+ var docsModule = promise(() => import("./chunk-jh5vjc8h.js"));
6215
6215
  function docsCommand(args) {
6216
6216
  return gen(function* () {
6217
6217
  const command = parseCommand(args);
@@ -7222,7 +7222,7 @@ function changeRequestCommand(args) {
7222
7222
  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}`);
7223
7223
  });
7224
7224
  }
7225
- var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-ptqswdck.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7225
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-jwr750jd.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7226
7226
  var loopOutline = (command) => gen(function* () {
7227
7227
  const path = yield* Path;
7228
7228
  const loop = requiredArg(command, "a Loop id");
@@ -7242,9 +7242,9 @@ var loopOutline = (command) => gen(function* () {
7242
7242
  `).pipe(mapError2((error) => new CliError({ message: error.message })));
7243
7243
  yield* log(`Wrote the outline of ${loop} to ${out}`);
7244
7244
  });
7245
- var KitWriter = map9(promise(() => import("./chunk-ptqswdck.js")), (build) => build.writeKit);
7245
+ var KitWriter = map9(promise(() => import("./chunk-jwr750jd.js")), (build) => build.writeKit);
7246
7246
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7247
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-ptqswdck.js")), (build) => build.buildKit(directory))
7247
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-jwr750jd.js")), (build) => build.buildKit(directory))
7248
7248
  });
7249
7249
  var uploadKit = (client, workspaceId, built) => gen(function* () {
7250
7250
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-558rmyma.js";
8
- import"./chunk-5hsqbwzd.js";
9
- import"./chunk-tse7tfe9.js";
10
- import"./chunk-4vxbxjf8.js";
11
- import"./chunk-5smh4dp2.js";
12
- import"./chunk-k462v2v7.js";
7
+ } from "./chunk-stx87en6.js";
8
+ import"./chunk-ab7r6p1s.js";
9
+ import"./chunk-1zvfqdby.js";
10
+ import"./chunk-5tgpa02q.js";
11
+ import"./chunk-hyaq30ne.js";
12
+ import"./chunk-n381rqax.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -9,6 +9,8 @@ import {
9
9
  fail3,
10
10
  getOrThrow,
11
11
  TaggedError,
12
+ ClockRef,
13
+ currentTimeMillis2,
12
14
  never,
13
15
  flatMap3,
14
16
  andThen2,
@@ -18,7 +20,7 @@ import {
18
20
  isRedacted,
19
21
  make16,
20
22
  value
21
- } from "./chunk-k462v2v7.js";
23
+ } from "./chunk-n381rqax.js";
22
24
  import {
23
25
  unwrap,
24
26
  drainFork,
@@ -27,7 +29,11 @@ import {
27
29
  runCollect,
28
30
  runDrain,
29
31
  mkString
30
- } from "./chunk-5smh4dp2.js";
32
+ } from "./chunk-hyaq30ne.js";
33
+
34
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
35
+ var Clock = ClockRef;
36
+ var currentTimeMillis = currentTimeMillis2;
31
37
 
32
38
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
33
39
  function nominal() {
@@ -340,4 +346,4 @@ var shellScript = (templates, expressions) => {
340
346
  }
341
347
  return script;
342
348
  };
343
- export { ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
349
+ export { Clock, currentTimeMillis, ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
@@ -96,9 +96,8 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-k462v2v7.js";
99
+ } from "./chunk-n381rqax.js";
100
100
  import {
101
- Clock,
102
101
  interrupt,
103
102
  getCurrent,
104
103
  makeUnsafe2,
@@ -109,7 +108,7 @@ import {
109
108
  shutdownUnsafe,
110
109
  fromQueue,
111
110
  unwrap
112
- } from "./chunk-5smh4dp2.js";
111
+ } from "./chunk-hyaq30ne.js";
113
112
  import {
114
113
  empty,
115
114
  fromInput,
@@ -123,7 +122,10 @@ import {
123
122
  ParseOptions,
124
123
  RpcClientDefect,
125
124
  RpcClientError
126
- } from "./chunk-tse7tfe9.js";
125
+ } from "./chunk-1zvfqdby.js";
126
+ import {
127
+ Clock
128
+ } from "./chunk-8r9k7pqk.js";
127
129
 
128
130
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
129
131
  class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
@@ -9,10 +9,10 @@ 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";
15
- import"./chunk-k462v2v7.js";
12
+ } from "./chunk-72ht3484.js";
13
+ import"./chunk-8r9k7pqk.js";
14
+ import"./chunk-hyaq30ne.js";
15
+ import"./chunk-n381rqax.js";
16
16
  export {
17
17
  databaseStamp2 as databaseStamp,
18
18
  decoded2 as decoded,
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-k462v2v7.js";
6
+ } from "./chunk-n381rqax.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -15,8 +15,8 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-5smh4dp2.js";
19
- import"./chunk-k462v2v7.js";
18
+ } from "./chunk-hyaq30ne.js";
19
+ import"./chunk-n381rqax.js";
20
20
  export {
21
21
  compiled2 as compiled,
22
22
  harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
@@ -529,24 +529,7 @@ Agents should record implementation evidence, verification, and delivery artifac
529
529
  path: "loop-operations#intent",
530
530
  level: 2,
531
531
  link: "https://kitman.sh/knowledge/docs/loop-operations#intent",
532
- text: `## Intent
533
-
534
- Every Run is held to an Intent, seeded when Kitman admits it:
535
-
536
- - **Goal:** the launch words, or the Task's title, Promise, description and Out of scope list. A Child Run, such as the Review or Shepherd a Build calls, is held instead to doing the work its parent's call input asks for and reporting the result in its Output, naming the parent's Task.
537
- - **Done when:** the Task's Acceptance Criteria. A Child Run has none: its parent's evidence settles them.
538
- - **Constraints:** see below.
539
-
540
- Each agent Step's brief states the Intent. While the Run is going, its Delivery Owner amends it on the Run page or with:
541
-
542
- \`\`\`sh
543
- kitman run intent <run> --set-goal "<text>"
544
- kitman run intent <run> --add-constraint "<text>"
545
- kitman run intent <run> --remove-constraint <id>
546
- kitman run intent <run> --corrections off
547
- \`\`\`
548
-
549
- Each amendment is a new version with its author, and \`kitman run intent <run>\` lists them all. On the Run page's Intent tab, edit the goal or a constraint in place: each save is one new version. An edited constraint takes the old one's place under a new id, so Drift Reports against the old wording stay with it. A constraint a person removed or reworded never comes back. A settled or closed Run refuses amendments.`
532
+ text: "## Intent\n\nEvery Run is held to an Intent, seeded when Kitman admits it from what its Loop declares:\n\n- **Goal:** for a Loop that does its Task's work, as Build and Hillclimb do, the launch words, or the Task's title, Promise, description and Out of scope list, or `Run the <loop> Loop` with neither. Any other Loop's Run is held to the goal its Loop declares, `Run the <loop> Loop` when it declares none, and nothing of its Task; launch words replace that goal. A Loop from a Kit built before Loops declared an Intent is seeded from its Task. A Run that pins a private Team's Kit while it is in another Team gets `Run the <loop> Loop` instead of that Kit's declared goal and list.\n- **Child Runs:** a Child Run, such as the Review or Shepherd a Build calls, is held instead to doing the work its parent's call input asks for and reporting the result in its Output, quoting its parent's current goal and nothing of its own Task. It quotes no goal when its parent was admitted before Runs had an Intent, and then inherits no constraint, or when its parent's goal is private to a Team the Child Run is not in. Launch words given to a Child Run are its goal.\n- **Done when:** for a Loop that does its Task's work, the Task's Acceptance Criteria, also when launch words set the goal. Any other Loop's Run has the list its Loop declares, and none when launch words set its goal. A Child Run has none, whatever its Loop declares: its parent's evidence settles them.\n- **Constraints:** see below.\n\nEach agent Step's brief states the Intent. While the Run is going, its Delivery Owner amends it on the Run page or with:\n\n```sh\nkitman run intent <run> --set-goal \"<text>\"\nkitman run intent <run> --add-constraint \"<text>\"\nkitman run intent <run> --remove-constraint <id>\nkitman run intent <run> --corrections off\n```\n\nEach amendment is a new version with its author, and `kitman run intent <run>` lists them all. On the Run page's Intent tab, edit the goal or a constraint in place: each save is one new version. An edited constraint takes the old one's place under a new id, so Drift Reports against the old wording stay with it. A constraint a person removed or reworded never comes back. A settled or closed Run refuses amendments."
550
533
  },
551
534
  {
552
535
  title: "Loop Operations Guide \u203A Steering, pausing and resuming",
@@ -605,7 +588,7 @@ kitman run drift <run> --dismiss <constraint> --reason "fixtures, not released m
605
588
  path: "loop-operations#alignment",
606
589
  level: 2,
607
590
  link: "https://kitman.sh/knowledge/docs/loop-operations#alignment",
608
- text: "## Alignment\n\nWhen a Run completes, Kitman checks its rules on the last change and runs one final Judgement of the goal, each done-when item and each constraint. The judge sees the last agent Step's evidence and the Run's own Output, and for a Child Run the input its parent called it with. The Run's Alignment is one of three values:\n\n- `aligned`: every rule passes, every semantic constraint holds on untruncated evidence, everything is met, and no report is open.\n- `not_aligned`: a `block` report is open or something is not met.\n- `unverified`: anything else.\n\nA top-level Run that is not aligned goes to Needs you and tells its owner once. `kitman run show`, the Run page and its card in My Teams show the Alignment.\n\nThe final Judgement runs after the Run completes, so its Step does not change whether the Run shows as succeeded or partial. Only the Alignment it sets counts. When the Runner running it is full and another Run's work waits for it, the Judgement gives up its slot, is skipped, and the Run's Alignment is `unverified`."
591
+ text: "## Alignment\n\nWhen a Run completes, Kitman checks its rules on the last change and runs one final Judgement of the goal, each done-when item and each constraint. The judge sees the last agent Step's evidence and the Run's own Output, and for a Child Run the input its parent called it with. The Run's Alignment is one of three values:\n\n- `aligned`: every rule passes, every semantic constraint holds on untruncated evidence, everything is met, and no report is open.\n- `not_aligned`: a `block` report is open or something is not met.\n- `unverified`: anything else.\n\nA top-level Run that is not aligned goes to Needs you and tells its owner once. `kitman run show`, the Run page and its card in My Teams show the Alignment beside the Run's display state; the verdict never changes that state, so a completed Run with nothing missing shows as succeeded whatever its Alignment.\n\nThe final Judgement runs after the Run completes, so neither its Step nor the Alignment it sets changes whether the Run shows as succeeded or partial. When the Runner running it is full and another Run's work waits for it, the Judgement gives up its slot, is skipped, and the Run's Alignment is `unverified`."
609
592
  },
610
593
  {
611
594
  title: "Loop Operations Guide \u203A Tokens",
@@ -1450,6 +1433,7 @@ Read this before you create a Task or write a plan's ticket.`
1450
1433
  text: `## One Promise per Task
1451
1434
 
1452
1435
  - Give a Task one Promise: one sentence that says what is true once it is done. Write it in the Task's \`promise\`. Two Promises are two Tasks.
1436
+ - Every Acceptance Criterion serves the Task's Promise. One that serves another Promise belongs to another Task.
1453
1437
  - A Promise is open-ended when it covers cases nobody can list, such as every path, any input or all source code. Reviews of it keep finding one more case. Split it into a first Task with a bounded case, whose cases you list, and later Tasks that each widen it.
1454
1438
  - Size a Task to fit one agent session under 200k tokens of context, from reading the code to a verified change. Split one that does not fit.`
1455
1439
  },
@@ -1929,6 +1913,11 @@ export type LoopDefinition<In, Out, E> = {
1929
1913
  readonly input: LoopSchema<In>
1930
1914
  readonly output: LoopSchema<Out>
1931
1915
  readonly outcome?: LoopOutcome
1916
+ /**
1917
+ * What a top-level Run is held to: \`task\` takes the goal and done-when list from the Run's Task; otherwise the
1918
+ * declared non-blank goal and list. Left out, the goal is \`Run the <id> Loop\`.
1919
+ */
1920
+ readonly intent?: 'task' | { readonly goal: string; readonly doneWhen?: readonly string[] }
1932
1921
  /**
1933
1922
  * The role it plays, whose powers the control plane gives any Loop that declares it: \`review\` approves a
1934
1923
  * ChangeRequest's head, is reused and covers a fix, as Kitman's Review does; \`release\` delivers a Project, as
@@ -2068,6 +2057,8 @@ export const loopManifest = <In, Out, E>(
2068
2057
  message: 'description must be one line of 1 to 160 characters'
2069
2058
  })
2070
2059
 
2060
+ const intent = yield* declaredIntent(definition)
2061
+
2071
2062
  const input = yield* jsonSchemaOf(definition.id, definition.input)
2072
2063
  const output = yield* jsonSchemaOf(definition.id, definition.output)
2073
2064
 
@@ -2082,6 +2073,7 @@ export const loopManifest = <In, Out, E>(
2082
2073
  output,
2083
2074
  ...(definition.outcome === undefined ? undefined : { outcome: definition.outcome }),
2084
2075
  ...(definition.role === undefined ? undefined : { role: definition.role }),
2076
+ intent,
2085
2077
  agents: definition.agents,
2086
2078
  checkout: definition.checkout,
2087
2079
  when: yield* namedWhenClauses(definition.id, definition.when ?? []),
@@ -2230,7 +2222,7 @@ var pathOfLink = (link) => {
2230
2222
  return page === null ? link : page[1] || "index";
2231
2223
  };
2232
2224
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
2233
- var pinnedLink2 = (link, version = "0.51.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2225
+ var pinnedLink2 = (link, version = "0.53.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2234
2226
  var pageOf = (path) => path.split("#")[0];
2235
2227
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
2236
2228
  function excerpt(text, queryTerms) {
@@ -186,7 +186,7 @@ import {
186
186
  decodeJsonStringSync,
187
187
  encodeUnknownJsonStringSync,
188
188
  storable
189
- } from "./chunk-k462v2v7.js";
189
+ } from "./chunk-n381rqax.js";
190
190
  import {
191
191
  SecureRandom,
192
192
  layerWebCrypto,
@@ -277,10 +277,9 @@ import {
277
277
  checkServicesFile,
278
278
  checkServices,
279
279
  serviceChecks
280
- } from "./chunk-tse7tfe9.js";
280
+ } from "./chunk-1zvfqdby.js";
281
281
  import {
282
282
  empty2,
283
- currentTimeMillis,
284
283
  join,
285
284
  interrupt,
286
285
  interruptAll,
@@ -330,7 +329,7 @@ import {
330
329
  writeSrtSettings2,
331
330
  srtStepArgv2,
332
331
  srtArgv2
333
- } from "./chunk-5smh4dp2.js";
332
+ } from "./chunk-hyaq30ne.js";
334
333
  import {
335
334
  writeAgentEnvironmentConfigFile2,
336
335
  readManifestSkillPaths2,
@@ -346,8 +345,13 @@ import {
346
345
  applyAgentEnvironmentMaterialization2,
347
346
  isPathWithin2,
348
347
  skillIdentity2
349
- } from "./chunk-c3yzdpwf.js";
350
- import"./chunk-hf0chy5n.js";
348
+ } from "./chunk-cy13pst5.js";
349
+ import"./chunk-5bpp6k0h.js";
350
+ import {
351
+ currentTimeMillis,
352
+ ChildProcessSpawner,
353
+ make2
354
+ } from "./chunk-8r9k7pqk.js";
351
355
  import {
352
356
  egressAllowed,
353
357
  writeSecretRegistry,
@@ -357,7 +361,7 @@ import {
357
361
  secretFilter2,
358
362
  opaqueTunnelRefusal2,
359
363
  isOpaqueConnectReason2
360
- } from "./chunk-n3jpxd14.js";
364
+ } from "./chunk-n00cpb86.js";
361
365
  import {
362
366
  sliceBytes2,
363
367
  maxLineBytes2,
@@ -367,29 +371,25 @@ import {
367
371
  lookAtOpencode2,
368
372
  readOpencode2,
369
373
  databaseStamp2
370
- } from "./chunk-8gkrs473.js";
374
+ } from "./chunk-72ht3484.js";
371
375
  import {
372
376
  uploadRunFile,
373
377
  programLease,
374
378
  rpcRunFiles,
375
379
  programHostsEnv,
376
380
  undeclaredHostsEnv
377
- } from "./chunk-6ryjppc7.js";
378
- import"./chunk-558rmyma.js";
381
+ } from "./chunk-e627b064.js";
382
+ import"./chunk-stx87en6.js";
379
383
  import {
380
384
  nextInt
381
- } from "./chunk-04wqa07j.js";
382
- import"./chunk-9ykh05hz.js";
383
- import {
384
- ChildProcessSpawner,
385
- make2
386
- } from "./chunk-fqh4pj6b.js";
387
- import"./chunk-5hsqbwzd.js";
385
+ } from "./chunk-apv9h5tz.js";
386
+ import"./chunk-k1fdsn2c.js";
387
+ import"./chunk-ab7r6p1s.js";
388
388
  import {
389
389
  Id,
390
390
  secretReference,
391
391
  secretPlaceholder
392
- } from "./chunk-4vxbxjf8.js";
392
+ } from "./chunk-5tgpa02q.js";
393
393
 
394
394
  // packages/core/src/sync-kit.ts
395
395
  import { createHash } from "crypto";