@kodycodes/cli 3.46.2 → 3.46.4

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 (86) hide show
  1. package/dist/{auth-Q6TDDWB2.js → auth-2UN7GB4F.js} +8 -8
  2. package/dist/bin.js +11 -11
  3. package/dist/{chunk-F6N7JCMD.js → chunk-3LTYWJRX.js} +3 -3
  4. package/dist/{chunk-BYZB4U4P.js → chunk-5JI7IJFP.js} +7 -7
  5. package/dist/{chunk-MWC6FYWF.js → chunk-6XHJV62I.js} +4 -4
  6. package/dist/{chunk-RFZQC23P.js → chunk-7DTONYR5.js} +12 -6
  7. package/dist/{chunk-RFZQC23P.js.map → chunk-7DTONYR5.js.map} +1 -1
  8. package/dist/{chunk-6BMYORZK.js → chunk-BPSD6VMQ.js} +50 -50
  9. package/dist/{chunk-Q7XRVWKZ.js → chunk-ERURT3VD.js} +3 -3
  10. package/dist/{chunk-OFI4MF3S.js → chunk-FS5G5OLI.js} +4 -4
  11. package/dist/{chunk-6HPU7SMS.js → chunk-GBIQBEKD.js} +2 -2
  12. package/dist/{chunk-6JQXFR73.js → chunk-HRDM7TRJ.js} +3 -3
  13. package/dist/{chunk-W257N63R.js → chunk-IQSN4HQY.js} +6 -6
  14. package/dist/{chunk-XSRTFMCF.js → chunk-KIC65VM5.js} +4 -4
  15. package/dist/{chunk-2G3YXYZ4.js → chunk-LKJPBFUD.js} +2 -2
  16. package/dist/{chunk-2G3YXYZ4.js.map → chunk-LKJPBFUD.js.map} +1 -1
  17. package/dist/{chunk-VX2KDCQF.js → chunk-NZDTFELD.js} +3 -3
  18. package/dist/{chunk-ZER4SBOV.js → chunk-OZG2CY42.js} +5 -5
  19. package/dist/{chunk-OBK4CIB2.js → chunk-PQ53PPOM.js} +3 -3
  20. package/dist/{chunk-42C77QLO.js → chunk-RSODG7NF.js} +2 -2
  21. package/dist/{chunk-ZIL2JPJC.js → chunk-SCQKYYSW.js} +5 -5
  22. package/dist/{chunk-AM2SBW3C.js → chunk-U5MKJ4L4.js} +2 -2
  23. package/dist/{chunk-N33Y3A4H.js → chunk-UYRRMDAI.js} +2 -1
  24. package/dist/{chunk-N33Y3A4H.js.map → chunk-UYRRMDAI.js.map} +1 -1
  25. package/dist/{chunk-EJOF2MYU.js → chunk-VHOKL4CU.js} +2 -2
  26. package/dist/cli.js +11 -11
  27. package/dist/{commands-AMTPU2F7.js → commands-2KBEAASD.js} +6 -6
  28. package/dist/{dev-command-754FYKV6.js → dev-command-WYZNJ7NO.js} +13 -13
  29. package/dist/{execute-local-package-PVPTFQFM.js → execute-local-package-ILH7ARJT.js} +13 -13
  30. package/dist/{git-credential-BL7KCA76.js → git-credential-F3VDL2HQ.js} +9 -9
  31. package/dist/{local-execute-A4ZUH53E.js → local-execute-PM2TBMAH.js} +9 -9
  32. package/dist/{local-kody-BJ7OORPF.js → local-kody-BOIWOFLS.js} +10 -10
  33. package/dist/{local-package-graph-7A4ZQBXJ.js → local-package-graph-GKLQ4MGD.js} +7 -7
  34. package/dist/{local-package-run-2X72ZAV2.js → local-package-run-62YJYFJF.js} +11 -11
  35. package/dist/local-package-secret-write.d.ts +5 -2
  36. package/dist/{local-secrets-2S7KJ6EI.js → local-secrets-56KLEWFI.js} +7 -7
  37. package/dist/{mock-dep-resolve-ACHQAI36.js → mock-dep-resolve-DC7VVS4R.js} +6 -6
  38. package/dist/{mock-local-deps-43QBYHHF.js → mock-local-deps-OXSL65A4.js} +8 -8
  39. package/dist/{open-api-client-Z3LIDWQ2.js → open-api-client-DRJJFK2G.js} +7 -7
  40. package/dist/{org-ZPHE7DVE.js → org-JRDAABYV.js} +2 -2
  41. package/dist/{package-run-E34M5ERO.js → package-run-FO2LQL5J.js} +7 -7
  42. package/dist/publish-builder.js +292 -63
  43. package/dist/{remote-execute-CINWGFKJ.js → remote-execute-3OM2JI3S.js} +8 -8
  44. package/dist/{run-executor-OGVMKPIB.js → run-executor-I4R6QJHK.js} +2 -2
  45. package/dist/{setup-git-P5HLZX3R.js → setup-git-7LTQO23B.js} +8 -8
  46. package/dist/{store-7AFDVRNS.js → store-RVFCVRGK.js} +2 -2
  47. package/dist/store.d.ts +16 -3
  48. package/dist/{whoami-EU7HSV45.js → whoami-WSBAFVF3.js} +6 -6
  49. package/package.json +1 -1
  50. /package/dist/{auth-Q6TDDWB2.js.map → auth-2UN7GB4F.js.map} +0 -0
  51. /package/dist/{chunk-F6N7JCMD.js.map → chunk-3LTYWJRX.js.map} +0 -0
  52. /package/dist/{chunk-BYZB4U4P.js.map → chunk-5JI7IJFP.js.map} +0 -0
  53. /package/dist/{chunk-MWC6FYWF.js.map → chunk-6XHJV62I.js.map} +0 -0
  54. /package/dist/{chunk-6BMYORZK.js.map → chunk-BPSD6VMQ.js.map} +0 -0
  55. /package/dist/{chunk-Q7XRVWKZ.js.map → chunk-ERURT3VD.js.map} +0 -0
  56. /package/dist/{chunk-OFI4MF3S.js.map → chunk-FS5G5OLI.js.map} +0 -0
  57. /package/dist/{chunk-6HPU7SMS.js.map → chunk-GBIQBEKD.js.map} +0 -0
  58. /package/dist/{chunk-6JQXFR73.js.map → chunk-HRDM7TRJ.js.map} +0 -0
  59. /package/dist/{chunk-W257N63R.js.map → chunk-IQSN4HQY.js.map} +0 -0
  60. /package/dist/{chunk-XSRTFMCF.js.map → chunk-KIC65VM5.js.map} +0 -0
  61. /package/dist/{chunk-VX2KDCQF.js.map → chunk-NZDTFELD.js.map} +0 -0
  62. /package/dist/{chunk-ZER4SBOV.js.map → chunk-OZG2CY42.js.map} +0 -0
  63. /package/dist/{chunk-OBK4CIB2.js.map → chunk-PQ53PPOM.js.map} +0 -0
  64. /package/dist/{chunk-42C77QLO.js.map → chunk-RSODG7NF.js.map} +0 -0
  65. /package/dist/{chunk-ZIL2JPJC.js.map → chunk-SCQKYYSW.js.map} +0 -0
  66. /package/dist/{chunk-AM2SBW3C.js.map → chunk-U5MKJ4L4.js.map} +0 -0
  67. /package/dist/{chunk-EJOF2MYU.js.map → chunk-VHOKL4CU.js.map} +0 -0
  68. /package/dist/{commands-AMTPU2F7.js.map → commands-2KBEAASD.js.map} +0 -0
  69. /package/dist/{dev-command-754FYKV6.js.map → dev-command-WYZNJ7NO.js.map} +0 -0
  70. /package/dist/{execute-local-package-PVPTFQFM.js.map → execute-local-package-ILH7ARJT.js.map} +0 -0
  71. /package/dist/{git-credential-BL7KCA76.js.map → git-credential-F3VDL2HQ.js.map} +0 -0
  72. /package/dist/{local-execute-A4ZUH53E.js.map → local-execute-PM2TBMAH.js.map} +0 -0
  73. /package/dist/{local-kody-BJ7OORPF.js.map → local-kody-BOIWOFLS.js.map} +0 -0
  74. /package/dist/{local-package-graph-7A4ZQBXJ.js.map → local-package-graph-GKLQ4MGD.js.map} +0 -0
  75. /package/dist/{local-package-run-2X72ZAV2.js.map → local-package-run-62YJYFJF.js.map} +0 -0
  76. /package/dist/{local-secrets-2S7KJ6EI.js.map → local-secrets-56KLEWFI.js.map} +0 -0
  77. /package/dist/{mock-dep-resolve-ACHQAI36.js.map → mock-dep-resolve-DC7VVS4R.js.map} +0 -0
  78. /package/dist/{mock-local-deps-43QBYHHF.js.map → mock-local-deps-OXSL65A4.js.map} +0 -0
  79. /package/dist/{open-api-client-Z3LIDWQ2.js.map → open-api-client-DRJJFK2G.js.map} +0 -0
  80. /package/dist/{org-ZPHE7DVE.js.map → org-JRDAABYV.js.map} +0 -0
  81. /package/dist/{package-run-E34M5ERO.js.map → package-run-FO2LQL5J.js.map} +0 -0
  82. /package/dist/{remote-execute-CINWGFKJ.js.map → remote-execute-3OM2JI3S.js.map} +0 -0
  83. /package/dist/{run-executor-OGVMKPIB.js.map → run-executor-I4R6QJHK.js.map} +0 -0
  84. /package/dist/{setup-git-P5HLZX3R.js.map → setup-git-7LTQO23B.js.map} +0 -0
  85. /package/dist/{store-7AFDVRNS.js.map → store-RVFCVRGK.js.map} +0 -0
  86. /package/dist/{whoami-EU7HSV45.js.map → whoami-WSBAFVF3.js.map} +0 -0
