Files
writing-agent/src/dictate/index.ts
T
chenmoranzhiandCursor b864591afa 对话落盘同一轮填写失败后可以按次数补写。
游玩投影不再送进只给程序用的壳源码。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-14 08:29:38 +08:00

124 lines
3.1 KiB
TypeScript

export {
buildDictateReplyPrompt,
buildDictateSelectPrompt,
buildDictateSystemPrompt,
DICTATE_SYSTEM_PROMPT,
formatDictateRoundTail,
} from "./prompt.js";
export {
buildDictateMessages,
buildDictateContext,
extractDictateDialogue,
} from "./context.js";
export {
DEFAULT_DICTATE_HISTORY_TURNS,
clipDictateDialogue,
resolveDictateHistoryTurns,
} from "./history-window.js";
export {
DICTATE_REMEDIATE_TAG,
DICTATE_REMEDIATE_SCHEMA,
parseDictateRemediate,
serializeDictateRemediate,
formatRemediateChecklist,
type DictateRemediateDoc,
type DictateRemediateItem,
} from "./remediate.js";
export {
CREATION_INTAKE_MODE_TAG,
DICTATE_MODE_VALUE,
DICTATE_LAYER_META_KEY,
DICTATE_ORDER_META_KEY,
DICTATE_SELF_SCORE_META_KEY,
isDictateModeValue,
isAllowedProductTag,
defaultDictateOrder,
effectiveDictateOrder,
compareDictateProducts,
sortDictateProducts,
parseDictateOrder,
type DictateProduct,
type DictateSelfScore,
type DictateChatTurn,
} from "./types.js";
export { DICTATE_TOOL_DEFINITIONS } from "./tools.js";
export { runDictateTurn, type DictateTurnResult } from "./turn.js";
export {
CREATION_PLAN_TAG,
CREATION_PLAN_SCHEMA,
CREATION_PLAN_TIERS,
CREATION_PLAN_EXCLUDED_MODULE_IDS,
creationPlanModules,
parseCreationPlan,
validateCreationPlan,
formatCreationPlanCapabilityCatalog,
formatCreationPlanProgress,
requiredCreationPlanGaps,
type CreationPlan,
type CreationPlanItem,
type CreationPresentationMode,
type CreationPlanTier,
type CreationPlanValidation,
} from "./creation-plan.js";
export {
DICTATE_MODULE_READ_STATE_TAG,
buildDictateModuleReadIndex,
parseDictateModuleReadState,
serializeDictateModuleReadState,
readLibraryEntries,
type DictateModuleReadPayload,
type DictateModuleReadState,
} from "./read-module.js";
export {
AESTHETICS_PRODUCT_TAG,
scoreExperienceAnchor,
formatExperienceAnchorBlock,
recipeRequiresExperienceAnchor,
isDictateOpeningTag,
type ExperienceAnchorScore,
} from "./experience-anchor.js";
export {
DICTATE_INSERT_TAG_ALIASES,
DICTATE_MULTI_MODULE_REPLY_HINT,
buildDictateInsertFeedback,
buildDictateInsertFeedbackIndex,
formatDictateUserFacingBrief,
lookupDictateInsertFeedback,
resolveModuleForInsertTag,
extractSelfScoreDimensionNames,
type DictateInsertFeedback,
} from "./insert-feedback.js";
export {
applyDictatePlayBind,
bindDictateProductsToPlaySpec,
buildDictateContextOrder,
collectDictateBindProducts,
isExcludedFromPlayBind,
type DictatePlayBindResult,
} from "./play-bind.js";
export {
REPEATABLE_TAG_SEP,
buildRepeatableProductTag,
collectFamilyContents,
dictateProductFamily,
dictateProductSlot,
extractRepeatableSlotFromContent,
isDictateProductFamily,
mergeGenerationRulesArtifacts,
resolveRepeatableInsertTag,
sanitizeRepeatableSlot,
splitConcreteInstanceContents,
} from "./repeatable-tags.js";
export {
VARIABLE_CATALOG_TAG,
parseVariableCatalog,
type VariableCatalogDoc,
} from "../skills/variable-catalog.js";
export {
VALUE_MAP_TAG,
parseValueMapDoc,
lookupValueMapContent,
reprojectValueMaps,
type ValueMapDoc,
} from "../skills/value-map.js";