@orkestrel/scaffold 0.0.69 → 0.0.71
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 +8 -8
- package/dist/bin/main.js.map +1 -1
- package/dist/host/claude/agents/orkestrel.md +7 -7
- package/dist/host/guides/mcp.md +615 -63
- package/dist/host/guides/ollama.md +9 -8
- package/dist/host/guides/scaffold.md +19 -8
- package/dist/host/manifest.json +5 -5
- package/dist/src/core/index.cjs +11 -11
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.js +12 -12
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +4 -4
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.js +5 -5
- package/dist/src/server/index.js.map +1 -1
- package/package.json +8 -8
|
@@ -1002,7 +1002,7 @@ function pruneEmptiedDirectories(target, removed) {
|
|
|
1002
1002
|
* ```
|
|
1003
1003
|
*/
|
|
1004
1004
|
function readFileHex(root, path, limit = _src_core.MAX_ARTIFACT_BYTES) {
|
|
1005
|
-
if (!Number.isSafeInteger(limit) || limit < 0 || limit > _src_core.MAX_ARTIFACT_BYTES) throw new _src_core.ScaffoldError("INVALID", `Byte limit is outside the artifact ceiling at ${path}`, {
|
|
1005
|
+
if (!(0, _orkestrel_contract.isNumber)(limit) || !Number.isSafeInteger(limit) || limit < 0 || limit > _src_core.MAX_ARTIFACT_BYTES) throw new _src_core.ScaffoldError("INVALID", `Byte limit is outside the artifact ceiling at ${path}`, {
|
|
1006
1006
|
root,
|
|
1007
1007
|
path,
|
|
1008
1008
|
limit
|
|
@@ -2737,7 +2737,7 @@ var WriteTransaction = class {
|
|
|
2737
2737
|
}
|
|
2738
2738
|
#preflight() {
|
|
2739
2739
|
for (const anchor of this.#created) {
|
|
2740
|
-
if (
|
|
2740
|
+
if ((0, _orkestrel_contract.isString)(anchor)) throw new _src_core.ScaffoldError("WRITE", `The directory at ${anchor} changed while writing.`, {
|
|
2741
2741
|
target: this.#target,
|
|
2742
2742
|
path: anchor
|
|
2743
2743
|
});
|
|
@@ -2801,7 +2801,7 @@ var WriteTransaction = class {
|
|
|
2801
2801
|
if (!cleared.success) residue.push(cleared.error);
|
|
2802
2802
|
}
|
|
2803
2803
|
for (const created of [...this.#created].reverse()) {
|
|
2804
|
-
const path =
|
|
2804
|
+
const path = (0, _orkestrel_contract.isString)(created) ? created : created.path;
|
|
2805
2805
|
const removed = (0, _orkestrel_contract.attempt)(() => (0, node_fs.rmdirSync)(path));
|
|
2806
2806
|
if (!removed.success && !matchesMissingPath(removed.error)) residue.push(removed.error);
|
|
2807
2807
|
}
|
|
@@ -4198,7 +4198,7 @@ var Upstream = class {
|
|
|
4198
4198
|
const edges = [];
|
|
4199
4199
|
for (const [name, range] of Object.entries(declared)) {
|
|
4200
4200
|
if (edges.length >= _src_core.MAX_COLLECTION_ITEMS) break;
|
|
4201
|
-
if (
|
|
4201
|
+
if (!(0, _orkestrel_contract.isString)(range) || range.length === 0 || range.length > _src_core.MAX_RANGE_LENGTH) continue;
|
|
4202
4202
|
if (_src_core.CONTROL_CHARACTER_PATTERN.test(name) || _src_core.CONTROL_CHARACTER_PATTERN.test(range)) continue;
|
|
4203
4203
|
if (name.length === 0 || name.length > _src_core.MAX_DEPENDENCY_NAME_LENGTH) continue;
|
|
4204
4204
|
edges.push({
|