@kodycodes/cli 3.28.5 → 3.28.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.
Files changed (74) hide show
  1. package/dist/{auth-4MJQCPHH.js → auth-TWJRRMSG.js} +6 -6
  2. package/dist/bin.js +7 -7
  3. package/dist/{chunk-FEVH7L22.js → chunk-4QKTRWJD.js} +4 -4
  4. package/dist/{chunk-V7YI4C3Z.js → chunk-CB3EUH4P.js} +2 -2
  5. package/dist/{chunk-O2TQKQ2K.js → chunk-CJUEM2LY.js} +2 -2
  6. package/dist/{chunk-A3EJ5CXG.js → chunk-DH3RE3E4.js} +8 -8
  7. package/dist/{chunk-ZVKF65ZW.js → chunk-FBSHBUGX.js} +4 -4
  8. package/dist/{chunk-6UYRLITC.js → chunk-ND7A2EBE.js} +2 -2
  9. package/dist/{chunk-GOBGKXEU.js → chunk-PCTT6OIN.js} +3 -3
  10. package/dist/{chunk-AO7JQ7QO.js → chunk-RO2ZARBV.js} +2 -2
  11. package/dist/{chunk-TTZ6FYMT.js → chunk-RPUHFAMS.js} +2 -2
  12. package/dist/{chunk-AAPTGBH2.js → chunk-UW5ARTIN.js} +2 -2
  13. package/dist/{chunk-HRG2DHOB.js → chunk-VZTLL3I5.js} +2 -2
  14. package/dist/{chunk-I243ZMYI.js → chunk-XXV4UVM2.js} +40 -40
  15. package/dist/{chunk-C56EW2UR.js → chunk-Y3GXC22T.js} +3 -3
  16. package/dist/{chunk-NHRYNRXG.js → chunk-YVWOK4LV.js} +13 -2
  17. package/dist/chunk-YVWOK4LV.js.map +6 -0
  18. package/dist/{chunk-AK7QC5Q6.js → chunk-YZPI7RBF.js} +4 -4
  19. package/dist/cli.js +7 -7
  20. package/dist/{commands-YKHA6PLN.js → commands-I5F2NBFB.js} +3 -3
  21. package/dist/{dev-command-SAN55YUO.js → dev-command-OBTAS7CQ.js} +64 -13
  22. package/dist/{dev-command-SAN55YUO.js.map → dev-command-OBTAS7CQ.js.map} +1 -1
  23. package/dist/dev-command.d.ts +2 -0
  24. package/dist/{git-credential-AYJBXNYA.js → git-credential-BZUPSBHW.js} +7 -7
  25. package/dist/{local-execute-YWYSSSX4.js → local-execute-GC2NZIOT.js} +7 -7
  26. package/dist/{local-package-graph-BOT5WG6P.js → local-package-graph-3YAVSXT3.js} +4 -4
  27. package/dist/{local-package-run-TWSCJ5OP.js → local-package-run-HPFDMEMN.js} +10 -10
  28. package/dist/{local-publish-build-JLWXF55F.js → local-publish-build-QT6OSPMN.js} +2 -2
  29. package/dist/{mock-dep-resolve-YLYKZ64B.js → mock-dep-resolve-5X7EMHJA.js} +2 -2
  30. package/dist/{mock-fetch-gateway-NG2VIN2I.js → mock-fetch-gateway-WY6VINC4.js} +4 -4
  31. package/dist/{mock-local-deps-BSIIIPOE.js → mock-local-deps-DZUL2KHQ.js} +5 -5
  32. package/dist/{mock-server-TDKUEG5W.js → mock-server-RSP4JL6K.js} +5 -5
  33. package/dist/{open-api-client-5BVEGHDF.js → open-api-client-VAD3QXOQ.js} +5 -5
  34. package/dist/publish-builder.js +3 -1
  35. package/dist/{publish-offload-YL5I7PHD.js → publish-offload-XCQWZTSZ.js} +2 -2
  36. package/dist/{remote-execute-NXD5ASKQ.js → remote-execute-HYTFLCKV.js} +5 -5
  37. package/dist/{run-executor-RY226HUI.js → run-executor-MYUOIRNQ.js} +3 -3
  38. package/dist/{setup-git-DHJHWR2L.js → setup-git-QZGAVPWM.js} +6 -6
  39. package/dist/{whoami-JXSVR7Y5.js → whoami-3TO7PTYT.js} +3 -3
  40. package/dist/{workerd-binary-KGOGFIJ2.js → workerd-binary-TYASEII3.js} +3 -3
  41. package/package.json +1 -1
  42. package/dist/chunk-NHRYNRXG.js.map +0 -6
  43. /package/dist/{auth-4MJQCPHH.js.map → auth-TWJRRMSG.js.map} +0 -0
  44. /package/dist/{chunk-FEVH7L22.js.map → chunk-4QKTRWJD.js.map} +0 -0
  45. /package/dist/{chunk-V7YI4C3Z.js.map → chunk-CB3EUH4P.js.map} +0 -0
  46. /package/dist/{chunk-O2TQKQ2K.js.map → chunk-CJUEM2LY.js.map} +0 -0
  47. /package/dist/{chunk-A3EJ5CXG.js.map → chunk-DH3RE3E4.js.map} +0 -0
  48. /package/dist/{chunk-ZVKF65ZW.js.map → chunk-FBSHBUGX.js.map} +0 -0
  49. /package/dist/{chunk-6UYRLITC.js.map → chunk-ND7A2EBE.js.map} +0 -0
  50. /package/dist/{chunk-GOBGKXEU.js.map → chunk-PCTT6OIN.js.map} +0 -0
  51. /package/dist/{chunk-AO7JQ7QO.js.map → chunk-RO2ZARBV.js.map} +0 -0
  52. /package/dist/{chunk-TTZ6FYMT.js.map → chunk-RPUHFAMS.js.map} +0 -0
  53. /package/dist/{chunk-AAPTGBH2.js.map → chunk-UW5ARTIN.js.map} +0 -0
  54. /package/dist/{chunk-HRG2DHOB.js.map → chunk-VZTLL3I5.js.map} +0 -0
  55. /package/dist/{chunk-I243ZMYI.js.map → chunk-XXV4UVM2.js.map} +0 -0
  56. /package/dist/{chunk-C56EW2UR.js.map → chunk-Y3GXC22T.js.map} +0 -0
  57. /package/dist/{chunk-AK7QC5Q6.js.map → chunk-YZPI7RBF.js.map} +0 -0
  58. /package/dist/{commands-YKHA6PLN.js.map → commands-I5F2NBFB.js.map} +0 -0
  59. /package/dist/{git-credential-AYJBXNYA.js.map → git-credential-BZUPSBHW.js.map} +0 -0
  60. /package/dist/{local-execute-YWYSSSX4.js.map → local-execute-GC2NZIOT.js.map} +0 -0
  61. /package/dist/{local-package-graph-BOT5WG6P.js.map → local-package-graph-3YAVSXT3.js.map} +0 -0
  62. /package/dist/{local-package-run-TWSCJ5OP.js.map → local-package-run-HPFDMEMN.js.map} +0 -0
  63. /package/dist/{local-publish-build-JLWXF55F.js.map → local-publish-build-QT6OSPMN.js.map} +0 -0
  64. /package/dist/{mock-dep-resolve-YLYKZ64B.js.map → mock-dep-resolve-5X7EMHJA.js.map} +0 -0
  65. /package/dist/{mock-fetch-gateway-NG2VIN2I.js.map → mock-fetch-gateway-WY6VINC4.js.map} +0 -0
  66. /package/dist/{mock-local-deps-BSIIIPOE.js.map → mock-local-deps-DZUL2KHQ.js.map} +0 -0
  67. /package/dist/{mock-server-TDKUEG5W.js.map → mock-server-RSP4JL6K.js.map} +0 -0
  68. /package/dist/{open-api-client-5BVEGHDF.js.map → open-api-client-VAD3QXOQ.js.map} +0 -0
  69. /package/dist/{publish-offload-YL5I7PHD.js.map → publish-offload-XCQWZTSZ.js.map} +0 -0
  70. /package/dist/{remote-execute-NXD5ASKQ.js.map → remote-execute-HYTFLCKV.js.map} +0 -0
  71. /package/dist/{run-executor-RY226HUI.js.map → run-executor-MYUOIRNQ.js.map} +0 -0
  72. /package/dist/{setup-git-DHJHWR2L.js.map → setup-git-QZGAVPWM.js.map} +0 -0
  73. /package/dist/{whoami-JXSVR7Y5.js.map → whoami-3TO7PTYT.js.map} +0 -0
  74. /package/dist/{workerd-binary-KGOGFIJ2.js.map → workerd-binary-TYASEII3.js.map} +0 -0
