@hagicode/skillsbase 0.1.3 → 0.1.4
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/LICENSE +21 -0
- package/README.md +9 -2
- package/README.zh-CN.md +4 -2
- package/dist/cli.mjs +1 -2
- package/package.json +3 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 HagiCode
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@hagicode/skillsbase)
|
|
6
6
|
[](https://www.npmjs.com/package/@hagicode/skillsbase)
|
|
7
|
-
[](./LICENSE)
|
|
8
|
+
[](https://nodejs.org/)
|
|
8
9
|
|
|
9
10
|
`skillsbase` is a standalone Node.js CLI for bootstrapping and maintaining managed skills repositories.
|
|
10
11
|
It ships the CLI and templates only. The generated `skills/` content belongs in the target repository, not in this package repository.
|
|
@@ -13,7 +14,7 @@ It ships the CLI and templates only. The generated `skills/` content belongs in
|
|
|
13
14
|
|
|
14
15
|
Requirements:
|
|
15
16
|
|
|
16
|
-
- Node.js `>=
|
|
17
|
+
- Node.js `>= 24.0.0`
|
|
17
18
|
- npm `>= 10.9.2`
|
|
18
19
|
|
|
19
20
|
Install globally:
|
|
@@ -122,4 +123,10 @@ The GitHub Actions workflow supports two npm authentication modes:
|
|
|
122
123
|
- Fallback: `NPM_TOKEN` repository secret mapped to `NODE_AUTH_TOKEN`
|
|
123
124
|
|
|
124
125
|
Before relying on trusted publishing, make sure the npm package settings for `@hagicode/skillsbase` trust the `HagiCode-org/skillsbase` repository.
|
|
126
|
+
Use workflow filename `npm-publish.yml` in npm trusted publisher settings, not the full `.github/workflows/...` path.
|
|
127
|
+
If the package has not been published before, that is still acceptable as long as the `hagicode` scope already exists and the publishing identity can create `@hagicode/skillsbase`.
|
|
125
128
|
The npm docs currently require Node.js `>= 22.14.0` and npm `>= 11.5.1` for trusted publishing.
|
|
129
|
+
|
|
130
|
+
## License
|
|
131
|
+
|
|
132
|
+
MIT. See [LICENSE](./LICENSE).
|
package/README.zh-CN.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@hagicode/skillsbase)
|
|
6
6
|
[](https://www.npmjs.com/package/@hagicode/skillsbase)
|
|
7
|
-
[](https://nodejs.org/)
|
|
8
8
|
|
|
9
9
|
`skillsbase` 是一个独立的 Node.js CLI,用于初始化并维护受管 skills 仓库。
|
|
10
10
|
本仓库只提供 CLI 与模板,不提交目标仓库中的 `skills/` 产物。
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
要求:
|
|
15
15
|
|
|
16
|
-
- Node.js `>=
|
|
16
|
+
- Node.js `>= 24.0.0`
|
|
17
17
|
- npm `>= 10.9.2`
|
|
18
18
|
|
|
19
19
|
全局安装:
|
|
@@ -122,4 +122,6 @@ GitHub Actions 发布流支持两种 npm 认证模式:
|
|
|
122
122
|
- 兜底:仓库 `NPM_TOKEN` secret,经 `NODE_AUTH_TOKEN` 注入
|
|
123
123
|
|
|
124
124
|
若使用 trusted publishing,需先在 npm 的 `@hagicode/skillsbase` 包设置中,将 `HagiCode-org/skillsbase` 配置为 trusted publisher。
|
|
125
|
+
在 npm trusted publisher 设置里填写的 workflow filename 应为 `npm-publish.yml`,不要填完整的 `.github/workflows/...` 路径。
|
|
126
|
+
如果这个包还没有首发,只要 npm 上已经存在 `hagicode` scope,且当前发布身份有权创建 `@hagicode/skillsbase`,也仍然可以正常发布。
|
|
125
127
|
npm 官方当前要求 Node.js `>= 22.14.0` 且 npm `>= 11.5.1`。
|
package/dist/cli.mjs
CHANGED
|
@@ -63,7 +63,6 @@ var DEFAULT_INSTALL_AGENT = "codex";
|
|
|
63
63
|
var DEFAULT_SKILLS_ROOT = "skills";
|
|
64
64
|
var DEFAULT_METADATA_FILE = ".skill-source.json";
|
|
65
65
|
var DEFAULT_MANAGED_BY = "skillsbase";
|
|
66
|
-
var DEFAULT_NODE_VERSION = "22.12.0";
|
|
67
66
|
//#endregion
|
|
68
67
|
//#region src/lib/files.ts
|
|
69
68
|
async function pathExists(targetPath) {
|
|
@@ -817,7 +816,7 @@ async function writeManagedFile(targetPath, content, options = {}) {
|
|
|
817
816
|
}
|
|
818
817
|
async function writeGithubActions(repoPath, options = {}) {
|
|
819
818
|
const kind = options.kind ?? "workflow";
|
|
820
|
-
const variables = { NODE_VERSION:
|
|
819
|
+
const variables = { NODE_VERSION: "24" };
|
|
821
820
|
const targets = [];
|
|
822
821
|
if (kind === "workflow" || kind === "all") targets.push({
|
|
823
822
|
relativePath: path.join(".github", "workflows", "skills-sync.yml"),
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hagicode/skillsbase",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Managed skills repository CLI",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"homepage": "https://github.com/HagiCode-org/skillsbase#readme",
|
|
6
7
|
"bugs": {
|
|
7
8
|
"url": "https://github.com/HagiCode-org/skillsbase/issues"
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
36
37
|
},
|
|
37
38
|
"engines": {
|
|
38
|
-
"node": ">=
|
|
39
|
+
"node": ">=24.0.0",
|
|
39
40
|
"npm": ">=10.9.2"
|
|
40
41
|
},
|
|
41
42
|
"publishConfig": {
|