@paigy/harness 0.1.5 → 0.1.7
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 +7 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -30818,11 +30818,14 @@ async function checkReplies(opts = {}) {
|
|
|
30818
30818
|
};
|
|
30819
30819
|
}
|
|
30820
30820
|
var tokenOverride = null;
|
|
30821
|
+
function overrideToken(secret) {
|
|
30822
|
+
tokenOverride = secret;
|
|
30823
|
+
}
|
|
30821
30824
|
var authToken = (explicit) => explicit ?? tokenOverride ?? readToken();
|
|
30822
30825
|
async function hatch(name, voice = null) {
|
|
30823
30826
|
const res = ensureAuthed(await reach(`${BACKEND_URL}/api/hatch`, {
|
|
30824
30827
|
method: "POST",
|
|
30825
|
-
headers: { "content-type": "application/json", authorization: `Bearer ${
|
|
30828
|
+
headers: { "content-type": "application/json", authorization: `Bearer ${authToken()}` },
|
|
30826
30829
|
body: JSON.stringify({ name, voice })
|
|
30827
30830
|
}));
|
|
30828
30831
|
if (!res.ok) throw new Error(`hatch failed: ${res.status} ${await res.text()}`);
|
|
@@ -32511,6 +32514,7 @@ async function main() {
|
|
|
32511
32514
|
{ cli: "codex", name: "Codex", slot: "codex", wire: "codex mcp add paigy -- npx -y @paigy/mcp@latest" },
|
|
32512
32515
|
{ cli: "antigravity", name: "Antigravity", slot: "antigravity" }
|
|
32513
32516
|
];
|
|
32517
|
+
overrideToken(readToken("Desktop") || null);
|
|
32514
32518
|
for (const t of TERMINAL_AGENTS) {
|
|
32515
32519
|
try {
|
|
32516
32520
|
if (!which(t.cli) || readToken(t.slot)) continue;
|
|
@@ -32539,6 +32543,7 @@ async function main() {
|
|
|
32539
32543
|
}
|
|
32540
32544
|
} catch {
|
|
32541
32545
|
}
|
|
32546
|
+
overrideToken(null);
|
|
32542
32547
|
console.log("\n\u2705 Done \u2014 look at your phone: Agents shows this machine with a green dot,");
|
|
32543
32548
|
console.log(" and \u201C+ New session\u201D launches agents on it.");
|
|
32544
32549
|
return;
|
|
@@ -32599,6 +32604,7 @@ async function main() {
|
|
|
32599
32604
|
process.exit(1);
|
|
32600
32605
|
}
|
|
32601
32606
|
if (parsed.hatch) {
|
|
32607
|
+
overrideToken(readToken("Desktop") || null);
|
|
32602
32608
|
const minted = await hatch(parsed.hatch, parsed.voice ?? null);
|
|
32603
32609
|
saveToken({ access_token: minted.token, name: minted.name, device: null }, parsed.slot ?? minted.name);
|
|
32604
32610
|
console.log(`\u2713 hatched "${minted.name}" \u2014 it's on your phone's Agents screen now.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paigy/harness",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Run Claude Code / Codex on this machine, bridged to Paigy — launchable from your phone.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"vitest": "^2.1.8",
|
|
19
19
|
"qrcode": "^1.5.4",
|
|
20
20
|
"zod": "^3.24.1",
|
|
21
|
-
"@paigy/
|
|
22
|
-
"@paigy/
|
|
21
|
+
"@paigy/schema": "0.0.0",
|
|
22
|
+
"@paigy/sdk": "0.1.0"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist/cli.js",
|