@chrisdudek/yg 5.0.0-alpha.6 → 5.0.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/README.md +1 -1
- package/dist/bin.js +9 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Your agent will ignore CLAUDE.md. Yggdrasil makes sure it doesn't.**
|
|
4
4
|
|
|
5
|
-
Architecture rules your agent can't ignore.
|
|
5
|
+
Architecture rules your agent can't ignore. Before it edits a file, your agent gets the few rules that apply — and writes to them. After, every change is checked before it moves on: by a script that runs locally for free, or by an LLM reviewer. A rule written as a script *runs* — your agent can't quietly optimize it away the way it drops a line in CLAUDE.md. Works with Claude Code, Cursor, Copilot, Codex, Cline, and more. Checks run against your code, not your diffs; the feedback is specific; the agent has to fix before it can move on.
|
|
6
6
|
|
|
7
7
|
See the [main README](https://github.com/krzysztofdudek/Yggdrasil#readme) for documentation, or visit
|
|
8
8
|
[krzysztofdudek.github.io/Yggdrasil](https://krzysztofdudek.github.io/Yggdrasil/).
|
package/dist/bin.js
CHANGED
|
@@ -13453,7 +13453,10 @@ var OllamaProvider = class {
|
|
|
13453
13453
|
messages: [{ role: "user", content: prompt }],
|
|
13454
13454
|
stream: false,
|
|
13455
13455
|
think: false,
|
|
13456
|
-
|
|
13456
|
+
// num_predict: -1 → generate until the model stops; no cap, so the verdict
|
|
13457
|
+
// is never truncated (a cut-off JSON would otherwise fail to parse and waste
|
|
13458
|
+
// a re-verification).
|
|
13459
|
+
options: { temperature: this.temperature, num_predict: -1 },
|
|
13457
13460
|
format: "json"
|
|
13458
13461
|
};
|
|
13459
13462
|
try {
|
|
@@ -13571,7 +13574,11 @@ var AnthropicProvider = class {
|
|
|
13571
13574
|
body: JSON.stringify({
|
|
13572
13575
|
model: this.model,
|
|
13573
13576
|
messages: [{ role: "user", content: prompt }],
|
|
13574
|
-
max_tokens
|
|
13577
|
+
// Never cap the verdict. The Anthropic API requires a max_tokens ceiling
|
|
13578
|
+
// (there is no "unlimited"), so set it far above any reviewer reply — a
|
|
13579
|
+
// verdict is hundreds of tokens; this is many times that — so it is never
|
|
13580
|
+
// truncated. A truncated reply still fails closed when parsed.
|
|
13581
|
+
max_tokens: 8192,
|
|
13575
13582
|
temperature: this.temperature
|
|
13576
13583
|
})
|
|
13577
13584
|
}, "anthropic");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrisdudek/yg",
|
|
3
|
-
"version": "5.0.0
|
|
4
|
-
"description": "Architecture rules your coding agent can't ignore.
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"description": "Architecture rules your AI coding agent can't ignore. It gets the rules for a file before it edits, and every change is checked — by a free local script or an LLM reviewer — before it moves on. Works with Claude Code, Cursor, Copilot, Codex, Cline.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"yg": "dist/bin.js"
|