@rehpic/vcli 0.1.0-beta.74.1 → 0.1.0-beta.75.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 -5
- 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) {
|