@pollinations/cli 0.1.81 → 0.1.83
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.js +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var init_package = __esm({
|
|
|
14
14
|
"package.json"() {
|
|
15
15
|
package_default = {
|
|
16
16
|
name: "@pollinations/cli",
|
|
17
|
-
version: "0.1.
|
|
17
|
+
version: "0.1.83",
|
|
18
18
|
description: "The Pollinations CLI \u2014 for humans, AI agents, and everything in between",
|
|
19
19
|
type: "module",
|
|
20
20
|
bin: {
|
|
@@ -6044,7 +6044,9 @@ var modelsCommand = new Command20("models").description(
|
|
|
6044
6044
|
);
|
|
6045
6045
|
}
|
|
6046
6046
|
const rows = await fetchModelStats(windowMinutes);
|
|
6047
|
-
const
|
|
6047
|
+
const filtered = opts.type !== "all" || params.size || opts.voices;
|
|
6048
|
+
if (!opts.reliability) params.set("reliability", "all");
|
|
6049
|
+
const names = filtered ? new Set((await listModels()).map((m) => m.name)) : void 0;
|
|
6048
6050
|
const valid = rows.filter(
|
|
6049
6051
|
(r) => r.model !== "undefined" && Number(r.total_requests ?? 0) > 1 && (!names || names.has(String(r.model)))
|
|
6050
6052
|
);
|
|
@@ -6908,14 +6910,17 @@ var sandboxCommand = new Command23("sandbox").description("E2B sandboxes billed
|
|
|
6908
6910
|
async (template, { timeout }) => {
|
|
6909
6911
|
requireKey();
|
|
6910
6912
|
try {
|
|
6911
|
-
const { sandboxID } = await createSandbox(
|
|
6913
|
+
const { sandboxID, notice } = await createSandbox(
|
|
6912
6914
|
template,
|
|
6913
6915
|
timeout
|
|
6914
6916
|
);
|
|
6915
6917
|
try {
|
|
6916
6918
|
setupSsh();
|
|
6917
6919
|
} catch (err) {
|
|
6918
|
-
printResult({
|
|
6920
|
+
printResult({
|
|
6921
|
+
id: sandboxID,
|
|
6922
|
+
...notice && { notice }
|
|
6923
|
+
});
|
|
6919
6924
|
fail(
|
|
6920
6925
|
`Sandbox ${sandboxID} created, but failed to set up ssh`,
|
|
6921
6926
|
err
|
|
@@ -6926,7 +6931,8 @@ var sandboxCommand = new Command23("sandbox").description("E2B sandboxes billed
|
|
|
6926
6931
|
);
|
|
6927
6932
|
printResult({
|
|
6928
6933
|
id: sandboxID,
|
|
6929
|
-
ssh: `ssh ${sandboxID}.polli
|
|
6934
|
+
ssh: `ssh ${sandboxID}.polli`,
|
|
6935
|
+
...notice && { notice }
|
|
6930
6936
|
});
|
|
6931
6937
|
} catch (err) {
|
|
6932
6938
|
fail("Failed to create sandbox", err);
|