@teammy/cli 0.0.0-stage → 0.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Teammy contributors
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,3 +1,48 @@
1
- # Temporary Holding Version
1
+ # Teammy
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 团队 AI 协作共享和内容分发中枢。
4
+
5
+ **当前版本是用于建立 npm 包和 CLI 入口的最小骨架,只提供帮助与版本查询。以下产品能力尚未实现。**
6
+
7
+ ## 安装
8
+
9
+ 需要 Node.js 22 或更新版本。
10
+
11
+ ```sh
12
+ npm install -g @teammy/cli
13
+ teammy --help
14
+ teammy --version
15
+ ```
16
+
17
+ 也可以直接运行:
18
+
19
+ ```sh
20
+ npx @teammy/cli --help
21
+ ```
22
+
23
+ ## 产品方向
24
+
25
+ 在 Git 项目目录注册并绑定项目,为团队提供:
26
+
27
+ - **文件同步**:按项目约定同步 `spec/`、`plan/`、`review/` 等自定义目录,让进展及时共享。
28
+ - **Session 共享**:通过项目级 hook 自动收集协作会话,支持检索、互相查阅和接力。
29
+ - **AI 进展摘要**:由中枢连接的 LLM 为会话打标、汇总进度。
30
+ - **简要看板**:集中展示文件同步信息、AI 工作摘要和团队进展。
31
+
32
+ 同步独立于 Git 提交和推送。交互以自动化为主,减少用户操作、上下文注入和对 skill 的依赖。后续接入以项目绑定时约定的共享范围为边界。
33
+
34
+ ## 本地开发
35
+
36
+ 当前使用原生 JavaScript ESM,无运行时依赖,无需构建。
37
+
38
+ ```sh
39
+ npm install
40
+ npm run check
41
+ node bin/teammy.js --help
42
+ ```
43
+
44
+ 需要本地全局命令时运行 `npm link`。发布前使用 `npm pack` 生成 `.tgz`,完成包内容、安装和命令验收后,通过 `npm publish ./包名-版本号.tgz --access public --auth-type=web --registry=https://registry.npmjs.org` 发布同一份产物。
45
+
46
+ ## License
47
+
48
+ MIT
package/bin/teammy.js ADDED
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { readFileSync } from 'node:fs';
4
+
5
+ const { version } = JSON.parse(
6
+ readFileSync(new URL('../package.json', import.meta.url), 'utf8'),
7
+ );
8
+
9
+ const help = `teammy — a shared hub for team AI collaboration
10
+
11
+ Usage:
12
+ teammy Show this help
13
+ teammy --help Show this help
14
+ teammy --version Show the installed version
15
+
16
+ This is an early scaffold. Project binding, file sync, session sharing,
17
+ and the dashboard are planned and are not available yet.
18
+ `;
19
+
20
+ const args = process.argv.slice(2);
21
+ const command = args[0];
22
+
23
+ if (args.length === 0 || (args.length === 1 && ['--help', '-h', 'help'].includes(command))) {
24
+ process.stdout.write(help);
25
+ } else if (args.length === 1 && ['--version', '-v', 'version'].includes(command)) {
26
+ process.stdout.write(`${version}\n`);
27
+ } else {
28
+ process.stderr.write('Unknown command or arguments. Run "teammy --help" for usage.\n');
29
+ process.exitCode = 1;
30
+ }
package/package.json CHANGED
@@ -1,6 +1,30 @@
1
1
  {
2
2
  "name": "@teammy/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "description": "A shared hub for team AI collaboration, project context, and session handoffs.",
5
+ "type": "module",
6
+ "bin": {
7
+ "teammy": "bin/teammy.js"
8
+ },
9
+ "files": [
10
+ "bin/"
11
+ ],
12
+ "scripts": {
13
+ "check": "node --check bin/teammy.js"
14
+ },
15
+ "engines": {
16
+ "node": ">=22"
17
+ },
18
+ "keywords": [
19
+ "ai",
20
+ "team",
21
+ "collaboration",
22
+ "sessions",
23
+ "cli"
24
+ ],
25
+ "license": "MIT",
26
+ "publishConfig": {
27
+ "access": "public",
28
+ "registry": "https://registry.npmjs.org/"
29
+ }
30
+ }