@laburen/delta-cli 0.2.0-canary.13 → 0.2.0-canary.20

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.
Files changed (65) hide show
  1. package/dist/commands/agent-follow-ups/body.d.ts +20 -0
  2. package/dist/commands/agent-follow-ups/body.js +31 -0
  3. package/dist/commands/agent-follow-ups/body.js.map +1 -0
  4. package/dist/commands/agent-follow-ups.d.ts +10 -0
  5. package/dist/commands/agent-follow-ups.js +129 -0
  6. package/dist/commands/agent-follow-ups.js.map +1 -0
  7. package/dist/commands/agent-run/body.d.ts +2 -0
  8. package/dist/commands/agent-run/body.js +2 -0
  9. package/dist/commands/agent-run/body.js.map +1 -1
  10. package/dist/commands/agent-run/render.d.ts +26 -3
  11. package/dist/commands/agent-run/render.js +47 -6
  12. package/dist/commands/agent-run/render.js.map +1 -1
  13. package/dist/commands/agent-run.d.ts +3 -1
  14. package/dist/commands/agent-run.js +145 -31
  15. package/dist/commands/agent-run.js.map +1 -1
  16. package/dist/commands/agent-tools/shared.d.ts +176 -0
  17. package/dist/commands/agent-tools/shared.js +4 -1
  18. package/dist/commands/agent-tools/shared.js.map +1 -1
  19. package/dist/commands/config-sources.d.ts +3 -1
  20. package/dist/commands/config-sources.js +6 -0
  21. package/dist/commands/config-sources.js.map +1 -1
  22. package/dist/commands/config-wizard.js +21 -20
  23. package/dist/commands/config-wizard.js.map +1 -1
  24. package/dist/commands/wizards.d.ts +1 -1
  25. package/dist/commands/wizards.js +9 -1
  26. package/dist/commands/wizards.js.map +1 -1
  27. package/dist/errors.d.ts +4 -1
  28. package/dist/errors.js +517 -44
  29. package/dist/errors.js.map +1 -1
  30. package/dist/generated/commands.d.ts +9 -1
  31. package/dist/generated/commands.js +17 -11
  32. package/dist/generated/commands.js.map +1 -1
  33. package/dist/generated/schemas.js +15 -12
  34. package/dist/generated/schemas.js.map +1 -1
  35. package/dist/invocation.d.ts +30 -0
  36. package/dist/invocation.js +130 -33
  37. package/dist/invocation.js.map +1 -1
  38. package/dist/operations/file-input.d.ts +5 -0
  39. package/dist/operations/file-input.js +67 -0
  40. package/dist/operations/file-input.js.map +1 -0
  41. package/dist/operations/params.d.ts +3 -1
  42. package/dist/operations/params.js +35 -6
  43. package/dist/operations/params.js.map +1 -1
  44. package/dist/operations/register.d.ts +4 -0
  45. package/dist/operations/register.js +67 -7
  46. package/dist/operations/register.js.map +1 -1
  47. package/dist/operations/run-operation.js +4 -2
  48. package/dist/operations/run-operation.js.map +1 -1
  49. package/dist/operations/skeleton.js +13 -5
  50. package/dist/operations/skeleton.js.map +1 -1
  51. package/dist/operations/tables.js +11 -2
  52. package/dist/operations/tables.js.map +1 -1
  53. package/dist/output.d.ts +2 -0
  54. package/dist/output.js +30 -5
  55. package/dist/output.js.map +1 -1
  56. package/dist/pickers.d.ts +4 -2
  57. package/dist/pickers.js +29 -15
  58. package/dist/pickers.js.map +1 -1
  59. package/dist/program.js +13 -24
  60. package/dist/program.js.map +1 -1
  61. package/docs/SKILL.md +20 -13
  62. package/docs/references/auth-and-organizations.md +2 -0
  63. package/docs/references/commands.md +149 -22
  64. package/docs/references/output-and-errors.md +40 -16
  65. package/package.json +2 -2
package/dist/pickers.js CHANGED
@@ -2,7 +2,7 @@ import { isLaburenApiError } from "@laburen/delta-sdk/platform";
2
2
  import { withoutYes } from "./confirm.js";
3
3
  import { CliError, helpCommand, toCliError } from "./errors.js";
4
4
  import { OPERATION_COMMANDS, } from "./generated/commands.js";
5
- import { commandText, GLOBAL_VALUE_OPTIONS, invocationOf, suggestedCommand } from "./invocation.js";
5
+ import { commandText, flagsEnd, invocationOf, suggestedCommand, takesValue } from "./invocation.js";
6
6
  import { callOperation } from "./operations/call.js";
7
7
  import { escapeControl, notice } from "./output.js";
8
8
  import { canPrompt, chooseOne } from "./prompter.js";
@@ -30,11 +30,11 @@ function exampleCommand(ctx, op, ids, typed) {
30
30
  const added = op.positionals.slice(typed.length).map((p) => ids[p] || `<${p}>`);
31
31
  return commandText(argsWithIds(ctx, op, typed, added));
32
32
  }
