pingcode-cli-unofficial 2.3.0 → 2.3.1
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 +16 -7
- package/dist/bin/pingcode.js +220 -112
- package/dist/bin/pingcode.js.map +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -26,20 +26,27 @@ Requires **Node.js >= 20**. The package is published to **npm** as [`pingcode-cl
|
|
|
26
26
|
npm install -g pingcode-cli-unofficial
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
That puts `pingcode` on your `PATH`, and it is the only install path.
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
That puts `pingcode` on your `PATH`, and it is the only install path. npm owns the
|
|
30
|
+
installation lifecycle: version selection, extraction, replacement, executable links,
|
|
31
|
+
and rollback. The CLI only consumes that installation and reads its version from the
|
|
32
|
+
running package. Self-update invokes `npm i -g`, so the box needs an `npm` alongside
|
|
33
|
+
the `node` running the CLI.
|
|
32
34
|
|
|
33
|
-
|
|
35
|
+
A retired standalone copy under `~/.local/share/pingcode-cli` is never used for
|
|
36
|
+
version, package, or skill resolution. `pingcode self-update` prints a one-line
|
|
37
|
+
notice when that directory exists; it can be deleted.
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
### Development from source
|
|
40
|
+
|
|
41
|
+
Build from a checkout when you want the latest code between releases, or want to edit/extend the CLI.
|
|
42
|
+
This is a development workflow, not a second installation mechanism:
|
|
36
43
|
|
|
37
44
|
```bash
|
|
38
45
|
git clone https://github.com/anine09/pingcode-cli-unofficial.git
|
|
39
46
|
cd pingcode-cli-unofficial
|
|
40
47
|
npm install
|
|
41
48
|
npm run build # → dist/bin/pingcode.js
|
|
42
|
-
|
|
49
|
+
node dist/bin/pingcode.js --help
|
|
43
50
|
```
|
|
44
51
|
|
|
45
52
|
Development commands:
|
|
@@ -51,6 +58,8 @@ npm run dev # tsup --watch
|
|
|
51
58
|
npm run skill:install # build, then copy skills/pingcode into the agent skill dirs
|
|
52
59
|
npm run scan:secrets # credential / tenant-identifier scan
|
|
53
60
|
npm run check:commits # commit-message gate
|
|
61
|
+
npm run check:npm-ownership # reject CLI-owned install paths/version literals
|
|
62
|
+
npm run smoke:npm-package # after build: verify built and packed tarball execution
|
|
54
63
|
```
|
|
55
64
|
|
|
56
65
|
---
|
|
@@ -920,7 +929,7 @@ in `scripts/` for one reason: `prepare` runs during `npm ci`, including on the N
|
|
|
920
929
|
**`.github/workflows/release.yml`** — on tags matching `v*`. To cut a release:
|
|
921
930
|
|
|
922
931
|
```bash
|
|
923
|
-
# 1. bump the version in package.json (
|
|
932
|
+
# 1. bump the version in package.json (the CLI reads this running-package value at runtime)
|
|
924
933
|
# 2. commit it, and make sure main is green
|
|
925
934
|
git tag -a v0.2.0 -m 'v0.2.0'
|
|
926
935
|
git push origin v0.2.0
|