@longzai-intelligence-agent-tools/core 0.0.8 → 0.0.9
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 +1 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -119,13 +119,6 @@ declare const COMMON_SOURCE: 'agents/agent.md';
|
|
|
119
119
|
* IDE 读取指令文件的根目录,源自 docs/vendors/<ide>.md。
|
|
120
120
|
*/
|
|
121
121
|
declare const IDE_OUTPUT_DIRS: Readonly<Record<AgentType, string>>;
|
|
122
|
-
/**
|
|
123
|
-
* 类别产物文件名生成标识后缀
|
|
124
|
-
*
|
|
125
|
-
* sync 生成的所有产物文件名追加此后缀,使其与手写文件明确区分。
|
|
126
|
-
* 如 monorepo-quality-check.md → monorepo-quality-check.generated.md。
|
|
127
|
-
*/
|
|
128
|
-
declare const GENERATED_FILE_SUFFIX: '.generated';
|
|
129
122
|
/**
|
|
130
123
|
* 根指令文件生成区起始标记
|
|
131
124
|
*
|
|
@@ -207,4 +200,4 @@ declare const AUTO_AGENT_KEYWORD: 'auto';
|
|
|
207
200
|
*/
|
|
208
201
|
declare const detectAgentTypes: (projectRoot: string) => Promise<readonly AgentType[]>;
|
|
209
202
|
//#endregion
|
|
210
|
-
export { AUTO_AGENT_KEYWORD, type AgentToolsConfig, type AgentType, BUILTIN_PLACEHOLDERS, CATEGORY_RULES, COMMON_SOURCE, type Category, type CategoryRule, DEFAULT_SOURCES, ENV_KEYS, GENERATED_BLOCK_BEGIN, GENERATED_BLOCK_END,
|
|
203
|
+
export { AUTO_AGENT_KEYWORD, type AgentToolsConfig, type AgentType, BUILTIN_PLACEHOLDERS, CATEGORY_RULES, COMMON_SOURCE, type Category, type CategoryRule, DEFAULT_SOURCES, ENV_KEYS, GENERATED_BLOCK_BEGIN, GENERATED_BLOCK_END, IDE_OUTPUT_DIRS, LZI_DIR, SYNTHESIS_RULES, type SynthesisMode, type SynthesisRule, VALID_AGENTS, type VendorRule, detectAgentTypes };
|
package/dist/index.js
CHANGED
|
@@ -39,4 +39,4 @@ import"./rolldown-runtime-BqT_7tdF.js";import{stat as e}from"node:fs/promises";i
|
|
|
39
39
|
# frontmatter 各 IDE 不同(claude paths / trae alwaysApply+globs),见 docs/vendors/
|
|
40
40
|
`,"skills/.gitkeep":`# 此目录存放技能真源
|
|
41
41
|
# 命名约定:<base>.md(共同)+ <base>.<type>.md(某 IDE 独有)
|
|
42
|
-
`},r=`.lzi`,i=`agents/agent.md`,a={claude:`.claude`,trae:`.trae`,zcode:`.zcode`},o
|
|
42
|
+
`},r=`.lzi`,i=`agents/agent.md`,a={claude:`.claude`,trae:`.trae`,zcode:`.zcode`},o=`<!-- BEGIN Lzi Generated(工具维护,请勿手改;修改请编辑 .lzi/ 真源后运行 sync) -->`,s=`<!-- END Lzi Generated -->`,c={claude:[{output:`CLAUDE.md`,commonSource:i,agentSource:`agents/agent.claude.md`}],trae:[{output:`CLAUDE.md`,commonSource:i,agentSource:`agents/agent.claude.md`},{output:`AGENTS.md`,commonSource:i,agentSource:`agents/agent.trae.md`}],zcode:[{output:`AGENTS.md`,commonSource:i,agentSource:`agents/agent.zcode.md`}]},l={commands:{claude:{ideRoot:a.claude,mode:`append`},trae:{ideRoot:a.trae,mode:`append`},zcode:{ideRoot:a.zcode,mode:`append`}},rules:{claude:{ideRoot:a.claude,mode:`prepend`},trae:{ideRoot:a.trae,mode:`prepend`},zcode:{ideRoot:a.zcode,mode:`prepend`}},skills:{claude:{ideRoot:a.claude,mode:`append`},trae:{ideRoot:a.trae,mode:`append`},zcode:{ideRoot:a.zcode,mode:`append`}}},u=[`claude`,`trae`,`zcode`],d={AGENT_TYPE:`LZI_AGENT_TYPE`,PLACEHOLDER_PREFIX:`LZI_PLACEHOLDER_`},f={DATE:()=>new Date().toISOString().slice(0,10),PROJECT_NAME:()=>process.cwd().split(`/`).pop()??``},p=`auto`,m=async t=>{try{return await e(t),!0}catch{return!1}},h=async e=>{let n=t(e,r);if(!await m(n))return[];let i=[];for(let e of u){let r=c[e];(await Promise.all(r.map(async e=>m(t(n,e.agentSource))))).some(e=>e)&&i.push(e)}return i};export{p as AUTO_AGENT_KEYWORD,f as BUILTIN_PLACEHOLDERS,l as CATEGORY_RULES,i as COMMON_SOURCE,n as DEFAULT_SOURCES,d as ENV_KEYS,o as GENERATED_BLOCK_BEGIN,s as GENERATED_BLOCK_END,a as IDE_OUTPUT_DIRS,r as LZI_DIR,c as SYNTHESIS_RULES,u as VALID_AGENTS,h as detectAgentTypes};
|