@moldea.ai/cli 14.0.1 → 14.0.2
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/chunks/{composition-_3bygS_a.js → composition-BzwNJ346.js} +2 -2
- package/dist/chunks/{composition-_3bygS_a.js.map → composition-BzwNJ346.js.map} +1 -1
- package/dist/chunks/{composition-D1OYuZ5d.js → composition-aJXeA6un.js} +1 -1
- package/dist/chunks/{core-composition-BKcJ--NX.js → core-composition-CzdeqYS9.js} +2 -2
- package/dist/chunks/{core-composition-BKcJ--NX.js.map → core-composition-CzdeqYS9.js.map} +1 -1
- package/dist/moldea.js +3 -3
- package/dist/portable/SHA256SUMS +7 -7
- package/dist/portable/analysis-worker.mjs +1 -1
- package/dist/portable/{chunk-43b8574a.mjs → chunk-1b3c5f05.mjs} +1 -1
- package/dist/portable/{chunk-517c6bfb.mjs → chunk-8a1dadf9.mjs} +1 -1
- package/dist/portable/{chunk-d9e49acd.mjs → chunk-a6007228.mjs} +1 -1
- package/dist/portable/chunk-b1f86976.mjs +2 -0
- package/dist/portable/{chunk-9e42770a.mjs → chunk-d372f5e0.mjs} +637 -631
- package/dist/portable/moldea.mjs +7 -7
- package/package.json +2 -2
- package/dist/portable/chunk-1306b995.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { o as MoldeaCliCompositionException, t as resolveInstalledMoldeaCliComposition } from "./composition-
|
|
2
|
+
import { o as MoldeaCliCompositionException, t as resolveInstalledMoldeaCliComposition } from "./composition-BzwNJ346.js";
|
|
3
3
|
import { createNodeProjectInspection } from "@moldea.ai/core/node";
|
|
4
4
|
//#region src/core-composition/executor.ts
|
|
5
5
|
var calculateRetainedByteLimit = (maxTotalBytes) => maxTotalBytes > Math.floor(Number.MAX_SAFE_INTEGER / 4) ? Number.MAX_SAFE_INTEGER : maxTotalBytes * 4;
|
|
@@ -91,4 +91,4 @@ var executeMoldeaCliCoreInspection = createMoldeaCliCoreInspectionExecutor();
|
|
|
91
91
|
//#endregion
|
|
92
92
|
export { executeMoldeaCliCoreInspection };
|
|
93
93
|
|
|
94
|
-
//# sourceMappingURL=core-composition-
|
|
94
|
+
//# sourceMappingURL=core-composition-CzdeqYS9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-composition-
|
|
1
|
+
{"version":3,"file":"core-composition-CzdeqYS9.js","names":[],"sources":["../../src/core-composition/executor.ts"],"sourcesContent":["import type { IDiagnostic, IProjectValidationResult, IBindingCoverage } from '@moldea.ai/core';\nimport { createNodeProjectInspection } from '@moldea.ai/core/node';\n\nimport {\n MoldeaCliCompositionException,\n resolveInstalledMoldeaCliComposition,\n} from '../composition/index.js';\n\nimport type { IMoldeaCliCoreInspectionExecutor, IMoldeaCliNodeInspectionFactory } from './types.js';\n\nconst calculateRetainedByteLimit = (maxTotalBytes: number): number =>\n maxTotalBytes > Math.floor(Number.MAX_SAFE_INTEGER / 4)\n ? Number.MAX_SAFE_INTEGER\n : maxTotalBytes * 4;\n\n/**\n * Creates one isolated inspection per snapshot attempt, with no in-process fallback.\n * @param nodeInspectionFactory The supervised Node inspection boundary.\n * @returns An executor that disposes its worker before returning any successful result.\n */\nexport const createMoldeaCliCoreInspectionExecutor =\n (\n nodeInspectionFactory: IMoldeaCliNodeInspectionFactory = createNodeProjectInspection,\n ): IMoldeaCliCoreInspectionExecutor =>\n async (input) => {\n const inspection = await nodeInspectionFactory({\n repository: input.repository,\n ...(input.instructions === undefined ? {} : { instructions: input.instructions }),\n limits: {\n maxDiagnostics: input.resourceLimits.maxDiagnostics,\n maxEntries: input.resourceLimits.maxEntries,\n maxCoverage: input.resourceLimits.maxCoverage,\n maxFileBytes: input.resourceLimits.maxFileBytes,\n maxManifestBytes: input.resourceLimits.maxManifestBytes,\n maxRetainedBytes: calculateRetainedByteLimit(input.resourceLimits.maxTotalBytes),\n maxTotalBytesRead: input.resourceLimits.maxTotalBytes,\n },\n ...(input.signal === undefined ? {} : { signal: input.signal }),\n });\n try {\n if (\n resolveInstalledMoldeaCliComposition({\n packageMetadata: input.packageMetadata,\n }).kind === 'invalid'\n )\n throw new MoldeaCliCompositionException();\n if (input.command === 'inspect')\n return await inspection.readPage({\n ...(input.cursor === undefined ? {} : { cursor: input.cursor }),\n maxItems: Math.min(256, input.resourceLimits.maxEntries),\n view: 'all',\n });\n const diagnostics: IDiagnostic[] = [];\n const coverage: IBindingCoverage[] = [];\n for (const view of ['diagnostics', 'coverage'] as const) {\n let cursor: string | undefined;\n do {\n const result = await inspection.readPage({\n view,\n maxItems: Math.min(256, input.resourceLimits.maxEntries),\n ...(cursor === undefined ? {} : { cursor }),\n });\n for (const { item } of result.page.records) {\n if (item.kind === 'diagnostic') diagnostics.push(item.diagnostic);\n else if (item.kind === 'coverage') coverage.push(item.coverage);\n }\n cursor = result.page.nextCursor ?? undefined;\n } while (cursor !== undefined);\n }\n return Object.freeze({\n diagnostics: Object.freeze(diagnostics),\n coverage: Object.freeze(coverage),\n coverageCounts: inspection.coverageCounts,\n diagnosticCount: inspection.counts.diagnostics,\n acceptedWarningCount: inspection.counts.acceptedWarnings,\n errorCount: inspection.counts.errors,\n warningCount: inspection.counts.warnings,\n valid: inspection.valid,\n formatVersion: inspection.formatVersion,\n source: inspection.source,\n summary: inspection.summary,\n } satisfies IProjectValidationResult);\n } finally {\n await inspection.dispose();\n }\n };\n\n/**\n * Executes one project inspection through the isolated CLI-configured Node boundary.\n * @returns A promise resolving to Core's complete immutable inspection result.\n * @throws\n * - INVALID_RESOURCE_LIMIT: A Core resource limit is invalid.\n * - INVALID_ARGUMENT: The Core operation received an invalid argument.\n * - INVALID_REPOSITORY_PATH: The repository path is invalid.\n * - ENTRY_NOT_FOUND: The requested repository entry was not found.\n * - ENTRY_NOT_FILE: The requested repository entry is not a file.\n * - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.\n * - INVALID_PAGE_REQUEST: The repository page request is invalid.\n * - ACCESS_DENIED: Access to the repository source was denied.\n * - SOURCE_UNAVAILABLE: The repository source is unavailable.\n * - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.\n * - PROVIDER_INCOMPLETE: The repository provider cannot expose a complete result.\n * - INVALID_SOURCE_DATA: The repository source returned invalid data.\n * - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.\n * - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.\n * - ABORTED: The repository operation was aborted.\n * - ABORTED: The Core operation was aborted.\n * - INSPECTION_BUSY: Project inspection capacity is busy. Try again shortly.\n * - INSPECTION_TIMEOUT: The isolated project inspection timed out.\n * - INSPECTION_PROCESS_FAILED: The isolated project inspection failed.\n * - COMPOSITION_STATE_INVALID: The installed composition state is invalid.\n */\nexport const executeMoldeaCliCoreInspection = createMoldeaCliCoreInspectionExecutor();\n"],"mappings":";;;;AAUA,IAAM,8BAA8B,kBAClC,gBAAgB,KAAK,MAAM,OAAO,mBAAmB,CAAC,IAClD,OAAO,mBACP,gBAAgB;;;;;;AAOtB,IAAa,yCAET,wBAAyD,gCAE3D,OAAO,UAAU;CACf,MAAM,aAAa,MAAM,sBAAsB;EAC7C,YAAY,MAAM;EAClB,GAAI,MAAM,iBAAiB,KAAA,IAAY,CAAC,IAAI,EAAE,cAAc,MAAM,aAAa;EAC/E,QAAQ;GACN,gBAAgB,MAAM,eAAe;GACrC,YAAY,MAAM,eAAe;GACjC,aAAa,MAAM,eAAe;GAClC,cAAc,MAAM,eAAe;GACnC,kBAAkB,MAAM,eAAe;GACvC,kBAAkB,2BAA2B,MAAM,eAAe,aAAa;GAC/E,mBAAmB,MAAM,eAAe;EAC1C;EACA,GAAI,MAAM,WAAW,KAAA,IAAY,CAAC,IAAI,EAAE,QAAQ,MAAM,OAAO;CAC/D,CAAC;CACD,IAAI;EACF,IACE,qCAAqC,EACnC,iBAAiB,MAAM,gBACzB,CAAC,CAAC,CAAC,SAAS,WAEZ,MAAM,IAAI,8BAA8B;EAC1C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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-BzwNJ346.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -2593,11 +2593,11 @@ var createMoldeaCliContentExecutionResult = (pageResult, cliVersion, isJson, cur
|
|
|
2593
2593
|
//#region src/cli-execution/command-executor.ts
|
|
2594
2594
|
/** Loads isolated Core inspection only for commands that need it. */
|
|
2595
2595
|
var executeLazyCoreInspection = async (input) => {
|
|
2596
|
-
const { executeMoldeaCliCoreInspection } = await import("./chunks/core-composition-
|
|
2596
|
+
const { executeMoldeaCliCoreInspection } = await import("./chunks/core-composition-CzdeqYS9.js");
|
|
2597
2597
|
return executeMoldeaCliCoreInspection(input);
|
|
2598
2598
|
};
|
|
2599
2599
|
var loadInstalledComposition = async (input) => {
|
|
2600
|
-
const { resolveInstalledMoldeaCliComposition } = await import("./chunks/composition-
|
|
2600
|
+
const { resolveInstalledMoldeaCliComposition } = await import("./chunks/composition-aJXeA6un.js");
|
|
2601
2601
|
return resolveInstalledMoldeaCliComposition(input);
|
|
2602
2602
|
};
|
|
2603
2603
|
/** Creates one operational error result without exposing caught failure details. */
|
package/dist/portable/SHA256SUMS
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
0205722958a215e7ce78cb29148273f0a6fde98348e75eccc109cac640025d85 LICENSES.md
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
597ebd3f09ff1fe91b97f59284af80f42685862d601fce18e044bc5b1298ad82 analysis-worker.mjs
|
|
3
|
+
b117b1b1a38b3e730a13f68c9360853d22581c904ef7d6941e19caeef988ad93 chunk-1b3c5f05.mjs
|
|
4
4
|
309270827f3c8c03fcc10faab12496c0406d3cebd4c88095bf363a91c3d0cf2b chunk-24ea7c23.mjs
|
|
5
5
|
ab01914500c78d3e80476a31f6a391a2f71dcaa90ffb51957e755b405888f46f chunk-2cc3bf5c.mjs
|
|
6
6
|
6467b7f8899d34dd5bb33220e374b3374c9ceecd7287a8b636d5ba6ff3660236 chunk-2e9d4c63.mjs
|
|
7
|
-
|
|
8
|
-
ed4ae51c156a9ec81e404d9d9e2fb817fc377c84acab445e697dac6b56dd898f chunk-517c6bfb.mjs
|
|
7
|
+
fd397a9f15a991883a78f2302b814d535c45bf6a13856a40769786384c204a9e chunk-8a1dadf9.mjs
|
|
9
8
|
ee0158f7c33a6d7bc02daaaa765ef563f9e7933a4348d51b835225593b4012be chunk-8f198616.mjs
|
|
10
9
|
752a9d6ac664c3e9dd6dfd48353a2492b40d1ba2765e3dcdfbc9cabc96831ee5 chunk-936e5d09.mjs
|
|
11
10
|
43b23d20df294cd54bdaf82185b69dc2d8053a68c03638e3e04325fda54a899e chunk-98d84174.mjs
|
|
12
|
-
|
|
11
|
+
97c635d48e674192082fe159c739aef436689547db948d4b10c2e102054e9f2c chunk-a6007228.mjs
|
|
12
|
+
ea0c29115dbbd2acce912907e9e3082e03d2611e618b05caf6f551c7e084b97b chunk-b1f86976.mjs
|
|
13
13
|
2b77dd4cfa61ef00ff17dc38743b25e35a75cdbae9c8bf1ba6558f9cc6b3213e chunk-cea1378f.mjs
|
|
14
|
+
e005d8286f5a53518328372ecfb2835e2a516b0bce4e4b2d893387952cd614a1 chunk-d372f5e0.mjs
|
|
14
15
|
a44ec936d7894b899d5129c48a864eb4bbf72a20c2780e8e5b5187eb108a85f5 chunk-d6656fa6.mjs
|
|
15
|
-
|
|
16
|
-
82844c19f16287b369e98a382da39330307083e3584e3bd4a015dee40fb66b33 moldea.mjs
|
|
16
|
+
e5232995a28d919fb1dd7975bc35ad7770f258835e3267ac7371475a354cbed8 moldea.mjs
|
|
17
17
|
9de4371650b271b2ee753581e52540a5481e9bdb8aa7742e1252550f475e7123 node-runner.mjs
|
|
@@ -75,7 +75,7 @@ var y = v.attemptId, b = g().heap_size_limit, x, S = !1, C = !1, w = 0, T = new
|
|
|
75
75
|
retryable: !1
|
|
76
76
|
}))
|
|
77
77
|
}), k = O("repository", v.snapshot), A = v.instructions === null ? null : O("instructions", v.instructions.snapshot), j = async () => {
|
|
78
|
-
let { createCore: e } = await import("./chunk-
|
|
78
|
+
let { createCore: e } = await import("./chunk-b1f86976.mjs").then((e) => e.t);
|
|
79
79
|
x = await e(t({ limits: {
|
|
80
80
|
...v.limits,
|
|
81
81
|
maxRetainedBytes: v.limits.maxRetainedBytes - a
|
|
@@ -1792,7 +1792,7 @@ ${qe} --help Show this help.
|
|
|
1792
1792
|
"@moldea.ai/repository",
|
|
1793
1793
|
"@moldea.ai/repository-fs"
|
|
1794
1794
|
]), Wn = Object.freeze({
|
|
1795
|
-
"@moldea.ai/core": "^10.0.
|
|
1795
|
+
"@moldea.ai/core": "^10.0.1",
|
|
1796
1796
|
"@moldea.ai/repository": "^4.0.0",
|
|
1797
1797
|
"@moldea.ai/repository-fs": "^4.0.0"
|
|
1798
1798
|
}), Gn = (e, t) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./chunk-
|
|
1
|
+
import { t as e } from "./chunk-1b3c5f05.mjs";
|
|
2
2
|
export { e as resolveInstalledMoldeaCliComposition };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, u as t } from "./chunk-2cc3bf5c.mjs";
|
|
2
|
-
import { o as n, t as r } from "./chunk-
|
|
2
|
+
import { o as n, t as r } from "./chunk-1b3c5f05.mjs";
|
|
3
3
|
import { p as i, u as a } from "./chunk-8f198616.mjs";
|
|
4
4
|
import { i as o } from "./chunk-98d84174.mjs";
|
|
5
5
|
import { a as s, i as c, l, n as u, o as d, s as f } from "./chunk-24ea7c23.mjs";
|