@forgezero/agent 0.1.100 → 0.1.101

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 CHANGED
@@ -11,7 +11,7 @@ The node agent deploys on a compute; tenant mode also holds one complete project
11
11
 
12
12
  ## Package overview
13
13
 
14
- Every managed compute. It owns node identity, attestation and repository pipelines. An SNP compute may hold its assigned whole project across environments in RAM after current attestation. Ordinary compute is API-only unless an administrator explicitly records the versioned non-TEE risk acceptance for that concrete machine. Platform mode never replicates realm-wide API authority beside the process that already holds unlocked realm seeds. Supported runtimes: bun, node. Package root: @forgezero/agent. The sections below show the actual named imports emitted by each declaration entry point; wildcard imports are intentionally not used in the documentation.
14
+ Every managed compute. It owns node identity, attestation and repository pipelines. An SNP compute may hold its assigned whole project across environments in RAM after current attestation. Ordinary compute is API-only unless an administrator explicitly records the versioned non-TEE risk acceptance for that concrete machine. Platform mode never replicates realm-wide API authority beside the process that already holds unlocked realm seeds. Supported runtimes: bun, node. Package root: @forgezero/agent. Consumer documentation is curated with each module's explicit public flag; the complete internal/export inventory remains in the typed SSOT and declaration files.
15
15
 
16
16
  ```text
17
17
  bun add -g @forgezero/agent
@@ -29,1127 +29,37 @@ The five packages are installation boundaries. Choose a package by who installs
29
29
  | @forgezero/runtime | Portable runtime primitives for queries, jobs, events, schemas and finance. | bun, node | [Open](https://www.forgezero.net/docs/runtime) |
30
30
  | @forgezero/agent | Operator CLI and managed-node agent for bootstrap, deploy and lifecycle. | bun, node | [Open](https://www.forgezero.net/docs/agent) |
31
31
 
32
- ## @forgezero/agent public imports and commands
32
+ ## @forgezero/agent supported imports and commands
33
33
 
34
- Every row links to the detailed explanation and named-import/example area below. This table and those details are generated from the package inventory and emitted declarations.
34
+ These are supported consumer entry points, not every internal module shipped for ForgeZero managed installation. Each row links to its task-oriented usage.
35
35
 
36
36
  | public entry | short description | runtime | details |
37
37
  |---|---|---|---|
38
- | fz | The operator command: keys, status, genesis, unlock, run, and agent install. | Bun/Node host | [Reference + usage](#fz) |
39
- | fz run | The fallback for software that cannot read the local socket: start a process with scoped vault values in its environment. | Bun/Node host | [Reference + usage](#fz-run) |
40
- | fz agent install | Provision the same hardened agent service locally that the platform provisions remotely. | Bun/Node host | [Reference + usage](#fz-agent-install) |
41
- | fz-agent | The service entry point. Identity and private Git material arrive only as systemd credentials. A platform bootstrap may use a statically configured local control socket; an enrolled tenant guest builds each deployment manager from its signed server claim and reads all commands from the checked-out .fz definition. The signed enrolment binding constructs the exact project scope. Vault synchronization succeeds only when the API sees current SNP evidence or an audited versioned non-TEE acceptance; ordinary compute otherwise remains API-only and a revocation clears its resident cache. | Bun/Node host | [Reference + usage](#fz-agent) |
42
- | fz-agent (socket) | identity, sign, attest, get, sync and held — the whole interface an application sees. | Bun/Node host | [Reference + usage](#fz-agent-socket) |
43
- | @forgezero/agent/migration-pull | PQ-authenticated outbound lifecycle claims with fenced renewal, awaited async execution, idempotent acknowledgement and bounded shutdown drain. The executor reports local facts only. | Bun/Node host | [Reference + usage](#forgezero-agent-migration-pull) |
44
- | @forgezero/agent/lifecycle-helper | The root-owned fixed-operation boundary for migration work. Signed controller claims can request only private reachability probes, local health checks, or stops of units named in a root-owned profile; they cannot carry commands. | Bun/Node host | [Reference + usage](#forgezero-agent-lifecycle-helper) |
45
- | @forgezero/agent/provision | The install plan as data, with no transport — so `fz` running locally and the platform running over SSH provision an identical machine. | Bun/Node host | [Reference + usage](#forgezero-agent-provision) |
46
- | @forgezero/agent/platform-genesis | Offline authority adapter for the brief pre-API period. It validates exactly three reviewed generic guest requests and converts them to the same Metal claims the live API issues; environment and product tier are not provisioning inputs. | Bun/Node host | [Reference + usage](#forgezero-agent-platform-genesis) |
47
- | @forgezero/agent/subscribe | Realtime scope sync over a WebSocket, with the poll kept underneath it: the poll is what establishes freshness, and a change it finds that the socket never sent is proof the socket is lying. | Bun/Node host | [Reference + usage](#forgezero-agent-subscribe) |
48
- | @forgezero/agent/ssh-listen | The socket SSH_AUTH_SOCK points at. The protocol handler had nowhere to speak — an agent protocol with no socket is a parser. The containing directory is 0700 before anything binds, because the socket’s own mode is only corrected after it already exists. | Bun/Node host | [Reference + usage](#forgezero-agent-ssh-listen) |
49
- | @forgezero/agent/ssh-server | Serve the SSH agent protocol so SSH_AUTH_SOCK points at the vault — two operations implemented, and ADD_IDENTITY refused so no process can inject a key ssh would offer to every host. | Bun/Node host | [Reference + usage](#forgezero-agent-ssh-server) |
50
- | @forgezero/agent/pipeline | CI/CD on the compute: secrets reach the step that named them and nothing else, attestation gates the run, and a required attestation that fails is a refusal rather than a downgrade. | Bun/Node host | [Reference + usage](#forgezero-agent-pipeline) |
51
- | @forgezero/agent/agent-heartbeat | Signed node health publication with bounded renewal and shutdown withdrawal. | Bun/Node host | [Reference + usage](#forgezero-agent-agent-heartbeat) |
52
- | @forgezero/agent/agent-update | Verified Agent update planning against the platform release coordinate. | Bun/Node host | [Reference + usage](#forgezero-agent-agent-update) |
53
- | @forgezero/agent/agent-update-helper | Root-owned fixed update operations with registry origin and integrity validation. | Bun/Node host | [Reference + usage](#forgezero-agent-agent-update-helper) |
54
- | @forgezero/agent/bootstrap | Typed one-time platform bootstrap and internal API-driven enrolled-compute activation contracts. | Bun/Node host | [Reference + usage](#forgezero-agent-bootstrap) |
55
- | @forgezero/agent/bootstrap-bundle | Owner-only exact-revision Git bundle and SHA-256 manifest for credential-free release generation one. | Bun/Node host | [Reference + usage](#forgezero-agent-bootstrap-bundle) |
56
- | @forgezero/agent/operator-bootstrap | Pinned-host operator transport that stages owner-only handoffs and invokes the same typed platform bootstrap through the caller-approved SSH agent. | Bun/Node host | [Reference + usage](#forgezero-agent-operator-bootstrap) |
57
- | @forgezero/agent/host-maintenance | Closed host maintenance plans for staging transaction rehearsal and fleet-fenced schema consolidation through fixed transient systemd units. | Bun/Node host | [Reference + usage](#forgezero-agent-host-maintenance) |
58
- | @forgezero/agent/capacity-calibration | One-time target-local safe-concurrency calibration with private evidence. | Bun/Node host | [Reference + usage](#forgezero-agent-capacity-calibration) |
59
- | @forgezero/agent/cloudflare-bootstrap | Attended two-token Cloudflare Tunnel/DNS reconciliation and per-node connector/KV runtime handoff for existing KV resources. | Bun/Node host | [Reference + usage](#forgezero-agent-cloudflare-bootstrap) |
60
- | @forgezero/agent/cloudflare-edge | Strict Cloudflare REST operations used by the attended bootstrap controller. | Bun/Node host | [Reference + usage](#forgezero-agent-cloudflare-edge) |
61
- | @forgezero/agent/mesh-connector | Fixed Cloudflare Mesh/WARP connector enrollment using only the unit-loaded connector credential. | Bun/Node host | [Reference + usage](#forgezero-agent-mesh-connector) |
62
- | @forgezero/agent/compute | Compute claim, renewal, execution and completion client contracts. | Bun/Node host | [Reference + usage](#forgezero-agent-compute) |
63
- | @forgezero/agent/credential-schema | Canonical systemd credential names and validation shared by bootstrap and services. | Bun/Node host | [Reference + usage](#forgezero-agent-credential-schema) |
64
- | @forgezero/agent/definition | Legacy version 3 JSON deployment compatibility contract. | Bun/Node host | [Reference + usage](#forgezero-agent-definition) |
65
38
  | @forgezero/agent/deploy | Typed deployment authoring builders, built-in provider requirements and versioned action constructors. | Bun/Node host | [Reference + usage](#forgezero-agent-deploy) |
66
- | @forgezero/agent/deployment-targets | Bounded input resolution and stable compute-target assignment for typed plans; emits requirements and slots rather than physical hostnames. | Bun/Node host | [Reference + usage](#forgezero-agent-deployment-targets) |
67
- | @forgezero/agent/deployment-connectivity | Root-owned convergence of exact private routes, routed-port firewall rules and per-target Cloudflare Tunnel or Mesh connector capabilities without exposing the project management token to a compute. | Bun/Node host | [Reference + usage](#forgezero-agent-deployment-connectivity) |
68
- | @forgezero/agent/deployment-topology | Pure per-Metal relay election and hierarchical peer assignment: one or two Metals stay direct-private, while three or more grant Mesh/WARP only to relay and standby. | Bun/Node host | [Reference + usage](#forgezero-agent-deployment-topology) |
69
- | @forgezero/agent/deploy-plan | Runtime validation, canonicalization and semantic digest for inert deployment plans. | Bun/Node host | [Reference + usage](#forgezero-agent-deploy-plan) |
70
- | @forgezero/agent/deploy-plan-runner | Conditional DAG execution with bounded retry, compensation and failure policy over injected action handlers. | Bun/Node host | [Reference + usage](#forgezero-agent-deploy-plan-runner) |
71
- | @forgezero/agent/deploy-compiler | Explicit developer/CI compiler from forgezero.deploy.ts to canonical .fz/deploy.plan.json; never used to execute project TypeScript in production. | Bun/Node host | [Reference + usage](#forgezero-agent-deploy-compiler) |
72
- | @forgezero/agent/deploy-file | Read and validate a checked-out .fz deployment file without executing project input. | Bun/Node host | [Reference + usage](#forgezero-agent-deploy-file) |
73
- | @forgezero/agent/metal-bootstrap | Physical-metal bootstrap planning, application and status evidence. | Bun/Node host | [Reference + usage](#forgezero-agent-metal-bootstrap) |
74
- | @forgezero/agent/metal-provision | The single constrained compute materializer for platform genesis, platform scaling and tenant compute. It executes caller-supplied OS, CPU, memory, disk, bandwidth, network and confidentiality coordinates after capacity and image validation; it owns no environment or product-tier shape. | Bun/Node host | [Reference + usage](#forgezero-agent-metal-provision) |
75
- | @forgezero/agent/platform-bootstrap-runtime | Pure platform bootstrap validation, render and resumable phase-state contracts. | Bun/Node host | [Reference + usage](#forgezero-agent-platform-bootstrap-runtime) |
76
- | @forgezero/agent/project-context | Project identity and repository context validation for operator and managed runs. | Bun/Node host | [Reference + usage](#forgezero-agent-project-context) |
77
- | @forgezero/agent/provisioning-pull | Signed provisioning work claim, renewal, execution and acknowledgement. | Bun/Node host | [Reference + usage](#forgezero-agent-provisioning-pull) |
78
39
  | @forgezero/agent/schema/deploy-v3.json | Published JSON Schema for deployment definition version 3 with exact argv execution. | Bun/Node host | [Reference + usage](#forgezero-agent-schema-deploy-v3-json) |
79
- | @forgezero/agent/software | Exact managed-software inventory, requirement and evidence contracts. | Bun/Node host | [Reference + usage](#forgezero-agent-software) |
80
- | @forgezero/agent/software-helper | Root-owned fixed installation/update boundary for declared software. | Bun/Node host | [Reference + usage](#forgezero-agent-software-helper) |
81
- | @forgezero/agent/ubuntu | The closed guest-image view: pinned Ubuntu 26.04 LTS x64 supports ordinary or SEV-SNP compute, while pinned Ubuntu 24.04 LTS x64 is limited to ordinary non-confidential compute. Every other OS remains rejected until its own pinned strategy and acceptance evidence are added. | Bun/Node host | [Reference + usage](#forgezero-agent-ubuntu) |
82
- | fz-agent (replica) | The authorized project-scoped vault replica: resident in RAM, never on disk, invalidated by cursor rather than by timer, cleared when local authority is revoked, and refusing a read it can no longer vouch for. | Bun/Node host | [Reference + usage](#fz-agent-replica) |
83
40
 
84
41
  ## Commands
85
42
 
86
43
  bun add -g @forgezero/agent — Install the version-matched fz operator CLI and fz-agent daemon.
87
44
  fz deploy init — Create a typed forgezero.deploy.ts and its canonical inert execution plan.
88
- fz deploy init --runtime containerd --os ubuntu-24.04 --replicas 1 --cpu-cores 2 --memory-mib 2048 --storage-gib 20 --reuse require — Create one ordinary containerd/runc compute definition with exact reserved resources; existing eligible project capacity is required.
89
- fz deploy init --runtime kata-snp --os ubuntu-26.04 --replicas 1 --cpu-cores 2 --memory-mib 4096 --storage-gib 40 --reuse require — Create one Kata QEMU SEV-SNP definition on existing eligible capacity. Use reuse prefer only with the explicit provisioning and spend-ceiling flags shown by fz deploy init --help.
90
45
  fz deploy compile — Compile and validate TypeScript deployment intent into .fz/deploy.plan.json.
91
46
  fz deploy check — Refuse stale plans, unsafe provider/action coordinates and unresolved deployment blockers.
92
- fz bootstrap platform launch --profile development --apply — Run the one attended ForgeZero launch: public topology and bundle are derived; answer only email settings, hidden provider tokens and APPLY.
93
- fz bootstrap platform fleet apply --bootstrap-config /secure/forgezero/development/genesis/platform-fleet-remote.json — Resume or diagnose an already generated fleet plan; this is not the normal first-launch path.
94
- fz bootstrap platform --help — Inspect attended platform bootstrap inputs before applying them.
95
- fz bootstrap metal --help — Inspect the identity-only physical provisioner bootstrap.
96
- fz host transactions|schema-plan|schema-apply — Plan fixed supervised database maintenance; add --apply only after reviewing the exact argv and credential names.
97
- fz status — Read installed service and bootstrap evidence.
98
47
 
99
48
  ```text
