@cleocode/cleo 2026.5.5 → 2026.5.6
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/cli/index.js +35 -14
- package/dist/cli/index.js.map +2 -2
- package/package.json +9 -9
package/dist/cli/index.js
CHANGED
|
@@ -9550,7 +9550,10 @@ var init_exit_codes2 = __esm({
|
|
|
9550
9550
|
});
|
|
9551
9551
|
|
|
9552
9552
|
// packages/cleo/src/dispatch/engines/_error.ts
|
|
9553
|
-
import {
|
|
9553
|
+
import {
|
|
9554
|
+
engineError as coreEngineError,
|
|
9555
|
+
getLogger as getLogger2
|
|
9556
|
+
} from "@cleocode/core";
|
|
9554
9557
|
import { engineSuccess } from "@cleocode/core";
|
|
9555
9558
|
function logLevel(exitCode) {
|
|
9556
9559
|
if (exitCode === 0 || exitCode >= 100) return "debug";
|
|
@@ -9558,17 +9561,17 @@ function logLevel(exitCode) {
|
|
|
9558
9561
|
return "warn";
|
|
9559
9562
|
}
|
|
9560
9563
|
function engineError(code, message, options) {
|
|
9561
|
-
const
|
|
9562
|
-
const level = logLevel(
|
|
9564
|
+
const resolvedExitCode = options?.exitCode ?? STRING_TO_EXIT[code] ?? 1;
|
|
9565
|
+
const level = logLevel(resolvedExitCode);
|
|
9563
9566
|
const isVitest = process.env["VITEST"] === "true";
|
|
9564
9567
|
if (!isVitest) {
|
|
9565
9568
|
const logger = getLogger2("engine");
|
|
9566
9569
|
logger[level](
|
|
9567
|
-
{ code, exitCode, ...options?.details && { details: options.details } },
|
|
9570
|
+
{ code, exitCode: resolvedExitCode, ...options?.details && { details: options.details } },
|
|
9568
9571
|
message
|
|
9569
9572
|
);
|
|
9570
9573
|
}
|
|
9571
|
-
return coreEngineError(code, message, {
|
|
9574
|
+
return coreEngineError(code, message, { ...options, exitCode: resolvedExitCode });
|
|
9572
9575
|
}
|
|
9573
9576
|
var STRING_TO_EXIT;
|
|
9574
9577
|
var init_error = __esm({
|
|
@@ -14901,12 +14904,12 @@ function nexusQueryEnvelopeToResponse(envelope, operation, startTime) {
|
|
|
14901
14904
|
}
|
|
14902
14905
|
}
|
|
14903
14906
|
return wrapResult(
|
|
14904
|
-
{
|
|
14907
|
+
envelopeToEngineResult({
|
|
14905
14908
|
success: env.success,
|
|
14906
14909
|
data: resultData,
|
|
14907
14910
|
page: pageMetadata,
|
|
14908
|
-
error: env.error
|
|
14909
|
-
},
|
|
14911
|
+
error: env.error
|
|
14912
|
+
}),
|
|
14910
14913
|
"query",
|
|
14911
14914
|
"nexus",
|
|
14912
14915
|
operation,
|
|
@@ -14916,11 +14919,11 @@ function nexusQueryEnvelopeToResponse(envelope, operation, startTime) {
|
|
|
14916
14919
|
function nexusMutateEnvelopeToResponse(envelope, operation, startTime) {
|
|
14917
14920
|
const env = envelope;
|
|
14918
14921
|
return wrapResult(
|
|
14919
|
-
{
|
|
14922
|
+
envelopeToEngineResult({
|
|
14920
14923
|
success: env.success,
|
|
14921
14924
|
data: env.data,
|
|
14922
|
-
error: env.error
|
|
14923
|
-
},
|
|
14925
|
+
error: env.error
|
|
14926
|
+
}),
|
|
14924
14927
|
"mutate",
|
|
14925
14928
|
"nexus",
|
|
14926
14929
|
operation,
|
|
@@ -21741,7 +21744,13 @@ var init_orchestrate2 = __esm({
|
|
|
21741
21744
|
mode: params?.mode,
|
|
21742
21745
|
taskIds: params?.taskIds
|
|
21743
21746
|
};
|
|
21744
|
-
return wrapResult(
|
|
21747
|
+
return wrapResult(
|
|
21748
|
+
await coreOps.analyze(p),
|
|
21749
|
+
"query",
|
|
21750
|
+
"orchestrate",
|
|
21751
|
+
"analyze",
|
|
21752
|
+
startTime
|
|
21753
|
+
);
|
|
21745
21754
|
}
|
|
21746
21755
|
case "classify": {
|
|
21747
21756
|
if (!params?.request)
|
|
@@ -22050,7 +22059,13 @@ var init_orchestrate2 = __esm({
|
|
|
22050
22059
|
reason: params.reason,
|
|
22051
22060
|
blocksFrom: params.blocksFrom
|
|
22052
22061
|
};
|
|
22053
|
-
return wrapResult(
|
|
22062
|
+
return wrapResult(
|
|
22063
|
+
await coreOps.pivot(p),
|
|
22064
|
+
"mutate",
|
|
22065
|
+
"orchestrate",
|
|
22066
|
+
operation,
|
|
22067
|
+
startTime
|
|
22068
|
+
);
|
|
22054
22069
|
}
|
|
22055
22070
|
case "worktree.complete": {
|
|
22056
22071
|
if (!params?.taskId)
|
|
@@ -22169,7 +22184,13 @@ var init_orchestrate2 = __esm({
|
|
|
22169
22184
|
startTime
|
|
22170
22185
|
);
|
|
22171
22186
|
const p = { items };
|
|
22172
|
-
return wrapResult(
|
|
22187
|
+
return wrapResult(
|
|
22188
|
+
await coreOps.fanout(p),
|
|
22189
|
+
"mutate",
|
|
22190
|
+
"orchestrate",
|
|
22191
|
+
operation,
|
|
22192
|
+
startTime
|
|
22193
|
+
);
|
|
22173
22194
|
}
|
|
22174
22195
|
case "tessera.instantiate": {
|
|
22175
22196
|
if (!params?.templateId)
|