@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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Chat Loop Extension",
4
- "version": "0.4.40",
4
+ "version": "0.4.41",
5
5
  "description": "Chat Loop browser companion: Eye actions, Turn observer, Continue and Handoff Actions",
6
6
  "permissions": [
7
7
  "activeTab",
@@ -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
- await assertLegacyWorkerWritable({native:![
91
- 'CHAT_LOOP_SESSION_STATUS_V1','CHAT_LOOP_MODEL_INTENT_STATUS_V1'
92
- ].includes(type)});
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/chatloop-extension",
3
- "version": "0.4.40",
3
+ "version": "0.4.41",
4
4
  "type": "module",
5
5
  "description": "Chat Loop Extension: reviewed formal Action pages, including TEST_ONLY native App entry",
6
6
  "bin": {