@halcyonlabs/app 0.47.0-halcyon.562 → 0.47.0-halcyon.563

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/bb-app.js CHANGED
@@ -2543,9 +2543,9 @@ var require_picocolors = __commonJS({
2543
2543
  var argv = p.argv || [];
2544
2544
  var env = p.env || {};
2545
2545
  var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
2546
- var formatter = (open4, close, replace = open4) => (input2) => {
2547
- let string4 = "" + input2, index = string4.indexOf(close, open4.length);
2548
- return ~index ? open4 + replaceClose(string4, close, replace, index) + close : open4 + string4 + close;
2546
+ var formatter = (open5, close, replace = open5) => (input2) => {
2547
+ let string4 = "" + input2, index = string4.indexOf(close, open5.length);
2548
+ return ~index ? open5 + replaceClose(string4, close, replace, index) + close : open5 + string4 + close;
2549
2549
  };
2550
2550
  var replaceClose = (string4, close, replace, index) => {
2551
2551
  let result = "", cursor = 0;
@@ -18749,10 +18749,24 @@ function createLauncherAppUpdateController(args) {
18749
18749
  var import_semver2 = __toESM(require_semver2(), 1);
18750
18750
  import { join as join13 } from "node:path";
18751
18751
 
18752
- // src/app-update/npm-startup-compatibility.ts
18752
+ // src/app-update/npm-startup-migrations.ts
18753
18753
  import { createHash } from "node:crypto";
18754
- import { lstat, readdir as readdir3, readFile as readFile7 } from "node:fs/promises";
18754
+ import {
18755
+ lstat,
18756
+ mkdir as mkdir9,
18757
+ open as open4,
18758
+ readdir as readdir3,
18759
+ readFile as readFile7,
18760
+ rename as rename6,
18761
+ rm as rm6
18762
+ } from "node:fs/promises";
18763
+ import { createRequire as createRequire4 } from "node:module";
18755
18764
  import { join as join12 } from "node:path";
18765
+ var SNAPSHOT_ROOT_NAME = "app-update-snapshots";
18766
+ var SNAPSHOT_FILE_NAME = "bb.db";
18767
+ var PARTIAL_SNAPSHOT_FILE_NAME = "bb.db.partial";
18768
+ var DATABASE_SIDE_FILE_SUFFIXES = ["-wal", "-shm", "-journal"];
18769
+ var BACKUP_PAGES_PER_STEP = 16384;
18756
18770
  async function migrationFingerprint(root) {
18757
18771
  if (!(await lstat(root)).isDirectory())
18758
18772
  throw new Error("Migration inventory must be a directory");
@@ -18781,19 +18795,106 @@ async function migrationFingerprint(root) {
18781
18795
  if (files === 0) throw new Error("No packaged database migrations found");
18782
18796
  return hash2.digest("hex");
18783
18797
  }
18784
- async function assertNpmStartupMigrationCompatibility(previous, target) {
18785
- const [from, to] = await Promise.all([
18786
- migrationFingerprint(
18787
- join12(previous.packageRoot, "server", "dist", "drizzle")
18788
- ),
18789
- migrationFingerprint(join12(target.packageRoot, "server", "dist", "drizzle"))
18790
- ]);
18791
- if (from !== to) {
18792
- throw new Error(
18793
- "The update changes packaged database migrations; automatic startup rollback cannot safely restore its data. Keeping the previous version."
18794
- );
18798
+ function packagedMigrations(revision) {
18799
+ return migrationFingerprint(
18800
+ join12(revision.packageRoot, "server", "dist", "drizzle")
18801
+ );
18802
+ }
18803
+ function snapshotDirectory(dataDir, attemptId) {
18804
+ if (!/^[a-zA-Z0-9_-]+$/u.test(attemptId))
18805
+ throw new Error("Invalid app update attempt identity");
18806
+ return join12(dataDir, SNAPSHOT_ROOT_NAME, attemptId);
18807
+ }
18808
+ async function isRegularFile(path2) {
18809
+ try {
18810
+ return (await lstat(path2)).isFile();
18811
+ } catch (error2) {
18812
+ if (error2 instanceof Error && "code" in error2 && error2.code === "ENOENT")
18813
+ return false;
18814
+ throw error2;
18815
+ }
18816
+ }
18817
+ async function syncToDisk(path2, directory) {
18818
+ if (directory && process.platform === "win32") return;
18819
+ const handle = await open4(path2, "r");
18820
+ try {
18821
+ await handle.sync();
18822
+ } finally {
18823
+ await handle.close();
18795
18824
  }
18796
18825
  }
18826
+ async function saveDatabase(databasePath, destination) {
18827
+ const Database = createRequire4(import.meta.url)("better-sqlite3");
18828
+ const source = new Database(databasePath, { fileMustExist: true });
18829
+ try {
18830
+ await source.backup(destination, {
18831
+ progress: () => BACKUP_PAGES_PER_STEP
18832
+ });
18833
+ } finally {
18834
+ source.close();
18835
+ }
18836
+ }
18837
+ function createNpmStartupMigrations(dataDir) {
18838
+ const databasePath = resolveDataDirDatabasePath({ dataDir });
18839
+ return {
18840
+ async prepare({ attemptId, previous, target }) {
18841
+ const [from, to] = await Promise.all([
18842
+ packagedMigrations(previous),
18843
+ packagedMigrations(target)
18844
+ ]);
18845
+ if (from === to) return "unchanged";
18846
+ const directory = snapshotDirectory(dataDir, attemptId);
18847
+ const snapshot = join12(directory, SNAPSHOT_FILE_NAME);
18848
+ if (await isRegularFile(snapshot)) return "saved";
18849
+ const partial2 = join12(directory, PARTIAL_SNAPSHOT_FILE_NAME);
18850
+ await mkdir9(directory, { recursive: true, mode: 448 });
18851
+ try {
18852
+ await rm6(partial2, { force: true });
18853
+ await saveDatabase(databasePath, partial2);
18854
+ await syncToDisk(partial2, false);
18855
+ await rename6(partial2, snapshot);
18856
+ await syncToDisk(directory, true);
18857
+ } catch (error2) {
18858
+ throw new Error(
18859
+ `Could not save the database before the update: ${error2 instanceof Error ? error2.message : String(error2)}`
18860
+ );
18861
+ } finally {
18862
+ await rm6(partial2, { force: true });
18863
+ }
18864
+ return "saved";
18865
+ },
18866
+ async restore(attemptId) {
18867
+ const directory = snapshotDirectory(dataDir, attemptId);
18868
+ const snapshot = join12(directory, SNAPSHOT_FILE_NAME);
18869
+ if (!await isRegularFile(snapshot)) {
18870
+ await rm6(directory, { force: true, recursive: true });
18871
+ return false;
18872
+ }
18873
+ for (const suffix of DATABASE_SIDE_FILE_SUFFIXES)
18874
+ await rm6(`${databasePath}${suffix}`, { force: true });
18875
+ await rename6(snapshot, databasePath);
18876
+ await syncToDisk(dataDir, true);
18877
+ await rm6(directory, { force: true, recursive: true });
18878
+ return true;
18879
+ },
18880
+ async discard(keepAttemptId) {
18881
+ const root = join12(dataDir, SNAPSHOT_ROOT_NAME);
18882
+ let entries;
18883
+ try {
18884
+ entries = await readdir3(root);
18885
+ } catch (error2) {
18886
+ if (error2 instanceof Error && "code" in error2 && error2.code === "ENOENT")
18887
+ return;
18888
+ throw error2;
18889
+ }
18890
+ await Promise.all(
18891
+ entries.filter((entry) => entry !== keepAttemptId).map(
18892
+ (entry) => rm6(join12(root, entry), { force: true, recursive: true })
18893
+ )
18894
+ );
18895
+ }
18896
+ };
18897
+ }
18797
18898
 
18798
18899
  // src/app-update/npm-shim.ts
18799
18900
  function selectNpmRevision(args) {
@@ -18923,6 +19024,37 @@ async function runNpmShim(args) {
18923
19024
  ...state.lastResult?.id === attempt.id ? { lastResult: result } : {}
18924
19025
  }));
18925
19026
  };
19027
+ const migrations = args.migrations ?? createNpmStartupMigrations(args.dataDir);
19028
+ const discardSnapshots = async (keep) => {
19029
+ try {
19030
+ await migrations.discard(keep);
19031
+ } catch (error2) {
19032
+ args.output.warn(
19033
+ `Could not remove a database copy saved for an app update: ${String(error2)}`
19034
+ );
19035
+ }
19036
+ };
19037
+ const restoreDatabase = async (attempt, reason) => {
19038
+ const failed = attempt.failedTarget ?? attempt.to;
19039
+ try {
19040
+ if (await migrations.restore(attempt.id))
19041
+ args.output.warn(
19042
+ `Restored the database saved before ${failed.version} started.`
19043
+ );
19044
+ return true;
19045
+ } catch (error2) {
19046
+ await recordFailure(
19047
+ attempt,
19048
+ `${reason} Restoring the database saved before ${failed.version} also failed: ${String(error2)}`,
19049
+ true
19050
+ );
19051
+ await mutateAppUpdateState(args.dataDir, (state) => ({
19052
+ ...state,
19053
+ pending: attempt
19054
+ }));
19055
+ return false;
19056
+ }
19057
+ };
18926
19058
  const releasedContinuations = /* @__PURE__ */ new Set();
18927
19059
  const releaseContinuations = (attemptId) => {
18928
19060
  if (releasedContinuations.has(attemptId)) return;
@@ -18948,6 +19080,7 @@ async function runNpmShim(args) {
18948
19080
  for (; ; ) {
18949
19081
  const before = await readAppUpdateStateFile(args.dataDir);
18950
19082
  const pending = before?.pending ?? null;
19083
+ await discardSnapshots(pending?.id ?? null);
18951
19084
  if (pending === null) {
18952
19085
  const result = before?.lastResult;
18953
19086
  const revision = result?.outcome === "updated" ? result.to : result?.restored;
@@ -18974,6 +19107,11 @@ async function runNpmShim(args) {
18974
19107
  );
18975
19108
  if (failed !== null && failed.outcome === "failed" && isSameRevision(failed.to, pending.to)) {
18976
19109
  if (!isUsable(pending.from)) return 1;
19110
+ if (!await restoreDatabase(
19111
+ pending,
19112
+ failed.message ?? "Previously failed startup"
19113
+ ))
19114
+ return 1;
18977
19115
  const previous = pending.from;
18978
19116
  await mutateAppUpdateState(args.dataDir, (state2) => ({
18979
19117
  ...state2,
@@ -19003,7 +19141,15 @@ async function runNpmShim(args) {
19003
19141
  "The previous app version is unavailable for rollback"
19004
19142
  );
19005
19143
  }
19006
- await (args.checkMigrations ?? assertNpmStartupMigrationCompatibility)(attempt.from, launch);
19144
+ const preparation = await migrations.prepare({
19145
+ attemptId: attempt.id,
19146
+ previous: attempt.from,
19147
+ target: launch
19148
+ });
19149
+ if (preparation === "saved")
19150
+ args.output.info(
19151
+ `Saved the database before starting ${launch.version}; it is restored if ${launch.version} fails to start.`
19152
+ );
19007
19153
  } catch (error2) {
19008
19154
  failure2 = error2 instanceof Error ? error2.message : String(error2);
19009
19155
  }
@@ -19043,6 +19189,7 @@ async function runNpmShim(args) {
19043
19189
  releaseContinuations(attempt.id);
19044
19190
  startupVerified = true;
19045
19191
  clearInterval(poll);
19192
+ await discardSnapshots(null);
19046
19193
  } else if (result?.id === attempt.id && result.outcome === "failed" && state2?.pending === null) {
19047
19194
  stopFailedStartup(
19048
19195
  result.message ?? "The new version failed readiness verification"
@@ -19107,6 +19254,7 @@ async function runNpmShim(args) {
19107
19254
  if (recovering || attempt.from.kind !== "npm" || !isUsable(attempt.from)) {
19108
19255
  return 1;
19109
19256
  }
19257
+ if (!await restoreDatabase(attempt, reason)) return 1;
19110
19258
  const previous = attempt.from;
19111
19259
  await mutateAppUpdateState(args.dataDir, (state2) => ({
19112
19260
  ...state2,
@@ -19124,6 +19272,7 @@ async function runNpmShim(args) {
19124
19272
  launch = attempt.from;
19125
19273
  continue;
19126
19274
  }
19275
+ await discardSnapshots(null);
19127
19276
  }
19128
19277
  if (exit.code !== APP_UPDATE_RESTART_EXIT_CODE) {
19129
19278
  return toShimExitCode(exit);
package/dist/index.d.ts CHANGED
@@ -84,8 +84,8 @@ declare const appSettingsSchema: z$1.ZodObject<{
84
84
  providerOrder: z$1.ZodArray<z$1.ZodString>;
85
85
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
86
86
  providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
87
- collapse: "collapse";
88
87
  flat: "flat";
88
+ collapse: "collapse";
89
89
  }>>;
90
90
  streamerMode: z$1.ZodBoolean;
91
91
  allowFastServiceTier: z$1.ZodBoolean;
@@ -106,8 +106,8 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
106
106
  providerOrder: z$1.ZodArray<z$1.ZodString>;
107
107
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
108
108
  providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
109
- collapse: "collapse";
110
109
  flat: "flat";
110
+ collapse: "collapse";
111
111
  }>>;
112
112
  streamerMode: z$1.ZodBoolean;
113
113
  managedBranchPrefix: z$1.ZodString;
@@ -145,8 +145,8 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
145
145
  providerOrder: z$1.ZodArray<z$1.ZodString>;
146
146
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
147
147
  providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
148
- collapse: "collapse";
149
148
  flat: "flat";
149
+ collapse: "collapse";
150
150
  }>>;
151
151
  streamerMode: z$1.ZodBoolean;
152
152
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
@@ -527,8 +527,8 @@ declare const environmentSchema: z$1.ZodObject<{
527
527
  retireAt: z$1.ZodNullable<z$1.ZodNumber>;
528
528
  teardown: z$1.ZodNullable<z$1.ZodObject<{
529
529
  status: z$1.ZodEnum<{
530
- running: "running";
531
530
  failed: "failed";
531
+ running: "running";
532
532
  removed: "removed";
533
533
  }>;
534
534
  attempt: z$1.ZodNumber;
@@ -623,8 +623,8 @@ declare const hostSchema: z$1.ZodObject<{
623
623
  pendingLog: z$1.ZodString;
624
624
  teardown: z$1.ZodNullable<z$1.ZodObject<{
625
625
  status: z$1.ZodEnum<{
626
- running: "running";
627
626
  failed: "failed";
627
+ running: "running";
628
628
  removed: "removed";
629
629
  }>;
630
630
  attempt: z$1.ZodNumber;
@@ -735,8 +735,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
735
735
  providerThreadId: z$1.ZodString;
736
736
  objective: z$1.ZodString;
737
737
  status: z$1.ZodEnum<{
738
- paused: "paused";
739
738
  active: "active";
739
+ paused: "paused";
740
740
  budgetLimited: "budgetLimited";
741
741
  complete: "complete";
742
742
  }>;
@@ -1307,9 +1307,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
1307
1307
  step: z$1.ZodString;
1308
1308
  status: z$1.ZodOptional<z$1.ZodEnum<{
1309
1309
  pending: "pending";
1310
+ active: "active";
1310
1311
  completed: "completed";
1311
1312
  failed: "failed";
1312
- active: "active";
1313
1313
  }>>;
1314
1314
  }, z$1.core.$strip>>;
1315
1315
  explanation: z$1.ZodOptional<z$1.ZodString>;
@@ -1388,10 +1388,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
1388
1388
  }>;
1389
1389
  taskStatus: z$1.ZodEnum<{
1390
1390
  pending: "pending";
1391
- running: "running";
1392
- paused: "paused";
1393
1391
  completed: "completed";
1394
1392
  failed: "failed";
1393
+ paused: "paused";
1394
+ running: "running";
1395
1395
  killed: "killed";
1396
1396
  stopped: "stopped";
1397
1397
  }>;
@@ -1408,8 +1408,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
1408
1408
  index: z$1.ZodNumber;
1409
1409
  label: z$1.ZodString;
1410
1410
  state: z$1.ZodEnum<{
1411
- running: "running";
1412
1411
  failed: "failed";
1412
+ running: "running";
1413
1413
  queued: "queued";
1414
1414
  done: "done";
1415
1415
  skipped: "skipped";
@@ -2079,9 +2079,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2079
2079
  step: z$1.ZodString;
2080
2080
  status: z$1.ZodOptional<z$1.ZodEnum<{
2081
2081
  pending: "pending";
2082
+ active: "active";
2082
2083
  completed: "completed";
2083
2084
  failed: "failed";
2084
- active: "active";
2085
2085
  }>>;
2086
2086
  }, z$1.core.$strip>>;
2087
2087
  explanation: z$1.ZodOptional<z$1.ZodString>;
@@ -2160,10 +2160,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2160
2160
  }>;
2161
2161
  taskStatus: z$1.ZodEnum<{
2162
2162
  pending: "pending";
2163
- running: "running";
2164
- paused: "paused";
2165
2163
  completed: "completed";
2166
2164
  failed: "failed";
2165
+ paused: "paused";
2166
+ running: "running";
2167
2167
  killed: "killed";
2168
2168
  stopped: "stopped";
2169
2169
  }>;
@@ -2180,8 +2180,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2180
2180
  index: z$1.ZodNumber;
2181
2181
  label: z$1.ZodString;
2182
2182
  state: z$1.ZodEnum<{
2183
- running: "running";
2184
2183
  failed: "failed";
2184
+ running: "running";
2185
2185
  queued: "queued";
2186
2186
  done: "done";
2187
2187
  skipped: "skipped";
@@ -2392,10 +2392,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2392
2392
  }>;
2393
2393
  taskStatus: z$1.ZodEnum<{
2394
2394
  pending: "pending";
2395
- running: "running";
2396
- paused: "paused";
2397
2395
  completed: "completed";
2398
2396
  failed: "failed";
2397
+ paused: "paused";
2398
+ running: "running";
2399
2399
  killed: "killed";
2400
2400
  stopped: "stopped";
2401
2401
  }>;
@@ -2412,8 +2412,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2412
2412
  index: z$1.ZodNumber;
2413
2413
  label: z$1.ZodString;
2414
2414
  state: z$1.ZodEnum<{
2415
- running: "running";
2416
2415
  failed: "failed";
2416
+ running: "running";
2417
2417
  queued: "queued";
2418
2418
  done: "done";
2419
2419
  skipped: "skipped";
@@ -2491,10 +2491,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2491
2491
  }>;
2492
2492
  taskStatus: z$1.ZodEnum<{
2493
2493
  pending: "pending";
2494
- running: "running";
2495
- paused: "paused";
2496
2494
  completed: "completed";
2497
2495
  failed: "failed";
2496
+ paused: "paused";
2497
+ running: "running";
2498
2498
  killed: "killed";
2499
2499
  stopped: "stopped";
2500
2500
  }>;
@@ -2511,8 +2511,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2511
2511
  index: z$1.ZodNumber;
2512
2512
  label: z$1.ZodString;
2513
2513
  state: z$1.ZodEnum<{
2514
- running: "running";
2515
2514
  failed: "failed";
2515
+ running: "running";
2516
2516
  queued: "queued";
2517
2517
  done: "done";
2518
2518
  skipped: "skipped";
@@ -2707,9 +2707,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2707
2707
  step: z$1.ZodString;
2708
2708
  status: z$1.ZodOptional<z$1.ZodEnum<{
2709
2709
  pending: "pending";
2710
+ active: "active";
2710
2711
  completed: "completed";
2711
2712
  failed: "failed";
2712
- active: "active";
2713
2713
  }>>;
2714
2714
  }, z$1.core.$strip>>;
2715
2715
  explanation: z$1.ZodOptional<z$1.ZodString>;
@@ -2718,8 +2718,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
2718
2718
  threadId: z$1.ZodString;
2719
2719
  providerThreadId: z$1.ZodString;
2720
2720
  state: z$1.ZodEnum<{
2721
- running: "running";
2722
2721
  idle: "idle";
2722
+ running: "running";
2723
2723
  }>;
2724
2724
  }, z$1.core.$strip>, z$1.ZodObject<{
2725
2725
  type: z$1.ZodLiteral<"turn/diff/updated">;
@@ -3011,8 +3011,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3011
3011
  }>;
3012
3012
  name: z$1.ZodString;
3013
3013
  source: z$1.ZodEnum<{
3014
- skill: "skill";
3015
3014
  command: "command";
3015
+ skill: "skill";
3016
3016
  }>;
3017
3017
  origin: z$1.ZodEnum<{
3018
3018
  user: "user";
@@ -3101,8 +3101,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3101
3101
  }>;
3102
3102
  name: z$1.ZodString;
3103
3103
  source: z$1.ZodEnum<{
3104
- skill: "skill";
3105
3104
  command: "command";
3105
+ skill: "skill";
3106
3106
  }>;
3107
3107
  origin: z$1.ZodEnum<{
3108
3108
  user: "user";
@@ -3581,9 +3581,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3581
3581
  threadId: z$1.ZodString;
3582
3582
  provisioningId: z$1.ZodString;
3583
3583
  status: z$1.ZodEnum<{
3584
+ active: "active";
3584
3585
  completed: "completed";
3585
3586
  failed: "failed";
3586
- active: "active";
3587
3587
  cancelled: "cancelled";
3588
3588
  }>;
3589
3589
  environmentId: z$1.ZodNullable<z$1.ZodString>;
@@ -4019,8 +4019,8 @@ declare const promptTextMentionSchema: z$1.ZodObject<{
4019
4019
  }>;
4020
4020
  name: z$1.ZodString;
4021
4021
  source: z$1.ZodEnum<{
4022
- skill: "skill";
4023
4022
  command: "command";
4023
+ skill: "skill";
4024
4024
  }>;
4025
4025
  origin: z$1.ZodEnum<{
4026
4026
  user: "user";
@@ -4084,8 +4084,8 @@ declare const promptInputSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4084
4084
  }>;
4085
4085
  name: z$1.ZodString;
4086
4086
  source: z$1.ZodEnum<{
4087
- skill: "skill";
4088
4087
  command: "command";
4088
+ skill: "skill";
4089
4089
  }>;
4090
4090
  origin: z$1.ZodEnum<{
4091
4091
  user: "user";
@@ -4243,8 +4243,8 @@ declare const providerInfoSchema: z$1.ZodObject<{
4243
4243
  }, z$1.core.$strip>;
4244
4244
  }, z$1.core.$strip>], "kind">>;
4245
4245
  completedTurnDisplay: z$1.ZodEnum<{
4246
- collapse: "collapse";
4247
4246
  flat: "flat";
4247
+ collapse: "collapse";
4248
4248
  }>;
4249
4249
  available: z$1.ZodBoolean;
4250
4250
  strings: z$1.ZodOptional<z$1.ZodObject<{
@@ -4396,8 +4396,8 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4396
4396
  }>;
4397
4397
  name: z$1.ZodString;
4398
4398
  source: z$1.ZodEnum<{
4399
- skill: "skill";
4400
4399
  command: "command";
4400
+ skill: "skill";
4401
4401
  }>;
4402
4402
  origin: z$1.ZodEnum<{
4403
4403
  user: "user";
@@ -6134,8 +6134,8 @@ declare const hostDaemonCommandRegistry: {
6134
6134
  skillFilePath: z$1.ZodString;
6135
6135
  }, z$1.core.$strict>], "kind">>;
6136
6136
  instructionMode: z$1.ZodEnum<{
6137
- append: "append";
6138
6137
  replace: "replace";
6138
+ append: "append";
6139
6139
  }>;
6140
6140
  type: z$1.ZodLiteral<"thread.rewind.prepare">;
6141
6141
  leaseId: z$1.ZodString;
@@ -6283,8 +6283,8 @@ declare const hostDaemonCommandRegistry: {
6283
6283
  skillFilePath: z$1.ZodString;
6284
6284
  }, z$1.core.$strict>], "kind">>;
6285
6285
  instructionMode: z$1.ZodEnum<{
6286
- append: "append";
6287
6286
  replace: "replace";
6287
+ append: "append";
6288
6288
  }>;
6289
6289
  type: z$1.ZodLiteral<"thread.start">;
6290
6290
  requestId: z$1.ZodString;
@@ -6747,8 +6747,8 @@ declare const hostDaemonCommandRegistry: {
6747
6747
  envPassthrough: z$1.ZodArray<z$1.ZodString>;
6748
6748
  }, z$1.core.$strict>;
6749
6749
  instructionMode: z$1.ZodEnum<{
6750
- append: "append";
6751
6750
  replace: "replace";
6751
+ append: "append";
6752
6752
  }>;
6753
6753
  projectId: z$1.ZodString;
6754
6754
  providerId: z$1.ZodString;
@@ -6963,8 +6963,8 @@ declare const hostDaemonCommandRegistry: {
6963
6963
  envPassthrough: z$1.ZodArray<z$1.ZodString>;
6964
6964
  }, z$1.core.$strict>;
6965
6965
  instructionMode: z$1.ZodEnum<{
6966
- append: "append";
6967
6966
  replace: "replace";
6967
+ append: "append";
6968
6968
  }>;
6969
6969
  projectId: z$1.ZodString;
6970
6970
  providerId: z$1.ZodString;
@@ -7870,9 +7870,9 @@ declare const hostDaemonCommandRegistry: {
7870
7870
  base64: "base64";
7871
7871
  utf8: "utf8";
7872
7872
  }>;
7873
- mimeType: z$1.ZodOptional<z$1.ZodString>;
7874
- sizeBytes: z$1.ZodNumber;
7875
7873
  sha256: z$1.ZodString;
7874
+ sizeBytes: z$1.ZodNumber;
7875
+ mimeType: z$1.ZodOptional<z$1.ZodString>;
7876
7876
  modifiedAtMs: z$1.ZodOptional<z$1.ZodNumber>;
7877
7877
  notModified: z$1.ZodLiteral<true>;
7878
7878
  }, z$1.core.$strip>]>, "onlineRpc", true>;
@@ -8137,10 +8137,10 @@ declare const hostDaemonCommandRegistry: {
8137
8137
  health: z$1.ZodObject<{
8138
8138
  status: z$1.ZodEnum<{
8139
8139
  unknown: "unknown";
8140
+ ready: "ready";
8140
8141
  not_installed: "not_installed";
8141
8142
  unauthenticated: "unauthenticated";
8142
8143
  expired: "expired";
8143
- ready: "ready";
8144
8144
  unsupported_version: "unsupported_version";
8145
8145
  }>;
8146
8146
  statusMessage: z$1.ZodNullable<z$1.ZodString>;
@@ -8188,9 +8188,9 @@ declare const hostDaemonCommandRegistry: {
8188
8188
  executablePath: z$1.ZodNullable<z$1.ZodString>;
8189
8189
  installed: z$1.ZodBoolean;
8190
8190
  installSource: z$1.ZodEnum<{
8191
- external: "external";
8192
8191
  notInstalled: "notInstalled";
8193
8192
  npmGlobal: "npmGlobal";
8193
+ external: "external";
8194
8194
  }>;
8195
8195
  currentVersion: z$1.ZodNullable<z$1.ZodString>;
8196
8196
  latestVersion: z$1.ZodNullable<z$1.ZodString>;
@@ -8636,8 +8636,8 @@ declare const hostDaemonCommandRegistry: {
8636
8636
  message: z$1.ZodNullable<z$1.ZodString>;
8637
8637
  state: z$1.ZodNullable<z$1.ZodEnum<{
8638
8638
  pending: "pending";
8639
- ready: "ready";
8640
8639
  activating: "activating";
8640
+ ready: "ready";
8641
8641
  }>>;
8642
8642
  }, z$1.core.$strict>, "onlineRpc", true>;
8643
8643
  "server_move.prepare": HostDaemonCommandDescriptor<"server_move.prepare", z$1.ZodObject<{
@@ -8739,9 +8739,9 @@ declare const providerCliStatusResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.
8739
8739
  executablePath: z$1.ZodNullable<z$1.ZodString>;
8740
8740
  installed: z$1.ZodBoolean;
8741
8741
  installSource: z$1.ZodEnum<{
8742
- external: "external";
8743
8742
  notInstalled: "notInstalled";
8744
8743
  npmGlobal: "npmGlobal";
8744
+ external: "external";
8745
8745
  }>;
8746
8746
  currentVersion: z$1.ZodNullable<z$1.ZodString>;
8747
8747
  latestVersion: 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.562",
3
+ "version": "0.47.0-halcyon.563",
4
4
  "description": "bb app launcher for npx",
5
5
  "keywords": [
6
6
  "bb",
@@ -108,7 +108,7 @@
108
108
  "node": "^22.19.0 || ^24.0.0 || ^26.0.0"
109
109
  },
110
110
  "moonletRelease": {
111
- "summary": "Core change: count parent-folder cargo and rustup settings as bundle inputs (#603)"
111
+ "summary": "Give app updates a database downgrade path instead of refusing every new migration (#604)"
112
112
  },
113
113
  "license": "SEE LICENSE IN LICENSE"
114
114
  }
@@ -1,12 +1,12 @@
1
1
  {
2
- "commit": "dc17cb24489fd9dd5b0282d8ee84ce85898c812b",
2
+ "commit": "ab6de6a6b4da5c00cf9586fd9fd0cf24c5e509b7",
3
3
  "file": "orbit-deploy",
4
4
  "platform": "linux-x64",
5
5
  "provenance": {
6
- "artifactId": 15277186315,
7
- "artifactName": "linux-bundle-dc17cb24489fd9dd5b0282d8ee84ce85898c812b",
6
+ "artifactId": 15277806778,
7
+ "artifactName": "linux-bundle-ab6de6a6b4da5c00cf9586fd9fd0cf24c5e509b7",
8
8
  "repository": "matt0x6F/personalassistant",
9
- "runId": 46177003869,
9
+ "runId": 46178287196,
10
10
  "workflow": ".github/workflows/moonlet-linux-bundle.yml"
11
11
  },
12
12
  "schema": 1,
@@ -1 +1 @@
1
- dc17cb24489fd9dd5b0282d8ee84ce85898c812b
1
+ ab6de6a6b4da5c00cf9586fd9fd0cf24c5e509b7
@@ -1 +1 @@
1
- {"repository":"matt0x6F/personalassistant","revision":"dc17cb24489fd9dd5b0282d8ee84ce85898c812b"}
1
+ {"repository":"matt0x6F/personalassistant","revision":"ab6de6a6b4da5c00cf9586fd9fd0cf24c5e509b7"}