@ycodium-ai/agent-fake 0.2.3470 → 0.2.3478

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 +3 -2
  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 = {
@@ -1990,7 +1991,7 @@ var executors = [
1990
1991
  ];
1991
1992
  var index_default = definePlugin({
1992
1993
  id: "agent-fake",
1993
- apiVersion: 38,
1994
+ apiVersion: 39,
1994
1995
  executors,
1995
1996
  activate(ctx) {
1996
1997
  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.3470",
3
+ "version": "0.2.3478",
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.3470",
24
+ "@ycodium-ai/plugin-api": "0.2.3478",
25
25
  "ycodium-executor-testing": "0.0.0"
26
26
  },
27
27
  "ycodium": {