aglio-worker 0.39.0 → 0.48.1
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/agent.js +86 -4
- package/package.json +1 -1
package/agent.js
CHANGED
|
@@ -7330,7 +7330,8 @@ var WORK_LOG_TYPES = [
|
|
|
7330
7330
|
"pr",
|
|
7331
7331
|
"question",
|
|
7332
7332
|
"status",
|
|
7333
|
-
"error"
|
|
7333
|
+
"error",
|
|
7334
|
+
"ship"
|
|
7334
7335
|
];
|
|
7335
7336
|
var RUN_TRIGGERS = [
|
|
7336
7337
|
"manual",
|
|
@@ -27459,6 +27460,67 @@ function poolBootCapCheck(input2) {
|
|
|
27459
27460
|
return { ...base, ok: true };
|
|
27460
27461
|
}
|
|
27461
27462
|
|
|
27463
|
+
// ../../packages/shared/src/build-speed.ts
|
|
27464
|
+
var BUILD_SPEEDS = ["fast", "standard", "detailed"];
|
|
27465
|
+
var buildSpeedSchema = external_exports.enum(BUILD_SPEEDS);
|
|
27466
|
+
var DEFAULT_BUILD_SPEED = "standard";
|
|
27467
|
+
|
|
27468
|
+
// ../../packages/shared/src/auto-mode.ts
|
|
27469
|
+
var AUTO_MODE_PAUSE_REASONS = ["manual", "failures", "blocker", "costCap"];
|
|
27470
|
+
var autoModePauseReasonSchema = external_exports.enum(AUTO_MODE_PAUSE_REASONS);
|
|
27471
|
+
var AUTO_MODE_TICK_STATUSES = ["skipped", "paused", "cost_cap", "ran"];
|
|
27472
|
+
var autoModeTickSchema = external_exports.object({
|
|
27473
|
+
at: external_exports.string().datetime(),
|
|
27474
|
+
status: external_exports.enum(AUTO_MODE_TICK_STATUSES),
|
|
27475
|
+
planned: external_exports.number().int().min(0).default(0),
|
|
27476
|
+
reviewed: external_exports.number().int().min(0).default(0),
|
|
27477
|
+
error: external_exports.string().nullable().default(null)
|
|
27478
|
+
});
|
|
27479
|
+
var autoModeStateSchema = external_exports.object({
|
|
27480
|
+
paused: external_exports.boolean().default(false),
|
|
27481
|
+
pausedReason: autoModePauseReasonSchema.nullable().default(null),
|
|
27482
|
+
pausedAt: external_exports.string().datetime().nullable().default(null),
|
|
27483
|
+
consecutiveFailures: external_exports.number().int().min(0).default(0),
|
|
27484
|
+
lastPlannerRunAt: external_exports.string().datetime().nullable().default(null),
|
|
27485
|
+
/** Last tick decision, so the board can say what it checked and skipped. */
|
|
27486
|
+
lastTick: autoModeTickSchema.nullable().default(null),
|
|
27487
|
+
/** Set when a tick starts, so two triggers cannot plan at once. */
|
|
27488
|
+
tickStartedAt: external_exports.string().datetime().nullable().default(null)
|
|
27489
|
+
});
|
|
27490
|
+
var defaultAutoModeState = {
|
|
27491
|
+
paused: false,
|
|
27492
|
+
pausedReason: null,
|
|
27493
|
+
pausedAt: null,
|
|
27494
|
+
consecutiveFailures: 0,
|
|
27495
|
+
lastPlannerRunAt: null,
|
|
27496
|
+
lastTick: null,
|
|
27497
|
+
tickStartedAt: null
|
|
27498
|
+
};
|
|
27499
|
+
var autoModeSettingsSchema = external_exports.object({
|
|
27500
|
+
enabled: external_exports.boolean().default(false),
|
|
27501
|
+
goalCardId: external_exports.string().uuid().nullable().default(null),
|
|
27502
|
+
/** Plan when the goal has fewer non-done direct children than this. */
|
|
27503
|
+
minReadyCards: external_exports.number().int().min(0).max(20).default(2),
|
|
27504
|
+
maxCardsPerTick: external_exports.number().int().min(1).max(10).default(3),
|
|
27505
|
+
consecutiveFailureLimit: external_exports.number().int().min(1).max(10).default(3),
|
|
27506
|
+
/** Tokens: {date} {shortSha} {cardNumber}. */
|
|
27507
|
+
shipTagTemplate: external_exports.string().trim().min(1).max(120).default("release-{date}"),
|
|
27508
|
+
/** GitHub Actions workflow file name for workflow_dispatch. */
|
|
27509
|
+
shipWorkflow: external_exports.string().trim().max(200).nullable().default(null),
|
|
27510
|
+
/** Runtime pause/failure state. Never edited by the settings form. */
|
|
27511
|
+
state: autoModeStateSchema.default(defaultAutoModeState)
|
|
27512
|
+
});
|
|
27513
|
+
var defaultAutoMode = {
|
|
27514
|
+
enabled: false,
|
|
27515
|
+
goalCardId: null,
|
|
27516
|
+
minReadyCards: 2,
|
|
27517
|
+
maxCardsPerTick: 3,
|
|
27518
|
+
consecutiveFailureLimit: 3,
|
|
27519
|
+
shipTagTemplate: "release-{date}",
|
|
27520
|
+
shipWorkflow: null,
|
|
27521
|
+
state: defaultAutoModeState
|
|
27522
|
+
};
|
|
27523
|
+
|
|
27462
27524
|
// ../../packages/shared/src/schemas.ts
|
|
27463
27525
|
var cardColumnSchema = external_exports.enum(CARD_COLUMNS);
|
|
27464
27526
|
var runStatusSchema = external_exports.enum(RUN_STATUSES_FOR_SCHEMA);
|
|
@@ -27515,6 +27577,8 @@ var projectSettingsSchema = external_exports.object({
|
|
|
27515
27577
|
autoClaim: external_exports.boolean().default(true),
|
|
27516
27578
|
/** Daily auto-claim window. Layered under the autoClaim master switch. */
|
|
27517
27579
|
autoClaimSchedule: autoClaimScheduleSchema,
|
|
27580
|
+
/** Goal-driven project automation. Off by default for every existing project. */
|
|
27581
|
+
autoMode: autoModeSettingsSchema.default(defaultAutoMode),
|
|
27518
27582
|
/** Build-like run cap: build, consult and review. Planning has its own cap. */
|
|
27519
27583
|
maxParallelRuns: external_exports.number().int().min(1).max(8).default(2),
|
|
27520
27584
|
/** Planning run cap per project. Independent from maxParallelRuns. */
|
|
@@ -27531,8 +27595,13 @@ var projectSettingsSchema = external_exports.object({
|
|
|
27531
27595
|
runRetryBackoffSeconds: external_exports.number().int().min(10).max(600).default(60),
|
|
27532
27596
|
runRetryMaxBackoffSeconds: external_exports.number().int().min(60).max(3600).default(600),
|
|
27533
27597
|
notificationSound: external_exports.boolean().default(true),
|
|
27534
|
-
/**
|
|
27598
|
+
/**
|
|
27599
|
+
* Deprecated: kept for backward compatibility. Prompts and the MCP gate read
|
|
27600
|
+
* `buildSpeed` instead. Only consulted when `buildSpeed` is missing.
|
|
27601
|
+
*/
|
|
27535
27602
|
requireVerificationEvidence: external_exports.boolean().nullable().default(true),
|
|
27603
|
+
/** Build verification budget. Defaults to standard. */
|
|
27604
|
+
buildSpeed: buildSpeedSchema.default(DEFAULT_BUILD_SPEED),
|
|
27536
27605
|
/** Slack incoming webhook for question, failure and PR-ready alerts. Null disables Slack. */
|
|
27537
27606
|
slackWebhookUrl: external_exports.string().trim().max(500).refine(isSlackWebhookUrl, "Slack webhook must be an https URL").nullable().default(null),
|
|
27538
27607
|
/** Rendered column strip: built-in columns and custom list ids. */
|
|
@@ -43995,7 +44064,7 @@ function createServerForRun(run) {
|
|
|
43995
44064
|
server.registerTool(
|
|
43996
44065
|
"verification_record",
|
|
43997
44066
|
{
|
|
43998
|
-
description: "Record verification evidence before opening a PR. Non-N/A kinds require an artifactId unless
|
|
44067
|
+
description: "Record verification evidence before opening a PR. Non-N/A kinds require an artifactId unless the run build speed is fast. N/A requires a reason.",
|
|
43999
44068
|
inputSchema: {
|
|
44000
44069
|
kind: external_exports.enum(VERIFICATION_KINDS),
|
|
44001
44070
|
summary: external_exports.string().min(1).max(400),
|
|
@@ -44051,6 +44120,19 @@ function createServerForRun(run) {
|
|
|
44051
44120
|
},
|
|
44052
44121
|
async (input2) => forward("card_block_remove", input2)
|
|
44053
44122
|
);
|
|
44123
|
+
server.registerTool(
|
|
44124
|
+
"request_human_action",
|
|
44125
|
+
{
|
|
44126
|
+
description: "Create a Todo card for the project owner and block this card until the human finishes it. Use for secrets, access, manual steps or decisions only.",
|
|
44127
|
+
inputSchema: {
|
|
44128
|
+
reason: external_exports.string().min(1).max(300),
|
|
44129
|
+
instructions: external_exports.string().min(1).max(1e4),
|
|
44130
|
+
blockedCardId: external_exports.string().optional(),
|
|
44131
|
+
kind: external_exports.enum(["secret", "manual", "decision", "access"])
|
|
44132
|
+
}
|
|
44133
|
+
},
|
|
44134
|
+
async (input2) => forward("request_human_action", input2)
|
|
44135
|
+
);
|
|
44054
44136
|
server.registerTool(
|
|
44055
44137
|
"card_propose",
|
|
44056
44138
|
{
|
|
@@ -44096,7 +44178,7 @@ function createServerForRun(run) {
|
|
|
44096
44178
|
server.registerTool(
|
|
44097
44179
|
"pr_open",
|
|
44098
44180
|
{
|
|
44099
|
-
description: "Push the branch and open a pull request for one repo.
|
|
44181
|
+
description: "Push the branch and open a pull request for one repo. Detailed runs require verification evidence first. Moves the card to review.",
|
|
44100
44182
|
inputSchema: {
|
|
44101
44183
|
repoId: external_exports.string().min(1),
|
|
44102
44184
|
branch: external_exports.string().min(1),
|