create-op-node 0.10.4 → 0.10.5
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/cli.js +5 -5
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -487,7 +487,7 @@ function generatePgsodiumRootKey() {
|
|
|
487
487
|
}
|
|
488
488
|
function base64url(input) {
|
|
489
489
|
const buf = typeof input === "string" ? Buffer.from(input) : input;
|
|
490
|
-
return buf.toString("base64").replace(
|
|
490
|
+
return buf.toString("base64").replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
|
|
491
491
|
}
|
|
492
492
|
function generatePostgresPassword() {
|
|
493
493
|
return base64url(randomBytes(32));
|
|
@@ -2601,8 +2601,8 @@ async function selectLlmModel(opts) {
|
|
|
2601
2601
|
);
|
|
2602
2602
|
}
|
|
2603
2603
|
function estimatedPullTime(model) {
|
|
2604
|
-
if (/\d
|
|
2605
|
-
const match = /(\d
|
|
2604
|
+
if (/\d{1,3}x\d{1,3}b/i.test(model)) return "~60+ min for frontier MoE";
|
|
2605
|
+
const match = /(\d{1,4})b\b/i.exec(model);
|
|
2606
2606
|
if (!match) return "time depends on model size";
|
|
2607
2607
|
const size = Number.parseInt(match[1], 10);
|
|
2608
2608
|
if (size <= 13) return "~3\u20135 min for \u2264 13B-class";
|
|
@@ -4132,7 +4132,7 @@ var SOURCE_TYPES = [
|
|
|
4132
4132
|
var SLUG_RE = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
4133
4133
|
var STATE_CODE_RE = /^[A-Z]{2}$/;
|
|
4134
4134
|
function slugify(input) {
|
|
4135
|
-
return input.normalize("NFKD").replace(/[̀-ͯ]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(
|
|
4135
|
+
return input.normalize("NFKD").replace(/[̀-ͯ]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
4136
4136
|
}
|
|
4137
4137
|
function isValidSlug(v) {
|
|
4138
4138
|
return SLUG_RE.test(v);
|
|
@@ -4492,7 +4492,7 @@ async function looksLikeRegionsRepo(dir) {
|
|
|
4492
4492
|
}
|
|
4493
4493
|
|
|
4494
4494
|
// src/cli.ts
|
|
4495
|
-
var VERSION = "0.10.
|
|
4495
|
+
var VERSION = "0.10.5";
|
|
4496
4496
|
var program = new Command();
|
|
4497
4497
|
program.name("create-op-node").description(
|
|
4498
4498
|
"Interactive bootstrap for an Opus Populi federation node.\nCloudflare infrastructure \u2192 Mac Studio \u2192 live public API."
|