33
- /** Los posicionales que se pueden omitir y elegir de una lista: los que tienen `list` y solo van seguidos de otros así. */
33
+ /** Los posicionales que se pueden omitir y elegir: los que tienen `list` o valores fijos (`image`) y solo van seguidos de otros así. */
34
34
  export function pickableIds(op) {
35
35
  const pickable = new Set();
36
36
  for (const name of [...op.positionals].reverse()) {
37
- if (!op.idSources[name])
37
+ if (!op.idSources[name] && !op.positionalValues?.[name])
38
38
  break;
39
39
  pickable.add(name);
40
40
  }
@@ -46,20 +46,13 @@ export function argsWithIds(ctx, op, given, added) {
46
46
  if (args.length === 0)
47
47
  return [...op.path, ...given, ...added];
48
48
  // El valor de un flag (`--org agt_1`) no es la ruta ni un posicional: se saltea para no insertar al lado.
49
- const valueFlags = new Set([
50
- ...GLOBAL_VALUE_OPTIONS,
51
- "--data",
52
- "--dir",
53
- ...[...op.queryFlags, ...op.bodyFlags].filter((s) => s.type !== "boolean").map((s) => s.flag),
54
- ]);
55
49
  const words = [...op.path, ...given];
56
50
  let at = -1;
57
51
  let matched = 0;
58
- for (let i = 0; i < args.length && matched < words.length; i++) {
52
+ const end = flagsEnd(args);
53
+ for (let i = 0; i < end && matched < words.length; i++) {
59
54
  const arg = args[i];
60
- if (arg === "--")
61
- break;
62
- if (valueFlags.has(arg)) {
55
+ if (takesValue(arg)) {
63
56
  i++;
64
57
  continue;
65
58
  }
@@ -158,6 +151,15 @@ function asLoginRequired(ctx, err) {
158
151
  * (el comando real con ese id) para que la persona elija (C28). Si la API rechaza el list, ese error; sin red, el de hoy.
159
152
  */
160
153
  export async function missingWithChoices(ctx, op, ids, given, name, session) {
154
+ // Un id con valores fijos del contrato (`image`) se ofrece sin llamar a la API.
155
+ const values = op.positionalValues?.[name];
156
+ if (values) {
157
+ const choices = values.map((value) => ({ id: value, name: value }));
158
+ return choicesError(name, choices, false, (id) => {
159
+ const args = argsWithIds(ctx, op, given, [id]);
160
+ return commandText(op.destructive ? withoutYes(args) : args);
161
+ }, `Missing the ${nounOf(name)}.`);
162
+ }
161
163
  const source = op.idSources[name];
162
164
  const listOp = source && findOperation(source.list);
163
165
  if (!source || !listOp)
@@ -197,10 +199,12 @@ export async function missingWithChoices(ctx, op, ids, given, name, session) {
197
199
  * `missing_arguments` para que la persona elija el id `name` sin poder preguntarle (C28): hasta `CHOICES_LIMIT`
198
200
  * `choices` y un `next` por opción con el comando que arma `commandFor`. `hasMore` dice si la lista sigue.
199
201
  */
200
- export function choicesError(name, choices, hasMore, commandFor) {
202
+ export function choicesError(name, choices, hasMore, commandFor,
203
+ /** El mensaje, si no es un id (`image` es un nombre de una lista fija). */
204
+ message = `Missing the ${nounOf(name)} id.`) {
201
205
  const shown = choices.slice(0, CHOICES_LIMIT);
202
206
  const more = hasMore || choices.length > CHOICES_LIMIT ? ` Showing the first ${CHOICES_LIMIT}.` : "";
203
- return new CliError("missing_arguments", `Missing the ${nounOf(name)} id.${more}`, 2, shown.map((c) => ({
207
+ return new CliError("missing_arguments", `${message}${more}`, 2, shown.map((c) => ({
204
208
  command: commandFor(c.id),
205
209
  when: "Ask the user which one; do not choose yourself",
206
210
  })), undefined, { choices: shown, userActionRequired: true });
@@ -241,6 +245,16 @@ async function pickList(deps, listOp, ids, needs, example) {
241
245
  }
242
246
  /** Elige con un `select` el id `name` de la operación; `ids` trae los previos ya resueltos. */
243
247
  export async function pickId(deps, op, ids, name) {
248
+ const values = op.positionalValues?.[name];
249
+ if (values) {
250
+ const noun = nounOf(name);
251
+ return chooseOne(deps.ctx, deps.mode, deps.prompter, {
252
+ message: `Select the ${noun}`,
253
+ noun,
254
+ choices: values.map((value) => ({ value, label: value })),
255
+ alwaysAsk: deps.alwaysAsk,
256
+ });
257
+ }
244
258
  const source = op.idSources[name];
245
259
  const listOp = source && findOperation(source.list);
246
260
  if (!source || !listOp)
@@ -1 +1 @@
1
- {"version":3,"file":"pickers.js","sourceRoot":"","sources":["../src/pickers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,i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,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,wCAAwC,CAAC;IACzG,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACzE,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,QAAQ,CAAC,YAAY,EAAE,gDAAgD,EAAE,CAAC,CAAC,CAAC;IACvF,CAAC;IACD,2HAA2H;IAC3H,MAAM,IAAI,GAAG,CAAC,OAAe,EAAE,OAAiB,EAAE,EAAE,CACnD,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE;QAC7C,OAAO;QACP,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,OAAO,CAAC;QACnD,SAAS,EAAE,IAAI;KACf,CAAC,CAAC;IACJ,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS;QAAE,MAAM,CAAC,IAAI,GAAG,MAAM,IAAI,CAAC,sBAAsB,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IAC3F,IAAI,MAAM,CAAC,EAAE,KAAK,SAAS;QAAE,MAAM,CAAC,EAAE,GAAG,MAAM,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;AACxF,CAAC"}
package/dist/program.js CHANGED
@@ -2,6 +2,7 @@ import { readFileSync } from "node:fs";
2
2
  import { isLaburenApiError } from "@laburen/delta-sdk/platform";
3
3
  import { Command, CommanderError, Option } from "commander";
4
4
  import { registerAgentChecks, registerVersionNotices } from "./commands/agent-checks.js";
5
+ import { registerAgentFollowUpsCommand } from "./commands/agent-follow-ups.js";
5
6
  import { registerAgentRunCommand } from "./commands/agent-run.js";
6
7
  import { registerAgentToolCommands } from "./commands/agent-tools.js";
7
8
  import { registerAuthCommands } from "./commands/auth.js";
@@ -14,7 +15,7 @@ import { registerCreateWizards } from "./commands/wizards.js";
14
15
  import { refreshCompletion } from "./completion/files.js";
15
16
  import { resolveConfigDir } from "./config/paths.js";
16
17
  import { CliError, toCliError } from "./errors.js";
17
- import { invocationOf } from "./invocation.js";
18
+ import { flagsEnd, invocationOf, registerValueFlags, setUserArgs, valueOptionsOf, } from "./invocation.js";
18
19
  import { resolveMode } from "./mode.js";
19
20
  import { registerOperationCommands } from "./operations.js";
20
21
  import { writeError } from "./output.js";
@@ -27,9 +28,9 @@ const NON_ERROR_CODES = new Set(["commander.helpDisplayed", "commander.version"]
27
28
  const HELP_AS_USAGE_ERROR = "commander.help";
28
29
  /** Pasa `--non-interactive=false|true` a la forma que commander entiende (`--no-non-interactive` / `--non-interactive`). */
29
30
  function normalizeNonInteractive(argv) {
30
- const end = argv.indexOf("--");
31
+ const end = flagsEnd(argv);
31
32
  return argv.map((arg, i) => {
32
- if (end !== -1 && i >= end)
33
+ if (i >= end)
33
34
  return arg;
34
35
  if (arg === "--non-interactive=false")
35
36
  return "--no-non-interactive";
@@ -88,6 +89,7 @@ export function buildProgram(ctx, authDeps = {}, orgDeps = {}, prompter = clackP
88
89
  registerVersionNotices(program);
89
90
  registerAgentToolCommands(program, ctx, { fetch: authDeps.fetch, prompter });
90
91
  registerAgentRunCommand(program, ctx, { fetch: authDeps.fetch, prompter });
92
+ registerAgentFollowUpsCommand(program, ctx, { fetch: authDeps.fetch, prompter });
91
93
  registerAuthCommands(program, ctx, authDeps);
92
94
  registerOrgCommands(program, ctx, { fetch: authDeps.fetch, ...orgDeps, prompter });
93
95
  registerWhoamiCommand(program, ctx, { fetch: authDeps.fetch });
@@ -158,23 +160,6 @@ export async function runStandalone(ctx, flags, action, ids) {
158
160
  return cliError.exitCode;
159
161
  }
160
162
  }
161
- /** Las opciones con valor de un comando, por nombre largo y corto, con la forma en que consumen valores. */
162
- function valueOptionsOf(command) {
163
- const found = new Map();
164
- for (const option of command.options) {
165
- if (!option.required && !option.optional)
166
- continue;
167
- const kind = option.variadic
168
- ? "variadic"
169
- : option.optional
170
- ? "optional"
171
- : "required";
172
- for (const flag of [option.long, option.short])
173
- if (flag)
174
- found.set(flag, kind);
175
- }
176
- return found;
177
- }
178
163
  /**
179
164
  * Recorre `args` sobre el árbol de comandos y devuelve la ruta del comando elegido, p. ej. `["agents", "list"]`.
180
165
  * El valor de una opción con valor no es un subcomando: se saltea mirando las opciones del árbol (las del programa
@@ -214,12 +199,16 @@ export function commandPath(program, args) {
214
199
  }
215
200
  /** Punto de entrada: parsea `argv`, ejecuta el comando y devuelve el código de salida. */
216
201
  export async function main(baseCtx, argv, deps = {}) {
217
- const normalized = normalizeNonInteractive(argv);
218
- const args = normalized.slice(2);
219
- // La ruta sale del árbol de comandos, que se arma con este mismo contexto: se completa después de armarlo.
220
- const invocation = { args, command: [] };
202
+ // Los argumentos y la ruta salen del árbol de comandos, que se arma con este mismo contexto: se completan después de armarlo.
203
+ const invocation = { args: [], command: [] };
221
204
  const ctx = { ...baseCtx, invocation };
222
205
  const program = buildProgram(ctx, { fetch: deps.fetch, ...deps.auth }, { fetch: deps.fetch, ...deps.orgs }, deps.prompter);
206
+ // Con el árbol armado se sabe qué flags llevan valor: recién ahí se puede decir dónde terminan los flags de `argv`.
207
+ registerValueFlags(program);
208
+ const normalized = normalizeNonInteractive(argv);
209
+ const args = normalized.slice(2);
210
+ setUserArgs(args);
211
+ invocation.args = args;
223
212
  invocation.command = commandPath(program, args);
224
213
  try {
225
214
  await program.parseAsync(normalized);
@@ -1 +1 @@
1
- {"version":3,"file":"program.js","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM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ACrH,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,YAAY;YAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC5F,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;QACpD,UAAU,CAAC,GAAG,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAChC,OAAO,QAAQ,CAAC,QAAQ,CAAC;IAC1B,CAAC;YAAS,CAAC;QACV,yFAAyF;QACzF,iBAAiB,CAChB,GAAG,EACH,OAAO,EACP,GAAG,EAAE,CAAC,WAAW,EAAE,EACnB,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,EAAe,CAAC,YAAY,CAC9C,CAAC;IACH,CAAC;IACD,MAAM,IAAI,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACrC,iHAAiH;IACjH,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;QAC9E,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,EAAe,CAAC;QAC1C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC3C,MAAM,cAAc,CACnB,GAAG,EACH,IAAI,EACJ,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,EACzC,WAAW,EAAE,EACb,IAAI,CAAC,KAAK,CACV,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC"}
package/docs/SKILL.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: laburen-cli
3
- description: Use the `laburen` CLI to create, run and operate Laburen agents, skills, MCP connections, website chat widgets, threads (conversations) and API tokens from the terminal, without the dashboard. Use when a task says "create an agent", "run or test an agent", "add a tool", "upload a skill", "connect an MCP", "version or activate an agent", "put the agent on a website", "add a chat widget", "create a thread or conversation", "store messages before a turn", or "create the worker token".
3
+ description: Use the `laburen` CLI to create, run and operate Laburen agents, skills, MCP connections, website chat widgets, threads (conversations), follow-ups and API tokens from the terminal, without the dashboard. Use when a task says "create an agent", "run or test an agent", "add a tool", "upload a skill", "connect an MCP", "version or activate an agent", "put the agent on a website", "add a chat widget", "create a thread or conversation", "store messages before a turn", "simulate a follow-up", "test the follow-up of an agent", or "create the worker token".
4
4
  metadata:
5
5
  package: "@laburen/delta-cli"
6
6
  ---
@@ -29,7 +29,7 @@ laburen agents list
29
29
  - Without a terminal the saved organization (`orgs switch`) is ignored: pass `--org <id>` or set `LABUREN_ORG=<id>` (or use `laburen link --org <id>` in the folder). A token that belongs to one organization needs none.
30
30
  - Run `laburen <command> --help` for the flags of any command; every subcommand help also lists the global options. `--org ""` fails with `invalid_flag_value`.
31
31
  - Tab completion for zsh, bash and PowerShell (on Windows, run it from PowerShell, or from Git Bash/WSL for bash): run `laburen completion --install` once and open a new terminal. It refreshes itself after the CLI is updated. `laburen completion zsh|bash|powershell` prints the script instead; `laburen completion` with no shell takes it from `$SHELL`.
32
- - If you are an AI agent with no terminal, the CLI is non-interactive: it never asks questions, and errors come as JSON on stdout with a `next` list of commands that fix them (and `issues` with the invalid fields, when the API sends them). Run the command in `next`: it is the command you ran with what was missing added.
32
+ - If you are an AI agent with no terminal, the CLI is non-interactive: it never asks questions, and errors come as JSON (on stdout, except in commands whose stdout is the content: `agents run` without `--json`, and `agents follow-ups run` without `--json` when the result has `error`, write the error on stderr) with a `next` list of commands that fix them (and `issues` with the invalid fields, when the API sends them). Run the command in `next`: it is the command you ran with what was missing added.
33
33
  - Exit codes: `0` ok, `1` API or network error, `2` wrong usage.
34
34
 
35
35
  ## Discover, then build
@@ -42,14 +42,16 @@ laburen agents list
42
42
  - A selector (an agent, a skill, a connection by name) searches by name when the list has more than one page.
43
43
  - Interactive `agents create` (after `Configure the first version now?`) and `agents versions create` ask the whole config, with models from `laburen models list` and projects from `laburen knowledge projects list`. Headers of http tools are never asked because they are secrets.
44
44
 
45
- Tool rules the API enforces (the wizard and `--schema` already follow them): every tool type except `http` can appear only once in `config.tools` (the schema marks them with `x-single: true`); `reasoning_effort` must be one of the model's levels (`laburen models list` shows them in REASONING) and a model without reasoning takes none; a `thinking` tool is only for models that do not reason, or with `reasoning_effort: "off"`. `laburen agents tools add --schema` prints the schema of a tool, with no login.
45
+ Tool rules the API enforces (the wizard and `--schema` already follow them): every tool type except `http` can appear only once in `config.tools` (the schema marks them with `x-single: true`); `reasoning_effort` must be one of the model's levels (`laburen models list` shows them in REASONING) and a model without reasoning takes none; a `thinking` tool is only for models that do not reason: a model that reasons cannot have it at any level, `off` included. `laburen agents tools add --schema` prints the schema of a tool, with no login.
46
46
 
47
- - `laburen models list` shows each model's default effort in REASONING, for example `low,medium,high (default: medium)`; it is used when `reasoning_effort` is omitted. A model that reasons and has no `off` level can never use a `thinking` tool.
47
+ - `laburen models list` shows each model's default effort in REASONING, for example `low,medium,high (default: medium)`; it is used when `reasoning_effort` is omitted. EVALS says if the model can run with `--environment evals`, and THINKING TOOL if a version with it can have the `thinking` tool (`no` for every model that reasons, `off` included). The API decides both rules; the CLI only shows them. The file columns (IMAGES, PDF, CACHE; `capabilities.image_input`, `pdf_input`, `image_handling`, `pdf_handling`, `prompt_caching` in `--json`) say how each model gets images and PDFs (itself, or through another model that describes or transcribes them) and how it caches; to choose a model use them (the provider is not published). Details in `references/commands.md` (end of the page).
48
48
  - Fields of each tool (`--schema` prints them): `http` takes `url` (required), `method`, `name`, `description`, `headers`, `body`, `query_parameters`, `path_variables` and `with_approval` (`true` = a person must approve each call); `thinking` takes `instructions` and `max_thoughts` (an integer, at least 1); `send_files` and `request_human` take nothing besides `type` and an optional `id`. Any other key fails with `invalid_request` (one issue per unknown key, with its name in `field`). `agents tools add --json` and `agents tools remove --json` print the agent with its new `version` inside.
49
49
  - Items of the http tool's `headers`, `body`, `query_parameters` and `path_variables` are `{ "key", "value"?, "description"?, "is_user_provided"?, "required"?, "accepted_values"?, "type"? }` (only `key` is required), for example `{"key":"Authorization","value":"Bearer xyz"}`.
50
50
  - `agents tools remove <agent_id> <tool_id>` takes the tool's `id` from `config.tools[]`; read it with `laburen agents versions get <agent_id> <version_id>` (or the latest version). Without a TTY it is required; with a TTY a picker lists the tools.
51
51
  - `laburen agents widgets create <agent_id> --name <name>` puts the agent on a website: the response has the snippet ready to paste (`web_widget_script`), an `embed_iframe` and a `standalone_url` to try it. It also returns `identity_secret` **once** (same for `agents widgets rotate`): save it for the site's backend, which signs the visitor identity token with it. Details, flags and identifying visitors: [Commands](references/commands.md#widgets).
52
- - `laburen threads create --agent-id <agent_id>` opens a conversation before any turn, with metadata, stored messages (`user` or `assistant`) or a link to an existing WhatsApp, CRM or Chatwoot conversation (`--channel`). Storing messages does not run the agent: run it after with `laburen agents run <agent_id> --thread <thread_id> "<message>"`. The response has `created`: `false` when it found the existing conversation of a channel (calling again appends the `messages` again). `threads get` needs `read`, the others `write`; `threads update` without metadata changes nothing. Replies of `agents run` on a channel thread do not go through the channel, and the model sees only the last `config.history.exchanges` exchanges (default 5, max 12). Details and errors: [Commands](references/commands.md#threads).
52
+ - `laburen threads create --agent-id <agent_id>` opens a conversation before any turn, with metadata, stored messages (`user` or `assistant`) or a link to an existing WhatsApp, CRM or Chatwoot conversation (`--channel`). Storing messages does not run the agent: run it after with `laburen agents run <agent_id> --thread <thread_id> "<message>"`. The response has `created`: `false` when it found the existing conversation of a channel (calling again appends the `messages` again). `threads get` needs `read`, the others `write`; `threads update` without metadata and without `--ai-enabled` / `--no-ai-enabled` changes nothing. `threads update <thread_id> --ai-enabled` turns the AI back on after a handoff to a human (`--no-ai-enabled` turns it off); on `chatwoot` and `crm` threads it fails with `ai_status_managed_by_channel` because Chatwoot manages it there. Replies of `agents run` on a channel thread do not go through the channel, and the model sees only the last `config.history.exchanges` exchanges (default 12, 1 to 30). Details and errors: [Commands](references/commands.md#threads).
53
+ - `laburen decisions create --state <text|json|@file> --questions <json|@file>` asks a decision model questions about a state (text, files and JSON) and returns one answer per question, without running an agent; `laburen decisions get <decision_id>` reads a saved decision (also the ones of an agent's input guardrail: its `state` is the end customer's message, and its `file` parts have no `url`; the guardrail also evaluates the attachments of the last message, each model only the types it reads) and `laburen decisions list` lists them, newest first (`--thread-id`, `--agent-id`, `--feature`). The ids of the guardrail decisions of a turn are in `guardrail.decision_ids` of `agents run --json`. A `score` answer is a weighted average of the indexes of `criteria` and can be fractional (`1.6`): round it to read one level. `error_code` says why a decision has `answers: null`; a `decisions create` that fails after the model call saves the decision and the error carries `details.decision_id`. `create` returns fewer fields than `get` (no `state`, `questions`, `feature`, `error_code`): read them with `decisions get`. `create` needs `query`, `get` and `list` need `read`. The API validates the rules; see [Decisions](references/commands.md#decisions).
54
+ - `laburen agents follow-ups run <agent_id> --thread <thread_id>` simulates the follow-up of an agent (what it writes to a customer who stopped answering, set in `follow_up` of the config) on a disposable copy of a conversation (or on one you write with `--messages @messages.json`, a list of `{"role","parts":[{"type":"text","text"}]}`: text only, and `created_at` on all the messages or on none) and sends nothing. Needs `query` (`--drafts` needs `write`). The tools run for real and it costs credits. `--mode decider|agent|both`, `--step`, `--version-id` and `--environment evals` shape it. Details and errors: [Commands](references/commands.md#follow-ups).
53
55
  - `laburen tokens create` returns the secret once, in `value`. Save it right away. Revoked tokens stay in `tokens list` (there is no `tokens delete`). `tokens update <token_id> --description null` clears the description.
54
56
 
55
57
  ### Facts that are easy to get wrong
@@ -57,28 +59,33 @@ Tool rules the API enforces (the wizard and `--schema` already follow them): eve
57
59
  - **MCP headers are an object**: `--headers '{"Authorization":"Bearer x"}'` (name to value). The http tool's headers are a different shape, a list of `{ "key", "value" }`. `mcp connections versions create` without `--headers` keeps the headers of the latest version; `--headers '{}'` removes them. Without `--url` it keeps the url of the latest version too (the url is always `[REDACTED]`, so this is how you change only the headers); a connection with no version yet fails with `invalid_request` on `url`.
58
60
  - **Reasoning**: in a version it lives at `config.model.reasoning_effort` (for example `{"model":{"id":"<model_id>","reasoning_effort":"high"}}`). Per run it is `--reasoning <level>` (`model_settings.reasoning`).
59
61
  - **`agents get` has no config.** Read it with `laburen agents versions get <agent_id> <active_version_id>` (the active version id is in `agents get`).
60
- - **Switching to a model that always reasons** (no `off` level) fails if the version has the `thinking` tool. Do it in ONE new version: read the current tools with `laburen agents versions get <agent_id> <version_id>`, then send the model and the whole `tools` list without `thinking` (`tools` replaces the list, so every tool you keep must be in it):
62
+ - **Switching to a model that reasons** (REASONING is not empty) fails if the version has the `thinking` tool, whatever the level. Do it in ONE new version: read the current tools with `laburen agents versions get <agent_id> <version_id>`, then send the model and the whole `tools` list without `thinking` (`tools` replaces the list, so every tool you keep must be in it):
61
63
 
62
64
  ```sh
63
65
  laburen agents update <agent_id> --config '{"model":{"id":"<reasoning model>"},"tools":[<all current tools except thinking>]}' --activate
64
66
  ```
65
67
 
66
68
  Removing `thinking` first with `agents tools remove` and changing the model after also works, but makes two versions.
67
- - **`--search <text>`** filters by name (case-insensitive) on `agents list`, `skills list`, `mcp connections list`, `knowledge projects list` and `tokens list`.
69
+ - **`--search <text>`** filters by name (case-insensitive) on `agents list`, `skills list`, `mcp connections list`, `knowledge projects list` and `tokens list`; on `models list` it filters by model id or display name.
68
70
  - **Permissions are independent**: `query`, `read`, `write` and `admin` do not include each other. A token with only `admin` cannot read. Deleting agents, skills, MCP connections and widgets needs `admin`; `insufficient_permissions` means the token lacks one.
69
71
  - **`resource_in_use`** (deleting a skill or MCP connection that agents still use): `details.agent_versions` lists the blocking agent versions, `[{ agent_id, version_id, is_active }]` (no repeats); `details.agent_ids` lists their agents. Versions are immutable, so they are not edited. Recipe: (1) for an `is_active: true` entry, make the agent stop using the resource: `laburen agents update <agent_id> --skills '[]' --activate` (or `--mcp-connections '[]'`, or the list without that resource); (2) `laburen agents versions delete <agent_id> <version_id>` for each entry with `is_active: false`, and also for the version that was active before step 1 (it is inactive now and still assigns the resource; the new active version cannot be deleted); (3) retry the delete. Or delete the agent. The CLI `next` has one `agents versions delete` per inactive version and an `agents versions get` for the active one (after step 1, delete that one too, then retry).
70
72
  - **`mcp_server_unreachable`** (exit 1, API code `400`): the API could not connect to the MCP server when you listed its tools (`details.connection_id` says which connection). Saving an agent `tools` filter with a MCP that is down does not fail: it saves and the response carries a `mcp_tools_unverified` warning. It is not retried automatically: check the URL and headers (`mcp connections versions list <connection_id>` shows the host of each version), then run it again. A run whose agent uses a MCP that is down does not fail with this error.
71
73
  - **`issues[].field`** points to the exact place, like `config.tools[3].url`. When the error names a field (`details.field`), `issues[]` has it too.
72
74
  - **`tools: []` on an assigned MCP connection means all of its tools** (the same as leaving `tools` out). To limit the agent, list the tool names.
73
75
  - **The MCP `url` is always `[REDACTED]`** (it can carry secrets), in every response. `url_host` shows the host so you can recognize the server. Header values are `[REDACTED]` too.
74
- - **A run fails with `invalid_request` on `model_settings.reasoning` and a message about the `thinking` tool**: the version has the `thinking` tool and the model reasons. Run again with `--reasoning off` (only if the model can turn it off) or run a version without the tool with `--version-id`.
76
+ - **A run fails with `invalid_request` and `details.reason` `thinking_tool_conflict`** (`details.model` says which model; `details.field` is `model` when you sent a `--model`; it is `model_settings.reasoning` only when you sent just `--reasoning` and the saved version already had a model that reasons together with the tool, saved before the current rule): the version has the `thinking` tool and the model reasons. `--reasoning off` does not fix it (the model reasons at every level). The first `next` is the same command without `--model` (or without `--reasoning`) if the command has it, as a flag or in a `--data` written on the command line (with a `--data` from a file or stdin the command is the same and the `when` says to take `model` out of the file first, then run it). Run a version without the tool with `--version-id`, or run again with a `--model` that has THINKING TOOL `yes` in `laburen models list` (`capabilities.thinking_tool` in `--json`; the API decides the rule). Saving a version with that mix fails with `invalid_agent_config` and the same `details.reason`.
77
+ - **Evals** (`agents run --environment evals`, needs only `query`): the turn runs with the evals accounts of the model providers and the conversation is marked as evals (it still shows in the dashboard); it never runs on production. `evals_not_supported` (its own error code, `details.model`): the model has no evals route; drop `--environment`, or use a `--model` with EVALS `yes` in `laburen models list`. With `--thread` (an evals thread) dropping only `--environment` does not work (`environment_mismatch`): add a `--model` with evals, or run without `--thread` to start a new conversation. Omit `--environment`, or pass `--environment null`, for production (the same in `threads create`). The `continue:` line repeats `--version-id`, `--environment`, `--model`, `--reasoning`, `--instructions` (a short one; `@file` as `@file`) and `--max-steps`, not `--resource`, `--file`, `--context` or the rest of `--data`. A thread created in evals on an agent whose model has no evals route is created anyway; its turns need `--model` with evals. The tokens of the model that reads an attachment are in `total_usage`: a model that does not read files natively can make a run with a PDF cost much more. `invalid_request` with `details.reason` `environment_mismatch` (`details.thread_environment` is `evals` or `null`): the `--thread` was created with the other environment, which never changes; the first `next` is the same command with the thread's environment, then the command without `--thread` (a new conversation). `invalid_request` with `details.reason` `channel_conversation_is_real`: `threads create --environment evals --channel` is not allowed. Permissions: running in evals needs only `query`, but `models list` needs `read` and `--model` needs `write`, so a `query` token, without a thread, can drop `--environment`, and, with a thread, can drop `--thread` and `--environment` (a new conversation on production), as long as the command has no `write` flags. Evals uses the account of each provider: OpenRouter models, the OpenRouter evals account; Gemini models, the Vertex evals project; Azure models, their pair on OpenRouter with the OpenRouter evals account. A model with no route fails with `evals_not_supported`. Which models have a route is not listed here: `laburen models list` has an EVALS column (`--json`: `capabilities.evals`). Details (routes, retries, billing, `threads create --environment`) in `references/commands.md` (Run an agent).
78
+ - **`payment_overdue`** (exit 1, API code `402`): the organization has an overdue payment (a charge failed and the 7-day grace period ended). Reading (`list`, `get`), deleting and `agents widgets rotate` still work; creating, updating and running (`create`, `update`, `versions create|activate|restore`, `threads messages create`, `agents run`, `decisions create`) fail. Agents in production stop answering on every channel. Not retryable and no command fixes it: tell the user that the account owner has to pay the pending invoice from the Laburen dashboard. If both problems happen, this one comes first.
79
+ - **`credits_exhausted`** (exit 1, API code `402`): the organization has no credits left, or no active credits at all. Only running fails (`agents run`, `agents follow-ups run`, `decisions create`, and agents in production stop answering); creating, updating, reading and deleting still work. Not retryable: tell the user to buy credits from the Laburen dashboard.
75
80
  - **`model_provider_auth_failed`**: the model provider rejected the platform's credentials, even after the platform tried its fallback models. It is not your request and not retryable; if it persists, contact support.
81
+ - **Fallback models**: in production a turn (also the agent turn of `agents follow-ups run`) can be answered by a fallback model when the chosen one fails; the cost is that of the model that answered. In evals there is no fallback.
82
+ - **`model_context_exceeded`** (400, not retryable): the conversation (history, attachments and instructions) does not fit the context window of the model (in `agents follow-ups run` also the filter, with `details.stage: "decider"`; in `decisions create`, the state). Running it again fails the same way. In `agents run` and `agents follow-ups run` the `next` is `laburen models list` (a model with a larger `context_window` for the part that did not fit); in `decisions create` send a smaller state (the `next` is `laburen decisions get <decision_id>`).
76
83
  - **`internal_invariant_violation`**: a bug on the server (500). Keep the `request_id` and report it; changing the request does not fix it.
77
- - **`idempotency_key_in_progress`**: it comes after a slow or failed first attempt that the CLI retried: that first request is still running on the server and may still apply. Do not rerun the command as it is: a rerun sends a new request (a new key) and can duplicate. Wait, then check with `list`/`get` that the first one did not apply (the `next` is that `list` for a create or update; `agents run` has none), and only then run it again.
84
+ - **`idempotency_key_in_progress`**: it comes after a slow or failed first attempt that the CLI retried: that first request is still running on the server and may still apply. Do not rerun the command as it is: a rerun sends a new request (a new key) and can duplicate. Wait, then check with `list`/`get` that the first one did not apply (the `next` is that `list` for a create or update; `agents run` has none), and only then run it again. The same goes for `threads create` without `--channel` (no `next`); with `--channel` it finds the same thread, so its `next` is to run it again after waiting.
78
85
 
79
86
  `base_version_id` guards against a concurrent change: if it is not the latest version the API answers `409 base_version_mismatch`; omit it to skip the check. Send `base_version_id: null` to say the resource has no versions yet. `--base-version-id null` sends `null`: on a resource that already has versions it fails with `409 base_version_mismatch` (use it only for the first version).
80
87
 
81
- The body of `agents run` (`generate`/`stream`) rejects unknown keys: a typo such as `max_step` is a `400 invalid_request`, with one `issues[]` entry per key, and the turn does not run. A `versions create` that is identical to the latest version still creates the version, and the response carries a `no_changes` warning (`Warning: ...` on stderr): for an agent it is `{ code: "no_changes" }`, for a skill the text `The new version is identical to the latest one.`; check `changed_fields` to see what changed. Every `invalid_skill` has `details.field`, so `issues[]` names the file: its path (`files["notes.txt"]`) for a disallowed path or a NUL character (`forbidden_path`, `invalid_character`), and `files["SKILL.md"]` for the rest (frontmatter, limits, missing `SKILL.md`, a different `name`).
88
+ The body of `agents run` (`generate`/`stream`) rejects unknown keys: a typo such as `max_step` is a `400 invalid_request`, with one `issues[]` entry per key, and the turn does not run. A `versions create` that is identical to the latest version still creates the version, and the response carries a `no_changes` warning (`Warning: ...` on stderr): for an agent it is `{ code: "no_changes" }`, for a skill the text `The new version is identical to the latest one.`, for an MCP connection `{ code: "no_changes", message }`; check `changed_fields` to see what changed. Every `invalid_skill` has `details.field`, so `issues[]` names the file: its path (`files["notes.txt"]`) for a disallowed path or a NUL character (`forbidden_path`, `invalid_character`), and `files["SKILL.md"]` for the rest (frontmatter, limits, missing `SKILL.md`, a different `name`).
82
89
 
83
90
  ### Change an agent: `update` vs `versions create`
84
91
 
@@ -99,7 +106,7 @@ laburen agents versions create <agent_id> --config @config.json --change-message
99
106
  ### Defaults
100
107
 
101
108
  - `skills create`, `mcp connections create` and `agents create --config` activate their first version unless you pass `--no-activate`. Every `versions create` leaves the new version inactive, and so does `agents update` unless you pass `--activate`; `versions restore` activates the copy unless `--no-activate`.
102
- - A skill or MCP connection assigned to an agent uses `strategy: "pin"` by default: the agent keeps the version that was active when you assigned it. `"latest"` follows the active version. Set it per item: `--skills '[{"skill_id":"<id>","strategy":"latest"}]'`.
109
+ - A skill or MCP connection assigned to an agent uses `strategy: "pin"` by default: the agent keeps the version that was active when you assigned it. `"latest"` follows the active version. Set it per item: `--skills '[{"skill_id":"<id>","strategy":"latest"}]'`. `{"skill_id":"<id>","version_id":"<v>"}` pins that version (the same for `mcp_connections`); with `strategy: "latest"` a `version_id` fails with 400 `invalid_request` on `skills[i].version_id`.
103
110
  - Renaming an MCP connection (`mcp connections update --name`) changes the names of its tools for the agents (the connection name is their prefix): review prompts that mention them.
104
111
  - Knowledge projects and Composio apps are created and loaded in the dashboard. The CLI only lists the projects (`laburen knowledge projects list`); put their ids in `config.knowledge.project_ids`.
105
112
 
@@ -162,7 +169,7 @@ What to do with each error when you are an AI agent:
162
169
  - `missing_arguments` with `choices` (exit 2, `userActionRequired: true`): show the user the `choices` (`{ id, name }`, the current one with `current: true`) and ask which one. Then run the `next` that has that id. **Do not choose yourself**, even if one looks obvious.
163
170
  - `cancelled` (exit 1): the person cancelled a question (Ctrl-C, Esc, Ctrl-D, or No at a confirmation). Nothing changed. Do not retry on your own.
164
171
  - `config_required` (exit 2): `agents create` got `--skills`, `--mcp-connections` or `--activate` without `--config`. Add `--config` (the `next` shows where) or drop those flags.
165
- - `<value>` in a `next` command: the value of a secret flag (`--data`, `--headers`, `--config`, `--tool`, `--token`...) is never copied into `next`, in any error. Put the real value back before running it. `<id>` and `<version_id>` are also placeholders: you get them from a `list` or from the user.
172
+ - `<value>` in a `next` command: the value of a secret flag (`--data`, `--headers`, `--config`, `--tool`, `--token`...) is never copied into `next`, in any error. Put the real value back before running it. A file reference (`--data @body.json`, `--config @config.json`) is copied as typed: the content of the file is not. `<id>` and `<version_id>` are also placeholders: you get them from a `list` or from the user.
166
173
 
167
174
  Commands an agent can run without any question:
168
175
 
@@ -180,7 +187,7 @@ Read the individual reference documents for details.
180
187
 
181
188
  ## Run an agent
182
189
 
183
- `laburen agents run <agent_id> "<message>"` runs one turn. Always pass the message as an argument: without it the CLI reads stdin only if it starts sending within 500 ms (otherwise `missing_required`), and `-` reads stdin until it ends. stdout gets the answer text only; tool calls, sources and the footer go to stderr. Add `--json` to wait for the end and read one JSON object (`text`, `memory.thread`, `cost`, `tool_calls`...) on stdout: use it when you are an AI agent. To continue the conversation, pass `--thread <memory.thread>`. `--instructions`, `--model`, `--reasoning` and `--max-steps` replace the agent's settings for that run and need `write` permission. `laburen agents run --schema` prints the body schema (`<agent_id>` is optional only there). If the turn ends at the step limit without an answer, stderr says `Warning: The run stopped at the step limit (max_steps N) before a final answer.`: raise `--max-steps` or ask for less. Continuing that thread does not bring back the tool results of the cut turn unless the agent keeps tool calls in its history (`config.history.tool_calls.mode`, `off` by default; see [Commands](references/commands.md#run-an-agent)). `contact` in `--data` is not shown to the model. After a handoff to a human, the footer says `handed off to a human; the AI is off in this thread`: that thread cannot be continued (`ai_disabled_for_conversation`); start a new one (the `next` is the same command without `--thread`). A `--thread` belongs to one `--resource`: sending another `memory.resource` with an existing thread fails with `thread_resource_mismatch`; reuse the resource the thread started with. There is no command to list threads or read the messages of a conversation (the history is in the dashboard; see the `threads create` bullet above to create or link one), and the contacts that `--resource` creates cannot be deleted with the CLI. A run costs credits, and Ctrl+C does not stop the turn on the server. If stdout is closed (`| head -1`), the turn keeps running and the footer and the `continue:` line still go to stderr.
190
+ `laburen agents run <agent_id> "<message>"` runs one turn. Always pass the message as an argument: without it the CLI reads stdin only if it starts sending within 500 ms (otherwise `missing_required`), and `-` reads stdin until it ends. stdout gets the answer text only; tool calls, sources and the footer go to stderr. Add `--json` to wait for the end and read one JSON object (`text`, `memory.thread`, `cost`, `tool_calls`...) on stdout: use it when you are an AI agent. To continue the conversation, pass `--thread <memory.thread>`. `--instructions`, `--model`, `--reasoning` and `--max-steps` replace the agent's settings for that run and need `write` permission. `laburen agents run --schema` prints the body schema. Without `<agent_id>` (and the message in `--data`, `--file` or stdin) the error is `missing_arguments` with `choices`, like a missing id; a single argument is always the agent id, so if the error says "was read as the agent id", ask the user whether it was the id or the message and run the matching `next`. If the turn ends at the step limit without an answer, stderr says `Warning: The run stopped at the step limit (max_steps N) before a final answer.`: raise `--max-steps` or ask for less. Continuing that thread does not bring back the tool results of the cut turn unless the agent keeps tool calls in its history (`config.history.tool_calls.mode`, `off` by default; see [Commands](references/commands.md#run-an-agent)). `contact` in `--data` is not shown to the model. After a handoff to a human, the footer says `handed off to a human; the AI is off in this thread`: continuing that thread fails with `ai_disabled_for_conversation` until the AI is turned back on: the `next` offers the same command without `--thread` (a new conversation) and `laburen threads update <thread_id> --ai-enabled` (not on `chatwoot` or `crm` threads). A `--thread` belongs to one `--resource`: sending another `memory.resource` with an existing thread fails with `thread_resource_mismatch`; reuse the resource the thread started with. There is no command to list threads or read the messages of a conversation (the history is in the dashboard; see the `threads create` bullet above to create or link one), and the contacts that `--resource` creates cannot be deleted with the CLI. A run costs credits, and Ctrl+C does not stop the turn on the server (with `--json` Ctrl+C ends the process without printing anything). If stdout is closed (`| head -1`), the turn keeps running and the footer and the `continue:` line still go to stderr.
184
191
 
185
192
  ### References
186
193
 
@@ -10,6 +10,8 @@ Prints a URL and a confirmation code on stderr, tries to open the browser (it do
10
10
 
11
11
  If the server takes more than 1 second to answer the first request, stderr says `Waiting for the server…` before the URL appears. On success it saves `auth.json` and prints "You are now signed in." Network errors while waiting do not cancel the login.
12
12
 
13
+ The login endpoints limit requests per IP: `laburen login` can fail with `rate_limited` (HTTP 429). Wait the seconds the server sends in `Retry-After` and run it again.
14
+
13
15
  `laburen logout` revokes the saved tokens (both at once, waiting at most 5 seconds) and deletes `auth.json`. If the server does not answer, it still deletes the file.
14
16
 
15
17
  ## Where credentials live