@prismer/runtime 1.9.21 → 1.9.23

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
@@ -441,6 +441,14 @@ var init_ui = __esm({
441
441
  }
442
442
  });
443
443
 
444
+ // package.json
445
+ var version;
446
+ var init_package = __esm({
447
+ "package.json"() {
448
+ version = "1.9.22";
449
+ }
450
+ });
451
+
444
452
  // src/cli/util.ts
445
453
  var util_exports = {};
446
454
  __export(util_exports, {
@@ -530,10 +538,10 @@ function runAction(fn, opts = {}) {
530
538
  function printBanner(opts = {}) {
531
539
  const ui = getUI();
532
540
  if (opts.compact) {
533
- ui.smallHeader("Runtime CLI v1.9.7");
541
+ ui.smallHeader(`Runtime CLI v${version}`);
534
542
  return;
535
543
  }
536
- ui.banner("Runtime CLI v1.9.7", { full: true });
544
+ ui.banner(`Runtime CLI v${version}`, { full: true });
537
545
  }
538
546
  function ok(label, detail) {
539
547
  getUI().ok(label, detail);
@@ -594,6 +602,7 @@ var init_util = __esm({
594
602
  "src/cli/util.ts"() {
595
603
  "use strict";
596
604
  init_ui();
605
+ init_package();
597
606
  DEFAULT_CLOUD_BASE_URL = "https://prismer.cloud";
598
607
  ANSI = {
599
608
  reset: "\x1B[0m",
@@ -2421,8 +2430,8 @@ function buildAdapterCommand() {
2421
2430
  });
2422
2431
  return cmd;
2423
2432
  }
2424
- function runInstall(spec, version, dryRun) {
2425
- const { argv0, args } = installCommand(spec, version);
2433
+ function runInstall(spec, version2, dryRun) {
2434
+ const { argv0, args } = installCommand(spec, version2);
2426
2435
  getUI().line(`> ${argv0} ${args.join(" ")}`);
2427
2436
  if (dryRun) {
2428
2437
  getUI().line("(dry-run \u2014 not executing)");
@@ -2566,16 +2575,16 @@ function runHooks(spec, opts) {
2566
2575
  hook: inspectHook(spec)
2567
2576
  };
2568
2577
  }
2569
- function installCommand(spec, version) {
2570
- const ref = version === "latest" ? spec.package : `${spec.package}@${version}`;
2578
+ function installCommand(spec, version2) {
2579
+ const ref = version2 === "latest" ? spec.package : `${spec.package}@${version2}`;
2571
2580
  switch (spec.manager) {
2572
2581
  case "npm":
2573
2582
  return { argv0: "npm", args: ["install", "-g", ref] };
2574
2583
  case "pipx":
2575
- const pyRef = version === "latest" ? spec.package : `${spec.package}==${version}`;
2584
+ const pyRef = version2 === "latest" ? spec.package : `${spec.package}==${version2}`;
2576
2585
  return { argv0: "pipx", args: ["install", pyRef] };
2577
2586
  case "pip":
2578
- const pipRef = version === "latest" ? spec.package : `${spec.package}==${version}`;
2587
+ const pipRef = version2 === "latest" ? spec.package : `${spec.package}==${version2}`;
2579
2588
  return { argv0: "pip", args: ["install", "--user", pipRef] };
2580
2589
  }
2581
2590
  }
@@ -2774,7 +2783,7 @@ function readAdapterConfig() {
2774
2783
  return {};
2775
2784
  }
2776
2785
  }
2777
- function recordInstallInConfig(spec, binPath, version) {
2786
+ function recordInstallInConfig(spec, binPath, version2) {
2778
2787
  const paths = resolvePaths();
2779
2788
  if (!configExists(paths)) {
2780
2789
  process.stderr.write(
@@ -2796,7 +2805,7 @@ function recordInstallInConfig(spec, binPath, version) {
2796
2805
  package_manager: spec.manager,
2797
2806
  package_name: spec.package,
2798
2807
  binary: binPath,
2799
- version,
2808
+ version: version2,
2800
2809
  installed_at: (/* @__PURE__ */ new Date()).toISOString()
2801
2810
  };
2802
2811
  saveConfig({ ...cfg, adapters }, paths);
@@ -5888,9 +5897,9 @@ var MemoryStore = class {
5888
5897
  const row = db.prepare("SELECT * FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId);
5889
5898
  return row ? this.rowToPage(row) : null;
5890
5899
  }
5891
- loadContent(pageId, version) {
5900
+ loadContent(pageId, version2) {
5892
5901
  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;
5902
+ const targetVersion = version2 ?? db.prepare("SELECT version FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId)?.version;
5894
5903
  if (targetVersion === void 0) return null;
5895
5904
  const row = db.prepare(
5896
5905
  `SELECT c.pageId, c.version, c.payloadKind, c.payloadValue
@@ -8502,7 +8511,7 @@ var Runner = class extends EventEmitter3 {
8502
8511
  name: a.name,
8503
8512
  adapterName: a.adapterName,
8504
8513
  capabilities: a.capabilities,
8505
- profiles: Array.from(a.profiles.entries()).map(([id, version]) => ({ id, version }))
8514
+ profiles: Array.from(a.profiles.entries()).map(([id, version2]) => ({ id, version: version2 }))
8506
8515
  }))
8507
8516
  };
8508
8517
  this.ws.send(envelope("agent.host.declare", payload, this.config.daemon_id));
@@ -10935,9 +10944,9 @@ async function readResponseError(res) {
10935
10944
 
10936
10945
  // src/cli/index.ts
10937
10946
  init_ui();
10938
- var VERSION = "1.9.7";
10947
+ init_package();
10939
10948
  function buildProgram() {
10940
- const program = new Command18("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(VERSION);
10949
+ const program = new Command18("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(version);
10941
10950
  program.addCommand(buildBannerCommand());
10942
10951
  program.addCommand(buildSetupCommand());
10943
10952
  program.addCommand(buildConfigCommand());