replicas-cli 0.3.689 → 0.3.691
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 +13 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -29977,7 +29977,7 @@ var init_environment_inheritance = __esm({
|
|
|
29977
29977
|
});
|
|
29978
29978
|
|
|
29979
29979
|
// ../shared/src/replicas-mcp.ts
|
|
29980
|
-
var REPLICAS_MCP_TOOLS, automationToolInputSchema, credentialUserIdDescription, automationBackgroundSchema, automationCreateToolInputSchema, automationUpdateToolInputSchema, chatPath, provider, model, thinkingLevel, title2, message, createChatToolInputSchema, forkChatToolInputSchema, renameChatToolInputSchema, runCommandToolInputSchema, environmentMcpPath, createEnvironmentMcpToolInputSchema, updateEnvironmentMcpToolInputSchema, forkEnvironmentToolInputSchema, createEnvironmentDeviceToolInputSchema, previewEnvironmentConfigSourceToolInputSchema, applyEnvironmentConfigSourceToolInputSchema, updateEnvironmentConfigSourceToolInputSchema;
|
|
29980
|
+
var REPLICAS_MCP_SERVER_NAME, REPLICAS_MCP_TOOLS, automationToolInputSchema, credentialUserIdDescription, automationBackgroundSchema, automationCreateToolInputSchema, automationUpdateToolInputSchema, chatPath, provider, model, thinkingLevel, title2, message, createChatToolInputSchema, forkChatToolInputSchema, renameChatToolInputSchema, runCommandToolInputSchema, environmentMcpPath, createEnvironmentMcpToolInputSchema, updateEnvironmentMcpToolInputSchema, forkEnvironmentToolInputSchema, createEnvironmentDeviceToolInputSchema, previewEnvironmentConfigSourceToolInputSchema, applyEnvironmentConfigSourceToolInputSchema, updateEnvironmentConfigSourceToolInputSchema;
|
|
29981
29981
|
var init_replicas_mcp = __esm({
|
|
29982
29982
|
"../shared/src/replicas-mcp.ts"() {
|
|
29983
29983
|
"use strict";
|
|
@@ -29993,6 +29993,7 @@ var init_replicas_mcp = __esm({
|
|
|
29993
29993
|
init_environment_inheritance();
|
|
29994
29994
|
init_workspaces();
|
|
29995
29995
|
init_sandbox();
|
|
29996
|
+
REPLICAS_MCP_SERVER_NAME = "replicas-mcp";
|
|
29996
29997
|
REPLICAS_MCP_TOOLS = {
|
|
29997
29998
|
listEnvironments: "list_environments",
|
|
29998
29999
|
createAutomation: "create_automation",
|
|
@@ -38802,7 +38803,7 @@ var init_turns = __esm({
|
|
|
38802
38803
|
});
|
|
38803
38804
|
|
|
38804
38805
|
// ../shared/src/display-message/steps.ts
|
|
38805
|
-
var SUBAGENT_STEPS, MANAGER_TOOL_ACTIONS, REPLICAS_API_STEPS;
|
|
38806
|
+
var SUBAGENT_STEPS, MANAGER_TOOL_ACTIONS, REPLICAS_API_STEPS, REPLICAS_MCP_SERVER_NAMES;
|
|
38806
38807
|
var init_steps = __esm({
|
|
38807
38808
|
"../shared/src/display-message/steps.ts"() {
|
|
38808
38809
|
"use strict";
|
|
@@ -38873,6 +38874,7 @@ var init_steps = __esm({
|
|
|
38873
38874
|
[REPLICAS_MCP_TOOLS.setStatus]: { icon: "message", live: "Setting status", done: "Set status" },
|
|
38874
38875
|
[REPLICAS_MCP_TOOLS.mergeWhenReady]: { icon: "target", live: "Setting merge when ready", done: "Set merge when ready" }
|
|
38875
38876
|
};
|
|
38877
|
+
REPLICAS_MCP_SERVER_NAMES = [REPLICAS_MCP_SERVER_NAME, REPLICAS_MCP_SERVER_NAME.replaceAll("-", "_")];
|
|
38876
38878
|
}
|
|
38877
38879
|
});
|
|
38878
38880
|
|
|
@@ -38920,6 +38922,8 @@ function parseAnnotationsNote(body2) {
|
|
|
38920
38922
|
if (file2) lines.shift();
|
|
38921
38923
|
const source = lines[0]?.match(ANNOTATION_SOURCE_REGEX);
|
|
38922
38924
|
if (source) lines.shift();
|
|
38925
|
+
const image = lines[0]?.match(ANNOTATION_IMAGE_REGEX);
|
|
38926
|
+
if (image) lines.shift();
|
|
38923
38927
|
const occurrence = lines[0]?.match(ANNOTATION_OCCURRENCE_REGEX);
|
|
38924
38928
|
if (occurrence) lines.shift();
|
|
38925
38929
|
const quoteLength = lines.findIndex((line) => !line.startsWith(">"));
|
|
@@ -38930,7 +38934,8 @@ function parseAnnotationsNote(body2) {
|
|
|
38930
38934
|
...comment ? { comment } : {},
|
|
38931
38935
|
...file2 ? { lines: { path: file2[1], start: Number(file2[2]), end: Number(file2[3] ?? file2[2]) } } : {},
|
|
38932
38936
|
...occurrence ? { occurrence: Number(occurrence[1]) - 1 } : {},
|
|
38933
|
-
...source ? { messageId: source[1], ...source[2] ? { endMessageId: source[2] } : {} } : {}
|
|
38937
|
+
...source ? { messageId: source[1], ...source[2] ? { endMessageId: source[2] } : {} } : {},
|
|
38938
|
+
...image ? { image: Number(image[1]) } : {}
|
|
38934
38939
|
};
|
|
38935
38940
|
});
|
|
38936
38941
|
}
|
|
@@ -38971,7 +38976,7 @@ function stripAttachmentNote(text5) {
|
|
|
38971
38976
|
annotations: annotationsNote ? parseAnnotationsNote(annotationsNote.body) : []
|
|
38972
38977
|
};
|
|
38973
38978
|
}
|
|
38974
|
-
var ATTACHMENT_PLACEHOLDER_REGEX, withoutAttachmentPlaceholder, annotationLinesSchema, messageAnnotationSchema, ANNOTATIONS_NOTE_OPENING, ANNOTATIONS_NOTE_REGEX, ANNOTATION_HEADER_REGEX, ANNOTATION_FILE_REGEX, ANNOTATION_OCCURRENCE_REGEX, ANNOTATION_SOURCE_REGEX, APPSHOT_NOTE_REGEX, TRUNCATED_APPSHOT_NOTE_REGEX, XML_UNESCAPES, unescapeXml, WALKTHROUGH_NOTE_REGEX, TRUNCATED_WALKTHROUGH_NOTE_REGEX, VIDEO_SIZES_REGEX, parseVideoSizes;
|
|
38979
|
+
var ATTACHMENT_PLACEHOLDER_REGEX, withoutAttachmentPlaceholder, annotationLinesSchema, messageAnnotationSchema, ANNOTATIONS_NOTE_OPENING, ANNOTATIONS_NOTE_REGEX, ANNOTATION_HEADER_REGEX, ANNOTATION_FILE_REGEX, ANNOTATION_OCCURRENCE_REGEX, ANNOTATION_SOURCE_REGEX, ANNOTATION_IMAGE_REGEX, APPSHOT_NOTE_REGEX, TRUNCATED_APPSHOT_NOTE_REGEX, XML_UNESCAPES, unescapeXml, WALKTHROUGH_NOTE_REGEX, TRUNCATED_WALKTHROUGH_NOTE_REGEX, VIDEO_SIZES_REGEX, parseVideoSizes;
|
|
38975
38980
|
var init_user_message_attachments = __esm({
|
|
38976
38981
|
"../shared/src/user-message-attachments.ts"() {
|
|
38977
38982
|
"use strict";
|
|
@@ -38989,7 +38994,8 @@ var init_user_message_attachments = __esm({
|
|
|
38989
38994
|
occurrence: external_exports.number().int().nonnegative().optional(),
|
|
38990
38995
|
/** The rendered message the quote was selected in, and its last one when it spans several, so clients find it without searching. */
|
|
38991
38996
|
messageId: external_exports.string().optional(),
|
|
38992
|
-
endMessageId: external_exports.string().optional()
|
|
38997
|
+
endMessageId: external_exports.string().optional(),
|
|
38998
|
+
image: external_exports.number().int().positive().optional()
|
|
38993
38999
|
});
|
|
38994
39000
|
ANNOTATIONS_NOTE_OPENING = '<replicas_annotations>\nThe user quoted these passages, some with a comment. Address each annotation, and when you do, refer to it as "Annotation N".';
|
|
38995
39001
|
ANNOTATIONS_NOTE_REGEX = /(?:^|\n\n)<replicas_annotations>\n([\s\S]*?)\n<\/replicas_annotations>$/;
|
|
@@ -38997,6 +39003,7 @@ var init_user_message_attachments = __esm({
|
|
|
38997
39003
|
ANNOTATION_FILE_REGEX = /^File: (.+):(\d+)(?:-(\d+))?$/;
|
|
38998
39004
|
ANNOTATION_OCCURRENCE_REGEX = /^Occurrence: (\d+) /;
|
|
38999
39005
|
ANNOTATION_SOURCE_REGEX = /^Source: (\S+)(?: to (\S+))?$/;
|
|
39006
|
+
ANNOTATION_IMAGE_REGEX = /^Image: (\d+)$/;
|
|
39000
39007
|
APPSHOT_NOTE_REGEX = /(?:^|\n\n)<replicas_appshot app="([^"\n]*)" window="([^"\n]*)" image="(\d+)">\n([^\n<]*)(?:\n\n([^<]*))?\n<\/replicas_appshot>$/;
|
|
39001
39008
|
TRUNCATED_APPSHOT_NOTE_REGEX = /(?:^|\n\n)<replicas_appshot app="([^"\n]*)(?:" window="([^"\n]*)(?:" image="(\d*))?)?[^<]*(?:<\/?[a-z_]*)?$/;
|
|
39002
39009
|
XML_UNESCAPES = { "&": "&", "<": "<", ">": ">", """: '"', "'": "'" };
|
|
@@ -43583,7 +43590,7 @@ var CLI_VERSION;
|
|
|
43583
43590
|
var init_cli_version = __esm({
|
|
43584
43591
|
"../shared/src/cli-version.ts"() {
|
|
43585
43592
|
"use strict";
|
|
43586
|
-
CLI_VERSION = "0.3.
|
|
43593
|
+
CLI_VERSION = "0.3.691";
|
|
43587
43594
|
}
|
|
43588
43595
|
});
|
|
43589
43596
|
|