@glasser-ai/cli 0.1.24 → 0.1.26
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/glasser.js +9 -15
- package/package.json +1 -1
package/dist/glasser.js
CHANGED
|
@@ -64265,7 +64265,13 @@ var PriceRule = Schema_exports.Union([
|
|
|
64265
64265
|
Schema_exports.Struct({
|
|
64266
64266
|
type: Schema_exports.Literal("per_result"),
|
|
64267
64267
|
per_result_usd: UsdAmount,
|
|
64268
|
-
cap_usd: UsdAmount
|
|
64268
|
+
cap_usd: UsdAmount,
|
|
64269
|
+
/**
|
|
64270
|
+
* 第二档:匹配上、Provider 也收了钱,但没带回要的那个字段的那一行。
|
|
64271
|
+
* 缺省(不出现)= 这一支只有一档,行为与从前逐字相同。
|
|
64272
|
+
* 总额仍封在 `cap_usd` 下,所以最大 Charge 在调用之前依然已知。
|
|
64273
|
+
*/
|
|
64274
|
+
partial_usd: Schema_exports.optionalKey(UsdAmount)
|
|
64269
64275
|
})
|
|
64270
64276
|
]);
|
|
64271
64277
|
var Price = Schema_exports.Struct({
|
|
@@ -65507,19 +65513,6 @@ ${kvBlock([
|
|
|
65507
65513
|
["Available", `$${balance3.available_usd}`]
|
|
65508
65514
|
])}`
|
|
65509
65515
|
);
|
|
65510
|
-
const catalog = yield* call(
|
|
65511
|
-
client.Endpoints["endpoints-search"]({ payload: { limit: 3 } })
|
|
65512
|
-
);
|
|
65513
|
-
if (catalog.data.length > 0) {
|
|
65514
|
-
yield* Console_exports.log("\nTry one of these:");
|
|
65515
|
-
for (const endpoint2 of catalog.data) {
|
|
65516
|
-
yield* Console_exports.log(
|
|
65517
|
-
` ${endpoint2.name} \u2014 ${priceLine(endpoint2.price)}, ${modeLine(endpoint2)}
|
|
65518
|
-
glasser inspect -p ${endpoint2.provider} -e ${endpoint2.endpoint}`
|
|
65519
|
-
);
|
|
65520
|
-
}
|
|
65521
|
-
}
|
|
65522
|
-
yield* Console_exports.log("\nYou're ready.");
|
|
65523
65516
|
}).pipe(
|
|
65524
65517
|
Effect_exports.catch(
|
|
65525
65518
|
() => Console_exports.error(
|
|
@@ -65527,6 +65520,7 @@ ${kvBlock([
|
|
|
65527
65520
|
)
|
|
65528
65521
|
)
|
|
65529
65522
|
);
|
|
65523
|
+
yield* Console_exports.error('\nNext: glasser search -q "<what you need>"');
|
|
65530
65524
|
})
|
|
65531
65525
|
).pipe(Command_exports.withDescription("Log in through the browser and store a Key"));
|
|
65532
65526
|
|
|
@@ -65895,7 +65889,7 @@ var runs2 = Command_exports.make("runs").pipe(
|
|
|
65895
65889
|
// package.json
|
|
65896
65890
|
var package_default = {
|
|
65897
65891
|
name: "@glasser-ai/cli",
|
|
65898
|
-
version: "0.1.
|
|
65892
|
+
version: "0.1.26",
|
|
65899
65893
|
description: "Search, inspect and run paid API endpoints with one Key \u2014 the Glasser CLI",
|
|
65900
65894
|
license: "MIT",
|
|
65901
65895
|
type: "module",
|