@alan-ai-hq/agent-manager-linux-arm64 0.1.200 → 0.1.202

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
@@ -22502,7 +22502,7 @@ var init_query_result = __esm({
22502
22502
  });
22503
22503
 
22504
22504
  // ../shared/src/runtime-v2/link.ts
22505
- var LINK_PROTOCOL, linkHandshakeSchema, linkAuthSchema, linkEnrollmentAuthSchema, heldRunStateSchema, heldRunSchema, PROJECT_PATH_FALLBACK_FEATURE, helloSchema, helloAckSchema, handshakeHelloAckSchema, pokeReasonSchema, prewarmPokeSchema, desiredPokeSchema, pokeSchema, runAcceptedSchema, RUN_ANSWER_MAX_LENGTH, toolCallIdSchema, runAnswerSchema, runRespondRequestSchema, runRespondStatusSchema, runRespondResultSchema, runSteerRequestSchema, runSteerStatusSchema, runSteerResultSchema, backgroundTaskIdSchema, runStopTaskRequestSchema, backgroundTaskStopResultSchema, runStopTaskResultSchema, LINK_CONNECT_ERROR_CODES, linkConnectErrorSchema, LINK_FAILURE_REASONS;
22505
+ var LINK_PROTOCOL, linkHandshakeSchema, linkAuthSchema, linkEnrollmentAuthSchema, heldRunStateSchema, heldRunSchema, PROJECT_PATH_FALLBACK_FEATURE, helloSchema, helloAckSchema, handshakeHelloAckSchema, pokeReasonSchema, prewarmPokeSchema, desiredPokeSchema, pokeSchema, runAcceptedSchema, runInputsRequestSchema, runStartInputsSchema, runInputsResultSchema, RUN_ANSWER_MAX_LENGTH, toolCallIdSchema, runAnswerSchema, runRespondRequestSchema, runRespondStatusSchema, runRespondResultSchema, runSteerRequestSchema, runSteerStatusSchema, runSteerResultSchema, backgroundTaskIdSchema, runStopTaskRequestSchema, backgroundTaskStopResultSchema, runStopTaskResultSchema, LINK_CONNECT_ERROR_CODES, linkConnectErrorSchema, LINK_FAILURE_REASONS;
22506
22506
  var init_link = __esm({
22507
22507
  "../shared/src/runtime-v2/link.ts"() {
22508
22508
  "use strict";
@@ -22585,6 +22585,16 @@ var init_link = __esm({
22585
22585
  doorbellAt: external_exports.number().int().nonnegative().optional(),
22586
22586
  viaPush: external_exports.boolean().optional()
22587
22587
  });
22588
+ runInputsRequestSchema = external_exports.object({
22589
+ runId: runIdSchema,
22590
+ providerCredential: external_exports.boolean(),
22591
+ mcpCredential: external_exports.boolean()
22592
+ });
22593
+ runStartInputsSchema = external_exports.object({
22594
+ providerCredential: runProviderCredentialSchema.optional(),
22595
+ mcpCredential: machineMcpCredentialSchema.optional()
22596
+ });
22597
+ runInputsResultSchema = queryResultSchema(runStartInputsSchema);
22588
22598
  RUN_ANSWER_MAX_LENGTH = 1e5;
22589
22599
  toolCallIdSchema = external_exports.string().min(1).max(1e3);
22590
22600
  runAnswerSchema = external_exports.string().max(RUN_ANSWER_MAX_LENGTH);
@@ -24099,7 +24109,12 @@ var init_holder_protocol = __esm({
24099
24109
  requestId: external_exports.string().min(1)
24100
24110
  }),
24101
24111
  external_exports.object({ type: external_exports.literal("auth"), token: external_exports.string().min(1) }),
24102
- external_exports.object({ type: external_exports.literal("start_turn"), id: external_exports.string().min(1), spec: runSpecSchema }),
24112
+ external_exports.object({
24113
+ type: external_exports.literal("start_turn"),
24114
+ id: external_exports.string().min(1),
24115
+ spec: runSpecSchema,
24116
+ inputs: runStartInputsSchema.optional()
24117
+ }),
24103
24118
  external_exports.object({
24104
24119
  type: external_exports.literal("abort"),
24105
24120
  id: external_exports.string().min(1),
@@ -4,7 +4,7 @@
4
4
 
5
5
  An **image** is the prepared starting point for new cloud sessions. It contains the repositories and completed install steps from your team's [cloud setup](cloud-setup.md).
6
6
 
7
- A build starts from Alan's base image in a clean builder and runs the saved build setup: the environment's `initialize` and `maintenance` first, then each repository copied in at the head of its configured branch (or its `clone.ref`) followed by its own `initialize` and `maintenance`, then `post-build` checks. Nothing is read from the repository itself. It is not a copy of any running session. Uncommitted work, files you created by hand in a session, and session-only variables never reach it.
7
+ A build starts from Alan's base image in a clean builder and runs the saved build setup: the environment's `initialize` and `maintenance` first, then each repository copied in at the head of its configured branch (or its `clone.ref`) followed by its own `initialize` and `maintenance`, then `post-build` checks. Alan reads no setup file from the repository; only the saved steps run. It is not a copy of any running session. Uncommitted work, files you created by hand in a session, and session-only variables never reach it.
8
8
 
9
9
  ## What starts a build
10
10
 
@@ -27,7 +27,7 @@ Open the team's **Settings → Cloud Environment → Builds**. Builds are listed
27
27
  | --- | --- |
28
28
  | **Build** | A short build ID; **Current** marks the build whose image new sessions use |
29
29
  | **Type** | Manual, Agent, Preview, or Base update |
30
- | **Status** | **Queued**, **Building**, **Succeeded**, **Failed**, **Cancelled**, or **Superseded** |
30
+ | **Status** | **Queued**, **Building**, **Succeeded**, **Failed**, **Cancelled**, or **Superseded**. A built image still being copied to a sandbox provider shows **Importing to** the provider, and a failed copy shows **Import failed** with the provider's error; until the import finishes, new sessions there keep booting the previous image |
31
31
  | **Commit** | The first repository and commit built, for example `api@4f9c2a1 +1` |
32
32
  | **Started**, **Duration** | When it started and how long it took |
33
33
 
@@ -54,7 +54,7 @@ Use **Files** for `.env`-style files and **Variables** for single values. Put se
54
54
 
55
55
  ## Build setup
56
56
 
57
- Setup lives only in Alan. Nothing is read from your repository (`.alan/environment.json`, `.alan/setup.sh` and `.alan/start.sh` are not used), and no commit, push or merge is needed to change it. The **Build setup** tab holds versioned YAML revisions; each save creates a new revision. A new environment's first revision is imported from its last built image or its saved install and start commands.
57
+ Setup lives only in Alan. Alan reads no setup file from your repository (`.alan/environment.json` is not used), and no commit, push or merge is needed to change it. The **Build setup** tab holds versioned YAML revisions; each save creates a new revision. Write each command in the build setup itself: a step that calls a repository script such as `bash .alan/setup.sh` still runs whatever that file holds at the built commit. An older environment's first revision is imported from its last built image or its saved install and start commands; commands that called repository scripts are left out, and the tab asks you to review the import. Until a reviewed revision is saved, automatic image refreshes are paused for an environment whose import left commands out.
58
58
 
59
59
  There is one **environment build setup** and one **repository build setup** per repository. Each can set:
60
60
 
@@ -89,7 +89,7 @@ The build runs the environment's `initialize` and `maintenance` from the home fo
89
89
  - **Tasks** run to exit 0. Set `detach: true` to launch one in the background, like the old start command.
90
90
  - **Services** are long-running and must pass a `ready` probe: `http`, `tcp` or `exec`.
91
91
 
92
- Saving a revision or startup doesn't build anything. Choose **More actions → Trigger build** when you want new sessions to get the change. **Set up** means a build setup revision exists; it does not prove the app starts successfully. Use **Verify with agent** to check that.
92
+ > **Note:** Saving a revision or startup doesn't build anything. Choose **More actions → Trigger build** when you want new sessions to get the change. **Set up** means a build setup revision exists; it does not prove the app starts successfully. Use **Verify with agent** to check that.
93
93
 
94
94
  ## Set up with an agent
95
95
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: alan-environment-setup
3
- version: 7.1.0
3
+ version: 7.2.0
4
4
  description: Bootstrap, maintain or verify a repository's development environment (system packages, OS libraries, toolchains and runtime services) through the team's Cloud environment build setup. Use for /alan-environment-setup or explicit repository setup. Team Cloud environment creation and saved secrets use Alan MCP tools, not repository setup.
5
5
  ---
6
6
 
@@ -9,8 +9,10 @@ description: Bootstrap, maintain or verify a repository's development environmen
9
9
  Make the authorized development workflow reproducible in future Alan sessions.
10
10
  Setup lives only in Alan, as a versioned YAML **build setup** plus a **startup**
11
11
  setting. Nothing is committed to the customer's repository and no pull request
12
- is needed: saving a revision is the change. Follow the mode below; verification
13
- without changes needs no revision.
12
+ is needed: saving a revision is the change. Alan reads no setup file from the
13
+ repository, but a step that calls a repository script (`bash .alan/setup.sh`)
14
+ still runs whatever that file holds at the built commit, so a saved setup never
15
+ calls one. Follow the mode below; verification without changes needs no revision.
14
16
 
15
17
  ## Choose the mode and scope
16
18
 
@@ -26,6 +28,7 @@ the user asks. Use the modes below only for repository setup work.
26
28
  | Request or discovery | Mode | Work and completion criteria |
27
29
  | --- | --- | --- |
28
30
  | Set up / bootstrap an environment | Initial setup | Inspect selected repositories, draft the build setup and startup, pass a draft test build, save the revision, build the image and validate the product. |
31
+ | `read_build_setup` shows `needsReview`, an `attention` line, `source: imported`, or any step or startup node that calls a repository script | Migration | Run **Migrate a legacy or imported setup** before any other setup work. |
29
32
  | A task needs a system package, OS library, toolchain or runtime service the image does not provide | Maintenance | Change only the affected step, test the draft, save on the current revision and validate the affected feature. A package added to a manifest and lockfile is not maintenance when `maintenance` already installs from it. |
30
33
  | Is this environment running / usable? | Verification | Read the build setup, inspect current startup state and exercise the product. No revision or build is required when nothing changes. |
31
34
  | Explicitly verify a clean image build | Build verification | Run `test_environment_build` with the saved build setup and report it separately from startup and product evidence. |
@@ -35,10 +38,14 @@ branches, working directories, environment binding and startup state. Do not set
35
38
  up every attached repository during a scoped task. Read-only tasks remain
36
39
  read-only; report needed changes rather than saving them.
37
40
 
38
- An existing setup is whatever `read_build_setup` returns. Revision 1
39
- is imported from the last built image's recipe or from saved commands, so an
40
- older environment already has a build setup. Verify it works before deciding to
41
- skip a repository; repair a broken one as maintenance.
41
+ An existing setup is whatever `read_build_setup` returns. An imported revision
42
+ (`source: imported`) is a draft copied from the environment's old commands and
43
+ has never been reviewed. Its repository script calls were left out when it was
44
+ imported (`needsSetup: true`; automatic image refreshes stay paused until a
45
+ reviewed revision is saved), or, for a revision imported earlier, are still
46
+ there and listed in `repositoryScripts`. Either way it needs **Migration**.
47
+ "It works" is never a reason to keep a script call: the script can change or
48
+ disappear on any commit, and nobody reviewed what it does.
42
49
 
43
50
  Keep a short plan appropriate to the mode. Resume it after build-result messages;
44
51
  do not restart setup because a build result arrived.
@@ -152,8 +159,9 @@ build setup and never in it. It replaces the saved startup, so send the full set
152
159
  command in the background and does not wait, like the old start command.
153
160
  - `services` stay up and must pass a `ready` probe: `{kind: http, url}`,
154
161
  `{kind: tcp, port}` or `{kind: exec, run}`. Always give a service a probe.
155
- - Each has a `name` (lowercase letters, digits, hyphens), `repositoryId` or
156
- `null`, `run`, optional `timeoutSeconds` and `optional`.
162
+ - Each has a `name` (lowercase letters, digits, hyphens), `repository` (a clone
163
+ path from `read_build_setup`, or `null` for the workspace root), `run`,
164
+ optional `timeoutSeconds` and `optional`. `startup: null` clears startup.
157
165
 
158
166
  Startup must tolerate reruns, preserve data, skip healthy services and surface
159
167
  bootstrap failures. Run migrations and idempotent seeding as tasks before the
@@ -177,8 +185,10 @@ that state; call it again to watch it settle.
177
185
 
178
186
  1. Inspect README, AGENTS.md, package manifests/lockfiles, tool-version files,
179
187
  CI, existing scripts and service definitions. Identify canonical install,
180
- generation, migration, start and seed commands and reuse them. Identify
181
- required services, secrets and documented test identities.
188
+ generation, migration, start and seed commands from those documented
189
+ sources, and note where each came from. Read a setup script to learn its
190
+ commands; never call it from the build setup or startup. Identify required
191
+ services, secrets and documented test identities.
182
192
  2. Get the smallest required stack running in this sandbox. Fix the first
183
193
  concrete failing layer: system tools, project install/generation, local
184
194
  configuration, then services. Read the current startup log when context says
@@ -217,9 +227,9 @@ image build alone.
217
227
  dependencies that follow lockfiles in `maintenance`; test, lint and seed notes
218
228
  in `knowledge`; long-running processes in `startup` services with a probe.
219
229
  Environment-wide tools go in the environment build setup; repository work goes
220
- in that repository's build setup, keyed by clone path. Use existing scripts in
221
- the repository rather than copying their contents. Do not add a setup script to
222
- the repository.
230
+ in that repository's build setup, keyed by clone path. Write each command
231
+ inline; never call a repository setup script (`.alan/*.sh`, `scripts/setup.sh`,
232
+ `start.sh`) and never add one to the repository.
223
233
  3. **Test.** Call `test_environment_build` with the draft (`environmentSetup`
224
234
  and `repositories`). It renders the same Dockerfile as an image build and
225
235
  builds it on this sandbox's Docker, with the environment's variables, over
@@ -249,6 +259,37 @@ image build alone.
249
259
  call it with `full: true`; with `branch` (and `repository`) it builds that
250
260
  pushed branch of one repository.
251
261
 
262
+ ## Migrate a legacy or imported setup
263
+
264
+ Run this whenever `read_build_setup` returns `needsReview: true`, an `attention`
265
+ line, `source: imported`, or any entry in `repositoryScripts`, before other setup
266
+ work. Do not delete tracked `.alan` files or other scripts from the repository:
267
+ that is the repository owner's call. Only stop depending on them.
268
+
269
+ 1. **Read the sources.** Read every script the old setup called (the
270
+ `repositoryScripts` entries and the `omittedCommands` the import left out,
271
+ each with its `phase` and `clonePath`) and the repository's documented
272
+ sources: README, AGENTS.md, manifests and lockfiles, tool-version files, CI.
273
+ While `needsSetup` is true, `build_environment_image` is refused with
274
+ `build_setup_needs_review`; `test_environment_build` still runs.
275
+ 2. **Translate.** Turn each script into build setup steps: system packages and
276
+ toolchains into the environment `initialize`; lockfile installs into the
277
+ repository `maintenance`; migrations and idempotent seeds into startup tasks;
278
+ long-running processes into startup `services`, each with a `ready` probe;
279
+ test, lint and seed commands into `knowledge`. Give every step a name and
280
+ keep a note of the file and line each command came from.
281
+ 3. **Test** the draft with `test_environment_build` until it passes.
282
+ 4. **Save** with `update_build_setup`. The saved revision has no step or startup
283
+ node that calls a repository script; `read_build_setup` must show
284
+ `repositoryScripts: []` and no script `attention` line.
285
+ 5. **Build** with `build_environment_image` when authorized and end your turn.
286
+ The success message arrives only once the image is imported and new sessions
287
+ boot from it; an import failure arrives as a failed build.
288
+ 6. **Verify a new session.** Start or ask for a new session and confirm its
289
+ automatic startup succeeded and one product check passed.
290
+ 7. **Report** each old command and the steps that replace it, with sources, and
291
+ list anything that could not be translated as an explicit open item.
292
+
252
293
  ## Results, refusals and attempts
253
294
 
254
295
  Both tools and both results are structured so you act on them without guessing.
@@ -262,9 +303,13 @@ Both tools and both results are structured so you act on them without guessing.
262
303
  `environment_setup_actions` with the names), `branch_not_found` and
263
304
  `repository_empty` (fix the branch with `update_environment_repository`, or
264
305
  push), `provider_error` (retry once, then report), `unknown_repository`
265
- (`list_repositories`) and `build_setup_revision_conflict` (read again,
266
- reapply, save). A GitHub 404 cannot tell a missing branch from an empty or
267
- invisible repository, so `branch_not_found` there may be either.
306
+ (use a clone path from `read_build_setup`) and `build_setup_revision_conflict`
307
+ (read again, reapply, save). A GitHub 404 cannot tell a missing branch from
308
+ an empty or invisible repository, so `branch_not_found` there may be either.
309
+ - If a refusal names a repository that `read_build_setup` does not show, stop
310
+ and report a platform blocker; do not retry or work around it.
311
+ - Never repeat an unchanged call that returned `invalid_build_setup`. After two
312
+ identical refusals, stop and report the message.
268
313
  - `read_build_setup` also returns each repository's `optional` flag and its
269
314
  `lastAdmission` (what the newest build request decided for it) and
270
315
  `lastBuildRequest`, so you see which repositories a build would skip or
@@ -306,8 +351,12 @@ hide setup failures or run broad suites as a substitute for this journey.
306
351
 
307
352
  ## Outcome
308
353
 
309
- - Initial setup: a saved revision, a build ID and result, startup and product
310
- evidence, per repository **set up now**, **already set up** or **blocked**.
354
+ - Initial setup and migration are **done** only when each of these passed, and
355
+ each is reported separately: the draft test build, the saved revision, the
356
+ image build and its provider import becoming current, a **new** session's
357
+ automatic startup, and the product check. Report per repository **set up
358
+ now**, **already set up** or **blocked**; for a migration, list each old
359
+ command with the steps that replace it.
311
360
  - Maintenance: the revision saved, the test result and the affected feature check.
312
361
  - Verification: observed state only; report any repair needed separately.
313
362
 
@@ -31,3 +31,8 @@ Use the live tool schema; do not pass unsupported arguments. Fix the draft, reru
31
31
  | `Set NAME on the environment before building` / `build_secret_missing` | a build secret is not saved; `request` op `environment_setup_actions` with the names, end the turn, then build again |
32
32
  | a hosted build lacks a change that works in `test_environment_build` | the test uses this sandbox's working tree and the hosted build uses the pushed branch head; push first |
33
33
  | `Setup left credentials in the image` | a step logged in or wrote a token; remove the persistent credential output and delete temporary auth files |
34
+ | `read_build_setup` lists `repositoryScripts`, or `attention` says the revision is imported | the setup still depends on a repository script or is an unreviewed import; follow **Migrate a legacy or imported setup** and save a revision with no script calls |
35
+ | `needsSetup: true` and nothing in the image works | the import left out the repository scripts the old setup ran; read them and write their commands as build setup steps |
36
+ | a refusal names a repository `read_build_setup` does not show (`unknown_repository`) | platform state; stop and report it instead of retrying |
37
+ | the same `invalid_build_setup` twice | change what the message names; after two identical refusals stop and report |
38
+ | build succeeded but sessions boot the old image | the provider import is still running or failed (Builds tab shows **Importing** or **Import failed**); wait for it or report the provider error |
@@ -4,8 +4,8 @@
4
4
  "alan-artifact": "sha256:ed9997cb41538630d6c3f8f297e9de79c63d9523bc8c7d0903919b5a9d8c9a5d",
5
5
  "alan-deck": "sha256:c28976074cdb5c7c3c9d3358f14aa926fd3bd9efe4c49ca932ba9355f92bfa32",
6
6
  "alan-diagrams": "sha256:0c5db2370042ca6dbcee86a29cb2107f11287ada66f60936889e2af938db204a",
7
- "alan-docs": "sha256:79712b68cc3427fee9ffe90a4de23e39ba364323537127ac71915d6578d32016",
8
- "alan-environment-setup": "sha256:c1391dc846761cf25133c2f538a943338ef38432da69d1d9404479e973eed637",
7
+ "alan-docs": "sha256:50bb1402dc2d006c5a7e601359937e714f90e0b42cf28ae12609a3cc0f6ebed8",
8
+ "alan-environment-setup": "sha256:e0b7f2b907e447f8f2a3db8e46db5bc94ee28d42c45aadb53daf782ea3e447c2",
9
9
  "alan-skill-authoring": "sha256:328d4e9fff80fd376bf7737e820305e708c9da102710a61131d3baf2b93aaa99",
10
10
  "alan-tasks": "sha256:0c325cbc20f71d93354919b3f870386b54ab6dd0207a63eff485f83e28c4547e",
11
11
  "alan-test-android": "sha256:637a0174d024270d5fd462c7dc790b34566e01fa2c3085e9dfe5856683e97b03",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alan-ai-hq/agent-manager-linux-arm64",
3
- "version": "0.1.200",
3
+ "version": "0.1.202",
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",