@use-aistack/cli 0.12.1 → 0.12.2

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 CHANGED
@@ -348,7 +348,7 @@ function apiEquivalentCost(modelKey, t, atMs) {
348
348
  }
349
349
 
350
350
  // src/version.ts
351
- var CLI_VERSION = true ? "0.12.1" : "0.0.0-dev";
351
+ var CLI_VERSION = true ? "0.12.2" : "0.0.0-dev";
352
352
 
353
353
  // src/api.ts
354
354
  var BASE_URL = process.env.AISTACK_URL || "https://aistack.to";
@@ -7436,18 +7436,8 @@ function withheldCount(payload) {
7436
7436
  }
7437
7437
  function buildGateDialog(ctx) {
7438
7438
  const { payloads, keptPrivate } = ctx.body;
7439
- const tokens = payloads.reduce((a, p8) => a + p8.activity.totalTokens, 0);
7440
- const usds = payloads.map((p8) => totalUSD(p8)).filter((u) => u !== null);
7441
- const usd = usds.length > 0 ? usds.reduce((a, b) => a + b, 0) : null;
7442
- const days = payloads[0]?.window.days ?? 0;
7443
- const facts = [
7444
- `${fmtTokens(tokens)} tokens`,
7445
- `${days}-day profile`,
7446
- ...ctx.body.measuredDays && ctx.body.measuredDays.days.length !== days ? [`${ctx.body.measuredDays.days.length} historical days`] : [],
7447
- ...usd === null ? [] : [fmtUSD(usd)]
7448
- ].join(" \xB7 ");
7449
7439
  const n = payloads.reduce((a, p8) => a + withheldCount(p8), 0);
7450
- const lines2 = [`Publish to aistack? ${facts}`];
7440
+ const lines2 = ["Publish to aistack?"];
7451
7441
  if (n > 0) {
7452
7442
  lines2.push(
7453
7443
  keptPrivate === void 0 ? `${n} name${n === 1 ? "" : "s"} stay${n === 1 ? "s" : ""} on this machine` : `${n} private review name${n === 1 ? "" : "s"} will be stored`
@@ -8217,10 +8207,14 @@ async function syncCommand(options = {}) {
8217
8207
  const decision = await p7.select({
8218
8208
  message: staged.dialog.split("\n").join(dim(" \xB7 ")),
8219
8209
  options: [
8220
- { value: "cancel", label: "Cancel", hint: "nothing leaves this machine" },
8221
- { value: "publish", label: "Publish" }
8210
+ {
8211
+ value: "publish",
8212
+ label: "Publish",
8213
+ hint: "no sensitive data is shared"
8214
+ },
8215
+ { value: "cancel", label: "Cancel", hint: "nothing leaves this machine" }
8222
8216
  ],
8223
- initialValue: "cancel"
8217
+ initialValue: "publish"
8224
8218
  });
8225
8219
  if (p7.isCancel(decision) || decision !== "publish") {
8226
8220
  outroCancel("nothing was sent");