orkestrator 2.36.2-beta → 2.36.3-beta
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/client.js +114 -46
- package/dist/main.js +168870 -163834
- package/package.json +3 -3
- package/resources/acp-bridge/dist/index.js +60 -4
- package/resources/claude-bridge/dist/index.js +93 -5
- package/resources/codex-bridge/dist/index.js +62 -4
- package/resources/cursor-bridge/dist/index.js +41 -4
- package/resources/cursor-bridge/runtime/install.json +1 -1
- package/resources/pi-bridge/dist/index.js +61 -5
- package/resources/pi-bridge/runtime/install.json +1 -1
package/dist/client.js
CHANGED
|
@@ -7080,7 +7080,7 @@ var PUBLIC_ACTIONS = {
|
|
|
7080
7080
|
effects: ["metadata", "provider-session"],
|
|
7081
7081
|
observation: "receipt",
|
|
7082
7082
|
milestone: "D",
|
|
7083
|
-
summary: "Start an environment's Multi Review, as the Multi Review button does: reviewers, consolidation, then optional
|
|
7083
|
+
summary: "Start an environment's Multi Review, as the Multi Review button does: reviewers, consolidation, then optional Address Findings and PR, with saved defaults for what is omitted; an active review is reused."
|
|
7084
7084
|
},
|
|
7085
7085
|
"review.list": {
|
|
7086
7086
|
version: 1,
|
|
@@ -7096,7 +7096,7 @@ var PUBLIC_ACTIONS = {
|
|
|
7096
7096
|
effects: [],
|
|
7097
7097
|
observation: "immediate",
|
|
7098
7098
|
milestone: "D",
|
|
7099
|
-
summary: "Read one Multi Review: phase, reviewers, consolidation,
|
|
7099
|
+
summary: "Read one Multi Review: phase, reviewers, consolidation, Address Findings and PR steps."
|
|
7100
7100
|
},
|
|
7101
7101
|
"review.open": {
|
|
7102
7102
|
version: 1,
|
|
@@ -7104,7 +7104,7 @@ var PUBLIC_ACTIONS = {
|
|
|
7104
7104
|
effects: ["metadata"],
|
|
7105
7105
|
observation: "receipt",
|
|
7106
7106
|
milestone: "D",
|
|
7107
|
-
summary: "Open or focus a Multi Review's root tab or its
|
|
7107
|
+
summary: "Open or focus a Multi Review's root tab or its Address Findings tab; starts no work."
|
|
7108
7108
|
},
|
|
7109
7109
|
"review.address": {
|
|
7110
7110
|
version: 1,
|
|
@@ -7112,7 +7112,7 @@ var PUBLIC_ACTIONS = {
|
|
|
7112
7112
|
effects: ["provider-session"],
|
|
7113
7113
|
observation: "receipt",
|
|
7114
7114
|
milestone: "D",
|
|
7115
|
-
summary: "Address a Multi Review's findings: hand them to its
|
|
7115
|
+
summary: "Address a Multi Review's findings: hand them to its Address Findings session (the Address findings button)."
|
|
7116
7116
|
},
|
|
7117
7117
|
"review.cancel": {
|
|
7118
7118
|
version: 1,
|
|
@@ -8226,6 +8226,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
|
|
|
8226
8226
|
"address_multi_review",
|
|
8227
8227
|
"adopt_workflow",
|
|
8228
8228
|
"answer_worker_question",
|
|
8229
|
+
"ask_agents",
|
|
8229
8230
|
"cancel_build_pipeline",
|
|
8230
8231
|
"cancel_graph_run",
|
|
8231
8232
|
"cancel_multi_review",
|
|
@@ -8941,6 +8942,7 @@ var ENVIRONMENT_LOG_AREAS = defineLogAreas({
|
|
|
8941
8942
|
"status.docker-error": "A transient Docker error stopped a status read, so the stored status is kept.",
|
|
8942
8943
|
"setup.clear-launch-failed": "A pending agent launch could not be cleared after setup failed.",
|
|
8943
8944
|
"setup.record-failure-failed": "A setup failure before its first attempt could not be recorded.",
|
|
8945
|
+
"setup.tab-publish-failed": "The setup terminal's tab could not be published.",
|
|
8944
8946
|
"lifecycle.failed": "Starting, rebuilding or recreating an environment failed; `operation` says which.",
|
|
8945
8947
|
"tab-teardown.pending": "A tab's teardown failed and stays pending; the reconcile sweep retries.",
|
|
8946
8948
|
"tab-reconcile.skipped": "Orphaned tab reconciliation was skipped because pane layouts are unreadable.",
|
|
@@ -9148,6 +9150,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
9148
9150
|
"turn-recovery.failed": "Recovering an incomplete turn failed.",
|
|
9149
9151
|
"turn-recovery.exhausted": "A turn failed again after automatic recovery and is left for the user.",
|
|
9150
9152
|
"turn-recovery.retrying": "An incomplete or provider-failed turn is being retried automatically.",
|
|
9153
|
+
"usage-limit.notice-failed": "A usage-limit stop's outcome could not be read for its notice.",
|
|
9151
9154
|
"usage-limit.resend-failed": "Resending after a usage limit failed. An unknown send stays in the journal.",
|
|
9152
9155
|
"title.strategy-failed": "A session title strategy failed, so the next is tried. Content-free: the error can quote the prompt.",
|
|
9153
9156
|
...THROTTLE_LOG_EVENTS
|
|
@@ -9164,6 +9167,15 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
9164
9167
|
"recover.failed": "Goals could not be recovered at startup."
|
|
9165
9168
|
}
|
|
9166
9169
|
},
|
|
9170
|
+
"native-agent.subork": {
|
|
9171
|
+
description: "Suborks: the ask_agents calls a native agent makes. Content-free.",
|
|
9172
|
+
events: {
|
|
9173
|
+
"pass.failed": "A pass over a call failed, so a later pass retries. Counts only.",
|
|
9174
|
+
"delivery.failed": "A call's answers could not be placed in the caller's mailbox yet. Error class only.",
|
|
9175
|
+
"retention.failed": "An old call could not be removed.",
|
|
9176
|
+
"sweep.failed": "A running call's caller could not be checked; the next sweep looks again."
|
|
9177
|
+
}
|
|
9178
|
+
},
|
|
9167
9179
|
"native-agent.opencode": {
|
|
9168
9180
|
description: "The OpenCode provider: its request monitor, retries and agent tools.",
|
|
9169
9181
|
events: {
|
|
@@ -9604,6 +9616,11 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
9604
9616
|
"wake.observe-pull-request-failed": "A pull request could not be observed for status wakes.",
|
|
9605
9617
|
"wake.observe-feature-plan-failed": "A feature plan could not be observed for status wakes.",
|
|
9606
9618
|
"wake.observe-workflow-failed": "A workflow could not be observed for status wakes.",
|
|
9619
|
+
"notice.outbox-refused": "A leaf's outbox refused a coordinator notice, so its own coordinator takes it.",
|
|
9620
|
+
"notice.start-main-failed": "A coordinator notice could not start a main coordinator; it waits for one to open.",
|
|
9621
|
+
"notice.take-back-unread": "A notice handed back from a command node found no open coordinator here.",
|
|
9622
|
+
"limit-stop.own": "A coordinator's own usage-limit stop attempted to move it off the account.",
|
|
9623
|
+
"limit-stop.notice-failed": "A usage-limit notice could not be sent; it stays in the ledger for the next attempt.",
|
|
9607
9624
|
"wake.deliver-failed": "A workflow status wake could not be delivered; the next pass retries.",
|
|
9608
9625
|
"wake.waiting-check-failed": "A waiting worker could not be checked; the next pass retries.",
|
|
9609
9626
|
"wake.resolve-report-failed": "A finished Resolve tab could not be reported.",
|
|
@@ -9634,15 +9651,15 @@ var REVIEW_LOG_AREAS = defineLogAreas({
|
|
|
9634
9651
|
review: {
|
|
9635
9652
|
description: "Multi Review workflows: scheduling, graph runs and interactive fix sessions.",
|
|
9636
9653
|
events: {
|
|
9637
|
-
"fix-tab.publish-failed": "A
|
|
9654
|
+
"fix-tab.publish-failed": "A Address Findings request was delivered but its tab could not be opened; the user is told.",
|
|
9638
9655
|
"graph-run.not-started": "A workflow's graph run did not start.",
|
|
9639
9656
|
"reconcile.scan-failed": "A reconciliation scan failed; the next scan retries.",
|
|
9640
9657
|
"graph-engine.unavailable": "The graph engine is selected but unavailable, so the bespoke engine runs.",
|
|
9641
9658
|
"graph-run.cancel-failed": "Cancelling a graph run failed; the next pass projects how it ended.",
|
|
9642
9659
|
"delete.cleanup-failed": "A cleanup step after deleting a workflow failed; stale tabs reconcile away on hydration.",
|
|
9643
|
-
"fix-session.read-failed": "Reading an interactive
|
|
9660
|
+
"fix-session.read-failed": "Reading an interactive Address Findings session's state failed.",
|
|
9644
9661
|
"fix-outcome.read-failed": "Reading an interactive fix's outcome failed; it stays pending.",
|
|
9645
|
-
"fix-usage.read-failed": "Reading
|
|
9662
|
+
"fix-usage.read-failed": "Reading an Address Findings session's token usage failed.",
|
|
9646
9663
|
"result.consume-deferred": "Consuming a workflow result failed; it stays staged and is retried.",
|
|
9647
9664
|
"failure-triage.failed": "Classifying a review package's failing tests failed; the package is sealed without the triage and says so."
|
|
9648
9665
|
}
|
|
@@ -9695,6 +9712,7 @@ var AGENT_ACCOUNTS_LOG_AREAS = defineLogAreas({
|
|
|
9695
9712
|
"agent-accounts": {
|
|
9696
9713
|
description: "Agent accounts: automatic switching, staged logins and plan usage.",
|
|
9697
9714
|
events: {
|
|
9715
|
+
"limit-stop-notice.failed": "A session's usage-limit stop could not be reported.",
|
|
9698
9716
|
"switch-notice.failed": "A notice about an automatic account switch failed; the switch stands. `audience` says whose.",
|
|
9699
9717
|
"auto-switch.check-failed": "An automatic account check failed; the next nudge retries.",
|
|
9700
9718
|
"container-sync.failed": "Handing a login or account to a container failed; `step` says which part.",
|
|
@@ -9713,6 +9731,17 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
9713
9731
|
description: "Docker containers: lifecycle, starts, staged inputs and the login files they hold.",
|
|
9714
9732
|
events: {
|
|
9715
9733
|
"portable-inputs.relay-missing": "Docker is rootless and the image predates the staged-input relay, so the container cannot read them until rebuilt.",
|
|
9734
|
+
"git-mirror.mount-unavailable": "A new container gets no project Git mirror, so its clone goes to the remote.",
|
|
9735
|
+
"git-mirror.refreshed": "A project's Git mirror was built or updated.",
|
|
9736
|
+
"git-mirror.refresh-failed": "A project's Git mirror could not be updated. New clones still work, from the mirror as it was or from the remote.",
|
|
9737
|
+
"git-mirror.low-disk": "A project's Git mirror was not updated: the disk is nearly full.",
|
|
9738
|
+
"git-mirror.oversized": "A project's repository is too large for a Git mirror, so its environments keep the blobless clone.",
|
|
9739
|
+
"git-mirror.compact-failed": "A project's Git mirror could not be compacted.",
|
|
9740
|
+
"git-mirror.state-write-failed": "A project's Git mirror could not be marked for checking.",
|
|
9741
|
+
"git-mirror.remove-failed": "A project's Git mirror could not be removed; a sweep retries.",
|
|
9742
|
+
"git-mirror.orphans-removed": "Git mirrors of removed projects were removed.",
|
|
9743
|
+
"git-mirror.clone-used": "A new environment cloned from its project's Git mirror.",
|
|
9744
|
+
"git-mirror.clone-fallback": "A new environment could not clone from its project's Git mirror and cloned from the remote.",
|
|
9716
9745
|
"project-seed.refused": "A project .env, .env.local or opencode.json was not copied into a new container: a link, not a regular file, outside the project, too large or unreadable.",
|
|
9717
9746
|
"opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
|
|
9718
9747
|
"lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
|
|
@@ -9861,8 +9890,12 @@ var NODES_LOG_AREAS = defineLogAreas({
|
|
|
9861
9890
|
nodes: {
|
|
9862
9891
|
description: "Command nodes: links, handovers, leaf mail, ticket sync and project copies.",
|
|
9863
9892
|
events: {
|
|
9893
|
+
...THROTTLE_LOG_EVENTS,
|
|
9864
9894
|
"actions.resume-failed": "Approved actions could not be resumed; a later pass retries.",
|
|
9865
9895
|
"project-copy.notify-failed": "The coordinator could not be told a project copy finished.",
|
|
9896
|
+
"mail.return-deferred": "The leaf refused returned mail; it remains queued for retry.",
|
|
9897
|
+
"notices.take-back-failed": "A notice for this node's coordinator stayed in the outbox.",
|
|
9898
|
+
"notice.collected-retired": "A detached controller owned a notice with ambiguous delivery; retired without redelivery.",
|
|
9866
9899
|
"mail.delivery-deferred": "Leaf mail could not reach a coordinator yet.",
|
|
9867
9900
|
"command.post-step-failed": "A step after a routed command failed.",
|
|
9868
9901
|
"seed-files.incomplete": "Seed files for a leaf environment were not all copied.",
|
|
@@ -10378,6 +10411,7 @@ var WEB_SYNC_LOG_AREAS = defineLogAreas({
|
|
|
10378
10411
|
"web.read-coordinator": {
|
|
10379
10412
|
description: "The renderer's coalesced, bounded backend reads.",
|
|
10380
10413
|
events: {
|
|
10414
|
+
"poll.read-failed": "A coordinated poll's read failed; it stays on its interval.",
|
|
10381
10415
|
"listener.threw": "A read state listener threw.",
|
|
10382
10416
|
"read.settle-failed": "Applying a finished read's result threw."
|
|
10383
10417
|
}
|
|
@@ -10971,7 +11005,7 @@ import path5 from "path";
|
|
|
10971
11005
|
// ../../apps/backend/package.json
|
|
10972
11006
|
var package_default = {
|
|
10973
11007
|
name: "@orkestrator/backend",
|
|
10974
|
-
version: "2.36.
|
|
11008
|
+
version: "2.36.3-beta",
|
|
10975
11009
|
private: true,
|
|
10976
11010
|
type: "module",
|
|
10977
11011
|
exports: {
|
|
@@ -11766,6 +11800,7 @@ var PROJECTION_FIELD_SET = new Set([
|
|
|
11766
11800
|
"asyncQuestionResponses",
|
|
11767
11801
|
"contextUsage",
|
|
11768
11802
|
"goal",
|
|
11803
|
+
"suborks",
|
|
11769
11804
|
"rateLimits",
|
|
11770
11805
|
"runtime",
|
|
11771
11806
|
"runtimeHealthAuthoritative",
|
|
@@ -11791,6 +11826,7 @@ var OPTIONAL_PROJECTION_FIELD_SET = new Set([
|
|
|
11791
11826
|
"asyncQuestionResponses",
|
|
11792
11827
|
"contextUsage",
|
|
11793
11828
|
"goal",
|
|
11829
|
+
"suborks",
|
|
11794
11830
|
"rateLimits",
|
|
11795
11831
|
"runtime",
|
|
11796
11832
|
"runtimeHealthAuthoritative",
|
|
@@ -12123,6 +12159,7 @@ var WORKFLOW_RESULT_KINDS = [
|
|
|
12123
12159
|
"fix-result",
|
|
12124
12160
|
"verification-result",
|
|
12125
12161
|
"pr-result",
|
|
12162
|
+
"subork-answer",
|
|
12126
12163
|
"graph-output",
|
|
12127
12164
|
"graph-template"
|
|
12128
12165
|
];
|
|
@@ -12138,7 +12175,8 @@ var WORKFLOW_RESULT_TOOL_NAMES = {
|
|
|
12138
12175
|
"verification-result": "submit_verification_result",
|
|
12139
12176
|
"pr-result": "submit_pr_result",
|
|
12140
12177
|
"graph-output": "submit_graph_output",
|
|
12141
|
-
"graph-template": "submit_graph_template"
|
|
12178
|
+
"graph-template": "submit_graph_template",
|
|
12179
|
+
"subork-answer": "submit_subork_answer"
|
|
12142
12180
|
};
|
|
12143
12181
|
var WORKFLOW_RESULT_VALIDATION_TOOL_NAME = "validate_workflow_result";
|
|
12144
12182
|
var GRAPH_PORT_SUBMIT_PREFIX = "submit_";
|
|
@@ -13158,8 +13196,8 @@ for (const definition of TICKET_SECTION_DEFINITIONS) {
|
|
|
13158
13196
|
KEY_BY_HEADING.set(normalizedHeading(alias), definition.key);
|
|
13159
13197
|
}
|
|
13160
13198
|
|
|
13161
|
-
// ../protocol/src/build-pipeline-address-report.ts
|
|
13162
|
-
var
|
|
13199
|
+
// ../protocol/src/build-pipeline-address-findings-report.ts
|
|
13200
|
+
var PIPELINE_ADDRESS_FINDINGS_RESULT_LIMITS = Object.freeze({
|
|
13163
13201
|
summaryLength: 4000,
|
|
13164
13202
|
filesChanged: 48,
|
|
13165
13203
|
pathLength: 300,
|
|
@@ -13419,7 +13457,7 @@ var BUILD_ACTION_INPUTS = Object.freeze({
|
|
|
13419
13457
|
type: "integer",
|
|
13420
13458
|
minimum: 1,
|
|
13421
13459
|
maximum: MAX_BUILD_PIPELINE_ITERATIONS,
|
|
13422
|
-
description: `Review,
|
|
13460
|
+
description: `Review, address findings, verify and rework rounds before the pipeline gives up, from 1 to ${MAX_BUILD_PIPELINE_ITERATIONS}. Omitted: 3.`
|
|
13423
13461
|
}
|
|
13424
13462
|
}, ["projectId", "ticketId"]),
|
|
13425
13463
|
examples: [
|
|
@@ -15071,23 +15109,35 @@ var workflowCommands = [
|
|
|
15071
15109
|
valueName: "SELECTION",
|
|
15072
15110
|
description: `Preparation and consolidation model: ${SELECTION_HELP}`
|
|
15073
15111
|
},
|
|
15112
|
+
{
|
|
15113
|
+
name: "address-findings-model",
|
|
15114
|
+
kind: "string",
|
|
15115
|
+
valueName: "SELECTION",
|
|
15116
|
+
description: `Address Findings model: ${SELECTION_HELP}`
|
|
15117
|
+
},
|
|
15074
15118
|
{
|
|
15075
15119
|
name: "fix-model",
|
|
15076
15120
|
kind: "string",
|
|
15077
15121
|
valueName: "SELECTION",
|
|
15078
|
-
description:
|
|
15122
|
+
description: "Former name of --address-findings-model."
|
|
15123
|
+
},
|
|
15124
|
+
{
|
|
15125
|
+
name: "auto-address-findings",
|
|
15126
|
+
kind: "boolean",
|
|
15127
|
+
negatable: true,
|
|
15128
|
+
description: "Start Address Findings when consolidation reports findings."
|
|
15079
15129
|
},
|
|
15080
15130
|
{
|
|
15081
15131
|
name: "auto-fix",
|
|
15082
15132
|
kind: "boolean",
|
|
15083
15133
|
negatable: true,
|
|
15084
|
-
description: "
|
|
15134
|
+
description: "Former name of --auto-address-findings."
|
|
15085
15135
|
},
|
|
15086
15136
|
{
|
|
15087
15137
|
name: "auto-pr",
|
|
15088
15138
|
kind: "boolean",
|
|
15089
15139
|
negatable: true,
|
|
15090
|
-
description: "Open the pull request after
|
|
15140
|
+
description: "Open the pull request after Address Findings (never merges)."
|
|
15091
15141
|
},
|
|
15092
15142
|
{
|
|
15093
15143
|
name: "target-branch",
|
|
@@ -15105,6 +15155,10 @@ var workflowCommands = [
|
|
|
15105
15155
|
],
|
|
15106
15156
|
inputFields: {
|
|
15107
15157
|
reviewer: "reviewers",
|
|
15158
|
+
"address-findings-model": "fixModel",
|
|
15159
|
+
"fix-model": "fixModel",
|
|
15160
|
+
"auto-address-findings": "autoFix",
|
|
15161
|
+
"auto-fix": "autoFix",
|
|
15108
15162
|
focus: "reviewers",
|
|
15109
15163
|
"focus-file": "reviewers",
|
|
15110
15164
|
"instruction-file": "reviewInstruction"
|
|
@@ -15119,8 +15173,9 @@ var workflowCommands = [
|
|
|
15119
15173
|
return lens ? { ...row, lens } : row;
|
|
15120
15174
|
});
|
|
15121
15175
|
const reviewModel = stringOption(options2, "review-model");
|
|
15122
|
-
const
|
|
15123
|
-
const
|
|
15176
|
+
const addressFindingsFlag = stringOption(options2, "address-findings-model") ? "--address-findings-model" : "--fix-model";
|
|
15177
|
+
const fixModel = stringOption(options2, "address-findings-model") ?? stringOption(options2, "fix-model");
|
|
15178
|
+
const autoFix = optionalBoolean(options2, "auto-address-findings") ?? optionalBoolean(options2, "auto-fix");
|
|
15124
15179
|
const autoPr = optionalBoolean(options2, "auto-pr");
|
|
15125
15180
|
const instructionFile = stringOption(options2, "instruction-file");
|
|
15126
15181
|
const reviewInstruction = instructionFile !== undefined ? await readTextSource(context.io, {
|
|
@@ -15134,7 +15189,7 @@ var workflowCommands = [
|
|
|
15134
15189
|
environmentId: parsed.positionals.environment,
|
|
15135
15190
|
...reviewers.length ? { reviewers } : {},
|
|
15136
15191
|
...reviewModel ? { reviewModel: parseSelection(reviewModel, "--review-model") } : {},
|
|
15137
|
-
...fixModel ? { fixModel: parseSelection(fixModel,
|
|
15192
|
+
...fixModel ? { fixModel: parseSelection(fixModel, addressFindingsFlag) } : {},
|
|
15138
15193
|
...autoFix !== undefined ? { autoFix } : {},
|
|
15139
15194
|
...autoPr !== undefined ? { autoPr } : {},
|
|
15140
15195
|
...options2["target-branch"] !== undefined ? { targetBranch: options2["target-branch"] } : {},
|
|
@@ -15204,17 +15259,25 @@ var workflowCommands = [
|
|
|
15204
15259
|
{
|
|
15205
15260
|
path: ["review", "open"],
|
|
15206
15261
|
action: "review.open",
|
|
15207
|
-
summary: "Open or focus a Multi Review's tab (--
|
|
15262
|
+
summary: "Open or focus a Multi Review's tab (--address-findings: its Address Findings tab); starts no work.",
|
|
15208
15263
|
positionals: [{ name: "workflow", required: true, description: "Multi Review ID." }],
|
|
15209
15264
|
options: [
|
|
15210
|
-
{
|
|
15265
|
+
{
|
|
15266
|
+
name: "address-findings",
|
|
15267
|
+
kind: "boolean",
|
|
15268
|
+
description: "Open the Address Findings session tab instead."
|
|
15269
|
+
},
|
|
15270
|
+
{ name: "fix", kind: "boolean", description: "Former name of --address-findings." },
|
|
15211
15271
|
REQUEST_ID_OPTION
|
|
15212
15272
|
],
|
|
15213
|
-
inputFields: { workflow: "workflowId", fix: "surface" },
|
|
15273
|
+
inputFields: { workflow: "workflowId", fix: "surface", "address-findings": "surface" },
|
|
15214
15274
|
idOutput: "workflow ID",
|
|
15215
15275
|
async run(context, parsed) {
|
|
15216
15276
|
const workflowId = parsed.positionals.workflow;
|
|
15217
|
-
const { session, result, receipt, warnings } = await submit(context, "review.open", {
|
|
15277
|
+
const { session, result, receipt, warnings } = await submit(context, "review.open", {
|
|
15278
|
+
workflowId,
|
|
15279
|
+
...parsed.options.fix === true || parsed.options["address-findings"] === true ? { surface: "fix" } : {}
|
|
15280
|
+
}, parsed.options);
|
|
15218
15281
|
return {
|
|
15219
15282
|
action: "review.open",
|
|
15220
15283
|
result,
|
|
@@ -15226,7 +15289,7 @@ var workflowCommands = [
|
|
|
15226
15289
|
};
|
|
15227
15290
|
}
|
|
15228
15291
|
},
|
|
15229
|
-
reviewMutation("address", "review.address", "Address a Multi Review's findings: hand them to its
|
|
15292
|
+
reviewMutation("address", "review.address", "Address a Multi Review's findings: hand them to its Address Findings session."),
|
|
15230
15293
|
reviewMutation("cancel", "review.cancel", "Cancel a running Multi Review; its record is kept."),
|
|
15231
15294
|
agentButtonCommand("review.start"),
|
|
15232
15295
|
agentButtonCommand("pr.create"),
|
|
@@ -15407,7 +15470,7 @@ var buildCommands = [
|
|
|
15407
15470
|
path: ["build", "launch"],
|
|
15408
15471
|
action: "build.launch",
|
|
15409
15472
|
summary: "Start a ticket's Build Pipeline, as the Build button does (its active build is reused).",
|
|
15410
|
-
description: "Builds the Kanban ticket in a new environment (--type) or an existing one (--environment): build, review, address, verify and PR. Omitted steps, reviewers and preparation use the saved Build defaults; a step named only by --instructions keeps its saved model. The pipeline continues in the backend; follow it with `build get`.",
|
|
15473
|
+
description: "Builds the Kanban ticket in a new environment (--type) or an existing one (--environment): build, review, address findings, verify and PR. Omitted steps, reviewers and preparation use the saved Build defaults; a step named only by --instructions keeps its saved model. The pipeline continues in the backend; follow it with `build get`.",
|
|
15411
15474
|
positionals: [
|
|
15412
15475
|
{ name: "ticket", required: true, description: "Kanban ticket ID (ticket list)." }
|
|
15413
15476
|
],
|
|
@@ -15453,7 +15516,7 @@ var buildCommands = [
|
|
|
15453
15516
|
name: "instructions",
|
|
15454
15517
|
kind: "list",
|
|
15455
15518
|
valueName: "STAGE=TEXT",
|
|
15456
|
-
description: `Your instructions for a step (repeatable), at most ${MAX_BUILD_STEP_INSTRUCTIONS_BYTES} bytes; N=TEXT for --reviewer row N.
|
|
15519
|
+
description: `Your instructions for a step (repeatable), at most ${MAX_BUILD_STEP_INSTRUCTIONS_BYTES} bytes; N=TEXT for --reviewer row N. Rework uses build's.`
|
|
15457
15520
|
},
|
|
15458
15521
|
{
|
|
15459
15522
|
name: "instructions-file",
|
|
@@ -15483,7 +15546,7 @@ var buildCommands = [
|
|
|
15483
15546
|
name: "max-iterations",
|
|
15484
15547
|
kind: "integer",
|
|
15485
15548
|
valueName: "N",
|
|
15486
|
-
description: `Review,
|
|
15549
|
+
description: `Review, address findings, verify and rework rounds, 1 to ${MAX_BUILD_PIPELINE_ITERATIONS} (default 3).`
|
|
15487
15550
|
},
|
|
15488
15551
|
REQUEST_ID_OPTION
|
|
15489
15552
|
],
|
|
@@ -15809,7 +15872,7 @@ function buildPipelineBuiltInTemplate() {
|
|
|
15809
15872
|
{
|
|
15810
15873
|
key: "builder",
|
|
15811
15874
|
label: "Build",
|
|
15812
|
-
description: "The pipeline's build agent.
|
|
15875
|
+
description: "The pipeline's build agent. Rework runs under Build's step and instructions.",
|
|
15813
15876
|
multiplicity: "one"
|
|
15814
15877
|
},
|
|
15815
15878
|
{
|
|
@@ -15827,7 +15890,12 @@ function buildPipelineBuiltInTemplate() {
|
|
|
15827
15890
|
maxPanel: MAX_BUILD_PIPELINE_REVIEWERS,
|
|
15828
15891
|
defaultsFrom: ["review", "review2", "additionalReviewers"]
|
|
15829
15892
|
},
|
|
15830
|
-
{
|
|
15893
|
+
{
|
|
15894
|
+
key: "fixer",
|
|
15895
|
+
label: "Address Findings",
|
|
15896
|
+
multiplicity: "one",
|
|
15897
|
+
defaultsFrom: ["fixReviewIssues"]
|
|
15898
|
+
},
|
|
15831
15899
|
{
|
|
15832
15900
|
key: "verifier",
|
|
15833
15901
|
label: "Verify",
|
|
@@ -15895,8 +15963,8 @@ function buildPipelineBuiltInTemplate() {
|
|
|
15895
15963
|
{
|
|
15896
15964
|
id: "fix",
|
|
15897
15965
|
kind: "agent",
|
|
15898
|
-
label: "
|
|
15899
|
-
description: "From round 2: fixes what Verify found unmet. Today a
|
|
15966
|
+
label: "Rework",
|
|
15967
|
+
description: "From round 2: fixes what Verify found unmet. Today a Rework that leaves the worktree unchanged pauses the pipeline for a person.",
|
|
15900
15968
|
role: "builder",
|
|
15901
15969
|
when: { path: "run.iteration", op: "gt", value: 1 },
|
|
15902
15970
|
capabilities: { profile: "builder" },
|
|
@@ -15982,7 +16050,7 @@ function buildPipelineBuiltInTemplate() {
|
|
|
15982
16050
|
id: "has-issues",
|
|
15983
16051
|
kind: "gate",
|
|
15984
16052
|
label: "Issues?",
|
|
15985
|
-
description: "Address only when the report has issues or test coverage gaps (D21).",
|
|
16053
|
+
description: "Address Findings only when the report has issues or test coverage gaps (D21).",
|
|
15986
16054
|
inputs: [
|
|
15987
16055
|
{ name: "report", type: "review-report@1" },
|
|
15988
16056
|
{ name: "code", type: "workspace@1" }
|
|
@@ -15995,7 +16063,7 @@ function buildPipelineBuiltInTemplate() {
|
|
|
15995
16063
|
{
|
|
15996
16064
|
id: "address",
|
|
15997
16065
|
kind: "agent",
|
|
15998
|
-
label: "Address",
|
|
16066
|
+
label: "Address Findings",
|
|
15999
16067
|
description: "Fixes the review's findings, validates the fix and submits a typed fix result for Verify. Today it also receives the end of the review session's transcript.",
|
|
16000
16068
|
role: "fixer",
|
|
16001
16069
|
capabilities: { profile: "builder" },
|
|
@@ -16393,7 +16461,7 @@ function roundNodes(round, allowance) {
|
|
|
16393
16461
|
{
|
|
16394
16462
|
id: ids.fix,
|
|
16395
16463
|
kind: "agent",
|
|
16396
|
-
label: `Round ${round} \xB7
|
|
16464
|
+
label: `Round ${round} \xB7 Address Findings`,
|
|
16397
16465
|
description: "Fixes the whole pool in a fresh session and commits.",
|
|
16398
16466
|
role: "model",
|
|
16399
16467
|
capabilities: { profile: "builder" },
|
|
@@ -16411,8 +16479,8 @@ function roundNodes(round, allowance) {
|
|
|
16411
16479
|
{
|
|
16412
16480
|
id: ids.fixed,
|
|
16413
16481
|
kind: "gate",
|
|
16414
|
-
label: `Round ${round} \xB7
|
|
16415
|
-
description: "An incomplete
|
|
16482
|
+
label: `Round ${round} \xB7 Address Findings complete?`,
|
|
16483
|
+
description: "An incomplete Address Findings failed the review; nothing runs after it.",
|
|
16416
16484
|
inputs: [
|
|
16417
16485
|
{ name: "result", type: "fix-result@1" },
|
|
16418
16486
|
{ name: "code", type: "workspace@1" }
|
|
@@ -16553,11 +16621,11 @@ function loopedReviewBuiltInTemplate() {
|
|
|
16553
16621
|
var MULTI_REVIEW_MAX_REVIEWERS = REVIEW_FANOUT_MAX_REVIEWERS;
|
|
16554
16622
|
var MULTI_REVIEW_PLAN_TOOL_PROHIBITION = "Do not invoke CreatePlan, create_plan, EnterPlanMode, or any equivalent planning or mode-switch tool, even if the provider offers one.";
|
|
16555
16623
|
var MULTI_REVIEW_IMPLEMENTATION_MODE_INSTRUCTION = `This is an implementation turn, not a planning turn. You are already in build mode: remain in build mode and begin editing the files now. Do not enter, propose, switch to, or imitate plan mode. ${MULTI_REVIEW_PLAN_TOOL_PROHIBITION} A plan, plan-review card, or approval request is not a valid response to this prompt. Do not ask the user to approve a plan or switch modes, and do not pause before implementation. Use the file-editing and command tools directly, complete the necessary edits, and run relevant validation in this turn.`;
|
|
16556
|
-
var MULTI_REVIEW_INTERACTIVE_RESPONSE_INSTRUCTION = "This is now a manual interactive
|
|
16624
|
+
var MULTI_REVIEW_INTERACTIVE_RESPONSE_INSTRUCTION = "This is now a manual interactive Address Findings conversation, not an automated pipeline stage. " + "Any JSON-only or structured-output contract from earlier turns has ended and does not apply to this turn or later replies. " + "Earlier review-stage instructions not to edit files, run commands, or fix findings have also ended and no longer apply. " + "Implement the requested fixes, run relevant validation, and commit every relevant change. " + `When you finish, respond in ordinary Markdown prose with a concise summary and validation results. Do not return JSON unless the user explicitly asks for JSON.
|
|
16557
16625
|
|
|
16558
16626
|
` + MULTI_REVIEW_IMPLEMENTATION_MODE_INSTRUCTION;
|
|
16559
16627
|
var MULTI_REVIEW_ADDRESS_USER_INSTRUCTION = "Please address all the issues and coverage gaps.";
|
|
16560
|
-
var
|
|
16628
|
+
var MULTI_REVIEW_ADDRESS_FINDINGS_PROMPT = `${MULTI_REVIEW_ADDRESS_USER_INSTRUCTION}
|
|
16561
16629
|
|
|
16562
16630
|
${wrapSystemInstructions(MULTI_REVIEW_INTERACTIVE_RESPONSE_INSTRUCTION)}`;
|
|
16563
16631
|
var MULTI_REVIEW_HISTORY_PAGE_MAX_TARGET_BYTES = 1024 * 1024;
|
|
@@ -16606,15 +16674,15 @@ function multiReviewBuiltInTemplate() {
|
|
|
16606
16674
|
parameters: [
|
|
16607
16675
|
{
|
|
16608
16676
|
key: "autoFix",
|
|
16609
|
-
label: "
|
|
16610
|
-
description: "Open
|
|
16677
|
+
label: "Address Findings automatically",
|
|
16678
|
+
description: "Open Address Findings once consolidation reports issues or test coverage gaps. Saved default: off.",
|
|
16611
16679
|
type: "boolean",
|
|
16612
16680
|
default: false
|
|
16613
16681
|
},
|
|
16614
16682
|
{
|
|
16615
16683
|
key: "autoPr",
|
|
16616
16684
|
label: "Open a pull request automatically",
|
|
16617
|
-
description: "Open the pull request after
|
|
16685
|
+
description: "Open the pull request after an Address Findings run that completes, or straight after a consolidated report with nothing to fix. Saved default: off.",
|
|
16618
16686
|
type: "boolean",
|
|
16619
16687
|
default: false
|
|
16620
16688
|
}
|
|
@@ -16643,7 +16711,7 @@ function multiReviewBuiltInTemplate() {
|
|
|
16643
16711
|
},
|
|
16644
16712
|
{
|
|
16645
16713
|
key: "fixer",
|
|
16646
|
-
label: "
|
|
16714
|
+
label: "Address Findings",
|
|
16647
16715
|
multiplicity: "one",
|
|
16648
16716
|
defaultsFrom: ["fixReviewIssues", "review"]
|
|
16649
16717
|
},
|
|
@@ -16683,7 +16751,7 @@ function multiReviewBuiltInTemplate() {
|
|
|
16683
16751
|
name: "fixed",
|
|
16684
16752
|
type: "workspace@1",
|
|
16685
16753
|
label: "Fixed branch",
|
|
16686
|
-
description: "
|
|
16754
|
+
description: "Address Findings's commit, when an Address Findings run ran and completed.",
|
|
16687
16755
|
required: false,
|
|
16688
16756
|
from: port("fix-complete", "code", "complete")
|
|
16689
16757
|
}
|
|
@@ -16766,8 +16834,8 @@ function multiReviewBuiltInTemplate() {
|
|
|
16766
16834
|
{
|
|
16767
16835
|
id: "fix",
|
|
16768
16836
|
kind: "agent",
|
|
16769
|
-
label: "
|
|
16770
|
-
description: "Today an ordinary interactive
|
|
16837
|
+
label: "Address Findings",
|
|
16838
|
+
description: "Today an ordinary interactive Address Findings tab that the user can talk to; it ends when its handoff turn finishes on its own. Here it submits a fix result.",
|
|
16771
16839
|
role: "fixer",
|
|
16772
16840
|
when: paramIsTrue("autoFix"),
|
|
16773
16841
|
capabilities: { profile: "builder" },
|
|
@@ -16786,8 +16854,8 @@ function multiReviewBuiltInTemplate() {
|
|
|
16786
16854
|
{
|
|
16787
16855
|
id: "fix-complete",
|
|
16788
16856
|
kind: "gate",
|
|
16789
|
-
label: "
|
|
16790
|
-
description: "Only proof that
|
|
16857
|
+
label: "Address Findings complete?",
|
|
16858
|
+
description: "Only proof that Address Findings completed queues the pull request.",
|
|
16791
16859
|
inputs: [
|
|
16792
16860
|
{ name: "result", type: "fix-result@1" },
|
|
16793
16861
|
{ name: "code", type: "workspace@1" }
|