@orkestrel/scaffold 0.0.123 → 0.0.125
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/agents/skills/orkestrel-publish/scripts/steps.js +523 -0
- package/dist/agents/skills/orkestrel-publish/scripts/wave.js +70 -11
- package/dist/bin/main.js +18 -18
- package/dist/bin/main.js.map +1 -1
- package/dist/host/agents/orchestration.md +5 -1
- package/dist/host/agents/platforms/windows.md +9 -1
- package/dist/host/agents/skills/orkestrel-dispatch/SKILL.md +1 -1
- package/dist/host/agents/skills/orkestrel-falsify/references/brief.md +1 -0
- package/dist/host/agents/skills/orkestrel-harden/references/methods.md +30 -2
- package/dist/host/agents/skills/orkestrel-parallel/SKILL.md +1 -0
- package/dist/host/agents/skills/orkestrel-parallel/references/t3.md +5 -1
- package/dist/host/agents/skills/orkestrel-publish/SKILL.md +1 -0
- package/dist/host/agents/skills/orkestrel-publish/references/release.md +2 -2
- package/dist/host/agents/skills/orkestrel-publish/references/wave.md +23 -6
- package/dist/host/agents/skills/orkestrel-publish/scripts/steps.ts +654 -0
- package/dist/host/agents/skills/orkestrel-publish/scripts/wave.ts +79 -14
- package/dist/host/claude/agents/orkestrel.md +45 -45
- package/dist/host/claude/rules/patterns.md +1 -1
- package/dist/host/claude/rules/portability.md +2 -0
- package/dist/host/claude/rules/quality.md +3 -1
- package/dist/host/claude/rules/tests.md +3 -1
- package/dist/host/guides/agent.md +349 -244
- package/dist/host/guides/brief.md +52 -48
- package/dist/host/guides/browser.md +2 -2
- package/dist/host/guides/contract.md +226 -104
- package/dist/host/guides/database.md +12 -12
- package/dist/host/guides/interpret.md +531 -155
- package/dist/host/guides/mcp.md +183 -61
- package/dist/host/guides/ndjson.md +47 -34
- package/dist/host/guides/ollama.md +123 -66
- package/dist/host/guides/program.md +117 -39
- package/dist/host/guides/qualifier.md +110 -59
- package/dist/host/guides/rater.md +85 -32
- package/dist/host/guides/reason.md +377 -114
- package/dist/host/guides/scaffold.md +20 -12
- package/dist/host/guides/study.md +580 -483
- package/dist/host/guides/tool.md +163 -58
- package/dist/host/guides/toolbox.md +159 -80
- package/dist/host/guides/workflow.md +44 -25
- package/dist/host/manifest.json +41 -35
- package/dist/src/core/index.cjs +17 -17
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.js +17 -17
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +23 -11
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +10 -6
- package/dist/src/server/index.d.ts +10 -6
- package/dist/src/server/index.js +23 -11
- package/dist/src/server/index.js.map +1 -1
- package/package.json +17 -17
|
@@ -4286,7 +4286,7 @@ var Upstream = class {
|
|
|
4286
4286
|
return this.#emitter;
|
|
4287
4287
|
}
|
|
4288
4288
|
/**
|
|
4289
|
-
* Looks up the highest release each declared range admits.
|
|
4289
|
+
* Looks up the highest eligible release each declared range admits.
|
|
4290
4290
|
*
|
|
4291
4291
|
* @param dependencies - The declared dependencies to look up.
|
|
4292
4292
|
* @returns One release verdict per dependency, in input order.
|
|
@@ -4296,10 +4296,14 @@ var Upstream = class {
|
|
|
4296
4296
|
*
|
|
4297
4297
|
* @remarks
|
|
4298
4298
|
* The reader selects across the packument's stable version map before any
|
|
4299
|
-
* collection bound can truncate it.
|
|
4300
|
-
*
|
|
4301
|
-
*
|
|
4302
|
-
*
|
|
4299
|
+
* collection bound can truncate it. A version whose entry carries a non-empty
|
|
4300
|
+
* string `deprecated` field is never eligible. When `dist-tags.latest` reads as a
|
|
4301
|
+
* version, it caps `*` and every range in its own major; a range on another major
|
|
4302
|
+
* reads the top of that major. A map whose admitted versions are all ineligible
|
|
4303
|
+
* reads `unmatched`. A map holding no admitted version falls back to
|
|
4304
|
+
* `dist-tags.latest` only when that version satisfies the declared range. The
|
|
4305
|
+
* verdict's `major` field carries the stable major from the `latest` tag when
|
|
4306
|
+
* that tag can be read.
|
|
4303
4307
|
*
|
|
4304
4308
|
* @example
|
|
4305
4309
|
* ```ts
|
|
@@ -4535,7 +4539,7 @@ var Upstream = class {
|
|
|
4535
4539
|
name: dependency.name,
|
|
4536
4540
|
range: dependency.range,
|
|
4537
4541
|
lookup: outcome.lookup === "found" ? "unmatched" : outcome.lookup,
|
|
4538
|
-
note: outcome.lookup
|
|
4542
|
+
note: outcome.lookup !== "found" ? outcome.note : this.#admitted(outcome.content, dependency.range).length > 0 ? "every version the range admits is deprecated or above the latest tag" : UNREADABLE_VERSION_NOTE,
|
|
4539
4543
|
...major === void 0 ? {} : { major }
|
|
4540
4544
|
} : {
|
|
4541
4545
|
name: dependency.name,
|
|
@@ -4680,13 +4684,21 @@ var Upstream = class {
|
|
|
4680
4684
|
return _src_core.CONTROL_CHARACTER_PATTERN.test(latest) ? void 0 : latest;
|
|
4681
4685
|
}
|
|
4682
4686
|
#releaseVersion(content, range) {
|
|
4687
|
+
const latest = this.#latest(content);
|
|
4688
|
+
const admitted = this.#admitted(content, range);
|
|
4689
|
+
if (admitted.length === 0) return latest !== void 0 && this.#admits(range, latest) ? latest : void 0;
|
|
4690
|
+
const ceiling = this.#ceiling(range, latest);
|
|
4691
|
+
return admitted.filter(([version, entry]) => !((0, _orkestrel_contract.isRecord)(entry) && (0, _orkestrel_contract.isString)(entry.deprecated) && entry.deprecated.length > 0) && (ceiling === void 0 || (0, _src_core.compareVersions)(version, ceiling) <= 0)).reduce((highest, [version]) => highest === void 0 || (0, _src_core.compareVersions)(version, highest) > 0 ? version : highest, void 0);
|
|
4692
|
+
}
|
|
4693
|
+
#admitted(content, range) {
|
|
4683
4694
|
const parsed = (0, _orkestrel_contract.parseJSON)(content);
|
|
4684
|
-
if (!(0, _orkestrel_contract.isRecord)(parsed)) return
|
|
4695
|
+
if (!(0, _orkestrel_contract.isRecord)(parsed)) return [];
|
|
4685
4696
|
const versions = parsed.versions;
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4697
|
+
return (0, _orkestrel_contract.isRecord)(versions) ? Object.entries(versions).filter(([version]) => this.#admits(range, version)) : [];
|
|
4698
|
+
}
|
|
4699
|
+
#ceiling(range, latest) {
|
|
4700
|
+
const major = latest === void 0 ? void 0 : (0, _src_core.extractVersion)(latest)?.[0];
|
|
4701
|
+
return major !== void 0 && (range === "*" || (0, _src_core.extractRangeMajor)(range) === major) ? latest : void 0;
|
|
4690
4702
|
}
|
|
4691
4703
|
#admits(range, version) {
|
|
4692
4704
|
const extracted = (0, _src_core.extractVersion)(version);
|