@treeport/treeport 0.5.0 → 0.6.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.
- package/bin/treeport.mjs +26 -1
- package/dist/dist-Crk_Xr82.js +735 -0
- package/dist/node/cli/index.js +139 -9
- package/dist/node/server/core/launcher.js +42 -13
- package/dist/node/server/index.js +2823 -269
- package/dist/{update-BW-a6Bd-.js → update-qVp7yL5D.js} +1 -392
- package/dist/web/assets/index-2LLiNn3-.js +146 -0
- package/dist/web/assets/index-DmDs47YU.css +2 -0
- package/dist/web/index.html +2 -2
- package/drizzle/0010_browser_panels_and_permissions.sql +21 -0
- package/drizzle/0011_free_magdalene.sql +1 -0
- package/drizzle/meta/0010_snapshot.json +923 -0
- package/drizzle/meta/0011_snapshot.json +931 -0
- package/drizzle/meta/_journal.json +14 -0
- package/package.json +5 -2
- package/skills/treeport/SKILL.md +58 -2
- package/dist/web/assets/index-Cr4UkmRD.js +0 -146
- package/dist/web/assets/index-he-SubzL.css +0 -2
package/bin/treeport.mjs
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
import { constants as fsConstants } from 'node:fs'
|
|
4
|
+
import { access } from 'node:fs/promises'
|
|
5
|
+
import path from 'node:path'
|
|
6
|
+
import { pathToFileURL } from 'node:url'
|
|
7
|
+
|
|
8
|
+
let cliEntrypoint = new URL('../dist/node/cli/index.js', import.meta.url)
|
|
9
|
+
const daemonRecord = process.env.TREEPORT_DAEMON_RECORD?.trim()
|
|
10
|
+
if (daemonRecord) {
|
|
11
|
+
const developmentRuntime = path.dirname(path.dirname(daemonRecord))
|
|
12
|
+
if (path.basename(developmentRuntime) === '.treeport-dev') {
|
|
13
|
+
const developmentCli = path.join(
|
|
14
|
+
path.dirname(developmentRuntime),
|
|
15
|
+
'.treeport-dev-dist/node/cli/index.js'
|
|
16
|
+
)
|
|
17
|
+
if (
|
|
18
|
+
await access(developmentCli, fsConstants.X_OK).then(
|
|
19
|
+
() => true,
|
|
20
|
+
() => false
|
|
21
|
+
)
|
|
22
|
+
) {
|
|
23
|
+
cliEntrypoint = pathToFileURL(developmentCli)
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
3
28
|
process.env.TREEPORT_CLI_ENTRYPOINT ??= process.argv[1]
|
|
4
|
-
await import(
|
|
29
|
+
await import(cliEntrypoint.href)
|