@gobing-ai/ts-rule-engine 0.3.2 → 0.3.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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Resolve the absolute path to the rule presets bundled with
|
|
3
3
|
* `@gobing-ai/ts-rule-engine`.
|
|
4
4
|
*
|
|
5
|
-
* The directory ships
|
|
5
|
+
* The directory ships a generic example preset and category
|
|
6
6
|
* folders (`typescript`, `structure`, `quality`) so a consumer gets a working
|
|
7
7
|
* default ruleset without authoring any files. Pass the returned path as the
|
|
8
8
|
* lowest-priority entry to {@link loadPreset}'s `roots`, letting project-local
|
|
@@ -12,7 +12,7 @@ const defaultFs = new NodeSyncFileSystem();
|
|
|
12
12
|
* Resolve the absolute path to the rule presets bundled with
|
|
13
13
|
* `@gobing-ai/ts-rule-engine`.
|
|
14
14
|
*
|
|
15
|
-
* The directory ships
|
|
15
|
+
* The directory ships a generic example preset and category
|
|
16
16
|
* folders (`typescript`, `structure`, `quality`) so a consumer gets a working
|
|
17
17
|
* default ruleset without authoring any files. Pass the returned path as the
|
|
18
18
|
* lowest-priority entry to {@link loadPreset}'s `roots`, letting project-local
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobing-ai/ts-rule-engine",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "@gobing-ai/ts-rule-engine — Constraint rule schemas, loading, evaluation, and result formatting.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"release": "echo 'Manual publish is disabled. Releases go through GitHub Actions via Trusted Publishing — push a tag: git tag @gobing-ai/ts-rule-engine-v<version> && git push --tags' && exit 1"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@gobing-ai/ts-ai-runner": "^0.3.
|
|
53
|
-
"@gobing-ai/ts-infra": "^0.3.
|
|
54
|
-
"@gobing-ai/ts-runtime": "^0.3.
|
|
52
|
+
"@gobing-ai/ts-ai-runner": "^0.3.3",
|
|
53
|
+
"@gobing-ai/ts-infra": "^0.3.3",
|
|
54
|
+
"@gobing-ai/ts-runtime": "^0.3.3",
|
|
55
55
|
"yaml": "^2.7.0",
|
|
56
56
|
"zod": "^4.1.0"
|
|
57
57
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Example preset — demonstrates the extends mechanism by composing all three
|
|
2
|
+
# bundled rule categories (typescript, quality, structure).
|
|
3
|
+
#
|
|
4
|
+
# Load with: loadPreset('example', { roots: [bundledRulesRoot()] })
|
|
5
|
+
#
|
|
6
|
+
# Bundled with @gobing-ai/ts-rule-engine. A project may override individual rule
|
|
7
|
+
# files by placing same-named files under a local rules root that shadows the
|
|
8
|
+
# bundled copy.
|
|
9
|
+
name: example
|
|
10
|
+
extends:
|
|
11
|
+
- typescript
|
|
12
|
+
- quality
|
|
13
|
+
- structure
|
|
@@ -15,7 +15,7 @@ const defaultFs = new NodeSyncFileSystem();
|
|
|
15
15
|
* Resolve the absolute path to the rule presets bundled with
|
|
16
16
|
* `@gobing-ai/ts-rule-engine`.
|
|
17
17
|
*
|
|
18
|
-
* The directory ships
|
|
18
|
+
* The directory ships a generic example preset and category
|
|
19
19
|
* folders (`typescript`, `structure`, `quality`) so a consumer gets a working
|
|
20
20
|
* default ruleset without authoring any files. Pass the returned path as the
|
|
21
21
|
* lowest-priority entry to {@link loadPreset}'s `roots`, letting project-local
|
package/rules/recommended.yaml
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Recommended preset — portable rule categories for TypeScript projects.
|
|
2
|
-
# Use with: spur rule run --preset recommended
|
|
3
|
-
#
|
|
4
|
-
# Bundled with @gobing-ai/ts-rule-engine. A project may override individual rule
|
|
5
|
-
# files by placing same-named files under its local .spur/rules/ root.
|
|
6
|
-
name: recommended
|
|
7
|
-
extends:
|
|
8
|
-
- typescript
|
|
9
|
-
- structure
|
|
10
|
-
- quality
|