@kitman-sh/cli 0.12.15 → 0.13.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.
- package/dist/{chunk-hkwxb1am.js → chunk-3dcxyw8s.js} +10 -11
- package/dist/{chunk-cjzcg317.js → chunk-6mqw8yr8.js} +0 -1
- package/dist/{chunk-saeb3621.js → chunk-bvh0k11b.js} +11 -11
- package/dist/{chunk-m9revazf.js → chunk-e2gmxe8a.js} +4 -4
- package/dist/{chunk-55sk24xq.js → chunk-fgghvffp.js} +1 -1
- package/dist/{chunk-9sbkchpk.js → chunk-j13cmh82.js} +1 -1
- package/dist/{chunk-nh27qwj1.js → chunk-n6fnyqtj.js} +1 -1
- package/dist/{chunk-rt5czket.js → chunk-r4emjst3.js} +2 -2
- package/dist/{chunk-ekr50hg6.js → chunk-w6pbse20.js} +43 -43
- package/dist/{chunk-nve7atre.js → chunk-xnj2sgbz.js} +2 -2
- package/dist/{chunk-44mcajbw.js → chunk-yqtjm2b8.js} +13 -13
- package/dist/{chunk-kedmv3za.js → chunk-yv45kbee.js} +3 -3
- package/dist/{chunk-1625ftev.js → chunk-yyjh1bts.js} +1 -1
- package/dist/{chunk-pg4tyn18.js → chunk-z0fqz3xg.js} +3 -3
- package/dist/{chunk-f8ck3syn.js → chunk-ztdvwf41.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -247,7 +247,7 @@ import {
|
|
|
247
247
|
installCommand,
|
|
248
248
|
checkServicesFile,
|
|
249
249
|
checkServices
|
|
250
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-6mqw8yr8.js";
|
|
251
251
|
import {
|
|
252
252
|
join,
|
|
253
253
|
interrupt,
|
|
@@ -304,8 +304,8 @@ import {
|
|
|
304
304
|
applyAgentEnvironmentMaterialization2,
|
|
305
305
|
isPathWithin2,
|
|
306
306
|
skillIdentity2
|
|
307
|
-
} from "./chunk-
|
|
308
|
-
import"./chunk-
|
|
307
|
+
} from "./chunk-r4emjst3.js";
|
|
308
|
+
import"./chunk-j13cmh82.js";
|
|
309
309
|
import {
|
|
310
310
|
egressAllowed,
|
|
311
311
|
writeSecretRegistry,
|
|
@@ -330,8 +330,8 @@ import {
|
|
|
330
330
|
rpcRunFiles,
|
|
331
331
|
programHostsEnv,
|
|
332
332
|
undeclaredHostsEnv
|
|
333
|
-
} from "./chunk-
|
|
334
|
-
import"./chunk-
|
|
333
|
+
} from "./chunk-yyjh1bts.js";
|
|
334
|
+
import"./chunk-xnj2sgbz.js";
|
|
335
335
|
import {
|
|
336
336
|
nextInt
|
|
337
337
|
} from "./chunk-gq7y5v3e.js";
|
|
@@ -339,7 +339,7 @@ import {
|
|
|
339
339
|
ChildProcessSpawner,
|
|
340
340
|
make3
|
|
341
341
|
} from "./chunk-mtkstrh3.js";
|
|
342
|
-
import"./chunk-
|
|
342
|
+
import"./chunk-n6fnyqtj.js";
|
|
343
343
|
|
|
344
344
|
// packages/core/src/sync-kit.ts
|
|
345
345
|
import { createHash } from "crypto";
|
|
@@ -6000,12 +6000,11 @@ var deleteRef = (checkouts, repoBinding, ref) => gen(function* () {
|
|
|
6000
6000
|
var listenForSignals = (input) => gen(function* () {
|
|
6001
6001
|
const services = yield* context();
|
|
6002
6002
|
const clearCheckpoints = clearSettledCheckpoints(input.rpc, input.checkouts).pipe(catch_((error) => logWarning("runner_checkpoints_not_cleared", error.message)), provideContext2(services));
|
|
6003
|
-
const held = yield* input.checkouts.held;
|
|
6004
|
-
const settled = held.length === 0 ? [] : yield* input.rpc.settledRuns(held);
|
|
6005
|
-
yield* forEach(settled, input.checkouts.drop, { discard: true });
|
|
6006
6003
|
const scope = yield* scope2;
|
|
6007
|
-
|
|
6008
|
-
|
|
6004
|
+
const dropSettled = (runIds) => forEach(runIds, (runId) => ignore(input.checkouts.drop(runId)), { discard: true }).pipe(provideContext2(services), andThen2(clearCheckpoints), forkIn(scope), asVoid);
|
|
6005
|
+
const held = yield* input.checkouts.held;
|
|
6006
|
+
yield* dropSettled(held.length === 0 ? [] : yield* input.rpc.settledRuns(held));
|
|
6007
|
+
yield* input.rpc.listen(input.runnerReplicaId, (signal) => isUpdateAvailable(signal) ? input.update?.(signal.version) ?? void_3 : isRunSettled(signal) ? dropSettled([signal.runId]) : input.signals.push(signal));
|
|
6009
6008
|
}).pipe(scoped, catch_((error) => logWarning("runner_signals_disconnected", error.message)), catchDefect((defect) => logError("runner_signals_failed", pretty(die2(defect)))), andThen2(sleep(input.reconnectAfter)), forever);
|
|
6010
6009
|
var pushWork = (worktree, branch, step, shared, env) => gen(function* () {
|
|
6011
6010
|
const git = (...args) => runCommand2("git", ["-C", worktree, ...args]);
|
|
@@ -228,7 +228,7 @@ import {
|
|
|
228
228
|
harnessNames,
|
|
229
229
|
herdrRunnerCapabilities2,
|
|
230
230
|
declaredChecks
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-6mqw8yr8.js";
|
|
232
232
|
import {
|
|
233
233
|
Id
|
|
234
234
|
} from "./chunk-q5w3v4k1.js";
|
|
@@ -989,10 +989,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
989
989
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
990
990
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
991
991
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
992
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
992
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-fgghvffp.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
993
993
|
});
|
|
994
994
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
995
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
995
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-fgghvffp.js")), (module) => module.updateHerdrCore(options))
|
|
996
996
|
});
|
|
997
997
|
var herdrCoreMissing = (error) => {
|
|
998
998
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1412,7 +1412,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1412
1412
|
});
|
|
1413
1413
|
var syncKits = (input) => gen(function* () {
|
|
1414
1414
|
const fs = yield* FileSystem;
|
|
1415
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1415
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-yv45kbee.js"));
|
|
1416
1416
|
const harnesses = yield* syncTargets(input.harness);
|
|
1417
1417
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1418
1418
|
for (const { name, problem } of chain.skipped)
|
|
@@ -2331,7 +2331,7 @@ var package_default = {
|
|
|
2331
2331
|
};
|
|
2332
2332
|
|
|
2333
2333
|
// apps/cli/src/scaffold.ts
|
|
2334
|
-
var cliVersion = "0.
|
|
2334
|
+
var cliVersion = "0.13.0";
|
|
2335
2335
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2336
2336
|
name,
|
|
2337
2337
|
private: true,
|
|
@@ -2483,7 +2483,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2483
2483
|
|
|
2484
2484
|
// apps/cli/src/commands.ts
|
|
2485
2485
|
var ClientId = "kitman-cli";
|
|
2486
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2486
|
+
var agentRuntime = promise(() => import("./chunk-3dcxyw8s.js"));
|
|
2487
2487
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2488
2488
|
defaultValue: () => gen(function* () {
|
|
2489
2489
|
const tui = yield* tryPromise({
|
|
@@ -3507,7 +3507,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3507
3507
|
});
|
|
3508
3508
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3509
3509
|
defaultValue: () => (options) => gen(function* () {
|
|
3510
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3510
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-z0fqz3xg.js"));
|
|
3511
3511
|
return yield* makeRunnerRpcClient({
|
|
3512
3512
|
runnerId: options.runnerId,
|
|
3513
3513
|
bearer: options.bearer,
|
|
@@ -4039,7 +4039,7 @@ function mcpCommand(args) {
|
|
|
4039
4039
|
if (command.action === "run") {
|
|
4040
4040
|
if (command.args.length > 0)
|
|
4041
4041
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4042
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4042
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-w6pbse20.js"));
|
|
4043
4043
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4044
4044
|
}
|
|
4045
4045
|
if (command.action !== "setup")
|
|
@@ -4527,7 +4527,7 @@ function programLoopCommand(command) {
|
|
|
4527
4527
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4528
4528
|
});
|
|
4529
4529
|
}
|
|
4530
|
-
var docsModule = promise(() => import("./chunk-
|
|
4530
|
+
var docsModule = promise(() => import("./chunk-ztdvwf41.js"));
|
|
4531
4531
|
function docsCommand(args) {
|
|
4532
4532
|
return gen(function* () {
|
|
4533
4533
|
const command = parseCommand(args);
|
|
@@ -5361,9 +5361,9 @@ function changeRequestCommand(args) {
|
|
|
5361
5361
|
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}`);
|
|
5362
5362
|
});
|
|
5363
5363
|
}
|
|
5364
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5364
|
+
var KitWriter = map8(promise(() => import("./chunk-yqtjm2b8.js")), (build) => build.writeKit);
|
|
5365
5365
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5366
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5366
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-yqtjm2b8.js")), (build) => build.buildKit(directory))
|
|
5367
5367
|
});
|
|
5368
5368
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5369
5369
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -227,7 +227,7 @@ People create Tasks and hand them to agents. An agent works on a Task through a
|
|
|
227
227
|
link: "https://kitman.sh/knowledge/docs/handing-work-to-agents#ready-for-agents",
|
|
228
228
|
text: `## Ready for agents
|
|
229
229
|
|
|
230
|
-
Moving a Task to a state agents pick up from, such as **Ready for agents**, or creating it in one, starts its Task Type's default Loop for it. Creating a Task with a Loop chosen, or by starting a Run from words, starts only that Run, and the tickets Plan builds itself and a Firewatch alert's Task start only the Runs their Loops give them. Tickets filed as Tasks are picked up once their blockers are related; Plan's File as Tasks waits until the Plan Run ends without building them. You become the Run's Delivery Owner: its Questions and its handoff come to you. When
|
|
230
|
+
Moving a Task to a state agents pick up from, such as **Ready for agents**, or creating it in one, starts its Task Type's default Loop for it. Creating a Task with a Loop chosen, or by starting a Run from words, starts only that Run, and the tickets Plan builds itself and a Firewatch alert's Task start only the Runs their Loops give them. Tickets filed as Tasks are picked up once their blockers are related; Plan's File as Tasks waits until the Plan Run ends without building them. You become the Run's Delivery Owner: its Questions and its handoff come to you. When a tool you set up, such as Kitman's MCP in your coding agent, moved it, you are still the Delivery Owner; when a Run's agent moved it, that Run's owner is. When another agent or a Triage Rule moved the Task, the Task's assignee is the Delivery Owner, or else its human creator, or else the owner of the Run that created it; with none of these, its Team gets a **Start** item in the Inbox. The Run queues for a Runner like any other, by the Task's priority.
|
|
231
231
|
|
|
232
232
|
Nothing new starts while the Task already has a Run that has not finished. To give a new Task blockers before it starts, create it in another state, add its relations, then move it.
|
|
233
233
|
|
|
@@ -281,7 +281,7 @@ Research answers an Investigation Task's question. A researcher Agent investigat
|
|
|
281
281
|
link: "https://kitman.sh/knowledge/docs/handing-work-to-agents#waiting-on-other-tasks",
|
|
282
282
|
text: `## Waiting on other Tasks
|
|
283
283
|
|
|
284
|
-
A Task with an open blocker stays in **Ready for agents** and shows what it is waiting on, such as "Waiting on KIT-158". It starts by itself once its last blocker is done, owned by its assignee, else its creator. If it has
|
|
284
|
+
A Task with an open blocker stays in **Ready for agents** and shows what it is waiting on, such as "Waiting on KIT-158". It starts by itself once its last blocker is done, owned by whoever would have owned it when it was moved there: you, if you or a tool or Run acting for you moved it, else its assignee, else its creator. If it has none of these, it stays there and its Team gets a **Start** item in the Inbox.
|
|
285
285
|
|
|
286
286
|
Only a Task in a completed state counts as done. A finished Run or an open ChangeRequest on a blocker starts nothing, and neither does a canceled blocker: remove its relation to release the Task.
|
|
287
287
|
|
|
@@ -294,7 +294,7 @@ To start it now, use **Start run** and choose **Start anyway**, or pass \`--over
|
|
|
294
294
|
link: "https://kitman.sh/knowledge/docs/handing-work-to-agents#when-a-run-cannot-start",
|
|
295
295
|
text: `## When a Run cannot start
|
|
296
296
|
|
|
297
|
-
When Kitman cannot start a Run for the Task, the move still happens, and the person who moved it gets a **Start** item in their Inbox. It says what is missing: the Task Type has no default Loop, the Loop no longer exists, or the Loop needs something Kitman could not choose, such as a repository.
|
|
297
|
+
When Kitman cannot start a Run for the Task, the move still happens, and the person who moved it gets a **Start** item in their Inbox. It says what is missing: the Task Type has no default Loop, the Loop no longer exists, or the Loop needs something Kitman could not choose, such as a repository. The Task page, its board card and its list row say the same, as **Agents cannot start it**, until a Run starts or the Task leaves the pickup state.
|
|
298
298
|
|
|
299
299
|
Open the item and use **Start run** in it: pick the Loop, and give what is missing, such as the repository to work in. The item clears itself once a Run starts for the Task, or when the Task leaves the state.`
|
|
300
300
|
},
|
|
@@ -1503,7 +1503,7 @@ var pathOfLink = (link) => {
|
|
|
1503
1503
|
return page === null ? link : page[1] || "index";
|
|
1504
1504
|
};
|
|
1505
1505
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1506
|
-
var pinnedLink2 = (link, version = "0.
|
|
1506
|
+
var pinnedLink2 = (link, version = "0.13.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1507
1507
|
var pageOf = (path) => path.split("#")[0];
|
|
1508
1508
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1509
1509
|
function excerpt(text, queryTerms) {
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-6mqw8yr8.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")) {
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6mqw8yr8.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-j13cmh82.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|