paperclip-plugin-autopilot-ops 0.1.46 → 0.1.47

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/manifest.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // src/manifest.ts
2
2
  var PLUGIN_ID = "alephoo.autopilot-ops";
3
- var PLUGIN_VERSION = "0.1.46";
3
+ var PLUGIN_VERSION = "0.1.47";
4
4
  var DB_NAMESPACE_SLUG = "autopilot_ops";
5
5
  var PAGE_ROUTE = "autopilot";
6
6
  var TOOL_NAMES = {
package/dist/ui/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
 
9
9
  // src/manifest.ts
10
10
  var PLUGIN_ID = "alephoo.autopilot-ops";
11
- var PLUGIN_VERSION = "0.1.46";
11
+ var PLUGIN_VERSION = "0.1.47";
12
12
  var DB_NAMESPACE_SLUG = "autopilot_ops";
13
13
  var PAGE_ROUTE = "autopilot";
14
14
  var TOOL_NAMES = {
package/dist/worker.js CHANGED
@@ -39932,7 +39932,7 @@ function startWorkerRpcHost(options) {
39932
39932
 
39933
39933
  // src/manifest.ts
39934
39934
  var PLUGIN_ID = "alephoo.autopilot-ops";
39935
- var PLUGIN_VERSION = "0.1.46";
39935
+ var PLUGIN_VERSION = "0.1.47";
39936
39936
  var DB_NAMESPACE_SLUG = "autopilot_ops";
39937
39937
  var PAGE_ROUTE = "autopilot";
39938
39938
  var TOOL_NAMES = {
@@ -46322,8 +46322,9 @@ async function tablero(ctx, companyId, diasInput) {
46322
46322
  p2
46323
46323
  );
46324
46324
  const totalRows = await ctx.db.query(
46325
- `SELECT coalesce(sum(minutos_absorbidos), 0)::int AS minutos FROM ${t3(ctx, "caso")} WHERE company_id = $1 AND NOT (estado = ANY($2::text[]))`,
46326
- [companyId, [...finalesSinTrabajo()]]
46325
+ // Los estados van escritos en la consulta (salen del código, no del usuario): el host no pasa listas como parámetro.
46326
+ `SELECT coalesce(sum(minutos_absorbidos), 0)::int AS minutos FROM ${t3(ctx, "caso")} WHERE company_id = $1${[...finalesSinTrabajo()].filter((e) => /^[a-z_]+$/.test(e)).map((e) => ` AND estado <> '${e}'`).join("")}`,
46327
+ p1
46327
46328
  );
46328
46329
  const accionesRows = await ctx.db.query(
46329
46330
  `SELECT tipo, count(*)::int AS cantidad FROM ${t3(ctx, "accion")} WHERE company_id = $1 AND created_at >= now() - ($2::int * interval '1 day') GROUP BY tipo`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paperclip-plugin-autopilot-ops",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "type": "module",
5
5
  "description": "Autopilot Care · operación autónoma gobernada para instituciones de salud: workflows determinísticos, validaciones, registro de negocio, políticas (observa/propone/ejecuta/corte) y tablero del director, como plugin de Paperclip.",
6
6
  "files": [