100
49
  bun add -g @forgezero/agent
101
50
  fz deploy init
102
- fz deploy init --runtime containerd --os ubuntu-24.04 --replicas 1 --cpu-cores 2 --memory-mib 2048 --storage-gib 20 --reuse require
103
- fz deploy init --runtime kata-snp --os ubuntu-26.04 --replicas 1 --cpu-cores 2 --memory-mib 4096 --storage-gib 40 --reuse require
104
51
  fz deploy compile
105
52
  fz deploy check
106
- fz bootstrap platform launch --profile development --apply
107
- fz bootstrap platform fleet apply --bootstrap-config /secure/forgezero/development/genesis/platform-fleet-remote.json
108
- fz bootstrap platform --help
109
- fz bootstrap metal --help
110
- fz host transactions|schema-plan|schema-apply
111
- fz status
112
- ```
113
-
114
- <a id="fz"></a>
115
- ## fz
116
-
117
- The operator command: keys, status, genesis, unlock, run, and agent install. This entry requires a Bun/Node host runtime. Run the command with `--help` before applying it.
118
-
119
- ```text
120
- fz --help
121
- ```
122
-
123
- ## fz — Keep project truth synchronized
124
-
125
- One versioned ForgeZero manifest generates thin AI-tool adapters and CI rejects drift.
126
-
127
- ```text
128
- fz project init
129
- fz project sync
130
- fz project check
131
- ```
132
-
133
- <a id="fz-run"></a>
134
- ## fz run
135
-
136
- The fallback for software that cannot read the local socket: start a process with scoped vault values in its environment. This entry requires a Bun/Node host runtime. Run the command with `--help` before applying it.
137
-
138
- ```text
139
- fz run --help
140
- ```
141
-
142
- ## fz run — Inspect before use
143
-
144
- This is a command entry. Read its typed option contract before an operation; apply-capable commands remain plans unless their explicit apply flag is supplied.
145
-
146
- ```text
147
- fz run --help
148
- ```
149
-
150
- <a id="fz-agent-install"></a>
151
- ## fz agent install
152
-
153
- Provision the same hardened agent service locally that the platform provisions remotely. This entry requires a Bun/Node host runtime. Run the command with `--help` before applying it.
154
-
155
- ```text
156
- fz agent install --help
157
- ```
158
-
159
- ## fz agent install — Inspect before use
160
-
161
- This is a command entry. Read its typed option contract before an operation; apply-capable commands remain plans unless their explicit apply flag is supplied.
162
-
163
- ```text
164
- fz agent install --help
165
- ```
166
-
167
- <a id="fz-agent"></a>
168
- ## fz-agent
169
-
170
- The service entry point. Identity and private Git material arrive only as systemd credentials. A platform bootstrap may use a statically configured local control socket; an enrolled tenant guest builds each deployment manager from its signed server claim and reads all commands from the checked-out .fz definition. The signed enrolment binding constructs the exact project scope. Vault synchronization succeeds only when the API sees current SNP evidence or an audited versioned non-TEE acceptance; ordinary compute otherwise remains API-only and a revocation clears its resident cache. This entry requires a Bun/Node host runtime. Run the command with `--help` before applying it.
171
-
172
- ```text
173
- fz-agent --help
174
- ```
175
-
176
- ## fz-agent — Inspect before use
177
-
178
- This is a command entry. Read its typed option contract before an operation; apply-capable commands remain plans unless their explicit apply flag is supplied.
179
-
180
- ```text
181
- fz-agent --help
182
- ```
183
-
184
- <a id="fz-agent-socket"></a>
185
- ## fz-agent (socket)
186
-
187
- identity, sign, attest, get, sync and held — the whole interface an application sees. This entry requires a Bun/Node host runtime. This is a managed runtime interface label, not an import or standalone executable.
188
-
189
- ```text
190
- fz-agent (socket)
191
- # Accessed through the installed Agent boundary.
192
- ```
193
-
194
- ## fz-agent (socket) — Outbound control boundary
195
-
196
- The Metal Agent initiates outbound signed HTTPS for orchestration. Applications use the project-scoped local Unix socket; the platform never opens an inbound shell control plane.
197
-
198
- ```text
199
- metal/compute Agent -> outbound signed HTTPS -> platform API
200
- application -> local Unix socket -> project-scoped Vault replica
201
- ```
202
-
203
- <a id="forgezero-agent-migration-pull"></a>
204
- ## @forgezero/agent/migration-pull
205
-
206
- PQ-authenticated outbound lifecycle claims with fenced renewal, awaited async execution, idempotent acknowledgement and bounded shutdown drain. The executor reports local facts only. This entry exposes 2 named value exports and 7 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
207
-
208
- ```text
209
- import {
210
- pullMigrationOnce,
211
- startMigrationPull,
212
- } from '@forgezero/agent/migration-pull';
213
-
214
- import type {
215
- MigrationAction,
216
- MigrationEvidence,
217
- MigrationEvidenceProfile,
218
- MigrationNetwork,
219
- MigrationPullOptions,
220
- MigrationPullResult,
221
- RemoteMigrationClaim,
222
- } from '@forgezero/agent/migration-pull';
223
- ```
224
-
225
- ## @forgezero/agent/migration-pull — Use this entry point
226
-
227
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
228
-
229
- ```text
230
- import {
231
- pullMigrationOnce,
232
- } from '@forgezero/agent/migration-pull';
233
-
234
- export const selectedCapability = pullMigrationOnce;
235
- ```
236
-
237
- <a id="forgezero-agent-lifecycle-helper"></a>
238
- ## @forgezero/agent/lifecycle-helper
239
-
240
- The root-owned fixed-operation boundary for migration work. Signed controller claims can request only private reachability probes, local health checks, or stops of units named in a root-owned profile; they cannot carry commands. This entry exposes 7 named value exports and 3 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
241
-
242
- ```text
243
- import {
244
- DEFAULT_LIFECYCLE_HELPER_SOCKET,
245
- executeLifecycleAction,
246
- loadLifecycleProfile,
247
- requestLifecycleAction,
248
- spawnLifecycleCommand,
249
- startLifecycleHelper,
250
- validateLifecycleProfile,
251
- } from '@forgezero/agent/lifecycle-helper';
252
-
253
- import type {
254
- LifecycleCommandResult,
255
- LifecycleExec,
256
- LifecycleProfile,
257
- } from '@forgezero/agent/lifecycle-helper';
258
- ```
259
-
260
- ## @forgezero/agent/lifecycle-helper — Use this entry point
261
-
262
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
263
-
264
- ```text
265
- import {
266
- DEFAULT_LIFECYCLE_HELPER_SOCKET,
267
- } from '@forgezero/agent/lifecycle-helper';
268
-
269
- export const selectedCapability = DEFAULT_LIFECYCLE_HELPER_SOCKET;
270
- ```
271
-
272
- <a id="forgezero-agent-provision"></a>
273
- ## @forgezero/agent/provision
274
-
275
- The install plan as data, with no transport — so `fz` running locally and the platform running over SSH provision an identical machine. This entry exposes 38 named value exports and 11 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
276
-
277
- ```text
278
- import {
279
- AGENT_CANDIDATE_UNIT_PATH,
280
- AGENT_EGRESS_UNIT_PATH,
281
- AGENT_SOCKET_PROXY_UNIT_PATH,
282
- AGENT_SOCKET_UNIT_PATH,
283
- APPLICATION_RUNTIME_USER,
284
- CAPABILITY_CHECKS,
285
- DEFAULT_RUNNER_PUBLIC_TCP_PORTS,
286
- DEPLOYMENT_GROUP,
287
- DEPLOYMENT_RUNNER_SOCKET,
288
- DEPLOYMENT_RUNNER_UNIT_PATH,
289
- DEPLOYMENT_RUNNER_USER,
290
- ENROLMENT_UNIT_PATH,
291
- LIFECYCLE_GROUP,
292
- LIFECYCLE_HELPER_SOCKET,
293
- LIFECYCLE_HELPER_UNIT_PATH,
294
- UNIT_PATH,
295
- VAULT_GROUP,
296
- WARP_CONFIG_UNIT_PATH,
297
- WARP_SERVICE_DROP_IN_PATH,
298
- agentBackendSocketPath,
299
- agentCandidateSocketPath,
300
- agentCandidateUnit,
301
- agentEgressUnit,
302
- agentEnrolmentUnit,
303
- agentRoutingSocketPath,
304
- agentSocketProxyUnit,
305
- agentSocketUnit,
306
- agentUnit,
307
- agentUpdateHelperUnit,
308
- atLeast,
309
- deploymentRunnerUnit,
310
- lifecycleHelperUnit,
311
- modeFor,
312
- planProvision,
313
- reasonFor,
314
- softwareHelperUnit,
315
- warpConfigUnit,
316
- warpServiceDropIn,
317
- } from '@forgezero/agent/provision';
318
-
319
- import type {
320
- AgentMode,
321
- Capabilities,
322
- CapabilityId,
323
- CapabilityOperation,
324
- Check,
325
- DirectorySpec,
326
- FixedHostCommand,
327
- ProvisionOperation,
328
- ProvisionPlan,
329
- Step,
330
- UnitOptions,
331
- } from '@forgezero/agent/provision';
332
- ```
333
-
334
- ## @forgezero/agent/provision — Use this entry point
335
-
336
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
337
-
338
- ```text
339
- import {
340
- AGENT_CANDIDATE_UNIT_PATH,
341
- } from '@forgezero/agent/provision';
342
-
343
- export const selectedCapability = AGENT_CANDIDATE_UNIT_PATH;
344
- ```
345
-
346
- <a id="forgezero-agent-platform-genesis"></a>
347
- ## @forgezero/agent/platform-genesis
348
-
349
- Offline authority adapter for the brief pre-API period. It validates exactly three reviewed generic guest requests and converts them to the same Metal claims the live API issues; environment and product tier are not provisioning inputs. This entry exposes 4 named value exports and 1 named type export. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
350
-
351
- ```text
352
- import {
353
- platformCommunityRehearsalClaims,
354
- platformCommunityRehearsalDeletionClaims,
355
- platformGenesisClaims,
356
- validatePlatformGenesisGuests,
357
- } from '@forgezero/agent/platform-genesis';
358
-
359
- import type {
360
- PlatformGenesisGuest,
361
- } from '@forgezero/agent/platform-genesis';
362
- ```
363
-
364
- ## @forgezero/agent/platform-genesis — Use this entry point
365
-
366
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
367
-
368
- ```text
369
- import {
370
- platformCommunityRehearsalClaims,
371
- } from '@forgezero/agent/platform-genesis';
372
-
373
- export const selectedCapability = platformCommunityRehearsalClaims;
374
- ```
375
-
376
- <a id="forgezero-agent-subscribe"></a>
377
- ## @forgezero/agent/subscribe
378
-
379
- Realtime scope sync over a WebSocket, with the poll kept underneath it: the poll is what establishes freshness, and a change it finds that the socket never sent is proof the socket is lying. This entry exposes 2 named value exports and 4 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
380
-
381
- ```text
382
- import {
383
- backoffMs,
384
- subscribe,
385
- } from '@forgezero/agent/subscribe';
386
-
387
- import type {
388
- ChangeFrame,
389
- SocketLike,
390
- SubscribeOptions,
391
- Subscriber,
392
- } from '@forgezero/agent/subscribe';
393
- ```
394
-
395
- ## @forgezero/agent/subscribe — Use this entry point
396
-
397
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
398
-
399
- ```text
400
- import {
401
- backoffMs,
402
- } from '@forgezero/agent/subscribe';
403
-
404
- export const selectedCapability = backoffMs;
405
- ```
406
-
407
- <a id="forgezero-agent-ssh-listen"></a>
408
- ## @forgezero/agent/ssh-listen
409
-
410
- The socket SSH_AUTH_SOCK points at. The protocol handler had nowhere to speak — an agent protocol with no socket is a parser. The containing directory is 0700 before anything binds, because the socket’s own mode is only corrected after it already exists. This entry exposes 2 named value exports and 1 named type export. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
411
-
412
- ```text
413
- import {
414
- MAX_MESSAGE_BYTES,
415
- startSshAgent,
416
- } from '@forgezero/agent/ssh-listen';
417
-
418
- import type {
419
- SshListenOptions,
420
- } from '@forgezero/agent/ssh-listen';
421
- ```
422
-
423
- ## @forgezero/agent/ssh-listen — Use this entry point
424
-
425
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
426
-
427
- ```text
428
- import {
429
- MAX_MESSAGE_BYTES,
430
- } from '@forgezero/agent/ssh-listen';
431
-
432
- export const selectedCapability = MAX_MESSAGE_BYTES;
433
- ```
434
-
435
- <a id="forgezero-agent-ssh-server"></a>
436
- ## @forgezero/agent/ssh-server
437
-
438
- Serve the SSH agent protocol so SSH_AUTH_SOCK points at the vault — two operations implemented, and ADD_IDENTITY refused so no process can inject a key ssh would offer to every host. This entry exposes 10 named value exports and 2 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
439
-
440
- ```text
441
- import {
442
- MAX_MESSAGE_BYTES,
443
- SSH_AGENT_FAILURE,
444
- SSH_AGENT_IDENTITIES_ANSWER,
445
- SSH_AGENT_SIGN_RESPONSE,
446
- SSH_AGENT_SUCCESS,
447
- SshAgentError,
448
- describeIdentities,
449
- frame,
450
- handleMessage,
451
- readMessage,
452
- } from '@forgezero/agent/ssh-server';
453
-
454
- import type {
455
- AgentBackend,
456
- AgentIdentity,
457
- } from '@forgezero/agent/ssh-server';
458
- ```
459
-
460
- ## @forgezero/agent/ssh-server — Use this entry point
461
-
462
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
463
-
464
- ```text
465
- import {
466
- MAX_MESSAGE_BYTES,
467
- } from '@forgezero/agent/ssh-server';
468
-
469
- export const selectedCapability = MAX_MESSAGE_BYTES;
470
- ```
471
-
472
- <a id="forgezero-agent-pipeline"></a>
473
- ## @forgezero/agent/pipeline
474
-
475
- CI/CD on the compute: secrets reach the step that named them and nothing else, attestation gates the run, and a required attestation that fails is a refusal rather than a downgrade. This entry exposes 3 named value exports and 6 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
476
-
477
- ```text
478
- import {
479
- PipelineError,
480
- redact,
481
- runPipeline,
482
- } from '@forgezero/agent/pipeline';
483
-
484
- import type {
485
- Pipeline,
486
- PipelineStep,
487
- RunOptions,
488
- RunResult,
489
- StepOutcome,
490
- StepResult,
491
- } from '@forgezero/agent/pipeline';
492
- ```
493
-
494
- ## @forgezero/agent/pipeline — Use this entry point
495
-
496
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
497
-
498
- ```text
499
- import {
500
- PipelineError,
501
- } from '@forgezero/agent/pipeline';
502
-
503
- export const selectedCapability = PipelineError;
504
- ```
505
-
506
- <a id="forgezero-agent-agent-heartbeat"></a>
507
- ## @forgezero/agent/agent-heartbeat
508
-
509
- Signed node health publication with bounded renewal and shutdown withdrawal. This entry exposes 3 named value exports and 4 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
510
-
511
- ```text
512
- import {
513
- heartbeatAgentOnce,
514
- observeAgentHost,
515
- startAgentHeartbeat,
516
- } from '@forgezero/agent/agent-heartbeat';
517
-
518
- import type {
519
- AgentHeartbeatOptions,
520
- AgentHeartbeatResponse,
521
- AgentHostMetrics,
522
- AgentObservation,
523
- } from '@forgezero/agent/agent-heartbeat';
524
- ```
525
-
526
- ## @forgezero/agent/agent-heartbeat — Use this entry point
527
-
528
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
529
-
530
- ```text
531
- import {
532
- heartbeatAgentOnce,
533
- } from '@forgezero/agent/agent-heartbeat';
534
-
535
- export const selectedCapability = heartbeatAgentOnce;
536
- ```
537
-
538
- <a id="forgezero-agent-agent-update"></a>
539
- ## @forgezero/agent/agent-update
540
-
541
- Verified Agent update planning against the platform release coordinate. This entry exposes 11 named value exports and 4 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
542
-
543
- ```text
544
- import {
545
- DEFAULT_AGENT_CANDIDATE_LINK,
546
- DEFAULT_AGENT_RELEASE_ROOT,
547
- DEFAULT_AGENT_UPDATE_SOCKET,
548
- MAX_AGENT_TARBALL_BYTES,
549
- clearAgentCandidate,
550
- compareVersions,
551
- restoreAgentRelease,
552
- selectAgentCandidate,
553
- selectAgentRelease,
554
- stageAgentRelease,
555
- validateAgentRelease,
556
- } from '@forgezero/agent/agent-update';
557
-
558
- import type {
559
- AgentRelease,
560
- StagedAgentRelease,
561
- UpdateCommand,
562
- UpdateCommandResult,
563
- } from '@forgezero/agent/agent-update';
564
- ```
565
-
566
- ## @forgezero/agent/agent-update — Use this entry point
567
-
568
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
569
-
570
- ```text
571
- import {
572
- DEFAULT_AGENT_CANDIDATE_LINK,
573
- } from '@forgezero/agent/agent-update';
574
-
575
- export const selectedCapability = DEFAULT_AGENT_CANDIDATE_LINK;
576
- ```
577
-
578
- <a id="forgezero-agent-agent-update-helper"></a>
579
- ## @forgezero/agent/agent-update-helper
580
-
581
- Root-owned fixed update operations with registry origin and integrity validation. This entry exposes 10 named value exports and 4 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
582
-
583
- ```text
584
- import {
585
- AGENT_UPDATE_GROUP,
586
- AGENT_UPDATE_HELPER_UNIT_PATH,
587
- AGENT_UPDATE_JOURNAL,
588
- AGENT_UPDATE_RECEIPT,
589
- activateAgentRelease,
590
- probeAgentSocket,
591
- readAgentUpdateReceipt,
592
- recoverInterruptedAgentUpdate,
593
- requestAgentUpdate,
594
- startAgentUpdateHelper,
595
- } from '@forgezero/agent/agent-update-helper';
596
-
597
- import type {
598
- AgentUpdateOutcome,
599
- AgentUpdateReceipt,
600
- AgentUpdateRequest,
601
- AgentUpdateResponse,
602
- } from '@forgezero/agent/agent-update-helper';
603
- ```
604
-
605
- ## @forgezero/agent/agent-update-helper — Use this entry point
606
-
607
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
608
-
609
- ```text
610
- import {
611
- AGENT_UPDATE_GROUP,
612
- } from '@forgezero/agent/agent-update-helper';
613
-
614
- export const selectedCapability = AGENT_UPDATE_GROUP;
615
- ```
616
-
617
- <a id="forgezero-agent-bootstrap"></a>
618
- ## @forgezero/agent/bootstrap
619
-
620
- Typed one-time platform bootstrap and internal API-driven enrolled-compute activation contracts. This entry exposes 16 named value exports and 18 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
621
-
622
- ```text
623
- import {
624
- BOOTSTRAP_STATE_PATH,
625
- PLATFORM_BOOTSTRAP_PROFILES,
626
- applyBootstrap,
627
- approvedPlatformRepairIdentityDigests,
628
- bootstrapIdentityDigest,
629
- bootstrapStatus,
630
- interruptedPlatformReleaseIdentityDigests,
631
- legacyBootstrapIdentityDigest,
632
- localBootstrapHost,
633
- planBootstrap,
634
- planBootstrapAgentInstall,
635
- readBootstrapConfig,
636
- resolveInstalledBootstrapKind,
637
- validateBootstrapConfig,
638
- validateEnrolledComputeBootstrapSecrets,
639
- validatePlatformBootstrapSecrets,
640
- } from '@forgezero/agent/bootstrap';
641
-
642
- import type {
643
- BootstrapAgentInstallPhase,
644
- BootstrapConfig,
645
- BootstrapEnvironment,
646
- BootstrapHost,
647
- BootstrapPlan,
648
- BootstrapResult,
649
- BootstrapSecrets,
650
- BootstrapStatus,
651
- BootstrapStep,
652
- DatabaseAgencyParticipation,
653
- DatabaseBootstrapRole,
654
- EnrolledComputeActivationConfig,
655
- EnrolledComputeBootstrapSecrets,
656
- InstalledBootstrapKind,
657
- PlatformBootstrapConfig,
658
- PlatformBootstrapProfile,
659
- PlatformBootstrapSecrets,
660
- PlatformEnrolmentSource,
661
- } from '@forgezero/agent/bootstrap';
662
- ```
663
-
664
- ## @forgezero/agent/bootstrap — Use this entry point
665
-
666
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
667
-
668
- ```text
669
- import {
670
- BOOTSTRAP_STATE_PATH,
671
- } from '@forgezero/agent/bootstrap';
672
-
673
- export const selectedCapability = BOOTSTRAP_STATE_PATH;
674
- ```
675
-
676
- <a id="forgezero-agent-bootstrap-bundle"></a>
677
- ## @forgezero/agent/bootstrap-bundle
678
-
679
- Owner-only exact-revision Git bundle and SHA-256 manifest for credential-free release generation one. This entry exposes 8 named value exports and 5 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
680
-
681
- ```text
682
- import {
683
- BOOTSTRAP_BUNDLE_FORMAT,
684
- BOOTSTRAP_BUNDLE_KIND,
685
- MAX_BOOTSTRAP_BUNDLE_BYTES,
686
- bootstrapBundleBranch,
687
- buildBootstrapBundle,
688
- parseBootstrapBundleManifest,
689
- readBootstrapBundle,
690
- sha256File,
691
- } from '@forgezero/agent/bootstrap-bundle';
692
-
693
- import type {
694
- BootstrapBundleBuildInput,
695
- BootstrapBundleBuildResult,
696
- BootstrapBundleCommand,
697
- BootstrapBundleCommandResult,
698
- BootstrapBundleManifest,
699
- } from '@forgezero/agent/bootstrap-bundle';
700
- ```
701
-
702
- ## @forgezero/agent/bootstrap-bundle — Build release generation one without a deploy key
703
-
704
- The builder refuses tracked drift, resolves one exact commit, creates an owner-only Git bundle and writes a byte-count/SHA-256 manifest. Bootstrap consumes the artifact after activation.
705
-
706
- ```text
707
- import {
708
- buildBootstrapBundle,
709
- readBootstrapBundle,
710
- } from '@forgezero/agent/bootstrap-bundle';
711
-
712
- const built = await buildBootstrapBundle({
713
- repositoryRoot: '/work/forgezero-api', branch: 'main',
714
- outputPath: '/secure/forgezero/production/api.bundle'
715
- });
716
- await readBootstrapBundle(built.bundlePath, built.manifestPath);
717
- ```
718
-
719
- <a id="forgezero-agent-operator-bootstrap"></a>
720
- ## @forgezero/agent/operator-bootstrap
721
-
722
- Pinned-host operator transport that stages owner-only handoffs and invokes the same typed platform bootstrap through the caller-approved SSH agent. This entry exposes 24 named value exports and 17 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
723
-
724
- ```text
725
- import {
726
- applyOperatorMetalBootstrap,
727
- applyOperatorPlatformBootstrap,
728
- applyOperatorPlatformFleetBootstrap,
729
- collectOperatorGuestHostKeys,
730
- createOperatorSshHop,
731
- operatorMetalClusterBootstrapCode,
732
- operatorPackagedAgentPath,
733
- operatorPackagedFzCliPath,
734
- operatorPackagedGitSshPath,
735
- operatorPlatformFleetCoordinates,
736
- planOperatorMetalBootstrap,
737
- planOperatorPlatformBootstrap,
738
- planOperatorPlatformFleetBootstrap,
739
- readOperatorGuestHostKeyEvidence,
740
- readOperatorMetalBootstrapRequest,
741
- readOperatorPlatformBootstrapFleetRequest,
742
- readOperatorPlatformBootstrapRequest,
743
- redactOperatorSecretDiagnostic,
744
- verifyOperatorPlatformFleet,
745
- withOperatorGuestTransport,
746
- writeOperatorGuestHostKeyEvidence,
747
- writeOperatorMetalBootstrapRequest,
748
- writeOperatorPlatformBootstrapFleetRequest,
749
- writeOperatorPlatformBootstrapRequest,
750
- } from '@forgezero/agent/operator-bootstrap';
751
-
752
- import type {
753
- OperatorCommand,
754
- OperatorCommandResult,
755
- OperatorGuestHostKeyEvidence,
756
- OperatorGuestTransport,
757
- OperatorMetalBootstrapMode,
758
- OperatorMetalBootstrapPlan,
759
- OperatorMetalBootstrapRequest,
760
- OperatorPlatformBootstrapFleetOutcome,
761
- OperatorPlatformBootstrapFleetPlan,
762
- OperatorPlatformBootstrapFleetRequest,
763
- OperatorPlatformBootstrapFleetResult,
764
- OperatorPlatformBootstrapMode,
765
- OperatorPlatformBootstrapOptions,
766
- OperatorPlatformBootstrapPlan,
767
- OperatorPlatformBootstrapRequest,
768
- OperatorPlatformFleetCoordinates,
769
- OperatorSshHop,
770
- } from '@forgezero/agent/operator-bootstrap';
771
- ```
772
-
773
- ## @forgezero/agent/operator-bootstrap — Launch the platform from an operator laptop
774
-
775
- The selected ForgeZero profile and pinned Metal evidence derive every public coordinate. The CLI builds the clean API bundle, retains cluster material only as an owner-host encrypted systemd credential for safe resume, deploys all three computes, seals hidden credentials, seeds inventory and prints the invitation. Low-level file commands are reserved for resume and repair.
776
-
777
- ```text
778
- # The command prints the derived plan before its final APPLY confirmation:
779
- fz bootstrap platform launch --profile development --apply
780
- ```
781
-
782
- <a id="forgezero-agent-host-maintenance"></a>
783
- ## @forgezero/agent/host-maintenance
784
-
785
- Closed host maintenance plans for staging transaction rehearsal and fleet-fenced schema consolidation through fixed transient systemd units. This entry exposes 2 named value exports and 5 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
786
-
787
- ```text
788
- import {
789
- applyHostMaintenance,
790
- planHostMaintenance,
791
- } from '@forgezero/agent/host-maintenance';
792
-
793
- import type {
794
- HostMaintenanceOperation,
795
- HostMaintenancePlan,
796
- HostMaintenanceRequest,
797
- HostMaintenanceResult,
798
- HostMaintenanceRuntime,
799
- } from '@forgezero/agent/host-maintenance';
800
- ```
801
-
802
- ## @forgezero/agent/host-maintenance — Plan a fixed supervised host operation
803
-
804
- The library discovers only a trusted blue/green slot, attaches fixed credential names and returns exact argv as reviewable data. The public fz host commands use the same operation and require root only for apply.
805
-
806
- ```text
807
- import {
808
- planHostMaintenance,
809
- } from '@forgezero/agent/host-maintenance';
810
-
811
- const plan = planHostMaintenance({ operation: 'schema-plan' });
812
- console.log(plan.argv);
813
- ```
814
-
815
- <a id="forgezero-agent-capacity-calibration"></a>
816
- ## @forgezero/agent/capacity-calibration
817
-
818
- One-time target-local safe-concurrency calibration with private evidence. This entry exposes 3 named value exports and 5 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
819
-
820
- ```text
821
- import {
822
- calibrateHttpConcurrency,
823
- localCalibrationEndpoint,
824
- validateCapacityCalibrationOptions,
825
- } from '@forgezero/agent/capacity-calibration';
826
-
827
- import type {
828
- CapacityCalibration,
829
- CapacityCalibrationOptions,
830
- CapacityStage,
831
- HostCapacitySample,
832
- ValidatedCapacityCalibrationOptions,
833
- } from '@forgezero/agent/capacity-calibration';
834
- ```
835
-
836
- ## @forgezero/agent/capacity-calibration — Use this entry point
837
-
838
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
839
-
840
- ```text
841
- import {
842
- calibrateHttpConcurrency,
843
- } from '@forgezero/agent/capacity-calibration';
844
-
845
- export const selectedCapability = calibrateHttpConcurrency;
846
- ```
847
-
848
- <a id="forgezero-agent-cloudflare-bootstrap"></a>
849
- ## @forgezero/agent/cloudflare-bootstrap
850
-
851
- Attended two-token Cloudflare Tunnel/DNS reconciliation and per-node connector/KV runtime handoff for existing KV resources. This entry exposes 14 named value exports and 17 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
852
-
853
- ```text
854
- import {
855
- applyCloudflareBootstrap,
856
- cloudflareHostHandoffPath,
857
- deriveCloudflareRealtimeSecrets,
858
- finalizeCloudflareBootstrapAcceptance,
859
- planCloudflareBootstrap,
860
- readCloudflareBootstrapAcceptanceEvidence,
861
- readCloudflareConnectorHandoff,
862
- readCloudflareHostHandoff,
863
- runAttendedCloudflareBootstrap,
864
- validateCloudflareBootstrapCoordinates,
865
- validateCloudflareBootstrapTokens,
866
- validateCloudflareBootstrapTopology,
867
- verifyCloudflareBootstrapAcceptance,
868
- writeOwnerBootstrapOutput,
869
- } from '@forgezero/agent/cloudflare-bootstrap';
870
-
871
- import type {
872
- AttendedCloudflareBootstrapRequest,
873
- CloudflareBootstrapAcceptanceEvidence,
874
- CloudflareBootstrapAcceptedNode,
875
- CloudflareBootstrapCoordinates,
876
- CloudflareBootstrapDependencies,
877
- CloudflareBootstrapEvidence,
878
- CloudflareBootstrapFinalizeRequest,
879
- CloudflareBootstrapNodeCoordinates,
880
- CloudflareBootstrapOutput,
881
- CloudflareBootstrapPhaseRunner,
882
- CloudflareBootstrapPlan,
883
- CloudflareBootstrapTokens,
884
- CloudflareBootstrapTopology,
885
- CloudflareConnectorHandoff,
886
- CloudflareHostHandoff,
887
- CloudflareMeshCoordinates,
888
- CloudflareRealtimeCoordinates,
889
- } from '@forgezero/agent/cloudflare-bootstrap';
890
- ```
891
-
892
- ## @forgezero/agent/cloudflare-bootstrap — Use this entry point
893
-
894
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
895
-
896
- ```text
897
- import {
898
- applyCloudflareBootstrap,
899
- } from '@forgezero/agent/cloudflare-bootstrap';
900
-
901
- export const selectedCapability = applyCloudflareBootstrap;
902
- ```
903
-
904
- <a id="forgezero-agent-cloudflare-edge"></a>
905
- ## @forgezero/agent/cloudflare-edge
906
-
907
- Strict Cloudflare REST operations used by the attended bootstrap controller. This entry exposes 14 named value exports and 8 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
908
-
909
- ```text
910
- import {
911
- configureCloudflareEdge,
912
- configureCloudflareRealtimeSecrets,
913
- discoverCloudflareBootstrapResources,
914
- ensureCloudflareMeshConnector,
915
- ensureCloudflarePrivateDatabaseRoute,
916
- ensureCloudflarePrivateRoute,
917
- ensureCloudflareTunnel,
918
- ensureCloudflareWarpDatabaseInclude,
919
- ensureCloudflareWarpNetworkIncludes,
920
- removeCloudflarePrivateDatabaseRoute,
921
- removeCloudflarePrivateRoute,
922
- removeCloudflareWarpDatabaseInclude,
923
- retrieveCloudflareConnectorTokens,
924
- verifyCloudflareWorkerDurableObjects,
925
- } from '@forgezero/agent/cloudflare-edge';
926
-
927
- import type {
928
- CloudflareBootstrapDiscovery,
929
- CloudflareDurableObjectNamespace,
930
- CloudflareEdgeConfig,
931
- CloudflareMeshConnector,
932
- CloudflarePrivateRoute,
933
- CloudflarePrivateRouteConfig,
934
- CloudflareTunnel,
935
- CloudflareWarpIncludeConfig,
936
- } from '@forgezero/agent/cloudflare-edge';
937
- ```
938
-
939
- ## @forgezero/agent/cloudflare-edge — Use this entry point
940
-
941
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
942
-
943
- ```text
944
- import {
945
- configureCloudflareEdge,
946
- } from '@forgezero/agent/cloudflare-edge';
947
-
948
- export const selectedCapability = configureCloudflareEdge;
949
- ```
950
-
951
- <a id="forgezero-agent-mesh-connector"></a>
952
- ## @forgezero/agent/mesh-connector
953
-
954
- Fixed Cloudflare Mesh/WARP connector enrollment using only the unit-loaded connector credential. This entry exposes 2 named value exports and 2 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
955
-
956
- ```text
957
- import {
958
- configureMeshConnector,
959
- readMeshConnectorCredential,
960
- } from '@forgezero/agent/mesh-connector';
961
-
962
- import type {
963
- MeshConnectorCommandResult,
964
- MeshConnectorExec,
965
- } from '@forgezero/agent/mesh-connector';
966
- ```
967
-
968
- ## @forgezero/agent/mesh-connector — Use this entry point
969
-
970
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
971
-
972
- ```text
973
- import {
974
- configureMeshConnector,
975
- } from '@forgezero/agent/mesh-connector';
976
-
977
- export const selectedCapability = configureMeshConnector;
978
- ```
979
-
980
- <a id="forgezero-agent-compute"></a>
981
- ## @forgezero/agent/compute
982
-
983
- Compute claim, renewal, execution and completion client contracts. This entry exposes 9 named value exports and 2 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
984
-
985
- ```text
986
- import {
987
- ComputeError,
988
- deviceInUse,
989
- guestUnit,
990
- parseCensus,
991
- qemuArgv,
992
- shapeEgressCommands,
993
- shapeEgressUnitDirectives,
994
- tapFor,
995
- unitName,
996
- } from '@forgezero/agent/compute';
997
-
998
- import type {
999
- GuestSpec,
1000
- RunningGuest,
1001
- } from '@forgezero/agent/compute';
1002
- ```
1003
-
1004
- ## @forgezero/agent/compute — Use this entry point
1005
-
1006
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1007
-
1008
- ```text
1009
- import {
1010
- ComputeError,
1011
- } from '@forgezero/agent/compute';
1012
-
1013
- export const selectedCapability = ComputeError;
1014
- ```
1015
-
1016
- <a id="forgezero-agent-credential-schema"></a>
1017
- ## @forgezero/agent/credential-schema
1018
-
1019
- Canonical systemd credential names and validation shared by bootstrap and services. This entry exposes 7 named value exports and 3 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1020
-
1021
- ```text
1022
- import {
1023
- AGENT_CREDENTIAL_LOCATIONS,
1024
- AGENT_CREDENTIAL_POLICY,
1025
- CLOUDFLARE_CREDENTIAL_NAMES,
1026
- CLOUDFLARE_CREDENTIAL_SCHEMA,
1027
- METAL_SYSTEMD_CREDENTIALS,
1028
- credentialBinding,
1029
- deploymentCredentialSchema,
1030
- } from '@forgezero/agent/credential-schema';
1031
-
1032
- import type {
1033
- AgentCredentialLocation,
1034
- DeploymentCredentialBinding,
1035
- DeploymentCredentialSchema,
1036
- } from '@forgezero/agent/credential-schema';
1037
- ```
1038
-
1039
- ## @forgezero/agent/credential-schema — Use this entry point
1040
-
1041
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1042
-
1043
- ```text
1044
- import {
1045
- AGENT_CREDENTIAL_LOCATIONS,
1046
- } from '@forgezero/agent/credential-schema';
1047
-
1048
- export const selectedCapability = AGENT_CREDENTIAL_LOCATIONS;
1049
- ```
1050
-
1051
- <a id="forgezero-agent-definition"></a>
1052
- ## @forgezero/agent/definition
1053
-
1054
- Legacy version 3 JSON deployment compatibility contract. This entry exposes 6 named value exports and 5 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1055
-
1056
- ```text
1057
- import {
1058
- DEPLOY_SCHEMA_URL,
1059
- DefinitionError,
1060
- PIPELINE_VERSION,
1061
- parseDeployDefinition,
1062
- phasePipeline,
1063
- validateDeploymentService,
1064
- } from '@forgezero/agent/definition';
1065
-
1066
- import type {
1067
- DeployDefinition,
1068
- DeployStep,
1069
- DeploymentPortAllocation,
1070
- DeploymentService,
1071
- PipelineProfile,
1072
- } from '@forgezero/agent/definition';
1073
- ```
1074
-
1075
- ## @forgezero/agent/definition — Use this entry point
1076
-
1077
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1078
-
1079
- ```text
1080
- import {
1081
- DEPLOY_SCHEMA_URL,
1082
- } from '@forgezero/agent/definition';
1083
-
1084
- export const selectedCapability = DEPLOY_SCHEMA_URL;
1085
53
  ```
1086
54
 
1087
55
  <a id="forgezero-agent-deploy"></a>
1088
56
  ## @forgezero/agent/deploy
1089
57
 
1090
- Typed deployment authoring builders, built-in provider requirements and versioned action constructors. This entry exposes 14 named value exports and 42 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
58
+ Typed deployment authoring builders, built-in provider requirements and versioned action constructors. This is a supported entry point. Import only the named values used by the adjacent task example; the declaration file remains the complete API reference.
1091
59
 
1092
60
  ```text
