cogn 2.2.1 → 2.2.7

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 ADDED
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+
3
+ All notable changes to this package are documented in this file.
4
+
5
+ ## 2.2.7 - 2026-02-06
6
+
7
+ - Alias package aligned with `cognitive-modules-cli@2.2.7`.
8
+ - Added package-level publish metadata and explicit file whitelist.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ziel-io
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
@@ -1,26 +1,24 @@
1
1
  # cogn
2
2
 
3
- Cognitive Modules CLI - 结构化 AI 任务执行工具。
4
-
5
- 这是 `cognitive-modules-cli` 的短名别名包,安装后提供 `cog` 命令。
3
+ Cognitive Modules CLI 的短名别名包,安装后提供 `cog` 命令。
6
4
 
7
5
  ## 一行代码使用
8
6
 
9
7
  ```bash
10
8
  # 零安装运行
11
- npx cogn run code-reviewer --args "def login(u,p): pass"
9
+ npx cogn@2.2.7 run code-reviewer --args "def login(u,p): pass"
12
10
 
13
11
  # 列出模块
14
- npx cogn list
12
+ npx cogn@2.2.7 list
15
13
 
16
14
  # 查看帮助
17
- npx cogn --help
15
+ npx cogn@2.2.7 --help
18
16
  ```
19
17
 
20
18
  ## 全局安装
21
19
 
22
20
  ```bash
23
- npm install -g cogn
21
+ npm install -g cogn@2.2.7
24
22
 
25
23
  # 然后直接使用
26
24
  cog run code-reviewer --args "..."
@@ -29,5 +27,10 @@ cog run code-reviewer --args "..."
29
27
  ## 更多信息
30
28
 
31
29
  - GitHub: https://github.com/ziel-io/cognitive-modules
32
- - 文档: https://ziel-io.github.io/cognitive-modules/
33
- - PyPI: https://pypi.org/project/cognitive-modules/
30
+ - 文档(仓库内):README.md
31
+
32
+ ## 发布前检查
33
+
34
+ ```bash
35
+ npm run pack:check
36
+ ```
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "cogn",
3
- "version": "2.2.1",
3
+ "version": "2.2.7",
4
4
  "description": "Cognitive Modules CLI - Structured AI Task Execution (alias for cognitive-modules-cli)",
5
5
  "bin": {
6
+ "cogn": "./bin.js",
6
7
  "cog": "./bin.js"
7
8
  },
8
- "scripts": {},
9
+ "scripts": {
10
+ "pack:check": "npm pack --dry-run --json --cache ../../.npm-cache"
11
+ },
9
12
  "keywords": [
10
13
  "cognitive",
11
14
  "ai",
@@ -18,10 +21,25 @@
18
21
  "author": "ziel-io",
19
22
  "repository": {
20
23
  "type": "git",
21
- "url": "https://github.com/ziel-io/cognitive-modules.git"
24
+ "url": "https://github.com/Cognary/cognitive.git"
25
+ },
26
+ "homepage": "https://cognary.github.io/cognitive/",
27
+ "bugs": {
28
+ "url": "https://github.com/Cognary/cognitive/issues"
29
+ },
30
+ "files": [
31
+ "bin.js",
32
+ "README.md",
33
+ "LICENSE",
34
+ "CHANGELOG.md"
35
+ ],
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "engines": {
40
+ "node": ">=18.0.0"
22
41
  },
23
- "homepage": "https://ziel-io.github.io/cognitive-modules/",
24
42
  "dependencies": {
25
- "cognitive-modules-cli": "^2.2.1"
43
+ "cognitive-modules-cli": "2.2.7"
26
44
  }
27
45
  }