@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.cjs +19 -15
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +19 -15
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +19 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.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
|
|
547
|
+
ui.smallHeader("Runtime CLI v${VERSION}");
|
|
548
548
|
return;
|
|
549
549
|
}
|
|
550
|
-
ui.banner("Runtime CLI
|
|
550
|
+
ui.banner("Runtime CLI v${VERSION}", { full: true });
|
|
551
551
|
}
|
|
552
552
|
function ok(label, detail) {
|
|
553
553
|
getUI().ok(label, detail);
|
|
@@ -2431,8 +2431,8 @@ function buildAdapterCommand() {
|
|
|
2431
2431
|
});
|
|
2432
2432
|
return cmd;
|
|
2433
2433
|
}
|
|
2434
|
-
function runInstall(spec,
|
|
2435
|
-
const { argv0, args } = installCommand(spec,
|
|
2434
|
+
function runInstall(spec, version2, dryRun) {
|
|
2435
|
+
const { argv0, args } = installCommand(spec, version2);
|
|
2436
2436
|
getUI().line(`> ${argv0} ${args.join(" ")}`);
|
|
2437
2437
|
if (dryRun) {
|
|
2438
2438
|
getUI().line("(dry-run \u2014 not executing)");
|
|
@@ -2576,16 +2576,16 @@ function runHooks(spec, opts) {
|
|
|
2576
2576
|
hook: inspectHook(spec)
|
|
2577
2577
|
};
|
|
2578
2578
|
}
|
|
2579
|
-
function installCommand(spec,
|
|
2580
|
-
const ref =
|
|
2579
|
+
function installCommand(spec, version2) {
|
|
2580
|
+
const ref = version2 === "latest" ? spec.package : `${spec.package}@${version2}`;
|
|
2581
2581
|
switch (spec.manager) {
|
|
2582
2582
|
case "npm":
|
|
2583
2583
|
return { argv0: "npm", args: ["install", "-g", ref] };
|
|
2584
2584
|
case "pipx":
|
|
2585
|
-
const pyRef =
|
|
2585
|
+
const pyRef = version2 === "latest" ? spec.package : `${spec.package}==${version2}`;
|
|
2586
2586
|
return { argv0: "pipx", args: ["install", pyRef] };
|
|
2587
2587
|
case "pip":
|
|
2588
|
-
const pipRef =
|
|
2588
|
+
const pipRef = version2 === "latest" ? spec.package : `${spec.package}==${version2}`;
|
|
2589
2589
|
return { argv0: "pip", args: ["install", "--user", pipRef] };
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
@@ -2784,7 +2784,7 @@ function readAdapterConfig() {
|
|
|
2784
2784
|
return {};
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
2787
|
-
function recordInstallInConfig(spec, binPath,
|
|
2787
|
+
function recordInstallInConfig(spec, binPath, version2) {
|
|
2788
2788
|
const paths = resolvePaths();
|
|
2789
2789
|
if (!configExists(paths)) {
|
|
2790
2790
|
process.stderr.write(
|
|
@@ -2806,7 +2806,7 @@ function recordInstallInConfig(spec, binPath, version) {
|
|
|
2806
2806
|
package_manager: spec.manager,
|
|
2807
2807
|
package_name: spec.package,
|
|
2808
2808
|
binary: binPath,
|
|
2809
|
-
version,
|
|
2809
|
+
version: version2,
|
|
2810
2810
|
installed_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2811
2811
|
};
|
|
2812
2812
|
saveConfig({ ...cfg, adapters }, paths);
|
|
@@ -5898,9 +5898,9 @@ var MemoryStore = class {
|
|
|
5898
5898
|
const row = db.prepare("SELECT * FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId);
|
|
5899
5899
|
return row ? this.rowToPage(row) : null;
|
|
5900
5900
|
}
|
|
5901
|
-
loadContent(pageId,
|
|
5901
|
+
loadContent(pageId, version2) {
|
|
5902
5902
|
const db = this.requireDb();
|
|
5903
|
-
const targetVersion =
|
|
5903
|
+
const targetVersion = version2 ?? db.prepare("SELECT version FROM memory_pages WHERE workspaceId = ? AND id = ?").get(this.opts.workspaceId, pageId)?.version;
|
|
5904
5904
|
if (targetVersion === void 0) return null;
|
|
5905
5905
|
const row = db.prepare(
|
|
5906
5906
|
`SELECT c.pageId, c.version, c.payloadKind, c.payloadValue
|
|
@@ -8512,7 +8512,7 @@ var Runner = class extends import_node_events3.EventEmitter {
|
|
|
8512
8512
|
name: a.name,
|
|
8513
8513
|
adapterName: a.adapterName,
|
|
8514
8514
|
capabilities: a.capabilities,
|
|
8515
|
-
profiles: Array.from(a.profiles.entries()).map(([id,
|
|
8515
|
+
profiles: Array.from(a.profiles.entries()).map(([id, version2]) => ({ id, version: version2 }))
|
|
8516
8516
|
}))
|
|
8517
8517
|
};
|
|
8518
8518
|
this.ws.send(envelope("agent.host.declare", payload, this.config.daemon_id));
|
|
@@ -10945,9 +10945,13 @@ async function readResponseError(res) {
|
|
|
10945
10945
|
|
|
10946
10946
|
// src/cli/index.ts
|
|
10947
10947
|
init_ui();
|
|
10948
|
-
|
|
10948
|
+
|
|
10949
|
+
// package.json
|
|
10950
|
+
var version = "1.9.22";
|
|
10951
|
+
|
|
10952
|
+
// src/cli/index.ts
|
|
10949
10953
|
function buildProgram() {
|
|
10950
|
-
const program = new import_commander18.Command("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(
|
|
10954
|
+
const program = new import_commander18.Command("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(version);
|
|
10951
10955
|
program.addCommand(buildBannerCommand());
|
|
10952
10956
|
program.addCommand(buildSetupCommand());
|
|
10953
10957
|
program.addCommand(buildConfigCommand());
|