@kitman-sh/cli 0.14.1 → 0.14.2

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.
Files changed (27) hide show
  1. package/dist/{chunk-5jqqhvv2.js → chunk-0r9tp5pz.js} +4 -4
  2. package/dist/{chunk-wttgq85b.js → chunk-1jabs81x.js} +70 -28
  3. package/dist/{chunk-0axm9scx.js → chunk-24j1cmsm.js} +23 -23
  4. package/dist/{chunk-pyss20q2.js → chunk-39pdxhcv.js} +3 -3
  5. package/dist/{chunk-jnpv483d.js → chunk-3csj1ve1.js} +4 -4
  6. package/dist/{chunk-fch7pjzh.js → chunk-4xez238w.js} +2 -2
  7. package/dist/{chunk-27k0egfz.js → chunk-80vwvv5x.js} +39 -39
  8. package/dist/{chunk-rbbh4f56.js → chunk-avhqm9p0.js} +17 -17
  9. package/dist/{chunk-cwdrhsvk.js → chunk-e024f8af.js} +2 -2
  10. package/dist/{chunk-77jk3v8v.js → chunk-ffq8vvvx.js} +7 -7
  11. package/dist/{chunk-nvncrs4n.js → chunk-ge9qjp6s.js} +4 -4
  12. package/dist/{chunk-kwkh8hxt.js → chunk-gwz39037.js} +1 -1
  13. package/dist/{chunk-c80dvhxf.js → chunk-h6kd80nr.js} +1 -1
  14. package/dist/{chunk-a9srrnsk.js → chunk-hza25m2e.js} +23 -23
  15. package/dist/{chunk-jp7cjnng.js → chunk-jzfy127y.js} +4 -4
  16. package/dist/{chunk-enabwyrn.js → chunk-m9x7feh0.js} +7 -7
  17. package/dist/{chunk-5x44qb6d.js → chunk-q4ch3t9q.js} +6 -6
  18. package/dist/{chunk-4qpmjrd2.js → chunk-qqmxhk9w.js} +14 -60
  19. package/dist/{chunk-f1y7ysjg.js → chunk-ryxff0xk.js} +108 -108
  20. package/dist/{chunk-vt8aqeby.js → chunk-scdr623z.js} +1 -1
  21. package/dist/{chunk-gvs5fcvy.js → chunk-t9chwen8.js} +2 -2
  22. package/dist/{chunk-vx4qe0fe.js → chunk-v86jpzpr.js} +7 -7
  23. package/dist/{chunk-93xj74qp.js → chunk-vfw3xn1e.js} +3 -3
  24. package/dist/{chunk-zr59g5bk.js → chunk-yfag1eey.js} +5 -5
  25. package/dist/{chunk-zw2mzy00.js → chunk-z7c2ndfg.js} +11 -11
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-wttgq85b.js";
6
+ } from "./chunk-1jabs81x.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -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 4. 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."
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.1") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1558
+ var pinnedLink2 = (link, version = "0.14.2") => 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) {
@@ -6,10 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-wttgq85b.js";
9
+ } from "./chunk-1jabs81x.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-rbbh4f56.js";
12
+ } from "./chunk-avhqm9p0.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-f1y7ysjg.js";
22
+ } from "./chunk-ryxff0xk.js";
23
23
  import {
24
24
  layerJson,
25
- make4,
25
+ make3,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-zr59g5bk.js";
28
+ } from "./chunk-yfag1eey.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* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
49
+ const client = yield* make3(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* make4(ProgramRpcs).pipe(provideContext2(protocol));
77
+ const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
78
78
  const authorized = authorizer(options);
79
79
  return {
80
80
  recordActivity: (input) => authorized(client.RecordActivity(input)),
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-cwdrhsvk.js";
8
- import"./chunk-c80dvhxf.js";
9
- import"./chunk-wttgq85b.js";
7
+ } from "./chunk-e024f8af.js";
8
+ import"./chunk-h6kd80nr.js";
9
+ import"./chunk-1jabs81x.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -96,7 +96,7 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-wttgq85b.js";
99
+ } from "./chunk-1jabs81x.js";
100
100
  import {
101
101
  interrupt,
102
102
  getCurrent,
@@ -108,7 +108,7 @@ import {
108
108
  shutdownUnsafe,
109
109
  fromQueue,
110
110
  unwrap
111
- } from "./chunk-rbbh4f56.js";
111
+ } from "./chunk-avhqm9p0.js";
112
112
  import {
113
113
  Clock,
114
114
  empty,
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-f1y7ysjg.js";
126
+ } from "./chunk-ryxff0xk.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")) {
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
483
483
  };
