コンテンツにスキップ

@alneas/eaos-cli API

Import Contract
@alneas/eaos-cli/commands/deployment Typed public export
@alneas/eaos-cli/commands/lifecycle Typed public export
@alneas/eaos-cli/commands/plugin Typed public export
@alneas/eaos-cli/commands/sync-routes Typed public export
@alneas/eaos-cli Typed public export
@alneas/eaos-cli/platform/deploy Typed public export
@alneas/eaos-cli/platform/deployment-placement-config Typed public export
@alneas/eaos-cli/platform/deployment-plan Typed public export
@alneas/eaos-cli/platform/deployment-status Typed public export
@alneas/eaos-cli/platform Typed public export
@alneas/eaos-cli/platform/kamal-secrets Typed public export
@alneas/eaos-cli/platform/kamal Typed public export
@alneas/eaos-cli/platform/packages Typed public export
@alneas/eaos-cli/platform/render Typed public export
@alneas/eaos-cli/plugin-tools/commands/check-contracts Typed public export
@alneas/eaos-cli/plugin-tools/commands/detect-secrets Typed public export
@alneas/eaos-cli/plugin-tools/commands/diagnose-plugin Typed public export
@alneas/eaos-cli/plugin-tools/commands/generate-mcp-tools Typed public export
@alneas/eaos-cli/plugin-tools/commands/generate-plugin Typed public export
@alneas/eaos-cli/plugin-tools/commands/infer-contracts Typed public export
@alneas/eaos-cli/plugin-tools/commands/sync-agents-md Typed public export
@alneas/eaos-cli/plugin-tools Typed public export
@alneas/eaos-cli/plugin-tools/inspect Typed public export
@alneas/eaos-cli/plugin-tools/utils Typed public export
@alneas/eaos-cli/site Typed public export
@alneas/eaos-cli/version Typed public export
@alneas/eaos-cli/baseline Typed public export
@alneas/eaos-cli/dev Typed public export
@alneas/eaos-cli/commands/architecture Typed public export
@alneas/eaos-cli/presets/oci-adb Typed public export
@alneas/eaos-cli/presets/oci-adb/infra Typed public export
@alneas/eaos-cli/presets/oci-adb/infra/access Typed public export
@alneas/eaos-cli/presets/oci-adb/infra/database Typed public export
@alneas/eaos-cli/presets/oci-adb/infra/vault Typed public export
@alneas/eaos-cli/presets/oci-adb/infra/lookups Typed public export
@alneas/eaos-cli/platform/preset Typed public export
@alneas/eaos-cli/platform/operations Typed public export
@alneas/eaos-cli/presets/oci-adb/template Typed public export
@alneas/eaos-cli/platform/deployment-assets Typed public export

Provider-supplied ADB connection profile fields used for deterministic DSN selection.

Imports: @alneas/eaos-cli/presets/oci-adb/infra/database.

interface AdbConnectionProfile {
consumerGroup: string;
tlsAuthentication: string;
protocol: string;
hostFormat: string;
syntaxFormat: string;
sessionMode?: string;
isRegional?: boolean;
displayName?: string;
value: string;
}
Name Type Required Description
consumerGroup string Yes Provider workload-group label compared against the selected consumerGroup filter.
tlsAuthentication string Yes Provider TLS-authentication label compared against the selected tlsAuthentication filter.
protocol string Yes Provider connection protocol; DSN selection requires TCPS.
hostFormat string Yes Provider hostname representation compared against the selected hostFormat filter.
syntaxFormat string Yes Provider DSN syntax label compared against the selected syntaxFormat filter.
sessionMode string No Optional provider DIRECT/REDIRECT session mode; checked only when selection.sessionMode is supplied.
isRegional boolean No Optional provider regional-profile flag; checked only when selection.isRegional is supplied.
displayName string No Optional provider display name; compared exactly only when selection.displayName is supplied.
value string Yes Provider-supplied connection string; selection requires exactly one nonblank match and never rewrites it.

Type declaration; no runtime value.

selectAdbConnectionProfile for the canonical usage example and runtime requirements.

Provider workload-group label compared against the selected consumerGroup filter.

Provider TLS-authentication label compared against the selected tlsAuthentication filter.

Provider connection protocol; DSN selection requires TCPS.

Provider hostname representation compared against the selected hostFormat filter.

Provider DSN syntax label compared against the selected syntaxFormat filter.

Optional provider DIRECT/REDIRECT session mode; checked only when selection.sessionMode is supplied.

Optional provider regional-profile flag; checked only when selection.isRegional is supplied.

Optional provider display name; compared exactly only when selection.displayName is supplied.

Provider-supplied connection string; selection requires exactly one nonblank match and never rewrites it.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Replace one well-formed generated block while preserving surrounding human-authored text.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/commands/sync-agents-md.

declare function agentDocumentNext(existing: string, block: string): string;
Name Type Required Description
existing string Yes Current document text, possibly without a generated block.
block string Yes Replacement generated block, normally from renderAgentMetadata.

string

Updated document text; a missing block is appended.

The replacement block itself is trusted and is not parsed for marker validity.

If existing markers are mismatched, repeated or reversed.

import { agentDocumentNext } from '@alneas/eaos-cli/plugin-tools'
const next = agentDocumentNext('# Notes', '<!-- eaos:generated:start -->\nContract\n<!-- eaos:generated:end -->')

Reject identifiers outside the lowercase hyphen-separated plugin naming grammar.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/utils.

declare function assertPluginId(id: string): void;
Name Type Required Description
id string Yes Identifier beginning with a lowercase letter; segments contain lowercase letters or digits.

void

No value; normal completion means the identifier matches the naming grammar.

If the identifier does not match the required grammar.

import { assertPluginId } from '@alneas/eaos-cli/plugin-tools'
assertPluginId('notes-api')

Checksum-pinned PostgreSQL and Oracle Docker images used by local schema-baseline compilation; acquisition is a separate operator step.

Imports: @alneas/eaos-cli/baseline.

declare const baselineImages: {
readonly postgres: "postgres@sha256:c7526c0f6c3f30260a563d7bcf8ad778effac59a44f8ffa86678c35418338609";
readonly oracle: "gvenzl/oracle-free@sha256:6d61d267a3b978c24c5ac1790e62e927416a0aec446bd86e4b3a1527562757bd";
};
Name Type Required Description
— — — No call parameters.

Declared constant value.

squashDatabaseContract for the canonical usage example and runtime requirements.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Call an allowlisted site-control route using the registered endpoint and environment-bound token.

Imports: @alneas/eaos-cli/site.

declare function callSiteControl(config: SiteOperationsConfig, id: string, path: string, input?: unknown): Promise<any>;
Name Type Required Description
config SiteOperationsConfig Yes Validated site catalog with the remote API binding.
id string Yes Registered site identifier; site-specific request paths must select this same ID.
path string Yes Allowed /sites or site request/run path, never an arbitrary remote URL.
input unknown No Optional JSON request body; omitted input uses GET, otherwise POST.

Promise<any>

The parsed JSON response from the registered control endpoint.

POST may change host state; remote authorization and command semantics remain owned by the control service. No automatic retry is performed.

Rejects missing auth bindings, forbidden paths, redirects/network timeout (30 seconds), non-2xx responses, responses over 1 MiB or invalid JSON.

import { callSiteControl } from '@alneas/eaos-cli/site'
export function listSites(config: Parameters<typeof callSiteControl>[0], id: string) { return callSiteControl(config, id, '/sites') }

Compare statically inspected plugin contracts against a workspace-owned baseline.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/commands/check-contracts.

declare function checkContracts(root: string, options: ContractCheckOptions): Promise<void>;
Name Type Required Description
root string Yes Trusted workspace root containing the plugin and baseline.
options ContractCheckOptions Yes Required plugin and against path; against must identify a regular workspace file.

Promise<void>

Resolves without a value when the baseline is compatible; additions are reported to stdout.

Does not import plugin code; checks metadata compatibility rather than runtime authorization or complete semantic equivalence.

Rejects unresolved contracts, mismatched plugin identities, incompatible schemas/policies or an invalid baseline.

import { checkContracts } from '@alneas/eaos-cli/plugin-tools'
export async function checkNotes(root: string) { await checkContracts(root, { plugin: 'notes', against: 'contracts/notes.json' }) }

Resolve registered local site/Bun paths and verify the named package scripts are declared.

Imports: @alneas/eaos-cli/site.

declare function checkLocalSite(config: SiteOperationsConfig, id: string): Promise<{
site: LocalSiteProfile;
directory: string;
executable: string;
buildScript: string;
previewScript: string;
packageHash: string;
}>;
Name Type Required Description
config SiteOperationsConfig Yes Validated site catalog with a Bun path and local directory.
id string Yes Exact registered site identifier.

Promise<{ site: LocalSiteProfile; directory: string; executable: string; buildScript: string; previewScript: string; packageHash: string; }>

Real directory/executable paths, selected build/preview scripts and the package manifest hash.

Resolves the executable path but does not check its file type or execution permissions. It does not execute scripts or verify their safety; their contents are trusted project code.

Rejects unknown/missing local bindings, absent package scripts or filesystem/JSON errors.

import { checkLocalSite } from '@alneas/eaos-cli/site'
export function inspectSite(config: Parameters<typeof checkLocalSite>[0], id: string) { return checkLocalSite(config, id) }

CLI release version injected by the build, falling back to the source package version when running source.

Imports: @alneas/eaos-cli/version.

declare const cliVersion: string;
Name Type Required Description
— — — No call parameters.

Declared constant value.

renderPlatform for the canonical usage example and runtime requirements.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Command-specific plugin authoring arguments; each command validates the subset it consumes.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/utils.

interface CommandOptions {
plugin?: string;
check?: boolean;
write?: boolean;
autoFix?: boolean;
name?: string;
description?: string;
industry?: string;
tier?: string;
addonId?: string;
monthlyQuota?: string;
allowedTenants?: string;
targets?: string;
features?: string;
output?: string;
format?: string;
against?: string;
}
Name Type Required Description
plugin string No Existing plugin ID consumed by inspection/maintenance commands.
check boolean No Read-only equality/diagnostic verification where supported; failures reject.
write boolean No Explicit permission to replace an existing generated draft where supported.
autoFix boolean No Command-specific guidance flag; secret detection does not rewrite matched content.
name string No New plugin name used to derive a validated identifier.
description string No Human-readable plugin description written into generated metadata.
industry string No Optional author-selected industry label for generated metadata.
tier string No Public, standard, pro or corporate policy selection; supported legacy aliases are normalized by the generator.
addonId string No Explicit Pro addon identity; generator otherwise derives its default from the plugin ID.
monthlyQuota string No Text form of the nonnegative admitted-request budget; zero grants no metered calls.
allowedTenants string No Comma-separated explicit Corporate tenant allowlist; Corporate generation requires it.
targets string No Command-specific selected client/runtime target hints.
features string No Command-specific optional generated feature hints.
output string No Optional new scaffold destination, subject to the generator’s path and existence checks.
format string No Diagnostic format; json requests structured source inspection.
against string No Workspace-relative contract-baseline JSON used for compatibility checks.

Type declaration; no runtime value.

generatePlugin for the canonical usage example and runtime requirements.

Existing plugin ID consumed by inspection/maintenance commands.

Read-only equality/diagnostic verification where supported; failures reject.

Explicit permission to replace an existing generated draft where supported.

Command-specific guidance flag; secret detection does not rewrite matched content.

New plugin name used to derive a validated identifier.

Human-readable plugin description written into generated metadata.

Optional author-selected industry label for generated metadata.

Public, standard, pro or corporate policy selection; supported legacy aliases are normalized by the generator.

Explicit Pro addon identity; generator otherwise derives its default from the plugin ID.

Text form of the nonnegative admitted-request budget; zero grants no metered calls.

Comma-separated explicit Corporate tenant allowlist; Corporate generation requires it.

Command-specific selected client/runtime target hints.

Command-specific optional generated feature hints.

Optional new scaffold destination, subject to the generator’s path and existence checks.

Diagnostic format; json requests structured source inspection.

Workspace-relative contract-baseline JSON used for compatibility checks.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Plugin selection and workspace-relative baseline for static compatibility checking.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/commands/check-contracts.

interface ContractCheckOptions extends CommandOptions {
against?: string;
}
Name Type Required Description
against string No Required workspace-relative regular JSON file containing the previously inspected contract.

Type declaration; no runtime value.

checkContracts for the canonical usage example and runtime requirements.

Required workspace-relative regular JSON file containing the previously inspected contract.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Validate inventories and every declared asset hash without executing deployment or migrations.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/deployment-plan.

declare function createDeploymentPlan(paths: string[], options?: {
placements?: DeploymentPlacements;
}): Promise<{
databasePolicy: string;
componentPlacements?: {
owner: string;
pluginId: string;
componentId: string;
destinationIds: string[];
adopted: boolean;
}[] | undefined;
destinations?: _alneas_eaos_server_platform.DeploymentDestination[] | undefined;
mode: string;
contributions: DeploymentContribution[];
}>;
Name Type Required Description
paths string[] Yes Deployment inventory JSON paths; each must be a regular nonsymlink file of at most 1 MiB.
options { placements?: DeploymentPlacements; } No Optional explicit placement catalog for component-to-destination resolution.

Promise<{ databasePolicy: string; componentPlacements?: { owner: string; pluginId: string; componentId: string; destinationIds: string[]; adopted: boolean; }[] \| undefined; destinations?: _alneas_eaos_server_platform.DeploymentDestination[] \| undefined; mode: string; contributions: DeploymentContribution[]; }>

Verified contributions, function bindings and any resolved placement plan.

Reads packaged sources but does not certify their behavior or authorize host adoption.

Rejects malformed or duplicate owners/assets/functions, path escapes, symlinks, checksum mismatches and unresolved required placements.

Optional explicit component/destination selections to validate against the verified inventories; omitted performs artifact-only inspection.

import { createDeploymentPlan } from '@alneas/eaos-cli/platform'
export function inspectInventory(path: string) { return createDeploymentPlan([path]) }

Declare the OCI edge/worker network, ADB, private object storage and KMS resources for a trusted host stack.

Imports: @alneas/eaos-cli/presets/oci-adb.

declare function createOciAdbPreset(name: string, args: OciAdbPresetArgs, options?: pulumi.CustomResourceOptions): {
network: {
vcn: _pulumi_oci_core_vcn.Vcn;
dhcpOptions: _pulumi_oci_core_dhcpOptions.DhcpOptions;
internetGateway: _pulumi_oci_core_internetGateway.InternetGateway;
natGateway: _pulumi_oci_core_natGateway.NatGateway;
serviceGateway: _pulumi_oci_core_serviceGateway.ServiceGateway | undefined;
publicRoutes: _pulumi_oci_core_routeTable.RouteTable;
privateRoutes: _pulumi_oci_core_routeTable.RouteTable;
publicSecurityList: _pulumi_oci_core_securityList.SecurityList;
privateSecurityList: _pulumi_oci_core_securityList.SecurityList;
publicSubnet: _pulumi_oci_core_subnet.Subnet;
privateSubnet: _pulumi_oci_core_subnet.Subnet;
};
edge: _pulumi_oci_core_instance.Instance;
worker: _pulumi_oci_core_instance.Instance;
database: _pulumi_oci_database_autonomousDatabase.AutonomousDatabase;
vault: _pulumi_oci_kms_vault.Vault;
key: _pulumi_oci_kms_key.Key;
bucket: _pulumi_oci_objectstorage_bucket.Bucket;
bindings: {
edgeHost: pulumi.Output<string>;
edgePrivateAddress: pulumi.Output<string>;
workerPrivateAddress: pulumi.Output<string>;
databaseId: pulumi.Output<string>;
databaseConnection: pulumi.Output<string>;
vaultId: pulumi.Output<string>;
keyId: pulumi.Output<string>;
bucket: pulumi.Output<string>;
namespace: pulumi.Output<string>;
};
};
Name Type Required Description
name string Yes Preset resource prefix; must match the lowercase naming grammar.
args OciAdbPresetArgs Yes Explicit OCI compartment, reviewed images, SSH CIDR, database version/password and object namespace.
options pulumi.CustomResourceOptions No Optional Pulumi resource options such as provider, parent, protection or adoption; host-owned.

{ network: { vcn: _pulumi_oci_core_vcn.Vcn; dhcpOptions: _pulumi_oci_core_dhcpOptions.DhcpOptions; internetGateway: _pulumi_oci_core_internetGateway.InternetGateway; natGateway: _pulumi_oci_core_natGateway.NatGateway; serviceGateway: _pulumi_oci_core_serviceGateway.ServiceGateway \| undefined; publicRoutes: _pulumi_oci_core_routeTable.RouteTable; privateRoutes: _pulumi_oci_core_routeTable.RouteTable; publicSecurityList: _pulumi_oci_core_securityList.SecurityList; privateSecurityList: _pulumi_oci_core_securityList.SecurityList; publicSubnet: _pulumi_oci_core_subnet.Subnet; privateSubnet: _pulumi_oci_core_subnet.Subnet; }; edge: _pulumi_oci_core_instance.Instance; worker: _pulumi_oci_core_instance.Instance; database: _pulumi_oci_database_autonomousDatabase.AutonomousDatabase; vault: _pulumi_oci_kms_vault.Vault; key: _pulumi_oci_kms_key.Key; bucket: _pulumi_oci_objectstorage_bucket.Bucket; bindings: { edgeHost: pulumi.Output<string>; edgePrivateAddress: pulumi.Output<string>; workerPrivateAddress: pulumi.Output<string>; databaseId: pulumi.Output<string>; databaseConnection: pulumi.Output<string>; vaultId: pulumi.Output<string>; keyId: pulumi.Output<string>; bucket: pulumi.Output<string>; namespace: pulumi.Output<string>; }; }

The network, edge/worker resources, database, Vault/key, bucket and binding Outputs.

Registers real Pulumi resources when invoked. Requires

Invalid prefix or unrestricted/invalid SSH CIDR fails immediately; provider/resource registration and apply errors propagate.

import { createOciAdbPreset } from '@alneas/eaos-cli/presets/oci-adb'
export function defineHostResource(args: Parameters<typeof createOciAdbPreset>[1], options?: Parameters<typeof createOciAdbPreset>[2]) { return createOciAdbPreset('example', args, options) }

Declare an OCI user authentication token and expose its value as a Pulumi secret Output.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/vault.

declare function createOciAuthToken(name: string, args: OciAuthTokenArgs, options?: pulumi.CustomResourceOptions): {
authToken: _pulumi_oci_identity_authToken.AuthToken;
token: pulumi.Output<string>;
};
Name Type Required Description
name string Yes Logical resource name.
args OciAuthTokenArgs Yes User identity, optional description and shallow native overrides.
options pulumi.CustomResourceOptions No Optional Pulumi resource options such as provider, parent, protection or adoption; host-owned.

{ authToken: _pulumi_oci_identity_authToken.AuthToken; token: pulumi.Output<string>; }

The AuthToken resource and secret-wrapped token Output.

Creation can issue real credentials during Pulumi apply. The host owns rotation, distribution and access; never unwrap the token into logs or public outputs. Importing the module alone does not run a Pulumi update.

Provider/resource registration errors propagate.

import { createOciAuthToken } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function defineHostResource(args: Parameters<typeof createOciAuthToken>[1], options?: Parameters<typeof createOciAuthToken>[2]) { return createOciAuthToken('example', args, options) }

Declare an OCI Autonomous Database with an explicit default profile or unchanged native arguments.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/database.

declare function createOciAutonomousDatabase(name: string, args: OciAutonomousDatabaseArgs, options?: pulumi.CustomResourceOptions): _pulumi_oci_database_autonomousDatabase.AutonomousDatabase;
Name Type Required Description
name string Yes Exact Pulumi logical name.
args OciAutonomousDatabaseArgs Yes Either explicit free-oltp settings including nonempty endpoint ACL, or defaults=none with full native arguments.
options pulumi.CustomResourceOptions No Optional Pulumi resource options such as provider, parent, protection or adoption; host-owned.

_pulumi_oci_database_autonomousDatabase.AutonomousDatabase

The native AutonomousDatabase resource.

New free-oltp declarations default to protection, server-auth TLS and disabled autoscaling. Password values are secret Outputs. No DDL, wallets, IAM configuration or implicit adoption; provider inputs/overrides must be reviewed by the host. Importing the module alone does not run a Pulumi update.

Unknown profiles or absent required version/password/ACL fail immediately; provider errors propagate.

import { createOciAutonomousDatabase } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function defineHostResource(args: Parameters<typeof createOciAutonomousDatabase>[1], options?: Parameters<typeof createOciAutonomousDatabase>[2]) { return createOciAutonomousDatabase('example', args, options) }

Declare the OCI Bastion service with an explicit nonempty client CIDR allowlist.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/access.

declare function createOciBastion(name: string, args: OciBastionArgs, options?: pulumi.CustomResourceOptions): _pulumi_oci_bastion_bastion.Bastion;
Name Type Required Description
name string Yes Exact Pulumi logical name.
args OciBastionArgs Yes Compartment, target subnet, client allowlist and optional TTL/native overrides.
options pulumi.CustomResourceOptions No Optional Pulumi resource options such as provider, parent, protection or adoption; host-owned.

_pulumi_oci_bastion_bastion.Bastion

The native Bastion resource.

Default session TTL is 10800 seconds. Does not create sessions, IAM policies or SSH tunnels. Deferred Output allowlists are validated by the provider. Importing the module alone does not run a Pulumi update.

Missing or empty immediate allowlists fail; provider validation/errors propagate.

import { createOciBastion } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function defineHostResource(args: Parameters<typeof createOciBastion>[1], options?: Parameters<typeof createOciBastion>[2]) { return createOciBastion('example', args, options) }

Declare an OCI instance using an explicit image and host-controlled customization.

Imports: @alneas/eaos-cli/presets/oci-adb/infra.

declare function createOciCompute(name: string, args: OciComputeArgs, options?: pulumi.CustomResourceOptions): _pulumi_oci_core_instance.Instance;
Name Type Required Description
name string Yes Exact Pulumi logical resource name.
args OciComputeArgs Yes Compartment, domain, subnet, image and optional shape/storage/bootstrap overrides.
options pulumi.CustomResourceOptions No Optional Pulumi resource options such as provider, parent, protection or adoption; host-owned.

_pulumi_oci_core_instance.Instance

The native OCI Instance resource.

Defaults to a 50 GiB disposable boot volume and Docker cloud-init unless bootstrap.containerRuntime=none. Explicit instance metadata/user_data takes precedence; existing host adoption and replacement policy remain host-owned. Importing the module alone does not run a Pulumi update.

Provider/resource registration errors propagate.

import { createOciCompute } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function defineHostResource(args: Parameters<typeof createOciCompute>[1], options?: Parameters<typeof createOciCompute>[2]) { return createOciCompute('example', args, options) }

Declare a public OCI VCN/subnet with internet egress and explicitly supplied ingress rules.

Imports: @alneas/eaos-cli/presets/oci-adb/infra.

declare function createOciNetwork(name: string, args: OciNetworkArgs, options?: pulumi.CustomResourceOptions): {
vcn: _pulumi_oci_core_vcn.Vcn;
gateway: _pulumi_oci_core_internetGateway.InternetGateway;
routes: _pulumi_oci_core_routeTable.RouteTable;
securityList: _pulumi_oci_core_securityList.SecurityList;
subnet: _pulumi_oci_core_subnet.Subnet;
};
Name Type Required Description
name string Yes Resource prefix for the network child resources.
args OciNetworkArgs Yes Compartment and optional VCN/subnet ranges and ingress rules.
options pulumi.CustomResourceOptions No Optional Pulumi resource options such as provider, parent, protection or adoption; host-owned.

