@nokai/cli 1.2.4 → 1.2.6

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.
@@ -8,5 +8,5 @@ export declare const idToolDefinition: {
8
8
  required: string[];
9
9
  };
10
10
  };
11
- export declare function handleId(profile: AgentProfile, sessionId: string, sessionName: string): string;
11
+ export declare function handleId(profile: AgentProfile, _sessionId: string, sessionName: string): string;
12
12
  //# sourceMappingURL=id.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/tools/id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,eAAO,MAAM,gBAAgB;;;;;;kBAOT,MAAM,EAAE;;CAE3B,CAAC;AAEF,wBAAgB,QAAQ,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAW9F"}
1
+ {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../src/tools/id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,eAAO,MAAM,gBAAgB;;;;;;kBAOT,MAAM,EAAE;;CAE3B,CAAC;AAEF,wBAAgB,QAAQ,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAW/F"}
package/dist/tools/id.js CHANGED
@@ -4,21 +4,21 @@ exports.idToolDefinition = void 0;
4
4
  exports.handleId = handleId;
5
5
  exports.idToolDefinition = {
6
6
  name: "nokai_id",
7
- description: "Show your NokAI ID and current session. Share your ID with teammates so they can connect to you.",
7
+ description: "Show NokAI status and guide the user. Call when user says 'nokai', asks about setup, or wants to know what they can do. Present the response exactly as returned — it's written for the end user.",
8
8
  inputSchema: {
9
9
  type: "object",
10
10
  properties: {},
11
11
  required: [],
12
12
  },
13
13
  };
14
- function handleId(profile, sessionId, sessionName) {
15
- return (`## Your NokAI Identity\n\n` +
16
- `**NokAI ID:** ${profile.nokaiId}\n` +
17
- `**Agent Name:** ${profile.name}\n` +
18
- `**Session:** ${sessionName} (${sessionId})\n\n` +
19
- `### Connect with a teammate\n` +
20
- `Share your NokAI ID. They use: \`nokai_connect mode=teammate id=${profile.nokaiId}\`\n\n` +
21
- `### Connect to your own other project\n` +
22
- `Use: \`nokai_connect mode=self\` to see your other active sessions.`);
14
+ function handleId(profile, _sessionId, sessionName) {
15
+ return (`NokAI is active on this project.\n\n` +
16
+ `Your NokAI ID is **${profile.nokaiId}** and this session is **${sessionName}**.\n\n` +
17
+ `Here's what you can do:\n\n` +
18
+ `1. **Connect to a teammate** — Give them your ID \`${profile.nokaiId}\` or ask for theirs, then say "connect to [their ID]"\n` +
19
+ `2. **Connect your own projects** — If you have another project open with NokAI, just say "connect to my other project"\n` +
20
+ `3. **Ask a connected peer** Once connected, say "ask [peer] about [question]"\n` +
21
+ `4. **Share files** Say "share [file] with [peer]"\n\n` +
22
+ `What would you like to do?`);
23
23
  }
24
24
  //# sourceMappingURL=id.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"id.js","sourceRoot":"","sources":["../../src/tools/id.ts"],"names":[],"mappings":";;;AAaA,4BAWC;AAtBY,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,UAAU;IAChB,WAAW,EACT,kGAAkG;IACpG,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAc;KACzB;CACF,CAAC;AAEF,SAAgB,QAAQ,CAAC,OAAqB,EAAE,SAAiB,EAAE,WAAmB;IACpF,OAAO,CACL,4BAA4B;QAC5B,iBAAiB,OAAO,CAAC,OAAO,IAAI;QACpC,mBAAmB,OAAO,CAAC,IAAI,IAAI;QACnC,gBAAgB,WAAW,KAAK,SAAS,OAAO;QAChD,+BAA+B;QAC/B,mEAAmE,OAAO,CAAC,OAAO,QAAQ;QAC1F,yCAAyC;QACzC,qEAAqE,CACtE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"id.js","sourceRoot":"","sources":["../../src/tools/id.ts"],"names":[],"mappings":";;;AAaA,4BAWC;AAtBY,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,UAAU;IAChB,WAAW,EACT,mMAAmM;IACrM,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAc;KACzB;CACF,CAAC;AAEF,SAAgB,QAAQ,CAAC,OAAqB,EAAE,UAAkB,EAAE,WAAmB;IACrF,OAAO,CACL,sCAAsC;QACtC,sBAAsB,OAAO,CAAC,OAAO,4BAA4B,WAAW,SAAS;QACrF,6BAA6B;QAC7B,sDAAsD,OAAO,CAAC,OAAO,0DAA0D;QAC/H,0HAA0H;QAC1H,mFAAmF;QACnF,yDAAyD;QACzD,4BAA4B,CAC7B,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nokai/cli",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "NokAI — Connecting AIs. Peer-to-peer communication between AI coding assistants via MCP.",
5
5
  "private": false,
6
6
  "main": "dist/index.js",