replicas-cli 0.3.574 → 0.3.577

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.
Files changed (2) hide show
  1. package/dist/index.cjs +16 -6
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -22081,7 +22081,7 @@ var init_models = __esm({
22081
22081
  });
22082
22082
 
22083
22083
  // ../shared/src/routes/reviews.ts
22084
- var PULL_REQUEST_COMMENT_DESTINATIONS, diffSideSchema, createPullRequestCommentRequestSchema, PULL_REQUEST_REVIEW_EVENTS, submitPullRequestReviewRequestSchema, resolvePullRequestConflictsRequestSchema, text, optionalText, pullRequestTourSchema;
22084
+ var PULL_REQUEST_COMMENT_DESTINATIONS, diffSideSchema, createPullRequestCommentRequestSchema, PULL_REQUEST_REVIEW_EVENTS, submitPullRequestReviewRequestSchema, resolvePullRequestConflictsRequestSchema, updatePullRequestReviewersRequestSchema, text, optionalText, pullRequestTourSchema;
22085
22085
  var init_reviews = __esm({
22086
22086
  "../shared/src/routes/reviews.ts"() {
22087
22087
  "use strict";
@@ -22111,6 +22111,11 @@ var init_reviews = __esm({
22111
22111
  body: external_exports.string().trim().max(65536).default("")
22112
22112
  });
22113
22113
  resolvePullRequestConflictsRequestSchema = external_exports.object({ merge: external_exports.boolean().default(true) }).strict();
22114
+ updatePullRequestReviewersRequestSchema = external_exports.object({
22115
+ action: external_exports.enum(["request", "remove"]),
22116
+ users: external_exports.array(external_exports.string().min(1)).max(15),
22117
+ teams: external_exports.array(external_exports.string().min(1)).max(15)
22118
+ }).refine((request) => request.users.length + request.teams.length > 0);
22114
22119
  text = external_exports.string().trim().catch("");
22115
22120
  optionalText = external_exports.string().trim().min(1).optional().catch(void 0);
22116
22121
  pullRequestTourSchema = external_exports.object({
@@ -24765,7 +24770,7 @@ function parseIssueContractResponse(schema, value, report) {
24765
24770
  if (!parsed.success) for (const issue3 of parsed.error.issues) report.problems.add(`${issue3.path.join(".")} ${issue3.code}`);
24766
24771
  return parsed.data;
24767
24772
  }
24768
- var ISSUE_STATUSES, ISSUE_PRIORITIES, ISSUE_ACTOR_TYPES, ISSUE_SUBSCRIBER_ROLES, ISSUE_RELATION_TYPES, ISSUE_PULL_REQUEST_STATES, normalizeIssueStatus, ISSUE_STATUSES_HEADER, issueStatusSchema, issuePrioritySchema, issueSubscriberRoleSchema, issueRelationTypeSchema, issuePullRequestStateSchema, ISSUE_STATUS_LABELS, ISSUE_PRIORITY_LABELS, unknownValues, knownOrRaw, createIssueContractReport, knownIssueActorSchema, issueActorSchema, ISSUE_KEY_RE, timestamp, nullableTimestamp, issueSchema, issueSubscriberSchema, issueRelationSchema, issuePullRequestSchema, issueCommentSchema, change, nullableId, issueEventDataSchemas, issueEventBase, v, issueEventVariants, created, laterVariants, issueEventSchema, 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;
24773
+ 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, timestamp, nullableTimestamp, issueSchema, issueSubscriberSchema, issueRelationSchema, issuePullRequestSchema, issueCommentSchema, change, nullableId, issueEventDataSchemas, issueEventBase, v, issueEventVariants, created, laterVariants, issueEventSchema, 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;
24769
24774
  var init_issues = __esm({
24770
24775
  "../shared/src/routes/issues.ts"() {
24771
24776
  "use strict";
@@ -24781,7 +24786,6 @@ var init_issues = __esm({
24781
24786
  ISSUE_RELATION_TYPES = ["blocks", "duplicate_of"];
24782
24787
  ISSUE_PULL_REQUEST_STATES = ["draft", "open", "merged", "closed"];
24783
24788
  normalizeIssueStatus = (status) => status === "in_review" ? "review" : status;
24784
- ISSUE_STATUSES_HEADER = "x-replicas-issue-statuses";
24785
24789
  issueStatusSchema = external_exports.preprocess((value) => typeof value === "string" ? normalizeIssueStatus(value) : value, external_exports.enum(ISSUE_STATUSES));
24786
24790
  issuePrioritySchema = external_exports.enum(ISSUE_PRIORITIES);
24787
24791
  issueSubscriberRoleSchema = external_exports.enum(ISSUE_SUBSCRIBER_ROLES);
@@ -40491,7 +40495,7 @@ var init_organizations = __esm({
40491
40495
  });
40492
40496
 
40493
40497
  // ../shared/src/harness/types.ts
40494
- var HARNESS_THREAD_STATUSES, textSchema, imageSchema, userMessageSchema, assistantMessageSchema, toolResultMessageSchema, harnessAgentOutcomeSchema, HARNESS_AGENT_TYPES, harnessThreadOriginSchema, harnessInboxPayloadSchemas, harnessEventBodySchema, harnessLiveMessageSchema;
40498
+ var HARNESS_THREAD_STATUSES, textSchema, imageSchema, userMessageSchema, assistantMessageSchema, toolResultMessageSchema, harnessAgentOutcomeSchema, HARNESS_AGENT_TYPES, harnessThreadOriginSchema, harnessInboxPayloadSchemas, harnessEventBodySchema, harnessLiveMessageSchema, HARNESS_LIVE_MAX_BYTES, harnessWorkspaceLiveMessageSchema;
40495
40499
  var init_types8 = __esm({
40496
40500
  "../shared/src/harness/types.ts"() {
40497
40501
  "use strict";
@@ -40605,6 +40609,12 @@ var init_types8 = __esm({
40605
40609
  external_exports.object({ type: external_exports.literal("status"), status: external_exports.enum(HARNESS_THREAD_STATUSES) }),
40606
40610
  external_exports.object({ type: external_exports.literal("retry"), attempt: external_exports.number(), maxAttempts: external_exports.number(), reason: external_exports.string() })
40607
40611
  ]);
40612
+ HARNESS_LIVE_MAX_BYTES = 64 * 1024;
40613
+ harnessWorkspaceLiveMessageSchema = external_exports.object({
40614
+ threadId: external_exports.string(),
40615
+ message: harnessLiveMessageSchema,
40616
+ event: harnessEventBodySchema.and(external_exports.object({ thread_id: external_exports.string(), seq: external_exports.number(), epoch: external_exports.number(), blob_key: external_exports.string().nullable(), created_at: external_exports.string() })).optional()
40617
+ });
40608
40618
  }
40609
40619
  });
40610
40620
 
@@ -40754,7 +40764,7 @@ var CLI_VERSION;
40754
40764
  var init_cli_version = __esm({
40755
40765
  "../shared/src/cli-version.ts"() {
40756
40766
  "use strict";
40757
- CLI_VERSION = "0.3.574";
40767
+ CLI_VERSION = "0.3.577";
40758
40768
  }
40759
40769
  });
40760
40770
 
@@ -57436,7 +57446,7 @@ async function callIssueTool(name, args, schema) {
57436
57446
  if (!isAgentMode() && !getApiKey()) throw new Error("replicas issue needs an API key: run `replicas login --api-key`, or use it inside a workspace.");
57437
57447
  let response;
57438
57448
  try {
57439
- response = await orgAuthenticatedFetch(`/v1/issue-commands/${name}`, { method: "POST", body: args, headers: { [ISSUE_STATUSES_HEADER]: "1" } });
57449
+ response = await orgAuthenticatedFetch(`/v1/issue-commands/${name}`, { method: "POST", body: args });
57440
57450
  } catch (error62) {
57441
57451
  if (error62 instanceof ApiError && error62.status === 404 && error62.message === "Not found") throw new Error("Issues are not enabled for this organization");
57442
57452
  throw error62;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.574",
3
+ "version": "0.3.577",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {