@longzai-intelligence-agent-tools/core 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +10 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -114,18 +114,21 @@ declare const IDE_OUTPUT_DIRS: Readonly<Record<AgentType, string>>;
|
|
|
114
114
|
/**
|
|
115
115
|
* 类别产物文件名生成标识后缀
|
|
116
116
|
*
|
|
117
|
-
* sync
|
|
118
|
-
* 使其与手写文件明确区分(根 CLAUDE.md/AGENTS.md 因 IDE 固定识别其名而不加)。
|
|
117
|
+
* sync 生成的所有产物文件名追加此后缀,使其与手写文件明确区分。
|
|
119
118
|
* 如 monorepo-quality-check.md → monorepo-quality-check.generated.md。
|
|
120
119
|
*/
|
|
121
120
|
declare const GENERATED_FILE_SUFFIX: '.generated';
|
|
122
121
|
/**
|
|
123
|
-
*
|
|
122
|
+
* 根指令文件入口引导文本
|
|
124
123
|
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
124
|
+
* 根指令文件(CLAUDE.md / AGENTS.md)生成两份:
|
|
125
|
+
* 1. <原名>.generated.md:真正的合成产物(共同 + 独有内容),文件名带后缀标识。
|
|
126
|
+
* 2. <原名>(如 CLAUDE.md):入口文件,正文为此引导文本,指向对应的 .generated.md。
|
|
127
|
+
*
|
|
128
|
+
* 引导文本由工具固定生成(非真源内容),{{generatedFile}} 占位符替换为 .generated.md 文件名。
|
|
129
|
+
* 入口文件保留原名是因为 IDE 以此为读取入口,实际内容载体是 .generated.md。
|
|
127
130
|
*/
|
|
128
|
-
declare const
|
|
131
|
+
declare const ROOT_ENTRY_TEMPLATE: '必须阅读 {{generatedFile}}。';
|
|
129
132
|
/**
|
|
130
133
|
* 内置合成规则表
|
|
131
134
|
*
|
|
@@ -171,4 +174,4 @@ declare const ENV_KEYS: {
|
|
|
171
174
|
*/
|
|
172
175
|
declare const BUILTIN_PLACEHOLDERS: Readonly<Record<string, () => string>>;
|
|
173
176
|
//#endregion
|
|
174
|
-
export { type AgentToolsConfig, type AgentType, BUILTIN_PLACEHOLDERS, CATEGORY_RULES, COMMON_SOURCE, type Category, type CategoryRule, DEFAULT_SOURCES, ENV_KEYS,
|
|
177
|
+
export { type AgentToolsConfig, type AgentType, BUILTIN_PLACEHOLDERS, CATEGORY_RULES, COMMON_SOURCE, type Category, type CategoryRule, DEFAULT_SOURCES, ENV_KEYS, GENERATED_FILE_SUFFIX, IDE_OUTPUT_DIRS, LZI_DIR, ROOT_ENTRY_TEMPLATE, SYNTHESIS_RULES, type SynthesisMode, type SynthesisRule, VALID_AGENTS, type VendorRule };
|
package/dist/index.js
CHANGED
|
@@ -39,4 +39,4 @@ const e={"agents/agent.md":`# 共同部分
|
|
|
39
39
|
# frontmatter 各 IDE 不同(claude paths / trae alwaysApply+globs),见 docs/vendors/
|
|
40
40
|
`,"skills/.gitkeep":`# 此目录存放技能真源
|
|
41
41
|
# 命名约定:<base>.md(共同)+ <base>.<type>.md(某 IDE 独有)
|
|
42
|
-
`},t=`.lzi`,n=`agents/agent.md`,r={claude:`.claude`,trae:`.trae`,zcode:`.zcode`},i=`.generated`,a
|
|
42
|
+
`},t=`.lzi`,n=`agents/agent.md`,r={claude:`.claude`,trae:`.trae`,zcode:`.zcode`},i=`.generated`,a=`必须阅读 {{generatedFile}}。`,o={claude:[{output:`CLAUDE.md`,commonSource:n,agentSource:`agents/agent.claude.md`}],trae:[{output:`CLAUDE.md`,commonSource:n,agentSource:`agents/agent.claude.md`},{output:`AGENTS.md`,commonSource:n,agentSource:`agents/agent.trae.md`}],zcode:[{output:`AGENTS.md`,commonSource:n,agentSource:`agents/agent.zcode.md`}]},s={commands:{claude:{ideRoot:r.claude,mode:`append`},trae:{ideRoot:r.trae,mode:`append`},zcode:{ideRoot:r.zcode,mode:`append`}},rules:{claude:{ideRoot:r.claude,mode:`prepend`},trae:{ideRoot:r.trae,mode:`prepend`},zcode:{ideRoot:r.zcode,mode:`prepend`}},skills:{claude:{ideRoot:r.claude,mode:`append`},trae:{ideRoot:r.trae,mode:`append`},zcode:{ideRoot:r.zcode,mode:`append`}}},c=[`claude`,`trae`,`zcode`],l={AGENT_TYPE:`LZI_AGENT_TYPE`,PLACEHOLDER_PREFIX:`LZI_PLACEHOLDER_`},u={DATE:()=>new Date().toISOString().slice(0,10),PROJECT_NAME:()=>process.cwd().split(`/`).pop()??``};export{u as BUILTIN_PLACEHOLDERS,s as CATEGORY_RULES,n as COMMON_SOURCE,e as DEFAULT_SOURCES,l as ENV_KEYS,i as GENERATED_FILE_SUFFIX,r as IDE_OUTPUT_DIRS,t as LZI_DIR,a as ROOT_ENTRY_TEMPLATE,o as SYNTHESIS_RULES,c as VALID_AGENTS};
|