fix(cli): 轨迹分析驱动的 8 处命令修复 + 技能文档同步 (0.1.5)

- table get/update: 改用真实路由 /api/base/:baseId/table/:tableId(/name)
- view get/update/delete: table 域路由;view update 实现文档承诺的
  --filter/--sort/--group/--column-meta(sort 自动包装 sortObjs)
- record create --fields 自动包装 {records:[{fields}]}
- record delete 单条走单删端点(修复单值 query 解析成 string 的 400),
  支持位置参数;record list 加为 record get 别名
- record get-one / record get --record-id 走 table 域路由
- 移除 sql 命令:后端无 SQL 查询 API(404),技能文档 5 处同步改写
- plugin 技能 dev-workflow 内联 known-good webpack.config
  (禁止 output.library.type=iife,评估轨迹中 with_skill 组也反复踩坑)
This commit is contained in:
yeuimu
2026-09-29 06:45:37 +00:00
parent fbff682d2c
commit 8dacbf7f2d
11 changed files with 198 additions and 124 deletions
+12 -11
View File
@@ -57,7 +57,7 @@ With select options: `"Status:sel:Todo,Doing,Done"`, `"Tags:mul:Bug,Feature,UI"`
### Update & Delete
```bash
inkreach-teable table update <tableId> --name "<newName>" [--description <d>]
inkreach-teable table update <tableId> --name "<newName>" [--base-id <id>]
inkreach-teable table delete <tableId>
```
@@ -70,10 +70,11 @@ inkreach-teable table delete <tableId>
```bash
inkreach-teable table list [--base-id <id>]
inkreach-teable table get <tableId>
inkreach-teable table get <tableId> [--base-id <id>]
```
`table get` returns `dbTableName` — the internal SQL table name used in `sql` queries (e.g., `SELECT * FROM "bseXXX"."tbl_abc"`).
`table get` returns `dbTableName` — the internal PG table name (useful for
maintainer-level psql inspection; there is NO SQL query API on this deployment).
---
@@ -162,8 +163,8 @@ Single/multiple-select choices may carry a `visibilityFilter` making them visibl
inkreach-teable record get --table-id <tid> [--filter '<json>'] [--projection '<json>'] \
[--page-size <n>] [--page <n>] [--search <kw>]
# Single record by ID
inkreach-teable record get-one <recordId>
# Single record by ID (table-scoped route)
inkreach-teable record get-one <recordId> --table-id <tid>
```
| Flag | Description |
@@ -271,7 +272,7 @@ inkreach-teable record update --table-id tblXXX \
### Delete
```bash
inkreach-teable record delete --table-id <tid> --record-ids "recA,recB,recC"
inkreach-teable record delete --table-id <tid> recA recB recC # or --record-ids "recA,recB,recC"
```
Max 1000 IDs per call. Irreversible.
@@ -284,7 +285,7 @@ Max 1000 IDs per call. Irreversible.
```bash
inkreach-teable view list <tableId>
inkreach-teable view get <viewId>
inkreach-teable view get <viewId> --table-id <tid>
```
### Create
@@ -304,8 +305,8 @@ inkreach-teable view create --table-id <tid> --name "<name>" [--type <t>]
### Update (configure filters, sorts, grouping)
```bash
inkreach-teable view update <viewId> \
[--name "<n>"] \
inkreach-teable view update <viewId> --table-id <tid> \
[--name "<n>"] [--description "<d>"] \
[--filter '<json>'] \
[--sort '<json>'] \
[--group '<json>'] \
@@ -314,7 +315,7 @@ inkreach-teable view update <viewId> \
**Filters**: `{"conjunction":"and","filterSet":[{"fieldId":"fldXXX","operator":"is","value":"Done"}]}`
**Sorts**: `[{"fieldId":"fldXXX","order":"asc"}]`
**Sorts**: `[{"fieldId":"fldXXX","order":"asc"}]` (the CLI wraps it into `{sortObjs:[...]}` for the API)
**Group**: `[{"fieldId":"fldXXX","order":"asc"}]`
@@ -323,7 +324,7 @@ inkreach-teable view update <viewId> \
### Delete
```bash
inkreach-teable view delete <viewId>
inkreach-teable view delete <viewId> --table-id <tid>
```
Deleting a view does NOT delete the table or its data — only the view configuration.