replicas-cli 0.3.309 → 0.3.311

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 +41 -4
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -16172,13 +16172,35 @@ var init_chat_kind = __esm({
16172
16172
  });
16173
16173
 
16174
16174
  // ../shared/src/routes/reviews.ts
16175
- var text, optionalText, pullRequestTourSchema;
16175
+ var PULL_REQUEST_COMMENT_DESTINATIONS, diffSideSchema, createPullRequestCommentRequestSchema, PULL_REQUEST_REVIEW_EVENTS, submitPullRequestReviewRequestSchema, text, optionalText, pullRequestTourSchema;
16176
16176
  var init_reviews = __esm({
16177
16177
  "../shared/src/routes/reviews.ts"() {
16178
16178
  "use strict";
16179
16179
  init_zod();
16180
16180
  init_chat_kind();
16181
16181
  init_urls();
16182
+ PULL_REQUEST_COMMENT_DESTINATIONS = ["comment", "review", "agent"];
16183
+ diffSideSchema = external_exports.enum(["additions", "deletions"]);
16184
+ createPullRequestCommentRequestSchema = external_exports.object({
16185
+ body: external_exports.string().trim().min(1).max(65536),
16186
+ destination: external_exports.enum(PULL_REQUEST_COMMENT_DESTINATIONS),
16187
+ quote: external_exports.string().optional(),
16188
+ target: external_exports.union([
16189
+ external_exports.object({
16190
+ path: external_exports.string().min(1),
16191
+ line: external_exports.number().int().positive(),
16192
+ side: diffSideSchema,
16193
+ startLine: external_exports.number().int().positive().optional(),
16194
+ startSide: diffSideSchema.optional()
16195
+ }),
16196
+ external_exports.object({ replyTo: external_exports.string().min(1) })
16197
+ ])
16198
+ });
16199
+ PULL_REQUEST_REVIEW_EVENTS = ["comment", "approve", "request_changes"];
16200
+ submitPullRequestReviewRequestSchema = external_exports.object({
16201
+ event: external_exports.enum(PULL_REQUEST_REVIEW_EVENTS),
16202
+ body: external_exports.string().trim().max(65536).default("")
16203
+ });
16182
16204
  text = external_exports.string().trim().catch("");
16183
16205
  optionalText = external_exports.string().trim().min(1).optional().catch(void 0);
16184
16206
  pullRequestTourSchema = external_exports.object({
@@ -17147,6 +17169,7 @@ var init_linear = __esm({
17147
17169
  linearSessionMetadataSchema = external_exports.object({
17148
17170
  via_mothership: external_exports.boolean().optional(),
17149
17171
  attached: external_exports.boolean().optional(),
17172
+ routing_chat_id: external_exports.string().optional(),
17150
17173
  issue_id: external_exports.string(),
17151
17174
  issue_identifier: external_exports.string(),
17152
17175
  issue_title: external_exports.string(),
@@ -17587,6 +17610,7 @@ var init_replicas_mcp = __esm({
17587
17610
  listWorkspaces: "list_workspaces",
17588
17611
  linearStart: "start_linear_session",
17589
17612
  linearSessionIntent: "register_linear_session_intent",
17613
+ routeLinearTicket: "route_linear_ticket",
17590
17614
  listChannelSettings: "list_channel_settings",
17591
17615
  saveChannelPreset: "save_channel_preset",
17592
17616
  deleteChannelPreset: "delete_channel_preset",
@@ -20646,10 +20670,12 @@ function defaultReplicasAgentAbilities() {
20646
20670
  function hasAllReplicasAgentAbilities(abilities) {
20647
20671
  return REPLICAS_AGENT_ABILITIES.every((key) => typeof abilities[key] === "boolean");
20648
20672
  }
20649
- var EMPTY_AGENT_DEFAULT_SETTINGS, DEFAULT_SUBAGENT_MCP_PROVIDERS, ALERT_SOUND_FAMILIES, ALERT_SOUNDS, PUSH_WHEN_ACTIVE_COPY, DEFAULT_USER_PREFERENCES, DEFAULT_DEFAULT_SKILLS;
20673
+ var EMPTY_AGENT_DEFAULT_SETTINGS, DEFAULT_SUBAGENT_MCP_PROVIDERS, ALERT_SOUND_FAMILIES, ALERT_SOUNDS, PUSH_WHEN_ACTIVE_COPY, DEFAULT_USER_PREFERENCES, DEFAULT_DEFAULT_SKILLS, LINEAR_ROUTING_SKILL_MAX_LENGTH, linearRoutingSkillSchema;
20650
20674
  var init_preferences = __esm({
20651
20675
  "../shared/src/routes/preferences.ts"() {
20652
20676
  "use strict";
20677
+ init_zod();
20678
+ init_uuid();
20653
20679
  init_agent();
20654
20680
  init_push();
20655
20681
  init_registry();
@@ -20719,6 +20745,11 @@ var init_preferences = __esm({
20719
20745
  abilities: defaultReplicasAgentAbilities()
20720
20746
  }
20721
20747
  };
20748
+ LINEAR_ROUTING_SKILL_MAX_LENGTH = 5e4;
20749
+ linearRoutingSkillSchema = external_exports.union([
20750
+ external_exports.object({ name: external_exports.string().min(1), content: external_exports.string().trim().min(1).max(LINEAR_ROUTING_SKILL_MAX_LENGTH) }),
20751
+ external_exports.object({ name: external_exports.string().min(1), repository_id: external_exports.string().regex(UUID_RE), path: external_exports.string().min(1) })
20752
+ ]);
20722
20753
  }
20723
20754
  });
20724
20755
 
@@ -31920,7 +31951,7 @@ var CLI_VERSION;
31920
31951
  var init_cli_version = __esm({
31921
31952
  "../shared/src/cli-version.ts"() {
31922
31953
  "use strict";
31923
- CLI_VERSION = "0.3.308";
31954
+ CLI_VERSION = "0.3.311";
31924
31955
  }
31925
31956
  });
31926
31957
 
@@ -32157,7 +32188,7 @@ var init_slack2 = __esm({
32157
32188
  });
32158
32189
 
32159
32190
  // ../shared/src/routes/scout.ts
32160
- var SCOUT_LINEAR_ACTIONS, scoutLinearSessionIntentRequestSchema, scoutLinearStartRequestSchema, slackChannelIdSchema, slackThreadTsSchema, scoutSlackSpawnRequestSchema, scoutSlackSpawnInNewThreadRequestSchema, scoutSlackRelayRequestSchema, scoutSlackSetThreadMutedRequestSchema, scoutListWorkspacesRequestSchema, scoutSlackConfirmationSchema, scoutAutomationToolInputSchema, scoutSaveChannelPresetToolInputSchema, scoutUpdateChannelSettingsToolInputSchema, scoutSetSlackConnectMutedToolInputSchema, scoutSetSlackConnectDefaultsToolInputSchema, scoutSetOrganizationProactivityToolInputSchema, scoutDeleteChannelPresetToolInputSchema, RESET_TO_DEFAULT, resettable, scoutSetSlackAgentDefaultsToolInputSchema, scoutClaimSettingsOfferToolInputSchema;
32191
+ var SCOUT_LINEAR_ACTIONS, scoutLinearSessionIntentRequestSchema, scoutLinearStartRequestSchema, scoutRouteLinearTicketRequestSchema, slackChannelIdSchema, slackThreadTsSchema, scoutSlackSpawnRequestSchema, scoutSlackSpawnInNewThreadRequestSchema, scoutSlackRelayRequestSchema, scoutSlackSetThreadMutedRequestSchema, scoutListWorkspacesRequestSchema, scoutSlackConfirmationSchema, scoutAutomationToolInputSchema, scoutSaveChannelPresetToolInputSchema, scoutUpdateChannelSettingsToolInputSchema, scoutSetSlackConnectMutedToolInputSchema, scoutSetSlackConnectDefaultsToolInputSchema, scoutSetOrganizationProactivityToolInputSchema, scoutDeleteChannelPresetToolInputSchema, RESET_TO_DEFAULT, resettable, scoutSetSlackAgentDefaultsToolInputSchema, scoutClaimSettingsOfferToolInputSchema;
32161
32192
  var init_scout2 = __esm({
32162
32193
  "../shared/src/routes/scout.ts"() {
32163
32194
  "use strict";
@@ -32176,6 +32207,11 @@ var init_scout2 = __esm({
32176
32207
  agent_session_id: external_exports.string().describe("Existing Linear agent session id from the envelope's `agent_session_id`."),
32177
32208
  prompt: external_exports.string().trim().min(1).describe("The latest request, in its author's words. The workspace already receives the issue and its comments.")
32178
32209
  });
32210
+ scoutRouteLinearTicketRequestSchema = external_exports.object({
32211
+ agent_session_id: external_exports.string().trim().min(1).describe("The ticket's `agent_session_id` from the envelope."),
32212
+ environment_id: external_exports.string().trim().min(1).optional().describe("Start the ticket in this environment."),
32213
+ mothership_id: external_exports.string().trim().min(1).optional().describe("Hand the ticket to this Mothership instead.")
32214
+ }).refine((args) => !(args.environment_id && args.mothership_id), "Pass environment_id or mothership_id, not both.");
32179
32215
  slackChannelIdSchema = external_exports.string().describe("Slack channel id from the envelope's `channel_id`.");
32180
32216
  slackThreadTsSchema = external_exports.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
32181
32217
  scoutSlackSpawnRequestSchema = external_exports.object({
@@ -42613,6 +42649,7 @@ var init_mothership_board = __esm({
42613
42649
  type: external_exports.literal("section"),
42614
42650
  id: blockId.optional(),
42615
42651
  title: label(120),
42652
+ tone: tone.optional(),
42616
42653
  collapsed: external_exports.boolean().optional(),
42617
42654
  get children() {
42618
42655
  return external_exports.array(block).max(100);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.309",
3
+ "version": "0.3.311",
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": {