akbo-cli 0.0.0-stage → 2.0.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/README.md +786 -2
- package/dist/catalog_store.d.ts +131 -0
- package/dist/catalog_store.js +506 -0
- package/dist/cleaner.d.ts +11 -0
- package/dist/cleaner.js +92 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +1961 -0
- package/dist/dream_engine.d.ts +61 -0
- package/dist/dream_engine.js +330 -0
- package/dist/extractors/base.d.ts +35 -0
- package/dist/extractors/base.js +17 -0
- package/dist/extractors/custom_extractor.d.ts +55 -0
- package/dist/extractors/custom_extractor.js +198 -0
- package/dist/extractors/dotnet_extractor.d.ts +11 -0
- package/dist/extractors/dotnet_extractor.js +579 -0
- package/dist/extractors/golang_extractor.d.ts +11 -0
- package/dist/extractors/golang_extractor.js +73 -0
- package/dist/extractors/index.d.ts +14 -0
- package/dist/extractors/index.js +30 -0
- package/dist/extractors/jvm_extractor.d.ts +11 -0
- package/dist/extractors/jvm_extractor.js +319 -0
- package/dist/extractors/node_extractor.d.ts +11 -0
- package/dist/extractors/node_extractor.js +306 -0
- package/dist/extractors/proto_graphql_extractor.d.ts +11 -0
- package/dist/extractors/proto_graphql_extractor.js +125 -0
- package/dist/extractors/python_extractor.d.ts +11 -0
- package/dist/extractors/python_extractor.js +298 -0
- package/dist/extractors/rust_extractor.d.ts +11 -0
- package/dist/extractors/rust_extractor.js +66 -0
- package/dist/graph_builder.d.ts +87 -0
- package/dist/graph_builder.js +1516 -0
- package/dist/guard_service.d.ts +33 -0
- package/dist/guard_service.js +167 -0
- package/dist/harvester.d.ts +38 -0
- package/dist/harvester.js +461 -0
- package/dist/hook_generator.d.ts +34 -0
- package/dist/hook_generator.js +269 -0
- package/dist/importers/skill_importer.d.ts +43 -0
- package/dist/importers/skill_importer.js +470 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +20 -0
- package/dist/indexer.d.ts +19 -0
- package/dist/indexer.js +108 -0
- package/dist/init_service.d.ts +37 -0
- package/dist/init_service.js +246 -0
- package/dist/mcp_server.d.ts +10 -0
- package/dist/mcp_server.js +846 -0
- package/dist/pool_resolver.d.ts +40 -0
- package/dist/pool_resolver.js +84 -0
- package/dist/provider.d.ts +135 -0
- package/dist/provider.js +880 -0
- package/dist/query_service.d.ts +33 -0
- package/dist/query_service.js +161 -0
- package/dist/schema_generator.d.ts +236 -0
- package/dist/schema_generator.js +264 -0
- package/dist/standards_loader.d.ts +7 -0
- package/dist/standards_loader.js +33 -0
- package/dist/types.d.ts +323 -0
- package/dist/types.js +123 -0
- package/dist/unit_synthesizer.d.ts +22 -0
- package/dist/unit_synthesizer.js +196 -0
- package/dist/validator.d.ts +13 -0
- package/dist/validator.js +152 -0
- package/dist/version.d.ts +6 -0
- package/dist/version.js +16 -0
- package/dist/watcher.d.ts +38 -0
- package/dist/watcher.js +132 -0
- package/package.json +56 -6
- package/schemas/index-schema.json +98 -0
- package/schemas/knowledge-unit.json +154 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "AKB Master Index & Catalog Router Specification",
|
|
4
|
+
"description": "Schema defining the root knowledge/index.yaml and domain sub-catalogs.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"system_name"
|
|
8
|
+
],
|
|
9
|
+
"properties": {
|
|
10
|
+
"system_name": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "System name or platform identifier."
|
|
13
|
+
},
|
|
14
|
+
"repository_root": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Normalized repository root directory path."
|
|
17
|
+
},
|
|
18
|
+
"description": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Overview description of the system or bounded context."
|
|
21
|
+
},
|
|
22
|
+
"knowledge_units_count": {
|
|
23
|
+
"type": "integer",
|
|
24
|
+
"description": "Total number of active knowledge units indexed."
|
|
25
|
+
},
|
|
26
|
+
"last_updated": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Date string when the catalog was last updated (YYYY-MM-DD)."
|
|
29
|
+
},
|
|
30
|
+
"knowledge_units": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"description": "Inventory of knowledge units grouped by domain.",
|
|
33
|
+
"additionalProperties": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"required": [
|
|
38
|
+
"id",
|
|
39
|
+
"file",
|
|
40
|
+
"title"
|
|
41
|
+
],
|
|
42
|
+
"properties": {
|
|
43
|
+
"id": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"file": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"title": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"purpose": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"domains": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"description": "Federated domain catalog references (Namespaced Central Hub).",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"required": [
|
|
65
|
+
"id",
|
|
66
|
+
"catalog"
|
|
67
|
+
],
|
|
68
|
+
"properties": {
|
|
69
|
+
"id": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"name": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"description": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"catalog": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"applies_to": {
|
|
82
|
+
"oneOf": [
|
|
83
|
+
{
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "string"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "AKB Knowledge Unit Specification",
|
|
4
|
+
"description": "Schema defining atomic YAML knowledge units (standards, rules, and architecture decisions) for AI coding assistants.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"id",
|
|
8
|
+
"type",
|
|
9
|
+
"title",
|
|
10
|
+
"domain"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Unique immutable identifier for this knowledge unit (e.g. ARCH-SYS-001, DEV-TS-001, ADR-001).",
|
|
16
|
+
"pattern": "^[A-Za-z0-9]+([_-][A-Za-z0-9]+)*$"
|
|
17
|
+
},
|
|
18
|
+
"type": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Category type of the knowledge unit.",
|
|
21
|
+
"enum": [
|
|
22
|
+
"architecture_standard",
|
|
23
|
+
"development_standard",
|
|
24
|
+
"product_rule",
|
|
25
|
+
"security_standard",
|
|
26
|
+
"architecture_decision"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"title": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Human-readable title summarizing the unit directive."
|
|
32
|
+
},
|
|
33
|
+
"domain": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "Bounded context or architectural domain (e.g. architecture, development, product, decisions, billing, core)."
|
|
36
|
+
},
|
|
37
|
+
"status": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "Current lifecycle status.",
|
|
40
|
+
"enum": [
|
|
41
|
+
"approved",
|
|
42
|
+
"draft",
|
|
43
|
+
"deprecated",
|
|
44
|
+
"accepted",
|
|
45
|
+
"proposed",
|
|
46
|
+
"locked"
|
|
47
|
+
],
|
|
48
|
+
"default": "approved"
|
|
49
|
+
},
|
|
50
|
+
"version": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "Semantic version of this knowledge unit specification.",
|
|
53
|
+
"default": "1.0.0"
|
|
54
|
+
},
|
|
55
|
+
"authority": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"description": "Organizational authority and confidence level.",
|
|
58
|
+
"properties": {
|
|
59
|
+
"level": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"enum": [
|
|
62
|
+
"official",
|
|
63
|
+
"guideline",
|
|
64
|
+
"experimental",
|
|
65
|
+
"human_curated"
|
|
66
|
+
],
|
|
67
|
+
"default": "official"
|
|
68
|
+
},
|
|
69
|
+
"confidence": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"enum": [
|
|
72
|
+
"high",
|
|
73
|
+
"medium",
|
|
74
|
+
"low",
|
|
75
|
+
"verified"
|
|
76
|
+
],
|
|
77
|
+
"default": "high"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"owner": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"description": "Ownership team or persona.",
|
|
84
|
+
"properties": {
|
|
85
|
+
"team": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "Team name responsible for enforcing this rule."
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"applies_to": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"description": "List of file globs, directory paths, or component tags to which this invariant strictly applies.",
|
|
94
|
+
"items": {
|
|
95
|
+
"type": "string"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"rule": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "Primary normative architectural rule or directive enforced by this unit."
|
|
101
|
+
},
|
|
102
|
+
"decision": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"description": "Architectural decision statement (for type: architecture_decision)."
|
|
105
|
+
},
|
|
106
|
+
"context": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"description": "Problem context and historical motivation."
|
|
109
|
+
},
|
|
110
|
+
"do": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"description": "Prescriptive action items and best practices that developers and AI agents must follow.",
|
|
113
|
+
"items": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"dont": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"description": "Strict prohibitions and anti-patterns that must not be introduced.",
|
|
120
|
+
"items": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"reason": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"description": "Architectural rationale explaining why this invariant is necessary."
|
|
127
|
+
},
|
|
128
|
+
"related_items": {
|
|
129
|
+
"type": "array",
|
|
130
|
+
"description": "Cross-reference IDs to related Knowledge Units (e.g. ARCH-SYS-001).",
|
|
131
|
+
"items": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"skill_file": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"description": "Relative path to the original human-curated SKILL.md file if imported from an agent skill."
|
|
138
|
+
},
|
|
139
|
+
"reference_files": {
|
|
140
|
+
"type": "array",
|
|
141
|
+
"description": "Discovered companion reference documentation files (e.g. references/*.md) supporting this skill.",
|
|
142
|
+
"items": {
|
|
143
|
+
"type": "string"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"workflow_gates": {
|
|
147
|
+
"type": "array",
|
|
148
|
+
"description": "Ordered procedural implementation gates or verification steps extracted from the skill.",
|
|
149
|
+
"items": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|