@botlearn-course/daemon 0.0.28-beta.4 → 0.0.28-beta.6
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/README.md +40 -0
- package/dist/agent-service-sandbox.d.ts +1 -1
- package/dist/agent-service-sandbox.js +27 -13
- package/dist/agent-service-ws-protocol.d.ts +1 -1
- package/dist/agent-service-ws-protocol.js +12 -2
- package/dist/course-client.d.ts +2 -2
- package/dist/course-client.js +7 -6
- package/dist/file-candidates.d.ts +5 -2
- package/dist/file-candidates.js +61 -34
- package/dist/mcp/course-skills-server.d.ts +45 -1
- package/dist/mcp/course-skills-server.js +10 -10
- package/dist/run-dispatcher.d.ts +1 -1
- package/dist/run-dispatcher.js +1 -1
- package/dist/runtime-prompt.d.ts +2 -2
- package/dist/runtime-prompt.js +2 -2
- package/dist/runtime-skill-materialization.d.ts +3 -2
- package/dist/runtime-skill-materialization.js +7 -4
- package/dist/runtimes/deepseek-tui.js +26 -87
- package/dist/runtimes/engine.js +4 -4
- package/dist/runtimes/pi-agent.d.ts +2 -2
- package/dist/runtimes/pi-agent.js +45 -10
- package/dist/runtimes/pi-course-skills-extension.d.ts +29 -0
- package/dist/runtimes/pi-course-skills-extension.js +60 -0
- package/dist/runtimes/pi-managed.d.ts +0 -1
- package/dist/runtimes/pi-managed.js +1 -14
- package/dist/runtimes/pi-session.d.ts +9 -0
- package/dist/runtimes/pi-session.js +74 -0
- package/dist/runtimes/progress.d.ts +1 -1
- package/dist/runtimes/progress.js +6 -4
- package/dist/tool-observation.d.ts +2 -1
- package/dist/tool-observation.js +20 -1
- package/package.json +1 -1
package/dist/tool-observation.js
CHANGED
|
@@ -47,7 +47,7 @@ const RESULT_FIELDS = new Set([
|
|
|
47
47
|
* and paths inside the current workspace become workspace-relative. Other semantic content,
|
|
48
48
|
* including execution-host paths outside that workspace, stays intact. `detail_preview` is
|
|
49
49
|
* a bounded feed-sized excerpt; `detail_full` carries the same allowlisted projection at
|
|
50
|
-
* audit fidelity (deeper walk, larger arrays, 64k chars). Message text, request IDs, and
|
|
50
|
+
* audit fidelity (deeper walk, larger arrays, 64k chars). Message text, model request IDs, and
|
|
51
51
|
* arbitrary envelope metadata never cross this boundary.
|
|
52
52
|
*/
|
|
53
53
|
export function buildToolObservation(block, runtime, workspaceDir) {
|
|
@@ -77,7 +77,9 @@ export function buildToolObservation(block, runtime, workspaceDir) {
|
|
|
77
77
|
const detailFull = detailFullTruncated
|
|
78
78
|
? `${serializedFull.slice(0, DETAIL_FULL_MAX_CHARS - 1)}…`
|
|
79
79
|
: serializedFull;
|
|
80
|
+
const callId = toolCallId(block.raw);
|
|
80
81
|
return {
|
|
82
|
+
...(callId ? { tool_call_id: callId } : {}),
|
|
81
83
|
schema_version: AGENT_TOOL_OBSERVATION_SCHEMA_VERSION,
|
|
82
84
|
kind: block.kind,
|
|
83
85
|
runtime,
|
|
@@ -143,3 +145,20 @@ function normalizeWorkspacePaths(value, workspaceDir) {
|
|
|
143
145
|
normalizeWorkspacePaths(item, workspaceDir),
|
|
144
146
|
]));
|
|
145
147
|
}
|
|
148
|
+
function toolCallId(raw, depth = 0) {
|
|
149
|
+
if (!raw || typeof raw !== "object" || depth > 4)
|
|
150
|
+
return undefined;
|
|
151
|
+
const value = raw;
|
|
152
|
+
for (const key of ["tool_call_id", "toolCallId", "call_id", "id"]) {
|
|
153
|
+
const candidate = value[key];
|
|
154
|
+
if (typeof candidate === "string" && /^[A-Za-z0-9_.:-]{1,120}$/.test(candidate)
|
|
155
|
+
&& redactSecretsDeep(candidate) === candidate)
|
|
156
|
+
return candidate;
|
|
157
|
+
}
|
|
158
|
+
for (const key of ["payload", "raw", "data", "tool_call", "item"]) {
|
|
159
|
+
const found = toolCallId(value[key], depth + 1);
|
|
160
|
+
if (found)
|
|
161
|
+
return found;
|
|
162
|
+
}
|
|
163
|
+
return undefined;
|
|
164
|
+
}
|
package/package.json
CHANGED