@chrisdudek/yg 5.0.0-alpha.5 → 5.0.0-alpha.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/README.md +2 -0
- package/dist/bin.js +3712 -723
- package/dist/structure.js +6 -0
- package/graph-schemas/yg-config.yaml +1 -3
- package/graph-schemas/yg-node.yaml +5 -0
- package/package.json +4 -1
package/dist/structure.js
CHANGED
|
@@ -61,6 +61,7 @@ var UndeclaredFsReadError = class extends Error {
|
|
|
61
61
|
this.path = path9;
|
|
62
62
|
this.name = "UndeclaredFsReadError";
|
|
63
63
|
}
|
|
64
|
+
path;
|
|
64
65
|
};
|
|
65
66
|
function isAllowed(p, set) {
|
|
66
67
|
if (p === "") return false;
|
|
@@ -186,6 +187,7 @@ var UndeclaredGraphReadError = class extends Error {
|
|
|
186
187
|
this.nodePath = nodePath;
|
|
187
188
|
this.name = "UndeclaredGraphReadError";
|
|
188
189
|
}
|
|
190
|
+
nodePath;
|
|
189
191
|
};
|
|
190
192
|
function computeAllowedNodePaths(currentPath, graph) {
|
|
191
193
|
const allowed = /* @__PURE__ */ new Set([currentPath]);
|
|
@@ -635,6 +637,7 @@ var ParseAstNotPrewarmedError = class extends Error {
|
|
|
635
637
|
this.filePath = filePath;
|
|
636
638
|
this.name = "ParseAstNotPrewarmedError";
|
|
637
639
|
}
|
|
640
|
+
filePath;
|
|
638
641
|
};
|
|
639
642
|
function createCtxParsers(params) {
|
|
640
643
|
const { allowedSet, projectRoot, touchedFiles, astCache, recorder, subjectFiles } = params;
|
|
@@ -943,6 +946,8 @@ var SuppressMarkerError = class extends Error {
|
|
|
943
946
|
this.line = line;
|
|
944
947
|
this.name = "SuppressMarkerError";
|
|
945
948
|
}
|
|
949
|
+
file;
|
|
950
|
+
line;
|
|
946
951
|
code = "SUPPRESS_MARKER_MISSING_REASON";
|
|
947
952
|
};
|
|
948
953
|
var RE_SINGLE = /\byg-suppress\(\s*([^)]+?)\s*\)\s*(.+)?$/m;
|
|
@@ -1259,6 +1264,7 @@ ${data.next}`);
|
|
|
1259
1264
|
this.messageData = data;
|
|
1260
1265
|
this.name = "StructureRunnerError";
|
|
1261
1266
|
}
|
|
1267
|
+
code;
|
|
1262
1268
|
messageData;
|
|
1263
1269
|
};
|
|
1264
1270
|
async function buildOwnFiles(node, projectRoot, touchedFiles) {
|
|
@@ -8,7 +8,7 @@ version: "5.0.0" # managed by CLI — do not edit manually. Tra
|
|
|
8
8
|
quality: # optional — quality thresholds
|
|
9
9
|
max_direct_relations: 10 # maximum outgoing relations per node (warning if above)
|
|
10
10
|
|
|
11
|
-
parallel: 1 # optional — concurrency limit for
|
|
11
|
+
parallel: 1 # optional — concurrency limit for the yg check --approve fill (positive integer, default: 1)
|
|
12
12
|
|
|
13
13
|
debug: false # optional — when true, appends all command output to .yggdrasil/.debug.log
|
|
14
14
|
# Default: false (off). Log is append-only; rotate or delete manually.
|
|
@@ -31,8 +31,6 @@ reviewer: # required — aspect verification during yg c
|
|
|
31
31
|
model: "qwen3.5:9b" # model id
|
|
32
32
|
endpoint: "http://localhost:11434" # custom endpoint (required for ollama, openai-compatible)
|
|
33
33
|
temperature: 0 # reduces variability — keep at 0
|
|
34
|
-
max_tokens: auto # auto = query provider, or explicit positive integer
|
|
35
|
-
context_length_field: "" # ollama: model_info key for context window size
|
|
36
34
|
# timeout: 300 # Per-call timeout in SECONDS (default 300). Only CLI providers.
|
|
37
35
|
# max_prompt_chars: 200000 # optional — assembled reviewer-prompt character cap (positive integer).
|
|
38
36
|
# Checked deterministically before the LLM call. Absent = unlimited.
|
|
@@ -29,6 +29,11 @@ ports: # optional — named entry points with required as
|
|
|
29
29
|
when: <predicate> # optional — object form with per-attach applicability filter
|
|
30
30
|
|
|
31
31
|
relations: # optional — outgoing dependencies to other nodes
|
|
32
|
+
# Load-bearing, not just documentation: a built-in deterministic check
|
|
33
|
+
# parses this node's mapped code and REFUSES it (relation-undeclared-dependency,
|
|
34
|
+
# always an error) if it depends on another mapped node without a relation here.
|
|
35
|
+
# One-directional — a declared relation needs no code behind it. See
|
|
36
|
+
# `yg knowledge read ports-and-relations`.
|
|
32
37
|
- target: other/module-path # required — node path relative to model/
|
|
33
38
|
type: calls # required — calls | uses | extends | implements | emits | listens
|
|
34
39
|
consumes: [port-name] # optional — port names consumed from target
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrisdudek/yg",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.6",
|
|
4
4
|
"description": "Architecture rules your coding agent can't ignore. Written in Markdown, verified on every change, enforced in the agent's loop — not after on a PR. Works with Claude Code, Cursor, Copilot, Codex, Cline.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -107,5 +107,8 @@
|
|
|
107
107
|
"typescript": "^6.0.3",
|
|
108
108
|
"typescript-eslint": "^8.60.0",
|
|
109
109
|
"vitest": "^4.1.8"
|
|
110
|
+
},
|
|
111
|
+
"overrides": {
|
|
112
|
+
"esbuild": "^0.28.1"
|
|
110
113
|
}
|
|
111
114
|
}
|