@h-rig/cli 0.0.6-alpha.0 → 0.0.6-alpha.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/bin/rig.js
CHANGED
|
@@ -4451,7 +4451,7 @@ function countDoctorFailures(checks) {
|
|
|
4451
4451
|
}
|
|
4452
4452
|
|
|
4453
4453
|
// packages/cli/src/commands/init.ts
|
|
4454
|
-
var RIG_CONFIG_PACKAGE_VERSION = "0.0.6-alpha.
|
|
4454
|
+
var RIG_CONFIG_PACKAGE_VERSION = "0.0.6-alpha.1";
|
|
4455
4455
|
var RIG_CONFIG_DEV_DEPENDENCIES = {
|
|
4456
4456
|
"@rig/core": `npm:@h-rig/core@${RIG_CONFIG_PACKAGE_VERSION}`,
|
|
4457
4457
|
"@rig/standard-plugin": `npm:@h-rig/standard-plugin@${RIG_CONFIG_PACKAGE_VERSION}`
|
|
@@ -7359,6 +7359,12 @@ function appendPiStageLog(input) {
|
|
|
7359
7359
|
});
|
|
7360
7360
|
emitServerRunEvent({ type: "log", runId: input.runId, title: input.stage });
|
|
7361
7361
|
}
|
|
7362
|
+
async function runCheckedCommand(command, args, cwd, label = "git") {
|
|
7363
|
+
const result = await command(args, { cwd });
|
|
7364
|
+
if (result.exitCode !== 0) {
|
|
7365
|
+
throw new Error(`${label} ${args.join(" ")} failed (${result.exitCode}): ${result.stderr ?? result.stdout ?? ""}`.trim());
|
|
7366
|
+
}
|
|
7367
|
+
}
|
|
7362
7368
|
function createCommandRunner(binary) {
|
|
7363
7369
|
return async (args, options) => {
|
|
7364
7370
|
const child = spawn2(binary, [...args], {
|
|
@@ -7434,6 +7440,7 @@ async function runTaskRunPostValidationLifecycle(input) {
|
|
|
7434
7440
|
command: gitCommand
|
|
7435
7441
|
});
|
|
7436
7442
|
stage("Commit", commit.committed ? "Committed run workspace changes." : "No workspace changes to commit.", "completed", "tool");
|
|
7443
|
+
await runCheckedCommand(gitCommand, ["push", "--set-upstream", "origin", branch], workspace, "git");
|
|
7437
7444
|
stage("Open PR", `Opening PR from ${branch}.`, "running", "tool");
|
|
7438
7445
|
const pr = await prAutomation({
|
|
7439
7446
|
projectRoot: workspace,
|
|
@@ -7444,7 +7451,6 @@ async function runTaskRunPostValidationLifecycle(input) {
|
|
|
7444
7451
|
sourceTask: input.sourceTask,
|
|
7445
7452
|
uploadedSnapshot: input.uploadedSnapshot,
|
|
7446
7453
|
command: ghCommand,
|
|
7447
|
-
gitCommand,
|
|
7448
7454
|
steerPi,
|
|
7449
7455
|
lifecycle: {
|
|
7450
7456
|
onPrOpened: async ({ prUrl }) => {
|
|
@@ -790,7 +790,7 @@ function countDoctorFailures(checks) {
|
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
// packages/cli/src/commands/init.ts
|
|
793
|
-
var RIG_CONFIG_PACKAGE_VERSION = "0.0.6-alpha.
|
|
793
|
+
var RIG_CONFIG_PACKAGE_VERSION = "0.0.6-alpha.1";
|
|
794
794
|
var RIG_CONFIG_DEV_DEPENDENCIES = {
|
|
795
795
|
"@rig/core": `npm:@h-rig/core@${RIG_CONFIG_PACKAGE_VERSION}`,
|
|
796
796
|
"@rig/standard-plugin": `npm:@h-rig/standard-plugin@${RIG_CONFIG_PACKAGE_VERSION}`
|
|
@@ -575,6 +575,12 @@ function appendPiStageLog(input) {
|
|
|
575
575
|
});
|
|
576
576
|
emitServerRunEvent({ type: "log", runId: input.runId, title: input.stage });
|
|
577
577
|
}
|
|
578
|
+
async function runCheckedCommand(command, args, cwd, label = "git") {
|
|
579
|
+
const result = await command(args, { cwd });
|
|
580
|
+
if (result.exitCode !== 0) {
|
|
581
|
+
throw new Error(`${label} ${args.join(" ")} failed (${result.exitCode}): ${result.stderr ?? result.stdout ?? ""}`.trim());
|
|
582
|
+
}
|
|
583
|
+
}
|
|
578
584
|
function createCommandRunner(binary) {
|
|
579
585
|
return async (args, options) => {
|
|
580
586
|
const child = spawn(binary, [...args], {
|
|
@@ -650,6 +656,7 @@ async function runTaskRunPostValidationLifecycle(input) {
|
|
|
650
656
|
command: gitCommand
|
|
651
657
|
});
|
|
652
658
|
stage("Commit", commit.committed ? "Committed run workspace changes." : "No workspace changes to commit.", "completed", "tool");
|
|
659
|
+
await runCheckedCommand(gitCommand, ["push", "--set-upstream", "origin", branch], workspace, "git");
|
|
653
660
|
stage("Open PR", `Opening PR from ${branch}.`, "running", "tool");
|
|
654
661
|
const pr = await prAutomation({
|
|
655
662
|
projectRoot: workspace,
|
|
@@ -660,7 +667,6 @@ async function runTaskRunPostValidationLifecycle(input) {
|
|
|
660
667
|
sourceTask: input.sourceTask,
|
|
661
668
|
uploadedSnapshot: input.uploadedSnapshot,
|
|
662
669
|
command: ghCommand,
|
|
663
|
-
gitCommand,
|
|
664
670
|
steerPi,
|
|
665
671
|
lifecycle: {
|
|
666
672
|
onPrOpened: async ({ prUrl }) => {
|
package/dist/src/commands.js
CHANGED
|
@@ -4245,7 +4245,7 @@ function countDoctorFailures(checks) {
|
|
|
4245
4245
|
}
|
|
4246
4246
|
|
|
4247
4247
|
// packages/cli/src/commands/init.ts
|
|
4248
|
-
var RIG_CONFIG_PACKAGE_VERSION = "0.0.6-alpha.
|
|
4248
|
+
var RIG_CONFIG_PACKAGE_VERSION = "0.0.6-alpha.1";
|
|
4249
4249
|
var RIG_CONFIG_DEV_DEPENDENCIES = {
|
|
4250
4250
|
"@rig/core": `npm:@h-rig/core@${RIG_CONFIG_PACKAGE_VERSION}`,
|
|
4251
4251
|
"@rig/standard-plugin": `npm:@h-rig/standard-plugin@${RIG_CONFIG_PACKAGE_VERSION}`
|
|
@@ -7153,6 +7153,12 @@ function appendPiStageLog(input) {
|
|
|
7153
7153
|
});
|
|
7154
7154
|
emitServerRunEvent({ type: "log", runId: input.runId, title: input.stage });
|
|
7155
7155
|
}
|
|
7156
|
+
async function runCheckedCommand(command, args, cwd, label = "git") {
|
|
7157
|
+
const result = await command(args, { cwd });
|
|
7158
|
+
if (result.exitCode !== 0) {
|
|
7159
|
+
throw new Error(`${label} ${args.join(" ")} failed (${result.exitCode}): ${result.stderr ?? result.stdout ?? ""}`.trim());
|
|
7160
|
+
}
|
|
7161
|
+
}
|
|
7156
7162
|
function createCommandRunner(binary) {
|
|
7157
7163
|
return async (args, options) => {
|
|
7158
7164
|
const child = spawn2(binary, [...args], {
|
|
@@ -7228,6 +7234,7 @@ async function runTaskRunPostValidationLifecycle(input) {
|
|
|
7228
7234
|
command: gitCommand
|
|
7229
7235
|
});
|
|
7230
7236
|
stage("Commit", commit.committed ? "Committed run workspace changes." : "No workspace changes to commit.", "completed", "tool");
|
|
7237
|
+
await runCheckedCommand(gitCommand, ["push", "--set-upstream", "origin", branch], workspace, "git");
|
|
7231
7238
|
stage("Open PR", `Opening PR from ${branch}.`, "running", "tool");
|
|
7232
7239
|
const pr = await prAutomation({
|
|
7233
7240
|
projectRoot: workspace,
|
|
@@ -7238,7 +7245,6 @@ async function runTaskRunPostValidationLifecycle(input) {
|
|
|
7238
7245
|
sourceTask: input.sourceTask,
|
|
7239
7246
|
uploadedSnapshot: input.uploadedSnapshot,
|
|
7240
7247
|
command: ghCommand,
|
|
7241
|
-
gitCommand,
|
|
7242
7248
|
steerPi,
|
|
7243
7249
|
lifecycle: {
|
|
7244
7250
|
onPrOpened: async ({ prUrl }) => {
|
package/dist/src/index.js
CHANGED
|
@@ -4447,7 +4447,7 @@ function countDoctorFailures(checks) {
|
|
|
4447
4447
|
}
|
|
4448
4448
|
|
|
4449
4449
|
// packages/cli/src/commands/init.ts
|
|
4450
|
-
var RIG_CONFIG_PACKAGE_VERSION = "0.0.6-alpha.
|
|
4450
|
+
var RIG_CONFIG_PACKAGE_VERSION = "0.0.6-alpha.1";
|
|
4451
4451
|
var RIG_CONFIG_DEV_DEPENDENCIES = {
|
|
4452
4452
|
"@rig/core": `npm:@h-rig/core@${RIG_CONFIG_PACKAGE_VERSION}`,
|
|
4453
4453
|
"@rig/standard-plugin": `npm:@h-rig/standard-plugin@${RIG_CONFIG_PACKAGE_VERSION}`
|
|
@@ -7355,6 +7355,12 @@ function appendPiStageLog(input) {
|
|
|
7355
7355
|
});
|
|
7356
7356
|
emitServerRunEvent({ type: "log", runId: input.runId, title: input.stage });
|
|
7357
7357
|
}
|
|
7358
|
+
async function runCheckedCommand(command, args, cwd, label = "git") {
|
|
7359
|
+
const result = await command(args, { cwd });
|
|
7360
|
+
if (result.exitCode !== 0) {
|
|
7361
|
+
throw new Error(`${label} ${args.join(" ")} failed (${result.exitCode}): ${result.stderr ?? result.stdout ?? ""}`.trim());
|
|
7362
|
+
}
|
|
7363
|
+
}
|
|
7358
7364
|
function createCommandRunner(binary) {
|
|
7359
7365
|
return async (args, options) => {
|
|
7360
7366
|
const child = spawn2(binary, [...args], {
|
|
@@ -7430,6 +7436,7 @@ async function runTaskRunPostValidationLifecycle(input) {
|
|
|
7430
7436
|
command: gitCommand
|
|
7431
7437
|
});
|
|
7432
7438
|
stage("Commit", commit.committed ? "Committed run workspace changes." : "No workspace changes to commit.", "completed", "tool");
|
|
7439
|
+
await runCheckedCommand(gitCommand, ["push", "--set-upstream", "origin", branch], workspace, "git");
|
|
7433
7440
|
stage("Open PR", `Opening PR from ${branch}.`, "running", "tool");
|
|
7434
7441
|
const pr = await prAutomation({
|
|
7435
7442
|
projectRoot: workspace,
|
|
@@ -7440,7 +7447,6 @@ async function runTaskRunPostValidationLifecycle(input) {
|
|
|
7440
7447
|
sourceTask: input.sourceTask,
|
|
7441
7448
|
uploadedSnapshot: input.uploadedSnapshot,
|
|
7442
7449
|
command: ghCommand,
|
|
7443
|
-
gitCommand,
|
|
7444
7450
|
steerPi,
|
|
7445
7451
|
lifecycle: {
|
|
7446
7452
|
onPrOpened: async ({ prUrl }) => {
|
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.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Rig package",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@clack/prompts": "^1.2.0",
|
|
26
|
-
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.
|
|
27
|
-
"@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.
|
|
28
|
-
"@rig/client": "npm:@h-rig/client@0.0.6-alpha.
|
|
26
|
+
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.1",
|
|
27
|
+
"@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.1",
|
|
28
|
+
"@rig/client": "npm:@h-rig/client@0.0.6-alpha.1",
|
|
29
29
|
"picocolors": "^1.1.1"
|
|
30
30
|
}
|
|
31
31
|
}
|