import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
import {
  createAskUserCapability
} from "../../../chunks/chunk-SW6G4XW2.js";
import "../../../chunks/chunk-D7NAXU7F.js";
import "../../../chunks/chunk-TG2EQLX2.js";

// builtin/extensions/ask-user/index.ts
function askUserExtension(ctx) {
  ctx.log("Ask user extension loaded");
  const capability = createAskUserCapability();
  const tool = capability.tools[0];
  ctx.registerTool({
    ...tool,
    async execute(args) {
      ctx.log(`[${tool.name}] Called: ${JSON.stringify(args)}`);
      return tool.execute(args);
    }
  });
}
export {
  askUserExtension as default
};
