@every-env/cli
Version:
Multi-agent orchestrator for AI-powered development workflows
294 lines • 10.7 kB
TypeScript
import { z } from 'zod';
export declare const CommandPatternSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
match: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
files: z.ZodArray<z.ZodString, "many">;
exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
files: string[];
exclude?: string[] | undefined;
}, {
files: string[];
exclude?: string[] | undefined;
}>, z.ZodObject<{
files: z.ZodArray<z.ZodString, "many">;
exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
content: z.ZodOptional<z.ZodObject<{
regex: z.ZodString;
captureGroup: z.ZodDefault<z.ZodNumber>;
exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
multiline: z.ZodOptional<z.ZodBoolean>;
as: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
regex: string;
captureGroup: number;
exclude?: string[] | undefined;
multiline?: boolean | undefined;
as?: string | undefined;
}, {
regex: string;
exclude?: string[] | undefined;
captureGroup?: number | undefined;
multiline?: boolean | undefined;
as?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
files: string[];
exclude?: string[] | undefined;
content?: {
regex: string;
captureGroup: number;
exclude?: string[] | undefined;
multiline?: boolean | undefined;
as?: string | undefined;
} | undefined;
}, {
files: string[];
exclude?: string[] | undefined;
content?: {
regex: string;
exclude?: string[] | undefined;
captureGroup?: number | undefined;
multiline?: boolean | undefined;
as?: string | undefined;
} | undefined;
}>]>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
files: z.ZodArray<z.ZodString, "many">;
exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
files: string[];
exclude?: string[] | undefined;
}, {
files: string[];
exclude?: string[] | undefined;
}>, z.ZodObject<{
files: z.ZodArray<z.ZodString, "many">;
exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
content: z.ZodOptional<z.ZodObject<{
regex: z.ZodString;
captureGroup: z.ZodDefault<z.ZodNumber>;
exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
multiline: z.ZodOptional<z.ZodBoolean>;
as: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
regex: string;
captureGroup: number;
exclude?: string[] | undefined;
multiline?: boolean | undefined;
as?: string | undefined;
}, {
regex: string;
exclude?: string[] | undefined;
captureGroup?: number | undefined;
multiline?: boolean | undefined;
as?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
files: string[];
exclude?: string[] | undefined;
content?: {
regex: string;
captureGroup: number;
exclude?: string[] | undefined;
multiline?: boolean | undefined;
as?: string | undefined;
} | undefined;
}, {
files: string[];
exclude?: string[] | undefined;
content?: {
regex: string;
exclude?: string[] | undefined;
captureGroup?: number | undefined;
multiline?: boolean | undefined;
as?: string | undefined;
} | undefined;
}>]>, "many">]>>;
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
agents: z.ZodArray<z.ZodObject<{
id: z.ZodString;
command: z.ZodOptional<z.ZodString>;
flags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
promptFile: z.ZodString;
promptMode: z.ZodDefault<z.ZodEnum<["flag", "stdin", "arg", "env"]>>;
output: z.ZodOptional<z.ZodString>;
outputPattern: z.ZodOptional<z.ZodString>;
forEach: z.ZodOptional<z.ZodEnum<["match", "file"]>>;
runIf: z.ZodOptional<z.ZodObject<{
filesExist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
filesExist?: string[] | undefined;
}, {
filesExist?: string[] | undefined;
}>>;
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
workingDir: z.ZodOptional<z.ZodString>;
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
stdio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"inherit">, z.ZodLiteral<"pipe">, z.ZodArray<z.ZodEnum<["inherit", "pipe", "ignore"]>, "many">]>>;
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
id: string;
flags: string[];
promptFile: string;
promptMode: "flag" | "stdin" | "arg" | "env";
forEach?: "match" | "file" | undefined;
command?: string | undefined;
env?: Record<string, string> | undefined;
output?: string | undefined;
outputPattern?: string | undefined;
runIf?: {
filesExist?: string[] | undefined;
} | undefined;
workingDir?: string | undefined;
variables?: Record<string, any> | undefined;
stdio?: "inherit" | "pipe" | ("inherit" | "pipe" | "ignore")[] | undefined;
allowedTools?: string[] | undefined;
}, {
id: string;
promptFile: string;
forEach?: "match" | "file" | undefined;
command?: string | undefined;
flags?: string[] | undefined;
env?: Record<string, string> | undefined;
promptMode?: "flag" | "stdin" | "arg" | "env" | undefined;
output?: string | undefined;
outputPattern?: string | undefined;
runIf?: {
filesExist?: string[] | undefined;
} | undefined;
workingDir?: string | undefined;
variables?: Record<string, any> | undefined;
stdio?: "inherit" | "pipe" | ("inherit" | "pipe" | "ignore")[] | undefined;
allowedTools?: string[] | undefined;
}>, "many">;
} & {
command: z.ZodOptional<z.ZodString>;
namespace: z.ZodOptional<z.ZodString>;
builtIn: z.ZodOptional<z.ZodBoolean>;
overridable: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
name: string;
agents: {
id: string;
flags: string[];
promptFile: string;
promptMode: "flag" | "stdin" | "arg" | "env";
forEach?: "match" | "file" | undefined;
command?: string | undefined;
env?: Record<string, string> | undefined;
output?: string | undefined;
outputPattern?: string | undefined;
runIf?: {
filesExist?: string[] | undefined;
} | undefined;
workingDir?: string | undefined;
variables?: Record<string, any> | undefined;
stdio?: "inherit" | "pipe" | ("inherit" | "pipe" | "ignore")[] | undefined;
allowedTools?: string[] | undefined;
}[];
overridable: boolean;
command?: string | undefined;
match?: {
files: string[];
exclude?: string[] | undefined;
} | {
files: string[];
exclude?: string[] | undefined;
content?: {
regex: string;
captureGroup: number;
exclude?: string[] | undefined;
multiline?: boolean | undefined;
as?: string | undefined;
} | undefined;
} | ({
files: string[];
exclude?: string[] | undefined;
} | {
files: string[];
exclude?: string[] | undefined;
content?: {
regex: string;
captureGroup: number;
exclude?: string[] | undefined;
multiline?: boolean | undefined;
as?: string | undefined;
} | undefined;
})[] | undefined;
variables?: Record<string, any> | undefined;
description?: string | undefined;
namespace?: string | undefined;
builtIn?: boolean | undefined;
}, {
name: string;
agents: {
id: string;
promptFile: string;
forEach?: "match" | "file" | undefined;
command?: string | undefined;
flags?: string[] | undefined;
env?: Record<string, string> | undefined;
promptMode?: "flag" | "stdin" | "arg" | "env" | undefined;
output?: string | undefined;
outputPattern?: string | undefined;
runIf?: {
filesExist?: string[] | undefined;
} | undefined;
workingDir?: string | undefined;
variables?: Record<string, any> | undefined;
stdio?: "inherit" | "pipe" | ("inherit" | "pipe" | "ignore")[] | undefined;
allowedTools?: string[] | undefined;
}[];
command?: string | undefined;
match?: {
files: string[];
exclude?: string[] | undefined;
} | {
files: string[];
exclude?: string[] | undefined;
content?: {
regex: string;
exclude?: string[] | undefined;
captureGroup?: number | undefined;
multiline?: boolean | undefined;
as?: string | undefined;
} | undefined;
} | ({
files: string[];
exclude?: string[] | undefined;
} | {
files: string[];
exclude?: string[] | undefined;
content?: {
regex: string;
exclude?: string[] | undefined;
captureGroup?: number | undefined;
multiline?: boolean | undefined;
as?: string | undefined;
} | undefined;
})[] | undefined;
variables?: Record<string, any> | undefined;
description?: string | undefined;
namespace?: string | undefined;
builtIn?: boolean | undefined;
overridable?: boolean | undefined;
}>;
export type CommandPattern = z.infer<typeof CommandPatternSchema>;
export interface PatternRegistryOptions {
builtInPatternsPath?: string;
userPatternsPath?: string;
namespace?: string;
}
export interface PatternResolutionOptions {
command?: string;
includeBuiltIn?: boolean;
includeUser?: boolean;
}
export type PatternSource = 'built-in' | 'user' | 'project';
export interface RegisteredPattern {
pattern: CommandPattern;
source: PatternSource;
filePath?: string;
}
//# sourceMappingURL=types.d.ts.map