@orkestrel/scaffold 0.0.99 → 0.0.101
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/dist/bin/main.js +74 -19
- package/dist/bin/main.js.map +1 -1
- package/dist/host/claude/rules/workspace.md +6 -0
- package/dist/host/configs/helpers.ts +8 -0
- package/dist/host/dotfiles/gitignore +1 -0
- package/dist/host/dotfiles/oxlintrc.json +10 -0
- package/dist/host/guides/scaffold.md +26 -4
- package/dist/host/manifest.json +8 -8
- package/dist/host/tests/config.test.ts +99 -0
- package/dist/host/tests/setupPolicy.ts +31 -0
- package/dist/src/core/index.cjs +103 -4
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +40 -1
- package/dist/src/core/index.d.ts +40 -1
- package/dist/src/core/index.js +101 -5
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +9 -3
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +7 -1
- package/dist/src/server/index.d.ts +7 -1
- package/dist/src/server/index.js +11 -5
- package/dist/src/server/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2170,8 +2170,9 @@ var isManifestRegionSet = (0, _orkestrel_contract.recordOf)({
|
|
|
2170
2170
|
additions: (0, _orkestrel_contract.recordOf)({
|
|
2171
2171
|
runtime: isDependencies,
|
|
2172
2172
|
development: isDependencies
|
|
2173
|
-
})
|
|
2174
|
-
|
|
2173
|
+
}),
|
|
2174
|
+
overrides: (0, _orkestrel_contract.compileGuard)((0, _orkestrel_contract.recordShape)((0, _orkestrel_contract.recordShape)((0, _orkestrel_contract.stringShape)())))
|
|
2175
|
+
}, ["additions", "overrides"]);
|
|
2175
2176
|
/** Narrows a value to a bounded list of fetched guide mirrors. */
|
|
2176
2177
|
var isMirrors = (0, _orkestrel_contract.andOf)(_src_core.isCollection, (0, _orkestrel_contract.arrayOf)(_src_core.isMirror));
|
|
2177
2178
|
/** Narrows a value to a bounded list of fleet catalog rows. */
|
|
@@ -3181,6 +3182,9 @@ var Materializer = class {
|
|
|
3181
3182
|
* the manifest only through `additions`, which inserts it into the section its
|
|
3182
3183
|
* list names in key order, creating that section when the manifest lacks it,
|
|
3183
3184
|
* before the ranges are rewritten.
|
|
3185
|
+
* Scoped npm overrides insert absent ancestors and leaves and replace owned
|
|
3186
|
+
* string leaves. Malformed ancestors, duplicate selected keys, and non-string
|
|
3187
|
+
* owned leaves refuse the entire manifest write.
|
|
3184
3188
|
*
|
|
3185
3189
|
* The regions refuse differently because their targets differ. A range
|
|
3186
3190
|
* the manifest does not declare is the caller's mistake and throws. A script
|
|
@@ -3784,11 +3788,13 @@ var Materializer = class {
|
|
|
3784
3788
|
}
|
|
3785
3789
|
#redeclare(regions) {
|
|
3786
3790
|
return (text) => {
|
|
3791
|
+
const overridden = (0, _src_core.replaceManifestOverrides)(text, regions.overrides ?? {});
|
|
3792
|
+
if (overridden === void 0) throw this.#error("INVALID", "The manifest cannot safely rewrite the selected npm overrides.");
|
|
3787
3793
|
const additions = regions.additions ?? {
|
|
3788
3794
|
runtime: [],
|
|
3789
3795
|
development: []
|
|
3790
3796
|
};
|
|
3791
|
-
const declared = (0, _src_core.insertManifestDependencies)(
|
|
3797
|
+
const declared = (0, _src_core.insertManifestDependencies)(overridden, additions);
|
|
3792
3798
|
if (declared === void 0) {
|
|
3793
3799
|
const names = [...additions.runtime, ...additions.development].map(({ name }) => name);
|
|
3794
3800
|
throw this.#error("INVALID", `The manifest cannot declare ${names.join(", ")}: it already declares one of them, or the section that receives them is not an object of version strings.`, { names: names.length });
|