@staff0rd/assist 0.643.3 → 0.643.5
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/commands/sessions/web/bundle.js +365 -365
- package/dist/index.js +14 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.643.
|
|
9
|
+
version: "0.643.5",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -9302,6 +9302,9 @@ function printPhase(phase, index3, isCurrent, sessions) {
|
|
|
9302
9302
|
printPhaseTasks(phase);
|
|
9303
9303
|
printPhaseSessions(sessions);
|
|
9304
9304
|
}
|
|
9305
|
+
function reviewPhaseIndex(plan2) {
|
|
9306
|
+
return plan2.at(-1)?.name === REVIEW_PHASE_NAME ? plan2.length - 1 : plan2.length;
|
|
9307
|
+
}
|
|
9305
9308
|
function printReviewSessions(item, planLength) {
|
|
9306
9309
|
const sessions = (item.phaseSessions ?? []).filter(
|
|
9307
9310
|
(s) => s.phaseIdx >= planLength
|
|
@@ -9313,13 +9316,17 @@ function printReviewSessions(item, planLength) {
|
|
|
9313
9316
|
}
|
|
9314
9317
|
function printPlan(item) {
|
|
9315
9318
|
if (!item.plan || item.plan.length === 0) return;
|
|
9319
|
+
const plan2 = item.plan;
|
|
9320
|
+
const reviewIdx = reviewPhaseIndex(plan2);
|
|
9316
9321
|
console.log(chalk55.bold("Plan"));
|
|
9317
|
-
for (const [i, phase] of
|
|
9322
|
+
for (const [i, phase] of plan2.entries()) {
|
|
9318
9323
|
const isCurrent = item.currentPhase === i + 1;
|
|
9319
|
-
const sessions = (item.phaseSessions ?? []).filter(
|
|
9324
|
+
const sessions = (item.phaseSessions ?? []).filter(
|
|
9325
|
+
(s) => i === reviewIdx ? s.phaseIdx >= i : s.phaseIdx === i
|
|
9326
|
+
);
|
|
9320
9327
|
printPhase(phase, i, isCurrent, sessions);
|
|
9321
9328
|
}
|
|
9322
|
-
printReviewSessions(item,
|
|
9329
|
+
if (reviewIdx === plan2.length) printReviewSessions(item, plan2.length);
|
|
9323
9330
|
console.log();
|
|
9324
9331
|
}
|
|
9325
9332
|
|
|
@@ -31102,12 +31109,14 @@ function buildCodexModelArgs() {
|
|
|
31102
31109
|
if (!config) return { args: [], env: {} };
|
|
31103
31110
|
return {
|
|
31104
31111
|
args: [
|
|
31112
|
+
"-c",
|
|
31113
|
+
"model_providers.litellm.name=LiteLLM",
|
|
31105
31114
|
"-c",
|
|
31106
31115
|
`model_providers.litellm.base_url=${config.baseUrl}/v1`,
|
|
31107
31116
|
"-c",
|
|
31108
31117
|
`model_providers.litellm.env_key=${API_KEY_ENV}`,
|
|
31109
31118
|
"-c",
|
|
31110
|
-
"model_providers.litellm.wire_api=
|
|
31119
|
+
"model_providers.litellm.wire_api=responses",
|
|
31111
31120
|
"-c",
|
|
31112
31121
|
"model_provider=litellm",
|
|
31113
31122
|
"-m",
|