@tomflow/chatloop-extension 0.4.48 → 0.4.49

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.
@@ -14,8 +14,17 @@ async function run(){
14
14
  :{type:'CHAT_LOOP_SESSION_STATUS_V1',requestId:id,
15
15
  ...(proof.traceParent?{traceParent:proof.traceParent}:{})})
16
16
  .catch(()=>null);
17
+ // A signed Task without its FIRST Owner is a healthy pre-Start read.
18
+ // Accept only exact Task identity and bounded non-sending projection;
19
+ // this is not approval, a lease, or a sender permit.
20
+ const exact=state?.projectId===proof.intent?.projectId
21
+ &&state?.taskId===proof.intent?.taskId;
22
+ const scopedOwned=exact&&state?.scope==='TASK_SCOPED_STATUS_READ_ONLY';
23
+ const scopedPrestart=exact&&state?.scope==='TASK_SCOPED_PRESTART_NO_OWNER'
24
+ &&state?.native?.phase==='NOT_CREATED'
25
+ &&state?.worker?.state==='PRE_START_NO_OWNER';
17
26
  if(scoped&&(state?.status!=='OK'
18
- ||state.scope!=='TASK_SCOPED_STATUS_READ_ONLY')){
27
+ ||!(scopedOwned||scopedPrestart))){
19
28
  const code=/^[A-Z][A-Z0-9_]{1,95}$/.test(state?.code||'')
20
29
  ?state.code:'SCOPED_TASK_STATUS_UNVERIFIED';
21
30
  // Failure is an actual read-only result, not an absent ACK that makes
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Chat Loop Extension",
4
- "version": "0.4.48",
4
+ "version": "0.4.49",
5
5
  "description": "Chat Loop browser companion: Eye actions, Turn observer, Continue and Handoff Actions",
6
6
  "permissions": [
7
7
  "activeTab",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/chatloop-extension",
3
- "version": "0.4.48",
3
+ "version": "0.4.49",
4
4
  "type": "module",
5
5
  "description": "Chat Loop Extension: reviewed formal Action pages, including TEST_ONLY native App entry",
6
6
  "bin": {