@paigy/harness 0.1.5 → 0.1.6

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/dist/cli.js +6 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -30818,6 +30818,9 @@ 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`, {
@@ -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.5",
3
+ "version": "0.1.6",
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",