1093
61
  import {
1094
62
  actions,
1095
- application,
1096
- conditions,
1097
- credential,
1098
- database,
1099
- defineDeployment,
1100
- input,
1101
- providers,
1102
- ref,
1103
- requirement,
1104
- stage,
1105
- step,
1106
- target,
1107
- workflow,
1108
- } from '@forgezero/agent/deploy';
1109
-
1110
- import type {
1111
- ApplicationComponent,
1112
- ApplicationRuntime,
1113
- ArangoDbProviderConfig,
1114
- BunProviderConfig,
1115
- CloudflaredProviderConfig,
1116
- ComponentDefinition,
1117
- ComputeConnectivityDefinition,
1118
- ComputePoolDefinition,
1119
- ComputeTopologyDefinition,
1120
- Condition,
1121
- ConditionOperand,
1122
- ContainerdProviderConfig,
1123
- CredentialDefinition,
1124
- DatabaseComponent,
1125
- DeploymentSource,
1126
- DockerProviderConfig,
1127
- HealthDefinition,
1128
- InputDefinition,
1129
- IntegerValue,
1130
- JsonObject,
1131
- JsonPrimitive,
1132
- JsonValue,
1133
- KataProviderConfig,
1134
- NetworkDefinition,
1135
- NginxProviderConfig,
1136
- OpenSshProviderConfig,
1137
- RequirementDefinition,
1138
- ResolvableJsonObject,
1139
- ResolvableJsonValue,
1140
- ResourceDefinition,
1141
- RetryDefinition,
1142
- StageDefinition,
1143
- StepScope,
1144
- StorageMount,
1145
- StringValue,
1146
- SystemdProviderConfig,
1147
- TargetDefinition,
1148
- UfwProviderConfig,
1149
- ValueReference,
1150
- WarpProviderConfig,
1151
- WorkflowDefinition,
1152
- WorkflowStepDefinition,
1153
63
  } from '@forgezero/agent/deploy';
