@tomflow/chatloop-context 0.6.36 → 0.6.37
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/approval-policy.mjs +1 -1
- package/lib/trusted-run.mjs +3 -1
- package/package.json +2 -2
package/lib/approval-policy.mjs
CHANGED
|
@@ -87,7 +87,7 @@ export function approvedTurnSourceMatches(record,observed,kind){
|
|
|
87
87
|
// A matching original six-line user Turn and both independent identifiers
|
|
88
88
|
// are mandatory; this summary is never itself browser approval evidence.
|
|
89
89
|
const summary=typeof record.userTurn==='string'&&record.userTurn.match(
|
|
90
|
-
/^user-turn:UNAVAILABLE; form:([a-z0-9][a-z0-9_-]{7,127}); trace:([0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}); approve$/i);
|
|
90
|
+
/^user-turn:UNAVAILABLE; ?form:([a-z0-9][a-z0-9_-]{7,127}); ?trace:([0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}); ?approve$/i);
|
|
91
91
|
if(summary){
|
|
92
92
|
const actual=formReceipt(observed.userText,kind,false);
|
|
93
93
|
return Boolean(actual&&actual.formId===summary[1].toLowerCase()
|
package/lib/trusted-run.mjs
CHANGED
|
@@ -40,7 +40,9 @@ export function executeTrustedRun(command,args,native){
|
|
|
40
40
|
&&typeof args.expectedHandoffAttemptId==='string'
|
|
41
41
|
&&/^[a-f0-9]{32}$/.test(args.expectedHandoffAttemptId),
|
|
42
42
|
'HANDOFF_STATUS_PROBE_DENIED');
|
|
43
|
-
if(startRecovery)assert(native.phase==='BLOCKED'
|
|
43
|
+
if(startRecovery)assert((native.phase==='BLOCKED'
|
|
44
|
+
||native.phase==='RESERVED'&&Number.isSafeInteger(native.revision)
|
|
45
|
+
&&native.revision>=1)&&native.generation===0
|
|
44
46
|
&&native.activeChatId===null&&native.activeChatUrl===null
|
|
45
47
|
&&typeof args.startRecoveryLeaseRef==='string'
|
|
46
48
|
&&/^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$/i.test(args.startRecoveryLeaseRef),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomflow/chatloop-context",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.37",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Independent local Context SDK and short-lived CLI for Chat Loop projects",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"ps-list": "9.0.0",
|
|
35
|
-
"@tomflow/chatloop-extension": "0.4.
|
|
35
|
+
"@tomflow/chatloop-extension": "0.4.39",
|
|
36
36
|
"@tomflow/chatloop-trace": "0.4.6"
|
|
37
37
|
}
|
|
38
38
|
}
|