@ycodium-ai/agent-fake 0.2.3990 → 0.2.4005
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/index.js +14 -9
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
3
3
|
|
|
4
4
|
// ../../packages/plugin-api/src/version.ts
|
|
5
|
-
var PLUGIN_API_VERSION =
|
|
5
|
+
var PLUGIN_API_VERSION = 80;
|
|
6
6
|
|
|
7
7
|
// src/card.ts
|
|
8
8
|
var FAKE_SCRIPTS = [
|
|
@@ -993,8 +993,15 @@ function stepResult(result) {
|
|
|
993
993
|
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));
|
|
994
994
|
var isName = (value) => typeof value === "string" && value.length > 0;
|
|
995
995
|
var onlyKeys = (value, keys) => Object.keys(value).every((key) => keys.includes(key));
|
|
996
|
-
var
|
|
997
|
-
|
|
996
|
+
var REQUIRED_WAIT_TOOLS = /* @__PURE__ */ new Set([
|
|
997
|
+
"work_history",
|
|
998
|
+
"work_list_comments",
|
|
999
|
+
"work_list_items"
|
|
1000
|
+
]);
|
|
1001
|
+
var REQUIRED_WAIT_DEFAULT_TIMEOUT_MS = 3e5;
|
|
1002
|
+
var DEFAULT_WAIT_TIMEOUT_MS = 3e4;
|
|
1003
|
+
var parseTimeout = (value, fallback = DEFAULT_WAIT_TIMEOUT_MS) => {
|
|
1004
|
+
const timeoutMs = value === void 0 ? fallback : value;
|
|
998
1005
|
return typeof timeoutMs === "number" && Number.isFinite(timeoutMs) && timeoutMs >= 0 ? timeoutMs : null;
|
|
999
1006
|
};
|
|
1000
1007
|
function parseStep(value) {
|
|
@@ -1041,7 +1048,10 @@ function parseStep(value) {
|
|
|
1041
1048
|
return null;
|
|
1042
1049
|
if (typeof wait.atLeast !== "number" || !Number.isInteger(wait.atLeast) || wait.atLeast < 0)
|
|
1043
1050
|
return null;
|
|
1044
|
-
const timeoutMs = parseTimeout(
|
|
1051
|
+
const timeoutMs = parseTimeout(
|
|
1052
|
+
wait.timeoutMs,
|
|
1053
|
+
REQUIRED_WAIT_TOOLS.has(wait.tool) && wait.continueOnTimeout !== true ? REQUIRED_WAIT_DEFAULT_TIMEOUT_MS : DEFAULT_WAIT_TIMEOUT_MS
|
|
1054
|
+
);
|
|
1045
1055
|
return timeoutMs === null ? null : {
|
|
1046
1056
|
waitFor: {
|
|
1047
1057
|
tool: wait.tool,
|
|
@@ -1171,11 +1181,6 @@ async function waitForCount(step, args, input, clients) {
|
|
|
1171
1181
|
});
|
|
1172
1182
|
return ok ? ready : void 0;
|
|
1173
1183
|
}
|
|
1174
|
-
var REQUIRED_WAIT_TOOLS = /* @__PURE__ */ new Set([
|
|
1175
|
-
"work_history",
|
|
1176
|
-
"work_list_comments",
|
|
1177
|
-
"work_list_items"
|
|
1178
|
-
]);
|
|
1179
1184
|
var GATE_PROBE_TIMEOUT_MS = 5e3;
|
|
1180
1185
|
var REQUIRED_WAIT_FAILED = "playbook required wait failed:";
|
|
1181
1186
|
function turnGateOf(batch) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-fake",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4005",
|
|
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.
|
|
24
|
+
"@ycodium-ai/plugin-api": "0.2.4005",
|
|
25
25
|
"ycodium-executor-testing": "0.0.0"
|
|
26
26
|
},
|
|
27
27
|
"ycodium": {
|