@tomflow/chatloop-context 0.6.15 → 0.6.17
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/lib/core/run.mjs +3 -1
- package/lib/orphan-operator.mjs +2 -1
- package/package.json +2 -2
package/lib/core/run.mjs
CHANGED
|
@@ -167,7 +167,8 @@ export function createRunMethods(values) {
|
|
|
167
167
|
assert(typeof a.nativeSessionId==='string'
|
|
168
168
|
&&a.nativeSessionId!==a.oldSessionId
|
|
169
169
|
&&typeof a.nativeProjectId==='string'
|
|
170
|
-
&&a.nativeProjectId!==a.projectId
|
|
170
|
+
&&(a.nativeProjectId!==a.projectId
|
|
171
|
+
||typeof a.nativeTaskId==='string'&&a.nativeTaskId!==a.taskId)
|
|
171
172
|
&&a.nativePhase==='DONE'
|
|
172
173
|
&&Number.isSafeInteger(a.nativeUpdatedAt),
|
|
173
174
|
'ORPHAN_NATIVE_NOT_TERMINAL');
|
|
@@ -194,6 +195,7 @@ export function createRunMethods(values) {
|
|
|
194
195
|
const orphanRef={runRef:a.expectedRunRef,oldSessionId:a.oldSessionId,
|
|
195
196
|
currentNativeSessionId:a.nativeSessionId,
|
|
196
197
|
currentNativeProjectId:a.nativeProjectId,
|
|
198
|
+
currentNativeTaskId:a.nativeTaskId??null,
|
|
197
199
|
currentNativeUpdatedAt:a.nativeUpdatedAt,
|
|
198
200
|
evidenceDocumentId:a.evidenceDocumentId,
|
|
199
201
|
evidenceVersion:a.evidenceVersion,evidenceHash:a.evidenceHash,
|
package/lib/orphan-operator.mjs
CHANGED
|
@@ -100,7 +100,8 @@ export async function fenceOrphanRunOperator({
|
|
|
100
100
|
expectedRunRef,expectedTaskRevision,expectedBindingRevision,
|
|
101
101
|
expectedStoreEpoch,evidenceDocumentId,evidenceVersion,evidenceHash,
|
|
102
102
|
nativeSessionId:last.sessionId,nativeProjectId:last.projectId,
|
|
103
|
-
|
|
103
|
+
nativeTaskId:last.taskId,nativePhase:last.phase,
|
|
104
|
+
nativeUpdatedAt:last.updatedAt,writeRequestId});
|
|
104
105
|
const checked=db.get(projectId,taskId);
|
|
105
106
|
assert(checked.runRef===null
|
|
106
107
|
&&checked.bindingRevision===result.bindingRevision
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomflow/chatloop-context",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Independent local Context SDK and short-lived CLI for Chat Loop projects",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"ps-list": "9.0.0",
|
|
37
|
-
"@tomflow/chatloop-extension": "0.4.
|
|
37
|
+
"@tomflow/chatloop-extension": "0.4.25",
|
|
38
38
|
"@tomflow/chatloop-trace": "0.4.6"
|
|
39
39
|
}
|
|
40
40
|
}
|