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
50 lines • 1.36 kB
TypeScript
/**
* Hybrid Query Engine — combine location, semantic, and tag queries
*
* Provides artifact search combining file paths (glob), keyword matching,
* tag filtering, and dependency traversal. In-memory index for <100ms queries.
*
* @module artifacts/hybrid-query
* @issue #187
*/
import type { HybridQuery } from './address-parser.js';
export interface ArtifactInfo {
path: string;
relativePath: string;
phase: string;
type: string;
tags: string[];
title: string;
references: string[];
modifiedAt: Date;
sizeBytes: number;
}
export interface SearchResult {
artifact: ArtifactInfo;
score: number;
matchReasons: string[];
}
export declare class ArtifactIndex {
private artifacts;
private projectPath;
constructor(projectPath: string);
/**
* Build index by scanning .aiwg/ directory.
*/
build(): Promise<number>;
/**
* Execute a hybrid query against the index.
*/
query(q: HybridQuery): SearchResult[];
/**
* Find artifacts that reference a given path.
*/
findDependents(artifactPath: string): ArtifactInfo[];
/**
* Find artifacts referenced by a given artifact.
*/
findDependencies(artifactPath: string): ArtifactInfo[];
getAll(): ArtifactInfo[];
private scanDirectory;
}
//# sourceMappingURL=hybrid-query.d.ts.map