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

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,22 @@ 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";
18755
- import { join as join12 } from "node:path";
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";
18764
+ import { basename as basename3, join as join12 } from "node:path";
18765
+ var SNAPSHOT_ROOT_NAME = "app-update-snapshots";
18766
+ var DATABASE_SIDE_FILE_SUFFIXES = ["-wal", "-shm", "-journal"];
18767
+ var BACKUP_PAGES_PER_STEP = 16384;
18756
18768
  async function migrationFingerprint(root) {
18757
18769
  if (!(await lstat(root)).isDirectory())
18758
18770
  throw new Error("Migration inventory must be a directory");
@@ -18781,19 +18793,107 @@ async function migrationFingerprint(root) {
18781
18793
  if (files === 0) throw new Error("No packaged database migrations found");
18782
18794
  return hash2.digest("hex");
18783
18795
  }
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
- );
18796
+ function packagedMigrations(revision) {
18797
+ return migrationFingerprint(
18798
+ join12(revision.packageRoot, "server", "dist", "drizzle")
18799
+ );
18800
+ }
18801
+ function snapshotDirectory(dataDir, attemptId) {
18802
+ if (!/^[a-zA-Z0-9_-]+$/u.test(attemptId))
18803
+ throw new Error("Invalid app update attempt identity");
18804
+ return join12(dataDir, SNAPSHOT_ROOT_NAME, attemptId);
18805
+ }
18806
+ async function isRegularFile(path2) {
18807
+ try {
18808
+ return (await lstat(path2)).isFile();
18809
+ } catch (error2) {
18810
+ if (error2 instanceof Error && "code" in error2 && error2.code === "ENOENT")
18811
+ return false;
18812
+ throw error2;
18813
+ }
18814
+ }
18815
+ async function syncToDisk(path2, directory) {
18816
+ if (directory && process.platform === "win32") return;
18817
+ const handle = await open4(path2, "r");
18818
+ try {
18819
+ await handle.sync();
18820
+ } finally {
18821
+ await handle.close();
18795
18822
  }
18796
18823
  }
18824
+ async function saveDatabase(databasePath, destination) {
18825
+ const Database = createRequire4(import.meta.url)("better-sqlite3");
18826
+ const source = new Database(databasePath, { fileMustExist: true });
18827
+ try {
18828
+ await source.backup(destination, {
18829
+ progress: () => BACKUP_PAGES_PER_STEP
18830
+ });
18831
+ } finally {
18832
+ source.close();
18833
+ }
18834
+ }
18835
+ function createNpmStartupMigrations(dataDir) {
18836
+ const databasePath = resolveDataDirDatabasePath({ dataDir });
18837
+ const snapshotFileName = basename3(databasePath);
18838
+ return {
18839
+ async prepare({ attemptId, previous, target }) {
18840
+ const [from, to] = await Promise.all([
18841
+ packagedMigrations(previous),
18842
+ packagedMigrations(target)
18843
+ ]);
18844
+ if (from === to) return "unchanged";
18845
+ const directory = snapshotDirectory(dataDir, attemptId);
18846
+ const snapshot = join12(directory, snapshotFileName);
18847
+ if (await isRegularFile(snapshot)) return "saved";
18848
+ const partial2 = join12(directory, `${snapshotFileName}.partial`);
18849
+ await mkdir9(directory, { recursive: true, mode: 448 });
18850
+ try {
18851
+ await rm6(partial2, { force: true });
18852
+ await saveDatabase(databasePath, partial2);
18853
+ await syncToDisk(partial2, false);
18854
+ await rename6(partial2, snapshot);
18855
+ await syncToDisk(directory, true);
18856
+ } catch (error2) {
18857
+ throw new Error(
18858
+ `Could not save the database before the update: ${error2 instanceof Error ? error2.message : String(error2)}`
18859
+ );
18860
+ } finally {
18861
+ await rm6(partial2, { force: true });
18862
+ }
18863
+ return "saved";
18864
+ },
18865
+ async restore(attemptId) {
18866
+ const directory = snapshotDirectory(dataDir, attemptId);
18867
+ const snapshot = join12(directory, snapshotFileName);
18868
+ if (!await isRegularFile(snapshot)) {
18869
+ await rm6(directory, { force: true, recursive: true });
18870
+ return false;
18871
+ }
18872
+ for (const suffix of DATABASE_SIDE_FILE_SUFFIXES)
18873
+ await rm6(`${databasePath}${suffix}`, { force: true });
18874
+ await rename6(snapshot, databasePath);
18875
+ await syncToDisk(dataDir, true);
18876
+ await rm6(directory, { force: true, recursive: true });
18877
+ return true;
18878
+ },
18879
+ async discard(keepAttemptId) {
18880
+ const root = join12(dataDir, SNAPSHOT_ROOT_NAME);
18881
+ let entries;
18882
+ try {
18883
+ entries = await readdir3(root);
18884
+ } catch (error2) {
18885
+ if (error2 instanceof Error && "code" in error2 && error2.code === "ENOENT")
18886
+ return;
18887
+ throw error2;
18888
+ }
18889
+ await Promise.all(
18890
+ entries.filter((entry) => entry !== keepAttemptId).map(
18891
+ (entry) => rm6(join12(root, entry), { force: true, recursive: true })
18892
+ )
18893
+ );
18894
+ }
18895
+ };
18896
+ }
18797
18897
 
18798
18898
  // src/app-update/npm-shim.ts
18799
18899
  function selectNpmRevision(args) {
@@ -18923,6 +19023,37 @@ async function runNpmShim(args) {
18923
19023
  ...state.lastResult?.id === attempt.id ? { lastResult: result } : {}
18924
19024
  }));
18925
19025
  };
19026
+ const migrations = args.migrations ?? createNpmStartupMigrations(args.dataDir);
19027
+ const discardSnapshots = async (keep) => {
19028
+ try {
19029
+ await migrations.discard(keep);
19030
+ } catch (error2) {
19031
+ args.output.warn(
19032
+ `Could not remove a database copy saved for an app update: ${String(error2)}`
19033
+ );
19034
+ }
19035
+ };
19036
+ const restoreDatabase = async (attempt, reason) => {
19037
+ const failed = attempt.failedTarget ?? attempt.to;
19038
+ try {
19039
+ if (await migrations.restore(attempt.id))
19040
+ args.output.warn(
19041
+ `Restored the database saved before ${failed.version} started.`
19042
+ );
19043
+ return true;
19044
+ } catch (error2) {
19045
+ await recordFailure(
19046
+ attempt,
19047
+ `${reason} Restoring the database saved before ${failed.version} also failed: ${String(error2)}`,
19048
+ true
19049
+ );
19050
+ await mutateAppUpdateState(args.dataDir, (state) => ({
19051
+ ...state,
19052
+ pending: attempt
19053
+ }));
19054
+ return false;
19055
+ }
19056
+ };
18926
19057
  const releasedContinuations = /* @__PURE__ */ new Set();
