github-router 0.3.356 → 0.3.357

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.
Files changed (30) hide show
  1. package/dist/ado-tools-DqLJ-u19.js +1 -0
  2. package/dist/{attribution-settings-CnmV9MSv.js → attribution-settings-D9PxJxkL.js} +4 -4
  3. package/dist/{attribution-settings-CnmV9MSv.js.map → attribution-settings-D9PxJxkL.js.map} +1 -1
  4. package/dist/browser-ext/manifest.json +1 -1
  5. package/dist/{claude-DvR3Y7fu.js → claude-BTYQjK-K.js} +7 -7
  6. package/dist/{claude-DvR3Y7fu.js.map → claude-BTYQjK-K.js.map} +1 -1
  7. package/dist/{codex-DQpSPjpQ.js → codex-TdsG6C9K.js} +5 -5
  8. package/dist/{codex-DQpSPjpQ.js.map → codex-TdsG6C9K.js.map} +1 -1
  9. package/dist/engine-CmhUwYI5.js +1 -0
  10. package/dist/{gate-discovery-B2x_8hNL.js → gate-discovery-NNQg0t0H.js} +2 -2
  11. package/dist/{gate-discovery-B2x_8hNL.js.map → gate-discovery-NNQg0t0H.js.map} +1 -1
  12. package/dist/{internal-stop-hook-Dm-m8RoA.js → internal-stop-hook-Iz8XXE07.js} +2 -2
  13. package/dist/{internal-stop-hook-Dm-m8RoA.js.map → internal-stop-hook-Iz8XXE07.js.map} +1 -1
  14. package/dist/main.js +6 -6
  15. package/dist/{peer-mcp-personas-CVxXq1Q-.js → peer-mcp-personas-GANlrtNR.js} +123 -102
  16. package/dist/peer-mcp-personas-GANlrtNR.js.map +1 -0
  17. package/dist/{pi-D-BgxVhx.js → pi-TKFwPyLA.js} +5 -5
  18. package/dist/{pi-D-BgxVhx.js.map → pi-TKFwPyLA.js.map} +1 -1
  19. package/dist/{provision-DYmZgZDr.js → provision-BNN6yRk8.js} +2 -2
  20. package/dist/{provision-DYmZgZDr.js.map → provision-BNN6yRk8.js.map} +1 -1
  21. package/dist/{serve-DfxxKLFl.js → serve-BaeLm9Um.js} +5 -5
  22. package/dist/{serve-DfxxKLFl.js.map → serve-BaeLm9Um.js.map} +1 -1
  23. package/dist/{server-setup-VYf8ptCH.js → server-setup-BcUQv5ac.js} +3 -3
  24. package/dist/{server-setup-VYf8ptCH.js.map → server-setup-BcUQv5ac.js.map} +1 -1
  25. package/dist/{start-BsY1d26G.js → start-BdoGJc36.js} +3 -3
  26. package/dist/{start-BsY1d26G.js.map → start-BdoGJc36.js.map} +1 -1
  27. package/package.json +1 -1
  28. package/dist/ado-tools-DokE2DbX.js +0 -1
  29. package/dist/engine-DgmsdkCe.js +0 -1
  30. package/dist/peer-mcp-personas-CVxXq1Q-.js.map +0 -1
