cli-setu 0.2.9 → 0.3.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 (3) hide show
  1. package/bin/setu.js +11 -2
  2. package/package.json +1 -1
  3. package/src/pair.js +1 -15
package/bin/setu.js CHANGED
@@ -49,8 +49,16 @@ async function main() {
49
49
  if (isSubcommand) {
50
50
  switch (firstArg) {
51
51
  case 'pair': {
52
+ // Real product ask (PM report): a first-time user had to run
53
+ // `cli-setu pair` then separately `cli-setu` to actually start a
54
+ // session - two commands where one would do, and the phone had
55
+ // nothing to show (no session yet) right after pairing. Matches
56
+ // bare `cli-setu`'s own already-correct behavior below: pair (if
57
+ // needed), then immediately start watching THIS folder as a
58
+ // session, same single-step flow either way now.
52
59
  const { pair } = require('../src/pair');
53
60
  await pair(AUTH_SERVER, AUTH_SERVER_PUBLIC);
61
+ require('../src/supervisor');
54
62
  return;
55
63
  }
56
64
  case 'status': {
@@ -91,7 +99,7 @@ async function main() {
91
99
  const config = readConfig();
92
100
  if (!config || !config.deviceToken) {
93
101
  const { pair } = require('../src/pair');
94
- await pair(AUTH_SERVER, AUTH_SERVER_PUBLIC, { standalone: false });
102
+ await pair(AUTH_SERVER, AUTH_SERVER_PUBLIC);
95
103
  }
96
104
  require('../src/supervisor');
97
105
  }
@@ -104,7 +112,8 @@ Usage:
104
112
  cli-setu --cli <name> Same, but run a specific CLI inside the bridged
105
113
  session instead of the default plain shell
106
114
  (e.g. --cli claude, --cli codex)
107
- cli-setu pair Pair this computer with your phone, nothing else
115
+ cli-setu pair Pair this computer with your phone, then watch
116
+ this folder as a session (same as bare cli-setu)
108
117
  cli-setu status Show pairing status and any sessions running now
109
118
  cli-setu stop Stop every session running on this computer
110
119
  cli-setu stop <sessionId> Stop just one session (see \`cli-setu status\`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cli-setu",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
4
4
  "description": "Bridge your terminal to your phone — run and approve Claude Code, Codex CLI and other AI coding agents from anywhere.",
5
5
  "type": "commonjs",
6
6
  "bin": {
package/src/pair.js CHANGED
@@ -8,7 +8,7 @@ const qrcode = require('qrcode-terminal');
8
8
  const { loadOrCreateConfig, writeConfig, hasKeypair } = require('./config');
9
9
  const { generateKeypair, publicKeyToBase64, privateKeyToBase64 } = require('./crypto');
10
10
 
11
- async function pair(authServer, authServerPublic, { standalone = true } = {}) {
11
+ async function pair(authServer, authServerPublic) {
12
12
  const config = loadOrCreateConfig();
13
13
 
14
14
  // Section 1 E2E: generate this device's own keypair up front, before
@@ -125,20 +125,6 @@ async function pair(authServer, authServerPublic, { standalone = true } = {}) {
125
125
  }
126
126
  }
127
127
 
128
- // Real gap found by testing (PM report): a first-time user had no clear
129
- // next step after pairing succeeded - pairing a device and starting a
130
- // real terminal session are deliberately separate commands (one laptop
131
- // can run several sessions, switch CLIs across restarts, etc.), but
132
- // nothing here ever told a first-time user that distinction, or what
133
- // to actually type next. Only shown for an explicit, standalone
134
- // `cli-setu pair` - bin/setu.js's own bare-`cli-setu` flow calls this
135
- // function too (auto-pairing an unpaired machine before immediately
136
- // starting a session right after), where this message would be
137
- // immediately followed by the session actually starting anyway.
138
- if (standalone) {
139
- console.log('[cli-setu] Run `cli-setu` in a project folder to start your first session.');
140
- }
141
-
142
128
  return config;
143
129
  }
144
130