@h-rig/cli 0.0.6-alpha.46 → 0.0.6-alpha.47
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/bin/rig.js +3 -2
- package/dist/src/commands/_doctor-checks.js +3 -2
- package/dist/src/commands/_operator-view.js +3 -2
- package/dist/src/commands/_pi-frontend.js +3 -2
- package/dist/src/commands/_pi-remote-session.js +3 -2
- package/dist/src/commands/_pi-worker-bridge-extension.js +3 -2
- package/dist/src/commands/_preflight.js +3 -2
- package/dist/src/commands/_server-client.js +3 -2
- package/dist/src/commands/_snapshot-upload.js +3 -2
- package/dist/src/commands/doctor.js +3 -2
- package/dist/src/commands/github.js +3 -2
- package/dist/src/commands/inbox.js +3 -2
- package/dist/src/commands/init.js +3 -2
- package/dist/src/commands/inspect.js +3 -2
- package/dist/src/commands/run.js +3 -2
- package/dist/src/commands/server.js +3 -2
- package/dist/src/commands/setup.js +3 -2
- package/dist/src/commands/task-run-driver.js +3 -2
- package/dist/src/commands/task.js +3 -2
- package/dist/src/commands.js +3 -2
- package/dist/src/index.js +3 -2
- package/package.json +6 -6
package/dist/bin/rig.js
CHANGED
|
@@ -2989,8 +2989,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
2989
2989
|
return null;
|
|
2990
2990
|
const payload = await response.json();
|
|
2991
2991
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
2992
|
-
const
|
|
2993
|
-
const
|
|
2992
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
2993
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
2994
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
2994
2995
|
if (path)
|
|
2995
2996
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
2996
2997
|
return path;
|
|
@@ -181,8 +181,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
181
181
|
return null;
|
|
182
182
|
const payload = await response.json();
|
|
183
183
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
184
|
-
const
|
|
185
|
-
const
|
|
184
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
185
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
186
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
186
187
|
if (path)
|
|
187
188
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
188
189
|
return path;
|
|
@@ -176,8 +176,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
176
176
|
return null;
|
|
177
177
|
const payload = await response.json();
|
|
178
178
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
179
|
-
const
|
|
180
|
-
const
|
|
179
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
180
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
181
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
181
182
|
if (path)
|
|
182
183
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
183
184
|
return path;
|
|
@@ -186,8 +186,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
186
186
|
return null;
|
|
187
187
|
const payload = await response.json();
|
|
188
188
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
189
|
-
const
|
|
190
|
-
const
|
|
189
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
190
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
191
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
191
192
|
if (path)
|
|
192
193
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
193
194
|
return path;
|
|
@@ -179,8 +179,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
179
179
|
return null;
|
|
180
180
|
const payload = await response.json();
|
|
181
181
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
182
|
-
const
|
|
183
|
-
const
|
|
182
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
183
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
184
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
184
185
|
if (path)
|
|
185
186
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
186
187
|
return path;
|
|
@@ -176,8 +176,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
176
176
|
return null;
|
|
177
177
|
const payload = await response.json();
|
|
178
178
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
179
|
-
const
|
|
180
|
-
const
|
|
179
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
180
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
181
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
181
182
|
if (path)
|
|
182
183
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
183
184
|
return path;
|
|
@@ -175,8 +175,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
175
175
|
return null;
|
|
176
176
|
const payload = await response.json();
|
|
177
177
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
178
|
-
const
|
|
179
|
-
const
|
|
178
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
179
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
180
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
180
181
|
if (path)
|
|
181
182
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
182
183
|
return path;
|
|
@@ -180,8 +180,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
180
180
|
return null;
|
|
181
181
|
const payload = await response.json();
|
|
182
182
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
183
|
-
const
|
|
184
|
-
const
|
|
183
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
184
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
185
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
185
186
|
if (path)
|
|
186
187
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
187
188
|
return path;
|
|
@@ -180,8 +180,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
180
180
|
return null;
|
|
181
181
|
const payload = await response.json();
|
|
182
182
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
183
|
-
const
|
|
184
|
-
const
|
|
183
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
184
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
185
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
185
186
|
if (path)
|
|
186
187
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
187
188
|
return path;
|
|
@@ -185,8 +185,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
185
185
|
return null;
|
|
186
186
|
const payload = await response.json();
|
|
187
187
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
188
|
-
const
|
|
189
|
-
const
|
|
188
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
189
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
190
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
190
191
|
if (path)
|
|
191
192
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
192
193
|
return path;
|
|
@@ -197,8 +197,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
197
197
|
return null;
|
|
198
198
|
const payload = await response.json();
|
|
199
199
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
200
|
-
const
|
|
201
|
-
const
|
|
200
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
201
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
202
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
202
203
|
if (path)
|
|
203
204
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
204
205
|
return path;
|
|
@@ -291,8 +291,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
291
291
|
return null;
|
|
292
292
|
const payload = await response.json();
|
|
293
293
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
294
|
-
const
|
|
295
|
-
const
|
|
294
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
295
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
296
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
296
297
|
if (path)
|
|
297
298
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
298
299
|
return path;
|
|
@@ -231,8 +231,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
231
231
|
return null;
|
|
232
232
|
const payload = await response.json();
|
|
233
233
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
234
|
-
const
|
|
235
|
-
const
|
|
234
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
235
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
236
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
236
237
|
if (path)
|
|
237
238
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
238
239
|
return path;
|
|
@@ -222,8 +222,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
222
222
|
return null;
|
|
223
223
|
const payload = await response.json();
|
|
224
224
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
225
|
-
const
|
|
226
|
-
const
|
|
225
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
226
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
227
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
227
228
|
if (path)
|
|
228
229
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
229
230
|
return path;
|
package/dist/src/commands/run.js
CHANGED
|
@@ -246,8 +246,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
246
246
|
return null;
|
|
247
247
|
const payload = await response.json();
|
|
248
248
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
249
|
-
const
|
|
250
|
-
const
|
|
249
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
250
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
251
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
251
252
|
if (path)
|
|
252
253
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
253
254
|
return path;
|
|
@@ -417,8 +417,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
417
417
|
return null;
|
|
418
418
|
const payload = await response.json();
|
|
419
419
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
420
|
-
const
|
|
421
|
-
const
|
|
420
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
421
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
422
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
422
423
|
if (path)
|
|
423
424
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
424
425
|
return path;
|
|
@@ -340,8 +340,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
340
340
|
return null;
|
|
341
341
|
const payload = await response.json();
|
|
342
342
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
343
|
-
const
|
|
344
|
-
const
|
|
343
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
344
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
345
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
345
346
|
if (path)
|
|
346
347
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
347
348
|
return path;
|
|
@@ -556,8 +556,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
556
556
|
return null;
|
|
557
557
|
const payload = await response.json();
|
|
558
558
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
559
|
-
const
|
|
560
|
-
const
|
|
559
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
560
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
561
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
561
562
|
if (path)
|
|
562
563
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
563
564
|
return path;
|
|
@@ -269,8 +269,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
269
269
|
return null;
|
|
270
270
|
const payload = await response.json();
|
|
271
271
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
272
|
-
const
|
|
273
|
-
const
|
|
272
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
273
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
274
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
274
275
|
if (path)
|
|
275
276
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
276
277
|
return path;
|
package/dist/src/commands.js
CHANGED
|
@@ -2795,8 +2795,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
2795
2795
|
return null;
|
|
2796
2796
|
const payload = await response.json();
|
|
2797
2797
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
2798
|
-
const
|
|
2799
|
-
const
|
|
2798
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
2799
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
2800
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
2800
2801
|
if (path)
|
|
2801
2802
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
2802
2803
|
return path;
|
package/dist/src/index.js
CHANGED
|
@@ -2985,8 +2985,9 @@ async function backfillRemoteServerProjectRoot(projectRoot, baseUrl, authToken)
|
|
|
2985
2985
|
return null;
|
|
2986
2986
|
const payload = await response.json();
|
|
2987
2987
|
const project = payload.project && typeof payload.project === "object" && !Array.isArray(payload.project) ? payload.project : null;
|
|
2988
|
-
const
|
|
2989
|
-
const
|
|
2988
|
+
const checkouts = Array.isArray(project?.checkouts) ? project.checkouts : [];
|
|
2989
|
+
const latestCheckout = [...checkouts].reverse().find((entry) => Boolean(entry && typeof entry === "object" && !Array.isArray(entry) && typeof entry.path === "string"));
|
|
2990
|
+
const path = typeof latestCheckout?.path === "string" && latestCheckout.path.trim() ? latestCheckout.path.trim() : null;
|
|
2990
2991
|
if (path)
|
|
2991
2992
|
writeRepoServerProjectRoot(projectRoot, path);
|
|
2992
2993
|
return path;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-rig/cli",
|
|
3
|
-
"version": "0.0.6-alpha.
|
|
3
|
+
"version": "0.0.6-alpha.47",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Rig package",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@clack/prompts": "^1.2.0",
|
|
26
|
-
"@earendil-works/pi-coding-agent": "npm:@h-rig/pi-coding-agent@0.0.6-alpha.
|
|
27
|
-
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.
|
|
28
|
-
"@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.
|
|
29
|
-
"@rig/client": "npm:@h-rig/client@0.0.6-alpha.
|
|
30
|
-
"@rig/server": "npm:@h-rig/server@0.0.6-alpha.
|
|
26
|
+
"@earendil-works/pi-coding-agent": "npm:@h-rig/pi-coding-agent@0.0.6-alpha.47",
|
|
27
|
+
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.47",
|
|
28
|
+
"@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.47",
|
|
29
|
+
"@rig/client": "npm:@h-rig/client@0.0.6-alpha.47",
|
|
30
|
+
"@rig/server": "npm:@h-rig/server@0.0.6-alpha.47",
|
|
31
31
|
"picocolors": "^1.1.1"
|
|
32
32
|
}
|
|
33
33
|
}
|