@kitman-sh/cli 0.13.7 → 0.13.8
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-byg71zra.js → chunk-08dyrk6y.js} +10 -10
- package/dist/{chunk-t82w7459.js → chunk-0h49y8gf.js} +17 -26
- package/dist/{chunk-kk32jckf.js → chunk-5zhh41gb.js} +4 -4
- package/dist/{chunk-4crf5vhd.js → chunk-5zth85pj.js} +2 -2
- package/dist/{chunk-4bgj3b5r.js → chunk-7bytsxkf.js} +7 -7
- package/dist/{chunk-m406nanz.js → chunk-96svx416.js} +6 -6
- package/dist/{chunk-22z1yemd.js → chunk-a24jc5rx.js} +5 -3
- package/dist/{chunk-m079pjdy.js → chunk-byeasm6x.js} +3 -3
- package/dist/{chunk-t37qzgmb.js → chunk-c4ccpwjy.js} +4 -4
- package/dist/{chunk-mtdz4k32.js → chunk-cbpb2rww.js} +10 -10
- package/dist/{chunk-x44re8th.js → chunk-cq2h8q9e.js} +7 -7
- package/dist/{chunk-bbks1scp.js → chunk-eg1n8wvf.js} +35 -21
- package/dist/{chunk-8v0t5kzg.js → chunk-ff1r9vcq.js} +1 -1
- package/dist/{chunk-xt97vb58.js → chunk-gj1padza.js} +87 -43
- package/dist/{chunk-24h0y27w.js → chunk-gq7y5v3e.js} +1 -1
- package/dist/{chunk-bs5bh8ys.js → chunk-gr17n0z3.js} +18 -18
- package/dist/{chunk-mmd7mjv0.js → chunk-gy9rf14f.js} +3 -3
- package/dist/{chunk-1nxcn08k.js → chunk-h1rmw7yk.js} +5 -5
- package/dist/{chunk-vxfajzpz.js → chunk-mtkstrh3.js} +60 -14
- package/dist/{chunk-pxvd8w2v.js → chunk-q5w3v4k1.js} +1 -1
- package/dist/{chunk-4x3zm541.js → chunk-vm2qy986.js} +119 -108
- package/dist/{chunk-ggmwpwhf.js → chunk-y1krmnbv.js} +2 -2
- package/dist/{chunk-jbjz7b6n.js → chunk-z68rzf0f.js} +61 -61
- package/dist/{chunk-zgraq2y3.js → chunk-zw3gf6r5.js} +28 -70
- package/dist/{chunk-9g8tc40f.js → chunk-zz589n7a.js} +9 -9
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
FileSystem,
|
|
4
|
-
Path
|
|
5
|
-
} from "./chunk-t82w7459.js";
|
|
6
2
|
import {
|
|
7
3
|
isObject,
|
|
8
4
|
isUint8Array,
|
|
@@ -17,23 +13,27 @@ import {
|
|
|
17
13
|
isJsonObject,
|
|
18
14
|
decodeJsonString,
|
|
19
15
|
encodePrettyJsonString
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import"./chunk-
|
|
16
|
+
} from "./chunk-zw3gf6r5.js";
|
|
17
|
+
import"./chunk-q5w3v4k1.js";
|
|
18
|
+
import {
|
|
19
|
+
FileSystem,
|
|
20
|
+
Path
|
|
21
|
+
} from "./chunk-0h49y8gf.js";
|
|
22
22
|
import {
|
|
23
23
|
tomlTableHeader2,
|
|
24
24
|
tomlKeyPath2,
|
|
25
25
|
kitmanSkillEntry,
|
|
26
26
|
isPathWithin2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-zz589n7a.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-vm2qy986.js";
|
|
35
|
+
import"./chunk-byeasm6x.js";
|
|
36
|
+
import"./chunk-mtkstrh3.js";
|
|
37
37
|
|
|
38
38
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
39
39
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -201,7 +201,7 @@ import {
|
|
|
201
201
|
String4,
|
|
202
202
|
toCodecStringTree,
|
|
203
203
|
encodeUnknownJsonStringSync
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-zw3gf6r5.js";
|
|
205
205
|
|
|
206
206
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
207
207
|
var headUnsafe = (self) => {
|
|
@@ -250,15 +250,6 @@ var makeEquivalence = (equivalence) => {
|
|
|
250
250
|
return (self, that) => is(self, that) && is(that, self);
|
|
251
251
|
};
|
|
252
252
|
|
|
253
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
254
|
-
var BigInt2 = globalThis.BigInt;
|
|
255
|
-
var toNumber = (b) => {
|
|
256
|
-
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
257
|
-
return none();
|
|
258
|
-
}
|
|
259
|
-
return some(Number(b));
|
|
260
|
-
};
|
|
261
|
-
|
|
262
253
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
263
254
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
264
255
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -1138,7 +1129,7 @@ var MutableRefProto = {
|
|
|
1138
1129
|
};
|
|
1139
1130
|
}
|
|
1140
1131
|
};
|
|
1141
|
-
var
|
|
1132
|
+
var make8 = (value) => {
|
|
1142
1133
|
const ref = Object.create(MutableRefProto);
|
|
1143
1134
|
ref.current = value;
|
|
1144
1135
|
return ref;
|
|
@@ -1299,7 +1290,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1299
1290
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1300
1291
|
var TypeId3 = "~effect/PubSub";
|
|
1301
1292
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1302
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1293
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1303
1294
|
var unbounded = (options) => make5({
|
|
1304
1295
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1305
1296
|
strategy: () => new DroppingStrategy
|
|
@@ -1394,7 +1385,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1394
1385
|
subscribers.delete(subscription);
|
|
1395
1386
|
}
|
|
1396
1387
|
};
|
|
1397
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1388
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1398
1389
|
class UnboundedPubSub {
|
|
1399
1390
|
publisherHead = {
|
|
1400
1391
|
value: AbsentValue,
|
|
@@ -1811,7 +1802,7 @@ var QueueProto = {
|
|
|
1811
1802
|
};
|
|
1812
1803
|
}
|
|
1813
1804
|
};
|
|
1814
|
-
var
|
|
1805
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1815
1806
|
const self = Object.create(QueueProto);
|
|
1816
1807
|
self.dispatcher = fiber.currentDispatcher;
|
|
1817
1808
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1826,14 +1817,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1826
1817
|
};
|
|
1827
1818
|
return succeed2(self);
|
|
1828
1819
|
});
|
|
1829
|
-
var bounded = (capacity) =>
|
|
1820
|
+
var bounded = (capacity) => make9({
|
|
1830
1821
|
capacity
|
|
1831
1822
|
});
|
|
1832
|
-
var sliding = (capacity) =>
|
|
1823
|
+
var sliding = (capacity) => make9({
|
|
1833
1824
|
capacity,
|
|
1834
1825
|
strategy: "sliding"
|
|
1835
1826
|
});
|
|
1836
|
-
var unbounded2 = () =>
|
|
1827
|
+
var unbounded2 = () => make9();
|
|
1837
1828
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1838
1829
|
var offerUnsafe = (self, message) => {
|
|
1839
1830
|
if (self.state._tag !== "Open") {
|
|
@@ -2259,7 +2250,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2259
2250
|
return onError(pull, onCause);
|
|
2260
2251
|
}));
|
|
2261
2252
|
var toTransform = (channel) => channel.transform;
|
|
2262
|
-
var asyncQueue = (scope, f, options) =>
|
|
2253
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2263
2254
|
capacity: options?.bufferSize,
|
|
2264
2255
|
strategy: options?.strategy
|
|
2265
2256
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2300,7 +2291,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2300
2291
|
}));
|
|
2301
2292
|
var readableStreamToPullUnsafe = (options) => {
|
|
2302
2293
|
const reader = options.readable.getReader();
|
|
2303
|
-
const exit = options.exit ??
|
|
2294
|
+
const exit = options.exit ?? make8(undefined);
|
|
2304
2295
|
const pull = suspend3(() => {
|
|
2305
2296
|
if (exit.current)
|
|
2306
2297
|
return exit.current;
|
|
@@ -2914,7 +2905,7 @@ var release = (self, state) => {
|
|
|
2914
2905
|
};
|
|
2915
2906
|
|
|
2916
2907
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2917
|
-
var
|
|
2908
|
+
var make10 = make6;
|
|
2918
2909
|
var get3 = get2;
|
|
2919
2910
|
|
|
2920
2911
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2926,7 +2917,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2926
2917
|
var toChannel2 = (stream) => stream.channel;
|
|
2927
2918
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2928
2919
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2929
|
-
var
|
|
2920
|
+
var make11 = (...values) => fromArray2(values);
|
|
2930
2921
|
var suspend = (stream) => {
|
|
2931
2922
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2932
2923
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3091,7 +3082,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3091
3082
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3092
3083
|
var TypeId10 = "~effect/FileSystem";
|
|
3093
3084
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3094
|
-
var
|
|
3085
|
+
var make12 = (impl) => FileSystem.of({
|
|
3095
3086
|
...impl,
|
|
3096
3087
|
[TypeId10]: TypeId10,
|
|
3097
3088
|
glob: make2(impl),
|
|
@@ -3151,7 +3142,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3151
3142
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3152
3143
|
var TypeId11 = "~effect/Path";
|
|
3153
3144
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3154
|
-
var
|
|
3145
|
+
var make13 = (impl) => Path.of({
|
|
3155
3146
|
...impl,
|
|
3156
3147
|
[TypeId11]: TypeId11,
|
|
3157
3148
|
resolveWithin(root, input) {
|
|
@@ -3226,7 +3217,7 @@ function makeProvider(load, mapInput) {
|
|
|
3226
3217
|
function makeSource(get, transform) {
|
|
3227
3218
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3228
3219
|
}
|
|
3229
|
-
function
|
|
3220
|
+
function make7(get) {
|
|
3230
3221
|
return makeSource(get, identityPath);
|
|
3231
3222
|
}
|
|
3232
3223
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3235,7 +3226,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3235
3226
|
function fromEnvRecord(env, options) {
|
|
3236
3227
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3237
3228
|
const trie = buildEnvTrie(env);
|
|
3238
|
-
return
|
|
3229
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3239
3230
|
}
|
|
3240
3231
|
function fromEnv(options) {
|
|
3241
3232
|
const env = options?.env ?? {
|
|
@@ -3566,4 +3557,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3566
3557
|
...argv
|
|
3567
3558
|
];
|
|
3568
3559
|
|
|
3569
|
-
export { map, makeEquivalence,
|
|
3560
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-cbpb2rww.js";
|
|
11
|
+
import"./chunk-mtkstrh3.js";
|
|
12
|
+
import"./chunk-0h49y8gf.js";
|
|
13
|
+
import"./chunk-zw3gf6r5.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-0h49y8gf.js";
|
|
18
|
+
import"./chunk-zw3gf6r5.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -75,14 +75,10 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import {
|
|
80
|
-
runForEach,
|
|
81
|
-
FileSystem
|
|
82
|
-
} from "./chunk-t82w7459.js";
|
|
78
|
+
} from "./chunk-zw3gf6r5.js";
|
|
83
79
|
import {
|
|
84
80
|
guard
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-q5w3v4k1.js";
|
|
86
82
|
import {
|
|
87
83
|
currentTimeMillis,
|
|
88
84
|
WebCrypto,
|
|
@@ -109,7 +105,11 @@ import {
|
|
|
109
105
|
KitDigest,
|
|
110
106
|
KitSetup,
|
|
111
107
|
RunnerRpcError
|
|
112
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-vm2qy986.js";
|
|
109
|
+
import {
|
|
110
|
+
runForEach,
|
|
111
|
+
FileSystem
|
|
112
|
+
} from "./chunk-0h49y8gf.js";
|
|
113
113
|
|
|
114
114
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
|
|
115
115
|
var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-cq2h8q9e.js";
|
|
8
|
+
import"./chunk-h1rmw7yk.js";
|
|
9
|
+
import"./chunk-vm2qy986.js";
|
|
10
|
+
import"./chunk-q5w3v4k1.js";
|
|
11
|
+
import"./chunk-0h49y8gf.js";
|
|
12
|
+
import"./chunk-zw3gf6r5.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -815,7 +815,7 @@ Read this before you create a Task or write a plan's ticket.`
|
|
|
815
815
|
link: "https://kitman.sh/knowledge/docs/scope-tasks#one-promise-per-task",
|
|
816
816
|
text: `## One Promise per Task
|
|
817
817
|
|
|
818
|
-
- Give a Task one Promise: one sentence that says what is true once it is done.
|
|
818
|
+
- 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
819
|
- 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
820
|
- 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
821
|
},
|
|
@@ -831,7 +831,7 @@ Read this before you create a Task or write a plan's ticket.`
|
|
|
831
831
|
- **Cases:** list the cases it handles, with the failures, and what happens in each.
|
|
832
832
|
- **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
833
|
- **Where to start:** name the modules, documents and decisions to read first.
|
|
834
|
-
- **Out of scope:** list the cases the Task does not handle.
|
|
834
|
+
- **Out of scope:** list the cases the Task does not handle. When the Promise is open-ended, list them in \`outOfScope\`.
|
|
835
835
|
- **Blockers:** name the Tasks whose code it needs, and relate them as blockers.
|
|
836
836
|
|
|
837
837
|
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 +901,8 @@ Press **C** or use **New task** in a Team view. A title is enough; everything el
|
|
|
901
901
|
|
|
902
902
|
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
903
|
|
|
904
|
+
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.
|
|
905
|
+
|
|
904
906
|
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
907
|
|
|
906
908
|
Select several Tasks to change their state, priority, Task Type, assignee, Labels, repository or Team in one action.
|
|
@@ -1529,7 +1531,7 @@ var pathOfLink = (link) => {
|
|
|
1529
1531
|
return page === null ? link : page[1] || "index";
|
|
1530
1532
|
};
|
|
1531
1533
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1532
|
-
var pinnedLink2 = (link, version = "0.13.
|
|
1534
|
+
var pinnedLink2 = (link, version = "0.13.8") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1533
1535
|
var pageOf = (path) => path.split("#")[0];
|
|
1534
1536
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1535
1537
|
function excerpt(text, queryTerms) {
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-zw3gf6r5.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-0h49y8gf.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-
|
|
42
|
+
} from "./chunk-vm2qy986.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-mtkstrh3.js";
|
|
3
3
|
import {
|
|
4
4
|
HERDR_CORE_GENERATION2,
|
|
5
5
|
HERDR_CORE_INSTALL_COMMAND2,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
herdrCoreLayer2,
|
|
13
13
|
herdrCoreTransportLayer2,
|
|
14
14
|
updateHerdrCore2
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-vm2qy986.js";
|
|
16
|
+
import"./chunk-0h49y8gf.js";
|
|
17
|
+
import"./chunk-zw3gf6r5.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
make10,
|
|
4
|
-
runForEach,
|
|
5
|
-
compiled2
|
|
6
|
-
} from "./chunk-t82w7459.js";
|
|
7
2
|
import {
|
|
8
3
|
getOrUndefined,
|
|
9
4
|
liftThrowable,
|
|
@@ -30,11 +25,16 @@ import {
|
|
|
30
25
|
isJsonObject,
|
|
31
26
|
isString2,
|
|
32
27
|
encodeUnknownJsonStringSync
|
|
33
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zw3gf6r5.js";
|
|
29
|
+
import {
|
|
30
|
+
make11,
|
|
31
|
+
runForEach,
|
|
32
|
+
compiled2
|
|
33
|
+
} from "./chunk-0h49y8gf.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
make3
|
|
37
|
+
} from "./chunk-mtkstrh3.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -167,8 +167,8 @@ 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(
|
|
171
|
-
stdin:
|
|
170
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
171
|
+
stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
172
172
|
stderr: "ignore",
|
|
173
173
|
extendEnv: false,
|
|
174
174
|
env: {},
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-zw3gf6r5.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-0h49y8gf.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-
|
|
22
|
+
} from "./chunk-vm2qy986.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-h1rmw7yk.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*
|
|
49
|
+
const client = yield* make4(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*
|
|
77
|
+
const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
|
|
78
78
|
const authorized = authorizer(options);
|
|
79
79
|
return {
|
|
80
80
|
recordActivity: (input) => authorized(client.RecordActivity(input)),
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
succeed,
|
|
13
13
|
isSuccess,
|
|
14
14
|
TaggedError,
|
|
15
|
-
|
|
15
|
+
make16,
|
|
16
16
|
_await,
|
|
17
17
|
fail5,
|
|
18
18
|
succeed5,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
decodeJsonString,
|
|
105
105
|
encodeJsonStringSync,
|
|
106
106
|
encodePrettyJsonString
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-zw3gf6r5.js";
|
|
108
108
|
import {
|
|
109
109
|
tap,
|
|
110
110
|
mapError,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
withDefault,
|
|
117
117
|
option,
|
|
118
118
|
String2
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-0h49y8gf.js";
|
|
120
120
|
import {
|
|
121
121
|
currentTimeMillis,
|
|
122
122
|
SecureRandom,
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
digestSha256,
|
|
168
168
|
sha256Hasher,
|
|
169
169
|
raw,
|
|
170
|
-
|
|
170
|
+
make5,
|
|
171
171
|
get,
|
|
172
172
|
put,
|
|
173
173
|
HttpClient,
|
|
@@ -230,14 +230,14 @@ import {
|
|
|
230
230
|
harnessNames,
|
|
231
231
|
herdrRunnerCapabilities2,
|
|
232
232
|
declaredChecks
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-vm2qy986.js";
|
|
234
234
|
import {
|
|
235
235
|
Id
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-q5w3v4k1.js";
|
|
237
237
|
import {
|
|
238
238
|
ChildProcessSpawner,
|
|
239
|
-
|
|
240
|
-
} from "./chunk-
|
|
239
|
+
make3
|
|
240
|
+
} from "./chunk-mtkstrh3.js";
|
|
241
241
|
|
|
242
242
|
// apps/cli/src/cli-error.ts
|
|
243
243
|
function cliErrorCode(error, status) {
|
|
@@ -488,6 +488,7 @@ var Usage = [
|
|
|
488
488
|
" kitman team open <team>",
|
|
489
489
|
" kitman team invite <team> <person>",
|
|
490
490
|
" kitman team delivery <team> gated|auto (only a person, signed in as an owner or admin)",
|
|
491
|
+
" kitman team scope <team> required|optional (whether agents must state a Task's scope; only a person)",
|
|
491
492
|
"",
|
|
492
493
|
"When Release runs: on each merge, when a Milestone is done, or when a Project is done. A Project inherits its Team's, a Team the Workspace's:",
|
|
493
494
|
" kitman release workspace [merge|milestone|project] (setting it needs an owner or admin)",
|
|
@@ -718,6 +719,7 @@ var examples = [
|
|
|
718
719
|
"kitman team open platform",
|
|
719
720
|
"kitman team invite platform ada@example.com",
|
|
720
721
|
"kitman team delivery platform gated",
|
|
722
|
+
"kitman team scope platform required",
|
|
721
723
|
"kitman release workspace merge",
|
|
722
724
|
"kitman release team platform milestone",
|
|
723
725
|
'kitman release project "Loop stability" inherit',
|
|
@@ -991,10 +993,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
991
993
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
992
994
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
993
995
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
994
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
996
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-c4ccpwjy.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
995
997
|
});
|
|
996
998
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
997
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
999
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-c4ccpwjy.js")), (module) => module.updateHerdrCore(options))
|
|
998
1000
|
});
|
|
999
1001
|
var herdrCoreMissing = (error) => {
|
|
1000
1002
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1420,7 +1422,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1420
1422
|
});
|
|
1421
1423
|
var syncKits = (input) => gen(function* () {
|
|
1422
1424
|
const fs = yield* FileSystem;
|
|
1423
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1425
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-08dyrk6y.js"));
|
|
1424
1426
|
const harnesses = yield* syncTargets(input.harness);
|
|
1425
1427
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1426
1428
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1937,7 +1939,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
1937
1939
|
run: (command, args) => runCommand2(command, args),
|
|
1938
1940
|
attach: (command, args) => gen(function* () {
|
|
1939
1941
|
const spawner = yield* ChildProcessSpawner;
|
|
1940
|
-
const handle = yield* spawner.spawn(
|
|
1942
|
+
const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
1941
1943
|
const exitCode = yield* handle.exitCode;
|
|
1942
1944
|
if (exitCode !== 0)
|
|
1943
1945
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -2339,7 +2341,7 @@ var package_default = {
|
|
|
2339
2341
|
};
|
|
2340
2342
|
|
|
2341
2343
|
// apps/cli/src/scaffold.ts
|
|
2342
|
-
var cliVersion = "0.13.
|
|
2344
|
+
var cliVersion = "0.13.8";
|
|
2343
2345
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2344
2346
|
name,
|
|
2345
2347
|
private: true,
|
|
@@ -2491,7 +2493,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2491
2493
|
|
|
2492
2494
|
// apps/cli/src/commands.ts
|
|
2493
2495
|
var ClientId = "kitman-cli";
|
|
2494
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2496
|
+
var agentRuntime = promise(() => import("./chunk-z68rzf0f.js"));
|
|
2495
2497
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2496
2498
|
defaultValue: () => gen(function* () {
|
|
2497
2499
|
const tui = yield* tryPromise({
|
|
@@ -3143,6 +3145,18 @@ function teamCommand(args) {
|
|
|
3143
3145
|
yield* client.updateTeamDeliverySettings(team.id, { delivery, expectedRevision: revision });
|
|
3144
3146
|
return yield* log(delivery === "auto" ? `${team.key} delivers in full auto: a passing Review of the head approves it, and its Loops merge and release with nobody asked` : `${team.key} is gated: a person approves each merge and release`);
|
|
3145
3147
|
}
|
|
3148
|
+
if (command.action === "scope") {
|
|
3149
|
+
const team = yield* teamNamed(client, workspaceId, requiredArg(command, "team"));
|
|
3150
|
+
const scope = command.args[1];
|
|
3151
|
+
if (scope !== "required" && scope !== "optional")
|
|
3152
|
+
return yield* new CliError({ message: "team scope requires <team> required|optional" });
|
|
3153
|
+
const { revision } = yield* client.getTeamDeliverySettings(team.id);
|
|
3154
|
+
yield* client.updateTeamDeliverySettings(team.id, {
|
|
3155
|
+
agentsStateScope: scope === "required",
|
|
3156
|
+
expectedRevision: revision
|
|
3157
|
+
});
|
|
3158
|
+
return yield* log(scope === "required" ? `${team.key}'s agents must state a Task's scope: one without a Promise is refused, with how to scope it` : `${team.key}'s agents may leave out a Task's scope`);
|
|
3159
|
+
}
|
|
3146
3160
|
if (command.action === "invite") {
|
|
3147
3161
|
const team = yield* teamNamed(client, workspaceId, requiredArg(command, "team"));
|
|
3148
3162
|
const userId = command.args[1];
|
|
@@ -3515,7 +3529,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3515
3529
|
});
|
|
3516
3530
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3517
3531
|
defaultValue: () => (options) => gen(function* () {
|
|
3518
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3532
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-96svx416.js"));
|
|
3519
3533
|
return yield* makeRunnerRpcClient({
|
|
3520
3534
|
runnerId: options.runnerId,
|
|
3521
3535
|
bearer: options.bearer,
|
|
@@ -3820,7 +3834,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3820
3834
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
3821
3835
|
yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
|
|
3822
3836
|
const platform = yield* context();
|
|
3823
|
-
const updated = yield*
|
|
3837
|
+
const updated = yield* make16();
|
|
3824
3838
|
const scope = yield* scope2;
|
|
3825
3839
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3826
3840
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4072,7 +4086,7 @@ function mcpCommand(args) {
|
|
|
4072
4086
|
if (command.action === "run") {
|
|
4073
4087
|
if (command.args.length > 0)
|
|
4074
4088
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4075
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4089
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-gj1padza.js"));
|
|
4076
4090
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4077
4091
|
}
|
|
4078
4092
|
if (command.action !== "setup")
|
|
@@ -4560,7 +4574,7 @@ function programLoopCommand(command) {
|
|
|
4560
4574
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4561
4575
|
});
|
|
4562
4576
|
}
|
|
4563
|
-
var docsModule = promise(() => import("./chunk-
|
|
4577
|
+
var docsModule = promise(() => import("./chunk-ff1r9vcq.js"));
|
|
4564
4578
|
function docsCommand(args) {
|
|
4565
4579
|
return gen(function* () {
|
|
4566
4580
|
const command = parseCommand(args);
|
|
@@ -5394,9 +5408,9 @@ function changeRequestCommand(args) {
|
|
|
5394
5408
|
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}`);
|
|
5395
5409
|
});
|
|
5396
5410
|
}
|
|
5397
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5411
|
+
var KitWriter = map8(promise(() => import("./chunk-gr17n0z3.js")), (build) => build.writeKit);
|
|
5398
5412
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5399
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5413
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-gr17n0z3.js")), (build) => build.buildKit(directory))
|
|
5400
5414
|
});
|
|
5401
5415
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5402
5416
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -6173,7 +6187,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
6173
6187
|
return gen(function* () {
|
|
6174
6188
|
const fs = yield* FileSystem;
|
|
6175
6189
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
6176
|
-
const response = yield* send(
|
|
6190
|
+
const response = yield* send(make5(download.method)(download.url), failed);
|
|
6177
6191
|
if (response.status < 200 || response.status >= 300)
|
|
6178
6192
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
6179
6193
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|