@moldea.ai/cli 13.0.4 → 14.0.1
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/README.md +5 -9
- package/dist/chunks/{composition-DfXcSF44.js → composition-D1OYuZ5d.js} +1 -1
- package/dist/chunks/{composition-DxVb23Ru.js → composition-_3bygS_a.js} +21 -23
- package/dist/chunks/composition-_3bygS_a.js.map +1 -0
- package/dist/chunks/{core-composition-D3haS6M3.js → core-composition-BKcJ--NX.js} +2 -2
- package/dist/chunks/{core-composition-D3haS6M3.js.map → core-composition-BKcJ--NX.js.map} +1 -1
- package/dist/moldea.js +7 -12
- package/dist/moldea.js.map +1 -1
- package/dist/portable/LICENSES.md +506 -0
- package/dist/portable/SHA256SUMS +17 -0
- package/dist/portable/analysis-worker.mjs +170 -0
- package/dist/portable/chunk-1306b995.mjs +2 -0
- package/dist/portable/chunk-24ea7c23.mjs +328 -0
- package/dist/portable/chunk-2cc3bf5c.mjs +399 -0
- package/dist/portable/chunk-2e9d4c63.mjs +95 -0
- package/dist/portable/chunk-43b8574a.mjs +1837 -0
- package/dist/portable/chunk-517c6bfb.mjs +2 -0
- package/dist/portable/chunk-8f198616.mjs +4414 -0
- package/dist/portable/chunk-936e5d09.mjs +112519 -0
- package/dist/portable/chunk-98d84174.mjs +422 -0
- package/dist/portable/chunk-9e42770a.mjs +3114 -0
- package/dist/portable/chunk-cea1378f.mjs +50 -0
- package/dist/portable/chunk-d6656fa6.mjs +14 -0
- package/dist/portable/chunk-d9e49acd.mjs +302 -0
- package/dist/portable/moldea.mjs +2656 -0
- package/dist/portable/node-runner.mjs +117 -0
- package/package.json +3 -3
- package/dist/chunks/composition-DxVb23Ru.js.map +0 -1
package/dist/moldea.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { A as createMoldeaCliOutputPage, C as formatMoldeaCliJsonInspectResult, D as MOLDEA_CLI_GIT_WORKING_TREE_SOURCE, E as createMoldeaCliOwnedError, F as MOLDEA_CLI_COMMANDS, M as decodeMoldeaCliCursor, N as encodeMoldeaCliCursor, O as parseMoldeaCliArguments, P as MoldeaCliOutputPageException, S as formatMoldeaCliJsonError, T as formatMoldeaCliJsonValidateResult, _ as formatMoldeaCliHumanInspectResult, a as require_semver, b as formatMoldeaCliJsonCompositionResult, c as runGitCommand, d as createMoldeaCliInspectProjection, f as createMoldeaCliValidateProjection, g as formatMoldeaCliHumanError, h as formatMoldeaCliHumanContentResult, j as calculateMoldeaCliJsonDigest, k as isRepositoryDirectoryInputValid, l as readGit, m as formatMoldeaCliHumanCompositionResult, o as MoldeaCliCompositionException, p as formatMoldeaCliHelp, s as createGitVersionPreflight, u as createMoldeaCliDiagnosticRecord, v as formatMoldeaCliHumanScopeResult, w as formatMoldeaCliJsonScopeResult, x as formatMoldeaCliJsonContentResult, y as formatMoldeaCliHumanValidateResult } from "./chunks/composition-
|
|
2
|
+
import { A as createMoldeaCliOutputPage, C as formatMoldeaCliJsonInspectResult, D as MOLDEA_CLI_GIT_WORKING_TREE_SOURCE, E as createMoldeaCliOwnedError, F as MOLDEA_CLI_COMMANDS, M as decodeMoldeaCliCursor, N as encodeMoldeaCliCursor, O as parseMoldeaCliArguments, P as MoldeaCliOutputPageException, S as formatMoldeaCliJsonError, T as formatMoldeaCliJsonValidateResult, _ as formatMoldeaCliHumanInspectResult, a as require_semver, b as formatMoldeaCliJsonCompositionResult, c as runGitCommand, d as createMoldeaCliInspectProjection, f as createMoldeaCliValidateProjection, g as formatMoldeaCliHumanError, h as formatMoldeaCliHumanContentResult, j as calculateMoldeaCliJsonDigest, k as isRepositoryDirectoryInputValid, l as readGit, m as formatMoldeaCliHumanCompositionResult, o as MoldeaCliCompositionException, p as formatMoldeaCliHelp, s as createGitVersionPreflight, u as createMoldeaCliDiagnosticRecord, v as formatMoldeaCliHumanScopeResult, w as formatMoldeaCliJsonScopeResult, x as formatMoldeaCliJsonContentResult, y as formatMoldeaCliHumanValidateResult } from "./chunks/composition-_3bygS_a.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -356,12 +356,11 @@ var MoldeaCliProjectContentException = class extends Error {
|
|
|
356
356
|
//#region src/project-content/validations.ts
|
|
357
357
|
var CONTEXT_PATH_PATTERN = /^\/moldea\/context\/(?:[^/]+\/)*[^/]+\.md$/u;
|
|
358
358
|
var DECISION_PATH_PATTERN = /^\/moldea\/decisions\/[^/]+\.md$/u;
|
|
359
|
-
var
|
|
360
|
-
var AGENT_PATH_PATTERN = /^\/moldea\/agents\/[^/]+\/(?:description|instruction|handoff-description)\.md$/u;
|
|
359
|
+
var AGENT_PATH_PATTERN = /^\/moldea\/agents\/[^/]+\/(?:description|instruction)\.md$/u;
|
|
361
360
|
/** Determines whether a logical path names one canonical moldea text asset. */
|
|
362
361
|
var isMoldeaCliCanonicalContentPath = (path) => {
|
|
363
362
|
if (/[?*[\]{}]/u.test(path)) return false;
|
|
364
|
-
return path === "/moldea/moldea.yaml" || path === "/moldea/project.md" || CONTEXT_PATH_PATTERN.test(path) || DECISION_PATH_PATTERN.test(path) ||
|
|
363
|
+
return path === "/moldea/moldea.yaml" || path === "/moldea/project.md" || CONTEXT_PATH_PATTERN.test(path) || DECISION_PATH_PATTERN.test(path) || AGENT_PATH_PATTERN.test(path);
|
|
365
364
|
};
|
|
366
365
|
/**
|
|
367
366
|
* Parses one untrusted path and restricts it to the canonical text layout.
|
|
@@ -2594,11 +2593,11 @@ var createMoldeaCliContentExecutionResult = (pageResult, cliVersion, isJson, cur
|
|
|
2594
2593
|
//#region src/cli-execution/command-executor.ts
|
|
2595
2594
|
/** Loads isolated Core inspection only for commands that need it. */
|
|
2596
2595
|
var executeLazyCoreInspection = async (input) => {
|
|
2597
|
-
const { executeMoldeaCliCoreInspection } = await import("./chunks/core-composition-
|
|
2596
|
+
const { executeMoldeaCliCoreInspection } = await import("./chunks/core-composition-BKcJ--NX.js");
|
|
2598
2597
|
return executeMoldeaCliCoreInspection(input);
|
|
2599
2598
|
};
|
|
2600
2599
|
var loadInstalledComposition = async (input) => {
|
|
2601
|
-
const { resolveInstalledMoldeaCliComposition } = await import("./chunks/composition-
|
|
2600
|
+
const { resolveInstalledMoldeaCliComposition } = await import("./chunks/composition-D1OYuZ5d.js");
|
|
2602
2601
|
return resolveInstalledMoldeaCliComposition(input);
|
|
2603
2602
|
};
|
|
2604
2603
|
/** Creates one operational error result without exposing caught failure details. */
|
|
@@ -2611,7 +2610,7 @@ var createOperationalErrorResult = (code, input, details) => createMoldeaCliErro
|
|
|
2611
2610
|
* @param compositionLoader The installed executable-integrity composition boundary.
|
|
2612
2611
|
* @param projectScopeExecutor The manifest-only manifest scope operation.
|
|
2613
2612
|
* @param projectContentExecutor The manifest-only canonical content operation.
|
|
2614
|
-
* @returns A command executor for the schema
|
|
2613
|
+
* @returns A command executor for the schema 8 CLI.
|
|
2615
2614
|
*/
|
|
2616
2615
|
var createMoldeaCliCommandExecutor = (workingTreeDiscovery = discoverGitWorkingTree, workingTreeSnapshotExecutor = executeWorkingTreeSnapshot, coreInspectionExecutor = executeLazyCoreInspection, compositionLoader = loadInstalledComposition, projectScopeExecutor = executeMoldeaCliProjectScope, projectContentExecutor = executeMoldeaCliProjectContent) => {
|
|
2617
2616
|
return async (input) => {
|
|
@@ -2831,10 +2830,7 @@ var loadMoldeaCliPackageMetadata = async (packageManifestPath, packageEntryResol
|
|
|
2831
2830
|
//#region src/bin/index.ts
|
|
2832
2831
|
var executableDirectory = path.dirname(fileURLToPath(import.meta.url));
|
|
2833
2832
|
var packageManifestPath = path.resolve(executableDirectory, "..", "package.json");
|
|
2834
|
-
var shutdown = createShutdownSignal({
|
|
2835
|
-
disconnect: true,
|
|
2836
|
-
setExitCode: false
|
|
2837
|
-
});
|
|
2833
|
+
var shutdown = createShutdownSignal({ setExitCode: false });
|
|
2838
2834
|
/** Reads process stdin without retaining bytes above the requested limit. */
|
|
2839
2835
|
var readProcessStdin = async (maxBytes, signal) => {
|
|
2840
2836
|
try {
|
|
@@ -2893,7 +2889,6 @@ try {
|
|
|
2893
2889
|
process.exitCode = signalExitCode ?? 3;
|
|
2894
2890
|
} finally {
|
|
2895
2891
|
shutdown.dispose();
|
|
2896
|
-
if (process.connected) process.disconnect();
|
|
2897
2892
|
}
|
|
2898
2893
|
//#endregion
|
|
2899
2894
|
|