project-cypher 0.6.1 → 0.7.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
@@ -123,6 +123,7 @@ const cmds = {
123
123
  if (!proj) return tx({ ...ctx, type: 'error', message: 'unknown project' });
124
124
  if (runs.has(proj.id)) return tx({ ...ctx, type: 'error', message: 'Claude is still working on this project.' });
125
125
  const cfg = load(); const args = ['-p', m.text, '--output-format', 'stream-json', '--verbose', '--permission-mode', cfg.permissionMode || 'acceptEdits'];
126
+ if (typeof m.model === 'string' && /^[a-z][a-z0-9.\-\[\]]{0,60}$/i.test(m.model) && m.model !== 'default') args.push('--model', m.model);
126
127
  if (cfg.sessions?.[proj.id]) args.push('--resume', cfg.sessions[proj.id]);
127
128
  console.log(`[${proj.id}] ${m.text.slice(0, 60)}`);
128
129
  const ch = spawn('claude', args, { cwd: proj.path, stdio: ['ignore', 'pipe', 'pipe'] }); runs.set(proj.id, ch);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-cypher",
3
- "version": "0.6.1",
3
+ "version": "0.7.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"