@tomflow/chatloop-tools 0.9.14 → 0.9.15

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.
@@ -17,13 +17,12 @@ export function configureExtensionProxy(ports){
17
17
 
18
18
 
19
19
 
20
- // One pinned official CLI provider and one public npm bin. No @latest and
21
- // no alternate provider injection through private environment variables.
22
- // The package/version are exact and checked against the same Context
23
- // dependency deployed with the Tools release.
20
+ // One official CLI provider and one public npm bin. Resolve its npm latest
21
+ // at invocation time, never a manually duplicated release number. The CLI's
22
+ // versioned RESULT contract is checked before any business receipt is trusted.
23
+ // Private environment variables cannot replace the official provider.
24
24
  export {extensionTools};
25
- const EXTENSION_PACKAGE='@tomflow/chatloop-extension@0.4.10';
26
- const EXTENSION_VERSION='0.4.10';
25
+ const EXTENSION_PACKAGE='@tomflow/chatloop-extension@latest';
27
26
  const NPX_COMMAND=process.platform==='win32'?'npx.cmd':'npx';
28
27
  const UUID=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
29
28
  // Match the existing Context child-CLI correlation boundary. Never inherit
@@ -41,7 +40,7 @@ function childApiEnvironment(){
41
40
  export const extensionInvocation=name=>{
42
41
  const command=extensionCommand(name);
43
42
  if(!command)return null;
44
- return {executable:NPX_COMMAND,providerVersion:EXTENSION_VERSION,
43
+ return {executable:NPX_COMMAND,
45
44
  args:['--yes','--package='+EXTENSION_PACKAGE,'chatloop-extension',...command]};
46
45
  };
47
46
  const fail=code=>({isError:true,content:[{type:'text',text:code}]});
@@ -76,9 +75,9 @@ export async function forwardExtensionAction(name,args={}) {
76
75
  // The CLI emits RESULT only after its business outcome is known.
77
76
  // Subsequent exit/drain belongs to soft telemetry, not the receipt.
78
77
  const result=acceptExtensionCliReceipt(msg,command,msg.ok===true?0:1);
79
- if(result.ok&&result.providerVersion!==invocation.providerVersion)
80
- settle(fail('EXTENSION_PROVIDER_VERSION_MISMATCH'),true);
81
- else settle(result.ok?result.value:fail(result.code),true);
78
+ // Latest is mutable. Trust only the declared CLI v1 protocol, exact
79
+ // command, structural result and action receipt, never a stale pin.
80
+ settle(result.ok?result.value:fail(result.code),true);
82
81
  return true;
83
82
  };
84
83
  // Decode UTF-8 incrementally, and accept the completed RESULT frame
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.9.14",
6
+ "version": "0.9.15",
7
7
  "type": "module",
8
8
  "description": "Chat Loop local tools: MCP gateway, isolated bundled tunnel-client and unified CLI",
9
9
  "bin": {
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@wonderwhy-er/desktop-commander": "0.2.44",
32
- "@tomflow/chatloop-context": "0.6.10",
32
+ "@tomflow/chatloop-context": "0.6.11",
33
33
  "@tomflow/chatloop-trace": "0.4.4"
34
34
  },
35
35
  "engines": {