@bifrost-ai/engine-claude-code 0.0.3-build.1781892405046 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"claude-code-engine.d.ts","sourceRoot":"","sources":["../src/claude-code-engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,MAAM,EACN,aAAa,EACb,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAML,KAAK,8BAA8B,EACpC,MAAM,gCAAgC,CAAC;AAqIxC,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,8BAA8B,CAAC;AAE5F,qBAAa,gBAAiB,YAAW,MAAM;IAC7C,OAAO,CAAC,QAAQ,CAA0E;IAEnF,eAAe,CACpB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,8BAA8B,GAAG,kBAAkB,GAC3D,IAAI;IAIP,OAAO,CAAC,kBAAkB;IAwDb,OAAO,CAAC,OAAO,EAAE,aAAa,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAwFxF"}
1
+ {"version":3,"file":"claude-code-engine.d.ts","sourceRoot":"","sources":["../src/claude-code-engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,MAAM,EACN,aAAa,EACb,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAML,KAAK,8BAA8B,EACpC,MAAM,gCAAgC,CAAC;AAkIxC,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,8BAA8B,CAAC;AAE5F,qBAAa,gBAAiB,YAAW,MAAM;IAC7C,OAAO,CAAC,QAAQ,CAA0E;IAEnF,eAAe,CACpB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,8BAA8B,GAAG,kBAAkB,GAC3D,IAAI;IAIP,OAAO,CAAC,kBAAkB;IAwDb,OAAO,CAAC,OAAO,EAAE,aAAa,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAwFxF"}
package/dist/index.js CHANGED
@@ -1,32 +1,32 @@
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}` : ""})`);
12
12
  }
13
13
  return n.length > 0 ? n.join(" | ") : null;
14
- }, s = (e) => typeof e == "string" ? e.substring(0, 80) : Array.isArray(e) ? e.map((e) => e.text ?? "").join("").substring(0, 80) : "", c = (e) => {
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.1781892405046",
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.1781892405046",
21
+ "@bifrost-ai/engine": "0.0.3-build.1781903364429",
22
22
  "@anthropic-ai/claude-agent-sdk": "^0.3.150"
23
23
  }
24
24
  }