@tomflow/chatloop-extension 0.4.43 → 0.4.44

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.
@@ -36,7 +36,7 @@
36
36
  if (!ACTIONS.has(name)) return null;
37
37
  if (name==='session' && u.searchParams.size===2
38
38
  && validId(u.searchParams.get('requestId'))
39
- && ['cancel','recover-handoff'].includes(u.searchParams.get('operation')))
39
+ && ['cancel','recover-handoff','recover-cancel'].includes(u.searchParams.get('operation')))
40
40
  return {kind:'machine',name,requestId:u.searchParams.get('requestId')};
41
41
  if (u.searchParams.size === 1 && validId(u.searchParams.get('requestId')))
42
42
  return {kind:READ_ONLY.has(name) || ['continue','handoff'].includes(name)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Chat Loop Extension",
4
- "version": "0.4.43",
4
+ "version": "0.4.44",
5
5
  "description": "Chat Loop browser companion: Eye actions, Turn observer, Continue and Handoff Actions",
6
6
  "permissions": [
7
7
  "activeTab",
@@ -72,12 +72,13 @@ export function openExtensionActionPage(url,{platform=process.platform,spawn=spa
72
72
  // The private session Action uses a fixed operation selector in addition to
73
73
  // its request locator. No other Action may accept arbitrary URL arguments.
74
74
  const ordinary=/^chrome-extension:\/\/[a-p]{32}\/(?!session\.html)[a-z_]+\.html\?requestId=[a-f0-9]{32}$/;
75
- const session=/^chrome-extension:\/\/[a-p]{32}\/session\.html\?requestId=[a-f0-9]{32}&operation=(?:cancel|recover-handoff)$/;
75
+ const session=/^chrome-extension:\/\/([a-p]{32})\/session\.html\?requestId=[a-f0-9]{32}&operation=(?:cancel|recover-handoff|recover-cancel)$/;
76
76
  if(!ordinary.test(url)&&!session.test(url))
77
77
  throw Object.assign(Error('Untrusted Extension Action URL'),{code:'INVALID_ACTION_URL'});
78
78
  // An orphaned Owner may have no Chat tab at all. The existing verified
79
79
  // extension-details window is the only supported fallback for that case.
80
- const entry=url.match(/^chrome-extension:\/\/([a-p]{32})\/(?:entry_test|session)\.html\?requestId=[a-f0-9]{32}(?:&operation=(?:cancel|recover-handoff))?$/);
80
+ const entry=url.match(/^chrome-extension:\/\/([a-p]{32})\/entry_test\.html\?requestId=[a-f0-9]{32}$/)
81
+ ||url.match(session);
81
82
  const launchArgs=entry
82
83
  ?['-e',OPEN_TEST_ENTRY_WINDOW,url,'chrome://extensions/?id='+entry[1]]
83
84
  :['-e',OPEN_IN_CHAT_WINDOW,url];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/chatloop-extension",
3
- "version": "0.4.43",
3
+ "version": "0.4.44",
4
4
  "type": "module",
5
5
  "description": "Chat Loop Extension: reviewed formal Action pages, including TEST_ONLY native App entry",
6
6
  "bin": {