@amistio/cli 0.1.56 → 0.1.57
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/README.md +1 -1
- package/dist/index.js +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ Runner setup and local-tool execution use bounded failure controls. During Git w
|
|
|
101
101
|
|
|
102
102
|
The environment doctor blocks work before local AI/tool execution when `git`, `node`, Corepack, the package manager, required package scripts, dependencies, setup allowlist, Docker, or the requested execution profile is not ready. Foreground, background, and startup-service runners accept `--execution-profile`; use `--setup-package-manager-install` with `hostWorktreeWithSetup` when the runner may run the fixed package-manager install step in the execution worktree. Work and Runner surfaces receive sanitized profile/readiness metadata only; raw host paths, command lines, environment values, and secrets are not uploaded. Watch mode also performs a Git PATH preflight before auto-sync or work claiming. If the runner reports that Git is not available to the runner PATH, install Git or restart the foreground, background, or startup-service runner from an environment where `git --version` works. On macOS, service and GUI-launched runner environments may not inherit the same PATH as an interactive shell, so restart or reinstall the service after changing PATH.
|
|
103
103
|
|
|
104
|
-
Runner watch mode defaults to bounded parallel claim lanes, capped at
|
|
104
|
+
Runner watch mode defaults to bounded parallel claim lanes, capped at 8. `--max-concurrent-work <count>` lowers or explicitly sets the advertised lane count; use `--max-concurrent-work 1` only when you intentionally want serial execution. The server enforces one active lease per runner lane, honors the advertised capacity, and keeps equivalent implementation scopes serialized through Git worktree locks; use separate lanes for independent work, not multiple attempts at the same ADR scope. Before local tool execution, the runner records a bounded user-level active claim with work item, lane, lease, implementation scope, and worktree key, then releases it on completion or failure; if another local lane already owns the same work or worktree, the runner skips execution and releases the server claim when possible.
|
|
105
105
|
|
|
106
106
|
Watch mode prints a completed-work success once per work item, keeps fresh completion visible briefly, and returns old completed work to the ready state when no queued, running, blocked, failed, review, or runner-readiness action needs attention.
|
|
107
107
|
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import { Command } from "commander";
|
|
|
9
9
|
|
|
10
10
|
// ../shared/src/schemas.ts
|
|
11
11
|
import { z } from "zod";
|
|
12
|
+
var runnerMaxConcurrentWorkLimit = 8;
|
|
12
13
|
var isoDateTimeSchema = z.string().datetime({ offset: true });
|
|
13
14
|
var itemTypeSchema = z.enum([
|
|
14
15
|
"account",
|
|
@@ -948,8 +949,8 @@ var runnerHeartbeatItemSchema = baseItemSchema.extend({
|
|
|
948
949
|
supportedExecutionEnvironmentProfiles: z.array(runnerExecutionEnvironmentProfileSchema).optional(),
|
|
949
950
|
currentExecutionEnvironmentProfile: runnerExecutionEnvironmentProfileSchema.optional(),
|
|
950
951
|
environmentReadiness: runnerEnvironmentReadinessSchema.optional(),
|
|
951
|
-
maxConcurrentWork: z.number().int().min(1).max(
|
|
952
|
-
activeClaimLaneIds: z.array(runnerClaimLaneIdSchema).max(
|
|
952
|
+
maxConcurrentWork: z.number().int().min(1).max(runnerMaxConcurrentWorkLimit).optional(),
|
|
953
|
+
activeClaimLaneIds: z.array(runnerClaimLaneIdSchema).max(runnerMaxConcurrentWorkLimit).optional(),
|
|
953
954
|
currentWorkItemId: z.string().min(1).optional(),
|
|
954
955
|
currentImplementationScopeId: z.string().min(1).optional(),
|
|
955
956
|
currentWorktreeKey: z.string().min(1).optional(),
|
|
@@ -11221,7 +11222,7 @@ var DEFAULT_MAX_PREFLIGHT_ATTEMPTS = 3;
|
|
|
11221
11222
|
var DEFAULT_TOOL_TIMEOUT_SECONDS = 30 * 60;
|
|
11222
11223
|
var RUNNER_WORK_LEASE_SECONDS = 300;
|
|
11223
11224
|
var RUNNER_WORK_LEASE_RENEWAL_MS = 12e4;
|
|
11224
|
-
var MAX_CONCURRENT_RUNNER_WORK =
|
|
11225
|
+
var MAX_CONCURRENT_RUNNER_WORK = runnerMaxConcurrentWorkLimit;
|
|
11225
11226
|
var runnerSupportedWorkKinds = ["brainGeneration", "implementation", "promptBatch", "planRevision", "assistantQuestion", "impactPreview", "issueDiagnosis", "securityPostureScan", "appEvaluationScan", "brainConsolidationScan", "projectContextRefresh", "implementationVerification", "testQualityScan", "implementationTestGate"];
|
|
11226
11227
|
program.name("amistio").description("Amistio project brain CLI").version(CLI_VERSION);
|
|
11227
11228
|
program.command("init").description("Create Amistio control-plane folders for a new project").option("--root <path>", "Repository root", defaultRoot).action(async (options) => {
|
|
@@ -13512,7 +13513,8 @@ async function submitImplementationFinalizationEntry(apiClient, entry, options =
|
|
|
13512
13513
|
...entry.telemetry,
|
|
13513
13514
|
message: message2,
|
|
13514
13515
|
blockerReason: message2,
|
|
13515
|
-
releaseClaim: true
|
|
13516
|
+
releaseClaim: true,
|
|
13517
|
+
releaseReason: "implementationTestGatePending"
|
|
13516
13518
|
}).catch((releaseError) => {
|
|
13517
13519
|
console.error(`Could not release implementation work ${entry.workItemId} while waiting for its test gate: ${truncateLogExcerpt(errorMessage7(releaseError))}`);
|
|
13518
13520
|
});
|