1154
64
  ```
1155
65
 
@@ -1246,455 +156,6 @@ export default defineDeployment({
1246
156
  });
1247
157
  ```
1248
158
 
1249
- <a id="forgezero-agent-deployment-targets"></a>
1250
- ## @forgezero/agent/deployment-targets
1251
-
1252
- Bounded input resolution and stable compute-target assignment for typed plans; emits requirements and slots rather than physical hostnames. This entry exposes 3 named value exports and 0 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1253
-
1254
- ```text
1255
- import {
1256
- DeploymentInputError,
1257
- resolveDeploymentInputs,
1258
- resolveDeploymentTargets,
1259
- } from '@forgezero/agent/deployment-targets';
1260
- ```
1261
-
1262
- ## @forgezero/agent/deployment-targets — Use this entry point
1263
-
1264
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1265
-
1266
- ```text
1267
- import {
1268
- DeploymentInputError,
1269
- } from '@forgezero/agent/deployment-targets';
1270
-
1271
- export const selectedCapability = DeploymentInputError;
1272
- ```
1273
-
1274
- <a id="forgezero-agent-deployment-connectivity"></a>
1275
- ## @forgezero/agent/deployment-connectivity
1276
-
1277
- Root-owned convergence of exact private routes, routed-port firewall rules and per-target Cloudflare Tunnel or Mesh connector capabilities without exposing the project management token to a compute. This entry exposes 1 named value export and 6 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1278
-
1279
- ```text
1280
- import {
1281
- applyDeploymentConnectivity,
1282
- } from '@forgezero/agent/deployment-connectivity';
1283
-
1284
- import type {
1285
- DeploymentConnectivityCapabilities,
1286
- DeploymentConnectivityEvidence,
1287
- DeploymentConnectivityHost,
1288
- DeploymentConnectivityIntent,
1289
- DeploymentConnectivityRequest,
1290
- DeploymentConnectivityTopology,
1291
- } from '@forgezero/agent/deployment-connectivity';
1292
- ```
1293
-
1294
- ## @forgezero/agent/deployment-connectivity — Use this entry point
1295
-
1296
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1297
-
1298
- ```text
1299
- import {
1300
- applyDeploymentConnectivity,
1301
- } from '@forgezero/agent/deployment-connectivity';
1302
-
1303
- export const selectedCapability = applyDeploymentConnectivity;
1304
- ```
1305
-
1306
- <a id="forgezero-agent-deployment-topology"></a>
1307
- ## @forgezero/agent/deployment-topology
1308
-
1309
- Pure per-Metal relay election and hierarchical peer assignment: one or two Metals stay direct-private, while three or more grant Mesh/WARP only to relay and standby. This entry exposes 2 named value exports and 4 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1310
-
1311
- ```text
1312
- import {
1313
- DeploymentTopologyError,
1314
- planDeploymentTopology,
1315
- } from '@forgezero/agent/deployment-topology';
1316
-
1317
- import type {
1318
- DeploymentTopologyAssignment,
1319
- DeploymentTopologyPlacement,
1320
- DeploymentTopologyRole,
1321
- DeploymentTopologyTransport,
1322
- } from '@forgezero/agent/deployment-topology';
1323
- ```
1324
-
1325
- ## @forgezero/agent/deployment-topology — Use this entry point
1326
-
1327
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1328
-
1329
- ```text
1330
- import {
1331
- DeploymentTopologyError,
1332
- } from '@forgezero/agent/deployment-topology';
1333
-
1334
- export const selectedCapability = DeploymentTopologyError;
1335
- ```
1336
-
1337
- <a id="forgezero-agent-deploy-plan"></a>
1338
- ## @forgezero/agent/deploy-plan
1339
-
1340
- Runtime validation, canonicalization and semantic digest for inert deployment plans. This entry exposes 8 named value exports and 4 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1341
-
1342
- ```text
1343
- import {
1344
- DEPLOY_PLAN_FORMAT,
1345
- DEPLOY_PLAN_VERSION,
1346
- DeploymentPlanError,
1347
- canonicalJson,
1348
- compileDeployment,
1349
- deploymentPlanDigest,
1350
- deploymentSourceDigest,
1351
- parseDeploymentPlan,
1352
- } from '@forgezero/agent/deploy-plan';
1353
-
1354
- import type {
1355
- DeploymentPlan,
1356
- PlannedStage,
1357
- PlannedStep,
1358
- PlannedWorkflow,
1359
- } from '@forgezero/agent/deploy-plan';
1360
- ```
1361
-
1362
- ## @forgezero/agent/deploy-plan — Use this entry point
1363
-
1364
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1365
-
1366
- ```text
1367
- import {
1368
- DEPLOY_PLAN_FORMAT,
1369
- } from '@forgezero/agent/deploy-plan';
1370
-
1371
- export const selectedCapability = DEPLOY_PLAN_FORMAT;
1372
- ```
1373
-
1374
- <a id="forgezero-agent-deploy-plan-runner"></a>
1375
- ## @forgezero/agent/deploy-plan-runner
1376
-
1377
- Conditional DAG execution with bounded retry, compensation and failure policy over injected action handlers. This entry exposes 3 named value exports and 8 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1378
-
1379
- ```text
1380
- import {
1381
- DeploymentActionError,
1382
- evaluateCondition,
1383
- runDeploymentPlan,
1384
- } from '@forgezero/agent/deploy-plan-runner';
1385
-
1386
- import type {
1387
- ActionContext,
1388
- ActionExecutionResult,
1389
- ActionFailureKind,
1390
- ActionHandler,
1391
- PlanRunResult,
1392
- PlanStepStatus,
1393
- RunDeploymentPlanOptions,
1394
- StepExecutionRecord,
1395
- } from '@forgezero/agent/deploy-plan-runner';
1396
- ```
1397
-
1398
- ## @forgezero/agent/deploy-plan-runner — Extend the plan with a namespaced action
1399
-
1400
- Public projects can define a versioned action coordinate and install an exact handler. Built-in forgezero.* coordinates stay closed; unknown built-ins fail validation.
1401
-
1402
- ```text
1403
- import {
1404
- actions,
1405
- } from '@forgezero/agent/deploy';
1406
- import {
1407
- runDeploymentPlan,
1408
- } from '@forgezero/agent/deploy-plan-runner';
1409
-
1410
- const notify = actions.extension('example.notifications/publish@1', { channel: 'deployments' }, {
1411
- scope: { kind: 'release-executor' },
1412
- retry: { attempts: 3, backoff: { kind: 'exponential', initialMs: 250, maximumMs: 5000 }, retryOn: ['network'] }
1413
- });
1414
-
1415
- await runDeploymentPlan({
1416
- plan, workflow: 'deploy', inputs: {},
1417
- actions: { 'example.notifications/publish@1': async ({ resolved }) => ({ changed: true, evidence: resolved }) }
1418
- });
1419
- ```
1420
-
1421
- <a id="forgezero-agent-deploy-compiler"></a>
1422
- ## @forgezero/agent/deploy-compiler
1423
-
1424
- Explicit developer/CI compiler from forgezero.deploy.ts to canonical .fz/deploy.plan.json; never used to execute project TypeScript in production. This entry exposes 7 named value exports and 4 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1425
-
1426
- ```text
1427
- import {
1428
- DEPLOY_PLAN_FILE,
1429
- DEPLOY_SOURCE_FILE,
1430
- compileDeploymentProject,
1431
- defaultTypeScriptDeployment,
1432
- initializeTypeScriptDeployment,
1433
- inspectCompiledDeployment,
1434
- loadDeploymentSource,
1435
- } from '@forgezero/agent/deploy-compiler';
1436
-
1437
- import type {
1438
- DeploymentCompilation,
1439
- DeploymentInitOptions,
1440
- DeploymentInitProvisioning,
1441
- DeploymentInitRuntime,
1442
- } from '@forgezero/agent/deploy-compiler';
1443
- ```
1444
-
1445
- ## @forgezero/agent/deploy-compiler — Use this entry point
1446
-
1447
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1448
-
1449
- ```text
1450
- import {
1451
- DEPLOY_PLAN_FILE,
1452
- } from '@forgezero/agent/deploy-compiler';
1453
-
1454
- export const selectedCapability = DEPLOY_PLAN_FILE;
1455
- ```
1456
-
1457
- <a id="forgezero-agent-deploy-file"></a>
1458
- ## @forgezero/agent/deploy-file
1459
-
1460
- Read and validate a checked-out .fz deployment file without executing project input. This entry exposes 7 named value exports and 2 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1461
-
1462
- ```text
1463
- import {
1464
- DEPLOY_FILE,
1465
- DEPLOY_SCHEMA_URL,
1466
- DEPLOY_TODO_PREFIX,
1467
- defaultDeployFile,
1468
- deployDefinitionDigest,
1469
- initializeDeployFile,
1470
- inspectDeployFile,
1471
- } from '@forgezero/agent/deploy-file';
1472
-
1473
- import type {
1474
- DeployFileSummary,
1475
- InitializedDeployFile,
1476
- } from '@forgezero/agent/deploy-file';
1477
- ```
1478
-
1479
- ## @forgezero/agent/deploy-file — Use this entry point
1480
-
1481
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1482
-
1483
- ```text
1484
- import {
1485
- DEPLOY_FILE,
1486
- } from '@forgezero/agent/deploy-file';
1487
-
1488
- export const selectedCapability = DEPLOY_FILE;
1489
- ```
1490
-
1491
- <a id="forgezero-agent-metal-bootstrap"></a>
1492
- ## @forgezero/agent/metal-bootstrap
1493
-
1494
- Physical-metal bootstrap planning, application and status evidence. This entry exposes 10 named value exports and 7 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1495
-
1496
- ```text
1497
- import {
1498
- METAL_BOOTSTRAP_STATE_PATH,
1499
- MetalBootstrapError,
1500
- applyMetalBootstrap,
1501
- metalBootstrapStatus,
1502
- normalizeMetalPublicIdentity,
1503
- planMetalBootstrap,
1504
- readMetalBootstrapConfig,
1505
- renderMetalUnits,
1506
- validateMetalBootstrapConfig,
1507
- validateOwnerOnlyPath,
1508
- } from '@forgezero/agent/metal-bootstrap';
1509
-
1510
- import type {
1511
- MetalBootstrapApplyOptions,
1512
- MetalBootstrapConfig,
1513
- MetalBootstrapExec,
1514
- MetalBootstrapPlan,
1515
- MetalBootstrapResult,
1516
- MetalBootstrapStatus,
1517
- MetalBootstrapValidationOptions,
1518
- } from '@forgezero/agent/metal-bootstrap';
1519
- ```
1520
-
1521
- ## @forgezero/agent/metal-bootstrap — Use this entry point
1522
-
1523
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1524
-
1525
- ```text
1526
- import {
1527
- METAL_BOOTSTRAP_STATE_PATH,
1528
- } from '@forgezero/agent/metal-bootstrap';
1529
-
1530
- export const selectedCapability = METAL_BOOTSTRAP_STATE_PATH;
1531
- ```
1532
-
1533
- <a id="forgezero-agent-metal-provision"></a>
1534
- ## @forgezero/agent/metal-provision
1535
-
1536
- The single constrained compute materializer for platform genesis, platform scaling and tenant compute. It executes caller-supplied OS, CPU, memory, disk, bandwidth, network and confidentiality coordinates after capacity and image validation; it owns no environment or product-tier shape. This entry exposes 11 named value exports and 7 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1537
-
1538
- ```text
1539
- import {
1540
- MetalProvisionError,
1541
- allocateAddress,
1542
- allocateCpuPool,
1543
- cloudInit,
1544
- guestBootstrapOperations,
1545
- guestNameFor,
1546
- macForAddress,
1547
- provisionMetalGuest,
1548
- removeMetalGuest,
1549
- tapNameFor,
1550
- validateMetalProfile,
1551
- } from '@forgezero/agent/metal-provision';
1552
-
1553
- import type {
1554
- GuestManifest,
1555
- MetalCommandResult,
1556
- MetalCpuAllocation,
1557
- MetalCpuPool,
1558
- MetalExec,
1559
- MetalImage,
1560
- MetalProvisionProfile,
1561
- } from '@forgezero/agent/metal-provision';
1562
- ```
1563
-
1564
- ## @forgezero/agent/metal-provision — Use this entry point
1565
-
1566
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1567
-
1568
- ```text
1569
- import {
1570
- MetalProvisionError,
1571
- } from '@forgezero/agent/metal-provision';
1572
-
1573
- export const selectedCapability = MetalProvisionError;
1574
- ```
1575
-
1576
- <a id="forgezero-agent-platform-bootstrap-runtime"></a>
1577
- ## @forgezero/agent/platform-bootstrap-runtime
1578
-
1579
- Pure platform bootstrap validation, render and resumable phase-state contracts. This entry exposes 11 named value exports and 14 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1580
-
1581
- ```text
1582
- import {
1583
- activatePlatformRelease,
1584
- assertReleaseLinksContained,
1585
- planLocalOtlpProof,
1586
- planPlatformActivation,
1587
- platformApiCredentialSpecs,
1588
- renderPlatformActivationFiles,
1589
- renderPlatformApiUnits,
1590
- renderPlatformNginx,
1591
- renderPlatformSharedEnvironment,
1592
- validatePlatformInitialInventory,
1593
- validatePlatformSharedEnvironment,
1594
- } from '@forgezero/agent/platform-bootstrap-runtime';
1595
-
1596
- import type {
1597
- ActivationBoundary,
1598
- ApiRuntimeRenderOptions,
1599
- ApiSlot,
1600
- LocalOtlpProofPlan,
1601
- PlatformActivationCommandResult,
1602
- PlatformActivationConfig,
1603
- PlatformActivationExec,
1604
- PlatformBootstrapEmail,
1605
- PlatformDatabaseRole,
1606
- PlatformInitialInventory,
1607
- PlatformInitialInventoryCompute,
1608
- PlatformSharedEnvironment,
1609
- PlatformSoftwareProfile,
1610
- SystemdCredentialSpec,
1611
- } from '@forgezero/agent/platform-bootstrap-runtime';
1612
- ```
1613
-
1614
- ## @forgezero/agent/platform-bootstrap-runtime — Use this entry point
1615
-
1616
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1617
-
1618
- ```text
1619
- import {
1620
- activatePlatformRelease,
1621
- } from '@forgezero/agent/platform-bootstrap-runtime';
1622
-
1623
- export const selectedCapability = activatePlatformRelease;
1624
- ```
1625
-
1626
- <a id="forgezero-agent-project-context"></a>
1627
- ## @forgezero/agent/project-context
1628
-
1629
- Project identity and repository context validation for operator and managed runs. This entry exposes 9 named value exports and 4 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1630
-
1631
- ```text
1632
- import {
1633
- PROJECT_CONTEXT_VERSION,
1634
- ProjectContextError,
1635
- checkProjectContext,
1636
- defaultProjectContext,
1637
- initializeProjectContext,
1638
- parseProjectContext,
1639
- projectContextFiles,
1640
- renderProjectContext,
1641
- syncProjectContext,
1642
- } from '@forgezero/agent/project-context';
1643
-
1644
- import type {
1645
- ContextCheck,
1646
- ContextFile,
1647
- ProjectContextManifest,
1648
- ProjectTruthSource,
1649
- } from '@forgezero/agent/project-context';
1650
- ```
1651
-
1652
- ## @forgezero/agent/project-context — Use this entry point
1653
-
1654
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1655
-
1656
- ```text
1657
- import {
1658
- PROJECT_CONTEXT_VERSION,
1659
- } from '@forgezero/agent/project-context';
1660
-
1661
- export const selectedCapability = PROJECT_CONTEXT_VERSION;
1662
- ```
1663
-
1664
- <a id="forgezero-agent-provisioning-pull"></a>
1665
- ## @forgezero/agent/provisioning-pull
1666
-
1667
- Signed provisioning work claim, renewal, execution and acknowledgement. This entry exposes 2 named value exports and 7 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1668
-
1669
- ```text
1670
- import {
1671
- pullProvisioningOnce,
1672
- startProvisioningPull,
1673
- } from '@forgezero/agent/provisioning-pull';
1674
-
1675
- import type {
1676
- CreateRemoteProvisionClaim,
1677
- GuestAccess,
1678
- ProvisionPullResult,
1679
- ProvisionResult,
1680
- ProvisionRunner,
1681
- ProvisioningPullOptions,
1682
- RemoteProvisionClaim,
1683
- } from '@forgezero/agent/provisioning-pull';
1684
- ```
1685
-
1686
- ## @forgezero/agent/provisioning-pull — Use this entry point
1687
-
1688
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1689
-
1690
- ```text
1691
- import {
1692
- pullProvisioningOnce,
1693
- } from '@forgezero/agent/provisioning-pull';
1694
-
1695
- export const selectedCapability = pullProvisioningOnce;
1696
- ```
1697
-
1698
159
  <a id="forgezero-agent-schema-deploy-v3-json"></a>
