@myassis/gateway 1.0.13 → 1.0.14

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.
Files changed (2) hide show
  1. package/dist/cli.js +2 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  // ─── CLI 快速入口(在导入任何模块之前处理参数)─────────────────
3
+ import path from 'path';
4
+ import fs from 'fs';
3
5
  const args = process.argv.slice(2);
4
6
  // 快速响应命令(无需加载任何模块)
5
7
  if (args.includes('--version') || args.includes('-v')) {
6
- const fs = require('fs');
7
- const path = require('path');
8
8
  try {
9
9
  const pkgPath = path.join(__dirname, '..', 'package.json');
10
10
  const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
@@ -42,4 +42,3 @@ CORS 管理命令:
42
42
  }
43
43
  // 需要加载模块的命令,导入主程序
44
44
  import('./main.js');
45
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myassis/gateway",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "我的助手 Gateway Service - 本地 AI 网关服务,支持认证、WebSocket 实时通信和任务调度",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",