@ycodium-ai/agent-fake 0.2.3232 → 0.2.3238

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -758,10 +758,18 @@ async function openMcpSession(input) {
758
758
  };
759
759
  }
760
760
  var isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
761
+ var HOST_BLOCK = /^<(ycodium-memory|ycodium-skill)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n\n/u;
762
+ function stripHostBlocks(input) {
763
+ let rest = input;
764
+ for (let block = HOST_BLOCK.exec(rest); block !== null; block = HOST_BLOCK.exec(rest)) {
765
+ rest = rest.slice(block[0].length);
766
+ }
767
+ return rest;
768
+ }
761
769
  function parseMcpSendInput(input) {
762
770
  let parsed;
763
771
  try {
764
- parsed = JSON.parse(input ?? "");
772
+ parsed = JSON.parse(stripHostBlocks(input ?? ""));
765
773
  } catch {
766
774
  return null;
767
775
  }
@@ -1888,7 +1896,7 @@ var executors = [
1888
1896
  ];
1889
1897
  var index_default = definePlugin({
1890
1898
  id: "agent-fake",
1891
- apiVersion: 24,
1899
+ apiVersion: 25,
1892
1900
  executors,
1893
1901
  activate(ctx) {
1894
1902
  ctx.log.info("fake executor ready");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-fake",
3
- "version": "0.2.3232",
3
+ "version": "0.2.3238",
4
4
  "description": "Minimal fake executor for plugin authors and host orchestration tests.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -21,7 +21,7 @@
21
21
  "@types/node": "24.12.4",
22
22
  "esbuild": "0.28.1",
23
23
  "vite-plus": "0.2.2",
24
- "@ycodium-ai/plugin-api": "0.2.3232",
24
+ "@ycodium-ai/plugin-api": "0.2.3238",
25
25
  "ycodium-executor-testing": "0.0.0"
26
26
  },
27
27
  "ycodium": {