{ vcn: _pulumi_oci_core_vcn.Vcn; gateway: _pulumi_oci_core_internetGateway.InternetGateway; routes: _pulumi_oci_core_routeTable.RouteTable; securityList: _pulumi_oci_core_securityList.SecurityList; subnet: _pulumi_oci_core_subnet.Subnet; }

The VCN, internet gateway, route table, security list and public subnet.

Defaults to VCN 10.0.0.0/16 and public subnet 10.0.1.0/24, allows all outbound traffic and no inbound rules unless supplied. Does not implement the separate two-subnet private-network preset. Importing the module alone does not run a Pulumi update.

Provider/resource registration errors propagate.

import { createOciNetwork } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function defineHostResource(args: Parameters<typeof createOciNetwork>[1], options?: Parameters<typeof createOciNetwork>[2]) { return createOciNetwork('example', args, options) }

Declare a TCP OCI network load balancer and one backend per uniquely named listener.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/access.

declare function createOciNetworkLoadBalancer(name: string, args: OciNetworkLoadBalancerArgs, options?: pulumi.CustomResourceOptions): {
loadBalancer: _pulumi_oci_networkloadbalancer_networkLoadBalancer.NetworkLoadBalancer;
listeners: Record<string, OciNlbListenerResources>;
};
Name Type Required Description
name string Yes Default resource prefix.
args OciNetworkLoadBalancerArgs Yes Compartment, subnet, target ID and optional listener/resource overrides.
options pulumi.CustomResourceOptions No Optional Pulumi resource options such as provider, parent, protection or adoption; host-owned.

{ loadBalancer: _pulumi_oci_networkloadbalancer_networkLoadBalancer.NetworkLoadBalancer; listeners: Record<string, OciNlbListenerResources>; }

The load balancer and listener resources keyed by listener key.

Defaults to public TCP 80/443 forwarding and TCP backend health checks. TLS termination, client ingress policy and application authorization remain host-owned; native overrides are shallow. Importing the module alone does not run a Pulumi update.

Empty/duplicate/invalid listener keys or duplicate/out-of-range ports fail before resource registration; provider errors propagate.

import { createOciNetworkLoadBalancer } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function defineHostResource(args: Parameters<typeof createOciNetworkLoadBalancer>[1], options?: Parameters<typeof createOciNetworkLoadBalancer>[2]) { return createOciNetworkLoadBalancer('example', args, options) }

Build backend TCP ingress rules for the selected NLB ports and client source CIDRs.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/access.

declare function createOciNlbIngressRules(options?: OciNlbIngressRulesOptions): NonNullable<oci.core.SecurityListArgs['ingressSecurityRules']>;
Name Type Required Description
options OciNlbIngressRulesOptions No ports defaults to 80/443, allowedCidrs defaults to world IPv4, and descriptionPrefix labels the rules.

NonNullable<oci.core.SecurityListArgs['ingressSecurityRules']>

One rule per selected port/CIDR pair.

This helper does not validate port/CIDR values or reconcile NLB source-preservation settings. Review those against the actual forwarding configuration; no security list is changed by rendering.

import { createOciNlbIngressRules } from '@alneas/eaos-cli/presets/oci-adb/infra'
const rules = createOciNlbIngressRules({ ports: [443], allowedCidrs: ['192.0.2.0/24'] })

Declare a two-subnet OCI network with separate public and private egress/security configuration.

Imports: @alneas/eaos-cli/presets/oci-adb/infra.

declare function createOciPrivateNetwork(name: string, args: OciPrivateNetworkArgs, options?: pulumi.CustomResourceOptions): {
vcn: _pulumi_oci_core_vcn.Vcn;
dhcpOptions: _pulumi_oci_core_dhcpOptions.DhcpOptions;
internetGateway: _pulumi_oci_core_internetGateway.InternetGateway;
natGateway: _pulumi_oci_core_natGateway.NatGateway;
serviceGateway: _pulumi_oci_core_serviceGateway.ServiceGateway | undefined;
publicRoutes: _pulumi_oci_core_routeTable.RouteTable;
privateRoutes: _pulumi_oci_core_routeTable.RouteTable;
publicSecurityList: _pulumi_oci_core_securityList.SecurityList;
privateSecurityList: _pulumi_oci_core_securityList.SecurityList;
publicSubnet: _pulumi_oci_core_subnet.Subnet;
privateSubnet: _pulumi_oci_core_subnet.Subnet;
};
Name Type Required Description
name string Yes Resource prefix for the network and its child resources.
args OciPrivateNetworkArgs Yes Compartment, address ranges, ingress rules, optional service network and per-resource shallow overrides.
options pulumi.CustomResourceOptions No Optional Pulumi resource options such as provider, parent, protection or adoption; host-owned.

{ vcn: _pulumi_oci_core_vcn.Vcn; dhcpOptions: _pulumi_oci_core_dhcpOptions.DhcpOptions; internetGateway: _pulumi_oci_core_internetGateway.InternetGateway; natGateway: _pulumi_oci_core_natGateway.NatGateway; serviceGateway: _pulumi_oci_core_serviceGateway.ServiceGateway \| undefined; publicRoutes: _pulumi_oci_core_routeTable.RouteTable; privateRoutes: _pulumi_oci_core_routeTable.RouteTable; publicSecurityList: _pulumi_oci_core_securityList.SecurityList; privateSecurityList: _pulumi_oci_core_securityList.SecurityList; publicSubnet: _pulumi_oci_core_subnet.Subnet; privateSubnet: _pulumi_oci_core_subnet.Subnet; }

The VCN, subnets, gateways, routes and security resources.

No service-network lookup is implicit; omit it for NAT-only private egress. Overrides replace nested values, so the host must review routing and security effects. Importing the module alone does not run a Pulumi update.

Provider/resource registration errors propagate.

import { createOciPrivateNetwork } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function defineHostResource(args: Parameters<typeof createOciPrivateNetwork>[1], options?: Parameters<typeof createOciPrivateNetwork>[2]) { return createOciPrivateNetwork('example', args, options) }

Declare an OCI KMS Vault with optional native argument overrides.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/vault.

declare function createOciVault(name: string, args: OciVaultArgs, options?: pulumi.CustomResourceOptions): _pulumi_oci_kms_vault.Vault;
Name Type Required Description
name string Yes Logical name and default display name.
args OciVaultArgs Yes Compartment and optional display name, vault type or shallow native overrides.
options pulumi.CustomResourceOptions No Optional Pulumi resource options such as provider, parent, protection or adoption; host-owned.

_pulumi_oci_kms_vault.Vault

The native KMS Vault resource.

Defaults to DEFAULT vault type. Credentials/state and protection/retention settings remain host-owned; the factory itself does not populate secrets. Importing the module alone does not run a Pulumi update.

Provider/resource registration errors propagate.

import { createOciVault } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function defineHostResource(args: Parameters<typeof createOciVault>[1], options?: Parameters<typeof createOciVault>[2]) { return createOciVault('example', args, options) }

Declare an OCI KMS master encryption key for a supplied Vault management endpoint.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/vault.

declare function createOciVaultKey(name: string, args: OciVaultKeyArgs, options?: pulumi.CustomResourceOptions): _pulumi_oci_kms_key.Key;
Name Type Required Description
name string Yes Logical name and default display name.
args OciVaultKeyArgs Yes Compartment, management endpoint, optional algorithm/length/protection and shallow overrides.
options pulumi.CustomResourceOptions No Optional Pulumi resource options such as provider, parent, protection or adoption; host-owned.

_pulumi_oci_kms_key.Key

The native KMS Key resource.

Defaults to AES, length 32 and SOFTWARE protection. Current code also defaults non-AES length to 32; supply the correct provider-supported length explicitly for other algorithms. Importing the module alone does not run a Pulumi update.

Provider/resource registration errors propagate; provider validation owns algorithm/length compatibility.

import { createOciVaultKey } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function defineHostResource(args: Parameters<typeof createOciVaultKey>[1], options?: Parameters<typeof createOciVaultKey>[2]) { return createOciVaultKey('example', args, options) }

Declare an OCI Vault secret with secret-wrapped base64 content.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/vault.

declare function createOciVaultSecret(name: string, args: OciVaultSecretArgs, options?: pulumi.CustomResourceOptions): _pulumi_oci_vault_secret.Secret;
Name Type Required Description
name string Yes Logical resource name.
args OciVaultSecretArgs Yes Compartment, Vault/key IDs, secret name/content and optional already-base64/native overrides.
options pulumi.CustomResourceOptions No Optional Pulumi resource options such as provider, parent, protection or adoption; host-owned.

_pulumi_oci_vault_secret.Secret

The native OCI Secret resource.

Encodes UTF-8 content unless isAlreadyBase64=true and marks content secret. Native overrides are applied last and can replace secretContent; review secrecy and shape before apply. Importing the module alone does not run a Pulumi update.

Provider/resource registration errors and Output transformation failures propagate.

import { createOciVaultSecret } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function defineHostResource(args: Parameters<typeof createOciVaultSecret>[1], options?: Parameters<typeof createOciVaultSecret>[2]) { return createOciVaultSecret('example', args, options) }

Create a disposable local development app around a trusted plugin and scoped SQLite stores.

Imports: @alneas/eaos-cli/dev.

declare function createPluginDevApp(config: PluginDevConfig, options?: {
root?: string;
}): Promise<{
app: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">;
close(): Promise<void>;
}>;
Name Type Required Description
config PluginDevConfig Yes Plugin definition and explicit contracts, local capabilities, clients and optional MCP bindings.
options { root?: string; } No Optional root for local source and client resolution.

Promise<{ app: Hono<hono_types.BlankEnv, hono_types.BlankSchema, "/">; close(): Promise<void>; }>

An object with the Hono app and async close(); close waits for owned jobs/contexts, closes databases and removes temporary storage.

Allocates in-memory databases and temporary storage; trusted plugin code is not OS-sandboxed. This is not production identity or permission infrastructure. Use returned cleanup hooks when ending a session.

Rejects invalid contracts/migrations, mismatched MCP policy or failed local resource initialization.

Trusted source/client resolution root; defaults to process.cwd() when omitted.

import { createPluginDevApp } from '@alneas/eaos-cli/dev'
export function createSandbox(config: Parameters<typeof createPluginDevApp>[0]) { return createPluginDevApp(config) }

Final schema SQL with the exact image and independent rebuild evidence.

Imports: @alneas/eaos-cli/baseline.

interface DatabaseBaselineCompilation {
sql: string[];
verification: {
dialect: string;
image: string;
schemaSha256: string;
rebuilt: true;
};
}
Name Type Required Description
sql string[] Yes Final schema statements extracted from the temporary database.
verification { dialect: string; image: string; schemaSha256: string; rebuilt: true; } Yes Dialect/image identity, canonical schema hash and rebuilt=true evidence from the independent schema comparison.

Type declaration; no runtime value.

squashDatabaseContract for the canonical usage example and runtime requirements.

Final schema statements extracted from the temporary database.

Dialect/image identity, canonical schema hash and rebuilt=true evidence from the independent schema comparison.

Selected compiler dialect, postgres or oracle, recorded with the verification evidence.

Exact digest-pinned local Docker image used to compile and independently rebuild the schema.

SHA-256 of JSON.stringify applied to the extracted source SQL statement array; Oracle rebuild comparison separately normalizes DDL.

True only after source and independently rebuilt schema metadata compare equal; it is not evidence of host database adoption.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Local Docker compiler image and startup limits for schema-baseline verification.

Imports: @alneas/eaos-cli/baseline.

interface DatabaseBaselineOptions {
postgresImage?: string;
oracleImage?: string;
startupTimeoutMs?: number;
}
Name Type Required Description
postgresImage string No Optional locally preloaded digest-pinned PostgreSQL image; defaults to baselineImages.postgres.
oracleImage string No Optional locally preloaded digest-pinned Oracle image; defaults to baselineImages.oracle.
startupTimeoutMs number No Local database startup deadline in milliseconds; defaults to 600000 and must be an integer from 1000 to 900000.

Type declaration; no runtime value.

squashDatabaseContract for the canonical usage example and runtime requirements.

Optional locally preloaded digest-pinned PostgreSQL image; defaults to baselineImages.postgres.

Optional locally preloaded digest-pinned Oracle image; defaults to baselineImages.oracle.

Local database startup deadline in milliseconds; defaults to 600000 and must be an integer from 1000 to 900000.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Build the private Kratos and worker API TCP ingress rules for the default EAOS layout.

Imports: @alneas/eaos-cli/presets/oci-adb/infra.

declare function defaultEoasPrivateIngressRules(source?: pulumi.Input<string>, callers?: {
kratosPublicSource?: pulumi.Input<string>;
workerApiSource?: pulumi.Input<string>;
}): NonNullable<oci.core.SecurityListArgs['ingressSecurityRules']>;
Name Type Required Description
source pulumi.Input<string> No Source CIDR/Input; defaults to the VCN range 10.0.0.0/16.
callers { kratosPublicSource?: pulumi.Input<string>; workerApiSource?: pulumi.Input<string>; } No Optional per-service source overrides for Kratos public and worker API traffic.

NonNullable<oci.core.SecurityListArgs['ingressSecurityRules']>

Rules for TCP 4434, 4433 and 3000 using the supplied source scopes.

Pure rule construction; it does not attach security lists or validate whether caller-supplied CIDRs are private. Hosts must avoid exposing administrative ports publicly.

Optional CIDR/Input overriding the common source for TCP 4433 Kratos public API traffic; omitted uses source.

Optional CIDR/Input overriding the common source for TCP 3000 worker API traffic; omitted uses source.

import { defaultEoasPrivateIngressRules } from '@alneas/eaos-cli/presets/oci-adb/infra'
const rules = defaultEoasPrivateIngressRules('10.0.0.0/16')

Retain a typed development configuration without creating a server or persistence.

Imports: @alneas/eaos-cli/dev.

declare const defineDevConfig: (config: PluginDevConfig) => PluginDevConfig;
Name Type Required Description
config PluginDevConfig Yes Explicit plugin definition and optional local test host capabilities.

PluginDevConfig

The same configuration object, without cloning or validation.

The later development runtime validates contracts and allocates disposable state; defining configuration alone does not do so.

import { defineDevConfig } from '@alneas/eaos-cli/dev'
import { definePlugin } from '@alneas/eaos-core'
const config = defineDevConfig({ plugin: definePlugin({ id: 'notes', entitlement: { tier: 'public' }, routes(router) { router.post('/ping', async () => ({ ready: true })) } }) })

Retain typed trusted host operations without executing any supplied callback.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/operations.

declare const definePlatformOperations: (operations: PlatformOperations) => PlatformOperations;
Name Type Required Description
operations PlatformOperations Yes Host-owned lock, lifecycle, health and deployment/bootstrap bindings.

PlatformOperations

The same host operations object, without cloning or execution.

Host callbacks carry real capabilities. Configuration passthrough is not validation, approval or a deployment.

import { definePlatformOperations } from '@alneas/eaos-cli/platform'
export function bindOperations(operations: Parameters<typeof definePlatformOperations>[0]) { return definePlatformOperations(operations) }

Enumerate regular deployment-tree files in deterministic order while rejecting symbolic links.

Imports: @alneas/eaos-cli/platform/deployment-assets.

declare function deploymentAssetPaths(directory: string, prefix?: string): Promise<string[]>;
Name Type Required Description
directory string Yes Built staging directory to inspect.
prefix string No Optional relative traversal prefix, empty by default; caller owns its containment.

Promise<string[]>

Sorted relative file paths; Finder .DS_Store files are omitted.

Rejects encountered symlinks and filesystem read errors.

import { deploymentAssetPaths } from '@alneas/eaos-cli/platform/deployment-assets'
export function stagedFiles(directory: string) { return deploymentAssetPaths(directory) }

Hash-verified deployment contribution read from one immutable package inventory.

Imports: @alneas/eaos-cli/platform/deployment-plan.

interface DeploymentContribution {
owner: string;
artifact: string;
inventorySha256: string;
runtime?: string;
functions: DeploymentInventory['functions'];
database?: DeploymentInventory['database'];
plugins: DeploymentInventory['plugins'];
coverage: 'declared' | 'legacy-unclassified';
verifiedAssets: number;
}
Name Type Required Description
owner string Yes Exact package identity declared by the verified inventory.
artifact string Yes Canonical inventory JSON path used for this contribution.
inventorySha256 string Yes SHA-256 of the exact immutable inventory bytes.
runtime string No Optional declared runtime module path; inspection does not execute it.
functions DeploymentInventory['functions'] Yes Declared runtime function contributions, with source assets verified.
database DeploymentInventory['database'] No Optional adopted-history database contribution; does not run schema changes.
plugins DeploymentInventory['plugins'] Yes Optional declared plugins, components and adoption tasks.
coverage 'declared' | 'legacy-unclassified' Yes declared for inventories with task declarations; legacy-unclassified otherwise.
verifiedAssets number Yes Number of inventory assets whose exact bytes passed SHA-256 validation.

Type declaration; no runtime value.

createDeploymentPlan for the canonical usage example and runtime requirements.

Exact package identity declared by the verified inventory.

Canonical inventory JSON path used for this contribution.

SHA-256 of the exact immutable inventory bytes.

Optional declared runtime module path; inspection does not execute it.

Declared runtime function contributions, with source assets verified.

Optional adopted-history database contribution; does not run schema changes.

Optional declared plugins, components and adoption tasks.

declared for inventories with task declarations; legacy-unclassified otherwise.

Number of inventory assets whose exact bytes passed SHA-256 validation.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Compatibility re-export; its implementation and documentation are owned by the owning API reference.

Imports: @alneas/eaos-cli/platform.

interface DeploymentInventory {
apiVersion: 1;
owner: string;
version?: string;
runtime?: string;
lifecycleBundle?: string[];
functions: Array<{
id: string;
source: string;
scope: 'tenant';
requiredTenantBindings: string[];
}>;
database?: {
source: string;
mode: 'adopt-existing-history';
tenantColumn: 'tenant_id';
};
assets: Array<{
path: string;
sha256: string;
}>;
plugins?: DeploymentPlugin[];
}
Name Type Required Description
apiVersion 1 Yes See the upstream owning declaration.
owner string Yes See the upstream owning declaration.
version string No See the upstream owning declaration.
runtime string No See the upstream owning declaration.
lifecycleBundle string[] No See the upstream owning declaration.
functions Array<{ id: string; source: string; scope: 'tenant'; requiredTenantBindings: string[]; }> Yes See the upstream owning declaration.
database { source: string; mode: 'adopt-existing-history'; tenantColumn: 'tenant_id'; } No See the upstream owning declaration.
assets Array<{ path: string; sha256: string; }> Yes See the upstream owning declaration.
plugins DeploymentPlugin[] No See the upstream owning declaration.

Type declaration; no runtime value.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Deployment summary enriched with destination-specific adoption and task evidence.

Imports: @alneas/eaos-cli/platform/deployment-status.

type DeploymentStatusContribution = Omit<BaseSummary, 'plugins'> & {
plugins: Array<Omit<BasePlugin, 'tasks' | 'components'> & {
selected?: boolean;
placementSha256?: string;
tasks: Array<BasePlugin['tasks'][number] & {
adopted?: boolean;
executions?: DeploymentExecution[];
}>;
components: Array<BasePlugin['components'][number] & {
adopted?: boolean;
destinationIds?: string[];
}>;
}>;
destinations?: PlacedSummary['destinations'];
artifactExecutions?: PlacedSummary['artifactExecutions'];
placementCoverage?: 'explicit';
};
Name Type Required Description
— — — No call parameters.

Type declaration; no runtime value.

inspectDeploymentStatus for the canonical usage example and runtime requirements.

Plugin status summaries with optional destination adoption and per-task execution evidence.

False when this application has not adopted the plugin; omitted in summaries without placement selection.

Optional hash binding adopted component assignments to destination/runtime configuration.

Per-task status extended with destination-specific adoption and execution evidence when placements are supplied.

Whether this task belongs to an adopted component assignment; false excludes it from required remaining work.

Optional artifact/destination execution summaries with independently bound status and evidence.

Declared components enriched with application adoption and assigned destination identities.

Whether this application explicitly selects the component for deployment.

Explicit destination IDs assigned to this component when placement-aware inspection is used.

Optional explicit deployment destinations included by placement-aware status inspection.

Optional artifact-scoped task executions shared across destination summaries.

Whether declared destination placements are represented by verified status evidence.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Deploy a reviewed prebuilt image using Kamal or constrained single-host OpenSSH transport.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/deploy.

declare function deployPlatformImage(options: PlatformImageDeployOptions): Promise<void>;
Name Type Required Description
options PlatformImageDeployOptions Yes Explicit configFile and immutable version; optional transport, cwd, environment and registry credentials.

Promise<void>

Resolves without a value when the selected deployment commands succeed.

Executes real Ruby/Kamal/SSH/Docker operations. Fixed-port replacement may stop the prior version and attempt rollback on failure; inspect actual host state before retrying. Does not build/push images, apply DB migrations or activate tenants. Credentials must come from trusted host bindings.

Rejects invalid versions/configuration, unsupported OpenSSH features, subprocess failures or failed rollback commands.

import { deployPlatformImage } from '@alneas/eaos-cli/platform'
export function deployReviewed(options: Parameters<typeof deployPlatformImage>[0]) { return deployPlatformImage(options) }

Scan plugin TypeScript, JavaScript and JSON files for configured credential patterns without printing matches.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/commands/detect-secrets.

declare function detectSecrets(workspaceRoot: string, options: CommandOptions): Promise<void>;
Name Type Required Description
workspaceRoot string Yes Trusted workspace containing the plugin.
options CommandOptions Yes plugin is required; check rejects findings and autoFix only prints resolver guidance.

Promise<void>

Resolves without a value after reporting findings; does not edit or remove credentials.

Skips node_modules, dist and .git. Pattern scanning cannot certify absence of all secrets; findings contain relative paths and redacted categories.

Rejects invalid plugin paths, filesystem errors, or detected patterns when check is true.

import { detectSecrets } from '@alneas/eaos-cli/plugin-tools'
export async function scanNotes(root: string) { await detectSecrets(root, { plugin: 'notes', check: true }) }

Print source-inspection diagnostics and optionally fail when unresolved issues remain.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/commands/diagnose-plugin.

declare function diagnosePlugin(root: string, options: CommandOptions): Promise<void>;
Name Type Required Description
root string Yes Trusted workspace root.
options CommandOptions Yes plugin is required; format=json prints structured data and check rejects unresolved issues.

Promise<void>

Resolves without a value after printing the report.

Rejects if plugin is missing, source inspection fails, or check finds issues.

import { diagnosePlugin } from '@alneas/eaos-cli/plugin-tools'
export async function diagnoseNotes(root: string) { await diagnosePlugin(root, { plugin: 'notes', check: true }) }

Default email-identity JSON Schema used while rendering the platform identity configuration.

Imports: @alneas/eaos-cli/platform/render.

declare const emailIdentitySchema: {
$schema: string;
title: string;
type: string;
properties: {
traits: {
type: string;
properties: {
email: {
type: string;
format: string;
'ory.sh/kratos': {
credentials: {
password: {
identifier: boolean;
};
};
verification: {
via: string;
};
};
};
name: {
type: string;
};
};
required: string[];
additionalProperties: boolean;
};
};
required: string[];
additionalProperties: boolean;
};
Name Type Required Description
— — — No call parameters.

Declared constant value.

renderPlatform for the canonical usage example and runtime requirements.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Execute a reviewed release/bootstrap under local and shared host locks with durable step receipts.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/operations.

