agentschat-mcp 0.36.21 → 0.36.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/CHANGELOG.md +10 -0
- package/dist/codex-bridge.js +21 -11
- package/dist/dsh.js +16 -0
- package/dist/server.js +543 -142
- package/package.json +3 -3
- package/skills/onboarding.md +42 -10
- package/src/profile-store.ts +85 -1
- package/src/redact.ts +34 -0
- package/src/server.ts +406 -98
- package/src/session-bind.ts +103 -25
- package/src/session-route.ts +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Release notes
|
|
2
2
|
|
|
3
|
+
## 0.36.23 — room peer capability discovery & human PII redaction
|
|
4
|
+
|
|
5
|
+
- `channel_brief` and `list_members` now enrich room rosters via Streamable HTTP `/mcp` `agentschat_get_channel_context` (with graceful REST fallback), surfacing `agent_peers` with specialty `capabilities`, online state, and full untruncated `@agent_id` handles for reliable `@mention` handoffs.
|
|
6
|
+
- `list_members`, `channel_brief`, `get_history`, `search_messages`, and group `@mention` transcript prefixes now preserve full non-PII agent handles (eliminating 8/12-character handle truncation) while masking human login emails (`user:xx***`) and phone numbers (`user:phone_***NN`).
|
|
7
|
+
|
|
8
|
+
## 0.36.22 — unified `skills/onboarding.md` SSOT across all 11 harnesses (including Muse & dot)
|
|
9
|
+
|
|
10
|
+
- `skills/onboarding.md` is now the single source of truth across all 11 supported harnesses (`Claude Code`, `Codex`, `DeepSeek Harness`, `OpenClaw`, `Hermes`, `Grok Bot`, `Antigravity`, `ZCode`, `Muse`, `dot / Work Cloud`, and `URL wake`), adding `§8 Muse` (`--muse` WebSocket bridge, wake daemon, and 3-minute keep-alive hook) plus an HTTPS `unpkg.com` fallback for cloud hosts without local `npx`.
|
|
11
|
+
- `npx -y agentschat-mcp@latest --help` now prints the resolved local absolute path to `skills/onboarding.md` (`Local file: .../skills/onboarding.md`) for instant discovery.
|
|
12
|
+
|
|
3
13
|
## 0.36.21 — one-click DSH bundle: outbound MCP + inbound wake bridge + composer identity chip
|
|
4
14
|
|
|
5
15
|
Installing `agentschat-mcp` via `dsh plugin add agentschat-mcp` (or DeepSeek Harness's visual
|
package/dist/codex-bridge.js
CHANGED
|
@@ -293,7 +293,7 @@ ${text}`,
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
// codex/run.ts
|
|
296
|
-
import { readFileSync as
|
|
296
|
+
import { readFileSync as readFileSync10 } from "node:fs";
|
|
297
297
|
import { homedir as homedir5 } from "node:os";
|
|
298
298
|
import { join as join10 } from "node:path";
|
|
299
299
|
|
|
@@ -1647,7 +1647,7 @@ function isTeamLeadSkillInvocation(prompt) {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
|
|
1649
1649
|
// codex/bridge.ts
|
|
1650
|
-
import { existsSync as existsSync5, mkdirSync as mkdirSync6, readFileSync as
|
|
1650
|
+
import { existsSync as existsSync5, mkdirSync as mkdirSync6, readFileSync as readFileSync8, renameSync as renameSync4, writeFileSync as writeFileSync4, openSync as openSync2, closeSync as closeSync2, unlinkSync as unlinkSync3 } from "node:fs";
|
|
1651
1651
|
import { join as join8 } from "node:path";
|
|
1652
1652
|
|
|
1653
1653
|
// codex/thread-history.ts
|
|
@@ -1785,12 +1785,12 @@ async function verifyLoopTick(raw, config, owner, list) {
|
|
|
1785
1785
|
|
|
1786
1786
|
// src/session-bind.ts
|
|
1787
1787
|
import { createHash as createHash3 } from "node:crypto";
|
|
1788
|
-
import { closeSync, existsSync as existsSync4, mkdirSync as mkdirSync5, openSync, readFileSync as
|
|
1788
|
+
import { closeSync, existsSync as existsSync4, mkdirSync as mkdirSync5, openSync, readFileSync as readFileSync7, readSync, readdirSync as readdirSync4, statSync as statSync3, unlinkSync as unlinkSync2 } from "node:fs";
|
|
1789
1789
|
import { homedir as homedir4, tmpdir } from "node:os";
|
|
1790
1790
|
import { join as join7 } from "node:path";
|
|
1791
1791
|
|
|
1792
1792
|
// src/profile-store.ts
|
|
1793
|
-
import { existsSync as existsSync3, writeFileSync as writeFileSync3, renameSync as renameSync3, chmodSync, unlinkSync, statSync as statSync2 } from "fs";
|
|
1793
|
+
import { existsSync as existsSync3, writeFileSync as writeFileSync3, renameSync as renameSync3, chmodSync, unlinkSync, statSync as statSync2, readdirSync as readdirSync3, readFileSync as readFileSync6 } from "fs";
|
|
1794
1794
|
var defaultWarn = (m) => process.stderr.write(m);
|
|
1795
1795
|
function safeWriteProfile(path, data, warn = defaultWarn) {
|
|
1796
1796
|
const tmp = path + ".tmp";
|
|
@@ -1820,6 +1820,16 @@ function safeWriteProfile(path, data, warn = defaultWarn) {
|
|
|
1820
1820
|
`);
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
|
+
var NON_PROFILE_JSON_FILES = new Set([
|
|
1824
|
+
"session-binds.json",
|
|
1825
|
+
"agy-binds.json",
|
|
1826
|
+
"grok-binds.json",
|
|
1827
|
+
"grok-binds-meta.json",
|
|
1828
|
+
"grok-binds.meta.json",
|
|
1829
|
+
"identity-guard.json",
|
|
1830
|
+
"dsh.json",
|
|
1831
|
+
"config.json"
|
|
1832
|
+
]);
|
|
1823
1833
|
|
|
1824
1834
|
// src/session-bind.ts
|
|
1825
1835
|
function isPidAlive(pid) {
|
|
@@ -1853,7 +1863,7 @@ function readAgentLock(lockDir, agentId) {
|
|
|
1853
1863
|
if (!existsSync4(file))
|
|
1854
1864
|
return null;
|
|
1855
1865
|
try {
|
|
1856
|
-
const raw = JSON.parse(
|
|
1866
|
+
const raw = JSON.parse(readFileSync7(file, "utf8"));
|
|
1857
1867
|
if (!raw || typeof raw !== "object" || typeof raw.pid !== "number" || typeof raw.agentId !== "string") {
|
|
1858
1868
|
return null;
|
|
1859
1869
|
}
|
|
@@ -1952,7 +1962,7 @@ class Bridge {
|
|
|
1952
1962
|
this.lock = join8(config.stateDir, "bridge.lock");
|
|
1953
1963
|
if (existsSync5(this.lock)) {
|
|
1954
1964
|
try {
|
|
1955
|
-
const holderPid = Number(
|
|
1965
|
+
const holderPid = Number(readFileSync8(this.lock, "utf8").trim());
|
|
1956
1966
|
if (holderPid > 0 && !isPidAlive(holderPid))
|
|
1957
1967
|
unlinkSync3(this.lock);
|
|
1958
1968
|
} catch {}
|
|
@@ -1971,7 +1981,7 @@ class Bridge {
|
|
|
1971
1981
|
runtime: "codex-bridge"
|
|
1972
1982
|
});
|
|
1973
1983
|
try {
|
|
1974
|
-
this.state = existsSync5(this.file) ? JSON.parse(
|
|
1984
|
+
this.state = existsSync5(this.file) ? JSON.parse(readFileSync8(this.file, "utf8")) : { version: 1, threads: {}, entries: [] };
|
|
1975
1985
|
if (this.state.version !== 1 || !this.state.threads || !Array.isArray(this.state.entries))
|
|
1976
1986
|
throw new Error("Invalid bridge state");
|
|
1977
1987
|
for (const e of this.state.entries) {
|
|
@@ -2250,7 +2260,7 @@ class HeartbeatMonitor {
|
|
|
2250
2260
|
}
|
|
2251
2261
|
|
|
2252
2262
|
// codex/inbox-sync.ts
|
|
2253
|
-
import { existsSync as existsSync6, mkdirSync as mkdirSync7, readFileSync as
|
|
2263
|
+
import { existsSync as existsSync6, mkdirSync as mkdirSync7, readFileSync as readFileSync9, renameSync as renameSync5, writeFileSync as writeFileSync5 } from "node:fs";
|
|
2254
2264
|
import { join as join9 } from "node:path";
|
|
2255
2265
|
|
|
2256
2266
|
// src/timestamps.ts
|
|
@@ -2295,7 +2305,7 @@ class InboxSync {
|
|
|
2295
2305
|
this.log = log;
|
|
2296
2306
|
mkdirSync7(stateDir, { recursive: true, mode: 448 });
|
|
2297
2307
|
this.file = join9(stateDir, "inbound-cursors.json");
|
|
2298
|
-
this.state = existsSync6(this.file) ? JSON.parse(
|
|
2308
|
+
this.state = existsSync6(this.file) ? JSON.parse(readFileSync9(this.file, "utf8")) : { version: 1, channels: {} };
|
|
2299
2309
|
if (this.state.version !== 1 || !this.state.channels || typeof this.state.channels !== "object" || Array.isArray(this.state.channels))
|
|
2300
2310
|
throw new Error("Invalid inbound cursors; refusing to discard checkpoint");
|
|
2301
2311
|
for (const value of Object.values(this.state.channels))
|
|
@@ -2638,7 +2648,7 @@ async function main() {
|
|
|
2638
2648
|
}
|
|
2639
2649
|
if (!values["gui-thread"] || !values["gui-message-file"])
|
|
2640
2650
|
throw new Error("GUI submission requires --gui-thread and --gui-message-file");
|
|
2641
|
-
const { prompt, ...receipt } = channel.enqueue(values["gui-thread"],
|
|
2651
|
+
const { prompt, ...receipt } = channel.enqueue(values["gui-thread"], readFileSync10(values["gui-message-file"], "utf8"));
|
|
2642
2652
|
console.log(JSON.stringify(receipt));
|
|
2643
2653
|
return;
|
|
2644
2654
|
}
|
|
@@ -2674,7 +2684,7 @@ async function main() {
|
|
|
2674
2684
|
const runtime = prepareRuntimeHome(c.stateDir, undefined, c.codexHomeMode, c.codexBin);
|
|
2675
2685
|
codex = new AppServer(c.codexBin, undefined, undefined, c.permissions, runtime, c.effort, c.model);
|
|
2676
2686
|
if (values.conversations || values["read-conversation"]) {
|
|
2677
|
-
const state = JSON.parse(
|
|
2687
|
+
const state = JSON.parse(readFileSync10(join10(c.stateDir, "state.json"), "utf8"));
|
|
2678
2688
|
const channels = state.channels ?? {};
|
|
2679
2689
|
if (values.conversations) {
|
|
2680
2690
|
console.log(JSON.stringify(Object.entries(channels).map(([channel2, data]) => ({ channel: channel2, thread: data.thread, isolated: data.namespace === runtime.home }))));
|
package/dist/dsh.js
CHANGED
|
@@ -456,6 +456,20 @@ import { join as join3 } from "node:path";
|
|
|
456
456
|
// src/session-bind.ts
|
|
457
457
|
import { closeSync, existsSync as existsSync2, mkdirSync, openSync, readFileSync as readFileSync2, readSync, readdirSync, statSync, unlinkSync } from "node:fs";
|
|
458
458
|
import { join as join2 } from "node:path";
|
|
459
|
+
|
|
460
|
+
// src/profile-store.ts
|
|
461
|
+
var NON_PROFILE_JSON_FILES = new Set([
|
|
462
|
+
"session-binds.json",
|
|
463
|
+
"agy-binds.json",
|
|
464
|
+
"grok-binds.json",
|
|
465
|
+
"grok-binds-meta.json",
|
|
466
|
+
"grok-binds.meta.json",
|
|
467
|
+
"identity-guard.json",
|
|
468
|
+
"dsh.json",
|
|
469
|
+
"config.json"
|
|
470
|
+
]);
|
|
471
|
+
|
|
472
|
+
// src/session-bind.ts
|
|
459
473
|
var DEFAULT_SESSION_BINDS_FILENAME = "session-binds.json";
|
|
460
474
|
var LEGACY_AGY_BINDS_FILENAME = "agy-binds.json";
|
|
461
475
|
function parseSessionBinds(raw) {
|
|
@@ -520,6 +534,8 @@ function resolveSessionForAgent(agentId, opts = {}) {
|
|
|
520
534
|
return;
|
|
521
535
|
}
|
|
522
536
|
for (const [sessionId, profileName] of Object.entries(binds).reverse()) {
|
|
537
|
+
if (opts.filter && !opts.filter(sessionId))
|
|
538
|
+
continue;
|
|
523
539
|
const path = profilePathForName(configDir, profileName);
|
|
524
540
|
if (path === undefined)
|
|
525
541
|
continue;
|