codexmate 0.0.2 → 0.0.3

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  > A lightweight AI configuration assistant: CLI + Web to manage Codex providers/models and Claude Code configs
4
4
 
5
- [![Build](https://img.shields.io/github/actions/workflow/status/ymkiux/codexmate/release.yml?label=build)](https://github.com/ymkiux/codexmate/actions/workflows/release.yml) [![Version](https://img.shields.io/github/package-json/v/ymkiux/codexmate?label=version)](https://github.com/ymkiux/codexmate/blob/main/package.json) [![Status](https://img.shields.io/badge/status-alpha-orange)](https://github.com/ymkiux/codexmate) [![Downloads](https://img.shields.io/npm/dt/codexmate?label=downloads)](https://www.npmjs.com/package/codexmate)
5
+ [![Build](https://img.shields.io/github/actions/workflow/status/ymkiux/codexmate/release.yml?label=build)](https://github.com/ymkiux/codexmate/actions/workflows/release.yml) [![Version](https://img.shields.io/npm/v/codexmate?label=version&registry_uri=https%3A%2F%2Fregistry.npmjs.org)](https://www.npmjs.com/package/codexmate) [![Status](https://img.shields.io/badge/status-alpha-orange)](https://github.com/ymkiux/codexmate)
6
6
  [![Maintain](https://img.shields.io/github/commit-activity/m/ymkiux/codexmate?label=maintain%2Fmonth)](https://github.com/ymkiux/codexmate/commits) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE) [![Node](https://img.shields.io/badge/node-%3E%3D14.0.0-green.svg)](https://nodejs.org)
7
7
 
8
8
  English | [Chinese](README.zh-CN.md)
@@ -49,15 +49,20 @@ If you frequently switch between models, providers, or configuration profiles, C
49
49
 
50
50
  ## Quick Start
51
51
 
52
- 1. Install (global):
53
- ```bash
54
- npm install -g ymkiux/codexmate
55
- ```
56
-
57
- 2. Check status:
58
- ```bash
59
- codexmate status
60
- ```
52
+ 1. Install (global):
53
+ ```bash
54
+ npm install -g codexmate
55
+ ```
56
+
57
+ Or run once without install:
58
+ ```bash
59
+ npx codexmate@latest status
60
+ ```
61
+
62
+ 2. Check status:
63
+ ```bash
64
+ codexmate status
65
+ ```
61
66
 
62
67
  3. Start the Web UI:
63
68
  ```bash
@@ -72,13 +77,22 @@ Then open `http://localhost:3737` in your browser.
72
77
 
73
78
  ## Install
74
79
 
75
- ### Global (Recommended)
76
-
77
- ```bash
78
- npm install -g ymkiux/codexmate
79
- ```
80
-
81
- ### From Source
80
+ ### Global (Recommended)
81
+
82
+ ```bash
83
+ npm install -g codexmate
84
+ ```
85
+
86
+ Package name on npm: `codexmate`.
87
+
88
+ ### Run with npx (No Install)
89
+
90
+ ```bash
91
+ npx codexmate@latest status
92
+ npx codexmate@latest start
93
+ ```
94
+
95
+ ### From Source
82
96
 
83
97
  ```bash
84
98
  git clone https://github.com/ymkiux/codexmate.git
package/README.zh-CN.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > 轻量级 AI 工具配置助手:CLI + Web,一站式管理 Codex 提供商与 Claude Code 配置
4
4
 
5
- [![Build](https://img.shields.io/github/actions/workflow/status/ymkiux/codexmate/release.yml?label=build)](https://github.com/ymkiux/codexmate/actions/workflows/release.yml) [![Version](https://img.shields.io/github/package-json/v/ymkiux/codexmate?label=version)](https://github.com/ymkiux/codexmate/blob/main/package.json) [![Status](https://img.shields.io/badge/status-alpha-orange)](https://github.com/ymkiux/codexmate) [![Downloads](https://img.shields.io/npm/dt/codexmate?label=downloads)](https://www.npmjs.com/package/codexmate)
5
+ [![Build](https://img.shields.io/github/actions/workflow/status/ymkiux/codexmate/release.yml?label=build)](https://github.com/ymkiux/codexmate/actions/workflows/release.yml) [![Version](https://img.shields.io/npm/v/codexmate?label=version&registry_uri=https%3A%2F%2Fregistry.npmjs.org)](https://www.npmjs.com/package/codexmate) [![Status](https://img.shields.io/badge/status-alpha-orange)](https://github.com/ymkiux/codexmate)
6
6
  [![Maintain](https://img.shields.io/github/commit-activity/m/ymkiux/codexmate?label=maintain%2Fmonth)](https://github.com/ymkiux/codexmate/commits) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE) [![Node](https://img.shields.io/badge/node-%3E%3D14.0.0-green.svg)](https://nodejs.org)
7
7
 
8
8
  [English](README.md) | 中文
@@ -45,15 +45,20 @@
45
45
 
46
46
  ## 快速开始
47
47
 
48
- 1. 安装(全局):
49
- ```bash
50
- npm install -g ymkiux/codexmate
51
- ```
52
-
53
- 2. 查看当前状态:
54
- ```bash
55
- codexmate status
56
- ```
48
+ 1. 安装(全局):
49
+ ```bash
50
+ npm install -g codexmate
51
+ ```
52
+
53
+ 或免安装直接运行:
54
+ ```bash
55
+ npx codexmate@latest status
56
+ ```
57
+
58
+ 2. 查看当前状态:
59
+ ```bash
60
+ codexmate status
61
+ ```
57
62
 
58
63
  3. 启动 Web 界面:
59
64
  ```bash
@@ -68,13 +73,22 @@ codexmate start
68
73
 
69
74
  ## 安装
70
75
 
71
- ### 全局安装(推荐)
72
-
73
- ```bash
74
- npm install -g ymkiux/codexmate
75
- ```
76
-
77
- ### 从源码安装
76
+ ### 全局安装(推荐)
77
+
78
+ ```bash
79
+ npm install -g codexmate
80
+ ```
81
+
82
+ npm 包名:`codexmate`。
83
+
84
+ ### 使用 npx(免安装)
85
+
86
+ ```bash
87
+ npx codexmate@latest status
88
+ npx codexmate@latest start
89
+ ```
90
+
91
+ ### 从源码安装
78
92
 
79
93
  ```bash
80
94
  git clone https://github.com/ymkiux/codexmate.git
@@ -0,0 +1,65 @@
1
+ @echo off
2
+ setlocal enableextensions
3
+ set "VERBOSE_ECHO=0"
4
+ if /i "%VERBOSE%"=="1" (
5
+ set "VERBOSE_ECHO=1"
6
+ @echo on
7
+ set "NPM_CONFIG_LOGLEVEL=notice"
8
+ )
9
+
10
+ set "REGISTRY=https://registry.npmjs.org/"
11
+ set "PUBLISH_RC=1"
12
+ for %%I in ("%~dp0..") do set "ROOT_DIR=%%~fI"
13
+ set "LOCAL_NPMRC=%ROOT_DIR%\.npmrc"
14
+
15
+ where npm >nul 2>&1
16
+ if errorlevel 1 (
17
+ echo npm not found in PATH.
18
+ exit /b 1
19
+ )
20
+
21
+ if "%NPM_TOKEN%"=="" (
22
+ if exist "%LOCAL_NPMRC%" (
23
+ if "%VERBOSE_ECHO%"=="1" @echo off
24
+ for /f "usebackq tokens=2,* delims==" %%A in (`findstr /i /c:"_authToken=" "%LOCAL_NPMRC%"`) do (
25
+ if "%%B"=="" (@set "NPM_TOKEN=%%A") else (@set "NPM_TOKEN=%%A=%%B")
26
+ )
27
+ if "%VERBOSE_ECHO%"=="1" @echo on
28
+ )
29
+ )
30
+ if "%VERBOSE_ECHO%"=="1" @echo off
31
+ if "%NPM_TOKEN%"=="" (
32
+ echo NPM_TOKEN is not set and no token found in %LOCAL_NPMRC%.
33
+ exit /b 1
34
+ )
35
+ if "%VERBOSE_ECHO%"=="1" @echo on
36
+
37
+ set "TMP_NPMRC=%TEMP%\npmrc-codexmate-publish-%RANDOM%.tmp"
38
+ if "%VERBOSE_ECHO%"=="1" @echo off
39
+ > "%TMP_NPMRC%" echo //registry.npmjs.org/:_authToken=%NPM_TOKEN%
40
+ if "%VERBOSE_ECHO%"=="1" @echo on
41
+ set "NPM_CONFIG_USERCONFIG=%TMP_NPMRC%"
42
+ set "NPM_CONFIG_REGISTRY=%REGISTRY%"
43
+
44
+ call npm whoami --registry %REGISTRY%
45
+ if errorlevel 1 goto cleanup
46
+
47
+ echo [step] npm pack --dry-run
48
+ call npm pack --dry-run --registry %REGISTRY%
49
+ if errorlevel 1 goto cleanup
50
+
51
+ echo [step] npm publish
52
+ if not "%~1"=="" (
53
+ call npm publish --registry %REGISTRY% --otp %~1
54
+ ) else if not "%NPM_OTP%"=="" (
55
+ call npm publish --registry %REGISTRY% --otp %NPM_OTP%
56
+ ) else (
57
+ call npm publish --registry %REGISTRY%
58
+ )
59
+ set "PUBLISH_RC=%ERRORLEVEL%"
60
+
61
+ goto cleanup
62
+
63
+ :cleanup
64
+ if exist "%TMP_NPMRC%" del /f /q "%TMP_NPMRC%"
65
+ exit /b %PUBLISH_RC%
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codexmate",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Codex 提供商管理 CLI 工具",
5
5
  "bin": {
6
6
  "codexmate": "./cli.js"