@@ -8,19 +8,19 @@ import {
8
8
  loginWithDevice,
9
9
  refreshStoredCredentials,
10
10
  resolvePendingOrgSlug
11
- } from "./chunk-6UYRLITC.js";
11
+ } from "./chunk-ND7A2EBE.js";
12
12
  import "./chunk-GVSGNTG6.js";
13
13
  import "./chunk-CWWHR4FH.js";
14
14
  import "./chunk-CASGRYOF.js";
15
- import "./chunk-AK7QC5Q6.js";
16
- import "./chunk-TTZ6FYMT.js";
15
+ import "./chunk-YZPI7RBF.js";
16
+ import "./chunk-RPUHFAMS.js";
17
17
  import "./chunk-7OVUYX6A.js";
18
18
  import "./chunk-5W34SXJW.js";
19
19
  import "./chunk-YFNQZPEP.js";
20
20
  import "./chunk-RE7LNPRO.js";
21
21
  import "./chunk-NKH2L5RA.js";
22
- import "./chunk-O2TQKQ2K.js";
23
- import "./chunk-NHRYNRXG.js";
22
+ import "./chunk-CJUEM2LY.js";
23
+ import "./chunk-YVWOK4LV.js";
24
24
  import "./chunk-UW6AWLXX.js";
25
25
  export {
26
26
  credentialsFromTokens,
@@ -32,4 +32,4 @@ export {
32
32
  refreshStoredCredentials,
33
33
  resolvePendingOrgSlug
34
34
  };
35
- //# sourceMappingURL=auth-4MJQCPHH.js.map
35
+ //# sourceMappingURL=auth-TWJRRMSG.js.map
package/dist/bin.js CHANGED
@@ -2,25 +2,25 @@
2
2
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
3
3
  import {
4
4
  runCli
5
- } from "./chunk-I243ZMYI.js";
5
+ } from "./chunk-XXV4UVM2.js";
6
6
  import "./chunk-E4R3Y6MM.js";
7
- import "./chunk-AAPTGBH2.js";
7
+ import "./chunk-UW5ARTIN.js";
8
8
  import "./chunk-46IJPEID.js";
9
9
  import "./chunk-NKQRWYSY.js";
10
10
  import "./chunk-MIT3TUWB.js";
11
- import "./chunk-ZVKF65ZW.js";
11
+ import "./chunk-FBSHBUGX.js";
12
12
  import "./chunk-6ZYUGXVW.js";
13
13
  import "./chunk-CWWHR4FH.js";
14
14
  import "./chunk-CASGRYOF.js";
15
- import "./chunk-AK7QC5Q6.js";
16
- import "./chunk-TTZ6FYMT.js";
15
+ import "./chunk-YZPI7RBF.js";
16
+ import "./chunk-RPUHFAMS.js";
17
17
  import "./chunk-7OVUYX6A.js";
