agjan 0.0.22 → 0.0.25
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 +6 -4
- package/dist/adapters/claude-code.js +3 -3
- package/dist/baseline.js +2 -2
- package/dist/browser.js +25 -8
- package/dist/cli.js +22 -4
- package/dist/commands/check.js +91 -7
- package/dist/commands/discover.js +54 -0
- package/dist/commands/fix.js +8 -3
- package/dist/commands/gates.js +48 -28
- package/dist/commands/import.js +73 -0
- package/dist/commands/log.js +3 -2
- package/dist/commands/map.js +6 -1
- package/dist/commands/new.js +7 -3
- package/dist/commands/pr-summary.js +20 -5
- package/dist/commands/progress.js +1 -1
- package/dist/commands/report.js +1 -1
- package/dist/commands/review.js +21 -9
- package/dist/commands/setup.js +51 -1
- package/dist/commands/status.js +118 -20
- package/dist/commands/summary.js +2 -1
- package/dist/commands/team.js +45 -0
- package/dist/commands/test.js +37 -0
- package/dist/config.js +9 -1
- package/dist/defaults-file.js +33 -0
- package/dist/discovery.js +42 -0
- package/dist/feature.js +14 -7
- package/dist/imports.js +197 -0
- package/dist/plan.js +1 -1
- package/dist/progress-view.js +46 -11
- package/dist/qa.js +27 -3
- package/dist/readiness.js +33 -0
- package/dist/review-policy.js +2 -1
- package/dist/review.js +68 -17
- package/dist/schema.js +4 -0
- package/dist/story.js +15 -8
- package/dist/teams.js +127 -0
- package/dist/test-run.js +101 -0
- package/dist/types.js +0 -4
- package/dist/workflow.js +83 -0
- package/docs/guide.md +166 -24
- package/kit/domains/btp/domain.json +1 -0
- package/kit/hooks/guard.mjs +134 -6
- package/kit/skills/agjan-ask/SKILL.md +20 -9
- package/kit/skills/agjan-build/SKILL.md +6 -5
- package/kit/skills/agjan-design/SKILL.md +2 -2
- package/kit/skills/agjan-discover/SKILL.md +87 -0
- package/kit/skills/agjan-fix/SKILL.md +10 -6
- package/kit/skills/agjan-map/SKILL.md +12 -8
- package/kit/skills/agjan-spec/SKILL.md +14 -7
- package/kit/skills/agjan-verify/SKILL.md +27 -17
- package/kit/skills/btp-architect/SKILL.md +1 -1
- package/kit/skills/btp-architect/references/security.md +1 -1
- package/kit/skills/cap-developer/SKILL.md +1 -1
- package/kit/skills/cap-developer/references/project-setup.md +1 -1
- package/kit/skills/cap-developer/references/validation-security.md +1 -1
- package/kit/skills/fiori-developer/SKILL.md +1 -1
- package/kit/skills/qa-tester/SKILL.md +4 -2
- package/kit/templates/agents-block.md +13 -6
- package/kit/templates/progress.html +2 -2
- package/kit/templates/proposal.md +22 -0
- package/package.json +1 -1
- package/schemas/approvals.schema.json +9 -1
- package/schemas/config.defaults.json +66 -0
- package/schemas/config.schema.json +33 -1
- package/schemas/log.schema.json +1 -1
- package/schemas/reviews.schema.json +2 -2
|
@@ -32,7 +32,14 @@
|
|
|
32
32
|
"key": { "type": "string", "pattern": "^[A-Z][A-Z0-9]{1,5}$" },
|
|
33
33
|
"kit": { "type": "string" },
|
|
34
34
|
"created_at_utc": { "$ref": "#/$defs/utc" },
|
|
35
|
-
"kind": { "enum": ["fix", "map"] }
|
|
35
|
+
"kind": { "enum": ["fix", "map", "discovery"] },
|
|
36
|
+
"team": {
|
|
37
|
+
"description": "The team the unit started with, and the hash of its definition then (decision 92).",
|
|
38
|
+
"type": "object",
|
|
39
|
+
"required": ["name", "hash"],
|
|
40
|
+
"properties": { "name": { "type": "string" }, "hash": { "$ref": "#/$defs/hash" } },
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
|
36
43
|
},
|
|
37
44
|
"additionalProperties": false
|
|
38
45
|
},
|
|
@@ -41,6 +48,7 @@
|
|
|
41
48
|
"properties": {
|
|
42
49
|
"spec": { "$ref": "#/$defs/stamp" },
|
|
43
50
|
"design": { "$ref": "#/$defs/stamp" },
|
|
51
|
+
"proposal": { "$ref": "#/$defs/stamp", "description": "A discovery's recommendation, approved by a person (agjan approve proposal)." },
|
|
44
52
|
"verify": {
|
|
45
53
|
"description": "The human's acceptance of the verified feature (agjan approve verify): the verify review and the tree hash it saw, and the manual ACs the human confirmed.",
|
|
46
54
|
"type": "object",
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "agjan's defaults for agjan.config.json. Domains add their own on top (kit/domains/<id>/domain.json: per area implicit, tests, verify, lint; application, risk_paths and protected are appended), and the project's file overrides both. Objects merge, arrays replace. Review steps without a tier use balanced.",
|
|
3
|
+
"format": 1,
|
|
4
|
+
"defaults": {
|
|
5
|
+
"domains": [
|
|
6
|
+
"btp"
|
|
7
|
+
],
|
|
8
|
+
"hosts": [
|
|
9
|
+
"claude-code"
|
|
10
|
+
],
|
|
11
|
+
"language": "en",
|
|
12
|
+
"git": {
|
|
13
|
+
"base": null,
|
|
14
|
+
"branches": "new"
|
|
15
|
+
},
|
|
16
|
+
"scope": {
|
|
17
|
+
"implicit": {}
|
|
18
|
+
},
|
|
19
|
+
"risk_paths": [],
|
|
20
|
+
"application": [],
|
|
21
|
+
"tests": {},
|
|
22
|
+
"fix": {
|
|
23
|
+
"max_total": 80,
|
|
24
|
+
"max_per_file": 50,
|
|
25
|
+
"protected": [],
|
|
26
|
+
"ignored": [
|
|
27
|
+
"package-lock.json",
|
|
28
|
+
"**/package-lock.json",
|
|
29
|
+
"gen/**",
|
|
30
|
+
"dist/**"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"verify": {},
|
|
34
|
+
"lint": {},
|
|
35
|
+
"build": {
|
|
36
|
+
"fix_attempts": 3
|
|
37
|
+
},
|
|
38
|
+
"review": {
|
|
39
|
+
"build": "area",
|
|
40
|
+
"rounds": 3,
|
|
41
|
+
"qa": "on",
|
|
42
|
+
"tiers": {
|
|
43
|
+
"spec": "balanced",
|
|
44
|
+
"design:light": "balanced",
|
|
45
|
+
"design": "deep",
|
|
46
|
+
"build": "balanced",
|
|
47
|
+
"verify": "deep",
|
|
48
|
+
"fix": "balanced",
|
|
49
|
+
"map": "balanced",
|
|
50
|
+
"proposal": "deep"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"test_evidence": "run",
|
|
54
|
+
"ci": {
|
|
55
|
+
"policy_changes": "warn",
|
|
56
|
+
"untracked_changes": "fail"
|
|
57
|
+
},
|
|
58
|
+
"limits": {
|
|
59
|
+
"spec_kb": 12,
|
|
60
|
+
"design_kb": 20
|
|
61
|
+
},
|
|
62
|
+
"agent": {
|
|
63
|
+
"script_edits": "deny"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"git": {
|
|
14
14
|
"type": "object",
|
|
15
15
|
"properties": {
|
|
16
|
-
"base": { "type": ["string", "null"] }
|
|
16
|
+
"base": { "type": ["string", "null"] },
|
|
17
|
+
"branches": { "enum": ["new", "ask"] }
|
|
17
18
|
},
|
|
18
19
|
"additionalProperties": false
|
|
19
20
|
},
|
|
@@ -24,6 +25,37 @@
|
|
|
24
25
|
},
|
|
25
26
|
"tests": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } },
|
|
26
27
|
"risk_paths": { "type": "array", "items": { "type": "string" } },
|
|
28
|
+
"test_evidence": { "enum": ["run", "names"] },
|
|
29
|
+
"teams": {
|
|
30
|
+
"description": "The project's own teams, next to the built-in sap-delivery, sap-maintenance and sap-discovery (decision 92).",
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"required": ["description", "workflows", "personas"],
|
|
35
|
+
"properties": {
|
|
36
|
+
"description": { "type": "string" },
|
|
37
|
+
"workflows": { "type": "array", "items": { "enum": ["feature", "fix", "map", "discovery"] }, "minItems": 1 },
|
|
38
|
+
"personas": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"propertyNames": { "enum": ["implementer", "reviewer", "tester", "analyst"] },
|
|
41
|
+
"additionalProperties": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"required": ["skills"],
|
|
44
|
+
"properties": { "skills": { "type": "array", "items": { "type": "string" } }, "instructions": { "type": "string" } },
|
|
45
|
+
"additionalProperties": false
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"team": {
|
|
53
|
+
"description": "The default team per workflow.",
|
|
54
|
+
"type": "object",
|
|
55
|
+
"propertyNames": { "enum": ["feature", "fix", "map", "discovery"] },
|
|
56
|
+
"additionalProperties": { "type": "string" }
|
|
57
|
+
},
|
|
58
|
+
"application": { "type": "array", "items": { "type": "string" } },
|
|
27
59
|
"fix": {
|
|
28
60
|
"type": "object",
|
|
29
61
|
"properties": {
|
package/schemas/log.schema.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://github.com/agjan-dev/agjan/schemas/log.schema.json",
|
|
4
4
|
"title": "agjan log.jsonl line",
|
|
5
|
-
"description": "One event per line in docs
|
|
5
|
+
"description": "One event per line in agjan-docs/<feature>/log.jsonl (design 12.1). The script sets at_utc.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": ["at_utc", "event"],
|
|
8
8
|
"properties": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"additionalProperties": false,
|
|
20
20
|
"properties": {
|
|
21
21
|
"id": { "type": "string", "pattern": "^[A-Z][A-Z0-9]{1,5}-R[1-9][0-9]*$" },
|
|
22
|
-
"step": { "type": "string", "pattern": "^(spec|design|design:light|verify|qa|fix|map|build:.+)$" },
|
|
22
|
+
"step": { "type": "string", "pattern": "^(spec|design|design:light|verify|qa|fix|map|proposal|build:.+)$" },
|
|
23
23
|
"round": { "type": "integer", "minimum": 1 },
|
|
24
24
|
"at_utc": { "type": "string" },
|
|
25
25
|
"reviewer": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"context": { "type": "string" },
|
|
36
36
|
"documents": {
|
|
37
37
|
"type": "object",
|
|
38
|
-
"properties": { "spec": { "$ref": "#/$defs/hash" }, "design": { "$ref": "#/$defs/hash" } },
|
|
38
|
+
"properties": { "spec": { "$ref": "#/$defs/hash" }, "design": { "$ref": "#/$defs/hash" }, "proposal": { "$ref": "#/$defs/hash" } },
|
|
39
39
|
"additionalProperties": false
|
|
40
40
|
},
|
|
41
41
|
"inputs_hash": { "$ref": "#/$defs/hash" },
|