@prismer/runtime 1.9.6 → 1.9.7
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/CHANGELOG.md +32 -0
- package/dist/cli.cjs +11 -6
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +11 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +11 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog — @prismer/runtime
|
|
2
2
|
|
|
3
|
+
## v1.9.6 — 2026-05-12 — Refactoring wave: register hardening + CLI version sync
|
|
4
|
+
|
|
5
|
+
Batch delivery of §30 / §31 refactoring items affecting IM register flow,
|
|
6
|
+
CEO authorization data layer, and runtime version hygiene.
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- **CLI `--version` + banner displayed stale `1.9.3`** after package.json was
|
|
11
|
+
bumped to 1.9.6. `src/cli/index.ts` hardcoded `VERSION` const and
|
|
12
|
+
`src/cli/util.ts` banner strings were missed in the 1.9.4→1.9.5→1.9.6 bump
|
|
13
|
+
chain. Now reads `1.9.6` in both places.
|
|
14
|
+
- **Hermes adapter prompt still referenced old `im_send_to_agent` /
|
|
15
|
+
`im_list_agents` tool names** after the MCP 58-tool rename sweep. Replaced
|
|
16
|
+
with `prismer.agent.send` / `prismer.conversation.listAgents`. The old names
|
|
17
|
+
returned 404 at dispatch time if the adapter actually called them.
|
|
18
|
+
- **`--json` output from `agent list` now surfaces `local.hosted: true`
|
|
19
|
+
correctly** for agents that were registered with an adapter (was returning
|
|
20
|
+
`local.hosted: false` when the local mirror hadn't synced yet).
|
|
21
|
+
|
|
22
|
+
### Internal
|
|
23
|
+
|
|
24
|
+
- Tool name sweep: `sdk/prismer-cloud/runtime/src/adapters/hermes/index.ts`
|
|
25
|
+
(`buildHermesPrompt`), `src/im/types/im-events.ts` (unused old types),
|
|
26
|
+
`src/im/services/message.service.ts` (WS event type const),
|
|
27
|
+
`src/im/daemon/dispatch.ts` (dispatch compose).
|
|
28
|
+
- Version files bumped via `sdk/build/version.sh --scope prismer-cloud --patch`:
|
|
29
|
+
`VERSION`, all SDK package.json, `mcp/src/index.ts`,
|
|
30
|
+
`python/prismer/__init__.py`, `rust/Cargo.toml`, plugin manifests, root
|
|
31
|
+
`package.json`, `src/lib/version.ts`.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
3
35
|
## Unreleased — Origin Adapter framework + memory-curation skill
|
|
4
36
|
|
|
5
37
|
Doc 26 §4 Phase 2 + doc 27 rev 5 §3. Daemon-side asset producers behind a
|
package/dist/cli.cjs
CHANGED
|
@@ -2202,10 +2202,10 @@ function runAction(fn, opts = {}) {
|
|
|
2202
2202
|
function printBanner(opts = {}) {
|
|
2203
2203
|
const ui = getUI();
|
|
2204
2204
|
if (opts.compact) {
|
|
2205
|
-
ui.smallHeader("Runtime CLI v1.9.
|
|
2205
|
+
ui.smallHeader("Runtime CLI v1.9.7");
|
|
2206
2206
|
return;
|
|
2207
2207
|
}
|
|
2208
|
-
ui.banner("Runtime CLI v1.9.
|
|
2208
|
+
ui.banner("Runtime CLI v1.9.7", { full: true });
|
|
2209
2209
|
}
|
|
2210
2210
|
function ok(label, detail) {
|
|
2211
2211
|
getUI().ok(label, detail);
|
|
@@ -9600,9 +9600,13 @@ function buildSetupCommand() {
|
|
|
9600
9600
|
if (configExists(paths) && !opts.force) {
|
|
9601
9601
|
const cfg = loadConfig(paths);
|
|
9602
9602
|
if (opts.json) {
|
|
9603
|
-
printJson({ ok: true, alreadyConfigured: true, config: paths.configFile, daemonId: cfg.daemon_id });
|
|
9603
|
+
printJson({ ok: true, alreadyConfigured: true, config: paths.configFile, daemonId: cfg.daemon_id, daemonStartRequested: shouldStart });
|
|
9604
9604
|
} else {
|
|
9605
9605
|
warn("Already configured", paths.configFile);
|
|
9606
|
+
if (shouldStart) {
|
|
9607
|
+
startDaemonDetached(paths.root);
|
|
9608
|
+
ok("Daemon start requested");
|
|
9609
|
+
}
|
|
9606
9610
|
tip("prismer setup --force <api-key>", "overwrite config");
|
|
9607
9611
|
}
|
|
9608
9612
|
return;
|
|
@@ -9685,14 +9689,15 @@ function waitForSetupCallback(server, expectedState) {
|
|
|
9685
9689
|
}
|
|
9686
9690
|
const state = url.searchParams.get("state");
|
|
9687
9691
|
const key = url.searchParams.get("key");
|
|
9692
|
+
const PAGE = '<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Prismer Setup</title><style>body{background:#0a0a0a;color:#e5e5e5;font-family:system-ui,-apple-system,sans-serif;display:flex;align-items:center;justify-content:center;min-height:100vh;margin:0;text-align:center}div{max-width:480px;padding:40px}h1{font-size:28px;margin-bottom:16px}p{font-size:15px;color:#888;line-height:1.6}.check{color:#4ade80;font-size:48px;margin-bottom:16px}.cross{color:#ef4444;font-size:48px;margin-bottom:16px}</style></head><body><div>';
|
|
9688
9693
|
if (state !== expectedState || !key || !/^sk-prismer-/.test(key)) {
|
|
9689
9694
|
res.writeHead(400, { "Content-Type": "text/html; charset=utf-8" });
|
|
9690
|
-
res.end("
|
|
9695
|
+
res.end(`${PAGE}<div class="cross">✗</div><h1>Prismer setup failed</h1><p>Invalid setup callback. You can close this tab and retry.</p></div></body></html>`);
|
|
9691
9696
|
reject(new Error("setup: invalid browser callback"));
|
|
9692
9697
|
return;
|
|
9693
9698
|
}
|
|
9694
9699
|
res.writeHead(200, { "Content-Type": "text/html; charset=utf-8" });
|
|
9695
|
-
res.end("
|
|
9700
|
+
res.end(`${PAGE}<div class="check">✓</div><h1>Prismer setup complete</h1><p>You can close this tab and return to your terminal.</p></div></body></html>`);
|
|
9696
9701
|
resolve3(key);
|
|
9697
9702
|
} catch (err) {
|
|
9698
9703
|
reject(err);
|
|
@@ -10229,7 +10234,7 @@ async function readResponseError(res) {
|
|
|
10229
10234
|
}
|
|
10230
10235
|
|
|
10231
10236
|
// src/cli/index.ts
|
|
10232
|
-
var VERSION = "1.9.
|
|
10237
|
+
var VERSION = "1.9.7";
|
|
10233
10238
|
function buildProgram() {
|
|
10234
10239
|
const program = new import_commander18.Command("prismer").description("Prismer Cloud daemon CLI (TS-only).").version(VERSION);
|
|
10235
10240
|
program.addCommand(buildBannerCommand());
|