@mu-crew/mu 3.10.0 → 3.10.2

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
@@ -5229,6 +5229,12 @@ interface AmbientOptions {
5229
5229
  * is where a TUI operator learns about a broken sync dir. */
5230
5230
  quiet?: boolean;
5231
5231
  }
5232
+ interface AmbientFlushOptions extends AmbientOptions {
5233
+ /** How long to wait for the segment lock (default
5234
+ * AMBIENT_FLUSH_LOCK_WAIT_MS). On timeout nothing is written; the ops
5235
+ * stay in the DB and the next flush appends them. */
5236
+ lockWaitMs?: number;
5237
+ }
5232
5238
  /**
5233
5239
  * INGEST half of the ambient hook: pull every peer segment before the
5234
5240
  * verb body runs, so the command sees the freshest state the filesystem
@@ -5255,7 +5261,7 @@ declare function ambientIngest(db: Db, opts?: AmbientOptions): Promise<AmbientRe
5255
5261
  * writes nothing (`lockBusy`) and the verb carries on silently: its ops
5256
5262
  * stay pending in `ops` and the next invocation's flush appends them.
5257
5263
  */
5258
- declare function ambientFlush(db: Db, opts?: AmbientOptions): Promise<FlushResult | null>;
5264
+ declare function ambientFlush(db: Db, opts?: AmbientFlushOptions): Promise<FlushResult | null>;
5259
5265
  /**
5260
5266
  * Both halves in one call, for a caller that has no before/after seam to
5261
5267
  * straddle — today the TUI's SLOW tick (10s; never the 1s fast tick,
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  priorFieldValue,
9
9
  resolveGroupId,
10
10
  undoGroup
11
- } from "./chunk-XXK7FR37.js";
11
+ } from "./chunk-JEWHQ4GB.js";
12
12
  import {
13
13
  AGENT_STATE_GLYPH,
14
14
  AgentAbortNeedsCtlError,
@@ -251,7 +251,7 @@ import {
251
251
  workspacePath,
252
252
  workspacesRoot,
253
253
  yankCommandForCheck
254
- } from "./chunk-WT7IN2OD.js";
254
+ } from "./chunk-KGGOITI5.js";
255
255
  import {
256
256
  CAPTURE_TRIGGER_DDL,
257
257
  CURRENT_SCHEMA_VERSION,
@@ -324,7 +324,7 @@ import {
324
324
  withCaptureSuppressed,
325
325
  withFileLock,
326
326
  withOpContext
327
- } from "./chunk-YIF3X32A.js";
327
+ } from "./chunk-WYBOR4FX.js";
328
328
  import {
329
329
  defaultStateDir
330
330
  } from "./chunk-4PACTXAB.js";
@@ -12,7 +12,7 @@ import {
12
12
  relTimeBasisForSort,
13
13
  sortTasks,
14
14
  truncate
15
- } from "./chunk-7OQNJWBY.js";
15
+ } from "./chunk-RXVYBV3P.js";
16
16
  import {
17
17
  GLYPH,
18
18
  WORKSPACE_STALE_THRESHOLD,
@@ -41,14 +41,14 @@ import {
41
41
  summarizeOwnedTasks,
42
42
  superscriptDigit,
43
43
  yankCommandForCheck
44
- } from "./chunk-WT7IN2OD.js";
44
+ } from "./chunk-KGGOITI5.js";
45
45
  import {
46
46
  TASK_STATUSES,
47
47
  ambientSyncPass,
48
48
  formatPair,
49
49
  syncEnabled,
50
50
  tryResolveWorkstreamId
51
- } from "./chunk-YIF3X32A.js";
51
+ } from "./chunk-WYBOR4FX.js";
52
52
  import "./chunk-4PACTXAB.js";
53
53
  import "./chunk-PZ5AY32C.js";
54
54
 
@@ -5508,7 +5508,6 @@ var syncWorker = null;
5508
5508
  function workerSyncPass(dbPath) {
5509
5509
  if (syncWorker === null) {
5510
5510
  const worker = new Worker(syncWorkerPath, { workerData: { dbPath } });
5511
- worker.unref();
5512
5511
  const state2 = { worker, done: null };
5513
5512
  const settle = (result) => {
5514
5513
  const done = state2.done;
@@ -5522,6 +5521,7 @@ function workerSyncPass(dbPath) {
5522
5521
  };
5523
5522
  worker.on("error", drop);
5524
5523
  worker.on("exit", drop);
5524
+ worker.unref();
5525
5525
  syncWorker = state2;
5526
5526
  }
5527
5527
  const state = syncWorker;
@@ -6449,4 +6449,4 @@ async function runTui(db, opts) {
6449
6449
  export {
6450
6450
  runTui
6451
6451
  };
6452
- //# sourceMappingURL=tui-X2XICJTN.js.map
6452
+ //# sourceMappingURL=tui-SKZMGHA6.js.map