UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

68 lines • 2.83 kB
import type { RuleSource } from "./types.ts"; /** * Project root marker files / directories used by `findProjectRoot`. * Walks UP from cwd until any of these is found in the directory. */ export declare const PROJECT_MARKERS: readonly string[]; /** * Project rule subdirectories. First tuple element is the parent dir under * the project root, second is the subdir scanned recursively. */ export declare const PROJECT_RULE_SUBDIRS: ReadonlyArray<readonly [string, string]>; /** * Single-file project rules (always apply, frontmatter optional). */ export declare const PROJECT_SINGLE_FILES: readonly string[]; /** * User-home rule directories. */ export declare const USER_HOME_RULE_SUBDIRS: readonly string[]; /** * User-home single-file rules. The first one to exist wins per "first-match" semantics. */ export declare const USER_HOME_SINGLE_FILES: readonly string[]; /** * File extensions accepted as rule files in scanned directories. */ export declare const RULE_FILE_EXTENSIONS: readonly string[]; /** * Per-rule source priority for deterministic ordering. Lower = earlier. */ export declare const SOURCE_PRIORITY: ReadonlyMap<RuleSource, number>; /** * Distance value assigned to global / user-home rules. */ export declare const GLOBAL_DISTANCE = 9999; /** * Per-rule body character cap (default). */ export declare const DEFAULT_MAX_RULE_CHARS = 12000; /** * Total injected chars per tool result (default). */ export declare const DEFAULT_MAX_RESULT_CHARS = 40000; /** * Truncation marker template. `{path}` is replaced with the relative path. */ export declare const TRUNCATION_NOTICE = "\n\n[Rule truncated. Read full rule: {path}]"; /** * Built-in tool names whose results trigger dynamic rule injection. */ export declare const TRACKED_BUILTIN_TOOLS: readonly string[]; export declare const TRACKED_BUILTIN_TOOL_SET: ReadonlySet<string>; /** Addressed to the model; never used to locate the block. */ export declare const PROJECT_RULES_START_MARKER = "<project_rules>"; export declare const PROJECT_RULES_END_MARKER = "</project_rules>"; export declare const PROJECT_RULES_HEADING = "## Project Instructions"; /** * How provider lanes that rebuild the system prompt (see the Anthropic Subscription builtin) locate the * block. The semantic markers cannot: prompt content this builtin does not own - context files * before it, extensions appending after it - may legitimately contain them and be extracted instead. */ export declare const PROJECT_RULES_REGION_START_MARKER = "<!--senpi:project-rules:1:start-->"; export declare const PROJECT_RULES_REGION_END_MARKER = "<!--senpi:project-rules:1:end-->"; /** * Directories excluded by the recursive scanner regardless of glob settings. */ export declare const SCANNER_EXCLUDED_DIRS: readonly string[]; //# sourceMappingURL=constants.d.ts.map