@workermill/agent 0.7.6 → 0.7.7
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/config.d.ts +1 -1
- package/dist/config.js +2 -2
- package/dist/planner.js +2 -2
- package/dist/spawner.js +3 -3
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
package/dist/config.js
CHANGED
|
@@ -76,7 +76,7 @@ export function loadConfigFromFile() {
|
|
|
76
76
|
gitlabToken: fc.tokens?.gitlab || "",
|
|
77
77
|
workerImage,
|
|
78
78
|
teamPlanningEnabled: fc.teamPlanningEnabled ?? true,
|
|
79
|
-
analystModel: fc.analystModel
|
|
79
|
+
analystModel: fc.analystModel,
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
@@ -122,7 +122,7 @@ export function loadConfig() {
|
|
|
122
122
|
gitlabToken: process.env.GITLAB_TOKEN || "",
|
|
123
123
|
workerImage: process.env.WORKER_IMAGE || "workermill-worker:local",
|
|
124
124
|
teamPlanningEnabled: process.env.TEAM_PLANNING_ENABLED !== "false",
|
|
125
|
-
analystModel: process.env.ANALYST_MODEL
|
|
125
|
+
analystModel: process.env.ANALYST_MODEL,
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
/**
|
package/dist/planner.js
CHANGED
|
@@ -630,7 +630,7 @@ export async function planTask(task, config, credentials) {
|
|
|
630
630
|
});
|
|
631
631
|
const { prompt: basePrompt, model, provider: planningProvider, maxStories: apiMaxStories } = promptResponse.data;
|
|
632
632
|
const maxStories = typeof apiMaxStories === "number" ? apiMaxStories : 8;
|
|
633
|
-
const cliModel = model
|
|
633
|
+
const cliModel = model;
|
|
634
634
|
const provider = (planningProvider || "anthropic");
|
|
635
635
|
const isAnthropicPlanning = provider === "anthropic";
|
|
636
636
|
const claudePath = process.env.CLAUDE_CLI_PATH || findClaudePath() || "claude";
|
|
@@ -660,7 +660,7 @@ export async function planTask(task, config, credentials) {
|
|
|
660
660
|
console.log(`${ts()} ${taskLabel} ${chalk.yellow("⚠")} No SCM token for ${scmProvider}, skipping team planning`);
|
|
661
661
|
}
|
|
662
662
|
if (repoPath) {
|
|
663
|
-
const analystModel = config.analystModel ||
|
|
663
|
+
const analystModel = config.analystModel || cliModel;
|
|
664
664
|
console.log(`${ts()} ${taskLabel} Analysts using model: ${chalk.yellow(analystModel)} (planner: ${chalk.yellow(cliModel)})`);
|
|
665
665
|
const analysisResult = await runTeamAnalysis(task, basePrompt, claudePath, analystModel, cleanEnv, repoPath, task.id, startTime);
|
|
666
666
|
if (analysisResult) {
|
package/dist/spawner.js
CHANGED
|
@@ -182,9 +182,9 @@ export async function spawnWorker(task, config, orgConfig, credentials) {
|
|
|
182
182
|
// Target repository
|
|
183
183
|
TARGET_REPO: task.githubRepo || "",
|
|
184
184
|
GITHUB_REPO: task.githubRepo || "",
|
|
185
|
-
// Worker model
|
|
186
|
-
WORKER_MODEL: task.workerModel || String(orgConfig.defaultWorkerModel || "
|
|
187
|
-
CLAUDE_MODEL: task.
|
|
185
|
+
// Worker model — comes from task or org settings, no hardcoded fallbacks
|
|
186
|
+
WORKER_MODEL: task.workerModel || String(orgConfig.defaultWorkerModel || ""),
|
|
187
|
+
CLAUDE_MODEL: task.workerModel || String(orgConfig.defaultWorkerModel || ""),
|
|
188
188
|
// Jira credentials (from org Secrets Manager via /api/agent/claim)
|
|
189
189
|
JIRA_BASE_URL: credentials?.jiraBaseUrl || "",
|
|
190
190
|
JIRA_EMAIL: credentials?.jiraEmail || "",
|