@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.js CHANGED
@@ -529,10 +529,10 @@ function runAction(fn, opts = {}) {
529
529
  function printBanner(opts = {}) {
530
530
  const ui = getUI();
531
531
  if (opts.compact) {
532
- ui.smallHeader("Runtime CLI v1.9.7");
532
+ ui.smallHeader("Runtime CLI v${VERSION}");
533
533
  return;
534
534
  }
535
- ui.banner("Runtime CLI v1.9.7", { full: true });
535
+ ui.banner("Runtime CLI v${VERSION}", { full: true });
536
536
  }
537
537
  function ok(label, detail) {
538
538
  getUI().ok(label, detail);
@@ -4704,9 +4704,9 @@ var MemoryStore = class {
4704
4704
  const row = db.prepare("SELECT * FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId);
4705
4705
  return row ? this.rowToPage(row) : null;
4706
4706
  }
4707
- loadContent(pageId, version) {
4707
+ loadContent(pageId, version2) {
4708
4708
  const db = this.requireDb();
4709
- const targetVersion = version ?? db.prepare("SELECT version FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId)?.version;
4709
+ const targetVersion = version2 ?? db.prepare("SELECT version FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId)?.version;
4710
4710
  if (targetVersion === void 0) return null;
4711
4711
  const row = db.prepare(
4712
4712
  `SELECT c.pageId, c.version, c.payloadKind, c.payloadValue
@@ -7169,7 +7169,7 @@ var Runner = class extends EventEmitter3 {
7169
7169
  name: a.name,
7170
7170
  adapterName: a.adapterName,
7171
7171
  capabilities: a.capabilities,
7172
- profiles: Array.from(a.profiles.entries()).map(([id, version]) => ({ id, version }))
7172
+ profiles: Array.from(a.profiles.entries()).map(([id, version2]) => ({ id, version: version2 }))
7173
7173
  }))
7174
7174
  };
7175
7175
  this.ws.send(envelope("agent.host.declare", payload, this.config.daemon_id));
@@ -7857,8 +7857,8 @@ function buildAdapterCommand() {
7857
7857
  });
7858
7858
  return cmd;
7859
7859
  }
7860
- function runInstall(spec, version, dryRun) {
7861
- const { argv0, args } = installCommand(spec, version);
7860
+ function runInstall(spec, version2, dryRun) {
7861
+ const { argv0, args } = installCommand(spec, version2);
7862
7862
  getUI().line(`> ${argv0} ${args.join(" ")}`);
7863
7863
  if (dryRun) {
7864
7864
  getUI().line("(dry-run \u2014 not executing)");
@@ -8002,16 +8002,16 @@ function runHooks(spec, opts) {
8002
8002
  hook: inspectHook(spec)
8003
8003
  };
8004
8004
  }
8005
- function installCommand(spec, version) {
8006
- const ref = version === "latest" ? spec.package : `${spec.package}@${version}`;
8005
+ function installCommand(spec, version2) {
8006
+ const ref = version2 === "latest" ? spec.package : `${spec.package}@${version2}`;
8007
8007
  switch (spec.manager) {
8008
8008
  case "npm":
8009
8009
  return { argv0: "npm", args: ["install", "-g", ref] };
8010
8010
  case "pipx":
8011
- const pyRef = version === "latest" ? spec.package : `${spec.package}==${version}`;
8011
+ const pyRef = version2 === "latest" ? spec.package : `${spec.package}==${version2}`;
8012
8012
  return { argv0: "pipx", args: ["install", pyRef] };
8013
8013
  case "pip":
8014
- const pipRef = version === "latest" ? spec.package : `${spec.package}==${version}`;
8014
+ const pipRef = version2 === "latest" ? spec.package : `${spec.package}==${version2}`;
8015
8015
  return { argv0: "pip", args: ["install", "--user", pipRef] };
8016
8016
  }
8017
8017
  }
@@ -8210,7 +8210,7 @@ function readAdapterConfig() {
8210
8210
  return {};
8211
8211
  }
8212
8212
  }
8213
- function recordInstallInConfig(spec, binPath, version) {
8213
+ function recordInstallInConfig(spec, binPath, version2) {
8214
8214
  const paths = resolvePaths();
8215
8215
  if (!configExists(paths)) {
8216
8216
  process.stderr.write(
@@ -8232,7 +8232,7 @@ function recordInstallInConfig(spec, binPath, version) {
8232
8232
  package_manager: spec.manager,
8233
8233
  package_name: spec.package,
8234
8234
  binary: binPath,
8235
- version,
8235
+ version: version2,
8236
8236
  installed_at: (/* @__PURE__ */ new Date()).toISOString()
8237
8237
  };
8238
8238
  saveConfig({ ...cfg, adapters }, paths);
@@ -11178,9 +11178,13 @@ async function readResponseError(res) {
11178
11178
 
11179
11179
  // src/cli/index.ts
11180
11180
  init_ui();
11181
- var VERSION = "1.9.7";
11181
+
11182
+ // package.json
11183
+ var version = "1.9.22";
11184
+
11185
+ // src/cli/index.ts
11182
11186
  function buildProgram() {
11183
- const program = new Command18("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(VERSION);
11187
+ const program = new Command18("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(version);
11184
11188
  program.addCommand(buildBannerCommand());
11185
11189
  program.addCommand(buildSetupCommand());
11186
11190
  program.addCommand(buildConfigCommand());