@stofone/dsh-agent-roster 0.7.0 → 0.8.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/CHANGELOG.md +52 -3
- package/README.md +40 -3
- package/README.zh.md +40 -3
- package/bin/cli.mjs +10 -0
- package/index/registry.json +49 -5
- package/lib/format.js +4 -5
- package/lib/organization.js +331 -0
- package/lib/registry.js +83 -1
- package/lib/remote.js +1 -1
- package/lib/render.js +15 -0
- package/lib/tools.js +3 -0
- package/orgs/agent-roster-collective/api-design/roster.yaml +67 -0
- package/orgs/agent-roster-collective/content-ops/roster.yaml +55 -0
- package/orgs/agent-roster-collective/contract-review/roster.yaml +58 -0
- package/orgs/agent-roster-collective/data-quality/roster.yaml +64 -0
- package/orgs/agent-roster-collective/db-migration/roster.yaml +64 -0
- package/orgs/agent-roster-collective/docs-writer/roster.yaml +59 -0
- package/orgs/agent-roster-collective/finance-recon/roster.yaml +63 -0
- package/orgs/agent-roster-collective/frontend-ui/roster.yaml +60 -0
- package/orgs/agent-roster-collective/i18n-l10n/roster.yaml +60 -0
- package/orgs/agent-roster-collective/incident-response/roster.yaml +65 -0
- package/orgs/agent-roster-collective/literature-review/roster.yaml +61 -0
- package/orgs/agent-roster-collective/market-research/roster.yaml +60 -0
- package/orgs/agent-roster-collective/ml-eval/roster.yaml +63 -0
- package/orgs/agent-roster-collective/organization.yaml +118 -0
- package/orgs/agent-roster-collective/performance/roster.yaml +63 -0
- package/orgs/agent-roster-collective/product-discovery/roster.yaml +55 -0
- package/orgs/agent-roster-collective/qa-regression/roster.yaml +64 -0
- package/orgs/agent-roster-collective/recruiting/roster.yaml +58 -0
- package/orgs/agent-roster-collective/release-manager/roster.yaml +59 -0
- package/orgs/agent-roster-collective/security-audit/capabilities.yaml +12 -0
- package/orgs/agent-roster-collective/security-audit/roster.yaml +65 -0
- package/orgs/agent-roster-collective/sre-oncall/roster.yaml +60 -0
- package/orgs/agent-roster-collective/support-triage/roster.yaml +58 -0
- package/package.json +5 -4
- package/schema/capabilities.v1.schema.json +1 -1
- package/schema/organization.v1.schema.json +50 -0
- package/schema/registry.v1.schema.json +83 -0
- package/schema/roster.v1.schema.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/dsh-agent-roster/dsh-agent-roster/blob/main/schema/organization.v1.schema.json",
|
|
4
|
+
"title": "DSH agent roster organization document",
|
|
5
|
+
"description": "一座档案库的目录页:声明库里有哪几份档案、各自什么状态。校验的权威实现是 lib/organization.js;本文件供编辑器与外部工具提示,两者由 test/organization.test.js 对齐。",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "organization", "rosters"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "编辑器用的 schema 地址,插件不读它。"
|
|
13
|
+
},
|
|
14
|
+
"kind": { "const": "dsh-agent-roster-organization/v1" },
|
|
15
|
+
"organization": {
|
|
16
|
+
"$ref": "#/$defs/id",
|
|
17
|
+
"description": "组织 id,同时是档案库根目录名。位置即身份。"
|
|
18
|
+
},
|
|
19
|
+
"title": { "type": "string", "maxLength": 120 },
|
|
20
|
+
"description": { "type": "string", "maxLength": 500 },
|
|
21
|
+
"license": { "type": "string", "maxLength": 120 },
|
|
22
|
+
"homepage": { "type": "string", "maxLength": 200, "pattern": "^https?://\\S+$" },
|
|
23
|
+
"maintainers": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"maxItems": 16,
|
|
26
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 120 }
|
|
27
|
+
},
|
|
28
|
+
"rosters": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"minItems": 1,
|
|
31
|
+
"maxItems": 64,
|
|
32
|
+
"description": "登记在案的档案。声明了却找不到目录会报错;目录在却没登记会告警。",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["id"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"id": { "$ref": "#/$defs/id" },
|
|
39
|
+
"title": { "type": "string", "maxLength": 120 },
|
|
40
|
+
"status": { "enum": ["active", "archived"] },
|
|
41
|
+
"origin": { "type": "string", "maxLength": 120 },
|
|
42
|
+
"note": { "type": "string", "maxLength": 300 }
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"$defs": {
|
|
48
|
+
"id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]{1,63}$" }
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/dsh-agent-roster/dsh-agent-roster/blob/main/schema/registry.v1.schema.json",
|
|
4
|
+
"title": "DSH agent roster registry document",
|
|
5
|
+
"description": "公共档案索引:登记若干 collection(仓库 + 目录 + 确有哪几份档案),供订阅与一键安装。权威校验实现是 lib/remote.js#validateRegistry;本文件供编辑器与外部工具提示,两者由 test/registry-schema.test.js 对齐。注意:运行时对未知字段只告警不判错,这里写成 additionalProperties:false 是为了让编辑器早点指出拼写错误。",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "collections"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "编辑器用的 schema 地址,插件不读它。"
|
|
13
|
+
},
|
|
14
|
+
"kind": { "const": "dsh-agent-roster-registry/v1" },
|
|
15
|
+
"version": { "type": "integer", "minimum": 1 },
|
|
16
|
+
"generatedAt": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$",
|
|
19
|
+
"description": "上一次校验通过的时间,由 CI 或维护者盖章。"
|
|
20
|
+
},
|
|
21
|
+
"generator": { "type": "string", "maxLength": 200 },
|
|
22
|
+
"source": { "type": "string", "maxLength": 200 },
|
|
23
|
+
"collections": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"maxItems": 500,
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": ["id", "repo"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"id": { "$ref": "#/$defs/id" },
|
|
32
|
+
"title": { "type": "string", "maxLength": 120 },
|
|
33
|
+
"description": { "type": "string", "maxLength": 500 },
|
|
34
|
+
"repo": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"pattern": "^(?:github:)?[A-Za-z0-9][A-Za-z0-9_.-]{0,38}/[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$",
|
|
37
|
+
"description": "仓库坐标,形如 github:owner/repo。"
|
|
38
|
+
},
|
|
39
|
+
"ref": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"pattern": "^(?:[A-Za-z0-9][A-Za-z0-9._-]{0,127}|[0-9a-f]{40})$",
|
|
42
|
+
"default": "main",
|
|
43
|
+
"description": "分支、标签或 40 位 commit。"
|
|
44
|
+
},
|
|
45
|
+
"path": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"pattern": "^(?:/)?(?:[A-Za-z0-9._-]+/)*[A-Za-z0-9._-]*$",
|
|
48
|
+
"default": "rosters",
|
|
49
|
+
"description": "仓库内存放档案的目录。"
|
|
50
|
+
},
|
|
51
|
+
"rosters": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"maxItems": 200,
|
|
54
|
+
"description": "目录里确实存在的档案 id。索引不撒谎:不存在的 id 会被 registry sync 剔除。",
|
|
55
|
+
"items": { "$ref": "#/$defs/id" }
|
|
56
|
+
},
|
|
57
|
+
"tags": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"maxItems": 16,
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,31}$"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"license": { "type": "string", "maxLength": 120 },
|
|
66
|
+
"maintainers": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"maxItems": 16,
|
|
69
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 120 }
|
|
70
|
+
},
|
|
71
|
+
"homepage": { "type": "string", "maxLength": 200, "pattern": "^https?://\\S+$" }
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"$defs": {
|
|
77
|
+
"id": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"pattern": "^[a-z0-9][a-z0-9-]{1,63}$",
|
|
80
|
+
"description": "kebab-case 标识,与档案目录名同规则。"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://github.com/
|
|
3
|
+
"$id": "https://github.com/dsh-agent-roster/dsh-agent-roster/blob/main/schema/roster.v1.schema.json",
|
|
4
4
|
"title": "DSH agent roster document",
|
|
5
5
|
"description": "一份成员档案:描述一个多 Agent 团队里每个成员是谁、用什么模型、受哪些工具约束,以及队长应该是什么样。校验的权威实现是插件里的 lib/validate.js;本文件供编辑器与外部工具做提示,两者由 test/schema.test.js 对齐。",
|
|
6
6
|
"type": "object",
|