18927
19058
  const releaseContinuations = (attemptId) => {
18928
19059
  if (releasedContinuations.has(attemptId)) return;
@@ -18948,6 +19079,7 @@ async function runNpmShim(args) {
18948
19079
  for (; ; ) {
18949
19080
  const before = await readAppUpdateStateFile(args.dataDir);
18950
19081
  const pending = before?.pending ?? null;
19082
+ await discardSnapshots(pending?.id ?? null);
18951
19083
  if (pending === null) {
18952
19084
  const result = before?.lastResult;
18953
19085
  const revision = result?.outcome === "updated" ? result.to : result?.restored;
@@ -18974,6 +19106,11 @@ async function runNpmShim(args) {
18974
19106
  );
18975
19107
  if (failed !== null && failed.outcome === "failed" && isSameRevision(failed.to, pending.to)) {
18976
19108
  if (!isUsable(pending.from)) return 1;
19109
+ if (!await restoreDatabase(
19110
+ pending,
19111
+ failed.message ?? "Previously failed startup"
19112
+ ))
19113
+ return 1;
18977
19114
  const previous = pending.from;
18978
19115
  await mutateAppUpdateState(args.dataDir, (state2) => ({
18979
19116
  ...state2,
@@ -19003,7 +19140,15 @@ async function runNpmShim(args) {
19003
19140
  "The previous app version is unavailable for rollback"
19004
19141
  );
19005
19142
  }
19006
- await (args.checkMigrations ?? assertNpmStartupMigrationCompatibility)(attempt.from, launch);
19143
+ const preparation = await migrations.prepare({
19144
+ attemptId: attempt.id,
19145
+ previous: attempt.from,
19146
+ target: launch
19147
+ });
19148
+ if (preparation === "saved")
19149
+ args.output.info(
19150
+ `Saved the database before starting ${launch.version}; it is restored if ${launch.version} fails to start.`
19151
+ );
19007
19152
  } catch (error2) {
19008
19153
  failure2 = error2 instanceof Error ? error2.message : String(error2);
19009
19154
  }
@@ -19043,6 +19188,7 @@ async function runNpmShim(args) {
19043
19188
  releaseContinuations(attempt.id);
19044
19189
  startupVerified = true;
19045
19190
  clearInterval(poll);
19191
+ await discardSnapshots(null);
19046
19192
  } else if (result?.id === attempt.id && result.outcome === "failed" && state2?.pending === null) {
19047
19193
  stopFailedStartup(
19048
19194
  result.message ?? "The new version failed readiness verification"
@@ -19107,6 +19253,7 @@ async function runNpmShim(args) {
19107
19253
  if (recovering || attempt.from.kind !== "npm" || !isUsable(attempt.from)) {
19108
19254
  return 1;
19109
19255
  }
19256
+ if (!await restoreDatabase(attempt, reason)) return 1;
19110
19257
  const previous = attempt.from;
19111
19258
  await mutateAppUpdateState(args.dataDir, (state2) => ({
19112
19259
  ...state2,
@@ -19124,6 +19271,7 @@ async function runNpmShim(args) {
19124
19271
  launch = attempt.from;
19125
19272
  continue;
19126
19273
  }
19274
+ await discardSnapshots(null);
19127
19275
  }
19128
19276
  if (exit.code !== APP_UPDATE_RESTART_EXIT_CODE) {
19129
19277
  return toShimExitCode(exit);
package/dist/index.d.ts CHANGED
@@ -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>;
@@ -9523,11 +9523,11 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
9523
9523
  sectionId: z$1.ZodNullable<z$1.ZodString>;
9524
9524
  status: z$1.ZodEnum<{
9525
9525
  error: "error";
9526
+ stopping: "stopping";
9526
9527
  pending: "pending";
9527
9528
  idle: "idle";
9528
9529
  starting: "starting";
9529
9530
  active: "active";
9530
- stopping: "stopping";
9531
9531
  }>;
9532
9532
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
9533
9533
  lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
@@ -9560,12 +9560,12 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
9560
9560
  runtime: z$1.ZodObject<{
9561
9561
  displayStatus: z$1.ZodEnum<{
9562
9562
  error: "error";
9563
+ provisioning: "provisioning";
9564
+ stopping: "stopping";
9563
9565
  pending: "pending";
9564
9566
  idle: "idle";
9565
9567
  starting: "starting";
9566
9568
  active: "active";
9567
- stopping: "stopping";
9568
- provisioning: "provisioning";
9569
9569
  "waiting-for-host": "waiting-for-host";
9570
9570
  }>;
9571
9571
  }, z$1.core.$strip>;
@@ -9649,11 +9649,11 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
9649
9649
  sectionId: z$1.ZodNullable<z$1.ZodString>;
9650
9650
  status: z$1.ZodEnum<{
9651
9651
  error: "error";
9652
+ stopping: "stopping";
9652
9653
  pending: "pending";
9653
9654
  idle: "idle";
9654
9655
  starting: "starting";
9655
9656
  active: "active";
9656
- stopping: "stopping";
9657
9657
  }>;
9658
9658
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
9659
9659
  lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
@@ -9686,12 +9686,12 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
9686
9686
  runtime: z$1.ZodObject<{
9687
9687
  displayStatus: z$1.ZodEnum<{
9688
9688
  error: "error";
9689
+ provisioning: "provisioning";
9690
+ stopping: "stopping";
9689
9691
  pending: "pending";
9690
9692
  idle: "idle";
9691
9693
  starting: "starting";
9692
9694
  active: "active";
9693
- stopping: "stopping";
9694
- provisioning: "provisioning";
9695
9695
  "waiting-for-host": "waiting-for-host";
9696
9696
  }>;
9697
9697
  }, z$1.core.$strip>;
@@ -9767,11 +9767,11 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
9767
9767
  sectionId: z$1.ZodNullable<z$1.ZodString>;
9768
9768
  status: z$1.ZodEnum<{
9769
9769
  error: "error";
9770
+ stopping: "stopping";
9770
9771
  pending: "pending";
9771
9772
  idle: "idle";
9772
9773
  starting: "starting";
9773
9774
  active: "active";
9774
- stopping: "stopping";
9775
9775
  }>;
9776
9776
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
9777
9777
  lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
@@ -9804,12 +9804,12 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
9804
9804
  runtime: z$1.ZodObject<{
9805
9805
  displayStatus: z$1.ZodEnum<{
9806
9806
  error: "error";
9807
+ provisioning: "provisioning";
9808
+ stopping: "stopping";
9807
9809
  pending: "pending";
9808
9810
  idle: "idle";
9809
9811
  starting: "starting";
9810
9812
  active: "active";
9811
- stopping: "stopping";
9812
- provisioning: "provisioning";
9813
9813
  "waiting-for-host": "waiting-for-host";
9814
9814
  }>;
9815
9815
  }, z$1.core.$strip>;
@@ -10733,8 +10733,8 @@ declare const installedPluginSchema: z$1.ZodObject<{
10733
10733
  iconUrl: z$1.ZodNullable<z$1.ZodString>;
10734
10734
  status: z$1.ZodEnum<{
10735
10735
  error: "error";
10736
- disabled: "disabled";
10737
10736
  starting: "starting";
10737
+ disabled: "disabled";
10738
10738
  missing: "missing";
10739
10739
  running: "running";
10740
10740
  incompatible: "incompatible";
@@ -10853,8 +10853,8 @@ declare const pluginListResponseSchema: z$1.ZodObject<{
10853
10853
  iconUrl: z$1.ZodNullable<z$1.ZodString>;
10854
10854
  status: z$1.ZodEnum<{
10855
10855
  error: "error";
10856
- disabled: "disabled";
10857
10856
  starting: "starting";
10857
+ disabled: "disabled";
10858
10858
  missing: "missing";
10859
10859
  running: "running";
10860
10860
  incompatible: "incompatible";
@@ -11038,8 +11038,8 @@ declare const pluginInstallJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11038
11038
  iconUrl: z$1.ZodNullable<z$1.ZodString>;
11039
11039
  status: z$1.ZodEnum<{
11040
11040
  error: "error";
11041
- disabled: "disabled";
11042
11041
  starting: "starting";
11042
+ disabled: "disabled";
11043
11043
  missing: "missing";
11044
11044
  running: "running";
11045
11045
  incompatible: "incompatible";
@@ -11222,8 +11222,8 @@ declare const pluginReloadResponseSchema: z$1.ZodObject<{
11222
11222
  iconUrl: z$1.ZodNullable<z$1.ZodString>;
11223
11223
  status: z$1.ZodEnum<{
11224
11224
  error: "error";
11225
- disabled: "disabled";
11226
11225
  starting: "starting";
11226
+ disabled: "disabled";
11227
11227
  missing: "missing";
11228
11228
  running: "running";
11229
11229
  incompatible: "incompatible";
@@ -11994,9 +11994,9 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
11994
11994
  replay: "replay";
11995
11995
  }>;
11996
11996
  outcome: z$1.ZodEnum<{
11997
+ ready: "ready";
11997
11998
  failed: "failed";
11998
11999
  cancelled: "cancelled";
11999
- ready: "ready";
12000
12000
  started: "started";
12001
12001
  exited: "exited";
12002
12002
  }>;
@@ -12114,6 +12114,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
12114
12114
  result: z$1.ZodNullable<z$1.ZodObject<{
12115
12115
  message: z$1.ZodNullable<z$1.ZodString>;
12116
12116
  id: z$1.ZodString;
12117
+ retryable: z$1.ZodOptional<z$1.ZodBoolean>;
12117
12118
  outcome: z$1.ZodEnum<{
12118
12119
  failed: "failed";
12119
12120
  updated: "updated";
@@ -12124,7 +12125,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
12124
12125
  startup: "startup";
12125
12126
  }>>;
12126
12127
  finishedAt: z$1.ZodString;
12127
- retryable: z$1.ZodOptional<z$1.ZodBoolean>;
12128
12128
  from: z$1.ZodObject<{
12129
12129
  commit: z$1.ZodNullable<z$1.ZodString>;
12130
12130
  version: z$1.ZodString;
@@ -12143,6 +12143,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
12143
12143
  appUpdateReceipt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodLazy<z$1.ZodObject<{
12144
12144
  message: z$1.ZodNullable<z$1.ZodString>;
12145
12145
  id: z$1.ZodString;
12146
+ retryable: z$1.ZodOptional<z$1.ZodBoolean>;
12146
12147
  outcome: z$1.ZodEnum<{
12147
12148
  failed: "failed";
12148
12149
  updated: "updated";
@@ -12153,7 +12154,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
12153
12154
  startup: "startup";
12154
12155
  }>>;
12155
12156
  finishedAt: z$1.ZodString;
12156
- retryable: z$1.ZodOptional<z$1.ZodBoolean>;
12157
12157
  from: z$1.ZodObject<{
12158
12158
  commit: z$1.ZodNullable<z$1.ZodString>;
12159
12159
  version: z$1.ZodString;
@@ -14508,11 +14508,11 @@ declare const threadListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
14508
14508
  sectionId: z$1.ZodNullable<z$1.ZodString>;
14509
14509
  status: z$1.ZodEnum<{
14510
14510
  error: "error";
14511
+ stopping: "stopping";
14511
14512
  pending: "pending";
14512
14513
  idle: "idle";
14513
14514
  starting: "starting";
14514
14515
  active: "active";
14515
- stopping: "stopping";
14516
14516
  }>;
14517
14517
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14518
14518
  lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
@@ -14545,12 +14545,12 @@ declare const threadListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
14545
14545
  runtime: z$1.ZodObject<{
14546
14546
  displayStatus: z$1.ZodEnum<{
14547
14547
  error: "error";
14548
+ provisioning: "provisioning";
14549
+ stopping: "stopping";
14548
14550
  pending: "pending";
14549
14551
  idle: "idle";
14550
14552
  starting: "starting";
14551
14553
  active: "active";
14552
- stopping: "stopping";
14553
- provisioning: "provisioning";
14554
14554
  "waiting-for-host": "waiting-for-host";
14555
14555
  }>;
14556
14556
  }, z$1.core.$strip>;
@@ -14605,11 +14605,11 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
14605
14605
  sectionId: z$1.ZodNullable<z$1.ZodString>;
14606
14606
  status: z$1.ZodEnum<{
14607
14607
  error: "error";
14608
+ stopping: "stopping";
14608
14609
  pending: "pending";
14609
14610
  idle: "idle";
14610
14611
  starting: "starting";
14611
14612
  active: "active";
14612
- stopping: "stopping";
14613
14613
  }>;
14614
14614
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14615
14615
  lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
@@ -14642,12 +14642,12 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
14642
14642
  runtime: z$1.ZodObject<{
14643
14643
  displayStatus: z$1.ZodEnum<{
14644
14644
  error: "error";
14645
+ provisioning: "provisioning";
14646
+ stopping: "stopping";
14645
14647
  pending: "pending";
14646
14648
  idle: "idle";
14647
14649
  starting: "starting";
14648
14650
  active: "active";
14649
- stopping: "stopping";
14650
- provisioning: "provisioning";
14651
14651
  "waiting-for-host": "waiting-for-host";
14652
14652
  }>;
14653
14653
  }, z$1.core.$strip>;
@@ -14707,11 +14707,11 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
14707
14707
  sectionId: z$1.ZodNullable<z$1.ZodString>;
14708
14708
  status: z$1.ZodEnum<{
14709
14709
  error: "error";
14710
+ stopping: "stopping";
14710
14711
  pending: "pending";
14711
14712
  idle: "idle";
14712
14713
  starting: "starting";
14713
14714
  active: "active";
14714
- stopping: "stopping";
14715
14715
  }>;
14716
14716
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14717
14717
  lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
@@ -14744,12 +14744,12 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
14744
14744
  runtime: z$1.ZodObject<{
14745
14745
  displayStatus: z$1.ZodEnum<{
14746
14746
  error: "error";
14747
+ provisioning: "provisioning";
14748
+ stopping: "stopping";
14747
14749
  pending: "pending";
14748
14750
  idle: "idle";
14749
14751
  starting: "starting";
14750
14752
  active: "active";
14751
- stopping: "stopping";
14752
- provisioning: "provisioning";
14753
14753
  "waiting-for-host": "waiting-for-host";
14754
14754
  }>;
14755
14755
  }, z$1.core.$strip>;
@@ -14808,11 +14808,11 @@ declare const threadResponseSchema: z$1.ZodObject<{
14808
14808
  sectionId: z$1.ZodNullable<z$1.ZodString>;
14809
14809
  status: z$1.ZodEnum<{
14810
14810
  error: "error";
14811
+ stopping: "stopping";
14811
14812
  pending: "pending";
14812
14813
  idle: "idle";
14813
14814
  starting: "starting";
14814
14815
  active: "active";
14815
- stopping: "stopping";
14816
14816
  }>;
14817
14817
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14818
14818
  lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
@@ -14845,12 +14845,12 @@ declare const threadResponseSchema: z$1.ZodObject<{
14845
14845
  runtime: z$1.ZodObject<{
14846
14846
  displayStatus: z$1.ZodEnum<{
14847
14847
  error: "error";
14848
+ provisioning: "provisioning";
14849
+ stopping: "stopping";
14848
14850
  pending: "pending";
14849
14851
  idle: "idle";
14850
14852
  starting: "starting";
14851
14853
  active: "active";
14852
- stopping: "stopping";
14853
- provisioning: "provisioning";
14854
14854
  "waiting-for-host": "waiting-for-host";
14855
14855
  }>;
14856
14856
  }, z$1.core.$strip>;
@@ -14897,11 +14897,11 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14897
14897
  sectionId: z$1.ZodNullable<z$1.ZodString>;
14898
14898
  status: z$1.ZodEnum<{
14899
14899
  error: "error";
14900
+ stopping: "stopping";
14900
14901
  pending: "pending";
14901
14902
  idle: "idle";
14902
14903
  starting: "starting";
14903
14904
  active: "active";
14904
- stopping: "stopping";
14905
14905
  }>;
14906
14906
  parentThreadId: z$1.ZodNullable<z$1.ZodString>;
14907
14907
  lifecycleOwnerThreadId: z$1.ZodNullable<z$1.ZodString>;
@@ -14934,12 +14934,12 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14934
14934
  runtime: z$1.ZodObject<{
14935
14935
  displayStatus: z$1.ZodEnum<{
14936
14936
  error: "error";
14937
+ provisioning: "provisioning";
14938
+ stopping: "stopping";
14937
14939
  pending: "pending";
14938
14940
  idle: "idle";
14939
14941
  starting: "starting";
14940
14942
  active: "active";
14941
- stopping: "stopping";
14942
- provisioning: "provisioning";
14943
14943
  "waiting-for-host": "waiting-for-host";
14944
14944
  }>;
14945
14945
  }, z$1.core.$strip>;
@@ -14962,17 +14962,17 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
14962
14962
  mergeBaseBranch: z$1.ZodNullable<z$1.ZodString>;
14963
14963
  status: z$1.ZodEnum<{
14964
14964
  error: "error";
14965
+ creating: "creating";
14965
14966
  provisioning: "provisioning";
14966
14967
  ready: "ready";
14967
- creating: "creating";
14968
14968
  destroyed: "destroyed";
14969
14969
  }>;
14970
14970
  environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
14971
14971
  lifecycle: z$1.ZodObject<{
14972
14972
  phase: z$1.ZodEnum<{
14973
+ destroyed: "destroyed";
14973
14974
  active: "active";
14974
14975
  teardown: "teardown";
14975
- destroyed: "destroyed";
14976
14976
  retiring: "retiring";
14977
14977
  }>;
14978
14978
  retireAt: z$1.ZodNullable<z$1.ZodNumber>;
@@ -15021,19 +15021,19 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
15021
15021
  ephemeral: "ephemeral";
15022
15022
  }>;
15023
15023
  status: z$1.ZodEnum<{
15024
- connected: "connected";
15025
15024
  disconnected: "disconnected";
15025
+ connected: "connected";
15026
15026
  }>;
15027
15027
  machineProviderId: z$1.ZodNullable<z$1.ZodString>;
15028
15028
  lifecycle: z$1.ZodObject<{
15029
15029
  phase: z$1.ZodEnum<{
15030
- active: "active";
15031
15030
  creating: "creating";
15032
- suspending: "suspending";
15031
+ destroyed: "destroyed";
15032
+ active: "active";
15033
15033
  suspended: "suspended";
15034
+ suspending: "suspending";
15034
15035
  resuming: "resuming";
15035
15036
  removing: "removing";
15036
- destroyed: "destroyed";
15037
15037
  }>;
15038
15038
  suspendedAt: z$1.ZodNullable<z$1.ZodNumber>;
15039
15039
  message: z$1.ZodNullable<z$1.ZodString>;
@@ -16570,17 +16570,17 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
16570
16570
  timeUsedSeconds: z$1.ZodNumber;
16571
16571
  }, z$1.core.$strip>>;
16572
16572
  providerCommands: z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
16573
+ source: z$1.ZodEnum<{
16574
+ command: "command";
16575
+ skill: "skill";
16576
+ }>;
16577
+ name: z$1.ZodString;
16573
16578
  origin: z$1.ZodEnum<{
16574
16579
  project: "project";
16575
16580
  builtin: "builtin";
16576
16581
  user: "user";
16577
16582
  }>;
16578
16583
  description: z$1.ZodNullable<z$1.ZodString>;
16579
- source: z$1.ZodEnum<{
16580
- command: "command";
16581
- skill: "skill";
16582
- }>;
16583
- name: z$1.ZodString;
16584
16584
  argumentHint: z$1.ZodNullable<z$1.ZodString>;
16585
16585
  }, z$1.core.$strip>>>;
16586
16586
  sessionOptions: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
@@ -17317,7 +17317,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
17317
17317
  title: string | null;
17318
17318
  titleFallback: string | null;
17319
17319
  sectionId: string | null;
17320
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
17320
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
17321
17321
  parentThreadId: string | null;
17322
17322
  lifecycleOwnerThreadId: string | null;
17323
17323
  sourceThreadId: string | null;
@@ -17333,7 +17333,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
17333
17333
  createdAt: number;
17334
17334
  updatedAt: number;
17335
17335
  runtime: {
17336
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
17336
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
17337
17337
  };
17338
17338
  activity: {
17339
17339
  activeWorkflowCount: number;
@@ -17427,7 +17427,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
17427
17427
  title: string | null;
17428
17428
  titleFallback: string | null;
17429
17429
  sectionId: string | null;
17430
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
17430
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
17431
17431
  parentThreadId: string | null;
17432
17432
  lifecycleOwnerThreadId: string | null;
17433
17433
  sourceThreadId: string | null;
@@ -17443,7 +17443,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
17443
17443
  createdAt: number;
17444
17444
  updatedAt: number;
17445
17445
  runtime: {
17446
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
17446
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
17447
17447
  };
17448
17448
  activity: {
17449
17449
  activeWorkflowCount: number;
@@ -17499,7 +17499,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
17499
17499
  title: string | null;
17500
17500
  titleFallback: string | null;
17501
17501
  sectionId: string | null;
17502
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
17502
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
17503
17503
  parentThreadId: string | null;
17504
17504
  lifecycleOwnerThreadId: string | null;
17505
17505
  sourceThreadId: string | null;
@@ -17515,7 +17515,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
17515
17515
  createdAt: number;
17516
17516
  updatedAt: number;
17517
17517
  runtime: {
17518
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
17518
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
17519
17519
  };
17520
17520
  activity: {
17521
17521
  activeWorkflowCount: number;
@@ -18528,10 +18528,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
18528
18528
  id: string;
18529
18529
  name: string;
18530
18530
  type: "persistent" | "ephemeral";
18531
- status: "connected" | "disconnected";
18531
+ status: "disconnected" | "connected";
18532
18532
  machineProviderId: string | null;
18533
18533
  lifecycle: {
18534
- phase: "active" | "creating" | "suspending" | "suspended" | "resuming" | "removing" | "destroyed";
18534
+ phase: "creating" | "destroyed" | "active" | "suspended" | "suspending" | "resuming" | "removing";
18535
18535
  suspendedAt: number | null;
18536
18536
  message: string | null;
18537
18537
  pendingLog: string;
@@ -18562,10 +18562,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
18562
18562
  id: string;
18563
18563
  name: string;
18564
18564
  type: "persistent" | "ephemeral";
18565
- status: "connected" | "disconnected";
18565
+ status: "disconnected" | "connected";
18566
18566
  machineProviderId: string | null;
18567
18567
  lifecycle: {
18568
- phase: "active" | "creating" | "suspending" | "suspended" | "resuming" | "removing" | "destroyed";
18568
+ phase: "creating" | "destroyed" | "active" | "suspended" | "suspending" | "resuming" | "removing";
18569
18569
  suspendedAt: number | null;
18570
18570
  message: string | null;
18571
18571
  pendingLog: string;
@@ -18607,10 +18607,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
18607
18607
  id: string;
18608
18608
  name: string;
18609
18609
  type: "persistent" | "ephemeral";
18610
- status: "connected" | "disconnected";
18610
+ status: "disconnected" | "connected";
18611
18611
  machineProviderId: string | null;
18612
18612
  lifecycle: {
18613
- phase: "active" | "creating" | "suspending" | "suspended" | "resuming" | "removing" | "destroyed";
18613
+ phase: "creating" | "destroyed" | "active" | "suspended" | "suspending" | "resuming" | "removing";
18614
18614
  suspendedAt: number | null;
18615
18615
  message: string | null;
18616
18616
  pendingLog: string;
@@ -18644,10 +18644,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
18644
18644
  id: string;
18645
18645
  name: string;
18646
18646
  type: "persistent" | "ephemeral";
18647
- status: "connected" | "disconnected";
18647
+ status: "disconnected" | "connected";
18648
18648
  machineProviderId: string | null;
18649
18649
  lifecycle: {
18650
- phase: "active" | "creating" | "suspending" | "suspended" | "resuming" | "removing" | "destroyed";
18650
+ phase: "creating" | "destroyed" | "active" | "suspended" | "suspending" | "resuming" | "removing";
18651
18651
  suspendedAt: number | null;
18652
18652
  message: string | null;
18653
18653
  pendingLog: string;
@@ -18752,10 +18752,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
18752
18752
  id: string;
18753
18753
  name: string;
18754
18754
  type: "persistent" | "ephemeral";
18755
- status: "connected" | "disconnected";
18755
+ status: "disconnected" | "connected";
18756
18756
  machineProviderId: string | null;
18757
18757
  lifecycle: {
18758
- phase: "active" | "creating" | "suspending" | "suspended" | "resuming" | "removing" | "destroyed";
18758
+ phase: "creating" | "destroyed" | "active" | "suspended" | "suspending" | "resuming" | "removing";
18759
18759
  suspendedAt: number | null;
18760
18760
  message: string | null;
18761
18761
  pendingLog: string;
@@ -18798,10 +18798,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
18798
18798
  id: string;
18799
18799
  name: string;
18800
18800
  type: "persistent" | "ephemeral";
18801
- status: "connected" | "disconnected";
18801
+ status: "disconnected" | "connected";
18802
18802
  machineProviderId: string | null;
18803
18803
  lifecycle: {
18804
- phase: "active" | "creating" | "suspending" | "suspended" | "resuming" | "removing" | "destroyed";
18804
+ phase: "creating" | "destroyed" | "active" | "suspended" | "suspending" | "resuming" | "removing";
18805
18805
  suspendedAt: number | null;
18806
18806
  message: string | null;
18807
18807
  pendingLog: string;
@@ -18834,10 +18834,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
18834
18834
  id: string;
18835
18835
  name: string;
18836
18836
  type: "persistent" | "ephemeral";
18837
- status: "connected" | "disconnected";
18837
+ status: "disconnected" | "connected";
18838
18838
  machineProviderId: string | null;
18839
18839
  lifecycle: {
18840
- phase: "active" | "creating" | "suspending" | "suspended" | "resuming" | "removing" | "destroyed";
18840
+ phase: "creating" | "destroyed" | "active" | "suspended" | "suspending" | "resuming" | "removing";
18841
18841
  suspendedAt: number | null;
18842
18842
  message: string | null;
18843
18843
  pendingLog: string;
@@ -18870,10 +18870,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
18870
18870
  id: string;
18871
18871
  name: string;
18872
18872
  type: "persistent" | "ephemeral";
18873
- status: "connected" | "disconnected";
18873
+ status: "disconnected" | "connected";
18874
18874
  machineProviderId: string | null;
18875
18875
  lifecycle: {
18876
- phase: "active" | "creating" | "suspending" | "suspended" | "resuming" | "removing" | "destroyed";
18876
+ phase: "creating" | "destroyed" | "active" | "suspended" | "suspending" | "resuming" | "removing";
18877
18877
  suspendedAt: number | null;
18878
18878
  message: string | null;
18879
18879
  pendingLog: string;
@@ -19469,7 +19469,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
19469
19469
  hostId?: string | undefined;
19470
19470
  instanceKey?: string | undefined;
19471
19471
  path?: string | undefined;
19472
- status?: "error" | "provisioning" | "ready" | "creating" | "destroyed" | undefined;
19472
+ status?: "error" | "creating" | "provisioning" | "ready" | "destroyed" | undefined;
19473
19473
  limit?: string | undefined;
19474
19474
  offset?: string | undefined;
19475
19475
  } | undefined;
@@ -19485,10 +19485,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
19485
19485
  baseBranch: string | null;
19486
19486
  defaultBranch: string | null;
19487
19487
  mergeBaseBranch: string | null;
19488
- status: "error" | "provisioning" | "ready" | "creating" | "destroyed";
19488
+ status: "error" | "creating" | "provisioning" | "ready" | "destroyed";
19489
19489
  environmentProviderId: string | null;
19490
19490
  lifecycle: {
19491
- phase: "active" | "teardown" | "destroyed" | "retiring";
19491
+ phase: "destroyed" | "active" | "teardown" | "retiring";
19492
19492
  retireAt: number | null;
19493
19493
  teardown: {
19494
19494
  status: "failed" | "running" | "removed";
@@ -19548,10 +19548,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
19548
19548
  baseBranch: string | null;
19549
19549
  defaultBranch: string | null;
19550
19550
  mergeBaseBranch: string | null;
19551
- status: "error" | "provisioning" | "ready" | "creating" | "destroyed";
19551
+ status: "error" | "creating" | "provisioning" | "ready" | "destroyed";
19552
19552
  environmentProviderId: string | null;
19553
19553
  lifecycle: {
19554
- phase: "active" | "teardown" | "destroyed" | "retiring";
19554
+ phase: "destroyed" | "active" | "teardown" | "retiring";
19555
19555
  retireAt: number | null;
19556
19556
  teardown: {
19557
19557
  status: "failed" | "running" | "removed";
@@ -19594,10 +19594,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
19594
19594
  baseBranch: string | null;
19595
19595
  defaultBranch: string | null;
19596
19596
  mergeBaseBranch: string | null;
19597
- status: "error" | "provisioning" | "ready" | "creating" | "destroyed";
19597
+ status: "error" | "creating" | "provisioning" | "ready" | "destroyed";
19598
19598
  environmentProviderId: string | null;
19599
19599
  lifecycle: {
19600
- phase: "active" | "teardown" | "destroyed" | "retiring";
19600
+ phase: "destroyed" | "active" | "teardown" | "retiring";
19601
19601
  retireAt: number | null;
19602
19602
  teardown: {
19603
19603
  status: "failed" | "running" | "removed";
@@ -20208,7 +20208,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20208
20208
  title: string | null;
20209
20209
  titleFallback: string | null;
20210
20210
  sectionId: string | null;
20211
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
20211
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
20212
20212
  parentThreadId: string | null;
20213
20213
  lifecycleOwnerThreadId: string | null;
20214
20214
  sourceThreadId: string | null;
@@ -20224,7 +20224,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20224
20224
  createdAt: number;
20225
20225
  updatedAt: number;
20226
20226
  runtime: {
20227
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
20227
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
20228
20228
  };
20229
20229
  activity: {
20230
20230
  activeWorkflowCount: number;
@@ -20403,7 +20403,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20403
20403
  title: string | null;
20404
20404
  titleFallback: string | null;
20405
20405
  sectionId: string | null;
20406
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
20406
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
20407
20407
  parentThreadId: string | null;
20408
20408
  lifecycleOwnerThreadId: string | null;
20409
20409
  sourceThreadId: string | null;
@@ -20419,7 +20419,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20419
20419
  createdAt: number;
20420
20420
  updatedAt: number;
20421
20421
  runtime: {
20422
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
20422
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
20423
20423
  };
20424
20424
  activeBackgroundAgentCount: number;
20425
20425
  canRestoreEnvironment: boolean;
@@ -20435,7 +20435,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20435
20435
  count: hono_client.ClientRequest<string, "/threads/count", {
20436
20436
  $get: Endpoint<EmptyInput & {
20437
20437
  query?: {
20438
- status?: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | undefined;
20438
+ status?: "error" | "stopping" | "pending" | "idle" | "starting" | "active" | undefined;
20439
20439
  hostId?: string | undefined;
20440
20440
  providerId?: string | undefined;
20441
20441
  projectId?: string | undefined;
@@ -20482,7 +20482,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20482
20482
  title: string | null;
20483
20483
  titleFallback: string | null;
20484
20484
  sectionId: string | null;
20485
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
20485
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
20486
20486
  parentThreadId: string | null;
20487
20487
  lifecycleOwnerThreadId: string | null;
20488
20488
  sourceThreadId: string | null;
@@ -20498,7 +20498,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20498
20498
  createdAt: number;
20499
20499
  updatedAt: number;
20500
20500
  runtime: {
20501
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
20501
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
20502
20502
  };
20503
20503
  activity: {
20504
20504
  activeWorkflowCount: number;
@@ -20542,7 +20542,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20542
20542
  title: string | null;
20543
20543
  titleFallback: string | null;
20544
20544
  sectionId: string | null;
20545
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
20545
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
20546
20546
  parentThreadId: string | null;
20547
20547
  lifecycleOwnerThreadId: string | null;
20548
20548
  sourceThreadId: string | null;
@@ -20558,7 +20558,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20558
20558
  createdAt: number;
20559
20559
  updatedAt: number;
20560
20560
  runtime: {
20561
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
20561
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
20562
20562
  };
20563
20563
  activity: {
20564
20564
  activeWorkflowCount: number;
@@ -20807,7 +20807,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20807
20807
  title: string | null;
20808
20808
  titleFallback: string | null;
20809
20809
  sectionId: string | null;
20810
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
20810
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
20811
20811
  parentThreadId: string | null;
20812
20812
  lifecycleOwnerThreadId: string | null;
20813
20813
  sourceThreadId: string | null;
@@ -20823,7 +20823,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20823
20823
  createdAt: number;
20824
20824
  updatedAt: number;
20825
20825
  runtime: {
20826
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
20826
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
20827
20827
  };
20828
20828
  activeBackgroundAgentCount: number;
20829
20829
  canRestoreEnvironment: boolean;
@@ -20850,7 +20850,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20850
20850
  title: string | null;
20851
20851
  titleFallback: string | null;
20852
20852
  sectionId: string | null;
20853
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
20853
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
20854
20854
  parentThreadId: string | null;
20855
20855
  lifecycleOwnerThreadId: string | null;
20856
20856
  sourceThreadId: string | null;
@@ -20866,7 +20866,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20866
20866
  createdAt: number;
20867
20867
  updatedAt: number;
20868
20868
  runtime: {
20869
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
20869
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
20870
20870
  };
20871
20871
  activeBackgroundAgentCount: number;
20872
20872
  canRestoreEnvironment: boolean;
@@ -20883,7 +20883,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20883
20883
  title: string | null;
20884
20884
  titleFallback: string | null;
20885
20885
  sectionId: string | null;
20886
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
20886
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
20887
20887
  parentThreadId: string | null;
20888
20888
  lifecycleOwnerThreadId: string | null;
20889
20889
  sourceThreadId: string | null;
@@ -20899,7 +20899,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20899
20899
  createdAt: number;
20900
20900
  updatedAt: number;
20901
20901
  runtime: {
20902
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
20902
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
20903
20903
  };
20904
20904
  activeBackgroundAgentCount: number;
20905
20905
  canRestoreEnvironment: boolean;
@@ -20920,10 +20920,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20920
20920
  baseBranch: string | null;
20921
20921
  defaultBranch: string | null;
20922
20922
  mergeBaseBranch: string | null;
20923
- status: "error" | "provisioning" | "ready" | "creating" | "destroyed";
20923
+ status: "error" | "creating" | "provisioning" | "ready" | "destroyed";
20924
20924
  environmentProviderId: string | null;
20925
20925
  lifecycle: {
20926
- phase: "active" | "teardown" | "destroyed" | "retiring";
20926
+ phase: "destroyed" | "active" | "teardown" | "retiring";
20927
20927
  retireAt: number | null;
20928
20928
  teardown: {
20929
20929
  status: "failed" | "running" | "removed";
@@ -20953,10 +20953,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20953
20953
  id: string;
20954
20954
  name: string;
20955
20955
  type: "persistent" | "ephemeral";
20956
- status: "connected" | "disconnected";
20956
+ status: "disconnected" | "connected";
20957
20957
  machineProviderId: string | null;
20958
20958
  lifecycle: {
20959
- phase: "active" | "creating" | "suspending" | "suspended" | "resuming" | "removing" | "destroyed";
20959
+ phase: "creating" | "destroyed" | "active" | "suspended" | "suspending" | "resuming" | "removing";
20960
20960
  suspendedAt: number | null;
20961
20961
  message: string | null;
20962
20962
  pendingLog: string;
@@ -20999,7 +20999,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
20999
20999
  title: string | null;
21000
21000
  titleFallback: string | null;
21001
21001
  sectionId: string | null;
21002
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
21002
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
21003
21003
  parentThreadId: string | null;
21004
21004
  lifecycleOwnerThreadId: string | null;
21005
21005
  sourceThreadId: string | null;
@@ -21015,7 +21015,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
21015
21015
  createdAt: number;
21016
21016
  updatedAt: number;
21017
21017
  runtime: {
21018
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
21018
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
21019
21019
  };
21020
21020
  activeBackgroundAgentCount: number;
21021
21021
  canRestoreEnvironment: boolean;
@@ -23189,7 +23189,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
23189
23189
  title: string | null;
23190
23190
  titleFallback: string | null;
23191
23191
  sectionId: string | null;
23192
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
23192
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
23193
23193
  parentThreadId: string | null;
23194
23194
  lifecycleOwnerThreadId: string | null;
23195
23195
  sourceThreadId: string | null;
@@ -23205,7 +23205,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
23205
23205
  createdAt: number;
23206
23206
  updatedAt: number;
23207
23207
  runtime: {
23208
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
23208
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
23209
23209
  };
23210
23210
  activeBackgroundAgentCount: number;
23211
23211
  canRestoreEnvironment: boolean;
@@ -23230,7 +23230,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
23230
23230
  title: string | null;
23231
23231
  titleFallback: string | null;
23232
23232
  sectionId: string | null;
23233
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
23233
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
23234
23234
  parentThreadId: string | null;
23235
23235
  lifecycleOwnerThreadId: string | null;
23236
23236
  sourceThreadId: string | null;
@@ -23246,7 +23246,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
23246
23246
  createdAt: number;
23247
23247
  updatedAt: number;
23248
23248
  runtime: {
23249
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
23249
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
23250
23250
  };
23251
23251
  activeBackgroundAgentCount: number;
23252
23252
  canRestoreEnvironment: boolean;
@@ -23276,7 +23276,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
23276
23276
  title: string | null;
23277
23277
  titleFallback: string | null;
23278
23278
  sectionId: string | null;
23279
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
23279
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
23280
23280
  parentThreadId: string | null;
23281
23281
  lifecycleOwnerThreadId: string | null;
23282
23282
  sourceThreadId: string | null;
@@ -23292,7 +23292,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
23292
23292
  createdAt: number;
23293
23293
  updatedAt: number;
23294
23294
  runtime: {
23295
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
23295
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
23296
23296
  };
23297
23297
  activity: {
23298
23298
  activeWorkflowCount: number;
@@ -23724,7 +23724,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
23724
23724
  title: string | null;
23725
23725
  titleFallback: string | null;
23726
23726
  sectionId: string | null;
23727
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
23727
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
23728
23728
  parentThreadId: string | null;
23729
23729
  lifecycleOwnerThreadId: string | null;
23730
23730
  sourceThreadId: string | null;
@@ -23740,7 +23740,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
23740
23740
  createdAt: number;
23741
23741
  updatedAt: number;
23742
23742
  runtime: {
23743
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
23743
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
23744
23744
  };
23745
23745
  activeBackgroundAgentCount: number;
23746
23746
  canRestoreEnvironment: boolean;
@@ -23765,7 +23765,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
23765
23765
  title: string | null;
23766
23766
  titleFallback: string | null;
23767
23767
  sectionId: string | null;
23768
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
23768
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
23769
23769
  parentThreadId: string | null;
23770
23770
  lifecycleOwnerThreadId: string | null;
23771
23771
  sourceThreadId: string | null;
@@ -23781,7 +23781,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
23781
23781
  createdAt: number;
23782
23782
  updatedAt: number;
23783
23783
  runtime: {
23784
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
23784
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
23785
23785
  };
23786
23786
  activeBackgroundAgentCount: number;
23787
23787
  canRestoreEnvironment: boolean;
@@ -23806,7 +23806,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
23806
23806
  title: string | null;
23807
23807
  titleFallback: string | null;
23808
23808
  sectionId: string | null;
23809
- status: "error" | "pending" | "idle" | "starting" | "active" | "stopping";
23809
+ status: "error" | "stopping" | "pending" | "idle" | "starting" | "active";
23810
23810
  parentThreadId: string | null;
23811
23811
  lifecycleOwnerThreadId: string | null;
23812
23812
  sourceThreadId: string | null;
@@ -23822,7 +23822,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
23822
23822
  createdAt: number;
23823
23823
  updatedAt: number;
23824
23824
  runtime: {
23825
- displayStatus: "error" | "pending" | "idle" | "starting" | "active" | "stopping" | "provisioning" | "waiting-for-host";
23825
+ displayStatus: "error" | "provisioning" | "stopping" | "pending" | "idle" | "starting" | "active" | "waiting-for-host";
23826
23826
  };
23827
23827
  activeBackgroundAgentCount: number;
23828
23828
  canRestoreEnvironment: boolean;
@@ -24058,10 +24058,10 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
24058
24058
  timeUsedSeconds: number;
24059
24059
  } | null;
24060
24060
  providerCommands: {
24061
- origin: "project" | "builtin" | "user";
24062
- description: string | null;
24063
24061
  source: "command" | "skill";
24064
24062
  name: string;
24063
+ origin: "project" | "builtin" | "user";
24064
+ description: string | null;
24065
24065
  argumentHint: string | null;
24066
24066
  }[] | null;
24067
24067
  sessionOptions: ({
@@ -25380,7 +25380,7 @@ declare function createApiClient(baseUrl: string, options?: PublicApiClientOptio
25380
25380
  name: "onboarding_sign_in";
25381
25381
  properties: {
25382
25382
  entry: "first_run" | "replay";
25383
- outcome: "failed" | "cancelled" | "ready" | "started" | "exited";
25383
+ outcome: "ready" | "failed" | "cancelled" | "started" | "exited";
25384
25384
  };
25385
25385
  } | {
25386
25386
  name: "new_thread_submit";
@@ -27226,8 +27226,8 @@ declare const pluginAppViewSchema: z$1.ZodObject<{
27226
27226
  pluginId: z$1.ZodString;
27227
27227
  id: z$1.ZodString;
27228
27228
  kind: z$1.ZodEnum<{
27229
- command: "command";
27230
27229
  tab: "tab";
27230
+ command: "command";
27231
27231
  settings: "settings";
27232
27232
  panel: "panel";
27233
27233
  footer: "footer";
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.564",
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": "Fix main's wording check: name the saved database from the database path (#605)"
112
112
  },
113
113
  "license": "SEE LICENSE IN LICENSE"
114
114
  }
@@ -1,12 +1,12 @@
1
1
  {
2
- "commit": "dc17cb24489fd9dd5b0282d8ee84ce85898c812b",
2
+ "commit": "6263e1a8faa3605ec0ce975b0efc75c9775e1ec2",
3
3
  "file": "orbit-deploy",
4
4
  "platform": "linux-x64",
5
5
  "provenance": {
6
- "artifactId": 15277186315,
7
- "artifactName": "linux-bundle-dc17cb24489fd9dd5b0282d8ee84ce85898c812b",
6
+ "artifactId": 15281300067,
7
+ "artifactName": "linux-bundle-6263e1a8faa3605ec0ce975b0efc75c9775e1ec2",
8
8
  "repository": "matt0x6F/personalassistant",
9
- "runId": 46177003869,
9
+ "runId": 46186350420,
10
10
  "workflow": ".github/workflows/moonlet-linux-bundle.yml"
11
11
  },
12
12
  "schema": 1,
@@ -1 +1 @@
1
- dc17cb24489fd9dd5b0282d8ee84ce85898c812b
1
+ 6263e1a8faa3605ec0ce975b0efc75c9775e1ec2
@@ -1 +1 @@
1
- {"repository":"matt0x6F/personalassistant","revision":"dc17cb24489fd9dd5b0282d8ee84ce85898c812b"}
1
+ {"repository":"matt0x6F/personalassistant","revision":"6263e1a8faa3605ec0ce975b0efc75c9775e1ec2"}