cursorconnect 0.1.10 → 0.1.12

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 (45) hide show
  1. package/bridge-runtime/connector-version.json +1 -1
  2. package/bridge-runtime/dist/agent-title-match.d.ts +4 -0
  3. package/bridge-runtime/dist/agent-title-match.js +61 -1
  4. package/bridge-runtime/dist/cdp-bridge.js +2 -1
  5. package/bridge-runtime/dist/chat-sync.js +3 -0
  6. package/bridge-runtime/dist/command-executor.d.ts +2 -0
  7. package/bridge-runtime/dist/command-executor.js +85 -56
  8. package/bridge-runtime/dist/composer-images.js +23 -6
  9. package/bridge-runtime/dist/cursor-window-kind.d.ts +10 -0
  10. package/bridge-runtime/dist/cursor-window-kind.js +10 -0
  11. package/bridge-runtime/dist/dom-extractor.d.ts +1 -1
  12. package/bridge-runtime/dist/dom-extractor.js +0 -1
  13. package/bridge-runtime/dist/editor-chat-list.d.ts +6 -0
  14. package/bridge-runtime/dist/editor-chat-list.js +79 -0
  15. package/bridge-runtime/dist/editor-list-sync.d.ts +3 -0
  16. package/bridge-runtime/dist/editor-list-sync.js +11 -0
  17. package/bridge-runtime/dist/editor-tab-focus-dom.d.ts +8 -0
  18. package/bridge-runtime/dist/editor-tab-focus-dom.js +80 -0
  19. package/bridge-runtime/dist/extract-page.d.ts +1 -1
  20. package/bridge-runtime/dist/extract-page.js +177 -30
  21. package/bridge-runtime/dist/generation-stop-dom.d.ts +5 -0
  22. package/bridge-runtime/dist/generation-stop-dom.js +67 -0
  23. package/bridge-runtime/dist/index.js +2 -0
  24. package/bridge-runtime/dist/queue-remove-dom.d.ts +11 -0
  25. package/bridge-runtime/dist/queue-remove-dom.js +88 -0
  26. package/bridge-runtime/dist/relay-upstream.js +2 -0
  27. package/bridge-runtime/dist/relay.js +35 -15
  28. package/bridge-runtime/dist/state-manager.d.ts +1 -1
  29. package/bridge-runtime/dist/types.d.ts +14 -0
  30. package/bridge-runtime/dist/window-monitor.js +6 -0
  31. package/bridge-runtime/selectors.json +8 -1
  32. package/dist/bridge-build.js +2 -1
  33. package/dist/bundled-bridge-check.js +2 -3
  34. package/dist/diagnose.js +26 -23
  35. package/dist/i18n.js +50 -0
  36. package/dist/index.js +31 -47
  37. package/dist/launch.js +9 -8
  38. package/dist/print-pairing.js +8 -7
  39. package/dist/run-service.js +5 -4
  40. package/dist/startup-check.js +32 -23
  41. package/dist/version-check.js +7 -3
  42. package/locales/en.json +128 -0
  43. package/locales/ru.json +128 -0
  44. package/package.json +2 -1
  45. package/version-policy.json +5 -5
@@ -1,5 +1,6 @@
1
1
  import { existsSync, readFileSync } from 'fs';
2
2
  import { BRIDGE_LOG_FILE } from './paths.js';
3
+ import { t } from './i18n.js';
3
4
  import { waitBridgeHealth, waitRelayPairingReady } from './launch.js';
4
5
  export async function fetchRelayRoomDiagnostics(relayUrl, roomId, token) {
5
6
  const base = relayUrl.replace(/\/$/, '');
@@ -60,7 +61,6 @@ export function buildStartupReadiness(identity, local, relay, relayReachable) {
60
61
  machineLabel: identity.machineLabel,
61
62
  };
62
63
  }