declare function executePlatformOperation(root: string, operation: 'release' | 'bootstrap', options?: PlatformOperationOptions, ports?: OperationPorts): Promise<{
mode: "plan-only";
operation: "release" | "bootstrap";
inputSha256: string;
preset: string | undefined;
roles: {
role: "backend" | "frontend" | "worker";
image: string;
version: string;
}[];
stages: string[];
selectedPlugins: {
owner: string;
id: string;
}[];
requires: string;
} | {
receipt: string;
status: "succeeded";
id: string;
}>;
Name Type Required Description
root string Yes Existing application root.
operation 'release' | 'bootstrap' Yes Explicit release or bootstrap operation.
options PlatformOperationOptions No plan returns inspection only; actual bootstrap additionally requires an explicit Pulumi stack.
ports OperationPorts No Trusted host operations and optional process/deploy/fetch ports; missing ports use real host implementations.

Promise<{ mode: "plan-only"; operation: "release" \| "bootstrap"; inputSha256: string; preset: string \| undefined; roles: { role: "backend" \| "frontend" \| "worker"; image: string; version: string; }[]; stages: string[]; selectedPlugins: { owner: string; id: string; }[]; requires: string; } \| { receipt: string; status: "succeeded"; id: string; }>

The plan in plan mode; after real execution, an object with the persisted receipt path, succeeded status, and operation UUID. The receipt contents are stored in the referenced file.

Actual execution can apply infrastructure and migrations, deploy roles and issue administrator setup data. Failure evidence is retained; completed external effects are not generally rolled back. Never retry blindly or treat plan mode as approval. New tenants are not automatically enabled.

Rejects invalid or changed inputs, held locks, dirty/stale lifecycle plans, missing capabilities or any failed infrastructure/deployment/health step.

import { executePlatformOperation } from '@alneas/eaos-cli/platform'
export function inspectRelease(root: string) { return executePlatformOperation(root, 'release', { plan: true }) }

Expand supported OCI preset defaults without downloading images or performing infrastructure work.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/preset.

declare function expandPreset(input: unknown): any;
Name Type Required Description
input unknown Yes Untrusted manifest value; a manifest without preset is returned unchanged.

any

The original value without a preset, or a new manifest with explicit preset defaults.

Default dev image tags are local build names, not claims of published registry availability.

If the preset, package selections or deployment overrides have an invalid shape.

import { expandPreset } from '@alneas/eaos-cli/platform'
const expanded = expandPreset({ preset: 'oci-adb', platform: { appName: 'example', baseDomain: 'example.com' } })

Resolve an existing plugin directory while rejecting symbolic links and paths outside the plugin root.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/utils.

declare function findPluginDir(workspaceRoot: string, pluginId: string): string;
Name Type Required Description
workspaceRoot string Yes Trusted workspace containing the plugins directory.
pluginId string Yes Lowercase hyphen-separated plugin identifier.

string

The joined plugin directory path using the supplied workspaceRoot; containment is checked using real paths, but the returned path is not canonicalized.

If the identifier, directory or resolved containment is invalid; filesystem errors propagate.

import { findPluginDir } from '@alneas/eaos-cli/plugin-tools'
export function locateNotes(root: string) { return findPluginDir(root, 'notes') }

Compatible framework version injected by the build, falling back to the source package version when running source.

Imports: @alneas/eaos-cli/version.

declare const frameworkVersion: string;
Name Type Required Description
— — — No call parameters.

Declared constant value.

renderPlatform for the canonical usage example and runtime requirements.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Closing marker delimiting the single CLI-owned plugin contract block inside AGENTS.md.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/commands/sync-agents-md.

declare const generatedEnd = "<!-- eaos:generated:end -->";
Name Type Required Description
— — — No call parameters.

Declared constant value.

agentDocumentNext for the canonical usage example and runtime requirements.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Opening marker delimiting the single CLI-owned plugin contract block inside AGENTS.md.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/commands/sync-agents-md.

declare const generatedStart = "<!-- eaos:generated:start -->";
Name Type Required Description
— — — No call parameters.

Declared constant value.

agentDocumentNext for the canonical usage example and runtime requirements.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Scan source service methods and write a deliberately unbound MCP tool draft.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/commands/generate-mcp-tools.

declare function generateMcpTools(workspaceRoot: string, options: CommandOptions): Promise<void>;
Name Type Required Description
workspaceRoot string Yes Trusted workspace containing the plugin.
options CommandOptions Yes plugin is required; check compares the draft and write permits replacement.

Promise<void>

Resolves without a value; a missing services directory is reported and skipped.

Uses source-pattern heuristics, not semantic method validation. Generated handlers throw until connected to real domain services; no tool is registered or executed.

Rejects missing plugin selection, invalid paths or draft/filesystem errors.

import { generateMcpTools } from '@alneas/eaos-cli/plugin-tools'
export async function checkTools(root: string) { await generateMcpTools(root, { plugin: 'notes', check: true }) }

Render managed platform configuration from reviewed installed package metadata.

Imports: @alneas/eaos-cli/platform.

declare function generatePlatform(projectRoot: string, options?: {
config?: string;
check?: boolean;
}): Promise<{
status: 'generated' | 'current';
directory: string;
files: number;
}>;
Name Type Required Description
projectRoot string Yes Trusted application project root.
options { config?: string; check?: boolean; } No Optional config path and check flag; check verifies generated outputs without replacing them.

Promise<{ status: 'generated' \| 'current'; directory: string; files: number; }>

Generation summary for the selected project and managed files.

Generates configuration and staging metadata, not live infrastructure or tenant activation. Source scripts and package runtime factories retain their separate host trust boundaries.

Rejects invalid manifests, unresolved placements, edited/unmanaged generated files and filesystem failures.

Workspace-relative application manifest path; defaults to eaos.platform.json.

When true, verify managed output is current without replacing files; false/omitted generates only reviewed managed changes.

Generated when managed outputs were written, or current when existing outputs already match the receipt (including successful check mode).

Resolved managed output directory under the trusted application project root.

Count of rendered managed content files represented by the generation receipt.

import { generatePlatform } from '@alneas/eaos-cli/platform'
export function checkPlatform(root: string) { return generatePlatform(root, { check: true }) }

Write a new plugin scaffold with explicit tier and host-owned implementation placeholders.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/commands/generate-plugin.

declare function generatePlugin(root: string, options: CommandOptions): Promise<void>;
Name Type Required Description
root string Yes Trusted workspace root for the generated plugin directory.
options CommandOptions Yes Plugin name/description/tier and optional output/addon/quota/tenant selections.

Promise<void>

Resolves without a value after writing scaffold files.

Writes source drafts, metadata, guides and inventory declarations. Generated handlers require real host bindings; generation never proves persistence, enables tenants or applies infrastructure.

Rejects invalid identifiers/tier/quota/allowlists, unsafe or existing destinations and filesystem failures.

import { generatePlugin } from '@alneas/eaos-cli/plugin-tools'
export function scaffoldNotes(root: string) { return generatePlugin(root, { name: 'notes', tier: 'public' }) }

List direct plugin directories that contain a manifest.ts file.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/utils.

declare function getAllPluginIds(workspaceRoot: string): string[];
Name Type Required Description
workspaceRoot string Yes Workspace whose plugins directory is inspected.

string[]

Discovered directory names, or an empty array when plugins is absent; ordering follows the filesystem.

This is discovery only; names are not an activation or authorization decision.

Filesystem enumeration errors propagate.

import { getAllPluginIds } from '@alneas/eaos-cli/plugin-tools'
export function listPlugins(root: string) { return getAllPluginIds(root) }

Generated relative filename for the Google verified-email identity mapper.

Imports: @alneas/eaos-cli/platform/render.

declare const googleMapperFile = "kratos/google-mapper.jsonnet";
Name Type Required Description
— — — No call parameters.

Declared constant value.

renderPlatform for the canonical usage example and runtime requirements.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Jsonnet identity-mapping source that accepts the configured Google identity claims.

Imports: @alneas/eaos-cli/platform/render.

declare const googleVerifiedEmailMapper = "local claims = std.extVar('claims');\nassert std.objectHas(claims, 'email_verified') && claims.email_verified == true : 'Verified email required';\nassert std.objectHas(claims, 'email') && std.type(claims.email) == 'string' && std.length(claims.email) > 0 : 'Email required';\n{ identity: { traits: { email: claims.email }, verified_addresses: [{ via: 'email', value: claims.email }] } }\n";
Name Type Required Description
— — — No call parameters.

Declared constant value.

renderPlatform for the canonical usage example and runtime requirements.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Infer a draft service interface from asynchronous source-method signatures.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/commands/infer-contracts.

declare function inferContracts(workspaceRoot: string, options: CommandOptions): Promise<void>;
Name Type Required Description
workspaceRoot string Yes Trusted workspace containing the plugin.
options CommandOptions Yes plugin is required; check compares and write permits replacement of the generated draft.

Promise<void>

Resolves without a value after writing/checking, or skips when the services directory is absent.

Pattern matching does not prove runtime contracts; review nested types and implementation semantics before adopting the interface.

Rejects invalid plugin selection, protected/stale drafts or filesystem errors.

import { inferContracts } from '@alneas/eaos-cli/plugin-tools'
export async function checkInferred(root: string) { await inferContracts(root, { plugin: 'notes', check: true }) }

Acquire initial Pulumi source while refusing to replace existing customized files.

Imports: @alneas/eaos-cli/presets/oci-adb, @alneas/eaos-cli/presets/oci-adb/template.

declare function initializePreset(root: string, config?: string): Promise<{
directory: string;
files: number;
}>;
Name Type Required Description
root string Yes Trusted application root with the selected preset.
config string No Workspace-relative application manifest path; defaults to eaos.platform.json.

Promise<{ directory: string; files: number; }>

The Pulumi directory path and generated file count.

Preflights the whole file set and writes new files exclusively. Does not install packages, run preview/update or read credentials; existing customizations stay host-owned.

Rejects missing preset selection, unsafe paths or existing files that differ from the generated template; filesystem failures propagate.

import { initializePreset } from '@alneas/eaos-cli/presets/oci-adb'
export function initializeHost(root: string) { return initializePreset(root) }

Summarize deployment task evidence after verifying its inventory and journal bindings.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/deployment-status.

declare function inspectDeploymentStatus(inventories: string[], options?: {
receipts?: string[];
target?: DeploymentTarget;
config?: string;
projectRoot?: string;
}): Promise<{
mode: string;
complete: boolean;
contributions: DeploymentStatusContribution[];
}>;
Name Type Required Description
inventories string[] Yes Immutable deployment inventory paths to inspect.
options { receipts?: string[]; target?: DeploymentTarget; config?: string; projectRoot?: string; } No Optional receipts, target and explicit placement bindings used to scope the summary.

Promise<{ mode: string; complete: boolean; contributions: DeploymentStatusContribution[]; }>

Contribution status summaries; missing evidence remains visibly incomplete.

Inspection does not execute tasks or turn absent evidence into success.

Rejects changed inventories, invalid evidence or incompatible placement/target bindings.

Optional deployment evidence journal paths; omission leaves required work pending rather than assuming success.

Optional exact environment/backend/database/tenant context used to select matching scoped evidence; placement-aware inspection derives database identity from destinations.

Optional workspace-relative application manifest path providing explicit placements and binding revisions; omitted uses unplaced evidence summaries.

Root against which the optional placement config is resolved; defaults to process.cwd().

import { inspectDeploymentStatus } from '@alneas/eaos-cli/platform'
export function inspectRelease(inventory: string) { return inspectDeploymentStatus([inventory]) }

Statically inspect a plugin manifest and source contracts without executing the plugin.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/inspect.

declare function inspectPlugin(root: string, pluginId: string): PluginInspection;
Name Type Required Description
root string Yes Trusted workspace root.
pluginId string Yes Plugin identifier whose manifest and sources are read.

PluginInspection

Source-derived plugin metadata, tools, policies and unresolved inspection issues.

Inspection issues must be resolved before generated metadata is treated as an executable contract.

Invalid plugin paths and source/filesystem failures propagate.

import { inspectPlugin } from '@alneas/eaos-cli/plugin-tools'
export function inspectNotes(root: string) { return inspectPlugin(root, 'notes') }

Serialize a JSON-compatible value with two-space indentation and a trailing newline.

Imports: @alneas/eaos-cli/platform/render.

declare const json: (value: unknown) => string;
Name Type Required Description
value unknown Yes Value to serialize; must be JSON-compatible.

string

Serialized text ending in a newline.

Circular references or BigInt throw through JSON.stringify; unsupported values follow JSON.stringify semantics.

import { json } from '@alneas/eaos-cli/platform/render'
const text = json({ ready: true })

Explicit SSH host, role, registry and runtime-file inputs for Kamal configuration.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/kamal.

interface KamalDeployment {
host: string;
arch?: 'amd64' | 'arm64';
ssh?: {
user?: string;
port?: number;
};
services?: {
backend?: string;
frontend?: string;
};
registry?: {
usernameSecret?: string;
passwordSecret?: string;
};
runtimeDirectory?: string;
runtimeFiles?: {
kratosConfig?: string;
databasePassword?: string;
tlsDirectory?: string;
};
worker?: {
host: string;
privateAddress: string;
kratosAdminUrl: string;
arch?: 'amd64' | 'arm64';
ssh?: {
user?: string;
port?: number;
};
service?: string;
};
agentRuntime?: {
host: string;
privateAddress?: string;
arch?: 'amd64' | 'arm64';
port?: number;
ssh?: {
user?: string;
port?: number;
};
service?: string;
runtimeDirectory?: string;
tlsDirectory?: string;
};
}
Name Type Required Description
host string Yes Reviewed SSH host or configured alias selected by the host.
arch 'amd64' | 'arm64' No Container/host architecture, amd64 or arm64.
ssh { user?: string; port?: number; } No Optional trusted SSH user and port configuration.
services { backend?: string; frontend?: string; } No Explicit backend/frontend service names.
registry { usernameSecret?: string; passwordSecret?: string; } No Registry credential environment-binding names; plaintext values are supplied by the host at execution.
runtimeDirectory string No Host runtime directory for generated configuration and secrets mounts.
runtimeFiles { kratosConfig?: string; databasePassword?: string; tlsDirectory?: string; } No Registered host paths for identity configuration, database password and optional TLS files.
worker { host: string; privateAddress: string; kratosAdminUrl: string; arch?: 'amd64' | 'arm64'; ssh?: { user?: string; port?: number; }; service?: string; } No Optional separate worker host and private service endpoints.
agentRuntime { host: string; privateAddress?: string; arch?: 'amd64' | 'arm64'; port?: number; ssh?: { user?: string; port?: number; }; service?: string; runtimeDirectory?: string; tlsDirectory?: string; } No Optional separate agent-runtime host, port and reviewed network bindings.

Type declaration; no runtime value.

resolveKamal for the canonical usage example and runtime requirements.

Reviewed SSH host or configured alias selected by the host.

Container/host architecture, amd64 or arm64.

Optional trusted SSH user and port configuration.

Main-host SSH username; defaults to root and must match the lowercase POSIX-like username grammar.

Main-host SSH port, integer 1–65535; defaults to 22.

Explicit backend/frontend service names.

Backend Kamal service name; defaults to appName-backend and must differ from frontend.

Frontend Kamal service name; defaults to appName-frontend and must differ from backend.

Registry credential environment-binding names; plaintext values are supplied by the host at execution.

Uppercase registry-username environment binding; defaults to KAMAL_REGISTRY_USERNAME.

Uppercase registry-password environment binding; defaults to KAMAL_REGISTRY_PASSWORD.

Host runtime directory for generated configuration and secrets mounts.

Registered host paths for identity configuration, database password and optional TLS files.

Absolute host Kratos runtime YAML path; defaults to runtimeDirectory/kratos-runtime.yml and cannot overlap other runtime/migration paths.

Absolute host database-password file path; defaults to runtimeDirectory/postgres-password and cannot overlap other runtime/migration paths.

Absolute host platform TLS directory; defaults to runtimeDirectory/tls and cannot overlap other runtime/migration paths.

Optional separate worker host and private service endpoints.

Reviewed worker SSH host/alias, required to differ from the main host.

Required host-selected worker address used for private application routing.

Required host-selected HTTP(S) Kratos administrator URL for the worker; host network policy must keep administration private.

Worker image architecture; defaults to the main deployment architecture.

Trusted per-role SSH overrides; omitted fields inherit the main raw SSH input and selected main SSH port.

Role SSH username; omitted uses the explicit main ssh.user input. If neither is supplied, role resolution rejects rather than inheriting the main root default.

Role SSH port, integer 1–65535; defaults to the selected main SSH port.

Worker Kamal service name; defaults to appName-worker.

Optional separate agent-runtime host, port and reviewed network bindings.

Reviewed agent-runtime SSH host/alias; validation does not prove private network isolation.

Optional host-selected address advertised for private runtime connections; omitted remains absent.

Agent-runtime image architecture; defaults to arm64 independently of the main host.

Agent service port, integer 1–65535; defaults to 8443.

Trusted per-role SSH overrides; omitted fields inherit the main raw SSH input and selected main SSH port.

Role SSH username; omitted uses the explicit main ssh.user input. If neither is supplied, role resolution rejects rather than inheriting the main root default.

Role SSH port, integer 1–65535; defaults to the selected main SSH port.

Agent-runtime Kamal service name; defaults to appName-agent-runtime.

Absolute host runtime directory; defaults to main runtimeDirectory/agent-runtime and must avoid platform runtime/migration overlap.

Absolute agent TLS directory; defaults to the agent runtimeDirectory/tls and must avoid platform runtime/migration overlap.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Host-supplied registry identity and Pulumi path used while rendering the current Kamal resolver template.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/kamal-secrets.

interface KamalSecretsTemplateOptions {
defaultRegistryUser?: string;
identityDomain?: string;
tenancyNamespace?: string;
username?: string;
authTokenSecretName?: string;
pulumiDir?: string;
}
Name Type Required Description
defaultRegistryUser string No Explicit registry username, taking precedence over the composed namespace/domain/username.
identityDomain string No Identity domain used when composing a username; defaults to Default.
tenancyNamespace string No Optional OCI namespace used with username to compose the registry user.
username string No Optional user name/email used with tenancyNamespace to compose the registry user.
authTokenSecretName string No Reserved option currently not consumed by the renderer; changing it does not alter secret lookup.
pulumiDir string No Pulumi working directory interpolated into the resolver script; defaults to apps/pulumi/Pulumi. Supply trusted shell-safe configuration.

Type declaration; no runtime value.

renderKamalSecretsScript for the canonical usage example and runtime requirements.

Explicit registry username, taking precedence over the composed namespace/domain/username.

Identity domain used when composing a username; defaults to Default.

Optional OCI namespace used with username to compose the registry user.

Optional user name/email used with tenancyNamespace to compose the registry user.

Reserved option currently not consumed by the renderer; changing it does not alter secret lookup.

Pulumi working directory interpolated into the resolver script; defaults to apps/pulumi/Pulumi. Supply trusted shell-safe configuration.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Import verified trusted package factories and validate their returned platform contributions.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/packages.

declare function loadRegisteredPlatformModules(root: string, config?: string, options?: {
tenantIds?: string[];
bindings?: Record<string, unknown>;
}): Promise<Array<{
registration: PlatformPackage;
contribution: PlatformContribution;
}>>;
Name Type Required Description
root string Yes Application root containing installed or acquired artifacts.
config string No Workspace-relative manifest path; defaults to eaos.platform.json.
options { tenantIds?: string[]; bindings?: Record<string, unknown>; } No Host-verified tenantIds for npm modules and in-memory bindings keyed by package identity.

Promise<Array<{ registration: PlatformPackage; contribution: PlatformContribution; }>>

Loaded registration/contribution pairs in registration order.

Executes trusted module top-level code and createExtension. Hosts own authorization and durable bindings; loading is not a tenant activation operation.

Rejects missing verified tenants, inventory mismatch, missing createExtension, invalid factory contributions or propagated import/factory errors.

Verified concrete tenant catalog required for selected npm modules; no wildcard/default scope is inferred.

In-memory live host bindings keyed by package identity and passed to its createExtension factory; not written to registration metadata.

Verified package/module registration and its explicit tenant/plugin/settings scope used for loading.

Trusted factory contribution validated to match registration identity, tenant catalog and lifecycle plugin IDs.

import { loadRegisteredPlatformModules } from '@alneas/eaos-cli/platform'
export function loadHost(root: string, tenantIds: string[], bindings: Record<string, unknown>) { return loadRegisteredPlatformModules(root, 'eaos.platform.json', { tenantIds, bindings }) }

Read siteOperations from the selected application JSON file.

Imports: @alneas/eaos-cli/site.

declare function loadSiteOperations(root: string, config?: string): Promise<{
config: SiteOperationsConfig;
root: string;
}>;
Name Type Required Description
root string Yes Application directory used for path resolution.
config string No Config path resolved against root; defaults to eaos.platform.json.

Promise<{ config: SiteOperationsConfig; root: string; }>

The validated site configuration and the configuration file parent directory.

Uses ordinary path.resolve; callers must select trusted paths because this loader does not enforce workspace containment.

Rejects missing/invalid JSON or invalid siteOperations.

import { loadSiteOperations } from '@alneas/eaos-cli/site'
export function readSites(root: string) { return loadSiteOperations(root) }

Cancellation, snapshot and duration controls for one registered local site run.

Imports: @alneas/eaos-cli/site.

interface LocalSiteOptions {
snapshot?: string;
durationSeconds?: number;
signal?: AbortSignal;
onReady?: (url: string) => void;
}
Name Type Required Description
snapshot string No Optional snapshot file; must match the registered site and contain a valid revision. Draft snapshots require unexpired preview mode.
durationSeconds number No Run deadline in seconds, from 1 to 7200; defaults to 600 for build and 1800 for preview.
signal AbortSignal No Optional cancellation signal; abort terminates the owned process group without undoing arbitrary script side effects.
onReady (url: string) => void No Optional synchronous notification invoked once with the loopback preview URL after upstream readiness and proxy binding.

Type declaration; no runtime value.

runLocalSite for the canonical usage example and runtime requirements.

Optional snapshot file; must match the registered site and contain a valid revision. Draft snapshots require unexpired preview mode.

Run deadline in seconds, from 1 to 7200; defaults to 600 for build and 1800 for preview.

Optional cancellation signal; abort terminates the owned process group without undoing arbitrary script side effects.

Optional synchronous notification invoked once with the loopback preview URL after upstream readiness and proxy binding.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Host-registered local site, script and remote control bindings.

Imports: @alneas/eaos-cli/site.

interface LocalSiteProfile {
id: string;
name: string;
cmsSiteId: string;
directory?: string;
port?: number;
buildScript?: string;
previewScript?: string;
envKeys?: string[];
api?: {
baseUrl: string;
tokenEnv: string;
};
publication?: SitePublicationPolicy;
}
Name Type Required Description
id string Yes Unique registered site key, limited to 1–80 letters, digits, underscores or hyphens.
name string Yes Nonblank human-readable site label.
cmsSiteId string Yes CMS site identity required to match a supplied snapshot.
directory string No Optional absolute trusted local project directory; required for local execution.
port number No Loopback preview proxy port; defaults to 4321 and reserves the next port for the upstream process.
buildScript string No Trusted package script name; defaults to build.
previewScript string No Trusted package preview script name; defaults to dev.
envKeys string[] No Explicit additional environment variable names forwarded to project scripts; reserved snapshot bindings cannot be selected.
api { baseUrl: string; tokenEnv: string; } No Optional HTTPS or loopback control endpoint and the environment variable containing its token.
publication SitePublicationPolicy No Host-selected site publication policy, validated but not executed during catalog parsing.

Type declaration; no runtime value.

parseSiteOperationsConfig for the canonical usage example and runtime requirements.

Unique registered site key, limited to 1–80 letters, digits, underscores or hyphens.

Nonblank human-readable site label.

CMS site identity required to match a supplied snapshot.

Optional absolute trusted local project directory; required for local execution.

Loopback preview proxy port; defaults to 4321 and reserves the next port for the upstream process.

Trusted package script name; defaults to build.

Trusted package preview script name; defaults to dev.

