xdrs-core 0.3.7 → 0.3.8
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 -2
- package/bin/filedist.js +3 -0
- package/package.json +5 -5
- package/bin/npmdata.js +0 -3
package/README.md
CHANGED
|
@@ -91,13 +91,13 @@ Each scope manages its own set of XDRs independently. Scope owners discuss and e
|
|
|
91
91
|
|
|
92
92
|
### Distribution
|
|
93
93
|
|
|
94
|
-
Once a set of decisions is ready to share, scope owners pack the relevant `.xdrs/[scope]/` folder into a versioned npm package using a tool such as [
|
|
94
|
+
Once a set of decisions is ready to share, scope owners pack the relevant `.xdrs/[scope]/` folder into a versioned npm package using a tool such as [filedist](https://github.com/flaviostutz/filedist) and publish it to an npm registry, either public or a company-internal one. Versioning gives consumers explicit control over which revision of a scope's decisions they adopt, avoiding situations where a single breaking policy change is forced on all consumers at once.
|
|
95
95
|
|
|
96
96
|
The same applies to skills: because they live alongside XDRs inside the scope folder, they are included in the same package and published together.
|
|
97
97
|
|
|
98
98
|
### Usage
|
|
99
99
|
|
|
100
|
-
A project that wants to follow a scope's decisions adds the corresponding npm package as a regular dependency. Using a tool such as [
|
|
100
|
+
A project that wants to follow a scope's decisions adds the corresponding npm package as a regular dependency. Using a tool such as [filedist](https://github.com/flaviostutz/filedist), the package contents are unpacked into the project's `.xdrs/` folder at install or update time. Updating the dependency version pulls in the latest XDRs and skills for that scope, keeping the project aligned with the scope owners' current decisions.
|
|
101
101
|
|
|
102
102
|
Multiple scope packages can be combined in the same workspace by listing them as separate dependencies. Scope precedence (defined in `.xdrs/index.md`) determines which decisions take effect when scopes overlap.
|
|
103
103
|
|
package/bin/filedist.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xdrs-core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "A standard way to organize Decision Records (XDRs) across scopes, subjects, and teams so that AI agents can reliably query and follow them.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"package.json",
|
|
19
19
|
"AGENTS.md",
|
|
20
20
|
"AGENTS.local.md",
|
|
21
|
-
"bin/
|
|
21
|
+
"bin/filedist.js"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"
|
|
24
|
+
"filedist": "^0.21.2"
|
|
25
25
|
},
|
|
26
|
-
"
|
|
26
|
+
"filedist": {
|
|
27
27
|
"sets": [
|
|
28
28
|
{
|
|
29
29
|
"selector": {
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
}
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
|
-
"bin": "bin/
|
|
65
|
+
"bin": "bin/filedist.js"
|
|
66
66
|
}
|
package/bin/npmdata.js
DELETED