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
36 lines • 1.23 kB
TypeScript
/**
* Gitea Adapter
*
* Resolves "owner/name[@version]" shorthands against the configured Gitea host.
* Falls back to git.integrolabs.net (the default self-hosted instance).
*
* Resolution priority:
* 1. AIWG_GITEA_HOST env var
* 2. ~/.aiwg/config.yaml → defaults.giteaHost
* 3. git.integrolabs.net (hardcoded fallback)
*
* Authentication:
* - SSH clone: uses default SSH agent (recommended for teams)
* - HTTPS clone: reads token from GITEA_TOKEN env or ~/.config/gitea/token
*
* @implements #557
*/
import { GitAdapter } from './git.js';
import type { PackageRef, PackageSource, FetchOptions } from '../types.js';
/**
* GiteaAdapter
*
* Handles "owner/repo[@version]" shorthands for the configured Gitea host.
*/
export declare class GiteaAdapter extends GitAdapter {
readonly id: string;
readonly name: string;
/**
* Matches "owner/repo" and "owner/repo@version" without a scheme prefix.
* Does not match "github:owner/repo" (handled by GitHubAdapter).
*/
canResolve(ref: string): boolean;
resolve(ref: PackageRef): Promise<PackageSource | null>;
fetch(source: PackageSource, options?: FetchOptions): Promise<string>;
}
//# sourceMappingURL=gitea.d.ts.map