replicas-cli 0.2.694 → 0.2.696

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 +15 -45
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -22938,29 +22938,6 @@ function coerceAuthFallbackPayload(payload) {
22938
22938
  }
22939
22939
 
22940
22940
  // ../shared/src/engine/v1.ts
22941
- var CHAT_STREAM_RESYNC_EVENT_TYPE = "chat.stream.resync";
22942
- var CHAT_STREAM_READY_EVENT_TYPE = "chat.stream.ready";
22943
- var chatEventSubscriptionsSchema = external_exports.object({
22944
- chats: external_exports.array(external_exports.object({
22945
- workspaceId: external_exports.string().uuid(),
22946
- chatId: external_exports.string().min(1).max(256),
22947
- after: external_exports.string().regex(/^\d+-\d+$/)
22948
- })).min(1).max(256)
22949
- });
22950
- function isChatStreamEvent(value) {
22951
- return isRecord(value) && typeof value.id === "string" && typeof value.ts === "string" && typeof value.type === "string" && value.type.startsWith("chat.") && isRecord(value.payload);
22952
- }
22953
- var ENGINE_CHAT_EVENTS_PUSH_MAX_EVENTS = 500;
22954
- var chatScopedEngineEventSchema = external_exports.custom(
22955
- (value) => isChatStreamEvent(value) && value.type !== CHAT_STREAM_RESYNC_EVENT_TYPE && value.type !== CHAT_STREAM_READY_EVENT_TYPE
22956
- );
22957
- var engineChatEventsPushRequestSchema = external_exports.object({
22958
- epoch: external_exports.string().min(1).max(64),
22959
- events: external_exports.array(external_exports.object({
22960
- seq: external_exports.number().int().positive(),
22961
- event: chatScopedEngineEventSchema
22962
- })).max(ENGINE_CHAT_EVENTS_PUSH_MAX_EVENTS)
22963
- });
22964
22941
  function getChatExecutionProvider(chat) {
22965
22942
  return chat.provider === "relay" ? chat.relayBaseProvider ?? DEFAULT_RELAY_BASE_PROVIDER : chat.provider;
22966
22943
  }
@@ -24851,7 +24828,7 @@ var SENTRY_ABILITY = {
24851
24828
  };
24852
24829
 
24853
24830
  // ../shared/src/slack-response-style.ts
24854
- var SLACK_CONCISE_REPLY_SHAPE = "short and easy to read. Use common, everyday words, simple sentences, and contractions where they sound natural. Avoid jargon, corporate language, and formal words when a plain word works. Start with what happened or what works now, then add only the context, limits, or next step people need. Cut repetition and play-by-play, but keep anything important. Put long logs and file-by-file recaps in the pull request or workspace unless the user asks for them";
24831
+ var SLACK_CONCISE_REPLY_SHAPE = "short and easy to read. Lead with a concise, easy-to-skim answer; add depth when asked. Each send is a deliberate message, not an automatic split of a long answer. Simple requests need only a short answer or, where the surrounding instructions allow it, a fitting reaction. Use common, everyday words, simple sentences, and contractions where they sound natural. Avoid jargon, corporate language, and formal words when a plain word works. Start with what happened or what works now, then add only the context, limits, or next step people need. Cut repetition and play-by-play, but keep anything important. Put long logs and file-by-file recaps in the pull request or workspace unless the user asks for them";
24855
24832
  var SLACK_QUOTE_REPLY_GUIDANCE = "Use a short Slack blockquote (`> quoted text`) only when answering a specific earlier message or when the reply would otherwise have an unclear referent. Quote only the relevant line; do not quote the latest message by default, repeat the full request, or add a blockquote when the reply is already unambiguous. Escape the leading `<` in raw Slack mention and control markup such as `<@U\u2026>` and `<!channel>` as `&lt;` before quoting so it cannot notify anyone.";
