project-cypher 0.20.0 → 0.21.0

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/bin/cypher.js +1 -0
  2. package/package.json +1 -1
package/bin/cypher.js CHANGED
@@ -392,6 +392,7 @@ const cmds = {
392
392
  let e; try { e = JSON.parse(l); } catch { return; }
393
393
  if (e.type === 'assistant') for (const b of e.message?.content || []) {
394
394
  if (b.type === 'text' && b.text) tx({ ...ctx, type: 'text', text: b.text });
395
+ else if (b.type === 'thinking' && b.thinking) tx({ ...ctx, type: 'thinking', text: String(b.thinking).slice(-600) });
395
396
  else if (b.type === 'tool_use') { const i = b.input || {}; tx({ ...ctx, type: 'tool', name: b.name, summary: String(i.file_path || i.command || i.pattern || i.path || i.url || i.description || '').slice(0, 120) }); }
396
397
  } else if (e.type === 'result') {
397
398
  if (e.session_id) { const k = load(); k.sessions = { ...k.sessions, [proj.id]: e.session_id }; save(k); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-cypher",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Connect your machine's Claude Code projects to the Project Cypher phone app.",
5
5
  "bin": {
6
6
  "cypher": "bin/cypher.js"