sticky-note-cli 3.1.24 → 3.1.25
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/cli.js +40 -0
- package/package.json +1 -1
- package/sticky-server/.wrangler/state/v3/observability/miniflare-wobs-trace-store/a590acd76969f996ec6e4b599c3c09f58c283a76f2d61392b5d3046caf557602.sqlite-shm +0 -0
- package/sticky-server/.wrangler/state/v3/observability/miniflare-wobs-trace-store/a590acd76969f996ec6e4b599c3c09f58c283a76f2d61392b5d3046caf557602.sqlite-wal +0 -0
package/bin/cli.js
CHANGED
|
@@ -1423,6 +1423,46 @@ function cmdUpdate() {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
} catch (_) { /* non-fatal */ }
|
|
1425
1425
|
|
|
1426
|
+
// Create environment directory if missing (idempotent — skips if manifest already exists)
|
|
1427
|
+
const envDir = path.join(stickyDir, "environment");
|
|
1428
|
+
const envManifestDest = path.join(envDir, "manifest.json");
|
|
1429
|
+
mkdirSafe(path.join(envDir, "skills"));
|
|
1430
|
+
mkdirSafe(path.join(envDir, "agents"));
|
|
1431
|
+
mkdirSafe(path.join(envDir, "commands"));
|
|
1432
|
+
if (!fs.existsSync(envManifestDest)) {
|
|
1433
|
+
const detectedServers = Array.from(detectMcpServers().values());
|
|
1434
|
+
const manifestData = { version: "1", mcp_servers: {}, permissions: [], env_vars: {} };
|
|
1435
|
+
for (const server of detectedServers) {
|
|
1436
|
+
const entry = { type: server.type || "stdio", description: server.name, required: false };
|
|
1437
|
+
if (server.command) entry.command = server.command;
|
|
1438
|
+
if (server.args) entry.args = server.args;
|
|
1439
|
+
if (server.env) {
|
|
1440
|
+
entry.env = {};
|
|
1441
|
+
for (const [k] of Object.entries(server.env)) {
|
|
1442
|
+
entry.env[k] = `\${${k}}`;
|
|
1443
|
+
manifestData.env_vars[k] = { description: k, required: true };
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
manifestData.mcp_servers[server.name] = entry;
|
|
1447
|
+
}
|
|
1448
|
+
const detectedSkills = Array.from(detectSkills());
|
|
1449
|
+
for (const skillName of detectedSkills) {
|
|
1450
|
+
const claudeSkillPath = path.join(process.cwd(), ".claude", "plugins");
|
|
1451
|
+
const possibleSkillPaths = [
|
|
1452
|
+
path.join(claudeSkillPath, skillName, "SKILL.md"),
|
|
1453
|
+
path.join(claudeSkillPath, skillName, "skills", skillName, "SKILL.md"),
|
|
1454
|
+
];
|
|
1455
|
+
for (const sp of possibleSkillPaths) {
|
|
1456
|
+
if (fs.existsSync(sp)) {
|
|
1457
|
+
fs.copyFileSync(sp, path.join(envDir, "skills", skillName + ".md"));
|
|
1458
|
+
break;
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
fs.writeFileSync(envManifestDest, JSON.stringify(manifestData, null, 2) + "\n");
|
|
1463
|
+
print(` [OK] Created .sticky-note/environment/ (${detectedServers.length} MCP server(s) detected)`);
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1426
1466
|
print(`\n ✨ Scripts updated to v${VERSION}`);
|
|
1427
1467
|
|
|
1428
1468
|
// Update instruction files (section-based: only replaces between markers)
|
package/package.json
CHANGED
|
Binary file
|