@marcusrbrown/infra 0.19.0 → 0.21.0
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 +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -6949,7 +6949,7 @@ import { goke } from "goke";
|
|
|
6949
6949
|
// package.json
|
|
6950
6950
|
var package_default = {
|
|
6951
6951
|
name: "@marcusrbrown/infra",
|
|
6952
|
-
version: "0.
|
|
6952
|
+
version: "0.21.0",
|
|
6953
6953
|
description: "Infrastructure management CLI \u2014 deploy automation, health checks, and MCP bridge",
|
|
6954
6954
|
keywords: [
|
|
6955
6955
|
"infra",
|
|
@@ -7142,7 +7142,7 @@ async function promptValue(promise, cancelMessage) {
|
|
|
7142
7142
|
}
|
|
7143
7143
|
function buildApiKeyValue(keyName) {
|
|
7144
7144
|
const slug = (keyName.trim().toLowerCase().match(/[a-z0-9]+/g) ?? []).join("-").slice(0, 24);
|
|
7145
|
-
const random = crypto.randomUUID().
|
|
7145
|
+
const random = crypto.randomUUID().replaceAll("-", "");
|
|
7146
7146
|
return `sk-${slug || "cliproxy"}-${random}`;
|
|
7147
7147
|
}
|
|
7148
7148
|
function extractErrorMessage(error) {
|
|
@@ -7842,7 +7842,7 @@ async function verifyModelsAvailable(baseUrl, key, providers, model) {
|
|
|
7842
7842
|
}
|
|
7843
7843
|
const slashIndex = model.indexOf("/");
|
|
7844
7844
|
const bareId = slashIndex === -1 ? model : model.slice(slashIndex + 1);
|
|
7845
|
-
const providerPrefix = slashIndex
|
|
7845
|
+
const providerPrefix = slashIndex === -1 ? undefined : model.slice(0, slashIndex);
|
|
7846
7846
|
const modelPresent = entries.some((e) => e.id === bareId || e.id === model);
|
|
7847
7847
|
if (!modelPresent) {
|
|
7848
7848
|
const matchingIds = providerPrefix ? entries.filter((e) => entryMatchesProvider(e, providerPrefix)).map((e) => e.id) : entries.map((e) => e.id);
|