agentschat-mcp 0.36.13 → 0.36.14
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 +15 -0
- package/README.md +63 -45
- package/codex/README.md +25 -16
- package/codex/app-server.ts +2 -0
- package/codex/bridge.ts +20 -1
- package/connector/README.md +10 -2
- package/dist/codex-bots.js +419 -512
- package/dist/codex-bridge.js +609 -567
- package/dist/connector.js +5 -5
- package/dist/server.js +1019 -174
- package/package.json +2 -1
- package/skills/grok-wake-keepalive.md +1 -1
- package/skills/onboarding.md +184 -108
- package/src/cli.mjs +5 -3
- package/src/identity-guard.ts +1 -1
- package/src/identity.ts +1 -1
- package/src/onboarding-status.ts +4 -4
- package/src/server.ts +540 -102
- package/src/session-bind.ts +382 -0
- package/src/terms.ts +10 -65
- package/src/tool-annotations.ts +2 -0
- package/src/wake.ts +240 -0
package/dist/connector.js
CHANGED
|
@@ -118,7 +118,7 @@ function matchesLiveLoop(msg, agentId, response) {
|
|
|
118
118
|
const rows = response?.loops;
|
|
119
119
|
if (!Array.isArray(rows))
|
|
120
120
|
return false;
|
|
121
|
-
const matches = rows.filter((
|
|
121
|
+
const matches = rows.filter((row2) => row2?.loop_id === tick.loop_id);
|
|
122
122
|
if (matches.length !== 1)
|
|
123
123
|
return false;
|
|
124
124
|
const row = matches[0];
|
|
@@ -194,7 +194,7 @@ class IdentityTable {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
function requireIdentity(identities, botId) {
|
|
197
|
-
const id = identities.find((
|
|
197
|
+
const id = identities.find((id2) => id2.botId === botId);
|
|
198
198
|
if (!id)
|
|
199
199
|
throw new Error(`unknown identity: ${botId}`);
|
|
200
200
|
return id;
|
|
@@ -761,13 +761,13 @@ function parseIdentitiesJson(raw, source) {
|
|
|
761
761
|
function loadIdentities() {
|
|
762
762
|
const file = (process.env.RELAY_IDENTITIES_FILE || "").trim();
|
|
763
763
|
if (file) {
|
|
764
|
-
let
|
|
764
|
+
let raw2;
|
|
765
765
|
try {
|
|
766
|
-
|
|
766
|
+
raw2 = readFileSync2(file, "utf8");
|
|
767
767
|
} catch {
|
|
768
768
|
throw new Error("RELAY_IDENTITIES_FILE could not be read");
|
|
769
769
|
}
|
|
770
|
-
return parseIdentitiesJson(
|
|
770
|
+
return parseIdentitiesJson(raw2, "RELAY_IDENTITIES_FILE");
|
|
771
771
|
}
|
|
772
772
|
const raw = (process.env.RELAY_IDENTITIES || "").trim();
|
|
773
773
|
if (raw) {
|