Repository navigation
Expand file tree
/
Copy pathmap.json
More file actions
175 lines (175 loc) · 4.48 KB
/
Copy pathmap.json
File metadata and controls
175 lines (175 loc) · 4.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"version": 3,
"manifest": {
"from": ".cursor-plugin/plugin.json",
"keep": [
"name",
"version",
"description",
"author",
"homepage",
"repository",
"license",
"keywords"
],
"add": {
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json"
},
"dropToExtension": [
"displayName",
"logo",
"category",
"tags",
"skills",
"agents"
],
"extension": {
"namespace": "com.cursor",
"file": "plugin.json"
}
},
"frontmatter": {
"name": "lowercase+equalDirname",
"moveToMetadata": {
"mode": "mode: session",
"reminder": "reminder",
"is_background": "is_background"
},
"keep": [
"disable-model-invocation"
],
"drop": [
"icon",
"color"
]
},
"bodyTokens": [
{
"find": "AskQuestion",
"replace": "结构化提问(问题数组 + 选项 + 多选)",
"note": "四端等价表见 MAPPING.md"
},
{
"find": "subagent_type: \"poteto-agent\"",
"replace": "以类型名 poteto-agent 委派子代理",
"note": "agent 注册表见 agents/"
},
{
"find": "subagent_type: \"Comment Sicko\"",
"replace": "子代理类型: \"comment-sicko\"",
"note": "与 agents/comment-sicko.md 的注册名对齐;须排在裸 subagent_type 之前"
},
{
"find": "/loop",
"replace": "循环执行直到谓词满足(间隔唤醒)",
"pattern": "(?<![\\w./-])/loop(?![\\w-])",
"note": "等价:CC/Cursor /loop,Codex 后台模式,其他 CLI harness goal/ralph。pattern 由变换与门共用,避免散文里的导入路径被改坏"
},
{
"find": "~/.cursor/rules/pstack-models.mdc",
"replace": "pstack-models.json",
"note": "全路径形态;必须排在裸文件名形态之前"
},
{
"find": "pstack-models.mdc",
"replace": "pstack-models.json",
"note": "裸文件名形态"
},
{
"find": "cursor-team-kit",
"replace": "可选组件(由上游配套插件提供,本包未捆绑;请按所用客户端的等价组件选用)"
},
{
"find": "subagent_type",
"replace": "子代理类型"
},
{
"find": "generalPurpose",
"replace": "通用型子代理"
},
{
"find": "~/.cursor/skills",
"replace": "~/.agents/skills"
},
{
"find": ".cursor/skills",
"replace": ".agents/skills"
},
{
"find": "~/.cursor/projects",
"replace": "会话转录目录"
},
{
"find": "~/.cursor/plugins",
"replace": "插件安装目录"
},
{
"find": ".cursor/worktrees",
"replace": "worktree 目录"
},
{
"find": "agent-transcripts",
"replace": "session-transcripts"
},
{
"find": "https://api2.cursor.sh/automations/webhook/",
"replace": "(Cursor 专属端点;等价做法:改用目标应用的 webhook 接收端点)"
}
],
"residualPatterns": [
"mode: true",
"icon: crown",
"color: yellow",
"pstack-models\\.mdc",
"\\.cursor/(projects|plugins|worktrees|skills|rules)",
"api2\\.cursor\\.sh"
],
"gate": {
"proseExtensions": [
".md"
],
"note": "散文/代码分界的唯一来源:transform 只改写这些扩展名,gate1 对其余文本文件只查 residualPatterns"
},
"codeResidualAllowlist": [
{
"glob": "skills/**",
"scope": "code",
"patterns": [
"\\.cursor/(projects|plugins|worktrees|skills|rules)"
],
"reason": "技能内的脚本按设计不做散文式替换,Cursor 路径在其中是功能性字符串常量;按类整体登记,新增脚本不必逐条登记。api2.cursor.sh 与 pstack-models.mdc 不在豁免内,任何文件命中都判失败"
}
],
"apContract": {
"source": "agent-plugins.org schemas/1.0.0/plugin.schema.json (draft 2020-12; additionalProperties: false)",
"schemaId": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"allowedKeys": [
"$schema",
"name",
"version",
"description",
"author",
"homepage",
"repository",
"license",
"keywords",
"extensions"
],
"requiredKeys": [
"$schema",
"name"
],
"namePattern": "^(?!.*(?:--|\\.\\.))[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$",
"maxNameLength": 64,
"authorKeys": [
"name",
"email",
"url"
]
},
"agents": {
"policy": "registry",
"dir": "agents/"
},
"sampleSkills": []
}