mtech-ai-local-runner 0.1.95 → 0.1.96

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,10 +1,14 @@
1
- const PUBLICATION_PHASES = ["publication_pending", "publication_terminal_pending"];
2
- /** The job fence of a stored publication phase, or undefined for any other state. */
1
+ /**
2
+ * The phases a suspended daemon no longer drives: a publication, or a job whose outcome it lost. terminal_pending is not
3
+ * here, because it holds a receipt the daemon still has to deliver.
4
+ */
5
+ const HELD_PHASES = ["publication_pending", "publication_terminal_pending", "running", "binding", "binding_uncertain"];
6
+ /** The job fence of a held phase, or undefined for any other state. */
3
7
  function heldPublication(state) {
4
8
  if (!state || typeof state !== "object" || Array.isArray(state))
5
9
  return undefined;
6
10
  const { phase, jobId, generation } = state;
7
- if (typeof phase !== "string" || !PUBLICATION_PHASES.includes(phase))
11
+ if (typeof phase !== "string" || !HELD_PHASES.includes(phase))
8
12
  return undefined;
9
13
  if (typeof jobId !== "string" || !jobId.trim() || !Number.isSafeInteger(generation) || generation < 1)
10
14
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mtech-ai-local-runner",
3
- "version": "0.1.95",
3
+ "version": "0.1.96",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "bin": {