@yeshwanthyk/coding-agent 0.3.11 → 0.3.13

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,4 +1,4 @@
1
- import { jsx as _jsx } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx } from "@opentui/solid/jsx-runtime";
2
2
  import { render } from "@opentui/solid";
3
3
  import { RuntimeProvider } from "../../runtime/context.js";
4
4
  import { createRuntime } from "../../runtime/factory.js";
package/dist/cli.js CHANGED
@@ -4,20 +4,15 @@
4
4
  * solid-js loads the browser build instead of server build.
5
5
  */
6
6
  import { spawn } from "bun";
7
- import { createRequire } from "node:module";
8
7
  import { dirname, join } from "node:path";
9
8
  import { fileURLToPath } from "node:url";
10
9
  const __dirname = dirname(fileURLToPath(import.meta.url));
11
10
  const mainScript = join(__dirname, "index.js");
12
- // Resolve absolute path to preload script from this package's node_modules
13
- const require = createRequire(import.meta.url);
14
- const solidPkgJson = require.resolve("@opentui/solid/package.json");
15
- const solidDir = dirname(solidPkgJson);
16
- const preloadPath = join(solidDir, "scripts", "preload.ts");
11
+ const preloadPath = join(__dirname, "solid-preload.js");
17
12
  // Respawn with preload if not already preloaded
18
13
  if (!process.env.__MARVIN_PRELOADED) {
19
14
  const proc = spawn({
20
- cmd: ["bun", "--preload", preloadPath, mainScript, ...process.argv.slice(2)],
15
+ cmd: ["bun", "--conditions=browser", "--preload", preloadPath, mainScript, ...process.argv.slice(2)],
21
16
  env: { ...process.env, __MARVIN_PRELOADED: "1" },
22
17
  stdio: ["inherit", "inherit", "inherit"],
23
18
  });
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;GAGG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAA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,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAC/C,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAC;AAExD,gDAAgD;AAChD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,CAAC;IACrC,MAAM,IAAI,GAAG,KAAK,CAAC;QAClB,GAAG,EAAE,CAAC,KAAK,EAAE,sBAAsB,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACpG,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,kBAAkB,EAAE,GAAG,EAAE;QAChD,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;KACxC,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC;IACnC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;KAAM,CAAC;IACP,uCAAuC;IACvC,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC;AAC5B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
2
2
  /**
3
3
  * Footer - Subtle dashed line with dir · branch on right.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
2
2
  /**
3
3
  * Header - Single row, minimal by default, click to expand.
4
4
  * Left: activity + model·thinking + progress bar + queue
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
2
2
  /**
3
3
  * MessageList component for rendering conversation content
4
4
  */
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx } from "@opentui/solid/jsx-runtime";
2
2
  import { createContext, useContext } from "solid-js";
3
3
  const RuntimeContext = createContext(null);
