-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgoal.yaml
More file actions
428 lines (427 loc) · 9.94 KB
/
goal.yaml
File metadata and controls
428 lines (427 loc) · 9.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
# goal.yaml - Goal configuration file
# Generated: 2026-02-15 19:12:27
# Documentation: https://github.com/wronai/goal#configuration
#
# This file configures Goal's behavior for:
# - Version management (semver/calver)
# - Commit message generation
# - Changelog updates
# - Build/test/publish strategies
# - Registry authentication
#
# Edit this file to customize Goal's behavior for your project.
version: '1.0'
project:
name: prellm
type:
- python
description: Lightweight LLM prompt middleware — bias detection, standardization,
and DevOps process chains via YAML config
versioning:
strategy: semver
files:
- VERSION
- pyproject.toml:version
- prellm/__init__.py:__version__
bump_rules:
patch: 10
minor: 50
major: 200
git:
commit:
strategy: conventional
scope: gllm
abstraction_level: auto
abstraction_levels:
high: '{type}({domain}): {benefit}'
medium: '{type}({domain}): {action} {entities}'
low: '{type}({domain}): update {file_count} files (+{added}/-{deleted})'
domain_mapping:
goal/*.py: core
src/*.py: core
lib/*.py: core
app/*.py: app
api/*.py: api
docs/*: docs
tests/*: test
test/*: test
'*.md': docs
'*.rst': docs
pyproject.toml: build
setup.py: build
setup.cfg: build
package.json: build
Cargo.toml: build
goal.yaml: config
.github/*: ci
.gitlab-ci.yml: ci
Dockerfile: docker
docker-compose.yml: docker
benefit_keywords:
config: better configuration management
cli: improved CLI experience
api: enhanced API functionality
test: improved test coverage
docs: better documentation
auth: enhanced security
perf: improved performance
refactor: cleaner code architecture
fix: resolved issues
feat: new functionality
templates:
feat:
high: 'feat({domain}): {benefit}'
medium: 'feat({domain}): add {entities}'
low: 'feat({domain}): add {file_count} files (+{added}/-{deleted})'
fix:
high: 'fix({domain}): {benefit}'
medium: 'fix({domain}): resolve {entities}'
low: 'fix({domain}): update {file_count} files (+{added}/-{deleted})'
docs:
high: 'docs({domain}): {benefit}'
medium: 'docs({domain}): document {entities}'
low: 'docs({domain}): update {file_count} files'
refactor:
high: 'refactor({domain}): {benefit}'
medium: 'refactor({domain}): restructure {entities}'
low: 'refactor({domain}): update {file_count} files'
test:
high: 'test({domain}): {benefit}'
medium: 'test({domain}): add tests for {entities}'
low: 'test({domain}): update {file_count} files'
build:
high: 'build({domain}): {benefit}'
medium: 'build({domain}): configure {entities}'
low: 'build({domain}): update {file_count} files'
chore:
high: 'chore({domain}): {benefit}'
medium: 'chore({domain}): update {entities}'
low: 'chore({domain}): update {file_count} files'
style:
high: 'style({domain}): {benefit}'
medium: 'style({domain}): format {entities}'
low: 'style({domain}): update {file_count} files'
perf:
high: 'perf({domain}): {benefit}'
medium: 'perf({domain}): optimize {entities}'
low: 'perf({domain}): update {file_count} files'
classify_by:
- file_extensions
- directory_paths
- line_stats
- keywords_diff
- code_entities
value_patterns:
configuration:
signatures:
- config
- yaml
- toml
- settings
- options
impact: better configuration management
changelog_section: core
cli:
signatures:
- click.
- '@click'
- command
- option
- argparse
impact: improved CLI experience
changelog_section: core
api:
signatures:
- endpoint
- route
- request
- response
- handler
impact: enhanced API functionality
changelog_section: core
testing:
signatures:
- test_
- assert
- mock
- fixture
- pytest
impact: improved test coverage
changelog_section: test
documentation:
paths:
- docs/*
- '*.md'
- README*
impact: comprehensive documentation
changelog_section: docs
performance:
signatures:
- cache
- async
- parallel
- optimize
- speed
impact: performance improvements
changelog_section: core
security:
signatures:
- auth
- token
- permission
- encrypt
- secure
impact: security enhancements
changelog_section: core
formatting:
signatures:
- format
- render
- template
- markdown
- output
impact: improved output formatting
changelog_section: core
relations:
config → cli: configuration-driven CLI
config → core: configurable core logic
test → core: better test coverage
docs → core: improved documentation
changelog:
enabled: true
template: keep-a-changelog
output: CHANGELOG.md
sections:
- Added
- Changed
- Fixed
- Deprecated
- Removed
- Security
group_by_domain: true
domain_sections:
core:
- feat
- fix
- refactor
- perf
docs:
- docs
test:
- test
build:
- build
- chore
ci:
- ci
include_entities: true
max_entities_per_entry: 5
tag:
enabled: true
prefix: v
format: '{prefix}{version}'
strategies:
python:
test: poetry run python -m pytest tests/ -v
build: python -m build
publish: twine upload dist/prellm-{version}*
dependencies:
file: requirements.txt
lock: pip freeze > requirements.txt
nodejs:
test: npm test
build: npm run build
publish: twine upload dist/prellm-{version}*
dependencies:
file: package-lock.json
lock: npm install
rust:
test: cargo test
build: cargo build --release
publish: twine upload dist/prellm-{version}*
dependencies:
file: Cargo.lock
lock: cargo update
registries:
pypi:
url: https://pypi.org/simple/
token_env: PYPI_TOKEN
npm:
url: https://registry.npmjs.org/
token_env: NPM_TOKEN
hooks:
pre_commit: ''
post_commit: ''
pre_push: ''
post_push: ''
advanced:
auto_update_config: true
performance:
max_files: 50
timeout_test: 300
quality:
skip:
- PY009
commit_summary:
min_value_words: 3
max_generic_terms: 0
required_metrics: 2
relation_threshold: 0.7
generic_terms:
- update
- improve
- enhance
- fix
- change
- modify
- cleaner
- better
- refactor
- misc
enhanced_summary:
enabled: true
min_capabilities: 1
min_value_score: 50
include_metrics: true
include_relations: true
include_roles: true
gates:
max_complexity_percent: 200
max_duplicate_relations: 0
min_unique_files_ratio: 0.8
min_capabilities: 1
max_banned_words: 0
role_patterns:
_analyze_(python|js|generic)_diff: language-specific code analyzer
CodeChangeAnalyzer: AST-based change detector
analyze_file_diff: diff analysis engine
generate_functional_summary: business value summarizer
generate.*message: commit message generator
EnhancedSummaryGenerator: enterprise changelog generator
GoalConfig: configuration manager
'@click\\.command': CLI command
'@click\\.option': CLI option
format_.*result: output formatter
_calculate_complexity: complexity analyzer
value_patterns:
ast_analysis:
signatures:
- ast.parse
- ast.walk
- libcst
- tree-sitter
- AST
capability: deep code analysis engine
impact: intelligent change detection
dependency_graph:
signatures:
- networkx
- relations
- dependencies
- graph
capability: code relationship mapping
impact: architecture understanding
quality_metrics:
signatures:
- radon
- cyclomatic
- complexity
- coverage
capability: code quality metrics
impact: maintainability tracking
multi_language:
signatures:
- _analyze_python
- _analyze_js
- language
- parser
capability: multi-language support
impact: universal code analysis
commit_message:
min_length: 15
max_length: 72
max_entities: 5
require_type: true
require_scope: true
changelog:
min_entries_per_release: 1
max_file_lines: 10
include_commit_hash: true
code_parsers:
python:
extract:
- 'def '
- 'class '
- 'async def '
- '@click.'
- '@app.'
- '@router.'
ignore:
- 'import '
- 'from '
- '#'
- '"""'
- ''''''''
entity_pattern: (?:def|class|async def)\s+(\w+)
javascript:
extract:
- 'function '
- 'const '
- 'class '
- 'export '
- 'async '
ignore:
- 'import '
- //
- /*
- '*/'
entity_pattern: (?:function|class|const)\s+(\w+)
typescript:
extract:
- 'function '
- 'const '
- 'class '
- 'interface '
- 'type '
- 'export '
ignore:
- 'import '
- //
- /*
- '*/'
entity_pattern: (?:function|class|const|interface|type)\s+(\w+)
rust:
extract:
- 'fn '
- 'struct '
- 'enum '
- 'impl '
- 'pub '
- 'mod '
ignore:
- //
- /*
- '*/'
entity_pattern: (?:fn|struct|enum|impl|mod)\s+(\w+)
go:
extract:
- 'func '
- 'type '
- 'struct '
- 'interface '
ignore:
- //
- /*
- '*/'
entity_pattern: (?:func|type)\s+(\w+)
markdown:
extract:
- '# '
- '## '
- '### '
- '#### '
- '- **'
ignore:
- <!--
- -->
entity_pattern: ^#+\s+(.+)$