import * as NodeServices from "@effect/platform-node/NodeServices"; import * as HttpClient from "effect/unstable/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/unstable/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 WorkspaceStateOptions } from "@agentxm/workspace/desired-state"; import type { WorkspaceScope } from "@agentxm/extension-model/unstable/workspace-scope"; import type { SourceHostConfig } from "@agentxm/workspace/desired-state"; import { type AbsolutePath } from "@agentxm/extension-model/unstable/path-types"; import { ExecutionDirectory } from "./execution-directory.js"; import { DefaultRegistryTarget } from "./default-registry-target.js"; import { ReleaseAgePosture } from "@agentxm/workspace/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; 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; export declare const resolveDefaultRegistryTarget: (projectRoot: AbsolutePath) => Effect.Effect<{ name: string; url: string; } | { name: string; url: string; }, AppError, FileSystem.FileSystem | Path.Path>; 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, DefaultRegistryTarget>, HttpClient.HttpClient | NodeServices.NodeServices | import("@agentxm/registry-access/authentication").TokenExchange | RegistryUrl | import("@agentxm/registry-access/credentials").CredentialStore | import("@agentxm/registry-access/authentication").PendingDeviceLoginStore | import("@agentxm/registry-access/authentication").AuthClient>, import("./cli-runtime/command-completion.ts").CommandCompletion>, import("./cli-runtime/operation-exit.ts").OperationExit | import("./telemetry/client.ts").TelemetryClient | import("./cli-runtime/telemetry.ts").ProductActivity | import("./cli-runtime/telemetry.ts").CommandSemanticProperties>, import("./screen/streams.ts").OutputStreams | Verbosity | import("./screen/screen.ts").Screen | import("@agentxm/workspace/transitions/planning").InterruptionSignalSource | import("@agentxm/workspace/transitions/planning").ResolvePlanInteraction | import("@agentxm/workspace/lifecycle").InstallSelectionInteraction | import("@agentxm/workspace/skills/lifecycle/application").SkillSelectionInteraction | import("@agentxm/workspace/subagents/lifecycle/application").SubagentSelectionInteraction | import("@agentxm/workspace/lifecycle").BundledAxmSkillAsset | import("@agentxm/registry-access/authentication").AuthLoginPresenter | import("@agentxm/workspace/configuration").WorkspaceInitializationInteraction | import("@agentxm/workspace/projection").CodingAgentRepository | import("@agentxm/workspace/transitions/settlement").WorkspaceTransactionScopes>, HttpClient.HttpClient | NodeServices.NodeServices | RegistryUrl | import("@agentxm/registry-client").RegistryClientFactory>, import("effect/Scope").Scope>>; export { MachineOutputDocumentSchema, detectMachineOutputDocumentKind, } from "./cli-runtime/index.js"; //# sourceMappingURL=runtime.d.ts.map