@fro.bot/systematic 1.4.0 → 1.5.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/cli.js +1 -1
- package/dist/{index-ymsavt2y.js → index-kjhs9jeg.js} +13 -2
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -186,6 +186,7 @@ import fs3 from "fs";
|
|
|
186
186
|
var cache = new Map;
|
|
187
187
|
var TOOL_MAPPINGS = [
|
|
188
188
|
[/\bTask\s+tool\b/gi, "delegate_task tool"],
|
|
189
|
+
[/\bTask\s+([\w-]+)\s*:/g, "delegate_task $1:"],
|
|
189
190
|
[/\bTask\s+([\w-]+)\s*\(/g, "delegate_task $1("],
|
|
190
191
|
[/\bTask\s*\(/g, "delegate_task("],
|
|
191
192
|
[/\bTask\b(?=\s+to\s+\w)/g, "delegate_task"],
|
|
@@ -199,7 +200,7 @@ var TOOL_MAPPINGS = [
|
|
|
199
200
|
[/\bGrep\b(?=\s+tool|\s+to\s+|\()/g, "grep"],
|
|
200
201
|
[/\bGlob\b(?=\s+tool|\s+to\s+|\()/g, "glob"],
|
|
201
202
|
[/\bWebFetch\b/g, "webfetch"],
|
|
202
|
-
[/\bSkill\b(?=\s+tool)/g, "skill"]
|
|
203
|
+
[/\bSkill\b(?=\s+tool|\s*\()/g, "skill"]
|
|
203
204
|
];
|
|
204
205
|
var PATH_REPLACEMENTS = [
|
|
205
206
|
[/\.claude\/skills\//g, ".opencode/skills/"],
|
|
@@ -238,14 +239,24 @@ function inferTemperature(name, description) {
|
|
|
238
239
|
}
|
|
239
240
|
return 0.3;
|
|
240
241
|
}
|
|
242
|
+
var CODE_BLOCK_PATTERN = /```[\s\S]*?```|`[^`\n]+`/g;
|
|
241
243
|
function transformBody(body) {
|
|
242
|
-
|
|
244
|
+
const codeBlocks = [];
|
|
245
|
+
let placeholderIndex = 0;
|
|
246
|
+
const withPlaceholders = body.replace(CODE_BLOCK_PATTERN, (match) => {
|
|
247
|
+
codeBlocks.push(match);
|
|
248
|
+
return `__CODE_BLOCK_${placeholderIndex++}__`;
|
|
249
|
+
});
|
|
250
|
+
let result = withPlaceholders;
|
|
243
251
|
for (const [pattern, replacement] of TOOL_MAPPINGS) {
|
|
244
252
|
result = result.replace(pattern, replacement);
|
|
245
253
|
}
|
|
246
254
|
for (const [pattern, replacement] of PATH_REPLACEMENTS) {
|
|
247
255
|
result = result.replace(pattern, replacement);
|
|
248
256
|
}
|
|
257
|
+
for (let i = 0;i < codeBlocks.length; i++) {
|
|
258
|
+
result = result.replace(`__CODE_BLOCK_${i}__`, codeBlocks[i]);
|
|
259
|
+
}
|
|
249
260
|
return result;
|
|
250
261
|
}
|
|
251
262
|
function removeFields(data, fieldsToRemove) {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fro.bot/systematic",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Structured engineering workflows for OpenCode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@opencode-ai/plugin": "^1.1.30",
|
|
56
56
|
"@types/bun": "latest",
|
|
57
57
|
"@types/js-yaml": "^4.0.9",
|
|
58
|
-
"@types/node": "^
|
|
58
|
+
"@types/node": "^24.0.0",
|
|
59
59
|
"conventional-changelog-conventionalcommits": "^9.0.0",
|
|
60
60
|
"markdownlint-cli": "^0.47.0",
|
|
61
61
|
"rimraf": "^6.1.2",
|