@rudderhq/cli 0.2.0-canary.2 → 0.2.0-canary.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/index.js +21 -4
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1321,7 +1321,7 @@ var init_agent = __esm({
|
|
|
1321
1321
|
name: z11.string().min(1).default("default")
|
|
1322
1322
|
});
|
|
1323
1323
|
wakeAgentSchema = z11.object({
|
|
1324
|
-
source: z11.enum(["timer", "assignment", "on_demand", "automation"]).optional().default("on_demand"),
|
|
1324
|
+
source: z11.enum(["timer", "assignment", "review", "on_demand", "automation"]).optional().default("on_demand"),
|
|
1325
1325
|
triggerDetail: z11.enum(["manual", "ping", "callback", "system"]).optional(),
|
|
1326
1326
|
reason: z11.string().optional().nullable(),
|
|
1327
1327
|
payload: z11.record(z11.unknown()).optional().nullable(),
|
|
@@ -1450,7 +1450,7 @@ var init_project = __esm({
|
|
|
1450
1450
|
|
|
1451
1451
|
// ../packages/shared/src/validators/issue.ts
|
|
1452
1452
|
import { z as z13 } from "zod";
|
|
1453
|
-
var executionWorkspaceStrategySchema2, issueExecutionWorkspaceSettingsSchema, issueAssigneeAdapterOverridesSchema, createIssueSchema, createIssueLabelSchema, updateIssueLabelSchema, updateIssueSchema, reorderIssueSchema, checkoutIssueSchema, addIssueCommentSchema, linkIssueApprovalSchema, createIssueAttachmentMetadataSchema, ISSUE_DOCUMENT_FORMATS, issueDocumentFormatSchema, issueDocumentKeySchema, upsertIssueDocumentSchema;
|
|
1453
|
+
var executionWorkspaceStrategySchema2, issueExecutionWorkspaceSettingsSchema, issueAssigneeAdapterOverridesSchema, createIssueSchema, createIssueLabelSchema, updateIssueLabelSchema, updateIssueSchema, reorderIssueSchema, checkoutIssueSchema, addIssueCommentSchema, linkIssueApprovalSchema, createIssueAttachmentMetadataSchema, createIssueWorkspaceAttachmentSchema, ISSUE_DOCUMENT_FORMATS, issueDocumentFormatSchema, issueDocumentKeySchema, upsertIssueDocumentSchema;
|
|
1454
1454
|
var init_issue = __esm({
|
|
1455
1455
|
"../packages/shared/src/validators/issue.ts"() {
|
|
1456
1456
|
"use strict";
|
|
@@ -1483,6 +1483,8 @@ var init_issue = __esm({
|
|
|
1483
1483
|
priority: z13.enum(ISSUE_PRIORITIES).optional().default("medium"),
|
|
1484
1484
|
assigneeAgentId: z13.string().uuid().optional().nullable(),
|
|
1485
1485
|
assigneeUserId: z13.string().optional().nullable(),
|
|
1486
|
+
reviewerAgentId: z13.string().uuid().optional().nullable(),
|
|
1487
|
+
reviewerUserId: z13.string().optional().nullable(),
|
|
1486
1488
|
requestDepth: z13.number().int().nonnegative().optional().default(0),
|
|
1487
1489
|
billingCode: z13.string().optional().nullable(),
|
|
1488
1490
|
assigneeAgentRuntimeOverrides: issueAssigneeAdapterOverridesSchema.optional().nullable(),
|
|
@@ -1541,6 +1543,9 @@ var init_issue = __esm({
|
|
|
1541
1543
|
issueCommentId: z13.string().uuid().optional().nullable(),
|
|
1542
1544
|
usage: z13.enum(["issue", "description_inline", "document_inline", "comment_inline", "comment_attachment"]).optional()
|
|
1543
1545
|
});
|
|
1546
|
+
createIssueWorkspaceAttachmentSchema = z13.object({
|
|
1547
|
+
path: z13.string().trim().min(1).max(2048)
|
|
1548
|
+
});
|
|
1544
1549
|
ISSUE_DOCUMENT_FORMATS = ["markdown"];
|
|
1545
1550
|
issueDocumentFormatSchema = z13.enum(ISSUE_DOCUMENT_FORMATS);
|
|
1546
1551
|
issueDocumentKeySchema = z13.string().trim().min(1).max(64).regex(/^[a-z0-9][a-z0-9_-]*$/, "Document key must be lowercase letters, numbers, _ or -");
|
|
@@ -4777,6 +4782,8 @@ var init_issues = __esm({
|
|
|
4777
4782
|
boardOrder: integer9("board_order").notNull().default(0),
|
|
4778
4783
|
assigneeAgentId: uuid28("assignee_agent_id").references(() => agents.id),
|
|
4779
4784
|
assigneeUserId: text34("assignee_user_id"),
|
|
4785
|
+
reviewerAgentId: uuid28("reviewer_agent_id").references(() => agents.id),
|
|
4786
|
+
reviewerUserId: text34("reviewer_user_id"),
|
|
4780
4787
|
checkoutRunId: uuid28("checkout_run_id").references(() => heartbeatRuns.id, { onDelete: "set null" }),
|
|
4781
4788
|
executionRunId: uuid28("execution_run_id").references(() => heartbeatRuns.id, { onDelete: "set null" }),
|
|
4782
4789
|
executionAgentNameKey: text34("execution_agent_name_key"),
|
|
@@ -4818,6 +4825,16 @@ var init_issues = __esm({
|
|
|
4818
4825
|
table.assigneeUserId,
|
|
4819
4826
|
table.status
|
|
4820
4827
|
),
|
|
4828
|
+
reviewerAgentStatusIdx: index25("issues_company_reviewer_agent_status_idx").on(
|
|
4829
|
+
table.orgId,
|
|
4830
|
+
table.reviewerAgentId,
|
|
4831
|
+
table.status
|
|
4832
|
+
),
|
|
4833
|
+
reviewerUserStatusIdx: index25("issues_company_reviewer_user_status_idx").on(
|
|
4834
|
+
table.orgId,
|
|
4835
|
+
table.reviewerUserId,
|
|
4836
|
+
table.status
|
|
4837
|
+
),
|
|
4821
4838
|
parentIdx: index25("issues_company_parent_idx").on(table.orgId, table.parentId),
|
|
4822
4839
|
projectIdx: index25("issues_company_project_idx").on(table.orgId, table.projectId),
|
|
4823
4840
|
originIdx: index25("issues_company_origin_idx").on(table.orgId, table.originKind, table.originId),
|
|
@@ -11044,7 +11061,7 @@ async function startCommand(opts) {
|
|
|
11044
11061
|
const installCli = opts.cli !== false;
|
|
11045
11062
|
const installDesktop = opts.desktop !== false;
|
|
11046
11063
|
const repo = opts.repo?.trim() || DEFAULT_DESKTOP_RELEASE_REPO;
|
|
11047
|
-
const version = opts.version?.trim() || resolveCurrentCliVersion();
|
|
11064
|
+
const version = opts.targetVersion?.trim() || opts.version?.trim() || resolveCurrentCliVersion();
|
|
11048
11065
|
const dryRun = opts.dryRun === true;
|
|
11049
11066
|
if (!installCli && !installDesktop) {
|
|
11050
11067
|
throw new Error("Nothing to start. Remove --no-cli or --no-desktop.");
|
|
@@ -20249,7 +20266,7 @@ function createProgram() {
|
|
|
20249
20266
|
});
|
|
20250
20267
|
loadRudderEnvFile(options.config);
|
|
20251
20268
|
});
|
|
20252
|
-
program.command("start").description("Start Rudder Desktop and prepare the matching persistent CLI").option("--no-cli", "Skip persistent CLI installation").option("--no-desktop", "Skip desktop app installation").option("--version <version>", "Rudder version to start (default: current CLI version)").option("--repo <owner/repo>", "GitHub repository that hosts desktop releases").option("--output-dir <path>", "Directory for downloaded desktop release assets").option("--desktop-install-dir <path>", "Directory for the portable Desktop install").option("--no-open", "Install Desktop without launching it").option("--no-version-check", "Skip checking npm for a newer Rudder CLI version").option("--dry-run", "Print the start actions without changing the machine", false).action(startCommand);
|
|
20269
|
+
program.command("start").description("Start Rudder Desktop and prepare the matching persistent CLI").option("--no-cli", "Skip persistent CLI installation").option("--no-desktop", "Skip desktop app installation").option("--version <version>", "Rudder version to start (default: current CLI version)").option("--target-version <version>", "Rudder version to start; avoids the root CLI version flag").option("--repo <owner/repo>", "GitHub repository that hosts desktop releases").option("--output-dir <path>", "Directory for downloaded desktop release assets").option("--desktop-install-dir <path>", "Directory for the portable Desktop install").option("--no-open", "Install Desktop without launching it").option("--no-version-check", "Skip checking npm for a newer Rudder CLI version").option("--dry-run", "Print the start actions without changing the machine", false).action(startCommand);
|
|
20253
20270
|
program.command("onboard").description("Interactive first-run setup wizard").option("-c, --config <path>", "Path to config file").option("-d, --data-dir <path>", DATA_DIR_OPTION_HELP).option("-y, --yes", "Accept defaults (quickstart + start immediately)", false).option("--run", "Start Rudder immediately after saving config", false).action(onboard);
|
|
20254
20271
|
program.command("doctor").description("Run diagnostic checks on your Rudder setup").option("-c, --config <path>", "Path to config file").option("-d, --data-dir <path>", DATA_DIR_OPTION_HELP).option("--repair", "Attempt to repair issues automatically").alias("--fix").option("-y, --yes", "Skip repair confirmation prompts").action(async (opts) => {
|
|
20255
20272
|
await doctor(opts);
|