@hasna/coders 0.1.3 → 0.1.4

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/cli.mjs CHANGED
@@ -61872,9 +61872,16 @@ async function runAgentLoop(initialMessages, options2) {
61872
61872
  throw error;
61873
61873
  }
61874
61874
  if (aborted) break;
61875
+ const cleanedBlocks = contentBlocks.map((b) => {
61876
+ if (b.type === "tool_use") {
61877
+ const { _inputParseFailed, _rawInputJson, ...clean } = b;
61878
+ return clean;
61879
+ }
61880
+ return b;
61881
+ });
61875
61882
  const assistantMessage = {
61876
61883
  role: "assistant",
61877
- content: contentBlocks
61884
+ content: cleanedBlocks
61878
61885
  };
61879
61886
  messages.push(assistantMessage);
61880
61887
  const toolUseBlocks = contentBlocks.filter(
@@ -70565,7 +70572,7 @@ function App2({ model, mode, initialPrompt }) {
70565
70572
  const hasRunningTools = activeTools.some((t) => t.status === "running");
70566
70573
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
70567
70574
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Static, { items: msgs, children: (msg) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box_default, { flexDirection: "column", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MessageView, { msg }) }, msg.id) }),
70568
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box_default, { flexDirection: "column", minHeight: rows, justifyContent: "flex-end", children: [
70575
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box_default, { flexDirection: "column", children: [
70569
70576
  busy && activeTools.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box_default, { flexDirection: "column", children: activeTools.map((t) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToolItem, { tool: t }, t.id)) }),
70570
70577
  busy && streaming && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box_default, { children: [
70571
70578
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Text, { color: "green", children: "\u25CF " }),
@@ -70623,8 +70630,6 @@ function launchInkApp(opts = {}) {
70623
70630
  };
70624
70631
  console.error = () => {
70625
70632
  };
70626
- const termRows = process.stdout.rows ?? 24;
70627
- process.stdout.write("\n".repeat(Math.max(termRows - 5, 0)));
70628
70633
  const { waitUntilExit } = render_default(
70629
70634
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(App2, { model, mode, initialPrompt: opts.initialPrompt }),
70630
70635
  { exitOnCtrlC: false }
@@ -70978,7 +70983,7 @@ var VERSION, BUILD_TIME, PACKAGE_NAME2, ISSUES_URL2, startupTimestamps, original
70978
70983
  var init_index = __esm({
70979
70984
  "src/cli/index.ts"() {
70980
70985
  VERSION = "0.1.2";
70981
- BUILD_TIME = "2026-03-20T14:01:22.604Z";
70986
+ BUILD_TIME = "2026-03-20T14:03:23.252Z";
70982
70987
  PACKAGE_NAME2 = "@hasna/coders";
70983
70988
  ISSUES_URL2 = "https://github.com/hasnaxyz/open-coders/issues";
70984
70989
  startupTimestamps = {};