npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sava-agent-core

v0.4.1

Published

Portable agent kernel for tool-using, execution-capable AI runtimes.

Readme

sava-agent-core

Developer Preview. El paquete ya está siendo preparado para publicación pública. La API raíz está gobernada por semver y por la prueba de superficie pública; lo experimental sigue explícitamente separado. Ver docs/API_FREEZE.md.

CI License: MIT

sava-agent-core es una librería TypeScript ESM para construir agentes gobernables que pueden planificar, ejecutar, verificar, persistir y auditar acciones reales en entornos local, nube o dispositivo.

Qué incluye hoy

  • Kernel reusable para tools, transportes, policies, verification, memory, tasks y audit.
  • Runtime reusable con AgentBase, AgentLoop, sesiones, supervision timeline y stores en memoria o archivo.
  • Capa cognitiva con SavaAgentCognitivo para interpretar objetivos, evaluar viabilidad y detectar gaps de capacidades.
  • Portable Execution Base para montar agentes de ejecución segura sobre toolsets propios con roles observe, act, verify y report.
  • Entry points separados para runtime y SQLite, sin acoplar el barrel principal a Node 22.

Qué no intenta ser

  • No es una app final de chat ni una UI cerrada.
  • No está acoplado a un proveedor LLM concreto.
  • No publica herramientas de negocio, verticales o integraciones privadas dentro del paquete base.

Instalación

npm install sava-agent-core

Requisitos:

  • Node.js 18 o superior
  • Node.js 22 o superior solo si usas el entry point SQLite: sava-agent-core/sqlite
  • ESM only

Entry points públicos

| Import | Uso | | --- | --- | | sava-agent-core | Kernel principal, runtime, cognitive y portable execution | | sava-agent-core/runtime | Tipos y piezas del loop reusable | | sava-agent-core/experimental | Superficie experimental; no congelada | | sava-agent-core/sqlite | Stores SQLite con requisito de Node 22 |

Ejemplo mínimo

import { createSavaAgentCognitivo } from 'sava-agent-core';

const cognitive = createSavaAgentCognitivo();

const result = cognitive.reason({
  message: 'construye una app android compilable para pruebas internas',
  availableCapabilities: ['file_read', 'file_search', 'file_write', 'process_run', 'mobile_sdk_access'],
  context: {
    environment: 'windows',
    shell: 'powershell',
    detectedTools: ['gradle', 'adb'],
  },
});

console.log(result.status);
console.log(result.viability.overallStatus);
console.log(result.operatorClosure.nextAction);

Si necesitas un ejemplo ejecutable end to end usando la base de ejecución portable, el repo incluye examples/execution-base-consumer.ts.

Ejemplo ejecutable incluido

Desde el repo:

npx tsx examples/execution-base-consumer.ts snapshot
npx tsx examples/execution-base-consumer.ts diagnose
npx tsx examples/execution-base-consumer.ts preview

Ese ejemplo usa únicamente exportaciones oficiales del paquete y muestra cómo montar una base de ejecución portable sobre un conjunto de tools propio.

Estructura del repo

  • src/: implementación fuente del paquete
  • examples/: ejemplos ejecutables sobre la API pública
  • prototypes/: exploración y material experimental fuera del contrato semver
  • docs/: documentación pública y notas de arquitectura
  • tests/: validación de superficie pública, comportamiento y build

Calidad y validación

El criterio de aceptación del repo es:

npm run check

Ese comando ejecuta typecheck, lint, tests y build. El CI corre la misma validación en Node 18, 20 y 22, además de npm pack --dry-run.

Documentación pública

Notas de publicación

  • El paquete publicado solo incluye dist mediante la propiedad files de package.json.
  • examples, prototypes y docs forman parte del repo, no del artefacto npm.
  • Cualquier cambio deliberado en la API pública debe actualizar tests/api-surface.test.ts y docs/API_FREEZE.md.

Licencia

MIT