

























@@ -3,14 +3,14 @@ import { normalizeOptionalString } from "../shared/string-coerce.js";
33import type { EmbeddedContextFile } from "./pi-embedded-helpers.js";
44import type { WorkspaceBootstrapFile } from "./workspace.js";
556-export const DEFAULT_BOOTSTRAP_NEAR_LIMIT_RATIO = 0.85;
7-export const DEFAULT_BOOTSTRAP_PROMPT_WARNING_MAX_FILES = 3;
8-export const DEFAULT_BOOTSTRAP_PROMPT_WARNING_SIGNATURE_HISTORY_MAX = 32;
6+const DEFAULT_BOOTSTRAP_NEAR_LIMIT_RATIO = 0.85;
7+const DEFAULT_BOOTSTRAP_PROMPT_WARNING_MAX_FILES = 3;
8+const DEFAULT_BOOTSTRAP_PROMPT_WARNING_SIGNATURE_HISTORY_MAX = 32;
9910-export type BootstrapTruncationCause = "per-file-limit" | "total-limit";
11-export type BootstrapPromptWarningMode = "off" | "once" | "always";
10+type BootstrapTruncationCause = "per-file-limit" | "total-limit";
11+type BootstrapPromptWarningMode = "off" | "once" | "always";
121213-export type BootstrapInjectionStat = {
13+type BootstrapInjectionStat = {
1414name: string;
1515path: string;
1616missing: boolean;
@@ -19,12 +19,12 @@ export type BootstrapInjectionStat = {
1919truncated: boolean;
2020};
212122-export type BootstrapAnalyzedFile = BootstrapInjectionStat & {
22+type BootstrapAnalyzedFile = BootstrapInjectionStat & {
2323nearLimit: boolean;
2424causes: BootstrapTruncationCause[];
2525};
262627-export type BootstrapBudgetAnalysis = {
27+type BootstrapBudgetAnalysis = {
2828files: BootstrapAnalyzedFile[];
2929truncatedFiles: BootstrapAnalyzedFile[];
3030nearLimitFiles: BootstrapAnalyzedFile[];
@@ -40,14 +40,14 @@ export type BootstrapBudgetAnalysis = {
4040};
4141};
424243-export type BootstrapPromptWarning = {
43+type BootstrapPromptWarning = {
4444signature?: string;
4545warningShown: boolean;
4646lines: string[];
4747warningSignaturesSeen: string[];
4848};
494950-export type BootstrapTruncationReportMeta = {
50+type BootstrapTruncationReportMeta = {
5151warningMode: BootstrapPromptWarningMode;
5252warningShown: boolean;
5353promptWarningSignature?: string;
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。