@bifrost-ai/engine-claude-code 0.0.3-build.1780431021205 → 0.0.3-build.1780949579427

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;IAkDb,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;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"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
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"), 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).substring(0, 40)}`).join(", "), o = (e) => {
5
5
  let t = e.message;
6
6
  if (!t?.content) return null;
7
7
  let n = [];
@@ -49,19 +49,21 @@ var n = t("bifrost"), r = (e) => e.type === "system" && e.subtype === "init", i
49
49
  this.toolkits.set(e, t);
50
50
  }
51
51
  resolveToolOptions(e, t) {
52
- let n = [...new Set(e.map((e) => typeof e == "string" ? e.replace(/\(.*\)$/, "") : e.name))], r = e.flatMap((e) => typeof e == "string" ? [e] : (e.allow ?? []).map((t) => `${e.name}(${t})`)), i = e.flatMap((e) => typeof e == "string" ? [] : (e.deny ?? []).map((t) => `${e.name}(${t})`)), a = {
53
- tools: n,
54
- allowedTools: r,
55
- ...i.length > 0 && { denyTools: i }
56
- }, o = new Set(n.map((e) => p.exec(e)?.[1]).filter((e) => e != null)), s = {};
57
- for (let e of o) {
52
+ let r = [...new Set(e.map((e) => typeof e == "string" ? e.replace(/\(.*\)$/, "") : e.name))], i = e.flatMap((e) => typeof e == "string" ? [e] : (e.allow ?? []).map((t) => `${e.name}(${t})`)), a = e.flatMap((e) => typeof e == "string" ? [] : (e.deny ?? []).map((t) => `${e.name}(${t})`)), o = {
53
+ tools: r,
54
+ allowedTools: i,
55
+ ...a.length > 0 && { denyTools: a }
56
+ }, s = new Set(r.map((e) => p.exec(e)?.[1]).filter((e) => e != null));
57
+ n("creating tools workingDir=%s", t.workingDir);
58
+ let c = {};
59
+ for (let e of s) {
58
60
  let n = this.toolkits.get(e);
59
- n != null && (s[e] = typeof n == "function" ? n(t) : n);
61
+ n != null && (c[e] = typeof n == "function" ? n(t) : n);
60
62
  }
61
- return {
62
- bareToolNames: n,
63
- toolOptions: a,
64
- mcpServersOption: Object.keys(s).length > 0 ? { mcpServers: s } : void 0
63
+ return n("mcp tools created count=%s", Object.keys(c).length), {
64
+ bareToolNames: r,
65
+ toolOptions: o,
66
+ mcpServersOption: Object.keys(c).length > 0 ? { mcpServers: c } : void 0
65
67
  };
66
68
  }
67
69
  async execute(t, a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifrost-ai/engine-claude-code",
3
- "version": "0.0.3-build.1780431021205",
3
+ "version": "0.0.3-build.1780949579427",
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.1780431021205",
21
+ "@bifrost-ai/engine": "0.0.3-build.1780949579427",
22
22
  "@anthropic-ai/claude-agent-sdk": "^0.3.150"
23
23
  }
24
24
  }