@prismer/runtime 1.9.21 → 1.9.22

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/cli.js CHANGED
@@ -530,10 +530,10 @@ function runAction(fn, opts = {}) {
530
530
  function printBanner(opts = {}) {
531
531
  const ui = getUI();
532
532
  if (opts.compact) {
533
- ui.smallHeader("Runtime CLI v1.9.7");
533
+ ui.smallHeader("Runtime CLI v${VERSION}");
534
534
  return;
535
535
  }
536
- ui.banner("Runtime CLI v1.9.7", { full: true });
536
+ ui.banner("Runtime CLI v${VERSION}", { full: true });
537
537
  }
538
538
  function ok(label, detail) {
539
539
  getUI().ok(label, detail);
@@ -2421,8 +2421,8 @@ function buildAdapterCommand() {
2421
2421
  });
2422
2422
  return cmd;
2423
2423
  }
2424
- function runInstall(spec, version, dryRun) {
2425
- const { argv0, args } = installCommand(spec, version);
2424
+ function runInstall(spec, version2, dryRun) {
2425
+ const { argv0, args } = installCommand(spec, version2);
2426
2426
  getUI().line(`> ${argv0} ${args.join(" ")}`);
2427
2427
  if (dryRun) {
2428
2428
  getUI().line("(dry-run \u2014 not executing)");
@@ -2566,16 +2566,16 @@ function runHooks(spec, opts) {
2566
2566
  hook: inspectHook(spec)
2567
2567
  };
2568
2568
  }
2569
- function installCommand(spec, version) {
2570
- const ref = version === "latest" ? spec.package : `${spec.package}@${version}`;
2569
+ function installCommand(spec, version2) {
2570
+ const ref = version2 === "latest" ? spec.package : `${spec.package}@${version2}`;
2571
2571
  switch (spec.manager) {
2572
2572
  case "npm":
2573
2573
  return { argv0: "npm", args: ["install", "-g", ref] };
2574
2574
  case "pipx":
2575
- const pyRef = version === "latest" ? spec.package : `${spec.package}==${version}`;
2575
+ const pyRef = version2 === "latest" ? spec.package : `${spec.package}==${version2}`;
2576
2576
  return { argv0: "pipx", args: ["install", pyRef] };
2577
2577
  case "pip":
2578
- const pipRef = version === "latest" ? spec.package : `${spec.package}==${version}`;
2578
+ const pipRef = version2 === "latest" ? spec.package : `${spec.package}==${version2}`;
2579
2579
  return { argv0: "pip", args: ["install", "--user", pipRef] };
2580
2580
  }
2581
2581
  }
@@ -2774,7 +2774,7 @@ function readAdapterConfig() {
2774
2774
  return {};
2775
2775
  }
2776
2776
  }
2777
- function recordInstallInConfig(spec, binPath, version) {
2777
+ function recordInstallInConfig(spec, binPath, version2) {
2778
2778
  const paths = resolvePaths();
2779
2779
  if (!configExists(paths)) {
2780
2780
  process.stderr.write(
@@ -2796,7 +2796,7 @@ function recordInstallInConfig(spec, binPath, version) {
2796
2796
  package_manager: spec.manager,
2797
2797
  package_name: spec.package,
2798
2798
  binary: binPath,
2799
- version,
2799
+ version: version2,
2800
2800
  installed_at: (/* @__PURE__ */ new Date()).toISOString()
2801
2801
  };
2802
2802
  saveConfig({ ...cfg, adapters }, paths);
@@ -5888,9 +5888,9 @@ var MemoryStore = class {
5888
5888
  const row = db.prepare("SELECT * FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId);
5889
5889
  return row ? this.rowToPage(row) : null;
5890
5890
  }
5891
- loadContent(pageId, version) {
5891
+ loadContent(pageId, version2) {
5892
5892
  const db = this.requireDb();
5893
- const targetVersion = version ?? db.prepare("SELECT version FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId)?.version;
5893
+ const targetVersion = version2 ?? db.prepare("SELECT version FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId)?.version;
5894
5894
  if (targetVersion === void 0) return null;
5895
5895
  const row = db.prepare(
5896
5896
  `SELECT c.pageId, c.version, c.payloadKind, c.payloadValue
@@ -8502,7 +8502,7 @@ var Runner = class extends EventEmitter3 {
8502
8502
  name: a.name,
8503
8503
  adapterName: a.adapterName,
8504
8504
  capabilities: a.capabilities,
8505
- profiles: Array.from(a.profiles.entries()).map(([id, version]) => ({ id, version }))
8505
+ profiles: Array.from(a.profiles.entries()).map(([id, version2]) => ({ id, version: version2 }))
8506
8506
  }))
8507
8507
  };
8508
8508
  this.ws.send(envelope("agent.host.declare", payload, this.config.daemon_id));
@@ -10935,9 +10935,13 @@ async function readResponseError(res) {
10935
10935
 
10936
10936
  // src/cli/index.ts
10937
10937
  init_ui();
10938
- var VERSION = "1.9.7";
10938
+
10939
+ // package.json
10940
+ var version = "1.9.22";
10941
+
10942
+ // src/cli/index.ts
10939
10943
  function buildProgram() {
10940
- const program = new Command18("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(VERSION);
10944
+ const program = new Command18("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(version);
10941
10945
  program.addCommand(buildBannerCommand());
10942
10946
  program.addCommand(buildSetupCommand());
10943
10947
  program.addCommand(buildConfigCommand());