18
18
  import "./chunk-5W34SXJW.js";
19
19
  import "./chunk-YFNQZPEP.js";
20
20
  import "./chunk-RE7LNPRO.js";
21
21
  import "./chunk-NKH2L5RA.js";
22
- import "./chunk-O2TQKQ2K.js";
23
- import "./chunk-NHRYNRXG.js";
22
+ import "./chunk-CJUEM2LY.js";
23
+ import "./chunk-YVWOK4LV.js";
24
24
  import "./chunk-UW6AWLXX.js";
25
25
 
26
26
  // src/bin.ts
@@ -7,7 +7,7 @@ import {
7
7
  assertTokenSafeApiUrl,
8
8
  capabilityProxyUrl,
9
9
  readPackageVersion
10
- } from "./chunk-TTZ6FYMT.js";
10
+ } from "./chunk-RPUHFAMS.js";
11
11
  import {
12
12
  capabilityProxyForbiddenMessage,
13
13
  currentStoredTokenLifetimeAlias,
@@ -25,7 +25,7 @@ import {
25
25
  import {
26
26
  formatUnreachableApiMessage,
27
27
  requestSentStatus
28
- } from "./chunk-NHRYNRXG.js";
28
+ } from "./chunk-YVWOK4LV.js";
29
29
 
30
30
  // node_modules/es-module-lexer/dist/lexer.js
31
31
  var A = false;
@@ -1195,7 +1195,7 @@ async function resolveLocalPackageGraph(input) {
1195
1195
  mergePackageGraphs,
1196
1196
  resolveLocalPackageModules,
1197
1197
  tryLoadSelfManifest
1198
- } = await import("./mock-local-deps-BSIIIPOE.js");
1198
+ } = await import("./mock-local-deps-DZUL2KHQ.js");
1199
1199
  if (imports.length > 0 && input.packageRoot) {
1200
1200
  const selfManifest = await tryLoadSelfManifest(input.packageRoot);
1201
1201
  const local = await resolveLocalPackageModules({
@@ -1615,4 +1615,4 @@ export {
1615
1615
  createPackageBindingsLiteral,
1616
1616
  fetchLocalPackageGraph
1617
1617
  };
1618
- //# sourceMappingURL=chunk-FEVH7L22.js.map
1618
+ //# sourceMappingURL=chunk-4QKTRWJD.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-42R5NM3P.js";
8
8
  import {
9
9
  userCacheDir
10
- } from "./chunk-O2TQKQ2K.js";
10
+ } from "./chunk-CJUEM2LY.js";
11
11
 
12
12
  // src/mock/ensure-msw.ts
13
13
  import { spawn } from "node:child_process";
@@ -617,4 +617,4 @@ export {
617
617
  tryHandleMockGatewayFetchCall,
618
618
  resolveMockFetchGateway
619
619
  };
620
- //# sourceMappingURL=chunk-V7YI4C3Z.js.map
620
+ //# sourceMappingURL=chunk-CB3EUH4P.js.map
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  describeNetworkError
4
- } from "./chunk-NHRYNRXG.js";
4
+ } from "./chunk-YVWOK4LV.js";
5
5
 
6
6
  // src/workerd-binary.ts
7
7
  import { createHash } from "node:crypto";
@@ -180,4 +180,4 @@ export {
180
180
  ensureWorkerdBinary,
181
181
  downloadVerifiedGzip
182
182
  };
183
- //# sourceMappingURL=chunk-O2TQKQ2K.js.map
183
+ //# sourceMappingURL=chunk-CJUEM2LY.js.map
@@ -4,15 +4,15 @@ import {
4
4
  forwardLocalGatewayFetchStream,
5
5
  installMockFetchShimModules,
6
6
  startLocalRuntimeBridge
7
- } from "./chunk-GOBGKXEU.js";
7
+ } from "./chunk-PCTT6OIN.js";
8
8
  import {
9
9
  resolveMockFetchGateway,
10
10
  tryHandleMockGatewayFetchCall
11
- } from "./chunk-V7YI4C3Z.js";
11
+ } from "./chunk-CB3EUH4P.js";
12
12
  import {
13
13
  parseKodyPackageSpecifier,
14
14
  tryLoadSelfManifest
15
- } from "./chunk-AO7JQ7QO.js";
15
+ } from "./chunk-RO2ZARBV.js";
16
16
  import {
17
17
  bundleLocalUserModule
18
18
  } from "./chunk-YBO6HUV3.js";
@@ -28,23 +28,23 @@ import {
28
28
  runSecretEnvVar,
29
29
  runSecretHeader,
30
30
  writePackageModuleFiles
31
- } from "./chunk-FEVH7L22.js";
31
+ } from "./chunk-4QKTRWJD.js";
32
32
  import {
33
33
  redact
34
34
  } from "./chunk-CASGRYOF.js";
35
35
  import {
36
36
  callOpenApiOperation
37
- } from "./chunk-AK7QC5Q6.js";
37
+ } from "./chunk-YZPI7RBF.js";
38
38
  import {
39
39
  assertTokenSafeApiUrl,
40
40
  callCapabilityProxy
41
- } from "./chunk-TTZ6FYMT.js";
41
+ } from "./chunk-RPUHFAMS.js";
42
42
  import {
43
43
  apiTokenEnvVar
44
44
  } from "./chunk-NKH2L5RA.js";
45
45
  import {
46
46
  ensureWorkerdBinary
47
- } from "./chunk-O2TQKQ2K.js";
47
+ } from "./chunk-CJUEM2LY.js";
48
48
 
49
49
  // src/local-package-run.ts
50
50
  import { spawn } from "node:child_process";
