@adhdev/daemon-core 0.7.9 → 0.7.10

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.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 this.handleRunScript(type, req, res, body);
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 = this.findProviderDir(type);
11974
+ const dir = ctx.findProviderDir(type);
11972
11975
  if (!dir) {
11973
11976
  ctx.json(res, 404, { error: `Provider not found: ${type}` });
11974
11977
  return;