@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/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-DxVb23Ru.js";
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 RUNTIME_PATH_PATTERN = /^\/moldea\/runtimes\/(?:[^/]+\/)*[^/]+\.md$/u;
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) || RUNTIME_PATH_PATTERN.test(path) || AGENT_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-D3haS6M3.js");
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-DfXcSF44.js");
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 7 CLI.
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