bit-office 1.1.0 → 1.1.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 +6 -3
- package/dist/index.js.map +1 -1
- package/dist/web/404.html +2 -2
- package/dist/web/index.html +2 -2
- package/dist/web/index.txt +1 -1
- package/dist/web/office.html +2 -2
- package/dist/web/office.txt +1 -1
- package/dist/web/pair.html +2 -2
- package/dist/web/pair.txt +1 -1
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- /package/dist/web/_next/static/{2DlUdS8198vtEVFBCTvcr → pUJijMbzNc5YblbUZx7p7}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{2DlUdS8198vtEVFBCTvcr → pUJijMbzNc5YblbUZx7p7}/_ssgManifest.js +0 -0
package/dist/index.js
CHANGED
|
@@ -5340,7 +5340,8 @@ var AgentSession = class {
|
|
|
5340
5340
|
teamRoster: teamContext ?? "",
|
|
5341
5341
|
originalTask,
|
|
5342
5342
|
prompt,
|
|
5343
|
-
soloHint: this.teamId ? "" :
|
|
5343
|
+
soloHint: this.teamId ? "" : `- You are a SOLO developer. Do NOT delegate, assign tasks, or mention other team members. Do ALL the work yourself.
|
|
5344
|
+
- PROJECT DIRECTORY: When creating files, first create a dedicated project directory (short kebab-case name, e.g. "snake-game"). Do ALL work inside it. Report it as PROJECT_DIR: <directory-name> in your output. If the user is just chatting (no code needed), skip this.`
|
|
5344
5345
|
};
|
|
5345
5346
|
const isFirstExecute = this._isTeamLead && phaseOverride === "execute" && !this._hasExecuted;
|
|
5346
5347
|
let fullPrompt;
|
|
@@ -5555,7 +5556,8 @@ var AgentSession = class {
|
|
|
5555
5556
|
saveSessionId(this.agentId, this.sessionId);
|
|
5556
5557
|
const { summary, fullOutput, changedFiles, entryFile, projectDir, previewCmd, previewPort } = this.extractResult();
|
|
5557
5558
|
this._lastFullOutput = fullOutput;
|
|
5558
|
-
const
|
|
5559
|
+
const hasWorkOutput = changedFiles.length > 0 || entryFile || previewCmd || projectDir;
|
|
5560
|
+
const { previewUrl, previewPath } = this._isTeamLead || !hasWorkOutput ? { previewUrl: void 0, previewPath: void 0 } : this.detectPreview();
|
|
5559
5561
|
this._lastResult = `done: ${summary.slice(0, 120)}`;
|
|
5560
5562
|
this.setStatus("done");
|
|
5561
5563
|
const tokenUsage = this.taskInputTokens > 0 || this.taskOutputTokens > 0 ? { inputTokens: this.taskInputTokens, outputTokens: this.taskOutputTokens } : void 0;
|
|
@@ -5632,7 +5634,8 @@ var AgentSession = class {
|
|
|
5632
5634
|
*/
|
|
5633
5635
|
detectPreview() {
|
|
5634
5636
|
const result = this.extractResult();
|
|
5635
|
-
const
|
|
5637
|
+
const baseCwd = this.currentCwd ?? this.workspace;
|
|
5638
|
+
const cwd = result.projectDir ? path3.isAbsolute(result.projectDir) ? result.projectDir : path3.join(baseCwd, result.projectDir) : baseCwd;
|
|
5636
5639
|
let previewUrl;
|
|
5637
5640
|
let previewPath;
|
|
5638
5641
|
if (result.previewCmd) {
|