agiledev-cli 0.1.0

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/logo.svg ADDED
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" role="img">
2
+ <title>Favicon</title>
3
+ <desc>Wave progression favicon for agile dev system</desc>
4
+ <path d="M4,26 Q10,8 16,12 Q22,16 28,4" fill="none" stroke="#C4956A" stroke-width="2.2" stroke-linecap="round"/>
5
+ <circle cx="4" cy="26" r="2.8" fill="#C4956A"/>
6
+ <circle cx="16" cy="12" r="2.8" fill="#C4956A"/>
7
+ <circle cx="28" cy="4" r="2.8" fill="#A68B70"/>
8
+ </svg>
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "agiledev-cli",
3
+ "version": "0.1.0",
4
+ "description": "AgileDev 敏捷研发管理系统 CLI:获取 bug 列表/详情、需求列表/详情、项目列表,供 AI 与脚本使用",
5
+ "type": "module",
6
+ "bin": {
7
+ "adev": "./adev.js"
8
+ },
9
+ "scripts": {
10
+ "test": "node --test"
11
+ },
12
+ "files": [
13
+ "adev.js",
14
+ "SKILL.md",
15
+ "skills/adev-login/SKILL.md",
16
+ "README.md",
17
+ "logo.svg"
18
+ ],
19
+ "keywords": [
20
+ "agiledev",
21
+ "agile",
22
+ "bug",
23
+ "backlog",
24
+ "scrum",
25
+ "cli",
26
+ "ai"
27
+ ],
28
+ "engines": {
29
+ "node": ">=18"
30
+ },
31
+ "license": "MIT",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/anyaoqi/agiledev-cli.git"
35
+ }
36
+ }
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: adev-login
3
+ description: 登录 AgileDev 敏捷研发管理系统(又称"敏捷系统/敏捷开发系统")。当用户说"登录敏捷系统"、"登录敏捷开发系统"、"帮我登录敏捷系统"、"帮我登录敏捷开发系统"、"登录AgileDev"、"重新登录"、"退出登录敏捷"或任何同时提到"登录"和"敏捷系统/敏捷开发系统/AgileDev"的话时,使用此 skill。
4
+ ---
5
+
6
+ # login — 登录 AgileDev 敏捷系统
7
+
8
+ 用户想登录(或重新登录)AgileDev 系统。凭据必须由用户本人在终端输入,AI 不代输、不索要明文密码、不需要用户打开网页。
9
+
10
+ ## 引导流程
11
+
12
+ 1. 请用户在终端执行(告诉用户可以直接复制):
13
+
14
+ ```bash
15
+ adev login
16
+ ```
17
+
18
+ 已知账号也可以带上:`adev login zhangsan`。提示"密码:"时用户输入即可,输入不回显是正常的。
19
+
20
+ 2. 用户执行完成后,验证登录状态:
21
+
22
+ ```bash
23
+ adev whoami
24
+ ```
25
+
26
+ 输出形如 `张三(zhangsan) 角色=Dev | 认证方式: 账号密码登录(zhangsan)` 即成功。
27
+
28
+ 3. 告知用户接下来可以直接说"看看我的 bug"、"我的待办"等指令操作敏捷系统。
29
+
30
+ ## 常见情况处理
31
+
32
+ - **`登录失败:用户名或密码错误`**:账号密码就是网页 scrum.chitem.com 的登录账号,确认后重试 `adev login`。
33
+ - **`登录已过期,请重新执行 adev login`**:正常现象(登录凭证有效期短于 API Key),重新执行即可,一般回车确认用户名再输一次密码。
34
+ - **`网络请求失败`**:用户不在公司网络/未连 VPN,接入后重试。
35
+ - **用户想退出登录**:`adev logout`。
36
+ - **用户嫌频繁登录麻烦**:建议改用长期 API Key——平台「个人设置 → API」创建后 `adev config set-token agv1_xxx`,一劳永逸(写操作权限也按 Key 分配)。
37
+
38
+ ## 边界
39
+
40
+ - 不要在对话中要求用户粘贴账号密码;密码只应出现在用户自己的终端输入里。
41
+ - 登录属于个人操作,不要替用户决定"帮所有人登录"。