4
4
  export const RuntimeProvider = (props) => (_jsx(RuntimeContext.Provider, { value: props.runtime, children: props.children }));
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
2
2
  /**
3
3
  * OpenTUI-based session picker
4
4
  */
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=solid-preload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solid-preload.d.ts","sourceRoot":"","sources":["../src/solid-preload.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Bun preload script to redirect solid-js server builds to browser builds.
3
+ * solid-js uses conditional exports where `node` condition loads SSR builds.
4
+ * This plugin intercepts those and loads the browser builds instead.
5
+ */
6
+ import { plugin } from "bun";
7
+ const solidBrowserPlugin = {
8
+ name: "solid-browser-redirect",
9
+ setup(build) {
10
+ // solid-js/dist/server.js → solid.js
11
+ build.onLoad({ filter: /\/node_modules\/solid-js\/dist\/server\.js$/ }, async (args) => {
12
+ const path = args.path.replace("server.js", "solid.js");
13
+ const code = await Bun.file(path).text();
14
+ return { contents: code, loader: "js" };
15
+ });
16
+ // solid-js/store/dist/server.js → store.js
17
+ build.onLoad({ filter: /\/node_modules\/solid-js\/store\/dist\/server\.js$/ }, async (args) => {
18
+ const path = args.path.replace("server.js", "store.js");
19
+ const code = await Bun.file(path).text();
20
+ return { contents: code, loader: "js" };
21
+ });
22
+ // solid-js/web/dist/server.js → web.js
23
+ build.onLoad({ filter: /\/node_modules\/solid-js\/web\/dist\/server\.js$/ }, async (args) => {
24
+ const path = args.path.replace("server.js", "web.js");
25
+ const code = await Bun.file(path).text();
26
+ return { contents: code, loader: "js" };
27
+ });
28
+ },
29
+ };
30
+ plugin(solidBrowserPlugin);
31
+ //# sourceMappingURL=solid-preload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solid-preload.js","sourceRoot":"","sources":["../src/solid-preload.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAkB,MAAM,KAAK,CAAC;AAE7C,MAAM,kBAAkB,GAAc;IACrC,IAAI,EAAE,wBAAwB;IAC9B,KAAK,CAAC,KAAK;QACV,qCAAqC;QACrC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,6CAA6C,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACtF,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;YACxD,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;YACzC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACzC,CAAC,CAAC,CAAC;QAEH,2CAA2C;QAC3C,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,oDAAoD,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YAC7F,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;YACxD,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;YACzC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACzC,CAAC,CAAC,CAAC;QAEH,uCAAuC;QACvC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,kDAAkD,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YAC3F,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;YACtD,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;YACzC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACzC,CAAC,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;AAEF,MAAM,CAAC,kBAAkB,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
2
2
  /**
3
3
  * OpenTUI-native rendering components for tool output.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
2
2
  import { ThemeProvider } from "@yeshwanthyk/open-tui";
3
3
  import { batch, onMount } from "solid-js";
4
4
  import { Effect } from "effect";
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
2
2
  import { createSignal } from "solid-js";
3
3
  import { useKeyboard } from "@opentui/solid";
4
4
  import { Dialog, useTheme } from "@yeshwanthyk/open-tui";
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
2
2
  import { useKeyboard } from "@opentui/solid";
3
3
  import { Dialog, Editor, useTheme } from "@yeshwanthyk/open-tui";
4
4
  export function EditorModal(props) {
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
2
2
  import { useKeyboard } from "@opentui/solid";
3
3
  import { Dialog, Input } from "@yeshwanthyk/open-tui";
4
4
  export function InputModal(props) {
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
2
2
  import { Match, Switch } from "solid-js";
3
3
  import { SelectModal } from "./SelectModal.js";
4
4
  import { InputModal } from "./InputModal.js";
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
2
2
  import { createSignal } from "solid-js";
3
3
  import { useKeyboard } from "@opentui/solid";
4
4
  import { Dialog, SelectList } from "@yeshwanthyk/open-tui";
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@opentui/solid/jsx-runtime";
2
2
  import { TextareaRenderable } from "@opentui/core";
3
3
  import { Show } from "solid-js";
4
4
  import { SelectList } from "@yeshwanthyk/open-tui";
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
2
2
  import { TextareaRenderable } from "@opentui/core";
3
3
  import { useTerminalDimensions } from "@opentui/solid";
4
4
  import { CombinedAutocompleteProvider, ToastViewport, copyToClipboard, useRenderer, useTheme, } from "@yeshwanthyk/open-tui";
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "solid-js/h/jsx-runtime";
1
+ import { jsx as _jsx } from "@opentui/solid/jsx-runtime";
2
2
  import { MessageList } from "../../../components/MessageList.js";
3
3
  export function MessagePane(props) {
4
4
  return (_jsx("scrollbox", { stickyScroll: true, stickyStart: "bottom", flexGrow: props.messages.length > 0 ? 1 : 0, flexShrink: 1, children: _jsx(MessageList, { messages: props.messages, toolBlocks: props.toolBlocks, thinkingVisible: props.thinkingVisible, diffWrapMode: props.diffWrapMode, concealMarkdown: props.concealMarkdown, isToolExpanded: props.isToolExpanded, toggleToolExpanded: props.toggleToolExpanded, isThinkingExpanded: props.isThinkingExpanded, toggleThinkingExpanded: props.toggleThinkingExpanded, onEditFile: props.onEditFile }) }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeshwanthyk/coding-agent",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "marvin": "./dist/cli.js"