484
484
  });
485
485
  var clientIdCounter = 0;
486
- var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
486
+ var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
487
487
  const clientId = clientIdCounter++;
488
488
  const {
489
489
  codecFor,
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
829
829
  class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
830
830
  }
831
831
 
832
- export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
832
+ export { layerJson, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
@@ -32,8 +32,8 @@ import {
32
32
  toCodecJson,
33
33
  Json,
34
34
  encodePrettyJsonString
35
- } from "./chunk-wttgq85b.js";
36
- import"./chunk-c80dvhxf.js";
35
+ } from "./chunk-1jabs81x.js";
36
+ import"./chunk-h6kd80nr.js";
37
37
  import {
38
38
  SecureRandom,
39
39
  layerWebCrypto,
@@ -45,7 +45,7 @@ import {
45
45
  layer4,
46
46
  kitmanMcpServer,
47
47
  RunnerRpcProtocolVersion
48
- } from "./chunk-f1y7ysjg.js";
48
+ } from "./chunk-ryxff0xk.js";
49
49
  import {
50
50
  decodeText,
51
51
  mkString,
@@ -53,23 +53,23 @@ import {
53
53
  Path,
54
54
  withDefault,
55
55
  String2
56
- } from "./chunk-rbbh4f56.js";
56
+ } from "./chunk-avhqm9p0.js";
57
57
  import {
58
58
  Packument,
59
59
  tarballMatches
60
- } from "./chunk-pyss20q2.js";
61
- import"./chunk-vx4qe0fe.js";
60
+ } from "./chunk-39pdxhcv.js";
61
+ import"./chunk-v86jpzpr.js";
62
62
  import {
63
63
  AgentDeclaration,
64
64
  KitDeclarations,
65
65
  describeFlag,
66
66
  Described
67
- } from "./chunk-nvncrs4n.js";
67
+ } from "./chunk-ge9qjp6s.js";
68
68
  import {
69
69
  ChildProcessSpawner,
70
- make3
71
- } from "./chunk-4qpmjrd2.js";
72
- import"./chunk-zr59g5bk.js";
70
+ make2
71
+ } from "./chunk-qqmxhk9w.js";
72
+ import"./chunk-yfag1eey.js";
73
73
 
74
74
  // packages/sdk/src/build/index.ts
75
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -108,7 +108,7 @@ var ConfigAgents = Record(String4, Struct({
108
108
  }));
109
109
  var run = (command, args, cwd) => gen(function* () {
110
110
  const spawner = yield* ChildProcessSpawner;
111
- const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
111
+ const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
112
112
  const [stdout, stderr, exitCode] = yield* all3([
113
113
  mkString(decodeText(handle.stdout)),
114
114
  mkString(decodeText(handle.stderr)),
package/dist/index.js CHANGED
@@ -5,15 +5,15 @@
5
5
  var args = process.argv.slice(2);
6
6
  if (args[0] === "srt") {
7
7
  process.argv.splice(2, 1);
8
- const { runSrtCli } = await import("./chunk-fch7pjzh.js");
8
+ const { runSrtCli } = await import("./chunk-4xez238w.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
- const { runSrtStep } = await import("./chunk-93xj74qp.js");
11
+ const { runSrtStep } = await import("./chunk-vfw3xn1e.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
- const { runOpencodeReader } = await import("./chunk-jp7cjnng.js");
14
+ const { runOpencodeReader } = await import("./chunk-jzfy127y.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-a9srrnsk.js");
17
+ const { runCli } = await import("./chunk-hza25m2e.js");
18
18
  runCli(args);
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/cli",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {