@ycodium-ai/agent-fake 0.2.3474 → 0.2.3484

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 +2 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -884,6 +884,7 @@ function createPlaybookMcp(input) {
884
884
  }
885
885
 
886
886
  // src/playbook.ts
887
+ var lineClaimsSession = (line, threadId, title) => (line.match.threadId === void 0 || line.match.threadId.test(threadId)) && (line.match.title === void 0 || title !== void 0 && title.includes(line.match.title));
887
888
  var isRecord2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
888
889
  var isName = (value) => typeof value === "string" && value.length > 0;
889
890
  var onlyKeys = (value, keys) => Object.keys(value).every((key) => keys.includes(key));
@@ -1245,7 +1246,7 @@ function createPlaybookRunner(input) {
1245
1246
  if (playback === void 0) {
1246
1247
  const title = titles.get(turn.threadId);
1247
1248
  const index = parsed.threads.findIndex(
1248
- (line, index2) => !claimed.has(index2) && (line.match.threadId === void 0 || line.match.threadId.test(turn.threadId)) && (line.match.title === void 0 || title !== void 0 && title.includes(line.match.title))
1249
+ (line, index2) => !claimed.has(index2) && lineClaimsSession(line, turn.threadId, title)
1249
1250
  );
1250
1251
  if (index >= 0) claimed.add(index);
1251
1252
  playback = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-fake",
3
- "version": "0.2.3474",
3
+ "version": "0.2.3484",
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.3474",
24
+ "@ycodium-ai/plugin-api": "0.2.3484",
25
25
  "ycodium-executor-testing": "0.0.0"
26
26
  },
27
27
  "ycodium": {