@@ -15046,12 +15046,35 @@ const CLOUDAGENT_TIER_MODELS = Object.freeze({
15046
15046
  */
15047
15047
  const AGENCY_CODING_PLUGIN = "agency-coding";
15048
15048
  /**
15049
+ * The plugin that reviews the pull request the coding plugin opened.
15050
+ *
15051
+ * Catalog description, measured live on 2026-11-01: "Bundles the review
15052
+ * orchestrator and specialist reviewer agents plus supporting skills (diff
15053
+ * preparation, reviewer planning and dispatch, deduplication, and
15054
+ * finding/comment reconciliation) that produce guideline-based feedback and post
15055
+ * it to the PR via the `ado` MCP." That is the scoped, parallel, bounded review
15056
+ * the workflow asks for, already built, so the directive names this plugin
15057
+ * rather than describing a review process the model would have to improvise.
15058
+ *
15059
+ * `Company` scope, `enabledByDefault: false`, like `agency-coding`: requested
15060
+ * explicitly, and a rename shows up as a synchronous 400 naming the plugin
15061
+ * (`list_plugins` is the check).
15062
+ */
15063
+ const AGENCY_REVIEW_PLUGIN = "agency-review";
15064
+ /**
15049
15065
  * `create_pr_job` runs on the `complex` preset. Turning a ticket into a
15050
15066
  * review-ready pull request is long-horizon work by definition, which is what
15051
15067
  * that preset is for; `create_job` keeps its own `normal` default.
15052
15068
  */
15053
15069
  const PR_JOB_DEFAULT_TIER = "complex";
15054
15070
  /**
15071
+ * Long enough for a specific change description, short enough that `list_jobs`
15072
+ * and the job page show all of it. The value is also the pull request title, and
15073
+ * Azure DevOps caps those at 400 characters, so nothing here is fighting a
15074
+ * service limit: this is a readability bound.
15075
+ */
15076
+ const PR_JOB_TITLE_MAX = 100;
15077
+ /**
15055
15078
  * One client per environment, built lazily.
15056
15079
  *
15057
15080
  * There is no per-call environment argument and no configurable base URL: the
@@ -15459,124 +15482,110 @@ const JOB_ID_PROPERTY = { jobId: {
15459
15482
  * front of the caller's task, and the task is wrapped in <user_task> tags so
15460
15483
  * "how to work" and "what to build" stay distinguishable inside one string.
15461
15484
  *
15462
- * The wording follows the frontier-model guidance current on 2026-10-31:
15463
- * Anthropic's general prompting guide and its Claude Opus 5.5 guide. The
15464
- * choices worth knowing before editing it:
15465
- *
15466
- * - Name the early stops an unattended run tends to take (a status summary,
15467
- * an offer to continue, a decision list for a user who is not there) and
15468
- * say what to do instead. The Opus 5.5 guide is explicit about these.
15469
- * - Give delegation rules, not just permission: the same guide warns that
15470
- * models both over-spawn and under-spawn subagents.
15471
- * - Point at the actual request. A long procedural prompt otherwise invites
15472
- * the model to optimize the process rather than answer the task.
15473
- * - State outcomes and exit criteria rather than reasoning steps, and use
15474
- * plain phrasing instead of stacked emphasis.
15475
- *
15476
- * Keep the version marker, and bump it when the workflow changes: the tests
15477
- * pin the structure, and the marker is what makes a job's behavior traceable
15478
- * to the directive that produced it.
15479
- */
15480
- const PR_JOB_WORKFLOW = `[github-router PR workflow v3]
15481
-
15482
- # Role
15483
-
15484
- You are an autonomous software engineer responsible for one repository and one request. Carry the request in <user_task> from understanding to a review-ready pull request whose required checks pass.
15485
-
15486
- # The request
15487
-
15488
- The text inside <user_task> at the end of this prompt is the actual request. Everything else in this prompt is process: how to work, not what to build. Read <user_task> before you plan or edit, restate it in your own words in your first status note, and check your work against it in every phase. If it is ambiguous, resolve the ambiguity in the way that best serves what it asks for and record the assumption. Do not substitute a different improvement for the one it asks for.
15485
+ * The wording follows the frontier-model guidance current on 2026-11-01:
15486
+ * Anthropic's context-engineering guide, its prompting best practices, and its
15487
+ * Opus 5.5 guide. They reduce to one rule, and it is the rule to apply before
15488
+ * editing this text:
15489
+ *
15490
+ * - EXPLICIT for outcomes, constraints, load-bearing ordering, and
15491
+ * environment facts the model cannot infer. It cannot see that the clone is
15492
+ * ephemeral, that nobody will reply, or which write tools it holds, so those
15493
+ * are stated.
15494
+ * - IMPLICIT for method. The goal is "the smallest set of high-signal tokens
15495
+ * that maximizes the likelihood of the desired outcome", and "minimal does
15496
+ * not necessarily mean short": Claude's reasoning routinely exceeds what a
15497
+ * human would prescribe. So the directive says what good looks like and
15498
+ * leaves the route to the model. That is why there is no "issue parallel
15499
+ * tool calls together" bullet, no prescriptive verification ritual, and no
15500
+ * rule the model already follows.
15501
+ *
15502
+ * Two properties the text must keep:
15503
+ *
15504
+ * - GENERIC. The same tool is called against arbitrary repositories, so the
15505
+ * directive names no organization, project, repository, language or stack.
15506
+ * The one product it names is conditional: `agency-coding` does not bundle
15507
+ * Bluebird (measured 2026-11-01: of the 235 catalog plugins only
15508
+ * `cloudbuild` bundles the Bluebird MCP, and only for CloudBuild failure
15509
+ * diagnosis), so the directive says "use Bluebird semantic / vector search
15510
+ * if available" rather than assuming it.
15511
+ * - NON-OVERRIDING. `# The request` says the request governs what to build and
15512
+ * the directive governs how. Boilerplate may never narrow, widen or replace
15513
+ * a caller's task.
15514
+ *
15515
+ * ORDER IS THE BUG FIX. On 2026-11-01 a job ran 9.19 h, ended
15516
+ * `jobOutcomeType: Succeeded`, and was still classified a failure because it
15517
+ * never committed, pushed or opened a pull request: the earlier text put branch,
15518
+ * commit and push in phase 7, after implementation and two review phases, so a
15519
+ * run that ended early had pushed nothing. The branch is now created and pushed
15520
+ * before any edit exists, and pushes are required at each milestone, so no run
15521
+ * can end holding work that only it has.
15522
+ *
15523
+ * Traceability does not need a version marker. The full directive is stored
15524
+ * verbatim on every job and returned by `get_job` (`prompt:`), and the
15525
+ * structural assertions in tests/cloudagent-tools.test.ts pin it, so a job's
15526
+ * behavior is traceable to the exact text that produced it.
15527
+ */
15528
+ const PR_JOB_WORKFLOW = `# The request
15529
+
15530
+ The text in <user_task> is the request; the title above names it. It governs what to build; what follows governs how, and never changes what it asks for. Where it is ambiguous, resolve it the way that best serves it and record the assumption. If it seems mistaken, or a better approach exists, say so and continue as asked.
15489
15531
 
15490
15532
  # Operating context
15491
15533
 
15492
- - This is a one-shot job. It cannot be resumed, and no one will answer questions while it runs.
15493
- - You start from a fresh clone of the repository and see only this prompt.
15494
- - Repository guidance (AGENTS.md, CLAUDE.md, CONTRIBUTING, build and test docs) is authoritative. Read it first. Where it conflicts with this prompt, follow the repository and note the conflict in your final report.
15495
- - Your tools include the checkout, a shell, and the coding plugin's Azure DevOps write tools for branches, commits, pushes, pull requests, pipelines, and work items.
15496
-
15497
- # Definition of done
15498
-
15499
- 1. A pull request is open from a new branch against the repository's base branch.
15500
- 2. Every required check for that pull request has passed, or each one that cannot pass has a precise written explanation.
15501
- 3. The pull request links a work item.
15502
- 4. Your final report contains the evidence described under Reporting.
15503
-
15504
- # Staying in motion
15534
+ One-shot and unattended, with an ephemeral clone: nobody replies while you work, so work that is not pushed does not survive and a turn that ends on a status report has nowhere to go. Put status notes in the same message as your next tool call, keep a checklist of the request's parts, and keep working until every item is done or blocked. Stop only when the pull request is in the shape below or a blocker needs a human, and report the blocker exactly.
15505
15535
 
15506
- This run is unattended. Nobody will reply while you work, so a turn that ends with a status report has nowhere to go.
15536
+ - Repository guidance (AGENTS.md, CLAUDE.md, CONTRIBUTING, build and test docs) is authoritative: read it first, and where it conflicts with this document, follow the repository and note the conflict.
15537
+ - Your tools include the checkout, a shell, Azure DevOps write tools for branches, commits, pushes, pull requests, pipelines and work items, and the review plugin's reviewers.
15507
15538
 
15508
- - Put status notes in the same message as your next tool call, then continue.
15509
- - Keep a checklist of the request's parts, update it as you go, and keep working until every item is done or blocked.
15510
- - When something you started is still running, such as a background command or a subagent, wait for its result and continue.
15511
- - Stop only when the definition of done is met, or when a blocker genuinely needs a human, and then report the exact blocker.
15539
+ # What a good pull request looks like
15512
15540
 
15513
- # Working style
15541
+ Small enough to review in one sitting and complete enough that merging it needs no follow-up: opened from its own branch against the base branch, with a human-voice title and description explaining what changed, why and how it was validated, the work item linked, every required check passing or a precise written explanation for why one cannot, and reviewers of different scopes satisfied that every finding is fixed or recorded with a reason.
15514
15542
 
15515
- **Delegation.** Use subagents when work can run in parallel, needs isolated context, or splits into independent workstreams that do not share state: exploring separate areas, running independent checks, or reviewing work you produced. Do the sequential work, single-file edits, and steps that need accumulated context yourself. When your tooling supports it, use a separate subagent for the plan review and the implementation review, so the reviewer is independent of the author.
15543
+ # How to get there
15516
15544
 
15517
- **Parallel calls.** When several tool calls are independent, issue them together rather than one at a time. Keep dependent calls sequential.
15545
+ These phases are a route that has worked, not a checklist to satisfy. Work them in order, parallelizing wherever work is independent.
15518
15546
 
15519
- **Scope.** Make the changes the request needs and the changes they require to be correct. Do not add features, refactor surrounding code, or make improvements the request did not ask for. Every change in the plan and the diff should trace to the request or to the correctness of that change.
15547
+ ## 1. Search, read, understand
15548
+ Search before you read: it finds the call sites, definitions and neighbours that reading one file will not; use Bluebird semantic / vector search if available. Read the code, tests and history the request touches until you can state the current behavior, the constraints and what done means.
15520
15549
 
15521
- **Grounding.** Base claims on files you opened and command output you saw. Do not speculate about code you have not read.
15550
+ ## 2. Research
15551
+ Research what you do not know: the repository's conventions, the libraries and APIs involved, prior art in the codebase, and the documented behavior of anything you depend on. Base claims on files you opened and output you saw.
15522
15552
 
15523
- **Quality.** Tests verify correctness; they do not define the solution. Implement the general behavior for all valid inputs rather than the values the tests happen to use. Do not hard-code results or add workarounds that only satisfy the checks.
15553
+ ## 3. Plan
15554
+ Write one plan: the change surface, the smallest set of edits that satisfies the request, the tests that prove it, and the exact build and test commands. Prefer existing utilities and patterns, and keep the change contained: no side effects on existing behavior where possible, and the fewest possible where not.
15524
15555
 
15525
- **Reversibility.** Take local, reversible actions freely. Avoid destructive shortcuts: no force-push, no rewriting published history, no deleting branches, files, or data you do not understand.
15556
+ ## 4. Review the plan adversarially
15557
+ Hand the plan, the request and your evidence to an independent reviewer in a separate subagent, and ask it to attack the plan: wrong assumptions, missing surfaces, over-scoping, untested paths. Resolve each finding or record why it does not apply, then implement.
15526
15558
 
15527
- # Process
15559
+ ## 5. Implement with verification, validation and testing
15560
+ Create the working branch from the base branch and push it before you change anything, so the write path is proven while the branch is still empty. Make the change the plan describes, with tests that would fail without it, and run the repository's format, build, analyzer and test commands as you go, reading their output rather than assuming it passed. Commit in the repository's message style and push at each coherent milestone and before anything long-running: unpushed work is the only work this run can lose.
15528
15561
 
15529
- Work through these phases in order. Parallelize only independent work.
15562
+ ## 6. Create the pull request and link the work item
15563
+ Push any remaining commits and open the pull request, using the job title as its title unless the repository's convention requires another form. Write the description in a human voice, with no attribution trailers such as Co-Authored-By: what changed, why, and how it was validated. Link the work item the request names; when it names none, create one in the project that hosts the repository, following the conventions of nearby work items, and link it. If permissions or missing configuration block creation, record the exact error in the description and continue. If the pipeline does not start on its own, trigger it, so the build runs while the review does.
15530
15564
 
15531
- ## 1. Understand
15532
- Read the repository guidance, then the code, tests, history, and any named work item that the request touches. Confirm what the request actually asks for before proposing a solution. Be able to state the current behavior, the constraints, and the acceptance criteria.
15565
+ ## 7. Review the implementation adversarially
15566
+ Review the pull request, not the working tree: the diff a reviewer sees is what ships. The review plugin is loaded; use its orchestrator, which plans scoped reviewers, dispatches them in parallel and reconciles their findings onto the pull request. Give them what you gave the plan reviewer: the request, the plan, and why the change is shaped this way. Ask for everything they see; deciding what matters is your job, not theirs. Address what is real, commit and push, and re-run only the lenses those fixes could affect, recording in one line why a finding does not apply. Stop when they have returned and every finding is fixed or recorded: time matters, and an early correct result beats a late one.
15533
15567
 
15534
- ## 2. Plan
15535
- Write one plan a reviewer could execute: the change surface, the smallest set of edits that satisfies the request, tests to add or update, the exact build and test commands, rollout and rollback, and the risks. Reuse existing utilities and patterns rather than adding new ones.
15536
-
15537
- ## 3. Review the plan
15538
- Give the plan and your evidence to an independent adversarial reviewer, a separate subagent when one is available. Ask it to attack the plan: wrong assumptions, missing surfaces, over-scoping, untested paths. Resolve each finding or record why it does not apply. Start implementation only after this review.
15539
-
15540
- ## 4. Implement
15541
- Make the change the reviewed plan describes. Add or update tests that would fail without it. Run the repository's documented format, build, analyzer, and test commands as you go. When something fails, fix the cause and keep tests, analyzers, and linters enabled as the repository configures them. Remove any temporary scripts or files you created before you finish.
15542
-
15543
- ## 5. Verify
15544
- Collect real evidence for every claim: command lines and their outcomes, build and test results, and any validation the repository requires. Empirical output beats assumption. If something cannot be verified from your environment, say so explicitly instead of implying it passed.
15545
-
15546
- ## 6. Review the implementation
15547
- Give the diff, the plan, and the verification output to an independent adversarial reviewer, a separate subagent when one is available. It looks for correctness bugs, edge cases, error handling, concurrency, security, and gaps between the diff and the plan. Fix real findings and re-run verification. Repeat until the review is clean or every remaining finding is recorded with a reason.
15548
-
15549
- ## 7. Open the pull request
15550
- Create a new branch from the base branch, commit in the repository's existing message style, push, and open a pull request. Write the title and description in a human voice: what changed, why, how it was validated, and what a reviewer should look at. Use plain prose without em dashes and without attribution trailers such as Co-Authored-By or generated-with footers, because the team's convention is that those read as machine output. When the request names a work item, link it to the pull request.
15551
-
15552
- ## 8. Get the build green
15553
- Watch the pull request's required checks and fix failures on the branch until they pass. While a check is queued or running, wait for it rather than guessing its outcome. If a check cannot pass because of permissions, credentials, an outage, or missing configuration, record its name, its state, and the exact step a human must take. When the repository has no pull request pipeline, run the documented local build and test commands and use their output as the green evidence.
15554
-
15555
- ## 9. Handle the work item
15556
- If the request named a work item, the pull request links that one and this phase is done. Otherwise, once the pull request exists and its required checks pass, create one in the Azure DevOps organization that hosts the repository, in the MSTeams project, not the Teamspace project. Look up recent work items assigned to you (System.AssignedTo = @Me) and reuse their area path, current sprint iteration, priority, and tags where they fit. Write the title and description in a human voice with no em dashes: what changed, why it matters, risk, and the validation evidence. Link the new work item to the pull request. If permissions or a missing project block creation, record the exact error, note it in the pull request description, and continue to Reporting rather than stopping the run.
15568
+ ## 8. Get to a green build
15569
+ Watch the required checks and fix failures until they pass. If one cannot pass because of permissions, credentials, an outage or missing configuration, record its name, its state and the exact step a human must take. With no pull request pipeline, the documented local build and test commands are the green evidence.
15557
15570
 
15558
15571
  # Reporting
15559
15572
 
15560
- Your final message is the handoff. Include:
15561
- - a one-line restatement of what was asked,
15562
- - the pull request id and link,
15563
- - the work item id and link,
15564
- - each check you observed with its final state,
15565
- - the commands you ran and their results,
15566
- - decisions you made without confirmation and why,
15567
- - anything open, unverified, or blocked, with the exact blocker.
15573
+ Your final message is the handoff: the request in one line; the branch and last commit pushed; the pull request id, link and title; the work item id and link; each check with its final state; the commands you ran and their results; what each reviewer found; decisions you made without confirmation and why; and anything open, unverified or blocked, with the exact blocker.
15568
15574
 
15569
- # Working rules
15575
+ # Guardrails
15570
15576
 
15571
- - Keep secrets out of everything you emit or commit. Reference sensitive files such as .env, *.pem, and *.key by path only, and do not read their contents into output.
15572
- - Work on a new branch and open a pull request. The default branch stays untouched so a human can gate the change.
15573
- - Keep one logical change per pull request; unrelated fixes belong on their own branch.
15574
- - If the request is already satisfied, or cannot be done with the access you have, stop and report exactly what you found and what a human needs to do next.
15575
- - Leave the pull request open for review. Merging stays with a human.
15577
+ - Keep secrets out of everything you emit or commit; reference .env, *.pem and *.key by path only.
15578
+ - Tests verify correctness, they do not define the solution: implement the general behavior, not the values the tests happen to use.
15579
+ - Leave the pull request open; merging stays with a human.
15576
15580
 
15577
15581
  # Task`;
15578
- function composePrJobPrompt(task) {
15579
- return `${PR_JOB_WORKFLOW}\n\n<user_task>\n${task.trim()}\n</user_task>`;
15582
+ /**
15583
+ * The title is composed ahead of the directive so the prompt opens with the
15584
+ * job's own name, which is what a human reading `get_job` or the job page sees
15585
+ * first, and what `# The request` refers to when it says "the title above".
15586
+ */
15587
+ function composePrJobPrompt(task, title) {
15588
+ return `# Title\n\n${title}\n\n${PR_JOB_WORKFLOW}\n\n<user_task>\n${task.trim()}\n</user_task>`;
15580
15589
  }
15581
15590
  const CLOUDAGENT_TOOLS = Object.freeze([
15582
15591
  {
@@ -15692,15 +15701,19 @@ const CLOUDAGENT_TOOLS = Object.freeze([
15692
15701
  toolNameHttp: "create_pr_job",
15693
15702
  group: CLOUDAGENT_GROUP,
15694
15703
  capability: "cloudagent_write",
15695
- description: "Runs an autonomous coding agent in the Microsoft cloud that takes one request from understanding to a review-ready pull request, and returns immediately with a job id. It is create_job with three decisions already made: the `agency-coding` plugin is loaded (branch, commit, push, pull request, pipeline and work item tools), the model defaults to claude-opus-5.5 at max reasoning effort (the `complex` tier), and a fixed engineering workflow is prepended to `prompt`: research, a reviewed plan, implementation with tests, an independent adversarial review of the change, the pull request, a green build, and a work item that links it. You supply the task in `prompt`; the workflow and its conventions are added automatically, so do not restate them. A job is ONE-SHOT: it runs unattended for a median of about an hour and can run for many hours, cannot be messaged, and cannot be resumed. The job leaves its pull request open for a human to review and never merges. Confirm with the user before creating a job they did not explicitly ask for: it spends real compute for an hour or more. After it returns, poll with get_job, or use wait_for_job once to confirm the job left the queue.",
15704
+ description: "Runs an autonomous coding agent in the Microsoft cloud that takes one request from understanding to a review-ready pull request, and returns immediately with a job id. It is create_job with three decisions already made: the `agency-coding` and `agency-review` plugins are loaded (branch, commit, push, pull request, pipeline and work item tools, plus a review orchestrator that dispatches scoped reviewers in parallel and reconciles their findings onto the pull request), the model defaults to claude-opus-5.5 at max reasoning effort (the `complex` tier), and a fixed engineering workflow is prepended to `prompt`: search and understand, research, a plan, an adversarial review of that plan, implementation with tests, the pull request and its work item, an adversarial review of the change, and a green build. You supply the task in `prompt` and the job's name in `title`; the workflow and its conventions are added automatically, so do not restate them. A job is ONE-SHOT: it runs unattended for a median of about an hour and can run for many hours, cannot be messaged, and cannot be resumed. The job leaves its pull request open for a human to review and never merges. Confirm with the user before creating a job they did not explicitly ask for: it spends real compute for an hour or more. After it returns, poll with get_job, or use wait_for_job once to confirm the job left the queue.",
15696
15705
  inputSchema: {
15697
15706
  type: "object",
15698
- required: ["prompt"],
15707
+ required: ["prompt", "title"],
15699
15708
  additionalProperties: false,
15700
15709
  properties: {
15710
+ title: {
15711
+ type: "string",
15712
+ description: "The job's name, at most 100 characters on one line, e.g. \"Fix shared-channel membership revocation\". It is what list_jobs and get_job show first, it opens the prompt so the agent knows what it is working on, and it becomes the pull request title unless the repository's convention requires another form. Name the change, not the ticket."
15713
+ },
15701
15714
  prompt: {
15702
15715
  type: "string",
15703
- description: "The task, written as a brief rather than a one-liner: the outcome wanted, how the caller will know it is done, constraints, relevant links, and the work item id if one already exists. This is the request the job answers; the workflow, plugin and model come from the tool, so do not restate them. The agent starts from a fresh clone and sees nothing else."
15716
+ description: "The task, written as a brief rather than a one-liner: the outcome wanted, how the caller will know it is done, constraints, relevant links, and the work item id if one already exists. This is the request the job answers; the workflow, plugins and model come from the tool, so do not restate them. The agent starts from a fresh clone and sees nothing else."
15704
15717
  },
15705
15718
  ...REPOSITORY_PROPERTIES,
15706
15719
  branch: {
@@ -15741,19 +15754,27 @@ const CLOUDAGENT_TOOLS = Object.freeze([
15741
15754
  const branch = optionalString(args, "branch");
15742
15755
  const task = optionalString(args, "prompt");
15743
15756
  if (!task) throw new CloudAgentError("`prompt` is required: it is the task the job works on, and the fixed workflow cannot supply one.", { retriable: false });
15757
+ const title = optionalString(args, "title");
15758
+ if (!title) throw new CloudAgentError("`title` is required: it names the job and becomes the pull request title.", { retriable: false });
15759
+ if (/[\r\n]/.test(title)) throw new CloudAgentError("`title` must be a single line: it is the job's name in list_jobs and the pull request title.", { retriable: false });
15760
+ if (title.length > PR_JOB_TITLE_MAX) throw new CloudAgentError(`\`title\` must be at most ${PR_JOB_TITLE_MAX} characters; it is a name, not a summary.`, { retriable: false });
15744
15761
  const model = resolveModelConfiguration(args, PR_JOB_DEFAULT_TIER);
15745
15762
  const metadata = metadataArg(args);
15763
+ if (metadata && Object.prototype.hasOwnProperty.call(metadata, "title")) throw new CloudAgentError("`metadata.title` is reserved on create_pr_job; pass the job name as `title`.", { retriable: false });
15746
15764
  const request = buildGenericJobRequest({
15747
- prompt: composePrJobPrompt(task),
15765
+ prompt: composePrJobPrompt(task, title),
15748
15766
  repository: {
15749
15767
  organization: repository.organization,
15750
15768
  project: repository.project,
15751
15769
  repository: repository.repository,
15752
15770
  ...branch ? { branch } : {}
15753
15771
  },
15754
- plugins: [{ name: AGENCY_CODING_PLUGIN }],
15772
+ plugins: [{ name: AGENCY_CODING_PLUGIN }, { name: AGENCY_REVIEW_PLUGIN }],
15755
15773
  modelConfiguration: model.modelConfiguration,
15756
- ...metadata ? { metadata } : {}
15774
+ metadata: {
15775
+ title,
15776
+ ...metadata ?? {}
15777
+ }
15757
15778
  });
15758
15779
  const job = await cloudAgentClient().createJob(request);
15759
15780
  const provenance = provenanceLine(repository);
@@ -37519,4 +37540,4 @@ function enumerateInjectedMcpToolNames(groupKeys, opts = {}) {
37519
37540
  //#endregion
37520
37541
  export { readIteratorWithTimeout as $, getTokenCount as $t, TOOLBELT_TOOLS$1 as A, DEFAULT_PORT as An, fastAstraModel as At, injectAdvisorTool as B, catalogAdvertises1M as Bn, kustoToolsEnabled as Bt, runWorkerAgent as C, collapsePathKeys as Cn, cheapOracleModel as Ct, toolbeltEnabled as D, DEFAULT_CLAUDE_MODEL_FALLBACKS as Dn, cheapestReviewerModel as Dt, buildToolbeltAwareness as E, BUDGET_SMALL_FAST_SLUG as En, cheapestOracleModel as Et, ADVISOR_TOOL_INSTRUCTIONS as F, pickClaudeDefault as Fn, fastScoutModel as Ft, formatThinkingRepairDecline as G, CHEAP_PROFILE_MODELS as Gn, scoutModel as Gt, resolveAdvisorEffort as H, withOneMSuffix as Hn, resolveGeminiReviewModel as Ht, CHEAPEST_ADVISOR_TOOL_INSTRUCTIONS as I, resolveLeadSlugArg as In, fleetToolsEnabled as It, repairRejectedThinkingHistory as J, CHEAP_PROFILE_NATIVE_MODELS as Jn, workerToolsEnabled as Jt, rememberThinkingHistoryRepair as K, CHEAP_PROFILE_NATIVE_AGENT_NAMES as Kn, scribeModel as Kt, CHEAPEST_REVIEWER_ADVISOR_TOOL_INSTRUCTIONS as L, upstreamAllowH2 as Ln, geminiAvailable as Lt, satisfiesMinVersion as M, UPSTREAM_INACTIVITY_TIMEOUT_MS as Mn, fastOracleModel as Mt, searchWeb as N, generateRandomPort as Nn, fastPlanModel as Nt, toolbeltSkipSet as O, DEFAULT_CODEX_MODEL as On, cloudAgentToolsEnabled as Ot, ADVISOR_INTERNAL_TOOL_NAME as P, isBudgetClaudeLead as Pn, fastReviewerModel as Pt, logStreamError as Q, getTextTokenCount as Qt, FAST_ADVISOR_TOOL_INSTRUCTIONS as R, upstreamMaxConnections as Rn, generalPurposeFastModel as Rt, resolveWorkerRunOpts as S, shouldUseInsecureTls as Sn, cheapAdvisorModel as St, availableToolCommands as T, BUDGET_SMALL_FAST_CATALOG_ID as Tn, cheapestAdvisorModel as Tt, resolveAdvisorModel as U, withOneMSuffixForLead as Un, reviewerFastModel as Ut, isAdvisorRequested as V, oneMContextDisabled as Vn, nativeSubagentModel as Vt, resolveCheapestAdvisorModel as W, CHEAP_PROFILE_ADVISOR_CLIENT_MODEL as Wn, reviewerModel as Wt, buildOpenAIErrorEvent as X, countTokens as Xt, buildAnthropicErrorEvent as Y, CHEAP_PROFILE_SUBAGENT_CONTEXT_TOKENS as Yn, shimDefaultsToXhigh as Yt, isControllerClosedError as Z, createMessages as Zt, REVIEW_DEFAULT_MODEL as _, CONDENSED_OPERATING_SEQUENCE as _n, balancedReviewerModel as _t, buildAgentPrompt as a, warnOnTokenPriceDrift as an, handleMcpDelete as at, resolveDefaultModel as b, provisionAndIndexColbert as bn, browserCompoundToolsEnabled as bt, enumerateInjectedMcpToolNames as c, createChatCompletions as cn, buildAdoToolEntries as ct, BROWSE_DEFAULT_MODEL as d, parseJsonOrDiagnose as dn, ADO_DEFAULT_TOOLSETS as dt, getTokenizerFromModel as en, relayAnthropicStream as et, DEFAULT_MODEL_CHAIN as f, normalizeOpenAIUsage as fn, normalizeAdoToolsets as ft, PLAN_DEFAULT_MODEL as g, normalizeKustoClusterUri as gn, balancedOracleModel as gt, IMPLEMENT_DEFAULT_MODEL as h, normalizeCloudAgentEnvironment as hn, artifactToolsEnabled as ht, assertMcpToolSurfaceConsistent as i, assembleResponsesPayload as in, clampEffort as it, assetFor as j, UPSTREAM_FETCH_TIMEOUT_MS as jn, fastGeneralPurposeModel as jt, vscodeRipgrepPath as k, DEFAULT_CODEX_MODEL_FALLBACKS as kn, fastAdvisorModel as kt, maxPersonasFor as l, MAX_RESPONSE_BODY_BYTES as ln, disposeAdoClients as lt, EXPLORE_DEFAULT_THINKING as m, hasSupportedBrowserInstalled as mn, agentToolsEnabled as mt, MCP_GROUPS as n, registerLaunch as nn, UNKNOWN_EFFORT_ANCHOR as nt, buildPeerAwarenessSnippet as o, resolveMcpToolTimeoutMs as on, handleMcpPost as ot, EXPLORE_DEFAULT_MODEL as p, provisionBrowserAssets as pn, adoToolsEnabled as pt, repairKnownThinkingHistory as q, CHEAP_PROFILE_NATIVE_EFFORTS as qn, standInToolEnabled as qt, agentNamesForToolAllowlist as r, unregisterLaunch as rn, bucketEffort as rt, buildPeerAwarenessSummary as s, createResponses as sn, adoMcpToolEntries as st, GROUP_META as t, findLaunchBySecret as tn, EFFORT_ORDER as tt, personasFor as u, readResponseBodyCapped as un, provisionAdoTools as ut, TEST_DEFAULT_MODEL as v, DEFINITION_OF_GREATNESS as vn, brainstormModel as vt, buildEnv as w, toolbeltPathOverride as wn, cheapReviewerModel as wt, resolveModeDefaults as x, semanticSearchOptedIn as xn, browserToolsEnabled as xt, appendPlanReminder as y, colbertDegradedWarning as yn, browseAgentEnabled as yt, buildAdvisorStream as z, classifyMessagesRoute as zn, implementerFastModel as zt };
37521
37542
 
37522
- //# sourceMappingURL=peer-mcp-personas-CVxXq1Q-.js.map
37543
+ //# sourceMappingURL=peer-mcp-personas-GANlrtNR.js.map