agjan 0.0.0-stage → 0.0.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/LICENSE +201 -0
- package/NOTICE +11 -0
- package/README.md +105 -2
- package/bin/agjan.mjs +12 -0
- package/docs/brand/agjan-icon.svg +14 -0
- package/docs/brand/agjan-logo-dark.svg +17 -0
- package/docs/brand/agjan-logo-light.svg +17 -0
- package/docs/guide.md +232 -0
- package/kit/domains/btp/domain.json +27 -0
- package/kit/hooks/guard.mjs +61 -0
- package/kit/mcp/servers.json +5 -0
- package/kit/skills/agjan-build/SKILL.md +61 -0
- package/kit/skills/agjan-design/SKILL.md +95 -0
- package/kit/skills/agjan-fix/SKILL.md +55 -0
- package/kit/skills/agjan-map/SKILL.md +51 -0
- package/kit/skills/agjan-spec/SKILL.md +111 -0
- package/kit/skills/agjan-verify/SKILL.md +60 -0
- package/kit/skills/btp-architect/SKILL.md +51 -0
- package/kit/skills/btp-architect/references/deployment.md +72 -0
- package/kit/skills/btp-architect/references/security.md +54 -0
- package/kit/skills/cap-developer/SKILL.md +49 -0
- package/kit/skills/cap-developer/references/handlers.md +47 -0
- package/kit/skills/cap-developer/references/modeling.md +52 -0
- package/kit/skills/cap-developer/references/services.md +53 -0
- package/kit/skills/cap-developer/references/testing.md +39 -0
- package/kit/skills/cap-developer/references/validation-security.md +49 -0
- package/kit/skills/fiori-developer/SKILL.md +64 -0
- package/kit/skills/fiori-developer/references/elements.md +77 -0
- package/kit/skills/fiori-developer/references/freestyle-ts.md +45 -0
- package/kit/skills/fiori-developer/references/testing.md +32 -0
- package/kit/skills/fiori-developer/references/ui5-basics.md +52 -0
- package/kit/skills/solution-reviewer/SKILL.md +51 -0
- package/kit/templates/agents-block.md +20 -0
- package/kit/templates/agjan-ci.yml +40 -0
- package/kit/templates/design.md +17 -0
- package/kit/templates/project.md +28 -0
- package/kit/templates/spec.md +33 -0
- package/kit/templates/tasks.md +13 -0
- package/package.json +50 -4
- package/schemas/approvals.schema.json +93 -0
- package/schemas/config.schema.json +79 -0
- package/schemas/log.schema.json +30 -0
- package/schemas/reviews.schema.json +68 -0
- package/schemas/tasks.schema.json +26 -0
- package/src/adapters/claude-code.mjs +95 -0
- package/src/adapters/copilot.mjs +88 -0
- package/src/baseline.mjs +66 -0
- package/src/cli.mjs +133 -0
- package/src/commands/check.mjs +363 -0
- package/src/commands/fix.mjs +116 -0
- package/src/commands/gates.mjs +264 -0
- package/src/commands/log.mjs +53 -0
- package/src/commands/map.mjs +47 -0
- package/src/commands/new.mjs +53 -0
- package/src/commands/pr-summary.mjs +134 -0
- package/src/commands/report.mjs +110 -0
- package/src/commands/review.mjs +49 -0
- package/src/commands/setup.mjs +269 -0
- package/src/commands/status.mjs +163 -0
- package/src/config.mjs +98 -0
- package/src/context.mjs +58 -0
- package/src/documents.mjs +188 -0
- package/src/errors.mjs +16 -0
- package/src/feature.mjs +214 -0
- package/src/fix.mjs +108 -0
- package/src/git.mjs +66 -0
- package/src/hash.mjs +33 -0
- package/src/hook.mjs +48 -0
- package/src/json-file.mjs +24 -0
- package/src/log.mjs +37 -0
- package/src/managed.mjs +178 -0
- package/src/mcp-config.mjs +83 -0
- package/src/mcp.mjs +142 -0
- package/src/plan.mjs +41 -0
- package/src/progress.mjs +85 -0
- package/src/review-policy.mjs +49 -0
- package/src/review.mjs +320 -0
- package/src/scope.mjs +30 -0
- package/src/terminal.mjs +98 -0
- package/src/test-results.mjs +111 -0
- package/src/tests-map.mjs +29 -0
- package/src/ui.mjs +110 -0
- package/src/usage.mjs +118 -0
- package/src/validate.mjs +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
agjan
|
|
2
|
+
Copyright 2026 Abdulbasit Gulsen and the agjan contributors
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0.
|
|
5
|
+
See the LICENSE file for the full license text.
|
|
6
|
+
|
|
7
|
+
agjan is not affiliated with, sponsored by or endorsed by SAP SE.
|
|
8
|
+
SAP, SAP BTP, SAP Fiori and SAPUI5 are trademarks or registered trademarks
|
|
9
|
+
of SAP SE in Germany and other countries.
|
|
10
|
+
|
|
11
|
+
Third-party sources used to write skill content are listed in SOURCES.md.
|
package/README.md
CHANGED
|
@@ -1,3 +1,106 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/npm/agjan/docs/brand/agjan-logo-dark.svg">
|
|
4
|
+
<img alt="agjan" src="https://cdn.jsdelivr.net/npm/agjan/docs/brand/agjan-logo-light.svg" width="320">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
2
7
|
|
|
3
|
-
|
|
8
|
+
# agjan
|
|
9
|
+
|
|
10
|
+
Spec-driven workflow kit for AI coding agents, with human approval gates and a
|
|
11
|
+
read-only reviewer at every step.
|
|
12
|
+
|
|
13
|
+
> **Status: closed beta (0.x).** The source repository is not public yet; it will open
|
|
14
|
+
> soon. Until then, links to the repository and to other documents do not work on npm;
|
|
15
|
+
> the user guide ships in the package (`node_modules/agjan/docs/guide.md` after
|
|
16
|
+
> installing). The workflow works end to end with Claude Code and the GitHub Copilot
|
|
17
|
+
> CLI; VS Code and the role skills' conventions are still being completed. Formats may
|
|
18
|
+
> change between 0.x versions.
|
|
19
|
+
|
|
20
|
+
## What it does
|
|
21
|
+
|
|
22
|
+
agjan guides an AI coding agent through **Spec, Design, Build and Verify**:
|
|
23
|
+
|
|
24
|
+
- **You hold the gates.** You approve the spec and the design in a terminal and merge the
|
|
25
|
+
pull request. Approvals are stamped by a script with a UTC time and a content hash; if
|
|
26
|
+
an approved document changes, the approval is stale.
|
|
27
|
+
- **An isolated reviewer checks every stage.** It runs as a separate agent with read
|
|
28
|
+
access and two agjan tools only, and records its own findings. Blockers stop the gate.
|
|
29
|
+
- **Scripts enforce the rules, not the model.** `agjan check` verifies stamps, scope
|
|
30
|
+
(only the approved task paths change), acceptance criteria covered by passing tests,
|
|
31
|
+
and fresh reviews, in a pre-commit hook and in CI.
|
|
32
|
+
- **Cost is measurable.** `agjan report` shows time per step, waiting time at gates, and
|
|
33
|
+
the actual models and tokens from the host's own session records.
|
|
34
|
+
|
|
35
|
+
The first domain is SAP BTP development: CAP Node.js, SAP Fiori elements and freestyle
|
|
36
|
+
UI5 in TypeScript, and BTP architecture.
|
|
37
|
+
|
|
38
|
+
## Why agjan
|
|
39
|
+
|
|
40
|
+
agjan is inspired by public spec-driven development tools and by the
|
|
41
|
+
[agent-marketplace](https://github.com/agentrof/agent-marketplace) project. I started it
|
|
42
|
+
to meet the requirements of SAP development projects. The other tools are mostly
|
|
43
|
+
generic: their skills cover many unrelated areas, or their process is heavier than a
|
|
44
|
+
project needs. agjan is built for SAP environments, with only as much process as the
|
|
45
|
+
gates and checks require. It starts with role skills for CAP, Fiori and BTP and is meant
|
|
46
|
+
to grow with further technical and functional SAP skills.
|
|
47
|
+
|
|
48
|
+
## Quick start
|
|
49
|
+
|
|
50
|
+
Requirements: Node.js 22 or later, git, and Claude Code and/or the GitHub Copilot CLI.
|
|
51
|
+
Linux, macOS or Windows.
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
npm install --save-dev agjan
|
|
55
|
+
npx agjan init --hosts claude-code,copilot
|
|
56
|
+
npx agjan doctor
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Open the project in your agent host, trust the folder, and start a feature:
|
|
60
|
+
|
|
61
|
+
```text
|
|
62
|
+
/agjan-spec Clerks want to filter the orders list by status.
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
When the agent asks for approval, review the files and approve in your terminal:
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
npx agjan status
|
|
69
|
+
npx agjan approve spec design
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Continue with `/agjan-build` and `/agjan-verify`. Small changes: `/agjan-fix`. An
|
|
73
|
+
existing application: `/agjan-map` once.
|
|
74
|
+
|
|
75
|
+
## Documentation
|
|
76
|
+
|
|
77
|
+
- [User guide](docs/guide.md): setup, workflow, commands, configuration, hosts, CI,
|
|
78
|
+
troubleshooting
|
|
79
|
+
- [Design](docs/design.md): every decision and its reason
|
|
80
|
+
- [Host experiments](docs/host-experiments.md): what was verified on each host, and how
|
|
81
|
+
- [End-to-end run](docs/e2e-run.md): a guided trial on a sample CAP and Fiori app
|
|
82
|
+
|
|
83
|
+
## Approvals are a guardrail, not a proof
|
|
84
|
+
|
|
85
|
+
Approval commands are meant for humans in a terminal. agjan makes it hard for an agent
|
|
86
|
+
to run them (instructions, deny rules and hooks, and a confirmation read from the
|
|
87
|
+
terminal), but a model with unrestricted shell access could in principle get around
|
|
88
|
+
that. The trust boundary is the reviewed merge of the pull request; branch protection
|
|
89
|
+
with the required `agjan-check` status and CODEOWNERS are the recommended hardening.
|
|
90
|
+
See section 9.4 of the design.
|
|
91
|
+
|
|
92
|
+
## Contributing
|
|
93
|
+
|
|
94
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md). Security issues: see [SECURITY.md](SECURITY.md).
|
|
95
|
+
|
|
96
|
+
## License
|
|
97
|
+
|
|
98
|
+
[Apache-2.0](LICENSE). See [NOTICE](NOTICE).
|
|
99
|
+
|
|
100
|
+
## Trademarks
|
|
101
|
+
|
|
102
|
+
agjan is an independent open-source project. It is not affiliated with, sponsored by or
|
|
103
|
+
endorsed by SAP SE. SAP, SAP BTP, SAP Fiori and SAPUI5 are trademarks or registered
|
|
104
|
+
trademarks of SAP SE in Germany and other countries. GitHub Copilot is a trademark of
|
|
105
|
+
GitHub, Inc.; Claude is a trademark of Anthropic, PBC. All other trademarks are the
|
|
106
|
+
property of their respective owners.
|
package/bin/agjan.mjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { main } from '../src/cli.mjs';
|
|
3
|
+
|
|
4
|
+
// A reader that stops early (`agjan status | head`) is not an error.
|
|
5
|
+
for (const stream of [process.stdout, process.stderr]) {
|
|
6
|
+
stream.on('error', (error) => {
|
|
7
|
+
if (error.code === 'EPIPE') process.exit(process.exitCode ?? 0);
|
|
8
|
+
throw error;
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
process.exitCode = await main(process.argv.slice(2));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
|
2
|
+
<title>agjan</title>
|
|
3
|
+
<rect width="512" height="512" rx="112.64" fill="#101C2C"/>
|
|
4
|
+
<g transform="translate(76.8 295.65) scale(1.59)">
|
|
5
|
+
<path d="M91.7 -45.01 A42 42 0 0 1 33.47 -11.39" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
6
|
+
<path d="M24.83 -16.38 A42 42 0 0 1 24.83 -83.62" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
7
|
+
<path d="M33.47 -88.61 A42 42 0 0 1 91.7 -54.99" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
8
|
+
<path d="M92 -100 V0" fill="none" stroke="#2EC4A0" stroke-width="16"/>
|
|
9
|
+
<path d="M217.7 -45.01 A42 42 0 0 1 159.47 -11.39" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
10
|
+
<path d="M150.83 -16.38 A42 42 0 0 1 150.83 -83.62" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
11
|
+
<path d="M159.47 -88.61 A42 42 0 0 1 217.7 -54.99" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
12
|
+
<path d="M218 -100 V16 A26 26 0 0 1 192 42 H184" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-14 -153.36 576 217.36" width="576" height="217.36">
|
|
2
|
+
<title>agjan</title>
|
|
3
|
+
<path d="M91.7 -45.01 A42 42 0 0 1 33.47 -11.39" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
4
|
+
<path d="M24.83 -16.38 A42 42 0 0 1 24.83 -83.62" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
5
|
+
<path d="M33.47 -88.61 A42 42 0 0 1 91.7 -54.99" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
6
|
+
<path d="M92 -100 V0" fill="none" stroke="#2EC4A0" stroke-width="16"/>
|
|
7
|
+
<path d="M217.7 -45.01 A42 42 0 0 1 159.47 -11.39" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
8
|
+
<path d="M150.83 -16.38 A42 42 0 0 1 150.83 -83.62" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
9
|
+
<path d="M159.47 -88.61 A42 42 0 0 1 217.7 -54.99" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
10
|
+
<path d="M218 -100 V16 A26 26 0 0 1 192 42 H184" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
11
|
+
<path d="M284 -100 V16 A26 26 0 0 1 258 42 H250" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
12
|
+
<circle cx="284" cy="-126.88" r="12.48" fill="#2EC4A0"/>
|
|
13
|
+
<circle cx="372" cy="-50" r="42" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
14
|
+
<path d="M414 -100 V0" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
15
|
+
<path d="M456 -100 V0" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
16
|
+
<path d="M456 -50 A42 42 0 0 1 540 -50 V0" fill="none" stroke="#F2F5F7" stroke-width="16"/>
|
|
17
|
+
</svg>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-14 -153.36 576 217.36" width="576" height="217.36">
|
|
2
|
+
<title>agjan</title>
|
|
3
|
+
<path d="M91.7 -45.01 A42 42 0 0 1 33.47 -11.39" fill="none" stroke="#101C2C" stroke-width="16"/>
|
|
4
|
+
<path d="M24.83 -16.38 A42 42 0 0 1 24.83 -83.62" fill="none" stroke="#101C2C" stroke-width="16"/>
|
|
5
|
+
<path d="M33.47 -88.61 A42 42 0 0 1 91.7 -54.99" fill="none" stroke="#101C2C" stroke-width="16"/>
|
|
6
|
+
<path d="M92 -100 V0" fill="none" stroke="#0E9F80" stroke-width="16"/>
|
|
7
|
+
<path d="M217.7 -45.01 A42 42 0 0 1 159.47 -11.39" fill="none" stroke="#101C2C" stroke-width="16"/>
|
|
8
|
+
<path d="M150.83 -16.38 A42 42 0 0 1 150.83 -83.62" fill="none" stroke="#101C2C" stroke-width="16"/>
|
|
9
|
+
<path d="M159.47 -88.61 A42 42 0 0 1 217.7 -54.99" fill="none" stroke="#101C2C" stroke-width="16"/>
|
|
10
|
+
<path d="M218 -100 V16 A26 26 0 0 1 192 42 H184" fill="none" stroke="#101C2C" stroke-width="16"/>
|
|
11
|
+
<path d="M284 -100 V16 A26 26 0 0 1 258 42 H250" fill="none" stroke="#101C2C" stroke-width="16"/>
|
|
12
|
+
<circle cx="284" cy="-126.88" r="12.48" fill="#0E9F80"/>
|
|
13
|
+
<circle cx="372" cy="-50" r="42" fill="none" stroke="#101C2C" stroke-width="16"/>
|
|
14
|
+
<path d="M414 -100 V0" fill="none" stroke="#101C2C" stroke-width="16"/>
|
|
15
|
+
<path d="M456 -100 V0" fill="none" stroke="#101C2C" stroke-width="16"/>
|
|
16
|
+
<path d="M456 -50 A42 42 0 0 1 540 -50 V0" fill="none" stroke="#101C2C" stroke-width="16"/>
|
|
17
|
+
</svg>
|
package/docs/guide.md
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# agjan user guide
|
|
2
|
+
|
|
3
|
+
How to set up agjan in a project and work with it. The reasons behind every rule are
|
|
4
|
+
in the [design](design.md); this guide is about using it.
|
|
5
|
+
|
|
6
|
+
- [Concepts](#concepts)
|
|
7
|
+
- [Set up a project](#set-up-a-project)
|
|
8
|
+
- [The workflow](#the-workflow)
|
|
9
|
+
- [Small changes and existing applications](#small-changes-and-existing-applications)
|
|
10
|
+
- [Commands](#commands)
|
|
11
|
+
- [Configuration](#configuration)
|
|
12
|
+
- [Hosts](#hosts)
|
|
13
|
+
- [CI and repository settings](#ci-and-repository-settings)
|
|
14
|
+
- [Upgrading](#upgrading)
|
|
15
|
+
- [Troubleshooting](#troubleshooting)
|
|
16
|
+
|
|
17
|
+
## Concepts
|
|
18
|
+
|
|
19
|
+
- **Feature**: one unit of work in `docs/agjan/<slug>/`, with a short key such as
|
|
20
|
+
`ORDF`. Its acceptance criteria are `ORDF-AC1`, `ORDF-AC2`, ...; tests carry these ids
|
|
21
|
+
in their names.
|
|
22
|
+
- **Stages**: Spec (what and why), Design (how, as tasks with file paths), Build (one
|
|
23
|
+
commit per task), Verify (full checks and a final review).
|
|
24
|
+
- **Gates**: you approve the spec and the design in a terminal (`agjan approve`), and you
|
|
25
|
+
merge the pull request. For light changes, spec and design are approved together.
|
|
26
|
+
- **Reviewer**: an isolated, read-only agent (`agjan-reviewer`, `agjan-reviewer-deep`)
|
|
27
|
+
checks every stage and records its own findings. Blockers stop the gate.
|
|
28
|
+
- **Scripts, not the model**: hashes, approval stamps, scope checks and AC-to-test
|
|
29
|
+
mapping are done by `agjan`. If an approved document changes, its approval is stale.
|
|
30
|
+
|
|
31
|
+
## Set up a project
|
|
32
|
+
|
|
33
|
+
Requirements: Node.js 22 or later, git, and Claude Code and/or GitHub Copilot.
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
npm install --save-dev agjan
|
|
37
|
+
npx agjan init --hosts claude-code,copilot # or just claude-code (the default)
|
|
38
|
+
npx agjan doctor
|
|
39
|
+
git add -A && git commit -m "chore: set up agjan"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
`init` writes `agjan.config.json`, the skills (`.claude/skills/`), the reviewer agents,
|
|
43
|
+
the guardrails against agents running approvals, the MCP configuration, a block in
|
|
44
|
+
`AGENTS.md` and `CLAUDE.md`, a pre-commit hook and a CI workflow. Your own content in
|
|
45
|
+
those files is kept; agjan only manages its marked blocks and entries.
|
|
46
|
+
|
|
47
|
+
Then:
|
|
48
|
+
|
|
49
|
+
1. Open the project in Claude Code once and **trust the folder**: the reviewer's tools
|
|
50
|
+
load only in a trusted folder. Allow the project MCP servers when asked (`cap`, `ui5`,
|
|
51
|
+
`fiori`: documentation tools for the role skills).
|
|
52
|
+
2. Follow what `init` printed for branch protection and CODEOWNERS (see
|
|
53
|
+
[CI and repository settings](#ci-and-repository-settings)).
|
|
54
|
+
3. For an existing application, run `/agjan-map` once (see below).
|
|
55
|
+
|
|
56
|
+
## The workflow
|
|
57
|
+
|
|
58
|
+
Each feature on a branch of its own.
|
|
59
|
+
|
|
60
|
+
**Spec**: in Claude Code or Copilot:
|
|
61
|
+
|
|
62
|
+
```text
|
|
63
|
+
/agjan-spec Clerks want to filter the orders list by status.
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The agent writes `spec.md`, has it reviewed, and decides between light mode (nothing
|
|
67
|
+
new is created) and full mode. When it asks for approval, read the files and run, in
|
|
68
|
+
your terminal:
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
npx agjan status # what is ready and what blocks it
|
|
72
|
+
npx agjan review show # the reviews and findings
|
|
73
|
+
npx agjan approve spec design # light mode; full mode: approve spec, later approve design
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
`approve` shows a summary and asks you to type the feature key. It refuses when the
|
|
77
|
+
latest review did not see the current files or has open blockers. After recording the
|
|
78
|
+
approval it offers to commit the feature folder, with the message the agent proposed
|
|
79
|
+
already typed in: edit it, press Enter to commit, or clear it to commit yourself later
|
|
80
|
+
(`--no-commit` skips the question). Only that folder goes into the commit; the
|
|
81
|
+
pre-commit hook still runs. `accept` and `reject` do the same. To send a gate back:
|
|
82
|
+
`npx agjan reject spec --reason "…"`. To accept a finding consciously:
|
|
83
|
+
`npx agjan accept ORDF-F3 --reason "…"`.
|
|
84
|
+
|
|
85
|
+
**Design** (full mode): `/agjan-design`. The role skills of the affected areas write
|
|
86
|
+
`design.md` and `tasks.md`; the deep reviewer checks them; you approve with
|
|
87
|
+
`npx agjan approve design`.
|
|
88
|
+
|
|
89
|
+
**Build**: `/agjan-build`. One commit per task, subject `ORDF-T1: …`; tests named with
|
|
90
|
+
the AC ids; reviews when `agjan status` lists them as due. A file outside the approved
|
|
91
|
+
task paths fails `agjan check`; the agent then proposes an amendment, which you approve
|
|
92
|
+
with `npx agjan approve amendment ORDF-A1`.
|
|
93
|
+
|
|
94
|
+
**Verify**: `/agjan-verify`. Full build, tests and lint, the baseline update, the final
|
|
95
|
+
deep review, `agjan check --ci`, `report.md`, and the PR description
|
|
96
|
+
(`npx agjan pr-summary`). The agent opens a PR only when you ask; you review and merge.
|
|
97
|
+
|
|
98
|
+
At any time, `npx agjan status` says where a feature stands and what comes next.
|
|
99
|
+
|
|
100
|
+
## Small changes and existing applications
|
|
101
|
+
|
|
102
|
+
**`/agjan-fix`** is the fast path: existing files only (new files only for tests),
|
|
103
|
+
within the line limits (default 80 changed lines in total, 50 per file), and no
|
|
104
|
+
protected or risk path (deployment and security descriptors, CDS service definitions,
|
|
105
|
+
authorization, the "Do-not-touch list" of `project.md`). It runs on a branch of its own,
|
|
106
|
+
is reviewed, and is recorded in `docs/agjan/fixes/<date>-<slug>/`. Anything bigger goes
|
|
107
|
+
to `/agjan-spec`.
|
|
108
|
+
|
|
109
|
+
**`/agjan-map`** describes an existing application in `docs/agjan/project.md` (one to
|
|
110
|
+
two pages, with pointers to real files) and records the watched files (models,
|
|
111
|
+
services, app manifests, `mta.yaml`) in `docs/agjan/baseline.json`. Specs and designs
|
|
112
|
+
read it. When watched files change later, `agjan check` warns until `project.md` is
|
|
113
|
+
updated and `npx agjan baseline refresh` has run (Verify does this).
|
|
114
|
+
|
|
115
|
+
## Commands
|
|
116
|
+
|
|
117
|
+
Run `npx agjan --help` for the full list.
|
|
118
|
+
|
|
119
|
+
| Command | Who | Purpose |
|
|
120
|
+
|---|---|---|
|
|
121
|
+
| `init`, `sync [--force]` | you | set up; regenerate managed files after an upgrade |
|
|
122
|
+
| `doctor` | anyone | check Node, git, versions, managed files, hook, CI, the MCP server, guards, trust |
|
|
123
|
+
| `status [--feature <id> \| --all]` | anyone | state, blockers, tasks, due reviews, next step |
|
|
124
|
+
| `check [--staged \| --ci] [--base <ref>]` | anyone, hook, CI | enforce the rules |
|
|
125
|
+
| `review show [--step <step>]` | anyone | review records, or the material a reviewer gets |
|
|
126
|
+
| `pr-summary`, `report` | anyone | PR description; `report.md` with time and tokens |
|
|
127
|
+
| `new`, `scaffold design`, `amend`, `log` | agent | used by the workflow skills |
|
|
128
|
+
| `fix start \| check \| record`, `map start`, `baseline refresh` | agent | fast path and baseline |
|
|
129
|
+
| `approve`, `accept`, `reject` | **you, in a terminal** | gates; never run by an agent |
|
|
130
|
+
| `mcp` | the host | the reviewer's tools; started from the agent configuration |
|
|
131
|
+
|
|
132
|
+
`--feature` takes a feature slug, `fixes/<id>` or `maps/<id>`; it is needed only when
|
|
133
|
+
more than one changed on the branch.
|
|
134
|
+
|
|
135
|
+
Output is colored on a terminal (green for approved and passing, yellow for drafts and
|
|
136
|
+
warnings, red for stale, blocked and errors). In a pipe, in CI and in an agent's shell tool
|
|
137
|
+
it is plain text. `NO_COLOR=1` turns colors off, `FORCE_COLOR=1` turns them on.
|
|
138
|
+
|
|
139
|
+
## Configuration
|
|
140
|
+
|
|
141
|
+
`agjan.config.json` is layered over the package and domain defaults: objects merge,
|
|
142
|
+
lists replace. The schema is `node_modules/agjan/schemas/config.schema.json`.
|
|
143
|
+
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"kit": "0.1.0",
|
|
147
|
+
"domains": ["btp"],
|
|
148
|
+
"hosts": ["claude-code", "copilot"],
|
|
149
|
+
"git": { "base": "origin/main" },
|
|
150
|
+
"verify": { "cap": { "test": "npm test", "results": "reports/junit.xml" } },
|
|
151
|
+
"fix": { "max_total": 80, "max_per_file": 50 },
|
|
152
|
+
"review": { "build": "area" },
|
|
153
|
+
"models": { "claude-code": { "balanced": "sonnet", "deep": "opus" } },
|
|
154
|
+
"mcp": { "servers": { "ui5": { "enabled": false } } },
|
|
155
|
+
"ci": { "policy_changes": "warn", "untracked_changes": "fail" }
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
| Key | Effect |
|
|
160
|
+
|---|---|
|
|
161
|
+
| `domains` | enabled domains; phase 1 has `btp` (areas `cap`, `fiori`, `btp`) |
|
|
162
|
+
| `hosts` | `claude-code`, `copilot`; decides which files `sync` generates |
|
|
163
|
+
| `git.base` | the branch features merge into; default: the remote's default branch |
|
|
164
|
+
| `verify.<area>` | `build`, `test`, `lint` commands for the skills; `results`: a JUnit XML, Jest or Mocha JSON file that `check` reads to require a passing test per AC |
|
|
165
|
+
| `tests.<area>`, `scope.implicit.<area>` | test file globs; files every task of the area may change (i18n, lockfiles, fixtures) |
|
|
166
|
+
| `risk_paths` | paths whose change needs a review per task and are never a fix |
|
|
167
|
+
| `fix` | `max_total`, `max_per_file`, `protected`, `ignored`, `new_file_paths` |
|
|
168
|
+
| `review.build` | `area` (default: one build review per completed area) or `task` |
|
|
169
|
+
| `review.rounds` | correction rounds per review step (default 3); after that, `status` tells the agent to stop and hand over to you |
|
|
170
|
+
| `review.tiers.<step>` | `balanced` or `deep` per step kind (`spec`, `design:light`, `design`, `build`, `verify`, `fix`, `map`); decides which reviewer agent runs it. Defaults: `deep` for `design` and `verify`, else `balanced`; `fast` uses the balanced agent |
|
|
171
|
+
| `build.fix_attempts` | attempts for failing deterministic checks before the agent stops (default 3) |
|
|
172
|
+
| `language` | language of the documents' text (default `en`); headings, ids and keywords stay English |
|
|
173
|
+
| `limits.spec_kb`, `limits.design_kb` | soft size limits; `check` warns above them (defaults 12 and 20 KB; design covers `design.md` and `tasks.md`) |
|
|
174
|
+
| `models.<host>.<tier>` | model of the reviewer agents per tier (`balanced`, `deep`) |
|
|
175
|
+
| `mcp.servers.<name>` | documentation MCP servers: `command`, `args`, `env`, `areas`, `enabled` |
|
|
176
|
+
| `ci.policy_changes`, `ci.untracked_changes` | `warn` or `fail` in `check --ci` |
|
|
177
|
+
|
|
178
|
+
`npx agjan status` prints the language, the round limit and the attempts in its first
|
|
179
|
+
line; the skills take these values, and the reviewer agent per step, from `status`.
|
|
180
|
+
|
|
181
|
+
## Hosts
|
|
182
|
+
|
|
183
|
+
| | Claude Code | GitHub Copilot CLI | VS Code (Copilot Chat) |
|
|
184
|
+
|---|---|---|---|
|
|
185
|
+
| Skills | `.claude/skills/` | reads `.claude/skills/` | reads `.claude/skills/` (to verify) |
|
|
186
|
+
| Reviewer | `.claude/agents/`, agjan tools only, isolated | `.github/agents/`, agjan tools only, isolated | `.github/agents/`; agjan tools from `.vscode/mcp.json`, reviews marked `shared` |
|
|
187
|
+
| Approval guardrails | deny rules and a guard hook in `.claude/settings.json` | guard hook in `.github/hooks/` | the user confirms terminal commands |
|
|
188
|
+
| Tokens in `report.md` | yes | yes | unknown |
|
|
189
|
+
|
|
190
|
+
On every host, `approve` needs a human at a real terminal: the confirmation is read
|
|
191
|
+
from the terminal, not from input an agent can pipe in.
|
|
192
|
+
|
|
193
|
+
## CI and repository settings
|
|
194
|
+
|
|
195
|
+
`init` creates `.github/workflows/agjan.yml`. On every pull request it runs
|
|
196
|
+
`agjan check --ci` with the agjan version **pinned on the base branch**, fetched from
|
|
197
|
+
the registry, so a pull request cannot change the checker that checks it.
|
|
198
|
+
|
|
199
|
+
Recommended settings for the base branch:
|
|
200
|
+
|
|
201
|
+
- branch protection with the status check **`agjan-check`** required, and a required
|
|
202
|
+
review;
|
|
203
|
+
- CODEOWNERS for the files that change the rules (`init` prints a block):
|
|
204
|
+
`agjan.config.json`, `agjan.lock.json`, `docs/agjan/**/approvals.json`, `.claude/`,
|
|
205
|
+
`.github/agents/`, `.github/hooks/`, `.github/workflows/`, `package.json`,
|
|
206
|
+
`package-lock.json`.
|
|
207
|
+
|
|
208
|
+
The trust boundary is the reviewed merge. The approval commands are guardrails, not a
|
|
209
|
+
proof that a human approved: a model with unrestricted shell access could get around
|
|
210
|
+
them in principle.
|
|
211
|
+
|
|
212
|
+
## Upgrading
|
|
213
|
+
|
|
214
|
+
```sh
|
|
215
|
+
npm install --save-dev agjan@<version>
|
|
216
|
+
npx agjan sync # updates the managed files; files you edited are kept unless --force
|
|
217
|
+
npx agjan doctor
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Commit the result in a pull request of its own: CI reports it as a policy change.
|
|
221
|
+
|
|
222
|
+
## Troubleshooting
|
|
223
|
+
|
|
224
|
+
| Symptom | Cause and fix |
|
|
225
|
+
|---|---|
|
|
226
|
+
| The reviewer has no `review_context` tool | Claude Code: the folder is not trusted yet (`doctor` says so); open it once and accept. Copilot CLI: trust the folder when asked. |
|
|
227
|
+
| `approve` says it needs a human at an interactive terminal | It was run without a terminal, for example by an agent. Run it yourself in a terminal. |
|
|
228
|
+
| `approve` refuses: the review did not see the current files | Something changed after the last review; let the agent ask for the review again. |
|
|
229
|
+
| `check` says a file is outside the approved task paths | Revert it, or let the agent propose `agjan amend` and approve the amendment. |
|
|
230
|
+
| `check --ci` says the final verify review is stale | Files changed after it; run `/agjan-verify` again. |
|
|
231
|
+
| Warnings about managed files | `npx agjan sync`; `--force` replaces files you edited. |
|
|
232
|
+
| `agjan check --staged` blocks a commit | The pre-commit hook found a rule violation in the staged change; read its message. |
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "btp",
|
|
3
|
+
"title": "SAP BTP development (CAP Node.js, Fiori, BTP)",
|
|
4
|
+
"areas": {
|
|
5
|
+
"cap": {
|
|
6
|
+
"role": "cap-developer",
|
|
7
|
+
"tests": ["test/**"],
|
|
8
|
+
"implicit": ["package.json", "package-lock.json", "test/fixtures/**", "_i18n/**"],
|
|
9
|
+
"verify": { "test": "npm test" }
|
|
10
|
+
},
|
|
11
|
+
"fiori": {
|
|
12
|
+
"role": "fiori-developer",
|
|
13
|
+
"tests": ["app/*/webapp/test/**", "app/*/test/**"],
|
|
14
|
+
"implicit": ["app/*/package.json", "app/*/package-lock.json", "app/*/webapp/i18n/**"],
|
|
15
|
+
"verify": {}
|
|
16
|
+
},
|
|
17
|
+
"btp": {
|
|
18
|
+
"role": "btp-architect",
|
|
19
|
+
"tests": [],
|
|
20
|
+
"implicit": [],
|
|
21
|
+
"verify": {}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"risk_paths": ["xs-security.json", "mta.yaml", "srv/**/*auth*", "srv/**/*-access.cds"],
|
|
25
|
+
"protected": ["mta.yaml", "xs-security.json", "srv/**/*.cds"],
|
|
26
|
+
"watched": ["db/*.cds", "srv/*.cds", "app/*/webapp/manifest.json", "mta.yaml"]
|
|
27
|
+
}
|