@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.
- package/dist/adapters/tui/app.js +1 -1
- package/dist/cli.js +2 -7
- package/dist/cli.js.map +1 -1
- package/dist/components/Footer.js +1 -1
- package/dist/components/Header.js +1 -1
- package/dist/components/MessageList.js +1 -1
- package/dist/runtime/context.js +1 -1
- package/dist/session-picker.js +1 -1
- package/dist/solid-preload.d.ts +2 -0
- package/dist/solid-preload.d.ts.map +1 -0
- package/dist/solid-preload.js +31 -0
- package/dist/solid-preload.js.map +1 -0
- package/dist/tui-open-rendering.js +1 -1
- package/dist/ui/app-shell/TuiApp.js +1 -1
- package/dist/ui/components/modals/ConfirmModal.js +1 -1
- package/dist/ui/components/modals/EditorModal.js +1 -1
- package/dist/ui/components/modals/InputModal.js +1 -1
- package/dist/ui/components/modals/ModalContainer.js +1 -1
- package/dist/ui/components/modals/SelectModal.js +1 -1
- package/dist/ui/features/composer/Composer.js +1 -1
- package/dist/ui/features/main-view/MainView.js +1 -1
- package/dist/ui/features/message-pane/MessagePane.js +1 -1
- package/package.json +1 -1
package/dist/adapters/tui/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "solid
|
|
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
|
-
|
|
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,
|
|
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,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"}
|
package/dist/runtime/context.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "solid
|
|
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 }));
|
package/dist/session-picker.js
CHANGED
|
@@ -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,CA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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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 }) }));
|