@adversarylabs/sdk 0.1.32 → 0.1.34
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 -21
- package/README.md +37 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -9
- package/dist/index.js.map +1 -1
- package/dist/model.d.ts +19 -3
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +76 -0
- package/dist/model.js.map +1 -1
- package/dist/outcome-context.d.ts +2 -1
- package/dist/outcome-context.d.ts.map +1 -1
- package/dist/outcome-context.js +37 -6
- package/dist/outcome-context.js.map +1 -1
- package/dist/repository-model.d.ts.map +1 -1
- package/dist/repository-model.js +19 -14
- package/dist/repository-model.js.map +1 -1
- package/package.json +5 -5
- package/schemas/adversary.outcome-context.v1.schema.json +64 -10
package/LICENSE
CHANGED
|
@@ -1,21 +1,201 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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 2026 Replicated, Inc.
|
|
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/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Requires Node 22 or newer and ESM.
|
|
|
16
16
|
|
|
17
17
|
## Migrating from 0.1.4
|
|
18
18
|
|
|
19
|
-
SDK 0.1.4 output is incompatible with the current strict
|
|
19
|
+
SDK 0.1.4 output is incompatible with the current strict Doomer CLI schema. Version 0.1.5 is
|
|
20
20
|
the canonical protocol release. Existing adversaries should:
|
|
21
21
|
|
|
22
22
|
1. Upgrade the package to `@adversarylabs/sdk@^0.1.5`.
|
|
@@ -116,7 +116,7 @@ Rule context exposes:
|
|
|
116
116
|
|
|
117
117
|
Model-backed adversaries provide their review prompt, bounded structured input, response schema,
|
|
118
118
|
and output budget. The SDK sends that request to the execution-scoped broker created by the
|
|
119
|
-
|
|
119
|
+
Doomer CLI and validates the structured answer before returning it:
|
|
120
120
|
|
|
121
121
|
```ts
|
|
122
122
|
const review = await ctx.model.review<{
|
|
@@ -155,6 +155,29 @@ const review = await ctx.model.review<{
|
|
|
155
155
|
});
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
+
Adversaries may add semantic validation that cannot be expressed by JSON Schema. The adversary
|
|
159
|
+
owns the domain rule; the SDK owns bounded regeneration, feedback, timeout accounting, and usage
|
|
160
|
+
aggregation:
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
const review = await ctx.model.review<EngineeringReview>({
|
|
164
|
+
prompt: ENGINEERING_REVIEW_PROMPT,
|
|
165
|
+
input: preparedInput,
|
|
166
|
+
schema: engineeringReviewSchema,
|
|
167
|
+
validation: {
|
|
168
|
+
maximumAttempts: 3,
|
|
169
|
+
validate: ({ output, citations }) => {
|
|
170
|
+
validateEngineeringReview(output, citations);
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Throw from `validate` to reject an answer. The SDK sends that error back as trusted validation
|
|
177
|
+
feedback and retries only the final generation call. With repository tools, it reuses the already
|
|
178
|
+
retrieved evidence and citations. Exhaustion raises a non-retryable `ModelReviewError` with code
|
|
179
|
+
`model_validation_failed` so hosts do not restart the entire adversary review.
|
|
180
|
+
|
|
158
181
|
For repository-scale reviews, add bounded repository tools instead of placing source bodies in
|
|
159
182
|
`input`. The SDK asks the model which directories and line ranges it needs, performs those reads
|
|
160
183
|
inside the rule context's repository boundary, and then makes the final structured review call:
|
|
@@ -704,8 +727,8 @@ uses:
|
|
|
704
727
|
|---------|--------|
|
|
705
728
|
| Detection depth | Each package in `uses` (and the root if it has rules) |
|
|
706
729
|
| GitHub comment **voice** | The **CLI entry** package (`agent/voice.md` + section banks), not members |
|
|
707
|
-
| Expansion | CLI (`
|
|
708
|
-
| Skip expansion | `
|
|
730
|
+
| Expansion | CLI (`doomer run <entry>`); transitive, deduped, depth-capped |
|
|
731
|
+
| Skip expansion | `doomer run <entry> --no-compose` |
|
|
709
732
|
|
|
710
733
|
Rules for each `uses` item:
|
|
711
734
|
|
|
@@ -715,7 +738,7 @@ Rules for each `uses` item:
|
|
|
715
738
|
|
|
716
739
|
The SDK **models and validates** `uses` (schema + `AdversaryManifest.uses`). The
|
|
717
740
|
CLI **expands** composition at run time. See the CLI doc
|
|
718
|
-
[`docs/composition.md`](https://github.com/
|
|
741
|
+
[`docs/composition.md`](https://github.com/doomerlabs/doomer/blob/main/docs/composition.md)
|
|
719
742
|
when that lands on main.
|
|
720
743
|
|
|
721
744
|
### Comment voice (`agent/voice.md`)
|
|
@@ -733,11 +756,11 @@ agent/scope.md # mission / train scope (separate from voice)
|
|
|
733
756
|
|
|
734
757
|
`agent/voice.md` should include:
|
|
735
758
|
|
|
736
|
-
1. **Core voice** — cadence, structure, bans, length
|
|
759
|
+
1. **Core voice** — cadence, structure, bans, length
|
|
737
760
|
2. **`## Example maintainer comments (style only)`** — real human quotes under
|
|
738
761
|
Ship / Design / Defects / Nits subsections (style few-shots only; never
|
|
739
|
-
hard-code those strings as finding titles in `src/`)
|
|
740
|
-
3. **Output** — return only the PR comment body
|
|
762
|
+
hard-code those strings as finding titles in `src/`)
|
|
763
|
+
3. **Output** — return only the PR comment body
|
|
741
764
|
|
|
742
765
|
Rewrite rules (CLI preamble): match spirit, re-ground in current evidence, never
|
|
743
766
|
copy a banked quote unchanged. Technical depth still comes from finding
|
|
@@ -745,7 +768,7 @@ title/summary/evidence produced by rules (or composed specialists).
|
|
|
745
768
|
|
|
746
769
|
With composition, put persona voice on the **entry** package you run; members
|
|
747
770
|
detect, the entry package sounds. Full CLI guide:
|
|
748
|
-
[`docs/voice.md`](https://github.com/
|
|
771
|
+
[`docs/voice.md`](https://github.com/doomerlabs/doomer/blob/main/docs/voice.md).
|
|
749
772
|
|
|
750
773
|
### Train (home-built packages)
|
|
751
774
|
|
|
@@ -754,11 +777,11 @@ Improve **your** local packages from your team’s PR review history with the CL
|
|
|
754
777
|
|
|
755
778
|
```sh
|
|
756
779
|
cd my-adversary
|
|
757
|
-
|
|
780
|
+
doomer train init --single-package
|
|
758
781
|
# edit adversary.train.yaml — sources (org/repos or authors_only), official jury
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
782
|
+
doomer train run
|
|
783
|
+
doomer train results ls
|
|
784
|
+
doomer train results apply <id>
|
|
762
785
|
```
|
|
763
786
|
|
|
764
787
|
- Only **local** packages receive drafts; optional **official** packages are a
|
|
@@ -768,7 +791,7 @@ adversary train results apply <id>
|
|
|
768
791
|
`agent/voice.md` (style only)—never hard-code quotes in `src/`.
|
|
769
792
|
- Keep `agent/scope.md` / `docs/scope.md` accurate so train knows what is a fair miss.
|
|
770
793
|
|
|
771
|
-
Guide: [`docs/train.md`](https://github.com/
|
|
794
|
+
Guide: [`docs/train.md`](https://github.com/doomerlabs/doomer/blob/main/docs/train.md).
|
|
772
795
|
|
|
773
796
|
### Automatic detection
|
|
774
797
|
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EAEtB,KAAK,WAAW,EAGjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,c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O,EAAE,yBAAyB,GACjC,OAAO,CAAC,aAAa,CAAC,CAwCxB;AAED,yFAAyF;AACzF,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,WAAW,EAClB,cAAc,CAAC,EAAE,MAAM,EACvB,MAAM,CAAC,EAAE,aAAa,GAAG,IAAI,GAC5B,qBAAqB,CAQvB;AAWD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,aAAa,CA6C1E"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mkdir, readFile, readdir, writeFile } from "node:fs/promises";
|
|
2
2
|
import { dirname, isAbsolute, relative, resolve } from "node:path";
|
|
3
3
|
import { Ajv2020 } from "ajv/dist/2020.js";
|
|
4
|
-
import { ModelReviewError, createModelFromEnvironment, unavailableModel, } from "./model.js";
|
|
4
|
+
import { ModelReviewError, createModelFromEnvironment, reviewWithValidation, unavailableModel, } from "./model.js";
|
|
5
5
|
import { outcomeContextFromEnvironment } from "./outcome-context.js";
|
|
6
6
|
import { repoGraphFromEnvironment } from "./repo-graph.js";
|
|
7
7
|
import { repoIndexFromEnvironment } from "./repo-index.js";
|
|
@@ -687,12 +687,29 @@ async function walk(directory) {
|
|
|
687
687
|
return paths;
|
|
688
688
|
}
|
|
689
689
|
function globPatternToRegExp(pattern) {
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
.
|
|
694
|
-
|
|
695
|
-
|
|
690
|
+
const escaped = toPosixPath(pattern).replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
691
|
+
let source = "";
|
|
692
|
+
for (let i = 0; i < escaped.length; i++) {
|
|
693
|
+
if (escaped.startsWith("**/", i)) {
|
|
694
|
+
// A `**/` segment matches zero or more leading path segments (globstar),
|
|
695
|
+
// so a root-level file matches `**/name` rather than requiring a slash.
|
|
696
|
+
source += "(?:.*/)?";
|
|
697
|
+
i += 2;
|
|
698
|
+
}
|
|
699
|
+
else if (escaped.startsWith("**", i)) {
|
|
700
|
+
source += ".*";
|
|
701
|
+
i += 1;
|
|
702
|
+
}
|
|
703
|
+
else if (escaped[i] === "*") {
|
|
704
|
+
source += "[^/]*";
|
|
705
|
+
}
|
|
706
|
+
else if (escaped[i] === "?") {
|
|
707
|
+
source += "[^/]";
|
|
708
|
+
}
|
|
709
|
+
else {
|
|
710
|
+
source += escaped[i];
|
|
711
|
+
}
|
|
712
|
+
}
|
|
696
713
|
return new RegExp(`^${source}$`);
|
|
697
714
|
}
|
|
698
715
|
function createReviewCollector() {
|
|
@@ -809,10 +826,21 @@ function synthesizeObservationFindings(observations, thresholds, registry) {
|
|
|
809
826
|
});
|
|
810
827
|
return { findings, suppressedObservations };
|
|
811
828
|
}
|
|
829
|
+
function findingEvidenceSignature(evidence) {
|
|
830
|
+
return evidence
|
|
831
|
+
.map((item) => `${item.location?.file ?? item.file ?? ""}:${item.location?.line ?? item.line ?? ""}`)
|
|
832
|
+
.join("|");
|
|
833
|
+
}
|
|
812
834
|
function normalizeFindingInput(input, occurrence = 0) {
|
|
835
|
+
// Without an explicit groupKey, dedupe on category + title + evidence rather
|
|
836
|
+
// than category alone, so distinct findings emitted by the same rule (same
|
|
837
|
+
// ruleId + category) no longer collapse into one. Identical findings still
|
|
838
|
+
// share a key and dedupe.
|
|
839
|
+
const dedupeScope = input.groupKey ??
|
|
840
|
+
`${input.category}:${input.title}:${findingEvidenceSignature(input.evidence)}`;
|
|
813
841
|
return omitUndefined({
|
|
814
842
|
id: input.id ??
|
|
815
|
-
stableId(`${input.ruleId ?? input.title}:${
|
|
843
|
+
stableId(`${input.ruleId ?? input.title}:${dedupeScope}${input.deduplicate === false ? `:${occurrence}` : ""}`),
|
|
816
844
|
ruleId: input.ruleId,
|
|
817
845
|
groupKey: input.groupKey,
|
|
818
846
|
title: input.title,
|
|
@@ -1224,7 +1252,7 @@ export async function formatOpinionAsync(options) {
|
|
|
1224
1252
|
export function enhanceReviewModel(model, repositoryRoot, change) {
|
|
1225
1253
|
return {
|
|
1226
1254
|
review: (request) => request.tools?.repository === undefined
|
|
1227
|
-
? model
|
|
1255
|
+
? reviewWithValidation(model, request)
|
|
1228
1256
|
: reviewWithRepositoryTools(model, repositoryRoot, request, change),
|
|
1229
1257
|
concern: (request) => rewriteOpinionConcern(model, request),
|
|
1230
1258
|
};
|