@bifrost-ai/engine-claude-code 0.0.3-build.1781903113529 → 0.0.3-build.1781903364429

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { query as e } from "@anthropic-ai/claude-agent-sdk";
2
2
  import t from "/home/devzeebo/git/bifrost/orchestrator/node_modules/debug/src/browser.js";
3
3
  //#region src/claude-code-engine.ts
4
- var n = t("bifrost:engine:claude-code"), r = (e) => e.type === "system" && e.subtype === "init", i = (e) => e.type === "result" && e.subtype === "success", a = (e) => !e || typeof e != "object" ? String(e ?? "") : Object.entries(e).slice(0, 3).map(([e, t]) => `${e}=${String(t).substring(0, 40)}`).join(", "), o = (e) => {
4
+ var n = t("bifrost:engine:claude-code"), r = (e) => e.type === "system" && e.subtype === "init", i = (e) => e.type === "result" && e.subtype === "success", a = (e) => !e || typeof e != "object" ? String(e ?? "") : Object.entries(e).slice(0, 3).map(([e, t]) => `${e}=${String(t)}`).join(", "), o = (e) => {
5
5
  let t = e.message;
6
6
  if (!t?.content) return null;
7
7
  let n = [];
8
- for (let e of t.content) if (e.type === "text" && e.text) n.push(e.text.substring(0, 100).replace(/\n/g, " "));
8
+ for (let e of t.content) if (e.type === "text" && e.text) n.push(e.text.replace(/\n/g, " "));
9
9
  else if (e.type === "tool_use" && e.name) {
10
10
  let t = a(e.input);
11
11
  n.push(`ToolCall(${e.name}${t ? `, ${t}` : ""})`);
@@ -14,19 +14,19 @@ var n = t("bifrost:engine:claude-code"), r = (e) => e.type === "system" && e.sub
14
14
  }, s = (e) => typeof e == "string" ? e : Array.isArray(e) ? e.map((e) => e.text ?? "").join("") : "", c = (e) => {
15
15
  let t = e.message?.content;
16
16
  if (!t) return null;
17
- if (typeof t == "string") return t.substring(0, 100).replace(/\n/g, " ");
17
+ if (typeof t == "string") return t.replace(/\n/g, " ");
18
18
  let n = [];
19
19
  for (let e of t) if (e.type === "tool_result") {
20
20
  let t = s(e.content);
21
21
  n.push(`ToolResult(${e.tool_use_id ?? "?"}${t ? `: ${t.replace(/\n/g, " ")}` : ""})`);
22
- } else e.type === "text" && e.text && n.push(e.text.substring(0, 100).replace(/\n/g, " "));
22
+ } else e.type === "text" && e.text && n.push(e.text.replace(/\n/g, " "));
23
23
  return n.length > 0 ? n.join(" | ") : null;
24
24
  }, l = (e) => {
25
25
  if (e.type === "assistant") return o(e) ?? "";
26
26
  if (e.type === "user") return c(e) ?? "";
27
27
  if (e.type === "system") {
28
28
  let t = e;
29
- if (t.message) return t.message.substring(0, 100).replace(/\n/g, " ");
29
+ if (t.message) return t.message.replace(/\n/g, " ");
30
30
  }
31
31
  return "";
32
32
  }, u = (e, t) => `<${e}>${t}</${e}>`, d = (e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifrost-ai/engine-claude-code",
3
- "version": "0.0.3-build.1781903113529",
3
+ "version": "0.0.3-build.1781903364429",
4
4
  "description": "Claude Code Agent SDK engine for Orchestrator Framework",
5
5
  "type": "module",
6
6
  "files": [
@@ -18,7 +18,7 @@
18
18
  "build": "vite build"
19
19
  },
20
20
  "dependencies": {
21
- "@bifrost-ai/engine": "0.0.3-build.1781903113529",
21
+ "@bifrost-ai/engine": "0.0.3-build.1781903364429",
22
22
  "@anthropic-ai/claude-agent-sdk": "^0.3.150"
23
23
  }
24
24
  }