@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
package/dist/bin/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { align, renderTable, strip, stripControls, width } from "@orkestrel/console";
|
|
3
|
-
import { attempt, isError, isRecord, isString, parseJSON } from "@orkestrel/contract";
|
|
3
|
+
import { attempt, isArray, isError, isInstance, isRecord, isString, parseJSON } from "@orkestrel/contract";
|
|
4
4
|
import { BIN_ENTRY_PATH, CATALOG_AGENT_PATH, CONFORMANCE_TEST_PATH, Compiler, DEPENDENCY_NAME_PATTERN, ENVIRONMENTS, GLOBAL_SETUP_PATH, GROUPS, GUIDES_TEST_PATH, HOST_PATHS, INTEGRATION_TEST_PATH, MAX_MANIFEST_BYTES, MAX_PATH_LENGTH, SERVICE_SETUP_PATH, SHOWCASE_CONFIG_PATH, ScaffoldError, blueprintToDevDependencies, blueprintToRootVite, blueprintToScripts, blueprintToTestArtifacts, blueprintToWritableScripts, compareVersions, createBlueprint, extractRangeMajor, extractVersion, isFloorPath, isScaffoldError, manifestToDependencies, manifestToName, nameToGuide, replaceManifestScripts, replacePlanRanges } from "../src/core/index.js";
|
|
5
5
|
import { MAX_INVENTORY_PATHS, Materializer, Upstream, filesToHost, isExactCaseFile, isPhysicalDirectory, isWorktree, listFiles, readFileText, readHostFloor, readHostManifest, readSnapshot, resolveContainedPath } from "../src/server/index.js";
|
|
6
6
|
import { createMarkdown, flattenText, isTableNode } from "@orkestrel/markdown";
|
|
@@ -235,7 +235,7 @@ var UsageError = class extends Error {
|
|
|
235
235
|
* ```
|
|
236
236
|
*/
|
|
237
237
|
function isUsageError(value) {
|
|
238
|
-
return value
|
|
238
|
+
return isInstance(value, UsageError);
|
|
239
239
|
}
|
|
240
240
|
//#endregion
|
|
241
241
|
//#region src/bin/helpers.ts
|
|
@@ -373,19 +373,19 @@ function argvToCommand(argv) {
|
|
|
373
373
|
const [name] = positionals;
|
|
374
374
|
if (positionals.length > 1) throw new UsageError(`'${verb}' takes at most one argument, and was given ${String(positionals.length)}.`);
|
|
375
375
|
if (verb !== "new" && name !== void 0) throw new UsageError(`'${verb}' takes no argument, and was given '${name}'.`);
|
|
376
|
-
const paths =
|
|
376
|
+
const paths = isArray(values.from) ? values.from.filter(isString) : [];
|
|
377
377
|
if (verb !== "catalog" && paths.length > 1) throw new UsageError(`'${verb}' takes --from once, and was given it ${String(paths.length)} times.`);
|
|
378
|
-
const src =
|
|
379
|
-
const app =
|
|
378
|
+
const src = isString(values.src) ? values.src : void 0;
|
|
379
|
+
const app = isString(values.app) ? values.app : void 0;
|
|
380
380
|
const bin = values.bin === true;
|
|
381
381
|
const offline = values.offline === true;
|
|
382
|
-
const dependencies =
|
|
383
|
-
const target =
|
|
382
|
+
const dependencies = isString(values.deps) ? values.deps : void 0;
|
|
383
|
+
const target = isString(values.target) ? values.target : void 0;
|
|
384
384
|
const json = values.json === true;
|
|
385
385
|
const [from] = paths;
|
|
386
386
|
const location = target === void 0 ? {} : { target };
|
|
387
387
|
const source = from === void 0 ? {} : { from };
|
|
388
|
-
const selection =
|
|
388
|
+
const selection = isString(values.groups) ? { groups: values.groups } : {};
|
|
389
389
|
switch (verb) {
|
|
390
390
|
case "new":
|
|
391
391
|
if (name === void 0) throw new UsageError(`'new' needs the workspace ${NAME_ARGUMENT} it is scaffolding.`);
|