packfs-core
Version:
Semantic filesystem operations for LLM agent frameworks with natural language understanding. See LLM_AGENT_GUIDE.md for copy-paste examples.
969 lines • 33.8 kB
TypeScript
/**
* Zod schemas for Mastra integration input/output validation
*/
import { z } from 'zod';
export declare const accessSchema: z.ZodObject<{
purpose: z.ZodEnum<["read", "metadata", "exists"]>;
target: z.ZodObject<{
path: z.ZodString;
encoding: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
path: string;
encoding?: string | undefined;
}, {
path: string;
encoding?: string | undefined;
}>;
preferences: z.ZodOptional<z.ZodObject<{
includeMetadata: z.ZodOptional<z.ZodBoolean>;
maxSize: z.ZodOptional<z.ZodNumber>;
chunkIfLarge: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
includeMetadata?: boolean | undefined;
maxSize?: number | undefined;
chunkIfLarge?: boolean | undefined;
}, {
includeMetadata?: boolean | undefined;
maxSize?: number | undefined;
chunkIfLarge?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
purpose: "read" | "exists" | "metadata";
target: {
path: string;
encoding?: string | undefined;
};
preferences?: {
includeMetadata?: boolean | undefined;
maxSize?: number | undefined;
chunkIfLarge?: boolean | undefined;
} | undefined;
}, {
purpose: "read" | "exists" | "metadata";
target: {
path: string;
encoding?: string | undefined;
};
preferences?: {
includeMetadata?: boolean | undefined;
maxSize?: number | undefined;
chunkIfLarge?: boolean | undefined;
} | undefined;
}>;
export declare const discoverSchema: z.ZodObject<{
purpose: z.ZodEnum<["list", "search_content", "search_semantic"]>;
target: z.ZodObject<{
path: z.ZodString;
query: z.ZodOptional<z.ZodString>;
criteria: z.ZodOptional<z.ZodObject<{
content: z.ZodOptional<z.ZodString>;
extension: z.ZodOptional<z.ZodString>;
modified: z.ZodOptional<z.ZodObject<{
after: z.ZodOptional<z.ZodDate>;
before: z.ZodOptional<z.ZodDate>;
}, "strip", z.ZodTypeAny, {
before?: Date | undefined;
after?: Date | undefined;
}, {
before?: Date | undefined;
after?: Date | undefined;
}>>;
size: z.ZodOptional<z.ZodObject<{
min: z.ZodOptional<z.ZodNumber>;
max: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
min?: number | undefined;
max?: number | undefined;
}, {
min?: number | undefined;
max?: number | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
size?: {
min?: number | undefined;
max?: number | undefined;
} | undefined;
modified?: {
before?: Date | undefined;
after?: Date | undefined;
} | undefined;
content?: string | undefined;
extension?: string | undefined;
}, {
size?: {
min?: number | undefined;
max?: number | undefined;
} | undefined;
modified?: {
before?: Date | undefined;
after?: Date | undefined;
} | undefined;
content?: string | undefined;
extension?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
path: string;
criteria?: {
size?: {
min?: number | undefined;
max?: number | undefined;
} | undefined;
modified?: {
before?: Date | undefined;
after?: Date | undefined;
} | undefined;
content?: string | undefined;
extension?: string | undefined;
} | undefined;
query?: string | undefined;
}, {
path: string;
criteria?: {
size?: {
min?: number | undefined;
max?: number | undefined;
} | undefined;
modified?: {
before?: Date | undefined;
after?: Date | undefined;
} | undefined;
content?: string | undefined;
extension?: string | undefined;
} | undefined;
query?: string | undefined;
}>;
options: z.ZodOptional<z.ZodObject<{
recursive: z.ZodOptional<z.ZodBoolean>;
maxResults: z.ZodOptional<z.ZodNumber>;
includeContent: z.ZodOptional<z.ZodBoolean>;
followRelationships: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
recursive?: boolean | undefined;
includeContent?: boolean | undefined;
maxResults?: number | undefined;
followRelationships?: boolean | undefined;
}, {
recursive?: boolean | undefined;
includeContent?: boolean | undefined;
maxResults?: number | undefined;
followRelationships?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
purpose: "list" | "search_content" | "search_semantic";
target: {
path: string;
criteria?: {
size?: {
min?: number | undefined;
max?: number | undefined;
} | undefined;
modified?: {
before?: Date | undefined;
after?: Date | undefined;
} | undefined;
content?: string | undefined;
extension?: string | undefined;
} | undefined;
query?: string | undefined;
};
options?: {
recursive?: boolean | undefined;
includeContent?: boolean | undefined;
maxResults?: number | undefined;
followRelationships?: boolean | undefined;
} | undefined;
}, {
purpose: "list" | "search_content" | "search_semantic";
target: {
path: string;
criteria?: {
size?: {
min?: number | undefined;
max?: number | undefined;
} | undefined;
modified?: {
before?: Date | undefined;
after?: Date | undefined;
} | undefined;
content?: string | undefined;
extension?: string | undefined;
} | undefined;
query?: string | undefined;
};
options?: {
recursive?: boolean | undefined;
includeContent?: boolean | undefined;
maxResults?: number | undefined;
followRelationships?: boolean | undefined;
} | undefined;
}>;
export declare const updateSchema: z.ZodEffects<z.ZodObject<{
purpose: z.ZodEnum<["create", "update", "append", "delete"]>;
target: z.ZodObject<{
path: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
}, {
path: string;
}>;
content: z.ZodOptional<z.ZodString>;
options: z.ZodOptional<z.ZodObject<{
createPath: z.ZodOptional<z.ZodBoolean>;
backup: z.ZodOptional<z.ZodBoolean>;
atomic: z.ZodOptional<z.ZodBoolean>;
preserveRelationships: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
atomic?: boolean | undefined;
createPath?: boolean | undefined;
backup?: boolean | undefined;
preserveRelationships?: boolean | undefined;
}, {
atomic?: boolean | undefined;
createPath?: boolean | undefined;
backup?: boolean | undefined;
preserveRelationships?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
purpose: "delete" | "create" | "update" | "append";
target: {
path: string;
};
content?: string | undefined;
options?: {
atomic?: boolean | undefined;
createPath?: boolean | undefined;
backup?: boolean | undefined;
preserveRelationships?: boolean | undefined;
} | undefined;
}, {
purpose: "delete" | "create" | "update" | "append";
target: {
path: string;
};
content?: string | undefined;
options?: {
atomic?: boolean | undefined;
createPath?: boolean | undefined;
backup?: boolean | undefined;
preserveRelationships?: boolean | undefined;
} | undefined;
}>, {
purpose: "delete" | "create" | "update" | "append";
target: {
path: string;
};
content?: string | undefined;
options?: {
atomic?: boolean | undefined;
createPath?: boolean | undefined;
backup?: boolean | undefined;
preserveRelationships?: boolean | undefined;
} | undefined;
}, {
purpose: "delete" | "create" | "update" | "append";
target: {
path: string;
};
content?: string | undefined;
options?: {
atomic?: boolean | undefined;
createPath?: boolean | undefined;
backup?: boolean | undefined;
preserveRelationships?: boolean | undefined;
} | undefined;
}>;
export declare const fileOutputSchema: z.ZodObject<{
success: z.ZodBoolean;
content: z.ZodOptional<z.ZodString>;
exists: z.ZodOptional<z.ZodBoolean>;
metadata: z.ZodOptional<z.ZodObject<{
size: z.ZodNumber;
modified: z.ZodString;
type: z.ZodEnum<["file", "directory"]>;
permissions: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
size: number;
type: "file" | "directory";
modified: string;
permissions?: string | undefined;
}, {
size: number;
type: "file" | "directory";
modified: string;
permissions?: string | undefined;
}>>;
error: z.ZodOptional<z.ZodString>;
executionMetadata: z.ZodOptional<z.ZodObject<{
executionTime: z.ZodOptional<z.ZodNumber>;
filesAccessed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
operationType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
}, {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
success: boolean;
exists?: boolean | undefined;
error?: string | undefined;
metadata?: {
size: number;
type: "file" | "directory";
modified: string;
permissions?: string | undefined;
} | undefined;
content?: string | undefined;
executionMetadata?: {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
} | undefined;
}, {
success: boolean;
exists?: boolean | undefined;
error?: string | undefined;
metadata?: {
size: number;
type: "file" | "directory";
modified: string;
permissions?: string | undefined;
} | undefined;
content?: string | undefined;
executionMetadata?: {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
} | undefined;
}>;
export declare const searchOutputSchema: z.ZodObject<{
success: z.ZodBoolean;
results: z.ZodArray<z.ZodObject<{
path: z.ZodString;
type: z.ZodEnum<["file", "directory"]>;
content: z.ZodOptional<z.ZodString>;
snippet: z.ZodOptional<z.ZodString>;
relevance: z.ZodOptional<z.ZodNumber>;
metadata: z.ZodOptional<z.ZodObject<{
size: z.ZodNumber;
modified: z.ZodString;
}, "strip", z.ZodTypeAny, {
size: number;
modified: string;
}, {
size: number;
modified: string;
}>>;
}, "strip", z.ZodTypeAny, {
path: string;
type: "file" | "directory";
metadata?: {
size: number;
modified: string;
} | undefined;
relevance?: number | undefined;
content?: string | undefined;
snippet?: string | undefined;
}, {
path: string;
type: "file" | "directory";
metadata?: {
size: number;
modified: string;
} | undefined;
relevance?: number | undefined;
content?: string | undefined;
snippet?: string | undefined;
}>, "many">;
totalResults: z.ZodNumber;
error: z.ZodOptional<z.ZodString>;
executionMetadata: z.ZodOptional<z.ZodObject<{
executionTime: z.ZodOptional<z.ZodNumber>;
filesAccessed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
operationType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
}, {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
success: boolean;
results: {
path: string;
type: "file" | "directory";
metadata?: {
size: number;
modified: string;
} | undefined;
relevance?: number | undefined;
content?: string | undefined;
snippet?: string | undefined;
}[];
totalResults: number;
error?: string | undefined;
executionMetadata?: {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
} | undefined;
}, {
success: boolean;
results: {
path: string;
type: "file" | "directory";
metadata?: {
size: number;
modified: string;
} | undefined;
relevance?: number | undefined;
content?: string | undefined;
snippet?: string | undefined;
}[];
totalResults: number;
error?: string | undefined;
executionMetadata?: {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
} | undefined;
}>;
export declare const updateOutputSchema: z.ZodObject<{
success: z.ZodBoolean;
created: z.ZodOptional<z.ZodBoolean>;
deleted: z.ZodOptional<z.ZodBoolean>;
path: z.ZodOptional<z.ZodString>;
backupPath: z.ZodOptional<z.ZodString>;
error: z.ZodOptional<z.ZodString>;
executionMetadata: z.ZodOptional<z.ZodObject<{
executionTime: z.ZodOptional<z.ZodNumber>;
filesAccessed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
operationType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
}, {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
success: boolean;
path?: string | undefined;
error?: string | undefined;
deleted?: boolean | undefined;
created?: boolean | undefined;
backupPath?: string | undefined;
executionMetadata?: {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
} | undefined;
}, {
success: boolean;
path?: string | undefined;
error?: string | undefined;
deleted?: boolean | undefined;
created?: boolean | undefined;
backupPath?: string | undefined;
executionMetadata?: {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
} | undefined;
}>;
export declare const schemas: {
readonly access: z.ZodObject<{
purpose: z.ZodEnum<["read", "metadata", "exists"]>;
target: z.ZodObject<{
path: z.ZodString;
encoding: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
path: string;
encoding?: string | undefined;
}, {
path: string;
encoding?: string | undefined;
}>;
preferences: z.ZodOptional<z.ZodObject<{
includeMetadata: z.ZodOptional<z.ZodBoolean>;
maxSize: z.ZodOptional<z.ZodNumber>;
chunkIfLarge: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
includeMetadata?: boolean | undefined;
maxSize?: number | undefined;
chunkIfLarge?: boolean | undefined;
}, {
includeMetadata?: boolean | undefined;
maxSize?: number | undefined;
chunkIfLarge?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
purpose: "read" | "exists" | "metadata";
target: {
path: string;
encoding?: string | undefined;
};
preferences?: {
includeMetadata?: boolean | undefined;
maxSize?: number | undefined;
chunkIfLarge?: boolean | undefined;
} | undefined;
}, {
purpose: "read" | "exists" | "metadata";
target: {
path: string;
encoding?: string | undefined;
};
preferences?: {
includeMetadata?: boolean | undefined;
maxSize?: number | undefined;
chunkIfLarge?: boolean | undefined;
} | undefined;
}>;
readonly discover: z.ZodObject<{
purpose: z.ZodEnum<["list", "search_content", "search_semantic"]>;
target: z.ZodObject<{
path: z.ZodString;
query: z.ZodOptional<z.ZodString>;
criteria: z.ZodOptional<z.ZodObject<{
content: z.ZodOptional<z.ZodString>;
extension: z.ZodOptional<z.ZodString>;
modified: z.ZodOptional<z.ZodObject<{
after: z.ZodOptional<z.ZodDate>;
before: z.ZodOptional<z.ZodDate>;
}, "strip", z.ZodTypeAny, {
before?: Date | undefined;
after?: Date | undefined;
}, {
before?: Date | undefined;
after?: Date | undefined;
}>>;
size: z.ZodOptional<z.ZodObject<{
min: z.ZodOptional<z.ZodNumber>;
max: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
min?: number | undefined;
max?: number | undefined;
}, {
min?: number | undefined;
max?: number | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
size?: {
min?: number | undefined;
max?: number | undefined;
} | undefined;
modified?: {
before?: Date | undefined;
after?: Date | undefined;
} | undefined;
content?: string | undefined;
extension?: string | undefined;
}, {
size?: {
min?: number | undefined;
max?: number | undefined;
} | undefined;
modified?: {
before?: Date | undefined;
after?: Date | undefined;
} | undefined;
content?: string | undefined;
extension?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
path: string;
criteria?: {
size?: {
min?: number | undefined;
max?: number | undefined;
} | undefined;
modified?: {
before?: Date | undefined;
after?: Date | undefined;
} | undefined;
content?: string | undefined;
extension?: string | undefined;
} | undefined;
query?: string | undefined;
}, {
path: string;
criteria?: {
size?: {
min?: number | undefined;
max?: number | undefined;
} | undefined;
modified?: {
before?: Date | undefined;
after?: Date | undefined;
} | undefined;
content?: string | undefined;
extension?: string | undefined;
} | undefined;
query?: string | undefined;
}>;
options: z.ZodOptional<z.ZodObject<{
recursive: z.ZodOptional<z.ZodBoolean>;
maxResults: z.ZodOptional<z.ZodNumber>;
includeContent: z.ZodOptional<z.ZodBoolean>;
followRelationships: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
recursive?: boolean | undefined;
includeContent?: boolean | undefined;
maxResults?: number | undefined;
followRelationships?: boolean | undefined;
}, {
recursive?: boolean | undefined;
includeContent?: boolean | undefined;
maxResults?: number | undefined;
followRelationships?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
purpose: "list" | "search_content" | "search_semantic";
target: {
path: string;
criteria?: {
size?: {
min?: number | undefined;
max?: number | undefined;
} | undefined;
modified?: {
before?: Date | undefined;
after?: Date | undefined;
} | undefined;
content?: string | undefined;
extension?: string | undefined;
} | undefined;
query?: string | undefined;
};
options?: {
recursive?: boolean | undefined;
includeContent?: boolean | undefined;
maxResults?: number | undefined;
followRelationships?: boolean | undefined;
} | undefined;
}, {
purpose: "list" | "search_content" | "search_semantic";
target: {
path: string;
criteria?: {
size?: {
min?: number | undefined;
max?: number | undefined;
} | undefined;
modified?: {
before?: Date | undefined;
after?: Date | undefined;
} | undefined;
content?: string | undefined;
extension?: string | undefined;
} | undefined;
query?: string | undefined;
};
options?: {
recursive?: boolean | undefined;
includeContent?: boolean | undefined;
maxResults?: number | undefined;
followRelationships?: boolean | undefined;
} | undefined;
}>;
readonly update: z.ZodEffects<z.ZodObject<{
purpose: z.ZodEnum<["create", "update", "append", "delete"]>;
target: z.ZodObject<{
path: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
}, {
path: string;
}>;
content: z.ZodOptional<z.ZodString>;
options: z.ZodOptional<z.ZodObject<{
createPath: z.ZodOptional<z.ZodBoolean>;
backup: z.ZodOptional<z.ZodBoolean>;
atomic: z.ZodOptional<z.ZodBoolean>;
preserveRelationships: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
atomic?: boolean | undefined;
createPath?: boolean | undefined;
backup?: boolean | undefined;
preserveRelationships?: boolean | undefined;
}, {
atomic?: boolean | undefined;
createPath?: boolean | undefined;
backup?: boolean | undefined;
preserveRelationships?: boolean | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
purpose: "delete" | "create" | "update" | "append";
target: {
path: string;
};
content?: string | undefined;
options?: {
atomic?: boolean | undefined;
createPath?: boolean | undefined;
backup?: boolean | undefined;
preserveRelationships?: boolean | undefined;
} | undefined;
}, {
purpose: "delete" | "create" | "update" | "append";
target: {
path: string;
};
content?: string | undefined;
options?: {
atomic?: boolean | undefined;
createPath?: boolean | undefined;
backup?: boolean | undefined;
preserveRelationships?: boolean | undefined;
} | undefined;
}>, {
purpose: "delete" | "create" | "update" | "append";
target: {
path: string;
};
content?: string | undefined;
options?: {
atomic?: boolean | undefined;
createPath?: boolean | undefined;
backup?: boolean | undefined;
preserveRelationships?: boolean | undefined;
} | undefined;
}, {
purpose: "delete" | "create" | "update" | "append";
target: {
path: string;
};
content?: string | undefined;
options?: {
atomic?: boolean | undefined;
createPath?: boolean | undefined;
backup?: boolean | undefined;
preserveRelationships?: boolean | undefined;
} | undefined;
}>;
};
export declare const outputSchemas: {
readonly file: z.ZodObject<{
success: z.ZodBoolean;
content: z.ZodOptional<z.ZodString>;
exists: z.ZodOptional<z.ZodBoolean>;
metadata: z.ZodOptional<z.ZodObject<{
size: z.ZodNumber;
modified: z.ZodString;
type: z.ZodEnum<["file", "directory"]>;
permissions: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
size: number;
type: "file" | "directory";
modified: string;
permissions?: string | undefined;
}, {
size: number;
type: "file" | "directory";
modified: string;
permissions?: string | undefined;
}>>;
error: z.ZodOptional<z.ZodString>;
executionMetadata: z.ZodOptional<z.ZodObject<{
executionTime: z.ZodOptional<z.ZodNumber>;
filesAccessed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
operationType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
}, {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
success: boolean;
exists?: boolean | undefined;
error?: string | undefined;
metadata?: {
size: number;
type: "file" | "directory";
modified: string;
permissions?: string | undefined;
} | undefined;
content?: string | undefined;
executionMetadata?: {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
} | undefined;
}, {
success: boolean;
exists?: boolean | undefined;
error?: string | undefined;
metadata?: {
size: number;
type: "file" | "directory";
modified: string;
permissions?: string | undefined;
} | undefined;
content?: string | undefined;
executionMetadata?: {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
} | undefined;
}>;
readonly search: z.ZodObject<{
success: z.ZodBoolean;
results: z.ZodArray<z.ZodObject<{
path: z.ZodString;
type: z.ZodEnum<["file", "directory"]>;
content: z.ZodOptional<z.ZodString>;
snippet: z.ZodOptional<z.ZodString>;
relevance: z.ZodOptional<z.ZodNumber>;
metadata: z.ZodOptional<z.ZodObject<{
size: z.ZodNumber;
modified: z.ZodString;
}, "strip", z.ZodTypeAny, {
size: number;
modified: string;
}, {
size: number;
modified: string;
}>>;
}, "strip", z.ZodTypeAny, {
path: string;
type: "file" | "directory";
metadata?: {
size: number;
modified: string;
} | undefined;
relevance?: number | undefined;
content?: string | undefined;
snippet?: string | undefined;
}, {
path: string;
type: "file" | "directory";
metadata?: {
size: number;
modified: string;
} | undefined;
relevance?: number | undefined;
content?: string | undefined;
snippet?: string | undefined;
}>, "many">;
totalResults: z.ZodNumber;
error: z.ZodOptional<z.ZodString>;
executionMetadata: z.ZodOptional<z.ZodObject<{
executionTime: z.ZodOptional<z.ZodNumber>;
filesAccessed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
operationType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
}, {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
success: boolean;
results: {
path: string;
type: "file" | "directory";
metadata?: {
size: number;
modified: string;
} | undefined;
relevance?: number | undefined;
content?: string | undefined;
snippet?: string | undefined;
}[];
totalResults: number;
error?: string | undefined;
executionMetadata?: {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
} | undefined;
}, {
success: boolean;
results: {
path: string;
type: "file" | "directory";
metadata?: {
size: number;
modified: string;
} | undefined;
relevance?: number | undefined;
content?: string | undefined;
snippet?: string | undefined;
}[];
totalResults: number;
error?: string | undefined;
executionMetadata?: {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
} | undefined;
}>;
readonly update: z.ZodObject<{
success: z.ZodBoolean;
created: z.ZodOptional<z.ZodBoolean>;
deleted: z.ZodOptional<z.ZodBoolean>;
path: z.ZodOptional<z.ZodString>;
backupPath: z.ZodOptional<z.ZodString>;
error: z.ZodOptional<z.ZodString>;
executionMetadata: z.ZodOptional<z.ZodObject<{
executionTime: z.ZodOptional<z.ZodNumber>;
filesAccessed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
operationType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
}, {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
success: boolean;
path?: string | undefined;
error?: string | undefined;
deleted?: boolean | undefined;
created?: boolean | undefined;
backupPath?: string | undefined;
executionMetadata?: {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
} | undefined;
}, {
success: boolean;
path?: string | undefined;
error?: string | undefined;
deleted?: boolean | undefined;
created?: boolean | undefined;
backupPath?: string | undefined;
executionMetadata?: {
executionTime?: number | undefined;
filesAccessed?: string[] | undefined;
operationType?: string | undefined;
} | undefined;
}>;
};
export type AccessInput = z.infer<typeof accessSchema>;
export type DiscoverInput = z.infer<typeof discoverSchema>;
export type UpdateInput = z.infer<typeof updateSchema>;
export type FileOutput = z.infer<typeof fileOutputSchema>;
export type SearchOutput = z.infer<typeof searchOutputSchema>;
export type UpdateOutput = z.infer<typeof updateOutputSchema>;
//# sourceMappingURL=index.d.ts.map