aglio-worker 0.54.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 +35 -3
- package/package.json +1 -1
package/agent.js
CHANGED
|
@@ -27267,17 +27267,43 @@ var repoConnectionReportSchema = external_exports.object({
|
|
|
27267
27267
|
});
|
|
27268
27268
|
|
|
27269
27269
|
// ../../packages/shared/src/notifications.ts
|
|
27270
|
+
var DIGEST_FREQUENCIES = ["1h", "4h", "12h", "24h"];
|
|
27271
|
+
var DEFAULT_DIGEST_FREQUENCY = "4h";
|
|
27270
27272
|
var DEFAULT_NOTIFICATION_PREFERENCES = {
|
|
27271
27273
|
emailDigest: true,
|
|
27272
27274
|
emailQuestions: true,
|
|
27273
27275
|
emailFailures: true,
|
|
27274
|
-
emailPrReady: true
|
|
27275
|
-
|
|
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;
|
|
27276
27288
|
var notificationPreferencesSchema = external_exports.object({
|
|
27277
27289
|
emailDigest: external_exports.boolean().catch(DEFAULT_NOTIFICATION_PREFERENCES.emailDigest),
|
|
27278
27290
|
emailQuestions: external_exports.boolean().catch(DEFAULT_NOTIFICATION_PREFERENCES.emailQuestions),
|
|
27279
27291
|
emailFailures: external_exports.boolean().catch(DEFAULT_NOTIFICATION_PREFERENCES.emailFailures),
|
|
27280
|
-
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("")
|
|
27281
27307
|
});
|
|
27282
27308
|
function isSlackWebhookUrl(value) {
|
|
27283
27309
|
if (typeof value !== "string" || !value.trim()) return false;
|
|
@@ -27837,6 +27863,12 @@ var appEventSchema = external_exports.object({
|
|
|
27837
27863
|
createdAt: external_exports.string()
|
|
27838
27864
|
});
|
|
27839
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
|
+
|
|
27840
27872
|
// ../../packages/shared/src/files.ts
|
|
27841
27873
|
function sanitizeFileName(input2, fallback = "file") {
|
|
27842
27874
|
const cleaned = input2.replace(/[^a-zA-Z0-9._-]+/g, "_").replace(/^[._-]+/, "").slice(0, 120);
|