UNPKG

aiwg

Version:

Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo

68 lines 2.43 kB
/** * Use Command Handler * * Deploys AIWG frameworks (SDLC, Marketing, Writing) to the current project. * After deployment, registers deployed extensions in the extension registry. * * @implements @.aiwg/architecture/decisions/ADR-001-unified-extension-system.md * @implements #56, #57 * @source @src/cli/router.ts * @issue #33 */ import { CommandHandler, HandlerContext, HandlerResult } from './types.js'; /** * Addons excluded from `aiwg use all`. * aiwg-dev is contributor-only tooling — not for end users. */ export declare const USE_ALL_DISALLOW: Set<string>; /** * Discover all addon names from the filesystem, minus the disallow list. */ export declare function getAllAddons(frameworkRoot: string): Promise<string[]>; /** * Extensions excluded from `aiwg use all` deployment. * `api-adapter` is an OpenAPI spec, not a deployable artifact bundle. */ export declare const USE_ALL_EXTENSIONS_DISALLOW: Set<string>; /** * Discover all extension names from `agentic/code/extensions/*` (#1221). * * Extensions are addon-shaped bundles with their own `manifest.json`, * `skills/`, `rules/`, and `templates/` directories. Only directories * containing a `manifest.json` are considered deployable; bare directories * (e.g. `api-adapter` which only ships an OpenAPI spec) are skipped. */ export declare function getAllExtensions(frameworkRoot: string): Promise<string[]>; /** * Resolve extension source path from its name. */ export declare function extensionPath(frameworkRoot: string, name: string): string; export declare function isValidAddon(frameworkRoot: string, name: string): Promise<boolean>; /** * Resolve addon source path from its name. * Handles known aliases (ring, al, agent-loop). */ export declare function addonPath(frameworkRoot: string, name: string): string; /** * Use command handler * * Deploys framework agents, commands, and skills to the current project, * then registers them in the extension registry for discovery. */ export declare class UseHandler implements CommandHandler { id: string; name: string; description: string; category: "framework"; aliases: string[]; execute(ctx: HandlerContext): Promise<HandlerResult>; } /** * Create use handler instance */ export declare function createUseHandler(): CommandHandler; /** * Singleton handler instance */ export declare const useHandler: UseHandler; //# sourceMappingURL=use.d.ts.map