replicas-cli 0.2.282 → 0.2.283
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.mjs +9 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9304,6 +9304,12 @@ var DEFAULT_DEFAULT_SKILLS = {
|
|
|
9304
9304
|
|
|
9305
9305
|
// ../shared/src/prompts.ts
|
|
9306
9306
|
var REPLICAS_INSTRUCTIONS_TAG = "replicas_instructions";
|
|
9307
|
+
var CREATE_PR_PROMPT = "Push changes and open a pull request (or a merge request for GitLab repositories).";
|
|
9308
|
+
function buildCreatePrPrompt(providers) {
|
|
9309
|
+
const distinct = new Set(providers.filter((p) => p === "github" || p === "gitlab"));
|
|
9310
|
+
if (distinct.size !== 1) return CREATE_PR_PROMPT;
|
|
9311
|
+
return distinct.has("gitlab") ? "Push changes and open a merge request." : "Push changes and create a pull request.";
|
|
9312
|
+
}
|
|
9307
9313
|
function removeTag(text, tag) {
|
|
9308
9314
|
const regex = new RegExp(`<${tag}>[\\s\\S]*?</${tag}>`, "g");
|
|
9309
9315
|
return text.replace(regex, "").trim();
|
|
@@ -9325,7 +9331,7 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
|
|
|
9325
9331
|
var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
|
|
9326
9332
|
|
|
9327
9333
|
// ../shared/src/cli-version.ts
|
|
9328
|
-
var CLI_VERSION = "0.2.
|
|
9334
|
+
var CLI_VERSION = "0.2.283";
|
|
9329
9335
|
|
|
9330
9336
|
// ../shared/src/engine/environment.ts
|
|
9331
9337
|
var DESKTOP_NOVNC_PORT = 6080;
|
|
@@ -17504,7 +17510,8 @@ function AppInner() {
|
|
|
17504
17510
|
onViewDiff: handleViewDiff,
|
|
17505
17511
|
onCreatePr: () => {
|
|
17506
17512
|
if (!resolvedChatId) return;
|
|
17507
|
-
|
|
17513
|
+
const providers = (statusData?.repoStatuses ?? []).map((repo) => repo.provider);
|
|
17514
|
+
sendMessageMutation.mutate({ message: buildCreatePrPrompt(providers) });
|
|
17508
17515
|
},
|
|
17509
17516
|
isPlanMode: taskMode === "plan",
|
|
17510
17517
|
wakingWorkspaceId,
|