From 87490e9c6f7aba784fb2fa1dda946e9dd62a2f34 Mon Sep 17 00:00:00 2001 From: yeuimu <2197651308@qq.com> Date: Tue, 29 Sep 2026 02:22:19 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=91=E5=B8=83=20npm=20=E5=85=AC?= =?UTF-8?q?=E5=85=B1=E5=8C=85=20@inkreach/inkreach-teable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 包名 @inkreach/teable-cli → @inkreach/inkreach-teable(npm i -g 即装即用) - bin 路径规范化 ./dist/bin.js → dist/bin.js(npm 11 发布校验要求) - README / SKILL.md 安装命令改为 npm 包优先,gitea git+ 与离线方式降为备选 已发布:https://www.npmjs.com/package/@inkreach/inkreach-teable (v0.1.0) 验证:tarball 99KB/38 文件,registry 全新安装 → bin/版本/真实端点鉴权全通过 --- README.md | 5 +++-- package.json | 4 ++-- skills/inkreach-teable/SKILL.md | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6115982..ac5956c 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,9 @@ ```text 请安装并用 inkreach-teable CLI 操作 inkreach-teable: -1. 安装 cli: - npm i -g git+https://gitea.inkreach.cc/inkreachhub/inkreach-teable-cli.git +1. 安装 cli(npm 公共包): + npm i -g @inkreach/inkreach-teable + (内网/离线备选:npm i -g git+https://gitea.inkreach.cc/inkreachhub/inkreach-teable-cli.git) 2. 安装技能: npx -y skills add https://gitea.inkreach.cc/inkreachhub/inkreach-teable-cli.git -g -y --copy 3. 鉴权(PAT 从 Web UI Settings → Personal Access Tokens 获取): diff --git a/package.json b/package.json index 9237e74..251fa19 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@inkreach/teable-cli", + "name": "@inkreach/inkreach-teable", "version": "0.1.0", "description": "CLI (command: inkreach-teable) for operating inkreach-teable: tables, fields, records, views, and the self-built automation engine (8 triggers + 7 actions).", "license": "MIT", @@ -12,7 +12,7 @@ "node": ">=18" }, "bin": { - "inkreach-teable": "./dist/bin.js" + "inkreach-teable": "dist/bin.js" }, "main": "dist/bin.js", "files": [ diff --git a/skills/inkreach-teable/SKILL.md b/skills/inkreach-teable/SKILL.md index 3bdaed3..edd290b 100644 --- a/skills/inkreach-teable/SKILL.md +++ b/skills/inkreach-teable/SKILL.md @@ -15,7 +15,7 @@ Respond in the user's language. Keep answers concise and action-oriented. ## 1. Prerequisites -- Install the CLI if missing: `npm i -g git+https://gitea.inkreach.cc/inkreachhub/inkreach-teable-cli.git` (the `git+` prefix is REQUIRED for npm/npx; ad-hoc without installing: `npx git+https://gitea.inkreach.cc/inkreachhub/inkreach-teable-cli.git `). Offline fallback: `bash scripts/install.sh` relative to this skill dir in a repo clone. +- Install the CLI if missing: `npm i -g @inkreach/inkreach-teable` (public npm package). Alternatives: `npm i -g git+https://gitea.inkreach.cc/inkreachhub/inkreach-teable-cli.git` (the `git+` prefix is REQUIRED for npm/npx; ad-hoc without installing: `npx git+https://gitea.inkreach.cc/inkreachhub/inkreach-teable-cli.git `). Offline fallback: `bash scripts/install.sh` relative to this skill dir in a repo clone. - **Configure once**: `inkreach-teable auth login --endpoint https://table.inkreach.cc --token [--base-id bseXXX]`; verify with `auth status`. PAT comes from `auth token create --name x` (full token shown **once**) or the web UI (Settings → Personal Access Tokens). - `--json` on any command returns raw JSON (for agent parsing). Fallback for unknown commands: `inkreach-teable --help`. - **Read on demand**: consult the guide linked for your module when doing non-trivial work — no need to read everything up front.