@kitman-sh/cli 0.13.7 → 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.
- package/dist/{chunk-pxvd8w2v.js → chunk-0tjg9eya.js} +1 -1
- package/dist/{chunk-9g8tc40f.js → chunk-0wj65j5e.js} +7 -7
- package/dist/{chunk-4bgj3b5r.js → chunk-1ht6jwzm.js} +10 -9
- package/dist/{chunk-4crf5vhd.js → chunk-53qp6kcp.js} +2 -2
- package/dist/{chunk-xt97vb58.js → chunk-69fcvx7d.js} +109 -65
- package/dist/{chunk-bbks1scp.js → chunk-6jtjcvnc.js} +60 -46
- package/dist/{chunk-4x3zm541.js → chunk-9gg1w4aa.js} +353 -434
- package/dist/{chunk-m406nanz.js → chunk-a44ebqzx.js} +6 -6
- package/dist/{chunk-t82w7459.js → chunk-aezq3fyy.js} +69 -218
- package/dist/{chunk-24h0y27w.js → chunk-cw61zyh5.js} +1 -1
- package/dist/{chunk-kk32jckf.js → chunk-ezv4p0zr.js} +4 -4
- package/dist/{chunk-mmd7mjv0.js → chunk-fh58za51.js} +3 -3
- package/dist/{chunk-m079pjdy.js → chunk-hezxa6q5.js} +7 -7
- package/dist/{chunk-vxfajzpz.js → chunk-kq88aaa3.js} +62 -16
- package/dist/{chunk-x44re8th.js → chunk-ksgt1tdc.js} +7 -7
- package/dist/{chunk-t37qzgmb.js → chunk-pj3mer60.js} +4 -4
- package/dist/{chunk-zgraq2y3.js → chunk-qjqa338f.js} +308 -111
- package/dist/{chunk-1nxcn08k.js → chunk-qkjfx2ts.js} +16 -16
- package/dist/{chunk-byg71zra.js → chunk-rz18qefg.js} +7 -7
- package/dist/{chunk-bs5bh8ys.js → chunk-s63fjc69.js} +20 -20
- package/dist/{chunk-mtdz4k32.js → chunk-tspf987k.js} +5 -5
- package/dist/{chunk-8v0t5kzg.js → chunk-v190zzc5.js} +1 -1
- package/dist/{chunk-22z1yemd.js → chunk-wzr1n3zy.js} +11 -5
- package/dist/{chunk-jbjz7b6n.js → chunk-x8sewxzm.js} +106 -106
- package/dist/{chunk-ggmwpwhf.js → chunk-z5f7g1w1.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
add,
|
|
13
13
|
getOrUndefinedUnsafe,
|
|
14
14
|
getUnsafe,
|
|
15
|
-
|
|
15
|
+
get3,
|
|
16
16
|
Reference,
|
|
17
17
|
toMillis,
|
|
18
18
|
isSuccess,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
interrupt2,
|
|
23
23
|
void_2,
|
|
24
24
|
isFailure2,
|
|
25
|
-
|
|
25
|
+
makeUnsafe4,
|
|
26
26
|
_await,
|
|
27
27
|
isDoneUnsafe,
|
|
28
28
|
succeed4,
|
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
findError,
|
|
37
37
|
hasInterrupts2,
|
|
38
38
|
interruptors,
|
|
39
|
+
Clock,
|
|
39
40
|
min2,
|
|
40
41
|
exponential,
|
|
41
42
|
spaced,
|
|
@@ -51,7 +52,7 @@ import {
|
|
|
51
52
|
withFiber2,
|
|
52
53
|
flatMap3,
|
|
53
54
|
andThen2,
|
|
54
|
-
|
|
55
|
+
map7,
|
|
55
56
|
catchCause2,
|
|
56
57
|
catchCauseIf,
|
|
57
58
|
orDie,
|
|
@@ -96,11 +97,11 @@ import {
|
|
|
96
97
|
Defect,
|
|
97
98
|
Exit,
|
|
98
99
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-qjqa338f.js";
|
|
100
101
|
import {
|
|
101
102
|
interrupt,
|
|
102
103
|
getCurrent,
|
|
103
|
-
|
|
104
|
+
makeUnsafe,
|
|
104
105
|
bounded,
|
|
105
106
|
offerAll,
|
|
106
107
|
failCause,
|
|
@@ -108,9 +109,8 @@ import {
|
|
|
108
109
|
shutdownUnsafe,
|
|
109
110
|
fromQueue,
|
|
110
111
|
unwrap
|
|
111
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-aezq3fyy.js";
|
|
112
113
|
import {
|
|
113
|
-
Clock,
|
|
114
114
|
empty,
|
|
115
115
|
fromInput,
|
|
116
116
|
merge,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-9gg1w4aa.js";
|
|
127
127
|
|
|
128
128
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
|
|
129
129
|
class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
|
|
@@ -200,7 +200,7 @@ var withRunClient = (f) => suspend3(() => {
|
|
|
200
200
|
buffer.push([data, context]);
|
|
201
201
|
return void_3;
|
|
202
202
|
});
|
|
203
|
-
return
|
|
203
|
+
return map7(f((clientId, data) => {
|
|
204
204
|
const clientWrite = clientWrites.get(clientId);
|
|
205
205
|
if (clientWrite) {
|
|
206
206
|
return clientWrite(data);
|
|
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
237
237
|
const disableTracing = options?.disableTracing ?? false;
|
|
238
238
|
const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
|
|
239
239
|
const services = yield* context();
|
|
240
|
-
const scope =
|
|
240
|
+
const scope = get3(services, Scope);
|
|
241
241
|
const entries = new Map;
|
|
242
242
|
let isShutdown = false;
|
|
243
243
|
yield* addFinalizer(scope, withFiber2((parent) => {
|
|
@@ -271,7 +271,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
271
271
|
const queue = onStreamRequest(rpc, middleware, rpc.payloadSchema.make(payload), headers, opts?.streamBufferSize ?? 16, context);
|
|
272
272
|
if (opts?.asQueue)
|
|
273
273
|
return queue;
|
|
274
|
-
return unwrap(
|
|
274
|
+
return unwrap(map7(queue, fromQueue));
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
const onEffectRequest = (rpc, middleware, span, payload, headers, context, discard) => withFiber2((parentFiber) => {
|
|
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
483
483
|
};
|
|
484
484
|
});
|
|
485
485
|
var clientIdCounter = 0;
|
|
486
|
-
var
|
|
486
|
+
var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
|
|
487
487
|
const clientId = clientIdCounter++;
|
|
488
488
|
const {
|
|
489
489
|
codecFor,
|
|
@@ -495,7 +495,7 @@ var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
|
|
|
495
495
|
const rpcSchemas = makeRpcSchemas(codecFor);
|
|
496
496
|
const decodeDefect = decodeSync(codecFor(Defect()));
|
|
497
497
|
const entries = new Map;
|
|
498
|
-
const closing =
|
|
498
|
+
const closing = makeUnsafe4();
|
|
499
499
|
const interruptRequest = (requestId) => {
|
|
500
500
|
if (!entries.has(requestId))
|
|
501
501
|
return void_3;
|
|
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
|
|
|
643
643
|
return entry;
|
|
644
644
|
}
|
|
645
645
|
const streamSchemas = getStreamSchemas(rpc.successSchema);
|
|
646
|
-
const parseOptions =
|
|
646
|
+
const parseOptions = get3(rpc.annotations, ParseOptions);
|
|
647
647
|
const exitSchema2 = exitSchema(rpc);
|
|
648
648
|
let decodeDiscardExit;
|
|
649
649
|
entry = {
|
|
@@ -804,7 +804,7 @@ var makePinger = /* @__PURE__ */ fnUntraced(function* (writePing, options) {
|
|
|
804
804
|
const timeoutMillis = toMillis(options?.pingTimeout ?? interval);
|
|
805
805
|
let lastSeen = clock.currentTimeMillisUnsafe();
|
|
806
806
|
let awaitingResponse = false;
|
|
807
|
-
const latch =
|
|
807
|
+
const latch = makeUnsafe();
|
|
808
808
|
const onFrame = () => {
|
|
809
809
|
lastSeen = clock.currentTimeMillisUnsafe();
|
|
810
810
|
awaitingResponse = false;
|
|
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
|
|
|
829
829
|
class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
export { layerJson,
|
|
832
|
+
export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FileSystem,
|
|
4
4
|
Path
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-aezq3fyy.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-
|
|
21
|
-
import"./chunk-
|
|
20
|
+
} from "./chunk-qjqa338f.js";
|
|
21
|
+
import"./chunk-0tjg9eya.js";
|
|
22
22
|
import {
|
|
23
23
|
tomlTableHeader2,
|
|
24
24
|
tomlKeyPath2,
|
|
25
25
|
kitmanSkillEntry,
|
|
26
26
|
isPathWithin2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-0wj65j5e.js";
|
|
28
28
|
import {
|
|
29
29
|
instructionsStart,
|
|
30
30
|
instructionsEnd,
|
|
31
31
|
renderMcpServer,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-9gg1w4aa.js";
|
|
35
|
+
import"./chunk-hezxa6q5.js";
|
|
36
|
+
import"./chunk-kq88aaa3.js";
|
|
37
37
|
|
|
38
38
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
39
39
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
Path,
|
|
7
7
|
withDefault,
|
|
8
8
|
String2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-aezq3fyy.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
|
-
|
|
21
|
+
map7,
|
|
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-
|
|
44
|
-
import"./chunk-
|
|
43
|
+
} from "./chunk-qjqa338f.js";
|
|
44
|
+
import"./chunk-0tjg9eya.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-
|
|
56
|
+
} from "./chunk-9gg1w4aa.js";
|
|
57
57
|
import {
|
|
58
58
|
Packument,
|
|
59
59
|
tarballMatches
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import"./chunk-
|
|
60
|
+
} from "./chunk-hezxa6q5.js";
|
|
61
|
+
import"./chunk-ksgt1tdc.js";
|
|
62
62
|
import {
|
|
63
63
|
AgentDeclaration,
|
|
64
64
|
KitDeclarations,
|
|
65
65
|
describeFlag,
|
|
66
66
|
Described
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-1ht6jwzm.js";
|
|
68
68
|
import {
|
|
69
69
|
ChildProcessSpawner,
|
|
70
|
-
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import"./chunk-
|
|
70
|
+
make3
|
|
71
|
+
} from "./chunk-kq88aaa3.js";
|
|
72
|
+
import"./chunk-qkjfx2ts.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(
|
|
111
|
+
const handle = yield* spawner.spawn(make3(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(
|
|
121
|
+
const git = (...args) => run("git", args, directory).pipe(map7((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]) :
|
|
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));
|
|
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),
|
|
222
|
+
const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), map7((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) =>
|
|
263
|
+
const skills = setup.skills === undefined ? undefined : yield* forEach(setup.skills, (skill) => map7(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) =>
|
|
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) => ({
|
|
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(
|
|
313
|
+
if (yield* fs.stat(candidate).pipe(map7((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(
|
|
354
|
+
const transpiled = yield* run("bun", ["build", "--no-bundle", file], root).pipe(map7((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(
|
|
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 })));
|
|
481
481
|
return {
|
|
482
482
|
...identity,
|
|
483
483
|
bundle,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
make10,
|
|
4
4
|
runForEach,
|
|
5
5
|
compiled2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-aezq3fyy.js";
|
|
7
7
|
import {
|
|
8
8
|
getOrUndefined,
|
|
9
9
|
liftThrowable,
|
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
isJsonObject,
|
|
31
31
|
isString2,
|
|
32
32
|
encodeUnknownJsonStringSync
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-qjqa338f.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
make3
|
|
37
|
+
} from "./chunk-kq88aaa3.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -167,7 +167,7 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
167
167
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
168
168
|
const spawner = yield* ChildProcessSpawner;
|
|
169
169
|
const [command, ...args] = opencodeReaderCommand();
|
|
170
|
-
const handle = yield* spawner.spawn(
|
|
170
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
171
171
|
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
172
172
|
stderr: "ignore",
|
|
173
173
|
extendEnv: false,
|
|
@@ -548,7 +548,11 @@ Pause holds a Run and its Child Runs without stopping them: Runners are offered
|
|
|
548
548
|
path: "loop-operations#reviewing-a-plan",
|
|
549
549
|
level: 2,
|
|
550
550
|
link: "https://kitman.sh/knowledge/docs/loop-operations#reviewing-a-plan",
|
|
551
|
-
text:
|
|
551
|
+
text: `## Reviewing a plan
|
|
552
|
+
|
|
553
|
+
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.
|
|
554
|
+
|
|
555
|
+
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.`
|
|
552
556
|
},
|
|
553
557
|
{
|
|
554
558
|
title: "Loop Operations Guide \u203A Constraints",
|
|
@@ -620,7 +624,7 @@ Turning a start off stops new Runs from it. Runs it already started go on. \`kit
|
|
|
620
624
|
path: "loop-operations#agents-and-effort",
|
|
621
625
|
level: 2,
|
|
622
626
|
link: "https://kitman.sh/knowledge/docs/loop-operations#agents-and-effort",
|
|
623
|
-
text: "## Agents and effort\n\nKitman ships the Agents `implementer`, `reviewer`, `planner`, `releaser`, `investigator` and `judge`. The `reviewer` runs on Pi with GPT-6.2 Sol, then Claude Opus at `medium` effort, and the `planner` on Claude Fable 5.2 at `high` effort. The others name no model, so a Step runs on whatever model the Runner's harness is logged in to. A Workspace or Team overrides one, such as its harness, model or effort, by declaring an Agent of the same id that extends it, in a Kit it deploys. Each declaration is a layer over the Agent it extends:\n\n```ts\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n instructions: `## House rules\nNever approve a migration that edits a released one.`,\n effort: 'high'\n }\n }\n})\n```\n\nA declared Agent replaces only the fields it names. Its instructions merge by `## ` heading:\n\n- A section it names replaces the parent's section with that heading.\n- A new heading is appended.\n- Any text before its first heading replaces the parent's.\n\nAn Agent can list fallbacks for a Runner that does not offer its Harness:\n\n```ts\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n harness: 'claude',\n effort: 'high',\n fallbacks: [\n { harness: 'codex', model: 'gpt-5.5' },\n { harness: 'pi', effort: 'medium' }\n ]\n }\n }\n})\n```\n\nA Step launches the first choice the claiming Runner offers, and the Run page's Step view shows the choices it skipped and why. A fallback with no effort runs at the Agent's effort, and one with no model runs on the Harness's own model. An Agent that extends another inherits its fallbacks; naming `fallbacks` replaces them, and `fallbacks: []` clears them.\n\nEffort (`low`, `medium`, `high` or `xhigh`) is recorded on each StepAttempt. `kitman agent list --team <team>` shows each Agent merged as that Team's Runs resolve it, with the layer each field came from, so a Team Kit's override reads `claude (team)`. Without `--team` it uses the active Team, or only the workspace layer when there is none, and its first line says which."
|
|
627
|
+
text: "## Agents and effort\n\nKitman ships the Agents `implementer`, `reviewer`, `plan-reviewer`, `planner`, `releaser`, `investigator` and `judge`. The `reviewer` runs on Pi with GPT-6.2 Sol, then Claude Opus at `medium` effort; the `plan-reviewer` runs on the same, with Opus at `high` effort; and the `planner` runs on Claude Fable 5.2 at `high` effort. The others name no model, so a Step runs on whatever model the Runner's harness is logged in to. A Workspace or Team overrides one, such as its harness, model or effort, by declaring an Agent of the same id that extends it, in a Kit it deploys. Each declaration is a layer over the Agent it extends:\n\n```ts\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n instructions: `## House rules\nNever approve a migration that edits a released one.`,\n effort: 'high'\n }\n }\n})\n```\n\nA declared Agent replaces only the fields it names. Its instructions merge by `## ` heading:\n\n- A section it names replaces the parent's section with that heading.\n- A new heading is appended.\n- Any text before its first heading replaces the parent's.\n\nAn Agent can list fallbacks for a Runner that does not offer its Harness:\n\n```ts\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n harness: 'claude',\n effort: 'high',\n fallbacks: [\n { harness: 'codex', model: 'gpt-5.5' },\n { harness: 'pi', effort: 'medium' }\n ]\n }\n }\n})\n```\n\nA Step launches the first choice the claiming Runner offers, and the Run page's Step view shows the choices it skipped and why. A fallback with no effort runs at the Agent's effort, and one with no model runs on the Harness's own model. An Agent that extends another inherits its fallbacks; naming `fallbacks` replaces them, and `fallbacks: []` clears them.\n\nEffort (`low`, `medium`, `high` or `xhigh`) is recorded on each StepAttempt. `kitman agent list --team <team>` shows each Agent merged as that Team's Runs resolve it, with the layer each field came from, so a Team Kit's override reads `claude (team)`. Without `--team` it uses the active Team, or only the workspace layer when there is none, and its first line says which."
|
|
624
628
|
},
|
|
625
629
|
{
|
|
626
630
|
title: "Projects and Saved Views",
|
|
@@ -815,7 +819,7 @@ Read this before you create a Task or write a plan's ticket.`
|
|
|
815
819
|
link: "https://kitman.sh/knowledge/docs/scope-tasks#one-promise-per-task",
|
|
816
820
|
text: `## One Promise per Task
|
|
817
821
|
|
|
818
|
-
- Give a Task one Promise: one sentence that says what is true once it is done.
|
|
822
|
+
- 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.
|
|
819
823
|
- 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.
|
|
820
824
|
- 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.`
|
|
821
825
|
},
|
|
@@ -831,7 +835,7 @@ Read this before you create a Task or write a plan's ticket.`
|
|
|
831
835
|
- **Cases:** list the cases it handles, with the failures, and what happens in each.
|
|
832
836
|
- **Tests:** name what a test must show, and where the tests go. Make each Acceptance Criterion something a reviewer can check against the change.
|
|
833
837
|
- **Where to start:** name the modules, documents and decisions to read first.
|
|
834
|
-
- **Out of scope:** list the cases the Task does not handle.
|
|
838
|
+
- **Out of scope:** list the cases the Task does not handle. When the Promise is open-ended, list them in \`outOfScope\`.
|
|
835
839
|
- **Blockers:** name the Tasks whose code it needs, and relate them as blockers.
|
|
836
840
|
|
|
837
841
|
Write no code and no line numbers: both are out of date before the Task is built. Name things by what they are called.`
|
|
@@ -901,6 +905,8 @@ Press **C** or use **New task** in a Team view. A title is enough; everything el
|
|
|
901
905
|
|
|
902
906
|
Open a Task beside its list, or on its own page. The description is markdown and saves as you type. If someone else changes it while you edit, Kitman tells you instead of overwriting their work. The Promise is one sentence that says what is true once the Task is done. Acceptance Criteria are an ordered list that reviews and Runs hold the work to. Out of scope lists the cases the Task does not handle. All three are optional.
|
|
903
907
|
|
|
908
|
+
A Team can require agents to state a Task's scope. An owner or admin turns on **Agents must state a Task's scope** under **Settings**, **Forges**, **Edit delivery**, or a signed-in person with access to the Team runs \`kitman team scope <team> required\`; an agent cannot change it. A Task an agent creates without a Promise is then refused with [how to scope a Task](/docs/scope-tasks), and it creates the Task again with one. A Task from a person, an Event, an alert, launch words, a plan ticket or a Proposal a person approves needs none.
|
|
909
|
+
|
|
904
910
|
Change a Task's state, priority, assignee, Labels, repository and Task Type from the list, the board or the Task page. From the keyboard: **S** state, **P** priority, **A** assignee, **L** Labels, **T** Task Type, **M** move to another Team, **R** start a Run, **X** select. **?** lists every shortcut with the control that does the same.
|
|
905
911
|
|
|
906
912
|
Select several Tasks to change their state, priority, Task Type, assignee, Labels, repository or Team in one action.
|
|
@@ -1529,7 +1535,7 @@ var pathOfLink = (link) => {
|
|
|
1529
1535
|
return page === null ? link : page[1] || "index";
|
|
1530
1536
|
};
|
|
1531
1537
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1532
|
-
var pinnedLink2 = (link, version = "0.13.
|
|
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}/`);
|
|
1533
1539
|
var pageOf = (path) => path.split("#")[0];
|
|
1534
1540
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1535
1541
|
function excerpt(text, queryTerms) {
|