@halcyonlabs/app 0.47.0-halcyon.494 → 0.47.0-halcyon.495

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.d.ts CHANGED
@@ -191,10 +191,10 @@ declare const uiPreferenceDefinitions: {
191
191
  }>>;
192
192
  readonly "sidebar.threadGrouping.environment": UiPreferenceDefinition<z$1.ZodUnion<readonly [z$1.ZodLiteral<"auto">, z$1.ZodBoolean]>>;
193
193
  readonly "sidebar.chronologicalSort": UiPreferenceDefinition<z$1.ZodEnum<{
194
- none: "none";
195
194
  updated: "updated";
196
195
  created: "created";
197
196
  alpha: "alpha";
197
+ none: "none";
198
198
  }>>;
199
199
  readonly "sidebar.sortDirection": UiPreferenceDefinition<z$1.ZodEnum<{
200
200
  default: "default";
@@ -524,8 +524,8 @@ declare const environmentSchema: z$1.ZodObject<{
524
524
  retireAt: z$1.ZodNullable<z$1.ZodNumber>;
525
525
  teardown: z$1.ZodNullable<z$1.ZodObject<{
526
526
  status: z$1.ZodEnum<{
527
- failed: "failed";
528
527
  running: "running";
528
+ failed: "failed";
529
529
  removed: "removed";
530
530
  }>;
531
531
  attempt: z$1.ZodNumber;
@@ -620,8 +620,8 @@ declare const hostSchema: z$1.ZodObject<{
620
620
  pendingLog: z$1.ZodString;
621
621
  teardown: z$1.ZodNullable<z$1.ZodObject<{
622
622
  status: z$1.ZodEnum<{
623
- failed: "failed";
624
623
  running: "running";
624
+ failed: "failed";
625
625
  removed: "removed";
626
626
  }>;
627
627
  attempt: z$1.ZodNumber;
@@ -732,8 +732,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
732
732
  providerThreadId: z$1.ZodString;
733
733
  objective: z$1.ZodString;
734
734
  status: z$1.ZodEnum<{
735
- active: "active";
736
735
  paused: "paused";
736
+ active: "active";
737
737
  budgetLimited: "budgetLimited";
738
738
  complete: "complete";
739
739
  }>;
@@ -1304,9 +1304,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
1304
1304
  step: z$1.ZodString;
1305
1305
  status: z$1.ZodOptional<z$1.ZodEnum<{
1306
1306
  pending: "pending";
1307
- active: "active";
1308
1307
  completed: "completed";
1309
1308
  failed: "failed";
1309
+ active: "active";
1310
1310
  }>>;
1311
1311
  }, z$1.core.$strip>>;
1312
1312
  explanation: z$1.ZodOptional<z$1.ZodString>;
@@ -1385,10 +1385,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
1385
1385
  }>;
1386
1386
  taskStatus: z$1.ZodEnum<{
1387
1387
  pending: "pending";
1388
+ running: "running";
1389
+ paused: "paused";
1388
1390
  completed: "completed";
1389
1391
  failed: "failed";
1390
- paused: "paused";
1391
- running: "running";
1392
1392
  killed: "killed";
1393
1393
  stopped: "stopped";
1394
1394
  }>;
@@ -1405,8 +1405,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
1405
1405
  index: z$1.ZodNumber;
1406
1406
  label: z$1.ZodString;
1407
1407
  state: z$1.ZodEnum<{
1408
- failed: "failed";
1409
1408
  running: "running";
1409
+ failed: "failed";
1410
1410
  queued: "queued";
1411
1411
  done: "done";
1412
1412
  skipped: "skipped";
@@ -2076,9 +2076,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2076
2076
  step: z$1.ZodString;
2077
2077
  status: z$1.ZodOptional<z$1.ZodEnum<{
2078
2078
  pending: "pending";
2079
- active: "active";
2080
2079
  completed: "completed";
2081
2080
  failed: "failed";
2081
+ active: "active";
2082
2082
  }>>;
2083
2083
  }, z$1.core.$strip>>;
2084
2084
  explanation: z$1.ZodOptional<z$1.ZodString>;
@@ -2157,10 +2157,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2157
2157
  }>;
2158
2158
  taskStatus: z$1.ZodEnum<{
2159
2159
  pending: "pending";
2160
+ running: "running";
2161
+ paused: "paused";
2160
2162
  completed: "completed";
2161
2163
  failed: "failed";
2162
- paused: "paused";
2163
- running: "running";
2164
2164
  killed: "killed";
2165
2165
  stopped: "stopped";
2166
2166
  }>;
@@ -2177,8 +2177,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2177
2177
  index: z$1.ZodNumber;
2178
2178
  label: z$1.ZodString;
2179
2179
  state: z$1.ZodEnum<{
2180
- failed: "failed";
2181
2180
  running: "running";
2181
+ failed: "failed";
2182
2182
  queued: "queued";
2183
2183
  done: "done";
2184
2184
  skipped: "skipped";
@@ -2389,10 +2389,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2389
2389
  }>;
2390
2390
  taskStatus: z$1.ZodEnum<{
2391
2391
  pending: "pending";
2392
+ running: "running";
2393
+ paused: "paused";
2392
2394
  completed: "completed";
2393
2395
  failed: "failed";
2394
- paused: "paused";
2395
- running: "running";
2396
2396
  killed: "killed";
2397
2397
  stopped: "stopped";
2398
2398
  }>;
@@ -2409,8 +2409,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2409
2409
  index: z$1.ZodNumber;
2410
2410
  label: z$1.ZodString;
2411
2411
  state: z$1.ZodEnum<{
2412
- failed: "failed";
2413
2412
  running: "running";
2413
+ failed: "failed";
2414
2414
  queued: "queued";
2415
2415
  done: "done";
2416
2416
  skipped: "skipped";
@@ -2488,10 +2488,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2488
2488
  }>;
2489
2489
  taskStatus: z$1.ZodEnum<{
2490
2490
  pending: "pending";
2491
+ running: "running";
2492
+ paused: "paused";
2491
2493
  completed: "completed";
2492
2494
  failed: "failed";
2493
- paused: "paused";
2494
- running: "running";
2495
2495
  killed: "killed";
2496
2496
  stopped: "stopped";
2497
2497
  }>;
@@ -2508,8 +2508,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2508
2508
  index: z$1.ZodNumber;
2509
2509
  label: z$1.ZodString;
2510
2510
  state: z$1.ZodEnum<{
2511
- failed: "failed";
2512
2511
  running: "running";
2512
+ failed: "failed";
2513
2513
  queued: "queued";
2514
2514
  done: "done";
2515
2515
  skipped: "skipped";
@@ -2704,9 +2704,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2704
2704
  step: z$1.ZodString;
2705
2705
  status: z$1.ZodOptional<z$1.ZodEnum<{
2706
2706
  pending: "pending";
2707
- active: "active";
2708
2707
  completed: "completed";
2709
2708
  failed: "failed";
2709
+ active: "active";
2710
2710
  }>>;
2711
2711
  }, z$1.core.$strip>>;
2712
2712
  explanation: z$1.ZodOptional<z$1.ZodString>;
@@ -2715,8 +2715,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2715
2715
  threadId: z$1.ZodString;
2716
2716
  providerThreadId: z$1.ZodString;
2717
2717
  state: z$1.ZodEnum<{
2718
- idle: "idle";
2719
2718
  running: "running";
2719
+ idle: "idle";
2720
2720
  }>;
2721
2721
  }, z$1.core.$strip>, z$1.ZodObject<{
2722
2722
  type: z$1.ZodLiteral<"turn/diff/updated">;
@@ -3578,9 +3578,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3578
3578
  threadId: z$1.ZodString;
3579
3579
  provisioningId: z$1.ZodString;
3580
3580
  status: z$1.ZodEnum<{
3581
- active: "active";
3582
3581
  completed: "completed";
3583
3582
  failed: "failed";
3583
+ active: "active";
3584
3584
  cancelled: "cancelled";
3585
3585
  }>;
3586
3586
  environmentId: z$1.ZodNullable<z$1.ZodString>;
@@ -5768,9 +5768,9 @@ declare const hostDaemonCommandRegistry: {
5768
5768
  }, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5769
5769
  kind: z$1.ZodLiteral<"wording">;
5770
5770
  status: z$1.ZodEnum<{
5771
- unavailable: "unavailable";
5772
5771
  pass: "pass";
5773
5772
  revise: "revise";
5773
+ unavailable: "unavailable";
5774
5774
  }>;
5775
5775
  }, z$1.core.$strict>, z$1.ZodObject<{
5776
5776
  kind: z$1.ZodLiteral<"review">;
@@ -8185,8 +8185,8 @@ declare const hostDaemonCommandRegistry: {
8185
8185
  executablePath: z$1.ZodNullable<z$1.ZodString>;
8186
8186
  installed: z$1.ZodBoolean;
8187
8187
  installSource: z$1.ZodEnum<{
8188
- notInstalled: "notInstalled";
8189
8188
  external: "external";
8189
+ notInstalled: "notInstalled";
8190
8190
  npmGlobal: "npmGlobal";
8191
8191
  }>;
8192
8192
  currentVersion: z$1.ZodNullable<z$1.ZodString>;
@@ -8736,8 +8736,8 @@ declare const providerCliStatusResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.
8736
8736
  executablePath: z$1.ZodNullable<z$1.ZodString>;
8737
8737
  installed: z$1.ZodBoolean;
8738
8738
  installSource: z$1.ZodEnum<{
8739
- notInstalled: "notInstalled";
8740
8739
  external: "external";
8740
+ notInstalled: "notInstalled";
8741
8741
  npmGlobal: "npmGlobal";
8742
8742
  }>;
8743
8743
  currentVersion: z$1.ZodNullable<z$1.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halcyonlabs/app",
3
- "version": "0.47.0-halcyon.494",
3
+ "version": "0.47.0-halcyon.495",
4
4
  "description": "bb app launcher for npx",
5
5
  "keywords": [
6
6
  "bb",
@@ -105,7 +105,7 @@
105
105
  "node": "^22.19.0 || ^24.0.0 || ^26.0.0"
106
106
  },
107
107
  "moonletRelease": {
108
- "summary": "fix(server): drain receipt writes before fixture cleanup (#515)"
108
+ "summary": "fix(server): settle automatic ticks before disposal (#519)"
109
109
  },
110
110
  "license": "SEE LICENSE IN LICENSE"
111
111
  }
@@ -1,12 +1,12 @@
1
1
  {
2
- "commit": "4fdec154d0f717632b0386d8bc922b6c5433db94",
2
+ "commit": "a196692ff1ab24fb9f114637a0be3920884a6bdb",
3
3
  "file": "orbit-deploy",
4
4
  "platform": "linux-x64",
5
5
  "provenance": {
6
- "artifactId": 14826319139,
7
- "artifactName": "linux-bundle-4fdec154d0f717632b0386d8bc922b6c5433db94",
6
+ "artifactId": 14831979417,
7
+ "artifactName": "linux-bundle-a196692ff1ab24fb9f114637a0be3920884a6bdb",
8
8
  "repository": "matt0x6F/personalassistant",
9
- "runId": 45189676527,
9
+ "runId": 45200360549,
10
10
  "workflow": ".github/workflows/moonlet-linux-bundle.yml"
11
11
  },
12
12
  "schema": 1,
@@ -1 +1 @@
1
- 4fdec154d0f717632b0386d8bc922b6c5433db94
1
+ a196692ff1ab24fb9f114637a0be3920884a6bdb
@@ -1 +1 @@
1
- {"repository":"matt0x6F/personalassistant","revision":"4fdec154d0f717632b0386d8bc922b6c5433db94"}
1
+ {"repository":"matt0x6F/personalassistant","revision":"a196692ff1ab24fb9f114637a0be3920884a6bdb"}
@@ -201065,9 +201065,11 @@ function createAppUpdateService(args) {
201065
201065
  }
201066
201066
  return args.launcher;
201067
201067
  };
201068
+ let disposed = false;
201068
201069
  let tickInflight = null;
201069
201070
  const tick = async () => {
201070
201071
  await recoveredAttempt;
201072
+ if (disposed) return "off";
201071
201073
  if (args.countRunningThreads() > 0) lastBusyMonotonicMs = monotonicNowMs();
201072
201074
  if (admission.ownerEpoch !== observedOwnerEpoch) {
201073
201075
  observedOwnerEpoch = admission.ownerEpoch;
@@ -201106,6 +201108,7 @@ function createAppUpdateService(args) {
201106
201108
  const status = await getStatus({
201107
201109
  forceRefresh: activeHold === null
201108
201110
  });
201111
+ if (disposed) return "off";
201109
201112
  if (admission.ownerEpoch !== observedOwnerEpoch) {
201110
201113
  observedOwnerEpoch = admission.ownerEpoch;
201111
201114
  lastBusyMonotonicMs = monotonicNowMs();
@@ -201144,6 +201147,7 @@ function createAppUpdateService(args) {
201144
201147
  to: { version: available.version, commit: available.commit }
201145
201148
  };
201146
201149
  await persistAttempt(activeHold.attempt);
201150
+ if (disposed) return "off";
201147
201151
  }
201148
201152
  }
201149
201153
  if (failedAutomaticKey === key) return "failed-before";
@@ -201177,6 +201181,7 @@ function createAppUpdateService(args) {
201177
201181
  result: null
201178
201182
  };
201179
201183
  await persistAttempt(attempt);
201184
+ if (disposed) return "off";
201180
201185
  if (admission.ownerEpoch !== ownerEpoch || !(args.automaticUpdates?.() ?? false)) {
201181
201186
  availableSinceMonotonicMs = monotonicNowMs();
201182
201187
  lastBusyMonotonicMs = monotonicNowMs();
@@ -201191,7 +201196,7 @@ function createAppUpdateService(args) {
201191
201196
  }
201192
201197
  const hold = activeHold;
201193
201198
  if (hold === null || !hold.lease.active()) return "busy";
201194
- const active = () => hold.lease.active() && activeHold === hold && (args.automaticUpdates?.() ?? false);
201199
+ const active = () => !disposed && hold.lease.active() && activeHold === hold && (args.automaticUpdates?.() ?? false);
201195
201200
  if (args.countRunningThreads() > 0) {
201196
201201
  try {
201197
201202
  await args.work?.checkpoint(hold.attempt, active);
@@ -201208,6 +201213,7 @@ function createAppUpdateService(args) {
201208
201213
  reason: "Continuations were persisted before interruption"
201209
201214
  };
201210
201215
  await persistAttempt(hold.attempt);
201216
+ if (disposed) return "off";
201211
201217
  }
201212
201218
  await args.work?.interrupt(hold.attempt, active);
201213
201219
  if (active() && args.countRunningThreads() > 0 && monotonicNowMs() >= hold.stoppingDeadlineMonotonicMs) {
@@ -201289,6 +201295,7 @@ function createAppUpdateService(args) {
201289
201295
  return "applied";
201290
201296
  };
201291
201297
  const automaticTick = () => {
201298
+ if (disposed) return Promise.resolve("off");
201292
201299
  if (tickInflight !== null) return tickInflight;
201293
201300
  const running2 = tick();
201294
201301
  tickInflight = running2;
@@ -201392,6 +201399,7 @@ function createAppUpdateService(args) {
201392
201399
  return getStatus({ forceRefresh: false });
201393
201400
  },
201394
201401
  dispose() {
201402
+ disposed = true;
201395
201403
  activeHold?.lease.release("disposed");
201396
201404
  automaticRequest?.lease.release("disposed");
201397
201405
  stopHoldTimer();
@@ -201399,7 +201407,12 @@ function createAppUpdateService(args) {
201399
201407
  unsubscribeStatus();
201400
201408
  unsubscribeDisconnect();
201401
201409
  args.launcher?.dispose();
201402
- return recoveredAttempt.then(() => receiptWrites);
201410
+ return recoveredAttempt.then(() => tickInflight?.catch(() => void 0)).then(() => {
201411
+ activeHold?.lease.release("disposed");
201412
+ automaticRequest?.lease.release("disposed");
201413
+ stopHoldTimer();
201414
+ return receiptWrites;
201415
+ });
201403
201416
  },
201404
201417
  getStatus
201405
201418
  };