63
- /** Ждём bridge + relay (комната, код на сервере, токен зарегистрирован). */
64
64
  export async function awaitStartupReadiness(relayUrl, identity, opts) {
65
65
  const waitMs = opts?.waitMs ?? 45_000;
66
66
  const health = await waitBridgeHealth(Math.min(waitMs, 25_000), {
@@ -80,7 +80,6 @@ export async function awaitStartupReadiness(relayUrl, identity, opts) {
80
80
  const relay = await fetchRelayRoomDiagnostics(relayUrl, identity.roomId, identity.clientToken);
81
81
  return buildStartupReadiness(identity, { ok: health.ok, cdp: health.cdp }, relay, relayReachable);
82
82
  }
83
- /** Однократная проверка (для status). */
84
83
  export async function snapshotStartupReadiness(relayUrl, identity) {
85
84
  let local = { ok: false, cdp: false };
86
85
  try {
@@ -110,62 +109,72 @@ export async function snapshotStartupReadiness(relayUrl, identity) {
110
109
  }
111
110
  export function formatStartupChecklist(r) {
112
111
  const mark = (ok) => (ok ? '✓' : '✗');
112
+ const relayLabel = t('readiness.relayLine', {
113
+ state: r.relayReachable
114
+ ? t('readiness.relayReachable')
115
+ : t('readiness.relayUnreachable'),
116
+ });
113
117
  const lines = [
114
- `${mark(r.localBridgeOk)} Cursor Connect на Mac (localhost:3847)`,
118
+ `${mark(r.localBridgeOk)} ${t('readiness.localBridge')}`,
115
119
  r.localBridgeOk
116
- ? ` cdp: ${r.localCdp ? 'подключён — live-чаты из Cursor' : 'нет — только архив JSONL'}`
117
- : ' запустите cursorconnect start',
118
- `${mark(r.relayReachable)} Relay ${r.relayReachable ? 'доступен' : 'недоступен'}`,
119
- `${mark(r.connectorInRoom)} Mac в вашей комнате на relay`,
120
- `${mark(r.pairingCodesActive > 0)} Код на сервере (можно вводить в приложении)`,
120
+ ? r.localCdp
121
+ ? t('readiness.cdpLive')
122
+ : t('readiness.cdpArchiveOnly')
123
+ : t('readiness.runStart'),
124
+ `${mark(r.relayReachable)} ${relayLabel}`,
125
+ `${mark(r.connectorInRoom)} ${t('readiness.macInRoom')}`,
126
+ `${mark(r.pairingCodesActive > 0)} ${t('readiness.codeOnServer')}`,
121
127
  r.pairingCodesActive > 0
122
- ? ` активных кодов: ${r.pairingCodesActive}`
123
- : ' код не зарегистрирован — повторите start (не вводите старый код из терминала)',
124
- `${mark(r.tokenRegistered)} Токен телефона зарегистрирован bridge'ем`,
128
+ ? t('readiness.activeCodes', { count: r.pairingCodesActive })
129
+ : t('readiness.codeNotRegistered'),
130
+ `${mark(r.tokenRegistered)} ${t('readiness.phoneToken')}`,
125
131
  ];
126
132
  if (r.ready) {
127
- lines.push('', ` Готово к pairing: код ${r.code} · ~${Math.ceil(r.codeExpiresSec / 60)} мин · одноразовый`);
133
+ lines.push('', t('readiness.readyLine', {
134
+ code: r.code,
135
+ minutes: Math.ceil(r.codeExpiresSec / 60),
136
+ }));
128
137
  }
129
138
  return lines;
130
139
  }
131
140
  export function printStartupFailure(r, logPath = BRIDGE_LOG_FILE) {
132
141
  console.error('');
133
- console.error('[cursorconnect] Запуск не готов — приложение код не примет.');
142
+ console.error(t('readiness.startupFailed'));
134
143
  console.error('');
135
144
  for (const line of formatStartupChecklist(r)) {
136
145
  console.error(` ${line}`);
137
146
  }
138
147
  console.error('');
139
148
  if (!r.connectorInRoom) {
140
- console.error(' Mac не в комнате: npm install -g cursorconnect@latest && cursorconnect stop && cursorconnect start');
149
+ console.error(t('readiness.macNotInRoom'));
141
150
  }
142
151
  else if (r.pairingCodesActive === 0) {
143
- console.error(' Код не на relay (уже введён или bridge не успел): cursorconnect stop && cursorconnect start');
144
- console.error(' Не вводите код из прошлого запуска — только свежий после start.');
152
+ console.error(t('readiness.codeNotOnRelay'));
153
+ console.error(t('readiness.doNotReuseCode'));
145
154
  }
146
155
  else if (!r.tokenRegistered) {
147
- console.error(' Токен не зарегистрирован — перезапустите bridge (cursorconnect start).');
156
+ console.error(t('readiness.tokenNotRegistered'));
148
157
  }
149
158
  if (!r.localCdp) {
150
- console.error(' CDP недоступен: Cursor должен быть с --remote-debugging-port=9222');
151
- console.error(` ${'open -a Cursor --args --remote-debugging-port=9222'}`);
152
- console.error(' Затем: cursorconnect stop && cursorconnect start');
159
+ console.error(t('readiness.cdpUnavailableHint'));
160
+ console.error(t('readiness.cdpLaunchCmd'));
161
+ console.error(t('readiness.thenRestart'));
153
162
  }
154
163
  if (!r.localBridgeOk) {
155
- console.error(` Лог: ${logPath}`);
164
+ console.error(t('readiness.logPath', { path: logPath }));
156
165
  tailLogLines(logPath, 12).forEach((l) => console.error(` ${l}`));
157
166
  }
158
167
  console.error('');
159
168
  }
160
169
  function tailLogLines(path, n) {
161
170
  if (!existsSync(path))
162
- return ['(лог пуст)'];
171
+ return [t('readiness.logEmpty')];
163
172
  try {
164
173
  const raw = readFileSync(path, 'utf-8');
165
174
  const lines = raw.trim().split('\n').filter(Boolean);
166
175
  return lines.slice(-n);
167
176
  }
168
177
  catch {
169
- return ['(не удалось прочитать лог)'];
178
+ return [t('readiness.logUnreadable')];
170
179
  }
171
180
  }
@@ -1,3 +1,4 @@
1
+ import { t } from './i18n.js';
1
2
  import { isVersionAtLeast } from './semver.js';
2
3
  import { CLI_VERSION } from './cli-version.js';
3
4
  export async function fetchRemoteVersionPolicy(relayUrl) {
@@ -17,14 +18,17 @@ export async function fetchRemoteVersionPolicy(relayUrl) {
17
18
  export function assertCliVersionAllowed(policy, current = CLI_VERSION) {
18
19
  if (isVersionAtLeast(current, policy.minCliVersion))
19
20
  return;
20
- console.error(`[cursorconnect] Версия ${current} устарела (нужна ≥ ${policy.minCliVersion}).\n` +
21
- ` ${policy.updateCliCommand}`);
21
+ console.error(t('version.outdated', {
22
+ current,
23
+ min: policy.minCliVersion,
24
+ command: policy.updateCliCommand,
25
+ }));
22
26
  process.exit(1);
23
27
  }
24
28
  export async function ensureCliVersionForRelay(relayUrl) {
25
29
  const policy = await fetchRemoteVersionPolicy(relayUrl);
26
30
  if (!policy?.minCliVersion) {
27
- console.warn('[cursorconnect] Не удалось проверить версию на relay — продолжаем без проверки.');
31
+ console.warn(t('version.policyFetchFailed'));
28
32
  return;
29
33
  }
30
34
  assertCliVersionAllowed(policy);
@@ -0,0 +1,128 @@
1
+ {
2
+ "pairing": {
3
+ "runningInBackground": "Cursor Connect is running in the background",
4
+ "computer": "Computer: {{name}}",
5
+ "enterCodeInApp": "Enter this code in the Cursor Connect app:",
6
+ "codeSingleUse": "Code is single-use",
7
+ "codeValidMinutes": "Valid for {{minutes}} min",
8
+ "stopHint": "To stop Cursor Connect run: cursorconnect stop",
9
+ "consoleCanClose": "You can close this terminal."
10
+ },
11
+ "start": {
12
+ "checksBeforePairing": "Pre-pairing checks:",
13
+ "askAutostart": "Enable Cursor Connect at macOS login? (y/n): ",
14
+ "autostartEnabled": "Autostart enabled (launchd).",
15
+ "openCursorFromDock": "Cursor with CDP: launch from Dock using",
16
+ "dockHint": "(drag to Dock or add to Login Items in macOS Settings).",
17
+ "pairingCodeViaStatus": "Pairing code: cursorconnect status",
18
+ "restartingBridge": "[cursorconnect] Restarting Cursor Connect…",
19
+ "cdpRequired": "[cursorconnect] CDP is required — Cursor Connect will not start without it.",
20
+ "cdpThenRetry": " Start Cursor with remote debugging (port 9222), then:",
21
+ "relayTokenMissing": "[cursorconnect] RELAY_TOKEN not found (bundled config may be corrupt).\n Reinstall: npm install -g cursorconnect\n Or set RELAY_TOKEN in {{path}} (your own relay)."
22
+ },
23
+ "cdp": {
24
+ "quitCursor": "[cursorconnect] Quitting Cursor…",
25
+ "forceQuitCursor": "[cursorconnect] Force-quitting Cursor…",
26
+ "manualTitle": "[cursorconnect] Start Cursor with CDP manually:",
27
+ "manualQuitFirst": " (Cmd+Q first if Cursor is already open)",
28
+ "notRunningLaunch": "[cursorconnect] Cursor is not running — starting with --remote-debugging-port=9222…",
29
+ "askRestart": "Cursor has no CDP. Restart with --remote-debugging-port=9222? (y/n): ",
30
+ "restartingWithCdp": "[cursorconnect] Cursor has no CDP — restarting with --remote-debugging-port=9222…",
31
+ "quitFailed": "[cursorconnect] Could not quit Cursor (try Cmd+Q manually)."
32
+ },
33
+ "stop": {
34
+ "stopped": "Cursor Connect stopped"
35
+ },
36
+ "autostart": {
37
+ "enabled": "Cursor Connect autostart enabled.",
38
+ "cursorCdpPath": "Cursor with CDP (9222): {{path}}",
39
+ "codeViaStatus": "Phone code: cursorconnect status",
40
+ "disabled": "Cursor Connect autostart disabled."
41
+ },
42
+ "init": {
43
+ "notRepo": "Folder does not look like CursorConnect: {{path}}\nNeed a repo clone (bridge/).\nAfter npm install -g cursorconnect, init is not required.",
44
+ "saved": "Saved (dev): {{path}}",
45
+ "repoRoot": "repoRoot: {{path}}",
46
+ "next": "Next: cursorconnect start"
47
+ },
48
+ "status": {
49
+ "noIdentity": "Identity not found — run: cursorconnect start",
50
+ "cliVersion": "CLI: {{version}}",
51
+ "bundleOk": "Bridge bundle: OK (clientVersion in relay-upstream)",
52
+ "bundleStale": "Bridge bundle: STALE — update: npm install -g cursorconnect@latest",
53
+ "bridgeRunning": "running",
54
+ "bridgeStopped": "stopped",
55
+ "bridgeProcess": "Bridge process: {{state}}",
56
+ "stateHeader": "Status:",
57
+ "codeMayFail": " Terminal code may not work in the app — run: cursorconnect start"
58
+ },
59
+ "service": {
60
+ "starting": "[cursorconnect] run-service (background, for launchd)…",
61
+ "cdpUnavailable": "[cursorconnect] service: CDP unavailable — bridge will not start (port 9222 required)",
62
+ "bridgeStarted": "[cursorconnect] service: bridge started → {{log}}",
63
+ "startFailed": "[cursorconnect] service: start failed",
64
+ "exitedRestarting": "[cursorconnect] service: bridge exited, restarting…"
65
+ },
66
+ "version": {
67
+ "outdated": "[cursorconnect] Version {{current}} is outdated (need ≥ {{min}}).\n {{command}}",
68
+ "policyFetchFailed": "[cursorconnect] Could not check version on relay — continuing without check."
69
+ },
70
+ "bridge": {
71
+ "staleBundle": "[cursorconnect] Outdated bridge in npm package (no clientVersion for relay).\n npm install -g cursorconnect@latest\n If already on latest — wait for a fix publish or run from clone: npm run bundle-bridge -w connect",
72
+ "rebuilding": "[cursorconnect] bridge/src newer than dist — building…"
73
+ },
74
+ "readiness": {
75
+ "localBridge": "Cursor Connect on Mac (localhost:3847)",
76
+ "cdpLive": " cdp: connected — live chats from Cursor",
77
+ "cdpArchiveOnly": " cdp: off — JSONL archive only",
78
+ "runStart": " run cursorconnect start",
79
+ "relayLine": "Relay {{state}}",
80
+ "relayReachable": "reachable",
81
+ "relayUnreachable": "unreachable",
82
+ "macInRoom": "Mac in your relay room",
83
+ "codeOnServer": "Pairing code on server (enter in app)",
84
+ "activeCodes": " active codes: {{count}}",
85
+ "codeNotRegistered": " code not registered — run start again (do not reuse an old terminal code)",
86
+ "phoneToken": "Phone token registered by bridge",
87
+ "readyLine": " Ready to pair: code {{code}} · ~{{minutes}} min · single-use",
88
+ "startupFailed": "[cursorconnect] Startup not ready — the app will reject the code.",
89
+ "macNotInRoom": " Mac not in room: npm install -g cursorconnect@latest && cursorconnect stop && cursorconnect start",
90
+ "codeNotOnRelay": " Code not on relay (already used or bridge too slow): cursorconnect stop && cursorconnect start",
91
+ "doNotReuseCode": " Do not enter a code from a previous run — only a fresh code after start.",
92
+ "tokenNotRegistered": " Token not registered — restart bridge (cursorconnect start).",
93
+ "cdpUnavailableHint": " CDP unavailable: Cursor must run with --remote-debugging-port=9222",
94
+ "cdpLaunchCmd": " open -a Cursor --args --remote-debugging-port=9222",
95
+ "thenRestart": " Then: cursorconnect stop && cursorconnect start",
96
+ "logPath": " Log: {{path}}",
97
+ "logEmpty": "(log empty)",
98
+ "logUnreadable": "(could not read log)"
99
+ },
100
+ "diagnose": {
101
+ "header": "CursorConnect diagnose @ {{at}}",
102
+ "relay": "relay={{url}}",
103
+ "room": "room={{id}}",
104
+ "pass": "PASS",
105
+ "fail": "FAIL",
106
+ "hintPrefix": " → ",
107
+ "allPass": "Result: all checks passed",
108
+ "problems": "Result: {{count}} issue(s)",
109
+ "noIdentity": "Missing ~/.cursorconnect/identity.json",
110
+ "hintStart": "cursorconnect start",
111
+ "hintRelayUrl": "Check RELAY_URL and internet",
112
+ "hintStartMac": "cursorconnect start on Mac",
113
+ "notInRoom": "Cursor Connect not in this relay room",
114
+ "tokenNotRegistered": "Token not registered — restart cursorconnect start",
115
+ "tokenNotWhitelisted": "Token not in room whitelist",
116
+ "hintDeployRelay": "Update relay: npm run deploy:relay",
117
+ "hintCdp9222": "Cursor with --remote-debugging-port=9222",
118
+ "codeExpired": "Code expired or missing",
119
+ "hintEnterInApp": "Enter in app before expiry; start again for a new code",
120
+ "hintAppTransports": "Phone: needs polling+websocket in app",
121
+ "hintPollingBlocked": "Relay/nginx blocking long-polling?",
122
+ "wrongRoom": "App connects to room=default instead of your roomId",
123
+ "hintHistory": "connectorInRoom false or Cursor Connect not responding — cursorconnect start"
124
+ },
125
+ "usage": {
126
+ "body": "Usage: cursorconnect <command>\n\n start — CDP (auto-restart Cursor) + Cursor Connect + code\n start -r — same (explicit Cursor restart)\n start --no-restart-cursor — do not touch Cursor (asks y/n in TTY)\n stop — stop Cursor Connect\n status — code and status\n install-autostart — Mac: Cursor Connect at login (launchd)\n uninstall-autostart — disable autostart\n diagnose — relay / Cursor Connect / socket checks\n init [path] — dev only (repo clone)\n\nInstall (from any folder):\n npm install -g cursorconnect\n cursorconnect start # first time: code + optional autostart\n cursorconnect install-autostart # no console every day"
127
+ }
128
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "pairing": {
3
+ "runningInBackground": "Cursor Connect запущен в фоне",
4
+ "computer": "Компьютер: {{name}}",
5
+ "enterCodeInApp": "Введите код в приложении Cursor Connect:",
6
+ "codeSingleUse": "Код одноразовый",
7
+ "codeValidMinutes": "Действует {{minutes}} мин",
8
+ "stopHint": "Для остановки Cursor Connect введите cursorconnect stop",
9
+ "consoleCanClose": "Консоль можно закрыть."
10
+ },
11
+ "start": {
12
+ "checksBeforePairing": "Проверки перед pairing:",
13
+ "askAutostart": "Включить автозапуск Cursor Connect при входе в macOS? (y/n): ",
14
+ "autostartEnabled": "Автозапуск включён (launchd).",
15
+ "openCursorFromDock": "Cursor с CDP: откройте из Dock скрипт",
16
+ "dockHint": "(перетащите в Dock или «Программы при входе» в настройках macOS).",
17
+ "pairingCodeViaStatus": "Код pairing: cursorconnect status",
18
+ "restartingBridge": "[cursorconnect] Перезапуск Cursor Connect…",
19
+ "cdpRequired": "[cursorconnect] CDP обязателен — без него Cursor Connect не запускается.",
20
+ "cdpThenRetry": " Cursor с remote debugging (порт 9222), затем снова:",
21
+ "relayTokenMissing": "[cursorconnect] Не найден RELAY_TOKEN (встроенный конфиг пакета повреждён).\n Переустановите: npm install -g cursorconnect\n Или укажите RELAY_TOKEN в {{path}} (свой relay)."
22
+ },
23
+ "cdp": {
24
+ "quitCursor": "[cursorconnect] Закрываю Cursor…",
25
+ "forceQuitCursor": "[cursorconnect] Принудительное завершение Cursor…",
26
+ "manualTitle": "[cursorconnect] Запустите Cursor с CDP вручную:",
27
+ "manualQuitFirst": " (сначала Cmd+Q, если Cursor уже открыт)",
28
+ "notRunningLaunch": "[cursorconnect] Cursor не запущен — старт с --remote-debugging-port=9222…",
29
+ "askRestart": "Cursor без CDP. Перезапустить с --remote-debugging-port=9222? (y/n): ",
30
+ "restartingWithCdp": "[cursorconnect] Cursor без CDP — перезапуск с --remote-debugging-port=9222…",
31
+ "quitFailed": "[cursorconnect] Не удалось закрыть Cursor (Cmd+Q вручную)."
32
+ },
33
+ "stop": {
34
+ "stopped": "Cursor Connect остановлен"
35
+ },
36
+ "autostart": {
37
+ "enabled": "Автозапуск Cursor Connect включён.",
38
+ "cursorCdpPath": "Cursor с CDP (9222): {{path}}",
39
+ "codeViaStatus": "Код на телефон: cursorconnect status",
40
+ "disabled": "Автозапуск Cursor Connect отключён."
41
+ },
42
+ "init": {
43
+ "notRepo": "Папка не похожа на CursorConnect: {{path}}\nНужен клон репозитория (bridge/).\nПосле npm install -g cursorconnect команда init не нужна.",
44
+ "saved": "Сохранено (dev): {{path}}",
45
+ "repoRoot": "repoRoot: {{path}}",
46
+ "next": "Дальше: cursorconnect start"
47
+ },
48
+ "status": {
49
+ "noIdentity": "Identity не найден — запустите: cursorconnect start",
50
+ "cliVersion": "CLI: {{version}}",
51
+ "bundleOk": "Bridge bundle: OK (clientVersion в relay-upstream)",
52
+ "bundleStale": "Bridge bundle: STALE — обновите npm install -g cursorconnect@latest",
53
+ "bridgeRunning": "running",
54
+ "bridgeStopped": "stopped",
55
+ "bridgeProcess": "Bridge process: {{state}}",
56
+ "stateHeader": "Состояние:",
57
+ "codeMayFail": " Код в терминале может не принять приложение — выполните: cursorconnect start"
58
+ },
59
+ "service": {
60
+ "starting": "[cursorconnect] run-service (фон, для launchd)…",
61
+ "cdpUnavailable": "[cursorconnect] service: CDP недоступен — bridge не стартует (нужен порт 9222)",
62
+ "bridgeStarted": "[cursorconnect] service: bridge started → {{log}}",
63
+ "startFailed": "[cursorconnect] service: start failed",
64
+ "exitedRestarting": "[cursorconnect] service: bridge exited, restarting…"
65
+ },
66
+ "version": {
67
+ "outdated": "[cursorconnect] Версия {{current}} устарела (нужна ≥ {{min}}).\n {{command}}",
68
+ "policyFetchFailed": "[cursorconnect] Не удалось проверить версию на relay — продолжаем без проверки."
69
+ },
70
+ "bridge": {
71
+ "staleBundle": "[cursorconnect] Устаревший bridge внутри npm-пакета (нет clientVersion для relay).\n npm install -g cursorconnect@latest\n Если уже latest — дождитесь публикации fix или запускайте из клона: npm run bundle-bridge -w connect",
72
+ "rebuilding": "[cursorconnect] bridge/src новее dist — сборка…"
73
+ },
74
+ "readiness": {
75
+ "localBridge": "Cursor Connect на Mac (localhost:3847)",
76
+ "cdpLive": " cdp: подключён — live-чаты из Cursor",
77
+ "cdpArchiveOnly": " cdp: нет — только архив JSONL",
78
+ "runStart": " запустите cursorconnect start",
79
+ "relayReachable": "доступен",
80
+ "relayUnreachable": "недоступен",
81
+ "relayLine": "Relay {{state}}",
82
+ "macInRoom": "Mac в вашей комнате на relay",
83
+ "codeOnServer": "Код на сервере (можно вводить в приложении)",
84
+ "activeCodes": " активных кодов: {{count}}",
85
+ "codeNotRegistered": " код не зарегистрирован — повторите start (не вводите старый код из терминала)",
86
+ "phoneToken": "Токен телефона зарегистрирован bridge'ем",
87
+ "readyLine": " Готово к pairing: код {{code}} · ~{{minutes}} мин · одноразовый",
88
+ "startupFailed": "[cursorconnect] Запуск не готов — приложение код не примет.",
89
+ "macNotInRoom": " Mac не в комнате: npm install -g cursorconnect@latest && cursorconnect stop && cursorconnect start",
90
+ "codeNotOnRelay": " Код не на relay (уже введён или bridge не успел): cursorconnect stop && cursorconnect start",
91
+ "doNotReuseCode": " Не вводите код из прошлого запуска — только свежий после start.",
92
+ "tokenNotRegistered": " Токен не зарегистрирован — перезапустите bridge (cursorconnect start).",
93
+ "cdpUnavailableHint": " CDP недоступен: Cursor должен быть с --remote-debugging-port=9222",
94
+ "cdpLaunchCmd": " open -a Cursor --args --remote-debugging-port=9222",
95
+ "thenRestart": " Затем: cursorconnect stop && cursorconnect start",
96
+ "logPath": " Лог: {{path}}",
97
+ "logEmpty": "(лог пуст)",
98
+ "logUnreadable": "(не удалось прочитать лог)"
99
+ },
100
+ "diagnose": {
101
+ "header": "CursorConnect diagnose @ {{at}}",
102
+ "relay": "relay={{url}}",
103
+ "room": "room={{id}}",
104
+ "pass": "PASS",
105
+ "fail": "FAIL",
106
+ "hintPrefix": " → ",
107
+ "allPass": "Итог: все проверки пройдены",
108
+ "problems": "Итог: {{count}} проблем(а)",
109
+ "noIdentity": "Нет ~/.cursorconnect/identity.json",
110
+ "hintStart": "cursorconnect start",
111
+ "hintRelayUrl": "Проверьте RELAY_URL и интернет",
112
+ "hintStartMac": "cursorconnect start на Mac",
113
+ "notInRoom": "Cursor Connect не в этой комнате на relay",
114
+ "tokenNotRegistered": "Токен не зарегистрирован — перезапустите cursorconnect start",
115
+ "tokenNotWhitelisted": "Токен не в whitelist комнаты",
116
+ "hintDeployRelay": "Обновите relay: npm run deploy:relay",
117
+ "hintCdp9222": "Cursor с --remote-debugging-port=9222",
118
+ "codeExpired": "Код истёк или отсутствует",
119
+ "hintEnterInApp": "Введите в app до истечения; повторный start — новый код",
120
+ "hintAppTransports": "Телефон: нужен polling+websocket в app",
121
+ "hintPollingBlocked": "Relay/nginx блокирует long-polling?",
122
+ "wrongRoom": "App подключается к room=default вместо вашего roomId",
123
+ "hintHistory": "connectorInRoom false или Cursor Connect не отвечает — cursorconnect start"
124
+ },
125
+ "usage": {
126
+ "body": "Usage: cursorconnect <command>\n\n start — CDP (авто-перезапуск Cursor) + Cursor Connect + код\n start -r — то же (явный перезапуск Cursor)\n start --no-restart-cursor — не трогать Cursor (спросит y/n в TTY)\n stop — остановить Cursor Connect\n status — код и статус\n install-autostart — Mac: Cursor Connect при входе (launchd)\n uninstall-autostart — отключить автозапуск\n diagnose — проверка relay / Cursor Connect / socket\n init [path] — только для разработки (клон репо)\n\nУстановка (из любой папки):\n npm install -g cursorconnect\n cursorconnect start # первый раз: код + опционально автозапуск\n cursorconnect install-autostart # без консоли каждый день"
127
+ }
128
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursorconnect",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "CLI: Cursor Connect on Mac + relay pairing — install once, run from anywhere",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -9,6 +9,7 @@
9
9
  },
10
10
  "files": [
11
11
  "dist/**/*.js",
12
+ "locales/**",
12
13
  "bridge-runtime/**",
13
14
  "config.env.defaults",
14
15
  "version-policy.json",
@@ -1,8 +1,8 @@
1
1
  {
2
- "minCliVersion": "0.1.7",
3
- "minAppVersion": "0.2.2",
4
- "latestCliVersion": "0.1.10",
5
- "latestAppVersion": "0.2.2",
2
+ "minCliVersion": "0.1.12",
3
+ "minAppVersion": "0.3.2",
4
+ "latestCliVersion": "0.1.12",
5
+ "latestAppVersion": "0.3.2",
6
6
  "updateCliCommand": "npm install -g cursorconnect@latest",
7
- "updateAppHint": "Обновите CursorConnect в App Store / TestFlight до последней сборки."
7
+ "updateAppHint": "Обновите CursorConnect в TestFlight / App Store до версии 0.3.2 или новее."
8
8
  }