1699
160
  ## @forgezero/agent/schema/deploy-v3.json
1700
161
 
@@ -1716,131 +177,6 @@ const validate = new Ajv({ allErrors: true, strict: true }).compile(deploySchema
1716
177
  if (!validate(deploymentDefinition)) throw new Error(JSON.stringify(validate.errors));
1717
178
  ```
1718
179
 
1719
- <a id="forgezero-agent-software"></a>
1720
- ## @forgezero/agent/software
1721
-
1722
- Exact managed-software inventory, requirement and evidence contracts. This entry exposes 14 named value exports and 10 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1723
-
1724
- ```text
1725
- import {
1726
- BUILDKIT_VERSION,
1727
- BUN_RELEASE_SHA256,
1728
- KATA_CONTAINERS_VERSION,
1729
- NERDCTL_VERSION,
1730
- OS_CATALOG,
1731
- PINNED_BUN_VERSION,
1732
- SOFTWARE_CATALOG,
1733
- ensureSoftwareRequirements,
1734
- executeSoftwareOperation,
1735
- observeSoftwareHost,
1736
- runSoftwareCommand,
1737
- softwareDownloadCommand,
1738
- softwareSpawnFailure,
1739
- validateSoftwareRequirements,
1740
- } from '@forgezero/agent/software';
1741
-
1742
- import type {
1743
- CatalogStatus,
1744
- DeploymentChannel,
1745
- OsCatalogEntry,
1746
- SoftwareCatalogEntry,
1747
- SoftwareCommandResult,
1748
- SoftwareExec,
1749
- SoftwareId,
1750
- SoftwareObservation,
1751
- SoftwareOperation,
1752
- SoftwareRequirement,
1753
- } from '@forgezero/agent/software';
1754
- ```
1755
-
1756
- ## @forgezero/agent/software — Use this entry point
1757
-
1758
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1759
-
1760
- ```text
1761
- import {
1762
- BUILDKIT_VERSION,
1763
- } from '@forgezero/agent/software';
1764
-
1765
- export const selectedCapability = BUILDKIT_VERSION;
1766
- ```
1767
-
1768
- <a id="forgezero-agent-software-helper"></a>
1769
- ## @forgezero/agent/software-helper
1770
-
1771
- Root-owned fixed installation/update boundary for declared software. This entry exposes 9 named value exports and 0 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1772
-
1773
- ```text
1774
- import {
1775
- DEFAULT_SOFTWARE_HELPER_SOCKET,
1776
- SOFTWARE_HELPER_GROUP,
1777
- SOFTWARE_HELPER_UNIT_PATH,
1778
- requestContainerActivation,
1779
- requestContainerBuild,
1780
- requestDeploymentConnectivity,
1781
- requestServiceActivation,
1782
- requestSoftware,
1783
- startSoftwareHelper,
1784
- } from '@forgezero/agent/software-helper';
1785
- ```
1786
-
1787
- ## @forgezero/agent/software-helper — Use this entry point
1788
-
1789
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1790
-
1791
- ```text
1792
- import {
1793
- DEFAULT_SOFTWARE_HELPER_SOCKET,
1794
- } from '@forgezero/agent/software-helper';
1795
-
1796
- export const selectedCapability = DEFAULT_SOFTWARE_HELPER_SOCKET;
1797
- ```
1798
-
1799
- <a id="forgezero-agent-ubuntu"></a>
1800
- ## @forgezero/agent/ubuntu
1801
-
1802
- The closed guest-image view: pinned Ubuntu 26.04 LTS x64 supports ordinary or SEV-SNP compute, while pinned Ubuntu 24.04 LTS x64 is limited to ordinary non-confidential compute. Every other OS remains rejected until its own pinned strategy and acceptance evidence are added. This entry exposes 4 named value exports and 0 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
1803
-
1804
- ```text
1805
- import {
1806
- SUPPORTED_GUEST_IMAGE,
1807
- SUPPORTED_GUEST_IMAGES,
1808
- assertSupportedGuestImage,
1809
- supportedGuestImage,
1810
- } from '@forgezero/agent/ubuntu';
1811
- ```
1812
-
1813
- ## @forgezero/agent/ubuntu — Use this entry point
1814
-
1815
- This minimal executable use imports one concrete value from this exact entry point without a wildcard or package-root detour. Keep the value or values the application actually needs; the full named inventory remains directly above it.
1816
-
1817
- ```text
1818
- import {
1819
- SUPPORTED_GUEST_IMAGE,
1820
- } from '@forgezero/agent/ubuntu';
1821
-
1822
- export const selectedCapability = SUPPORTED_GUEST_IMAGE;
1823
- ```
1824
-
1825
- <a id="fz-agent-replica"></a>
1826
- ## fz-agent (replica)
1827
-
1828
- The authorized project-scoped vault replica: resident in RAM, never on disk, invalidated by cursor rather than by timer, cleared when local authority is revoked, and refusing a read it can no longer vouch for. This is a managed runtime interface label, not an import or standalone executable.
1829
-
1830
- ```text
1831
- fz-agent (replica)
1832
- # Accessed through the installed Agent boundary.
1833
- ```
1834
-
1835
- ## fz-agent (replica) — Operational interface
1836
-
1837
- This inventory entry names an Agent-owned runtime interface, not an importable namespace or a command to paste. Applications reach it through the installed Agent and the documented Vault client.
1838
-
1839
- ```text
1840
- fz-agent (replica)
1841
- # Managed by the installed fz-agent service; no direct executable entry.
1842
- ```
1843
-
1844
180
  ## Install both machine commands
1845
181
 
1846
182
  One public package installs `fz` and `fz-agent` at the same version. `fz` breaks the bootstrap circle from an operator machine; `fz-agent` runs managed work. Keeping them together prevents a new bootstrap command from provisioning an old daemon protocol.