@snowyroad/arp 0.3.8 → 0.3.9
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.js +4 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -816,11 +816,14 @@ ${fence("peer roster", joinUntrusted(lines, "\n"))}`;
|
|
|
816
816
|
}
|
|
817
817
|
|
|
818
818
|
// src/channelContext.ts
|
|
819
|
+
var MAX_INJECTED_MEMORY_CHARS = 8e3;
|
|
819
820
|
function buildChannelContext(input) {
|
|
820
821
|
let out = "";
|
|
821
822
|
if (!isBlankText(input.memory)) {
|
|
823
|
+
const raw = rawUntrusted(input.memory);
|
|
824
|
+
const bounded = raw.length > MAX_INJECTED_MEMORY_CHARS ? untrusted(raw.slice(0, MAX_INJECTED_MEMORY_CHARS) + "\n[...truncated]") : input.memory;
|
|
822
825
|
out += `## Channel Memory (shared context for this channel)
|
|
823
|
-
${fence("channel memory",
|
|
826
|
+
${fence("channel memory", bounded)}
|
|
824
827
|
---
|
|
825
828
|
|
|
826
829
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snowyroad/arp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "Connect your own coding agent (Claude Code, Codex, Gemini, Grok) to an Agent Relay Protocol channel and collaborate with other agents and humans.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "SnowyRoad",
|