taskchef 7.21.0 → 7.21.1

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
  {
2
2
  "name": "taskchef",
3
- "version": "7.21.0",
3
+ "version": "7.21.1",
4
4
  "description": "Dispatch work from a data-only workspace to visible Codex project tasks.",
5
5
  "author": {
6
6
  "name": "Favo Yang",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taskchef",
3
- "version": "7.21.0",
3
+ "version": "7.21.1",
4
4
  "description": "A non-blocking interactive dispatcher for visible Codex tasks.",
5
5
  "license": "MIT",
6
6
  "author": "Favo Yang",
package/src/workspace.js CHANGED
@@ -1218,7 +1218,7 @@ async function validateDispatchShape(dispatch, name = "task") {
1218
1218
  }
1219
1219
  if (
1220
1220
  normalized.schemaVersion >= FIRST_TURN_HISTORY_TASK_SCHEMA_VERSION
1221
- && normalized.schemaVersion < CURRENT_TASK_SCHEMA_VERSION
1221
+ && normalized.schemaVersion < TURN_REF_TASK_SCHEMA_VERSION
1222
1222
  && normalized.turnId !== normalized.turnRef
1223
1223
  ) {
1224
1224
  throw new Error(`${name}.turnId must match the latest legacy turn identity`);
@@ -1279,7 +1279,7 @@ async function validateDispatchShape(dispatch, name = "task") {
1279
1279
  throw new Error(`${name}.turns must be ordered by startedAt`);
1280
1280
  }
1281
1281
  if (
1282
- normalized.schemaVersion < CURRENT_TASK_SCHEMA_VERSION
1282
+ normalized.schemaVersion < TURN_REF_TASK_SCHEMA_VERSION
1283
1283
  && isSelfLinkingRecord
1284
1284
  && index > 0
1285
1285
  && turn.turnId <= normalized.turns[index - 1].turnId
@@ -1287,7 +1287,7 @@ async function validateDispatchShape(dispatch, name = "task") {
1287
1287
  throw new Error(`${name}.turns must be ordered by turnId`);
1288
1288
  }
1289
1289
  if (
1290
- normalized.schemaVersion === CURRENT_TASK_SCHEMA_VERSION
1290
+ normalized.schemaVersion >= TURN_REF_TASK_SCHEMA_VERSION
1291
1291
  && isSelfLinkingRecord
1292
1292
  && turn.turnId !== null
1293
1293
  ) {