sessionpipe 0.4.0 → 0.4.1
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.
- package/dist/cli.js +10 -7
- package/dist/cli.js.map +2 -2
- package/dist/control/pair.d.ts.map +1 -1
- package/dist/hook.js +1 -1
- package/dist/index.js +1 -1
- package/dist/worker.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// sessionpipe 0.4.
|
|
2
|
+
// sessionpipe 0.4.1 · Apache-2.0 · https://sessionpipe.org
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __export = (target, all) => {
|
|
5
5
|
for (var name in all)
|
|
@@ -3529,7 +3529,7 @@ var {
|
|
|
3529
3529
|
recentlyWritten: recentlyWritten2,
|
|
3530
3530
|
sessionFolder: sessionFolder2
|
|
3531
3531
|
} = claude_code_control_exports;
|
|
3532
|
-
var VERSION = true ? "0.4.
|
|
3532
|
+
var VERSION = true ? "0.4.1" : "0.0.0";
|
|
3533
3533
|
var MAX_REPLY = 2e4;
|
|
3534
3534
|
var HELLO_EVERY_MS = 10 * 6e4;
|
|
3535
3535
|
var TURN_FALLBACK_MS = 30 * 6e4;
|
|
@@ -4461,7 +4461,7 @@ import { randomBytes as randomBytes2 } from "node:crypto";
|
|
|
4461
4461
|
import { existsSync as existsSync10, mkdirSync as mkdirSync9, unlinkSync as unlinkSync5, writeFileSync as writeFileSync7 } from "node:fs";
|
|
4462
4462
|
import os4 from "node:os";
|
|
4463
4463
|
import path15 from "node:path";
|
|
4464
|
-
var VERSION2 = true ? "0.4.
|
|
4464
|
+
var VERSION2 = true ? "0.4.1" : "0.0.0";
|
|
4465
4465
|
async function json(r) {
|
|
4466
4466
|
try {
|
|
4467
4467
|
return await r.json();
|
|
@@ -4523,11 +4523,14 @@ async function pair(o) {
|
|
|
4523
4523
|
o.out("");
|
|
4524
4524
|
const digits = String(s.check);
|
|
4525
4525
|
const spaced = /^\d{6}$/.test(digits) ? `${digits.slice(0, 3)} ${digits.slice(3)}` : digits;
|
|
4526
|
+
const host = new URL(o.url).host;
|
|
4527
|
+
o.out(` On any phone or computer where you're signed in to ${host} (it doesn't have to be this one),`);
|
|
4526
4528
|
if (pollKey) {
|
|
4527
|
-
o.out(`
|
|
4528
|
-
o.out(" then approve with
|
|
4529
|
+
o.out(` open ${String(s.url)} and enter: ${spaced}`);
|
|
4530
|
+
o.out(" then approve with that device's passkey (Touch ID, Face ID, a security key).");
|
|
4531
|
+
o.out(" Pairing several machines? Run this on each one: every machine shows its own digits.");
|
|
4529
4532
|
} else {
|
|
4530
|
-
o.out("
|
|
4533
|
+
o.out(" open this link and approve with that device's passkey (Touch ID, Face ID, a security key):");
|
|
4531
4534
|
o.out(` ${String(s.url)}`);
|
|
4532
4535
|
o.out(` The page shows these digits too: ${digits}`);
|
|
4533
4536
|
}
|
|
@@ -5093,7 +5096,7 @@ async function tellDaemon(state2, job, session, transcript) {
|
|
|
5093
5096
|
300
|
|
5094
5097
|
);
|
|
5095
5098
|
}
|
|
5096
|
-
var VERSION3 = true ? "0.4.
|
|
5099
|
+
var VERSION3 = true ? "0.4.1" : "0.0.0";
|
|
5097
5100
|
function enqueueJob(state2, job) {
|
|
5098
5101
|
const jobs = jobsDir(state2);
|
|
5099
5102
|
mkdirSync10(jobs, { recursive: true, mode: 448 });
|