replicas-cli 0.3.80 → 0.3.82
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/index.cjs +6 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -28646,7 +28646,7 @@ var headlessAgentRequestSchema = external_exports.object({
|
|
|
28646
28646
|
});
|
|
28647
28647
|
|
|
28648
28648
|
// ../shared/src/cli-version.ts
|
|
28649
|
-
var CLI_VERSION = "0.3.
|
|
28649
|
+
var CLI_VERSION = "0.3.82";
|
|
28650
28650
|
|
|
28651
28651
|
// ../shared/src/version.ts
|
|
28652
28652
|
function compareVersions(v1, v2) {
|
|
@@ -30732,14 +30732,14 @@ var import_crypto = require("crypto");
|
|
|
30732
30732
|
function generatePkceCodes() {
|
|
30733
30733
|
const verifierBytes = (0, import_crypto.randomBytes)(32);
|
|
30734
30734
|
const codeVerifier = verifierBytes.toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
30735
|
-
const hash2 = (0, import_crypto.createHash)("sha256");
|
|
30736
|
-
hash2.update(codeVerifier);
|
|
30737
|
-
const codeChallenge = hash2.digest("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
30738
30735
|
return {
|
|
30739
30736
|
codeVerifier,
|
|
30740
|
-
codeChallenge
|
|
30737
|
+
codeChallenge: pkceChallenge(codeVerifier)
|
|
30741
30738
|
};
|
|
30742
30739
|
}
|
|
30740
|
+
function pkceChallenge(codeVerifier) {
|
|
30741
|
+
return (0, import_crypto.createHash)("sha256").update(codeVerifier).digest("base64url");
|
|
30742
|
+
}
|
|
30743
30743
|
function generateState2() {
|
|
30744
30744
|
return (0, import_crypto.randomBytes)(16).toString("hex");
|
|
30745
30745
|
}
|
|
@@ -32169,7 +32169,7 @@ async function replicaCreateCommand(name, options) {
|
|
|
32169
32169
|
let replicaName = name;
|
|
32170
32170
|
let message2 = options.message;
|
|
32171
32171
|
const environmentInput = options.environment?.trim();
|
|
32172
|
-
let selectedEnvironmentId = environmentInput === "global" ?
|
|
32172
|
+
let selectedEnvironmentId = environmentInput === "global" ? envResponse.base_environment_id ?? void 0 : environmentInput && await resolveEnvironmentId(environmentInput);
|
|
32173
32173
|
let codingAgent = parseReplicaAgent(options.agent);
|
|
32174
32174
|
if (replicaName && /\s/.test(replicaName)) {
|
|
32175
32175
|
throw new Error("Replica name cannot contain spaces.");
|