@nouter/platform-cli 0.5.0 → 0.6.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/CHANGELOG.md +445 -0
- package/README.md +183 -14
- package/dist/index.js +3936 -815
- package/package.json +6 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
# @nouter/platform-cli
|
|
2
|
+
|
|
3
|
+
## 0.6.0 — 2026-12-02
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- `login --paste` y `elevate --paste` leen una sola línea de `stdin`, con TTY y sin TTY, y avisan por `stderr` que el
|
|
8
|
+
código vence cinco minutos después de la aprobación. Un pipe que sigue abierto ya no deja el comando colgado, y el
|
|
9
|
+
código no se acepta como argumento. El tarball publica `CHANGELOG.md`.
|
|
10
|
+
- Los listados que recorren todas las páginas (`apply` con skills, service accounts, emisores y reglas de federación,
|
|
11
|
+
y rate limits) cortan con error si el servidor repite un cursor, en vez de pedir la misma página para siempre. La
|
|
12
|
+
línea de fallo de `apply` lleva el estado HTTP de la API en agentes, entornos y skills; un `validation_error` se
|
|
13
|
+
detecta antes del pedido y no lleva estado, y el 413 de una skill nombra el tope por pedido con el request id.
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- `apply` publica una skill desde su directorio: un directorio con `SKILL.md` en la raíz entra por `-f` junto con los
|
|
18
|
+
documentos, y cada archivo viaja con su ruta relativa, sin la carpeta de tope. El CLI lista las skills `custom` con
|
|
19
|
+
todas sus páginas y compara `display_name` con el `name` del frontmatter: sin coincidencia crea la skill
|
|
20
|
+
(`created skill "name"`); con una, baja la última versión y crea una versión solo si cambiaron las rutas o los
|
|
21
|
+
bytes (`updated skill "name" (version <id>)`, con la versión como string); si no cambió nada imprime `unchanged` sin
|
|
22
|
+
ningún `POST`, y más de una coincidencia es error sin escrituras. Las exclusiones son las de la consola, sin opt-in
|
|
23
|
+
(nombres y carpetas con secretos, carpetas de herramientas, `.DS_Store` y symlinks), los topes del compilador son
|
|
24
|
+
500 archivos, 32 MB por archivo y 100 MB en total sobre lo que se sube (el borde acepta 25 MiB por pedido, así que
|
|
25
|
+
un paquete mayor da 413 aunque cada archivo esté bajo 32 MB), y una versión es una copia completa. Una skill creada en
|
|
26
|
+
la consola con otro `display_name` no se reconoce y crea otra. Un fallo imprime el estado HTTP y el `error_code`,
|
|
27
|
+
nunca el cuerpo del paquete; un 413 se explica como el tope por pedido del servidor, con el request id, y `apply`
|
|
28
|
+
sigue sin `--json` (plan 2026-12-02 cli-skills-apply, tarea 8).
|
|
29
|
+
- `eval --max-cost-usd`: un tope de costo de lista por corrida, en dólares con hasta seis decimales y sin tope por
|
|
30
|
+
defecto. El runner deja de arrancar trials cuando el costo leído llega al tope; los que estaban en vuelo terminan,
|
|
31
|
+
así que el gasto puede pasarse por lo que usen. El run cierra `completed` con `partial: true` y `partialReason`
|
|
32
|
+
(`cost_ceiling`, o `cost_unavailable` si no pudo leer el costo y cortó para no gastar a ciegas), el plan imprime el
|
|
33
|
+
tope y el techo de los budgets por caso, el informe suma la línea del parcial y el `--json` lleva `partialReason`,
|
|
34
|
+
`run.maxCostUsd` y `run.listCostCents`, y el comando sale con 2 con los resultados parciales. Es una estimación de
|
|
35
|
+
costo de lista, no la factura: no incluye las horas de sesión ni el sandbox.
|
|
36
|
+
- `eval --vault <id>`: adjunta un vault a cada Session de los casos y se puede repetir; reemplaza los `vaults:` de la
|
|
37
|
+
suite y de los casos. Sin la bandera, `vaults:` en `suite.yaml` es el default y un caso lo pisa con su propio
|
|
38
|
+
`vaults:`, donde `[]` significa «sin vault»; una lista vacía en la suite es error y un id inexistente o archivado
|
|
39
|
+
da 404 antes del primer trial. El runner solo pasa los ids: no crea vaults, no lee credenciales ni ve secretos. La
|
|
40
|
+
línea del plan suma `vaults N` con los ids efectivos distintos y nunca los imprime. Si la política del agente
|
|
41
|
+
exige `user_profile`, el runner crea una identidad sintética por trial y la archiva al cerrar el run. Una
|
|
42
|
+
credencial `environment_variable` puede quedar en la trayectoria de la Session si el agente la imprime.
|
|
43
|
+
- `login --device`: el device flow de RFC 8628 para una máquina sin navegador. La CLI imprime una URL y un código
|
|
44
|
+
corto, espera la aprobación desde cualquier navegador y guarda la sesión; `--json` imprime el sobre estable y un
|
|
45
|
+
login denegado sale con 1 y `LOGIN_DENIED`. La sesión queda con `mode: "device"` en `auth sessions list`; sin
|
|
46
|
+
bandera, una sesión remota sigue en `--paste` hasta que el servidor lo tenga desplegado, y un servidor sin la ruta
|
|
47
|
+
cae a `--paste` con un aviso. El `device_code` y la `nps_` nunca se imprimen.
|
|
48
|
+
- `workspaces`: `list` (con `--include-archived` y todas las páginas), `get` (acepta `default`), `archive` (exige
|
|
49
|
+
`--yes` y no se puede deshacer), `rate-limits` (con `--include-inherited`) y `rate-limits set` (`--value` o
|
|
50
|
+
`--clear`). La familia pide una Admin API key de la organización; una sesión de la CLI recibe 403
|
|
51
|
+
`organization_required` (plan 2026-12-02).
|
|
52
|
+
- `webhooks`: lista, crea, lee, edita, borra y rota el secreto de firma de los endpoints de webhook de la
|
|
53
|
+
organización, y lee una página de sus entregas. La credencial es una Admin API key con `webhooks:admin`; una sesión
|
|
54
|
+
`nps_` se corta con `organization_required`. El secreto sale una sola vez por `stdout` en el alta y en la rotación,
|
|
55
|
+
con los metadatos por `stderr`; la rotación no tiene período de gracia. El borrado y la rotación piden `--yes`, y
|
|
56
|
+
los siete aceptan `--json`.
|
|
57
|
+
- `deployments`: `list` (con `--include-archived` y todas las páginas), `get` (con el estado calculado y las próximas
|
|
58
|
+
corridas), `create` y `update` desde un único documento YAML o JSON (el cuerpo del contrato, con
|
|
59
|
+
`resources[].authorization_token` como `${VAR}`), `pause` y `unpause` (sin `--yes`, describen el 409), `archive`
|
|
60
|
+
(exige `--yes`, es elevado y no se puede deshacer) y `run` (con `Idempotency-Key`; una corrida con `error` sale con
|
|
61
|
+
1). `deployment-runs list` y `deployment-runs get` leen las corridas con los filtros del contrato, incluido
|
|
62
|
+
`--trigger event`, y todas las listas recorren las páginas. La familia pide una credencial de workspace
|
|
63
|
+
(`deployments:read`, `deployments:write` y `deployments:admin` para archivar); una clave de organización recibe 403
|
|
64
|
+
`workspace_required` (plan 2026-12-02).
|
|
65
|
+
|
|
66
|
+
## 0.5.0 — 2026-12-02
|
|
67
|
+
|
|
68
|
+
### Minor Changes
|
|
69
|
+
|
|
70
|
+
- `eval`: corre una suite de evals contra un agente y un entorno, con `--threshold`, `--runs`, `--concurrency`,
|
|
71
|
+
`--case`, `--tag`, `--agent-version`, `--wait-timeout` y `--keep`. El directorio va por defecto en `evals`; el
|
|
72
|
+
informe sale por stdout (tabla o `--json` con `schemaVersion: 1`) y el error solo por stderr con `error.code`.
|
|
73
|
+
Sale con 0 si todos los casos llegan al umbral, con 1 si alguno queda debajo o falla, y con 64 si el uso es
|
|
74
|
+
inválido. La suite es Markdown con frontmatter y un manifiesto YAML; los casos y la corrida quedan documentados en
|
|
75
|
+
el README y en `skills/nouter-platform/references/evals.md` (plan 2026-11-30, tarea 7, para la 0.5.0).
|
|
76
|
+
- `apply --require-eval <suite>`: antes de aplicar, crea un agente candidato con el documento y corre la suite con
|
|
77
|
+
el `threshold`, `runs` y `concurrency` del manifiesto. Si no pasa, no escribe nada y sale con 1; el candidato se
|
|
78
|
+
archiva siempre. Exige un solo documento `kind: agent`, no combina con `--dry-run` y no tiene `--json` (plan
|
|
79
|
+
2026-11-30, tarea 7, para la 0.5.0).
|
|
80
|
+
- La guía `nouter-platform` deja de declarar las cuentas de servicio sin tipos en `references/pending.md` (plan
|
|
81
|
+
2026-11-29, tarea 2).
|
|
82
|
+
- La guía `nouter-platform` deja de declarar la federación sin tipos: `pending.md` ya no lista «A typed SDK for
|
|
83
|
+
federation» (plan 2026-11-29, tarea 3).
|
|
84
|
+
- `agents get <agent-id>` y `environments get <environment-id>` honran `--json`, antes o después del id, e imprimen el
|
|
85
|
+
objeto de la respuesta (`JSON.stringify(objeto, null, 2)`); sin la bandera, las líneas de siempre. Una bandera
|
|
86
|
+
desconocida es un error de uso que sale con 1 sin llamar a la API, en vez de tomarse como el id.
|
|
87
|
+
- `keys list`: las claves de API de la organización con `id`, `name`, `prefix`, `status`, `scopes`, `expires_at` y
|
|
88
|
+
`last_used_at`; el valor de la clave nunca se imprime, solo el `prefix`. `last_used_at` llega en milisegundos y la
|
|
89
|
+
tabla lo muestra como ISO 8601 UTC. Un 403 se describe por estado y tipo, sin el cuerpo. `--json` devuelve la lista
|
|
90
|
+
tal como la manda la API.
|
|
91
|
+
- `keys create`: crea una clave con `--name`, `--scopes`, `--expires-at`, `--agent-id` o `--preset backend|ci`, y la
|
|
92
|
+
imprime una sola vez por `stdout` (una línea; los metadatos por `stderr`). `--preset` y `--scopes` son mutuamente
|
|
93
|
+
excluyentes. Con `--json`, `stdout` lleva la respuesta entera, con `key`. La clave nunca aparece en un mensaje de
|
|
94
|
+
error, aunque el cuerpo de un `POST` fallido la traiga.
|
|
95
|
+
- `keys rotate <key-id>`: rota una clave con `--grace-period-seconds` (0 si falta) y pide `--yes`; sin la bandera dice
|
|
96
|
+
qué clave tocaría y sale con 1 sin llamar a la API. La clave nueva se imprime una sola vez por `stdout` (una línea;
|
|
97
|
+
los metadatos por `stderr`). Antes de rotar, resuelve el `prefix` con `keys list` y avisa por `stderr` si es la clave
|
|
98
|
+
con la que el proceso se autentica (12 caracteres para una de entorno, 8 para el resto); con transporte `bearer` no
|
|
99
|
+
compara. Si la lista da `403`, degrada con un aviso y sigue con la rotación. `--json` lleva la respuesta entera.
|
|
100
|
+
- `keys revoke <key-id>`: revoca una clave con `DELETE /v1/oma/api_keys/{id}` y pide `--yes`; sin la bandera dice qué
|
|
101
|
+
clave tocaría y sale con 1 sin llamar a la API. Antes de revocar hace la misma comparación de `prefix` que
|
|
102
|
+
`keys rotate` y avisa por `stderr` si es la clave con la que el proceso se autentica (12 caracteres para una de
|
|
103
|
+
entorno, 8 para el resto); con transporte `bearer` no compara. Si la lista da `403`, degrada con un aviso y sigue con
|
|
104
|
+
la revocación. `--json` lleva la respuesta `api_key_deleted`.
|
|
105
|
+
- `usage limits`: los topes efectivos de la organización (sin `--agent-id`) o de un agente (con él); la tabla muestra
|
|
106
|
+
`kind`, `effective_max_cost_micros` y `effective_from`, y `--json` devuelve el objeto entero. Es solo lectura:
|
|
107
|
+
fijarlos es de la consola.
|
|
108
|
+
- `usage rate-limits`: los techos de pedidos del despliegue, con las aperturas por minuto y por día de la organización
|
|
109
|
+
y una entrada por clave activa, y su conteo actual; `--json` devuelve el objeto entero. Es solo lectura: los valores
|
|
110
|
+
los fija el despliegue.
|
|
111
|
+
- `agents archive <agent-id>`: archiva un agente con `POST /v1/agents/{agentId}/archive` y pide `--yes`; sin la
|
|
112
|
+
bandera sale con 1 sin llamar a la API. Con una sesión de la CLI hace el step-up por `elevatedRequest` y reintenta
|
|
113
|
+
una vez; una clave necesita `agents:admin`. `--json` imprime el agente que devuelve la API. Archivar un agente ya
|
|
114
|
+
archivado da 200 y el mismo mensaje (plan 2026-12-01, la spec `cli-agents-archive`).
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- Si SIGINT o SIGTERM llega mientras el `finally` de `apply --require-eval` está archivando el candidato, el handler
|
|
119
|
+
espera ese archivado con el mismo tope total de 10 s antes de salir; si no termina, el id entra en el aviso de
|
|
120
|
+
stderr.
|
|
121
|
+
- `eval` y `apply --require-eval` manejan SIGINT y SIGTERM: cortan el polling, archivan los agentes candidatos que creó
|
|
122
|
+
esa corrida (solo esos, con un tope de 10 s), avisan por stderr que el run sigue en la plataforma y los ids que
|
|
123
|
+
queden, y salen con 130; una segunda señal sale enseguida. En la compuerta el plan no se aplica aunque el run haya
|
|
124
|
+
terminado verde. Con `--json`, el id del run sale por stderr para que stdout quede con un solo documento (plan
|
|
125
|
+
2026-11-30, seguimiento de evals).
|
|
126
|
+
- `logout` con un archivo de config legible por otros revoca la sesión en el servidor solo si
|
|
127
|
+
`NOUTER_PLATFORM_BASE_URL` está definida: el host de la revocación sale de esa variable, nunca del `iss` o el
|
|
128
|
+
`baseUrl` del archivo, que puede reescribir otro usuario. Lee el token solo para ese `DELETE`; si no revocó, dice
|
|
129
|
+
cómo hacerlo desde la consola. En ese caso ya no sale con 77: sale con 0 si revocó y con 2 si no pudo. El resto de
|
|
130
|
+
los comandos sigue rechazando el archivo con `STORAGE_INSECURE`.
|
|
131
|
+
- El mensaje de `logout --all` con la sesión ya vencida ya no sugiere `auth sessions revoke`, que no tiene credencial
|
|
132
|
+
después del logout: manda a la consola o a volver a hacer login.
|
|
133
|
+
- La guía (`references/sessions.md`) ya no usa un `downloadIt` sin definir en el ejemplo de descarga de outputs: el
|
|
134
|
+
bloque se copia tal cual y muestra cómo guardar los bytes.
|
|
135
|
+
- `printable()` reemplaza los selectores de variación U+FE00–FE0F por U+FFFD, además de los controles, el bidi, los
|
|
136
|
+
invisibles y los tags, antes de escribir texto ajeno en el terminal.
|
|
137
|
+
- El comando de `Next page:` cita con comillas simples un `--page` o un `--user-profile` que empiece con `~`, `=` o
|
|
138
|
+
`-`, así el comando impreso se copia y se pega sin que el shell lo expanda ni lo lea como una bandera.
|
|
139
|
+
- `login` ya no avisa de una «previous session» cuando la credencial guardada de otro host es una clave de máquina:
|
|
140
|
+
no hay sesión de CLI que revocar y el aviso mandaba a una consola sin nada pendiente.
|
|
141
|
+
- `<command> --help` and `help <command>` print the usage, the description, the flags and the examples of every
|
|
142
|
+
command, and of every group (`auth`, `sessions`, …). The help exits 0, writes to stdout, and never calls the API
|
|
143
|
+
or reads the credential. A hidden `feedback` stays hidden while `NOUTER_PLATFORM_FEEDBACK` is off. The global
|
|
144
|
+
`--help` points to the per-command help.
|
|
145
|
+
|
|
146
|
+
### Patch Changes
|
|
147
|
+
|
|
148
|
+
- Los errores de la API (`describeApiFailure`) sanean el tipo, el código y el `request_id` que vienen del servidor antes
|
|
149
|
+
de escribirlos por stderr: un OSC 52 o un CSI en cualquiera de esos valores ya no puede mover el terminal.
|
|
150
|
+
- `agents get` y `environments get` imprimen cada campo saneado y en una sola línea: un `name` con `\nID: fake` ya no
|
|
151
|
+
fabrica una línea nueva, y un nombre con secuencias de escape no llega crudo al terminal.
|
|
152
|
+
|
|
153
|
+
## 0.4.0 — 2026-12-01
|
|
154
|
+
|
|
155
|
+
### Minor Changes
|
|
156
|
+
|
|
157
|
+
- La guía `nouter-platform` (`references/sessions.md`) enseña `client.platform.sessions.outputs` (`list` y `content`)
|
|
158
|
+
en vez de la ruta sin tipos por `client.anthropic.get`; la descarga vuelve como `Response` y la guía dice que hay que
|
|
159
|
+
leer o cancelar `body` (plan 2026-11-29, tarea 1).
|
|
160
|
+
- `login` pasa al flujo de la sesión de la CLI: `login` (sin bandera o con `--browser`) abre la consola y espera el
|
|
161
|
+
code en un servidor de loopback (`127.0.0.1:0`); `--paste` imprime la URL y lee `code#state` por stdin sin eco. PKCE
|
|
162
|
+
S256 (32 bytes del CSPRNG, 43 caracteres). Una sesión remota (`SSH_CONNECTION`, `SSH_TTY`, `CODESPACES=true` o Linux
|
|
163
|
+
sin `DISPLAY`/`WAYLAND_DISPLAY`) pasa sola a pegado, diciendo la señal; `--browser` y `--paste` ganan siempre.
|
|
164
|
+
`login --api-key` sigue leyendo la clave de máquina por stdin.
|
|
165
|
+
- El archivo de la sesión: 0600 dentro de 0700, escritura atómica, y `iss`, `clientId` y `sessionId` junto al token. Un
|
|
166
|
+
archivo que otro usuario puede leer se rechaza con `STORAGE_INSECURE` (salida 77), y una sesión de otra instalación
|
|
167
|
+
con `WRONG_INSTALLATION` (77). El usuario sale por `Authorization: Bearer`, nunca por `x-api-key`.
|
|
168
|
+
- `logout` revoca la sesión en el servidor y después borra lo local; `--all` revoca todas. Si el servidor no responde,
|
|
169
|
+
borra lo local igual y sale con 2 (`REVOKE_FAILED`). `auth sessions list` y `auth sessions revoke <session-id>`,
|
|
170
|
+
`elevate`, y `whoami --json` con la instalación y los topes (vencimiento a 7 días, corte por inactividad de 24 h,
|
|
171
|
+
`elevated_until`).
|
|
172
|
+
Un 403 `ELEVATION_REQUIRED` con TTY corre el step-up y reintenta el pedido una vez.
|
|
173
|
+
- Los códigos de R9 (`SESSION_EXPIRED`, `SESSION_IDLE`, `SESSION_REVOKED`, `ELEVATION_REQUIRED`, `LOGIN_TIMEOUT`,
|
|
174
|
+
`STATE_MISMATCH`, `WRONG_INSTALLATION`, `REVOKE_FAILED`, `STORAGE_INSECURE`) viajan como `error.code` con `--json`, y
|
|
175
|
+
las salidas son 0, 2, 64, 75, 77 y 130. Un Ctrl-C durante el login sale con 130.
|
|
176
|
+
- `feedback`: el canal de feedback de los productos, detrás de `NOUTER_PLATFORM_FEEDBACK=1` y apagado por defecto.
|
|
177
|
+
- `sessions list|get|events`: agent sessions from the CLI. `list` filters by agent, agent version, person, status and
|
|
178
|
+
dates; `get` prints the detail with its stats and its cost; `events` prints the trace, one line per event. The three
|
|
179
|
+
accept `--json`.
|
|
180
|
+
- `usage`: the cost ledger in one page, grouped by up to five of `day`, `model`, `agent`, `agent_version`,
|
|
181
|
+
`user_profile` and `session`, with `--days` or a date range. It shows `cost_micros` and does not follow pages by
|
|
182
|
+
itself: it prints `Next page: --page <cursor>` on stderr. `--json` returns the whole response.
|
|
183
|
+
|
|
184
|
+
### Patch Changes
|
|
185
|
+
|
|
186
|
+
- `feedback`: el texto del servidor y los valores de los campos salen sin controles, bidi ni invisibles (U+FFFD), y
|
|
187
|
+
los archivos que lee se validan antes de leerlos.
|
|
188
|
+
|
|
189
|
+
## 0.3.0 — 2026-11-29
|
|
190
|
+
|
|
191
|
+
### Minor Changes
|
|
192
|
+
|
|
193
|
+
- `engines.node` pasa a `>=20.6`: `version` encuentra el `package.json` del SDK con `import.meta.resolve`, que va sin
|
|
194
|
+
bandera desde Node 20.6 ([la doc de Node](https://nodejs.org/api/esm.html#importmetaresolvespecifier)). Sale en
|
|
195
|
+
lockstep con `@nouter/platform` 0.3.0.
|
|
196
|
+
- `--version`, `-v` y el subcomando `version` imprimen la versión de la CLI y la del SDK que trae, las dos leídas de sus
|
|
197
|
+
`package.json` (por ejemplo, `nouter-platform-cli 0.3.0 (sdk 0.3.0)`); la ayuda lista las opciones `-h, --help` y
|
|
198
|
+
`-v, --version` y el comando `version`.
|
|
199
|
+
|
|
200
|
+
### Patch Changes
|
|
201
|
+
|
|
202
|
+
- Cuando el host devuelve HTML o un 3xx en vez de JSON (por ejemplo, la consola detrás de IAP o de Cloudflare Access),
|
|
203
|
+
la CLI dice `this host is not the API: <host> responded <status> <tipo>` en vez de un error de red genérico. También
|
|
204
|
+
en el canje federado de `/v1/oauth/token`, que deja de seguir redirects y así no lleva la aserción a otro host.
|
|
205
|
+
**Cualquier 3xx de la API pasa a ser un error:** la CLI ya no sigue redirects. Un 5xx HTML (el de un balanceador
|
|
206
|
+
durante un deploy) no cuenta: se reintenta como antes.
|
|
207
|
+
- El `User-Agent` pasa a ser `nouter-platform-cli/<versión> node/<versión de Node>` (más el
|
|
208
|
+
`nouter-platform-sdk/<versión>` que suma el SDK), leído del `package.json`, en vez de un literal fijo.
|
|
209
|
+
- El manifiesto queda como lo publica npm (`npm pkg fix`): el bin sin `./` y `repository.url` con `git+https://`, así
|
|
210
|
+
`npm publish` no avisa nada.
|
|
211
|
+
|
|
212
|
+
## 0.2.0 — 2026-11-29
|
|
213
|
+
|
|
214
|
+
### Minor Changes
|
|
215
|
+
|
|
216
|
+
- `apply`: agentes y entornos como archivos YAML o JSON versionados. Empareja por `name` en la organización de la clave,
|
|
217
|
+
recorre todas las páginas, aplica entornos antes que agentes y no borra nunca un recurso que el archivo no nombra. Las
|
|
218
|
+
listas `mcp_servers`, `tools` y `skills` se reemplazan enteras y `--dry-run` muestra la diferencia. `${VAR}` se
|
|
219
|
+
interpola solo en `mcp_servers[].env` y `_oma.acp.agent.env`; un `env` es todo `${VAR}` o todo `"***"`, y
|
|
220
|
+
`--rotate-secrets` manda los valores resueltos de un agente sin cambios. Cada update de agente manda la versión leída,
|
|
221
|
+
y un `version_conflict` relee y replanea una vez. Un 403 informa el alcance que falta y un
|
|
222
|
+
`mcp_env_resend_required`, las claves que hay que volver a mandar. El valor resuelto de un secreto no sale nunca por
|
|
223
|
+
la salida.
|
|
224
|
+
|
|
225
|
+
### Patch Changes
|
|
226
|
+
|
|
227
|
+
- La clave guardada no sale hacia otro host: si `NOUTER_PLATFORM_BASE_URL` no coincide con la URL guardada (origen y
|
|
228
|
+
camino sin barra final) y la clave sale del archivo, el CLI se niega y pide volver a hacer `login` contra esa URL.
|
|
229
|
+
Con la clave en `NOUTER_PLATFORM_API_KEY`, la URL de la variable se permite. La URL base exige `https://` salvo
|
|
230
|
+
`127.0.0.1`, `localhost` y `[::1]`, tanto en `login` como al usar la config. Una config vieja sin URL guardada no
|
|
231
|
+
manda su clave a ciegas: pide hacer `login` de nuevo.
|
|
232
|
+
- `readConfig` avisa por stderr, una sola vez por proceso y sin imprimir la clave, si el archivo lo pueden leer otros
|
|
233
|
+
usuarios; en Windows no avisa. Un `stat` que falla no tapa el error real de lectura.
|
|
234
|
+
- `login` con una config vieja de URL `http://` remota nombra `NOUTER_PLATFORM_BASE_URL` como salida y, con la variable
|
|
235
|
+
puesta, reescribe la config. Los errores de la URL base ya no repiten el userinfo.
|
|
236
|
+
- `logout` solo borra la credencial local: la ayuda del comando y el README dicen que la clave se revoca en la consola.
|
|
237
|
+
|
|
238
|
+
## 0.8.0
|
|
239
|
+
|
|
240
|
+
### Minor Changes
|
|
241
|
+
|
|
242
|
+
- 957e1da: Add eval support (benchmarks → cases → eval runs, Harbor and messages kinds): `client.oma.evals` in the SDK (`benchmarks` list/listBuiltin/create/retrieve/update/delete/upload, `benchmarks.cases` retrieve/add/replace/delete, `runs` create/list/retrieve/cancel/delete/waitForRun) and `oma evals benchmarks …` / `oma evals cases …` / `oma evals run` / `oma evals runs …` in the CLI.
|
|
243
|
+
|
|
244
|
+
Harbor benchmarks are read-only imports with immutable revisions: new `git` source (github.com / huggingface.co), `benchmarks.sync`/`syncUpload`, `evals.gitRefs({ url })` (branches and tags to pick a ref) and `{ revision }` on benchmark/case retrieve in the SDK; `oma evals benchmarks import --git <url> [--ref] [--path]`, `oma evals benchmarks sync <id> [--ref|--file]` and `--revision N` on benchmark/case show in the CLI. Harbor case add/replace/delete helpers and empty harbor benchmarks are removed.
|
|
245
|
+
|
|
246
|
+
### Patch Changes
|
|
247
|
+
|
|
248
|
+
- ca10397: Add headless runtime pairing: `oma runtime pair [--ttl <seconds>]` mints a one-time setup command, and `oma bridge setup --token <omrp_…>` (or `OMA_PAIRING_TOKEN`) pairs a machine without a browser.
|
|
249
|
+
- ca10397: Run attached Runtime sandbox sessions in local per-session LiteBox instances with retained ownership and selected skill package copies.
|
|
250
|
+
- ca10397: Reuse one embedded LiteBox provider per Runtime sandbox registry and honor optional BOXLITE_HOME so concurrent sessions do not deadlock on the home lock.
|
|
251
|
+
- ca10397: Ignore protected system and Runtime-owned keys in session environment overlays, with key-only warnings.
|
|
252
|
+
- ca10397: Cache managed Skill Versions once per Runtime and link session skills to immutable content, preserving resolved versions across restarts with Windows junction/copy fallbacks.
|
|
253
|
+
|
|
254
|
+
## 0.7.3
|
|
255
|
+
|
|
256
|
+
### Patch Changes
|
|
257
|
+
|
|
258
|
+
- 4fa0828: Bump @anthropic-ai/sdk from 0.120.0 to 1.3.0 and adapt types for the 1.x / API 2026-10-21 breaking changes (including CLI skills list display_name / source.type).
|
|
259
|
+
|
|
260
|
+
## 0.7.2
|
|
261
|
+
|
|
262
|
+
### Patch Changes
|
|
263
|
+
|
|
264
|
+
- f529975: Fix `oma connect` to use authenticated MCP OAuth authorization and result polling with a private, single-use claim credential. Keep API keys and client secrets out of browser URLs and remove the random localhost callback listener.
|
|
265
|
+
|
|
266
|
+
## 0.7.1
|
|
267
|
+
|
|
268
|
+
### Patch Changes
|
|
269
|
+
|
|
270
|
+
- 1321265: Point CLI and SDK hosted defaults at live `openma.ai` hosts (`https://app.openma.ai` for Console/API; marketing homepage `https://openma.ai`). `OMA_BASE_URL` / `baseURL` overrides still win.
|
|
271
|
+
|
|
272
|
+
## 0.7.0
|
|
273
|
+
|
|
274
|
+
### Minor Changes
|
|
275
|
+
|
|
276
|
+
- 1599e16: Create and update agents with the `multiagent_20261001` configuration: `oma agents create|update` accept `--subagent <id[:version]>`, `--inline-only` and `--multiagent <JSON>`.
|
|
277
|
+
|
|
278
|
+
### Patch Changes
|
|
279
|
+
|
|
280
|
+
- 59d8112: Depend on `@openma/common` from npm (`^0.9.1`) instead of a GitHub commit, so installing the CLI no longer fetches from codeload.github.com.
|
|
281
|
+
|
|
282
|
+
## 0.6.5
|
|
283
|
+
|
|
284
|
+
### Patch Changes
|
|
285
|
+
|
|
286
|
+
- 57906b3: Pi harness skill mounting strategies (`skill_mount`: `progressive` default, `budgeted`, `tool`, `inline`) replace default full SKILL.md system-prompt inlining for default/Pi harnesses. Deferred skills in `budgeted` mode are discoverable via `tool_search`; `tool` mode adds a `skill` loader tool.
|
|
287
|
+
|
|
288
|
+
## 0.6.4
|
|
289
|
+
|
|
290
|
+
### Patch Changes
|
|
291
|
+
|
|
292
|
+
- 38f58cb: Pi agent-core is the default harness; legacy `ai-sdk` remains available but deprecated (one-time `session.warning` per session). Agents accept compaction via `_oma.context_management` (Anthropic Messages shape) or `_oma.model_settings` (OpenAI Agents SDK shape); conflicting dual definitions are rejected at save time. MCP tool results preserve content blocks on the wire. Agent `max_tokens` above the catalog window is accepted with a warning; pi-ai clamps output per request.
|
|
293
|
+
- 2f7c08d: Document agent metadata for deferred MCP `tool_search`: `tool_search` (`auto` | `on` | `off`, default `auto`), optional `tool_search_limit`, `tool_search_auto_threshold`, and `tool_search_always_load`. Backward compatible — omitting `tool_search` keeps automatic exposure when MCP tool definitions exceed a fraction of the model context window.
|
|
294
|
+
|
|
295
|
+
## 0.6.3
|
|
296
|
+
|
|
297
|
+
### Patch Changes
|
|
298
|
+
|
|
299
|
+
- 7d3bbf5: Emit `bundle_dir` and `fresh` on `session.ready` after a fresh ACP spawn so the cloud harness can locate the platform bundle without guessing scratch paths.
|
|
300
|
+
|
|
301
|
+
## 0.6.2
|
|
302
|
+
|
|
303
|
+
### Patch Changes
|
|
304
|
+
|
|
305
|
+
- 6a5c715: Honor an optional session.start cwd as the ACP process directory while writing the bundle to the daemon scratch directory.
|
|
306
|
+
|
|
307
|
+
## 0.6.1
|
|
308
|
+
|
|
309
|
+
### Patch Changes
|
|
310
|
+
|
|
311
|
+
- a011976: Prevent idle sleep while the local daemon is available, release the power assertion during shutdown, and retry unavailable platform helpers without interrupting tasks.
|
|
312
|
+
|
|
313
|
+
## 0.6.0
|
|
314
|
+
|
|
315
|
+
### Minor Changes
|
|
316
|
+
|
|
317
|
+
- 68d2772: Align CLI requests with the Managed Agents and OMA API namespaces, and run daemon sessions through the shared managed runtime.
|
|
318
|
+
|
|
319
|
+
### Patch Changes
|
|
320
|
+
|
|
321
|
+
- 7629a91: Expose typed Model Card management and Pi provider metadata through the SDK,
|
|
322
|
+
align model catalog discovery across Node and Cloudflare, and document the
|
|
323
|
+
runtime semantics of effort, speed, and custom Pi model configuration.
|
|
324
|
+
- f0c9aed: Preserve ACP completion token usage when relaying sessions and return the complete agents page in JSON mode, including empty results and pagination metadata.
|
|
325
|
+
- fc24017: Include the underlying network error code in CLI fetch failures.
|
|
326
|
+
- 2b6f7bf: Update the shared runtime so ACP sessions can start without the optional steering extension. Reject unsupported active-turn steering at invocation instead of blocking ordinary prompts.
|
|
327
|
+
- 2b6f7bf: Consume the versioned OpenMA common local runtime for ACP sessions, connection lifecycle and owned-host shutdown. Keep CLI credentials, signals and filesystem adapters outside the shared kernel.
|
|
328
|
+
- 2b6f7bf: Share daemon connection lifecycle with the desktop host, reconnect silent links without replaying user input, and preserve single execution ownership on attachment conflicts.
|
|
329
|
+
|
|
330
|
+
Separate owned daemon drain and cleanup from CLI process signals, preserve the output connection until sessions finish, reject new turns during shutdown, and report shutdown failures after cleanup.
|
|
331
|
+
|
|
332
|
+
## 0.6.0-beta.2
|
|
333
|
+
|
|
334
|
+
### Patch Changes
|
|
335
|
+
|
|
336
|
+
- f0c9aed: Preserve ACP completion token usage when relaying sessions and return the complete agents page in JSON mode, including empty results and pagination metadata.
|
|
337
|
+
- fc24017: Include the underlying network error code in CLI fetch failures.
|
|
338
|
+
- 2b6f7bf: Update the shared runtime so ACP sessions can start without the optional steering extension. Reject unsupported active-turn steering at invocation instead of blocking ordinary prompts.
|
|
339
|
+
- 2b6f7bf: Consume the versioned OpenMA common local runtime for ACP sessions, connection lifecycle and owned-host shutdown. Keep CLI credentials, signals and filesystem adapters outside the shared kernel.
|
|
340
|
+
- 2b6f7bf: Share daemon connection lifecycle with the desktop host, reconnect silent links without replaying user input, and preserve single execution ownership on attachment conflicts.
|
|
341
|
+
|
|
342
|
+
Separate owned daemon drain and cleanup from CLI process signals, preserve the output connection until sessions finish, reject new turns during shutdown, and report shutdown failures after cleanup.
|
|
343
|
+
|
|
344
|
+
## 0.6.0-beta.1
|
|
345
|
+
|
|
346
|
+
### Patch Changes
|
|
347
|
+
|
|
348
|
+
- 7629a91: Expose typed Model Card management and Pi provider metadata through the SDK,
|
|
349
|
+
align model catalog discovery across Node and Cloudflare, and document the
|
|
350
|
+
runtime semantics of effort, speed, and custom Pi model configuration.
|
|
351
|
+
|
|
352
|
+
## 0.6.0-beta.0
|
|
353
|
+
|
|
354
|
+
### Minor Changes
|
|
355
|
+
|
|
356
|
+
- 68d2772: Align CLI requests with the Managed Agents and OMA API namespaces, and run daemon sessions through the shared managed runtime.
|
|
357
|
+
|
|
358
|
+
## 0.5.1
|
|
359
|
+
|
|
360
|
+
### Patch Changes
|
|
361
|
+
|
|
362
|
+
- aecc66e: Send bridge setup requests directly to the app origin so the runtime exchange POST is not rewritten by an apex redirect.
|
|
363
|
+
|
|
364
|
+
## 0.5.0
|
|
365
|
+
|
|
366
|
+
### Minor Changes
|
|
367
|
+
|
|
368
|
+
- [#103](https://github.com/openma-ai/open-managed-agents/pull/103) [`85c2e1c`](https://github.com/openma-ai/open-managed-agents/commit/85c2e1c359f774a3dbafcc45a6e7875ebba55ff2) Thanks [@hrhrng](https://github.com/hrhrng)! - `oma bridge` daemon now serves multiple tenants from a single process.
|
|
369
|
+
One daemon is authorized for every workspace the user is a member of;
|
|
370
|
+
each spawned ACP child gets the per-tenant `oma_*` key matching the
|
|
371
|
+
session's workspace.
|
|
372
|
+
- `oma bridge setup` requests the multi-tenant `/exchange` shape and
|
|
373
|
+
writes a `CredentialsV2` file (`{v:2, tenants:[…], …}`). Old v1
|
|
374
|
+
creds files (`agentApiKey` at the top level) auto-migrate on next
|
|
375
|
+
daemon start — calls `GET /agents/runtime/me` to pull the tenant
|
|
376
|
+
list, falls back to a placeholder workspace if the server is
|
|
377
|
+
unreachable so the daemon still runs offline.
|
|
378
|
+
- `oma bridge refresh` (new) re-syncs the daemon's credentials with
|
|
379
|
+
the user's current memberships. Adds keys for new workspaces, soft-
|
|
380
|
+
revokes keys for removed ones, then `SIGHUP`s the running daemon
|
|
381
|
+
so the change takes effect without a restart.
|
|
382
|
+
- `SessionManager` looks up the right `oma_*` key per session by the
|
|
383
|
+
inbound `session.start`'s `tenant_id`. Every outbound message the
|
|
384
|
+
daemon sends carries `tenant_id` so the server can validate it
|
|
385
|
+
against the runtime's authorized set.
|
|
386
|
+
|
|
387
|
+
Backward-compatible: v1 daemons keep working against the new server
|
|
388
|
+
shape (server returns the legacy `{runtime_id, token, agent_api_key}`
|
|
389
|
+
when the request doesn't set `multi_tenant: true`). The workaround
|
|
390
|
+
for multi-tenant — running multiple `OMA_PROFILE=…` daemons side by
|
|
391
|
+
side — still works for separate server environments.
|
|
392
|
+
|
|
393
|
+
### Patch Changes
|
|
394
|
+
|
|
395
|
+
- [`31f7fbf`](https://github.com/openma-ai/open-managed-agents/commit/31f7fbf67305f44831a379d9149bcf0c6a8d9c00) Thanks [@hrhrng](https://github.com/hrhrng)! - `oma bridge setup` now exits cleanly after "Done." instead of hanging
|
|
396
|
+
for ~5 minutes on idle keep-alive HTTP sockets from the registry CDN
|
|
397
|
+
fetch and the runtime-token probe. Daemon was already started by
|
|
398
|
+
launchd / systemd / Task Scheduler — only the foreground setup process
|
|
399
|
+
itself was waiting on the undici dispatcher to time out its sockets.
|
|
400
|
+
Force-exits at end of runSetup, matching how npm / pnpm / gh handle
|
|
401
|
+
the same constraint in their CLI commands.
|
|
402
|
+
|
|
403
|
+
Adds an opt-in `OMA_DEBUG_HANDLES=1` env var that prints active
|
|
404
|
+
handles + requests every 2s — useful for diagnosing future "process
|
|
405
|
+
won't exit" regressions without redeploying.
|
|
406
|
+
|
|
407
|
+
## 0.4.1
|
|
408
|
+
|
|
409
|
+
### Patch Changes
|
|
410
|
+
|
|
411
|
+
- [#41](https://github.com/openma-ai/open-managed-agents/pull/41) [`e370a4a`](https://github.com/openma-ai/open-managed-agents/commit/e370a4ab550ca18a37e27761695fb9bbd2e8bdb7) Thanks [@hrhrng](https://github.com/hrhrng)! - `oma bridge setup` now exits cleanly after "Done." instead of hanging
|
|
412
|
+
for ~5 minutes on idle keep-alive HTTP sockets from the registry CDN
|
|
413
|
+
fetch and the runtime-token probe. Daemon was already started by
|
|
414
|
+
launchd / systemd / Task Scheduler — only the foreground setup process
|
|
415
|
+
itself was waiting on the undici dispatcher to time out its sockets.
|
|
416
|
+
Force-exits at end of runSetup, matching how npm / pnpm / gh handle
|
|
417
|
+
the same constraint in their CLI commands.
|
|
418
|
+
|
|
419
|
+
Adds an opt-in `OMA_DEBUG_HANDLES=1` env var that prints active
|
|
420
|
+
handles + requests every 2s — useful for diagnosing future "process
|
|
421
|
+
won't exit" regressions without redeploying.
|
|
422
|
+
|
|
423
|
+
## 0.4.0
|
|
424
|
+
|
|
425
|
+
### Minor Changes
|
|
426
|
+
|
|
427
|
+
- [`4df9a0e`](https://github.com/openma-ai/open-managed-agents/commit/4df9a0e677eb1712688134fc140edb6d0db3969a) Thanks [@hrhrng](https://github.com/hrhrng)! - Bridge: expand local ACP agent support to the full official registry,
|
|
428
|
+
add cross-platform service install (launchd / systemd / Task Scheduler,
|
|
429
|
+
all no-admin), and wire end-to-end conversation recovery so daemon
|
|
430
|
+
restarts no longer drop context. `oma bridge setup` is now the single
|
|
431
|
+
command on every platform — installs the system service, starts the
|
|
432
|
+
daemon, and audits + offers ACP wrappers for install (npm packages or
|
|
433
|
+
GitHub release tarballs). Includes `OMA_PROFILE` for prod/staging
|
|
434
|
+
side-by-side daemons (default behavior unchanged for current users).
|
|
435
|
+
|
|
436
|
+
Fixes a multi-profile bug where the launchd-spawned daemon silently
|
|
437
|
+
dropped `OMA_PROFILE` and read the default profile's credentials,
|
|
438
|
+
causing the "wrong" daemon to compete for the WS attach slot.
|
|
439
|
+
|
|
440
|
+
## 0.3.2
|
|
441
|
+
|
|
442
|
+
### Patch Changes
|
|
443
|
+
|
|
444
|
+
- [`018b647`](https://github.com/openma-ai/open-managed-agents/commit/018b647536eb5d1398510fcc37f6c65447a801fd) Thanks [@hrhrng](https://github.com/hrhrng)! - Add Bridge subcommand section to top-level `oma` help so `setup`, `daemon`,
|
|
445
|
+
`status`, `uninstall` are discoverable without grepping or guessing.
|