@datarails-ai/dr-appspace-cli 0.12.8 → 0.12.10

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.
Files changed (2) hide show
  1. package/dist/cli.js +17 -19
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -13,7 +13,7 @@ import { fileURLToPath as fileURLToPath6 } from "url";
13
13
  // package.json
14
14
  var package_default = {
15
15
  name: "@datarails-ai/dr-appspace-cli",
16
- version: "0.12.8",
16
+ version: "0.12.10",
17
17
  description: "Datarails App Space CLI \u2014 build, try, push and publish App Space apps",
18
18
  type: "module",
19
19
  engines: {
@@ -57,7 +57,7 @@ var package_default = {
57
57
  };
58
58
 
59
59
  // src/buildInfo.ts
60
- var BUILD_TIME = "2026-10-13T12:47:02.126Z";
60
+ var BUILD_TIME = "2026-10-14T19:37:21.073Z";
61
61
  function formatBuildTime(iso) {
62
62
  if (iso === "") return "";
63
63
  const d = new Date(iso);
@@ -19835,14 +19835,7 @@ var THEME_TOKENS = {
19835
19835
  "--dr-surface": "#ffffff",
19836
19836
  "--dr-page": "#f1f3f7",
19837
19837
  "--dr-border": "#d8dde6",
19838
- "--dr-chart-1": "#4646ce",
19839
- "--dr-chart-2": "#29a397",
19840
- "--dr-chart-3": "#d9790c",
19841
- "--dr-chart-4": "#2597d0",
19842
- "--dr-chart-5": "#cb4d8c",
19843
- "--dr-chart-6": "#7e828e",
19844
- "--dr-chart-7": "#6f9429",
19845
- "--dr-chart-8": "#b45309"
19838
+ ...paletteTokens()
19846
19839
  },
19847
19840
  slate: {
19848
19841
  "--dr-accent": "#8b8beb",
@@ -19989,7 +19982,7 @@ function composeTheme(app, preset, record2) {
19989
19982
  record2(
19990
19983
  "theme.tokens",
19991
19984
  THEME_FILE3,
19992
- `${filled} palette token(s) filled from the "${preset}" preset, so the accent, all eight chart series, the surface, the page and the border are one coherent set`
19985
+ `${filled} palette token(s) filled from the "${preset}" preset, so the accent, every chart series, the surface, the page and the border are one coherent set`
19993
19986
  );
19994
19987
  }
19995
19988
  }
@@ -27135,9 +27128,9 @@ var kit_default = {
27135
27128
  templates: "templates/",
27136
27129
  assistant: "dr-insights@1.4.0",
27137
27130
  charts: "echarts@5.6.0",
27138
- fmt: "dr-fmt@1.0.0",
27131
+ fmt: "dr-fmt@2.0.1",
27139
27132
  markdown: "dr-md@1.0.0",
27140
- uiKit: "ui-kit/v3",
27133
+ uiKit: "ui-kit/v4",
27141
27134
  widgets: "dr-widgets@1.2.1"
27142
27135
  };
27143
27136
 
@@ -28386,8 +28379,7 @@ async function runShipOntoLive(dir, opts) {
28386
28379
  if (!hasServer(opts)) {
28387
28380
  return refuse("needs a server: pass -s <server> (or set DR_APP_SPACE_HOST), or log in so a stored session supplies one.");
28388
28381
  }
28389
- let createGuarded = true;
28390
- for (let attempt = 1; attempt <= ONTO_LIVE_ATTEMPTS; attempt += 1) {
28382
+ return landWithRetries(async (createGuarded) => {
28391
28383
  for (const name of ONTO_LIVE_OWNED) await rm4(join15(dir, name), { recursive: true, force: true });
28392
28384
  const client = await connect(opts);
28393
28385
  let pulled;
@@ -28409,9 +28401,15 @@ async function runShipOntoLive(dir, opts) {
28409
28401
  );
28410
28402
  }
28411
28403
  const code = await runCompile(dir, { ...opts, check: false, push: true, updateBlock: true, ontoLive: true });
28412
- const refused = code === 3 ? await lostRaceOf(dir) : null;
28413
- if (refused === null) return code;
28414
- if (pulled === null && createGuarded && refused.race === "stale" && refused.current === null) {
28404
+ return { code, lost: code === 3 ? await lostRaceOf(dir) : null, creating: pulled === null };
28405
+ }, opts);
28406
+ }
28407
+ async function landWithRetries(tryOnce, opts, sleep2 = (ms) => new Promise((done) => setTimeout(done, ms))) {
28408
+ let createGuarded = true;
28409
+ for (let attempt = 1; attempt <= ONTO_LIVE_ATTEMPTS; attempt += 1) {
28410
+ const { code, lost, creating } = await tryOnce(createGuarded);
28411
+ if (lost === null) return code;
28412
+ if (creating && createGuarded && lost.race === "stale" && lost.current === null) {
28415
28413
  createGuarded = false;
28416
28414
  if (opts.json !== true) {
28417
28415
  process.stdout.write(
@@ -28427,7 +28425,7 @@ async function runShipOntoLive(dir, opts) {
28427
28425
  `
28428
28426
  );
28429
28427
  }
28430
- await new Promise((done) => setTimeout(done, ontoLiveBackoff(attempt)));
28428
+ await sleep2(ontoLiveBackoff(attempt));
28431
28429
  }
28432
28430
  process.stderr.write(
28433
28431
  `ship --onto-live: ${String(ONTO_LIVE_ATTEMPTS)} attempts, and another landing got there first every time. Nothing of this pass is live; run the same command again.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarails-ai/dr-appspace-cli",
3
- "version": "0.12.8",
3
+ "version": "0.12.10",
4
4
  "description": "Datarails App Space CLI — build, try, push and publish App Space apps",
5
5
  "type": "module",
6
6
  "engines": {