@orchagent/cli 0.3.60 → 0.3.61

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.
@@ -165,30 +165,27 @@ license: MIT
165
165
  Instructions and guidance for AI agents...
166
166
  `;
167
167
  function resolveInitFlavor(typeOption) {
168
- const normalized = (typeOption || 'agent').trim().toLowerCase();
168
+ const normalized = (typeOption || 'prompt').trim().toLowerCase();
169
169
  if (normalized === 'skill') {
170
170
  return { type: 'skill' };
171
171
  }
172
- if (normalized === 'agent') {
173
- return { type: 'agent', flavor: 'direct_llm' };
174
- }
175
172
  if (normalized === 'prompt') {
176
- return { type: 'agent', flavor: 'direct_llm' };
173
+ return { type: 'prompt', flavor: 'direct_llm' };
177
174
  }
178
- if (normalized === 'agentic') {
175
+ if (normalized === 'agent' || normalized === 'agentic') {
179
176
  return { type: 'agent', flavor: 'managed_loop' };
180
177
  }
181
178
  if (normalized === 'tool' || normalized === 'code') {
182
- return { type: 'agent', flavor: 'code_runtime' };
179
+ return { type: 'tool', flavor: 'code_runtime' };
183
180
  }
184
- throw new errors_1.CliError(`Unknown --type '${typeOption}'. Use 'agent' or 'skill' (legacy: prompt, tool, agentic, code).`);
181
+ throw new errors_1.CliError(`Unknown --type '${typeOption}'. Use 'prompt', 'tool', 'agent', or 'skill' (legacy aliases: agentic, code).`);
185
182
  }
186
183
  function registerInitCommand(program) {
187
184
  program
188
185
  .command('init')
189
186
  .description('Initialize a new agent project')
190
187
  .argument('[name]', 'Agent name (default: current directory name)')
191
- .option('--type <type>', 'Type: agent or skill (legacy: prompt, tool, agentic, code)', 'agent')
188
+ .option('--type <type>', 'Type: prompt, tool, agent, or skill (legacy aliases: agentic, code)', 'prompt')
192
189
  .option('--run-mode <mode>', 'Run mode for agents: on_demand or always_on', 'on_demand')
193
190
  .action(async (name, options) => {
194
191
  const cwd = process.cwd();
@@ -247,13 +244,13 @@ function registerInitCommand(program) {
247
244
  throw err;
248
245
  }
249
246
  }
250
- if (initMode.flavor === 'direct_llm' && runMode === 'always_on') {
251
- throw new errors_1.CliError("run_mode=always_on requires runtime.command in orchagent.json (e.g. \"runtime\": { \"command\": \"python main.py\" }).");
247
+ if (initMode.flavor !== 'code_runtime' && runMode === 'always_on') {
248
+ throw new errors_1.CliError("run_mode=always_on requires runtime.command in orchagent.json (e.g. \"runtime\": { \"command\": \"python main.py\" }). Use --type tool for code-runtime agents.");
252
249
  }
253
250
  // Create manifest and type-specific files
254
251
  const manifest = JSON.parse(MANIFEST_TEMPLATE);
255
252
  manifest.name = agentName;
256
- manifest.type = 'agent';
253
+ manifest.type = initMode.type;
257
254
  manifest.run_mode = runMode;
258
255
  if (initMode.flavor === 'managed_loop') {
259
256
  manifest.description = 'An AI agent with tool use';
@@ -163,13 +163,17 @@ async function collectSkillFiles(skillDir, maxFiles = 20, maxTotalSize = 500_000
163
163
  }
164
164
  function canonicalizeManifestType(typeValue) {
165
165
  const rawType = (typeValue || 'agent').trim().toLowerCase();
166
- if (rawType === 'skill') {
167
- return { canonicalType: 'skill', rawType };
166
+ if (['prompt', 'tool', 'agent', 'skill'].includes(rawType)) {
167
+ return { canonicalType: rawType, rawType };
168
168
  }
169
- if (['agent', 'prompt', 'tool', 'agentic', 'code'].includes(rawType)) {
169
+ // Legacy aliases
170
+ if (rawType === 'agentic') {
170
171
  return { canonicalType: 'agent', rawType };
171
172
  }
172
- throw new errors_1.CliError(`Invalid type '${typeValue}'. Use 'agent' or 'skill' (legacy values accepted: prompt, tool, agentic, code).`);
173
+ if (rawType === 'code') {
174
+ return { canonicalType: 'tool', rawType };
175
+ }
176
+ throw new errors_1.CliError(`Invalid type '${typeValue}'. Use 'prompt', 'tool', 'agent', or 'skill' (legacy aliases: agentic, code).`);
173
177
  }
174
178
  function normalizeRunMode(runMode) {
175
179
  const normalized = (runMode || 'on_demand').trim().toLowerCase();
@@ -726,6 +730,10 @@ function registerPublishCommand(program) {
726
730
  process.stdout.write(` ${chalk_1.default.cyan('Using workspace default environment')}\n`);
727
731
  }
728
732
  }
733
+ // Show service auto-update info
734
+ if (uploadResult.services_updated && uploadResult.services_updated > 0) {
735
+ process.stdout.write(` ${chalk_1.default.green(`Updated ${uploadResult.services_updated} service(s) to ${assignedVersion}`)}\n`);
736
+ }
729
737
  }
730
738
  finally {
731
739
  // Clean up temp files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchagent/cli",
3
- "version": "0.3.60",
3
+ "version": "0.3.61",
4
4
  "description": "Command-line interface for orchagent — deploy and run AI agents for your team",
5
5
  "license": "MIT",
6
6
  "author": "orchagent <hello@orchagent.io>",