@a16njs/ 型号
A16n 的定义和插件接口类型 .
稳定
截止 1.0.0,导出类型和 A16nPlugin 界面是稳定的,并遵循语义化的版本:打破对公共API的修改来撞倒主要版本.
安装
npm install @a16njs/models
使用量
import {
CustomizationType,
type A16nPlugin,
type AgentCustomization,
type GlobalPrompt,
isGlobalPrompt,
createId,
} from '@a16njs/models';
出口
类型
CustomizationType- 定制类型的数字(GlobalPrompt、SimpleAgentSkill、AgentSkillIO、文件规则、AgentIgnore、ManualPrompt)AgentCustomization- 所有定制的基本接口GlobalPrompt- 总是应用的提示SimpleAgentSkill- 通过描述触发背景AgentSkillIO- 具有资源/档案的复杂技能FileRule- 按文件模式触发AgentIgnore- 忽略图案ManualPrompt- 用户提示的提示(例如,/command),存储于.cursor/skills/或者说.claude/skills/与disable-model-invocation: true
插件接口
A16nPlugin- 插件必须执行的接口DiscoveryResult- 发现定制产品的结果EmitResult- 排放定制产品的结果WrittenFile- 有关书面文件的信息
警告
WarningCode- 警告代码数字(Merged、近似、跳过、覆盖)Warning- 警告结构
帮助者
isGlobalPrompt(item)- 全球Prompt的护卫类型isSimpleAgentSkill(item)- 简易代理技能的型式警卫isAgentSkillIO(item)- 特工SkillIO的防守类型isFileRule(item)- 文件规则的护卫类型isAgentIgnore(item)- 特工Ignore的防守类型isManualPrompt(item)- 手动Prompt的护卫类型createId(type, sourcePath)- 创建独特的ID
文档
备有文件全文 https://texarkanine.github.io/a16n/ 模特儿。 。 。 .