@@ -4,14 +4,14 @@ import {
4
4
  formatExecuteCapabilityResult,
5
5
  resolveRemoteExecuteCode,
6
6
  runRemoteExecuteWithToken
7
- } from "./chunk-Q7XRVWKZ.js";
7
+ } from "./chunk-ERURT3VD.js";
8
8
  import "./chunk-E4R3Y6MM.js";
9
- import "./chunk-OBK4CIB2.js";
10
- import "./chunk-6HPU7SMS.js";
11
- import "./chunk-F6N7JCMD.js";
12
- import "./chunk-6JQXFR73.js";
13
- import "./chunk-AM2SBW3C.js";
14
- import "./chunk-N33Y3A4H.js";
9
+ import "./chunk-PQ53PPOM.js";
10
+ import "./chunk-GBIQBEKD.js";
11
+ import "./chunk-3LTYWJRX.js";
12
+ import "./chunk-HRDM7TRJ.js";
13
+ import "./chunk-U5MKJ4L4.js";
14
+ import "./chunk-UYRRMDAI.js";
15
15
  import "./chunk-NKH2L5RA.js";
16
16
  import "./chunk-VHYJU2U2.js";
17
17
  import "./chunk-YVWOK4LV.js";
@@ -22,4 +22,4 @@ export {
22
22
  resolveRemoteExecuteCode,
23
23
  runRemoteExecuteWithToken
24
24
  };
