replicas-cli 0.3.620 → 0.3.623
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.cjs +49 -33
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21193,6 +21193,9 @@ var init_sandbox = __esm({
|
|
|
21193
21193
|
});
|
|
21194
21194
|
|
|
21195
21195
|
// ../shared/src/pricing.ts
|
|
21196
|
+
function isClientMessageSource(value) {
|
|
21197
|
+
return typeof value === "string" && CLIENT_MESSAGE_SOURCES.some((source) => source === value);
|
|
21198
|
+
}
|
|
21196
21199
|
var BILLING_BLOCK_TITLES, TRIAL_CREDIT_CENTS, SCOUT_SOURCE, WORKSPACE_SOURCES, CLIENT_MESSAGE_SOURCES, MESSAGE_SOURCES, AUTOMATED_SOURCES, AUTOMATED_SOURCES_SQL, EGRESS_MICRODOLLARS_PER_GB, EGRESS_RATE_LABEL, CREDIT_PLAN_UNITS, PLANS, TEAM_PLAN, ENTERPRISE_PLAN;
|
|
21197
21200
|
var init_pricing = __esm({
|
|
21198
21201
|
"../shared/src/pricing.ts"() {
|
|
@@ -21207,9 +21210,12 @@ var init_pricing = __esm({
|
|
|
21207
21210
|
};
|
|
21208
21211
|
TRIAL_CREDIT_CENTS = 1e4;
|
|
21209
21212
|
SCOUT_SOURCE = "mothership";
|
|
21210
|
-
WORKSPACE_SOURCES = ["api", "dashboard", "slack", "linear", "github", "gitlab", "automation", SCOUT_SOURCE];
|
|
21213
|
+
WORKSPACE_SOURCES = ["api", "dashboard", "mobile", "slack", "linear", "github", "gitlab", "automation", SCOUT_SOURCE];
|
|
21211
21214
|
CLIENT_MESSAGE_SOURCES = ["web", "desktop", "mobile", "tui"];
|
|
21212
|
-
MESSAGE_SOURCES = [
|
|
21215
|
+
MESSAGE_SOURCES = [
|
|
21216
|
+
...CLIENT_MESSAGE_SOURCES,
|
|
21217
|
+
...WORKSPACE_SOURCES.filter((source) => !isClientMessageSource(source))
|
|
21218
|
+
];
|
|
21213
21219
|
AUTOMATED_SOURCES = ["api", "automation"];
|
|
21214
21220
|
AUTOMATED_SOURCES_SQL = AUTOMATED_SOURCES.map((s) => `'${s}'`).join(", ");
|
|
21215
21221
|
EGRESS_MICRODOLLARS_PER_GB = 15e4;
|
|
@@ -24773,7 +24779,8 @@ function parseIssueContractRecord(schema, value, at, report) {
|
|
|
24773
24779
|
}
|
|
24774
24780
|
function parseIssueContractResponse(schema, value, report) {
|
|
24775
24781
|
const rows = isRecord(value) ? Object.fromEntries(Object.entries(value).map(([key, raw]) => {
|
|
24776
|
-
const
|
|
24782
|
+
const shape = schema.shape[key];
|
|
24783
|
+
const field2 = shape instanceof external_exports.ZodOptional ? shape.unwrap() : shape;
|
|
24777
24784
|
return [key, field2 instanceof external_exports.ZodArray && Array.isArray(raw) ? raw.filter((row) => parseIssueContractRecord(field2.element, row, key, report) !== void 0) : raw];
|
|
24778
24785
|
})) : value;
|
|
24779
24786
|
const parsed = external_exports.safeParse(schema, rows);
|
|
@@ -24855,7 +24862,7 @@ function mapIssueActors(value, map2) {
|
|
|
24855
24862
|
return [key, mapIssueActors(inner, map2)];
|
|
24856
24863
|
}));
|
|
24857
24864
|
}
|
|
24858
|
-
var ISSUE_STATUSES, ISSUE_PRIORITIES, ISSUE_ACTOR_TYPES, ISSUE_SUBSCRIBER_ROLES, ISSUE_RELATION_TYPES, ISSUE_PULL_REQUEST_STATES, normalizeIssueStatus, issueStatusSchema, issuePrioritySchema, issueSubscriberRoleSchema, issueRelationTypeSchema, issuePullRequestStateSchema, ISSUE_STATUS_LABELS, ISSUE_PRIORITY_LABELS, unknownValues, knownOrRaw, createIssueContractReport, knownIssueActorSchema, issueActorSchema, ISSUE_KEY_RE, ISSUE_MENTION_LINK, timestamp, nullableTimestamp, issueSchema, issueSubscriberSchema, issueRelationSchema, issuePullRequestSchema, issueCommentSchema, change, nullableId, issueEventDataSchemas, issueEventBase, v, issueEventVariants, created, laterVariants, issueEventSchema, issueActorDirectorySchema, clientMutationId, title, description, body, createIssueRequestSchema, updateIssueRequestSchema, issueActorRequestSchema, createIssueCommentRequestSchema, updateIssueCommentRequestSchema, createIssueRelationRequestSchema, linkIssuePullRequestRequestSchema, updateIssuePullRequestRequestSchema, issueMutationRequestSchema, updateIssueSettingsRequestSchema, listIssuesQuerySchema, issueDetailResponseSchema, listIssuesResponseSchema, issueDirectoryUserSchema, issueDirectoryWorkspaceSchema, issuesBootstrapResponseSchema, issuesDeltaQuerySchema, issuesDeltaResponseSchema, issueInboxQuerySchema, markIssueInboxReadRequestSchema, ISSUE_COMMANDS;
|
|
24865
|
+
var ISSUE_STATUSES, ISSUE_PRIORITIES, ISSUE_ACTOR_TYPES, ISSUE_SUBSCRIBER_ROLES, ISSUE_RELATION_TYPES, ISSUE_PULL_REQUEST_STATES, normalizeIssueStatus, issueStatusSchema, issuePrioritySchema, issueSubscriberRoleSchema, issueRelationTypeSchema, issuePullRequestStateSchema, ISSUE_STATUS_LABELS, ISSUE_PRIORITY_LABELS, unknownValues, knownOrRaw, createIssueContractReport, knownIssueActorSchema, issueActorSchema, ISSUE_KEY_RE, ISSUE_MENTION_LINK, timestamp, nullableTimestamp, issueSchema, issueSubscriberSchema, issueRelationSchema, issuePullRequestSchema, issueCommentSchema, change, nullableId, issueEventDataSchemas, issueEventBase, v, issueEventVariants, created, laterVariants, issueEventSchema, issueRelationKind, issueActorDirectorySchema, clientMutationId, title, description, body, createIssueRequestSchema, updateIssueRequestSchema, issueActorRequestSchema, createIssueCommentRequestSchema, updateIssueCommentRequestSchema, createIssueRelationRequestSchema, linkIssuePullRequestRequestSchema, updateIssuePullRequestRequestSchema, issueMutationRequestSchema, updateIssueSettingsRequestSchema, listIssuesQuerySchema, issueDetailResponseSchema, listIssuesResponseSchema, issueDirectoryUserSchema, issueDirectoryWorkspaceSchema, issuesBootstrapResponseSchema, issuesDeltaQuerySchema, issuesDeltaResponseSchema, issueInboxQuerySchema, markIssueInboxReadRequestSchema, ISSUE_COMMANDS;
|
|
24859
24866
|
var init_issues = __esm({
|
|
24860
24867
|
"../shared/src/routes/issues.ts"() {
|
|
24861
24868
|
"use strict";
|
|
@@ -24990,6 +24997,7 @@ var init_issues = __esm({
|
|
|
24990
24997
|
issueEventVariants = { created: v("created"), title_changed: v("title_changed"), description_changed: v("description_changed"), status_changed: v("status_changed"), priority_changed: v("priority_changed"), parent_changed: v("parent_changed"), manager_changed: v("manager_changed"), sort_order_changed: v("sort_order_changed"), assignee_added: v("assignee_added"), assignee_removed: v("assignee_removed"), subscriber_added: v("subscriber_added"), subscriber_removed: v("subscriber_removed"), relation_added: v("relation_added"), relation_removed: v("relation_removed"), pr_linked: v("pr_linked"), pr_unlinked: v("pr_unlinked"), pr_state_changed: v("pr_state_changed"), comment_added: v("comment_added"), comment_edited: v("comment_edited"), comment_deleted: v("comment_deleted"), archived: v("archived"), restored: v("restored") };
|
|
24991
24998
|
({ created, ...laterVariants } = issueEventVariants);
|
|
24992
24999
|
issueEventSchema = external_exports.discriminatedUnion("type", [created, ...Object.values(laterVariants)]);
|
|
25000
|
+
issueRelationKind = (relation, issueId) => relation.type === "blocks" ? relation.issue_id === issueId ? "blocks" : "blocked_by" : relation.issue_id === issueId ? "duplicate_of" : "duplicated_by";
|
|
24993
25001
|
issueActorDirectorySchema = external_exports.record(external_exports.string(), external_exports.object({ name: external_exports.string(), handle: external_exports.string() }));
|
|
24994
25002
|
clientMutationId = external_exports.string().min(1).max(128).optional();
|
|
24995
25003
|
title = external_exports.string().trim().min(1).max(500);
|
|
@@ -25067,7 +25075,8 @@ var init_issues = __esm({
|
|
|
25067
25075
|
pull_requests: external_exports.array(issuePullRequestSchema),
|
|
25068
25076
|
comments: external_exports.array(issueCommentSchema),
|
|
25069
25077
|
events: external_exports.array(issueEventSchema),
|
|
25070
|
-
sub_issues: external_exports.array(issueSchema)
|
|
25078
|
+
sub_issues: external_exports.array(issueSchema),
|
|
25079
|
+
related_issues: external_exports.array(issueSchema).optional()
|
|
25071
25080
|
});
|
|
25072
25081
|
listIssuesResponseSchema = external_exports.object({ issues: external_exports.array(issueSchema), next_cursor: external_exports.number().nullable() });
|
|
25073
25082
|
issueDirectoryUserSchema = external_exports.object({
|
|
@@ -39908,6 +39917,7 @@ var init_context_usage = __esm({
|
|
|
39908
39917
|
"use strict";
|
|
39909
39918
|
init_event();
|
|
39910
39919
|
init_agent();
|
|
39920
|
+
init_type_guards();
|
|
39911
39921
|
}
|
|
39912
39922
|
});
|
|
39913
39923
|
|
|
@@ -40352,14 +40362,11 @@ var init_hook_config = __esm({
|
|
|
40352
40362
|
});
|
|
40353
40363
|
|
|
40354
40364
|
// ../shared/src/warm-hooks.ts
|
|
40355
|
-
function isRecord2(value) {
|
|
40356
|
-
return typeof value === "object" && value !== null;
|
|
40357
|
-
}
|
|
40358
40365
|
function parseWarmHookConfig(value, filename = "replicas.json") {
|
|
40359
40366
|
if (typeof value === "string") {
|
|
40360
40367
|
return value;
|
|
40361
40368
|
}
|
|
40362
|
-
if (!
|
|
40369
|
+
if (!isRecord(value)) {
|
|
40363
40370
|
throw new Error(`Invalid ${filename}: "warmHook" must be a string or object`);
|
|
40364
40371
|
}
|
|
40365
40372
|
if (!Array.isArray(value.commands) || !value.commands.every((entry) => typeof entry === "string")) {
|
|
@@ -40382,6 +40389,7 @@ var init_warm_hooks = __esm({
|
|
|
40382
40389
|
"../shared/src/warm-hooks.ts"() {
|
|
40383
40390
|
"use strict";
|
|
40384
40391
|
init_hook_config();
|
|
40392
|
+
init_type_guards();
|
|
40385
40393
|
DEFAULT_WARM_HOOK_TIMEOUT_MS = 60 * 60 * 1e3;
|
|
40386
40394
|
MAX_WARM_HOOK_TIMEOUT_MS = 120 * 60 * 1e3;
|
|
40387
40395
|
DEFAULT_START_HOOK_TIMEOUT_MS = 5 * 60 * 1e3;
|
|
@@ -40390,11 +40398,8 @@ var init_warm_hooks = __esm({
|
|
|
40390
40398
|
});
|
|
40391
40399
|
|
|
40392
40400
|
// ../shared/src/replicas-config.ts
|
|
40393
|
-
function isRecord3(value) {
|
|
40394
|
-
return typeof value === "object" && value !== null;
|
|
40395
|
-
}
|
|
40396
40401
|
function parseReplicasConfig(value, filename = "replicas.json") {
|
|
40397
|
-
if (!
|
|
40402
|
+
if (!isRecord(value)) {
|
|
40398
40403
|
throw new Error(`Invalid ${filename}: expected an object`);
|
|
40399
40404
|
}
|
|
40400
40405
|
const config3 = {};
|
|
@@ -40418,7 +40423,7 @@ function parseReplicasConfig(value, filename = "replicas.json") {
|
|
|
40418
40423
|
config3.systemPrompt = value.systemPrompt;
|
|
40419
40424
|
}
|
|
40420
40425
|
if ("startHook" in value) {
|
|
40421
|
-
if (!
|
|
40426
|
+
if (!isRecord(value.startHook)) {
|
|
40422
40427
|
throw new Error(`Invalid ${filename}: "startHook" must be an object with "commands" array`);
|
|
40423
40428
|
}
|
|
40424
40429
|
const { commands, timeout, separate } = value.startHook;
|
|
@@ -40474,6 +40479,7 @@ var init_replicas_config = __esm({
|
|
|
40474
40479
|
import_yaml2 = __toESM(require_dist());
|
|
40475
40480
|
init_result();
|
|
40476
40481
|
init_warm_hooks();
|
|
40482
|
+
init_type_guards();
|
|
40477
40483
|
init_environment_config();
|
|
40478
40484
|
REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
|
|
40479
40485
|
}
|
|
@@ -40793,7 +40799,7 @@ var CLI_VERSION;
|
|
|
40793
40799
|
var init_cli_version = __esm({
|
|
40794
40800
|
"../shared/src/cli-version.ts"() {
|
|
40795
40801
|
"use strict";
|
|
40796
|
-
CLI_VERSION = "0.3.
|
|
40802
|
+
CLI_VERSION = "0.3.623";
|
|
40797
40803
|
}
|
|
40798
40804
|
});
|
|
40799
40805
|
|
|
@@ -51635,6 +51641,7 @@ var EMAIL_KEYS, MANUAL_EMAIL_TEMPLATE_KEYS, EMAIL_TEMPLATE_KEYS;
|
|
|
51635
51641
|
var init_onboarding_emails = __esm({
|
|
51636
51642
|
"../shared/src/onboarding-emails.ts"() {
|
|
51637
51643
|
"use strict";
|
|
51644
|
+
init_type_guards();
|
|
51638
51645
|
EMAIL_KEYS = [
|
|
51639
51646
|
"welcome",
|
|
51640
51647
|
"no_repo_24h",
|
|
@@ -52898,6 +52905,10 @@ var init_currency = __esm({
|
|
|
52898
52905
|
function formatDate(dateString) {
|
|
52899
52906
|
return new Date(dateString).toLocaleString();
|
|
52900
52907
|
}
|
|
52908
|
+
function truncate(text3, maxLength) {
|
|
52909
|
+
if (text3.length <= maxLength) return text3;
|
|
52910
|
+
return text3.substring(0, maxLength) + "...";
|
|
52911
|
+
}
|
|
52901
52912
|
function printReplicaActivity(activity) {
|
|
52902
52913
|
console.log(import_chalk6.default.gray(` Agent: ${activity.state.replaceAll("_", " ")}${activity.current_step ? ` \xB7 ${activity.current_step}` : ""}`));
|
|
52903
52914
|
if (activity.last_agent_message) console.log(import_chalk6.default.gray(` Last message: ${activity.last_agent_message}`));
|
|
@@ -55363,10 +55374,6 @@ function formatStatus(status) {
|
|
|
55363
55374
|
if (isWorkspaceSuspendedStatus(status)) return import_chalk22.default.gray(status);
|
|
55364
55375
|
return status;
|
|
55365
55376
|
}
|
|
55366
|
-
function truncate(text3, maxLength) {
|
|
55367
|
-
if (text3.length <= maxLength) return text3;
|
|
55368
|
-
return text3.substring(0, maxLength) + "...";
|
|
55369
|
-
}
|
|
55370
55377
|
function formatDisplayMessage(message2) {
|
|
55371
55378
|
const time3 = new Date(message2.timestamp).toLocaleTimeString();
|
|
55372
55379
|
switch (message2.type) {
|
|
@@ -56391,10 +56398,6 @@ function buildTriggersFromOptions(options, runAt, repositories) {
|
|
|
56391
56398
|
}
|
|
56392
56399
|
return triggers;
|
|
56393
56400
|
}
|
|
56394
|
-
function truncate2(text3, maxLength) {
|
|
56395
|
-
if (text3.length <= maxLength) return text3;
|
|
56396
|
-
return text3.substring(0, maxLength) + "...";
|
|
56397
|
-
}
|
|
56398
56401
|
function formatAutoPause(automation2) {
|
|
56399
56402
|
return `${AUTOMATION_AUTO_PAUSE_LABEL}${automation2.failing_cause ? `: ${automation2.failing_cause}` : ""}`;
|
|
56400
56403
|
}
|
|
@@ -56432,7 +56435,7 @@ function printAutomation(automation2) {
|
|
|
56432
56435
|
}
|
|
56433
56436
|
console.log(import_chalk27.default.gray(` Enabled: ${automation2.enabled ? import_chalk27.default.green("yes") : import_chalk27.default.red("no")}`));
|
|
56434
56437
|
if (automation2.auto_paused_at) {
|
|
56435
|
-
console.log(import_chalk27.default.yellow(` ${
|
|
56438
|
+
console.log(import_chalk27.default.yellow(` ${truncate(formatAutoPause(automation2), 120)}`));
|
|
56436
56439
|
}
|
|
56437
56440
|
if (automation2.triggers.length > 0) {
|
|
56438
56441
|
console.log(import_chalk27.default.gray(` Triggers: ${automation2.triggers.map(formatTrigger).join(", ")}`));
|
|
@@ -56440,7 +56443,7 @@ function printAutomation(automation2) {
|
|
|
56440
56443
|
if (automation2.github_check_names.length > 0) {
|
|
56441
56444
|
console.log(import_chalk27.default.gray(` GitHub checks: ${automation2.github_check_names.join(", ")}`));
|
|
56442
56445
|
}
|
|
56443
|
-
console.log(import_chalk27.default.gray(` Prompt: ${
|
|
56446
|
+
console.log(import_chalk27.default.gray(` Prompt: ${truncate(automation2.prompt, 80)}`));
|
|
56444
56447
|
if (automation2.cron_next_fire_at) {
|
|
56445
56448
|
console.log(import_chalk27.default.gray(` Next Run: ${formatDate(automation2.cron_next_fire_at)}`));
|
|
56446
56449
|
}
|
|
@@ -57609,9 +57612,6 @@ function readText(inline, file2, what) {
|
|
|
57609
57612
|
if (inline !== void 0 && file2 !== void 0) throw new Error(`Pass either --${what} or --${what}-file, not both`);
|
|
57610
57613
|
return file2 === void 0 ? inline : import_node_fs2.default.readFileSync(file2 === "-" ? 0 : file2, "utf8");
|
|
57611
57614
|
}
|
|
57612
|
-
function printIssueLine(issue3) {
|
|
57613
|
-
console.log(`${import_chalk29.default.cyan(issue3.identifier.padEnd(9))} ${issue3.status.padEnd(11)} ${issue3.priority === "none" ? "" : import_chalk29.default.yellow(`${issue3.priority} `)}${issue3.title}`);
|
|
57614
|
-
}
|
|
57615
57615
|
async function issueCreateCommand(title3, options) {
|
|
57616
57616
|
await callIssueTool(ISSUE_COMMANDS.create, {
|
|
57617
57617
|
title: title3,
|
|
@@ -57646,14 +57646,29 @@ async function issueViewCommand(issue3) {
|
|
|
57646
57646
|
${renderIssueMentions(detail.issue.description, actors)}`);
|
|
57647
57647
|
for (const pr2 of detail.pull_requests) console.log(`
|
|
57648
57648
|
${import_chalk29.default.magenta("PR")} ${pr2.url} (${pr2.state})`);
|
|
57649
|
-
|
|
57649
|
+
const issueById = new Map([detail.issue, ...detail.sub_issues, ...detail.related_issues ?? []].map((related) => [related.id, related]));
|
|
57650
|
+
const identifierOf = (id) => issueById.get(id)?.identifier ?? (detail.related_issues ? "a deleted issue" : id);
|
|
57651
|
+
const links = [
|
|
57652
|
+
...detail.issue.parent_id ? [{ label: "parent", id: detail.issue.parent_id }] : [],
|
|
57653
|
+
...detail.relations.map((relation) => ({
|
|
57654
|
+
label: issueRelationKind(relation, detail.issue.id).replace("_", " "),
|
|
57655
|
+
id: relation.issue_id === detail.issue.id ? relation.related_issue_id : relation.issue_id
|
|
57656
|
+
})),
|
|
57657
|
+
...detail.sub_issues.map((sub) => ({ label: "sub-issue", id: sub.id }))
|
|
57658
|
+
];
|
|
57659
|
+
const linkLines = links.map(({ label, id }) => {
|
|
57660
|
+
const related = issueById.get(id);
|
|
57661
|
+
return `${import_chalk29.default.dim(label.padEnd(13))} ${related ? issueLine(related) : import_chalk29.default.dim(identifierOf(id))}`;
|
|
57662
|
+
});
|
|
57663
|
+
if (linkLines.length) console.log(`
|
|
57664
|
+
${linkLines.join("\n")}`);
|
|
57650
57665
|
for (const comment of detail.comments) {
|
|
57651
57666
|
console.log(`
|
|
57652
57667
|
${import_chalk29.default.dim(`\u2014 ${name(comment.author)}, ${comment.created_at}`)}
|
|
57653
57668
|
${renderIssueMentions(comment.body, actors)}`);
|
|
57654
57669
|
}
|
|
57655
57670
|
const activity = detail.events.flatMap((event) => {
|
|
57656
|
-
const change2 = describeIssueEvent(event, name,
|
|
57671
|
+
const change2 = describeIssueEvent(event, name, identifierOf);
|
|
57657
57672
|
return change2 ? [`${import_chalk29.default.dim(event.created_at)} ${name(event.actor)} ${change2}`] : [];
|
|
57658
57673
|
});
|
|
57659
57674
|
if (activity.length) console.log(`
|
|
@@ -57673,7 +57688,7 @@ async function issueListCommand(options) {
|
|
|
57673
57688
|
limit: options.limit ? Number(options.limit) : void 0
|
|
57674
57689
|
}, listIssuesResponseSchema, ({ issues, next_cursor }) => {
|
|
57675
57690
|
if (issues.length === 0) console.log(import_chalk29.default.dim("No issues"));
|
|
57676
|
-
issues.forEach(
|
|
57691
|
+
issues.forEach((issue3) => console.log(issueLine(issue3)));
|
|
57677
57692
|
if (next_cursor !== null) console.log(import_chalk29.default.dim("More issues exist; narrow the filters or raise --limit."));
|
|
57678
57693
|
});
|
|
57679
57694
|
}
|
|
@@ -57697,7 +57712,7 @@ async function issueUnlinkPrCommand(issue3, url2) {
|
|
|
57697
57712
|
async function issueRelateCommand(issue3, type, related) {
|
|
57698
57713
|
await callIssueTool(ISSUE_COMMANDS.relate, { issue: issue3, type, related_issue: related }, noData, () => console.log(`${import_chalk29.default.green("\u2713")} ${issue3} ${type.replace("_", " ")} ${related}`));
|
|
57699
57714
|
}
|
|
57700
|
-
var import_node_fs2, import_node_path2, import_chalk29, mutationSchema, noData, csv, printMutation;
|
|
57715
|
+
var import_node_fs2, import_node_path2, import_chalk29, mutationSchema, noData, csv, issueLine, printMutation;
|
|
57701
57716
|
var init_issue = __esm({
|
|
57702
57717
|
"src/commands/issue.ts"() {
|
|
57703
57718
|
"use strict";
|
|
@@ -57713,6 +57728,7 @@ var init_issue = __esm({
|
|
|
57713
57728
|
mutationSchema = external_exports.object({ issue: issueSchema });
|
|
57714
57729
|
noData = external_exports.looseObject({});
|
|
57715
57730
|
csv = (value) => value?.split(",").map((entry) => entry.trim()).filter(Boolean).join(",");
|
|
57731
|
+
issueLine = (issue3) => `${import_chalk29.default.cyan(issue3.identifier.padEnd(9))} ${issue3.status.padEnd(11)} ${issue3.priority === "none" ? "" : import_chalk29.default.yellow(`${issue3.priority} `)}${issue3.title}${issue3.archived_at ? import_chalk29.default.dim(" (archived)") : ""}`;
|
|
57716
57732
|
printMutation = ({ issue: issue3 }) => console.log(`${import_chalk29.default.green("\u2713")} ${import_chalk29.default.cyan(issue3.identifier)} ${issue3.title} (${issue3.status})`);
|
|
57717
57733
|
}
|
|
57718
57734
|
});
|
|
@@ -59317,7 +59333,7 @@ var init_src2 = __esm({
|
|
|
59317
59333
|
issue2 = program.command("issue", { hidden: !isAgentMode() }).description("File, update, and follow Replicas Issues (REP-42). Each command takes an identifier like REP-42 or an issue ID");
|
|
59318
59334
|
issue2.command("create <title>").description("File an issue").option("-d, --description <markdown>", "What is wrong or wanted, with the evidence").option("--description-file <path>", "Read the description from a file (- for stdin)").option("-s, --status <status>", `${ISSUE_STATUSES.join(", ")} (default: backlog)`).option("-p, --priority <priority>", ISSUE_PRIORITIES.join(", ")).option("--parent <issue>", "Make it a sub-issue of this issue").option("-a, --assign <who>", "Assignee: user:<email>, workspace:<id> or me (repeatable)", collect, []).option("--manager <workspace>", "Manager whose issues it joins, as workspace:<id> (default: yours, inside a Manager or its ship); 'none' for none").option("--attach <file>", "Upload and embed a screenshot or recording (repeatable)", collect, []).action(run(issueCreateCommand));
|
|
59319
59335
|
issue2.command("update <issue>").description("Change the title, description, status, priority or parent").option("-t, --title <title>", "New title").option("-d, --description <markdown>", "Replace the whole description").option("--description-file <path>", "Replace the description from a file (- for stdin)").option("-s, --status <status>", ISSUE_STATUSES.join(", ")).option("-p, --priority <priority>", ISSUE_PRIORITIES.join(", ")).option("--parent <issue>", "New parent issue, or 'none'").option("--attach <file>", "Upload and embed at the end of the description (repeatable)", collect, []).action(run(issueUpdateCommand));
|
|
59320
|
-
issue2.command("view <issue>").description("Show an issue with its
|
|
59336
|
+
issue2.command("view <issue>").description("Show an issue with its parent, relations, sub-issues, pull requests, comments and activity").action(run(issueViewCommand));
|
|
59321
59337
|
issue2.command("list").description("List issues, newest first").option("-q, --query <text>", "Search titles and descriptions").option("-s, --status <statuses>", "Comma-separated statuses").option("-p, --priority <priorities>", "Comma-separated priorities").option("--mine", "Assigned to you (this workspace inside one)").option("--assignee <actor>", "user:<email>, workspace:<id> or me; comma-separate to match any").option("--manager <workspace>", "A Manager's issues, as workspace:<id>").option("--parent <issue>", "Sub-issues of this issue; 'none' for top-level only").option("--archived", "Include archived issues").option("-l, --limit <n>", "Page size (default 50, max 200)").action(run(issueListCommand));
|
|
59322
59338
|
issue2.command("search <query>").description("Search issues by text or identifier").action(run((query) => issueListCommand({ query })));
|
|
59323
59339
|
issue2.command("comment <issue> [body]").description("Comment on an issue. @Name or @email mentions a person or workspace").option("-f, --file <path>", "Read the comment from a file (- for stdin)").option("--attach <file>", "Upload and embed a screenshot or recording (repeatable)", collect, []).action(run(issueCommentCommand));
|