@sorenllm/opencode-forge 0.15.0 → 0.15.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 +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17732,10 +17732,19 @@ var server = async (input, options) => {
|
|
|
17732
17732
|
const def = resolvePools()?.agents[agentId]?.def;
|
|
17733
17733
|
if (!def?.thoughtLevel)
|
|
17734
17734
|
return;
|
|
17735
|
+
const modelObj = raw.model;
|
|
17735
17736
|
const providerID = typeof raw.model?.providerID === "string" ? raw.model.providerID : "";
|
|
17736
|
-
const modelID = typeof
|
|
17737
|
+
const modelID = typeof modelObj?.modelID === "string" ? modelObj.modelID : typeof modelObj?.id === "string" ? modelObj.id : "";
|
|
17737
17738
|
const channel = resolveDepthChannel(providerID, modelID);
|
|
17738
17739
|
const { translation, findingMessage } = resolvePinnedDepth(def.thoughtLevel, channel);
|
|
17740
|
+
if (process.env.FORGE_DEPTH_PROBE) {
|
|
17741
|
+
try {
|
|
17742
|
+
appendFileSync(join6(tmpdir3(), "forge-depth-probe.log"), `${new Date().toISOString()} sid=${sessionID} agent=${agentName} prov=${providerID} model=${modelID} depth=${def.thoughtLevel} channel=${JSON.stringify(channel)} translation=${JSON.stringify(translation) ?? "null"} finding=${findingMessage ?? "-"}
|
|
17743
|
+
` + ` input=${JSON.stringify(raw).slice(0, 600)}
|
|
17744
|
+
` + ` optionsAfter=${JSON.stringify(output.options ?? {})}
|
|
17745
|
+
`);
|
|
17746
|
+
} catch {}
|
|
17747
|
+
}
|
|
17739
17748
|
if (!translation) {
|
|
17740
17749
|
if (findingMessage && !depthFindingNotes.has(agentId)) {
|
|
17741
17750
|
depthFindingNotes.set(agentId, findingMessage);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sorenllm/opencode-forge",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Single general-purpose forge agent for opencode: static worker subagents defined in forge.json (pinned model + thoughtLevel pair, or an Auto worker inheriting the parent model; dispatched through the native task tool — TUI-visible), a plan harness (file-backed plans with approve/close confirmation gates and a hard draft write-ban), a goal harness (autonomous, host-verified objectives), a /crew orchestration command (declared-plan waves with an evidence-checked close gate), a job supervisor (forge_shell with exit-bound completion, idle/success early return, background jobs with poll/log/kill/handoff), and a builtin-shell hang watchdog.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|