neural-loom 0.2.0 → 0.2.1

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.
Files changed (54) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/cache/.previewinfo +1 -1
  4. package/.next/cache/.rscinfo +1 -1
  5. package/.next/cache/.tsbuildinfo +1 -1
  6. package/.next/fallback-build-manifest.json +3 -3
  7. package/.next/prerender-manifest.json +3 -3
  8. package/.next/server/app/_global-error.html +1 -1
  9. package/.next/server/app/_global-error.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  15. package/.next/server/app/_not-found.html +1 -1
  16. package/.next/server/app/_not-found.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  21. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  22. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  23. package/.next/server/app/api/files/route.js +1 -1
  24. package/.next/server/app/api/files/route.js.nft.json +1 -1
  25. package/.next/server/app/index.html +1 -1
  26. package/.next/server/app/index.rsc +1 -1
  27. package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  28. package/.next/server/app/index.segments/_full.segment.rsc +1 -1
  29. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  30. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  31. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  32. package/.next/server/chunks/{[externals]__0shxiss._.js → [externals]__1334_78._.js} +2 -2
  33. package/.next/server/chunks/[root-of-the-server]__0d0pykb._.js +1 -1
  34. package/.next/server/chunks/[root-of-the-server]__0d0pykb._.js.map +1 -1
  35. package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0ev3h.z.js +1 -1
  36. package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0ev3h.z.js.map +1 -1
  37. package/.next/server/middleware-build-manifest.js +3 -3
  38. package/.next/server/pages/404.html +1 -1
  39. package/.next/server/pages/500.html +1 -1
  40. package/.next/server/server-reference-manifest.js +1 -1
  41. package/.next/server/server-reference-manifest.json +1 -1
  42. package/.next/trace +1 -1
  43. package/.next/trace-build +1 -1
  44. package/bin/cli.js +4 -1
  45. package/package.json +1 -1
  46. package/src/app/api/files/route.ts +3 -1
  47. package/src/lib/agents/AiderRunner.ts +3 -0
  48. package/src/lib/agents/ClaudeRunner.ts +7 -2
  49. package/src/lib/agents/DockerRunner.ts +3 -0
  50. package/src/lib/agents/SSHRunner.ts +3 -0
  51. /package/.next/server/chunks/{[externals]__0shxiss._.js.map → [externals]__1334_78._.js.map} +0 -0
  52. /package/.next/static/{7dOnbX1c746E1bCz_44Q2 → We0VZrQ-fcR5HwD3AzDWT}/_buildManifest.js +0 -0
  53. /package/.next/static/{7dOnbX1c746E1bCz_44Q2 → We0VZrQ-fcR5HwD3AzDWT}/_clientMiddlewareManifest.js +0 -0
  54. /package/.next/static/{7dOnbX1c746E1bCz_44Q2 → We0VZrQ-fcR5HwD3AzDWT}/_ssgManifest.js +0 -0
@@ -1,6 +1,7 @@
1
1
  import { NextResponse } from "next/server";
2
2
  import fs from "fs";
3
3
  import path from "path";
4
+ import os from "os";
4
5
 
5
6
  // Helper to recursively generate a tree nodes list for UI representation
6
7
  interface TreeNode {
@@ -168,7 +169,8 @@ export async function GET(request: Request) {
168
169
 
169
170
  if (action === "browse_dirs") {
170
171
  const targetPathRaw = searchParams.get("path");
171
- let targetPath = targetPathRaw ? path.resolve(targetPathRaw) : process.cwd();
172
+ const defaultDir = (process.env.ORIGINAL_CWD || process.cwd() || os.homedir()).replace(/\\/g, "/");
173
+ let targetPath = (targetPathRaw && targetPathRaw.trim()) ? path.resolve(targetPathRaw) : defaultDir;
172
174
  targetPath = targetPath.replace(/\\/g, "/");
173
175
 
174
176
  if (!fs.existsSync(targetPath)) {
@@ -5,6 +5,9 @@ import { AgentRunner, RunnerStatus } from "./AgentRunner";
5
5
  import { SessionPersister } from "./SessionPersister";
6
6
 
7
7
  function findGitBash(): string | null {
8
+ if (process.platform !== "win32") {
9
+ return "bash";
10
+ }
8
11
  const pf = process.env.PROGRAMFILES || "C:\\Program Files";
9
12
  const pf86 = process.env["PROGRAMFILES(X86)"] || "C:\\Program Files (x86)";
10
13
  const local = process.env.LOCALAPPDATA || "";
@@ -5,6 +5,9 @@ import { AgentRunner, RunnerStatus } from "./AgentRunner";
5
5
  import { SessionPersister } from "./SessionPersister";
6
6
 
7
7
  function findGitBash(): string | null {
8
+ if (process.platform !== "win32") {
9
+ return "bash";
10
+ }
8
11
  const pf = process.env.PROGRAMFILES || "C:\\Program Files";
9
12
  const pf86 = process.env["PROGRAMFILES(X86)"] || "C:\\Program Files (x86)";
10
13
  const local = process.env.LOCALAPPDATA || "";
@@ -84,8 +87,10 @@ export class ClaudeRunner extends AgentRunner {
84
87
  ...process.env,
85
88
  TERM: "xterm-256color",
86
89
  COLORTERM: "truecolor",
87
- // Inject custom path just in case child processes need Visual Studio Node
88
- PATH: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Microsoft\\VisualStudio\\NodeJs;" + process.env.PATH
90
+ // Inject custom path just in case child processes need Visual Studio Node on Windows
91
+ ...(process.platform === "win32" ? {
92
+ PATH: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Microsoft\\VisualStudio\\NodeJs;" + process.env.PATH
93
+ } : {})
89
94
  },
90
95
  });
91
96
 
@@ -5,6 +5,9 @@ import { AgentRunner, RunnerStatus } from "./AgentRunner";
5
5
  import { SessionPersister } from "./SessionPersister";
6
6
 
7
7
  function findGitBash(): string | null {
8
+ if (process.platform !== "win32") {
9
+ return "bash";
10
+ }
8
11
  const pf = process.env.PROGRAMFILES || "C:\\Program Files";
9
12
  const pf86 = process.env["PROGRAMFILES(X86)"] || "C:\\Program Files (x86)";
10
13
  const local = process.env.LOCALAPPDATA || "";
@@ -5,6 +5,9 @@ import { AgentRunner, RunnerStatus } from "./AgentRunner";
5
5
  import { SessionPersister } from "./SessionPersister";
6
6
 
7
7
  function findGitBash(): string | null {
8
+ if (process.platform !== "win32") {
9
+ return "bash";
10
+ }
8
11
  const pf = process.env.PROGRAMFILES || "C:\\Program Files";
9
12
  const pf86 = process.env["PROGRAMFILES(X86)"] || "C:\\Program Files (x86)";
10
13
  const local = process.env.LOCALAPPDATA || "";