@alan-ai-hq/agent-manager-linux-arm64 0.1.201 → 0.1.203

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);
@@ -22600,6 +22610,7 @@ var init_link = __esm({
22600
22610
  runSteerRequestSchema = external_exports.object({
22601
22611
  runId: runIdSchema,
22602
22612
  steerId: steerIdSchema,
22613
+ clientMessageId: external_exports.string().min(1).optional(),
22603
22614
  text: external_exports.string().min(1).max(RUN_ANSWER_MAX_LENGTH),
22604
22615
  sender: messageSenderSchema.optional()
22605
22616
  });
@@ -23058,6 +23069,7 @@ var init_run_log = __esm({
23058
23069
  );
23059
23070
  runStartedUpdateSchema = external_exports.object({
23060
23071
  sessionUpdate: external_exports.literal("_alan/run.started"),
23072
+ hostedSteer: external_exports.literal(true).optional(),
23061
23073
  providerSessionId: external_exports.string().min(1).optional(),
23062
23074
  pid: external_exports.number().int().positive().optional()
23063
23075
  });
@@ -23134,7 +23146,8 @@ var init_run_log = __esm({
23134
23146
  message: external_exports.string().optional(),
23135
23147
  rejection: runRejectionCodeSchema.optional(),
23136
23148
  /** Steers delivered after the provider's last read; the server runs them as the next turn. */
23137
- unansweredSteerIds: external_exports.array(steerIdSchema).max(RUN_STEERS_MAX).optional()
23149
+ unansweredSteerIds: external_exports.array(steerIdSchema).max(RUN_STEERS_MAX).optional(),
23150
+ deliveredHostedSteerIds: external_exports.array(steerIdSchema).max(RUN_STEERS_MAX).optional()
23138
23151
  }).refine((ended) => ended.outcome === "rejected" === (ended.rejection !== void 0), {
23139
23152
  message: "rejection is set exactly when the outcome is rejected",
23140
23153
  path: ["rejection"]
@@ -24099,7 +24112,12 @@ var init_holder_protocol = __esm({
24099
24112
  requestId: external_exports.string().min(1)
24100
24113
  }),
24101
24114
  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 }),
24115
+ external_exports.object({
24116
+ type: external_exports.literal("start_turn"),
24117
+ id: external_exports.string().min(1),
24118
+ spec: runSpecSchema,
24119
+ inputs: runStartInputsSchema.optional()
24120
+ }),
24103
24121
  external_exports.object({
24104
24122
  type: external_exports.literal("abort"),
24105
24123
  id: external_exports.string().min(1),
@@ -155,8 +155,8 @@ knowledge:
155
155
  Startup is saved with `update_build_setup` as `startup`, beside the
156
156
  build setup and never in it. It replaces the saved startup, so send the full set.
157
157
 
158
- - `tasks` run to exit 0 before new agent runs start. `detach: true` launches the
159
- command in the background and does not wait, like the old start command.
158
+ - `tasks` run in order to exit 0 before services launch. `detach: true` launches
159
+ the command in the background and does not wait, like the old start command.
160
160
  - `services` stay up and must pass a `ready` probe: `{kind: http, url}`,
161
161
  `{kind: tcp, port}` or `{kind: exec, run}`. Always give a service a probe.
162
162
  - Each has a `name` (lowercase letters, digits, hyphens), `repository` (a clone
@@ -167,16 +167,22 @@ Startup must tolerate reruns, preserve data, skip healthy services and surface
167
167
  bootstrap failures. Run migrations and idempotent seeding as tasks before the
168
168
  services that need them.
169
169
 
170
+ Startup never runs at boot or on resume. A new or woken session launches
171
+ nothing and waits for nothing; `run_startup` is the only way to start it.
172
+
170
173
  `run_startup` (optional `node`) runs the saved startup, or one task or service,
171
174
  in this session's live sandbox and returns each node's status with the redacted
172
175
  tail of `~/.alan/start-commands.log`. If startup is already running it returns
173
176
  that state; call it again to watch it settle.
174
177
 
178
+ - Context says `This environment's services are not running`: nothing has
179
+ started them in this sandbox. Call `run_startup` when the task needs the app,
180
+ tests or a preview, and not otherwise.
175
181
  - Context says `Startup <node> failed with exit code N`: call `read_build_setup`,
176
182
  fix that node with `update_build_setup`, call `run_startup` with that `node`,
177
183
  read the log it returns, then run it without `node` once it passes.
178
- - Context says the saved build setup is invalid: startup never ran. Fix the cited
179
- field with `update_build_setup`, then call `run_startup`.
184
+ - `run_startup` refuses with `invalid_build_setup`: nothing ran. Fix the cited
185
+ field with `update_build_setup`, then call `run_startup` again.
180
186
  - A context line saying the latest image build failed carries its code and
181
187
  message; `get_cloud_machine` has the full failure. UI-started and nightly builds
182
188
  send no message, so this line is how you learn their result.
@@ -212,12 +218,13 @@ that state; call it again to watch it settle.
212
218
 
213
219
  ## Verification
214
220
 
215
- Read the build setup, inspect the context's current startup result and its log. A
221
+ Read the build setup, inspect the context's current startup result and its log;
222
+ when context says the services are not running, call `run_startup` first. A
216
223
  detached task may have exited successfully while a service later failed; inspect
217
224
  live processes and readiness. Run **Product validation** for the requested scope.
218
225
 
219
226
  When nothing needs to change, report the observed result without saving or
220
- building. Never infer a verified new-session boot from manual startup or an
227
+ building. Never infer a verified new session from startup in this sandbox or an
221
228
  image build alone.
222
229
 
223
230
  ## Draft, test, save, build
@@ -267,10 +274,11 @@ work. Do not delete tracked `.alan` files or other scripts from the repository:
267
274
  that is the repository owner's call. Only stop depending on them.
268
275
 
269
276
  1. **Read the sources.** Read every script the old setup called (the
270
- `repositoryScripts` entries; for `needsSetup`, look for `.alan/setup.sh`,
271
- `.alan/start.sh`, `.alan/environment.json`, `scripts/setup.sh` and the like)
272
- and the repository's documented sources: README, AGENTS.md, manifests and
273
- lockfiles, tool-version files, CI.
277
+ `repositoryScripts` entries and the `omittedCommands` the import left out,
278
+ each with its `phase` and `clonePath`) and the repository's documented
279
+ sources: README, AGENTS.md, manifests and lockfiles, tool-version files, CI.
280
+ While `needsSetup` is true, `build_environment_image` is refused with
281
+ `build_setup_needs_review`; `test_environment_build` still runs.
274
282
  2. **Translate.** Turn each script into build setup steps: system packages and
275
283
  toolchains into the environment `initialize`; lockfile installs into the
276
284
  repository `maintenance`; migrations and idempotent seeds into startup tasks;
@@ -281,11 +289,11 @@ that is the repository owner's call. Only stop depending on them.
281
289
  4. **Save** with `update_build_setup`. The saved revision has no step or startup
282
290
  node that calls a repository script; `read_build_setup` must show
283
291
  `repositoryScripts: []` and no script `attention` line.
284
- 5. **Build** with `build_environment_image` when authorized, and confirm from
285
- `get_cloud_machine` or the Builds tab that the image was imported to the
286
- provider and became the current image, not only that the build succeeded.
287
- 6. **Verify a new session.** Start or ask for a new session and confirm its
288
- automatic startup succeeded and one product check passed.
292
+ 5. **Build** with `build_environment_image` when authorized and end your turn.
293
+ The success message arrives only once the image is imported and new sessions
294
+ boot from it; an import failure arrives as a failed build.
295
+ 6. **Verify a new session.** Start or ask for a new session, call `run_startup`
296
+ in it, and confirm startup succeeded and one product check passed.
289
297
  7. **Report** each old command and the steps that replace it, with sources, and
290
298
  list anything that could not be translated as an explicit open item.
291
299
 
@@ -352,8 +360,8 @@ hide setup failures or run broad suites as a substitute for this journey.
352
360
 
353
361
  - Initial setup and migration are **done** only when each of these passed, and
354
362
  each is reported separately: the draft test build, the saved revision, the
355
- image build and its provider import becoming current, a **new** session's
356
- automatic startup, and the product check. Report per repository **set up
363
+ image build and its provider import becoming current, `run_startup` in a
364
+ **new** session, and the product check. Report per repository **set up
357
365
  now**, **already set up** or **blocked**; for a migration, list each old
358
366
  command with the steps that replace it.
359
367
  - Maintenance: the revision saved, the test result and the affected feature check.
@@ -5,7 +5,7 @@
5
5
  "alan-deck": "sha256:c28976074cdb5c7c3c9d3358f14aa926fd3bd9efe4c49ca932ba9355f92bfa32",
6
6
  "alan-diagrams": "sha256:0c5db2370042ca6dbcee86a29cb2107f11287ada66f60936889e2af938db204a",
7
7
  "alan-docs": "sha256:50bb1402dc2d006c5a7e601359937e714f90e0b42cf28ae12609a3cc0f6ebed8",
8
- "alan-environment-setup": "sha256:01bf67368db809e4d3b2f208f73c7efcb98693a12503c17a84d522ba123b071d",
8
+ "alan-environment-setup": "sha256:4a4aaa5f01712100ecd702bf28185593a579424673be82f701584679d22a5943",
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.201",
3
+ "version": "0.1.203",
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",