import { ArtifactHttpClient } from "@agentxm/workspace-kernel/sources"; import * as NodeServices from "@effect/platform-node/NodeServices"; import * as HttpClient from "effect/http/HttpClient"; import * as Effect from "effect/Effect"; import * as FileSystem from "effect/FileSystem"; import * as Layer from "effect/Layer"; import * as Option from "effect/Option"; import * as Path from "effect/Path"; import { GlobalFlag } from "effect/cli"; import { AppError } from "./app-error/index.js"; import { type ExpectedCliError } from "./cli-runtime/index.js"; import { Verbosity, type VerbosityLevel, verboseFlag, debugFlag } from "./cli-flags/index.js"; import { RegistryUrl } from "@agentxm/registry-client"; import { type TelemetryClientOptions } from "./telemetry/index.js"; import { type WorkspaceStateOptions, type SourceHostConfig } from "@agentxm/workspace-kernel/workspace-state"; import type { WorkspaceScope } from "@agentxm/extension-model/unstable/workspace-scope"; import { type AbsolutePath } from "@agentxm/extension-model/unstable/path-types"; import { ExecutionDirectory } from "./execution-directory.js"; import { ReleaseAgePosture } from "@agentxm/workspace-kernel/resolution"; export { verboseFlag, debugFlag }; export declare const axmGlobalFlags: readonly [GlobalFlag.Setting<"axm-non-interactive", Option.Option>, GlobalFlag.Setting<"axm-verbose", boolean>, GlobalFlag.Setting<"axm-debug", boolean>, GlobalFlag.Setting<"axm-quiet", boolean>, GlobalFlag.Setting<"axm-json", Option.Option>, GlobalFlag.Setting<"axm-directory", Option.Option>]; export declare const withAxmUserAgent: (httpClient: HttpClient.HttpClient, version: string) => HttpClient.HttpClient.With; /** Keep redirect policy at the runtime transport boundary that owns fetch. */ export declare const withAxmFetchPolicy: (fetchImplementation: typeof globalThis.fetch) => typeof globalThis.fetch; /** * Node services and the plain AXM transport, with no Registry credentials. * Process-level observers such as telemetry build on this layer. */ export declare const makeArtifactHttpClientLayer: (fetchImplementation: typeof globalThis.fetch) => Layer.Layer; export declare const PlatformLayer: Layer.Layer; export declare const makeAuthLayer: (registryUrl: string) => Layer.Layer; export declare const runtimeBaseLayer: Layer.Layer; export declare const cliConfigLayer: Layer.Layer; export declare const baseLayer: Layer.Layer; /** * The self-update capability's environment-backed services. The startup * update check needs the release cache and latest-release discovery; * the `upgrade` command additionally drives an installer through a * subprocess and records what it installed. */ export declare const startupUpdateCheckLayer: Layer.Layer; export declare const selfUpdateLayer: Layer.Layer; /** Route Effect diagnostics through the Screen's serialized transcript writer. */ export declare const makeCliLoggerLayer: (level: VerbosityLevel) => Layer.Layer; export declare const getBuiltInSources: () => ReadonlyArray; /** * The operator's telemetry consent and preview request for this process, * resolved once at the process entry from the environment (the process * environment unless another is given). */ export declare const resolveProcessTelemetryOptions: (environment?: Readonly>) => Pick; /** * The Registry this invocation binds its transport, credentials, and clients * to: the settings-selected default, read through the workspace's one target * owner before any command's own workspace boundary is reached. */ export declare const resolveDefaultRegistryTarget: (projectRoot: AbsolutePath) => Effect.Effect<{ name: string; url: string; } | { name: string; url: string; }, AppError, FileSystem.FileSystem | Path.Path | import("@agentxm/workspace-kernel/settlement").WorkspaceFileWriteLocks>; /** Setup binds projection ports to its explicit scope before settings exist. */ export declare const setupProjectionLayer: (workspace: Omit) => Layer.Layer; type CliWorkspaceOptions = Omit & { readonly projectRoot?: AbsolutePath; }; export declare const withWorkspace: (options: WorkspaceScope | CliWorkspaceOptions) => (program: Effect.Effect) => Effect.Effect, import("effect/Scope").Scope>>; /** * Discharge the minimum-release-age posture at a command boundary. * * Every gated handler carries `ReleaseAgePosture` in `R` up to its command, so * a command the gate can block does not compile until it calls this helper — * and the argument is always its own parsed `--ignore-release-age` flag, never * a decision written here. A leaf can no longer settle a policy its command * never surfaced, and a newly gated command cannot ship without the override. */ export declare const withReleaseAgePosture: (ignoreReleaseAge: boolean) => (program: Effect.Effect) => Effect.Effect>; export declare const withRuntime: (command?: string) => (program: Effect.Effect) => Effect.Effect; export { MachineOutputDocumentSchema, detectMachineOutputDocumentKind, } from "./cli-runtime/index.js"; //# sourceMappingURL=runtime.d.ts.map