@kitman-sh/cli 0.10.58 → 0.10.60

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 (26) hide show
  1. package/dist/{chunk-qbyxcjy1.js → chunk-09jf8588.js} +16 -11
  2. package/dist/{chunk-kvv9vzzr.js → chunk-0fdgam8v.js} +186 -46
  3. package/dist/{chunk-ec5df6ea.js → chunk-1w81w56v.js} +2 -2
  4. package/dist/{chunk-ahtfwz4b.js → chunk-1z9p4q8b.js} +2 -2
  5. package/dist/{chunk-bbsh3a70.js → chunk-5y050gx7.js} +38 -38
  6. package/dist/{chunk-zxs37afg.js → chunk-88257wax.js} +19 -19
  7. package/dist/{chunk-qkbnbr47.js → chunk-9qg17019.js} +31 -21
  8. package/dist/{chunk-4jbn6hma.js → chunk-a4798jzf.js} +3 -3
  9. package/dist/{chunk-nk5h4cvx.js → chunk-d3ksv8y1.js} +76 -117
  10. package/dist/{chunk-ac19vqmc.js → chunk-d8awdfdj.js} +204 -88
  11. package/dist/{chunk-zc214v7k.js → chunk-e3tv8mv2.js} +8 -8
  12. package/dist/{chunk-tr80mjnp.js → chunk-eawcprsb.js} +60 -14
  13. package/dist/{chunk-9rxwzn7y.js → chunk-hvev0dve.js} +11 -11
  14. package/dist/{chunk-hegberew.js → chunk-hxkk42cg.js} +7 -7
  15. package/dist/{chunk-59n1m39j.js → chunk-phmma642.js} +7 -7
  16. package/dist/{chunk-jd8xhqgm.js → chunk-q3c7vmby.js} +1 -1
  17. package/dist/{chunk-8y8ax1bt.js → chunk-rrnee9mk.js} +1 -1
  18. package/dist/{chunk-n1m89pnt.js → chunk-rrz0v4fg.js} +5 -5
  19. package/dist/{chunk-qmmer308.js → chunk-sdpjvc1r.js} +201 -344
  20. package/dist/{chunk-c6gyfqv4.js → chunk-smgvtzd2.js} +7 -7
  21. package/dist/{chunk-76y7v9rj.js → chunk-v01c0k6j.js} +1 -1
  22. package/dist/{chunk-edf91eyv.js → chunk-wkccjgwb.js} +4 -4
  23. package/dist/{chunk-ac851090.js → chunk-wtpwkjws.js} +4 -4
  24. package/dist/{chunk-mfhmj6r6.js → chunk-z0z56a72.js} +9 -9
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -1,12 +1,4 @@
1
1
  // @bun
2
- import {
3
- decodeText,
4
- mkString,
5
- FileSystem,
6
- Path,
7
- withDefault,
8
- String2
9
- } from "./chunk-kvv9vzzr.js";
10
2
  import {
11
3
  isString2,
12
4
  hasProperty,
@@ -40,9 +32,9 @@ import {
40
32
  toCodecJson,
41
33
  Json,
42
34
  encodePrettyJsonString
43
- } from "./chunk-nk5h4cvx.js";
44
- import"./chunk-8y8ax1bt.js";
45
- import"./chunk-76y7v9rj.js";
35
+ } from "./chunk-d3ksv8y1.js";
36
+ import"./chunk-rrnee9mk.js";
37
+ import"./chunk-v01c0k6j.js";
46
38
  import {
47
39
  SecureRandom,
48
40
  layerWebCrypto,
@@ -54,23 +46,31 @@ import {
54
46
  layer4,
55
47
  kitmanMcpServer,
56
48
  RunnerRpcProtocolVersion
57
- } from "./chunk-qmmer308.js";
49
+ } from "./chunk-sdpjvc1r.js";
50
+ import {
51
+ decodeText,
52
+ mkString,
53
+ FileSystem,
54
+ Path,
55
+ withDefault,
56
+ String2
57
+ } from "./chunk-0fdgam8v.js";
58
58
  import {
59
59
  Packument,
60
60
  tarballMatches
61
- } from "./chunk-4jbn6hma.js";
62
- import"./chunk-hegberew.js";
61
+ } from "./chunk-a4798jzf.js";
62
+ import"./chunk-hxkk42cg.js";
63
63
  import {
64
64
  AgentDeclaration,
65
65
  KitDeclarations,
66
66
  describeFlag,
67
67
  Described
68
- } from "./chunk-59n1m39j.js";
68
+ } from "./chunk-phmma642.js";
69
69
  import {
70
70
  ChildProcessSpawner,
71
- make2
72
- } from "./chunk-tr80mjnp.js";
73
- import"./chunk-zc214v7k.js";
71
+ make3
72
+ } from "./chunk-eawcprsb.js";
73
+ import"./chunk-e3tv8mv2.js";
74
74
 
