@paigy/harness 0.2.2 → 0.2.4
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 +4 -3
- package/dist/main.js +4 -3
- package/package.json +13 -13
package/dist/cli.js
CHANGED
|
@@ -30804,7 +30804,7 @@ function landIntents(intents) {
|
|
|
30804
30804
|
});
|
|
30805
30805
|
}
|
|
30806
30806
|
async function checkReplies(opts = {}) {
|
|
30807
|
-
const token =
|
|
30807
|
+
const token = authToken(opts.token);
|
|
30808
30808
|
const res = ensureAuthed(await reach(`${BACKEND_URL}/api/pending`, {
|
|
30809
30809
|
headers: { authorization: `Bearer ${token}` }
|
|
30810
30810
|
}));
|
|
@@ -32387,11 +32387,12 @@ function startHost(opts) {
|
|
|
32387
32387
|
}
|
|
32388
32388
|
}
|
|
32389
32389
|
const SLOT_HARNESS = { "mcp-agent": "claude", codex: "codex" };
|
|
32390
|
+
const WAKE_PROMPT = "You were woken because Paigy work is waiting for you. Call check_replies now and handle everything it returns, then follow your paigy instructions to stay in the loop.";
|
|
32390
32391
|
async function sweepSlots() {
|
|
32391
32392
|
const workspace = listWorkspaces(opts.wsDeps)[0];
|
|
32392
32393
|
if (!workspace) return;
|
|
32393
32394
|
for (const slot of listSlots()) {
|
|
32394
|
-
const harness = SLOT_HARNESS[slot];
|
|
32395
|
+
const harness = SLOT_HARNESS[slot] ?? (slot === "Desktop" ? void 0 : "claude");
|
|
32395
32396
|
const key = `slot:${slot}`;
|
|
32396
32397
|
if (!harness || runs.has(key)) continue;
|
|
32397
32398
|
const token = readToken(slot);
|
|
@@ -32403,7 +32404,7 @@ function startHost(opts) {
|
|
|
32403
32404
|
harness,
|
|
32404
32405
|
cwd: workspace,
|
|
32405
32406
|
mode: "bypass",
|
|
32406
|
-
prompt:
|
|
32407
|
+
prompt: WAKE_PROMPT,
|
|
32407
32408
|
exclusive: true,
|
|
32408
32409
|
token,
|
|
32409
32410
|
// A dead run must not squat the slot — evict so the next wake can respawn.
|
package/dist/main.js
CHANGED
|
@@ -12226,7 +12226,7 @@ function landIntents(intents) {
|
|
|
12226
12226
|
});
|
|
12227
12227
|
}
|
|
12228
12228
|
async function checkReplies(opts = {}) {
|
|
12229
|
-
const token =
|
|
12229
|
+
const token = authToken(opts.token);
|
|
12230
12230
|
const res = ensureAuthed(await reach(`${BACKEND_URL}/api/pending`, {
|
|
12231
12231
|
headers: { authorization: `Bearer ${token}` }
|
|
12232
12232
|
}));
|
|
@@ -13858,11 +13858,12 @@ function startHost(opts) {
|
|
|
13858
13858
|
}
|
|
13859
13859
|
}
|
|
13860
13860
|
const SLOT_HARNESS = { "mcp-agent": "claude", codex: "codex" };
|
|
13861
|
+
const WAKE_PROMPT = "You were woken because Paigy work is waiting for you. Call check_replies now and handle everything it returns, then follow your paigy instructions to stay in the loop.";
|
|
13861
13862
|
async function sweepSlots() {
|
|
13862
13863
|
const workspace = listWorkspaces(opts.wsDeps)[0];
|
|
13863
13864
|
if (!workspace) return;
|
|
13864
13865
|
for (const slot of listSlots()) {
|
|
13865
|
-
const harness = SLOT_HARNESS[slot];
|
|
13866
|
+
const harness = SLOT_HARNESS[slot] ?? (slot === "Desktop" ? void 0 : "claude");
|
|
13866
13867
|
const key = `slot:${slot}`;
|
|
13867
13868
|
if (!harness || runs.has(key)) continue;
|
|
13868
13869
|
const token = readToken(slot);
|
|
@@ -13874,7 +13875,7 @@ function startHost(opts) {
|
|
|
13874
13875
|
harness,
|
|
13875
13876
|
cwd: workspace,
|
|
13876
13877
|
mode: "bypass",
|
|
13877
|
-
prompt:
|
|
13878
|
+
prompt: WAKE_PROMPT,
|
|
13878
13879
|
exclusive: true,
|
|
13879
13880
|
token,
|
|
13880
13881
|
// A dead run must not squat the slot — evict so the next wake can respawn.
|
package/package.json
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paigy/harness",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Run Claude Code / Codex on this machine, bridged to Paigy
|
|
3
|
+
"version": "0.2.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",
|
|
7
7
|
"main": "dist/main.js",
|
|
8
8
|
"bin": {
|
|
9
9
|
"paigy-harness": "dist/cli.js"
|
|
10
10
|
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "tsup",
|
|
13
|
-
"dev": "pnpm build && electron .",
|
|
14
|
-
"start": "electron .",
|
|
15
|
-
"typecheck": "tsc --noEmit",
|
|
16
|
-
"test": "vitest run"
|
|
17
|
-
},
|
|
18
11
|
"dependencies": {},
|
|
19
12
|
"devDependencies": {
|
|
20
13
|
"@types/node": "^22.0.0",
|
|
@@ -23,10 +16,10 @@
|
|
|
23
16
|
"tsup": "^8.3.5",
|
|
24
17
|
"typescript": "^5.7.2",
|
|
25
18
|
"vitest": "^2.1.8",
|
|
26
|
-
"@paigy/schema": "workspace:*",
|
|
27
|
-
"@paigy/sdk": "workspace:*",
|
|
28
19
|
"qrcode": "^1.5.4",
|
|
29
|
-
"zod": "^3.24.1"
|
|
20
|
+
"zod": "^3.24.1",
|
|
21
|
+
"@paigy/schema": "0.0.0",
|
|
22
|
+
"@paigy/sdk": "0.1.0"
|
|
30
23
|
},
|
|
31
24
|
"files": [
|
|
32
25
|
"dist/cli.js",
|
|
@@ -34,5 +27,12 @@
|
|
|
34
27
|
],
|
|
35
28
|
"publishConfig": {
|
|
36
29
|
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsup",
|
|
33
|
+
"dev": "pnpm build && electron .",
|
|
34
|
+
"start": "electron .",
|
|
35
|
+
"typecheck": "tsc --noEmit",
|
|
36
|
+
"test": "vitest run"
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|