@nectarcrm/ccx 0.5.3 → 0.5.4

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 (2) hide show
  1. package/bin/ccx.js +2 -1
  2. package/package.json +1 -1
package/bin/ccx.js CHANGED
@@ -706,7 +706,8 @@ async function api(app, key, method, path, body, timeoutMs = 60_000) {
706
706
  try {
707
707
  res = await fetch(app.url + path, {
708
708
  method,
709
- headers: { 'content-type': 'application/json', ...(key ? { authorization: `Bearer ${key}` } : {}) },
709
+ // x-ccx-version: o painel mostra a versão de cada computador
710
+ headers: { 'content-type': 'application/json', 'x-ccx-version': myVersion(), ...(key ? { authorization: `Bearer ${key}` } : {}) },
710
711
  body: body && JSON.stringify(body),
711
712
  signal: AbortSignal.timeout(timeoutMs),
712
713
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nectarcrm/ccx",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Escolhe qual conta Claude este computador usa, conectado ao app Contas Claude da Nectar.",
5
5
  "type": "module",
6
6
  "bin": { "ccx": "bin/ccx.js" },