@agentvalet/register 0.4.18 → 0.4.20

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.
Files changed (2) hide show
  1. package/dist/index.js +37 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1552,6 +1552,24 @@ async function registerAgentFlow(apiKey, ownerId) {
1552
1552
  );
1553
1553
  console.log(chalk7.dim(" Approve this agent in your dashboard to activate it."));
1554
1554
  console.log("");
1555
+ if (shouldSetup) {
1556
+ if (detected.claudeCode) {
1557
+ console.log(chalk7.yellow(" \u26A0 Claude Code: project MCPs require trust on first run."));
1558
+ console.log(chalk7.dim(" In your Claude Code session, run: /mcp"));
1559
+ console.log(chalk7.dim(' Approve "agentvalet" to load the tools.'));
1560
+ console.log("");
1561
+ }
1562
+ if (detected.cursor) {
1563
+ console.log(chalk7.dim(" Cursor: restart Cursor (or reopen the workspace) to pick up the MCP."));
1564
+ }
1565
+ if (detected.factoryDroid) {
1566
+ console.log(chalk7.dim(" Factory Droid: restart Factory to pick up the MCP."));
1567
+ }
1568
+ if (detected.codex) {
1569
+ console.log(chalk7.dim(" Codex CLI: start a new codex session to pick up the MCP."));
1570
+ }
1571
+ console.log("");
1572
+ }
1555
1573
  console.log(" Useful commands:");
1556
1574
  console.log(chalk7.dim(" npx @agentvalet/register \u2014 register another agent"));
1557
1575
  console.log(chalk7.dim(" npx @agentvalet/register refresh \u2014 refresh approved permissions"));
@@ -1865,14 +1883,7 @@ function cleanLocally() {
1865
1883
  removed.push(abs);
1866
1884
  }
1867
1885
  };
1868
- if (existsSync7(AGENT_KEY_PATH)) {
1869
- rmSync(AGENT_KEY_PATH, { force: true });
1870
- removed.push(AGENT_KEY_PATH);
1871
- }
1872
- try {
1873
- clearConfig();
1874
- } catch {
1875
- }
1886
+ rAbs(AGENT_DIR);
1876
1887
  r(".env.agentvalet");
1877
1888
  r(".agentvalet");
1878
1889
  r("agentvalet.key");
@@ -2185,6 +2196,24 @@ function installCommand() {
2185
2196
  console.log(` Key path: ${chalk12.dim(AGENT_KEY_PATH)}`);
2186
2197
  console.log(` Proxy: ${chalk12.dim(proxy_url)}`);
2187
2198
  console.log("");
2199
+ if (opts.frameworks !== false) {
2200
+ const detected = detectFrameworks();
2201
+ if (detected.claudeCode) {
2202
+ console.log(chalk12.yellow(" \u26A0 Claude Code: project MCPs require trust on first run."));
2203
+ console.log(chalk12.dim(" In your Claude Code session, run: /mcp"));
2204
+ console.log(chalk12.dim(' Approve "agentvalet" to load the tools.'));
2205
+ console.log("");
2206
+ }
2207
+ if (detected.cursor) {
2208
+ console.log(chalk12.dim(" Cursor: restart Cursor (or reopen the workspace) to pick up the MCP."));
2209
+ }
2210
+ if (detected.factoryDroid) {
2211
+ console.log(chalk12.dim(" Factory Droid: restart Factory to pick up the MCP."));
2212
+ }
2213
+ if (detected.codex) {
2214
+ console.log(chalk12.dim(" Codex CLI: start a new codex session to pick up the MCP."));
2215
+ }
2216
+ }
2188
2217
  console.log(` Dashboard: ${chalk12.cyan.underline("https://app.agentvalet.ai/agents/" + agent_id)}`);
2189
2218
  console.log("");
2190
2219
  process.exit(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentvalet/register",
3
- "version": "0.4.18",
3
+ "version": "0.4.20",
4
4
  "description": "Self-register AI agents with AgentValet",
5
5
  "type": "module",
6
6
  "bin": {