@mmerterden/multi-agent-pipeline 23.7.0 → 24.1.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/CHANGELOG.md +60 -1
- package/README.md +59 -24
- package/README.tr.md +43 -8
- package/SECURITY.md +3 -3
- package/docs/architecture.md +41 -4
- package/docs/ecosystem.md +15 -13
- package/docs/facts.json +5 -4
- package/docs/features.md +67 -15
- package/install/_codex-agents.mjs +13 -8
- package/install/_common.mjs +24 -0
- package/install/_dev-only-files.mjs +5 -0
- package/install/_mcp-register.mjs +6 -2
- package/install/_rewrite-tree.mjs +197 -0
- package/install/codex.mjs +96 -180
- package/install/copilot.mjs +24 -54
- package/install/index.mjs +29 -11
- package/install/templates/codex-instructions.md +21 -5
- package/install/templates/copilot-instructions.md +21 -14
- package/manifest.json +2083 -0
- package/package.json +8 -2
- package/pipeline/commands/multi-agent/SKILL.md +5 -4
- package/pipeline/commands/multi-agent/analysis/SKILL.md +5 -1
- package/pipeline/commands/multi-agent/autopilot-on/SKILL.md +31 -3
- package/pipeline/commands/multi-agent/autopilot-status/SKILL.md +5 -1
- package/pipeline/commands/multi-agent/channels/SKILL.md +16 -8
- package/pipeline/commands/multi-agent/log/SKILL.md +2 -0
- package/pipeline/commands/multi-agent/stack/SKILL.md +1 -1
- package/pipeline/contract/CHANGELOG.md +15 -0
- package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
- package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
- package/pipeline/contract/fixtures/runs-awaiting-question.json +6 -1
- package/pipeline/contract/fixtures/runs-empty.json +1 -1
- package/pipeline/contract/fixtures/runs-failed.json +21 -1
- package/pipeline/contract/fixtures/runs-old-schema.json +18 -3
- package/pipeline/contract/fixtures/runs-pr-opened-redacted.json +31 -1
- package/pipeline/contract/fixtures/runs-pr-opened.json +31 -1
- package/pipeline/contract/fixtures/runs-running.json +16 -1
- package/pipeline/contract/manifest.json +14 -14
- package/pipeline/contract/types/index.d.ts +20 -1
- package/pipeline/lib/_jira-auth.sh +50 -78
- package/pipeline/lib/_service-account.sh +191 -0
- package/pipeline/lib/credential-inventory.sh +49 -37
- package/pipeline/lib/credential-store.sh +48 -3
- package/pipeline/lib/fetch-confluence.sh +76 -92
- package/pipeline/lib/fetch-crashlytics.sh +30 -59
- package/pipeline/lib/fetch-figma-annotations.sh +9 -9
- package/pipeline/lib/fetch-fortify.sh +77 -81
- package/pipeline/lib/fetch-graylog.sh +38 -77
- package/pipeline/lib/figma-mcp-refresh.sh +23 -4
- package/pipeline/lib/figma-screenshot.sh +7 -8
- package/pipeline/lib/figma-token.sh +39 -46
- package/pipeline/lib/host.mjs +138 -0
- package/pipeline/lib/host.sh +48 -0
- package/pipeline/lib/issue-fetcher.sh +25 -41
- package/pipeline/lib/jira-publish.sh +23 -21
- package/pipeline/lib/local-model.mjs +93 -0
- package/pipeline/lib/md2confluence-v3.py +37 -30
- package/pipeline/lib/model-dispatch.sh +41 -4
- package/pipeline/lib/model-resolve.mjs +58 -0
- package/pipeline/lib/post-pr-review.sh +38 -53
- package/pipeline/lib/reviewer-families.mjs +70 -0
- package/pipeline/lib/service-account.mjs +2131 -0
- package/pipeline/lib/service-account.sh +35 -0
- package/pipeline/lib/usage-token.mjs +64 -24
- package/pipeline/lib/usage-vocab.mjs +1 -1
- package/pipeline/lib/user-facing.mjs +11 -3
- package/pipeline/lib/vercel-deploy.sh +17 -26
- package/pipeline/multi-agent-refs/_entry-picker.md +62 -0
- package/pipeline/multi-agent-refs/analysis/intake.md +2 -0
- package/pipeline/multi-agent-refs/analysis/render.md +12 -1
- package/pipeline/multi-agent-refs/analysis/reusable-refs.md +1 -0
- package/pipeline/multi-agent-refs/analysis/unattended.md +135 -0
- package/pipeline/multi-agent-refs/autopilot-on/details.md +16 -0
- package/pipeline/multi-agent-refs/channels/generator.md +10 -2
- package/pipeline/multi-agent-refs/channels/menu.md +3 -1
- package/pipeline/multi-agent-refs/channels/preview.md +3 -1
- package/pipeline/multi-agent-refs/channels/reference.md +16 -2
- package/pipeline/multi-agent-refs/channels/report-file.md +188 -0
- package/pipeline/multi-agent-refs/cross-cli-contract.md +35 -27
- package/pipeline/multi-agent-refs/features/doctor.md +37 -11
- package/pipeline/multi-agent-refs/features/free-models.md +3 -3
- package/pipeline/multi-agent-refs/features/local-model.md +87 -0
- package/pipeline/multi-agent-refs/features/model-fallback.md +25 -10
- package/pipeline/multi-agent-refs/features/product-context.md +6 -5
- package/pipeline/multi-agent-refs/features/service-accounts.md +233 -0
- package/pipeline/multi-agent-refs/features/unattended-security.md +10 -1
- package/pipeline/multi-agent-refs/help/en.md +36 -1
- package/pipeline/multi-agent-refs/help/tr.md +34 -1
- package/pipeline/multi-agent-refs/orchestrator/copilot-pipeline.md +2 -1
- package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +2 -1
- package/pipeline/multi-agent-refs/phases/modes.md +20 -1
- package/pipeline/multi-agent-refs/phases/phase-0-init.md +1 -0
- package/pipeline/multi-agent-refs/phases/phase-4-commit.md +1 -0
- package/pipeline/multi-agent-refs/phases/phase-5-report.md +13 -11
- package/pipeline/multi-agent-refs/phases.md +4 -3
- package/pipeline/multi-agent-refs/review/panel.md +30 -18
- package/pipeline/multi-agent-refs/setup/discovery.md +17 -5
- package/pipeline/multi-agent-refs/setup/token-save-flow.md +21 -2
- package/pipeline/multi-agent-refs/sync/overview.md +11 -5
- package/pipeline/multi-agent-refs/tracker-contract.md +64 -20
- package/pipeline/office/index.html +77 -4
- package/pipeline/schemas/activity.schema.json +63 -4
- package/pipeline/schemas/autopilot-config.schema.json +29 -4
- package/pipeline/schemas/hosts.json +512 -0
- package/pipeline/schemas/hosts.schema.json +310 -0
- package/pipeline/schemas/launch.json +22 -2
- package/pipeline/schemas/launch.schema.json +2 -1
- package/pipeline/schemas/now-lines.json +103 -0
- package/pipeline/schemas/now-lines.schema.json +42 -0
- package/pipeline/schemas/phases.json +19 -1
- package/pipeline/schemas/phases.schema.json +8 -0
- package/pipeline/schemas/prefs.schema.json +331 -4
- package/pipeline/schemas/runs-index.schema.json +22 -1
- package/pipeline/scripts/_autopilot-config.mjs +67 -4
- package/pipeline/scripts/_autopilot-item.mjs +67 -0
- package/pipeline/scripts/_autopilot-outcomes.mjs +6 -0
- package/pipeline/scripts/_contract-core.mjs +1 -1
- package/pipeline/scripts/_cost.mjs +75 -3
- package/pipeline/scripts/activity-snapshot.mjs +27 -1
- package/pipeline/scripts/analysis-sources.mjs +22 -5
- package/pipeline/scripts/analysis-unattended.mjs +360 -0
- package/pipeline/scripts/anonymize-findings.mjs +3 -7
- package/pipeline/scripts/autopilot-arming.mjs +19 -10
- package/pipeline/scripts/autopilot-intake.mjs +124 -27
- package/pipeline/scripts/autopilot-menubar.swift +7 -0
- package/pipeline/scripts/autopilot-runner.mjs +77 -48
- package/pipeline/scripts/autopilot-status.sh +32 -9
- package/pipeline/scripts/bulk-read.sh +37 -5
- package/pipeline/scripts/confluence-readback.mjs +15 -7
- package/pipeline/scripts/cost-table.json +65 -25
- package/pipeline/scripts/doctor.mjs +119 -32
- package/pipeline/scripts/entry-mode.mjs +101 -0
- package/pipeline/scripts/estimate.mjs +30 -16
- package/pipeline/scripts/feedback-send.mjs +11 -8
- package/pipeline/scripts/gen-facts.mjs +7 -9
- package/pipeline/scripts/jira-attach.sh +23 -28
- package/pipeline/scripts/jira-search.sh +5 -21
- package/pipeline/scripts/launch-request.mjs +15 -9
- package/pipeline/scripts/migrate-prefs.mjs +56 -0
- package/pipeline/scripts/phase-tracker.sh +226 -50
- package/pipeline/scripts/priority-review.mjs +14 -7
- package/pipeline/scripts/product-context.mjs +26 -7
- package/pipeline/scripts/prune-logs.sh +4 -2
- package/pipeline/scripts/render-work-summary.sh +51 -1
- package/pipeline/scripts/report-file.mjs +285 -0
- package/pipeline/scripts/rework-escalation.mjs +19 -4
- package/pipeline/scripts/runs-index.mjs +2 -1
- package/pipeline/scripts/service-read.mjs +19 -17
- package/pipeline/scripts/skill-siblings.mjs +17 -1
- package/pipeline/scripts/status-overview.mjs +20 -10
- package/pipeline/scripts/uninstall.mjs +145 -57
- package/pipeline/scripts/usage-register.mjs +34 -11
- package/pipeline/scripts/usage-report.mjs +31 -26
- package/pipeline/scripts/validate-triage.mjs +11 -1
- package/pipeline/scripts/work-items.mjs +25 -28
- package/pipeline/scripts/write-store-config.mjs +37 -11
- package/pipeline/skills/.skill-manifest.json +4 -4
- package/pipeline/skills/.skills-index.json +1 -1
- package/pipeline/skills/shared/core/multi-agent/SKILL.md +11 -3
- package/pipeline/skills/shared/core/multi-agent-analysis/SKILL.md +2 -0
- package/pipeline/skills/shared/core/multi-agent-channels/SKILL.md +11 -8
- package/pipeline/lib/credential-resolve.mjs +0 -75
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
"additionalProperties": false,
|
|
30
30
|
"required": ["name", "email"],
|
|
31
31
|
"properties": {
|
|
32
|
+
"id": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
|
|
35
|
+
"description": "Stable handle serviceAccounts[].identityId points at. `name` is display text and may be edited or repeated; without an id an account bound to an identity would come loose when the name changes."
|
|
36
|
+
},
|
|
32
37
|
"name": {
|
|
33
38
|
"type": "string"
|
|
34
39
|
},
|
|
@@ -224,6 +229,318 @@
|
|
|
224
229
|
}
|
|
225
230
|
}
|
|
226
231
|
},
|
|
232
|
+
"serviceAccounts": {
|
|
233
|
+
"type": "array",
|
|
234
|
+
"maxItems": 64,
|
|
235
|
+
"description": "One entry per credential the pipeline may use: which service it is for, where it may be sent, and which credential-store items hold it. Host, secret and identity sit on one entry, so a secret cannot be paired with another entry's host. Read only through pipeline/lib/service-account.mjs; while this key is absent that module derives the same entries from keychainMapping and hosts in memory, so a file that has not been migrated resolves identically.",
|
|
236
|
+
"items": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"additionalProperties": false,
|
|
239
|
+
"required": ["id", "service", "label", "secrets"],
|
|
240
|
+
"properties": {
|
|
241
|
+
"id": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
|
|
244
|
+
"description": "Stable handle, unique across the array. Run state, flags and the audit trail name an account by this id, so it never changes once written; without it an account could only be addressed by its position."
|
|
245
|
+
},
|
|
246
|
+
"service": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"enum": [
|
|
249
|
+
"jira",
|
|
250
|
+
"confluence",
|
|
251
|
+
"bitbucket",
|
|
252
|
+
"github",
|
|
253
|
+
"figma",
|
|
254
|
+
"figma_mcp",
|
|
255
|
+
"fortify",
|
|
256
|
+
"graylog",
|
|
257
|
+
"jenkins",
|
|
258
|
+
"firebase",
|
|
259
|
+
"npm",
|
|
260
|
+
"vercel",
|
|
261
|
+
"claude_oauth",
|
|
262
|
+
"supabase",
|
|
263
|
+
"usage_ingest",
|
|
264
|
+
"appstore_connect",
|
|
265
|
+
"google_play"
|
|
266
|
+
],
|
|
267
|
+
"description": "Which external system this credential belongs to. Closed: the resolver holds one row per service (kind, slots, fixed hosts) and refuses a name it has no row for."
|
|
268
|
+
},
|
|
269
|
+
"label": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"minLength": 1,
|
|
272
|
+
"maxLength": 80,
|
|
273
|
+
"pattern": "^\\S(.*\\S)?$",
|
|
274
|
+
"description": "What a person sees in a picker and in a refusal message. Unique per service, compared without case; without it two accounts of one service are indistinguishable to the person asked to choose between them."
|
|
275
|
+
},
|
|
276
|
+
"default": {
|
|
277
|
+
"type": "boolean",
|
|
278
|
+
"default": false,
|
|
279
|
+
"description": "The account a request with no target resolves to, and the one mirrored into keychainMapping and hosts. At most one per service; a sole account is the default without carrying the flag."
|
|
280
|
+
},
|
|
281
|
+
"identityId": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
|
|
284
|
+
"description": "The identities[] entry this account belongs to. A bound account is never returned for a request made under another identity; absent means usable under any identity."
|
|
285
|
+
},
|
|
286
|
+
"scope": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"additionalProperties": false,
|
|
289
|
+
"description": "Where this credential is valid. The resolver hands the secret out only for a destination inside this scope.",
|
|
290
|
+
"properties": {
|
|
291
|
+
"host": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"pattern": "^[a-z0-9]([a-z0-9.-]{0,251}[a-z0-9])?$",
|
|
294
|
+
"description": "Hostname only: lowercase, no scheme, port, path or trailing dot. Required for a self-hosted service; for github and npm it names an instance other than the vendor's own. Matched exactly, never by suffix."
|
|
295
|
+
},
|
|
296
|
+
"extraHosts": {
|
|
297
|
+
"type": "array",
|
|
298
|
+
"maxItems": 20,
|
|
299
|
+
"uniqueItems": true,
|
|
300
|
+
"items": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"pattern": "^[a-z0-9]([a-z0-9.-]{0,251}[a-z0-9])?$"
|
|
303
|
+
},
|
|
304
|
+
"description": "Further hostnames this credential may be sent to, each confirmed by the person during setup (a separate git clone host, for example). Never filled in by inference."
|
|
305
|
+
},
|
|
306
|
+
"environment": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"enum": ["production", "test"],
|
|
309
|
+
"description": "Tells two instances of one service apart by environment. Without it a test instance and a production instance are told apart by host alone, and a request that names only the environment cannot be answered."
|
|
310
|
+
},
|
|
311
|
+
"projectId": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$",
|
|
314
|
+
"description": "The vendor project this key was issued for, exactly as it appears in a console URL. Lets a URL pick its own key when one team owns several projects."
|
|
315
|
+
},
|
|
316
|
+
"owners": {
|
|
317
|
+
"type": "array",
|
|
318
|
+
"maxItems": 50,
|
|
319
|
+
"uniqueItems": true,
|
|
320
|
+
"items": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,38}$"
|
|
323
|
+
},
|
|
324
|
+
"description": "Organisations or users on the host whose repositories this token is for. Tells two tokens on one host apart."
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"secrets": {
|
|
329
|
+
"type": "object",
|
|
330
|
+
"description": "Slot name to credential-store item name. Always the exact name of an item that exists, never a value; the pipeline never renames an item. Which slots a service accepts is enforced by the resolver.",
|
|
331
|
+
"propertyNames": {
|
|
332
|
+
"enum": [
|
|
333
|
+
"token",
|
|
334
|
+
"username",
|
|
335
|
+
"fallback_token",
|
|
336
|
+
"refresh_token",
|
|
337
|
+
"service_account_json",
|
|
338
|
+
"key_id",
|
|
339
|
+
"issuer_id",
|
|
340
|
+
"private_key",
|
|
341
|
+
"apple_id",
|
|
342
|
+
"password_item",
|
|
343
|
+
"access_token",
|
|
344
|
+
"service_role"
|
|
345
|
+
]
|
|
346
|
+
},
|
|
347
|
+
"additionalProperties": {
|
|
348
|
+
"type": "string",
|
|
349
|
+
"minLength": 1,
|
|
350
|
+
"maxLength": 255,
|
|
351
|
+
"pattern": "^\\S(.*\\S)?$"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"unresolved": {
|
|
355
|
+
"type": "object",
|
|
356
|
+
"additionalProperties": false,
|
|
357
|
+
"required": ["reason"],
|
|
358
|
+
"description": "Written by the migration when the existing data does not say which host this secret belongs to. The resolver refuses an account carrying it; only a person, in setup, takes it off.",
|
|
359
|
+
"properties": {
|
|
360
|
+
"reason": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"enum": ["host-unknown", "host-ambiguous"],
|
|
363
|
+
"description": "host-unknown: no host is recorded for this service at all. host-ambiguous: more than one secret or host is recorded and nothing in the file pairs them."
|
|
364
|
+
},
|
|
365
|
+
"candidateHosts": {
|
|
366
|
+
"type": "array",
|
|
367
|
+
"maxItems": 20,
|
|
368
|
+
"uniqueItems": true,
|
|
369
|
+
"items": {
|
|
370
|
+
"type": "string",
|
|
371
|
+
"pattern": "^[a-z0-9]([a-z0-9.-]{0,251}[a-z0-9])?$"
|
|
372
|
+
},
|
|
373
|
+
"description": "Hosts found in the existing data, offered as choices. Never used to resolve."
|
|
374
|
+
},
|
|
375
|
+
"dismissed": {
|
|
376
|
+
"type": "boolean",
|
|
377
|
+
"default": false,
|
|
378
|
+
"description": "True only when the person chose the permanent option for this question. Setup then stops asking; the resolver still refuses."
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"allOf": [
|
|
384
|
+
{
|
|
385
|
+
"if": {
|
|
386
|
+
"required": ["service"],
|
|
387
|
+
"properties": {
|
|
388
|
+
"service": {
|
|
389
|
+
"enum": ["jira", "confluence", "bitbucket", "fortify", "graylog", "jenkins"]
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"not": {
|
|
393
|
+
"required": ["unresolved"]
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"then": {
|
|
397
|
+
"required": ["scope"],
|
|
398
|
+
"properties": {
|
|
399
|
+
"scope": {
|
|
400
|
+
"required": ["host"]
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"if": {
|
|
407
|
+
"required": ["unresolved"]
|
|
408
|
+
},
|
|
409
|
+
"then": {
|
|
410
|
+
"properties": {
|
|
411
|
+
"scope": {
|
|
412
|
+
"properties": {
|
|
413
|
+
"host": false
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"if": {
|
|
421
|
+
"required": ["service"],
|
|
422
|
+
"properties": {
|
|
423
|
+
"service": {
|
|
424
|
+
"enum": [
|
|
425
|
+
"figma",
|
|
426
|
+
"figma_mcp",
|
|
427
|
+
"firebase",
|
|
428
|
+
"google_play",
|
|
429
|
+
"appstore_connect",
|
|
430
|
+
"vercel",
|
|
431
|
+
"claude_oauth",
|
|
432
|
+
"supabase",
|
|
433
|
+
"usage_ingest"
|
|
434
|
+
]
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"then": {
|
|
439
|
+
"properties": {
|
|
440
|
+
"scope": {
|
|
441
|
+
"properties": {
|
|
442
|
+
"host": false,
|
|
443
|
+
"extraHosts": false
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"if": {
|
|
451
|
+
"required": ["service"],
|
|
452
|
+
"properties": {
|
|
453
|
+
"service": {
|
|
454
|
+
"not": {
|
|
455
|
+
"const": "graylog"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
"then": {
|
|
461
|
+
"properties": {
|
|
462
|
+
"scope": {
|
|
463
|
+
"properties": {
|
|
464
|
+
"environment": false
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"if": {
|
|
472
|
+
"required": ["service"],
|
|
473
|
+
"properties": {
|
|
474
|
+
"service": {
|
|
475
|
+
"not": {
|
|
476
|
+
"enum": ["firebase", "google_play"]
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"then": {
|
|
482
|
+
"properties": {
|
|
483
|
+
"scope": {
|
|
484
|
+
"properties": {
|
|
485
|
+
"projectId": false
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"if": {
|
|
493
|
+
"required": ["service"],
|
|
494
|
+
"properties": {
|
|
495
|
+
"service": {
|
|
496
|
+
"not": {
|
|
497
|
+
"const": "github"
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"then": {
|
|
503
|
+
"properties": {
|
|
504
|
+
"scope": {
|
|
505
|
+
"properties": {
|
|
506
|
+
"owners": false
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
]
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"serviceOptOuts": {
|
|
516
|
+
"type": "array",
|
|
517
|
+
"uniqueItems": true,
|
|
518
|
+
"maxItems": 17,
|
|
519
|
+
"default": [],
|
|
520
|
+
"items": {
|
|
521
|
+
"type": "string",
|
|
522
|
+
"enum": [
|
|
523
|
+
"jira",
|
|
524
|
+
"confluence",
|
|
525
|
+
"bitbucket",
|
|
526
|
+
"github",
|
|
527
|
+
"figma",
|
|
528
|
+
"figma_mcp",
|
|
529
|
+
"fortify",
|
|
530
|
+
"graylog",
|
|
531
|
+
"jenkins",
|
|
532
|
+
"firebase",
|
|
533
|
+
"npm",
|
|
534
|
+
"vercel",
|
|
535
|
+
"claude_oauth",
|
|
536
|
+
"supabase",
|
|
537
|
+
"usage_ingest",
|
|
538
|
+
"appstore_connect",
|
|
539
|
+
"google_play"
|
|
540
|
+
]
|
|
541
|
+
},
|
|
542
|
+
"description": "Services the person chose never to be asked about again. Written only by the explicit permanent option in setup; skipping a question writes nothing, so the next run asks again. The resolver reports optedOut on a not-configured refusal so a caller knows not to prompt."
|
|
543
|
+
},
|
|
227
544
|
"tokenScripts": {
|
|
228
545
|
"type": "object",
|
|
229
546
|
"additionalProperties": {
|
|
@@ -815,7 +1132,7 @@
|
|
|
815
1132
|
"reportChannels": {
|
|
816
1133
|
"type": "object",
|
|
817
1134
|
"additionalProperties": false,
|
|
818
|
-
"description": "v5.7+ - Phase 5 / /multi-agent:channels kanal seçimi default'ları. Multi-select menüde tick'li gelecek kanallar. Her kanal bağımsız boolean. Autopilot Phase 5'de ALWAYS pauses (30-min timeout) - bu değerler sadece menünün önceden seçili halini belirler.",
|
|
1135
|
+
"description": "v5.7+ - Phase 5 / /multi-agent:channels kanal seçimi default'ları. Multi-select menüde tick'li gelecek kanallar. Her kanal bağımsız boolean. Yerel rapor dosyası (task-report.md, agent-log.md'nin yanında) bunlardan biri değil: burada ne seçili olursa olsun, gövde üreten her koşuda yazılır ve ayarı yoktur. Autopilot Phase 5'de ALWAYS pauses (30-min timeout) - bu değerler sadece menünün önceden seçili halini belirler.",
|
|
819
1136
|
"properties": {
|
|
820
1137
|
"pr": {
|
|
821
1138
|
"type": "boolean",
|
|
@@ -858,7 +1175,7 @@
|
|
|
858
1175
|
"technicalAnalysis": {
|
|
859
1176
|
"type": "boolean",
|
|
860
1177
|
"default": false,
|
|
861
|
-
"description": "Changes (değişen dosyalar gruplanıp ne/neden), Architecture (structural decisions), Dependencies (yeni import/framework/paket). PR body'
|
|
1178
|
+
"description": "Changes (değişen dosyalar gruplanıp ne/neden), Architecture (structural decisions), Dependencies (yeni import/framework/paket). PR body'sinde, Confluence sayfasında ve yerel rapor dosyasında render edilir; Jira yorumunda asla. Source: Phase 1 planning + Phase 2 dev log + PR diff stat."
|
|
862
1179
|
},
|
|
863
1180
|
"testScenarios": {
|
|
864
1181
|
"type": "boolean",
|
|
@@ -1395,9 +1712,19 @@
|
|
|
1395
1712
|
},
|
|
1396
1713
|
"pricingModel": {
|
|
1397
1714
|
"type": "string",
|
|
1398
|
-
"enum": [
|
|
1715
|
+
"enum": [
|
|
1716
|
+
"fable",
|
|
1717
|
+
"free",
|
|
1718
|
+
"gpt-5.4",
|
|
1719
|
+
"gpt-5.6",
|
|
1720
|
+
"gpt-5.6-terra",
|
|
1721
|
+
"haiku",
|
|
1722
|
+
"local",
|
|
1723
|
+
"opus",
|
|
1724
|
+
"sonnet"
|
|
1725
|
+
],
|
|
1399
1726
|
"default": "fable",
|
|
1400
|
-
"description": "Which cost-table.json rate to price accumulated tokens at. Defaults to fable (the top tier since v10.6.0) for a deliberately conservative (upper-bound) estimate, so the ceiling trips early rather than late."
|
|
1727
|
+
"description": "Which cost-table.json rate to price accumulated tokens at. Every row the table prices is accepted and nothing else: an enum narrower than the table refuses a host its own rate, and a wider one accepts a value the ledger cannot price. Defaults to fable (the top tier since v10.6.0) for a deliberately conservative (upper-bound) estimate, so the ceiling trips early rather than late."
|
|
1401
1728
|
}
|
|
1402
1729
|
}
|
|
1403
1730
|
},
|
|
@@ -379,7 +379,8 @@
|
|
|
379
379
|
"completedAt",
|
|
380
380
|
"now",
|
|
381
381
|
"subs",
|
|
382
|
-
"subList"
|
|
382
|
+
"subList",
|
|
383
|
+
"tokens"
|
|
383
384
|
],
|
|
384
385
|
"properties": {
|
|
385
386
|
"id": {
|
|
@@ -437,6 +438,26 @@
|
|
|
437
438
|
}
|
|
438
439
|
}
|
|
439
440
|
},
|
|
441
|
+
"tokens": {
|
|
442
|
+
"type": "object",
|
|
443
|
+
"required": ["in", "out", "cached"],
|
|
444
|
+
"x-sensitivity": "none",
|
|
445
|
+
"description": "What this one phase spent, from its own tracker counters. The run's total is the `tokens` beside it on the run record. Added in 1.6.0.",
|
|
446
|
+
"properties": {
|
|
447
|
+
"in": {
|
|
448
|
+
"type": "integer",
|
|
449
|
+
"minimum": 0
|
|
450
|
+
},
|
|
451
|
+
"out": {
|
|
452
|
+
"type": "integer",
|
|
453
|
+
"minimum": 0
|
|
454
|
+
},
|
|
455
|
+
"cached": {
|
|
456
|
+
"type": "integer",
|
|
457
|
+
"minimum": 0
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
},
|
|
440
461
|
"progress": {
|
|
441
462
|
"type": ["number", "null"],
|
|
442
463
|
"minimum": 0,
|
|
@@ -10,14 +10,17 @@
|
|
|
10
10
|
*
|
|
11
11
|
* The package ships without dependencies, so this is a small validator for the
|
|
12
12
|
* keywords the schema uses: type, const, enum, minimum, maximum, pattern,
|
|
13
|
-
* required, properties, additionalProperties, items and uniqueItems. `format
|
|
14
|
-
*
|
|
13
|
+
* required, properties, additionalProperties, items and uniqueItems. `format`
|
|
14
|
+
* and the annotations are not assertions and are not checked; `default` is
|
|
15
|
+
* read only to resolve what an unset field means for the cross-field rules
|
|
16
|
+
* below, which the schema cannot express.
|
|
15
17
|
*
|
|
16
18
|
* @module pipeline/scripts/_autopilot-config
|
|
17
19
|
*/
|
|
18
20
|
|
|
19
21
|
import { readFileSync } from "node:fs";
|
|
20
22
|
import { join } from "node:path";
|
|
23
|
+
import { KIND, queuedKinds } from "./_autopilot-item.mjs";
|
|
21
24
|
|
|
22
25
|
const SCHEMA_PATH = join(import.meta.dirname, "..", "schemas", "autopilot-config.schema.json");
|
|
23
26
|
|
|
@@ -97,8 +100,65 @@ function check(node, v, path, out) {
|
|
|
97
100
|
}
|
|
98
101
|
|
|
99
102
|
/**
|
|
100
|
-
*
|
|
101
|
-
*
|
|
103
|
+
* The label pairs that have to stay apart: one tracker's development queue and
|
|
104
|
+
* its analysis queue. The two kinds run different commands and are recorded
|
|
105
|
+
* under different keys, so a label that means both would make the kind of a
|
|
106
|
+
* picked item depend on which query returned it first.
|
|
107
|
+
*/
|
|
108
|
+
const LABEL_PAIRS = [
|
|
109
|
+
["githubLabel", "analysisGithubLabel"],
|
|
110
|
+
["jiraLabel", "analysisJiraLabel"],
|
|
111
|
+
];
|
|
112
|
+
|
|
113
|
+
/** The repo property definitions, which carry the defaults a repo leaves unset. */
|
|
114
|
+
function repoProperties(doc) {
|
|
115
|
+
return doc?.properties?.repos?.items?.properties || {};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The value a repo actually queues by, default included. The schema's own
|
|
120
|
+
* `default` is read rather than repeated here, so the two cannot drift.
|
|
121
|
+
*/
|
|
122
|
+
function effectiveLabel(repo, field, props) {
|
|
123
|
+
const set = repo[field];
|
|
124
|
+
return typeof set === "string" && set.trim() ? set.trim() : props[field]?.default;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Repos whose analysis label is their development label. Refused rather than
|
|
129
|
+
* resolved: picking one of the two kinds for the operator would run work they
|
|
130
|
+
* did not ask for, in a repo they can write to.
|
|
131
|
+
*
|
|
132
|
+
* Only a repo that is actually in both queues can collide. A repo that never
|
|
133
|
+
* said yes to analysis work has no analysis label in play, so its development
|
|
134
|
+
* label may be named whatever the operator likes - refusing it there would
|
|
135
|
+
* block the whole queue over a second queue the repo is not in.
|
|
136
|
+
*
|
|
137
|
+
* @returns {string[]}
|
|
138
|
+
*/
|
|
139
|
+
function labelCollisions(doc, config) {
|
|
140
|
+
const props = repoProperties(doc);
|
|
141
|
+
const out = [];
|
|
142
|
+
for (const repo of config?.repos || []) {
|
|
143
|
+
if (!repo || typeof repo !== "object" || Array.isArray(repo)) continue;
|
|
144
|
+
if (!queuedKinds(repo).includes(KIND.ANALYSIS)) continue;
|
|
145
|
+
const name = repo.nameWithOwner || "a repo with no nameWithOwner";
|
|
146
|
+
for (const [development, analysis] of LABEL_PAIRS) {
|
|
147
|
+
const dev = effectiveLabel(repo, development, props);
|
|
148
|
+
const ana = effectiveLabel(repo, analysis, props);
|
|
149
|
+
if (dev === undefined || dev !== ana) continue;
|
|
150
|
+
out.push(
|
|
151
|
+
`${name}: ${development} and ${analysis} are both ${JSON.stringify(dev)}, ` +
|
|
152
|
+
`and one label cannot queue both kinds of work - give ${analysis} a name of its own`,
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return out;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Every way `config` breaks the schema, plus the cross-field rules the schema
|
|
161
|
+
* cannot express, as one readable line each. Empty means valid.
|
|
102
162
|
*
|
|
103
163
|
* @param {unknown} config
|
|
104
164
|
* @returns {string[]}
|
|
@@ -112,6 +172,9 @@ export function configProblems(config) {
|
|
|
112
172
|
}
|
|
113
173
|
const out = [];
|
|
114
174
|
check(doc, config, "", out);
|
|
175
|
+
// Only when the shape itself held: a collision line about a field the schema
|
|
176
|
+
// already refused would name a value that is not a label in the first place.
|
|
177
|
+
if (!out.length) out.push(...labelCollisions(doc, config));
|
|
115
178
|
return out;
|
|
116
179
|
}
|
|
117
180
|
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* _autopilot-item.mjs - what a queued item is, for every reader of the queue.
|
|
3
|
+
*
|
|
4
|
+
* An item is a tracker reference plus the kind of work the label it carries
|
|
5
|
+
* asked for: `development`, which runs the pipeline and stops at a pull
|
|
6
|
+
* request, or `analysis`, which runs the analysis command and stops at a
|
|
7
|
+
* document. Intake builds items, the runner launches and records them, and
|
|
8
|
+
* both fold attempted.jsonl under the key defined here - so one ticket can be
|
|
9
|
+
* analysed once and developed once without either run reading the other's row
|
|
10
|
+
* as its own.
|
|
11
|
+
*
|
|
12
|
+
* Zero runtime dependencies (ADR-0004).
|
|
13
|
+
*
|
|
14
|
+
* @module pipeline/scripts/_autopilot-item
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/** The kinds of work a label queues. */
|
|
18
|
+
export const KIND = Object.freeze({
|
|
19
|
+
DEVELOPMENT: "development",
|
|
20
|
+
ANALYSIS: "analysis",
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The kinds of work one repo is queued for.
|
|
25
|
+
*
|
|
26
|
+
* Development is what selecting a repo has always meant, so every configured
|
|
27
|
+
* repo carries it. Analysis is said separately, because the two deliver
|
|
28
|
+
* different things for the same run: `analysisQueue: true` from the arming
|
|
29
|
+
* picker, or an analysis label the operator wrote themselves, which is the same
|
|
30
|
+
* yes said another way. A repo that said neither is never queried for analysis
|
|
31
|
+
* work and never has its analysis labels read.
|
|
32
|
+
*
|
|
33
|
+
* @param {{analysisQueue?: boolean, analysisGithubLabel?: string, analysisJiraLabel?: string}} repo
|
|
34
|
+
* @returns {string[]}
|
|
35
|
+
*/
|
|
36
|
+
export function queuedKinds(repo) {
|
|
37
|
+
const named = (v) => typeof v === "string" && v.trim() !== "";
|
|
38
|
+
const analysis =
|
|
39
|
+
repo?.analysisQueue === true ||
|
|
40
|
+
named(repo?.analysisGithubLabel) ||
|
|
41
|
+
named(repo?.analysisJiraLabel);
|
|
42
|
+
return analysis ? [KIND.DEVELOPMENT, KIND.ANALYSIS] : [KIND.DEVELOPMENT];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Is this item - or this ledger row - analysis work? A row written before the
|
|
47
|
+
* analysis kind existed carries no `kind` and is development, which is what
|
|
48
|
+
* keeps every existing attempted.jsonl row meaning what it meant.
|
|
49
|
+
*
|
|
50
|
+
* @param {{kind?: string}|null|undefined} item
|
|
51
|
+
* @returns {boolean}
|
|
52
|
+
*/
|
|
53
|
+
export function isAnalysis(item) {
|
|
54
|
+
return item?.kind === KIND.ANALYSIS;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The key an item's attempts are recorded and read under. Development keeps
|
|
59
|
+
* the bare `source:id` every existing row carries; analysis carries the
|
|
60
|
+
* `#analysis` suffix, which is the whole of what holds the two apart.
|
|
61
|
+
*
|
|
62
|
+
* @param {{source?: string, id?: string, kind?: string}} item
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
export function historyKey(item) {
|
|
66
|
+
return `${item?.source}:${item?.id}${isAnalysis(item) ? "#analysis" : ""}`;
|
|
67
|
+
}
|
|
@@ -25,6 +25,7 @@ export const OUTCOME = Object.freeze({
|
|
|
25
25
|
PR_OPENED: "pr-opened",
|
|
26
26
|
PUSHED_AWAITING_PR: "pushed-awaiting-pr",
|
|
27
27
|
MERGED: "merged",
|
|
28
|
+
DOC_DELIVERED: "doc-delivered",
|
|
28
29
|
SKIPPED: "skipped",
|
|
29
30
|
COMPLETED_NO_PR: "completed-no-pr",
|
|
30
31
|
STOPPED_INCOMPLETE: "stopped-incomplete",
|
|
@@ -55,11 +56,16 @@ export const OUTCOME = Object.freeze({
|
|
|
55
56
|
* person's, which touches neither the worktree nor the queue: a retry would
|
|
56
57
|
* push the same work again, and parking would hold the repo for a step that
|
|
57
58
|
* does not need it.
|
|
59
|
+
*
|
|
60
|
+
* `doc-delivered` is what an analysis item delivers instead of a pull request:
|
|
61
|
+
* the run wrote its document and stopped there, which is the whole of what the
|
|
62
|
+
* analysis command does, so the item is finished with us.
|
|
58
63
|
*/
|
|
59
64
|
export const TERMINAL = new Set([
|
|
60
65
|
OUTCOME.PR_OPENED,
|
|
61
66
|
OUTCOME.PUSHED_AWAITING_PR,
|
|
62
67
|
OUTCOME.MERGED,
|
|
68
|
+
OUTCOME.DOC_DELIVERED,
|
|
63
69
|
OUTCOME.SKIPPED,
|
|
64
70
|
OUTCOME.COMPLETED_NO_PR,
|
|
65
71
|
]);
|
|
@@ -21,7 +21,7 @@ import { launchRepoAllowed, launchRepos } from "./launch-request.mjs";
|
|
|
21
21
|
import { selectRuns } from "./runs-index.mjs";
|
|
22
22
|
|
|
23
23
|
/** The contract as a whole; pipeline/contract/manifest.json carries the same. */
|
|
24
|
-
export const CONTRACT_VERSION = "2.
|
|
24
|
+
export const CONTRACT_VERSION = "2.4.0";
|
|
25
25
|
/** Confirm tokens held at once; the oldest is dropped past this. */
|
|
26
26
|
export const MAX_CONFIRMS = 256;
|
|
27
27
|
/** How long a kill or gc confirm token stays valid. */
|