artifact-graph 0.14.1 → 0.16.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/CHANGELOG.md +29 -0
- package/INSTALL.md +9 -0
- package/README.md +24 -1
- package/README.zh-CN.md +20 -1
- package/contracts/spec/schema.json +44 -0
- package/dist/cli.js +905 -271
- package/dist/index.cjs +787 -323
- package/dist/index.d.cts +29 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.js +837 -227
- package/package.json +4 -1
- package/profiles/project-artifact-profiles.json +109 -0
- package/schemas/project-artifact-profiles.schema.json +120 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "artifact-graph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Git-native Markdown artifact graph scanner and validator",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"./schemas/review-result.schema.json": "./schemas/review-result.schema.json",
|
|
33
|
+
"./schemas/project-artifact-profiles.schema.json": "./schemas/project-artifact-profiles.schema.json",
|
|
34
|
+
"./project-artifact-profiles": "./profiles/project-artifact-profiles.json",
|
|
33
35
|
"./contracts/e2e-test/schema.json": "./contracts/e2e-test/schema.json"
|
|
34
36
|
},
|
|
35
37
|
"engines": {
|
|
@@ -77,6 +79,7 @@
|
|
|
77
79
|
".github",
|
|
78
80
|
"dist",
|
|
79
81
|
"schemas",
|
|
82
|
+
"profiles",
|
|
80
83
|
"contracts",
|
|
81
84
|
"scripts",
|
|
82
85
|
"templates"
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"common_minimum": [
|
|
4
|
+
"feature",
|
|
5
|
+
"scenario",
|
|
6
|
+
"design"
|
|
7
|
+
],
|
|
8
|
+
"project_standards": {
|
|
9
|
+
"skill-plugin": {
|
|
10
|
+
"extends": "common_minimum",
|
|
11
|
+
"additional_types": [
|
|
12
|
+
"agent_skill",
|
|
13
|
+
"e2e_test"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"lifecycle": [
|
|
18
|
+
{
|
|
19
|
+
"type": "requirement",
|
|
20
|
+
"adoption_stages": [
|
|
21
|
+
"initial",
|
|
22
|
+
"daily-iteration"
|
|
23
|
+
],
|
|
24
|
+
"condition": "项目正在收集尚待处理的诉求时采用;读取清单不会启用该类型。"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "spec",
|
|
28
|
+
"adoption_stages": [
|
|
29
|
+
"daily-iteration"
|
|
30
|
+
],
|
|
31
|
+
"condition": "需要冻结本轮跨仓或复杂实施的范围与验收时采用;读取清单不会启用该类型。"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "decision",
|
|
35
|
+
"adoption_stages": [
|
|
36
|
+
"initial",
|
|
37
|
+
"legacy-backfill",
|
|
38
|
+
"daily-iteration"
|
|
39
|
+
],
|
|
40
|
+
"condition": "需要追溯方案取舍时采用;读取清单不会启用该类型。"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"conditional": [
|
|
44
|
+
{
|
|
45
|
+
"type": "cli_contract",
|
|
46
|
+
"project_shapes": [
|
|
47
|
+
"cli-library"
|
|
48
|
+
],
|
|
49
|
+
"condition": "项目有公开 CLI 或独立命令接口时采用;形态本身不证明已有该能力。"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "api_contract",
|
|
53
|
+
"project_shapes": [
|
|
54
|
+
"web",
|
|
55
|
+
"desktop"
|
|
56
|
+
],
|
|
57
|
+
"condition": "项目有公开 API 或独立服务接口时采用;形态本身不证明已有该能力。"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "ui_contract",
|
|
61
|
+
"project_shapes": [
|
|
62
|
+
"web",
|
|
63
|
+
"desktop"
|
|
64
|
+
],
|
|
65
|
+
"condition": "项目有独立界面流程或 UI 合同时采用;形态本身不证明已有该能力。"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "ipc_contract",
|
|
69
|
+
"project_shapes": [
|
|
70
|
+
"desktop"
|
|
71
|
+
],
|
|
72
|
+
"condition": "项目有独立进程间通道或前后端桥接合同时采用;形态本身不证明已有该能力。"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "data_contract",
|
|
76
|
+
"project_shapes": [
|
|
77
|
+
"cli-library",
|
|
78
|
+
"web",
|
|
79
|
+
"desktop",
|
|
80
|
+
"skill-plugin"
|
|
81
|
+
],
|
|
82
|
+
"condition": "项目有独立数据交换或数据模型合同时采用;读取清单不会启用该类型。"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "hook_policy",
|
|
86
|
+
"project_shapes": [
|
|
87
|
+
"skill-plugin"
|
|
88
|
+
],
|
|
89
|
+
"condition": "项目有钩子、门禁或独立 hook 合同时采用;技能族标准不包含此项。"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "prompt_packet",
|
|
93
|
+
"project_shapes": [
|
|
94
|
+
"skill-plugin"
|
|
95
|
+
],
|
|
96
|
+
"condition": "项目有独立提示或上下文组装合同时采用;技能族标准不包含此项。"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "release_policy",
|
|
100
|
+
"project_shapes": [
|
|
101
|
+
"cli-library",
|
|
102
|
+
"web",
|
|
103
|
+
"desktop",
|
|
104
|
+
"skill-plugin"
|
|
105
|
+
],
|
|
106
|
+
"condition": "项目承担发布与分发职责时采用适用的发布治理制品;读取清单不会启用该类型。"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://artifact-graph.dev/schemas/project-artifact-profiles/v1.0.schema.json",
|
|
4
|
+
"title": "Project Artifact Profiles",
|
|
5
|
+
"description": "Static published lists of common-minimum, project-type standard, lifecycle, and capability-triggered artifact types. schema_version must be 1.0. This file is a recommendation contract; reading it does not enable project types.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schema_version", "common_minimum", "project_standards", "lifecycle", "conditional"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schema_version": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"const": "1.0",
|
|
13
|
+
"description": "Contract version. Must be '1.0' for this schema."
|
|
14
|
+
},
|
|
15
|
+
"common_minimum": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"description": "Cross-project common minimum artifact types. Unique names; not auto-enabled.",
|
|
18
|
+
"minItems": 1,
|
|
19
|
+
"uniqueItems": true,
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^[a-z][a-z0-9_]*$"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"project_standards": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"description": "Approved project-shape standards. Only skill-plugin is currently an independent category standard.",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"properties": {
|
|
30
|
+
"skill-plugin": {
|
|
31
|
+
"$ref": "#/$defs/projectStandard"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"lifecycle": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"description": "Stage-triggered candidates. condition is for skill interpretation; no runtime condition interpreter is implied.",
|
|
38
|
+
"items": {
|
|
39
|
+
"$ref": "#/$defs/lifecycleEntry"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"conditional": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"description": "Capability-triggered candidates for matching project shapes. Not auto-enabled.",
|
|
45
|
+
"items": {
|
|
46
|
+
"$ref": "#/$defs/conditionalEntry"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"$defs": {
|
|
51
|
+
"artifactTypeName": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"pattern": "^[a-z][a-z0-9_]*$"
|
|
54
|
+
},
|
|
55
|
+
"projectStandard": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"required": ["extends", "additional_types"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"extends": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"const": "common_minimum"
|
|
63
|
+
},
|
|
64
|
+
"additional_types": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"uniqueItems": true,
|
|
67
|
+
"items": {
|
|
68
|
+
"$ref": "#/$defs/artifactTypeName"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"lifecycleEntry": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"additionalProperties": false,
|
|
76
|
+
"required": ["type", "adoption_stages", "condition"],
|
|
77
|
+
"properties": {
|
|
78
|
+
"type": {
|
|
79
|
+
"$ref": "#/$defs/artifactTypeName"
|
|
80
|
+
},
|
|
81
|
+
"adoption_stages": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"minItems": 1,
|
|
84
|
+
"uniqueItems": true,
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"enum": ["initial", "legacy-backfill", "daily-iteration"]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"condition": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"minLength": 1
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"conditionalEntry": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"required": ["type", "project_shapes", "condition"],
|
|
100
|
+
"properties": {
|
|
101
|
+
"type": {
|
|
102
|
+
"$ref": "#/$defs/artifactTypeName"
|
|
103
|
+
},
|
|
104
|
+
"project_shapes": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"minItems": 1,
|
|
107
|
+
"uniqueItems": true,
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"enum": ["cli-library", "web", "desktop", "skill-plugin"]
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"condition": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"minLength": 1
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|