@cg3/equip 0.2.20 → 0.2.21
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/demo/setup.js +16 -8
- package/package.json +1 -1
package/demo/setup.js
CHANGED
|
@@ -51,7 +51,7 @@ const platformOverride = args.includes("--platform")
|
|
|
51
51
|
// This is the core configuration. Replace these values with
|
|
52
52
|
// your actual MCP server details.
|
|
53
53
|
|
|
54
|
-
const TOOL_NAME = "
|
|
54
|
+
const TOOL_NAME = "acme-docs"; // Name in MCP config files
|
|
55
55
|
const SERVER_URL = "https://api.example.com/mcp"; // Your MCP endpoint
|
|
56
56
|
const RULES_VERSION = "0.1.0"; // Bump when rules content changes
|
|
57
57
|
|
|
@@ -65,14 +65,14 @@ const RULES_VERSION = "0.1.0"; // Bump when rules content changes
|
|
|
65
65
|
// <!-- /marker -->
|
|
66
66
|
|
|
67
67
|
const RULES_CONTENT = `<!-- ${TOOL_NAME}:v${RULES_VERSION} -->
|
|
68
|
-
##
|
|
68
|
+
## Acme Docs — Agent Instructions
|
|
69
69
|
|
|
70
|
-
When
|
|
71
|
-
1.
|
|
72
|
-
2.
|
|
73
|
-
3.
|
|
70
|
+
When working with Acme APIs or libraries:
|
|
71
|
+
1. Use the acme-docs tool to look up current API signatures before guessing
|
|
72
|
+
2. Check for deprecation notices — Acme ships breaking changes quarterly
|
|
73
|
+
3. Prefer the code examples from acme-docs over generic web search results
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
The tool returns versioned docs matching your project's dependency version.
|
|
76
76
|
<!-- /${TOOL_NAME} -->`;
|
|
77
77
|
|
|
78
78
|
// ─── 4. Create the Equip instance ───────────────────────────
|
|
@@ -281,7 +281,15 @@ async function runInstall() {
|
|
|
281
281
|
cli.ok(`${platformName(p.platform)} → rules updated`);
|
|
282
282
|
break;
|
|
283
283
|
case "skipped":
|
|
284
|
-
|
|
284
|
+
// "skipped" can mean two things:
|
|
285
|
+
// 1. Rules already at this version (rulesPath exists, marker version matches)
|
|
286
|
+
// 2. Platform has no writable rules path (rulesPath is null)
|
|
287
|
+
// Distinguish them so the output isn't misleading.
|
|
288
|
+
if (p.rulesPath) {
|
|
289
|
+
cli.info(`${platformName(p.platform)} → already current`);
|
|
290
|
+
} else {
|
|
291
|
+
cli.info(`${platformName(p.platform)} → no rules path (MCP-only platform)`);
|
|
292
|
+
}
|
|
285
293
|
break;
|
|
286
294
|
case "clipboard":
|
|
287
295
|
cli.info(`${platformName(p.platform)} → copied to clipboard (paste into settings)`);
|