neural-loom 0.2.5 → 0.2.7
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/cache/.previewinfo +1 -1
- package/.next/cache/.rscinfo +1 -1
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/diagnostics/route-bundle-stats.json +1 -1
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.js +3 -0
- package/.next/required-server-files.json +3 -0
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/sessions/inject/route.js +1 -1
- package/.next/server/app/api/sessions/inject/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/input/route.js +1 -1
- package/.next/server/app/api/sessions/input/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/launch/route.js +1 -1
- package/.next/server/app/api/sessions/launch/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/stats/route.js +1 -1
- package/.next/server/app/api/sessions/stats/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/stop/route.js +1 -1
- package/.next/server/app/api/sessions/stop/route.js.nft.json +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0d0pykb._.js +15 -15
- package/.next/server/chunks/[root-of-the-server]__0d0pykb._.js.map +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0c.5qbe._.js → [root-of-the-server]__0ezygp7._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0c.5qbe._.js.map → [root-of-the-server]__0ezygp7._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0m_~dan._.js → [root-of-the-server]__0m7xwu2._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0m_~dan._.js.map → [root-of-the-server]__0m7xwu2._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0l_q72g._.js → [root-of-the-server]__0rd5ojc._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0l_q72g._.js.map → [root-of-the-server]__0rd5ojc._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__04kdofw._.js → [root-of-the-server]__0tl2n51._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__04kdofw._.js.map → [root-of-the-server]__0tl2n51._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0-k9zyi._.js → [root-of-the-server]__0y-63z8._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0-k9zyi._.js.map → [root-of-the-server]__0y-63z8._.js.map} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0m7-xfc._.js → [root-of-the-server]__12-x1lx._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0m7-xfc._.js.map → [root-of-the-server]__12-x1lx._.js.map} +1 -1
- package/.next/server/chunks/ssr/_0t7oqy6._.js +1 -1
- package/.next/server/chunks/ssr/_0t7oqy6._.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/{0di.tbc4b33wc.js → 0~v3l-a32te59.js} +1 -1
- package/.next/trace +1 -1
- package/.next/trace-build +1 -1
- package/next.config.ts +1 -1
- package/package.json +1 -1
- package/src/app/page.tsx +1 -1
- package/src/lib/agents/AiderRunner.ts +6 -6
- package/src/lib/agents/ClaudeRunner.ts +3 -3
- package/src/lib/agents/DockerRunner.ts +5 -5
- package/src/lib/agents/SSHRunner.ts +4 -4
- package/.next/server/chunks/[externals]_node-pty_12c-8pf._.js +0 -3
- package/.next/server/chunks/[externals]_node-pty_12c-8pf._.js.map +0 -1
- /package/.next/static/{IIMVZJfpSSOtNcK7MPA4D → AX92TjDUTzX6JISwse3gN}/_buildManifest.js +0 -0
- /package/.next/static/{IIMVZJfpSSOtNcK7MPA4D → AX92TjDUTzX6JISwse3gN}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{IIMVZJfpSSOtNcK7MPA4D → AX92TjDUTzX6JISwse3gN}/_ssgManifest.js +0 -0
package/.next/trace
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":335,"timestamp":106110684722,"id":4,"parentId":1,"tags":{},"startTime":1781326846456,"traceId":"ba37f844718c1515"},{"name":"load-custom-routes","duration":390,"timestamp":106110685190,"id":5,"parentId":1,"tags":{},"startTime":1781326846457,"traceId":"ba37f844718c1515"},{"name":"create-dist-dir","duration":2533,"timestamp":106110685614,"id":6,"parentId":1,"tags":{},"startTime":1781326846457,"traceId":"ba37f844718c1515"},{"name":"clean","duration":598,"timestamp":106110689094,"id":7,"parentId":1,"tags":{},"startTime":1781326846461,"traceId":"ba37f844718c1515"},{"name":"discover-routes","duration":7920,"timestamp":106110714449,"id":8,"parentId":1,"tags":{},"startTime":1781326846486,"traceId":"ba37f844718c1515"},{"name":"create-root-mapping","duration":66,"timestamp":106110722422,"id":9,"parentId":1,"tags":{},"startTime":1781326846494,"traceId":"ba37f844718c1515"},{"name":"generate-route-types","duration":18854,"timestamp":106110723899,"id":10,"parentId":1,"tags":{},"startTime":1781326846496,"traceId":"ba37f844718c1515"},{"name":"public-dir-conflict-check","duration":113,"timestamp":106110742907,"id":11,"parentId":1,"tags":{},"startTime":1781326846515,"traceId":"ba37f844718c1515"},{"name":"generate-routes-manifest","duration":2455,"timestamp":106110743136,"id":12,"parentId":1,"tags":{},"startTime":1781326846515,"traceId":"ba37f844718c1515"},{"name":"run-turbopack","duration":2602074,"timestamp":106110753848,"id":14,"parentId":1,"tags":{},"startTime":1781326846526,"traceId":"ba37f844718c1515"},{"name":"turbopack-build-events","duration":75,"timestamp":106111080252,"id":15,"parentId":1,"tags":{},"startTime":1781326846852,"traceId":"ba37f844718c1515"},{"name":"run-typescript","duration":3843622,"timestamp":106113367678,"id":16,"parentId":1,"tags":{},"startTime":1781326849139,"traceId":"ba37f844718c1515"},{"name":"generate-required-server-files","duration":2052,"timestamp":106117212281,"id":18,"parentId":1,"tags":{},"startTime":1781326852984,"traceId":"ba37f844718c1515"},{"name":"check-static-error-page","duration":7540,"timestamp":106117334044,"id":20,"parentId":19,"tags":{},"startTime":1781326853106,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":633652,"timestamp":106117347268,"id":38,"parentId":22,"tags":{},"startTime":1781326853119,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":644325,"timestamp":106117336730,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1781326853108,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":805186,"timestamp":106117347732,"id":42,"parentId":26,"tags":{},"startTime":1781326853119,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":815196,"timestamp":106117337812,"id":26,"parentId":19,"tags":{"page":"/api/context/ssh"},"startTime":1781326853109,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":806488,"timestamp":106117347363,"id":39,"parentId":23,"tags":{},"startTime":1781326853119,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":816783,"timestamp":106117337113,"id":23,"parentId":19,"tags":{"page":"/api/context/aider"},"startTime":1781326853109,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":815043,"timestamp":106117346967,"id":37,"parentId":21,"tags":{},"startTime":1781326853119,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":826368,"timestamp":106117335690,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1781326853107,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":824766,"timestamp":106117348149,"id":44,"parentId":28,"tags":{},"startTime":1781326853120,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":834693,"timestamp":106117338277,"id":28,"parentId":19,"tags":{"page":"/api/git"},"startTime":1781326853110,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":833297,"timestamp":106117347988,"id":43,"parentId":27,"tags":{},"startTime":1781326853120,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":843310,"timestamp":106117338029,"id":27,"parentId":19,"tags":{"page":"/api/files"},"startTime":1781326853110,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":834270,"timestamp":106117348920,"id":51,"parentId":35,"tags":{},"startTime":1781326853121,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":842893,"timestamp":106117340352,"id":35,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1781326853112,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":836756,"timestamp":106117347626,"id":41,"parentId":25,"tags":{},"startTime":1781326853119,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":846830,"timestamp":106117337600,"id":25,"parentId":19,"tags":{"page":"/api/context"},"startTime":1781326853109,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":839671,"timestamp":106117347460,"id":40,"parentId":24,"tags":{},"startTime":1781326853119,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":849803,"timestamp":106117337381,"id":24,"parentId":19,"tags":{"page":"/api/context/claude"},"startTime":1781326853109,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":839915,"timestamp":106117348745,"id":48,"parentId":32,"tags":{},"startTime":1781326853120,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":849290,"timestamp":106117339412,"id":32,"parentId":19,"tags":{"page":"/api/sessions"},"startTime":1781326853111,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":844525,"timestamp":106117348526,"id":46,"parentId":30,"tags":{},"startTime":1781326853120,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":854256,"timestamp":106117338834,"id":30,"parentId":19,"tags":{"page":"/api/sessions/input"},"startTime":1781326853111,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":847223,"timestamp":106117348275,"id":45,"parentId":29,"tags":{},"startTime":1781326853120,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":857043,"timestamp":106117338502,"id":29,"parentId":19,"tags":{"page":"/api/sessions/inject"},"startTime":1781326853110,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":850351,"timestamp":106117348805,"id":49,"parentId":33,"tags":{},"startTime":1781326853120,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":859498,"timestamp":106117339693,"id":33,"parentId":19,"tags":{"page":"/api/sessions/stats"},"startTime":1781326853111,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":852857,"timestamp":106117348874,"id":50,"parentId":34,"tags":{},"startTime":1781326853121,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":861820,"timestamp":106117339958,"id":34,"parentId":19,"tags":{"page":"/api/sessions/stop"},"startTime":1781326853112,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":853226,"timestamp":106117348669,"id":47,"parentId":31,"tags":{},"startTime":1781326853120,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":862792,"timestamp":106117339131,"id":31,"parentId":19,"tags":{"page":"/api/sessions/launch"},"startTime":1781326853111,"traceId":"ba37f844718c1515"},{"name":"is-page-static","duration":851181,"timestamp":106117352512,"id":52,"parentId":36,"tags":{},"startTime":1781326853124,"traceId":"ba37f844718c1515"},{"name":"check-page","duration":862571,"timestamp":106117341158,"id":36,"parentId":19,"tags":{"page":"/"},"startTime":1781326853113,"traceId":"ba37f844718c1515"},{"name":"static-check","duration":870331,"timestamp":106117333425,"id":19,"parentId":1,"tags":{},"startTime":1781326853105,"traceId":"ba37f844718c1515"},{"name":"write-routes-manifest","duration":843,"timestamp":106118204883,"id":54,"parentId":1,"tags":{},"startTime":1781326853977,"traceId":"ba37f844718c1515"},{"name":"load-dotenv","duration":40,"timestamp":106118222505,"id":57,"parentId":56,"tags":{},"startTime":1781326853994,"traceId":"ba37f844718c1515"},{"name":"run-export-path-map","duration":444,"timestamp":106118228417,"id":58,"parentId":56,"tags":{},"startTime":1781326854000,"traceId":"ba37f844718c1515"},{"name":"next-export","duration":754579,"timestamp":106118221504,"id":56,"parentId":1,"tags":{},"startTime":1781326853993,"traceId":"ba37f844718c1515"},{"name":"move-exported-app-not-found-","duration":2546,"timestamp":106118978074,"id":59,"parentId":55,"tags":{},"startTime":1781326854750,"traceId":"ba37f844718c1515"},{"name":"move-exported-app-global-error-","duration":2426,"timestamp":106118980750,"id":60,"parentId":55,"tags":{},"startTime":1781326854752,"traceId":"ba37f844718c1515"},{"name":"static-generation","duration":776612,"timestamp":106118210472,"id":55,"parentId":1,"tags":{},"startTime":1781326853982,"traceId":"ba37f844718c1515"},{"name":"write-routes-manifest","duration":876,"timestamp":106118987249,"id":61,"parentId":1,"tags":{},"startTime":1781326854759,"traceId":"ba37f844718c1515"},{"name":"print-tree-view","duration":3668,"timestamp":106119002103,"id":62,"parentId":1,"tags":{},"startTime":1781326854774,"traceId":"ba37f844718c1515"},{"name":"write-route-bundle-stats","duration":12562,"timestamp":106119005807,"id":63,"parentId":1,"tags":{},"startTime":1781326854777,"traceId":"ba37f844718c1515"},{"name":"telemetry-flush","duration":179559,"timestamp":106119018402,"id":64,"parentId":1,"tags":{},"startTime":1781326854790,"traceId":"ba37f844718c1515"},{"name":"next-build","duration":8567043,"timestamp":106110630941,"id":1,"tags":{"buildMode":"default","version":"16.2.6","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1781326846403,"traceId":"ba37f844718c1515"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":2602074,"timestamp":106110753848,"id":14,"parentId":1,"tags":{},"startTime":1781326846526,"traceId":"ba37f844718c1515"},{"name":"turbopack-build-events","duration":75,"timestamp":106111080252,"id":15,"parentId":1,"tags":{},"startTime":1781326846852,"traceId":"ba37f844718c1515"},{"name":"run-typescript","duration":3843622,"timestamp":106113367678,"id":16,"parentId":1,"tags":{},"startTime":1781326849139,"traceId":"ba37f844718c1515"},{"name":"static-check","duration":870331,"timestamp":106117333425,"id":19,"parentId":1,"tags":{},"startTime":1781326853105,"traceId":"ba37f844718c1515"},{"name":"static-generation","duration":776612,"timestamp":106118210472,"id":55,"parentId":1,"tags":{},"startTime":1781326853982,"traceId":"ba37f844718c1515"},{"name":"telemetry-flush","duration":179559,"timestamp":106119018402,"id":64,"parentId":1,"tags":{},"startTime":1781326854790,"traceId":"ba37f844718c1515"},{"name":"next-build","duration":8567043,"timestamp":106110630941,"id":1,"tags":{"buildMode":"default","version":"16.2.6","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1781326846403,"traceId":"ba37f844718c1515"}]
|
package/next.config.ts
CHANGED
package/package.json
CHANGED
package/src/app/page.tsx
CHANGED
|
@@ -541,7 +541,7 @@ export default function Home() {
|
|
|
541
541
|
|
|
542
542
|
{/* Footer */}
|
|
543
543
|
<footer className={styles.footer}>
|
|
544
|
-
<span>NeuralLoom v0.
|
|
544
|
+
<span>NeuralLoom v0.2.7 — Experimental AI Orchestrator Bridge</span>
|
|
545
545
|
<span>Directory: C:\Users\Dave\OneDrive\Projects\JS\neural-loom</span>
|
|
546
546
|
</footer>
|
|
547
547
|
|
|
@@ -7,7 +7,7 @@ import { SessionPersister } from "./SessionPersister";
|
|
|
7
7
|
function isWindows(): boolean {
|
|
8
8
|
if (typeof process === "undefined") return false;
|
|
9
9
|
const key = Object.keys(process).find(k => k.startsWith("plat") && k.endsWith("form"));
|
|
10
|
-
return !!key && (process as
|
|
10
|
+
return !!key && (process as unknown as Record<string, unknown>)[key] === "win32";
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
function findGitBash(): string | null {
|
|
@@ -74,7 +74,7 @@ export class AiderRunner extends AgentRunner {
|
|
|
74
74
|
|
|
75
75
|
try {
|
|
76
76
|
if (!this.ptyModule) {
|
|
77
|
-
this.ptyModule =
|
|
77
|
+
this.ptyModule = eval("require")("node-pty");
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
// Load Aider configuration
|
|
@@ -123,7 +123,7 @@ export class AiderRunner extends AgentRunner {
|
|
|
123
123
|
this.appendLog("[System] Verifying Docker environment accessibility...\r\n");
|
|
124
124
|
|
|
125
125
|
// Check if docker executable exists by spawning `docker -v`
|
|
126
|
-
const testPty = this.ptyModule
|
|
126
|
+
const testPty = this.ptyModule!.spawn(bashPath, ["-c", "docker --version"], {
|
|
127
127
|
name: "xterm-256color",
|
|
128
128
|
cols: 80,
|
|
129
129
|
rows: 10,
|
|
@@ -168,7 +168,7 @@ export class AiderRunner extends AgentRunner {
|
|
|
168
168
|
|
|
169
169
|
const dockerCmd = `docker run -it --name neural-loom-session-${this.id} --rm ${mountsStr} -w /workspace ${envFlagsStr} paulgauthier/aider ${modelFlag} ${extraFlags}`.trim();
|
|
170
170
|
|
|
171
|
-
this.ptyProcess = this.ptyModule
|
|
171
|
+
this.ptyProcess = this.ptyModule!.spawn(bashPath, ["-c", dockerCmd], {
|
|
172
172
|
name: "xterm-256color",
|
|
173
173
|
cols: 120,
|
|
174
174
|
rows: 30,
|
|
@@ -179,7 +179,7 @@ export class AiderRunner extends AgentRunner {
|
|
|
179
179
|
this.appendLog("[System] Verifying 'aider' command availability in local PATH...\r\n");
|
|
180
180
|
|
|
181
181
|
// Check if aider executable exists by running `aider --version`
|
|
182
|
-
const testPty = this.ptyModule
|
|
182
|
+
const testPty = this.ptyModule!.spawn(bashPath, ["-c", "aider --version"], {
|
|
183
183
|
name: "xterm-256color",
|
|
184
184
|
cols: 80,
|
|
185
185
|
rows: 10,
|
|
@@ -206,7 +206,7 @@ export class AiderRunner extends AgentRunner {
|
|
|
206
206
|
this.appendLog("[System] Spawning local Aider CLI...\r\n");
|
|
207
207
|
const localCmd = `aider ${modelFlag} ${extraFlags}`.trim();
|
|
208
208
|
|
|
209
|
-
this.ptyProcess = this.ptyModule
|
|
209
|
+
this.ptyProcess = this.ptyModule!.spawn(bashPath, ["-c", localCmd], {
|
|
210
210
|
name: "xterm-256color",
|
|
211
211
|
cols: 120,
|
|
212
212
|
rows: 30,
|
|
@@ -7,7 +7,7 @@ import { SessionPersister } from "./SessionPersister";
|
|
|
7
7
|
function isWindows(): boolean {
|
|
8
8
|
if (typeof process === "undefined") return false;
|
|
9
9
|
const key = Object.keys(process).find(k => k.startsWith("plat") && k.endsWith("form"));
|
|
10
|
-
return !!key && (process as
|
|
10
|
+
return !!key && (process as unknown as Record<string, unknown>)[key] === "win32";
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
function findGitBash(): string | null {
|
|
@@ -70,7 +70,7 @@ export class ClaudeRunner extends AgentRunner {
|
|
|
70
70
|
try {
|
|
71
71
|
// Dynamic import to prevent bundler SSR/Turbopack errors on server start
|
|
72
72
|
if (!this.ptyModule) {
|
|
73
|
-
this.ptyModule =
|
|
73
|
+
this.ptyModule = eval("require")("node-pty");
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
this.status = 'running';
|
|
@@ -84,7 +84,7 @@ export class ClaudeRunner extends AgentRunner {
|
|
|
84
84
|
: process.cwd();
|
|
85
85
|
|
|
86
86
|
// Spawn bash and run 'claude' command
|
|
87
|
-
this.ptyProcess = this.ptyModule
|
|
87
|
+
this.ptyProcess = this.ptyModule!.spawn(bashPath, ["-c", "claude"], {
|
|
88
88
|
name: "xterm-256color",
|
|
89
89
|
cols: 120,
|
|
90
90
|
rows: 30,
|
|
@@ -7,7 +7,7 @@ import { SessionPersister } from "./SessionPersister";
|
|
|
7
7
|
function isWindows(): boolean {
|
|
8
8
|
if (typeof process === "undefined") return false;
|
|
9
9
|
const key = Object.keys(process).find(k => k.startsWith("plat") && k.endsWith("form"));
|
|
10
|
-
return !!key && (process as
|
|
10
|
+
return !!key && (process as unknown as Record<string, unknown>)[key] === "win32";
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
function findGitBash(): string | null {
|
|
@@ -74,7 +74,7 @@ export class DockerRunner extends AgentRunner {
|
|
|
74
74
|
|
|
75
75
|
try {
|
|
76
76
|
if (!this.ptyModule) {
|
|
77
|
-
this.ptyModule =
|
|
77
|
+
this.ptyModule = eval("require")("node-pty");
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
const targetCwd = (this.workspaceRoot && fs.existsSync(this.workspaceRoot))
|
|
@@ -82,7 +82,7 @@ export class DockerRunner extends AgentRunner {
|
|
|
82
82
|
: process.cwd();
|
|
83
83
|
|
|
84
84
|
// Check if docker executable exists by spawning `docker -v`
|
|
85
|
-
const testPty = this.ptyModule
|
|
85
|
+
const testPty = this.ptyModule!.spawn(bashPath, ["-c", "docker --version"], {
|
|
86
86
|
name: "xterm-256color",
|
|
87
87
|
cols: 80,
|
|
88
88
|
rows: 10,
|
|
@@ -122,9 +122,9 @@ export class DockerRunner extends AgentRunner {
|
|
|
122
122
|
}
|
|
123
123
|
const mountsStr = mounts.join(" ");
|
|
124
124
|
|
|
125
|
-
const dockerCmd = `docker run -it --name neural-loom-session-${this.id} --rm ${mountsStr} -w /workspace node:20-alpine npx -y @anthropic-ai/claude-code
|
|
125
|
+
const dockerCmd = `docker run -it --name neural-loom-session-${this.id} --rm ${mountsStr} -w /workspace node:20-alpine npx -y @anthropic-ai/claude-code`;
|
|
126
126
|
|
|
127
|
-
this.ptyProcess = this.ptyModule
|
|
127
|
+
this.ptyProcess = this.ptyModule!.spawn(bashPath, ["-c", dockerCmd], {
|
|
128
128
|
name: "xterm-256color",
|
|
129
129
|
cols: 120,
|
|
130
130
|
rows: 30,
|
|
@@ -7,7 +7,7 @@ import { SessionPersister } from "./SessionPersister";
|
|
|
7
7
|
function isWindows(): boolean {
|
|
8
8
|
if (typeof process === "undefined") return false;
|
|
9
9
|
const key = Object.keys(process).find(k => k.startsWith("plat") && k.endsWith("form"));
|
|
10
|
-
return !!key && (process as
|
|
10
|
+
return !!key && (process as unknown as Record<string, unknown>)[key] === "win32";
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
function findGitBash(): string | null {
|
|
@@ -112,7 +112,7 @@ export class SSHRunner extends AgentRunner {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
if (!this.ptyModule) {
|
|
115
|
-
this.ptyModule =
|
|
115
|
+
this.ptyModule = eval("require")("node-pty");
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
this.appendLog(`[System] Connecting to ${config.username}@${config.host}...\r\n`);
|
|
@@ -120,9 +120,9 @@ export class SSHRunner extends AgentRunner {
|
|
|
120
120
|
const portOpt = config.port ? `-p ${config.port}` : "";
|
|
121
121
|
const keyOpt = config.privateKeyPath ? `-i "${config.privateKeyPath}"` : "";
|
|
122
122
|
|
|
123
|
-
const sshCmd = `ssh -t ${keyOpt} ${portOpt} ${config.username}@${config.host} "claude
|
|
123
|
+
const sshCmd = `ssh -t ${keyOpt} ${portOpt} ${config.username}@${config.host} "claude"`;
|
|
124
124
|
|
|
125
|
-
this.ptyProcess = this.ptyModule
|
|
125
|
+
this.ptyProcess = this.ptyModule!.spawn(bashPath, ["-c", sshCmd], {
|
|
126
126
|
name: "xterm-256color",
|
|
127
127
|
cols: 120,
|
|
128
128
|
rows: 30,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
File without changes
|
/package/.next/static/{IIMVZJfpSSOtNcK7MPA4D → AX92TjDUTzX6JISwse3gN}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|