patchcord 0.4.2 → 0.4.3
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/bin/patchcord.mjs +11 -11
- package/package.json +1 -1
package/bin/patchcord.mjs
CHANGED
|
@@ -185,12 +185,12 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
185
185
|
let cursorChanged = false;
|
|
186
186
|
if (!existsSync(cursorSkillDir)) {
|
|
187
187
|
mkdirSync(cursorSkillDir, { recursive: true });
|
|
188
|
-
cpSync(join(pluginRoot, "skills", "
|
|
188
|
+
cpSync(join(pluginRoot, "skills", "inbox", "SKILL.md"), join(cursorSkillDir, "SKILL.md"));
|
|
189
189
|
cursorChanged = true;
|
|
190
190
|
}
|
|
191
191
|
if (!existsSync(cursorWaitDir)) {
|
|
192
192
|
mkdirSync(cursorWaitDir, { recursive: true });
|
|
193
|
-
cpSync(join(pluginRoot, "skills", "
|
|
193
|
+
cpSync(join(pluginRoot, "skills", "wait", "SKILL.md"), join(cursorWaitDir, "SKILL.md"));
|
|
194
194
|
cursorChanged = true;
|
|
195
195
|
}
|
|
196
196
|
if (cursorChanged) globalChanges.push("Cursor skills installed");
|
|
@@ -203,12 +203,12 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
203
203
|
let windsurfChanged = false;
|
|
204
204
|
if (!existsSync(windsurfSkillDir)) {
|
|
205
205
|
mkdirSync(windsurfSkillDir, { recursive: true });
|
|
206
|
-
cpSync(join(pluginRoot, "skills", "
|
|
206
|
+
cpSync(join(pluginRoot, "skills", "inbox", "SKILL.md"), join(windsurfSkillDir, "SKILL.md"));
|
|
207
207
|
windsurfChanged = true;
|
|
208
208
|
}
|
|
209
209
|
if (!existsSync(windsurfWaitDir)) {
|
|
210
210
|
mkdirSync(windsurfWaitDir, { recursive: true });
|
|
211
|
-
cpSync(join(pluginRoot, "skills", "
|
|
211
|
+
cpSync(join(pluginRoot, "skills", "wait", "SKILL.md"), join(windsurfWaitDir, "SKILL.md"));
|
|
212
212
|
windsurfChanged = true;
|
|
213
213
|
}
|
|
214
214
|
if (windsurfChanged) globalChanges.push("Windsurf skills installed");
|
|
@@ -222,12 +222,12 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
222
222
|
let geminiChanged = false;
|
|
223
223
|
if (!existsSync(geminiSkillDir)) {
|
|
224
224
|
mkdirSync(geminiSkillDir, { recursive: true });
|
|
225
|
-
cpSync(join(pluginRoot, "skills", "
|
|
225
|
+
cpSync(join(pluginRoot, "skills", "inbox", "SKILL.md"), join(geminiSkillDir, "SKILL.md"));
|
|
226
226
|
geminiChanged = true;
|
|
227
227
|
}
|
|
228
228
|
if (!existsSync(geminiWaitDir)) {
|
|
229
229
|
mkdirSync(geminiWaitDir, { recursive: true });
|
|
230
|
-
cpSync(join(pluginRoot, "skills", "
|
|
230
|
+
cpSync(join(pluginRoot, "skills", "wait", "SKILL.md"), join(geminiWaitDir, "SKILL.md"));
|
|
231
231
|
geminiChanged = true;
|
|
232
232
|
}
|
|
233
233
|
if (!existsSync(join(geminiCmdDir, "inbox.toml"))) {
|
|
@@ -779,8 +779,8 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
779
779
|
const agWaitDir = join(agDir, "skills", "patchcord-wait");
|
|
780
780
|
mkdirSync(agSkillDir, { recursive: true });
|
|
781
781
|
mkdirSync(agWaitDir, { recursive: true });
|
|
782
|
-
cpSync(join(pluginRoot, "skills", "
|
|
783
|
-
cpSync(join(pluginRoot, "skills", "
|
|
782
|
+
cpSync(join(pluginRoot, "skills", "inbox", "SKILL.md"), join(agSkillDir, "SKILL.md"));
|
|
783
|
+
cpSync(join(pluginRoot, "skills", "wait", "SKILL.md"), join(agWaitDir, "SKILL.md"));
|
|
784
784
|
console.log(` ${green}✓${r} Skills installed: ${dim}patchcord${r}, ${dim}patchcord-wait${r}`);
|
|
785
785
|
console.log(` ${yellow}Global config — all Antigravity projects share this agent.${r}`);
|
|
786
786
|
} else if (isCline) {
|
|
@@ -883,7 +883,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
883
883
|
const waitDest = join(cwd, ".agents", "skills", "patchcord-wait");
|
|
884
884
|
mkdirSync(waitDest, { recursive: true });
|
|
885
885
|
writeFileSync(join(waitDest, "SKILL.md"),
|
|
886
|
-
readFileSync(join(pluginRoot, "skills", "
|
|
886
|
+
readFileSync(join(pluginRoot, "skills", "wait", "SKILL.md"), "utf-8"));
|
|
887
887
|
|
|
888
888
|
const codexDir = join(cwd, ".codex");
|
|
889
889
|
mkdirSync(codexDir, { recursive: true });
|
|
@@ -945,7 +945,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
945
945
|
writeFileSync(join(pluginDir, "skills", "patchcord", "SKILL.md"),
|
|
946
946
|
readFileSync(join(pluginRoot, "per-project-skills", "codex", "SKILL.md"), "utf-8"));
|
|
947
947
|
writeFileSync(join(pluginDir, "skills", "patchcord-wait", "SKILL.md"),
|
|
948
|
-
readFileSync(join(pluginRoot, "skills", "
|
|
948
|
+
readFileSync(join(pluginRoot, "skills", "wait", "SKILL.md"), "utf-8"));
|
|
949
949
|
|
|
950
950
|
// Personal marketplace entry (relative path from marketplace root)
|
|
951
951
|
const marketplacePath = join(marketplaceDir, "marketplace.json");
|
|
@@ -971,7 +971,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
971
971
|
const globalWaitDir = join(homedir(), ".agents", "skills", "patchcord-wait");
|
|
972
972
|
mkdirSync(globalWaitDir, { recursive: true });
|
|
973
973
|
writeFileSync(join(globalWaitDir, "SKILL.md"),
|
|
974
|
-
readFileSync(join(pluginRoot, "skills", "
|
|
974
|
+
readFileSync(join(pluginRoot, "skills", "wait", "SKILL.md"), "utf-8"));
|
|
975
975
|
|
|
976
976
|
console.log(`\n ${green}✓${r} Codex configured: ${dim}${configPath}${r}`);
|
|
977
977
|
console.log(` ${green}✓${r} Plugin installed: ${dim}@patchcord${r}, ${dim}@patchcord-wait${r}`);
|