@odla-ai/cli 0.38.2 → 0.38.3
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/dist/bin.cjs +10 -6
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-HETCZVFB.js → chunk-WJAN5CZ2.js} +10 -7
- package/dist/chunk-WJAN5CZ2.js.map +1 -0
- package/dist/{cli-LGYDXY5R.js → cli-A5R2DMM4.js} +2 -2
- package/dist/index.cjs +9 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-HETCZVFB.js.map +0 -1
- /package/dist/{cli-LGYDXY5R.js.map → cli-A5R2DMM4.js.map} +0 -0
package/dist/bin.js
CHANGED
|
@@ -174,7 +174,7 @@ function absoluteEntryPath(entryPath) {
|
|
|
174
174
|
|
|
175
175
|
// src/bin.ts
|
|
176
176
|
var argv = process.argv.slice(2);
|
|
177
|
-
requireCurrentCliForProvision(argv).then(() => requireCoherentProvisionRuntime(argv)).then(async () => (await import("./cli-
|
|
177
|
+
requireCurrentCliForProvision(argv).then(() => requireCoherentProvisionRuntime(argv)).then(async () => (await import("./cli-A5R2DMM4.js")).runCli()).catch((err) => {
|
|
178
178
|
console.error(redactSecrets(`odla-ai: ${err instanceof Error ? err.message : String(err)}`));
|
|
179
179
|
process.exitCode = exitCodeFor(err);
|
|
180
180
|
});
|
|
@@ -9677,7 +9677,8 @@ async function codeConnect(options) {
|
|
|
9677
9677
|
);
|
|
9678
9678
|
try {
|
|
9679
9679
|
const descriptor2 = localSource.descriptor;
|
|
9680
|
-
const
|
|
9680
|
+
const device = options.getToken ? null : readDeviceCredential(platform);
|
|
9681
|
+
const authorization = device ? (await mintDeviceSession(platform, device, doFetch)).token : await (options.getToken ?? getScopedPlatformToken)({
|
|
9681
9682
|
platform,
|
|
9682
9683
|
scope: "app:code:host:connect",
|
|
9683
9684
|
email: options.email,
|
|
@@ -9691,7 +9692,7 @@ async function codeConnect(options) {
|
|
|
9691
9692
|
const target = appId ? { appId } : { repository };
|
|
9692
9693
|
const response2 = await doFetch(`${platform}/registry/code/hosts/connect`, {
|
|
9693
9694
|
method: "POST",
|
|
9694
|
-
headers: { authorization: `Bearer ${
|
|
9695
|
+
headers: { authorization: `Bearer ${authorization}`, "content-type": "application/json" },
|
|
9695
9696
|
body: JSON.stringify({ ...target, env: appEnv, name: hostName, platform: hostPlatform, slots }),
|
|
9696
9697
|
redirect: "error",
|
|
9697
9698
|
signal: options.signal
|
|
@@ -10592,10 +10593,12 @@ Safety:
|
|
|
10592
10593
|
release. A confirmed stale client stops with a safe npx rerun command; a
|
|
10593
10594
|
workspace-linked client also identifies the worktree that must be updated.
|
|
10594
10595
|
Run Code from a GitHub checkout already connected to an app in Studio; an
|
|
10595
|
-
odla.config.mjs may select the app explicitly but is not required.
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
"code connect"
|
|
10596
|
+
odla.config.mjs may select the app explicitly but is not required. With an
|
|
10597
|
+
enrolled code.session device, the Studio repository selection authorizes the
|
|
10598
|
+
host's first connection and reconnects without another human approval. Without
|
|
10599
|
+
an enrolled device, "code connect" falls back to the reviewed handshake. Host
|
|
10600
|
+
credential hashes live in odla-ai/db; the credential itself is never written
|
|
10601
|
+
under .odla/, exists only in the foreground process, and rotates on reconnect.
|
|
10599
10602
|
"code repository bind" takes owner/name and resolves the two GitHub integers the
|
|
10600
10603
|
bind route wants across every installation you have, refusing an ambiguous match
|
|
10601
10604
|
rather than choosing one \u2014 the same repository name under two organizations is
|
|
@@ -15408,4 +15411,4 @@ export {
|
|
|
15408
15411
|
isTerminalHostedSecurityStatus,
|
|
15409
15412
|
runCli
|
|
15410
15413
|
};
|
|
15411
|
-
//# sourceMappingURL=chunk-
|
|
15414
|
+
//# sourceMappingURL=chunk-WJAN5CZ2.js.map
|