75
75
  // packages/sdk/src/build/index.ts
76
76
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -109,7 +109,7 @@ var ConfigAgents = Record(String4, Struct({
109
109
  }));
110
110
  var run = (command, args, cwd) => gen(function* () {
111
111
  const spawner = yield* ChildProcessSpawner;
112
- const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
112
+ const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
113
113
  const [stdout, stderr, exitCode] = yield* all3([
114
114
  mkString(decodeText(handle.stdout)),
115
115
  mkString(decodeText(handle.stderr)),
@@ -6,7 +6,7 @@ import {
6
6
  getOrUndefined,
7
7
  Reference,
8
8
  TaggedError,
9
- make14,
9
+ make16,
10
10
  _await,
11
11
  fail5,
12
12
  succeed5,
@@ -85,7 +85,7 @@ import {
85
85
  decodeJsonString,
86
86
  encodeJsonStringSync,
87
87
  encodePrettyJsonString
88
- } from "./chunk-nk5h4cvx.js";
88
+ } from "./chunk-d3ksv8y1.js";
89
89
  import {
90
90
  tap,
91
91
  mapError,
@@ -97,7 +97,7 @@ import {
97
97
  withDefault,
98
98
  option,
99
99
  String2
100
- } from "./chunk-kvv9vzzr.js";
100
+ } from "./chunk-0fdgam8v.js";
101
101
  import {
102
102
  currentTimeMillis,
103
103
  SecureRandom,
@@ -135,7 +135,7 @@ import {
135
135
  digestSha256,
136
136
  sha256Hasher,
137
137
  raw,
138
- make4,
138
+ make5,
139
139
  get,
140
140
  put,
141
141
  HttpClient,
@@ -197,10 +197,10 @@ import {
197
197
  harnessNames,
198
198
  herdrRunnerCapabilities2,
199
199
  declaredChecks
200
- } from "./chunk-qmmer308.js";
200
+ } from "./chunk-sdpjvc1r.js";
201
201
  import {
202
202
  Id
203
- } from "./chunk-8y8ax1bt.js";
203
+ } from "./chunk-rrnee9mk.js";
204
204
  import {
205
205
  toJsonValue,
206
206
  isOneOf,
@@ -210,11 +210,11 @@ import {
210
210
  isObject,
211
211
  isJsonObject,
212
212
  isString
213
- } from "./chunk-76y7v9rj.js";
213
+ } from "./chunk-v01c0k6j.js";
214
214
  import {
215
215
  ChildProcessSpawner,
216
- make2
217
- } from "./chunk-tr80mjnp.js";
216
+ make3
217
+ } from "./chunk-eawcprsb.js";
218
218
 
219
219
  // apps/cli/src/cli-error.ts
220
220
  function cliErrorCode(error, status) {
@@ -504,10 +504,10 @@ var checkDockerImageSetting = pinnedImage;
504
504
  var checkRegistryImageSetting = pinnedImage;
505
505
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
506
506
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
507
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-edf91eyv.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
507
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-wkccjgwb.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
508
508
  });
509
509
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
510
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-edf91eyv.js")), (module) => module.updateHerdrCore(options))
510
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-wkccjgwb.js")), (module) => module.updateHerdrCore(options))
511
511
  });
