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.
- package/.codex-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/src/workspace.js +3 -3
package/package.json
CHANGED
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 <
|
|
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 <
|
|
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
|
|
1290
|
+
normalized.schemaVersion >= TURN_REF_TASK_SCHEMA_VERSION
|
|
1291
1291
|
&& isSelfLinkingRecord
|
|
1292
1292
|
&& turn.turnId !== null
|
|
1293
1293
|
) {
|