@remnic/core 10.0.75 → 10.0.76

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Orchestrator
3
- } from "./chunk-VYOAYFDV.js";
3
+ } from "./chunk-HR6NTVYZ.js";
4
4
  import "./chunk-B36ACJG7.js";
5
5
  import "./chunk-PLGBPFEO.js";
6
6
  import "./chunk-5PHOU5QI.js";
@@ -1119,29 +1119,14 @@ var ExtractionQueueCoordinator = class {
1119
1119
  return this.concurrency;
1120
1120
  }
1121
1121
  /**
1122
- * Enqueue a task and start the processor when capacity is free. This is
1123
- * the production entry point — the orchestrator's `queueBufferedExtraction`
1124
- * builds each task closure and hands it here with its buffer key.
1125
- *
1126
- * Per-key coalescing: a queued-not-started task for key K is superseded by
1127
- * a newer enqueue for K instead of stacking another full turn snapshot
1128
- * behind it (extraction reads live state at run time, so the newest
1129
- * closure is the authoritative one). Keyless tasks are independent work
1130
- * and never coalesce.
1122
+ * Enqueue a task and start the processor when capacity is free. Each task
1123
+ * keeps its own captured work and settlement; keyed tasks serialize behind
1124
+ * other tasks for that key. A front task may jump the queue but does not
1125
+ * discard queued work.
1131
1126
  */
1132
1127
  enqueue(task, options) {
1133
1128
  if (!this.accepting) return false;
1134
1129
  const key = options?.key;
1135
- if (key !== void 0) {
1136
- const queuedAt = this.queue.findIndex((entry2) => entry2.key === key);
1137
- if (!options?.front && queuedAt >= 0) {
1138
- this.queue[queuedAt] = { run: task, key };
1139
- return true;
1140
- }
1141
- if (options?.front && queuedAt >= 0) {
1142
- this.queue.splice(queuedAt, 1);
1143
- }
1144
- }
1145
1130
  const entry = { run: task, key };
1146
1131
  if (options?.front) {
1147
1132
  this.preemptRunning(options.key);
@@ -32100,4 +32085,4 @@ export {
32100
32085
  qmdStartupCollectionChecksWithTimeout,
32101
32086
  Orchestrator
32102
32087
  };
32103
- //# sourceMappingURL=chunk-VYOAYFDV.js.map
32088
+ //# sourceMappingURL=chunk-HR6NTVYZ.js.map