@rehpic/vcli 0.1.0-beta.74.1 → 0.1.0-beta.76.1
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.js +16 -27
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2728,7 +2728,13 @@ var BridgeService = class {
|
|
|
2728
2728
|
const provider = requestedProvider && isBridgeProvider(requestedProvider) ? requestedProvider : void 0;
|
|
2729
2729
|
const issueKey = payload?.issueKey ?? cmd.liveActivity?.issueKey ?? "ISSUE";
|
|
2730
2730
|
const issueTitle = payload?.issueTitle ?? cmd.liveActivity?.issueTitle ?? "Untitled issue";
|
|
2731
|
-
const
|
|
2731
|
+
const issueDescription = payload?.issueDescription;
|
|
2732
|
+
const prompt2 = buildLaunchPrompt(
|
|
2733
|
+
issueKey,
|
|
2734
|
+
issueTitle,
|
|
2735
|
+
workspacePath,
|
|
2736
|
+
issueDescription
|
|
2737
|
+
);
|
|
2732
2738
|
const launchLabel = provider ? providerLabel(provider) : "shell session";
|
|
2733
2739
|
const workSessionTitle = `${issueKey}: ${issueTitle}`;
|
|
2734
2740
|
await this.updateLiveActivity(cmd.liveActivityId, {
|
|
@@ -3034,14 +3040,19 @@ function persistDeviceKey(deviceKey) {
|
|
|
3034
3040
|
writeFileSync(DEVICE_KEY_FILE, `${deviceKey}
|
|
3035
3041
|
`);
|
|
3036
3042
|
}
|
|
3037
|
-
function buildLaunchPrompt(issueKey, issueTitle, workspacePath) {
|
|
3038
|
-
|
|
3039
|
-
|
|
3043
|
+
function buildLaunchPrompt(issueKey, issueTitle, workspacePath, issueDescription) {
|
|
3044
|
+
const lines = [`You are working on issue ${issueKey}: ${issueTitle}`];
|
|
3045
|
+
if (issueDescription?.trim()) {
|
|
3046
|
+
lines.push("", "Issue description:", issueDescription.trim());
|
|
3047
|
+
}
|
|
3048
|
+
lines.push(
|
|
3049
|
+
"",
|
|
3040
3050
|
`The repository is at ${workspacePath}.`,
|
|
3041
3051
|
"Do exactly and only what the issue describes \u2014 nothing more, nothing less.",
|
|
3042
3052
|
"If anything is unclear or ambiguous, ask clarifying questions before making changes.",
|
|
3043
3053
|
'Do not refactor, clean up, or "improve" code that is not part of the issue scope.'
|
|
3044
|
-
|
|
3054
|
+
);
|
|
3055
|
+
return lines.join("\n");
|
|
3045
3056
|
}
|
|
3046
3057
|
function summarizeMessage(message) {
|
|
3047
3058
|
if (!message) {
|
|
@@ -3351,34 +3362,12 @@ function killExistingMenuBar() {
|
|
|
3351
3362
|
}
|
|
3352
3363
|
}
|
|
3353
3364
|
}
|
|
3354
|
-
function getRunningMenuBarPid() {
|
|
3355
|
-
if (!existsSync3(MENUBAR_PID_FILE)) {
|
|
3356
|
-
return null;
|
|
3357
|
-
}
|
|
3358
|
-
try {
|
|
3359
|
-
const pid = Number(readFileSync2(MENUBAR_PID_FILE, "utf-8").trim());
|
|
3360
|
-
if (Number.isFinite(pid) && pid > 0 && isKnownMenuBarProcess(pid)) {
|
|
3361
|
-
process.kill(pid, 0);
|
|
3362
|
-
return pid;
|
|
3363
|
-
}
|
|
3364
|
-
} catch {
|
|
3365
|
-
}
|
|
3366
|
-
try {
|
|
3367
|
-
unlinkSync(MENUBAR_PID_FILE);
|
|
3368
|
-
} catch {
|
|
3369
|
-
}
|
|
3370
|
-
return null;
|
|
3371
|
-
}
|
|
3372
3365
|
async function launchMenuBar() {
|
|
3373
3366
|
if (platform() !== "darwin") return;
|
|
3374
3367
|
removeLegacyMenuBarLaunchAgent();
|
|
3375
3368
|
const executable = findMenuBarExecutable();
|
|
3376
3369
|
const cliInvocation = getCurrentCliInvocation();
|
|
3377
3370
|
if (!executable || !cliInvocation) return;
|
|
3378
|
-
const existingPid = getRunningMenuBarPid();
|
|
3379
|
-
if (existingPid) {
|
|
3380
|
-
return;
|
|
3381
|
-
}
|
|
3382
3371
|
killExistingMenuBar();
|
|
3383
3372
|
try {
|
|
3384
3373
|
const { spawn: spawnChild } = await import("child_process");
|