@adhdev/daemon-core 0.7.9 → 0.7.11
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/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/boot/daemon-lifecycle.ts +8 -1
- package/src/cli-adapters/terminal-backends/ghostty-vt-backend.ts +3 -0
- package/src/daemon/dev-cdp-handlers.ts +2 -3
- package/src/daemon/dev-server-types.ts +1 -0
- package/src/daemon/dev-server.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -680,6 +680,9 @@ var init_ghostty_vt_backend = __esm({
|
|
|
680
680
|
terminal;
|
|
681
681
|
constructor(options) {
|
|
682
682
|
const binding = loadGhosttyVtBinding(true);
|
|
683
|
+
if (!binding) {
|
|
684
|
+
throw new Error("ghostty-vt backend requested but no binding is available");
|
|
685
|
+
}
|
|
683
686
|
this.terminal = binding.createTerminal({
|
|
684
687
|
cols: Math.max(1, options.cols | 0),
|
|
685
688
|
rows: Math.max(1, options.rows | 0),
|
|
@@ -11927,7 +11930,7 @@ async function handleScriptsRun(ctx, req, res) {
|
|
|
11927
11930
|
ctx.json(res, 400, { error: "type and script required" });
|
|
11928
11931
|
return;
|
|
11929
11932
|
}
|
|
11930
|
-
await
|
|
11933
|
+
await ctx.handleRunScript(type, req, res, body);
|
|
11931
11934
|
}
|
|
11932
11935
|
async function handleTypeAndSend(ctx, type, req, res) {
|
|
11933
11936
|
const body = await ctx.readBody(req);
|
|
@@ -11968,7 +11971,7 @@ async function handleTypeAndSendAt(ctx, type, req, res) {
|
|
|
11968
11971
|
}
|
|
11969
11972
|
}
|
|
11970
11973
|
async function handleScriptHints(ctx, type, _req, res) {
|
|
11971
|
-
const dir =
|
|
11974
|
+
const dir = ctx.findProviderDir(type);
|
|
11972
11975
|
if (!dir) {
|
|
11973
11976
|
ctx.json(res, 404, { error: `Provider not found: ${type}` });
|
|
11974
11977
|
return;
|