@fro.bot/systematic 3.24.0 → 3.24.1
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 +31 -1
- package/dist/lib/skill-tool.d.ts +10 -0
- package/package.json +5 -5
- package/skills/ce-compound/assets/resolution-template.md +2 -0
- package/skills/ce-compound-refresh/assets/resolution-template.md +2 -0
- package/skills/compound-docs/SKILL.md +9 -1
- package/skills/compound-docs/assets/resolution-template.md +2 -0
package/dist/index.js
CHANGED
|
@@ -894,6 +894,7 @@ function discoverSkillFiles(dir, limit = 10) {
|
|
|
894
894
|
}
|
|
895
895
|
|
|
896
896
|
// src/lib/skill-tool.ts
|
|
897
|
+
var SKILL_TOOL_NAME = "systematic_skill";
|
|
897
898
|
var DEFAULT_MAX_ENTRIES = 32;
|
|
898
899
|
var DEFAULT_TTL_MS = 300000;
|
|
899
900
|
var STORE_KEY_DELIMITER = "\x00";
|
|
@@ -929,7 +930,7 @@ function createSkillOutputStore(options) {
|
|
|
929
930
|
}
|
|
930
931
|
var TRUNCATION_MARKER_RE = /\n\n\.\.\.\d+ (?:lines|bytes) truncated\.\.\.\n\n/g;
|
|
931
932
|
function restoreSkillOutput(store, input, output, options) {
|
|
932
|
-
if (!isRecord(input) || input.tool !==
|
|
933
|
+
if (!isRecord(input) || input.tool !== SKILL_TOOL_NAME)
|
|
933
934
|
return;
|
|
934
935
|
const { sessionID, callID } = input;
|
|
935
936
|
if (typeof sessionID !== "string" || sessionID === "")
|
|
@@ -958,6 +959,30 @@ function restoreSkillOutput(store, input, output, options) {
|
|
|
958
959
|
output.metadata.truncated = false;
|
|
959
960
|
delete output.metadata.outputPath;
|
|
960
961
|
}
|
|
962
|
+
function restoreCompactedSkillResults(output) {
|
|
963
|
+
if (!isRecord(output) || !Array.isArray(output.messages))
|
|
964
|
+
return;
|
|
965
|
+
for (const message of output.messages) {
|
|
966
|
+
if (!isRecord(message) || !Array.isArray(message.parts))
|
|
967
|
+
continue;
|
|
968
|
+
for (const part of message.parts)
|
|
969
|
+
restoreCompactedPart(part);
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
function restoreCompactedPart(part) {
|
|
973
|
+
if (!isRecord(part) || part.type !== "tool")
|
|
974
|
+
return;
|
|
975
|
+
if (part.tool !== SKILL_TOOL_NAME)
|
|
976
|
+
return;
|
|
977
|
+
const { state } = part;
|
|
978
|
+
if (!isRecord(state) || state.status !== "completed")
|
|
979
|
+
return;
|
|
980
|
+
const { time } = state;
|
|
981
|
+
if (!isRecord(time) || Array.isArray(time) || !time.compacted)
|
|
982
|
+
return;
|
|
983
|
+
const { compacted: _compacted, ...rest } = time;
|
|
984
|
+
state.time = rest;
|
|
985
|
+
}
|
|
961
986
|
function createSkillTool(options) {
|
|
962
987
|
const { bundledSkillsDir, disabledSkills, outputStore } = options;
|
|
963
988
|
const buildDescription = () => buildSkillToolDescription({ bundledSkillsDir, disabledSkills });
|
|
@@ -1061,6 +1086,11 @@ var initializePlugin = async ({ client, directory }) => {
|
|
|
1061
1086
|
});
|
|
1062
1087
|
} catch {}
|
|
1063
1088
|
},
|
|
1089
|
+
"experimental.chat.messages.transform": async (_input, output) => {
|
|
1090
|
+
try {
|
|
1091
|
+
restoreCompactedSkillResults(output);
|
|
1092
|
+
} catch {}
|
|
1093
|
+
},
|
|
1064
1094
|
"experimental.chat.system.transform": async (_input, output) => {
|
|
1065
1095
|
if (!hasLoggedInit) {
|
|
1066
1096
|
hasLoggedInit = true;
|
package/dist/lib/skill-tool.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ToolDefinition } from '@opencode-ai/plugin';
|
|
2
2
|
export { discoverSkillFiles } from './skill-resolver.js';
|
|
3
|
+
/** The registry key of the skill tool; the host reports it as the part's `tool`. */
|
|
4
|
+
export declare const SKILL_TOOL_NAME = "systematic_skill";
|
|
3
5
|
export interface SkillOutputStore {
|
|
4
6
|
put(sessionID: string, callID: string, output: string): void;
|
|
5
7
|
take(sessionID: string, callID: string): string | undefined;
|
|
@@ -15,6 +17,14 @@ export declare function createSkillOutputStore(options?: SkillOutputStoreOptions
|
|
|
15
17
|
export declare function restoreSkillOutput(store: SkillOutputStore, input: unknown, output: unknown, options: {
|
|
16
18
|
userOutputLimitSet: boolean;
|
|
17
19
|
}): void;
|
|
20
|
+
/**
|
|
21
|
+
* Clears the `compacted` flag of completed skill-tool results in a request the
|
|
22
|
+
* host is assembling, so the model receives the stored body and not the prune
|
|
23
|
+
* placeholder. Each part gets a fresh `state.time` without `compacted`, so a
|
|
24
|
+
* failure partway through leaves every part valid. The host rebuilds the
|
|
25
|
+
* request from storage each time, so nothing persists.
|
|
26
|
+
*/
|
|
27
|
+
export declare function restoreCompactedSkillResults(output: unknown): void;
|
|
18
28
|
export interface SkillToolOptions {
|
|
19
29
|
bundledSkillsDir: string;
|
|
20
30
|
disabledSkills: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fro.bot/systematic",
|
|
3
|
-
"version": "3.24.
|
|
3
|
+
"version": "3.24.1",
|
|
4
4
|
"description": "Compound-engineering loops for OpenCode, Pi, and Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://fro.bot/systematic",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@opencode-ai/plugin": "^1.1.30",
|
|
85
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
85
|
+
"@earendil-works/pi-coding-agent": "^0.99.0",
|
|
86
86
|
"typebox": "^1.1.38"
|
|
87
87
|
},
|
|
88
88
|
"peerDependenciesMeta": {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@biomejs/biome": "2.5.15",
|
|
101
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
101
|
+
"@earendil-works/pi-coding-agent": "0.99.2",
|
|
102
102
|
"@opencode-ai/plugin": "1.19.3",
|
|
103
103
|
"@opencode-ai/sdk": "1.19.3",
|
|
104
104
|
"@semantic-release/exec": "7.1.0",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"rimraf": "6.1.3",
|
|
115
115
|
"semantic-release": "25.0.9",
|
|
116
116
|
"semantic-release-export-data": "1.2.0",
|
|
117
|
-
"typebox": "1.4.
|
|
117
|
+
"typebox": "1.4.2",
|
|
118
118
|
"typescript": "7.0.2"
|
|
119
119
|
},
|
|
120
120
|
"dependencies": {
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"zod": "4.6.7"
|
|
124
124
|
},
|
|
125
125
|
"overrides": {
|
|
126
|
-
"@earendil-works/pi-ai": "0.
|
|
126
|
+
"@earendil-works/pi-ai": "0.99.2",
|
|
127
127
|
"brace-expansion": "^5.0.8",
|
|
128
128
|
"conventional-changelog-writer": ">=9",
|
|
129
129
|
"devalue": "^5.9.3",
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Choose the template matching the problem_type track (see `references/schema.yaml`).
|
|
4
4
|
|
|
5
|
+
**Citing code:** write a repo-relative path with the line or range (`<file>:<line>` or `<file>:<start>-<end>`), never a bare file name, and put the backticked symbol it points at in the same sentence. Link a tag or commit for code outside the repo or deleted code. Write placeholders such as `<file>:<line>` in examples. The content-integrity gate checks citations in `docs/solutions/`.
|
|
6
|
+
|
|
5
7
|
---
|
|
6
8
|
|
|
7
9
|
## Bug Track Template
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Choose the template matching the problem_type track (see `references/schema.yaml`).
|
|
4
4
|
|
|
5
|
+
**Citing code:** write a repo-relative path with the line or range (`<file>:<line>` or `<file>:<start>-<end>`), never a bare file name, and put the backticked symbol it points at in the same sentence. Link a tag or commit for code outside the repo or deleted code. Write placeholders such as `<file>:<line>` in examples. The content-integrity gate checks citations in `docs/solutions/`.
|
|
6
|
+
|
|
5
7
|
---
|
|
6
8
|
|
|
7
9
|
## Bug Track Template
|
|
@@ -426,7 +426,7 @@ Documentation is successful when ALL of the following are true:
|
|
|
426
426
|
**Good documentation has:**
|
|
427
427
|
|
|
428
428
|
- ✅ Exact error messages (copy-paste from output)
|
|
429
|
-
- ✅ Specific file:line references
|
|
429
|
+
- ✅ Specific file:line references (see Citing code below)
|
|
430
430
|
- ✅ Observable symptoms (what you saw, not interpretations)
|
|
431
431
|
- ✅ Failed attempts documented (helps avoid wrong paths)
|
|
432
432
|
- ✅ Technical explanation (not just "what" but "why")
|
|
@@ -434,6 +434,14 @@ Documentation is successful when ALL of the following are true:
|
|
|
434
434
|
- ✅ Prevention guidance (how to catch early)
|
|
435
435
|
- ✅ Cross-references (related issues)
|
|
436
436
|
|
|
437
|
+
**Citing code:**
|
|
438
|
+
|
|
439
|
+
- Write a repo-relative path with the line or range, as `<file>:<line>` or `<file>:<start>-<end>`. Never cite a bare file name.
|
|
440
|
+
- Put the backticked symbol the citation points at in the same sentence, so a moved line is caught.
|
|
441
|
+
- For code outside the repo, or code that has been deleted, link a tag or commit, not a path.
|
|
442
|
+
- In examples, write placeholders such as `<file>:<line>`, not real citations.
|
|
443
|
+
- The content-integrity gate checks the citations in `docs/solutions/` and fails on a missing file, a line outside the file, a span of only blanks or comments, or a named symbol that is not in the span.
|
|
444
|
+
|
|
437
445
|
**Avoid:**
|
|
438
446
|
|
|
439
447
|
- ❌ Vague descriptions ("something was wrong")
|
|
@@ -46,6 +46,8 @@ tags: [keyword1, keyword2, keyword3]
|
|
|
46
46
|
|
|
47
47
|
[The actual fix that worked - provide specific details]
|
|
48
48
|
|
|
49
|
+
[Cite code as a repo-relative `<file>:<line>` or `<file>:<start>-<end>`, with the backticked symbol in the same sentence. Link a tag or commit for code outside the repo or deleted code. The content-integrity gate checks these citations.]
|
|
50
|
+
|
|
49
51
|
**Code changes** (if applicable):
|
|
50
52
|
```ruby
|
|
51
53
|
# Before (broken):
|