agjan 0.0.21 → 0.0.23

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.
Files changed (63) hide show
  1. package/README.md +6 -3
  2. package/dist/adapters/claude-code.js +3 -3
  3. package/dist/baseline.js +2 -2
  4. package/dist/cli.js +22 -4
  5. package/dist/commands/check.js +91 -7
  6. package/dist/commands/discover.js +54 -0
  7. package/dist/commands/fix.js +8 -3
  8. package/dist/commands/gates.js +48 -28
  9. package/dist/commands/import.js +73 -0
  10. package/dist/commands/log.js +3 -2
  11. package/dist/commands/map.js +6 -1
  12. package/dist/commands/new.js +7 -3
  13. package/dist/commands/pr-summary.js +20 -5
  14. package/dist/commands/progress.js +1 -1
  15. package/dist/commands/report.js +1 -1
  16. package/dist/commands/review.js +21 -9
  17. package/dist/commands/status.js +118 -20
  18. package/dist/commands/summary.js +2 -1
  19. package/dist/commands/team.js +45 -0
  20. package/dist/commands/test.js +37 -0
  21. package/dist/config.js +8 -0
  22. package/dist/discovery.js +42 -0
  23. package/dist/feature.js +14 -7
  24. package/dist/imports.js +197 -0
  25. package/dist/plan.js +1 -1
  26. package/dist/progress-view.js +46 -11
  27. package/dist/qa.js +35 -7
  28. package/dist/readiness.js +33 -0
  29. package/dist/review-policy.js +10 -4
  30. package/dist/review.js +68 -17
  31. package/dist/schema.js +4 -0
  32. package/dist/story.js +15 -8
  33. package/dist/teams.js +127 -0
  34. package/dist/test-run.js +101 -0
  35. package/dist/types.js +0 -4
  36. package/dist/workflow.js +83 -0
  37. package/docs/guide.md +179 -20
  38. package/kit/domains/btp/domain.json +1 -0
  39. package/kit/hooks/guard.mjs +134 -6
  40. package/kit/skills/agjan-ask/SKILL.md +80 -0
  41. package/kit/skills/agjan-ask/references/sources.md +45 -0
  42. package/kit/skills/agjan-build/SKILL.md +6 -5
  43. package/kit/skills/agjan-design/SKILL.md +2 -2
  44. package/kit/skills/agjan-discover/SKILL.md +87 -0
  45. package/kit/skills/agjan-fix/SKILL.md +10 -6
  46. package/kit/skills/agjan-map/SKILL.md +12 -8
  47. package/kit/skills/agjan-spec/SKILL.md +14 -7
  48. package/kit/skills/agjan-verify/SKILL.md +27 -17
  49. package/kit/skills/btp-architect/SKILL.md +2 -2
  50. package/kit/skills/btp-architect/references/security.md +1 -1
  51. package/kit/skills/cap-developer/SKILL.md +2 -2
  52. package/kit/skills/cap-developer/references/project-setup.md +1 -1
  53. package/kit/skills/cap-developer/references/validation-security.md +1 -1
  54. package/kit/skills/fiori-developer/SKILL.md +2 -2
  55. package/kit/skills/qa-tester/SKILL.md +4 -2
  56. package/kit/templates/agents-block.md +13 -5
  57. package/kit/templates/progress.html +2 -2
  58. package/kit/templates/proposal.md +22 -0
  59. package/package.json +1 -1
  60. package/schemas/approvals.schema.json +9 -1
  61. package/schemas/config.schema.json +33 -1
  62. package/schemas/log.schema.json +1 -1
  63. package/schemas/reviews.schema.json +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agjan",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Agentic engineering harness for AI coding agents: role agents, human approval gates, independent review and CI-enforced checks. SAP BTP first.",
5
5
  "keywords": [
6
6
  "agentic-engineering",
@@ -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",
@@ -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": {
@@ -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/agjan/<feature>/log.jsonl (design 12.1). The script sets at_utc.",
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" },