@@ -1082,4 +1082,4 @@ export {
1082
1082
  resolveLocalPackageBinding,
1083
1083
  packageIdMatchesLocalPackage
1084
1084
  };
1085
- //# sourceMappingURL=chunk-A3EJ5CXG.js.map
1085
+ //# sourceMappingURL=chunk-DH3RE3E4.js.map
@@ -6,12 +6,12 @@ import {
6
6
  OpenApiError,
7
7
  openApiGet,
8
8
  openApiRequest
9
- } from "./chunk-AK7QC5Q6.js";
9
+ } from "./chunk-YZPI7RBF.js";
10
10
  import {
11
11
  assertTokenSafeApiUrl,
12
12
  capabilityProxyUrl,
13
13
  readPackageVersion
14
- } from "./chunk-TTZ6FYMT.js";
14
+ } from "./chunk-RPUHFAMS.js";
15
15
  import {
16
16
  deleteStoredApiToken,
17
17
  loadStoredApiToken,
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  formatUnreachableApiMessage,
28
28
  requestSentStatus
29
- } from "./chunk-NHRYNRXG.js";
29
+ } from "./chunk-YVWOK4LV.js";
30
30
 
31
31
  // src/setup-git.ts
32
32
  import { spawnSync } from "node:child_process";
@@ -970,4 +970,4 @@ export {
970
970
  authRemoveGit,
971
971
  formatAuthRemoveGitReport
972
972
  };
973
- //# sourceMappingURL=chunk-ZVKF65ZW.js.map
973
+ //# sourceMappingURL=chunk-FBSHBUGX.js.map
@@ -12,7 +12,7 @@ import {
12
12
  OpenApiError,
13
13
  openApiGet,
14
14
  openApiRequest
15
- } from "./chunk-AK7QC5Q6.js";
15
+ } from "./chunk-YZPI7RBF.js";
16
16
  import {
17
17
  isScopedApiToken,
18
18
  notAuthenticatedMessage
@@ -2346,4 +2346,4 @@ export {
2346
2346
  login,
2347
2347
  loginWithDevice
2348
2348
  };
2349
- //# sourceMappingURL=chunk-6UYRLITC.js.map
2349
+ //# sourceMappingURL=chunk-ND7A2EBE.js.map
@@ -3,7 +3,7 @@ import {
3
3
  localExecuteGatewayFetchShimModuleName,
4
4
  localWorkerModuleNames,
5
5
  runSecretHeader
6
- } from "./chunk-FEVH7L22.js";
6
+ } from "./chunk-4QKTRWJD.js";
7
7
  import {
8
8
  redact
9
9
  } from "./chunk-CASGRYOF.js";
@@ -14,7 +14,7 @@ import {
14
14
  gatewayFetchPackageIdHeaderName,
15
15
  gatewayFetchUrlHeaderName,
16
16
  secretResolutionHeaderName
17
- } from "./chunk-TTZ6FYMT.js";
17
+ } from "./chunk-RPUHFAMS.js";
18
18
 
19
19
  // src/local-runtime-bridge.ts
20
20
  import {
@@ -491,4 +491,4 @@ export {
491
491
  assertLocalPackageScopedSecretWriteAllowed,
492
492
  installMockFetchShimModules
493
493
  };
494
- //# sourceMappingURL=chunk-GOBGKXEU.js.map
494
+ //# sourceMappingURL=chunk-PCTT6OIN.js.map
@@ -12,7 +12,7 @@ import {
12
12
  hasLiteralDynamicSavedPackageImports,
13
13
  listSavedPackageImports,
14
14
  rewriteBareKodyBuiltinImports
15
- } from "./chunk-FEVH7L22.js";
15
+ } from "./chunk-4QKTRWJD.js";
16
16
 
17
17
  // src/mock-local-deps.ts
18
18
  import { access, readFile } from "node:fs/promises";
@@ -193,4 +193,4 @@ export {
193
193
  mergePackageGraphs,
194
194
  tryLoadSelfManifest
195
195
  };
196
- //# sourceMappingURL=chunk-AO7JQ7QO.js.map
196
+ //# sourceMappingURL=chunk-RO2ZARBV.js.map
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  formatUnreachableApiMessage,
18
18
  requestSentStatus
19
- } from "./chunk-NHRYNRXG.js";
19
+ } from "./chunk-YVWOK4LV.js";
20
20
 
21
21
  // src/credential-call-map.ts
22
22
  var credentialCallMapFeature = "credential-call-map";
@@ -789,4 +789,4 @@ export {
789
789
  callCapabilityProxyGatewayFetchStream,
790
790
  checkCredentialCallMap
791
791
  };
792
- //# sourceMappingURL=chunk-TTZ6FYMT.js.map
792
+ //# sourceMappingURL=chunk-RPUHFAMS.js.map
@@ -43,7 +43,7 @@ async function resolveLocalExecuteBearer(input) {
43
43
  `kody login credentials for ${mcpOrigin} are only sent to ${expectedPairedApiOrigin(mcpUrl)}. For ${apiOrigin}, run \`kody auth bootstrap --code \u2026 --api-url ${apiOrigin}\` or set KODY_API_TOKEN.`
44
44
  );
45
45
  }
