@orchagent/cli 0.3.94 → 0.3.95
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/commands/run.js +16 -1
- package/dist/lib/doctor/output.js +4 -0
- package/package.json +1 -1
package/dist/commands/run.js
CHANGED
|
@@ -37,6 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.localCommandForEntrypoint = localCommandForEntrypoint;
|
|
40
|
+
exports.canonicalAgentType = canonicalAgentType;
|
|
40
41
|
exports.inferFileField = inferFileField;
|
|
41
42
|
exports.validateInputSchema = validateInputSchema;
|
|
42
43
|
exports.tryParseJsonObject = tryParseJsonObject;
|
|
@@ -97,7 +98,21 @@ function parseAgentRef(value) {
|
|
|
97
98
|
}
|
|
98
99
|
function canonicalAgentType(typeValue) {
|
|
99
100
|
const normalized = (typeValue || 'agent').toLowerCase();
|
|
100
|
-
|
|
101
|
+
// Handle legacy type names: agentic → agent, code → tool
|
|
102
|
+
if (normalized === 'agentic')
|
|
103
|
+
return 'agent';
|
|
104
|
+
if (normalized === 'code')
|
|
105
|
+
return 'tool';
|
|
106
|
+
// Return the canonical type, defaulting to 'agent' for unrecognized types
|
|
107
|
+
if (normalized === 'prompt')
|
|
108
|
+
return 'prompt';
|
|
109
|
+
if (normalized === 'tool')
|
|
110
|
+
return 'tool';
|
|
111
|
+
if (normalized === 'agent')
|
|
112
|
+
return 'agent';
|
|
113
|
+
if (normalized === 'skill')
|
|
114
|
+
return 'skill';
|
|
115
|
+
return 'agent';
|
|
101
116
|
}
|
|
102
117
|
function resolveExecutionEngine(agentData) {
|
|
103
118
|
if (agentData.execution_engine === 'direct_llm' || agentData.execution_engine === 'managed_loop' || agentData.execution_engine === 'code_runtime') {
|
|
@@ -172,6 +172,10 @@ function printHumanOutput(results, summary, verbose) {
|
|
|
172
172
|
summaryParts.push(chalk_1.default.red(`${summary.errors} error${summary.errors > 1 ? 's' : ''}`));
|
|
173
173
|
}
|
|
174
174
|
process.stdout.write(`Summary: ${summaryParts.join(', ')}\n`);
|
|
175
|
+
// Hint about verbose flag if not already verbose
|
|
176
|
+
if (!verbose) {
|
|
177
|
+
process.stdout.write(chalk_1.default.dim('\nTip: Run with --verbose for detailed information about each check.\n'));
|
|
178
|
+
}
|
|
175
179
|
}
|
|
176
180
|
/**
|
|
177
181
|
* Format results as JSON output.
|
package/package.json
CHANGED