aglio-worker 0.53.0 → 0.60.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/agent.js +37 -11
- package/package.json +1 -1
package/agent.js
CHANGED
|
@@ -7356,14 +7356,8 @@ var NOTIFICATION_TYPES = [
|
|
|
7356
7356
|
var CREDENTIAL_SCOPES = ["workspace", "user"];
|
|
7357
7357
|
var CREDENTIAL_AUTH_TYPES = ["api_key", "oauth_token", "session_bundle"];
|
|
7358
7358
|
var JOB_TYPES = [
|
|
7359
|
-
"claim_todo",
|
|
7360
7359
|
"run_card",
|
|
7361
7360
|
"resume_run",
|
|
7362
|
-
/** Legacy control-plane run path. New runs use run_card/resume_run. */
|
|
7363
|
-
"run_local",
|
|
7364
|
-
"poll_github",
|
|
7365
|
-
"cleanup_workspaces",
|
|
7366
|
-
"cancel_run",
|
|
7367
7361
|
"provider_login",
|
|
7368
7362
|
/** Runs checkout and project commands in a remote worker workspace. */
|
|
7369
7363
|
"run_steps"
|
|
@@ -27273,17 +27267,43 @@ var repoConnectionReportSchema = external_exports.object({
|
|
|
27273
27267
|
});
|
|
27274
27268
|
|
|
27275
27269
|
// ../../packages/shared/src/notifications.ts
|
|
27270
|
+
var DIGEST_FREQUENCIES = ["1h", "4h", "12h", "24h"];
|
|
27271
|
+
var DEFAULT_DIGEST_FREQUENCY = "4h";
|
|
27276
27272
|
var DEFAULT_NOTIFICATION_PREFERENCES = {
|
|
27277
27273
|
emailDigest: true,
|
|
27278
27274
|
emailQuestions: true,
|
|
27279
27275
|
emailFailures: true,
|
|
27280
|
-
emailPrReady: true
|
|
27281
|
-
|
|
27276
|
+
emailPrReady: true,
|
|
27277
|
+
digestFrequency: DEFAULT_DIGEST_FREQUENCY,
|
|
27278
|
+
telegramEnabled: false,
|
|
27279
|
+
telegramChatId: "",
|
|
27280
|
+
telegramBotConfigured: false,
|
|
27281
|
+
telegramBotUsername: "",
|
|
27282
|
+
telegramLinked: false,
|
|
27283
|
+
telegramChatLabel: "",
|
|
27284
|
+
telegramLinkCode: "",
|
|
27285
|
+
telegramLinkCodeExpiresAt: ""
|
|
27286
|
+
};
|
|
27287
|
+
var TELEGRAM_LINK_CODE_TTL_MS = 10 * 60 * 1e3;
|
|
27282
27288
|
var notificationPreferencesSchema = external_exports.object({
|
|
27283
27289
|
emailDigest: external_exports.boolean().catch(DEFAULT_NOTIFICATION_PREFERENCES.emailDigest),
|
|
27284
27290
|
emailQuestions: external_exports.boolean().catch(DEFAULT_NOTIFICATION_PREFERENCES.emailQuestions),
|
|
27285
27291
|
emailFailures: external_exports.boolean().catch(DEFAULT_NOTIFICATION_PREFERENCES.emailFailures),
|
|
27286
|
-
emailPrReady: external_exports.boolean().catch(DEFAULT_NOTIFICATION_PREFERENCES.emailPrReady)
|
|
27292
|
+
emailPrReady: external_exports.boolean().catch(DEFAULT_NOTIFICATION_PREFERENCES.emailPrReady),
|
|
27293
|
+
digestFrequency: external_exports.enum(DIGEST_FREQUENCIES).catch(DEFAULT_NOTIFICATION_PREFERENCES.digestFrequency),
|
|
27294
|
+
telegramEnabled: external_exports.boolean().catch(DEFAULT_NOTIFICATION_PREFERENCES.telegramEnabled),
|
|
27295
|
+
telegramChatId: external_exports.string().trim().max(64).catch(DEFAULT_NOTIFICATION_PREFERENCES.telegramChatId),
|
|
27296
|
+
telegramBotConfigured: external_exports.boolean().catch(DEFAULT_NOTIFICATION_PREFERENCES.telegramBotConfigured),
|
|
27297
|
+
telegramBotUsername: external_exports.string().trim().max(64).catch(DEFAULT_NOTIFICATION_PREFERENCES.telegramBotUsername),
|
|
27298
|
+
telegramLinked: external_exports.boolean().catch(DEFAULT_NOTIFICATION_PREFERENCES.telegramLinked),
|
|
27299
|
+
telegramChatLabel: external_exports.string().trim().max(64).catch(DEFAULT_NOTIFICATION_PREFERENCES.telegramChatLabel),
|
|
27300
|
+
telegramLinkCode: external_exports.string().trim().max(64).catch(DEFAULT_NOTIFICATION_PREFERENCES.telegramLinkCode),
|
|
27301
|
+
telegramLinkCodeExpiresAt: external_exports.string().trim().max(64).catch(DEFAULT_NOTIFICATION_PREFERENCES.telegramLinkCodeExpiresAt)
|
|
27302
|
+
});
|
|
27303
|
+
var storedNotificationPreferencesSchema = notificationPreferencesSchema.extend({
|
|
27304
|
+
telegramBotToken: external_exports.string().trim().max(4096).catch(""),
|
|
27305
|
+
telegramUpdateOffset: external_exports.number().int().nonnegative().catch(0),
|
|
27306
|
+
telegramLinkedAt: external_exports.string().trim().max(64).catch("")
|
|
27287
27307
|
});
|
|
27288
27308
|
function isSlackWebhookUrl(value) {
|
|
27289
27309
|
if (typeof value !== "string" || !value.trim()) return false;
|
|
@@ -27461,7 +27481,7 @@ function poolBootCapCheck(input2) {
|
|
|
27461
27481
|
}
|
|
27462
27482
|
|
|
27463
27483
|
// ../../packages/shared/src/build-speed.ts
|
|
27464
|
-
var BUILD_SPEEDS = ["fast", "standard", "detailed"];
|
|
27484
|
+
var BUILD_SPEEDS = ["ultra_fast", "fast", "standard", "detailed"];
|
|
27465
27485
|
var buildSpeedSchema = external_exports.enum(BUILD_SPEEDS);
|
|
27466
27486
|
var DEFAULT_BUILD_SPEED = "standard";
|
|
27467
27487
|
|
|
@@ -27843,6 +27863,12 @@ var appEventSchema = external_exports.object({
|
|
|
27843
27863
|
createdAt: external_exports.string()
|
|
27844
27864
|
});
|
|
27845
27865
|
|
|
27866
|
+
// ../../packages/shared/src/boards.ts
|
|
27867
|
+
var BOARD_NAME_MAX = 40;
|
|
27868
|
+
var boardInputSchema = external_exports.object({
|
|
27869
|
+
name: external_exports.string().trim().min(1).max(BOARD_NAME_MAX)
|
|
27870
|
+
});
|
|
27871
|
+
|
|
27846
27872
|
// ../../packages/shared/src/files.ts
|
|
27847
27873
|
function sanitizeFileName(input2, fallback = "file") {
|
|
27848
27874
|
const cleaned = input2.replace(/[^a-zA-Z0-9._-]+/g, "_").replace(/^[._-]+/, "").slice(0, 120);
|
|
@@ -44059,7 +44085,7 @@ function createServerForRun(run) {
|
|
|
44059
44085
|
server.registerTool(
|
|
44060
44086
|
"verification_record",
|
|
44061
44087
|
{
|
|
44062
|
-
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.",
|
|
44088
|
+
description: "Record verification evidence before opening a PR. Non-N/A kinds require an artifactId unless the run build speed is fast or ultra fast. N/A requires a reason.",
|
|
44063
44089
|
inputSchema: {
|
|
44064
44090
|
kind: external_exports.enum(VERIFICATION_KINDS),
|
|
44065
44091
|
summary: external_exports.string().min(1).max(400),
|