@prestyj/boss 4.3.164 → 4.5.0
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/{chunk-STUHLGRN.js → chunk-S4K5TGVV.js} +3194 -2171
- package/dist/{chunk-STUHLGRN.js.map → chunk-S4K5TGVV.js.map} +1 -1
- package/dist/cli.js +18 -18
- package/dist/cli.js.map +1 -1
- package/dist/{devtools-ASTBUBZC.js → devtools-KC4JWG2A.js} +5 -5
- package/dist/devtools-KC4JWG2A.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/devtools-ASTBUBZC.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
ChatLivePane,
|
|
11
11
|
CompactionDone,
|
|
12
12
|
CompactionSpinner,
|
|
13
|
-
|
|
13
|
+
EzBoss,
|
|
14
14
|
InputArea,
|
|
15
15
|
MODELS,
|
|
16
16
|
MessageResponse,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
use_input_default,
|
|
69
69
|
use_stdout_default,
|
|
70
70
|
wrapPlain
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-S4K5TGVV.js";
|
|
72
72
|
import "./chunk-7QDS2KEP.js";
|
|
73
73
|
import {
|
|
74
74
|
source_default
|
|
@@ -116,13 +116,13 @@ import readline from "readline";
|
|
|
116
116
|
import os from "os";
|
|
117
117
|
import path2 from "path";
|
|
118
118
|
async function discoverProjects() {
|
|
119
|
-
const [
|
|
120
|
-
|
|
119
|
+
const [ez, cc, cx] = await Promise.all([
|
|
120
|
+
discoverEzcoderProjects(),
|
|
121
121
|
discoverClaudeProjects(),
|
|
122
122
|
discoverCodexProjects()
|
|
123
123
|
]);
|
|
124
124
|
const byPath = /* @__PURE__ */ new Map();
|
|
125
|
-
for (const p of [...
|
|
125
|
+
for (const p of [...ez, ...cc, ...cx]) {
|
|
126
126
|
const existing = byPath.get(p.path);
|
|
127
127
|
if (!existing) {
|
|
128
128
|
byPath.set(p.path, p);
|
|
@@ -153,7 +153,7 @@ function mergeSources(a, b) {
|
|
|
153
153
|
const set = /* @__PURE__ */ new Set([...a, ...b]);
|
|
154
154
|
return Array.from(set).sort((x, y) => SOURCE_ORDER[x] - SOURCE_ORDER[y]);
|
|
155
155
|
}
|
|
156
|
-
async function
|
|
156
|
+
async function discoverEzcoderProjects() {
|
|
157
157
|
const sessionsDir = getAppPaths().sessionsDir;
|
|
158
158
|
let entries;
|
|
159
159
|
try {
|
|
@@ -361,7 +361,7 @@ init_esm_shims();
|
|
|
361
361
|
// package.json
|
|
362
362
|
var package_default = {
|
|
363
363
|
name: "@prestyj/boss",
|
|
364
|
-
version: "4.
|
|
364
|
+
version: "4.5.0",
|
|
365
365
|
type: "module",
|
|
366
366
|
description: "Orchestrator agent that drives multiple ezcoder sessions across projects from a single chat",
|
|
367
367
|
license: "MIT",
|
|
@@ -517,7 +517,7 @@ var VISIBLE_ROWS = 12;
|
|
|
517
517
|
function sourceBadge(sources) {
|
|
518
518
|
if (sources.length > 1) return { label: "[mix]", color: COLORS.success };
|
|
519
519
|
const only = sources[0];
|
|
520
|
-
if (only === "ezcoder") return { label: "[
|
|
520
|
+
if (only === "ezcoder") return { label: "[ez ]", color: COLORS.accent };
|
|
521
521
|
if (only === "claude-code") return { label: "[cc ]", color: COLORS.warning };
|
|
522
522
|
if (only === "codex") return { label: "[cx ]", color: COLORS.primary };
|
|
523
523
|
return { label: "[?? ]", color: COLORS.textDim };
|
|
@@ -1069,7 +1069,7 @@ async function runBossServeMode(options) {
|
|
|
1069
1069
|
botToken: options.telegram.botToken,
|
|
1070
1070
|
allowedUserId: options.telegram.userId
|
|
1071
1071
|
});
|
|
1072
|
-
const boss = new
|
|
1072
|
+
const boss = new EzBoss({
|
|
1073
1073
|
bossProvider: options.bossProvider,
|
|
1074
1074
|
bossModel: options.bossModel,
|
|
1075
1075
|
bossThinkingLevel: options.bossThinkingLevel,
|
|
@@ -2320,7 +2320,7 @@ function tryPlayOnWindowsHost(station) {
|
|
|
2320
2320
|
"Add-Type -AssemblyName presentationCore;",
|
|
2321
2321
|
"Add-Type -AssemblyName WindowsBase;",
|
|
2322
2322
|
"$p = New-Object System.Windows.Media.MediaPlayer;",
|
|
2323
|
-
"$p.Open([uri]$env:
|
|
2323
|
+
"$p.Open([uri]$env:EZBOSS_RADIO_URL);",
|
|
2324
2324
|
"$p.Play();",
|
|
2325
2325
|
"[System.Windows.Threading.Dispatcher]::Run();"
|
|
2326
2326
|
].join(" ");
|
|
@@ -2333,8 +2333,8 @@ function tryPlayOnWindowsHost(station) {
|
|
|
2333
2333
|
stdio: "ignore",
|
|
2334
2334
|
env: {
|
|
2335
2335
|
...process.env,
|
|
2336
|
-
|
|
2337
|
-
WSLENV: (process.env.WSLENV ? process.env.WSLENV + ":" : "") + "
|
|
2336
|
+
EZBOSS_RADIO_URL: station.url,
|
|
2337
|
+
WSLENV: (process.env.WSLENV ? process.env.WSLENV + ":" : "") + "EZBOSS_RADIO_URL"
|
|
2338
2338
|
}
|
|
2339
2339
|
}
|
|
2340
2340
|
);
|
|
@@ -3066,7 +3066,7 @@ function serializeBossItemToTerminalHistory(item, context) {
|
|
|
3066
3066
|
case "update_notice":
|
|
3067
3067
|
return renderUpdateNotice(item, context);
|
|
3068
3068
|
default:
|
|
3069
|
-
return serializeCompletedItemToTerminalHistory(
|
|
3069
|
+
return serializeCompletedItemToTerminalHistory(toEzCoderCompletedItem(item), context);
|
|
3070
3070
|
}
|
|
3071
3071
|
}
|
|
3072
3072
|
function renderBanner(context) {
|
|
@@ -3153,7 +3153,7 @@ function renderTaskDispatch(item, context) {
|
|
|
3153
3153
|
}
|
|
3154
3154
|
return lines.join("\n");
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function toEzCoderCompletedItem(item) {
|
|
3157
3157
|
switch (item.kind) {
|
|
3158
3158
|
case "user":
|
|
3159
3159
|
return { kind: "user", id: item.id, text: item.text };
|
|
@@ -3403,7 +3403,7 @@ function checkAndAutoUpdate(currentVersion) {
|
|
|
3403
3403
|
const info = detectInstallInfo();
|
|
3404
3404
|
if (info.updateCommand) {
|
|
3405
3405
|
performUpdateInBackground(info.updateCommand);
|
|
3406
|
-
message = `
|
|
3406
|
+
message = `Nolan just shipped ${state.latestVersion}! Installing in the background \u2014 takes effect next launch.`;
|
|
3407
3407
|
writeState({
|
|
3408
3408
|
...state,
|
|
3409
3409
|
lastCheckedAt: Date.now(),
|
|
@@ -3461,7 +3461,7 @@ function startPeriodicUpdateCheck(currentVersion, onUpdate) {
|
|
|
3461
3461
|
updatePending: true
|
|
3462
3462
|
});
|
|
3463
3463
|
onUpdate(
|
|
3464
|
-
`
|
|
3464
|
+
`Nolan just pushed a fresh update \u2014 ${currentVersion} \u2192 ${latestVersion}! Restart ezboss to grab it (or run ${info.updateCommand} if you can't wait).`
|
|
3465
3465
|
);
|
|
3466
3466
|
stopPeriodicUpdateCheck();
|
|
3467
3467
|
}).catch(() => {
|
|
@@ -4148,7 +4148,7 @@ async function runOrchestrator(args) {
|
|
|
4148
4148
|
});
|
|
4149
4149
|
const updateMessage = checkAndAutoUpdate(VERSION);
|
|
4150
4150
|
if (updateMessage) log("INFO", "auto_update", updateMessage);
|
|
4151
|
-
const boss = new
|
|
4151
|
+
const boss = new EzBoss({
|
|
4152
4152
|
bossProvider: finalBossProvider,
|
|
4153
4153
|
bossModel: finalBossModel,
|
|
4154
4154
|
bossThinkingLevel: settings.bossThinkingLevel,
|
|
@@ -4202,7 +4202,7 @@ process.on("unhandledRejection", (reason) => {
|
|
|
4202
4202
|
main().catch((err) => {
|
|
4203
4203
|
const message = err instanceof Error ? err.message : String(err);
|
|
4204
4204
|
process.stderr.write(source_default.hex(COLORS.error)(`
|
|
4205
|
-
|
|
4205
|
+
ez-boss failed: ${message}
|
|
4206
4206
|
`));
|
|
4207
4207
|
process.exit(1);
|
|
4208
4208
|
});
|