aglio-worker 0.29.0 → 0.38.5

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 (2) hide show
  1. package/agent.js +83 -22
  2. package/package.json +1 -1
package/agent.js CHANGED
@@ -7344,6 +7344,7 @@ var RUN_TRIGGERS = [
7344
7344
  var NOTIFICATION_TYPES = [
7345
7345
  "question",
7346
7346
  "run_finished",
7347
+ "planning_ready",
7347
7348
  "run_failed",
7348
7349
  "review_feedback",
7349
7350
  "pr_ready",
@@ -27370,6 +27371,15 @@ var POOL_IDLE_TIMEOUT_MS = 5 * 6e4;
27370
27371
  var POOL_STALE_PROVISIONING_MS = 3 * 6e4;
27371
27372
  var POOL_SIZE_CONFIG = {
27372
27373
  small: {
27374
+ capacity: 1,
27375
+ cpuLimit: 2,
27376
+ memoryLimit: "2560m",
27377
+ instanceType: "c7i.large",
27378
+ vcpu: 2,
27379
+ hourlyUsd: 0.0893,
27380
+ maxInstances: 8
27381
+ },
27382
+ medium: {
27373
27383
  capacity: 2,
27374
27384
  cpuLimit: 2,
27375
27385
  memoryLimit: "2560m",
@@ -27378,7 +27388,7 @@ var POOL_SIZE_CONFIG = {
27378
27388
  hourlyUsd: 0.1786,
27379
27389
  maxInstances: 4
27380
27390
  },
27381
- medium: {
27391
+ large: {
27382
27392
  capacity: 4,
27383
27393
  cpuLimit: 2,
27384
27394
  memoryLimit: "2560m",
@@ -27387,23 +27397,14 @@ var POOL_SIZE_CONFIG = {
27387
27397
  hourlyUsd: 0.3572,
27388
27398
  maxInstances: 2
27389
27399
  },
27390
- large: {
27400
+ xlarge: {
27391
27401
  capacity: 8,
27392
27402
  cpuLimit: 2,
27393
27403
  memoryLimit: "2560m",
27394
27404
  instanceType: "c7i.4xlarge",
27395
27405
  vcpu: 16,
27396
27406
  hourlyUsd: 0.7144,
27397
- // Documented only: the controller provisions small and medium machines.
27398
- maxInstances: 0
27399
- },
27400
- xlarge: {
27401
- capacity: 16,
27402
- cpuLimit: 2,
27403
- memoryLimit: "2560m",
27404
- instanceType: "c7i.8xlarge",
27405
- vcpu: 32,
27406
- hourlyUsd: 1.4288,
27407
+ // Documented only: the controller provisions small, medium and large hosts.
27407
27408
  maxInstances: 0
27408
27409
  }
27409
27410
  };
@@ -27544,8 +27545,11 @@ var projectSettingsSchema = external_exports.object({
27544
27545
  planningRequiredWorkerLabels: routingLabelsSchema.default([]),
27545
27546
  /** Post the agent's final build message as a card comment. */
27546
27547
  postBuildReply: external_exports.boolean().default(true),
27547
- /** Default pool size for cloud runs started from this project. Auto picks one at dispatch. */
27548
- cloudRunnerSize: external_exports.enum(POOL_SIZES).default("small")
27548
+ /**
27549
+ * Default pool size for cloud runs started from this project. Projects saved while
27550
+ * auto was selectable still carry "auto", so retired values fall back to the default.
27551
+ */
27552
+ cloudRunnerSize: external_exports.enum(POOL_SIZES).catch("small").default("small")
27549
27553
  });
27550
27554
  var jobTargetSchema = external_exports.enum(JOB_TARGETS);
27551
27555
  var repoConfigSchema = external_exports.object({
@@ -28231,7 +28235,19 @@ var CARD_LABEL_COLORS = [
28231
28235
  { key: "sky", label: "Sky", hex: "#00c2e0", text: "#172b4d" },
28232
28236
  { key: "lime", label: "Lime", hex: "#51e898", text: "#172b4d" },
28233
28237
  { key: "pink", label: "Pink", hex: "#ff78cb", text: "#172b4d" },
28234
- { key: "black", label: "Black", hex: "#344563", text: "#ffffff" }
28238
+ { key: "black", label: "Black", hex: "#344563", text: "#ffffff" },
28239
+ { key: "teal", label: "Teal", hex: "#00796b", text: "#ffffff" },
28240
+ { key: "indigo", label: "Indigo", hex: "#3f51b5", text: "#ffffff" },
28241
+ { key: "violet", label: "Violet", hex: "#7e57c2", text: "#ffffff" },
28242
+ { key: "magenta", label: "Magenta", hex: "#c2185b", text: "#ffffff" },
28243
+ { key: "coral", label: "Coral", hex: "#ff7043", text: "#172b4d" },
28244
+ { key: "brown", label: "Brown", hex: "#8d6e63", text: "#ffffff" },
28245
+ { key: "olive", label: "Olive", hex: "#7a7a1f", text: "#ffffff" },
28246
+ { key: "gray", label: "Gray", hex: "#6b7280", text: "#ffffff" },
28247
+ { key: "gold", label: "Gold", hex: "#d4a017", text: "#172b4d" },
28248
+ { key: "mint", label: "Mint", hex: "#69f0ae", text: "#172b4d" },
28249
+ { key: "lavender", label: "Lavender", hex: "#b39ddb", text: "#172b4d" },
28250
+ { key: "navy", label: "Navy", hex: "#1a237e", text: "#ffffff" }
28235
28251
  ];
28236
28252
  var CARD_LABEL_COLOR_KEYS = CARD_LABEL_COLORS.map((color) => color.key);
28237
28253
  var DEFAULT_CARD_LABEL_COLOR = "green";
@@ -28276,7 +28292,7 @@ var themePreferencesSchema = external_exports.object({
28276
28292
  });
28277
28293
 
28278
28294
  // ../../packages/shared/src/plans.ts
28279
- var PLAN_IDS = ["free", "team", "enterprise"];
28295
+ var PLAN_IDS = ["free", "pro", "team", "enterprise"];
28280
28296
  var MEGABYTE = 1024 * 1024;
28281
28297
  var GIGABYTE = 1024 * MEGABYTE;
28282
28298
  var PLAN_CATALOG = {
@@ -28285,25 +28301,44 @@ var PLAN_CATALOG = {
28285
28301
  label: "Free",
28286
28302
  tagline: "For a solo workspace trying Aglio.",
28287
28303
  priceLabel: "$0",
28304
+ monthlyPriceUsd: 0,
28288
28305
  entitlements: {
28289
28306
  seats: 1,
28290
28307
  projects: 2,
28291
- runsPerMonth: 50,
28308
+ runsPerMonth: null,
28292
28309
  storageBytes: 500 * MEGABYTE,
28293
- poolSecondsPerMonth: 18e3
28310
+ poolSecondsPerMonth: 7200,
28311
+ cloudRunsPerMonth: 20
28312
+ }
28313
+ },
28314
+ pro: {
28315
+ id: "pro",
28316
+ label: "Pro",
28317
+ tagline: "For one person or a small crew shipping together.",
28318
+ priceLabel: "$19/mo",
28319
+ monthlyPriceUsd: 19,
28320
+ entitlements: {
28321
+ seats: 3,
28322
+ projects: 10,
28323
+ runsPerMonth: null,
28324
+ storageBytes: 5 * GIGABYTE,
28325
+ poolSecondsPerMonth: 72e3,
28326
+ cloudRunsPerMonth: 120
28294
28327
  }
28295
28328
  },
28296
28329
  team: {
28297
28330
  id: "team",
28298
28331
  label: "Team",
28299
28332
  tagline: "For a small team shipping together.",
28300
- priceLabel: "Manual invoice",
28333
+ priceLabel: "$49/mo",
28334
+ monthlyPriceUsd: 49,
28301
28335
  entitlements: {
28302
28336
  seats: 10,
28303
28337
  projects: 20,
28304
- runsPerMonth: 2e3,
28338
+ runsPerMonth: null,
28305
28339
  storageBytes: 20 * GIGABYTE,
28306
- poolSecondsPerMonth: 18e4
28340
+ poolSecondsPerMonth: 36e4,
28341
+ cloudRunsPerMonth: 500
28307
28342
  }
28308
28343
  },
28309
28344
  enterprise: {
@@ -28311,12 +28346,14 @@ var PLAN_CATALOG = {
28311
28346
  label: "Enterprise",
28312
28347
  tagline: "Unlimited seats, projects and usage.",
28313
28348
  priceLabel: "Contact us",
28349
+ monthlyPriceUsd: null,
28314
28350
  entitlements: {
28315
28351
  seats: null,
28316
28352
  projects: null,
28317
28353
  runsPerMonth: null,
28318
28354
  storageBytes: null,
28319
- poolSecondsPerMonth: null
28355
+ poolSecondsPerMonth: null,
28356
+ cloudRunsPerMonth: null
28320
28357
  }
28321
28358
  }
28322
28359
  };
@@ -43990,6 +44027,30 @@ function createServerForRun(run) {
43990
44027
  },
43991
44028
  async (input2) => forward("subtask_update", input2)
43992
44029
  );
44030
+ server.registerTool(
44031
+ "card_block_list",
44032
+ {
44033
+ description: "List the cards blocking this card and the cards it blocks. A blocked card is not claimed until every blocker is done.",
44034
+ inputSchema: {}
44035
+ },
44036
+ async () => forward("card_block_list", {})
44037
+ );
44038
+ server.registerTool(
44039
+ "card_block_add",
44040
+ {
44041
+ description: "Link a block with another card in this project. direction=blocks means this card blocks the target; blocked_by means the target blocks this card.",
44042
+ inputSchema: { cardId: external_exports.string().optional(), cardNumber: external_exports.number().int().positive().optional(), direction: external_exports.enum(["blocks", "blocked_by"]).optional() }
44043
+ },
44044
+ async (input2) => forward("card_block_add", input2)
44045
+ );
44046
+ server.registerTool(
44047
+ "card_block_remove",
44048
+ {
44049
+ description: "Remove a block between this card and another card. Same direction values as card_block_add.",
44050
+ inputSchema: { cardId: external_exports.string().optional(), cardNumber: external_exports.number().int().positive().optional(), direction: external_exports.enum(["blocks", "blocked_by"]).optional() }
44051
+ },
44052
+ async (input2) => forward("card_block_remove", input2)
44053
+ );
43993
44054
  server.registerTool(
43994
44055
  "card_propose",
43995
44056
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aglio-worker",
3
- "version": "0.29.0",
3
+ "version": "0.38.5",
4
4
  "description": "Host machine agent for Aglio: claims jobs over the API and starts aglio-runner containers.",
5
5
  "type": "module",
6
6
  "bin": {