@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/index.cjs CHANGED
@@ -457,6 +457,14 @@ var init_ui = __esm({
457
457
  }
458
458
  });
459
459
 
460
+ // package.json
461
+ var version;
462
+ var init_package = __esm({
463
+ "package.json"() {
464
+ version = "1.9.22";
465
+ }
466
+ });
467
+
460
468
  // src/cli/util.ts
461
469
  var util_exports = {};
462
470
  __export(util_exports, {
@@ -544,10 +552,10 @@ function runAction(fn, opts = {}) {
544
552
  function printBanner(opts = {}) {
545
553
  const ui = getUI();
546
554
  if (opts.compact) {
547
- ui.smallHeader("Runtime CLI v1.9.7");
555
+ ui.smallHeader(`Runtime CLI v${version}`);
548
556
  return;
549
557
  }
550
- ui.banner("Runtime CLI v1.9.7", { full: true });
558
+ ui.banner(`Runtime CLI v${version}`, { full: true });
551
559
  }
552
560
  function ok(label, detail) {
553
561
  getUI().ok(label, detail);
@@ -610,6 +618,7 @@ var init_util = __esm({
610
618
  import_node_fs12 = require("fs");
611
619
  import_node_path8 = require("path");
612
620
  init_ui();
621
+ init_package();
613
622
  DEFAULT_CLOUD_BASE_URL = "https://prismer.cloud";
614
623
  ANSI = {
615
624
  reset: "\x1B[0m",
@@ -4769,9 +4778,9 @@ var MemoryStore = class {
4769
4778
  const row = db.prepare("SELECT * FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId);
4770
4779
  return row ? this.rowToPage(row) : null;
4771
4780
  }
4772
- loadContent(pageId, version) {
4781
+ loadContent(pageId, version2) {
4773
4782
  const db = this.requireDb();
4774
- const targetVersion = version ?? db.prepare("SELECT version FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId)?.version;
4783
+ const targetVersion = version2 ?? db.prepare("SELECT version FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId)?.version;
4775
4784
  if (targetVersion === void 0) return null;
4776
4785
  const row = db.prepare(
4777
4786
  `SELECT c.pageId, c.version, c.payloadKind, c.payloadValue
@@ -7234,7 +7243,7 @@ var Runner = class extends import_node_events3.EventEmitter {
7234
7243
  name: a.name,
7235
7244
  adapterName: a.adapterName,
7236
7245
  capabilities: a.capabilities,
7237
- profiles: Array.from(a.profiles.entries()).map(([id, version]) => ({ id, version }))
7246
+ profiles: Array.from(a.profiles.entries()).map(([id, version2]) => ({ id, version: version2 }))
7238
7247
  }))
7239
7248
  };
7240
7249
  this.ws.send(envelope("agent.host.declare", payload, this.config.daemon_id));
@@ -7915,8 +7924,8 @@ function buildAdapterCommand() {
7915
7924
  });
7916
7925
  return cmd;
7917
7926
  }
7918
- function runInstall(spec, version, dryRun) {
7919
- const { argv0, args } = installCommand(spec, version);
7927
+ function runInstall(spec, version2, dryRun) {
7928
+ const { argv0, args } = installCommand(spec, version2);
7920
7929
  getUI().line(`> ${argv0} ${args.join(" ")}`);
7921
7930
  if (dryRun) {
7922
7931
  getUI().line("(dry-run \u2014 not executing)");
@@ -8060,16 +8069,16 @@ function runHooks(spec, opts) {
8060
8069
  hook: inspectHook(spec)
8061
8070
  };
8062
8071
  }
8063
- function installCommand(spec, version) {
8064
- const ref = version === "latest" ? spec.package : `${spec.package}@${version}`;
8072
+ function installCommand(spec, version2) {
8073
+ const ref = version2 === "latest" ? spec.package : `${spec.package}@${version2}`;
8065
8074
  switch (spec.manager) {
8066
8075
  case "npm":
8067
8076
  return { argv0: "npm", args: ["install", "-g", ref] };
8068
8077
  case "pipx":
8069
- const pyRef = version === "latest" ? spec.package : `${spec.package}==${version}`;
8078
+ const pyRef = version2 === "latest" ? spec.package : `${spec.package}==${version2}`;
8070
8079
  return { argv0: "pipx", args: ["install", pyRef] };
8071
8080
  case "pip":
8072
- const pipRef = version === "latest" ? spec.package : `${spec.package}==${version}`;
8081
+ const pipRef = version2 === "latest" ? spec.package : `${spec.package}==${version2}`;
8073
8082
  return { argv0: "pip", args: ["install", "--user", pipRef] };
8074
8083
  }
8075
8084
  }
@@ -8268,7 +8277,7 @@ function readAdapterConfig() {
8268
8277
  return {};
8269
8278
  }
8270
8279
  }
8271
- function recordInstallInConfig(spec, binPath, version) {
8280
+ function recordInstallInConfig(spec, binPath, version2) {
8272
8281
  const paths = resolvePaths();
8273
8282
  if (!configExists(paths)) {
8274
8283
  process.stderr.write(
@@ -8290,7 +8299,7 @@ function recordInstallInConfig(spec, binPath, version) {
8290
8299
  package_manager: spec.manager,
8291
8300
  package_name: spec.package,
8292
8301
  binary: binPath,
8293
- version,
8302
+ version: version2,
8294
8303
  installed_at: (/* @__PURE__ */ new Date()).toISOString()
8295
8304
  };
8296
8305
  saveConfig({ ...cfg, adapters }, paths);
@@ -11236,9 +11245,9 @@ async function readResponseError(res) {
11236
11245
 
11237
11246
  // src/cli/index.ts
11238
11247
  init_ui();
11239
- var VERSION = "1.9.7";
11248
+ init_package();
11240
11249
  function buildProgram() {
11241
- const program = new import_commander18.Command("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(VERSION);
11250
+ const program = new import_commander18.Command("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(version);
11242
11251
  program.addCommand(buildBannerCommand());
11243
11252
  program.addCommand(buildSetupCommand());
11244
11253
  program.addCommand(buildConfigCommand());