@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.
- package/dist/{chunk-q5w3v4k1.js → chunk-0tjg9eya.js} +1 -1
- package/dist/{chunk-zz589n7a.js → chunk-0wj65j5e.js} +12 -12
- package/dist/{chunk-7bytsxkf.js → chunk-1ht6jwzm.js} +13 -12
- package/dist/{chunk-5zth85pj.js → chunk-53qp6kcp.js} +2 -2
- package/dist/{chunk-gj1padza.js → chunk-69fcvx7d.js} +39 -39
- package/dist/{chunk-eg1n8wvf.js → chunk-6jtjcvnc.js} +44 -44
- package/dist/{chunk-vm2qy986.js → chunk-9gg1w4aa.js} +283 -375
- package/dist/{chunk-96svx416.js → chunk-a44ebqzx.js} +6 -6
- package/dist/{chunk-0h49y8gf.js → chunk-aezq3fyy.js} +74 -214
- package/dist/{chunk-gq7y5v3e.js → chunk-cw61zyh5.js} +1 -1
- package/dist/{chunk-5zhh41gb.js → chunk-ezv4p0zr.js} +4 -4
- package/dist/{chunk-gy9rf14f.js → chunk-fh58za51.js} +3 -3
- package/dist/{chunk-byeasm6x.js → chunk-hezxa6q5.js} +7 -7
- package/dist/{chunk-mtkstrh3.js → chunk-kq88aaa3.js} +4 -4
- package/dist/{chunk-cq2h8q9e.js → chunk-ksgt1tdc.js} +4 -4
- package/dist/{chunk-c4ccpwjy.js → chunk-pj3mer60.js} +4 -4
- package/dist/{chunk-zw3gf6r5.js → chunk-qjqa338f.js} +333 -94
- package/dist/{chunk-h1rmw7yk.js → chunk-qkjfx2ts.js} +14 -14
- package/dist/{chunk-08dyrk6y.js → chunk-rz18qefg.js} +10 -10
- package/dist/{chunk-gr17n0z3.js → chunk-s63fjc69.js} +25 -25
- package/dist/{chunk-cbpb2rww.js → chunk-tspf987k.js} +8 -8
- package/dist/{chunk-ff1r9vcq.js → chunk-v190zzc5.js} +1 -1
- package/dist/{chunk-a24jc5rx.js → chunk-wzr1n3zy.js} +7 -3
- package/dist/{chunk-z68rzf0f.js → chunk-x8sewxzm.js} +145 -145
- package/dist/{chunk-y1krmnbv.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) => {
|
|
@@ -495,7 +495,7 @@ var make4 = /* @__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;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
FileSystem,
|
|
4
|
+
Path
|
|
5
|
+
} from "./chunk-aezq3fyy.js";
|
|
2
6
|
import {
|
|
3
7
|
isObject,
|
|
4
8
|
isUint8Array,
|
|
@@ -13,27 +17,23 @@ import {
|
|
|
13
17
|
isJsonObject,
|
|
14
18
|
decodeJsonString,
|
|
15
19
|
encodePrettyJsonString
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import"./chunk-
|
|
18
|
-
import {
|
|
19
|
-
FileSystem,
|
|
20
|
-
Path
|
|
21
|
-
} from "./chunk-0h49y8gf.js";
|
|
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") {
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
decodeText,
|
|
4
|
+
mkString,
|
|
5
|
+
FileSystem,
|
|
6
|
+
Path,
|
|
7
|
+
withDefault,
|
|
8
|
+
String2
|
|
9
|
+
} from "./chunk-aezq3fyy.js";
|
|
2
10
|
import {
|
|
3
11
|
isString,
|
|
4
12
|
hasProperty,
|
|
@@ -10,7 +18,7 @@ import {
|
|
|
10
18
|
gen,
|
|
11
19
|
fail7,
|
|
12
20
|
flatMap3,
|
|
13
|
-
|
|
21
|
+
map7,
|
|
14
22
|
catchTags,
|
|
15
23
|
mapError2,
|
|
16
24
|
orDie,
|
|
@@ -32,8 +40,8 @@ import {
|
|
|
32
40
|
toCodecJson,
|
|
33
41
|
Json,
|
|
34
42
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-
|
|
43
|
+
} from "./chunk-qjqa338f.js";
|
|
44
|
+
import"./chunk-0tjg9eya.js";
|
|
37
45
|
import {
|
|
38
46
|
SecureRandom,
|
|
39
47
|
layerWebCrypto,
|
|
@@ -45,31 +53,23 @@ import {
|
|
|
45
53
|
layer4,
|
|
46
54
|
kitmanMcpServer,
|
|
47
55
|
RunnerRpcProtocolVersion
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import {
|
|
50
|
-
decodeText,
|
|
51
|
-
mkString,
|
|
52
|
-
FileSystem,
|
|
53
|
-
Path,
|
|
54
|
-
withDefault,
|
|
55
|
-
String2
|
|
56
|
-
} from "./chunk-0h49y8gf.js";
|
|
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
70
|
make3
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import"./chunk-
|
|
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", {
|
|
@@ -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,
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
make10,
|
|
4
|
+
runForEach,
|
|
5
|
+
compiled2
|
|
6
|
+
} from "./chunk-aezq3fyy.js";
|
|
2
7
|
import {
|
|
3
8
|
getOrUndefined,
|
|
4
9
|
liftThrowable,
|
|
@@ -25,16 +30,11 @@ import {
|
|
|
25
30
|
isJsonObject,
|
|
26
31
|
isString2,
|
|
27
32
|
encodeUnknownJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
make11,
|
|
31
|
-
runForEach,
|
|
32
|
-
compiled2
|
|
33
|
-
} from "./chunk-0h49y8gf.js";
|
|
33
|
+
} from "./chunk-qjqa338f.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
36
|
make3
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-kq88aaa3.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -168,7 +168,7 @@ var isolatedRead = (store, name, input) => gen(function* () {
|
|
|
168
168
|
const spawner = yield* ChildProcessSpawner;
|
|
169
169
|
const [command, ...args] = opencodeReaderCommand();
|
|
170
170
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
171
|
-
stdin:
|
|
171
|
+
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
172
172
|
stderr: "ignore",
|
|
173
173
|
extendEnv: false,
|
|
174
174
|
env: {},
|
|
@@ -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",
|
|
@@ -1531,7 +1535,7 @@ var pathOfLink = (link) => {
|
|
|
1531
1535
|
return page === null ? link : page[1] || "index";
|
|
1532
1536
|
};
|
|
1533
1537
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1534
|
-
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}/`);
|
|
1535
1539
|
var pageOf = (path) => path.split("#")[0];
|
|
1536
1540
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1537
1541
|
function excerpt(text, queryTerms) {
|