@alan-ai-hq/agent-manager-linux-x64 0.1.174 → 0.1.176

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/alan-lease.cjs CHANGED
@@ -20615,6 +20615,11 @@ var init_activity_lease = __esm({
20615
20615
  mainThreadLagMs: external_exports.number().int().nonnegative(),
20616
20616
  runs: external_exports.array(leasedRunSchema),
20617
20617
  holders: external_exports.array(leasedHolderSchema),
20618
+ /**
20619
+ * Desired runs not started because their conversation is still running an earlier turn.
20620
+ * Absent from older runtimes.
20621
+ */
20622
+ busyRunIds: external_exports.array(runIdSchema).max(200).optional(),
20618
20623
  vm: leasedVmPressureSchema.nullable()
20619
20624
  });
20620
20625
  activityLeaseAckSchema = external_exports.object({
@@ -21399,6 +21404,22 @@ var init_contracts = __esm({
21399
21404
  }
21400
21405
  });
21401
21406
 
21407
+ // ../shared/src/runtime-v2/commit-attribution.ts
21408
+ var TRAILER_VALUE, gitCoAuthorSchema, FOREIGN_ATTRIBUTION_PATTERN, FOREIGN_ATTRIBUTION;
21409
+ var init_commit_attribution = __esm({
21410
+ "../shared/src/runtime-v2/commit-attribution.ts"() {
21411
+ "use strict";
21412
+ init_zod();
21413
+ TRAILER_VALUE = /^[^\r\n<>]+$/;
21414
+ gitCoAuthorSchema = external_exports.object({
21415
+ name: external_exports.string().min(1).max(256).regex(TRAILER_VALUE),
21416
+ email: external_exports.string().min(3).max(320).regex(/^[^\s<>]+@[^\s<>]+$/)
21417
+ });
21418
+ FOREIGN_ATTRIBUTION_PATTERN = "^[ ]*((co-authored-by|assisted-by|generated-by|made-with):|(\u{1F916}[ ]*)?generated (with|by) )";
21419
+ FOREIGN_ATTRIBUTION = new RegExp(FOREIGN_ATTRIBUTION_PATTERN, "iu");
21420
+ }
21421
+ });
21422
+
21402
21423
  // ../shared/src/runtime-v2/run-context.ts
21403
21424
  function wire() {
21404
21425
  return (schema) => schema;
@@ -21560,6 +21581,7 @@ var init_desired_state = __esm({
21560
21581
  init_cloud_repositories();
21561
21582
  init_contracts();
21562
21583
  init_agent_context();
21584
+ init_commit_attribution();
21563
21585
  init_ids();
21564
21586
  init_run_context();
21565
21587
  init_workspace();
@@ -21614,7 +21636,9 @@ var init_desired_state = __esm({
21614
21636
  contextGraphEnabled: external_exports.boolean().optional(),
21615
21637
  cloudEnvironmentId: external_exports.guid().optional(),
21616
21638
  sandboxId: external_exports.string().min(1).optional(),
21617
- localRepoUrls: external_exports.array(external_exports.string().min(1)).optional()
21639
+ localRepoUrls: external_exports.array(external_exports.string().min(1)).optional(),
21640
+ /** The deployed GitHub App's bot, credited on every commit the turn makes; absent from older servers. */
21641
+ gitCoAuthor: gitCoAuthorSchema.optional()
21618
21642
  // Never here: the provider API key. The holder fetches it per run (RUN_PROVIDER_CREDENTIAL_PATH).
21619
21643
  });
21620
21644
  desiredRunSchema = external_exports.object({
@@ -22664,6 +22688,7 @@ var init_runtime_v2 = __esm({
22664
22688
  init_activity_lease();
22665
22689
  init_agent_context();
22666
22690
  init_capabilities();
22691
+ init_commit_attribution();
22667
22692
  init_desired_state();
22668
22693
  init_files();
22669
22694
  init_git_capability();
@@ -23328,8 +23353,9 @@ function runDirectory(runsDir, runId) {
23328
23353
  }
23329
23354
 
23330
23355
  // src/cli/commands/activity-lease-producer.ts
23331
- function runsKey(runs) {
23332
- return runs.map((run) => `${run.runId}:${run.state}`).sort().join(",");
23356
+ function snapshotKey(snapshot) {
23357
+ const runs = snapshot.runs.map((run) => `${run.runId}:${run.state}`).sort();
23358
+ return `${runs.join(",")}|${[...snapshot.busyRunIds].sort().join(",")}`;
23333
23359
  }
23334
23360
  function delta(current, previous) {
23335
23361
  return previous === void 0 ? 0 : Math.max(0, Math.round(current - previous));
@@ -23416,7 +23442,8 @@ function createLeaseProducer(deps) {
23416
23442
  mainThreadLagMs: Math.max(0, Math.round(deps.mainThreadLagMs())),
23417
23443
  runs: await runs(activities),
23418
23444
  holders: await holders(activities),
23419
- vm: await vmPressure()
23445
+ vm: await vmPressure(),
23446
+ busyRunIds: state.snapshot?.busyRunIds ?? []
23420
23447
  };
23421
23448
  state.sequence += 1;
23422
23449
  return lease;
@@ -23429,7 +23456,7 @@ function createLeaseProducer(deps) {
23429
23456
  };
23430
23457
  return {
23431
23458
  update: (snapshot) => {
23432
- const changed = state.snapshot === null || runsKey(snapshot.runs) !== runsKey(state.snapshot.runs);
23459
+ const changed = state.snapshot === null || snapshotKey(snapshot) !== snapshotKey(state.snapshot);
23433
23460
  state.snapshot = snapshot;
23434
23461
  return changed;
23435
23462
  },
@@ -23490,7 +23517,8 @@ var snapshotRunSchema = external_exports.object({
23490
23517
  var leaseSnapshotSchema = external_exports.object({
23491
23518
  type: external_exports.literal("snapshot"),
23492
23519
  accessToken: external_exports.string().min(1),
23493
- runs: external_exports.array(snapshotRunSchema)
23520
+ runs: external_exports.array(snapshotRunSchema),
23521
+ busyRunIds: external_exports.array(runIdSchema)
23494
23522
  });
23495
23523
  var leaseWorkerMessageSchema = external_exports.object({
23496
23524
  type: external_exports.literal("unauthorized")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alan-ai-hq/agent-manager-linux-x64",
3
- "version": "0.1.174",
3
+ "version": "0.1.176",
4
4
  "description": "Alan machine runtime (alan-agent) for one platform: the official Node.js binary, the runtime bundle and its launcher. Installed by @alan-ai-hq/agent-manager.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://tryalan.ai",