25
- //# sourceMappingURL=remote-execute-CINWGFKJ.js.map
25
+ //# sourceMappingURL=remote-execute-3OM2JI3S.js.map
@@ -38,7 +38,7 @@ async function runContextRun(input) {
38
38
  }
39
39
  }
40
40
  const hostCommands = input.hostCommands;
41
- const { runLocalExecute } = await import("./local-execute-A4ZUH53E.js");
41
+ const { runLocalExecute } = await import("./local-execute-PM2TBMAH.js");
42
42
  let timing;
43
43
  const result = await runLocalExecute({
44
44
  code: source.code,
@@ -90,4 +90,4 @@ async function runContextRun(input) {
90
90
  export {
91
91
  runContextRun
92
92
  };
93
- //# sourceMappingURL=run-executor-OGVMKPIB.js.map
93
+ //# sourceMappingURL=run-executor-I4R6QJHK.js.map
@@ -22,14 +22,14 @@ import {
22
22
  scopesIncludeRequired,
23
23
  setupGitDefaultScopes,
24
24
  setupGitRequiredScopes
25
- } from "./chunk-BYZB4U4P.js";
25
+ } from "./chunk-5JI7IJFP.js";
26
26
  import "./chunk-6ZYUGXVW.js";
27
- import "./chunk-OBK4CIB2.js";
28
- import "./chunk-6HPU7SMS.js";
29
- import "./chunk-F6N7JCMD.js";
30
- import "./chunk-6JQXFR73.js";
31
- import "./chunk-AM2SBW3C.js";
32
- import "./chunk-N33Y3A4H.js";
27
+ import "./chunk-PQ53PPOM.js";
28
+ import "./chunk-GBIQBEKD.js";
29
+ import "./chunk-3LTYWJRX.js";
30
+ import "./chunk-HRDM7TRJ.js";
31
+ import "./chunk-U5MKJ4L4.js";
32
+ import "./chunk-UYRRMDAI.js";
33
33
  import "./chunk-NKH2L5RA.js";
34
34
  import "./chunk-VHYJU2U2.js";
35
35
  import "./chunk-YVWOK4LV.js";
@@ -58,4 +58,4 @@ export {
58
58
  setupGitDefaultScopes,
59
59
  setupGitRequiredScopes
60
60
  };
61
- //# sourceMappingURL=setup-git-P5HLZX3R.js.map
61
+ //# sourceMappingURL=setup-git-7LTQO23B.js.map
@@ -19,7 +19,7 @@ import {
19
19
  saveCredentials,
20
20
  secretServiceKeyringOptions,
21
21
  setActiveOrg
22
- } from "./chunk-N33Y3A4H.js";
22
+ } from "./chunk-UYRRMDAI.js";
23
23
  import "./chunk-NKH2L5RA.js";
24
24
  import "./chunk-UW6AWLXX.js";
25
25
  export {
@@ -43,4 +43,4 @@ export {
43
43
  secretServiceKeyringOptions,
44
44
  setActiveOrg
45
45
  };
46
- //# sourceMappingURL=store-7AFDVRNS.js.map
46
+ //# sourceMappingURL=store-RVFCVRGK.js.map
package/dist/store.d.ts CHANGED
@@ -3,6 +3,7 @@ export { secretServiceKeyringOptions } from './keyring-entry.js';
3
3
  * Per-org OAuth credentials used by login / MCP / local-execute Bearer.
4
4
  * `org` is the bound organization slug (ADR 0064). Legacy single-org payloads
5
5
  * may omit it until silent migration discovers the slug via metaGetCurrentUser.
6
+ * Remove when: the CLI drops support for pre-ADR 0064 credential stores in a major release.
6
7
  */
7
8
  export type StoredCredentials = {
8
9
  version: 1;
@@ -25,13 +26,17 @@ export type StoredCredentials = {
25
26
  export type MultiOrgCredentialStore = {
26
27
  version: 2;
27
28
  mcpUrl: string;
28
- /** Active org slug; null while a legacy v1 session awaits slug discovery. */
29
+ /**
30
+ * Active org slug; null while a legacy v1 session awaits slug discovery.
31
+ * Remove when: the CLI drops support for pre-ADR 0064 credential stores in a major release.
32
+ */
29
33
  activeOrg: string | null;
30
34
  /** Org slug → credentials (without version/mcpUrl envelope fields). */
31
35
  orgs: Record<string, OrgCredentialRecord>;
32
36
  /**
33
37
  * Legacy single-org tokens waiting for an org slug. At most one. Cleared
34
38
  * once metaGetCurrentUser (or login --org) promotes them into `orgs`.
39
+ * Remove when: the CLI drops support for pre-ADR 0064 credential stores in a major release.
35
40
  */
36
41
  pending?: OrgCredentialRecord;
37
42
  };
@@ -85,11 +90,15 @@ export declare function loadCredentialStore(mcpUrl?: string, backend?: SecretBac
85
90
  /**
86
91
  * Resolve one org's credentials. Precedence for which org: explicit `org`
87
92
  * option, else the store's active org, else the sole pending legacy session.
93
+ * Remove when: the CLI drops support for pre-ADR 0064 credential stores in a major release.
88
94
  */
89
95
  export declare function loadCredentials(mcpUrl?: string, backend?: SecretBackend, resolution?: StoreResolution, options?: {
90
96
  org?: string;
91
97
  }): StoredCredentials | null;
92
- /** Legacy pending session only (not the active named org). */
98
+ /**
99
+ * Legacy pending session only (not the active named org).
100
+ * Remove when: the CLI drops support for pre-ADR 0064 credential stores in a major release.
101
+ */
93
102
  export declare function loadPendingCredentials(mcpUrl?: string, backend?: SecretBackend, resolution?: StoreResolution): StoredCredentials | null;
94
103
  /**
95
104
  * Upsert one org's credentials. Replaces that org's prior tokens when the slug
@@ -108,13 +117,17 @@ export declare function saveCredentials(credentials: StoredCredentials, backend?
108
117
  * Promote pending legacy tokens into `orgs[slug]`.
109
118
  * Never overwrites an existing named login (a fresh `kody login` wins), and
110
119
  * never steals `activeOrg` away from an already-active named org.
120
+ * Remove when: the CLI drops support for pre-ADR 0064 credential stores in a major release.
111
121
  */
112
122
  export declare function promotePendingOrg(mcpUrl: string, org: string, backend?: SecretBackend, resolution?: StoreResolution): MultiOrgCredentialStore | null;
113
123
  export declare function setActiveOrg(mcpUrl: string, org: string, backend?: SecretBackend, resolution?: StoreResolution): MultiOrgCredentialStore;
114
124
  export type ListedOrg = {
115
125
  slug: string;
116
126
  active: boolean;
117
- /** True when this row is the unresolved legacy session (no slug yet). */
127
+ /**
128
+ * True when this row is the unresolved legacy session (no slug yet).
129
+ * Remove when: the CLI drops support for pre-ADR 0064 credential stores in a major release.
130
+ */
118
131
  pending?: boolean;
119
132
  };
120
133
  /** Local-only listing for help / `org list` (no network). */
@@ -5,9 +5,9 @@ import {
5
5
  noteActiveLoginCredential,
6
6
  resolveCliCredential,
7
7
  sessionPurposeCommands
8
- } from "./chunk-6JQXFR73.js";
9
- import "./chunk-AM2SBW3C.js";
10
- import "./chunk-N33Y3A4H.js";
8
+ } from "./chunk-HRDM7TRJ.js";
9
+ import "./chunk-U5MKJ4L4.js";
10
+ import "./chunk-UYRRMDAI.js";
11
11
  import "./chunk-NKH2L5RA.js";
12
12
  import "./chunk-UW6AWLXX.js";
13
13
 
@@ -46,13 +46,13 @@ async function runWhoami(input) {
46
46
  };
47
47
  const session = resolveCliCredential({ ...resolveInput, purpose: "session" });
48
48
  let credential = resolveCliCredential(resolveInput);
49
- const { whoamiWithApiToken } = await import("./open-api-client-Z3LIDWQ2.js");
49
+ const { whoamiWithApiToken } = await import("./open-api-client-DRJJFK2G.js");
50
50
  let token;
51
51
  let loginOrg = null;
52
52
  if (credential?.token) {
53
53
  token = credential.token;
54
54
  } else {
55
- const { ensureOpenApiCredentials } = await import("./auth-Q6TDDWB2.js");
55
+ const { ensureOpenApiCredentials } = await import("./auth-2UN7GB4F.js");
56
56
  const login = await ensureOpenApiCredentials({ mcpUrl, org, apiUrl });
57
57
  noteActiveLoginCredential({ login });
58
58
  credential = credential ? { ...credential, login } : { source: "login", token: null, login, purpose: "call", shadowed: [] };
@@ -135,4 +135,4 @@ async function runWhoami(input) {
135
135
  export {
136
136
  runWhoami
137
137
  };
138
- //# sourceMappingURL=whoami-EU7HSV45.js.map
138
+ //# sourceMappingURL=whoami-WSBAFVF3.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kodycodes/cli",
3
- "version": "3.46.2",
3
+ "version": "3.46.4",
4
4
  "description": "Official Kody CLI: login, secure token storage, search, and execute over the OpenAPI.",
5
5
  "type": "module",
6
6
  "bin": {