@jeffreycao/copilot-api 1.13.5 → 1.13.6

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/main.js CHANGED
@@ -25,7 +25,7 @@ bindElectronFetch();
25
25
  const { auth } = await import("./auth-CtydxYcd.js");
26
26
  const { debug } = await import("./debug-CjJqlHl_.js");
27
27
  const { mcp } = await import("./mcp-BseuqgHR.js");
28
- const { start } = await import("./start-B3gNGDR_.js");
28
+ const { start } = await import("./start-CXcuZf8x.js");
29
29
  await runMain(defineCommand({
30
30
  meta: {
31
31
  name: "copilot-api",
@@ -442,11 +442,18 @@ async function openBunDatabase(dbPath) {
442
442
  async function loadNodeSqliteModule() {
443
443
  const nodeVersion = process.versions.node;
444
444
  if (!isNodeSqliteSupportedVersion(nodeVersion)) throw new UnsupportedNodeSqliteRuntimeError(nodeVersion);
445
+ const emitWarning = process.emitWarning.bind(process);
446
+ process.emitWarning = (warning, ...args) => {
447
+ if (typeof warning === "string" && warning.includes("SQLite is an experimental feature")) return;
448
+ return emitWarning(warning, ...args);
449
+ };
445
450
  const specifier = ["node", "sqlite"].join(":");
446
451
  try {
447
452
  return await import(specifier);
448
453
  } catch (error) {
449
454
  throw new UnsupportedNodeSqliteRuntimeError(nodeVersion, error);
455
+ } finally {
456
+ process.emitWarning = emitWarning;
450
457
  }
451
458
  }
452
459
  async function openNodeDatabase(dbPath) {
@@ -6615,4 +6622,4 @@ server.route("/:provider/v1/models", providerModelRoutes);
6615
6622
  //#endregion
6616
6623
  export { server };
6617
6624
 
6618
- //# sourceMappingURL=server-Bsnz0tyL.js.map
6625
+ //# sourceMappingURL=server-Cuy2sQrU.js.map