@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/index.cjs CHANGED
@@ -544,10 +544,10 @@ function runAction(fn, opts = {}) {
544
544
  function printBanner(opts = {}) {
545
545
  const ui = getUI();
546
546
  if (opts.compact) {
547
- ui.smallHeader("Runtime CLI v1.9.7");
547
+ ui.smallHeader("Runtime CLI v${VERSION}");
548
548
  return;
549
549
  }
550
- ui.banner("Runtime CLI v1.9.7", { full: true });
550
+ ui.banner("Runtime CLI v${VERSION}", { full: true });
551
551
  }
552
552
  function ok(label, detail) {
553
553
  getUI().ok(label, detail);
@@ -4769,9 +4769,9 @@ var MemoryStore = class {
4769
4769
  const row = db.prepare("SELECT * FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId);
4770
4770
  return row ? this.rowToPage(row) : null;
4771
4771
  }
4772
- loadContent(pageId, version) {
4772
+ loadContent(pageId, version2) {
4773
4773
  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;
4774
+ const targetVersion = version2 ?? db.prepare("SELECT version FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId)?.version;
4775
4775
  if (targetVersion === void 0) return null;
4776
4776
  const row = db.prepare(
4777
4777
  `SELECT c.pageId, c.version, c.payloadKind, c.payloadValue
@@ -7234,7 +7234,7 @@ var Runner = class extends import_node_events3.EventEmitter {
7234
7234
  name: a.name,
7235
7235
  adapterName: a.adapterName,
7236
7236
  capabilities: a.capabilities,
7237
- profiles: Array.from(a.profiles.entries()).map(([id, version]) => ({ id, version }))
7237
+ profiles: Array.from(a.profiles.entries()).map(([id, version2]) => ({ id, version: version2 }))
7238
7238
  }))
7239
7239
  };
7240
7240
  this.ws.send(envelope("agent.host.declare", payload, this.config.daemon_id));
@@ -7915,8 +7915,8 @@ function buildAdapterCommand() {
7915
7915
  });
7916
7916
  return cmd;
7917
7917
  }
7918
- function runInstall(spec, version, dryRun) {
7919
- const { argv0, args } = installCommand(spec, version);
7918
+ function runInstall(spec, version2, dryRun) {
7919
+ const { argv0, args } = installCommand(spec, version2);
7920
7920
  getUI().line(`> ${argv0} ${args.join(" ")}`);
7921
7921
  if (dryRun) {
7922
7922
  getUI().line("(dry-run \u2014 not executing)");
@@ -8060,16 +8060,16 @@ function runHooks(spec, opts) {
8060
8060
  hook: inspectHook(spec)
8061
8061
  };
8062
8062
  }
8063
- function installCommand(spec, version) {
8064
- const ref = version === "latest" ? spec.package : `${spec.package}@${version}`;
8063
+ function installCommand(spec, version2) {
8064
+ const ref = version2 === "latest" ? spec.package : `${spec.package}@${version2}`;
8065
8065
  switch (spec.manager) {
8066
8066
  case "npm":
8067
8067
  return { argv0: "npm", args: ["install", "-g", ref] };
8068
8068
  case "pipx":
8069
- const pyRef = version === "latest" ? spec.package : `${spec.package}==${version}`;
8069
+ const pyRef = version2 === "latest" ? spec.package : `${spec.package}==${version2}`;
8070
8070
  return { argv0: "pipx", args: ["install", pyRef] };
8071
8071
  case "pip":
8072
- const pipRef = version === "latest" ? spec.package : `${spec.package}==${version}`;
8072
+ const pipRef = version2 === "latest" ? spec.package : `${spec.package}==${version2}`;
8073
8073
  return { argv0: "pip", args: ["install", "--user", pipRef] };
8074
8074
  }
8075
8075
  }
@@ -8268,7 +8268,7 @@ function readAdapterConfig() {
8268
8268
  return {};
8269
8269
  }
8270
8270
  }
8271
- function recordInstallInConfig(spec, binPath, version) {
8271
+ function recordInstallInConfig(spec, binPath, version2) {
8272
8272
  const paths = resolvePaths();
8273
8273
  if (!configExists(paths)) {
8274
8274
  process.stderr.write(
@@ -8290,7 +8290,7 @@ function recordInstallInConfig(spec, binPath, version) {
8290
8290
  package_manager: spec.manager,
8291
8291
  package_name: spec.package,
8292
8292
  binary: binPath,
8293
- version,
8293
+ version: version2,
8294
8294
  installed_at: (/* @__PURE__ */ new Date()).toISOString()
8295
8295
  };
8296
8296
  saveConfig({ ...cfg, adapters }, paths);
@@ -11236,9 +11236,13 @@ async function readResponseError(res) {
11236
11236
 
11237
11237
  // src/cli/index.ts
11238
11238
  init_ui();
11239
- var VERSION = "1.9.7";
11239
+
11240
+ // package.json
11241
+ var version = "1.9.22";
11242
+
11243
+ // src/cli/index.ts
11240
11244
  function buildProgram() {
11241
- const program = new import_commander18.Command("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(VERSION);
11245
+ const program = new import_commander18.Command("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(version);
11242
11246
  program.addCommand(buildBannerCommand());
11243
11247
  program.addCommand(buildSetupCommand());
11244
11248
  program.addCommand(buildConfigCommand());