pingcode-cli-unofficial 1.9.0 → 2.0.0
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 +41 -20
- package/dist/bin/pingcode.js +3958 -882
- package/dist/bin/pingcode.js.map +1 -1
- package/package.json +4 -2
- package/skills/pingcode/SKILL.md +18 -3
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ Development commands:
|
|
|
48
48
|
npm run typecheck # tsc --noEmit
|
|
49
49
|
npm test # vitest run — no network, ever
|
|
50
50
|
npm run dev # tsup --watch
|
|
51
|
-
npm run skill:install # copy skills/pingcode
|
|
51
|
+
npm run skill:install # build, then copy skills/pingcode into the agent skill dirs
|
|
52
52
|
npm run scan:secrets # credential / tenant-identifier scan
|
|
53
53
|
npm run check:commits # commit-message gate
|
|
54
54
|
```
|
|
@@ -164,9 +164,11 @@ layers whose costs are completely different, and it is worth knowing which one y
|
|
|
164
164
|
| **Ergonomics** — the refined layer | `--flags` instead of raw JSON, name→id resolution, width-aware tables, per-endpoint traps recorded in `--help` | **158 / 459** | one live-verified slice each |
|
|
165
165
|
|
|
166
166
|
"Complete" (完全体) refers to **Reach**, and Reach is finished: every documented endpoint is
|
|
167
|
-
invocable today. Seven of the 459
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
invocable today. Seven of the 459 need a user token (`/v1/myself`, `/v1/permission/my/*`,
|
|
168
|
+
`/v1/permission/check/*`) — run `pingcode auth login --mode user` to obtain one (it prints an
|
|
169
|
+
authorize URL; paste the redirect URL back, or pass `--code`) and all 459 become callable. On the
|
|
170
|
+
default 企业令牌 alone they are refused *before any request*, which leaves 452 actually callable.
|
|
171
|
+
Ergonomics is a
|
|
170
172
|
**curation backlog, not a finish line**: an endpoint earns a named command by being run against a
|
|
171
173
|
live tenant, having its error codes either mapped with evidence or explicitly left alone, and
|
|
172
174
|
keeping `--json` pure and `--dry-run` silent. Endpoints that nobody drives interactively are better
|
|
@@ -192,7 +194,7 @@ how many the catalog documents. The module names are the ones `pingcode api list
|
|
|
192
194
|
| `permission` | 0 | 7 | 6 of the 7 need a user token; `GET /v1/permission/points` is reachable |
|
|
193
195
|
| `workloads` `workload_types` | 0 | 7 | 工时 |
|
|
194
196
|
| `nexus` | 0 | 5 | Nexus/CES app storage |
|
|
195
|
-
| `auth` | 0 | 3 |
|
|
197
|
+
| `auth` | 0 | 3 | `auth login --mode user` runs the authorization-code grant (prints the URL, extracts the `code` from the pasted redirect); `/v1/myself` verifies the user token |
|
|
196
198
|
| `security` `myself` | 0 | 3 | login/audit logs, and the user-token `/v1/myself` |
|
|
197
199
|
| **Total** | **158** | **459** | 301 endpoints are reachable through `pingcode api` only |
|
|
198
200
|
|
|
@@ -740,24 +742,42 @@ would make the docs a merge point for every parallel change. Sync them to your a
|
|
|
740
742
|
directories:
|
|
741
743
|
|
|
742
744
|
```bash
|
|
743
|
-
npm run skill:install -- --dry-run # show the
|
|
744
|
-
npm run skill:install # pick
|
|
745
|
-
npm run skill:install -- --target claude
|
|
746
|
-
npm run skill:install -- --target
|
|
747
|
-
npm run skill:install -- --target
|
|
745
|
+
npm run skill:install -- --dry-run # show the plan, write nothing
|
|
746
|
+
npm run skill:install # pick targets on a TTY, else install everywhere
|
|
747
|
+
npm run skill:install -- --target claude-code # one agent
|
|
748
|
+
npm run skill:install -- --target cursor,codex # several agents
|
|
749
|
+
npm run skill:install -- --target all # everything (the non-TTY default)
|
|
750
|
+
npm run skill:install -- --no-interactive # never prompt, even on a TTY
|
|
748
751
|
npm run skill:install -- --force # overwrite existing copies
|
|
749
752
|
```
|
|
750
753
|
|
|
751
|
-
|
|
754
|
+
`npm run skill:install` builds first, then runs the built bundle. `skill install` also exists as a
|
|
755
|
+
subcommand for anyone installing the package globally (`npx pingcode-cli-unofficial skill install`).
|
|
756
|
+
|
|
757
|
+
Installs are **global (user-level)** only, and copy the `modules/` directory alongside `SKILL.md`.
|
|
758
|
+
The target list matches `gh skill install` — **48 agents collapsing onto 43 distinct directories**,
|
|
759
|
+
because a few agents read the same one (`.agents/skills` is shared by Codex, Cline, Universal and
|
|
760
|
+
Warp; `.config/agents/skills` by Amp, Kimi Code CLI and Replit). Each directory is written once no
|
|
761
|
+
matter how many agents point at it, and the output names every agent it covered.
|
|
752
762
|
|
|
753
763
|
| Target | Destination |
|
|
754
764
|
| --- | --- |
|
|
755
|
-
| `claude` | `~/.claude/skills/pingcode/SKILL.md` |
|
|
765
|
+
| `claude-code` | `~/.claude/skills/pingcode/SKILL.md` |
|
|
766
|
+
| `cursor` | `~/.cursor/skills/pingcode/SKILL.md` |
|
|
756
767
|
| `opencode` | `$XDG_CONFIG_HOME/opencode/skills/pingcode/SKILL.md` (default `~/.config/opencode/…`) |
|
|
768
|
+
| `codex` | `~/.agents/skills/pingcode/SKILL.md` (shared with `cline`, `universal`, `warp`) |
|
|
769
|
+
|
|
770
|
+
`skill list` prints every agent with its directory and whether the skill is there; `skill install
|
|
771
|
+
--help` points at the `--target` ids.
|
|
772
|
+
|
|
773
|
+
`--target` is comma-separated and case-insensitive, and `all` means every agent. `claude` is still
|
|
774
|
+
accepted as an alias for `claude-code`. An unknown id exits `2` and lists the valid ones — it is
|
|
775
|
+
never silently ignored.
|
|
757
776
|
|
|
758
|
-
`--target` is
|
|
759
|
-
|
|
760
|
-
|
|
777
|
+
With no `--target` the command prompts when stdout is a TTY and `CI` is unset, defaulting the
|
|
778
|
+
selection to the agents that already have the skill installed plus whichever agent is detected from
|
|
779
|
+
the environment. Everywhere else — `--json`, a pipe, CI, `--no-interactive` — it installs
|
|
780
|
+
everywhere, so automation keeps its old behaviour. `--dry-run` prints the plan and writes nothing.
|
|
761
781
|
|
|
762
782
|
---
|
|
763
783
|
|
|
@@ -816,11 +836,12 @@ never reported.
|
|
|
816
836
|
and at most 72 characters. Merge commits are exempt, and on a pull request the PR title is checked
|
|
817
837
|
too because a squash merge turns it into the commit subject.
|
|
818
838
|
|
|
819
|
-
> **Node version note.** `
|
|
820
|
-
> through `node --experimental-strip-types`, which exists from Node **22.6** only
|
|
821
|
-
>
|
|
822
|
-
> Node
|
|
823
|
-
> smoke-tested there; the restriction is on the repository's own scripts, not on
|
|
839
|
+
> **Node version note.** `scan:secrets`, `check:commits` and `catalog:sync` are TypeScript run
|
|
840
|
+
> through `node --experimental-strip-types`, which exists from Node **22.6** only, so the hygiene
|
|
841
|
+
> job runs on Node 24. `skill:install` used to be in that group; it now runs the built bundle, so it
|
|
842
|
+
> works on the Node 20 leg too. `engines` still says `>=20` because the *published bundle* is built
|
|
843
|
+
> for Node 20 and is smoke-tested there; the restriction is on the repository's own scripts, not on
|
|
844
|
+
> the CLI.
|
|
824
845
|
|
|
825
846
|
### Git hooks
|
|
826
847
|
|