patchcord 0.6.1 → 0.6.2
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
CHANGED
|
@@ -1889,6 +1889,28 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
} catch {}
|
|
1891
1891
|
}
|
|
1892
|
+
// Older installers seeded Antigravity-only skills globally, and the
|
|
1893
|
+
// Antigravity CLI caches each MCP server's tools/instructions globally.
|
|
1894
|
+
// Both survive removal of the global mcp_config entry and can make a bare
|
|
1895
|
+
// agy session synthesize an unconditional Patchcord rule in every folder.
|
|
1896
|
+
// Antigravity is project-scoped, so remove only Patchcord's stale global
|
|
1897
|
+
// artifacts; other MCP servers and Antigravity state stay untouched.
|
|
1898
|
+
const staleAntigravityPatchcord = [
|
|
1899
|
+
join(HOME, ".gemini", "antigravity", "skills", "patchcord"),
|
|
1900
|
+
join(HOME, ".gemini", "antigravity", "skills", "patchcord-wait"),
|
|
1901
|
+
join(HOME, ".gemini", "antigravity-cli", "skills", "patchcord"),
|
|
1902
|
+
join(HOME, ".gemini", "antigravity-cli", "skills", "patchcord-wait"),
|
|
1903
|
+
join(HOME, ".gemini", "antigravity-cli", "mcp", "patchcord"),
|
|
1904
|
+
];
|
|
1905
|
+
let removedStaleAntigravity = false;
|
|
1906
|
+
for (const stale of staleAntigravityPatchcord) {
|
|
1907
|
+
if (existsSync(stale)) {
|
|
1908
|
+
try { rmSync(stale, { recursive: true, force: true }); removedStaleAntigravity = true; } catch {}
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
if (removedStaleAntigravity) {
|
|
1912
|
+
globalChanges.push("Removed stale global Antigravity Patchcord instructions (agy is per-project)");
|
|
1913
|
+
}
|
|
1892
1914
|
// true = configured, false = file absent (definitely not), null = unparseable (unknown)
|
|
1893
1915
|
const hasPatchcordMcp = (p, keyPath) => {
|
|
1894
1916
|
if (!existsSync(p)) return false;
|
package/package.json
CHANGED
|
@@ -5,6 +5,12 @@ description: Read Patchcord inbox and reply to messages
|
|
|
5
5
|
|
|
6
6
|
Run this with `/skill:patchcord-inbox`. (Kimi Code has no `/flow:` — `/skill:` injects this as a prompt and you act on it.)
|
|
7
7
|
|
|
8
|
+
## Applies only when Patchcord MCP tools are loaded
|
|
9
|
+
|
|
10
|
+
If the `inbox` MCP tool is not available in this session, this skill does not
|
|
11
|
+
apply. Do nothing: do not run the Patchcord CLI, read a token from a config
|
|
12
|
+
file, or call the HTTP API. A missing project MCP config is a normal state.
|
|
13
|
+
|
|
8
14
|
Call the `inbox` MCP tool now. In its response, the first header line is YOUR own identity (the recipient); the real sender of each message is on a `From X` line — never confuse the two.
|
|
9
15
|
|
|
10
16
|
For each pending message, classify it and act:
|
|
@@ -5,6 +5,12 @@ description: Start the Patchcord background polling listener
|
|
|
5
5
|
|
|
6
6
|
Run this with `/skill:patchcord-subscribe`. (Kimi Code has no `/flow:` — `/skill:` injects this as a prompt and you act on it.)
|
|
7
7
|
|
|
8
|
+
## Applies only when Patchcord MCP tools are loaded
|
|
9
|
+
|
|
10
|
+
If the `inbox` MCP tool is not available in this session, this skill does not
|
|
11
|
+
apply. Do nothing: do not run the Patchcord CLI, read a token from a config
|
|
12
|
+
file, or call the HTTP API. A missing project MCP config is a normal state.
|
|
13
|
+
|
|
8
14
|
First, call the `inbox` MCP tool and DRAIN every pending message before starting the listener (the listener exits immediately if messages are already waiting). In the inbox response, the first header line is YOUR identity (recipient); the real sender is on each `From X` line. For each message:
|
|
9
15
|
- **ACK** (thanks, noted, works, ok, 👍) → `reply(message_id, resolve=true)`, no content.
|
|
10
16
|
- **BLOCKED** → `reply(message_id, "<reason>", defer=true)`.
|
|
@@ -5,6 +5,12 @@ description: Wait for one incoming Patchcord message
|
|
|
5
5
|
|
|
6
6
|
Run this with `/skill:patchcord-wait`. (Kimi Code has no `/flow:` — `/skill:` injects this as a prompt and you act on it.)
|
|
7
7
|
|
|
8
|
+
## Applies only when Patchcord MCP tools are loaded
|
|
9
|
+
|
|
10
|
+
If the `wait_for_message` MCP tool is not available in this session, this skill
|
|
11
|
+
does not apply. Do nothing: do not run the Patchcord CLI, read a token from a
|
|
12
|
+
config file, or call the HTTP API. A missing project MCP config is a normal state.
|
|
13
|
+
|
|
8
14
|
Call the `wait_for_message` MCP tool now to block until a message arrives or ~5 minutes elapse.
|
|
9
15
|
|
|
10
16
|
When a message arrives, classify it and act:
|