@kodycodes/cli 3.34.8 → 3.34.10
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.
- package/README.md +1 -1
- package/dist/{auth-I4XH63PZ.js → auth-CJGMSRPQ.js} +9 -9
- package/dist/bin.js +12 -12
- package/dist/{chunk-W7JYNGNA.js → chunk-6T3ZZBRY.js} +8 -8
- package/dist/{chunk-LGG77FR7.js → chunk-6ZF5N7YW.js} +4 -4
- package/dist/{chunk-B4OOCRLZ.js → chunk-7BGOL5PB.js} +4 -4
- package/dist/{chunk-HBHIQDJI.js → chunk-AIRKIBWV.js} +7 -7
- package/dist/{chunk-ENFBLA4M.js → chunk-AM2SBW3C.js} +7 -3
- package/dist/chunk-AM2SBW3C.js.map +6 -0
- package/dist/{chunk-V3KIBQVH.js → chunk-AVP5XMQ7.js} +47 -47
- package/dist/{chunk-KXK3O7O2.js → chunk-C42MRUTR.js} +3 -3
- package/dist/{chunk-7UV4RVJW.js → chunk-CS3GRQCZ.js} +2 -2
- package/dist/{chunk-4QDPGKUS.js → chunk-EKVVIFRW.js} +4 -4
- package/dist/{chunk-PGJ22SM7.js → chunk-GZCZPBUM.js} +3 -3
- package/dist/{chunk-RXRYMTNW.js → chunk-M44CO6QB.js} +2 -2
- package/dist/{chunk-Z7DR5UNN.js → chunk-N33Y3A4H.js} +8 -1
- package/dist/chunk-N33Y3A4H.js.map +6 -0
- package/dist/{chunk-5BNIKSOV.js → chunk-NBJ3X25P.js} +2 -2
- package/dist/{chunk-GBO5CZGC.js → chunk-O2UWR66M.js} +2 -2
- package/dist/{chunk-B5DIPCOD.js → chunk-SNXLFUYP.js} +4 -4
- package/dist/{chunk-KMEHILCP.js → chunk-UNRRMZM2.js} +3 -3
- package/dist/{chunk-XV646S3B.js → chunk-VHYJU2U2.js} +3 -3
- package/dist/chunk-VHYJU2U2.js.map +6 -0
- package/dist/{chunk-XQQYWLYQ.js → chunk-WEJLTJUI.js} +4 -4
- package/dist/{chunk-22AN66MM.js → chunk-X5L5M6AR.js} +3 -3
- package/dist/{chunk-XRIUHO5Q.js → chunk-XIZ7EZDP.js} +2 -2
- package/dist/cli.js +12 -12
- package/dist/{commands-CX2FTGEB.js → commands-IELPAXVQ.js} +6 -6
- package/dist/{dev-command-WOSJFXY7.js → dev-command-YBFFV4LT.js} +15 -15
- package/dist/{git-credential-JUIVYMJM.js → git-credential-HFCBL3TZ.js} +10 -10
- package/dist/{local-execute-DY6HZ3KQ.js → local-execute-FAALT4AL.js} +11 -11
- package/dist/{local-package-graph-FMCN2OY4.js → local-package-graph-QSRKLQIP.js} +7 -7
- package/dist/{local-package-run-BUO3MVML.js → local-package-run-LZTXOFKQ.js} +13 -13
- package/dist/{local-publish-build-VXTUNBQG.js → local-publish-build-JFXNOOGY.js} +2 -2
- package/dist/{local-secrets-77VJOY4E.js → local-secrets-LMXJBIPU.js} +8 -8
- package/dist/{mock-dep-resolve-JA6IDQPE.js → mock-dep-resolve-42AMGI4V.js} +6 -6
- package/dist/{mock-fetch-gateway-72PFPOWW.js → mock-fetch-gateway-Q6P723KA.js} +3 -3
- package/dist/{mock-local-deps-QHMQCI5L.js → mock-local-deps-FHH4S4TB.js} +8 -8
- package/dist/{mock-server-IUHUKCGP.js → mock-server-MX2BMUBB.js} +4 -4
- package/dist/{open-api-client-S26DL5MW.js → open-api-client-ZGLGMDKA.js} +8 -8
- package/dist/{org-VKSU4YVE.js → org-ZPHE7DVE.js} +2 -2
- package/dist/{publish-offload-JK4CYNBT.js → publish-offload-QFBYH3HO.js} +2 -2
- package/dist/{remote-execute-WTORQH3E.js → remote-execute-SOSMXVTG.js} +8 -8
- package/dist/{run-executor-VFNRNXVE.js → run-executor-4NQ65T6B.js} +3 -3
- package/dist/{setup-git-LSHM7DQM.js → setup-git-QGJOYTHH.js} +9 -9
- package/dist/{store-DGAP2AZS.js → store-7AFDVRNS.js} +4 -2
- package/dist/store.d.ts +6 -0
- package/dist/{whoami-3HCHZO2F.js → whoami-A77EEULC.js} +6 -6
- package/dist/{workerd-binary-XFXGCG5R.js → workerd-binary-OELDT5OV.js} +2 -2
- package/package.json +2 -2
- package/dist/chunk-ENFBLA4M.js.map +0 -6
- package/dist/chunk-XV646S3B.js.map +0 -6
- package/dist/chunk-Z7DR5UNN.js.map +0 -6
- /package/dist/{auth-I4XH63PZ.js.map → auth-CJGMSRPQ.js.map} +0 -0
- /package/dist/{chunk-W7JYNGNA.js.map → chunk-6T3ZZBRY.js.map} +0 -0
- /package/dist/{chunk-LGG77FR7.js.map → chunk-6ZF5N7YW.js.map} +0 -0
- /package/dist/{chunk-B4OOCRLZ.js.map → chunk-7BGOL5PB.js.map} +0 -0
- /package/dist/{chunk-HBHIQDJI.js.map → chunk-AIRKIBWV.js.map} +0 -0
- /package/dist/{chunk-V3KIBQVH.js.map → chunk-AVP5XMQ7.js.map} +0 -0
- /package/dist/{chunk-KXK3O7O2.js.map → chunk-C42MRUTR.js.map} +0 -0
- /package/dist/{chunk-7UV4RVJW.js.map → chunk-CS3GRQCZ.js.map} +0 -0
- /package/dist/{chunk-4QDPGKUS.js.map → chunk-EKVVIFRW.js.map} +0 -0
- /package/dist/{chunk-PGJ22SM7.js.map → chunk-GZCZPBUM.js.map} +0 -0
- /package/dist/{chunk-RXRYMTNW.js.map → chunk-M44CO6QB.js.map} +0 -0
- /package/dist/{chunk-5BNIKSOV.js.map → chunk-NBJ3X25P.js.map} +0 -0
- /package/dist/{chunk-GBO5CZGC.js.map → chunk-O2UWR66M.js.map} +0 -0
- /package/dist/{chunk-B5DIPCOD.js.map → chunk-SNXLFUYP.js.map} +0 -0
- /package/dist/{chunk-KMEHILCP.js.map → chunk-UNRRMZM2.js.map} +0 -0
- /package/dist/{chunk-XQQYWLYQ.js.map → chunk-WEJLTJUI.js.map} +0 -0
- /package/dist/{chunk-22AN66MM.js.map → chunk-X5L5M6AR.js.map} +0 -0
- /package/dist/{chunk-XRIUHO5Q.js.map → chunk-XIZ7EZDP.js.map} +0 -0
- /package/dist/{commands-CX2FTGEB.js.map → commands-IELPAXVQ.js.map} +0 -0
- /package/dist/{dev-command-WOSJFXY7.js.map → dev-command-YBFFV4LT.js.map} +0 -0
- /package/dist/{git-credential-JUIVYMJM.js.map → git-credential-HFCBL3TZ.js.map} +0 -0
- /package/dist/{local-execute-DY6HZ3KQ.js.map → local-execute-FAALT4AL.js.map} +0 -0
- /package/dist/{local-package-graph-FMCN2OY4.js.map → local-package-graph-QSRKLQIP.js.map} +0 -0
- /package/dist/{local-package-run-BUO3MVML.js.map → local-package-run-LZTXOFKQ.js.map} +0 -0
- /package/dist/{local-publish-build-VXTUNBQG.js.map → local-publish-build-JFXNOOGY.js.map} +0 -0
- /package/dist/{local-secrets-77VJOY4E.js.map → local-secrets-LMXJBIPU.js.map} +0 -0
- /package/dist/{mock-dep-resolve-JA6IDQPE.js.map → mock-dep-resolve-42AMGI4V.js.map} +0 -0
- /package/dist/{mock-fetch-gateway-72PFPOWW.js.map → mock-fetch-gateway-Q6P723KA.js.map} +0 -0
- /package/dist/{mock-local-deps-QHMQCI5L.js.map → mock-local-deps-FHH4S4TB.js.map} +0 -0
- /package/dist/{mock-server-IUHUKCGP.js.map → mock-server-MX2BMUBB.js.map} +0 -0
- /package/dist/{open-api-client-S26DL5MW.js.map → open-api-client-ZGLGMDKA.js.map} +0 -0
- /package/dist/{org-VKSU4YVE.js.map → org-ZPHE7DVE.js.map} +0 -0
- /package/dist/{publish-offload-JK4CYNBT.js.map → publish-offload-QFBYH3HO.js.map} +0 -0
- /package/dist/{remote-execute-WTORQH3E.js.map → remote-execute-SOSMXVTG.js.map} +0 -0
- /package/dist/{run-executor-VFNRNXVE.js.map → run-executor-4NQ65T6B.js.map} +0 -0
- /package/dist/{setup-git-LSHM7DQM.js.map → setup-git-QGJOYTHH.js.map} +0 -0
- /package/dist/{store-DGAP2AZS.js.map → store-7AFDVRNS.js.map} +0 -0
- /package/dist/{whoami-3HCHZO2F.js.map → whoami-A77EEULC.js.map} +0 -0
- /package/dist/{workerd-binary-XFXGCG5R.js.map → workerd-binary-OELDT5OV.js.map} +0 -0
package/README.md
CHANGED
|
@@ -147,7 +147,7 @@ order the CLI picks them in:
|
|
|
147
147
|
```bash
|
|
148
148
|
# Preferred for agents on MCP (no tokenCreate, no second OAuth):
|
|
149
149
|
# 1. MCP api tool, operationId cliCredentialBootstrap → { bootstrap_code, cli_command }
|
|
150
|
-
npx @kodycodes/cli auth bootstrap --code 'kody_bc_…'
|
|
150
|
+
npx @kodycodes/cli auth bootstrap --code 'kody_bc_…'
|
|
151
151
|
npx @kodycodes/cli execute --local --file ./task.js
|
|
152
152
|
|
|
153
153
|
export KODY_API_TOKEN=… # scopes: local-execute (+ search:read for search)
|
|
@@ -9,18 +9,18 @@ import {
|
|
|
9
9
|
loginWithDevice,
|
|
10
10
|
refreshStoredCredentials,
|
|
11
11
|
resolvePendingOrgSlug
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WEJLTJUI.js";
|
|
13
13
|
import "./chunk-GVSGNTG6.js";
|
|
14
14
|
import "./chunk-CWWHR4FH.js";
|
|
15
15
|
import "./chunk-CASGRYOF.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-SNXLFUYP.js";
|
|
17
|
+
import "./chunk-XIZ7EZDP.js";
|
|
18
|
+
import "./chunk-UNRRMZM2.js";
|
|
19
|
+
import "./chunk-X5L5M6AR.js";
|
|
20
|
+
import "./chunk-AM2SBW3C.js";
|
|
21
|
+
import "./chunk-N33Y3A4H.js";
|
|
22
22
|
import "./chunk-NKH2L5RA.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-VHYJU2U2.js";
|
|
24
24
|
import "./chunk-YVWOK4LV.js";
|
|
25
25
|
import "./chunk-UW6AWLXX.js";
|
|
26
26
|
export {
|
|
@@ -34,4 +34,4 @@ export {
|
|
|
34
34
|
refreshStoredCredentials,
|
|
35
35
|
resolvePendingOrgSlug
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=auth-
|
|
37
|
+
//# sourceMappingURL=auth-CJGMSRPQ.js.map
|
package/dist/bin.js
CHANGED
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
runCli
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AVP5XMQ7.js";
|
|
6
6
|
import "./chunk-E4R3Y6MM.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-EKVVIFRW.js";
|
|
8
8
|
import "./chunk-46IJPEID.js";
|
|
9
9
|
import "./chunk-NKQRWYSY.js";
|
|
10
10
|
import "./chunk-MIT3TUWB.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-6ZF5N7YW.js";
|
|
12
|
+
import "./chunk-CS3GRQCZ.js";
|
|
13
|
+
import "./chunk-AIRKIBWV.js";
|
|
14
14
|
import "./chunk-6ZYUGXVW.js";
|
|
15
15
|
import "./chunk-CWWHR4FH.js";
|
|
16
16
|
import "./chunk-CASGRYOF.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-SNXLFUYP.js";
|
|
18
|
+
import "./chunk-XIZ7EZDP.js";
|
|
19
|
+
import "./chunk-UNRRMZM2.js";
|
|
20
|
+
import "./chunk-X5L5M6AR.js";
|
|
21
|
+
import "./chunk-AM2SBW3C.js";
|
|
22
|
+
import "./chunk-N33Y3A4H.js";
|
|
23
23
|
import "./chunk-NKH2L5RA.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-VHYJU2U2.js";
|
|
25
25
|
import "./chunk-YVWOK4LV.js";
|
|
26
26
|
import "./chunk-UW6AWLXX.js";
|
|
27
27
|
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
forwardLocalGatewayFetchStream,
|
|
5
5
|
installMockFetchShimModules,
|
|
6
6
|
startLocalRuntimeBridge
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C42MRUTR.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveMockFetchGateway,
|
|
10
10
|
tryHandleMockGatewayFetchCall
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-M44CO6QB.js";
|
|
12
12
|
import {
|
|
13
13
|
parseKodyPackageSpecifier,
|
|
14
14
|
tryLoadSelfManifest
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NBJ3X25P.js";
|
|
16
16
|
import {
|
|
17
17
|
bundleLocalUserModule
|
|
18
18
|
} from "./chunk-MAIWMWV7.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
runSecretEnvVar,
|
|
29
29
|
runSecretHeader,
|
|
30
30
|
writePackageModuleFiles
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7BGOL5PB.js";
|
|
32
32
|
import {
|
|
33
33
|
createEgressGateSource,
|
|
34
34
|
egressGateModuleName,
|
|
@@ -40,17 +40,17 @@ import {
|
|
|
40
40
|
} from "./chunk-CASGRYOF.js";
|
|
41
41
|
import {
|
|
42
42
|
callOpenApiOperation
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-SNXLFUYP.js";
|
|
44
44
|
import {
|
|
45
45
|
assertTokenSafeApiUrl,
|
|
46
46
|
callCapabilityProxy
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-XIZ7EZDP.js";
|
|
48
48
|
import {
|
|
49
49
|
apiTokenEnvVar
|
|
50
50
|
} from "./chunk-NKH2L5RA.js";
|
|
51
51
|
import {
|
|
52
52
|
ensureWorkerdBinary
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-VHYJU2U2.js";
|
|
54
54
|
|
|
55
55
|
// src/local-package-run.ts
|
|
56
56
|
import { spawn } from "node:child_process";
|
|
@@ -1125,4 +1125,4 @@ export {
|
|
|
1125
1125
|
resolveLocalPackageBinding,
|
|
1126
1126
|
packageIdMatchesLocalPackage
|
|
1127
1127
|
};
|
|
1128
|
-
//# sourceMappingURL=chunk-
|
|
1128
|
+
//# sourceMappingURL=chunk-6T3ZZBRY.js.map
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
setLocalAutoUpdateEnabled,
|
|
8
8
|
validateServiceEnvKey,
|
|
9
9
|
writeLocalPolicy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CS3GRQCZ.js";
|
|
11
11
|
import {
|
|
12
12
|
apiTokenFileStorePath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AM2SBW3C.js";
|
|
14
14
|
import {
|
|
15
15
|
KeychainTimeoutError,
|
|
16
16
|
cliConfigDir,
|
|
17
17
|
createAsyncKeyringEntry,
|
|
18
18
|
killProcessTree,
|
|
19
19
|
windowsCommandLine
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-N33Y3A4H.js";
|
|
21
21
|
import {
|
|
22
22
|
formatUnreachableApiMessage,
|
|
23
23
|
requestSentStatus
|
|
@@ -3709,4 +3709,4 @@ export {
|
|
|
3709
3709
|
isRemoteDaemonCommand,
|
|
3710
3710
|
runRemoteDaemonCommand
|
|
3711
3711
|
};
|
|
3712
|
-
//# sourceMappingURL=chunk-
|
|
3712
|
+
//# sourceMappingURL=chunk-6ZF5N7YW.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
assertTokenSafeApiUrl,
|
|
8
8
|
capabilityProxyUrl,
|
|
9
9
|
readPackageVersion
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XIZ7EZDP.js";
|
|
11
11
|
import {
|
|
12
12
|
capabilityProxyForbiddenMessage,
|
|
13
13
|
currentStoredTokenLifetimeAlias,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
readInsufficientScopeDetails,
|
|
19
19
|
rejectedApiTokenMessage,
|
|
20
20
|
rejectedOauthBearerMessage
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UNRRMZM2.js";
|
|
22
22
|
import {
|
|
23
23
|
cliName
|
|
24
24
|
} from "./chunk-NKH2L5RA.js";
|
|
@@ -1421,7 +1421,7 @@ async function resolveLocalPackageGraph(input) {
|
|
|
1421
1421
|
mergePackageGraphs,
|
|
1422
1422
|
resolveLocalPackageModules,
|
|
1423
1423
|
tryLoadSelfManifest
|
|
1424
|
-
} = await import("./mock-local-deps-
|
|
1424
|
+
} = await import("./mock-local-deps-FHH4S4TB.js");
|
|
1425
1425
|
if (imports.length > 0 && input.packageRoot) {
|
|
1426
1426
|
const selfManifest = await tryLoadSelfManifest(input.packageRoot);
|
|
1427
1427
|
const local = await resolveLocalPackageModules({
|
|
@@ -1845,4 +1845,4 @@ export {
|
|
|
1845
1845
|
createPackageBindingsLiteral,
|
|
1846
1846
|
fetchLocalPackageGraph
|
|
1847
1847
|
};
|
|
1848
|
-
//# sourceMappingURL=chunk-
|
|
1848
|
+
//# sourceMappingURL=chunk-7BGOL5PB.js.map
|
|
@@ -6,22 +6,22 @@ import {
|
|
|
6
6
|
OpenApiError,
|
|
7
7
|
openApiGet,
|
|
8
8
|
openApiRequest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SNXLFUYP.js";
|
|
10
10
|
import {
|
|
11
11
|
assertTokenSafeApiUrl,
|
|
12
12
|
capabilityProxyUrl,
|
|
13
13
|
readPackageVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XIZ7EZDP.js";
|
|
15
15
|
import {
|
|
16
16
|
storedCredentialsFromApiToken
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-X5L5M6AR.js";
|
|
18
18
|
import {
|
|
19
19
|
deleteStoredApiToken,
|
|
20
20
|
loadStoredApiToken
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AM2SBW3C.js";
|
|
22
22
|
import {
|
|
23
23
|
saveCredentials
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-N33Y3A4H.js";
|
|
25
25
|
import {
|
|
26
26
|
cliName,
|
|
27
27
|
defaultApiUrl,
|
|
@@ -731,7 +731,7 @@ async function authSetupGit(input) {
|
|
|
731
731
|
);
|
|
732
732
|
}
|
|
733
733
|
const resolveToken = input.resolveToken ?? (async () => {
|
|
734
|
-
const { ensureGitApiToken } = await import("./git-credential-
|
|
734
|
+
const { ensureGitApiToken } = await import("./git-credential-HFCBL3TZ.js");
|
|
735
735
|
const ensured = await ensureGitApiToken({
|
|
736
736
|
apiUrl,
|
|
737
737
|
mcpUrl,
|
|
@@ -951,4 +951,4 @@ export {
|
|
|
951
951
|
authRemoveGit,
|
|
952
952
|
formatAuthRemoveGitReport
|
|
953
953
|
};
|
|
954
|
-
//# sourceMappingURL=chunk-
|
|
954
|
+
//# sourceMappingURL=chunk-AIRKIBWV.js.map
|
|
@@ -2,8 +2,9 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
KeychainTimeoutError,
|
|
4
4
|
createFileBackend,
|
|
5
|
-
createKeyringEntry
|
|
6
|
-
|
|
5
|
+
createKeyringEntry,
|
|
6
|
+
fileCredentialStoreForced
|
|
7
|
+
} from "./chunk-N33Y3A4H.js";
|
|
7
8
|
import {
|
|
8
9
|
defaultApiUrl
|
|
9
10
|
} from "./chunk-NKH2L5RA.js";
|
|
@@ -49,6 +50,9 @@ function fileBackendFor(apiUrl, resolution) {
|
|
|
49
50
|
}
|
|
50
51
|
function resolveApiTokenBackend(apiUrl, preferred, resolution) {
|
|
51
52
|
if (preferred) return preferred;
|
|
53
|
+
if (!resolution?.createKeyring && fileCredentialStoreForced()) {
|
|
54
|
+
return fileBackendFor(apiUrl, resolution);
|
|
55
|
+
}
|
|
52
56
|
try {
|
|
53
57
|
return (resolution?.createKeyring ?? createApiTokenKeyringBackend)(apiUrl);
|
|
54
58
|
} catch {
|
|
@@ -102,4 +106,4 @@ export {
|
|
|
102
106
|
loadStoredApiToken,
|
|
103
107
|
deleteStoredApiToken
|
|
104
108
|
};
|
|
105
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-AM2SBW3C.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/api-token-store.ts"],
|
|
4
|
+
"mappings": "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",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-E4R3Y6MM.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveLocalExecuteBearer
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EKVVIFRW.js";
|
|
9
9
|
import {
|
|
10
10
|
formatToolResult
|
|
11
11
|
} from "./chunk-46IJPEID.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-MIT3TUWB.js";
|
|
24
24
|
import {
|
|
25
25
|
isRemoteDaemonCommand
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6ZF5N7YW.js";
|
|
27
27
|
import {
|
|
28
28
|
authBootstrap,
|
|
29
29
|
authBootstrapWithScopes,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
parseCliScopesFlag,
|
|
34
34
|
refreshGitCredentialHelperPinIfNeeded,
|
|
35
35
|
resolveCliTokenLifetime
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-AIRKIBWV.js";
|
|
37
37
|
import {
|
|
38
38
|
orgEnvVar,
|
|
39
39
|
orgSlugFromFlag
|
|
@@ -44,27 +44,27 @@ import {
|
|
|
44
44
|
import {
|
|
45
45
|
parseCredentialFlags,
|
|
46
46
|
readPackageVersion
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-XIZ7EZDP.js";
|
|
48
48
|
import {
|
|
49
49
|
cliBootstrapMintCall,
|
|
50
50
|
expectedPairedApiOrigin
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-UNRRMZM2.js";
|
|
52
52
|
import {
|
|
53
53
|
describeCliCredential,
|
|
54
54
|
noteActiveLoginCredential,
|
|
55
55
|
resetActiveCliCredential,
|
|
56
56
|
resolveCliCredential
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-X5L5M6AR.js";
|
|
58
58
|
import {
|
|
59
59
|
deleteStoredApiToken,
|
|
60
60
|
loadStoredApiToken
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-AM2SBW3C.js";
|
|
62
62
|
import {
|
|
63
63
|
deleteCredentials,
|
|
64
64
|
listStoredOrgs,
|
|
65
65
|
loadCredentialStore,
|
|
66
66
|
loadCredentials
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-N33Y3A4H.js";
|
|
68
68
|
import {
|
|
69
69
|
apiTokenEnvVar,
|
|
70
70
|
defaultApiUrl,
|
|
@@ -2136,7 +2136,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2136
2136
|
case "connect":
|
|
2137
2137
|
case "update": {
|
|
2138
2138
|
const apiUrl = earlyApiUrl;
|
|
2139
|
-
const { runExecutionContextCommand } = await import("./commands-
|
|
2139
|
+
const { runExecutionContextCommand } = await import("./commands-IELPAXVQ.js");
|
|
2140
2140
|
return await runExecutionContextCommand({
|
|
2141
2141
|
command: parsed.command,
|
|
2142
2142
|
positionals: parsed.positionals,
|
|
@@ -2170,7 +2170,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2170
2170
|
});
|
|
2171
2171
|
}
|
|
2172
2172
|
case "login": {
|
|
2173
|
-
const { login, loginWithDevice } = await import("./auth-
|
|
2173
|
+
const { login, loginWithDevice } = await import("./auth-CJGMSRPQ.js");
|
|
2174
2174
|
const openBrowser = parsed.values["no-browser"] !== true;
|
|
2175
2175
|
const lifetimeOption = typeof parsed.values.lifetime === "string" ? {
|
|
2176
2176
|
lifetime: parsed.values.lifetime === "short" ? "short" : "long"
|
|
@@ -2253,8 +2253,8 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2253
2253
|
formatOrgListHuman,
|
|
2254
2254
|
formatOrgListJson,
|
|
2255
2255
|
useOrg
|
|
2256
|
-
} = await import("./org-
|
|
2257
|
-
const { listStoredOrgs: listStoredOrgs2 } = await import("./store-
|
|
2256
|
+
} = await import("./org-ZPHE7DVE.js");
|
|
2257
|
+
const { listStoredOrgs: listStoredOrgs2 } = await import("./store-7AFDVRNS.js");
|
|
2258
2258
|
const action = parsed.positionals[0];
|
|
2259
2259
|
if (action === "list") {
|
|
2260
2260
|
const orgs = listStoredOrgs2(mcpUrl);
|
|
@@ -2423,7 +2423,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2423
2423
|
parseGitCredentialAction,
|
|
2424
2424
|
parseGitCredentialInput,
|
|
2425
2425
|
readGitCredentialStdin
|
|
2426
|
-
} = await import("./git-credential-
|
|
2426
|
+
} = await import("./git-credential-HFCBL3TZ.js");
|
|
2427
2427
|
const action = parseGitCredentialAction(parsed.positionals);
|
|
2428
2428
|
const raw = await readGitCredentialStdin(process.stdin);
|
|
2429
2429
|
const output = await handleGitCredential({
|
|
@@ -2448,7 +2448,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2448
2448
|
apiUrl: typeof parsed.values["api-url"] === "string" ? parsed.values["api-url"] : void 0
|
|
2449
2449
|
});
|
|
2450
2450
|
if (target === "mock") {
|
|
2451
|
-
const { ensureMockTarget } = await import("./mock-server-
|
|
2451
|
+
const { ensureMockTarget } = await import("./mock-server-MX2BMUBB.js");
|
|
2452
2452
|
const mock = await ensureMockTarget({
|
|
2453
2453
|
resetStorage: parsed.values["reset-storage"] === true,
|
|
2454
2454
|
...org ? { orgSlug: org } : {}
|
|
@@ -2483,7 +2483,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2483
2483
|
if (mock.started) await mock.server.close();
|
|
2484
2484
|
}
|
|
2485
2485
|
}
|
|
2486
|
-
const { runWhoami } = await import("./whoami-
|
|
2486
|
+
const { runWhoami } = await import("./whoami-A77EEULC.js");
|
|
2487
2487
|
return await runWhoami({
|
|
2488
2488
|
tokenValues,
|
|
2489
2489
|
mcpUrl,
|
|
@@ -2507,13 +2507,13 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2507
2507
|
let closeMock;
|
|
2508
2508
|
try {
|
|
2509
2509
|
if (target === "mock") {
|
|
2510
|
-
const { ensureMockTarget } = await import("./mock-server-
|
|
2510
|
+
const { ensureMockTarget } = await import("./mock-server-MX2BMUBB.js");
|
|
2511
2511
|
const mock = await ensureMockTarget({
|
|
2512
2512
|
resetStorage: parsed.values["reset-storage"] === true
|
|
2513
2513
|
});
|
|
2514
2514
|
apiUrl = mock.apiUrl;
|
|
2515
2515
|
closeMock = mock.started ? () => mock.server.close() : void 0;
|
|
2516
|
-
const { searchWithApiToken: searchWithApiToken2 } = await import("./open-api-client-
|
|
2516
|
+
const { searchWithApiToken: searchWithApiToken2 } = await import("./open-api-client-ZGLGMDKA.js");
|
|
2517
2517
|
const result2 = await searchWithApiToken2({
|
|
2518
2518
|
token: mock.token,
|
|
2519
2519
|
apiUrl,
|
|
@@ -2533,7 +2533,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2533
2533
|
...org ? { org } : {}
|
|
2534
2534
|
});
|
|
2535
2535
|
if (searchCredential?.token) {
|
|
2536
|
-
const { searchWithApiToken: searchWithApiToken2 } = await import("./open-api-client-
|
|
2536
|
+
const { searchWithApiToken: searchWithApiToken2 } = await import("./open-api-client-ZGLGMDKA.js");
|
|
2537
2537
|
const result2 = await searchWithApiToken2({
|
|
2538
2538
|
token: searchCredential.token,
|
|
2539
2539
|
apiUrl,
|
|
@@ -2546,14 +2546,14 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2546
2546
|
write(formatToolResult(result2, json));
|
|
2547
2547
|
return result2.isError ? 1 : 0;
|
|
2548
2548
|
}
|
|
2549
|
-
const { ensureOpenApiCredentials } = await import("./auth-
|
|
2549
|
+
const { ensureOpenApiCredentials } = await import("./auth-CJGMSRPQ.js");
|
|
2550
2550
|
const credentials = await ensureOpenApiCredentials({
|
|
2551
2551
|
mcpUrl,
|
|
2552
2552
|
org,
|
|
2553
2553
|
apiUrl
|
|
2554
2554
|
});
|
|
2555
2555
|
noteActiveLoginCredential({ login: credentials, purpose: "session" });
|
|
2556
|
-
const { searchWithApiToken } = await import("./open-api-client-
|
|
2556
|
+
const { searchWithApiToken } = await import("./open-api-client-ZGLGMDKA.js");
|
|
2557
2557
|
const result = await searchWithApiToken({
|
|
2558
2558
|
token: credentials.accessToken,
|
|
2559
2559
|
apiUrl,
|
|
@@ -2612,7 +2612,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2612
2612
|
(value) => typeof value === "string"
|
|
2613
2613
|
) : typeof parsed.values.credential === "string" ? [parsed.values.credential] : void 0
|
|
2614
2614
|
);
|
|
2615
|
-
const executeRouting = (await import("./remote-execute-
|
|
2615
|
+
const executeRouting = (await import("./remote-execute-SOSMXVTG.js")).executeRoutingFromFlags(parsed.values);
|
|
2616
2616
|
if (executeRouting && local) {
|
|
2617
2617
|
writeErr(
|
|
2618
2618
|
"--context, --fallback, --requires, and --chain route cloud execute; drop --local.\n"
|
|
@@ -2631,7 +2631,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2631
2631
|
apiUrl: typeof parsed.values["api-url"] === "string" ? parsed.values["api-url"] : void 0
|
|
2632
2632
|
});
|
|
2633
2633
|
let apiUrl = prodApiUrl;
|
|
2634
|
-
const { parsePassthroughHosts } = await import("./mock-fetch-gateway-
|
|
2634
|
+
const { parsePassthroughHosts } = await import("./mock-fetch-gateway-Q6P723KA.js");
|
|
2635
2635
|
const passthroughHosts = parsePassthroughHosts(
|
|
2636
2636
|
typeof parsed.values.passthrough === "string" ? parsed.values.passthrough : void 0
|
|
2637
2637
|
);
|
|
@@ -2659,7 +2659,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2659
2659
|
}
|
|
2660
2660
|
try {
|
|
2661
2661
|
if (target === "mock") {
|
|
2662
|
-
const { ensureMockTarget } = await import("./mock-server-
|
|
2662
|
+
const { ensureMockTarget } = await import("./mock-server-MX2BMUBB.js");
|
|
2663
2663
|
const mock = await ensureMockTarget({
|
|
2664
2664
|
resetStorage: parsed.values["reset-storage"] === true,
|
|
2665
2665
|
packageId: localPackageRun ? `local:${localPackageRun.kodyId}` : void 0,
|
|
@@ -2668,7 +2668,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2668
2668
|
apiUrl = mock.apiUrl;
|
|
2669
2669
|
mockToken = mock.token;
|
|
2670
2670
|
closeMock = mock.started ? () => mock.server.close() : void 0;
|
|
2671
|
-
const { tryResolveMockDepResolve } = await import("./mock-dep-resolve-
|
|
2671
|
+
const { tryResolveMockDepResolve } = await import("./mock-dep-resolve-42AMGI4V.js");
|
|
2672
2672
|
mockDepResolve = await tryResolveMockDepResolve({
|
|
2673
2673
|
tokenValues,
|
|
2674
2674
|
apiUrl: prodApiUrl,
|
|
@@ -2677,7 +2677,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2677
2677
|
});
|
|
2678
2678
|
}
|
|
2679
2679
|
if (localPackageRun) {
|
|
2680
|
-
const { buildLocalPackageContext, runLocalPackageModule } = await import("./local-package-run-
|
|
2680
|
+
const { buildLocalPackageContext, runLocalPackageModule } = await import("./local-package-run-LZTXOFKQ.js");
|
|
2681
2681
|
const result2 = await runLocalPackageModule({
|
|
2682
2682
|
modulePath: localPackageRun.modulePath,
|
|
2683
2683
|
params: args.params,
|
|
@@ -2722,7 +2722,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2722
2722
|
packageRootForMocks = void 0;
|
|
2723
2723
|
}
|
|
2724
2724
|
}
|
|
2725
|
-
const result = local ? await (await import("./local-execute-
|
|
2725
|
+
const result = local ? await (await import("./local-execute-FAALT4AL.js")).runLocalExecute({
|
|
2726
2726
|
code: args.code,
|
|
2727
2727
|
...modulePath !== void 0 ? { modulePath } : {},
|
|
2728
2728
|
params: args.params,
|
|
@@ -2744,7 +2744,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2744
2744
|
allowPrivateNetwork: parsed.values["allow-private-network"] === true,
|
|
2745
2745
|
onStatus: (message) => writeErr(`${message}
|
|
2746
2746
|
`)
|
|
2747
|
-
}) : cloudToken ? await (await import("./remote-execute-
|
|
2747
|
+
}) : cloudToken ? await (await import("./remote-execute-SOSMXVTG.js")).runRemoteExecuteWithToken({
|
|
2748
2748
|
code: typeof args.code === "string" ? args.code : void 0,
|
|
2749
2749
|
params: args.params,
|
|
2750
2750
|
conversationId: args.conversationId,
|
|
@@ -2754,7 +2754,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2754
2754
|
apiUrl,
|
|
2755
2755
|
...org ? { org } : {}
|
|
2756
2756
|
}) : await (async () => {
|
|
2757
|
-
const { ensureOpenApiCredentials } = await import("./auth-
|
|
2757
|
+
const { ensureOpenApiCredentials } = await import("./auth-CJGMSRPQ.js");
|
|
2758
2758
|
const session = await ensureOpenApiCredentials({
|
|
2759
2759
|
mcpUrl,
|
|
2760
2760
|
org,
|
|
@@ -2764,7 +2764,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2764
2764
|
login: session,
|
|
2765
2765
|
purpose: "session"
|
|
2766
2766
|
});
|
|
2767
|
-
return (await import("./remote-execute-
|
|
2767
|
+
return (await import("./remote-execute-SOSMXVTG.js")).runRemoteExecuteWithToken({
|
|
2768
2768
|
code: typeof args.code === "string" ? args.code : void 0,
|
|
2769
2769
|
params: args.params,
|
|
2770
2770
|
conversationId: args.conversationId,
|
|
@@ -2779,7 +2779,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2779
2779
|
return result.isError ? 1 : 0;
|
|
2780
2780
|
} catch (error) {
|
|
2781
2781
|
if (json && local) {
|
|
2782
|
-
const { LocalPackageGraphError, packageGraphErrorToolResult } = await import("./local-package-graph-
|
|
2782
|
+
const { LocalPackageGraphError, packageGraphErrorToolResult } = await import("./local-package-graph-QSRKLQIP.js");
|
|
2783
2783
|
if (error instanceof LocalPackageGraphError) {
|
|
2784
2784
|
const redacted = redactError(error).message;
|
|
2785
2785
|
const result = packageGraphErrorToolResult(error);
|
|
@@ -2810,7 +2810,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2810
2810
|
runDevServe,
|
|
2811
2811
|
runDevWebhook,
|
|
2812
2812
|
tryAttachedDevFetch
|
|
2813
|
-
} = await import("./dev-command-
|
|
2813
|
+
} = await import("./dev-command-YBFFV4LT.js");
|
|
2814
2814
|
const target = resolveTarget({
|
|
2815
2815
|
command: "dev",
|
|
2816
2816
|
flag: typeof parsed.values.target === "string" ? parsed.values.target : void 0
|
|
@@ -2853,8 +2853,8 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2853
2853
|
{ callOpenApiOperation, formatOpenApiHttpDebugLine },
|
|
2854
2854
|
{ parsePackageCheckResult, PublishChecksAuthError }
|
|
2855
2855
|
] = await Promise.all([
|
|
2856
|
-
import("./open-api-client-
|
|
2857
|
-
import("./dev-command-
|
|
2856
|
+
import("./open-api-client-ZGLGMDKA.js"),
|
|
2857
|
+
import("./dev-command-YBFFV4LT.js")
|
|
2858
2858
|
]);
|
|
2859
2859
|
let token2;
|
|
2860
2860
|
try {
|
|
@@ -2971,13 +2971,13 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
2971
2971
|
purpose: "kody dev",
|
|
2972
2972
|
...org ? { org } : {}
|
|
2973
2973
|
}) : "mock";
|
|
2974
|
-
const mockDepResolve = target === "mock" ? await (await import("./mock-dep-resolve-
|
|
2974
|
+
const mockDepResolve = target === "mock" ? await (await import("./mock-dep-resolve-42AMGI4V.js")).tryResolveMockDepResolve({
|
|
2975
2975
|
tokenValues,
|
|
2976
2976
|
apiUrl: prodApiUrl,
|
|
2977
2977
|
mcpUrl,
|
|
2978
2978
|
...org ? { org } : {}
|
|
2979
2979
|
}) : void 0;
|
|
2980
|
-
const { parsePassthroughHosts } = await import("./mock-fetch-gateway-
|
|
2980
|
+
const { parsePassthroughHosts } = await import("./mock-fetch-gateway-Q6P723KA.js");
|
|
2981
2981
|
const passthroughHosts = parsePassthroughHosts(
|
|
2982
2982
|
typeof parsed.values.passthrough === "string" ? parsed.values.passthrough : void 0
|
|
2983
2983
|
);
|
|
@@ -3104,7 +3104,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
3104
3104
|
const apiUrl = apiUrlFrom({
|
|
3105
3105
|
apiUrl: typeof parsed.values["api-url"] === "string" ? parsed.values["api-url"] : void 0
|
|
3106
3106
|
});
|
|
3107
|
-
const local = await import("./local-secrets-
|
|
3107
|
+
const local = await import("./local-secrets-LMXJBIPU.js");
|
|
3108
3108
|
const token = () => accessTokenForOpenApi({
|
|
3109
3109
|
tokenValues: tokenFlagValues(parsed.values),
|
|
3110
3110
|
apiUrl,
|
|
@@ -3179,7 +3179,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
3179
3179
|
const params = parseApiParamsJson(
|
|
3180
3180
|
typeof parsed.values.params === "string" ? parsed.values.params : void 0
|
|
3181
3181
|
);
|
|
3182
|
-
const { callOpenApiOperation } = await import("./open-api-client-
|
|
3182
|
+
const { callOpenApiOperation } = await import("./open-api-client-ZGLGMDKA.js");
|
|
3183
3183
|
const result = await callOpenApiOperation({
|
|
3184
3184
|
operationId,
|
|
3185
3185
|
params,
|
|
@@ -3214,7 +3214,7 @@ async function dispatch(parsed, write, writeErr, stdoutIsTTY) {
|
|
|
3214
3214
|
mcpUrl,
|
|
3215
3215
|
org
|
|
3216
3216
|
});
|
|
3217
|
-
const { callOpenApiOperation: callOpenApiOperation2 } = await import("./open-api-client-
|
|
3217
|
+
const { callOpenApiOperation: callOpenApiOperation2 } = await import("./open-api-client-ZGLGMDKA.js");
|
|
3218
3218
|
write(
|
|
3219
3219
|
await runPackageCollaboratorPlan({
|
|
3220
3220
|
plan,
|
|
@@ -3240,7 +3240,7 @@ ${packageCollaboratorUsage}`
|
|
|
3240
3240
|
positional: parsed.positionals[1],
|
|
3241
3241
|
paramsJson: typeof parsed.values.params === "string" ? parsed.values.params : void 0
|
|
3242
3242
|
});
|
|
3243
|
-
const { callOpenApiOperation } = await import("./open-api-client-
|
|
3243
|
+
const { callOpenApiOperation } = await import("./open-api-client-ZGLGMDKA.js");
|
|
3244
3244
|
const publishToken = await accessTokenForOpenApi({
|
|
3245
3245
|
tokenValues,
|
|
3246
3246
|
apiUrl,
|
|
@@ -3256,7 +3256,7 @@ ${packageCollaboratorUsage}`
|
|
|
3256
3256
|
});
|
|
3257
3257
|
const buildMode = typeof parsed.values.build === "string" ? parsed.values.build : null;
|
|
3258
3258
|
const publishTarget = await resolvePackagePublishTarget(params, call);
|
|
3259
|
-
const { runPublishWithBuild } = await import("./publish-offload-
|
|
3259
|
+
const { runPublishWithBuild } = await import("./publish-offload-QFBYH3HO.js");
|
|
3260
3260
|
const result = await runPublishWithBuild({
|
|
3261
3261
|
build: buildMode,
|
|
3262
3262
|
context: typeof parsed.values.context === "string" ? parsed.values.context : null,
|
|
@@ -3412,7 +3412,7 @@ function attachExecuteCommonArgs(args, input) {
|
|
|
3412
3412
|
return args;
|
|
3413
3413
|
}
|
|
3414
3414
|
async function runAuthSetupGit(input) {
|
|
3415
|
-
const { authSetupGit } = await import("./setup-git-
|
|
3415
|
+
const { authSetupGit } = await import("./setup-git-QGJOYTHH.js");
|
|
3416
3416
|
const apiUrl = apiUrlFrom({
|
|
3417
3417
|
apiUrl: typeof input.values["api-url"] === "string" ? input.values["api-url"] : void 0
|
|
3418
3418
|
});
|
|
@@ -3444,7 +3444,7 @@ async function runAuthSetupGit(input) {
|
|
|
3444
3444
|
return 0;
|
|
3445
3445
|
}
|
|
3446
3446
|
async function runAuthRemoveGit(input) {
|
|
3447
|
-
const { authRemoveGit, formatAuthRemoveGitReport } = await import("./setup-git-
|
|
3447
|
+
const { authRemoveGit, formatAuthRemoveGitReport } = await import("./setup-git-QGJOYTHH.js");
|
|
3448
3448
|
const apiUrl = apiUrlFrom({
|
|
3449
3449
|
apiUrl: typeof input.values["api-url"] === "string" ? input.values["api-url"] : void 0
|
|
3450
3450
|
});
|
|
@@ -3466,7 +3466,7 @@ function bootstrapMinter(input) {
|
|
|
3466
3466
|
});
|
|
3467
3467
|
if (minter?.token) {
|
|
3468
3468
|
const token = minter.token;
|
|
3469
|
-
const { callOpenApiOperation } = await import("./open-api-client-
|
|
3469
|
+
const { callOpenApiOperation } = await import("./open-api-client-ZGLGMDKA.js");
|
|
3470
3470
|
try {
|
|
3471
3471
|
return await callOpenApiOperation({
|
|
3472
3472
|
token,
|
|
@@ -3485,13 +3485,13 @@ function bootstrapMinter(input) {
|
|
|
3485
3485
|
}
|
|
3486
3486
|
}
|
|
3487
3487
|
if (minter) {
|
|
3488
|
-
const { ensureOpenApiCredentials } = await import("./auth-
|
|
3488
|
+
const { ensureOpenApiCredentials } = await import("./auth-CJGMSRPQ.js");
|
|
3489
3489
|
const session = await ensureOpenApiCredentials({
|
|
3490
3490
|
mcpUrl: input.mcpUrl,
|
|
3491
3491
|
apiUrl: input.apiUrl,
|
|
3492
3492
|
...input.org ? { org: input.org } : {}
|
|
3493
3493
|
});
|
|
3494
|
-
const { callOpenApiOperation } = await import("./open-api-client-
|
|
3494
|
+
const { callOpenApiOperation } = await import("./open-api-client-ZGLGMDKA.js");
|
|
3495
3495
|
return callOpenApiOperation({
|
|
3496
3496
|
operationId: cliCredentialBootstrapOperationId,
|
|
3497
3497
|
params,
|
|
@@ -3518,7 +3518,7 @@ async function accessTokenForOpenApi(input) {
|
|
|
3518
3518
|
...input.org ? { org: input.org } : {}
|
|
3519
3519
|
});
|
|
3520
3520
|
if (credential?.token) return credential.token;
|
|
3521
|
-
const { ensureOpenApiCredentials } = await import("./auth-
|
|
3521
|
+
const { ensureOpenApiCredentials } = await import("./auth-CJGMSRPQ.js");
|
|
3522
3522
|
const session = await ensureOpenApiCredentials({
|
|
3523
3523
|
mcpUrl: input.mcpUrl,
|
|
3524
3524
|
apiUrl: input.apiUrl,
|
|
@@ -3616,4 +3616,4 @@ export {
|
|
|
3616
3616
|
resolvePackagePublishTarget,
|
|
3617
3617
|
supersedeStoredApiTokenAfterLogin
|
|
3618
3618
|
};
|
|
3619
|
-
//# sourceMappingURL=chunk-
|
|
3619
|
+
//# sourceMappingURL=chunk-AVP5XMQ7.js.map
|