@camelai/camelrun 0.12.0 → 0.13.0

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.js CHANGED
@@ -51,7 +51,7 @@ MCP
51
51
 
52
52
  Options
53
53
  --json Print JSON (the default when stdout is not a terminal)
54
- --api-key <key>, --url <url> Instead of CAMELAI_API_KEY / CAMELAI_URL / the saved login
54
+ --api-key <key>, --url <url> Instead of CAMELAI_API_KEY / CAMELAI_BASE_URL / the saved login
55
55
 
56
56
  Docs: https://run.camelai.com/llms.txt`;
57
57
  const OPTIONS = {
@@ -203,7 +203,7 @@ async function login(flags, io, print) {
203
203
  apiKey = (await prompt.question("API key (create one at https://run.camelai.com/console/tokens): ")).trim();
204
204
  prompt.close();
205
205
  }
206
- const url = flags.url || io.env.CAMELAI_URL || DEFAULT_URL;
206
+ const url = flags.url || io.env.CAMELAI_BASE_URL || io.env.CAMELAI_URL || DEFAULT_URL;
207
207
  const me = await new Api({ apiKey, url }).me();
208
208
  const path = save({ apiKey, url }, io.env);
209
209
  print({ tenant: me.tenant, url, saved: path }, () => `Logged in as ${me.login ?? me.tenant} on ${url} (key saved to ${path})`);
package/dist/config.js CHANGED
@@ -32,11 +32,11 @@ export function forget(env = process.env) {
32
32
  rmSync(path, { force: true });
33
33
  return had ? path : undefined;
34
34
  }
35
- /** Flags first, then CAMELAI_API_KEY / CAMELAI_URL, then what `camelrun login` saved. */
35
+ /** Flags first, then CAMELAI_API_KEY / CAMELAI_BASE_URL (as the SDKs read it; CAMELAI_URL too), then what `camelrun login` saved. */
36
36
  export function resolve(flags, env = process.env) {
37
37
  const saved = readSaved(env);
38
38
  const apiKey = flags.apiKey || env.CAMELAI_API_KEY || saved.apiKey;
39
39
  if (!apiKey)
40
40
  throw new Error("No API key: run `camelrun login`, or set CAMELAI_API_KEY. Create one at https://run.camelai.com/console/tokens. Coding agents: read https://run.camelai.com/SKILL.md");
41
- return { apiKey, url: flags.url || env.CAMELAI_URL || saved.url || DEFAULT_URL };
41
+ return { apiKey, url: flags.url || env.CAMELAI_BASE_URL || env.CAMELAI_URL || saved.url || DEFAULT_URL };
42
42
  }
package/dist/ops.js CHANGED
@@ -51,7 +51,8 @@ export function summarize(agent, record) {
51
51
  const result = outcome.result ?? {};
52
52
  const failure = outcome.error ? { code: outcome.uncertain ? "uncertain" : "runtime_error", message: outcome.error }
53
53
  : result.error ? { code: result.code ?? "model_error", message: result.error }
54
- : result.stopped === "spend_limit" ? { code: "spend_limit", message: "The agent reached its spend limit; raise it to go on" } : undefined;
54
+ : result.stopped === "spend_limit" ? { code: "spend_limit", message: "The agent reached its spend limit; raise it to go on" }
55
+ : result.stopped === "turn_limit" ? { code: "turn_limit", message: "The run reached its limit of model responses or time; send another message to continue" } : undefined;
55
56
  const status = failure ? "failed" : result.stopped === "input_required" ? "input_required" : "completed";
56
57
  return {
57
58
  ...base, status,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camelai/camelrun",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "camelRun CLI: deploy and manage agents on camelRun from a terminal, or from a coding agent over MCP (camelrun mcp).",
5
5
  "type": "module",
6
6
  "license": "MIT",