@adhdev/daemon-core 0.6.8 → 0.6.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.js CHANGED
@@ -9824,6 +9824,7 @@ function generateFiles(type, name, category, opts = {}) {
9824
9824
  } else {
9825
9825
  meta.inputMethod = "cdp-type-and-send";
9826
9826
  meta.inputSelector = '[contenteditable="true"][role="textbox"]';
9827
+ if (cli) meta.versionCommand = `${cli} --version`;
9827
9828
  meta.providerVersion = "1.0.0";
9828
9829
  meta.compatibility = [
9829
9830
  { ideVersion: `>=${version}.0`, scriptDir }
@@ -12899,6 +12900,20 @@ async function initDaemonComponents(config) {
12899
12900
  }
12900
12901
  providerLoader.loadAll();
12901
12902
  providerLoader.registerToDetector();
12903
+ LOG.info("Init", "Detecting provider versions...");
12904
+ const versionArchive = new VersionArchive();
12905
+ providerLoader.setVersionArchive(versionArchive);
12906
+ const versionResults = await detectAllVersions(providerLoader, versionArchive);
12907
+ const installedProviders = versionResults.filter((v) => v.installed);
12908
+ const withVersion = installedProviders.filter((v) => v.version);
12909
+ LOG.info("Init", `Provider versions: ${installedProviders.length} installed, ${withVersion.length} versioned`);
12910
+ for (const v of withVersion) {
12911
+ LOG.info("Init", ` ${v.type} (${v.category}): v${v.version}${v.warning ? " \u26A0 " + v.warning : ""}`);
12912
+ }
12913
+ const noVersion = installedProviders.filter((v) => !v.version);
12914
+ if (noVersion.length > 0) {
12915
+ LOG.warn("Init", ` ${noVersion.length} installed but version unknown: ${noVersion.map((v) => v.type).join(", ")}`);
12916
+ }
12902
12917
  const instanceManager = new ProviderInstanceManager();
12903
12918
  const cdpManagers = /* @__PURE__ */ new Map();
12904
12919
  const instanceIdMap = /* @__PURE__ */ new Map();