Explicit additional environment variable names forwarded to project scripts; reserved snapshot bindings cannot be selected.

Optional HTTPS or loopback control endpoint and the environment variable containing its token.

Registered HTTPS or loopback HTTP control-service base URL without credentials, query, or fragment; allowlisted paths are appended to it.

Uppercase environment-variable name containing the Bearer token read for each control request; a missing/empty value rejects the call.

Host-selected site publication policy, validated but not executed during catalog parsing.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Look up the regional All Services network and retain its matching route CIDR label.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/lookups.

declare function lookupOciAllServicesNetwork(options?: pulumi.InvokeOutputOptions): pulumi.Output<OciServiceNetwork>;
Name Type Required Description
options pulumi.InvokeOutputOptions No Optional host-selected Pulumi invoke provider/parent settings.

pulumi.Output<OciServiceNetwork>

A Pulumi Output with the unique network ID and CIDR label.

The host supplies provider region and credentials; no network resource or route is created by this lookup.

Provider query errors and absent/ambiguous results reject during Output resolution.

import { lookupOciAllServicesNetwork } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function regionalServices(options: Parameters<typeof lookupOciAllServicesNetwork>[0]) { return lookupOciAllServicesNetwork(options) }

Look up available OCI images and apply an explicit exact-name or latest selection policy.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/lookups.

declare function lookupOciImage(args: OciImageLookupArgs, options?: pulumi.InvokeOutputOptions): pulumi.Output<string>;
Name Type Required Description
args OciImageLookupArgs Yes Compartment, shape, OS/version and explicit exact/latest selection; exact additionally requires displayName.
options pulumi.InvokeOutputOptions No Optional host-selected Pulumi invoke provider/parent settings.

pulumi.Output<string>

A Pulumi Output resolving to the selected image ID.

Makes a real provider lookup when used in a host stack; latest can select a newer image on a later update. Pin reviewed IDs where replacement control is required.

Invalid immediate selection fails synchronously; provider query, ambiguity and Output selection errors reject during resolution.

import { lookupOciImage } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function reviewedImage(args: Parameters<typeof lookupOciImage>[0]) { return lookupOciImage(args) }

Exact provider connection-profile filters; unspecified filters use the documented default TCPS profile.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/database.

interface OciAdbConnectionSelection {
consumerGroup?: 'LOW' | 'MEDIUM' | 'HIGH' | 'TP' | 'TPURGENT';
tlsAuthentication?: 'SERVER' | 'MUTUAL';
hostFormat?: 'FQDN' | 'IP';
sessionMode?: 'DIRECT' | 'REDIRECT';
syntaxFormat?: 'LONG' | 'EZCONNECT' | 'EZCONNECTPLUS';
isRegional?: boolean;
displayName?: string;
}
Name Type Required Description
consumerGroup 'LOW' | 'MEDIUM' | 'HIGH' | 'TP' | 'TPURGENT' No Exact provider workload group; selection defaults to LOW.
tlsAuthentication 'SERVER' | 'MUTUAL' No Exact provider TLS authentication mode; selection defaults to SERVER.
hostFormat 'FQDN' | 'IP' No Exact provider hostname representation; selection defaults to FQDN.
sessionMode 'DIRECT' | 'REDIRECT' No Optional exact DIRECT/REDIRECT filter; omission leaves both eligible.
syntaxFormat 'LONG' | 'EZCONNECT' | 'EZCONNECTPLUS' No Provider DSN syntax; selection defaults to LONG.
isRegional boolean No Optional exact regional-profile flag; omitted value does not filter it.
displayName string No Optional exact display-name filter; omission does not filter profile display names.

Type declaration; no runtime value.

selectAdbConnectionProfile for the canonical usage example and runtime requirements.

Exact provider workload group; selection defaults to LOW.

Exact provider TLS authentication mode; selection defaults to SERVER.

Exact provider hostname representation; selection defaults to FQDN.

Optional exact DIRECT/REDIRECT filter; omission leaves both eligible.

Provider DSN syntax; selection defaults to LONG.

Optional exact regional-profile flag; omitted value does not filter it.

Optional exact display-name filter; omission does not filter profile display names.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Explicit host inputs for declaring the OCI edge/worker, database and storage preset.

Imports: @alneas/eaos-cli/presets/oci-adb.

interface OciAdbPresetArgs {
compartmentId: pulumi.Input<string>;
availabilityDomain: pulumi.Input<string>;
edgeImageId: pulumi.Input<string>;
workerImageId: pulumi.Input<string>;
sshAuthorizedKeys: pulumi.Input<string>;
sshCidr: string;
dbName: pulumi.Input<string>;
dbVersion: pulumi.Input<string>;
adminPassword: pulumi.Input<string>;
objectStorageNamespace: pulumi.Input<string>;
workerShape?: pulumi.Input<string>;
workerShapeConfig?: oci.core.InstanceArgs['shapeConfig'];
}
Name Type Required Description
compartmentId pulumi.Input<string> Yes Host-selected OCI compartment for preset resources.
availabilityDomain pulumi.Input<string> Yes Reviewed availability domain for edge/worker Compute.
edgeImageId pulumi.Input<string> Yes Reviewed image ID compatible with the edge host architecture.
workerImageId pulumi.Input<string> Yes Reviewed image ID compatible with the worker host architecture.
sshAuthorizedKeys pulumi.Input<string> Yes Host-authorized SSH public keys for newly declared instances.
sshCidr string Yes Explicit restricted IPv4 client CIDR; /0 is rejected.
dbName pulumi.Input<string> Yes Explicit database name selected by the host.
dbVersion pulumi.Input<string> Yes Supported database version selected explicitly by the host.
adminPassword pulumi.Input<string> Yes Sensitive database administrator password Input; preserve Pulumi secrecy.
objectStorageNamespace pulumi.Input<string> Yes OCI Object Storage namespace selected by the host.
workerShape pulumi.Input<string> No Optional worker shape; defaults to VM.Standard.A1.Flex.
workerShapeConfig oci.core.InstanceArgs['shapeConfig'] No Optional worker resources; defaults to 2 OCPUs and 12 GiB memory.

Type declaration; no runtime value.

createOciAdbPreset for the canonical usage example and runtime requirements.

Host-selected OCI compartment for preset resources.

Reviewed availability domain for edge/worker Compute.

Reviewed image ID compatible with the edge host architecture.

Reviewed image ID compatible with the worker host architecture.

Host-authorized SSH public keys for newly declared instances.

Explicit restricted IPv4 client CIDR; /0 is rejected.

Explicit database name selected by the host.

Supported database version selected explicitly by the host.

Sensitive database administrator password Input; preserve Pulumi secrecy.

OCI Object Storage namespace selected by the host.

Optional worker shape; defaults to VM.Standard.A1.Flex.

Optional worker resources; defaults to 2 OCPUs and 12 GiB memory.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

User identity and description for creation of an OCI registry authentication token.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/vault.

interface OciAuthTokenArgs {
userId: pulumi.Input<string>;
description?: pulumi.Input<string>;
authToken?: Partial<oci.identity.AuthTokenArgs>;
}
Name Type Required Description
userId pulumi.Input<string> Yes Existing OCI user identity for which an authentication token is declared.
description pulumi.Input<string> No Provider-visible description; defaults to AuthToken for followed by the factory’s logical name, unless native authToken overrides replace it.
authToken Partial<oci.identity.AuthTokenArgs> No Shallow native AuthToken arguments applied last.

Type declaration; no runtime value.

createOciAuthToken for the canonical usage example and runtime requirements.

Existing OCI user identity for which an authentication token is declared.

Provider-visible description; defaults to AuthToken for followed by the factory’s logical name, unless native authToken overrides replace it.

Shallow native AuthToken arguments applied last.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Either the explicit new free-oltp database profile or complete native arguments with defaults disabled.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/database.

type OciAutonomousDatabaseArgs = {
defaults?: 'free-oltp';
compartmentId: pulumi.Input<string>;
dbName: pulumi.Input<string>;
dbVersion: pulumi.Input<string>;
adminPassword: pulumi.Input<string>;
whitelistedIps: NonNullable<oci.database.AutonomousDatabaseArgs['whitelistedIps']>;
database?: Partial<oci.database.AutonomousDatabaseArgs>;
} | {
defaults: 'none';
database: oci.database.AutonomousDatabaseArgs;
};
Name Type Required Description
— — — No call parameters.

Type declaration; no runtime value.

createOciAutonomousDatabase for the canonical usage example and runtime requirements.

Omitted or free-oltp selects the new-database defaults; protection defaults on but host resource options can override it.

OCI compartment ID supplied through the host provider context.

Database name selected by the trusted host.

Required explicit provider-supported Oracle database version for the new-database profile.

Sensitive administrator password Input; the factory wraps it as a Pulumi secret.

Explicit nonempty endpoint ACL of IP/CIDR or supported VCN references; no world-open default is inferred.

Native OCI Autonomous Database arguments/overrides; defaults=none requires the complete native shape.

Select none to require complete native database arguments and skip the free-oltp defaults and default resource protection.

Native OCI Autonomous Database arguments/overrides; defaults=none requires the complete native shape.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Bastion subnet and explicit client CIDR allowlist with optional native overrides.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/access.

interface OciBastionArgs {
compartmentId: pulumi.Input<string>;
targetSubnetId: pulumi.Input<string>;
clientCidrBlockAllowLists: NonNullable<oci.bastion.BastionArgs['clientCidrBlockAllowLists']>;
maxSessionTtlInSeconds?: pulumi.Input<number>;
bastion?: Partial<oci.bastion.BastionArgs>;
}
Name Type Required Description
compartmentId pulumi.Input<string> Yes OCI compartment ID supplied through the host provider context.
targetSubnetId pulumi.Input<string> Yes Host-selected private target subnet ID for the Bastion service.
clientCidrBlockAllowLists NonNullable<oci.bastion.BastionArgs['clientCidrBlockAllowLists']> Yes Explicit nonempty source CIDR allowlist for Bastion clients; no public default is provided.
maxSessionTtlInSeconds pulumi.Input<number> No Optional Bastion session TTL in seconds; defaults to 10800.
bastion Partial<oci.bastion.BastionArgs> No Shallow native Bastion arguments applied last, replacing nested defaults.

Type declaration; no runtime value.

createOciBastion for the canonical usage example and runtime requirements.

OCI compartment ID supplied through the host provider context.

Host-selected private target subnet ID for the Bastion service.

Explicit nonempty source CIDR allowlist for Bastion clients; no public default is provided.

Optional Bastion session TTL in seconds; defaults to 10800.

Shallow native Bastion arguments applied last, replacing nested defaults.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Reviewed image, subnet and instance/bootstrap customization for one OCI host.

Imports: @alneas/eaos-cli/presets/oci-adb/infra.

interface OciComputeArgs {
compartmentId: pulumi.Input<string>;
availabilityDomain: pulumi.Input<string>;
subnetId: pulumi.Input<string>;
imageId: pulumi.Input<string>;
shape?: pulumi.Input<string>;
shapeConfig?: oci.core.InstanceArgs['shapeConfig'];
sshAuthorizedKeys?: pulumi.Input<string>;
bootVolumeSizeInGbs?: pulumi.Input<string>;
bootstrap?: {
containerRuntime?: 'docker' | 'none';
};
instance?: Partial<oci.core.InstanceArgs>;
}
Name Type Required Description
compartmentId pulumi.Input<string> Yes OCI compartment ID supplied through the host provider context.
availabilityDomain pulumi.Input<string> Yes Reviewed OCI availability domain for the selected resource.
subnetId pulumi.Input<string> Yes Explicit subnet ID/Input selected by the host.
imageId pulumi.Input<string> Yes Explicit reviewed image ID; the factory does not perform a newest-image lookup.
shape pulumi.Input<string> No Optional host-selected OCI instance shape.
shapeConfig oci.core.InstanceArgs['shapeConfig'] No Optional shape resource allocation; provider shape compatibility remains host-owned.
sshAuthorizedKeys pulumi.Input<string> No SSH public keys admitted by the host; never a private key.
bootVolumeSizeInGbs pulumi.Input<string> No Boot volume size in GiB as an OCI string Input; defaults to 50.
bootstrap { containerRuntime?: 'docker' | 'none'; } No Optional first-boot container runtime selection; generated Docker cloud-init is disabled by none.
instance Partial<oci.core.InstanceArgs> No Shallow native OCI Instance overrides applied after host defaults; nested metadata/source details follow the factory merge policy.

Type declaration; no runtime value.

createOciCompute for the canonical usage example and runtime requirements.

OCI compartment ID supplied through the host provider context.

Reviewed OCI availability domain for the selected resource.

Explicit subnet ID/Input selected by the host.

Explicit reviewed image ID; the factory does not perform a newest-image lookup.

Optional host-selected OCI instance shape.

Optional shape resource allocation; provider shape compatibility remains host-owned.

SSH public keys admitted by the host; never a private key.

Boot volume size in GiB as an OCI string Input; defaults to 50.

Optional first-boot container runtime selection; generated Docker cloud-init is disabled by none.

Defaults to Docker cloud-init; none suppresses the generated Docker user_data, while explicit native metadata may still supply host bootstrap code.

Shallow native OCI Instance overrides applied after host defaults; nested metadata/source details follow the factory merge policy.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Available image query with a mandatory exact-name or latest selection decision.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/lookups.

type OciImageLookupArgs = {
compartmentId: pulumi.Input<string>;
shape: pulumi.Input<string>;
operatingSystem: pulumi.Input<string>;
operatingSystemVersion: pulumi.Input<string>;
} & ({
selection: 'exact';
displayName: pulumi.Input<string>;
} | {
selection: 'latest';
displayName?: never;
});
Name Type Required Description
— — — No call parameters.

Type declaration; no runtime value.

lookupOciImage for the canonical usage example and runtime requirements.

OCI compartment ID supplied through the host provider context.

Required host-reviewed instance shape used to filter compatible images.

Host-reviewed OCI image operating-system name.

Host-reviewed OCI image operating-system release.

Explicit selection policy: exact requires one matching displayName; latest chooses newest creation time with ascending ID as a deterministic tie-breaker.

Exact provider display name required for exact selection; the latest variant forbids this property.

Explicit selection policy: exact requires one matching displayName; latest chooses newest creation time with ascending ID as a deterministic tie-breaker.

Exact provider display name required for exact selection; the latest variant forbids this property.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Compartment, CIDR ranges and explicit ingress for the simple public-network factory.

Imports: @alneas/eaos-cli/presets/oci-adb/infra.

interface OciNetworkArgs {
compartmentId: pulumi.Input<string>;
cidrBlock?: pulumi.Input<string>;
subnetCidrBlock?: pulumi.Input<string>;
ingress?: oci.core.SecurityListArgs['ingressSecurityRules'];
}
Name Type Required Description
compartmentId pulumi.Input<string> Yes OCI compartment ID supplied through the host provider context.
cidrBlock pulumi.Input<string> No VCN address range; defaults to 10.0.0.0/16.
subnetCidrBlock pulumi.Input<string> No Optional simple public subnet range; defaults to 10.0.1.0/24.
ingress oci.core.SecurityListArgs['ingressSecurityRules'] No Explicit ingress rules; the simple network has no inbound rules when omitted.

Type declaration; no runtime value.

createOciNetwork for the canonical usage example and runtime requirements.

OCI compartment ID supplied through the host provider context.

VCN address range; defaults to 10.0.0.0/16.

Optional simple public subnet range; defaults to 10.0.1.0/24.

Explicit ingress rules; the simple network has no inbound rules when omitted.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Per-resource native overrides for the two-subnet OCI network.

Imports: @alneas/eaos-cli/presets/oci-adb/infra.

interface OciNetworkCustomizations {
vcn?: OciResourceCustomization<oci.core.VcnArgs>;
dhcpOptions?: OciResourceCustomization<oci.core.DhcpOptionsArgs>;
internetGateway?: OciResourceCustomization<oci.core.InternetGatewayArgs>;
natGateway?: OciResourceCustomization<oci.core.NatGatewayArgs>;
serviceGateway?: OciResourceCustomization<oci.core.ServiceGatewayArgs>;
publicRoutes?: OciResourceCustomization<oci.core.RouteTableArgs>;
privateRoutes?: OciResourceCustomization<oci.core.RouteTableArgs>;
publicSecurityList?: OciResourceCustomization<oci.core.SecurityListArgs>;
privateSecurityList?: OciResourceCustomization<oci.core.SecurityListArgs>;
publicSubnet?: OciResourceCustomization<oci.core.SubnetArgs>;
privateSubnet?: OciResourceCustomization<oci.core.SubnetArgs>;
}
Name Type Required Description
vcn OciResourceCustomization<oci.core.VcnArgs> No Optional VCN logical name, shallow arguments and resource option overrides.
dhcpOptions OciResourceCustomization<oci.core.DhcpOptionsArgs> No Optional DHCP resource logical name, shallow arguments and resource option overrides.
internetGateway OciResourceCustomization<oci.core.InternetGatewayArgs> No Optional internet gateway logical name, shallow arguments and resource option overrides.
natGateway OciResourceCustomization<oci.core.NatGatewayArgs> No Optional NAT gateway logical name, shallow arguments and resource option overrides.
serviceGateway OciResourceCustomization<oci.core.ServiceGatewayArgs> No Optional service gateway logical name, shallow arguments and resource option overrides.
publicRoutes OciResourceCustomization<oci.core.RouteTableArgs> No Optional public route-table overrides; nested route arrays are replaced, not merged.
privateRoutes OciResourceCustomization<oci.core.RouteTableArgs> No Optional private route-table overrides; nested route arrays are replaced, not merged.
publicSecurityList OciResourceCustomization<oci.core.SecurityListArgs> No Optional public security-list overrides; replaced rules need independent review.
privateSecurityList OciResourceCustomization<oci.core.SecurityListArgs> No Optional private security-list overrides; replaced rules need independent review.
publicSubnet OciResourceCustomization<oci.core.SubnetArgs> No Optional public subnet logical name, shallow arguments and resource option overrides.
privateSubnet OciResourceCustomization<oci.core.SubnetArgs> No Optional private subnet logical name, shallow arguments and resource option overrides.

Type declaration; no runtime value.

createOciPrivateNetwork for the canonical usage example and runtime requirements.

Optional VCN logical name, shallow arguments and resource option overrides.

Optional DHCP resource logical name, shallow arguments and resource option overrides.

Optional internet gateway logical name, shallow arguments and resource option overrides.

Optional NAT gateway logical name, shallow arguments and resource option overrides.

Optional service gateway logical name, shallow arguments and resource option overrides.

Optional public route-table overrides; nested route arrays are replaced, not merged.

Optional private route-table overrides; nested route arrays are replaced, not merged.

Optional public security-list overrides; replaced rules need independent review.

Optional private security-list overrides; replaced rules need independent review.

Optional public subnet logical name, shallow arguments and resource option overrides.

Optional private subnet logical name, shallow arguments and resource option overrides.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Explicit subnet/target and optional listener/native customization for TCP NLB forwarding.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/access.

interface OciNetworkLoadBalancerArgs {
compartmentId: pulumi.Input<string>;
subnetId: pulumi.Input<string>;
targetId: pulumi.Input<string>;
listeners?: readonly OciNlbListenerConfig[];
loadBalancer?: OciResourceCustomization<oci.networkloadbalancer.NetworkLoadBalancerArgs>;
}
Name Type Required Description
compartmentId pulumi.Input<string> Yes OCI compartment ID supplied through the host provider context.
subnetId pulumi.Input<string> Yes Explicit subnet ID/Input selected by the host.
targetId pulumi.Input<string> Yes Compute/private-IP resource target; one backend is registered per listener.
listeners readonly OciNlbListenerConfig[] No Optional nonempty unique listener selections; defaults to TCP 80 and 443.
loadBalancer OciResourceCustomization<oci.networkloadbalancer.NetworkLoadBalancerArgs> No Optional native NLB logical name, shallow arguments and resource option overrides.

Type declaration; no runtime value.

createOciNetworkLoadBalancer for the canonical usage example and runtime requirements.

OCI compartment ID supplied through the host provider context.

Explicit subnet ID/Input selected by the host.

Compute/private-IP resource target; one backend is registered per listener.

Optional nonempty unique listener selections; defaults to TCP 80 and 443.

Optional native NLB logical name, shallow arguments and resource option overrides.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Port and client-CIDR combinations to render as backend TCP ingress rules.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/access.

interface OciNlbIngressRulesOptions {
ports?: number[];
allowedCidrs?: string[];
descriptionPrefix?: string;
}
Name Type Required Description
ports number[] No Target TCP ports; defaults to 80 and 443. This rendering helper does not validate them.
allowedCidrs string[] No Client source CIDRs; defaults to 0.0.0.0/0. Review actual load-balancer source handling before adopting rules.
descriptionPrefix string No Rule label prefix; defaults to NLB backend.

Type declaration; no runtime value.

createOciNlbIngressRules for the canonical usage example and runtime requirements.

Target TCP ports; defaults to 80 and 443. This rendering helper does not validate them.

Client source CIDRs; defaults to 0.0.0.0/0. Review actual load-balancer source handling before adopting rules.

Rule label prefix; defaults to NLB backend.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

One uniquely keyed TCP listener with its backend port, health check and optional resource overrides.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/access.

interface OciNlbListenerConfig {
key: string;
port: number;
backendPort?: number;
healthChecker?: oci.networkloadbalancer.BackendSetArgs['healthChecker'];
resources?: {
backendSet?: OciResourceCustomization<oci.networkloadbalancer.BackendSetArgs>;
backend?: OciResourceCustomization<oci.networkloadbalancer.BackendArgs>;
listener?: OciResourceCustomization<oci.networkloadbalancer.ListenerArgs>;
};
}
Name Type Required Description
key string Yes Stable unique lowercase listener key used for child resource names.
port number Yes Unique integer listener port from 1 to 65535.
backendPort number No Optional backend port; defaults to the listener port.
healthChecker oci.networkloadbalancer.BackendSetArgs['healthChecker'] No Optional native health-check configuration; defaults to TCP on the backend port.
resources { backendSet?: OciResourceCustomization<oci.networkloadbalancer.BackendSetArgs>; backend?: OciResourceCustomization<oci.networkloadbalancer.BackendArgs>; listener?: OciResourceCustomization<oci.networkloadbalancer.ListenerArgs>; } No Per-child shallow native overrides; review replaced nested arguments and resource options.

Type declaration; no runtime value.

createOciNetworkLoadBalancer for the canonical usage example and runtime requirements.

Stable unique lowercase listener key used for child resource names.

Unique integer listener port from 1 to 65535.

Optional backend port; defaults to the listener port.

Optional native health-check configuration; defaults to TCP on the backend port.

Per-child shallow native overrides; review replaced nested arguments and resource options.

Optional logical name, shallow native arguments, and resource options overriding this listener’s backend set and health-check defaults.

Optional logical name, shallow native arguments, and resource options overriding the listener target/backend-port resource.

Optional logical name, shallow native arguments, and resource options overriding the TCP listener resource.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Native resources registered for one load-balancer listener key.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/access.

interface OciNlbListenerResources {
backendSet: oci.networkloadbalancer.BackendSet;
backend: oci.networkloadbalancer.Backend;
listener: oci.networkloadbalancer.Listener;
}
Name Type Required Description
backendSet oci.networkloadbalancer.BackendSet Yes Native backend-set resource registered for this listener, with its configured health checker and routing policy.
backend oci.networkloadbalancer.Backend Yes Native backend resource binding the selected target and backend port.
listener oci.networkloadbalancer.Listener Yes Native TCP listener resource forwarding its port to this backend set.

Type declaration; no runtime value.

createOciNetworkLoadBalancer for the canonical usage example and runtime requirements.

Native backend-set resource registered for this listener, with its configured health checker and routing policy.

Native backend resource binding the selected target and backend port.

