@kodycodes/cli 3.22.6 → 3.22.8

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 (178) hide show
  1. package/README.md +8 -7
  2. package/dist/api-token-store.d.ts +0 -2
  3. package/dist/api-token.d.ts +5 -20
  4. package/dist/{auth-W5RWT6IP.js → auth-4N35PHF7.js} +8 -8
  5. package/dist/auth-bootstrap.d.ts +3 -18
  6. package/dist/bin.js +13 -14
  7. package/dist/bin.js.map +1 -1
  8. package/dist/capability-proxy.d.ts +5 -35
  9. package/dist/{chunk-FHLTB67D.js → chunk-2Y4VVWIL.js} +3 -3
  10. package/dist/chunk-2Y4VVWIL.js.map +6 -0
  11. package/dist/{chunk-K2G6GYKA.js → chunk-62N7DN7L.js} +1 -1
  12. package/dist/{chunk-K2G6GYKA.js.map → chunk-62N7DN7L.js.map} +1 -1
  13. package/dist/{chunk-4LAKIU3Y.js → chunk-C7GRF5V5.js} +2 -2
  14. package/dist/{chunk-ZUROJOJ2.js → chunk-CA7AAWGW.js} +3 -5
  15. package/dist/chunk-CA7AAWGW.js.map +6 -0
  16. package/dist/{chunk-XV6D6HSG.js → chunk-DH5RPHG6.js} +1 -2
  17. package/dist/chunk-DH5RPHG6.js.map +6 -0
  18. package/dist/{chunk-G7GRULRW.js → chunk-DHCDUGD2.js} +2 -2
  19. package/dist/{chunk-YQRMKXCC.js → chunk-DJ6XKQEC.js} +4 -6
  20. package/dist/chunk-DJ6XKQEC.js.map +6 -0
  21. package/dist/{chunk-SLNAWWQK.js → chunk-E4R3Y6MM.js} +1 -1
  22. package/dist/{chunk-SLNAWWQK.js.map → chunk-E4R3Y6MM.js.map} +1 -1
  23. package/dist/{chunk-DEI4SMFK.js → chunk-F34Q7D5C.js} +4 -8
  24. package/dist/{chunk-DEI4SMFK.js.map → chunk-F34Q7D5C.js.map} +1 -1
  25. package/dist/{chunk-M7PRSUCC.js → chunk-IOG54R4P.js} +1 -1
  26. package/dist/{chunk-M7PRSUCC.js.map → chunk-IOG54R4P.js.map} +1 -1
  27. package/dist/{chunk-76OYRT4A.js → chunk-LQNGII7U.js} +1 -1
  28. package/dist/{chunk-76OYRT4A.js.map → chunk-LQNGII7U.js.map} +1 -1
  29. package/dist/{chunk-RD6ZJU2N.js → chunk-LTSHQAUL.js} +5 -5
  30. package/dist/{chunk-2XPH7L2P.js → chunk-MIT3TUWB.js} +1 -1
  31. package/dist/{chunk-2XPH7L2P.js.map → chunk-MIT3TUWB.js.map} +1 -1
  32. package/dist/{chunk-VP2O3HLT.js → chunk-NKH2L5RA.js} +17 -1
  33. package/dist/chunk-NKH2L5RA.js.map +6 -0
  34. package/dist/{chunk-CWQVWIAQ.js → chunk-NZ7JT42A.js} +2 -2
  35. package/dist/{chunk-CWQVWIAQ.js.map → chunk-NZ7JT42A.js.map} +1 -1
  36. package/dist/{chunk-FPYLVYHC.js → chunk-OKIL5IUB.js} +58 -42
  37. package/dist/chunk-OKIL5IUB.js.map +6 -0
  38. package/dist/{chunk-2FU3OO7F.js → chunk-PQPGW43A.js} +5 -19
  39. package/dist/chunk-PQPGW43A.js.map +6 -0
  40. package/dist/{chunk-NPQ2XAK5.js → chunk-QL776E77.js} +3 -3
  41. package/dist/chunk-QL776E77.js.map +6 -0
  42. package/dist/{chunk-D6XME4RY.js → chunk-RE7LNPRO.js} +2 -5
  43. package/dist/{chunk-D6XME4RY.js.map → chunk-RE7LNPRO.js.map} +1 -1
  44. package/dist/{chunk-ZXNYKFSN.js → chunk-SX3MQHCJ.js} +5 -5
  45. package/dist/{chunk-ZXNYKFSN.js.map → chunk-SX3MQHCJ.js.map} +1 -1
  46. package/dist/{chunk-OXBMXZ6S.js → chunk-T3V6WFHI.js} +2 -2
  47. package/dist/{chunk-5E2HSGBZ.js → chunk-UQIY7RY4.js} +4 -5
  48. package/dist/chunk-UQIY7RY4.js.map +6 -0
  49. package/dist/{chunk-SLBG76VX.js → chunk-VA5KCKCC.js} +9 -9
  50. package/dist/{chunk-SLBG76VX.js.map → chunk-VA5KCKCC.js.map} +1 -1
  51. package/dist/{chunk-DBNNDB7I.js → chunk-WAZTX2ED.js} +9 -9
  52. package/dist/{chunk-DBNNDB7I.js.map → chunk-WAZTX2ED.js.map} +1 -1
  53. package/dist/{chunk-RPOPNWYP.js → chunk-XAXNNOEC.js} +122 -71
  54. package/dist/chunk-XAXNNOEC.js.map +6 -0
  55. package/dist/{chunk-OKM2QMOV.js → chunk-ZU5QBMXR.js} +6 -11
  56. package/dist/{chunk-OKM2QMOV.js.map → chunk-ZU5QBMXR.js.map} +1 -1
  57. package/dist/cli.d.ts +10 -1
  58. package/dist/cli.js +15 -14
  59. package/dist/{commands-MZMI3MEY.js → commands-QL2SLSIL.js} +23 -37
  60. package/dist/commands-QL2SLSIL.js.map +6 -0
  61. package/dist/credential-call-map.d.ts +0 -6
  62. package/dist/credential-dir.d.ts +0 -2
  63. package/dist/credentialed-fetch-scan.d.ts +2 -2
  64. package/dist/defaults.d.ts +5 -5
  65. package/dist/dev/dev-assets.d.ts +0 -2
  66. package/dist/dev/dev-bundler.d.ts +0 -5
  67. package/dist/dev/dev-events.d.ts +2 -2
  68. package/dist/dev/dev-port.d.ts +1 -1
  69. package/dist/dev/error-page.d.ts +2 -4
  70. package/dist/dev/live-reload.d.ts +2 -1
  71. package/dist/dev/workerd-process.d.ts +0 -1
  72. package/dist/{dev-command-3KA52CKG.js → dev-command-P73A4I3C.js} +36 -20
  73. package/dist/dev-command-P73A4I3C.js.map +6 -0
  74. package/dist/dev-command.d.ts +0 -9
  75. package/dist/execution-context/auto-update.d.ts +1 -66
  76. package/dist/execution-context/client.d.ts +2 -3
  77. package/dist/execution-context/commands.d.ts +0 -11
  78. package/dist/execution-context/daemon.d.ts +1 -6
  79. package/dist/execution-context/fs-access.d.ts +5 -4
  80. package/dist/execution-context/host-commands.d.ts +3 -47
  81. package/dist/execution-context/host-fs-bridge.d.ts +0 -2
  82. package/dist/execution-context/keystore.d.ts +0 -1
  83. package/dist/execution-context/runner-lock.d.ts +0 -8
  84. package/dist/execution-context/service-commands.d.ts +17 -8
  85. package/dist/execution-context/service.d.ts +3 -13
  86. package/dist/execution-context/windows-command.d.ts +0 -2
  87. package/dist/fetch-body-secret-resolution.d.ts +0 -1
  88. package/dist/{git-credential-BT363OJQ.js → git-credential-L5AR3JRT.js} +9 -9
  89. package/dist/help.d.ts +0 -6
  90. package/dist/host-catalog.d.ts +2 -5
  91. package/dist/host-config.d.ts +2 -3
  92. package/dist/{install-NTS5BOCR.js → install-24DK5RBH.js} +3 -5
  93. package/dist/{install-NTS5BOCR.js.map → install-24DK5RBH.js.map} +1 -1
  94. package/dist/install-hosts.d.ts +2 -1
  95. package/dist/install.d.ts +0 -5
  96. package/dist/invoke-passthrough.d.ts +0 -1
  97. package/dist/local-egress.d.ts +2 -1
  98. package/dist/{local-execute-BI5253MQ.js → local-execute-WDKUY2JK.js} +14 -14
  99. package/dist/{local-package-graph-WFDNSNOJ.js → local-package-graph-3TRAIUBT.js} +6 -18
  100. package/dist/local-package-graph.d.ts +0 -34
  101. package/dist/{local-package-run-RRELUZEM.js → local-package-run-N3O2SD3L.js} +15 -15
  102. package/dist/local-runtime-bridge.d.ts +2 -5
  103. package/dist/local-runtime-source.d.ts +0 -2
  104. package/dist/login-callback-page.d.ts +3 -2
  105. package/dist/mock/load-package-mocks.d.ts +0 -1
  106. package/dist/mock/mock-fetch-gateway.d.ts +0 -3
  107. package/dist/mock/mock-server.d.ts +0 -1
  108. package/dist/mock/mock-storage.d.ts +2 -2
  109. package/dist/mock/mock-supported.d.ts +2 -1
  110. package/dist/{mock-dep-resolve-G7TA4CJB.js → mock-dep-resolve-IVZOW4QE.js} +9 -9
  111. package/dist/{mock-fetch-gateway-QNUFNYAH.js → mock-fetch-gateway-VAGQFWVN.js} +5 -9
  112. package/dist/{mock-local-deps-K2NARQ7F.js → mock-local-deps-AUAWEK46.js} +9 -13
  113. package/dist/mock-local-deps.d.ts +0 -4
  114. package/dist/{mock-server-2FMSQMBT.js → mock-server-7P53AZUZ.js} +6 -8
  115. package/dist/node-engine.d.ts +0 -2
  116. package/dist/oauth-browser.d.ts +0 -3
  117. package/dist/{open-api-client-DJL2PE7P.js → open-api-client-QVDDK27F.js} +7 -15
  118. package/dist/open-api-client.d.ts +0 -6
  119. package/dist/{org-SGFIXD42.js → org-NWSSC7L7.js} +3 -10
  120. package/dist/org-NWSSC7L7.js.map +6 -0
  121. package/dist/org.d.ts +0 -2
  122. package/dist/package-collaborators.d.ts +2 -4
  123. package/dist/package-local-runtime-source.d.ts +2 -2
  124. package/dist/{package-manifest-KCLPIMOZ.js → package-manifest-AEBPXNCJ.js} +3 -3
  125. package/dist/package-manifest.d.ts +7 -6
  126. package/dist/process-info.d.ts +0 -2
  127. package/dist/publish-exit.d.ts +0 -11
  128. package/dist/{remote-execute-KUSUI6UT.js → remote-execute-PBSB32YY.js} +8 -8
  129. package/dist/{run-executor-4TY5KNQQ.js → run-executor-TSI7J56V.js} +16 -16
  130. package/dist/{setup-git-KBH7GA6E.js → setup-git-S57U4NT5.js} +8 -38
  131. package/dist/setup-git.d.ts +5 -59
  132. package/dist/{skill-IY263IXV.js → skill-QM3N6H55.js} +3 -3
  133. package/dist/skill-refresh.js +2 -2
  134. package/dist/{store-ZPBJTYRI.js → store-4G2J5DRZ.js} +3 -9
  135. package/dist/store.d.ts +2 -6
  136. package/dist/{structured-error-QYNRZZKC.js → structured-error-KS24XUSZ.js} +2 -4
  137. package/dist/structured-error.d.ts +2 -2
  138. package/dist/{whoami-SGE7VKGY.js → whoami-RUMTWBZL.js} +6 -7
  139. package/dist/{whoami-SGE7VKGY.js.map → whoami-RUMTWBZL.js.map} +1 -1
  140. package/dist/whoami.d.ts +0 -11
  141. package/dist/workerd-binary.d.ts +2 -3
  142. package/package.json +1 -1
  143. package/dist/chunk-2FU3OO7F.js.map +0 -6
  144. package/dist/chunk-5E2HSGBZ.js.map +0 -6
  145. package/dist/chunk-7PRJ36I5.js +0 -23
  146. package/dist/chunk-7PRJ36I5.js.map +0 -6
  147. package/dist/chunk-FHLTB67D.js.map +0 -6
  148. package/dist/chunk-FPYLVYHC.js.map +0 -6
  149. package/dist/chunk-NPQ2XAK5.js.map +0 -6
  150. package/dist/chunk-RPOPNWYP.js.map +0 -6
  151. package/dist/chunk-VP2O3HLT.js.map +0 -6
  152. package/dist/chunk-XV6D6HSG.js.map +0 -6
  153. package/dist/chunk-YQRMKXCC.js.map +0 -6
  154. package/dist/chunk-ZUROJOJ2.js.map +0 -6
  155. package/dist/commands-MZMI3MEY.js.map +0 -6
  156. package/dist/dev-command-3KA52CKG.js.map +0 -6
  157. package/dist/org-SGFIXD42.js.map +0 -6
  158. /package/dist/{auth-W5RWT6IP.js.map → auth-4N35PHF7.js.map} +0 -0
  159. /package/dist/{chunk-4LAKIU3Y.js.map → chunk-C7GRF5V5.js.map} +0 -0
  160. /package/dist/{chunk-G7GRULRW.js.map → chunk-DHCDUGD2.js.map} +0 -0
  161. /package/dist/{chunk-RD6ZJU2N.js.map → chunk-LTSHQAUL.js.map} +0 -0
  162. /package/dist/{chunk-OXBMXZ6S.js.map → chunk-T3V6WFHI.js.map} +0 -0
  163. /package/dist/{git-credential-BT363OJQ.js.map → git-credential-L5AR3JRT.js.map} +0 -0
  164. /package/dist/{local-execute-BI5253MQ.js.map → local-execute-WDKUY2JK.js.map} +0 -0
  165. /package/dist/{local-package-graph-WFDNSNOJ.js.map → local-package-graph-3TRAIUBT.js.map} +0 -0
  166. /package/dist/{local-package-run-RRELUZEM.js.map → local-package-run-N3O2SD3L.js.map} +0 -0
  167. /package/dist/{mock-dep-resolve-G7TA4CJB.js.map → mock-dep-resolve-IVZOW4QE.js.map} +0 -0
  168. /package/dist/{mock-fetch-gateway-QNUFNYAH.js.map → mock-fetch-gateway-VAGQFWVN.js.map} +0 -0
  169. /package/dist/{mock-local-deps-K2NARQ7F.js.map → mock-local-deps-AUAWEK46.js.map} +0 -0
  170. /package/dist/{mock-server-2FMSQMBT.js.map → mock-server-7P53AZUZ.js.map} +0 -0
  171. /package/dist/{open-api-client-DJL2PE7P.js.map → open-api-client-QVDDK27F.js.map} +0 -0
  172. /package/dist/{package-manifest-KCLPIMOZ.js.map → package-manifest-AEBPXNCJ.js.map} +0 -0
  173. /package/dist/{remote-execute-KUSUI6UT.js.map → remote-execute-PBSB32YY.js.map} +0 -0
  174. /package/dist/{run-executor-4TY5KNQQ.js.map → run-executor-TSI7J56V.js.map} +0 -0
  175. /package/dist/{setup-git-KBH7GA6E.js.map → setup-git-S57U4NT5.js.map} +0 -0
  176. /package/dist/{skill-IY263IXV.js.map → skill-QM3N6H55.js.map} +0 -0
  177. /package/dist/{store-ZPBJTYRI.js.map → store-4G2J5DRZ.js.map} +0 -0
  178. /package/dist/{structured-error-QYNRZZKC.js.map → structured-error-KS24XUSZ.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { type UpsertServerFn } from './add-mcp-install.js';
2
2
  import { type HostId } from './host-catalog.js';
3
3
  import { type HeadlessLoginReason } from './login-notice.js';
4
- export type ApplyStatus = 'wrote' | 'unchanged' | 'manual' | 'command';
4
+ type ApplyStatus = 'wrote' | 'unchanged' | 'manual' | 'command';
5
5
  export type ApplyResult = {
6
6
  id: HostId;
7
7
  label: string;
@@ -32,3 +32,4 @@ export declare function applyHost(input: {
32
32
  mcpUrl: string;
33
33
  runtime: InstallRuntime;
34
34
  }): Promise<ApplyResult>;
35
+ export {};
package/dist/install.d.ts CHANGED
@@ -25,8 +25,3 @@ export declare function runInstall(options: InstallOptions, io?: InstallIo): Pro
25
25
  code: number;
26
26
  results: Array<ApplyResult>;
27
27
  }>;
28
- export declare function noRunningAgentsMessage(mcpUrl: string): string;
29
- export declare function formatInstallReport(input: {
30
- mcpUrl: string;
31
- results: Array<ApplyResult>;
32
- }): string;
@@ -4,7 +4,6 @@
4
4
  * sends the result as plain `code`; hosted execute has no `invoke` field.
5
5
  */
6
6
  export declare function parseExecuteInvokeSpecifier(raw: string): string;
7
- export declare function buildExecuteInvokePassthroughSource(specifier: string): string;
8
7
  export declare function resolveExecuteInvokeCode(invoke: string): string;
9
8
  /**
10
9
  * True for published-package invoke forms (`kody:@scope/pkg/export`,
@@ -4,7 +4,7 @@
4
4
  * the policy does not allow with a plain explanation instead of workerd's
5
5
  * opaque `internal error; reference = …`.
6
6
  */
7
- export type LocalEgressMode = 'public' | 'public-and-lan' | 'allowlist' | 'none';
7
+ type LocalEgressMode = 'public' | 'public-and-lan' | 'allowlist' | 'none';
8
8
  export type LocalEgressPolicy = {
9
9
  mode: LocalEgressMode;
10
10
  hosts?: Array<string>;
@@ -26,3 +26,4 @@ export declare function localExecuteEgressPolicy(allowPrivateNetwork: boolean |
26
26
  /** workerd network classes the `internet` service may reach under this policy. */
27
27
  export declare function egressNeedsPrivateNetwork(policy: LocalEgressPolicy): boolean;
28
28
  export declare function createEgressGateSource(): string;
29
+ export {};
@@ -4,28 +4,28 @@ import {
4
4
  localExecutePackageGraphResolveStatus,
5
5
  runLocalExecute,
6
6
  savedPackageImportLocalResolveStatus
7
- } from "./chunk-SLBG76VX.js";
8
- import "./chunk-OXBMXZ6S.js";
9
- import "./chunk-NPQ2XAK5.js";
7
+ } from "./chunk-VA5KCKCC.js";
8
+ import "./chunk-T3V6WFHI.js";
9
+ import "./chunk-QL776E77.js";
10
10
  import "./chunk-YBO6HUV3.js";
11
11
  import {
12
12
  hasSavedPackageImports,
13
13
  listSavedPackageImports,
14
14
  localPackageGraphPlatformIssueUrl
15
- } from "./chunk-OKM2QMOV.js";
16
- import "./chunk-YQRMKXCC.js";
17
- import "./chunk-76OYRT4A.js";
18
- import "./chunk-XV6D6HSG.js";
15
+ } from "./chunk-ZU5QBMXR.js";
16
+ import "./chunk-DJ6XKQEC.js";
17
+ import "./chunk-LQNGII7U.js";
18
+ import "./chunk-DH5RPHG6.js";
19
19
  import "./chunk-MHN2FS4K.js";
20
- import "./chunk-2XPH7L2P.js";
20
+ import "./chunk-MIT3TUWB.js";
21
21
  import "./chunk-CASGRYOF.js";
22
22
  import "./chunk-46IJPEID.js";
23
- import "./chunk-FPYLVYHC.js";
24
- import "./chunk-FHLTB67D.js";
25
- import "./chunk-K2G6GYKA.js";
23
+ import "./chunk-OKIL5IUB.js";
24
+ import "./chunk-2Y4VVWIL.js";
25
+ import "./chunk-62N7DN7L.js";
26
26
  import "./chunk-NHRYNRXG.js";
27
- import "./chunk-D6XME4RY.js";
28
- import "./chunk-VP2O3HLT.js";
27
+ import "./chunk-RE7LNPRO.js";
28
+ import "./chunk-NKH2L5RA.js";
29
29
  import "./chunk-UW6AWLXX.js";
30
30
  export {
31
31
  buildLocalExecuteResult,
@@ -36,4 +36,4 @@ export {
36
36
  runLocalExecute,
37
37
  savedPackageImportLocalResolveStatus
38
38
  };
39
- //# sourceMappingURL=local-execute-BI5253MQ.js.map
39
+ //# sourceMappingURL=local-execute-WDKUY2JK.js.map
@@ -2,19 +2,14 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  LocalPackageGraphError,
4
4
  absolutizeWorkerdPackageImports,
5
- backfillLocalExecuteRuntimeShimSharedExports,
6
5
  createPackageBindingsLiteral,
7
- decodePathKey,
8
6
  embedMergedBindingsInPrimaryShim,
9
7
  encodePathKey,
10
8
  fetchLocalPackageGraph,
11
- flatAliasForBareKodyBuiltin,
12
9
  hasLiteralDynamicSavedPackageImports,
13
10
  hasSavedPackageImports,
14
- isRootPackageRuntimeFacadeModuleName,
15
11
  listSavedPackageImports,
16
12
  localExecuteGatewayFetchShimModuleName,
17
- localExecutePackageCheckoutDocsUrl,
18
13
  localPackageGraphPath,
19
14
  localPackageGraphPlatformIssueUrl,
20
15
  mergePackageGraphBindings,
@@ -23,36 +18,30 @@ import {
23
18
  packageGraphInlineCodePreferImportsChars,
24
19
  packageRuntimeFacadeImportSpecifier,
25
20
  packageRuntimeModulePrefix,
26
- parsePackageRuntimeModulePathPackageId,
27
21
  resolveLocalPackageGraph,
28
22
  resolvePackageRuntimeFacadeImportSpecifier,
29
23
  rewriteBareKodyBuiltinImports,
30
24
  rewriteLocalModulesToPackageFacades,
31
25
  synthesizePackageGraphEntry,
32
26
  writePackageModuleFiles
33
- } from "./chunk-OKM2QMOV.js";
34
- import "./chunk-FPYLVYHC.js";
35
- import "./chunk-FHLTB67D.js";
27
+ } from "./chunk-ZU5QBMXR.js";
28
+ import "./chunk-OKIL5IUB.js";
29
+ import "./chunk-2Y4VVWIL.js";
36
30
  import "./chunk-NHRYNRXG.js";
37
- import "./chunk-D6XME4RY.js";
38
- import "./chunk-VP2O3HLT.js";
31
+ import "./chunk-RE7LNPRO.js";
32
+ import "./chunk-NKH2L5RA.js";
39
33
  import "./chunk-UW6AWLXX.js";
40
34
  export {
41
35
  LocalPackageGraphError,
42
36
  absolutizeWorkerdPackageImports,
43
- backfillLocalExecuteRuntimeShimSharedExports,
44
37
  createPackageBindingsLiteral,
45
- decodePathKey,
46
38
  embedMergedBindingsInPrimaryShim,
47
39
  encodePathKey,
48
40
  fetchLocalPackageGraph,
49
- flatAliasForBareKodyBuiltin,
50
41
  hasLiteralDynamicSavedPackageImports,
51
42
  hasSavedPackageImports,
52
- isRootPackageRuntimeFacadeModuleName,
53
43
  listSavedPackageImports,
54
44
  localExecuteGatewayFetchShimModuleName,
55
- localExecutePackageCheckoutDocsUrl,
56
45
  localPackageGraphPath,
57
46
  localPackageGraphPlatformIssueUrl,
58
47
  mergePackageGraphBindings,
@@ -61,7 +50,6 @@ export {
61
50
  packageGraphInlineCodePreferImportsChars,
62
51
  packageRuntimeFacadeImportSpecifier,
63
52
  packageRuntimeModulePrefix,
64
- parsePackageRuntimeModulePathPackageId,
65
53
  resolveLocalPackageGraph,
66
54
  resolvePackageRuntimeFacadeImportSpecifier,
67
55
  rewriteBareKodyBuiltinImports,
@@ -69,4 +57,4 @@ export {
69
57
  synthesizePackageGraphEntry,
70
58
  writePackageModuleFiles
71
59
  };
72
- //# sourceMappingURL=local-package-graph-WFDNSNOJ.js.map
60
+ //# sourceMappingURL=local-package-graph-3TRAIUBT.js.map
@@ -44,21 +44,11 @@ export type LocalPackageGraph = {
44
44
  };
45
45
  /** Prefix for per-package runtime facade modules in a package-graph response. */
46
46
  export declare const packageRuntimeModulePrefix = ".__kody_virtual__/package-runtime";
47
- /**
48
- * Hex-decode a path key from a package-runtime module file name (worker
49
- * `decodePathKey` port). Returns null when the value is not valid hex.
50
- */
51
- export declare function decodePathKey(value: string): string | null;
52
47
  /**
53
48
  * Hex-encode a package id for a package-runtime module path segment (worker
54
49
  * `encodePathKey` port).
55
50
  */
56
51
  export declare function encodePathKey(value: string): string;
57
- /**
58
- * Read the package id out of a package-runtime module path
59
- * (`.__kody_virtual__/package-runtime/<hex>.js`, optionally nested).
60
- */
61
- export declare function parsePackageRuntimeModulePathPackageId(modulePath: string): string | null;
62
52
  /**
63
53
  * Absolute workerd import specifier for a package-runtime facade so path-like
64
54
  * `kody:@…` modules do not path-join the facade under themselves.
@@ -84,16 +74,6 @@ export declare function hasSavedPackageImports(code: string): Promise<boolean>;
84
74
  * `import(specifier)` cannot be bound into workerd ahead of time.
85
75
  */
86
76
  export declare function hasLiteralDynamicSavedPackageImports(code: string): Promise<boolean>;
87
- /**
88
- * Flat workerd module name for a bare `kody:` builtin (not `kody:@…`).
89
- * Path-like package modules path-join bare `kody:runtime` into
90
- * `kody:@scope/pkg/kody:runtime`. Rewriting to this registered name is step
91
- * one; {@link absolutizeWorkerdPackageImports} then prefixes `/` on the
92
- * import reference so workerd does not still join `.__kody_runtime__.js`
93
- * onto the importer (`kody:@scope/pkg/.__kody_runtime__.js`). Registered
94
- * module names must stay without a leading `/` — workerd rejects those.
95
- */
96
- export declare function flatAliasForBareKodyBuiltin(specifier: string): string | null;
97
77
  /**
98
78
  * True when a specifier inside a path-like workerd module (`kody:@…/export`)
99
79
  * would be path-joined onto the importer unless written with a leading `/`.
@@ -125,8 +105,6 @@ export declare class LocalPackageGraphError extends Error {
125
105
  sent?: RequestSentStatus;
126
106
  });
127
107
  }
128
- /** Docs for running entries from a package checkout (kody#4067). */
129
- export declare const localExecutePackageCheckoutDocsUrl = "https://kody.codes/docs/local-execute#running-from-a-package-checkout";
130
108
  /**
131
109
  * `--json` body for a package-graph failure. Package-graph runs before
132
110
  * workerd starts, so the module never ran; agents get a stable `code`
@@ -148,16 +126,6 @@ export declare function packageGraphErrorToolResult(error: LocalPackageGraphErro
148
126
  */
149
127
  /** Exact workerd module name for the origin-supplied gateway-fetch shim. */
150
128
  export declare const localExecuteGatewayFetchShimModuleName = ".__kody_virtual__/runtime.js";
151
- /**
152
- * Write package-graph modules into a workerd temp dir and return capnp entries.
153
- * Shared by execute --local, local package runs, and kody dev app bundling.
154
- */
155
- /**
156
- * Origin package-graph shims older than the hasScope shared-export floor omit
157
- * those bindings while facades still re-export them. Backfill so local workerd
158
- * can link until production serves the fixed shim.
159
- */
160
- export declare function backfillLocalExecuteRuntimeShimSharedExports(esModule: string): string;
161
129
  export declare function writePackageModuleFiles(workDir: string, graph: LocalPackageGraph, writeFile: (path: string, data: string) => Promise<void>, joinPath: (...parts: string[]) => string): Promise<Array<{
162
130
  name: string;
163
131
  file: string;
@@ -201,8 +169,6 @@ export declare function resolveLocalPackageGraph(input: {
201
169
  * minted for published deps.
202
170
  */
203
171
  export declare function mergePackageGraphBindings(base: LocalPackageGraph, probed: LocalPackageGraph): LocalPackageGraph;
204
- /** True for `.__kody_virtual__/package-runtime/<hex>.js` (not nested under a bundle). */
205
- export declare function isRootPackageRuntimeFacadeModuleName(moduleName: string): boolean;
206
172
  /**
207
173
  * Package-runtime facades close over `__kodyPackageBinding` from the primary
208
174
  * shim. After probing extra local packages, rewrite that shim's binding table
@@ -4,25 +4,25 @@ import {
4
4
  packageIdMatchesLocalPackage,
5
5
  resolveLocalPackageBinding,
6
6
  runLocalPackageModule
7
- } from "./chunk-DBNNDB7I.js";
8
- import "./chunk-ZUROJOJ2.js";
9
- import "./chunk-G7GRULRW.js";
10
- import "./chunk-NPQ2XAK5.js";
7
+ } from "./chunk-WAZTX2ED.js";
8
+ import "./chunk-CA7AAWGW.js";
9
+ import "./chunk-DHCDUGD2.js";
10
+ import "./chunk-QL776E77.js";
11
11
  import "./chunk-YBO6HUV3.js";
12
- import "./chunk-OKM2QMOV.js";
13
- import "./chunk-YQRMKXCC.js";
14
- import "./chunk-76OYRT4A.js";
15
- import "./chunk-XV6D6HSG.js";
12
+ import "./chunk-ZU5QBMXR.js";
13
+ import "./chunk-DJ6XKQEC.js";
14
+ import "./chunk-LQNGII7U.js";
15
+ import "./chunk-DH5RPHG6.js";
16
16
  import "./chunk-MHN2FS4K.js";
17
17
  import "./chunk-CASGRYOF.js";
18
- import "./chunk-DEI4SMFK.js";
18
+ import "./chunk-F34Q7D5C.js";
19
19
  import "./chunk-46IJPEID.js";
20
- import "./chunk-FPYLVYHC.js";
21
- import "./chunk-FHLTB67D.js";
22
- import "./chunk-K2G6GYKA.js";
20
+ import "./chunk-OKIL5IUB.js";
21
+ import "./chunk-2Y4VVWIL.js";
22
+ import "./chunk-62N7DN7L.js";
23
23
  import "./chunk-NHRYNRXG.js";
24
- import "./chunk-D6XME4RY.js";
25
- import "./chunk-VP2O3HLT.js";
24
+ import "./chunk-RE7LNPRO.js";
25
+ import "./chunk-NKH2L5RA.js";
26
26
  import "./chunk-UW6AWLXX.js";
27
27
  export {
28
28
  buildLocalPackageContext,
@@ -30,4 +30,4 @@ export {
30
30
  resolveLocalPackageBinding,
31
31
  runLocalPackageModule
32
32
  };
33
- //# sourceMappingURL=local-package-run-RRELUZEM.js.map
33
+ //# sourceMappingURL=local-package-run-N3O2SD3L.js.map
@@ -5,14 +5,12 @@
5
5
  * - `POST /gateway-fetch` — streaming gateway-fetch hop (raw body in/out)
6
6
  */
7
7
  import { type IncomingMessage, type ServerResponse } from 'node:http';
8
- export declare const localBridgeCallPath = "/call";
9
8
  export declare const localBridgeGatewayFetchPath = "/gateway-fetch";
10
- export declare const localBridgeHostFsPath = "/fs";
11
9
  export type LocalRuntimeBridge = {
12
10
  port: number;
13
11
  close: () => Promise<void>;
14
12
  };
15
- export type LocalRuntimeBridgeCall = {
13
+ type LocalRuntimeBridgeCall = {
16
14
  path: Array<string>;
17
15
  args: Array<unknown>;
18
16
  };
@@ -32,8 +30,7 @@ export type LocalRuntimeBridgeInput = {
32
30
  forwardHostFs?: (body: unknown) => Promise<unknown>;
33
31
  };
34
32
  export declare function startLocalRuntimeBridge(input: LocalRuntimeBridgeInput): Promise<LocalRuntimeBridge>;
35
- export declare function parseBridgeCall(body: string): LocalRuntimeBridgeCall;
36
- export declare function readBodyText(stream: IncomingMessage): Promise<string>;
37
33
  export declare function readBodyBuffer(stream: IncomingMessage): Promise<Buffer>;
38
34
  /** Write a Web `Response` onto a Node `ServerResponse` (streams the body). */
39
35
  export declare function writeWebResponse(response: ServerResponse, web: Response): Promise<void>;
36
+ export {};
@@ -13,8 +13,6 @@
13
13
  * `__kodyRunInRuntime`.
14
14
  */
15
15
  import { type LocalEgressPolicy } from './local-egress.js';
16
- export declare const localExecuteCompatibilityDate = "2026-04-16";
17
- export declare const localExecuteCompatibilityFlags: readonly ["nodejs_compat"];
18
16
  export declare const localWorkerModuleNames: {
19
17
  readonly entry: "__kody_local_entry.js";
20
18
  readonly user: "main.js";
@@ -4,13 +4,13 @@ export type LoginCallbackAccount = {
4
4
  email?: string;
5
5
  username?: string;
6
6
  };
7
- export type LoginCallbackSuccess = {
7
+ type LoginCallbackSuccess = {
8
8
  kind: 'success';
9
9
  org?: string;
10
10
  account?: LoginCallbackAccount;
11
11
  };
12
12
  export type LoginCallbackErrorKind = 'denied' | 'state_mismatch' | 'expired' | 'failed' | 'save_failed';
13
- export type LoginCallbackError = {
13
+ type LoginCallbackError = {
14
14
  kind: 'error';
15
15
  error: LoginCallbackErrorKind;
16
16
  };
@@ -19,3 +19,4 @@ export type LoginCallbackPage = LoginCallbackSuccess | LoginCallbackError;
19
19
  export declare function renderLoginCallbackPage(page: LoginCallbackPage): string;
20
20
  /** Map OAuth `error` query values to a designed error state. */
21
21
  export declare function loginCallbackErrorFromOAuthError(error: string): LoginCallbackErrorKind;
22
+ export {};
@@ -11,7 +11,6 @@ export type LoadedPackageMocks = {
11
11
  path: string;
12
12
  handlers: Array<unknown>;
13
13
  };
14
- export declare function resolvePackageMocksPath(packageRoot: string): Promise<string | null>;
15
14
  /**
16
15
  * Bundle and evaluate `.kody/mocks.ts`. Expects `export const handlers = […]`
17
16
  * (MSW `http.*` handlers) or a default export of that array.
@@ -61,9 +61,6 @@ export declare function dispatchMockGatewayFetch(input: {
61
61
  msw?: EnsureMswInput;
62
62
  }): Promise<MockGatewayFetchResult>;
63
63
  export declare function hostMatchesPassthrough(hostname: string, hosts: ReadonlyArray<string>): boolean;
64
- /** Refuse private/local hosts unless `--allow-private-network` (clear error). */
65
- export declare function assertOutboundAllowed(url: URL, allowPrivateNetwork: boolean): void;
66
- export declare function isPrivateOrLocalHost(hostname: string): boolean;
67
64
  export declare function unmockedRequestError(method: string, url: string): StructuredCliError;
68
65
  /** Single MSW handler line for pasting into an existing `handlers` array. */
69
66
  export declare function buildHandlerLine(method: string, url: string): string;
@@ -22,7 +22,6 @@ export type MockServer = {
22
22
  close: () => Promise<void>;
23
23
  state: () => MockSessionState;
24
24
  };
25
- export declare function isMockApiToken(token: string): boolean;
26
25
  /** Issue a bearer the mock accepts (never a real kody_at_…). */
27
26
  export declare function mintMockApiToken(sessionId: string): string;
28
27
  export declare function startMockServer(options?: MockServerOptions): Promise<MockServer>;
@@ -2,7 +2,7 @@
2
2
  * Scratch storage for `--target mock`, keyed by the active content-addressed
3
3
  * session directory under the user cache. Reset with `--reset-storage`.
4
4
  */
5
- export type MockStorageBucket = {
5
+ type MockStorageBucket = {
6
6
  /** Arbitrary JSON-serializable rows keyed by string id. */
7
7
  rows: Record<string, unknown>;
8
8
  };
@@ -32,7 +32,6 @@ export type MockSessionState = {
32
32
  description: string;
33
33
  }>;
34
34
  };
35
- export declare function mockSessionRoot(sessionId: string, env?: NodeJS.ProcessEnv): string;
36
35
  export declare function defaultMockSessionId(env?: NodeJS.ProcessEnv): string;
37
36
  export declare function loadMockSession(input: {
38
37
  sessionId?: string;
@@ -73,3 +72,4 @@ export declare function packageStorageSql(state: MockSessionState, packageId: st
73
72
  };
74
73
  /** True when SQL has a RETURNING keyword outside string/blob literals. */
75
74
  export declare function sqlHasReturningClause(query: string): boolean;
75
+ export {};
@@ -9,8 +9,9 @@
9
9
  /** Open API operationIds the mock answers. */
10
10
  export declare const mockOpenApiOperationIds: readonly ["search", "searchTool", "metaGetCurrentUser", "usageGet"];
11
11
  /** CapabilityProxy `path` joins (dot form) the mock answers under kody.*. */
12
- export declare const mockCapabilityPaths: readonly ["kody.metaGetCurrentUser", "kody.search", "kody.execute", "kody.usageGet", "kody.__mockPackageStorageGet", "kody.__mockPackageStorageSet", "kody.__mockPackageStorageDelete", "kody.__mockPackageStorageList", "kody.__mockPackageStorageSql", "kody.packageStorageGet", "kody.packageStorageSet", "kody.packageStorageDelete", "kody.packageStorageList", "kody.packageStorageSql", "kody.credentialClientOpen", "kody.credentialClientOpenAll", "kody.credentialClientCheck", "kody.credentialClientRefresh", "kody.authenticatedFetch", "kody.gatewayFetch", "kody.gatewayFetchStream", "kody.adminUserList"];
12
+ declare const mockCapabilityPaths: readonly ["kody.metaGetCurrentUser", "kody.search", "kody.execute", "kody.usageGet", "kody.__mockPackageStorageGet", "kody.__mockPackageStorageSet", "kody.__mockPackageStorageDelete", "kody.__mockPackageStorageList", "kody.__mockPackageStorageSql", "kody.packageStorageGet", "kody.packageStorageSet", "kody.packageStorageDelete", "kody.packageStorageList", "kody.packageStorageSql", "kody.credentialClientOpen", "kody.credentialClientOpenAll", "kody.credentialClientCheck", "kody.credentialClientRefresh", "kody.authenticatedFetch", "kody.gatewayFetch", "kody.gatewayFetchStream", "kody.adminUserList"];
13
13
  export type MockOpenApiOperationId = (typeof mockOpenApiOperationIds)[number];
14
14
  export type MockCapabilityPath = (typeof mockCapabilityPaths)[number];
15
15
  export declare function isMockOpenApiOperation(id: string): id is MockOpenApiOperationId;
16
16
  export declare function isMockCapabilityPath(pathKey: string): pathKey is MockCapabilityPath;
17
+ export {};
@@ -1,24 +1,24 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveLocalExecuteBearer
4
- } from "./chunk-RD6ZJU2N.js";
5
- import "./chunk-ZXNYKFSN.js";
4
+ } from "./chunk-LTSHQAUL.js";
5
+ import "./chunk-SX3MQHCJ.js";
6
6
  import "./chunk-GVSGNTG6.js";
7
7
  import "./chunk-CWWHR4FH.js";
8
8
  import "./chunk-CASGRYOF.js";
9
- import "./chunk-DEI4SMFK.js";
9
+ import "./chunk-F34Q7D5C.js";
10
10
  import "./chunk-46IJPEID.js";
11
11
  import {
12
12
  resolveScopedApiToken
13
- } from "./chunk-FPYLVYHC.js";
14
- import "./chunk-FHLTB67D.js";
15
- import "./chunk-K2G6GYKA.js";
13
+ } from "./chunk-OKIL5IUB.js";
14
+ import "./chunk-2Y4VVWIL.js";
15
+ import "./chunk-62N7DN7L.js";
16
16
  import "./chunk-NHRYNRXG.js";
17
- import "./chunk-D6XME4RY.js";
17
+ import "./chunk-RE7LNPRO.js";
18
18
  import {
19
19
  defaultApiUrl,
20
20
  defaultMcpUrl
21
- } from "./chunk-VP2O3HLT.js";
21
+ } from "./chunk-NKH2L5RA.js";
22
22
  import "./chunk-UW6AWLXX.js";
23
23
 
24
24
  // src/mock-dep-resolve.ts
@@ -58,4 +58,4 @@ async function tryResolveMockDepResolve(input) {
58
58
  export {
59
59
  tryResolveMockDepResolve
60
60
  };
61
- //# sourceMappingURL=mock-dep-resolve-G7TA4CJB.js.map
61
+ //# sourceMappingURL=mock-dep-resolve-IVZOW4QE.js.map
@@ -1,34 +1,30 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
- assertOutboundAllowed,
4
3
  buildHandlerLine,
5
4
  buildHandlerStub,
6
5
  createMockFetchGateway,
7
6
  dispatchMockGatewayFetch,
8
7
  hostMatchesPassthrough,
9
- isPrivateOrLocalHost,
10
8
  parsePassthroughHosts,
11
9
  resolveMockFetchGateway,
12
10
  tryHandleMockGatewayFetchCall,
13
11
  unmockedRequestError
14
- } from "./chunk-YQRMKXCC.js";
15
- import "./chunk-76OYRT4A.js";
16
- import "./chunk-XV6D6HSG.js";
12
+ } from "./chunk-DJ6XKQEC.js";
13
+ import "./chunk-LQNGII7U.js";
14
+ import "./chunk-DH5RPHG6.js";
17
15
  import "./chunk-MHN2FS4K.js";
18
- import "./chunk-K2G6GYKA.js";
16
+ import "./chunk-62N7DN7L.js";
19
17
  import "./chunk-NHRYNRXG.js";
20
18
  import "./chunk-UW6AWLXX.js";
21
19
  export {
22
- assertOutboundAllowed,
23
20
  buildHandlerLine,
24
21
  buildHandlerStub,
25
22
  createMockFetchGateway,
26
23
  dispatchMockGatewayFetch,
27
24
  hostMatchesPassthrough,
28
- isPrivateOrLocalHost,
29
25
  parsePassthroughHosts,
30
26
  resolveMockFetchGateway,
31
27
  tryHandleMockGatewayFetchCall,
32
28
  unmockedRequestError
33
29
  };
34
- //# sourceMappingURL=mock-fetch-gateway-QNUFNYAH.js.map
30
+ //# sourceMappingURL=mock-fetch-gateway-VAGQFWVN.js.map
@@ -1,29 +1,25 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
- loadLocalDepMap,
4
- localDepsRelativePath,
5
3
  mergePackageGraphs,
6
4
  parseKodyPackageSpecifier,
7
5
  resolveLocalPackageModules,
8
6
  tryLoadSelfManifest
9
- } from "./chunk-ZUROJOJ2.js";
10
- import "./chunk-G7GRULRW.js";
7
+ } from "./chunk-CA7AAWGW.js";
8
+ import "./chunk-DHCDUGD2.js";
11
9
  import "./chunk-YBO6HUV3.js";
12
- import "./chunk-OKM2QMOV.js";
13
- import "./chunk-XV6D6HSG.js";
10
+ import "./chunk-ZU5QBMXR.js";
11
+ import "./chunk-DH5RPHG6.js";
14
12
  import "./chunk-MHN2FS4K.js";
15
- import "./chunk-FPYLVYHC.js";
16
- import "./chunk-FHLTB67D.js";
13
+ import "./chunk-OKIL5IUB.js";
14
+ import "./chunk-2Y4VVWIL.js";
17
15
  import "./chunk-NHRYNRXG.js";
18
- import "./chunk-D6XME4RY.js";
19
- import "./chunk-VP2O3HLT.js";
16
+ import "./chunk-RE7LNPRO.js";
17
+ import "./chunk-NKH2L5RA.js";
20
18
  import "./chunk-UW6AWLXX.js";
21
19
  export {
22
- loadLocalDepMap,
23
- localDepsRelativePath,
24
20
  mergePackageGraphs,
25
21
  parseKodyPackageSpecifier,
26
22
  resolveLocalPackageModules,
27
23
  tryLoadSelfManifest
28
24
  };
29
- //# sourceMappingURL=mock-local-deps-K2NARQ7F.js.map
25
+ //# sourceMappingURL=mock-local-deps-AUAWEK46.js.map
@@ -9,9 +9,6 @@
9
9
  */
10
10
  import { type LocalPackageGraph, type LocalPackageModule } from './local-package-graph.js';
11
11
  import { type KodyPackageManifest } from './package-manifest.js';
12
- export type LocalDepMap = Record<string, string>;
13
- /** Relative path for the optional local-deps map file. */
14
- export declare const localDepsRelativePath = ".kody/deps.json";
15
12
  /**
16
13
  * Parse `kody:@scope/name/export` → `{ packageName: '@scope/name', exportKey }`.
17
14
  * Export key is `.` when the specifier is exactly the package, else `./rest`.
@@ -20,7 +17,6 @@ export declare function parseKodyPackageSpecifier(specifier: string): {
20
17
  packageName: string;
21
18
  exportKey: string;
22
19
  } | null;
23
- export declare function loadLocalDepMap(packageRoot: string): Promise<LocalDepMap>;
24
20
  /**
25
21
  * Bundle locally-resolvable `kody:@` imports. Returns modules plus the list of
26
22
  * imports that still need published package-graph.
@@ -1,23 +1,21 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  ensureMockTarget,
4
- isMockApiToken,
5
4
  mintMockApiToken,
6
5
  startMockServer,
7
6
  withMockServer
8
- } from "./chunk-5E2HSGBZ.js";
9
- import "./chunk-YQRMKXCC.js";
10
- import "./chunk-76OYRT4A.js";
11
- import "./chunk-XV6D6HSG.js";
7
+ } from "./chunk-UQIY7RY4.js";
8
+ import "./chunk-DJ6XKQEC.js";
9
+ import "./chunk-LQNGII7U.js";
10
+ import "./chunk-DH5RPHG6.js";
12
11
  import "./chunk-MHN2FS4K.js";
13
- import "./chunk-K2G6GYKA.js";
12
+ import "./chunk-62N7DN7L.js";
14
13
  import "./chunk-NHRYNRXG.js";
15
14
  import "./chunk-UW6AWLXX.js";
16
15
  export {
17
16
  ensureMockTarget,
18
- isMockApiToken,
19
17
  mintMockApiToken,
20
18
  startMockServer,
21
19
  withMockServer
22
20
  };
23
- //# sourceMappingURL=mock-server-2FMSQMBT.js.map
21
+ //# sourceMappingURL=mock-server-7P53AZUZ.js.map
@@ -1,5 +1,3 @@
1
- /** Local execute shells out to workerd; this CLI supports that only on Node 22+. */
2
- export declare const minimumLocalExecuteNodeMajor = 22;
3
1
  /**
4
2
  * Refuse `execute --local` before workerd download or spawn when Node is too old.
5
3
  * `package.json` `engines` is advisory; npx and a direct `node` launch do not enforce it.
@@ -11,7 +11,6 @@ export declare function discoverCliAuthorizationServer(input: {
11
11
  issuer: URL;
12
12
  fetchFn?: typeof fetch;
13
13
  }): Promise<oauth.AuthorizationServer>;
14
- export declare function cliOAuthClient(mcpUrl: string): oauth.Client;
15
14
  export declare function buildCliAuthorizationUrl(input: {
16
15
  authorizationServer: oauth.AuthorizationServer;
17
16
  mcpUrl: string;
@@ -48,8 +47,6 @@ export declare function startDeviceAuthorization(input: {
48
47
  scope?: string;
49
48
  fetchFn?: typeof fetch;
50
49
  }): Promise<oauth.DeviceAuthorizationResponse>;
51
- /** Terminal device-grant outcomes, as readable errors. */
52
- export declare function deviceGrantErrorMessage(code: string): string | null;
53
50
  /**
54
51
  * RFC 8628 section 3.4/3.5: poll the token endpoint at the server's interval,
55
52
  * adding five seconds on every `slow_down`, until approval, denial, or expiry.