@brainervirus/workit-opencode 8.32.0 → 8.34.0
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/plugin.js +15 -6
- package/package.json +2 -2
package/dist/plugin.js
CHANGED
|
@@ -7411,10 +7411,11 @@ function invalidOperation(family, input, error) {
|
|
|
7411
7411
|
const request = isObject2(input) ? input : {};
|
|
7412
7412
|
const action = typeof request.action === "string" ? request.action : "";
|
|
7413
7413
|
const actions = OPERATION_ACTIONS[family];
|
|
7414
|
-
if (!actions.includes(action))
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
});
|
|
7414
|
+
if (!actions.includes(action)) {
|
|
7415
|
+
const common = actions.find((name) => READ_ONLY_ACTIONS.has(name)) ?? actions[0];
|
|
7416
|
+
const example = JSON.stringify(exampleOperation(family, common));
|
|
7417
|
+
return failure2("invalid_input", `${family}: action must be one of ${oneOf(actions)}. Example: ${example}`, { fields: [{ path: "action", reason: `got ${JSON.stringify(request.action ?? null)}` }] });
|
|
7418
|
+
}
|
|
7418
7419
|
const own = actionKeys(family, action);
|
|
7419
7420
|
const fields = [];
|
|
7420
7421
|
const sentence = [];
|
|
@@ -16206,7 +16207,14 @@ var sessionMarkerFile = (input, session, store) => {
|
|
|
16206
16207
|
return path19.join(dir, "hooks", `skills-${name}.json`);
|
|
16207
16208
|
};
|
|
16208
16209
|
var list2 = (value) => Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
|
|
16209
|
-
var EMPTY = {
|
|
16210
|
+
var EMPTY = {
|
|
16211
|
+
nudged: [],
|
|
16212
|
+
loaded: [],
|
|
16213
|
+
raw: [],
|
|
16214
|
+
stops: [],
|
|
16215
|
+
judges: [],
|
|
16216
|
+
model: null
|
|
16217
|
+
};
|
|
16210
16218
|
var readRaw = (file) => {
|
|
16211
16219
|
try {
|
|
16212
16220
|
return fs15.readFileSync(file, "utf8");
|
|
@@ -16222,7 +16230,8 @@ var parseMarker = (text) => {
|
|
|
16222
16230
|
loaded: list2(value.loaded),
|
|
16223
16231
|
raw: list2(value.raw),
|
|
16224
16232
|
stops: list2(value.stops),
|
|
16225
|
-
judges: list2(value.judges)
|
|
16233
|
+
judges: list2(value.judges),
|
|
16234
|
+
model: typeof value.model === "string" ? value.model : null
|
|
16226
16235
|
};
|
|
16227
16236
|
} catch {
|
|
16228
16237
|
return { ...EMPTY };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-opencode",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.34.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit OpenCode plugin — native tools, adaptive policy, and sixteen method skills",
|
|
6
6
|
"keywords": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typecheck": "tsc --noEmit"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@brainervirus/workit-core": "^8.
|
|
42
|
+
"@brainervirus/workit-core": "^8.34.0",
|
|
43
43
|
"@opencode/plugin": "2.0.18"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|