Native TCP listener resource forwarding its port to this backend set.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Host network ranges, security rules and optional regional service-network routing.

Imports: @alneas/eaos-cli/presets/oci-adb/infra.

interface OciPrivateNetworkArgs {
compartmentId: pulumi.Input<string>;
resourceCompartmentId?: pulumi.Input<string>;
cidrBlock?: pulumi.Input<string>;
publicSubnetCidrBlock?: pulumi.Input<string>;
privateSubnetCidrBlock?: pulumi.Input<string>;
vcnDnsLabel?: pulumi.Input<string>;
publicIngress?: oci.core.SecurityListArgs['ingressSecurityRules'];
privateIngress?: oci.core.SecurityListArgs['ingressSecurityRules'];
serviceNetwork?: pulumi.Input<OciServiceNetwork>;
resources?: OciNetworkCustomizations;
}
Name Type Required Description
compartmentId pulumi.Input<string> Yes OCI compartment ID supplied through the host provider context.
resourceCompartmentId pulumi.Input<string> No Optional separate compartment for network children; defaults to the VCN compartment.
cidrBlock pulumi.Input<string> No VCN address range; defaults to 10.0.0.0/16 before native VCN overrides.
publicSubnetCidrBlock pulumi.Input<string> No Optional public subnet range; defaults to 10.0.0.0/24.
privateSubnetCidrBlock pulumi.Input<string> No Optional private subnet range; defaults to 10.0.1.0/24.
vcnDnsLabel pulumi.Input<string> No Optional DNS label used by the VCN declaration.
publicIngress oci.core.SecurityListArgs['ingressSecurityRules'] No Explicit ingress rules attached to the public subnet security list.
privateIngress oci.core.SecurityListArgs['ingressSecurityRules'] No Explicit ingress rules attached to the private subnet security list.
serviceNetwork pulumi.Input<OciServiceNetwork> No Optional reviewed Oracle service-network ID/CIDR pair; omission means no implicit provider lookup or service route.
resources OciNetworkCustomizations No Per-child shallow native overrides; review replaced nested arguments and resource options.

Type declaration; no runtime value.

createOciPrivateNetwork for the canonical usage example and runtime requirements.

OCI compartment ID supplied through the host provider context.

Optional separate compartment for network children; defaults to the VCN compartment.

VCN address range; defaults to 10.0.0.0/16 before native VCN overrides.

Optional public subnet range; defaults to 10.0.0.0/24.

Optional private subnet range; defaults to 10.0.1.0/24.

Optional DNS label used by the VCN declaration.

Explicit ingress rules attached to the public subnet security list.

Explicit ingress rules attached to the private subnet security list.

Optional reviewed Oracle service-network ID/CIDR pair; omission means no implicit provider lookup or service route.

Per-child shallow native overrides; review replaced nested arguments and resource options.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Shallow native resource overrides applied after the preset defaults.

Imports: @alneas/eaos-cli/presets/oci-adb/infra.

interface OciResourceCustomization<T> {
name?: string;
args?: Partial<T>;
options?: pulumi.CustomResourceOptions;
}
Name Type Required Description
name string No Optional replacement logical resource name; omission keeps the factory default.
args Partial<T> No Shallow native argument overrides; nested objects and arrays replace the default values.
options pulumi.CustomResourceOptions No Optional native Pulumi resource options, merged after parent defaults.

Type declaration; no runtime value.

  • T: Native provider argument shape whose selected top-level fields may be replaced by the host.

createOciPrivateNetwork for the canonical usage example and runtime requirements.

Optional replacement logical resource name; omission keeps the factory default.

Shallow native argument overrides; nested objects and arrays replace the default values.

Optional native Pulumi resource options, merged after parent defaults.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Matching regional Oracle service-network resource identity and route CIDR label.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/lookups.

interface OciServiceNetwork {
id: string;
cidrBlock: string;
}
Name Type Required Description
id string Yes Provider identity of the selected regional All Services network.
cidrBlock string Yes Regional service-network route CIDR label returned with that same provider identity.

Type declaration; no runtime value.

lookupOciAllServicesNetwork for the canonical usage example and runtime requirements.

Provider identity of the selected regional All Services network.

Regional service-network route CIDR label returned with that same provider identity.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

KMS Vault compartment, display and type settings with shallow native overrides.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/vault.

interface OciVaultArgs {
compartmentId: pulumi.Input<string>;
displayName?: pulumi.Input<string>;
vaultType?: pulumi.Input<'DEFAULT' | 'VIRTUAL_PRIVATE'>;
vault?: Partial<oci.kms.VaultArgs>;
}
Name Type Required Description
compartmentId pulumi.Input<string> Yes OCI compartment ID supplied through the host provider context.
displayName pulumi.Input<string> No Optional provider display name; defaults to the factory’s logical resource name unless native vault overrides replace it.
vaultType pulumi.Input<'DEFAULT' | 'VIRTUAL_PRIVATE'> No Optional DEFAULT or VIRTUAL_PRIVATE Vault kind; defaults to DEFAULT.
vault Partial<oci.kms.VaultArgs> No Shallow native KMS Vault arguments applied last.

Type declaration; no runtime value.

createOciVault for the canonical usage example and runtime requirements.

OCI compartment ID supplied through the host provider context.

Optional provider display name; defaults to the factory’s logical resource name unless native vault overrides replace it.

Optional DEFAULT or VIRTUAL_PRIVATE Vault kind; defaults to DEFAULT.

Shallow native KMS Vault arguments applied last.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Vault management endpoint and encryption key settings with shallow native overrides.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/vault.

interface OciVaultKeyArgs {
compartmentId: pulumi.Input<string>;
managementEndpoint: pulumi.Input<string>;
displayName?: pulumi.Input<string>;
algorithm?: 'AES' | 'RSA' | 'ECDSA';
length?: number;
protectionMode?: 'SOFTWARE' | 'HSM';
key?: Partial<oci.kms.KeyArgs>;
}
Name Type Required Description
compartmentId pulumi.Input<string> Yes OCI compartment ID supplied through the host provider context.
managementEndpoint pulumi.Input<string> Yes Vault management endpoint Input supplied by the selected provider resource.
displayName pulumi.Input<string> No Optional provider display name; defaults to the factory’s logical resource name unless native key overrides replace it.
algorithm 'AES' | 'RSA' | 'ECDSA' No Key algorithm; defaults to AES. Supply a provider-compatible explicit length when selecting another algorithm.
length number No Key length in provider units; current implementation defaults to 32 for every algorithm.
protectionMode 'SOFTWARE' | 'HSM' No SOFTWARE by default, or explicitly selected HSM protection.
key Partial<oci.kms.KeyArgs> No Shallow native KMS Key arguments applied last; nested keyShape values are replaced.

Type declaration; no runtime value.

createOciVaultKey for the canonical usage example and runtime requirements.

OCI compartment ID supplied through the host provider context.

Vault management endpoint Input supplied by the selected provider resource.

Optional provider display name; defaults to the factory’s logical resource name unless native key overrides replace it.

Key algorithm; defaults to AES. Supply a provider-compatible explicit length when selecting another algorithm.

Key length in provider units; current implementation defaults to 32 for every algorithm.

SOFTWARE by default, or explicitly selected HSM protection.

Shallow native KMS Key arguments applied last; nested keyShape values are replaced.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Vault/key destination and secret-wrapped content used for an OCI secret declaration.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/vault.

interface OciVaultSecretArgs {
compartmentId: pulumi.Input<string>;
vaultId: pulumi.Input<string>;
keyId: pulumi.Input<string>;
secretName: pulumi.Input<string>;
description?: pulumi.Input<string>;
secretContent: pulumi.Input<string>;
isAlreadyBase64?: boolean;
secret?: Partial<oci.vault.SecretArgs>;
}
Name Type Required Description
compartmentId pulumi.Input<string> Yes OCI compartment ID supplied through the host provider context.
vaultId pulumi.Input<string> Yes Explicit Vault identity for secret storage.
keyId pulumi.Input<string> Yes Explicit KMS key identity used to encrypt the secret.
secretName pulumi.Input<string> Yes Provider-visible secret name selected by the host.
description pulumi.Input<string> No Provider-visible description; defaults to Encrypted Secret for followed by the factory’s logical name, unless native secret overrides replace it.
secretContent pulumi.Input<string> Yes Sensitive raw UTF-8 or already-base64 Input; wrapped as a secret before conversion.
isAlreadyBase64 boolean No False by default; true preserves supplied base64 bytes without encoding them again.
secret Partial<oci.vault.SecretArgs> No Shallow native secret arguments applied last; overriding secretContent requires reviewing secrecy independently.

Type declaration; no runtime value.

createOciVaultSecret for the canonical usage example and runtime requirements.

OCI compartment ID supplied through the host provider context.

Explicit Vault identity for secret storage.

Explicit KMS key identity used to encrypt the secret.

Provider-visible secret name selected by the host.

Provider-visible description; defaults to Encrypted Secret for followed by the factory’s logical name, unless native secret overrides replace it.

Sensitive raw UTF-8 or already-base64 Input; wrapped as a secret before conversion.

False by default; true preserves supplied base64 bytes without encoding them again.

Shallow native secret arguments applied last; overriding secretContent requires reviewing secrecy independently.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Explicit test or host overrides for operations, commands, deployment and HTTP verification.

Imports: @alneas/eaos-cli/platform/operations.

interface OperationPorts {
operations?: PlatformOperations;
run?: OperationRunner;
deploy?: typeof deployPlatformImage;
fetch?: typeof globalThis.fetch;
}
Name Type Required Description
operations PlatformOperations No Explicit trusted host operations; omitted value loads the configured live operation module.
run OperationRunner No Optional argv-only subprocess port; omitted value invokes the real host runner.
deploy typeof deployPlatformImage No Optional image-deployment port; omitted value uses real Kamal/OpenSSH deployment.
fetch typeof globalThis.fetch No Optional HTTP readiness port; omitted value uses global fetch.

Type declaration; no runtime value.

executePlatformOperation for the canonical usage example and runtime requirements.

Explicit trusted host operations; omitted value loads the configured live operation module.

Optional argv-only subprocess port; omitted value invokes the real host runner.

Optional image-deployment port; omitted value uses real Kamal/OpenSSH deployment.

Optional HTTP readiness port; omitted value uses global fetch.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Persisted release/bootstrap execution state and lifecycle plan hashes.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/operations.

interface OperationReceipt {
formatVersion: 1;
id: string;
operation: 'release' | 'bootstrap';
inputSha256: string;
environment: string;
startedAt: string;
finishedAt?: string;
status: 'running' | 'succeeded' | 'failed';
stages: Array<{
name: string;
status: 'running' | 'succeeded' | 'failed';
startedAt: string;
finishedAt?: string;
}>;
lifecyclePlans: string[];
}
Name Type Required Description
formatVersion 1 Yes Persisted operation receipt format; currently 1.
id string Yes Unique execution UUID matching the release context.
operation 'release' | 'bootstrap' Yes Requested release or bootstrap operation.
inputSha256 string Yes Hash of inputs used for the reviewed operation.
environment string Yes Shared host environment identity supplied by trusted operations.
startedAt string Yes UTC ISO timestamp for operation start.
finishedAt string No UTC ISO timestamp set when the attempt finishes.
status 'running' | 'succeeded' | 'failed' Yes Current running, succeeded or failed outcome.
stages Array<{ name: string; status: 'running' | 'succeeded' | 'failed'; startedAt: string; finishedAt?: string; }> Yes Ordered per-stage status records; a failed attempt preserves completed and failed stages.
lifecyclePlans string[] Yes Lifecycle plan hashes used by this attempt for later review.

Type declaration; no runtime value.

executePlatformOperation for the canonical usage example and runtime requirements.

Persisted operation receipt format; currently 1.

Unique execution UUID matching the release context.

Requested release or bootstrap operation.

Hash of inputs used for the reviewed operation.

Shared host environment identity supplied by trusted operations.

UTC ISO timestamp for operation start.

UTC ISO timestamp set when the attempt finishes.

Current running, succeeded or failed outcome.

Ordered per-stage status records; a failed attempt preserves completed and failed stages.

Execution stage label, such as migrate or deploy:backend.

Stage outcome; running can remain in evidence after interruption.

ISO start time written before stage work.

ISO completion time when the stage’s finally block executes.

Lifecycle plan hashes used by this attempt for later review.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Trusted argv-only executable runner used by host operations; it is not an OS sandbox.

Imports: @alneas/eaos-cli/platform/operations.

type OperationRunner = (command: string, argv: string[], options: {
cwd: string;
env?: NodeJS.ProcessEnv;
}) => Promise<void>;
Name Type Required Description
— — — No call parameters.

Type declaration; no runtime value.

runOperation for the canonical usage example and runtime requirements.

Trusted working directory for the argv-only subprocess invocation.

Optional explicit subprocess environment; when omitted, the real runner inherits its process environment.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Validate the registered local-site catalog and return an independent copy.

Imports: @alneas/eaos-cli/site.

declare function parseSiteOperationsConfig(input: unknown): SiteOperationsConfig;
Name Type Required Description
input unknown Yes Unknown configuration with at most 100 unique site profiles and an optional absolute Bun executable path.

SiteOperationsConfig

A structured clone of the validated site catalog.

Validation does not inspect registered filesystem paths, start a site or authenticate a remote endpoint.

If profiles, ports, script names, environment bindings or API endpoints violate the catalog contract.

import { parseSiteOperationsConfig } from '@alneas/eaos-cli/site'
const config = parseSiteOperationsConfig({ sites: [] })

Convert a nonempty hyphen-separated identifier into concatenated capitalized segments.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/utils.

declare function pascalCase(id: string): string;
Name Type Required Description
id string Yes Validated identifier with nonempty hyphen-separated segments.

string

The concatenated PascalCase identifier.

Empty segments cause a TypeError; validate untrusted identifiers first.

import { pascalCase } from '@alneas/eaos-cli/plugin-tools'
const typeName = pascalCase('notes-api')

Inspect release/bootstrap inputs and produce an execution plan without importing host operation code.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/operations.

declare function planPlatformOperation(root: string, operation: 'release' | 'bootstrap', options?: PlatformOperationOptions): Promise<{
mode: "plan-only";
operation: "release" | "bootstrap";
inputSha256: string;
preset: string | undefined;
roles: {
role: "backend" | "frontend" | "worker";
image: string;
version: string;
}[];
stages: string[];
selectedPlugins: {
owner: string;
id: string;
}[];
requires: string;
}>;
Name Type Required Description
root string Yes Existing application root whose real path and immutable inputs are checked.
operation 'release' | 'bootstrap' Yes release plans deployment roles; bootstrap requires a supported preset.
options PlatformOperationOptions No Optional config/operations paths and stack selection; no operation callback is executed.

Promise<{ mode: "plan-only"; operation: "release" \| "bootstrap"; inputSha256: string; preset: string \| undefined; roles: { role: "backend" \| "frontend" \| "worker"; image: string; version: string; }[]; stages: string[]; selectedPlugins: { owner: string; id: string; }[]; requires: string; }>

Plan-only metadata, input hash, roles, stages and selected plugins.

Rejects missing/invalid inputs, unsupported bootstrap configuration or inconsistent role/image selections.

import { planPlatformOperation } from '@alneas/eaos-cli/platform'
export function reviewRelease(root: string) { return planPlatformOperation(root, 'release') }

Non-secret image, database and deployment-target selections for platform generation.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/render.

interface PlatformDeployment {
images: {
backend: string;
frontend: string;
worker?: string;
agentRuntime?: string;
nginx?: string;
kratos?: string;
postgres?: string;
};
database?: {
volumeName: string;
external: boolean;
};
target?: 'compose' | 'kamal' | 'both';
kamal?: KamalDeployment;
placements?: DeploymentPlacements;
}
Name Type Required Description
images { backend: string; frontend: string; worker?: string; agentRuntime?: string; nginx?: string; kratos?: string; postgres?: string; } Yes Explicit application image names plus optional infrastructure images; release execution rejects unreviewed mutable tags.
database { volumeName: string; external: boolean; } No Database volume/external-provider selection; omitted settings use generator defaults.
target 'compose' | 'kamal' | 'both' No Output transport selection; defaults to compose. Kamal settings require kamal or both.
kamal KamalDeployment No Kamal SSH hosts, role configuration and runtime file bindings for that target.
placements DeploymentPlacements No Explicit component-to-destination catalog; unresolved required placements fail generation.

Type declaration; no runtime value.

resolveManifest for the canonical usage example and runtime requirements.

Explicit application image names plus optional infrastructure images; release execution rejects unreviewed mutable tags.

Required backend container image; Kamal requires an explicit tag, and release execution rejects dev/local/latest tags.

Required frontend container image; Kamal requires an explicit tag, and release execution rejects dev/local/latest tags.

Optional worker application image; must be configured together with kamal.worker.

Optional remote agent image; must be configured together with kamal.agentRuntime and upgraded through a separate reviewed operation.

Reverse-proxy image; defaults to nginx:1.30-alpine when omitted.

Identity service/migration image; defaults to oryd/kratos:v26.2.0 when omitted.

Local Kratos database image; defaults to postgres:16-alpine when omitted.

Database volume/external-provider selection; omitted settings use generator defaults.

Named Kratos database volume; omission of the whole database object defaults to appName + -kratos-data.

Host supplies an external identity database when true; defaults to false only when the whole object is omitted.

Output transport selection; defaults to compose. Kamal settings require kamal or both.

Kamal SSH hosts, role configuration and runtime file bindings for that target.

Explicit component-to-destination catalog; unresolved required placements fail generation.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Reviewed image version, transport and host credentials for a real image deployment.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/deploy.

interface PlatformImageDeployOptions {
configFile: string;
version: string;
transport?: 'kamal' | 'openssh';
cwd?: string;
env?: NodeJS.ProcessEnv;
registry?: {
server: string;
username: string;
password: string;
};
}
Name Type Required Description
configFile string Yes Explicit reviewed Kamal configuration filename.
version string Yes Immutable selected image version; latest and invalid version tokens are rejected.
transport 'kamal' | 'openssh' No Kamal by default; openssh selects the constrained single-host transport.
cwd string No Trusted command working directory; defaults to process.cwd().
env NodeJS.ProcessEnv No Subprocess environment; defaults to process.env and may contain real secret bindings.
registry { server: string; username: string; password: string; } No Optional trusted registry server/username/password consumed only by the OpenSSH transport; Kamal uses its own configuration/environment. Never serialize these credentials in a receipt.

Type declaration; no runtime value.

deployPlatformImage for the canonical usage example and runtime requirements.

Explicit reviewed Kamal configuration filename.

Immutable selected image version; latest and invalid version tokens are rejected.

Kamal by default; openssh selects the constrained single-host transport.

Trusted command working directory; defaults to process.cwd().

Subprocess environment; defaults to process.env and may contain real secret bindings.

Optional trusted registry server/username/password consumed only by the OpenSSH transport; Kamal uses its own configuration/environment. Never serialize these credentials in a receipt.

Registry hostname that must exactly match the reviewed Kamal image registry before OpenSSH login.

Nonempty host registry username passed to Docker login over the OpenSSH transport.

Nonempty registry secret passed through SSH stdin to docker login –password-stdin; not used by the Kamal transport.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Host application configuration whose explicit selections determine generated platform files.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/render.

interface PlatformManifest {
siteOperations?: SiteOperationsConfig;
runtime?: PlatformRuntimeConfig;
packages?: PlatformPackage[];
platform: PlatformConfig;
overrides?: PlatformConfigOverrides;
deployment: PlatformDeployment;
}
Name Type Required Description
siteOperations SiteOperationsConfig No Optional registered local site and control-service capabilities.
runtime PlatformRuntimeConfig No Optional explicit tenant/database runtime placement catalog.
packages PlatformPackage[] No Explicit acquired code registrations; each is bound to a verified inventory.
platform PlatformConfig Yes Core platform service/domain/identity configuration.
overrides PlatformConfigOverrides No Supported host overrides applied while resolving the platform contract.
deployment PlatformDeployment Yes Non-secret image, transport, database and placement selection.

Type declaration; no runtime value.

resolveManifest for the canonical usage example and runtime requirements.

Optional registered local site and control-service capabilities.

Optional explicit tenant/database runtime placement catalog.

Explicit acquired code registrations; each is bound to a verified inventory.

Core platform service/domain/identity configuration.

Supported host overrides applied while resolving the platform contract.

Non-secret image, transport, database and placement selection.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Application configuration, operation module and plan/stack selections.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/operations.

interface PlatformOperationOptions {
config?: string;
operations?: string;
plan?: boolean;
stack?: string;
}
Name Type Required Description
config string No Workspace-relative application manifest path; defaults to eaos.platform.json.
operations string No Trusted operation module path; defaults to eaos.operations.ts.
plan boolean No When true, inspect inputs/stages without importing live host operation code.
stack string No Explicit Pulumi stack required for bootstrap execution.

Type declaration; no runtime value.

planPlatformOperation for the canonical usage example and runtime requirements.

Workspace-relative application manifest path; defaults to eaos.platform.json.

Trusted operation module path; defaults to eaos.operations.ts.

When true, inspect inputs/stages without importing live host operation code.

Explicit Pulumi stack required for bootstrap execution.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Trusted live host capabilities required to execute reviewed release/bootstrap operations.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/operations.

interface PlatformOperations {
formatVersion: 1;
environment: string;
withLock<T>(context: ReleaseContext, action: () => Promise<T>): Promise<T>;
lifecycle: LifecycleProject;
migrations: Array<{
backendId: string;
tenantId: string;
pluginIds: string[];
}>;
deploy?: (input: {
context: ReleaseContext;
role: 'worker' | 'backend' | 'frontend';
image: string;
version: string;
configFile: string;
}) => Promise<void>;
baselines?: Array<{
backendId: string;
baseline: DataContractBaseline;
}>;
health: Array<{
role: 'worker' | 'backend' | 'frontend';
url: string;
}>;
bootstrap?: {
provisionInfrastructure?: (context: ReleaseContext, stack: string) => Promise<void>;
initializeControlDatabase(context: ReleaseContext): Promise<void>;
startIdentity(context: ReleaseContext): Promise<void>;
issueAdminRegistration(context: ReleaseContext): Promise<void>;
};
}
Name Type Required Description
formatVersion 1 Yes Host operations contract format; must be 1.
environment string Yes Nonblank host environment identity used to bind locks, journals and health checks.
withLock Promise<T> Yes Hold an environment-wide exclusive lock across the awaited action; lock ownership and recovery are host responsibilities.
lifecycle LifecycleProject Yes Real Lifecycle project with shared durable state, migration executors and current admission.
migrations Array<{ backendId: string; tenantId: string; pluginIds: string[]; }> Yes Explicit backend/tenant/plugin selections for reviewed release application; does not enable new tenants.
deploy (input: { context: ReleaseContext; role: 'worker' | 'backend' | 'frontend'; image: string; version: string; configFile: string; }) => Promise<void> No Optional live role deployment callback receiving immutable image/version/config and the current release context.
baselines Array<{ backendId: string; baseline: DataContractBaseline; }> No Optional reviewed database baseline descriptors bound to their exact backend IDs.
health Array<{ role: 'worker' | 'backend' | 'frontend'; url: string; }> Yes Role-specific readiness URLs whose release headers must match the requested deployed versions.
bootstrap { provisionInfrastructure?: (context: ReleaseContext, stack: string) => Promise<void>; initializeControlDatabase(context: ReleaseContext): Promise<void>; startIdentity(context: ReleaseContext): Promise<void>; issueAdminRegistration(context: ReleaseContext): Promise<void>; } No Optional real infrastructure, control-DB, identity and administrator-code capabilities required for bootstrap.

Type declaration; no runtime value.

definePlatformOperations for the canonical usage example and runtime requirements.

Host operations contract format; must be 1.

