@use-aistack/cli 0.18.0 → 0.18.1

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
@@ -18906,7 +18906,7 @@ function apiEquivalentCost(modelKey, t, atMs) {
18906
18906
  }
18907
18907
 
18908
18908
  // src/version.ts
18909
- var CLI_VERSION = true ? "0.18.0" : "0.0.0-dev";
18909
+ var CLI_VERSION = true ? "0.18.1" : "0.0.0-dev";
18910
18910
 
18911
18911
  // src/api.ts
18912
18912
  var BASE_URL = process.env.AISTACK_URL || "https://aistack.to";
@@ -22782,6 +22782,7 @@ function buildSyncBody(built, syncConfig, autoSync, trigger = "manual", measured
22782
22782
  aggregateVersion: MEASURED_DAYS_V1,
22783
22783
  utcOffsetMinutes: measuredDays.utcOffsetMinutes,
22784
22784
  ...measuredDays.partial ? { partial: true } : {},
22785
+ ...measuredDays.partial && measuredDays.partialHarnesses ? { partialHarnesses: measuredDays.partialHarnesses } : {},
22785
22786
  days: applyDayConsent(measuredDays.days, syncConfig)
22786
22787
  }
22787
22788
  } : base;
@@ -30367,6 +30368,7 @@ async function stageSync(deps) {
30367
30368
  `historical harnesses (${retentionDays} days): ${historical.map((a) => a.name).join(", ") || "none"}`
30368
30369
  );
30369
30370
  let dayScansComplete = true;
30371
+ const partialHarnesses = /* @__PURE__ */ new Set();
30370
30372
  const sessionDatesByHarness = /* @__PURE__ */ new Map();
30371
30373
  for (const { adapter, recent } of readings) {
30372
30374
  if (!recent) continue;
@@ -30388,8 +30390,10 @@ async function stageSync(deps) {
30388
30390
  for (const { adapter, history } of readings) {
30389
30391
  if (!history) continue;
30390
30392
  const { aggregate, workflow: workflow2, workflowLocal, scanComplete, sessionDates } = history;
30391
- if (scanComplete === false || history.stats.filesUnreadable > 0 || aggregate.parseErrors > 0)
30393
+ if (scanComplete === false || history.stats.filesUnreadable > 0 || aggregate.parseErrors > 0) {
30392
30394
  dayScansComplete = false;
30395
+ partialHarnesses.add(adapter.name);
30396
+ }
30393
30397
  if (adapter.name === "grok-build" || adapter.name === "cursor")
30394
30398
  sessionDatesByHarness.set(adapter.name, sessionDates ?? /* @__PURE__ */ new Map());
30395
30399
  workflowScans.push({ aggregate: workflow2, local: workflowLocal });
@@ -30441,8 +30445,10 @@ async function stageSync(deps) {
30441
30445
  for (const date of dates) correctionDates.add(date);
30442
30446
  for (const dates of Object.values(current))
30443
30447
  for (const date of dates) correctionDates.add(date);
30444
- if (Object.keys(previous).some((id) => !(id in current)))
30448
+ if (Object.keys(previous).some((id) => !(id in current))) {
30445
30449
  dayScansComplete = false;
30450
+ partialHarnesses.add(harness);
30451
+ }
30446
30452
  acknowledgements.push(() => saveGrokDateHints(scope, current));
30447
30453
  }
30448
30454
  if (acknowledgements.length && dayScansComplete)
@@ -30472,7 +30478,7 @@ async function stageSync(deps) {
30472
30478
  deps.trigger,
30473
30479
  historical.length > 0 ? {
30474
30480
  aggregateVersion: MEASURED_DAYS_V1,
30475
- ...!dayScansComplete ? { partial: true } : {},
30481
+ ...!dayScansComplete ? { partial: true, partialHarnesses: [...partialHarnesses].sort() } : {},
30476
30482
  utcOffsetMinutes: workflow?.utcOffsetMinutes ?? machineUtcOffsetMinutes(),
30477
30483
  days: days.send
30478
30484
  } : void 0,