@kitman-sh/cli 0.14.5 → 0.14.7
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-s6bcx409.js → chunk-64zvzv63.js} +6 -6
- package/dist/{chunk-4qpmjrd2.js → chunk-79g5zh2p.js} +2 -2
- package/dist/{chunk-c80dvhxf.js → chunk-8k6adfg7.js} +1 -1
- package/dist/{chunk-me5hk67r.js → chunk-9yenzg12.js} +18 -18
- package/dist/{chunk-cs0b1w4z.js → chunk-ag19ejy7.js} +9 -9
- package/dist/{chunk-mwdgz2s2.js → chunk-aj2608jz.js} +413 -146
- package/dist/{chunk-77jk3v8v.js → chunk-b009hdm0.js} +5 -5
- package/dist/{chunk-vt8aqeby.js → chunk-bbf0jzsc.js} +1 -1
- package/dist/{chunk-rbbh4f56.js → chunk-bdd62njv.js} +36 -178
- package/dist/{chunk-fch7pjzh.js → chunk-bpx2zjh7.js} +4 -2
- package/dist/{chunk-reb6rftm.js → chunk-bty0mbn4.js} +203 -31
- package/dist/{chunk-vt5p65jd.js → chunk-c9j28q63.js} +22 -22
- package/dist/{chunk-p2p3k2d5.js → chunk-cn86thbx.js} +4 -4
- package/dist/{chunk-zdfrtydr.js → chunk-d2bqqd9t.js} +5 -5
- package/dist/{chunk-07xpz8bh.js → chunk-gnhfwa99.js} +1 -1
- package/dist/{chunk-4ywn8fya.js → chunk-htxs2z8d.js} +6 -6
- package/dist/{chunk-jp7cjnng.js → chunk-hz4t408c.js} +4 -4
- package/dist/{chunk-4vrfpwcr.js → chunk-jv4p85q5.js} +32 -9
- package/dist/{chunk-hbfwyjak.js → chunk-qkh0dhad.js} +3 -3
- package/dist/{chunk-d2x7y78c.js → chunk-rjz0pnf9.js} +4 -4
- package/dist/{chunk-k32w2t9h.js → chunk-s7rhz991.js} +6 -6
- package/dist/{chunk-93xj74qp.js → chunk-w8pevmva.js} +3 -3
- package/dist/{chunk-mz803qps.js → chunk-xxx61cda.js} +34 -30
- package/dist/{chunk-cwdrhsvk.js → chunk-y6njjend.js} +2 -2
- package/dist/{chunk-wttgq85b.js → chunk-zpp4jg4a.js} +60 -60
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
isString2,
|
|
26
26
|
encodePrettyJsonString,
|
|
27
27
|
decodeJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zpp4jg4a.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSystem,
|
|
31
31
|
Path,
|
|
32
32
|
optionalEnv,
|
|
33
33
|
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-bdd62njv.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-aj2608jz.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-qkh0dhad.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -75,12 +75,11 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-zpp4jg4a.js";
|
|
79
79
|
import {
|
|
80
80
|
guard
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-8k6adfg7.js";
|
|
82
82
|
import {
|
|
83
|
-
currentTimeMillis,
|
|
84
83
|
WebCrypto,
|
|
85
84
|
SafeJson,
|
|
86
85
|
AgentSandboxNetwork,
|
|
@@ -105,11 +104,12 @@ import {
|
|
|
105
104
|
KitDigest,
|
|
106
105
|
KitSetup,
|
|
107
106
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-aj2608jz.js";
|
|
109
108
|
import {
|
|
109
|
+
currentTimeMillis,
|
|
110
110
|
runForEach,
|
|
111
111
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-bdd62njv.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");
|
|
@@ -66,7 +66,7 @@ Approve a check that reads the target branch, such as a migration history test t
|
|
|
66
66
|
kitman verify add migration-history bun run test:vitest packages/db/src/migration-history.test.ts --reads-target
|
|
67
67
|
\`\`\`
|
|
68
68
|
|
|
69
|
-
Set up this machine's Harnesses from your Kits: the Workspace's, your Teams' and your own, with the Kitman MCP server. \`--harness\` narrows it to one of \`claude\`, \`codex\`, \`opencode\` or \`
|
|
69
|
+
Set up this machine's Harnesses from your Kits: the Workspace's, your Teams' and your own, with the Kitman MCP server. \`--harness\` narrows it to one of \`claude\`, \`codex\`, \`opencode\`, \`pi\` or \`antigravity\`. Antigravity gets its skills in \`~/.agents/skills\`, which other agents also read, and its plugins beside your own in \`~/.gemini/config/plugins\`. A sync removes the skills and plugins it wrote before and writes the Kits' again, so a skill or plugin of yours that shares a name with a Kit's is replaced:
|
|
70
70
|
|
|
71
71
|
\`\`\`sh
|
|
72
72
|
kitman sync
|
|
@@ -137,7 +137,7 @@ Skipped, Kitman cannot list your repositories, open ChangeRequests or hear about
|
|
|
137
137
|
|
|
138
138
|
Copy the command the web shows and paste it into a terminal on a Linux or macOS machine. It installs Bun, the Kitman CLI and herdr-core, which runs your agents' terminals, where missing, signs the machine in, starts your personal Runner as a user service and syncs the Kitman MCP server into each coding agent it finds. It asks nothing and opens no browser, so it works over SSH too. The command carries a Pairing Code that works once and expires after 10 minutes; if it is refused, the web mints another.
|
|
139
139
|
|
|
140
|
-
The step is done when your Runner's first heartbeat arrives. The web then shows which of Pi, Claude Code and
|
|
140
|
+
The step is done when your Runner's first heartbeat arrives. The web then shows which of Pi, Claude Code, Codex and Antigravity it found logged in, and what the others lack. See the [Runner Operations Guide](/docs/runner-operations#your-machines-runner).
|
|
141
141
|
|
|
142
142
|
Skipped, no Runner of yours is online, so your Runs wait for one.`
|
|
143
143
|
},
|
|
@@ -596,7 +596,7 @@ kitman run drift <run> --dismiss <constraint> --reason "fixtures, not released m
|
|
|
596
596
|
path: "loop-operations#tokens",
|
|
597
597
|
level: 2,
|
|
598
598
|
link: "https://kitman.sh/knowledge/docs/loop-operations#tokens",
|
|
599
|
-
text: "## Tokens\n\nEach attempt of an agent Step records the input, output and cached tokens its Harness reported in its session: Claude Code, Codex and
|
|
599
|
+
text: "## Tokens\n\nEach attempt of an agent Step records the input, output and cached tokens its Harness reported in its session: Claude Code, Codex, Pi and Antigravity do. OpenCode names the model it ran but no tokens. Input counts tokens read fresh or written to the cache; cached counts tokens read from it. Claude Code's subagents write their own session files, and their tokens count with the attempt that ran them. An attempt parked on a Question and resumed adds both parts, and one that ran past its time budget or whose Run was stopped still records what its Harness spent. An attempt whose Harness wrote no usage records that it reported none. `runs.show`, `kitman run show` and the Run page give the Run's total with its Child Runs at any depth, and the Run's own. The total follows the branches the reader may read: a Child Run they may not read is left out with every Run below it. `runs.show` gives that total's counts as decimal digit strings, since one can pass what a JSON number holds exactly. `runs.show` and `kitman run show` also give each Step's. `runs.show` also gives the Harness each started attempt launched on and the model it ran: the one its Harness's session named, else the one its launch named. A session's name that is not a bare model identifier, or that holds a credential or one of the Run's Secrets, is not stored. An attempt left to its Harness's default model whose session named none gives no model. With no usage reported anywhere in the tree, both totals say none was reported."
|
|
600
600
|
},
|
|
601
601
|
{
|
|
602
602
|
title: "Loop Operations Guide \u203A Automatic starts",
|
|
@@ -739,14 +739,14 @@ Runners execute StepAttempts in user-controlled environments. A runner advertise
|
|
|
739
739
|
path: "runner-operations#harnesses",
|
|
740
740
|
level: 3,
|
|
741
741
|
link: "https://kitman.sh/knowledge/docs/runner-operations#harnesses",
|
|
742
|
-
text: "### Harnesses\n\nWhen it starts, the Runner offers each of Pi, Claude Code and
|
|
742
|
+
text: "### Harnesses\n\nWhen it starts, the Runner offers each of Pi, Claude Code, Codex and Antigravity that is installed and logged in:\n\n| Harness | Installed when | Logged in when |\n| ----------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| Pi | `pi` is on `PATH` | `~/.pi/agent/auth.json` exists, or `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY` or `OPENROUTER_API_KEY` is set |\n| Claude Code | `claude` is on `PATH` | `~/.claude/.credentials.json` exists, `~/.claude.json` records an `oauthAccount`, or `ANTHROPIC_API_KEY` or `CLAUDE_CODE_OAUTH_TOKEN` is set |\n| Codex | `codex` is on `PATH` | `~/.codex/auth.json` exists, or `OPENAI_API_KEY` or `CODEX_API_KEY` is set |\n| Antigravity | `agy` is on `PATH` | `~/.gemini/antigravity-cli/cache/onboarding.json` records a finished onboarding, which `agy` writes once you sign in with Google |\n\nFor each Harness it does not offer, the Runner reports what is missing, and the Runners tab under **Agents** and `kitman runner doctor` show it. After you install or log in to a Harness, restart the Runner's service so it is detected. OpenCode is never detected; an Agent that names it still launches it on a Runner that offers it.\n\nA Claude Code Step runs in Claude Code's experimental Code Mode: its agent writes JavaScript that calls its tools in one `REPL` call, instead of calling them one at a time. The Runner records Code Mode's caveats as accepted in the Step's `.claude.json`, so the Step never stops at its opt-in question. Code Mode turns Claude in Chrome off, so a Step whose Agent has the `browser` capability runs without it.\n\nAn Antigravity Step runs only in the `host` sandbox, because your Google login is in the OS keyring, which neither `srt` nor `docker` gives the agent. A Runner whose sandbox is `srt` or `docker` does not offer it, and says so. Antigravity keeps all its config under `~/.gemini` and has no setting that moves it, so a Step runs with its config directory as `HOME`. That home links to each entry of yours, such as `~/.gitconfig` and `~/.ssh`, except `~/.gemini` and `~/.agents`, and except one the Step writes itself, such as `~/kitman-skills` for the Kit skills its Agent does not list: the Step gets the Run's Kit setup in those, not your skills, plugins, MCP servers or rules. It gets a copy of the onboarding `agy` records, so it skips the first-run setup, and settings that trust the worktree, run commands outside Antigravity's own terminal sandbox and never wait for a person to review a plan. Its Transcript and tokens come from the conversation's `transcript_full.jsonl`. A retried attempt starts a new conversation, because the one `agy` resumes is a database the Runner does not carry between attempts."
|
|
743
743
|
},
|
|
744
744
|
{
|
|
745
745
|
title: "Runner Operations Guide \u203A Default Harness",
|
|
746
746
|
path: "runner-operations#default-harness",
|
|
747
747
|
level: 3,
|
|
748
748
|
link: "https://kitman.sh/knowledge/docs/runner-operations#default-harness",
|
|
749
|
-
text: "### Default Harness\n\nA Pi Step does not load the skills, extensions, MCP servers or `AGENTS.md` in `~/.pi/agent`, or a repository's `.pi` files: it uses your Pi login, a copy of your model lists, your default model, per-model thinking levels and `httpProxy`, and the Kit setup of its Run. A Step in the `docker` sandbox gets none of your Pi files, only the Kit setup. A `host` or `srt` Step can read that `httpProxy` in its copy, and a `host` Step can read `~/.pi/agent/settings.json` itself, so do not put a password there that the agent should not have.\n\nThe Step's copy of your login has no OAuth refresh tokens and a sandboxed agent cannot read `~/.pi/agent/auth.json`. Before each attempt, and every minute while it runs, the Runner refreshes any token with under 15 minutes left, using your own `pi` under its usual lock, and updates the Step's copy, so a Step can run longer than its token lasts. A sandboxed agent cannot write that copy. A token that lasts under 15 minutes is renewed every minute. If a renewal fails, the Runner logs `harness_login_near_expiry` with the login's provider and tries again a minute later. A Step can fail once its token has under 5 minutes left, because Pi then tries to renew the Step's copy itself and cannot, so the token may not have expired yet when you look. That leaves the Runner about 10 minutes to renew it, and a token that lasts under 5 minutes cannot run a Step at all. If your login was revoked, log in again with `pi`, then retry the Step.\n\nThe Runner renews every OAuth login in `~/.pi/agent/auth.json`, not only the one a Step uses, so the warning can name a login that Step does not need. Once a token has expired, each Step tries it less often, down to once an hour. Remove a login you no longer use with `/logout` in `pi`.\n\nA Pi agent can write its own session file, so the Runner limits what it takes from one. The Transcript leaves out a session line of 8 MiB or more, and the Runner logs `runner_transcript_line_passed_over` the first time. A tool call shows up to 200,000 characters of its arguments, and a longer value in them shows as a note of its length. The Runner stops reading a session while 16 MiB of its Transcript is unsent, and reads on once Kitman takes it. A session that gzips to more than 32 MiB, well above real ones, keeps its last checkpoint, and the Runner logs `runner_session_unread`.\n\nAn Agent that names no Harness, which includes the shipped ones, runs on the claiming Runner's default Harness. The default is the one chosen for the Runner, else the first of Pi, Claude Code and
|
|
749
|
+
text: "### Default Harness\n\nA Pi Step does not load the skills, extensions, MCP servers or `AGENTS.md` in `~/.pi/agent`, or a repository's `.pi` files: it uses your Pi login, a copy of your model lists, your default model, per-model thinking levels and `httpProxy`, and the Kit setup of its Run. A Step in the `docker` sandbox gets none of your Pi files, only the Kit setup. A `host` or `srt` Step can read that `httpProxy` in its copy, and a `host` Step can read `~/.pi/agent/settings.json` itself, so do not put a password there that the agent should not have.\n\nThe Step's copy of your login has no OAuth refresh tokens and a sandboxed agent cannot read `~/.pi/agent/auth.json`. Before each attempt, and every minute while it runs, the Runner refreshes any token with under 15 minutes left, using your own `pi` under its usual lock, and updates the Step's copy, so a Step can run longer than its token lasts. A sandboxed agent cannot write that copy. A token that lasts under 15 minutes is renewed every minute. If a renewal fails, the Runner logs `harness_login_near_expiry` with the login's provider and tries again a minute later. A Step can fail once its token has under 5 minutes left, because Pi then tries to renew the Step's copy itself and cannot, so the token may not have expired yet when you look. That leaves the Runner about 10 minutes to renew it, and a token that lasts under 5 minutes cannot run a Step at all. If your login was revoked, log in again with `pi`, then retry the Step.\n\nThe Runner renews every OAuth login in `~/.pi/agent/auth.json`, not only the one a Step uses, so the warning can name a login that Step does not need. Once a token has expired, each Step tries it less often, down to once an hour. Remove a login you no longer use with `/logout` in `pi`.\n\nA Pi agent can write its own session file, so the Runner limits what it takes from one. The Transcript leaves out a session line of 8 MiB or more, and the Runner logs `runner_transcript_line_passed_over` the first time. A tool call shows up to 200,000 characters of its arguments, and a longer value in them shows as a note of its length. The Runner stops reading a session while 16 MiB of its Transcript is unsent, and reads on once Kitman takes it. A session that gzips to more than 32 MiB, well above real ones, keeps its last checkpoint, and the Runner logs `runner_session_unread`.\n\nAn Agent that names no Harness, which includes the shipped ones, runs on the claiming Runner's default Harness. The default is the one chosen for the Runner, else the first of Pi, Claude Code, Codex and Antigravity the Runner offers. Choose it under **Agents \u2192 Runners** with **Default Harness**: the owner chooses for a personal Runner, a Workspace admin for any other. An Agent that names a Harness runs only on Runners that offer it."
|
|
750
750
|
},
|
|
751
751
|
{
|
|
752
752
|
title: "Runner Operations Guide \u203A Scope and scheduling boundaries",
|
|
@@ -1557,7 +1557,7 @@ var pathOfLink = (link) => {
|
|
|
1557
1557
|
return page === null ? link : page[1] || "index";
|
|
1558
1558
|
};
|
|
1559
1559
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1560
|
-
var pinnedLink2 = (link, version = "0.14.
|
|
1560
|
+
var pinnedLink2 = (link, version = "0.14.7") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1561
1561
|
var pageOf = (path) => path.split("#")[0];
|
|
1562
1562
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1563
1563
|
function excerpt(text, queryTerms) {
|
|
@@ -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-b009hdm0.js";
|
|
11
|
+
import"./chunk-79g5zh2p.js";
|
|
12
|
+
import"./chunk-bdd62njv.js";
|
|
13
|
+
import"./chunk-zpp4jg4a.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -13,27 +13,28 @@ import {
|
|
|
13
13
|
isJsonObject,
|
|
14
14
|
decodeJsonString,
|
|
15
15
|
encodePrettyJsonString
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import"./chunk-
|
|
16
|
+
} from "./chunk-zpp4jg4a.js";
|
|
17
|
+
import"./chunk-8k6adfg7.js";
|
|
18
18
|
import {
|
|
19
19
|
FileSystem,
|
|
20
20
|
Path
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-bdd62njv.js";
|
|
22
22
|
import {
|
|
23
23
|
tomlTableHeader2,
|
|
24
24
|
tomlKeyPath2,
|
|
25
25
|
kitmanSkillEntry,
|
|
26
26
|
isPathWithin2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-cn86thbx.js";
|
|
28
28
|
import {
|
|
29
29
|
instructionsStart,
|
|
30
30
|
instructionsEnd,
|
|
31
31
|
renderMcpServer,
|
|
32
|
+
antigravityPlugins,
|
|
32
33
|
materializeKitSetup,
|
|
33
34
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
35
|
+
} from "./chunk-aj2608jz.js";
|
|
36
|
+
import"./chunk-qkh0dhad.js";
|
|
37
|
+
import"./chunk-79g5zh2p.js";
|
|
37
38
|
|
|
38
39
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
39
40
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -65,6 +66,13 @@ var layoutOf = (path, harness, home) => {
|
|
|
65
66
|
instructions: path.join(home, ".config/opencode/AGENTS.md"),
|
|
66
67
|
mcp: { file: path.join(home, ".config/opencode/opencode.json"), key: "mcp" }
|
|
67
68
|
};
|
|
69
|
+
case "antigravity":
|
|
70
|
+
return {
|
|
71
|
+
root: home,
|
|
72
|
+
instructions: path.join(home, ".gemini/config/AGENTS.md"),
|
|
73
|
+
plugins: path.join(home, antigravityPlugins),
|
|
74
|
+
mcp: { file: path.join(home, ".gemini/config/mcp_config.json"), key: "mcpServers" }
|
|
75
|
+
};
|
|
68
76
|
}
|
|
69
77
|
};
|
|
70
78
|
var codexBlockStart = "# >>> kitman sync: replaced on every sync";
|
|
@@ -142,7 +150,7 @@ var syncKitSetup = (input) => gen(function* () {
|
|
|
142
150
|
const target = input.harness === "claude" && file.startsWith("plugins/") && layout.marketplace !== undefined ? path.join(layout.marketplace, file) : path.join(layout.root, file);
|
|
143
151
|
return [{ file, target, content }];
|
|
144
152
|
});
|
|
145
|
-
const astray = targets.find(({ target }) => !isPathWithin2(path, skillsDir, target) && (layout.marketplace === undefined || !isPathWithin2(path, layout.marketplace, target)));
|
|
153
|
+
const astray = targets.find(({ target }) => !isPathWithin2(path, skillsDir, target) && (layout.marketplace === undefined || !isPathWithin2(path, layout.marketplace, target)) && (layout.plugins === undefined || !isPathWithin2(path, layout.plugins, target)));
|
|
146
154
|
if (astray !== undefined)
|
|
147
155
|
return yield* new KitSyncError({ message: `A Kit's file ${astray.file} would land outside its directory` });
|
|
148
156
|
const skills = [...new Set([...input.previous?.skills ?? [], ...setup.skills])];
|
|
@@ -151,6 +159,17 @@ var syncKitSetup = (input) => gen(function* () {
|
|
|
151
159
|
return yield* new KitSyncError({ message: `A Kit's skill name ${outside} would land outside its directory` });
|
|
152
160
|
for (const skill of skills)
|
|
153
161
|
yield* fs.remove(path.join(skillsDir, skill), { recursive: true, force: true });
|
|
162
|
+
const pluginsDir = layout.plugins;
|
|
163
|
+
const plugins = [...new Set([...input.previous?.plugins ?? [], ...setup.plugins])];
|
|
164
|
+
if (pluginsDir !== undefined) {
|
|
165
|
+
const strayPlugin = plugins.find((plugin) => path.dirname(path.join(pluginsDir, plugin)) !== pluginsDir);
|
|
166
|
+
if (strayPlugin !== undefined)
|
|
167
|
+
return yield* new KitSyncError({
|
|
168
|
+
message: `A Kit's plugin name ${strayPlugin} would land outside its directory`
|
|
169
|
+
});
|
|
170
|
+
for (const plugin of plugins)
|
|
171
|
+
yield* fs.remove(path.join(pluginsDir, plugin), { recursive: true, force: true });
|
|
172
|
+
}
|
|
154
173
|
if (layout.marketplace !== undefined)
|
|
155
174
|
yield* fs.remove(layout.marketplace, { recursive: true, force: true });
|
|
156
175
|
for (const { target, content } of targets)
|
|
@@ -219,7 +238,11 @@ ${block}`);
|
|
|
219
238
|
yield* writeJson(file, next);
|
|
220
239
|
}
|
|
221
240
|
return {
|
|
222
|
-
synced: {
|
|
241
|
+
synced: {
|
|
242
|
+
skills: setup.skills,
|
|
243
|
+
mcpServers: Object.keys(setup.mcpConfig),
|
|
244
|
+
...pluginsDir === undefined ? undefined : { plugins: setup.plugins }
|
|
245
|
+
},
|
|
223
246
|
unsupported: setup.unsupported
|
|
224
247
|
};
|
|
225
248
|
});
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-zpp4jg4a.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-bdd62njv.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-aj2608jz.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-79g5zh2p.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-aj2608jz.js";
|
|
16
|
+
import"./chunk-bdd62njv.js";
|
|
17
|
+
import"./chunk-zpp4jg4a.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -6,10 +6,7 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
runForEach
|
|
12
|
-
} from "./chunk-rbbh4f56.js";
|
|
9
|
+
} from "./chunk-zpp4jg4a.js";
|
|
13
10
|
import {
|
|
14
11
|
WebSocketConstructor,
|
|
15
12
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +16,16 @@ import {
|
|
|
19
16
|
RunnerReplicaRpcs,
|
|
20
17
|
RunnerRunFileRpcs,
|
|
21
18
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-aj2608jz.js";
|
|
20
|
+
import {
|
|
21
|
+
runForEach
|
|
22
|
+
} from "./chunk-bdd62njv.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-9yenzg12.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-y6njjend.js";
|
|
8
|
+
import"./chunk-8k6adfg7.js";
|
|
9
|
+
import"./chunk-zpp4jg4a.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
succeed,
|
|
13
13
|
isSuccess,
|
|
14
14
|
TaggedError,
|
|
15
|
-
|
|
15
|
+
make15,
|
|
16
16
|
_await,
|
|
17
17
|
fail5,
|
|
18
18
|
succeed5,
|
|
@@ -104,21 +104,8 @@ import {
|
|
|
104
104
|
decodeJsonString,
|
|
105
105
|
encodeJsonStringSync,
|
|
106
106
|
encodePrettyJsonString
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-zpp4jg4a.js";
|
|
108
108
|
import {
|
|
109
|
-
tap,
|
|
110
|
-
mapError,
|
|
111
|
-
decodeText,
|
|
112
|
-
run,
|
|
113
|
-
mkString,
|
|
114
|
-
FileSystem,
|
|
115
|
-
Path,
|
|
116
|
-
withDefault,
|
|
117
|
-
option,
|
|
118
|
-
String2
|
|
119
|
-
} from "./chunk-rbbh4f56.js";
|
|
120
|
-
import {
|
|
121
|
-
currentTimeMillis,
|
|
122
109
|
SecureRandom,
|
|
123
110
|
layerWebCrypto,
|
|
124
111
|
runMain,
|
|
@@ -232,14 +219,27 @@ import {
|
|
|
232
219
|
harnessNames,
|
|
233
220
|
herdrRunnerCapabilities2,
|
|
234
221
|
declaredChecks
|
|
235
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-aj2608jz.js";
|
|
236
223
|
import {
|
|
237
224
|
Id
|
|
238
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-8k6adfg7.js";
|
|
226
|
+
import {
|
|
227
|
+
currentTimeMillis,
|
|
228
|
+
tap,
|
|
229
|
+
mapError,
|
|
230
|
+
decodeText,
|
|
231
|
+
run,
|
|
232
|
+
mkString,
|
|
233
|
+
FileSystem,
|
|
234
|
+
Path,
|
|
235
|
+
withDefault,
|
|
236
|
+
option,
|
|
237
|
+
String2
|
|
238
|
+
} from "./chunk-bdd62njv.js";
|
|
239
239
|
import {
|
|
240
240
|
ChildProcessSpawner,
|
|
241
241
|
make3
|
|
242
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-79g5zh2p.js";
|
|
243
243
|
|
|
244
244
|
// apps/cli/src/cli-error.ts
|
|
245
245
|
function cliErrorCode(error, status) {
|
|
@@ -1020,10 +1020,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1020
1020
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1021
1021
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1022
1022
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1023
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1023
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rjz0pnf9.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1024
1024
|
});
|
|
1025
1025
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1026
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1026
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rjz0pnf9.js")), (module) => module.updateHerdrCore(options))
|
|
1027
1027
|
});
|
|
1028
1028
|
var herdrCoreMissing = (error) => {
|
|
1029
1029
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1426,7 +1426,11 @@ var runnerUpdater = (input) => {
|
|
|
1426
1426
|
};
|
|
1427
1427
|
|
|
1428
1428
|
// apps/cli/src/harness-sync.ts
|
|
1429
|
-
var SyncedHarnesses = fromJsonString(Record(String4, Struct({
|
|
1429
|
+
var SyncedHarnesses = fromJsonString(Record(String4, Struct({
|
|
1430
|
+
skills: ArraySchema(String4),
|
|
1431
|
+
mcpServers: ArraySchema(String4),
|
|
1432
|
+
plugins: optionalKey(ArraySchema(String4))
|
|
1433
|
+
})));
|
|
1430
1434
|
var decodeArchive = decodeEffect(fromJsonString(SetupArchive));
|
|
1431
1435
|
var listed = (names) => names.length <= 1 ? names[0] ?? "none" : `${names.slice(0, -1).join(", ")} and ${names.at(-1)}`;
|
|
1432
1436
|
var setupArchive = (client, workspaceId, digest) => gen(function* () {
|
|
@@ -1463,7 +1467,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1463
1467
|
});
|
|
1464
1468
|
var syncKits = (input) => gen(function* () {
|
|
1465
1469
|
const fs = yield* FileSystem;
|
|
1466
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1470
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-jv4p85q5.js"));
|
|
1467
1471
|
const harnesses = yield* syncTargets(input.harness);
|
|
1468
1472
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1469
1473
|
for (const { name, problem } of chain.skipped)
|
|
@@ -2382,7 +2386,7 @@ var package_default = {
|
|
|
2382
2386
|
};
|
|
2383
2387
|
|
|
2384
2388
|
// apps/cli/src/scaffold.ts
|
|
2385
|
-
var cliVersion = "0.14.
|
|
2389
|
+
var cliVersion = "0.14.7";
|
|
2386
2390
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2387
2391
|
name,
|
|
2388
2392
|
private: true,
|
|
@@ -2534,7 +2538,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2534
2538
|
|
|
2535
2539
|
// apps/cli/src/commands.ts
|
|
2536
2540
|
var ClientId = "kitman-cli";
|
|
2537
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2541
|
+
var agentRuntime = promise(() => import("./chunk-bty0mbn4.js"));
|
|
2538
2542
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2539
2543
|
defaultValue: () => gen(function* () {
|
|
2540
2544
|
const tui = yield* tryPromise({
|
|
@@ -3570,7 +3574,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3570
3574
|
});
|
|
3571
3575
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3572
3576
|
defaultValue: () => (options) => gen(function* () {
|
|
3573
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3577
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-64zvzv63.js"));
|
|
3574
3578
|
return yield* makeRunnerRpcClient({
|
|
3575
3579
|
runnerId: options.runnerId,
|
|
3576
3580
|
bearer: options.bearer,
|
|
@@ -3882,7 +3886,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3882
3886
|
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);
|
|
3883
3887
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
3884
3888
|
const platform = yield* context();
|
|
3885
|
-
const updated = yield*
|
|
3889
|
+
const updated = yield* make15();
|
|
3886
3890
|
const scope = yield* scope2;
|
|
3887
3891
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3888
3892
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4137,7 +4141,7 @@ function mcpCommand(args) {
|
|
|
4137
4141
|
if (command.action === "run") {
|
|
4138
4142
|
if (command.args.length > 0)
|
|
4139
4143
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4140
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4144
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-c9j28q63.js"));
|
|
4141
4145
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4142
4146
|
}
|
|
4143
4147
|
if (command.action !== "setup")
|
|
@@ -4625,7 +4629,7 @@ function programLoopCommand(command) {
|
|
|
4625
4629
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4626
4630
|
});
|
|
4627
4631
|
}
|
|
4628
|
-
var docsModule = promise(() => import("./chunk-
|
|
4632
|
+
var docsModule = promise(() => import("./chunk-gnhfwa99.js"));
|
|
4629
4633
|
function docsCommand(args) {
|
|
4630
4634
|
return gen(function* () {
|
|
4631
4635
|
const command = parseCommand(args);
|
|
@@ -5467,9 +5471,9 @@ function changeRequestCommand(args) {
|
|
|
5467
5471
|
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}`);
|
|
5468
5472
|
});
|
|
5469
5473
|
}
|
|
5470
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5474
|
+
var KitWriter = map8(promise(() => import("./chunk-ag19ejy7.js")), (build) => build.writeKit);
|
|
5471
5475
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5472
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5476
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-ag19ejy7.js")), (build) => build.buildKit(directory))
|
|
5473
5477
|
});
|
|
5474
5478
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5475
5479
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-zpp4jg4a.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-8k6adfg7.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|