New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ai-operations/ops-storage

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-operations/ops-storage

SQLite persistence layer for AI Operations OS — tasks, workflows, receipts, SPARK learning data (WAL mode)

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@ai-operations/ops-storage

SQLite persistence layer for tasks, workflows, approvals, and users in AI Operations OS.

Part of AI Operations OS — autonomous business workflow orchestration with safety enforcement.

Install

npm install @ai-operations/ops-storage

Requires better-sqlite3 as a peer dependency.

Quick Start

import { createStores } from '@ai-operations/ops-storage';
import { createTask } from '@ai-operations/shared-types';

const { tasks, workflows, approvals, users, db } = createStores();

const task = createTask({ source: 'email', title: 'Reply to John' });
tasks.save(task);

const found = tasks.get(task.id);
const pending = tasks.list({ status: 'pending', limit: 20 });

API

createStores(dbPath?): Stores

Convenience factory that creates a Database and all stores in one call. Defaults to ~/.ai-ops/data.db.

interface Stores {
  tasks: TaskStore;
  workflows: WorkflowStore;
  approvals: ApprovalStore;
  users: UserStore;
  db: Database;
}

Database

Opens/creates a SQLite database, creates all required tables on first run, and uses WAL mode for concurrency.

constructor(dbPath?: string)  // defaults to ~/.ai-ops/data.db
close(): void

TaskStore

CRUD operations for Task records with filtering and pagination.

save(task: Task): void
get(id: string): Task | undefined
list(filter?: TaskFilter): Task[]
update(id: string, updates: Partial<Task>): Task | undefined
count(filter?: TaskFilter): number
delete(id: string): boolean
  • TaskFilter{ status?, source?, intent?, priority?, limit?, offset? }

WorkflowStore

Persistence for WorkflowRun and WorkflowStep records.

  • WorkflowRunFilter{ taskId?, state?, limit?, offset? }

ApprovalStore

Persistence for Approval records with filtering by risk level and decision.

  • ApprovalFilter — Filter by decision status, risk level, task ID.

UserStore

User account management with typed input/output.

  • User / CreateUserInput — User record types for the users table.

License

MIT

Keywords

ai-ops

FAQs

Package last updated on 10 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts