@melaya/runner 1.0.58 → 1.0.60
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/connection.js +9 -0
- package/dist/modelLoader.js +11 -2
- package/package.json +1 -1
package/dist/connection.js
CHANGED
|
@@ -703,6 +703,15 @@ export async function connect(opts) {
|
|
|
703
703
|
MEL_MODEL_DISABLE_THINKING: preflight.profile.thinkingDefault === "off" ? "1" : "0",
|
|
704
704
|
}
|
|
705
705
|
: {}),
|
|
706
|
+
// Per-pipeline credentials from agents.credentials. Same
|
|
707
|
+
// delivery channel the regular runner:run path uses at
|
|
708
|
+
// line 384. Without this, Python tools that read
|
|
709
|
+
// os.environ.get("FRED_API_KEY") / "EDGAR_API_KEY" / etc.
|
|
710
|
+
// get None even when the user has the credential connected on
|
|
711
|
+
// the Connectors page. The Node tRPC server fetches the map
|
|
712
|
+
// via the same query agentStudio.credentials.getEnvMap uses
|
|
713
|
+
// and ships it inline on the crew dispatch payload.
|
|
714
|
+
...(cfg.credentials ?? {}),
|
|
706
715
|
};
|
|
707
716
|
const proc = spawn(envResult.pythonPath, ["-u", join(runDir, "main.py")], {
|
|
708
717
|
cwd: runDir,
|
package/dist/modelLoader.js
CHANGED
|
@@ -168,8 +168,17 @@ function _buildProfile(id, tier, paramsBillion, family, thinkingDefault, reason)
|
|
|
168
168
|
const recommendedMaxTokens = tier === "agentic-capable" ? 8192
|
|
169
169
|
: tier === "agentic-marginal" ? 4096
|
|
170
170
|
: 2048;
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
// Crew personas typically wield 8–15 scoped tools. A ReAct loop has
|
|
172
|
+
// to spend one iteration per tool call AND one final iteration on the
|
|
173
|
+
// text summary. 10 was the original ceiling for short pipelines; it
|
|
174
|
+
// leaves zero headroom for crew personas that loop on fred/edgar/
|
|
175
|
+
// funding probes before they can write the regime label, and the
|
|
176
|
+
// persona terminates mid-thinking with no text reply — the downstream
|
|
177
|
+
// persona then sees `Output from agent N:\n` followed by nothing.
|
|
178
|
+
// 25 gives a 27B model enough room to canvass its tool set AND wrap
|
|
179
|
+
// up; smaller capable models cap themselves naturally on context.
|
|
180
|
+
const recommendedMaxIters = tier === "agentic-capable" ? 25
|
|
181
|
+
: tier === "agentic-marginal" ? 8
|
|
173
182
|
: 3;
|
|
174
183
|
return {
|
|
175
184
|
schemaVersion: PROFILE_SCHEMA_VERSION,
|