@alan-ai-hq/agent-manager-linux-x64 0.1.185 → 0.1.187

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
@@ -20698,6 +20698,12 @@ var init_files = __esm({
20698
20698
  root: machinePathSchema,
20699
20699
  /** Paths relative to `root`: tracked and untracked, never ignored. */
20700
20700
  files: external_exports.array(external_exports.string()),
20701
+ /**
20702
+ * Paths relative to `root` that Git ignores: files, and a folder Git ignores whole as one
20703
+ * `dir/` entry, so a cache directory costs a path rather than its thousands of files.
20704
+ * Older runtimes omit it.
20705
+ */
20706
+ ignored: external_exports.array(external_exports.string()).optional(),
20701
20707
  /** Not a Git checkout, or its listing hit the cap: `files` is what a bounded walk found. */
20702
20708
  source: external_exports.enum(["git", "walk"]),
20703
20709
  truncated: external_exports.boolean()
@@ -22421,7 +22427,7 @@ var init_agent_runs_contracts = __esm({
22421
22427
  });
22422
22428
 
22423
22429
  // ../shared/src/runtime-v2/run-log.ts
22424
- var RUN_LOG_PROTOCOL, RUN_LOG_PROTOCOL_HEADER, RUN_STEERS_MAX, runAcceptedUpdateSchema, runStartedUpdateSchema, runCodexRateLimitsUpdateSchema, runWorkspaceRelocatedUpdateSchema, runOutcomeSchema, runRejectionCodeSchema, runEndedUpdateSchema, runLifecycleUpdateSchema, runLogRecordSchema;
22430
+ var RUN_LOG_PROTOCOL, RUN_LOG_PROTOCOL_HEADER, RUN_STEERS_MAX, runAcceptedUpdateSchema, runStartedUpdateSchema, runCodexRateLimitsUpdateSchema, runWorkspaceRelocatedUpdateSchema, gitShaSchema2, gitRefNameSchema, runGitRepositoryStateSchema, RUN_GIT_STATE_MAX_REPOSITORIES, runGitStateUpdateSchema, runOutcomeSchema, runRejectionCodeSchema, runEndedUpdateSchema, runLifecycleUpdateSchema, runLogRecordSchema;
22425
22431
  var init_run_log = __esm({
22426
22432
  "../shared/src/runtime-v2/run-log.ts"() {
22427
22433
  "use strict";
@@ -22435,9 +22441,16 @@ var init_run_log = __esm({
22435
22441
  RUN_STEERS_MAX = 100;
22436
22442
  runAcceptedUpdateSchema = external_exports.object({
22437
22443
  sessionUpdate: external_exports.literal("_alan/run.accepted"),
22438
- machineId: machineIdSchema,
22444
+ machineId: machineIdSchema.optional(),
22445
+ producer: external_exports.literal("hosted").optional(),
22446
+ ownerEpoch: external_exports.number().int().positive().max(Number.MAX_SAFE_INTEGER).optional(),
22439
22447
  acceptedAt: external_exports.number().int().nonnegative()
22440
- });
22448
+ }).refine(
22449
+ (value) => value.producer === "hosted" ? value.machineId === void 0 && value.ownerEpoch !== void 0 : value.machineId !== void 0 && value.ownerEpoch === void 0,
22450
+ {
22451
+ message: "Acceptance requires exactly one machine or hosted producer"
22452
+ }
22453
+ );
22441
22454
  runStartedUpdateSchema = external_exports.object({
22442
22455
  sessionUpdate: external_exports.literal("_alan/run.started"),
22443
22456
  providerSessionId: external_exports.string().min(1).optional(),
@@ -22460,6 +22473,23 @@ var init_run_log = __esm({
22460
22473
  previousPath: external_exports.string().min(1).max(4096),
22461
22474
  canonicalPath: external_exports.string().min(1).max(4096)
22462
22475
  });
22476
+ gitShaSchema2 = external_exports.string().regex(/^[0-9a-f]{40,64}$/);
22477
+ gitRefNameSchema = external_exports.string().min(1).max(256);
22478
+ runGitRepositoryStateSchema = external_exports.object({
22479
+ repoRoot: external_exports.string().min(1).max(4096),
22480
+ remoteUrl: external_exports.string().min(1).max(2048).nullable(),
22481
+ branch: gitRefNameSchema.nullable(),
22482
+ headSha: gitShaSchema2.nullable(),
22483
+ /** The remote branch `branch` tracks: null until it is pushed. */
22484
+ upstreamBranch: gitRefNameSchema.nullable(),
22485
+ upstreamSha: gitShaSchema2.nullable(),
22486
+ defaultBranch: gitRefNameSchema.nullable()
22487
+ });
22488
+ RUN_GIT_STATE_MAX_REPOSITORIES = 8;
22489
+ runGitStateUpdateSchema = external_exports.object({
22490
+ sessionUpdate: external_exports.literal("_alan/run.git_state"),
22491
+ repositories: external_exports.array(runGitRepositoryStateSchema).max(RUN_GIT_STATE_MAX_REPOSITORIES)
22492
+ });
22463
22493
  runOutcomeSchema = external_exports.enum(agentRunOutcomeEnum);
22464
22494
  runRejectionCodeSchema = external_exports.enum([
22465
22495
  "capacity",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alan-ai-hq/agent-manager-linux-x64",
3
- "version": "0.1.185",
3
+ "version": "0.1.187",
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",