ntn-skills 0.1.0 → 0.1.2
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/CHANGELOG.md +9 -4
- package/CONTRIBUTING.md +1 -1
- package/README.md +5 -5
- package/README.zh-CN.md +5 -5
- package/SECURITY.md +2 -2
- package/dist/ntn-skills.js +1 -1
- package/docs/README.md +1 -1
- package/docs/protocol.md +1 -1
- package/docs/releasing.md +8 -61
- package/docs/usage.md +21 -8
- package/package.json +2 -2
- package/skills/ntn-skills/references/integration.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.1.2 — 2026-10-14
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- Publish from GitHub Actions with npm OIDC; verify provenance for public repositories and registry evidence for private repositories.
|
|
6
|
+
- Simplify installation and release documentation.
|
|
7
|
+
|
|
8
|
+
## 0.1.0 — 2026-10-14
|
|
9
|
+
|
|
10
|
+
Initial npm release, published with maintainer web authentication.
|
|
6
11
|
|
|
7
12
|
### Public repository baseline
|
|
8
13
|
|
|
9
14
|
- Set the public npm package name to `ntn-skills`, matching the executable and bootstrap Skill; retain the `notion-skills-cli` source repository.
|
|
10
15
|
- Add equivalent English and Simplified Chinese READMEs with a centered header, language switch and section navigation; package both language files.
|
|
11
|
-
- Move detailed operations into the [usage guide](docs/usage.md), and
|
|
16
|
+
- Move detailed operations into the [usage guide](docs/usage.md), and document source-access and release status.
|
|
12
17
|
- Separate consumer installation and use from contributor source/build steps in both READMEs; consumers install a built tarball with npm and run on Node.js 22.19.0 or newer.
|
|
13
18
|
- Replace the Bun runtime platform, executable shebang and distribution target with Node.js; keep Bun 1.4.3 for development/build/tests, and exercise npm consumers on Node.js 22 and 24 in CI.
|
|
14
19
|
- Add an English installation and first-read walkthrough, tarball consumption, upgrade and uninstall instructions, and explicit runtime/platform evidence boundaries in [README](README.md).
|
|
15
20
|
- Document metadata freshness separately from retained snapshots and upload staging, inherited workspace/API endpoint settings, network behavior and optional local data cleanup across the [protocol](docs/protocol.md), [host integration](docs/host-integration.md) and [Skill reference](skills/ntn-skills/references/integration.md).
|
|
16
21
|
- Use the returned snapshot ID to list every attachment; a pinned file ref filters only its own path.
|
|
17
22
|
- Set the public issue and private vulnerability-reporting channels, security support for the latest patch of the current 0.x series, and a seven-day acknowledgement target without a promised fix deadline in [SECURITY](SECURITY.md).
|
|
18
|
-
- Define 0.x compatibility, deprecation migration guidance and fast-forward integration in [CONTRIBUTING](CONTRIBUTING.md), and prepare the package/release metadata and CI release lane
|
|
23
|
+
- Define 0.x compatibility, deprecation migration guidance and fast-forward integration in [CONTRIBUTING](CONTRIBUTING.md), and prepare the package/release metadata and CI release lane.
|
|
19
24
|
- Update production archive dependency `fflate` to 0.8.3.
|
|
20
25
|
|
|
21
26
|
### Initial 0.1.0 functionality
|
package/CONTRIBUTING.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Development setup
|
|
4
4
|
|
|
5
|
-
Use Bun 1.4.3 for development and the committed lockfile. The published CLI runs on Node.js 22.19.0 or newer; install Node.js and npm as well for the fresh-consumer checks. Clone the repository
|
|
5
|
+
Use Bun 1.4.3 for development and the committed lockfile. The published CLI runs on Node.js 22.19.0 or newer; install Node.js and npm as well for the fresh-consumer checks. Clone the repository, then work from the checkout root:
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
git clone https://github.com/yoyooyooo/notion-skills-cli.git
|
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ ntn-skills read 'Release Review'
|
|
|
23
23
|
|
|
24
24
|
`Release Review` is an example title; choose a Skill returned by your own `list`. The npm package, executable and bootstrap Skill are all **`ntn-skills`**.
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Available on [npm](https://www.npmjs.com/package/ntn-skills). For source builds, see [Contributing](CONTRIBUTING.md#development-setup).
|
|
27
27
|
|
|
28
28
|
## Why use it?
|
|
29
29
|
|
|
@@ -42,15 +42,15 @@ A task can outlive an edit in Notion. Reading instructions before that edit and
|
|
|
42
42
|
|
|
43
43
|
Install [Node.js](https://nodejs.org) **22.19.0 or newer**, which includes npm. Online operations also need the [official Notion CLI](https://developers.notion.com/cli) **`ntn`** with `api --notion-version` support; `ntn` 0.22.12 has been exercised with this project.
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
Install the published release from the official npm registry:
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
npm install --global
|
|
48
|
+
npm install --global ntn-skills --registry https://registry.npmjs.org
|
|
49
49
|
ntn-skills --version
|
|
50
50
|
ntn-skills --help
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
The version command
|
|
53
|
+
The version command prints the installed version; help lists the available commands. A consumer needs Node.js and npm. [Project-local installation](docs/usage.md#install-in-a-consuming-project), [PATH setup](docs/usage.md#install-from-npm-globally) and [local tarball installation](docs/usage.md#install-a-local-tarball-globally) are covered in the usage guide.
|
|
54
54
|
|
|
55
55
|
To produce a package yourself, follow [the contributor setup and build instructions](CONTRIBUTING.md#development-setup). Bun is the development/build tool.
|
|
56
56
|
|
|
@@ -156,6 +156,6 @@ Remove a global installation with `npm uninstall --global ntn-skills`. Configura
|
|
|
156
156
|
| Development setup and compatibility policy | [Contributing](CONTRIBUTING.md) |
|
|
157
157
|
| Publishing and release verification | [Releasing](docs/releasing.md) |
|
|
158
158
|
|
|
159
|
-
Use [GitHub issues](https://github.com/yoyooyooo/notion-skills-cli/issues) for sanitized bug reports and usage questions; vulnerabilities use [private reporting](SECURITY.md#reporting-a-vulnerability).
|
|
159
|
+
Use [GitHub issues](https://github.com/yoyooyooo/notion-skills-cli/issues) for sanitized bug reports and usage questions; vulnerabilities use [private reporting](SECURITY.md#reporting-a-vulnerability). To develop or build the CLI, start with [Contributing](CONTRIBUTING.md).
|
|
160
160
|
|
|
161
161
|
[Documentation index](docs/README.md) · [Changelog](CHANGELOG.md) · [MIT license](LICENSE)
|
package/README.zh-CN.md
CHANGED
|
@@ -23,7 +23,7 @@ ntn-skills read 'Release Review'
|
|
|
23
23
|
|
|
24
24
|
`Release Review` 是示例名称,请选择你自己的 `list` 返回的 Skill。npm 安装包、命令和引导 Skill 都叫 **`ntn-skills`**。
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
已发布到 [npm](https://www.npmjs.com/package/ntn-skills)。从源码构建见[贡献指南](CONTRIBUTING.md#development-setup)。
|
|
27
27
|
|
|
28
28
|
## 它解决什么问题?
|
|
29
29
|
|
|
@@ -42,15 +42,15 @@ ntn-skills read 'Release Review'
|
|
|
42
42
|
|
|
43
43
|
安装 [Node.js](https://nodejs.org) **22.19.0 或更新版本**,其中包含 npm。在线操作还需要支持 `api --notion-version` 的[官方 Notion CLI](https://developers.notion.com/cli) **`ntn`**;本项目已使用 `ntn` 0.22.12 验证。
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
从官方 npm registry 安装已发布版本:
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
npm install --global
|
|
48
|
+
npm install --global ntn-skills --registry https://registry.npmjs.org
|
|
49
49
|
ntn-skills --version
|
|
50
50
|
ntn-skills --help
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
版本命令输出已安装版本;帮助列出可用命令。使用者需要 Node.js 和 npm。[项目内安装](docs/usage.md#install-in-a-consuming-project)、[PATH 配置](docs/usage.md#install-from-npm-globally)与[本地 tarball 安装](docs/usage.md#install-a-local-tarball-globally)见使用指南。
|
|
54
54
|
|
|
55
55
|
需要自行生成安装包时,按[贡献指南中的开发与构建步骤](CONTRIBUTING.md#development-setup) 操作。Bun 用于开发和构建。
|
|
56
56
|
|
|
@@ -156,6 +156,6 @@ tarball 安装可获取新版已构建安装包,再执行 npm 安装命令。
|
|
|
156
156
|
| 开发环境与兼容政策 | [贡献指南](CONTRIBUTING.md) |
|
|
157
157
|
| 发版与发布结果验证 | [发布流程](docs/releasing.md) |
|
|
158
158
|
|
|
159
|
-
问题报告和使用咨询请在 [GitHub issues](https://github.com/yoyooyooo/notion-skills-cli/issues) 提交脱敏信息;漏洞通过[私下报告渠道](SECURITY.md#reporting-a-vulnerability)
|
|
159
|
+
问题报告和使用咨询请在 [GitHub issues](https://github.com/yoyooyooo/notion-skills-cli/issues) 提交脱敏信息;漏洞通过[私下报告渠道](SECURITY.md#reporting-a-vulnerability) 提交。开发或构建 CLI 请从[贡献指南](CONTRIBUTING.md) 开始。
|
|
160
160
|
|
|
161
161
|
[文档目录](docs/README.md) · [变更记录](CHANGELOG.md) · [MIT 许可证](LICENSE)
|
package/SECURITY.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Supported versions
|
|
4
4
|
|
|
5
|
-
Security fixes target the latest patch of the current 0.x minor series. Upgrade to that patch before relying on a fix; earlier patches and previous minor series are not maintained security branches.
|
|
5
|
+
Security fixes target the latest patch of the current 0.x minor series. Upgrade to that patch before relying on a fix; earlier patches and previous minor series are not maintained security branches.
|
|
6
6
|
|
|
7
7
|
## Reporting a vulnerability
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Report vulnerabilities through [GitHub private vulnerability reporting](https://github.com/yoyooyooo/notion-skills-cli/security/advisories/new). Include affected versions, a minimal sanitized reproduction, impact and any proposed mitigation. Do not post credentials, signed URLs, private Skill contents or personal database identifiers in a public issue.
|
|
10
10
|
|
|
11
11
|
The maintainer aims to acknowledge reports within seven days. This is a response target, not a guaranteed response or fix deadline. Investigation and remediation depend on impact, reproducibility and available maintainer time. Use [GitHub issues](https://github.com/yoyooyooo/notion-skills-cli/issues) for ordinary bugs and usage questions.
|
|
12
12
|
|
package/dist/ntn-skills.js
CHANGED
|
@@ -2925,7 +2925,7 @@ function saveDocument(portable, options, operation, baseline) {
|
|
|
2925
2925
|
});
|
|
2926
2926
|
}
|
|
2927
2927
|
// packages/cli/package.json
|
|
2928
|
-
var version = "0.1.
|
|
2928
|
+
var version = "0.1.2";
|
|
2929
2929
|
|
|
2930
2930
|
// packages/cli/src/main.ts
|
|
2931
2931
|
var requiredDatabaseFlag = Flag.String("database").pipe(Flag.between(1, 1), Flag.map((values) => values[0]), Flag.withDescription("One Skills Database ID, URL or exact registered alias; repeated --database is rejected"));
|
package/docs/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Documentation
|
|
2
2
|
|
|
3
|
-
Start with the repository README in [English](../README.md) or [简体中文](../README.zh-CN.md) for requirements,
|
|
3
|
+
Start with the repository README in [English](../README.md) or [简体中文](../README.zh-CN.md) for requirements, installation and the first successful read. Source development/build instructions belong to [Contributing](../CONTRIBUTING.md#development-setup). Detailed guides below are maintained in English.
|
|
4
4
|
|
|
5
5
|
- [Usage guide](usage.md): installation variants, authentication, discovery, fixed-version reads, import/export/write, upgrade and uninstall.
|
|
6
6
|
- [CLI and ref contract](protocol.md): identities, selectors, fixed snapshots, JSON responses, storage, mutation boundaries and errors.
|
package/docs/protocol.md
CHANGED
|
@@ -4,7 +4,7 @@ The npm package and executable are `ntn-skills`; the source repository is `notio
|
|
|
4
4
|
|
|
5
5
|
The distributed CLI requires Node.js 22.19.0 or newer, matching the Node platform dependency's minimum. npm installs the built tarball and its runtime dependencies; Bun is used only for repository development, building, packing and tests. Online operations additionally require the official `ntn` CLI. See [installation](../README.md#installation) and [contributor setup](../CONTRIBUTING.md#development-setup).
|
|
6
6
|
|
|
7
|
-
For installation and a first successful read, use [the README Quick start](../README.md#quick-start). [Host integration](host-integration.md) describes adapter behavior, [the bootstrap integration reference](../skills/ntn-skills/references/integration.md) covers Agent use, and [the release procedure](releasing.md) describes distribution.
|
|
7
|
+
For installation and a first successful read, use [the README Quick start](../README.md#quick-start). [Host integration](host-integration.md) describes adapter behavior, [the bootstrap integration reference](../skills/ntn-skills/references/integration.md) covers Agent use, and [the release procedure](releasing.md) describes distribution.
|
|
8
8
|
|
|
9
9
|
Consumers should accept additional JSON fields and treat unfamiliar error codes as structured failures. Existing fields and successful operations keep their documented meaning within patch releases. A 0.x minor release may make breaking changes, with migration guidance in this reference and [CHANGELOG](../CHANGELOG.md). See [the compatibility policy](../CONTRIBUTING.md#compatibility-and-deprecation).
|
|
10
10
|
|
package/docs/releasing.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The public package and executable are `ntn-skills`, running on Node.js 22.19.0 or newer. The source repository remains `yoyooyooo/notion-skills-cli`. Only `packages/cli` is published. `packages/core` stays private, and both package versions are kept equal. Development and packing use Bun 1.4.3; CI installs the tarball with npm and exercises it on Node.js 22 and 24 on Linux and macOS.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Releases push an annotated tag and publish through GitHub Actions OIDC. The repository can remain private. npm provenance is enabled and verified only for public repositories; private releases retain registry integrity, signatures and consumer checks.
|
|
6
6
|
|
|
7
7
|
## Before a release
|
|
8
8
|
|
|
@@ -20,62 +20,7 @@ Use explicit versions for prereleases, for example `0.2.0-rc.1`. They publish to
|
|
|
20
20
|
|
|
21
21
|
## First npm publication
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Obtain explicit approval for the package name, exact version, and tarball before publishing. For the first version, prepare the immutable release commit locally without pushing its tag:
|
|
26
|
-
|
|
27
|
-
```sh
|
|
28
|
-
bun run release 0.1.0 --no-push
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
The local `--no-push` preparation enforces a clean source checkout and `HEAD == origin/main`, aligned versions, registry version availability, the quality gate, and changes limited to configured version/lock files. It creates a local annotated tag for inspection; permission to publish that tag is still separate. Before packing, record `git rev-parse v0.1.0^{commit}`, `git rev-list --parents -n 1 v0.1.0`, and `git diff-tree --no-commit-id --name-only -r v0.1.0`. Confirm its single parent is the exact fetched `origin/main`, its only changed paths are the two configured manifests and `bun.lock`, its manifests both contain `0.1.0`, and each manifest differs from its parent only in top-level `version`. Preserve those results with the tarball hash and registry evidence.
|
|
32
|
-
|
|
33
|
-
The first exact version may match the version already on `main`; the script still creates a release commit with one parent. The script returns to `main` and retains the annotated local tag. Create a separate checkout of that tag for packing, so the published archive comes from its exact tree:
|
|
34
|
-
|
|
35
|
-
```sh
|
|
36
|
-
git worktree add --detach ../notion-skills-cli-first-release v0.1.0
|
|
37
|
-
cd ../notion-skills-cli-first-release
|
|
38
|
-
bun install --frozen-lockfile
|
|
39
|
-
bun run check
|
|
40
|
-
bun run package:check
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
`package:check` prints a JSON result containing `archive`, `integrity`, `name`, and `version`. Use that exact absolute archive path for the approved publication. Authenticate interactively and confirm the account first:
|
|
44
|
-
|
|
45
|
-
```sh
|
|
46
|
-
npm login --auth-type=web --registry https://registry.npmjs.org
|
|
47
|
-
npm whoami --registry https://registry.npmjs.org
|
|
48
|
-
npm publish /absolute/path/from/package-check.json --access public --tag latest --registry https://registry.npmjs.org
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
The last command is an external publication and must wait for its own approval. Do not use directory `npm publish`, a dummy first version, saved tokens, or `--provenance` for this local bootstrap: GitHub Actions provenance is established by subsequent tag workflows.
|
|
52
|
-
|
|
53
|
-
Read back the exact package before creating its GitHub Release:
|
|
54
|
-
|
|
55
|
-
```sh
|
|
56
|
-
npm view ntn-skills@0.1.0 name version dist.integrity --json --registry https://registry.npmjs.org
|
|
57
|
-
npm view ntn-skills dist-tags --json --registry https://registry.npmjs.org
|
|
58
|
-
bun scripts/package-smoke.ts --registry ntn-skills@0.1.0
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Compare registry integrity against the approved tarball's `integrity`. Allow several minutes for registry visibility. Once these checks succeed, configure the Trusted Publisher below. The bootstrap version has no Actions provenance, so the provenance-required repair workflow rejects it. Complete its public tag and GitHub Release only after separate approval for this bootstrap exception:
|
|
62
|
-
|
|
63
|
-
The following example runs only after exact registry name/version/integrity and `latest` readback, a successful fresh registry consumer, and approval for both the tag and Release. Record the workflow state before disabling it. Use a shell trap to restore it even if the push or Release fails:
|
|
64
|
-
|
|
65
|
-
```sh
|
|
66
|
-
set -eu
|
|
67
|
-
restore_publish() {
|
|
68
|
-
gh workflow enable publish.yml --repo yoyooyooo/notion-skills-cli
|
|
69
|
-
gh api repos/yoyooyooo/notion-skills-cli/actions/workflows/publish.yml --jq .state
|
|
70
|
-
}
|
|
71
|
-
trap restore_publish EXIT
|
|
72
|
-
gh workflow disable publish.yml --repo yoyooyooo/notion-skills-cli
|
|
73
|
-
test "$(gh api repos/yoyooyooo/notion-skills-cli/actions/workflows/publish.yml --jq .state)" = disabled_manually
|
|
74
|
-
git push origin refs/tags/v0.1.0
|
|
75
|
-
gh release create v0.1.0 --repo yoyooyooo/notion-skills-cli --verify-tag --title v0.1.0 --notes "First release, published with maintainer web authentication. This bootstrap version has no GitHub Actions provenance." --latest=false
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Run from the checkout containing the approved annotated tag and correct `origin`. Inspect the restoration readback even after a failure; restore manually if it is not `active`. Preserve the tag if the Release fails. This workflow-disable exception applies only to the first local web-auth version. Later automated releases use higher versions and require full provenance. Manual repair is available only for versions with this automated lane's provenance.
|
|
23
|
+
`0.1.0` was published with maintainer web authentication. Subsequent releases use the Trusted Publisher below. Published versions cannot be replaced.
|
|
79
24
|
|
|
80
25
|
## Configure npm Trusted Publishing
|
|
81
26
|
|
|
@@ -91,11 +36,13 @@ Open [the package Access page](https://www.npmjs.com/package/ntn-skills/access)
|
|
|
91
36
|
|
|
92
37
|
The owner is the GitHub owner, which can differ from the npm username. The workflow does not set a GitHub environment. It uses a GitHub-hosted runner with `id-token: write`, Node 24, and npm 11.15.0. It does not use package-manager cache, `registry-url` in setup-node, or `NODE_AUTH_TOKEN`. Do not add npm tokens to Actions secrets.
|
|
93
38
|
|
|
94
|
-
Read the configuration back with `npm trust list ntn-skills
|
|
39
|
+
Read the configuration back with `npm trust list ntn-skills`, or inspect the authenticated Access page if terminal 2FA is unavailable. A new configuration must complete its first successful OIDC publish within two days; otherwise delete the expired connection and recreate it. The "not yet validated" status means no publish has used that connection yet.
|
|
95
40
|
|
|
96
41
|
## Automated releases
|
|
97
42
|
|
|
98
|
-
|
|
43
|
+
Commit and integrate source changes into `origin/main` before releasing. The checkout must be clean and match that remote branch.
|
|
44
|
+
|
|
45
|
+
Release a patch or an explicit prerelease:
|
|
99
46
|
|
|
100
47
|
```sh
|
|
101
48
|
bun run release patch
|
|
@@ -107,7 +54,7 @@ The script creates a temporary `release/` branch from the exact fetched `origin/
|
|
|
107
54
|
|
|
108
55
|
The workflow proves tag/version equality, valid SemVer, synchronized versions, an annotated tag, one release parent, authorized changed paths, and version-only package JSON changes. A first publication requires the parent to equal current `origin/main`. A repair permits an older parent only while it remains an ancestor of `origin/main`.
|
|
109
56
|
|
|
110
|
-
After quality and fresh consumer checks, the workflow
|
|
57
|
+
After quality and fresh consumer checks, the workflow packs and inspects the actual tarball, hashes it, and publishes it through npm OIDC. All tags share one non-cancelling publication queue. Registry readback proves name, version, channel and integrity. Public-repository releases additionally verify provenance against the digest, repository, workflow, tag and commit. Private-repository releases disable provenance because npm does not support it. A fresh registry install and signature check precede GitHub Release creation.
|
|
111
58
|
|
|
112
59
|
Release notes use the previous published version's tag when available and group Conventional Commits. The workflow does not rewrite `CHANGELOG.md`; maintainers update it in normal source changes.
|
|
113
60
|
|
|
@@ -121,7 +68,7 @@ If npm accepted the version but a later verification or GitHub Release step fail
|
|
|
121
68
|
gh workflow run publish.yml --repo yoyooyooo/notion-skills-cli --ref v0.1.1 -f tag=v0.1.1
|
|
122
69
|
```
|
|
123
70
|
|
|
124
|
-
Manual dispatch is repair-only and requires that exact tag as the workflow ref and an already published npm version. A run retry
|
|
71
|
+
Manual dispatch is repair-only and requires that exact tag as the workflow ref and an already published npm version. A run retry refuses to publish an unpublished failed tag. An existing version skips publication and repeats archive, registry integrity, signatures and consumer checks, plus provenance for public repositories, before repairing its Release. A changed artifact fails verification.
|
|
125
72
|
|
|
126
73
|
For a repair after a newer version has shipped, the selected dist-tag may already point to a higher version. The workflow accepts that forward state, verifies the older exact artifact, and never moves a dist-tag backward. A fresh publication must advance its selected channel.
|
|
127
74
|
|
package/docs/usage.md
CHANGED
|
@@ -4,35 +4,48 @@ Start with [English](../README.md#quick-start) or [简体中文](../README.zh-CN
|
|
|
4
4
|
|
|
5
5
|
## Installation options
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Install [Node.js 22.19.0 or newer](https://nodejs.org), including npm. Online use also needs the [official Notion CLI](https://developers.notion.com/cli). [Source builds](../CONTRIBUTING.md#development-setup) use Bun 1.4.3.
|
|
8
8
|
|
|
9
|
-
### Install
|
|
9
|
+
### Install from npm globally
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Install from the official registry:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install --global
|
|
14
|
+
npm install --global ntn-skills --registry https://registry.npmjs.org
|
|
15
15
|
ntn-skills --help
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
On Unix, npm installs global executables under `$(npm prefix --global)/bin`; ensure that directory is on PATH. If it is missing, add it to your shell configuration:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
export PATH="$(npm prefix --global)/bin:$PATH"
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
### Install a local tarball globally
|
|
25
|
+
|
|
26
|
+
For an offline or unpublished build, replace the archive path with the file supplied by a maintainer:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install --global /absolute/path/ntn-skills-VERSION.tgz
|
|
30
|
+
ntn-skills --help
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The filename follows the package version. Global PATH setup is the same as for registry installation.
|
|
34
|
+
|
|
24
35
|
### Install in a consuming project
|
|
25
36
|
|
|
26
|
-
From the consuming project's root
|
|
37
|
+
From the consuming project's root:
|
|
27
38
|
|
|
28
39
|
```bash
|
|
29
|
-
npm install
|
|
40
|
+
npm install ntn-skills --registry https://registry.npmjs.org
|
|
30
41
|
export PATH="$PWD/node_modules/.bin:$PATH"
|
|
31
42
|
ntn-skills --help
|
|
32
43
|
```
|
|
33
44
|
|
|
34
45
|
This consumes the built package with Node.js. Global and project-local installs use the same package boundary. Build and pack steps belong to [Contributing](../CONTRIBUTING.md#development-setup).
|
|
35
46
|
|
|
47
|
+
To pin a published version, use `ntn-skills@VERSION`. To consume a local tarball instead, replace the package name with its absolute archive path.
|
|
48
|
+
|
|
36
49
|
## Authentication
|
|
37
50
|
|
|
38
51
|
Authentication priority is non-empty `config.token` → non-empty `NOTION_API_TOKEN` → existing `ntn login`. Configure `ntn` through [its authentication guide](https://developers.notion.com/cli/get-started/authentication), or pipe one token from a trusted secret source into `ntn-skills config set-token --stdin`. Never place a token in a command argument or a report.
|
|
@@ -133,7 +146,7 @@ State contains private workflow bytes, immutable manifests, content-addressed ob
|
|
|
133
146
|
|
|
134
147
|
## Upgrade and uninstall
|
|
135
148
|
|
|
136
|
-
For a tarball installation, obtain the newer built archive and repeat
|
|
149
|
+
For a registry installation, repeat the global or project-local npm install command with the desired published version. For a tarball installation, obtain the newer built archive and repeat its install command. Read [the changelog](../CHANGELOG.md) before upgrading across a 0.x minor version. Source updates, builds and packaging follow [Contributing](../CONTRIBUTING.md#development-setup).
|
|
137
150
|
|
|
138
151
|
Remove a global installation with:
|
|
139
152
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ntn-skills",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Discover, read and maintain Notion skills with immutable task snapshots",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@effect/platform-node": "4.0.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@notion-skills-cli/core": "0.1.
|
|
53
|
+
"@notion-skills-cli/core": "0.1.2"
|
|
54
54
|
},
|
|
55
55
|
"license": "MIT"
|
|
56
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Discovery and integration
|
|
2
2
|
|
|
3
|
-
Use [the README](../../../README.md#quick-start) for prerequisites, installation and a first read.
|
|
3
|
+
Use [the README](../../../README.md#quick-start) for prerequisites, installation and a first read. [The protocol](../../../docs/protocol.md) and [host adapter contract](../../../docs/host-integration.md) are the shared public references.
|
|
4
4
|
|
|
5
5
|
Install the built CLI package with npm and run it on Node.js 22.19.0 or newer. The host must put Node.js and `ntn-skills` on PATH; online operations also need the official `ntn` executable. Repository development/build/test tooling uses Bun separately.
|
|
6
6
|
|