UNPKG

@synstack/reforge

Version:

Runtime tools for interactive DevX with the ReForge IDE extension

192 lines (188 loc) 7.35 kB
import { z } from 'zod/v4'; /** * Enumeration of VSCode symbol kinds. * These values represent different types of symbols that can be found in code. */ declare const VscodeSymbolKind: { readonly File: 0; readonly Module: 1; readonly Namespace: 2; readonly Package: 3; readonly Class: 4; readonly Method: 5; readonly Property: 6; readonly Field: 7; readonly Constructor: 8; readonly Enum: 9; readonly Interface: 10; readonly Function: 11; readonly Variable: 12; readonly Constant: 13; readonly String: 14; readonly Number: 15; readonly Boolean: 16; readonly Array: 17; readonly Object: 18; readonly Key: 19; readonly Null: 20; readonly EnumMember: 21; readonly Struct: 22; readonly Event: 23; readonly Operator: 24; readonly TypeParameter: 25; }; /** * Enumeration of VSCode symbol tags. * These values represent additional metadata that can be attached to symbols. */ declare const VscodeSymbolTag: { readonly Deprecated: 1; }; /** * Schema for a position in a text document. */ declare const positionSchema: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; /** Type representing a position in a text document */ type Position = z.output<typeof positionSchema>; /** * Schema for a range in a text document. */ declare const rangeSchema: z.ZodObject<{ start: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; end: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; /** Type representing a range in a text document */ type Range = z.output<typeof rangeSchema>; /** * Schema for a call hierarchy item. * Represents a programming construct that can be part of a call hierarchy. */ declare const callHierarchyItemSchema: z.ZodObject<{ kind: z.ZodNumber; name: z.ZodString; detail: z.ZodString; uri: z.ZodString; tags: z.ZodOptional<z.ZodArray<z.ZodNumber>>; range: z.ZodObject<{ start: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; end: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; selectionRange: z.ZodObject<{ start: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; end: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>; /** Type representing a call hierarchy item */ type CallHierarchyItem = z.output<typeof callHierarchyItemSchema>; /** * Configuration for the executeCommand tool. * Defines the schema for executing VSCode commands. */ declare const executeCommandConfig: { name: string; requestSchema: z.ZodObject<{ command: z.ZodString; args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"path">; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"Uri">; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"Range">; value: z.ZodObject<{ start: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; end: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"Position">; value: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"CallHierarchyItem">; value: z.ZodObject<{ kind: z.ZodNumber; name: z.ZodString; detail: z.ZodString; uri: z.ZodString; tags: z.ZodOptional<z.ZodArray<z.ZodNumber>>; range: z.ZodObject<{ start: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; end: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; selectionRange: z.ZodObject<{ start: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; end: z.ZodObject<{ line: z.ZodNumber; character: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"primitive">; value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny>]>; }, z.core.$strip>]>>>>; }, z.core.$strip>; responseSchema: z.ZodOptional<z.ZodAny>; }; /** * Executes a command in the VSCode editor. * Allows calling bundled VSCode commands as well as commands from other extensions. * * @template OUTPUT - The expected output type of the command * @param {z.input<typeof executeCommandConfig.requestSchema>} args - The command arguments * @returns {Promise<OUTPUT>} A promise that resolves with the command's output */ declare const executeCommand: <OUTPUT = any>(args: z.input<typeof executeCommandConfig.requestSchema>) => Promise<OUTPUT>; type vscode_lib_CallHierarchyItem = CallHierarchyItem; type vscode_lib_Position = Position; type vscode_lib_Range = Range; declare const vscode_lib_VscodeSymbolKind: typeof VscodeSymbolKind; declare const vscode_lib_VscodeSymbolTag: typeof VscodeSymbolTag; declare const vscode_lib_callHierarchyItemSchema: typeof callHierarchyItemSchema; declare const vscode_lib_executeCommand: typeof executeCommand; declare const vscode_lib_executeCommandConfig: typeof executeCommandConfig; declare const vscode_lib_positionSchema: typeof positionSchema; declare const vscode_lib_rangeSchema: typeof rangeSchema; declare namespace vscode_lib { export { type vscode_lib_CallHierarchyItem as CallHierarchyItem, type vscode_lib_Position as Position, type vscode_lib_Range as Range, vscode_lib_VscodeSymbolKind as VscodeSymbolKind, vscode_lib_VscodeSymbolTag as VscodeSymbolTag, vscode_lib_callHierarchyItemSchema as callHierarchyItemSchema, vscode_lib_executeCommand as executeCommand, vscode_lib_executeCommandConfig as executeCommandConfig, vscode_lib_positionSchema as positionSchema, vscode_lib_rangeSchema as rangeSchema }; } export { type CallHierarchyItem as C, type Position as P, type Range as R, VscodeSymbolKind as V, VscodeSymbolTag as a, executeCommand as b, callHierarchyItemSchema as c, executeCommandConfig as e, positionSchema as p, rangeSchema as r, vscode_lib as v };