@treeport/treeport 0.4.0 → 0.5.0
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/README.md +1 -1
- package/dist/node/cli/index.js +47 -1589
- package/dist/node/server/core/launcher.js +16 -0
- package/dist/node/server/index.js +740 -210
- package/dist/update-BW-a6Bd-.js +3107 -0
- package/dist/web/assets/index-Cr4UkmRD.js +146 -0
- package/dist/web/assets/index-he-SubzL.css +2 -0
- package/dist/web/index.html +2 -2
- package/drizzle/0008_recent_project_visibility.sql +4 -0
- package/drizzle/0009_open_folders.sql +148 -0
- package/drizzle/meta/0008_snapshot.json +792 -0
- package/drizzle/meta/0009_snapshot.json +804 -0
- package/drizzle/meta/_journal.json +14 -0
- package/package.json +3 -3
- package/skills/treeport/SKILL.md +13 -4
- package/dist/loopback-D7k_J_Wl.js +0 -412
- package/dist/web/assets/index-DCtptjcH.js +0 -146
- package/dist/web/assets/index-Wj0w0nWP.css +0 -2
|
@@ -112,6 +112,7 @@ async function runLaunchSpec(spec, dependencies = {}) {
|
|
|
112
112
|
const stdout = dependencies.stdout ?? process.stdout;
|
|
113
113
|
const stderr = dependencies.stderr ?? process.stderr;
|
|
114
114
|
const signalSource = dependencies.signalSource ?? process;
|
|
115
|
+
const tmuxPane = dependencies.tmuxPane === void 0 ? process.env.TMUX_PANE : dependencies.tmuxPane ?? void 0;
|
|
115
116
|
if (spec.setupError) {
|
|
116
117
|
stderr.write(`[Treeport setup] ${safeDiagnostic(spec.setupError) || "setup preparation failed"}\n`);
|
|
117
118
|
return 1;
|
|
@@ -167,6 +168,21 @@ async function runLaunchSpec(spec, dependencies = {}) {
|
|
|
167
168
|
if (result.spawnError) stderr.write(`Treeport launcher: ${safeDiagnostic(result.spawnError.message) || "spawn error"}\n`);
|
|
168
169
|
if (result.forwardedSignal && (!spec.fallbackArgv || result.forwardedSignal !== "SIGINT")) return 1;
|
|
169
170
|
if (spec.fallbackArgv) {
|
|
171
|
+
if (spec.tmuxExecutable && tmuxPane && spec.fallbackArgv[0]) await runChild([
|
|
172
|
+
spec.tmuxExecutable,
|
|
173
|
+
"set-option",
|
|
174
|
+
"-p",
|
|
175
|
+
"-t",
|
|
176
|
+
tmuxPane,
|
|
177
|
+
"--",
|
|
178
|
+
"@treeport-fallback-shell",
|
|
179
|
+
Buffer.from(JSON.stringify(spec.fallbackArgv[0]), "utf8").toString("base64url")
|
|
180
|
+
], {
|
|
181
|
+
cwd: spec.cwd,
|
|
182
|
+
env: process.env,
|
|
183
|
+
spawnProcess,
|
|
184
|
+
signalSource
|
|
185
|
+
});
|
|
170
186
|
const fallback = integrateShellLaunch(spec.fallbackArgv, commandEnvironment, spec.shellIntegrationDir, spec.tmuxExecutable);
|
|
171
187
|
const fallbackResult = await runChild(fallback.argv, {
|
|
172
188
|
cwd: spec.cwd,
|