@oss-autopilot/core 3.19.3 → 3.20.0
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/dist/commands/setup.js
CHANGED
|
@@ -142,6 +142,15 @@ export async function runSetup(options) {
|
|
|
142
142
|
results[key] = String(enabled);
|
|
143
143
|
break;
|
|
144
144
|
}
|
|
145
|
+
case 'trustOwnRepoWrites': {
|
|
146
|
+
if (value !== 'true' && value !== 'false') {
|
|
147
|
+
throw new ValidationError(`Invalid value for trustOwnRepoWrites: "${value}". Must be "true" or "false".`);
|
|
148
|
+
}
|
|
149
|
+
const trusted = value === 'true';
|
|
150
|
+
stateManager.updateConfig({ trustOwnRepoWrites: trusted });
|
|
151
|
+
results[key] = String(trusted);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
145
154
|
case 'includeDocIssues': {
|
|
146
155
|
stateManager.updateConfig({ includeDocIssues: value === 'true' });
|
|
147
156
|
results[key] = value === 'true' ? 'true' : 'false';
|
|
@@ -233,6 +233,12 @@ export const CONFIG_KEY_REGISTRY = [
|
|
|
233
233
|
settableVia: 'setup',
|
|
234
234
|
valueHint: 'true|false',
|
|
235
235
|
},
|
|
236
|
+
{
|
|
237
|
+
key: 'trustOwnRepoWrites',
|
|
238
|
+
description: 'Opt-in: skip the guard-public-posts approval prompt for GitHub writes (PR merge, issue close, comments) targeting repos owned by your own githubUsername. Off by default. Writes to any other owner, to a fork whose parent belongs to someone else, or from a chained command still ask.',
|
|
239
|
+
settableVia: 'setup',
|
|
240
|
+
valueHint: 'true|false',
|
|
241
|
+
},
|
|
236
242
|
{
|
|
237
243
|
key: 'healthCheckFreshnessMinutes',
|
|
238
244
|
description: 'Suppress the SessionStart PR health one-liner when the cached digest is older than this many minutes. The line silently disappears between /oss runs, so what remains is always current. Defaults to 30 minutes (#1255).',
|
|
@@ -298,6 +298,7 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
298
298
|
}>>;
|
|
299
299
|
diffToolCustomCommand: z.ZodOptional<z.ZodString>;
|
|
300
300
|
autoFormatBeforePush: z.ZodDefault<z.ZodBoolean>;
|
|
301
|
+
trustOwnRepoWrites: z.ZodDefault<z.ZodBoolean>;
|
|
301
302
|
healthCheckFreshnessMinutes: z.ZodDefault<z.ZodNumber>;
|
|
302
303
|
reviewMaxPasses: z.ZodOptional<z.ZodNumber>;
|
|
303
304
|
slmTriageModel: z.ZodDefault<z.ZodString>;
|
|
@@ -499,6 +500,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
499
500
|
}>>;
|
|
500
501
|
diffToolCustomCommand: z.ZodOptional<z.ZodString>;
|
|
501
502
|
autoFormatBeforePush: z.ZodDefault<z.ZodBoolean>;
|
|
503
|
+
trustOwnRepoWrites: z.ZodDefault<z.ZodBoolean>;
|
|
502
504
|
healthCheckFreshnessMinutes: z.ZodDefault<z.ZodNumber>;
|
|
503
505
|
reviewMaxPasses: z.ZodOptional<z.ZodNumber>;
|
|
504
506
|
slmTriageModel: z.ZodDefault<z.ZodString>;
|
|
@@ -240,6 +240,14 @@ export const AgentConfigSchema = z.object({
|
|
|
240
240
|
* the hook does nothing on every push unless the user explicitly enables it.
|
|
241
241
|
*/
|
|
242
242
|
autoFormatBeforePush: z.boolean().default(false),
|
|
243
|
+
/**
|
|
244
|
+
* Opt-in gate for own-repo writes in the guard-public-posts hook. Default
|
|
245
|
+
* false: every GitHub-mutating command asks for approval. When true, writes
|
|
246
|
+
* whose target repo is owned by `githubUsername` skip the ask; anything the
|
|
247
|
+
* hook cannot prove is own-repo (forks, other owners, chained commands)
|
|
248
|
+
* still asks.
|
|
249
|
+
*/
|
|
250
|
+
trustOwnRepoWrites: z.boolean().default(false),
|
|
243
251
|
/**
|
|
244
252
|
* Threshold (in minutes) for the SessionStart PR health one-liner (#1255).
|
|
245
253
|
* The cached digest only refreshes when the user runs `/oss`; SessionStart
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oss-autopilot/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.20.0",
|
|
4
4
|
"description": "CLI and core library for managing open source contributions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"zod": "^4.4.3"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@types/node": "^26.1.
|
|
63
|
+
"@types/node": "^26.1.2",
|
|
64
64
|
"@vitest/coverage-v8": "^4.1.9",
|
|
65
65
|
"esbuild": "^0.28.1",
|
|
66
|
-
"tsx": "^4.23.
|
|
66
|
+
"tsx": "^4.23.1",
|
|
67
67
|
"typedoc": "^0.28.20",
|
|
68
68
|
"typescript": "^5.9.3",
|
|
69
69
|
"vitest": "^4.1.9"
|