@kitman-sh/cli 0.14.1 → 0.14.3
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/LICENSE.md +10 -0
- package/dist/{chunk-rbbh4f56.js → chunk-2w9a76nr.js} +28 -177
- package/dist/{chunk-f1y7ysjg.js → chunk-34748vfg.js} +278 -122
- package/dist/{chunk-kwkh8hxt.js → chunk-3f6mzrm7.js} +1 -1
- package/dist/{chunk-enabwyrn.js → chunk-44kx62t6.js} +7 -7
- package/dist/{chunk-gvs5fcvy.js → chunk-65dpe0ev.js} +3 -3
- package/dist/{chunk-nvncrs4n.js → chunk-7q3t3x0x.js} +6 -6
- package/dist/{chunk-jp7cjnng.js → chunk-7v1n7a6k.js} +4 -4
- package/dist/{chunk-vx4qe0fe.js → chunk-91j33xf2.js} +6 -6
- package/dist/{chunk-fch7pjzh.js → chunk-9anvghq2.js} +2 -2
- package/dist/{chunk-c80dvhxf.js → chunk-9avbsbvk.js} +1 -6
- package/dist/{chunk-5x44qb6d.js → chunk-a4mkjaxa.js} +6 -6
- package/dist/{chunk-vt8aqeby.js → chunk-bbf0jzsc.js} +1 -1
- package/dist/{chunk-93xj74qp.js → chunk-ctpgfdzf.js} +3 -3
- package/dist/{chunk-27k0egfz.js → chunk-daem5h1c.js} +28 -28
- package/dist/{chunk-pyss20q2.js → chunk-dhtx14r5.js} +3 -3
- package/dist/{chunk-zw2mzy00.js → chunk-er9n65mh.js} +9 -9
- package/dist/{chunk-5jqqhvv2.js → chunk-f96vy2h9.js} +4 -4
- package/dist/{chunk-77jk3v8v.js → chunk-hasfatd4.js} +5 -5
- package/dist/{chunk-a9srrnsk.js → chunk-my9vcmfw.js} +31 -31
- package/dist/{chunk-0axm9scx.js → chunk-rgrpvnwg.js} +23 -23
- package/dist/{chunk-jnpv483d.js → chunk-rvnem2bt.js} +4 -4
- package/dist/{chunk-zr59g5bk.js → chunk-tebzffha.js} +17 -17
- package/dist/{chunk-cwdrhsvk.js → chunk-y0y2gg8d.js} +2 -2
- package/dist/{chunk-wttgq85b.js → chunk-zpp4jg4a.js} +60 -60
- package/dist/{chunk-4qpmjrd2.js → chunk-zxmx605h.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +4 -3
|
@@ -13,27 +13,27 @@ import {
|
|
|
13
13
|
isJsonObject,
|
|
14
14
|
decodeJsonString,
|
|
15
15
|
encodePrettyJsonString
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import"./chunk-c80dvhxf.js";
|
|
16
|
+
} from "./chunk-zpp4jg4a.js";
|
|
18
17
|
import {
|
|
19
18
|
FileSystem,
|
|
20
19
|
Path
|
|
21
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2w9a76nr.js";
|
|
22
21
|
import {
|
|
23
22
|
tomlTableHeader2,
|
|
24
23
|
tomlKeyPath2,
|
|
25
24
|
kitmanSkillEntry,
|
|
26
25
|
isPathWithin2
|
|
27
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-f96vy2h9.js";
|
|
28
27
|
import {
|
|
29
28
|
instructionsStart,
|
|
30
29
|
instructionsEnd,
|
|
31
30
|
renderMcpServer,
|
|
32
31
|
materializeKitSetup,
|
|
33
32
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
33
|
+
} from "./chunk-34748vfg.js";
|
|
34
|
+
import"./chunk-dhtx14r5.js";
|
|
35
|
+
import"./chunk-zxmx605h.js";
|
|
36
|
+
import"./chunk-9avbsbvk.js";
|
|
37
37
|
|
|
38
38
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
39
39
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -57,7 +57,7 @@ kitman verify add test "bun run test"
|
|
|
57
57
|
For a repository whose forge runs no pipeline, approve the command that runs it as its pipeline. Shepherd runs it on a Runner for each ChangeRequest head and reports the result:
|
|
58
58
|
|
|
59
59
|
\`\`\`sh
|
|
60
|
-
kitman verify add
|
|
60
|
+
kitman verify add quality scripts/check.sh --pipeline
|
|
61
61
|
\`\`\`
|
|
62
62
|
|
|
63
63
|
Approve a check that reads the target branch, such as a migration history test that compares the branch's migrations with the target's, with \`--reads-target\`. Kitman holds a check's result per tree and reuses it, but this one's result holds only for the target it read, so it runs at every verify. Shepherd also runs it again when the target moves while a ChangeRequest waits for a person to merge, and merges the target in when it fails:
|
|
@@ -709,7 +709,7 @@ Runners execute StepAttempts in user-controlled environments. A runner advertise
|
|
|
709
709
|
path: "runner-operations#runner-settings",
|
|
710
710
|
level: 3,
|
|
711
711
|
link: "https://kitman.sh/knowledge/docs/runner-operations#runner-settings",
|
|
712
|
-
text: "### Runner settings\n\nKitman keeps how your Runner behaves, so you change it on the Runner's page in the **Runners** tab, or with `kitman runner settings <runner>`, without touching its service. Its owner, or a Workspace admin, may change it; each change is in its History with who made it, when, and the old and new value (`kitman runner settings history <runner>`).\n\n- **Concurrency**: how many Work Units it runs at once, 1 to
|
|
712
|
+
text: "### Runner settings\n\nKitman keeps how your Runner behaves, so you change it on the Runner's page in the **Runners** tab, or with `kitman runner settings <runner>`, without touching its service. Its owner, or a Workspace admin, may change it; each change is in its History with who made it, when, and the old and new value (`kitman runner settings history <runner>`).\n\n- **Concurrency**: how many Work Units it runs at once, 1 to 32. It applies a change within about 10 seconds, and work in flight finishes first.\n- **Sandbox**: `srt` (the default), `docker` or `host`. New Steps and checks use a change; a running Step keeps its own.\n- **Docker image**: the image `docker` runs agents in, pinned by digest. It applies when the Runner restarts.\n- **Check hosts**: hosts every check this Runner runs, for any Team, may also reach.\n- **Checks' Docker image** and **checks' registry image**: for a pipeline check's own Docker daemon (below), each pinned by digest. They apply when the Runner restarts.\n\n```sh\nkitman runner settings <runner> --concurrency 2 --check-hosts github.com\n```\n\nThe Runner's page shows where what the Runner applies differs from its settings, and why.\n\nA few things stay on your machine, because they start the Runner or protect it: the Runner's id, the API URL and its credential, `KITMAN_RUNNER_FULL_ACCESS`, and your consent to run agents with no sandbox, `KITMAN_RUNNER_ALLOW_FULL_ACCESS=1`. Kitman cannot give that consent, so nobody who can change the Runner's settings, nor a compromised control plane, can turn off your machine's sandbox: a Runner set to `host` on a machine without it runs its agents in `srt` and shows the `full_access_refused` Runner Problem. A Runner set to `host` on a machine with it runs agents that use your own `kitman` login. When Kitman refuses that login, the Runner shows the `cli_session_expired` Runner Problem: run `kitman login` on the machine.\n\nBefore Kitman kept these, they were the environment variables `KITMAN_RUNNER_CONCURRENCY`, `KITMAN_RUNNER_SANDBOX`, `KITMAN_RUNNER_DOCKER_IMAGE`, `KITMAN_RUNNER_CHECK_HOSTS`, `KITMAN_RUNNER_CHECK_DOCKER_IMAGE` and `KITMAN_RUNNER_CHECK_REGISTRY_IMAGE`. The first time a Runner starts on a version with settings, Kitman adopts the values they give, once, for each setting nobody has set yet (a shared Runner's sandbox excepted); after that the Runner ignores them and warns at each start that each one still set is deprecated. Remove them from its service when its settings look right. While `KITMAN_RUNNER_SANDBOX=host` stays set, it counts as your consent to run agents on the host."
|
|
713
713
|
},
|
|
714
714
|
{
|
|
715
715
|
title: "Runner Operations Guide \u203A The sandbox",
|
|
@@ -1555,7 +1555,7 @@ var pathOfLink = (link) => {
|
|
|
1555
1555
|
return page === null ? link : page[1] || "index";
|
|
1556
1556
|
};
|
|
1557
1557
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1558
|
-
var pinnedLink2 = (link, version = "0.14.
|
|
1558
|
+
var pinnedLink2 = (link, version = "0.14.3") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1559
1559
|
var pageOf = (path) => path.split("#")[0];
|
|
1560
1560
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1561
1561
|
function excerpt(text, queryTerms) {
|
|
@@ -75,10 +75,7 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import {
|
|
80
|
-
guard
|
|
81
|
-
} from "./chunk-c80dvhxf.js";
|
|
78
|
+
} from "./chunk-zpp4jg4a.js";
|
|
82
79
|
import {
|
|
83
80
|
currentTimeMillis,
|
|
84
81
|
WebCrypto,
|
|
@@ -105,11 +102,14 @@ import {
|
|
|
105
102
|
KitDigest,
|
|
106
103
|
KitSetup,
|
|
107
104
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-34748vfg.js";
|
|
109
106
|
import {
|
|
110
107
|
runForEach,
|
|
111
108
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-2w9a76nr.js";
|
|
110
|
+
import {
|
|
111
|
+
guard
|
|
112
|
+
} from "./chunk-9avbsbvk.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");
|
|
@@ -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-hasfatd4.js";
|
|
11
|
+
import"./chunk-zxmx605h.js";
|
|
12
|
+
import"./chunk-2w9a76nr.js";
|
|
13
|
+
import"./chunk-zpp4jg4a.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -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-34748vfg.js";
|
|
20
|
+
import {
|
|
21
|
+
runForEach
|
|
22
|
+
} from "./chunk-2w9a76nr.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-tebzffha.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-2w9a76nr.js";
|
|
18
|
+
import"./chunk-zpp4jg4a.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -18,12 +18,7 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
|
|
23
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
|
|
24
|
-
var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
|
|
25
|
-
var DRAFT_07_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "deprecated"];
|
|
26
|
-
var OPEN_API_30_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "$comment", "$id", "$schema", "const", "contains", "contentEncoding", "contentMediaType", "else", "examples", "if", "patternProperties", "propertyNames", "then"];
|
|
21
|
+
} from "./chunk-zpp4jg4a.js";
|
|
27
22
|
|
|
28
23
|
// packages/core/src/schema.ts
|
|
29
24
|
var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
@@ -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-91j33xf2.js";
|
|
8
|
+
import"./chunk-tebzffha.js";
|
|
9
|
+
import"./chunk-34748vfg.js";
|
|
10
|
+
import"./chunk-9avbsbvk.js";
|
|
11
|
+
import"./chunk-2w9a76nr.js";
|
|
12
|
+
import"./chunk-zpp4jg4a.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -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-y0y2gg8d.js";
|
|
8
|
+
import"./chunk-9avbsbvk.js";
|
|
9
|
+
import"./chunk-zpp4jg4a.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|