@buddysh/buddy 0.11.0 → 0.11.2
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/CHANGELOG.md +121 -0
- package/README.md +54 -43
- package/bin/cli.ts +282 -135
- package/dist/bin/cli.d.ts +5 -1
- package/dist/bin/cli.js +84 -91
- package/dist/chunk-05me15qw.js +2 -0
- package/dist/{chunk-bxfc4g2x.js → chunk-08x5b93v.js} +2 -13
- package/dist/chunk-0eg3kxb5.js +5 -0
- package/dist/chunk-0hc97k0t.js +44 -0
- package/dist/chunk-0paakbpj.js +2 -0
- package/dist/{chunk-hfvezfxh.js → chunk-0scz1dv5.js} +1 -1
- package/dist/{chunk-sp818c27.js → chunk-0w695m54.js} +5 -5
- package/dist/{chunk-vyapg8ca.js → chunk-11hdrnf6.js} +3 -3
- package/dist/{chunk-1stt2whn.js → chunk-15r904nz.js} +2 -2
- package/dist/{chunk-5k40mwd4.js → chunk-193abzy6.js} +1 -1
- package/dist/chunk-19zyq15p.js +2 -0
- package/dist/chunk-1c4690h9.js +79 -0
- package/dist/{chunk-q9n79dd3.js → chunk-1cpdz49v.js} +1 -1
- package/dist/{chunk-thaxgm5p.js → chunk-1qgr52wx.js} +1 -1
- package/dist/chunk-24c2ab29.js +2 -0
- package/dist/chunk-25sz1y7j.js +16 -0
- package/dist/chunk-2et8yavs.js +3 -0
- package/dist/chunk-2wj5xtdn.js +2 -0
- package/dist/{chunk-7mgec8kb.js → chunk-3901s7h9.js} +1 -1
- package/dist/{chunk-xvptf9jy.js → chunk-3cvng2nz.js} +2 -2
- package/dist/chunk-3fzbvs2p.js +2 -0
- package/dist/chunk-3pqra420.js +2 -0
- package/dist/{chunk-yk23nc4t.js → chunk-40znfg3x.js} +1 -1
- package/dist/chunk-428c5652.js +2 -0
- package/dist/chunk-49znmbh8.js +2 -0
- package/dist/chunk-5044y9en.js +5 -0
- package/dist/chunk-5yfaptmp.js +7 -0
- package/dist/{chunk-h7hs95wn.js → chunk-61xecp1z.js} +2 -2
- package/dist/{chunk-x0ya2r4r.js → chunk-657nbbp7.js} +2 -2
- package/dist/chunk-68fw3ma0.js +2 -0
- package/dist/{chunk-9h04nskh.js → chunk-69qyr9ef.js} +1 -1
- package/dist/chunk-6bd8ghkz.js +27 -0
- package/dist/{chunk-vh504tcv.js → chunk-6p4qz8qv.js} +2 -2
- package/dist/chunk-847g7jde.js +2 -0
- package/dist/{chunk-r3zyw8x0.js → chunk-8fw0v7bv.js} +2 -2
- package/dist/chunk-8hjvthz4.js +92 -0
- package/dist/chunk-90zmqn5k.js +2 -0
- package/dist/{chunk-3zdcekfj.js → chunk-929h6hhp.js} +2 -2
- package/dist/chunk-96ht6hwd.js +4 -0
- package/dist/chunk-97qf7mdt.js +2 -0
- package/dist/chunk-a4hzzn28.js +2 -0
- package/dist/chunk-aa277p5r.js +2 -0
- package/dist/chunk-b357cgb0.js +2 -0
- package/dist/chunk-b9escac0.js +4 -0
- package/dist/{chunk-56q4pwb5.js → chunk-be629jhq.js} +2 -2
- package/dist/chunk-bffxf4xy.js +2 -0
- package/dist/chunk-brfyymhf.js +2 -0
- package/dist/{chunk-zs3jaj0g.js → chunk-bymwaezh.js} +165 -119
- package/dist/chunk-c3es7pgf.js +2 -0
- package/dist/{chunk-9750tenz.js → chunk-c8rzx3a1.js} +1 -1
- package/dist/{chunk-tzs22es2.js → chunk-cgvt98pd.js} +1 -1
- package/dist/chunk-cwfkm7h9.js +3 -0
- package/dist/chunk-cwqhxqv7.js +2 -0
- package/dist/chunk-dgfb8k0h.js +2 -0
- package/dist/chunk-dqbk3kcj.js +104 -0
- package/dist/chunk-ds4stft2.js +2 -0
- package/dist/{chunk-1h3ey7k5.js → chunk-e68nf7cm.js} +1 -1
- package/dist/chunk-emyvrx5t.js +2 -0
- package/dist/{chunk-16yqbccr.js → chunk-eseshkd0.js} +1 -1
- package/dist/chunk-f53y8ans.js +3 -0
- package/dist/chunk-fjp3a7hp.js +26 -0
- package/dist/chunk-fpnjpgrb.js +2 -0
- package/dist/chunk-fr5c326k.js +2 -0
- package/dist/chunk-g24hav8e.js +370 -0
- package/dist/{chunk-6md7qf2g.js → chunk-g30dr44w.js} +2 -2
- package/dist/chunk-gkpd5nw2.js +2 -0
- package/dist/chunk-hbhmns7s.js +2 -0
- package/dist/chunk-hd5j9e3c.js +2 -0
- package/dist/{chunk-akffynkc.js → chunk-hfjywbbc.js} +1 -1
- package/dist/chunk-hmskwy76.js +2 -0
- package/dist/chunk-hns85dqw.js +2 -0
- package/dist/{chunk-wtjhehz9.js → chunk-hptfq3rg.js} +1 -1
- package/dist/{chunk-54sc18p8.js → chunk-hsa07n7c.js} +1 -1
- package/dist/chunk-hwxmhkxp.js +2 -0
- package/dist/{chunk-52x8mvh4.js → chunk-jnb80k2x.js} +2 -2
- package/dist/chunk-jtxcr5yw.js +4 -0
- package/dist/{chunk-tn8prpny.js → chunk-k26wnmzk.js} +7 -7
- package/dist/{chunk-2bp7tqca.js → chunk-kprtsn8c.js} +1 -1
- package/dist/chunk-m4p7cnvk.js +2 -0
- package/dist/chunk-mcwxpdg9.js +2 -0
- package/dist/chunk-mkzmjg3f.js +4 -0
- package/dist/chunk-ncrq3fvv.js +2 -0
- package/dist/chunk-ng7px8gx.js +2 -0
- package/dist/{chunk-vagxqhef.js → chunk-nrr8z2z7.js} +2 -2
- package/dist/{chunk-g0w8n555.js → chunk-p6qbqsyp.js} +2 -2
- package/dist/chunk-p8tmms5h.js +3 -0
- package/dist/{chunk-hw70wbzg.js → chunk-phfmnnne.js} +2 -2
- package/dist/{chunk-tb5y0350.js → chunk-pkr6905p.js} +1 -1
- package/dist/chunk-ppmabn5h.js +2 -0
- package/dist/chunk-pskqrv5r.js +2 -0
- package/dist/{chunk-4xsq18p3.js → chunk-q2tjkhez.js} +1 -1
- package/dist/{chunk-6g1y9yqh.js → chunk-q4t568hv.js} +1 -1
- package/dist/chunk-qd2s51gc.js +2 -0
- package/dist/chunk-r763e19p.js +6 -0
- package/dist/{chunk-74pxb991.js → chunk-rc2mk5x6.js} +2 -2
- package/dist/{chunk-zb62jhwm.js → chunk-s4zb0fcj.js} +13 -9
- package/dist/chunk-s6z3gm2s.js +5 -0
- package/dist/chunk-sc7emb71.js +2 -0
- package/dist/chunk-sw2538r0.js +49 -0
- package/dist/chunk-t25apff9.js +2 -0
- package/dist/{chunk-p4zwy518.js → chunk-tjc2vgwn.js} +2 -2
- package/dist/{chunk-gngwjf70.js → chunk-tw047td6.js} +2 -2
- package/dist/chunk-tws3npt7.js +38 -0
- package/dist/{chunk-6d9hmjt8.js → chunk-txtrpypt.js} +2 -2
- package/dist/chunk-v1wfa758.js +2 -0
- package/dist/{chunk-dfesffnr.js → chunk-vckhctmr.js} +1 -1
- package/dist/chunk-vdd1cghr.js +2 -0
- package/dist/{chunk-fvpr07dn.js → chunk-vgtmrd4c.js} +1 -1
- package/dist/chunk-vj1sdxpp.js +2 -0
- package/dist/{chunk-fm8ckj9b.js → chunk-vqa6vte3.js} +1 -1
- package/dist/{chunk-82dv4p13.js → chunk-wn6pbyzn.js} +1 -1
- package/dist/chunk-x23a6szw.js +2 -0
- package/dist/{chunk-xqx460y2.js → chunk-xs12dtf1.js} +1 -1
- package/dist/chunk-xznnmhyt.js +2 -0
- package/dist/chunk-y3dd8v85.js +2 -0
- package/dist/chunk-yk183r6z.js +2 -0
- package/dist/{chunk-1c1gznm9.js → chunk-yngahb11.js} +2 -2
- package/dist/{chunk-qyf90zz3.js → chunk-yp1tgdh3.js} +1 -1
- package/dist/chunk-ys1qqcpp.js +2 -0
- package/dist/{chunk-8rc6042h.js → chunk-ytmxd5fk.js} +2 -2
- package/dist/chunk-zgkrhymn.js +2 -0
- package/dist/chunk-zxgkp71x.js +2 -0
- package/dist/src/agent/index.d.ts +6 -1
- package/dist/src/agent/modes.d.ts +0 -8
- package/dist/src/agent/plan.d.ts +28 -0
- package/dist/src/agent/tasks.d.ts +20 -0
- package/dist/src/agent/tools/issue.d.ts +19 -0
- package/dist/src/ci/attempts.d.ts +36 -0
- package/dist/src/ci/base.d.ts +55 -0
- package/dist/src/ci/fix.d.ts +27 -18
- package/dist/src/ci/index.d.ts +5 -1
- package/dist/src/ci/run.d.ts +28 -0
- package/dist/src/commands/handlers.d.ts +3 -0
- package/dist/src/dashboard/dashboard-generator.d.ts +4 -0
- package/dist/src/events/index.d.ts +12 -0
- package/dist/src/gates/checks.d.ts +10 -0
- package/dist/src/gates/index.d.ts +1 -0
- package/dist/src/gates/post-merge.d.ts +13 -1
- package/dist/src/git/github-provider.d.ts +5 -1
- package/dist/src/git/gitlab-provider.d.ts +5 -1
- package/dist/src/git/provider.d.ts +40 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +1 -1
- package/dist/src/registry/registry-client.d.ts +1 -1
- package/dist/src/reports/index.d.ts +1 -0
- package/dist/src/reports/publish-gate.d.ts +22 -0
- package/dist/src/review/filters.d.ts +36 -0
- package/dist/src/review/index.d.ts +4 -1
- package/dist/src/review/marker.d.ts +18 -0
- package/dist/src/review/poster.d.ts +11 -1
- package/dist/src/review/resolve.d.ts +20 -0
- package/dist/src/review/run.d.ts +35 -0
- package/dist/src/rules/engine.d.ts +19 -0
- package/dist/src/scanner/package-json-extras.d.ts +34 -1
- package/dist/src/setup.d.ts +49 -17
- package/dist/src/setup.js +1 -1
- package/dist/src/templates/github-actions.d.ts +2 -0
- package/dist/src/types.d.ts +4 -1
- package/dist/src/upgrades/migrate.d.ts +3 -0
- package/dist/src/upgrades/report.d.ts +1 -0
- package/dist/src/utils/dockerfile-parser.d.ts +2 -2
- package/dist/src/utils/helpers.d.ts +10 -1
- package/dist/src/version/version-resolver.d.ts +1 -0
- package/package.json +12 -10
- package/dist/chunk-0j7z87kh.js +0 -3
- package/dist/chunk-0r8zt3d7.js +0 -2
- package/dist/chunk-1a53wj0h.js +0 -1
- package/dist/chunk-1wjnd24b.js +0 -24
- package/dist/chunk-1xe07hzm.js +0 -2
- package/dist/chunk-2dbkpfy9.js +0 -2
- package/dist/chunk-3q6czqs4.js +0 -6
- package/dist/chunk-49ey79p0.js +0 -5
- package/dist/chunk-4c9m61yd.js +0 -5
- package/dist/chunk-4efbxdjr.js +0 -4
- package/dist/chunk-4f7panqj.js +0 -21
- package/dist/chunk-4hd3rre0.js +0 -2
- package/dist/chunk-5c3qf34r.js +0 -2
- package/dist/chunk-5kt03hx5.js +0 -2
- package/dist/chunk-63ept76v.js +0 -2
- package/dist/chunk-65b3vq52.js +0 -2
- package/dist/chunk-6k653r8w.js +0 -2
- package/dist/chunk-6patq6bw.js +0 -2
- package/dist/chunk-6sgh49z1.js +0 -2
- package/dist/chunk-7tfrww3v.js +0 -2
- package/dist/chunk-7xk28xrv.js +0 -2
- package/dist/chunk-8661pvb8.js +0 -3
- package/dist/chunk-887s0w81.js +0 -2
- package/dist/chunk-978wtejw.js +0 -44
- package/dist/chunk-9eqpaxfz.js +0 -2
- package/dist/chunk-9p1xkmjy.js +0 -2
- package/dist/chunk-agdesgzv.js +0 -2
- package/dist/chunk-ar01x04a.js +0 -2
- package/dist/chunk-ay43f085.js +0 -2
- package/dist/chunk-bk9bqd5j.js +0 -2
- package/dist/chunk-bm8d40j0.js +0 -69
- package/dist/chunk-c3fczawt.js +0 -2
- package/dist/chunk-c9r9nd4t.js +0 -1
- package/dist/chunk-ctsz0ynx.js +0 -3
- package/dist/chunk-czremqk7.js +0 -2
- package/dist/chunk-da3wbh04.js +0 -2
- package/dist/chunk-dat582cg.js +0 -2
- package/dist/chunk-djntbp7a.js +0 -105
- package/dist/chunk-eagjp0dh.js +0 -3
- package/dist/chunk-eht72nnj.js +0 -2
- package/dist/chunk-f4nv5x3z.js +0 -2
- package/dist/chunk-fdfk918n.js +0 -2
- package/dist/chunk-fdj0tewy.js +0 -20
- package/dist/chunk-fqj7e6xa.js +0 -2
- package/dist/chunk-frm8zz31.js +0 -2
- package/dist/chunk-g0nv8psv.js +0 -2
- package/dist/chunk-gkmvxjbe.js +0 -2
- package/dist/chunk-j8asz4hb.js +0 -15
- package/dist/chunk-k62w2v03.js +0 -2
- package/dist/chunk-mcrfxphm.js +0 -5
- package/dist/chunk-mh3x7j6h.js +0 -2
- package/dist/chunk-naq32yx3.js +0 -86
- package/dist/chunk-nsmcjkas.js +0 -2
- package/dist/chunk-p1xm1jvz.js +0 -2
- package/dist/chunk-p3wsm8kz.js +0 -2
- package/dist/chunk-p7zgy37f.js +0 -2
- package/dist/chunk-ph1b3vbp.js +0 -315
- package/dist/chunk-pkjm2r0a.js +0 -2
- package/dist/chunk-pkkwb0n0.js +0 -4
- package/dist/chunk-pnpx1kqn.js +0 -6
- package/dist/chunk-qpz9k66h.js +0 -2
- package/dist/chunk-qvn1rtgp.js +0 -2
- package/dist/chunk-r06ce5g6.js +0 -2
- package/dist/chunk-r2sbprdb.js +0 -49
- package/dist/chunk-rqdep14r.js +0 -2
- package/dist/chunk-s1km8cyq.js +0 -2
- package/dist/chunk-s4ms8zag.js +0 -2
- package/dist/chunk-ts35hc5t.js +0 -3
- package/dist/chunk-vkctfqpm.js +0 -3
- package/dist/chunk-wdwvt7gb.js +0 -43
- package/dist/chunk-x3kragh9.js +0 -12
- package/dist/chunk-x9ctz1qc.js +0 -1
- package/dist/chunk-xakpdqaq.js +0 -3
- package/dist/chunk-yncea6ty.js +0 -2
- package/dist/chunk-yq0gxtzv.js +0 -2
- package/dist/chunk-yqhs08ky.js +0 -2
- package/dist/chunk-zve5d96e.js +0 -2
package/dist/src/setup.d.ts
CHANGED
|
@@ -25,9 +25,37 @@ export declare function detectRepository(): Promise<RepositoryInfo | null>;
|
|
|
25
25
|
export declare function guideTokenCreation(repoInfo: RepositoryInfo): Promise<void>;
|
|
26
26
|
export declare function confirmTokenSetup(): Promise<{ hasCustomToken: boolean, needsGuide: boolean }>;
|
|
27
27
|
export declare function guideRepositorySettings(repoInfo: RepositoryInfo): Promise<void>;
|
|
28
|
-
export declare function generateConfigFile(repoInfo: RepositoryInfo, hasCustomToken: boolean): Promise<void>;
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
export declare function generateConfigFile(repoInfo: RepositoryInfo, hasCustomToken: boolean, preset?: WorkflowPreset): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Work out which jobs each scheduled tick should start.
|
|
31
|
+
*
|
|
32
|
+
* The generated workflow names its cron expressions twice — once in the
|
|
33
|
+
* `schedule:` trigger list and once in the `determine-jobs` step that matches
|
|
34
|
+
* `github.event.schedule` to decide what to run. Those two have to agree
|
|
35
|
+
* exactly, and a cron declared in one but not the other produces a workflow
|
|
36
|
+
* that starts and does nothing. Deriving both from this plan makes that
|
|
37
|
+
* particular drift impossible rather than merely unlikely.
|
|
38
|
+
*
|
|
39
|
+
* Two properties matter and neither is obvious from the preset data:
|
|
40
|
+
*
|
|
41
|
+
* - **A shared cron runs every job that asked for it.** Most presets give
|
|
42
|
+
* updates and the dashboard the same expression, and a naive if/elif chain
|
|
43
|
+
* would let the first branch win and drop the other job entirely.
|
|
44
|
+
* - **`manual` means no schedule**, not a cron expression. The `testing` and
|
|
45
|
+
* `custom` presets use it, and emitting it verbatim yields YAML that GitHub
|
|
46
|
+
* refuses to parse.
|
|
47
|
+
*
|
|
48
|
+
* @param preset - The workflow preset being generated
|
|
49
|
+
* @returns Distinct cron expressions, each with the jobs it starts
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* schedulePlan(getWorkflowPreset('standard'))
|
|
53
|
+
* // [{ cron: '0 9 * * 1,3,5', jobs: ['update', 'dashboard'] }, ...]
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare function schedulePlan(preset: WorkflowPreset): ScheduleEntry[];
|
|
57
|
+
export declare function generateUnifiedWorkflow(_hasCustomToken: boolean, preset?: WorkflowPreset): string;
|
|
58
|
+
export declare function generateCoreWorkflows(preset: WorkflowPreset, _repoInfo: RepositoryInfo, hasCustomToken: boolean, logger: Logger): Promise<void>;
|
|
31
59
|
export declare function getWorkflowPreset(useCase: string): WorkflowPreset;
|
|
32
60
|
// Enhanced testing and validation functions
|
|
33
61
|
export declare function validateWorkflowGeneration(workflowContent: string): Promise<ValidationResult>;
|
|
@@ -115,14 +143,22 @@ export declare interface SetupPlugin {
|
|
|
115
143
|
enabled: boolean
|
|
116
144
|
}
|
|
117
145
|
export declare interface SetupTrigger {
|
|
118
|
-
event:
|
|
119
|
-
condition?: string
|
|
146
|
+
event: string
|
|
120
147
|
}
|
|
121
148
|
export declare interface SetupHook {
|
|
122
149
|
name: string
|
|
123
150
|
priority: number
|
|
124
151
|
async: boolean
|
|
125
|
-
handler
|
|
152
|
+
handler?: (context: SetupContext) => Promise<void> | void
|
|
153
|
+
action?: SetupHookAction
|
|
154
|
+
}
|
|
155
|
+
/*.json` in
|
|
156
|
+
* a repository into arbitrary code execution on whoever runs `buddy setup`.
|
|
157
|
+
*/
|
|
158
|
+
export declare interface SetupHookAction {
|
|
159
|
+
type: 'webhook'
|
|
160
|
+
url: string
|
|
161
|
+
body?: Record<string, unknown>
|
|
126
162
|
}
|
|
127
163
|
export declare interface PluginConfig {
|
|
128
164
|
[key: string]: any
|
|
@@ -135,17 +171,14 @@ export declare interface SetupContext {
|
|
|
135
171
|
analysis: ProjectAnalysis
|
|
136
172
|
plugins: SetupPlugin[]
|
|
137
173
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
enabled: boolean
|
|
144
|
-
}
|
|
145
|
-
export declare interface AuthConfig {
|
|
146
|
-
type: 'token' | 'oauth' | 'webhook' | 'api_key'
|
|
147
|
-
credentials: Record<string, string>
|
|
174
|
+
/** One cron expression and everything it starts. */
|
|
175
|
+
export declare interface ScheduleEntry {
|
|
176
|
+
cron: string
|
|
177
|
+
jobs: ScheduledJob[]
|
|
178
|
+
updateStrategy?: string
|
|
148
179
|
}
|
|
180
|
+
/** A job a scheduled tick can start. */
|
|
181
|
+
export type ScheduledJob = 'update' | 'dashboard' | 'check' | 'report';
|
|
149
182
|
// Configuration Migration Implementation
|
|
150
183
|
export declare class ConfigurationMigrator {
|
|
151
184
|
detectExistingTools(): Promise<DetectedTool[]>;
|
|
@@ -153,7 +186,6 @@ export declare class ConfigurationMigrator {
|
|
|
153
186
|
migrateFromDependabot(configPath: string): Promise<MigrationResult>;
|
|
154
187
|
generateMigrationReport(results: MigrationResult[]): Promise<string>;
|
|
155
188
|
}
|
|
156
|
-
// Plugin Architecture Implementation
|
|
157
189
|
export declare class PluginManager {
|
|
158
190
|
discoverPlugins(): Promise<SetupPlugin[]>;
|
|
159
191
|
loadPlugin(plugin: SetupPlugin): Promise<void>;
|
package/dist/src/setup.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{$g as i,Tg as a,Ug as b,Vg as c,Wg as d,Xg as e,Yg as f,Zg as g,_g as h,ah as j,bh as k,ch as l,dh as m,eh as n,fh as o,gh as p,hh as q,ih as r,jh as s,kh as t,lh as u,mh as v}from"../chunk-bymwaezh.js";import"../chunk-k26wnmzk.js";import"../chunk-193abzy6.js";import"../chunk-e68nf7cm.js";import"../chunk-hfjywbbc.js";import"../chunk-q4t568hv.js";export{r as validateWorkflowGeneration,s as validateRepositoryAccess,f as updateProgress,v as showFinalInstructions,u as setupCustomWorkflow,n as schedulePlan,c as runPreflightChecks,h as parseRemote,j as guideTokenCreation,l as guideRepositorySettings,q as getWorkflowPreset,o as generateUnifiedWorkflow,p as generateCoreWorkflows,m as generateConfigFile,t as displayValidationResults,g as displayProgress,i as detectRepository,e as createProgressTracker,k as confirmTokenSetup,d as analyzeProject,b as PluginManager,a as ConfigurationMigrator};
|
|
@@ -10,6 +10,7 @@ export declare interface WorkflowConfig {
|
|
|
10
10
|
conditions?: string[]
|
|
11
11
|
}
|
|
12
12
|
reviewers?: string[]
|
|
13
|
+
assignees?: string[]
|
|
13
14
|
labels?: string[]
|
|
14
15
|
}
|
|
15
16
|
export declare class GitHubActionsTemplate {
|
|
@@ -25,6 +26,7 @@ export declare class GitHubActionsTemplate {
|
|
|
25
26
|
strategy?: 'major' | 'minor' | 'patch' | 'all'
|
|
26
27
|
autoMerge?: boolean | { enabled: boolean, strategy: 'merge' | 'squash' | 'rebase', conditions?: string[] }
|
|
27
28
|
reviewers?: string[]
|
|
29
|
+
assignees?: string[]
|
|
28
30
|
labels?: string[]
|
|
29
31
|
}, config?: BuddyConfig): string;
|
|
30
32
|
static generateSecurityAuditWorkflow(): string;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -9,10 +9,13 @@ export type {
|
|
|
9
9
|
CheckRunResult,
|
|
10
10
|
GitProvider,
|
|
11
11
|
GitProviderName,
|
|
12
|
+
ListWorkflowRunsOptions,
|
|
12
13
|
ProviderBranch,
|
|
13
14
|
ProviderCapabilities,
|
|
14
15
|
ReviewSubmission,
|
|
16
|
+
ReviewThread,
|
|
15
17
|
ReviewSubmissionResult,
|
|
18
|
+
WorkflowRun,
|
|
16
19
|
} from './git/provider';
|
|
17
20
|
// Core configuration types
|
|
18
21
|
export declare interface BuddyConfig {
|
|
@@ -56,6 +59,7 @@ export declare interface BuddyConfig {
|
|
|
56
59
|
includePrerelease?: boolean
|
|
57
60
|
excludeMajor?: boolean
|
|
58
61
|
respectLatest?: boolean
|
|
62
|
+
engines?: boolean
|
|
59
63
|
minimumReleaseAge?: number
|
|
60
64
|
minimumReleaseAgeExclude?: string[]
|
|
61
65
|
rules?: import('./rules/engine').PackageRule[]
|
|
@@ -89,7 +93,6 @@ export declare interface BuddyConfig {
|
|
|
89
93
|
}
|
|
90
94
|
reports?: {
|
|
91
95
|
enabled?: boolean
|
|
92
|
-
schedule?: string
|
|
93
96
|
period?: '7d' | '30d' | '90d'
|
|
94
97
|
prompt?: string
|
|
95
98
|
title?: string
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { runAgent } from '../agent/runner';
|
|
1
2
|
import type { AiClient } from '../ai/types';
|
|
2
3
|
import type { Logger } from '../utils/logger';
|
|
3
4
|
import type { MigrationConfidence, MigrationPlan } from './plan';
|
|
@@ -41,5 +42,7 @@ export declare interface UpgradeOptions {
|
|
|
41
42
|
ai?: AiClient | null
|
|
42
43
|
autoMigrate?: boolean
|
|
43
44
|
draftBelowConfidence?: MigrationConfidence
|
|
45
|
+
maxAttempts?: number
|
|
46
|
+
agent?: typeof runAgent
|
|
44
47
|
logger?: Logger
|
|
45
48
|
}
|
|
@@ -16,6 +16,7 @@ export declare function renderMigrationReport(plan: MigrationPlan, outcome?: Mig
|
|
|
16
16
|
export declare interface MigrationOutcome {
|
|
17
17
|
applied: boolean
|
|
18
18
|
verified: boolean
|
|
19
|
+
attempts?: number
|
|
19
20
|
changedFiles: string[]
|
|
20
21
|
verificationOutput?: string
|
|
21
22
|
unresolved: string[]
|
|
@@ -62,8 +62,8 @@ export declare function resolveDockerDigest(imageName: string, tag: string, regi
|
|
|
62
62
|
/**
|
|
63
63
|
* Update Dockerfile content with new image versions
|
|
64
64
|
*/
|
|
65
|
-
export declare function updateDockerfile(filePath: string, content: string, updates: PackageUpdate[]): Promise<string>;
|
|
65
|
+
export declare function updateDockerfile(filePath: string, content: string, updates: PackageUpdate[], registries?: DockerRegistryConfig): Promise<string>;
|
|
66
66
|
/**
|
|
67
67
|
* Generate file changes for Dockerfiles
|
|
68
68
|
*/
|
|
69
|
-
export declare function generateDockerfileUpdates(updates: PackageUpdate[]): Promise<Array<{ path: string, content: string, type: 'update' }>>;
|
|
69
|
+
export declare function generateDockerfileUpdates(updates: PackageUpdate[], registries?: DockerRegistryConfig): Promise<Array<{ path: string, content: string, type: 'update' }>>;
|
|
@@ -46,7 +46,16 @@ export declare function groupUpdates(updates: PackageUpdate[], options?: { prior
|
|
|
46
46
|
*/
|
|
47
47
|
export declare function sortUpdatesByPriority(updates: PackageUpdate[], options?: { prioritizeSecurity?: boolean }): PackageUpdate[];
|
|
48
48
|
/**
|
|
49
|
-
* Parse version
|
|
49
|
+
* Parse a version pair and classify the update, using Bun's semver.
|
|
50
|
+
*
|
|
51
|
+
* The one implementation of update-type classification. `Buddy` and
|
|
52
|
+
* `VersionResolver` used to carry private variants, and the three disagreed
|
|
53
|
+
* on exactly the inputs that matter: short actions tags ('v4'), v-prefixes,
|
|
54
|
+
* suffixed Docker tags and prereleases.
|
|
55
|
+
*
|
|
56
|
+
* Non-semver input ('latest', 'workspace:*', branch names) and downgrades
|
|
57
|
+
* deliberately degrade to 'patch' — the least-alarming label for a change
|
|
58
|
+
* that cannot be reasoned about.
|
|
50
59
|
*/
|
|
51
60
|
export declare function getUpdateType(currentVersion: string, newVersion: string): 'major' | 'minor' | 'patch';
|
|
52
61
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buddysh/buddy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.2",
|
|
5
5
|
"description": "AI code review and dependency updates in one bot. Reviews pull requests and local changes, answers @buddy comments, gates merges, repairs failing CI, and keeps dependencies current across npm, Composer, Docker, GitHub Actions and more.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",
|
|
60
60
|
"prepublishOnly": "bun run build",
|
|
61
61
|
"test": "bun test",
|
|
62
|
+
"test:coverage": "bun test --coverage",
|
|
62
63
|
"lint": "bunx --bun pickier .",
|
|
63
64
|
"lint:fix": "bunx --bun pickier . --fix",
|
|
64
65
|
"format": "bunx --bun pickier . --format",
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"changelog:generate": "bunx logsmith --output CHANGELOG.md",
|
|
68
69
|
"release": "bunx --bun bumpx -r",
|
|
69
70
|
"typecheck": "bunx tsc --noEmit",
|
|
71
|
+
"check:docs": "bun scripts/check-docs-claims.ts",
|
|
70
72
|
"dev:docs": "bun --bun bunpress dev",
|
|
71
73
|
"build:docs": "bun --bun bunpress build",
|
|
72
74
|
"preview:docs": "bun --bun bunpress preview --outdir docs/dist",
|
|
@@ -77,21 +79,21 @@
|
|
|
77
79
|
},
|
|
78
80
|
"dependencies": {
|
|
79
81
|
"prompts": "^2.4.2",
|
|
80
|
-
"ts-pantry": "^0.11.
|
|
82
|
+
"ts-pantry": "^0.11.64"
|
|
81
83
|
},
|
|
82
84
|
"devDependencies": {
|
|
83
|
-
"@anthropic-ai/sdk": "^0.
|
|
84
|
-
"@stacksjs/bumpx": "^0.2.
|
|
85
|
-
"@stacksjs/bunpress": "^0.2.
|
|
86
|
-
"@stacksjs/clapp": "^0.2.
|
|
85
|
+
"@anthropic-ai/sdk": "^0.122.0",
|
|
86
|
+
"@stacksjs/bumpx": "^0.2.18",
|
|
87
|
+
"@stacksjs/bunpress": "^0.2.14",
|
|
88
|
+
"@stacksjs/clapp": "^0.2.16",
|
|
87
89
|
"@stacksjs/clarity": "^0.3.33",
|
|
88
90
|
"@stacksjs/gitlint": "^0.1.8",
|
|
89
91
|
"@stacksjs/logsmith": "^0.2.11",
|
|
90
|
-
"@stacksjs/ts-cloud": "^0.12.
|
|
91
|
-
"@types/bun": "^1.4.
|
|
92
|
+
"@stacksjs/ts-cloud": "^0.12.10",
|
|
93
|
+
"@types/bun": "^1.4.2",
|
|
92
94
|
"@types/prompts": "^2.4.9",
|
|
93
95
|
"bun-git-hooks": "^0.3.3",
|
|
94
|
-
"bun-plugin-dtsx": "^0.11.
|
|
96
|
+
"bun-plugin-dtsx": "^0.11.13",
|
|
95
97
|
"bunfig": "^0.15.19",
|
|
96
98
|
"pickier": "^0.1.65",
|
|
97
99
|
"typescript": "^7.0.2"
|
|
@@ -105,7 +107,7 @@
|
|
|
105
107
|
"commit-msg": "bunx gitlint --edit .git/COMMIT_EDITMSG"
|
|
106
108
|
},
|
|
107
109
|
"peerDependencies": {
|
|
108
|
-
"@anthropic-ai/sdk": "
|
|
110
|
+
"@anthropic-ai/sdk": ">=0.117.1 <0.123.0"
|
|
109
111
|
},
|
|
110
112
|
"peerDependenciesMeta": {
|
|
111
113
|
"@anthropic-ai/sdk": {
|