@maestria/opencode 0.2.2 → 0.2.3
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 +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -153,6 +153,13 @@ export const MaestriaPlugin = async () => {
|
|
|
153
153
|
...agents,
|
|
154
154
|
};
|
|
155
155
|
},
|
|
156
|
+
"experimental.chat.system.transform": async (_input, output) => {
|
|
157
|
+
// Avoid re-injecting after compaction — check for existing marker
|
|
158
|
+
const hasAgentMarker = output.system.some((s) => s.includes("# Agent Instructions"));
|
|
159
|
+
if (!hasAgentMarker) {
|
|
160
|
+
output.system.push("# Agent Instructions");
|
|
161
|
+
}
|
|
162
|
+
},
|
|
156
163
|
"experimental.session.compacting": async (_input, output) => {
|
|
157
164
|
output.context.push("Session was compacted. Task tracking is maintained via todowrite. " +
|
|
158
165
|
"Active context (files, decisions, blockers) was captured before compaction. " +
|