Nonblank host environment identity used to bind locks, journals and health checks.

Hold an environment-wide exclusive lock across the awaited action; lock ownership and recovery are host responsibilities.

Parameters:

  • context: Reviewed release identity and input hash; the object is not frozen and must not be mutated.
  • action: Async host operation to await without releasing the exclusive environment lock.

Returns: The action result after the host lock implementation completes.

  • T: Result produced by the action while the environment lock is held.

The host must release only its own lock and must not silently expire an interrupted writer.

Host lock acquisition, action and cleanup failures propagate.

Example:

import type { PlatformOperations, ReleaseContext } from '@alneas/eaos-cli/platform';
export async function inspectLocked(operations: PlatformOperations, context: ReleaseContext) {
return operations.withLock(context, async () => operations.lifecycle.store.read());
}

Real Lifecycle project with shared durable state, migration executors and current admission.

Explicit backend/tenant/plugin selections for reviewed release application; does not enable new tenants.

Registered backend ID matching the runtime/lifecycle target.

Concrete verified tenant ID; wildcards are rejected.

Nonempty unique plugin IDs whose dependencies are migrated in order.

Optional live role deployment callback receiving immutable image/version/config and the current release context.

Current locked release context and retained operation identity for this deployment.

Reviewed worker, backend or frontend service selected for this live release step.

Exact reviewed immutable application image reference for the selected role.

Reviewed image/deployment version passed to the host deploy adapter.

Generated role-specific deployment configuration path selected by the reviewed release plan.

Optional reviewed database baseline descriptors bound to their exact backend IDs.

Declared migration backend whose database owns this baseline.

Reviewed baseline whose target must match the lifecycle contract catalog.

Role-specific readiness URLs whose release headers must match the requested deployed versions.

Deployed role; release requires exactly one endpoint for each selected role.

HTTPS or loopback HTTP URL without credentials/query/fragment; response x-eaos-release must match the selected version.

Optional real infrastructure, control-DB, identity and administrator-code capabilities required for bootstrap.

Optional host provisioning callback receiving reviewed context and explicit Pulumi stack; resolves with no value. Omission runs the local Pulumi project through the selected runner.

Initializes the real host control database during bootstrap.

Parameters:

  • context: Reviewed operation identity and input hash.

Returns: No value; resolves after host initialization.

Host initialization errors stop bootstrap without undoing earlier stages.

Example:

import type { PlatformOperations, ReleaseContext } from '@alneas/eaos-cli/platform';
export async function reviewedBootstrap(operations: PlatformOperations, context: ReleaseContext) {
if (!operations.bootstrap) throw new Error("Real bootstrap capabilities required");
// Invoke only after the host approves this operation and preceding stages.
await operations.bootstrap.initializeControlDatabase(context);
}

Starts/configures the host identity service after control database initialization.

Parameters:

  • context: Reviewed operation identity and input hash.

Returns: No value; resolves after host identity setup.

Host setup errors stop bootstrap without undoing earlier stages.

Example:

import type { PlatformOperations, ReleaseContext } from '@alneas/eaos-cli/platform';
export async function reviewedBootstrap(operations: PlatformOperations, context: ReleaseContext) {
if (!operations.bootstrap) throw new Error("Real bootstrap capabilities required");
// Invoke only after the host approves this operation and preceding stages.
await operations.bootstrap.startIdentity(context);
}

Delivers the host’s short-lived single-use administrator registration code directly.

Parameters:

  • context: Reviewed operation identity and input hash.

Returns: No value; credentials must not be returned for inclusion in receipts.

Delivery/setup errors stop bootstrap; the host must reconcile any code already issued.

Example:

import type { PlatformOperations, ReleaseContext } from '@alneas/eaos-cli/platform';
export async function reviewedBootstrap(operations: PlatformOperations, context: ReleaseContext) {
if (!operations.bootstrap) throw new Error("Real bootstrap capabilities required");
// Invoke only after the host approves this operation and preceding stages.
await operations.bootstrap.issueAdminRegistration(context);
}

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Compatibility re-export; its implementation and documentation are owned by the owning API reference.

Imports: @alneas/eaos-cli/platform.

interface PlatformPackage {
id: string;
inventory: string;
module: string;
tenantIds: string[];
pluginIds: string[];
settings?: Record<string, unknown>;
}
Name Type Required Description
id string Yes See the upstream owning declaration.
inventory string Yes See the upstream owning declaration.
module string Yes See the upstream owning declaration.
tenantIds string[] Yes See the upstream owning declaration.
pluginIds string[] Yes See the upstream owning declaration.
settings Record<string, unknown> No See the upstream owning declaration.

Type declaration; no runtime value.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Derive a lifecycle-safe package bundle identifier from the exact package identity bytes.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/packages.

declare function platformPackageBundleId(packageId: string): string;
Name Type Required Description
packageId string Yes Nonblank package identity, including an optional npm scope; nonblank input is not trimmed before hashing.

string

package- followed by the SHA-256 hexadecimal digest.

If the package identity is blank.

import { platformPackageBundleId } from '@alneas/eaos-cli/platform'
const bundleId = platformPackageBundleId('@example/notes')

Compatibility re-export; its implementation and documentation are owned by the owning API reference.

Imports: @alneas/eaos-cli/platform.

interface PlatformRuntimeConfig {
backend: BackendTarget;
databaseTargets?: BackendTarget[];
tenantPlacements?: Record<string, string>;
}
Name Type Required Description
backend BackendTarget Yes See the upstream owning declaration.
databaseTargets BackendTarget[] No See the upstream owning declaration.
tenantPlacements Record<string, string> No See the upstream owning declaration.

Type declaration; no runtime value.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Trusted development-only plugin and optional test-host capabilities.

Imports: @alneas/eaos-cli/dev.

interface PluginDevConfig {
plugin: DefinedPlugin;
contracts?: DataContract[];
seed?: (db: SQLiteDataAccessAdapter, principal: PlatformPrincipal) => Promise<void>;
services?: Record<string, unknown>;
monthlyQuotas?: Readonly<Record<string, number>>;
clients?: {
web?: DevClientEntry;
line?: DevClientEntry;
};
mcp?: {
registry: PluginRegistry;
gatekeeper: McpGatekeeper;
};
resolveSecret?: (principal: PlatformPrincipal, key: string) => Promise<string>;
jobs?: Record<string, (context: PluginContext, input: unknown) => Promise<void>>;
webhooks?: Record<string, (principal: PlatformPrincipal, request: Request) => Promise<boolean>>;
}
Name Type Required Description
plugin DefinedPlugin Yes Trusted Core plugin definition mounted by the disposable local runtime.
contracts DataContract[] No Explicit Data Contracts required by schemaDependencies; missing migrations reject startup.
seed (db: SQLiteDataAccessAdapter, principal: PlatformPrincipal) => Promise<void> No Optional async per-tenant seed callback receiving the scoped database and verified local persona; called on that tenant’s first access.
services Record<string, unknown> No Explicit host capabilities exposed to trusted plugin code.
monthlyQuotas Readonly<Record<string, number>> No Local test budgets keyed by addon or plugin; omitted or zero budgets do not fabricate metered allowance.
clients { web?: DevClientEntry; line?: DevClientEntry; } No Trusted web/LINE component entry declarations; never import server configuration into the browser bundle.
mcp { registry: PluginRegistry; gatekeeper: McpGatekeeper; } No Optional registry and gatekeeper for exactly the same plugin and entitlement.
resolveSecret (principal: PlatformPrincipal, key: string) => Promise<string> No Async host callback resolving one secret key for the supplied verified local principal; missing binding rejects secret access.
jobs Record<string, (context: PluginContext, input: unknown) => Promise<void>> No Explicit async job handlers keyed by operation; receive scoped plugin context and caller input.
webhooks Record<string, (principal: PlatformPrincipal, request: Request) => Promise<boolean>> No Named async test validators receiving the local principal and Request; return whether admission is allowed.

Type declaration; no runtime value.

createPluginDevApp for the canonical usage example and runtime requirements.

Trusted Core plugin definition mounted by the disposable local runtime.

Explicit Data Contracts required by schemaDependencies; missing migrations reject startup.

Optional async per-tenant seed callback receiving the scoped database and verified local persona; called on that tenant’s first access.

Explicit host capabilities exposed to trusted plugin code.

Local test budgets keyed by addon or plugin; omitted or zero budgets do not fabricate metered allowance.

Trusted web/LINE component entry declarations; never import server configuration into the browser bundle.

Trusted web component entry compiled into the local browser preview; omission leaves that preview unconfigured.

Trusted LINE preview entry; when omitted, the web entry is reused if present.

Optional registry and gatekeeper for exactly the same plugin and entitlement.

Registry containing exactly this development plugin with a matching entitlement declaration; startup rejects other compositions.

Host-selected tool policy and audit service shared by local MCP discovery/execution.

Async host callback resolving one secret key for the supplied verified local principal; missing binding rejects secret access.

Explicit async job handlers keyed by operation; receive scoped plugin context and caller input.

Named async test validators receiving the local principal and Request; return whether admission is allowed.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Source-inspected plugin metadata and explicit unresolved issues, without executing plugin code.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/inspect.

interface PluginInspection {
apiPrefix?: string;
targets?: string[];
dataContracts?: Record<string, string>;
pluginId: string;
tables: string[];
tools: {
name: string;
parametersHash: string;
inputSchema?: Record<string, unknown>;
contract?: {
version: string;
permission: string;
sideEffect: 'read' | 'write' | 'external';
outputSchema?: Record<string, unknown>;
};
}[];
policies: Record<string, {
requiredRole?: string;
riskLevel?: string;
requireHumanApproval?: boolean;
}>;
contracts: string[];
secrets: string[];
storagePolicy?: PluginStoragePolicy;
issues: {
code: string;
message: string;
}[];
}
Name Type Required Description
apiPrefix string No Statically declared API route prefix when it can be resolved.
targets string[] No Statically declared supported runtime/client targets.
dataContracts Record<string, string> No Declared Data Contract identities and compatible version ranges.
pluginId string Yes Validated plugin identity read from source declarations.
tables string[] Yes Table names inferred from source contracts; not proof of installed physical schemas.
tools { name: string; parametersHash: string; inputSchema?: Record<string, unknown>; contract?: { version: string; permission: string; sideEffect: 'read' | 'write' | 'external'; outputSchema?: Record<string, unknown>; }; }[] Yes Statically inspected tool names, input hashes/schema and optional execution contracts.
policies Record<string, { requiredRole?: string; riskLevel?: string; requireHumanApproval?: boolean; }> Yes Resolved per-tool role, risk and human-approval metadata; runtime hosts still enforce live authorization.
contracts string[] Yes Source contract declarations found by the static reader.
secrets string[] Yes Declared secret names, never resolved secret values.
storagePolicy PluginStoragePolicy No Optional declared plugin storage limits and placement rules.
issues { code: string; message: string; }[] Yes Unresolved/unsupported source findings; callers must not silently treat them as a complete executable contract.

Type declaration; no runtime value.

inspectPlugin for the canonical usage example and runtime requirements.

Statically declared API route prefix when it can be resolved.

Statically declared supported runtime/client targets.

Declared Data Contract identities and compatible version ranges.

Validated plugin identity read from source declarations.

Table names inferred from source contracts; not proof of installed physical schemas.

Statically inspected tool names, input hashes/schema and optional execution contracts.

Statically resolved MCP tool name from the inspected plugin source.

SHA-256 of JSON.stringify applied to the statically resolved input schema; source object key order therefore affects compatibility comparisons.

Optional source-resolved JSON Schema for tool arguments; unresolved expressions are reported as inspection issues.

Optional statically resolved execution contract describing version, permission, effects, and output validation.

Declared execution-contract version string used for compatibility comparisons.

Declared permission key required by the execution contract; inspection does not enforce it.

Declared effect category: read, write, or external; runtime hosts must enforce the corresponding execution boundary.

Optional statically resolved result JSON Schema; absence does not imply result validation.

Resolved per-tool role, risk and human-approval metadata; runtime hosts still enforce live authorization.

Optional source-declared role requirement; live runtime authorization remains host-owned.

Optional source-declared tool risk label, without a runtime policy decision from inspection.

Optional source declaration indicating whether the tool requests human approval.

Source contract declarations found by the static reader.

Declared secret names, never resolved secret values.

Optional declared plugin storage limits and placement rules.

Unresolved/unsupported source findings; callers must not silently treat them as a complete executable contract.

Stable diagnostic category identifying unsupported, unresolved, or conflicting inspected source.

Human-readable diagnostic context; callers must review these findings before treating metadata as complete.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Finalize deployment assets and exact hashes in an isolated built plugin package before packing.

Imports: @alneas/eaos-cli/platform/deployment-assets.

declare function preparePluginDeployment(root: string): Promise<DeploymentInventory>;
Name Type Required Description
root string Yes Staging directory containing canonical package.json, deployment.json and built dist/runtime.js.

Promise<DeploymentInventory>

The verified deployment inventory written into the staging directory.

Writes deployment.json. Do not pass a released immutable artifact or live host directory; this does not deploy or enable a tenant.

Rejects owner/version mismatches, missing lifecycle/runtime/assets, symlinks and inventory or filesystem failures.

import { preparePluginDeployment } from '@alneas/eaos-cli/platform/deployment-assets'
export function finalizeStaging(directory: string) { return preparePluginDeployment(directory) }

Supported OCI preset selections layered over a host platform manifest.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/preset.

interface PresetManifest extends Omit<PlatformManifest, 'deployment'> {
preset: 'oci-adb' | 'oci-adb-standard';
plugins?: string[];
corporatePackages?: Array<{
id: string;
path: string;
tenants: string[];
}>;
deployment?: Omit<Partial<PlatformManifest['deployment']>, 'images'> & {
images?: Partial<PlatformManifest['deployment']['images']>;
};
}
Name Type Required Description
preset 'oci-adb' | 'oci-adb-standard' Yes Explicit supported infrastructure preset; oci-adb-standard is the accepted alias of oci-adb.
plugins string[] No Unique installed npm package identities selected for this host; code selection is not activation.
corporatePackages Array<{ id: string; path: string; tenants: string[]; }> No Explicit local private package paths and tenant allowlists selected by the host.
deployment Omit<Partial<PlatformManifest['deployment']>, 'images'> & { images?: Partial<PlatformManifest['deployment']['images']>; } No Optional deployment overrides layered over the preset’s local Compose defaults.

Type declaration; no runtime value.

expandPreset for the canonical usage example and runtime requirements.

Explicit supported infrastructure preset; oci-adb-standard is the accepted alias of oci-adb.

Unique installed npm package identities selected for this host; code selection is not activation.

Explicit local private package paths and tenant allowlists selected by the host.

Expected package owner identifier, required to match its deployment inventory.

Project-contained directory containing the acquired package deployment.json and verified assets.

Explicit nonempty tenant allowlist for the package registration, validated by platform package rules.

Optional deployment overrides layered over the preset’s local Compose defaults.

Optional per-role image overrides merged over local appName-backend:dev and appName-frontend:dev tags before platform defaults are resolved.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Load explicit destination placements from the application manifest without discovering plugin code.

Imports: @alneas/eaos-cli/platform/deployment-placement-config.

declare function readDeploymentPlacementConfig(root: string, config: string): Promise<{
placements: _alneas_eaos_server_platform.DeploymentPlacements;
bindings: Record<string, string>;
}>;
Name Type Required Description
root string Yes Existing application root, canonicalized through realpath.
config string Yes Workspace-relative application manifest path.

Promise<{ placements: _alneas_eaos_server_platform.DeploymentPlacements; bindings: Record<string, string>; }>

The resolved placement catalog and host placement bindings.

Rejects missing placements, invalid manifest paths/configuration and read failures.

import { readDeploymentPlacementConfig } from '@alneas/eaos-cli/platform/deployment-placement-config'
export function placements(root: string) { return readDeploymentPlacementConfig(root, 'eaos.platform.json') }

Read a JSON file of at most 1 MiB and retain its original UTF-8 text.

Imports: @alneas/eaos-cli/platform.

declare function readJson(path: string): Promise<{
data: unknown;
text: string;
}>;
Name Type Required Description
path string Yes File selected by the trusted caller; use safePath for workspace containment.

Promise<{ data: unknown; text: string; }>

The parsed data and original text, without a content hash.

lstat rejects a final symlink because it is not a regular file. Parent components are not checked here; use safePath for workspace-relative paths. Checks and reads are separate filesystem operations, so callers must control concurrent path changes.

Rejects missing, nonregular or oversized files, invalid JSON and read failures.

Parsed JSON value without runtime domain-schema validation.

Original UTF-8 JSON file text retained exactly for hashing or inspection.

import { readJson } from '@alneas/eaos-cli/platform'
export function readManifest(path: string) { return readJson(path) }

Read registered package metadata from the application manifest.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/packages.

declare function readPlatformPackages(root: string, config?: string): Promise<PlatformPackage[]>;
Name Type Required Description
root string Yes Trusted application root.
config string No Workspace-relative manifest path; defaults to eaos.platform.json.

Promise<PlatformPackage[]>

The resolved application package registrations.

Reads and resolves metadata without importing runtime factories or activating plugins.

Rejects invalid manifest paths, declarations or package metadata; filesystem errors propagate.

import { readPlatformPackages } from '@alneas/eaos-cli/platform'
export function readHost(root: string) { return readPlatformPackages(root) }

Read runtime placement configuration from the application manifest.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/packages.

declare function readPlatformRuntime(root: string, config?: string): Promise<PlatformRuntimeConfig | undefined>;
Name Type Required Description
root string Yes Trusted application root.
config string No Workspace-relative manifest path; defaults to eaos.platform.json.

Promise<PlatformRuntimeConfig \| undefined>

The resolved optional runtime configuration.

Reads and resolves metadata without importing runtime factories or activating plugins.

Rejects invalid manifest paths, declarations or package metadata; filesystem errors propagate.

import { readPlatformRuntime } from '@alneas/eaos-cli/platform'
export function readHost(root: string) { return readPlatformRuntime(root) }

Append reviewed deployment evidence under an exclusive journal writer lock without executing its task.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/deployment-status.

declare function recordDeploymentResult(root: string, options: {
inventory: string;
receipt: string;
result: DeploymentResult;
config?: string;
destination?: string;
}): Promise<{
receipt: string;
recorded: DeploymentResult;
executed: boolean;
}>;
Name Type Required Description
root string Yes Trusted workspace root used to validate the receipt path.
options { inventory: string; receipt: string; result: DeploymentResult; config?: string; destination?: string; } Yes Inventory, relative receipt path and actual observed result; placement-bound work also supplies config/destination.

Promise<{ receipt: string; recorded: DeploymentResult; executed: boolean; }>

The receipt path, recorded result and executed=false.

The host supplies truthful evidence. Writes a temporary journal then renames it; no task, migration or tenant activation runs.

Rejects changed artifacts, wrong release/target/placement evidence, immutable-asset receipt paths, existing writer locks, oversized journals and filesystem errors.

Path to the immutable deployment inventory whose owner, asset hashes and task declaration bind this result.

Workspace-relative mutable evidence journal path; must remain separate from the immutable inventory and packaged assets.

Truthful host/operator-observed task result with actor, timestamp, evidence and required scope; recording does not execute or independently verify its task.

Optional workspace-relative application manifest supplying reviewed placements; required for destination-bound evidence.

Optional destination ID assigned to this nonartifact task; requires config with compatible explicit placements.

import { recordDeploymentResult } from '@alneas/eaos-cli/platform'
export function appendEvidence(root: string, options: Parameters<typeof recordDeploymentResult>[1]) { return recordDeploymentResult(root, options) }

Read an external Autonomous Database resource without importing it into managed state.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/database.

declare function referenceOciAutonomousDatabase(name: string, id: pulumi.Input<string>, options?: Omit<pulumi.CustomResourceOptions, 'import'>): _pulumi_oci_database_autonomousDatabase.AutonomousDatabase;
Name Type Required Description
name string Yes Pulumi logical lookup name.
id pulumi.Input<string> Yes Existing database resource ID supplied by the host; may be an Output.
options Omit<pulumi.CustomResourceOptions, 'import'> No Optional resource options excluding import.

_pulumi_oci_database_autonomousDatabase.AutonomousDatabase

The referenced native AutonomousDatabase resource.

Requires Pulumi/OCI provider configuration. This lookup is not resource adoption, database migration or wallet creation.

Provider lookup errors propagate.

import { referenceOciAutonomousDatabase } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function referenceHost(id: Parameters<typeof referenceOciAutonomousDatabase>[1]) { return referenceOciAutonomousDatabase('existing-db', id) }

Register architecture and site operation commands on a supplied Commander command tree.

Imports: @alneas/eaos-cli/commands/architecture.

declare function registerArchitectureCommands(program: Command): void;
Name Type Required Description
program Command Yes Commander command instance to mutate; its owning host controls argument parsing.

void

No value; command definitions and handlers are attached to the supplied object.

Registration itself does not execute commands. Later parsing can invoke filesystem, infrastructure or deployment operations according to the selected command; review them separately.

Commander configuration errors propagate.

import { registerArchitectureCommands } from '@alneas/eaos-cli/commands/architecture'
import { Command } from 'commander'
const program = new Command('example')
registerArchitectureCommands(program)

Register client route synchronization commands on a supplied Commander command tree.

Imports: @alneas/eaos-cli/commands/sync-routes.

declare function registerClientCommands(program: Command): void;
Name Type Required Description
program Command Yes Commander command instance to mutate; its owning host controls argument parsing.

void

No value; command definitions and handlers are attached to the supplied object.

Registration itself does not execute synchronization. Parsing sync:routes reads client manifests and may write the owned route registry/receipt; it does not execute infrastructure or deployment operations.

Commander configuration errors propagate.

import { registerClientCommands } from '@alneas/eaos-cli/commands/sync-routes'
import { Command } from 'commander'
const program = new Command('example')
registerClientCommands(program)

Register artifact planning, status inspection, and operator-evidence recording commands on a Commander tree.

Imports: @alneas/eaos-cli/commands/deployment.

declare function registerDeploymentCommands(program: Command): void;
Name Type Required Description
program Command Yes Commander command instance to mutate; its owning host controls argument parsing.

void

No value; command definitions and handlers are attached to the supplied object.

Registration itself does not execute commands. Parsing these commands reads/verifies artifacts and may append an evidence journal or set process.exitCode for incomplete status; it does not execute deployment tasks or apply infrastructure.

Commander configuration errors propagate.

import { registerDeploymentCommands } from '@alneas/eaos-cli/commands/deployment'
import { Command } from 'commander'
const program = new Command('example')
registerDeploymentCommands(program)

Register plugin lifecycle inspection and administration commands on a supplied Commander command tree.

Imports: @alneas/eaos-cli/commands/lifecycle.

declare function registerLifecycleCommands(plugin: Command): void;
Name Type Required Description
plugin Command Yes Commander command instance to mutate; its owning host controls argument parsing.

void

No value; command definitions and handlers are attached to the supplied object.

Registration itself does not execute commands. Later parsing can invoke filesystem, infrastructure or deployment operations according to the selected command; review them separately.

Commander configuration errors propagate.

import { registerLifecycleCommands } from '@alneas/eaos-cli/commands/lifecycle'
import { Command } from 'commander'
const program = new Command('example')
registerLifecycleCommands(program)

Acquire verified artifact bytes and atomically register code without executing package factories.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/packages.

declare function registerPlatformPackage(root: string, options: {
directory: string;
tenantIds: string[];
settings?: Record<string, unknown>;
config?: string;
}): Promise<{
entry: PlatformPackage;
verifiedAssets: number;
activated: boolean;
restartRequired: boolean;
}>;
Name Type Required Description
root string Yes Application workspace root.
options { directory: string; tenantIds: string[]; settings?: Record<string, unknown>; config?: string; } Yes Already built/downloaded directory, explicit tenantIds, optional settings and manifest path.

