@tomflow/chatloop-extension 0.4.40 → 0.4.41
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/extension/manifest.json
CHANGED
|
@@ -87,9 +87,14 @@ const onBrowserMessage=(message, sender, reply, dispatchParent=null) => {
|
|
|
87
87
|
try{
|
|
88
88
|
// Fail BEFORE any old handler reads/consumes a permission or opens
|
|
89
89
|
// an Action. saveRun's later guard is not early enough by itself.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
// TEST_ONLY entry has its own signed Action + Native cancellation
|
|
91
|
+
// admission. It never owns a Task or sends through a legacy Run;
|
|
92
|
+
// an unrelated live V2 Task must not block a new ordinary Chat.
|
|
93
|
+
// All legacy send/Owner routes still fail closed while V2 is active.
|
|
94
|
+
if(type!=='CHAT_LOOP_ENTRY_TEST_ADMISSION_V1')
|
|
95
|
+
await assertLegacyWorkerWritable({native:![
|
|
96
|
+
'CHAT_LOOP_SESSION_STATUS_V1','CHAT_LOOP_MODEL_INTENT_STATUS_V1'
|
|
97
|
+
].includes(type)});
|
|
93
98
|
legacyAllowed=true;
|
|
94
99
|
result=await handle(type==='CHAT_LOOP_SESSION_STATUS_V1'
|
|
95
100
|
?{...message,auditDispatchParent:dispatchParent}:message,sender);
|