@orkestrel/scaffold 0.0.119 → 0.0.120
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 +15 -15
- package/dist/bin/main.js.map +1 -1
- package/dist/host/agents/skills/orkestrel-journey/references/layer.md +10 -10
- package/dist/host/agents/skills/orkestrel-journey/references/statechart.md +1 -1
- package/dist/host/agents/skills/orkestrel-journey/references/styles.md +3 -3
- package/dist/host/claude/agents/orkestrel.md +27 -26
- package/dist/host/claude/rules/tests.md +2 -2
- package/dist/host/claude/rules/typescript.md +2 -3
- package/dist/host/guides/abort.md +0 -4
- package/dist/host/guides/budget.md +1 -5
- package/dist/host/guides/codec.md +18 -3
- package/dist/host/guides/contract.md +23 -44
- package/dist/host/guides/csv.md +86 -93
- package/dist/host/guides/database.md +0 -4
- package/dist/host/guides/emitter.md +0 -2
- package/dist/host/guides/form.md +26 -47
- package/dist/host/guides/html.md +3 -7
- package/dist/host/guides/indexeddb.md +28 -32
- package/dist/host/guides/jsonrpc.md +187 -0
- package/dist/host/guides/markdown.md +132 -141
- package/dist/host/guides/msg.md +47 -63
- package/dist/host/guides/ndjson.md +0 -4
- package/dist/host/guides/pool.md +0 -4
- package/dist/host/guides/process.md +71 -79
- package/dist/host/guides/reason.md +30 -36
- package/dist/host/guides/router.md +11 -18
- package/dist/host/guides/scaffold.md +136 -136
- package/dist/host/guides/sqlite.md +0 -4
- package/dist/host/guides/sse.md +6 -10
- package/dist/host/guides/table.md +481 -493
- package/dist/host/guides/template.md +0 -4
- package/dist/host/guides/test.md +46 -66
- package/dist/host/guides/timeout.md +0 -6
- package/dist/host/guides/tool.md +2 -6
- package/dist/host/guides/websocket.md +0 -4
- package/dist/host/manifest.json +39 -464
- package/dist/src/core/index.cjs +162 -177
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +213 -213
- package/dist/src/core/index.d.ts +213 -213
- package/dist/src/core/index.js +151 -166
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +25 -25
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +50 -50
- package/dist/src/server/index.d.ts +50 -50
- package/dist/src/server/index.js +26 -26
- package/dist/src/server/index.js.map +1 -1
- package/package.json +9 -9
package/dist/bin/main.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { align, renderTable, strip, stripControls, width } from "@orkestrel/console";
|
|
3
3
|
import { attempt, isArray, isDefined, isError, isInstance, isRecord, isString, parseJSON } from "@orkestrel/contract";
|
|
4
|
-
import { AXES, BIN_ENTRY_PATH, CATALOG_AGENT_PATH, CONFORMANCE_TEST_PATH, Compiler, DEPENDENCY_NAME_PATTERN, ENVIRONMENTS, FRAMEWORKS, GLOBAL_SETUP_PATH,
|
|
4
|
+
import { ARTIFACT_GROUPS, AXES, BIN_ENTRY_PATH, CATALOG_AGENT_PATH, CONFORMANCE_TEST_PATH, Compiler, DEPENDENCY_NAME_PATTERN, ENVIRONMENTS, FRAMEWORKS, GLOBAL_SETUP_PATH, GUIDES_TEST_PATH, HOST_PATHS, INTEGRATION_TEST_PATH, JOURNEY_CONFIG_PATH, MAX_MANIFEST_BYTES, MAX_PATH_LENGTH, MAX_RANGE_LENGTH, RESERVED_SHEET_NAMES, SERVICE_SETUP_PATH, SHEET_ENTRY_NAME, SHOWCASE_CONFIG_PATH, SHOWCASE_DEV_DEPENDENCIES, SHOWCASE_PAGES_PATH, SKILLS_CONFIG_PATH, STYLES_ENTRY_PATH, ScaffoldError, THEMES_BARREL_PATH, THEMES_ENTRY_PATH, TREE_TEST_PATH, blueprintToConfigArtifacts, blueprintToDevDependencies, blueprintToFaces, blueprintToManifestOverrides, blueprintToProjects, blueprintToScripts, blueprintToSheets, blueprintToTestArtifacts, blueprintToToolchainHolds, blueprintToWritableScripts, collectSurfaceAdvisories, collectSurfaceCollisions, compareSurfaceCollisions, compareVersions, createBlueprint, extractRangeMajor, extractVersion, isFloorPath, isScaffoldError, isSheetName, iterateAnswers, manifestToDependencies, manifestToName, matchesGuideRefusal, nameToGuide, parseExtension, replaceManifestOverrides, replaceManifestScripts, replacePlanRanges } from "../src/core/index.js";
|
|
5
5
|
import { MAX_INVENTORY_PATHS, Materializer, Upstream, filesToHost, isExactCaseFile, isPhysicalDirectory, isWorktree, listFiles, readFileText, readHostFloor, readHostManifest, readSnapshot, readSurfaceCandidate, readSurfaceFile, readSurfaceGuide, readSurfaceRecord, resolveContainedPath } from "../src/server/index.js";
|
|
6
6
|
import { join, normalize, resolve } from "node:path";
|
|
7
|
-
import {
|
|
7
|
+
import { createDuplex } from "@orkestrel/process/server";
|
|
8
8
|
import { createMarkdown, flattenText, isTableNode } from "@orkestrel/markdown";
|
|
9
9
|
import { readdirSync } from "node:fs";
|
|
10
10
|
import { parseArgs } from "node:util";
|
|
11
11
|
var package_default = {
|
|
12
12
|
name: "@orkestrel/scaffold",
|
|
13
|
-
version: "0.0.
|
|
13
|
+
version: "0.0.120",
|
|
14
14
|
description: "Scaffold workspaces with commands: new, audit, surface, repair, catalog, and overwrite.",
|
|
15
15
|
keywords: [
|
|
16
16
|
"audit",
|
|
@@ -103,19 +103,19 @@ var package_default = {
|
|
|
103
103
|
},
|
|
104
104
|
dependencies: {
|
|
105
105
|
"@orkestrel/console": "^0.0.17",
|
|
106
|
-
"@orkestrel/contract": "^0.0.
|
|
107
|
-
"@orkestrel/emitter": "^0.0.
|
|
108
|
-
"@orkestrel/markdown": "^0.0.
|
|
109
|
-
"@orkestrel/process": "^0.0.
|
|
110
|
-
"@orkestrel/template": "^0.0.
|
|
106
|
+
"@orkestrel/contract": "^0.0.21",
|
|
107
|
+
"@orkestrel/emitter": "^0.0.14",
|
|
108
|
+
"@orkestrel/markdown": "^0.0.19",
|
|
109
|
+
"@orkestrel/process": "^0.0.17",
|
|
110
|
+
"@orkestrel/template": "^0.0.12"
|
|
111
111
|
},
|
|
112
112
|
devDependencies: {
|
|
113
|
-
"@microsoft/api-extractor": "^7.60.
|
|
113
|
+
"@microsoft/api-extractor": "^7.60.1",
|
|
114
114
|
"@orkestrel/browser": "^0.0.30",
|
|
115
115
|
"@orkestrel/guide": "^0.0.28",
|
|
116
|
-
"@orkestrel/html": "^0.0.
|
|
116
|
+
"@orkestrel/html": "^0.0.14",
|
|
117
117
|
"@orkestrel/probe": "^0.0.26",
|
|
118
|
-
"@orkestrel/test": "^0.0.
|
|
118
|
+
"@orkestrel/test": "^0.0.32",
|
|
119
119
|
"@types/node": "^24.19.2",
|
|
120
120
|
"@vitest/browser-playwright": "^5.0.5",
|
|
121
121
|
"oxfmt": "^0.75.0",
|
|
@@ -1596,9 +1596,9 @@ function selectionToEnvironments(selection, axis) {
|
|
|
1596
1596
|
function selectionToGroups(selection) {
|
|
1597
1597
|
if (selection === void 0) return void 0;
|
|
1598
1598
|
const requested = selection.split(",");
|
|
1599
|
-
const refused = requested.filter((name) => !
|
|
1600
|
-
if (refused.length > 0) throw new UsageError(`'--groups' does not take ${refused.join(", ")}. It takes ${
|
|
1601
|
-
return
|
|
1599
|
+
const refused = requested.filter((name) => !ARTIFACT_GROUPS.some((group) => group === name));
|
|
1600
|
+
if (refused.length > 0) throw new UsageError(`'--groups' does not take ${refused.join(", ")}. It takes ${ARTIFACT_GROUPS.join(", ")}.`);
|
|
1601
|
+
return ARTIFACT_GROUPS.filter((group) => requested.includes(group));
|
|
1602
1602
|
}
|
|
1603
1603
|
/**
|
|
1604
1604
|
* Reads the fleet packages a comma-separated selection names.
|
|
@@ -1762,7 +1762,7 @@ var GitQuery = class {
|
|
|
1762
1762
|
if (this.#started) throw new ScaffoldError("INVALID", "A git query reads once.");
|
|
1763
1763
|
this.#started = true;
|
|
1764
1764
|
const target = this.#target;
|
|
1765
|
-
const created = attempt(() =>
|
|
1765
|
+
const created = attempt(() => createDuplex({
|
|
1766
1766
|
command: {
|
|
1767
1767
|
file: "git",
|
|
1768
1768
|
arguments: [
|