@rehpic/vcli 0.1.0-beta.73.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 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 prompt2 = buildLaunchPrompt(issueKey, issueTitle, workspacePath);
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,13 +3040,19 @@ function persistDeviceKey(deviceKey) {
3034
3040
  writeFileSync(DEVICE_KEY_FILE, `${deviceKey}
3035
3041
  `);
3036
3042
  }
3037
- function buildLaunchPrompt(issueKey, issueTitle, workspacePath) {
3038
- return [
3039
- `You are working on Vector issue ${issueKey}: ${issueTitle}.`,
3040
- `The repository is already checked out at ${workspacePath}.`,
3041
- "Inspect the codebase, identify the relevant implementation area, and start the work.",
3042
- "In your first reply, summarize your plan and the first concrete step you are taking."
3043
- ].join("\n\n");
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
+ "",
3050
+ `The repository is at ${workspacePath}.`,
3051
+ "Do exactly and only what the issue describes \u2014 nothing more, nothing less.",
3052
+ "If anything is unclear or ambiguous, ask clarifying questions before making changes.",
3053
+ 'Do not refactor, clean up, or "improve" code that is not part of the issue scope.'
3054
+ );
3055
+ return lines.join("\n");
3044
3056
  }
3045
3057
  function summarizeMessage(message) {
3046
3058
  if (!message) {