replicas-cli 0.3.575 → 0.3.578

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 +11 -6
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -24770,7 +24770,7 @@ function parseIssueContractResponse(schema, value, report) {
24770
24770
  if (!parsed.success) for (const issue3 of parsed.error.issues) report.problems.add(`${issue3.path.join(".")} ${issue3.code}`);
24771
24771
  return parsed.data;
24772
24772
  }
24773
- 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;
24774
24774
  var init_issues = __esm({
24775
24775
  "../shared/src/routes/issues.ts"() {
24776
24776
  "use strict";
@@ -24786,7 +24786,6 @@ var init_issues = __esm({
24786
24786
  ISSUE_RELATION_TYPES = ["blocks", "duplicate_of"];
24787
24787
  ISSUE_PULL_REQUEST_STATES = ["draft", "open", "merged", "closed"];
24788
24788
  normalizeIssueStatus = (status) => status === "in_review" ? "review" : status;
24789
- ISSUE_STATUSES_HEADER = "x-replicas-issue-statuses";
24790
24789
  issueStatusSchema = external_exports.preprocess((value) => typeof value === "string" ? normalizeIssueStatus(value) : value, external_exports.enum(ISSUE_STATUSES));
24791
24790
  issuePrioritySchema = external_exports.enum(ISSUE_PRIORITIES);
24792
24791
  issueSubscriberRoleSchema = external_exports.enum(ISSUE_SUBSCRIBER_ROLES);
@@ -39729,7 +39728,7 @@ var init_chat_transcript_pages = __esm({
39729
39728
  SOURCE_RANGE_BYTES = 256 * 1024;
39730
39729
  CHAT_HISTORY_PAGE_MAX_BYTES = 1024 * 1024;
39731
39730
  MAX_APPENDED_BYTES = 4 * 1024 * 1024;
39732
- FORWARD_RANGE_BYTES = 8 * 1024 * 1024;
39731
+ FORWARD_RANGE_BYTES = 4 * 1024 * 1024;
39733
39732
  MAX_RECORD_BYTES = 64 * 1024 * 1024;
39734
39733
  }
39735
39734
  });
@@ -40496,7 +40495,7 @@ var init_organizations = __esm({
40496
40495
  });
40497
40496
 
40498
40497
  // ../shared/src/harness/types.ts
40499
- 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;
40500
40499
  var init_types8 = __esm({
40501
40500
  "../shared/src/harness/types.ts"() {
40502
40501
  "use strict";
@@ -40610,6 +40609,12 @@ var init_types8 = __esm({
40610
40609
  external_exports.object({ type: external_exports.literal("status"), status: external_exports.enum(HARNESS_THREAD_STATUSES) }),
40611
40610
  external_exports.object({ type: external_exports.literal("retry"), attempt: external_exports.number(), maxAttempts: external_exports.number(), reason: external_exports.string() })
40612
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
+ });
40613
40618
  }
40614
40619
  });
40615
40620
 
@@ -40759,7 +40764,7 @@ var CLI_VERSION;
40759
40764
  var init_cli_version = __esm({
40760
40765
  "../shared/src/cli-version.ts"() {
40761
40766
  "use strict";
40762
- CLI_VERSION = "0.3.575";
40767
+ CLI_VERSION = "0.3.578";
40763
40768
  }
40764
40769
  });
40765
40770
 
@@ -57441,7 +57446,7 @@ async function callIssueTool(name, args, schema) {
57441
57446
  if (!isAgentMode() && !getApiKey()) throw new Error("replicas issue needs an API key: run `replicas login --api-key`, or use it inside a workspace.");
57442
57447
  let response;
57443
57448
  try {
57444
- 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 });
57445
57450
  } catch (error62) {
57446
57451
  if (error62 instanceof ApiError && error62.status === 404 && error62.message === "Not found") throw new Error("Issues are not enabled for this organization");
57447
57452
  throw error62;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.575",
3
+ "version": "0.3.578",
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": {