Promise<{ entry: PlatformPackage; verifiedAssets: number; activated: boolean; restartRequired: boolean; }>

The registration, verified asset count, activated=false and restartRequired=true.

Writes immutable retained files and the application manifest under a registration lock. Partial acquisition may remain after failure; no database application or tenant activation occurs.

Rejects invalid hashes, duplicate package identities, mismatched retained assets, registration locks or filesystem failures.

Already built/downloaded artifact directory containing deployment.json and its checksummed assets; resolved against the process working directory.

Explicit nonempty verified concrete tenant catalog to register for this package; registration never activates these tenants.

Optional nonsecret settings object retained in the package registration; actual durable/authentication bindings stay host-owned.

Workspace-relative application manifest to update under the registration lock; defaults to eaos.platform.json.

import { registerPlatformPackage } from '@alneas/eaos-cli/platform'
export function acquireReviewed(root: string, directory: string, tenantIds: string[]) { return registerPlatformPackage(root, { directory, tenantIds }) }

Register plugin generation and maintenance commands on a supplied Commander command tree.

Imports: @alneas/eaos-cli/commands/plugin.

declare function registerPluginCommands(program: Command): void;
Name Type Required Description
program Command Yes Commander command instance to mutate; its owning host controls argument parsing.

void

No value; command definitions and handlers are attached to the supplied object.

Registration itself does not execute commands. Later parsing can invoke filesystem, infrastructure or deployment operations according to the selected command; review them separately.

Commander configuration errors propagate.

import { registerPluginCommands } from '@alneas/eaos-cli/commands/plugin'
import { Command } from 'commander'
const program = new Command('example')
registerPluginCommands(program)

Generated relative filename for the registration-email body template.

Imports: @alneas/eaos-cli/platform/render.

declare const registrationBodyFile = "kratos/registration-body.jsonnet";
Name Type Required Description
— — — No call parameters.

Declared constant value.

renderPlatform for the canonical usage example and runtime requirements.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Default registration-email body template rendered into host identity configuration.

Imports: @alneas/eaos-cli/platform/render.

declare const registrationEmailBody = "function(ctx) { email: ctx.identity.traits.email, identity_id: ctx.identity.id }\n";
Name Type Required Description
— — — No call parameters.

Declared constant value.

renderPlatform for the canonical usage example and runtime requirements.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Execution identity and reviewed input hash passed to trusted release callbacks; hosts must preserve these values.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/operations.

interface ReleaseContext {
root: string;
id: string;
inputSha256: string;
}
Name Type Required Description
root string Yes Canonical application root associated with the reviewed inputs.
id string Yes Unique operation UUID shared by its steps and durable receipt.
inputSha256 string Yes SHA-256 binding the operation to its reviewed source, package and configuration inputs.

Type declaration; no runtime value.

executePlatformOperation for the canonical usage example and runtime requirements.

Canonical application root associated with the reviewed inputs.

Unique operation UUID shared by its steps and durable receipt.

SHA-256 binding the operation to its reviewed source, package and configuration inputs.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Serialize inspected contract metadata into a delimited generated AGENTS block.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/commands/sync-agents-md.

declare function renderAgentMetadata(info: PluginInspection): string;
Name Type Required Description
info PluginInspection Yes Reviewed source-inspection result; issues are omitted from serialized contract metadata.

string

Markdown with exact generated block markers and a JSON contract payload.

Serialization alone does not reject unresolved issues or validate runtime authorization.

JSON serialization failures propagate.

import { renderAgentMetadata } from '@alneas/eaos-cli/plugin-tools'
import { inspectPlugin } from '@alneas/eaos-cli/plugin-tools/inspect'
export function metadata(root: string) { return renderAgentMetadata(inspectPlugin(root, 'notes')) }

Render deployment completeness and optional remaining-task details as a Markdown report.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/deployment-status.

declare function renderDeploymentStatusMarkdown(status: Awaited<ReturnType<typeof inspectDeploymentStatus>>, options?: {
remaining?: boolean;
view?: 'plugin' | 'destination';
}): string;
Name Type Required Description
status Awaited<ReturnType<typeof inspectDeploymentStatus>> Yes Verified status from inspectDeploymentStatus.
options { remaining?: boolean; view?: 'plugin' | 'destination'; } No remaining omits already succeeded work from detailed task sections.

string

Markdown status text with table cells escaped.

Rendering is presentation only; it neither revalidates evidence nor performs an operation.

Malformed caller-supplied status objects can fail during rendering.

When true, omit succeeded work from detailed sections; false/omitted includes all task states.

Plugin view by default; destination requires placement-aware status with destinations and shared artifact executions.

import { renderDeploymentStatusMarkdown } from '@alneas/eaos-cli/platform'
import { inspectDeploymentStatus } from '@alneas/eaos-cli/platform/deployment-status'
export async function report(inventory: string) { return renderDeploymentStatusMarkdown(await inspectDeploymentStatus([inventory]), { remaining: true }) }

Render role-specific Kamal configuration and operation metadata from validated deployment settings.

Imports: @alneas/eaos-cli/platform/kamal.

declare function renderKamal(config: ResolvedPlatformConfig, settings: ResolvedKamalDeployment, definitions: ServiceDefinition[], database: {
volumeName: string;
external: boolean;
}, workerImageValue?: string, agentImageValue?: string): Record<string, string>;
Name Type Required Description
config ResolvedPlatformConfig Yes Resolved platform ports, domain and runtime configuration.
settings ResolvedKamalDeployment Yes Validated Kamal host/service/registry settings.
definitions ServiceDefinition[] Yes Explicit service definitions used for backend accessories.
database { volumeName: string; external: boolean; } Yes Selected database image, storage and connection configuration.
workerImageValue string No Optional immutable worker image selection.
agentImageValue string No Optional agent-runtime image selection.

Record<string, string>

A map of generated relative filenames to configuration text.

Pure rendering: does not invoke Kamal, SSH, registry pushes or migrations. The host reviews generated settings and supplies actual runtime secrets.

Invalid settings or unresolved role/image assumptions can throw.

Reviewed named Docker volume used for identity database persistence and generated host inspection/create instructions.

True requires the existing named volume to be inspected and retained; false permits reviewed new-installation volume creation instructions.

import { renderKamal } from '@alneas/eaos-cli/platform/kamal'
export function renderHost(...args: Parameters<typeof renderKamal>) { return renderKamal(...args) }

Render the current Kamal dotenv resolver template without executing its shell substitutions.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/kamal-secrets.

declare function renderKamalSecretsScript(options?: KamalSecretsTemplateOptions): string;
Name Type Required Description
options KamalSecretsTemplateOptions No Registry identity and Pulumi directory settings; see KamalSecretsTemplateOptions for defaults.

string

The generated template text.

Current implementation embeds a fixed database-password literal and leaves the database connection string empty. Replace these through reviewed host secret bindings before production use. Registry substitution reads environment/Pulumi values only when the generated script is consumed; this renderer does not persist or fetch credentials.

import { renderKamalSecretsScript } from '@alneas/eaos-cli/platform'
const text = renderKamalSecretsScript({ pulumiDir: 'pulumi' })

Render the initial host-owned Pulumi source files for the OCI ADB preset.

Imports: @alneas/eaos-cli/presets/oci-adb, @alneas/eaos-cli/presets/oci-adb/template.

declare function renderOciAdbTemplate(appName: string): Record<string, string>;
Name Type Required Description
appName string Yes Lowercase resource prefix beginning with a letter and containing at most 49 letters/digits/hyphens.

Record<string, string>

Relative Pulumi filenames and complete generated UTF-8 text.

Does not write files, access Pulumi configuration or create resources. The generated project depends on the selected published CLI/Pulumi versions and requires real host configuration.

If the application name does not match the resource-prefix grammar.

import { renderOciAdbTemplate } from '@alneas/eaos-cli/presets/oci-adb'
const files = renderOciAdbTemplate('example-platform')

Render platform application and infrastructure configuration as filename/text pairs.

Imports: @alneas/eaos-cli/platform/render.

declare function renderPlatform(config: ResolvedPlatformConfig, deployment: ResolvedDeployment, schemas: Record<string, unknown>, sources?: {
registrationBody?: string;
googleMapper?: string;
}): Record<string, string>;
Name Type Required Description
config ResolvedPlatformConfig Yes Validated platform configuration.
deployment ResolvedDeployment Yes Resolved images, database, target and placement configuration.
schemas Record<string, unknown> Yes Identity schema records used by generated authentication configuration.
sources { registrationBody?: string; googleMapper?: string; } No Optional reviewed source/configuration text passed through to the renderer.

Record<string, string>

Generated configuration files and their textual content.

Rendering does not write files, deploy services, rotate credentials or grant access.

Invalid or unsupported configuration can fail while rendering.

Optional reviewed registration-hook Jsonnet text loaded by the caller; required when a custom body file is selected instead of the built-in identity-email-v1 body.

Optional reviewed Google identity-mapper Jsonnet text loaded by the caller; required for a custom mapper instead of the built-in verified-email mapper.

import { renderPlatform } from '@alneas/eaos-cli/platform/render'
export function renderHost(...args: Parameters<typeof renderPlatform>) { return renderPlatform(...args) }

Normalized deployment defaults and optional reviewed destination bindings.

Imports: @alneas/eaos-cli/platform/render.

interface ResolvedDeployment {
images: Required<Omit<PlatformDeployment['images'], 'worker' | 'agentRuntime'>> & {
worker?: string;
agentRuntime?: string;
};
database: NonNullable<PlatformDeployment['database']>;
target: NonNullable<PlatformDeployment['target']>;
kamal?: ResolvedKamalDeployment;
placements?: DeploymentPlacements;
placementBindings?: Record<string, string>;
}
Name Type Required Description
images Required<Omit<PlatformDeployment['images'], 'worker' | 'agentRuntime'>> & { worker?: string; agentRuntime?: string; } Yes Infrastructure images with resolved defaults and any explicitly selected worker/agent images.
database NonNullable<PlatformDeployment['database']> Yes Resolved database volume identity and external-provider flag.
target NonNullable<PlatformDeployment['target']> Yes Resolved compose, kamal or both output selection.
kamal ResolvedKamalDeployment No Validated normalized Kamal settings when selected.
placements DeploymentPlacements No Validated destination and component placement selections.
placementBindings Record<string, string> No Host-resolved placement fingerprints/bindings used to prevent evidence reuse across changed destinations.

Type declaration; no runtime value.

resolveManifest for the canonical usage example and runtime requirements.

Infrastructure images with resolved defaults and any explicitly selected worker/agent images.

Selected worker image when a worker host is configured; remains absent otherwise.

Selected agent-runtime image when its host is configured; remains absent otherwise.

Resolved database volume identity and external-provider flag.

Resolved compose, kamal or both output selection.

Validated normalized Kamal settings when selected.

Validated destination and component placement selections.

Host-resolved placement fingerprints/bindings used to prevent evidence reuse across changed destinations.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Resolve declared asset selectors against the packaged path list.

Imports: @alneas/eaos-cli/platform/deployment-assets.

declare function resolveDeploymentPlugin(plugin: DeploymentPlugin, paths: string[], mapPattern?: (pattern: string) => string): DeploymentPlugin;
Name Type Required Description
plugin DeploymentPlugin Yes Deployment plugin declaration whose selectors are resolved.
paths string[] Yes Trusted relative package file paths.
mapPattern (pattern: string) => string No Optional selector mapper; defaults to preserving each pattern.

DeploymentPlugin

Copied plugin metadata with sorted concrete assets and single-file runtime entries where appropriate.

Does not read files or verify hashes; use verified staging paths and inventory checks separately.

If a declared asset selector matches no packaged path; mapper errors propagate.

import { resolveDeploymentPlugin } from '@alneas/eaos-cli/platform/deployment-assets'
export function resolveAssets(plugin: Parameters<typeof resolveDeploymentPlugin>[0], paths: string[]) { return resolveDeploymentPlugin(plugin, paths) }

Validated Kamal host and role configuration with default names and paths resolved.

Imports: @alneas/eaos-cli/platform/kamal.

interface ResolvedKamalDeployment {
host: string;
arch: 'amd64' | 'arm64';
ssh: {
user: string;
port: number;
};
services: {
backend: string;
frontend: string;
};
registry: {
usernameSecret: string;
passwordSecret: string;
};
runtimeDirectory: string;
runtimeFiles: {
kratosConfig: string;
databasePassword: string;
tlsDirectory: string;
};
worker?: ResolvedKamalWorker;
agentRuntime?: {
host: string;
privateAddress?: string;
arch: 'amd64' | 'arm64';
port: number;
ssh: {
user: string;
port: number;
};
service: string;
runtimeDirectory: string;
tlsDirectory: string;
};
}
Name Type Required Description
host string Yes Reviewed SSH host or configured alias selected by the host.
arch 'amd64' | 'arm64' Yes Container/host architecture, amd64 or arm64.
ssh { user: string; port: number; } Yes Optional trusted SSH user and port configuration.
services { backend: string; frontend: string; } Yes Explicit backend/frontend service names.
registry { usernameSecret: string; passwordSecret: string; } Yes Registry credential environment-binding names; plaintext values are supplied by the host at execution.
runtimeDirectory string Yes Host runtime directory for generated configuration and secrets mounts.
runtimeFiles { kratosConfig: string; databasePassword: string; tlsDirectory: string; } Yes Registered host paths for identity configuration, database password and optional TLS files.
worker ResolvedKamalWorker No Optional separate worker host and private service endpoints.
agentRuntime { host: string; privateAddress?: string; arch: 'amd64' | 'arm64'; port: number; ssh: { user: string; port: number; }; service: string; runtimeDirectory: string; tlsDirectory: string; } No Optional separate agent-runtime host, port and reviewed network bindings.

Type declaration; no runtime value.

resolveKamal for the canonical usage example and runtime requirements.

Reviewed SSH host or configured alias selected by the host.

Container/host architecture, amd64 or arm64.

Optional trusted SSH user and port configuration.

Validated main-host SSH username.

Validated main-host SSH port, integer 1–65535.

Explicit backend/frontend service names.

Validated backend Kamal service name, distinct from frontend.

Validated frontend Kamal service name, distinct from backend.

Registry credential environment-binding names; plaintext values are supplied by the host at execution.

Validated environment-binding name for registry username lookup.

Validated environment-binding name for registry password lookup.

Host runtime directory for generated configuration and secrets mounts.

Registered host paths for identity configuration, database password and optional TLS files.

Validated absolute host identity-configuration path.

Validated absolute host database-password file path.

Validated absolute host platform TLS directory.

Optional separate worker host and private service endpoints.

Optional separate agent-runtime host, port and reviewed network bindings.

Reviewed agent-runtime SSH host/alias; validation does not prove private network isolation.

Optional host-selected address advertised for private runtime connections; omitted remains absent.

Validated selected runtime architecture.

Validated agent service port, integer 1–65535.

Normalized role SSH connection settings after input validation.

Validated role SSH username.

Validated role SSH port, integer 1–65535.

Validated role service name used in generated Kamal configuration.

Validated absolute host agent-runtime directory.

Validated absolute host directory containing agent-runtime TLS files.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Normalized worker role settings and its trusted private control endpoints.

Imports: @alneas/eaos-cli/platform/kamal.

interface ResolvedKamalWorker {
host: string;
privateAddress: string;
kratosAdminUrl: string;
arch: 'amd64' | 'arm64';
ssh: {
user: string;
port: number;
};
service: string;
}
Name Type Required Description
host string Yes Reviewed SSH host or alias used for worker deployment.
privateAddress string Yes Host-selected private worker address used by other application components.
kratosAdminUrl string Yes Trusted private Kratos administration endpoint; never a browser-selected URL.
arch 'amd64' | 'arm64' Yes Validated worker architecture.
ssh { user: string; port: number; } Yes Resolved worker SSH user and port.
service string Yes Resolved unique worker service name.

Type declaration; no runtime value.

resolveKamal for the canonical usage example and runtime requirements.

Reviewed SSH host or alias used for worker deployment.

Host-selected private worker address used by other application components.

Trusted private Kratos administration endpoint; never a browser-selected URL.

Validated worker architecture.

Resolved worker SSH user and port.

Validated worker SSH username derived from explicit worker/main SSH inputs; role validation requires one of those inputs.

Validated worker SSH port, integer 1–65535, inherited from the main SSH port when omitted.

Resolved unique worker service name.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Validate a Kamal deployment against resolved platform ports, hosts and service settings.

Imports: @alneas/eaos-cli/platform/kamal.

declare function resolveKamal(value: unknown, config: ResolvedPlatformConfig): ResolvedKamalDeployment;
Name Type Required Description
value unknown Yes Untrusted Kamal settings object.
config ResolvedPlatformConfig Yes Resolved platform contract; networkName must be kamal.

ResolvedKamalDeployment

Normalized Kamal deployment settings with explicit host, registry, services and paths.

Configuration validation does not contact SSH hosts or prove their authorization/security.

If settings contain unknown keys, invalid hosts/ports/paths or incompatible platform networking.

import { resolveKamal } from '@alneas/eaos-cli/platform/kamal'
export function validateHost(value: unknown, config: Parameters<typeof resolveKamal>[1]) { return resolveKamal(value, config) }

Validate a manifest or preset and resolve pure platform, deployment and package configuration.

Imports: @alneas/eaos-cli/platform/render.

declare function resolveManifest(input: unknown): {
config: ResolvedPlatformConfig;
deployment: ResolvedDeployment;
packages: PlatformPackage[];
runtime?: PlatformRuntimeConfig;
};
Name Type Required Description
input unknown Yes Untrusted manifest value with explicit platform/deployment/package selections.

{ config: ResolvedPlatformConfig; deployment: ResolvedDeployment; packages: PlatformPackage[]; runtime?: PlatformRuntimeConfig; }

Resolved platform config, deployment, packages and optional runtime metadata.

Does not load runtime factories or create resources; live adoption still requires reviewed host operations.

Rejects unknown fields, invalid presets, missing or incompatible runtime/database/image/placement settings.

Resolved platform identity, service, origin and runtime configuration after preset/override validation.

Resolved images, database volume, Compose/Kamal target and optional explicit placement/binding metadata.

Validated explicit package registrations with concrete tenant/plugin scopes; factories are not loaded here.

Optional validated default/additional database targets and explicit tenant placements; absence means no platform runtime declaration.

import { resolveManifest } from '@alneas/eaos-cli/platform/render'
export function parseHost(input: unknown) { return resolveManifest(input) }

Resolve an application manifest and installed package contributions into a deployment configuration.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/preset.

declare function resolveProjectManifest(root: string, input: unknown): Promise<{
manifest: any;
resolved: {
config: _alneas_eaos_core_platform_config.ResolvedPlatformConfig;
deployment: ResolvedDeployment;
packages: PlatformPackage[];
runtime?: _alneas_eaos_server_platform.PlatformRuntimeConfig;
};
inventories: string[];
npmArtifacts: Omit<PlatformPackage, "tenantIds">[];
}>;
Name Type Required Description
root string Yes Trusted application root used to resolve package inventories.
input unknown Yes Application manifest or supported preset declaration.

Promise<{ manifest: any; resolved: { config: _alneas_eaos_core_platform_config.ResolvedPlatformConfig; deployment: ResolvedDeployment; packages: PlatformPackage[]; runtime?: _alneas_eaos_server_platform.PlatformRuntimeConfig; }; inventories: string[]; npmArtifacts: Omit<PlatformPackage, "tenantIds">[]; }>

Resolved manifest/configuration and verified package contribution metadata.

Package selection does not grant a tenant access or execute runtime factories.

Rejects invalid declarations, unavailable package inventories or incompatible placements.

import { resolveProjectManifest } from '@alneas/eaos-cli/platform'
export function resolveHost(root: string, input: unknown) { return resolveProjectManifest(root, input) }

Run a registered site build or bounded loopback preview with logs and an immutable run receipt.

Imports: @alneas/eaos-cli/site.

declare function runLocalSite(config: SiteOperationsConfig, id: string, kind: 'build' | 'preview', receiptRoot: string, options?: LocalSiteOptions): Promise<SiteRunReceipt>;
Name Type Required Description
config SiteOperationsConfig Yes Validated catalog with explicit local Bun/directory bindings.
id string Yes Registered site identifier.
kind 'build' | 'preview' Yes build runs its build script; preview starts an expiring local proxy.
receiptRoot string Yes Directory beneath which .eaos/site-runs stores logs and receipts.
options LocalSiteOptions No Optional snapshot, AbortSignal, readiness callback and durationSeconds (1–7200); default duration is 600 for build and 1800 for preview.

Promise<SiteRunReceipt>

The succeeded build or stopped preview receipt, including hashes and log path.

Executes trusted project scripts, not sandboxed code. Aborting/expiry terminates its process group and cleans temporary snapshots; arbitrary script effects are not undone. Captured logs replace exact forwarded environment values only when the variable name contains TOKEN, SECRET, PASSWORD, or KEY; this is not comprehensive credential redaction.

Rejects invalid bindings/snapshots/duration, unavailable ports, failed scripts, output limits or receipt writes; failure logs remain inspectable.

import { runLocalSite } from '@alneas/eaos-cli/site'
export function previewRegistered(config: Parameters<typeof runLocalSite>[0], id: string, receiptRoot: string, signal: AbortSignal) { return runLocalSite(config, id, 'preview', receiptRoot, { signal, durationSeconds: 60 }) }

Run one executable with argv and discarded stdin/stdout/stderr, rejecting unsuccessful exit.

Imports: @alneas/eaos-cli/platform/operations.

declare const runOperation: OperationRunner;
Name Type Required Description
— — — No call parameters.

Declared constant value.

Resolves without a value when the executable exits zero.

May execute real host side effects. Output is not captured in the returned error; no command allowlist, timeout or OS sandbox is provided by this runner.

Rejects startup errors, termination or a nonzero exit status.

import { runOperation } from '@alneas/eaos-cli/platform/operations'
export function checkDocker(cwd: string) { return runOperation('docker', ['version'], { cwd }) }

Resolve a workspace-relative path while rejecting traversal and symlink escape.

Imports: @alneas/eaos-cli/platform.

declare function safePath(root: string, relative: string): Promise<string>;
Name Type Required Description
root string Yes Trusted workspace directory.
relative string Yes Relative path within that workspace; absolute paths are rejected.

Promise<string>

The path formed under root after validating every component; this helper does not canonicalize root itself.

Rejects invalid paths, symlink escape and filesystem errors; missing final components are allowed for creation.

import { safePath } from '@alneas/eaos-cli/platform'
export function manifestPath(root: string) { return safePath(root, 'eaos.platform.json') }

Select exactly one nonempty provider TCPS connection profile without modifying its DSN.

Imports: @alneas/eaos-cli/presets/oci-adb/infra/database.

declare function selectAdbConnectionProfile(groups: readonly {
profiles?: readonly AdbConnectionProfile[];
}[], selection?: OciAdbConnectionSelection): string;
Name Type Required Description
groups readonly { profiles?: readonly AdbConnectionProfile[]; }[] Yes Provider connection-string groups and profiles.
selection OciAdbConnectionSelection No Filters; defaults to LOW, SERVER, FQDN and LONG, with TCPS required; optional session/region/display-name filters narrow selection.

string

The exact matching provider DSN string.

Diagnostics omit DSN contents. Selection does not validate live reachability, issue credentials or rewrite TLS options.

When no profile or multiple profiles match, or the selected value is blank.

Optional provider connection profile list; an absent list contributes no candidates to exact TCPS selection.

import { selectAdbConnectionProfile } from '@alneas/eaos-cli/presets/oci-adb/infra/database'
export function connection(groups: Parameters<typeof selectAdbConnectionProfile>[0]) { return selectAdbConnectionProfile(groups) }

Select one exact display-name image or deterministically choose the newest compatible image.

Imports: @alneas/eaos-cli/presets/oci-adb/infra/lookups.

declare function selectImage(images: readonly ImageCandidate[], selection: 'exact' | 'latest', displayName?: string): string;
Name Type Required Description
images readonly ImageCandidate[] Yes Candidate IDs, display names and creation timestamps from the provider.
selection 'exact' | 'latest' Yes exact requires exactly one named candidate; latest sorts descending by parsed creation time and then ID.
displayName string No Required nonempty name for exact selection; ignored for latest selection.

string

Selected nonempty image ID.

If selection is invalid, candidates are absent/ambiguous, latest timestamps are invalid or the selected ID is empty.

import { selectImage } from '@alneas/eaos-cli/presets/oci-adb/infra/lookups'
const imageId = selectImage([{ id: 'example-image', displayName: 'reviewed', timeCreated: '2026-01-01T00:00:00Z' }], 'exact', 'reviewed')

Resolve the selected provider connection profile from an Autonomous Database Output.

Imports: @alneas/eaos-cli/presets/oci-adb/infra, @alneas/eaos-cli/presets/oci-adb/infra/database.

declare function selectOciAdbConnectionString(database: Pick<oci.database.AutonomousDatabase, 'connectionStrings'>, selection?: OciAdbConnectionSelection): pulumi.Output<string>;
Name Type Required Description
database Pick<oci.database.AutonomousDatabase, 'connectionStrings'> Yes Resource reference exposing provider-supplied connectionStrings.
selection OciAdbConnectionSelection No Copied filter settings; defaults are those of selectAdbConnectionProfile.

pulumi.Output<string>

A Pulumi Output resolving to the unchanged matching DSN.

Does not mark its return secret itself; hosts must wrap sensitive connection values when exporting or storing them.

Provider Output failures and unmatched/ambiguous profiles reject during resolution.

import { selectOciAdbConnectionString } from '@alneas/eaos-cli/presets/oci-adb/infra'
export function connection(database: Parameters<typeof selectOciAdbConnectionString>[0]) { return selectOciAdbConnectionString(database) }

Select exactly one regional All Services Oracle network from provider results.

Imports: @alneas/eaos-cli/presets/oci-adb/infra/lookups.

declare function selectServiceNetwork(services: readonly {
id: string;
name: string;
cidrBlock: string;
}[]): OciServiceNetwork;
Name Type Required Description
services readonly { id: string; name: string; cidrBlock: string; }[] Yes Provider service records with ID, display name and CIDR label.

OciServiceNetwork

The matching network ID and regional CIDR label.

When there is not exactly one matching network with a nonempty ID and CIDR label.

Provider service network identity returned when this is the unique matching regional All Services entry.

Provider display name matched against the regional All Services In Oracle Services Network pattern.

Provider regional service-network CIDR label retained exactly in the selected result.

import { selectServiceNetwork } from '@alneas/eaos-cli/presets/oci-adb/infra/lookups'
const network = selectServiceNetwork([{ id: 'example-service', name: 'All Example Services In Oracle Services Network', cidrBlock: 'example-services' }])

Rendered application/accessory/migration service configuration shared by Compose and Kamal outputs.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/render.

interface ServiceDefinition {
name: string;
image: string;
command?: string[];
environment?: Record<string, string>;
files?: Array<{
source: string;
target: string;
}>;
runtimeFiles?: Array<{
binding: string;
target: string;
}>;
ports?: string[];
dependsOn?: Record<string, {
condition: 'service_healthy';
}>;
healthcheck?: {
test: string[];
interval: string;
timeout: string;
retries: number;
};
volume?: {
source: string;
target: string;
};
role: 'app' | 'accessory' | 'migration';
}
Name Type Required Description
name string Yes Stable service name used for generated dependency and role configuration.
image string Yes Selected container image; actual execution requires a reviewed immutable version.
command string[] No Optional explicit argument vector for the service command.
environment Record<string, string> No Non-secret generated environment values; credentials belong in trusted runtime bindings.
files Array<{ source: string; target: string; }> No Generated file mounts with source and container target paths.
runtimeFiles Array<{ binding: string; target: string; }> No Host-owned sensitive/runtime file bindings and their container targets.
ports string[] No Explicit host/container port mappings rendered for the selected transport.
dependsOn Record<string, { condition: 'service_healthy'; }> No Dependencies whose service_healthy condition gates startup.
healthcheck { test: string[]; interval: string; timeout: string; retries: number; } No Explicit test argv, interval, timeout and retry count.
volume { source: string; target: string; } No Optional persistent volume source and container mount target.
role 'app' | 'accessory' | 'migration' Yes Application, accessory or migration role used to render the correct lifecycle behavior.

Type declaration; no runtime value.

renderPlatform for the canonical usage example and runtime requirements.

Stable service name used for generated dependency and role configuration.

Selected container image; actual execution requires a reviewed immutable version.

Optional explicit argument vector for the service command.

Non-secret generated environment values; credentials belong in trusted runtime bindings.

Generated file mounts with source and container target paths.

Generated configuration filename beneath the platform output, rendered as a read-only container mount.

Container destination path for the generated configuration mount.

Host-owned sensitive/runtime file bindings and their container targets.

Host runtime-binding key resolved to a trusted file/directory path during rendering.

Container destination path receiving the bound host file/directory.

Explicit host/container port mappings rendered for the selected transport.

Dependencies whose service_healthy condition gates startup.

Require the dependency to become service_healthy before starting this service.

Explicit test argv, interval, timeout and retry count.

Container health-check command vector.

Container duration string between checks.

Container duration string limiting one check.

Failed-check count used by the container health configuration.

Optional persistent volume source and container mount target.

Named persistent volume identifier rendered into the service mount.

Container mount path at which the persistent volume is attached.

Application, accessory or migration role used to render the correct lifecycle behavior.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Explicit catalog of sites and the host-selected Bun executable.

Imports: @alneas/eaos-cli/site.

interface SiteOperationsConfig {
bunPath?: string;
sites: LocalSiteProfile[];
}
Name Type Required Description
bunPath string No Absolute trusted Bun executable path; local site execution requires this registration.
sites LocalSiteProfile[] Yes Explicit list of at most 100 uniquely identified site registrations.

Type declaration; no runtime value.

parseSiteOperationsConfig for the canonical usage example and runtime requirements.

Absolute trusted Bun executable path; local site execution requires this registration.

Explicit list of at most 100 uniquely identified site registrations.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Immutable outcome and artifact references from a bounded registered site run.

Imports: @alneas/eaos-cli/site.

interface SiteRunReceipt {
id: string;
siteId: string;
kind: 'build' | 'preview';
outcome: 'succeeded' | 'failed' | 'stopped';
startedAt: string;
finishedAt: string;
packageHash: string;
snapshotHash?: string;
previewUrl?: string;
logFile: string;
}
Name Type Required Description
id string Yes Unique run UUID used for the private log/receipt directory.
siteId string Yes Registered site key selected for this run.
kind 'build' | 'preview' Yes Whether the registered build or preview script was selected.
outcome 'succeeded' | 'failed' | 'stopped' Yes succeeded for completed build, stopped for a ready preview ended by its deadline/cancellation, otherwise failed.
startedAt string Yes UTC ISO timestamp captured when execution begins.
finishedAt string Yes UTC ISO timestamp captured after process cleanup.
packageHash string Yes SHA-256 of serialized package metadata used to select scripts.
snapshotHash string No Optional SHA-256 of the exact staged snapshot bytes.
previewUrl string No Loopback URL included only after the preview becomes ready.
logFile string Yes Path to the retained redacted run log; no log content is embedded in this receipt.

Type declaration; no runtime value.

runLocalSite for the canonical usage example and runtime requirements.

Unique run UUID used for the private log/receipt directory.

Registered site key selected for this run.

Whether the registered build or preview script was selected.

succeeded for completed build, stopped for a ready preview ended by its deadline/cancellation, otherwise failed.

UTC ISO timestamp captured when execution begins.

UTC ISO timestamp captured after process cleanup.

SHA-256 of serialized package metadata used to select scripts.

Optional SHA-256 of the exact staged snapshot bytes.

Loopback URL included only after the preview becomes ready.

Path to the retained redacted run log; no log content is embedded in this receipt.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Compile PostgreSQL or Oracle schema history in isolated local Docker databases and verify its rebuilt metadata.

Imports: @alneas/eaos-cli/baseline.

declare function squashDatabaseContract(contract: DataContract, dialect: 'postgres' | 'oracle', options?: DatabaseBaselineOptions): Promise<DatabaseBaselineCompilation>;
Name Type Required Description
contract DataContract Yes Reviewed database-scoped migration contract with complete SQL for the selected dialect.
dialect 'postgres' | 'oracle' Yes postgres or oracle; SQLite uses squashSqliteContract instead.
options DatabaseBaselineOptions No Optional digest-pinned preloaded images and startup timeout; see DatabaseBaselineOptions.

Promise<DatabaseBaselineCompilation>

Final SQL statements and immutable image/schema rebuild verification metadata.

Starts disposable local containers/volumes and removes owned resources in cleanup. Never accepts a production DSN, existing container, host mount or published database port; images must already be acquired.

Rejects unsupported history, nonlocal Docker contexts, unavailable/nonpinned images, unsupported objects, seeded data, startup timeouts or metadata mismatch.

import { squashDatabaseContract } from '@alneas/eaos-cli/baseline'
export function compilePostgres(contract: Parameters<typeof squashDatabaseContract>[0]) { return squashDatabaseContract(contract, 'postgres') }

Compile database-scoped SQLite migration history into a schema-only baseline and verify an independent rebuild.

Imports: @alneas/eaos-cli/baseline.

declare function squashSqliteContract(contract: DataContract): string[];
Name Type Required Description
contract DataContract Yes Reviewed Data Contract whose migrations contain complete SQLite DDL.

string[]

Final schema SQL ordered by tables, indexes, views, then other objects, preserving SQLite schema row order within each group.

Runs trusted SQL in temporary in-memory node:sqlite databases and closes them. It does not touch a live database or rebase an existing ledger.

Rejects missing dialect SQL, external-database operations, virtual/empty schemas, seeded rows and rebuild mismatches.

import { squashSqliteContract } from '@alneas/eaos-cli/baseline'
export function compileSqlite(contract: Parameters<typeof squashSqliteContract>[0]) { return squashSqliteContract(contract) }

Copy only registered, checksum-verified assets into a fresh image staging tree.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/packages.

declare function stagePlatformPackages(root: string, directory: string, config?: string): Promise<{
directory: string;
packages: number;
activated: boolean;
}>;
Name Type Required Description
root string Yes Trusted application root.
directory string Yes Separate empty staging destination.
config string No Workspace-relative manifest path; defaults to eaos.platform.json.

Promise<{ directory: string; packages: number; activated: boolean; }>

The staging directory, copied package count and activated=false.

Uses exclusive file creation and does not execute package modules; a failed staging attempt may leave partial files for inspection.

Rejects reused destinations, changed hashes, invalid paths/registrations or filesystem errors.

import { stagePlatformPackages } from '@alneas/eaos-cli/platform'
export function stageImage(root: string, directory: string) { return stagePlatformPackages(root, directory) }

Load a trusted local plugin entry and start its loopback development server.

Imports: @alneas/eaos-cli/dev.

declare function startPluginDev(cwd: string, options: {
config: string;
port: string;
}): Promise<{
server: any;
close: () => Promise<never>;
}>;
Name Type Required Description
cwd string Yes Trusted plugin project root.
options { config: string; port: string; } Yes Required config path resolved against cwd and required port text converted with Number; the port must be an integer from 1024 to 65535.

Promise<{ server: any; close: () => Promise<never>; }>

Resolves to the loopback server and close() handler; close stops the server, cleans disposable state and exits the current process with code 0.

Requires Bun. Executes trusted local source, binds 127.0.0.1, and rejects mismatched Host or Origin values; local callers can select the development persona headers. It is not an OS sandbox or production authentication. SIGINT/SIGTERM handlers call the same close function, which exits the whole process after cleanup; embedding hosts must account for this ownership.

Rejects invalid ports/configuration, module import failures or local server/resource initialization failures.

Trusted plugin configuration module path resolved against cwd and dynamically imported; typically eaos.dev.ts.

Required decimal port text converted with Number; must become an integer from 1024 to 65535.

import { startPluginDev } from '@alneas/eaos-cli/dev'
export function startLocal(root: string) { return startPluginDev(root, { config: 'eaos.dev.ts', port: '4310' }) }

Synchronize only the generated metadata block of a plugin AGENTS.md file.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/commands/sync-agents-md.

declare function syncAgentsMd(root: string, options: CommandOptions): Promise<void>;
Name Type Required Description
root string Yes Trusted workspace root.
options CommandOptions Yes plugin is required; check performs equality verification without writing.

Promise<void>

Resolves without a value when the document matches or has been updated.

Preserves text outside the generated block and does not alter unrelated agent instructions.

Rejects symlink documents, unresolved inspected contracts, malformed blocks, stale checks or filesystem failures.

import { syncAgentsMd } from '@alneas/eaos-cli/plugin-tools'
export async function checkAgents(root: string) { await syncAgentsMd(root, { plugin: 'notes', check: true }) }

Generate registered client route entries while protecting edited or unmanaged output.

Imports: @alneas/eaos-cli/commands/sync-routes.

declare function syncRoutes(options?: SyncRoutesOptions): Promise<void>;
Name Type Required Description
options SyncRoutesOptions No config defaults to eaos.clients.json; target defaults to web, dest selects the generated directory, check verifies exact output and prune is rejected.

Promise<void>

Resolves without a value after equality verification or writing the route registry and receipt.

Uses process.cwd() as the project root. Inspects declared client manifests and writes build-time composition only; generated routes do not grant runtime access.

Rejects invalid inventory, protected/stale outputs and filesystem errors.

import { syncRoutes } from '@alneas/eaos-cli/commands/sync-routes'
await syncRoutes({ target: 'web', check: true })

Client catalog, output and verification controls resolved relative to process.cwd().

Imports: @alneas/eaos-cli/commands/sync-routes.

interface SyncRoutesOptions {
config?: string;
dest?: string;
target?: string;
check?: boolean;
prune?: boolean;
}
Name Type Required Description
config string No Relative explicit client catalog path; defaults to eaos.clients.json in process.cwd().
dest string No Relative generated directory; defaults to the selected web/LINE frontend generated tree.
target string No web by default, or line; other targets are rejected.
check boolean No Verify exact registry and ownership receipt without writing.
prune boolean No Unsupported legacy request; true is rejected rather than deleting copied sources.

Type declaration; no runtime value.

syncRoutes for the canonical usage example and runtime requirements.

Relative explicit client catalog path; defaults to eaos.clients.json in process.cwd().

Relative generated directory; defaults to the selected web/LINE frontend generated tree.

web by default, or line; other targets are rejected.

Verify exact registry and ownership receipt without writing.

Unsupported legacy request; true is rejected rather than deleting copied sources.

See the owning declaration and linked feature guide for usage; no standalone example is documented in source.

Remove a package code registration only after every owned plugin is uninstalled and disabled.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/packages.

declare function unregisterPlatformPackage(root: string, id: string, store: LifecycleStore, config?: string): Promise<{
id: string;
retainedArtifacts: boolean;
retainedDatabase: boolean;
restartRequired: boolean;
}>;
Name Type Required Description
root string Yes Application workspace root.
id string Yes Exact registered package identity.
store LifecycleStore Yes Shared Lifecycle store used to inspect installations/activations under its writer lock.
config string No Workspace-relative manifest path; defaults to eaos.platform.json.

Promise<{ id: string; retainedArtifacts: boolean; retainedDatabase: boolean; restartRequired: boolean; }>

Removed identity and flags confirming retained artifacts/database plus restartRequired.

Retains database records, lifecycle history and artifact files. Do not infer deletion from code unregistration.

Rejects missing registrations, remaining installations/enabled activations, lock contention or store/filesystem failures.

import { unregisterPlatformPackage } from '@alneas/eaos-cli/platform'
export function unregisterReviewed(root: string, id: string, store: Parameters<typeof unregisterPlatformPackage>[2]) { return unregisterPlatformPackage(root, id, store) }

Start the configured local Compose application after reviewing its generated runtime contract.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/operations.

declare function upPlatform(root: string, options?: {
config?: string;
plan?: boolean;
}, run?: OperationRunner): Promise<{
mode: string;
command: string;
argv: string[];
status?: undefined;
} | {
status: string;
mode?: undefined;
command?: undefined;
argv?: undefined;
}>;
Name Type Required Description
root string Yes Existing application project root.
options { config?: string; plan?: boolean; } No plan returns the startup plan without host execution.
run OperationRunner No Optional trusted argv-only command runner; defaults to the real subprocess runner.

Promise<{ mode: string; command: string; argv: string[]; status?: undefined; } \| { status: string; mode?: undefined; command?: undefined; argv?: undefined; }>

The startup plan or local operation result after configured steps succeed.

Actual mode starts host processes/containers and may execute configured local setup operations. Existing credentials and volumes are not silently replaced.

Rejects invalid startup contracts, missing password/TLS files, stale generated configuration or failed build/start/readiness commands.

Workspace-relative application manifest used for generation and startup contract checks; defaults to eaos.platform.json.

When true, return Docker startup argv without executing generation or subprocess startup; false/omitted runs the reviewed local startup steps.

import { upPlatform } from '@alneas/eaos-cli/platform'
export function inspectLocal(root: string) { return upPlatform(root, { plan: true }) }

Verify package registrations against inventory assets and optional runtime database targets.

Imports: @alneas/eaos-cli/platform, @alneas/eaos-cli/platform/packages.

declare function verifyPlatformPackages(root: string, packages: PlatformPackage[], runtime?: PlatformRuntimeConfig): Promise<{
databaseTargets: _alneas_eaos_server_lifecycle_engine.BackendTarget[];
contributions: {
tenantDatabases: {
tenantId: string;
targetId: string;
databaseId: string;
}[];
owner: string;
artifact: string;
inventorySha256: string;
runtime?: string;
functions: DeploymentInventory["functions"];
database?: DeploymentInventory["database"];
plugins: DeploymentInventory["plugins"];
coverage: "declared" | "legacy-unclassified";
verifiedAssets: number;
}[];
databasePolicy: string;
componentPlacements?: {
owner: string;
pluginId: string;
componentId: string;
destinationIds: string[];
adopted: boolean;
}[] | undefined;
destinations?: _alneas_eaos_server_platform.DeploymentDestination[] | undefined;
mode: string;
}>;
Name Type Required Description
root string Yes Application workspace root.
packages PlatformPackage[] Yes Explicit package registrations to verify.
runtime PlatformRuntimeConfig No Optional runtime catalog for tenant-to-database checks.

Promise<{ databaseTargets: _alneas_eaos_server_lifecycle_engine.BackendTarget[]; contributions: { tenantDatabases: { tenantId: string; targetId: string; databaseId: string; }[]; owner: string; artifact: string; inventorySha256: string; runtime?: string; functions: DeploymentInventory["functions"]; database?: DeploymentInventory["database"]; plugins: DeploymentInventory["plugins"]; coverage: "declared" \| "legacy-unclassified"; verifiedAssets: number; }[]; databasePolicy: string; componentPlacements?: { owner: string; pluginId: string; componentId: string; destinationIds: string[]; adopted: boolean; }[] \| undefined; destinations?: _alneas_eaos_server_platform.DeploymentDestination[] \| undefined; mode: string; }>

The verified deployment plan with each contribution annotated by tenant database targets.

Does not execute registered modules or migrate a database.

Rejects invalid registrations, runtime/lifecycle mismatches, hash failures or inconsistent database targets.

import { verifyPlatformPackages } from '@alneas/eaos-cli/platform'
export function verifyHost(root: string, packages: Parameters<typeof verifyPlatformPackages>[1]) { return verifyPlatformPackages(root, packages) }

Create an immutable schema-baseline directory with archived source and per-dialect rebuild evidence.

Imports: @alneas/eaos-cli/baseline.

declare function writeContractBaseline(cwd: string, options: {
contract: string;
version: string;
out: string;
} & DatabaseBaselineOptions): Promise<{
hash: string;
path: string;
sourcePreserved: boolean;
}>;
Name Type Required Description
cwd string Yes Trusted workspace root for contract and output containment.
options { contract: string; version: string; out: string; } & DatabaseBaselineOptions Yes Required relative contract path, newer target version and new output directory; optional local compiler image/time settings.

Promise<{ hash: string; path: string; sourcePreserved: boolean; }>

The baseline hash, final directory and sourcePreserved=true.

May start disposable local Docker databases for PostgreSQL/Oracle. Writes only release artifacts; does not apply/rebase a host database or activate tenants.

Rejects existing output, unsafe paths, invalid versions/dialects or compilation failures; an incomplete stage may remain for inspection.

Workspace-relative canonical source contract JSON path, preserved as archived evidence.

Valid target semantic version strictly newer than the source contract release.

New workspace-relative output directory for baseline contract, SQL and compiler verification; an existing output is rejected.

import { writeContractBaseline } from '@alneas/eaos-cli/baseline'
export function compileRelease(root: string) { return writeContractBaseline(root, { contract: 'contracts/notes.json', version: '1.1.0', out: 'releases/notes-1.1.0' }) }

Write a generated draft or check exact equality without replacing a protected existing draft.

Imports: @alneas/eaos-cli/plugin-tools, @alneas/eaos-cli/plugin-tools/utils.

declare function writeDraft(file: string, content: string, options: CommandOptions): void;
Name Type Required Description
file string Yes Destination file, resolved by the trusted caller.
content string Yes Complete desired UTF-8 content.
options CommandOptions Yes check compares without writing; otherwise write must be true to replace an existing file.

void

No value; the draft matches or has been written.

Creates parent directories when writing; does not establish containment or inspect symlink components itself.

When check finds missing/stale content, replacement lacks write, or filesystem access fails.

import { writeDraft } from '@alneas/eaos-cli/plugin-tools'
export function checkDraft(file: string, content: string) { writeDraft(file, content, { check: true }) }

Hash staging files and write a validated, bounded deployment inventory.

Imports: @alneas/eaos-cli/platform/deployment-assets.

declare function writeInventory(root: string, inventory: DeploymentInventory, paths: string[]): Promise<DeploymentInventory>;
Name Type Required Description
root string Yes Isolated built package staging root.
inventory DeploymentInventory Yes Mutable inventory object; its assets list is replaced with computed hashes.
paths string[] Yes Relative files to hash; deployment.json itself is excluded.

Promise<DeploymentInventory>

The validated inventory after writing deployment.json.

Mutates inventory.assets and writes staging metadata; the caller must provide contained paths, not arbitrary user input.

Rejects nonfiles, malformed plugin metadata, inventories over 1 MiB and filesystem failures.

import { writeInventory } from '@alneas/eaos-cli/platform/deployment-assets'
export function writeStagedInventory(root: string, inventory: Parameters<typeof writeInventory>[1], paths: string[]) { return writeInventory(root, inventory, paths) }

Forward the legacy SQLite-named baseline entry to the current all-dialect compiler.

Imports: @alneas/eaos-cli/baseline.

declare const writeSqliteBaseline: typeof writeContractBaseline;
Name Type Required Description
— — — No call parameters.

Declared constant value.

The baseline hash, final directory and sourcePreserved=true.

Compatibility entry for writeContractBaseline; compiles every declared supported dialect, not just SQLite. It does not change the canonical implementation.

Rejects existing output, unsafe paths, invalid versions/dialects or compilation failures; an incomplete stage may remain for inspection.

import { writeSqliteBaseline } from '@alneas/eaos-cli/baseline'
export function compileRelease(root: string) { return writeSqliteBaseline(root, { contract: 'contracts/notes.json', version: '1.1.0', out: 'releases/notes-1.1.0' }) }