24856
24833
  var SLACK_BLOCK_KIT_GUIDANCE = "Use Block Kit whenever structure or a link would make the message faster to scan or use. Before composing a structured message, read Slack's live [block catalog](https://docs.slack.dev/reference/block-kit/blocks) and the linked schema for each block you plan to use; do not rely on memory for which blocks exist or their fields. You have broad leeway to use display-only blocks and `actions` with URL buttons, but do not add controls that require an interaction callback. Keep simple replies as plain text, do not add decorative UI or repeat content across blocks, and always keep `text` as a concise, complete fallback for notifications and accessibility.";
24857
24834
  var SLACK_PR_BUTTON_GUIDANCE = 'The first time you share a given pull request or merge request link in a thread \u2014 the message announcing you opened it \u2014 attach a button for it: send `blocks` alongside `text` \u2014 a `section` block holding your message as `mrkdwn`, then an `actions` block with one element per newly shared link, `{"type": "button", "style": "primary", "text": {"type": "plain_text", "text": "View PR"}, "url": "<pr url>", "action_id": "view_pr"}`. Later messages about a pull request you already linked in this thread keep the link in the sentence and get no button, and never re-post a button for a link someone already has. Label it "View MR" for GitLab, and if there are several give each button a unique `action_id` and name its repository in the label ("View PR \xB7 web"). Always keep `text` populated with the same message \u2014 Slack uses it for notifications and fallback \u2014 and keep the link in the sentence too.';
@@ -27388,7 +27365,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
27388
27365
  });
27389
27366
 
27390
27367
  // ../shared/src/cli-version.ts
27391
- var CLI_VERSION = "0.2.694";
27368
+ var CLI_VERSION = "0.2.696";
27392
27369
 
27393
27370
  // ../shared/src/version.ts
27394
27371
  function compareVersions(v1, v2) {
@@ -28009,17 +27986,14 @@ var MAX_ENGINE_LOG_BYTES = 50 * 1024 * 1024;
28009
27986
  // ../shared/src/sse.ts
28010
27987
  function parseSseChunk(chunk) {
28011
27988
  let data = "";
28012
- let id = null;
28013
27989
  for (const line of chunk.split("\n")) {
28014
27990
  if (line.startsWith("data: ")) {
28015
27991
  data += line.slice(6);
28016
- } else if (line.startsWith("id: ")) {
28017
- id = line.slice(4);
28018
27992
  }
28019
27993
  }
28020
27994
  if (!data) return null;
28021
27995
  try {
28022
- return { event: JSON.parse(data), id };
27996
+ return JSON.parse(data);
28023
27997
  } catch {
28024
27998
  return null;
28025
27999
  }
@@ -28028,22 +28002,18 @@ async function readSseStream(body, onEvent, shouldContinue = () => true) {
28028
28002
  const reader = body.getReader();
28029
28003
  const decoder2 = new TextDecoder();
28030
28004
  let buffer = "";
28031
- try {
28032
- while (shouldContinue()) {
28033
- const { done, value } = await reader.read();
28034
- if (done) break;
28035
- buffer += decoder2.decode(value, { stream: true });
28036
- const chunks = buffer.split("\n\n");
28037
- buffer = chunks.pop() ?? "";
28038
- for (const chunk of chunks) {
28039
- if (!shouldContinue()) break;
28040
- const parsed = parseSseChunk(chunk);
28041
- if (!parsed) continue;
28042
- await onEvent(parsed.event, parsed.id);
28043
- }
28044
- }
28045
- } finally {
28046
- await reader.cancel().catch(() => void 0);
28005
+ while (shouldContinue()) {
28006
+ const { done, value } = await reader.read();
28007
+ if (done) break;
28008
+ buffer += decoder2.decode(value, { stream: true });
28009
+ const chunks = buffer.split("\n\n");
28010
+ buffer = chunks.pop() ?? "";
28011
+ for (const chunk of chunks) {
28012
+ if (!shouldContinue()) break;
28013
+ const event = parseSseChunk(chunk);
28014
+ if (!event) continue;
28015
+ await onEvent(event);
28016
+ }
28047
28017
  }
28048
28018
  }
28049
28019
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.694",
3
+ "version": "0.2.696",
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": {