@tomflow/chatloop-tools 0.4.0 → 0.4.1

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @tomflow/chatloop-tools — Chat Loop 工具包
2
2
 
3
- **v0.4.0 · npm 安装包 · Node.js >=20 · 当前验证平台 macOS**
3
+ **v0.4.1 · npm 安装包 · Node.js >=20 · 当前验证平台 macOS**
4
4
 
5
5
  本包是**本地 CLI + 统一 stdio MCP Gateway**:一套命令管理多个工具模块的启动、停止、重启、状态;一个 MCP 入口统一对外暴露各模块的工具 API。目前正式启用 **Desktop Commander 0.2.44**(26 个工具);Repomix 尚未接入。它**不是** ChatGPT Plugin、Secure MCP Tunnel、tunnel-client 或 Chrome 扩展,也不会替用户安装这些组件。
6
6
 
@@ -30,13 +30,13 @@ node packages/local-tools/bin/cli.mjs stop desktop-commander
30
30
 
31
31
  ### 独立 tarball:macOS 临时目录已通过实际验收
32
32
 
33
- **正式 npm 安装**:在包发布到 npm registry 后,运行 `npm install -g @tomflow/chatloop-tools@0.4.0`,随后执行 `chatloop-tools doctor`、`chatloop-tools status`、`chatloop-tools start desktop-commander`。也可在本地生成 tarball(不发布):
33
+ **正式 npm 安装**:在包发布到 npm registry 后,运行 `npm install -g @tomflow/chatloop-tools@0.4.1`,随后执行 `chatloop-tools doctor`、`chatloop-tools status`、`chatloop-tools start desktop-commander`。也可在本地生成 tarball(不发布):
34
34
 
35
35
  ```bash
36
36
  cd packages/local-tools
37
37
  npm pack
38
38
  # 在仓库外一个全新的目录:
39
- npm install /absolute/path/to/chat-loop-local-tools-0.4.0.tgz
39
+ npm install /absolute/path/to/tomflow-chatloop-tools-0.4.1.tgz
40
40
  ./node_modules/.bin/chat-loop-local doctor
41
41
  ./node_modules/.bin/chat-loop-local status
42
42
  ```
package/bin/cli.mjs CHANGED
File without changes
@@ -80,7 +80,7 @@ export function createMcpChildAdapter({records,log}){
80
80
  const rec=setup(tool,child);
81
81
  try{
82
82
  const info=await request(rec,'initialize',{protocolVersion:'2025-03-26',
83
- capabilities:{},clientInfo:{name:'chat-loop-local-tools',version:'0.4.0'}},timeout(ctx));
83
+ capabilities:{},clientInfo:{name:'chat-loop-local-tools',version:'0.4.1'}},timeout(ctx));
84
84
  if(!info?.protocolVersion)throw Object.assign(Error('Handshake failed'),{code:'MCP_HANDSHAKE_FAILED'});
85
85
  child.stdin.write(JSON.stringify({jsonrpc:'2.0',method:'notifications/initialized'})+'\n');
86
86
  const listed=await request(rec,'tools/list',{},timeout(ctx));
package/lib/control.mjs CHANGED
@@ -4,7 +4,7 @@ import {homedir} from 'node:os';
4
4
  import {join} from 'node:path';
5
5
 
6
6
  export const CONTRACT = 'chat-loop.local-control.v1';
7
- export const VERSION = '0.4.0';
7
+ export const VERSION = '0.4.1';
8
8
  export const ACTIONS = new Set(['start','stop','restart','status']);
9
9
  export const directory = () => process.env.CHAT_LOOP_LOCAL_TOOLS_STATE_DIR || join(homedir(), '.chat-loop', 'local-tools');
10
10
  export const paths = () => ({dir: directory(), socket: join(directory(), 'control.sock'), lock: join(directory(), 'manager.lock'), log: join(directory(), 'events.jsonl')});
package/lib/gateway.mjs CHANGED
@@ -34,7 +34,7 @@ export function runGateway(){
34
34
  return reject(m.id,-32602,'UNSUPPORTED_MCP_VERSION');
35
35
  connected=true;
36
36
  return reply(m.id,{protocolVersion:m.params.protocolVersion,
37
- capabilities:{tools:{}},serverInfo:{name:'chat-loop-local-tools',version:'0.4.0'}});
37
+ capabilities:{tools:{}},serverInfo:{name:'chat-loop-local-tools',version:'0.4.1'}});
38
38
  }
39
39
  if(!connected)return reject(m.id,-32002,'NOT_INITIALIZED');
40
40
  if(m.method==='ping')return reply(m.id,{});
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@tomflow/chatloop-tools",
3
3
  "publishConfig": { "access": "public" },
4
- "version": "0.4.0",
4
+ "version": "0.4.1",
5
5
  "type": "module",
6
6
  "description": "Chat Loop local tools: MCP gateway and unified tool lifecycle CLI",
7
- "bin": { "chatloop-tools": "./bin/cli.mjs", "chat-loop-local": "./bin/cli.mjs" },
7
+ "bin": { "chatloop-tools": "bin/cli.mjs", "chat-loop-local": "bin/cli.mjs" },
8
8
  "files": ["bin/", "lib/", "fixtures/", "README.md"],
9
9
  "scripts": {
10
10
  "doctor": "node ./bin/cli.mjs doctor",