/** * Typed step-builder wrappers for this lexicon's sprite activities (chant * #1288 Stage 2 — "regenerate the step builders as fully typed wrappers"). * Core's own sprite builders (`spriteCreate`, `spriteExec`, ...) already * carry an inline object-literal type in `packages/core/src/op/builders.ts` * — but that inline type is a hand-restated MIRROR of this lexicon's own * `Sprite*Args` interfaces (`./activities/sprites.ts`, * `./activities/sprite-fs.ts`, `./activities/sprite-tasks.ts`, * `./activities/sprite-config.ts`, `./activities/sprites-emulator.ts`), * exactly the duplication Stage 2 exists to eliminate. `opts`'s type in * every wrapper below IS the activity's own `*Args` interface (via * `WithStepRefs`) — never restated — so it stays in sync with the * implementation by construction. * * There's no cross-package layering problem here (unlike `kubectlApply`/ * `helmInstall`): this package already owns both the activities and (per * `./composites/fly-deploy.ts`'s existing `flapsUp`/`flapsDown`/ * `flyApplyStep` precedent, #744) the step-builder layer. So — matching how * `packages/core/src/op/builders.ts` handles ITS OWN activities — this * module REPLACES (not adds alongside) the sprite builders this package's * `src/index.ts` used to re-export from `@intentius/chant/op`: same names, * same import path (`@intentius/chant-lexicon-fly`), so an existing * `import { spriteCreate } from "@intentius/chant-lexicon-fly"` call site * gains authoring-time types and `StepOutputRef`/`.out` support with no * change. `core`'s own originals are untouched, for anyone still importing * `@intentius/chant/op` directly. */ import { type NamedActivityStep, type WithStepRefs } from "@intentius/chant/op"; import type { ActivityStep } from "@intentius/chant/op"; import type { SpriteCreateArgs, SpriteExecArgs, SpriteCheckpointArgs, SpriteRestoreArgs, ListCheckpointsArgs, SpriteDestroyArgs } from "./activities/sprites.js"; import type { SpriteWriteFileArgs, SpriteReadFileArgs, SpriteListDirArgs, SpriteRemoveArgs } from "./activities/sprite-fs.js"; import type { SpriteApplyNetworkPolicyArgs, SpriteApplyServicesArgs } from "./activities/sprite-config.js"; import type { SpriteTaskCreateArgs, SpriteTaskRefreshArgs, SpriteTaskReleaseArgs } from "./activities/sprite-tasks.js"; import type { SpritesUpArgs, SpritesDownArgs } from "./activities/sprites-emulator.js"; type StepOpts = { profile?: ActivityStep["profile"]; }; /** Create a sprite — the fully typed twin of core's `spriteCreate`. Defaults to the `longInfra` profile. */ export declare const spriteCreate: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Run a command in a sprite — the fully typed twin of core's `spriteExec`. Defaults to the `longInfra` profile. */ export declare const spriteExec: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Checkpoint a sprite — the fully typed twin of core's `spriteCheckpoint`. Defaults to the `longInfra` profile. */ export declare const spriteCheckpoint: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Restore a sprite — the fully typed twin of core's `spriteRestore`. Defaults to the `longInfra` profile. */ export declare const spriteRestore: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** List a sprite's checkpoints — the fully typed twin of core's `listCheckpoints`. Defaults to the `fastIdempotent` profile. */ export declare const listCheckpoints: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Destroy a sprite — the fully typed twin of core's `spriteDestroy`. Defaults to the `fastIdempotent` profile. */ export declare const spriteDestroy: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Write a file into a sprite — the fully typed twin of core's `spriteWriteFile`. Defaults to the `fastIdempotent` profile. */ export declare const spriteWriteFile: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Read a file from a sprite — the fully typed twin of core's `spriteReadFile`. Defaults to the `fastIdempotent` profile. */ export declare const spriteReadFile: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** List a directory in a sprite — the fully typed twin of core's `spriteListDir`. Defaults to the `fastIdempotent` profile. */ export declare const spriteListDir: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Remove a path in a sprite — the fully typed twin of core's `spriteRemove`. Defaults to the `fastIdempotent` profile. */ export declare const spriteRemove: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Reconcile a sprite's outbound network policy — the fully typed twin of core's `spriteApplyNetworkPolicy`. Defaults to the `fastIdempotent` profile. */ export declare const spriteApplyNetworkPolicy: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Reconcile a sprite's background services — the fully typed twin of core's `spriteApplyServices`. Defaults to the `fastIdempotent` profile. */ export declare const spriteApplyServices: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Create a keep-alive task — the fully typed twin of core's `spriteTaskCreate`. Defaults to the `fastIdempotent` profile. */ export declare const spriteTaskCreate: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Refresh a keep-alive task's expiry — the fully typed twin of core's `spriteTaskRefresh`. Defaults to the `fastIdempotent` profile. */ export declare const spriteTaskRefresh: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Release a keep-alive task — the fully typed twin of core's `spriteTaskRelease`. Defaults to the `fastIdempotent` profile. */ export declare const spriteTaskRelease: (args: WithStepRefs & StepOpts) => NamedActivityStep; /** Boot a local spritzer (Fly Sprites API emulator) — the fully typed twin of core's `spritesUp`. Defaults to the `longInfra` profile. */ export declare const spritesUp: (args?: WithStepRefs & StepOpts) => NamedActivityStep; /** Stop and remove the local spritzer container — the fully typed twin of core's `spritesDown`. Defaults to the `fastIdempotent` profile. */ export declare const spritesDown: (args?: WithStepRefs & StepOpts) => NamedActivityStep; export {}; //# sourceMappingURL=builders.d.ts.map