@orchagent/cli 0.3.44 → 0.3.45
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/init.js +6 -21
- package/dist/commands/publish.js +10 -0
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -124,27 +124,13 @@ const AGENT_MANIFEST_TEMPLATE = `{
|
|
|
124
124
|
"description": "An AI agent with tool use",
|
|
125
125
|
"type": "agent",
|
|
126
126
|
"supported_providers": ["anthropic"],
|
|
127
|
-
"max_turns": 25
|
|
128
|
-
"custom_tools": [
|
|
129
|
-
{
|
|
130
|
-
"name": "run_tests",
|
|
131
|
-
"description": "Run the test suite",
|
|
132
|
-
"command": "pytest"
|
|
133
|
-
}
|
|
134
|
-
]
|
|
127
|
+
"max_turns": 25
|
|
135
128
|
}
|
|
136
129
|
`;
|
|
137
|
-
const AGENT_PROMPT_TEMPLATE = `You are a helpful AI agent
|
|
130
|
+
const AGENT_PROMPT_TEMPLATE = `You are a helpful AI agent.
|
|
138
131
|
|
|
139
|
-
Given the input, complete the task
|
|
140
|
-
|
|
141
|
-
- Use read_file and write_file to work with files
|
|
142
|
-
- Use custom tools defined by the agent author
|
|
143
|
-
- Call submit_result when you're done
|
|
144
|
-
|
|
145
|
-
Input: The caller's input will be provided as JSON.
|
|
146
|
-
|
|
147
|
-
Work step by step, verify your results, and submit the final output.
|
|
132
|
+
Given the input, complete the task step by step.
|
|
133
|
+
Verify your results before submitting.
|
|
148
134
|
`;
|
|
149
135
|
const AGENT_SCHEMA_TEMPLATE = `{
|
|
150
136
|
"input": {
|
|
@@ -287,9 +273,8 @@ function registerInitCommand(program) {
|
|
|
287
273
|
process.stdout.write(` 1. cd ${name}\n`);
|
|
288
274
|
}
|
|
289
275
|
process.stdout.write(` ${stepNum}. Edit prompt.md with your agent instructions\n`);
|
|
290
|
-
process.stdout.write(` ${stepNum + 1}. Edit
|
|
291
|
-
process.stdout.write(` ${stepNum + 2}.
|
|
292
|
-
process.stdout.write(` ${stepNum + 3}. Run: orchagent publish\n`);
|
|
276
|
+
process.stdout.write(` ${stepNum + 1}. Edit schema.json with your input/output schemas\n`);
|
|
277
|
+
process.stdout.write(` ${stepNum + 2}. Run: orchagent publish\n`);
|
|
293
278
|
}
|
|
294
279
|
else if (options.type !== 'tool') {
|
|
295
280
|
const stepNum = name ? 2 : 1;
|
package/dist/commands/publish.js
CHANGED
|
@@ -309,6 +309,16 @@ function registerPublishCommand(program) {
|
|
|
309
309
|
if (!manifest.name) {
|
|
310
310
|
throw new errors_1.CliError('orchagent.json must have name');
|
|
311
311
|
}
|
|
312
|
+
// Warn about deprecated fields that are ignored
|
|
313
|
+
if (manifest.prompt) {
|
|
314
|
+
process.stderr.write(chalk_1.default.yellow('Warning: "prompt" field in orchagent.json is ignored. Use prompt.md file instead.\n'));
|
|
315
|
+
}
|
|
316
|
+
if (manifest.input_schema) {
|
|
317
|
+
process.stderr.write(chalk_1.default.yellow('Warning: "input_schema" field in orchagent.json is ignored. Use schema.json file instead.\n'));
|
|
318
|
+
}
|
|
319
|
+
if (manifest.output_schema) {
|
|
320
|
+
process.stderr.write(chalk_1.default.yellow('Warning: "output_schema" field in orchagent.json is ignored. Use schema.json file instead.\n'));
|
|
321
|
+
}
|
|
312
322
|
// Check for misplaced manifest fields at top level (common user error)
|
|
313
323
|
const manifestFields = ['manifest_version', 'dependencies', 'max_hops', 'timeout_ms', 'per_call_downstream_cap'];
|
|
314
324
|
const misplacedFields = manifestFields.filter(f => f in manifest && !manifest.manifest);
|