@salaros/ai-harness 0.3.5 → 0.3.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salaros/ai-harness",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Installs and updates the agent harness from its upstream repository: hooks, skills, agents and the documentation chain, merged into an existing repository without touching its own work.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ai-harness": "scripts/update-harness.js"
|
|
@@ -670,7 +670,11 @@ function plan({ upstream, target, rows, head, ref, previous, options, stamp = {}
|
|
|
670
670
|
add({ phase: "skills, merged by name" });
|
|
671
671
|
entries.push(...planSkills(upstream, target, head, skills));
|
|
672
672
|
|
|
673
|
-
|
|
673
|
+
// A list of strings on one line, as Prettier writes it: a project formatting its JSON with it
|
|
674
|
+
// would otherwise reject the receipt at every push, and the next update would undo the fix.
|
|
675
|
+
const receipt = JSON.stringify({ template: TEMPLATE, ref, commit: head, ...stamp, skeletons: Object.keys(SKELETONS) }, null, 2)
|
|
676
|
+
.replace(/\[\n\s+("[^"\n]*"(?:,\n\s+"[^"\n]*")*)\n\s*\]/g, (all, items) => `[${items.split(/,\n\s+/).join(", ")}]`);
|
|
677
|
+
add({ file: LOCK, silent: true, write: receipt + "\n" });
|
|
674
678
|
return { entries, notices, base };
|
|
675
679
|
}
|
|
676
680
|
|