@rehpic/vcli 0.1.0-beta.72.1 → 0.1.0-beta.74.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 +8 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2731,7 +2731,6 @@ var BridgeService = class {
|
|
|
2731
2731
|
const prompt2 = buildLaunchPrompt(issueKey, issueTitle, workspacePath);
|
|
2732
2732
|
const launchLabel = provider ? providerLabel(provider) : "shell session";
|
|
2733
2733
|
const workSessionTitle = `${issueKey}: ${issueTitle}`;
|
|
2734
|
-
const sessionsBeforeLaunch = provider ? listObservedSessionsForWorkspace(provider, workspacePath) : [];
|
|
2735
2734
|
await this.updateLiveActivity(cmd.liveActivityId, {
|
|
2736
2735
|
status: "active",
|
|
2737
2736
|
latestSummary: `Launching ${launchLabel} in ${workspacePath}`,
|
|
@@ -2739,11 +2738,6 @@ var BridgeService = class {
|
|
|
2739
2738
|
launchStatus: "launching",
|
|
2740
2739
|
title: workSessionTitle
|
|
2741
2740
|
});
|
|
2742
|
-
await this.postAgentMessage(
|
|
2743
|
-
cmd.liveActivityId,
|
|
2744
|
-
"status",
|
|
2745
|
-
`Launching ${launchLabel} in ${workspacePath}`
|
|
2746
|
-
);
|
|
2747
2741
|
const tmuxSession = createTmuxWorkSession({
|
|
2748
2742
|
workspacePath,
|
|
2749
2743
|
issueKey,
|
|
@@ -2751,12 +2745,6 @@ var BridgeService = class {
|
|
|
2751
2745
|
provider,
|
|
2752
2746
|
prompt: prompt2
|
|
2753
2747
|
});
|
|
2754
|
-
const attachedSession = provider ? await this.attachObservedAgentSession(
|
|
2755
|
-
provider,
|
|
2756
|
-
workspacePath,
|
|
2757
|
-
sessionsBeforeLaunch,
|
|
2758
|
-
tmuxSession.paneProcessId
|
|
2759
|
-
) : null;
|
|
2760
2748
|
await this.refreshWorkSessionTerminal(cmd.workSession?._id, {
|
|
2761
2749
|
tmuxSessionName: tmuxSession.sessionName,
|
|
2762
2750
|
tmuxWindowName: tmuxSession.windowName,
|
|
@@ -2764,30 +2752,13 @@ var BridgeService = class {
|
|
|
2764
2752
|
cwd: workspacePath,
|
|
2765
2753
|
repoRoot: workspacePath,
|
|
2766
2754
|
branch: currentGitBranch(workspacePath),
|
|
2767
|
-
agentProvider: provider
|
|
2768
|
-
agentSessionKey: attachedSession?.process.sessionKey
|
|
2755
|
+
agentProvider: provider
|
|
2769
2756
|
});
|
|
2770
|
-
if (provider && !attachedSession) {
|
|
2771
|
-
await this.postAgentMessage(
|
|
2772
|
-
cmd.liveActivityId,
|
|
2773
|
-
"status",
|
|
2774
|
-
`Started tmux session ${tmuxSession.sessionName}:${tmuxSession.windowName}. Waiting to verify ${providerLabel(provider)} in ${tmuxSession.paneId}.`
|
|
2775
|
-
);
|
|
2776
|
-
await this.updateLiveActivity(cmd.liveActivityId, {
|
|
2777
|
-
status: "active",
|
|
2778
|
-
latestSummary: `Running in ${tmuxSession.sessionName}:${tmuxSession.windowName}; waiting to verify ${providerLabel(provider)}`,
|
|
2779
|
-
delegatedRunId: payload?.delegatedRunId,
|
|
2780
|
-
launchStatus: "running",
|
|
2781
|
-
title: `${providerLabel(provider)} on ${this.config.displayName}`
|
|
2782
|
-
});
|
|
2783
|
-
return;
|
|
2784
|
-
}
|
|
2785
2757
|
await this.updateLiveActivity(cmd.liveActivityId, {
|
|
2786
2758
|
status: "active",
|
|
2787
|
-
latestSummary: `Running in ${tmuxSession.sessionName}
|
|
2759
|
+
latestSummary: `Running ${launchLabel} in ${tmuxSession.sessionName}`,
|
|
2788
2760
|
delegatedRunId: payload?.delegatedRunId,
|
|
2789
2761
|
launchStatus: "running",
|
|
2790
|
-
processId: attachedSession?.processId,
|
|
2791
2762
|
title: workSessionTitle
|
|
2792
2763
|
});
|
|
2793
2764
|
}
|
|
@@ -3065,11 +3036,12 @@ function persistDeviceKey(deviceKey) {
|
|
|
3065
3036
|
}
|
|
3066
3037
|
function buildLaunchPrompt(issueKey, issueTitle, workspacePath) {
|
|
3067
3038
|
return [
|
|
3068
|
-
`You are working on
|
|
3069
|
-
`The repository is
|
|
3070
|
-
"
|
|
3071
|
-
"
|
|
3072
|
-
|
|
3039
|
+
`You are working on issue ${issueKey}: ${issueTitle}`,
|
|
3040
|
+
`The repository is at ${workspacePath}.`,
|
|
3041
|
+
"Do exactly and only what the issue describes \u2014 nothing more, nothing less.",
|
|
3042
|
+
"If anything is unclear or ambiguous, ask clarifying questions before making changes.",
|
|
3043
|
+
'Do not refactor, clean up, or "improve" code that is not part of the issue scope.'
|
|
3044
|
+
].join("\n");
|
|
3073
3045
|
}
|
|
3074
3046
|
function summarizeMessage(message) {
|
|
3075
3047
|
if (!message) {
|