46
- const ensure = input.ensureCredentials ?? (await import("./auth-4MJQCPHH.js")).ensureFreshCredentials;
46
+ const ensure = input.ensureCredentials ?? (await import("./auth-TWJRRMSG.js")).ensureFreshCredentials;
47
47
  try {
48
48
  const credentials = await ensure({
49
49
  mcpUrl: input.mcpUrl,
@@ -65,4 +65,4 @@ async function resolveLocalExecuteBearer(input) {
65
65
  export {
66
66
  resolveLocalExecuteBearer
67
67
  };
68
- //# sourceMappingURL=chunk-AAPTGBH2.js.map
68
+ //# sourceMappingURL=chunk-UW5ARTIN.js.map
@@ -47,7 +47,7 @@ async function loadPublishBuilder() {
47
47
  }
48
48
  async function startPublishBuilder(input) {
49
49
  const { copyFile, readdir, writeFile } = await import("node:fs/promises");
50
- const { ensureWorkerdBinary } = await import("./workerd-binary-KGOGFIJ2.js");
50
+ const { ensureWorkerdBinary } = await import("./workerd-binary-TYASEII3.js");
51
51
  const { startWorkerd } = await import("./workerd-process-JL4WS6W5.js");
52
52
  const { distDir, workDir } = input;
53
53
  const wasmDir = path.join(distDir, "publish-builder-wasm");
@@ -377,4 +377,4 @@ export {
377
377
  runContextPublishBuild,
378
378
  buildWorkingTreeLocally
379
379
  };
380
- //# sourceMappingURL=chunk-HRG2DHOB.js.map
380
+ //# sourceMappingURL=chunk-VZTLL3I5.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-E4R3Y6MM.js";
6
6
  import {
7
7
  resolveLocalExecuteBearer
8
- } from "./chunk-AAPTGBH2.js";
8
+ } from "./chunk-UW5ARTIN.js";
9
9
  import {
10
10
  formatToolResult
11
11
  } from "./chunk-46IJPEID.js";
@@ -30,7 +30,7 @@ import {
30
30
  parseCliScopesFlag,
31
31
  refreshGitCredentialHelperPinIfNeeded,
32
32
  resolveCliTokenLifetime
33
- } from "./chunk-ZVKF65ZW.js";
33
+ } from "./chunk-FBSHBUGX.js";
34
34
  import {
35
35
  orgEnvVar,
36
36
  orgSlugFromFlag
@@ -41,7 +41,7 @@ import {
41
41
  import {
42
42
  parseCredentialFlags,
43
43
  readPackageVersion
44
- } from "./chunk-TTZ6FYMT.js";
44
+ } from "./chunk-RPUHFAMS.js";
45
45
  import {
46
46
  cliBootstrapMintCall,
47
47
  expectedPairedApiOrigin
@@ -293,7 +293,7 @@ var commandHelpTree = [
293
293
  ],
294
294
  [
295
295
  "--context <name|cloud>",
296
- "Execution context that builds it (with --build context)"
296
+ "Execution context that builds it (alone or with --build context; not with --build local)"
297
297
  ],
298
298
  orgFlag,
299
299
  ["--params <json>", "Extra publish fields, e.g. allow_force"],
@@ -1905,7 +1905,7 @@ async function dispatch(parsed, write, writeErr) {
1905
1905
  const apiUrl = apiUrlFrom({
1906
1906
  apiUrl: typeof parsed.values["api-url"] === "string" ? parsed.values["api-url"] : void 0
1907
1907
  });
1908
- const { runExecutionContextCommand } = await import("./commands-YKHA6PLN.js");
1908
+ const { runExecutionContextCommand } = await import("./commands-I5F2NBFB.js");
1909
1909
  return await runExecutionContextCommand({
1910
1910
  command: parsed.command,
1911
1911
  positionals: parsed.positionals,
@@ -1935,7 +1935,7 @@ async function dispatch(parsed, write, writeErr) {
1935
1935
  });
1936
1936
  }
1937
1937
  case "login": {
1938
- const { login, loginWithDevice } = await import("./auth-4MJQCPHH.js");
1938
+ const { login, loginWithDevice } = await import("./auth-TWJRRMSG.js");
1939
1939
  const openBrowser = parsed.values["no-browser"] !== true;
1940
1940
  const lifetimeOption = typeof parsed.values.lifetime === "string" ? {
1941
1941
  lifetime: parsed.values.lifetime === "short" ? "short" : "long"
@@ -2185,7 +2185,7 @@ async function dispatch(parsed, write, writeErr) {
2185
2185
  parseGitCredentialAction,
2186
2186
  parseGitCredentialInput,
2187
2187
  readGitCredentialStdin
2188
- } = await import("./git-credential-AYJBXNYA.js");
2188
+ } = await import("./git-credential-BZUPSBHW.js");
2189
2189
  const action = parseGitCredentialAction(parsed.positionals);
2190
2190
  const raw = await readGitCredentialStdin(process.stdin);
2191
2191
  const output = await handleGitCredential({
@@ -2210,7 +2210,7 @@ async function dispatch(parsed, write, writeErr) {
2210
2210
  apiUrl: typeof parsed.values["api-url"] === "string" ? parsed.values["api-url"] : void 0
2211
2211
  });
2212
2212
  if (target === "mock") {
2213
- const { ensureMockTarget } = await import("./mock-server-TDKUEG5W.js");
2213
+ const { ensureMockTarget } = await import("./mock-server-RSP4JL6K.js");
2214
2214
  const mock = await ensureMockTarget({
2215
2215
  resetStorage: parsed.values["reset-storage"] === true,
2216
2216
  ...org ? { orgSlug: org } : {}
@@ -2245,7 +2245,7 @@ async function dispatch(parsed, write, writeErr) {
2245
2245
  if (mock.started) await mock.server.close();
2246
2246
  }
2247
2247
  }
2248
- const { runWhoami } = await import("./whoami-JXSVR7Y5.js");
2248
+ const { runWhoami } = await import("./whoami-3TO7PTYT.js");
2249
2249
  return await runWhoami({
2250
2250
  tokenValues,
2251
2251
  mcpUrl,
@@ -2269,13 +2269,13 @@ async function dispatch(parsed, write, writeErr) {
2269
2269
  let closeMock;
2270
2270
  try {
2271
2271
  if (target === "mock") {
2272
- const { ensureMockTarget } = await import("./mock-server-TDKUEG5W.js");
2272
+ const { ensureMockTarget } = await import("./mock-server-RSP4JL6K.js");
2273
2273
  const mock = await ensureMockTarget({
2274
2274
  resetStorage: parsed.values["reset-storage"] === true
2275
2275
  });
2276
2276
  apiUrl = mock.apiUrl;
2277
2277
  closeMock = mock.started ? () => mock.server.close() : void 0;
2278
- const { searchWithApiToken: searchWithApiToken2 } = await import("./open-api-client-5BVEGHDF.js");
2278
+ const { searchWithApiToken: searchWithApiToken2 } = await import("./open-api-client-VAD3QXOQ.js");
2279
2279
  const result2 = await searchWithApiToken2({
2280
2280
  token: mock.token,
2281
2281
  apiUrl,
@@ -2295,7 +2295,7 @@ async function dispatch(parsed, write, writeErr) {
2295
2295
  ...org ? { org } : {}
2296
2296
  });
2297
2297
  if (searchCredential?.token) {
2298
- const { searchWithApiToken: searchWithApiToken2 } = await import("./open-api-client-5BVEGHDF.js");
2298
+ const { searchWithApiToken: searchWithApiToken2 } = await import("./open-api-client-VAD3QXOQ.js");
2299
2299
  const result2 = await searchWithApiToken2({
2300
2300
  token: searchCredential.token,
2301
2301
  apiUrl,
@@ -2308,14 +2308,14 @@ async function dispatch(parsed, write, writeErr) {
2308
2308
  write(formatToolResult(result2, json));
2309
2309
  return result2.isError ? 1 : 0;
2310
2310
  }
2311
- const { ensureOpenApiCredentials } = await import("./auth-4MJQCPHH.js");
2311
+ const { ensureOpenApiCredentials } = await import("./auth-TWJRRMSG.js");
2312
2312
  const credentials = await ensureOpenApiCredentials({
2313
2313
  mcpUrl,
2314
2314
  org,
2315
2315
  apiUrl
2316
2316
  });
2317
2317
  noteActiveLoginCredential({ login: credentials, purpose: "session" });
2318
- const { searchWithApiToken } = await import("./open-api-client-5BVEGHDF.js");
2318
+ const { searchWithApiToken } = await import("./open-api-client-VAD3QXOQ.js");
2319
2319
  const result = await searchWithApiToken({
2320
2320
  token: credentials.accessToken,
2321
2321
  apiUrl,
@@ -2374,7 +2374,7 @@ async function dispatch(parsed, write, writeErr) {
2374
2374
  (value) => typeof value === "string"
2375
2375
  ) : typeof parsed.values.credential === "string" ? [parsed.values.credential] : void 0
2376
2376
  );
2377
- const executeRouting = (await import("./remote-execute-NXD5ASKQ.js")).executeRoutingFromFlags(parsed.values);
2377
+ const executeRouting = (await import("./remote-execute-HYTFLCKV.js")).executeRoutingFromFlags(parsed.values);
2378
2378
  if (executeRouting && local) {
2379
2379
  writeErr(
2380
2380
  "--context, --fallback, --requires, and --chain route cloud execute; drop --local.\n"
@@ -2393,7 +2393,7 @@ async function dispatch(parsed, write, writeErr) {
2393
2393
  apiUrl: typeof parsed.values["api-url"] === "string" ? parsed.values["api-url"] : void 0
2394
2394
  });
2395
2395
  let apiUrl = prodApiUrl;
2396
- const { parsePassthroughHosts } = await import("./mock-fetch-gateway-NG2VIN2I.js");
2396
+ const { parsePassthroughHosts } = await import("./mock-fetch-gateway-WY6VINC4.js");
2397
2397
  const passthroughHosts = parsePassthroughHosts(
2398
2398
  typeof parsed.values.passthrough === "string" ? parsed.values.passthrough : void 0
2399
2399
  );
@@ -2421,7 +2421,7 @@ async function dispatch(parsed, write, writeErr) {
2421
2421
  }
2422
2422
  try {
2423
2423
  if (target === "mock") {
2424
- const { ensureMockTarget } = await import("./mock-server-TDKUEG5W.js");
2424
+ const { ensureMockTarget } = await import("./mock-server-RSP4JL6K.js");
2425
2425
  const mock = await ensureMockTarget({
2426
2426
  resetStorage: parsed.values["reset-storage"] === true,
2427
2427
  packageId: localPackageRun ? `local:${localPackageRun.kodyId}` : void 0,
@@ -2430,7 +2430,7 @@ async function dispatch(parsed, write, writeErr) {
2430
2430
  apiUrl = mock.apiUrl;
2431
2431
  mockToken = mock.token;
2432
2432
  closeMock = mock.started ? () => mock.server.close() : void 0;
2433
- const { tryResolveMockDepResolve } = await import("./mock-dep-resolve-YLYKZ64B.js");
2433
+ const { tryResolveMockDepResolve } = await import("./mock-dep-resolve-5X7EMHJA.js");
2434
2434
  mockDepResolve = await tryResolveMockDepResolve({
2435
2435
  tokenValues,
2436
2436
  apiUrl: prodApiUrl,
@@ -2439,7 +2439,7 @@ async function dispatch(parsed, write, writeErr) {
2439
2439
  });
2440
2440
  }
2441
2441
  if (localPackageRun) {
2442
- const { buildLocalPackageContext, runLocalPackageModule } = await import("./local-package-run-TWSCJ5OP.js");
2442
+ const { buildLocalPackageContext, runLocalPackageModule } = await import("./local-package-run-HPFDMEMN.js");
2443
2443
  const result2 = await runLocalPackageModule({
2444
2444
  modulePath: localPackageRun.modulePath,
2445
2445
  params: args.params,
@@ -2484,7 +2484,7 @@ async function dispatch(parsed, write, writeErr) {
2484
2484
  packageRootForMocks = void 0;
2485
2485
  }
2486
2486
  }
2487
- const result = local ? await (await import("./local-execute-YWYSSSX4.js")).runLocalExecute({
2487
+ const result = local ? await (await import("./local-execute-GC2NZIOT.js")).runLocalExecute({
2488
2488
  code: args.code,
2489
2489
  ...modulePath !== void 0 ? { modulePath } : {},
2490
2490
  params: args.params,
@@ -2506,7 +2506,7 @@ async function dispatch(parsed, write, writeErr) {
2506
2506
  allowPrivateNetwork: parsed.values["allow-private-network"] === true,
2507
2507
  onStatus: (message) => writeErr(`${message}
2508
2508
  `)
2509
- }) : cloudToken ? await (await import("./remote-execute-NXD5ASKQ.js")).runRemoteExecuteWithToken({
2509
+ }) : cloudToken ? await (await import("./remote-execute-HYTFLCKV.js")).runRemoteExecuteWithToken({
2510
2510
  code: typeof args.code === "string" ? args.code : void 0,
2511
2511
  params: args.params,
2512
2512
  conversationId: args.conversationId,
@@ -2516,7 +2516,7 @@ async function dispatch(parsed, write, writeErr) {
2516
2516
  apiUrl,
2517
2517
  ...org ? { org } : {}
2518
2518
  }) : await (async () => {
2519
- const { ensureOpenApiCredentials } = await import("./auth-4MJQCPHH.js");
2519
+ const { ensureOpenApiCredentials } = await import("./auth-TWJRRMSG.js");
2520
2520
  const session = await ensureOpenApiCredentials({
2521
2521
  mcpUrl,
2522
2522
  org,
@@ -2526,7 +2526,7 @@ async function dispatch(parsed, write, writeErr) {
2526
2526
  login: session,
2527
2527
  purpose: "session"
2528
2528
  });
2529
- return (await import("./remote-execute-NXD5ASKQ.js")).runRemoteExecuteWithToken({
2529
+ return (await import("./remote-execute-HYTFLCKV.js")).runRemoteExecuteWithToken({
2530
2530
  code: typeof args.code === "string" ? args.code : void 0,
2531
2531
  params: args.params,
2532
2532
  conversationId: args.conversationId,
@@ -2541,7 +2541,7 @@ async function dispatch(parsed, write, writeErr) {
2541
2541
  return result.isError ? 1 : 0;
2542
2542
  } catch (error) {
2543
2543
  if (json && local) {
2544
- const { LocalPackageGraphError, packageGraphErrorToolResult } = await import("./local-package-graph-BOT5WG6P.js");
2544
+ const { LocalPackageGraphError, packageGraphErrorToolResult } = await import("./local-package-graph-3YAVSXT3.js");
2545
2545
  if (error instanceof LocalPackageGraphError) {
2546
2546
  const redacted = redactError(error).message;
2547
2547
  const result = packageGraphErrorToolResult(error);
@@ -2571,7 +2571,7 @@ async function dispatch(parsed, write, writeErr) {
2571
2571
  runDevServe,
2572
2572
  runDevWebhook,
2573
2573
  tryAttachedDevFetch
2574
- } = await import("./dev-command-SAN55YUO.js");
2574
+ } = await import("./dev-command-OBTAS7CQ.js");
2575
2575
  const target = resolveTarget({
2576
2576
  command: "dev",
2577
2577
  flag: typeof parsed.values.target === "string" ? parsed.values.target : void 0
@@ -2598,8 +2598,8 @@ async function dispatch(parsed, write, writeErr) {
2598
2598
  { callOpenApiOperation, formatOpenApiHttpDebugLine },
2599
2599
  { parsePackageCheckResult, PublishChecksAuthError }
2600
2600
  ] = await Promise.all([
2601
- import("./open-api-client-5BVEGHDF.js"),
2602
- import("./dev-command-SAN55YUO.js")
2601
+ import("./open-api-client-VAD3QXOQ.js"),
2602
+ import("./dev-command-OBTAS7CQ.js")
2603
2603
  ]);
2604
2604
  let token2;
2605
2605
  try {
@@ -2716,13 +2716,13 @@ async function dispatch(parsed, write, writeErr) {
2716
2716
  purpose: "kody dev",
2717
2717
  ...org ? { org } : {}
2718
2718
  }) : "mock";
2719
- const mockDepResolve = target === "mock" ? await (await import("./mock-dep-resolve-YLYKZ64B.js")).tryResolveMockDepResolve({
2719
+ const mockDepResolve = target === "mock" ? await (await import("./mock-dep-resolve-5X7EMHJA.js")).tryResolveMockDepResolve({
2720
2720
  tokenValues,
2721
2721
  apiUrl: prodApiUrl,
2722
2722
  mcpUrl,
2723
2723
  ...org ? { org } : {}
2724
2724
  }) : void 0;
2725
- const { parsePassthroughHosts } = await import("./mock-fetch-gateway-NG2VIN2I.js");
2725
+ const { parsePassthroughHosts } = await import("./mock-fetch-gateway-WY6VINC4.js");
2726
2726
  const passthroughHosts = parsePassthroughHosts(
2727
2727
  typeof parsed.values.passthrough === "string" ? parsed.values.passthrough : void 0
2728
2728
  );
@@ -2857,7 +2857,7 @@ async function dispatch(parsed, write, writeErr) {
2857
2857
  const params = parseApiParamsJson(
2858
2858
  typeof parsed.values.params === "string" ? parsed.values.params : void 0
2859
2859
  );
2860
- const { callOpenApiOperation } = await import("./open-api-client-5BVEGHDF.js");
2860
+ const { callOpenApiOperation } = await import("./open-api-client-VAD3QXOQ.js");
2861
2861
  const result = await callOpenApiOperation({
2862
2862
  operationId,
2863
2863
  params,
@@ -2892,7 +2892,7 @@ async function dispatch(parsed, write, writeErr) {
2892
2892
  mcpUrl,
2893
2893
  org
2894
2894
  });
2895
- const { callOpenApiOperation: callOpenApiOperation2 } = await import("./open-api-client-5BVEGHDF.js");
2895
+ const { callOpenApiOperation: callOpenApiOperation2 } = await import("./open-api-client-VAD3QXOQ.js");
2896
2896
  write(
2897
2897
  await runPackageCollaboratorPlan({
2898
2898
  plan,
@@ -2918,7 +2918,7 @@ ${packageCollaboratorUsage}`
2918
2918
  positional: parsed.positionals[1],
2919
2919
  paramsJson: typeof parsed.values.params === "string" ? parsed.values.params : void 0
2920
2920
  });
2921
- const { callOpenApiOperation } = await import("./open-api-client-5BVEGHDF.js");
2921
+ const { callOpenApiOperation } = await import("./open-api-client-VAD3QXOQ.js");
2922
2922
  const publishToken = await accessTokenForOpenApi({
2923
2923
  tokenValues,
2924
2924
  apiUrl,
@@ -2934,7 +2934,7 @@ ${packageCollaboratorUsage}`
2934
2934
  });
2935
2935
  const buildMode = typeof parsed.values.build === "string" ? parsed.values.build : null;
2936
2936
  const publishTarget = await resolvePackagePublishTarget(params, call);
2937
- const { runPublishWithBuild } = await import("./publish-offload-YL5I7PHD.js");
2937
+ const { runPublishWithBuild } = await import("./publish-offload-XCQWZTSZ.js");
2938
2938
  const result = await runPublishWithBuild({
2939
2939
  build: buildMode,
2940
2940
  context: typeof parsed.values.context === "string" ? parsed.values.context : null,
@@ -3090,7 +3090,7 @@ function attachExecuteCommonArgs(args, input) {
3090
3090
  return args;
3091
3091
  }
3092
3092
  async function runAuthSetupGit(input) {
3093
- const { authSetupGit, setupGitDefaultScopes } = await import("./setup-git-DHJHWR2L.js");
3093
+ const { authSetupGit, setupGitDefaultScopes } = await import("./setup-git-QZGAVPWM.js");
3094
3094
  const apiUrl = apiUrlFrom({
3095
3095
  apiUrl: typeof input.values["api-url"] === "string" ? input.values["api-url"] : void 0
3096
3096
  });
@@ -3147,7 +3147,7 @@ async function runAuthSetupGit(input) {
3147
3147
  return 0;
3148
3148
  }
3149
3149
  async function runAuthRemoveGit(input) {
3150
- const { authRemoveGit, formatAuthRemoveGitReport } = await import("./setup-git-DHJHWR2L.js");
3150
+ const { authRemoveGit, formatAuthRemoveGitReport } = await import("./setup-git-QZGAVPWM.js");
3151
3151
  const apiUrl = apiUrlFrom({
3152
3152
  apiUrl: typeof input.values["api-url"] === "string" ? input.values["api-url"] : void 0
3153
3153
  });
@@ -3169,7 +3169,7 @@ function bootstrapMinter(input) {
3169
3169
  });
3170
3170
  if (minter?.token) {
3171
3171
  const token = minter.token;
3172
- const { callOpenApiOperation } = await import("./open-api-client-5BVEGHDF.js");
3172
+ const { callOpenApiOperation } = await import("./open-api-client-VAD3QXOQ.js");
3173
3173
  try {
3174
3174
  return await callOpenApiOperation({
3175
3175
  token,
@@ -3188,13 +3188,13 @@ function bootstrapMinter(input) {
3188
3188
  }
3189
3189
  }
3190
3190
  if (minter) {
3191
- const { ensureOpenApiCredentials } = await import("./auth-4MJQCPHH.js");
3191
+ const { ensureOpenApiCredentials } = await import("./auth-TWJRRMSG.js");
3192
3192
  const session = await ensureOpenApiCredentials({
3193
3193
  mcpUrl: input.mcpUrl,
3194
3194
  apiUrl: input.apiUrl,
3195
3195
  ...input.org ? { org: input.org } : {}
3196
3196
  });
3197
- const { callOpenApiOperation } = await import("./open-api-client-5BVEGHDF.js");
3197
+ const { callOpenApiOperation } = await import("./open-api-client-VAD3QXOQ.js");
3198
3198
  return callOpenApiOperation({
3199
3199
  operationId: cliCredentialBootstrapOperationId,
3200
3200
  params,
@@ -3221,7 +3221,7 @@ async function accessTokenForOpenApi(input) {
3221
3221
  ...input.org ? { org: input.org } : {}
3222
3222
  });
3223
3223
  if (credential?.token) return credential.token;
3224
- const { ensureOpenApiCredentials } = await import("./auth-4MJQCPHH.js");
3224
+ const { ensureOpenApiCredentials } = await import("./auth-TWJRRMSG.js");
3225
3225
  const session = await ensureOpenApiCredentials({
3226
3226
  mcpUrl: input.mcpUrl,
3227
3227
  apiUrl: input.apiUrl,
@@ -3309,4 +3309,4 @@ export {
3309
3309
  resolvePackagePublishTarget,
3310
3310
  storedApiTokenAfterLoginNotice
3311
3311
  };
3312
- //# sourceMappingURL=chunk-I243ZMYI.js.map
3312
+ //# sourceMappingURL=chunk-XXV4UVM2.js.map