@le-space/ui 0.6.31 → 0.6.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@le-space/ui",
3
- "version": "0.6.31",
3
+ "version": "0.6.33",
4
4
  "description": "Floating Aleph Relay Button UI components for Svelte and React.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,8 +44,8 @@
44
44
  "url": "https://github.com/NiKrause/relay-button/issues"
45
45
  },
46
46
  "dependencies": {
47
- "@le-space/browser": "0.6.31",
48
- "@le-space/core": "0.6.31",
47
+ "@le-space/browser": "0.6.33",
48
+ "@le-space/core": "0.6.33",
49
49
  "viem": "^2.53.1"
50
50
  },
51
51
  "peerDependencies": {
package/react/index.js CHANGED
@@ -43,7 +43,7 @@ var RECENT_INSTANCE_RUNTIME_GRACE_MS = 10 * 60 * 1e3;
43
43
  var DEPLOYMENT_PENDING_WARNING_MS = 3 * 60 * 1e3;
44
44
 
45
45
  // src/shared/package-version.ts
46
- var UI_PACKAGE_VERSION = "0.6.31";
46
+ var UI_PACKAGE_VERSION = "0.6.33";
47
47
 
48
48
  // src/shared/format.ts
49
49
  function shortHash(value, head = 8, tail = 6) {
@@ -4249,7 +4249,11 @@ var SponsorRelayController = class {
4249
4249
  hostIpv4: serviceHostIpv4,
4250
4250
  setupPort,
4251
4251
  fetch: (url, init) => fetch(url, init),
4252
- attempts: 15,
4252
+ // 15 attempts (~1 min) regularly expired while a freshly booted VM
4253
+ // was still starting its setup service (ERR_CONNECTION_REFUSED in
4254
+ // simple-todo E2E run #42); the Actions path reaches the same guest
4255
+ // successfully because it arrives minutes later. Allow ~3 minutes.
4256
+ attempts: 45,
4253
4257
  delayMs: 4e3,
4254
4258
  httpTimeoutMs: 1e4,
4255
4259
  onAttempt: (result, attempt, attempts) => {
@@ -4357,7 +4361,11 @@ var SponsorRelayController = class {
4357
4361
  hostIpv4: runtimeHostIpv4,
4358
4362
  setupPort,
4359
4363
  fetch: (url, init) => fetch(url, init),
4360
- attempts: 15,
4364
+ // 15 attempts (~1 min) regularly expired while a freshly booted VM
4365
+ // was still starting its setup service (ERR_CONNECTION_REFUSED in
4366
+ // simple-todo E2E run #42); the Actions path reaches the same guest
4367
+ // successfully because it arrives minutes later. Allow ~3 minutes.
4368
+ attempts: 45,
4361
4369
  delayMs: 4e3,
4362
4370
  httpTimeoutMs: 1e4,
4363
4371
  onAttempt: (result, attempt, attempts) => {
@@ -5560,7 +5568,7 @@ var SponsorRelayController = class {
5560
5568
  crnHash: candidateCrn.hash,
5561
5569
  crnUrl: candidateCrn.address
5562
5570
  });
5563
- await notifyCrnAllocationWithRetry({
5571
+ const notifyResult = await notifyCrnAllocationWithRetry({
5564
5572
  crnUrl: candidateCrn.address,
5565
5573
  itemHash: result.itemHash,
5566
5574
  fetch: (url, init) => fetch(url, init),
@@ -5568,6 +5576,11 @@ var SponsorRelayController = class {
5568
5576
  this.emitProgress(event);
5569
5577
  }
5570
5578
  });
5579
+ if (notifyResult.status === "unconfirmed") {
5580
+ throw new Error(
5581
+ `CRN ${crnDisplayName} did not accept the allocation for ${result.itemHash}: ${notifyResult.reason ?? "allocation notify was not confirmed"}`
5582
+ );
5583
+ }
5571
5584
  }
5572
5585
  this.emitProgress({
5573
5586
  stage: "deployment-confirmed",
package/shared/index.d.ts CHANGED
@@ -332,7 +332,7 @@ declare const STALE_INSTANCE_ALLOCATION_COOLDOWN_MS: number;
332
332
  declare const RECENT_INSTANCE_RUNTIME_GRACE_MS: number;
333
333
  declare const DEPLOYMENT_PENDING_WARNING_MS: number;
334
334
 
335
- declare const UI_PACKAGE_VERSION = "0.6.31";
335
+ declare const UI_PACKAGE_VERSION = "0.6.33";
336
336
 
337
337
  interface RootfsRequiredPortForward {
338
338
  port: number;
package/shared/index.js CHANGED
@@ -42,7 +42,7 @@ var RECENT_INSTANCE_RUNTIME_GRACE_MS = 10 * 60 * 1e3;
42
42
  var DEPLOYMENT_PENDING_WARNING_MS = 3 * 60 * 1e3;
43
43
 
44
44
  // src/shared/package-version.ts
45
- var UI_PACKAGE_VERSION = "0.6.31";
45
+ var UI_PACKAGE_VERSION = "0.6.33";
46
46
 
47
47
  // src/shared/format.ts
48
48
  function shortHash(value, head = 8, tail = 6) {
@@ -4248,7 +4248,11 @@ var SponsorRelayController = class {
4248
4248
  hostIpv4: serviceHostIpv4,
4249
4249
  setupPort,
4250
4250
  fetch: (url, init) => fetch(url, init),
4251
- attempts: 15,
4251
+ // 15 attempts (~1 min) regularly expired while a freshly booted VM
4252
+ // was still starting its setup service (ERR_CONNECTION_REFUSED in
4253
+ // simple-todo E2E run #42); the Actions path reaches the same guest
4254
+ // successfully because it arrives minutes later. Allow ~3 minutes.
4255
+ attempts: 45,
4252
4256
  delayMs: 4e3,
4253
4257
  httpTimeoutMs: 1e4,
4254
4258
  onAttempt: (result, attempt, attempts) => {
@@ -4356,7 +4360,11 @@ var SponsorRelayController = class {
4356
4360
  hostIpv4: runtimeHostIpv4,
4357
4361
  setupPort,
4358
4362
  fetch: (url, init) => fetch(url, init),
4359
- attempts: 15,
4363
+ // 15 attempts (~1 min) regularly expired while a freshly booted VM
4364
+ // was still starting its setup service (ERR_CONNECTION_REFUSED in
4365
+ // simple-todo E2E run #42); the Actions path reaches the same guest
4366
+ // successfully because it arrives minutes later. Allow ~3 minutes.
4367
+ attempts: 45,
4360
4368
  delayMs: 4e3,
4361
4369
  httpTimeoutMs: 1e4,
4362
4370
  onAttempt: (result, attempt, attempts) => {
@@ -5559,7 +5567,7 @@ var SponsorRelayController = class {
5559
5567
  crnHash: candidateCrn.hash,
5560
5568
  crnUrl: candidateCrn.address
5561
5569
  });
5562
- await notifyCrnAllocationWithRetry({
5570
+ const notifyResult = await notifyCrnAllocationWithRetry({
5563
5571
  crnUrl: candidateCrn.address,
5564
5572
  itemHash: result.itemHash,
5565
5573
  fetch: (url, init) => fetch(url, init),
@@ -5567,6 +5575,11 @@ var SponsorRelayController = class {
5567
5575
  this.emitProgress(event);
5568
5576
  }
5569
5577
  });
5578
+ if (notifyResult.status === "unconfirmed") {
5579
+ throw new Error(
5580
+ `CRN ${crnDisplayName} did not accept the allocation for ${result.itemHash}: ${notifyResult.reason ?? "allocation notify was not confirmed"}`
5581
+ );
5582
+ }
5570
5583
  }
5571
5584
  this.emitProgress({
5572
5585
  stage: "deployment-confirmed",