512
512
  var herdrCoreMissing = (error) => {
513
513
  if (isTagged(error, "HerdrCoreMissing"))
@@ -733,7 +733,7 @@ var syncTargets = (harness) => gen(function* () {
733
733
  });
734
734
  var syncKits = (input) => gen(function* () {
735
735
  const fs = yield* FileSystem;
736
- const { syncKitSetup } = yield* promise(() => import("./chunk-9rxwzn7y.js"));
736
+ const { syncKitSetup } = yield* promise(() => import("./chunk-hvev0dve.js"));
737
737
  const harnesses = yield* syncTargets(input.harness);
738
738
  const chain = yield* input.client.getKitChain(input.workspaceId);
739
739
  for (const { name, problem } of chain.skipped)
@@ -1249,7 +1249,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
1249
1249
  run: (command, args) => runCommand2(command, args),
1250
1250
  attach: (command, args) => gen(function* () {
1251
1251
  const spawner = yield* ChildProcessSpawner;
1252
- const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1252
+ const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
1253
1253
  const exitCode = yield* handle.exitCode;
1254
1254
  if (exitCode !== 0)
1255
1255
  return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
@@ -1651,7 +1651,7 @@ var package_default = {
1651
1651
  };
1652
1652
 
1653
1653
  // apps/cli/src/scaffold.ts
1654
- var cliVersion = "0.10.58";
1654
+ var cliVersion = "0.10.60";
1655
1655
  var packageJson = (name, scaffold) => `${JSON.stringify({
1656
1656
  name,
1657
1657
  private: true,
@@ -1876,6 +1876,7 @@ var Usage = [
1876
1876
  " kitman team private <team>",
1877
1877
  " kitman team open <team>",
1878
1878
  " kitman team invite <team> <person>",
1879
+ " kitman team delivery <team> gated|auto (only a person, signed in as an owner or admin)",
1879
1880
  "",
1880
1881
  "Repositories, Memory and Decisions belong to the Workspace or one Team:",
1881
1882
  " kitman repo list",
@@ -1900,7 +1901,7 @@ var Usage = [
1900
1901
  "Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
1901
1902
  ].join(`
1902
1903
  `);
1903
- var agentRuntime = promise(() => import("./chunk-ac19vqmc.js"));
1904
+ var agentRuntime = promise(() => import("./chunk-d8awdfdj.js"));
1904
1905
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
1905
1906
  defaultValue: () => gen(function* () {
1906
1907
  const tui = yield* tryPromise({
@@ -2503,6 +2504,15 @@ function teamCommand(args) {
2503
2504
  yield* client.updateTeam(workspaceId, team.id, { visibility });
2504
2505
  return yield* log(visibility === "private" ? `${team.key} is private: only its members see it` : `${team.key} is open to the Workspace`);
2505
2506
  }
2507
+ if (command.action === "delivery") {
2508
+ const team = yield* teamNamed(client, workspaceId, requiredArg(command, "team"));
2509
+ const delivery = command.args[1];
2510
+ if (delivery !== "gated" && delivery !== "auto")
2511
+ return yield* new CliError({ message: "team delivery requires <team> gated|auto" });
2512
+ const { revision } = yield* client.getTeamDeliverySettings(team.id);
2513
+ yield* client.updateTeamDeliverySettings(team.id, { delivery, expectedRevision: revision });
2514
+ 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`);
2515
+ }
2506
2516
  if (command.action === "invite") {
2507
2517
  const team = yield* teamNamed(client, workspaceId, requiredArg(command, "team"));
2508
2518
  const userId = command.args[1];
@@ -2746,7 +2756,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
2746
2756
  });
2747
2757
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
2748
2758
  defaultValue: () => (options) => gen(function* () {
2749
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-c6gyfqv4.js"));
2759
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-smgvtzd2.js"));
2750
2760
  return yield* makeRunnerRpcClient({
2751
2761
  runnerId: options.runnerId,
2752
2762
  bearer: options.bearer,
@@ -2941,7 +2951,7 @@ function startCanonicalHerdrRunnerCommand(input) {
2941
2951
  });
2942
2952
  const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
2943
2953
  const platform = yield* context();
2944
- const updated = yield* make14();
2954
+ const updated = yield* make16();
2945
2955
  const scope = yield* scope2;
2946
2956
  yield* listenForSignals({
2947
2957
  rpc,
@@ -3130,7 +3140,7 @@ function mcpCommand(args) {
3130
3140
  if (command.action === "run") {
3131
3141
  if (command.args.length > 0)
3132
3142
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
3133
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-bbsh3a70.js"));
3143
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-5y050gx7.js"));
3134
3144
  return yield* runMcpServerCommand({ flags: command.flags });
3135
3145
  }
3136
3146
  if (command.action !== "setup")
@@ -4332,9 +4342,9 @@ function claimCommand(args) {
4332
4342
  }
4333
4343
  });
4334
4344
  }
4335
- var KitWriter = map8(promise(() => import("./chunk-zxs37afg.js")), (build) => build.writeKit);
4345
+ var KitWriter = map8(promise(() => import("./chunk-88257wax.js")), (build) => build.writeKit);
4336
4346
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
4337
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-zxs37afg.js")), (build) => build.buildKit(directory))
4347
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-88257wax.js")), (build) => build.buildKit(directory))
4338
4348
  });
4339
4349
  var uploadKit = (client, workspaceId, built) => gen(function* () {
4340
4350
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -5092,7 +5102,7 @@ function downloadPresignedAsset(download, outputPath) {
5092
5102
  return gen(function* () {
5093
5103
  const fs = yield* FileSystem;
5094
5104
  const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
5095
- const response = yield* send(make4(download.method)(download.url), failed);
5105
+ const response = yield* send(make5(download.method)(download.url), failed);
5096
5106
  if (response.status < 200 || response.status >= 300)
5097
5107
  return yield* new CliError({ message: `Asset download failed with ${response.status}` });
5098
5108
  const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-nk5h4cvx.js";
27
+ } from "./chunk-d3ksv8y1.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-kvv9vzzr.js";
31
+ } from "./chunk-0fdgam8v.js";
32
32
  import {
33
33
  digestSha256,
34
34
  digestSha512,
@@ -38,7 +38,7 @@ import {
38
38
  get2,
39
39
  layer4,
40
40
  KitDigest
41
- } from "./chunk-qmmer308.js";
41
+ } from "./chunk-sdpjvc1r.js";
42
42
 
43
43
  // packages/core/src/npm-registry.ts
44
44
  var KitManifest = Struct({