tpmjs/packages/tools/official/runbook-draft
Ajax Davis 5c9f1a1d0a chore: update dependencies with compatibility fixes
- Update all packages to latest versions via pnpm update --latest
- Downgrade Prisma 7 to 6 (v7 requires schema migration)
- Downgrade Tailwind CSS 4 to 3 (v4 requires PostCSS migration)
- Downgrade Storybook 10 to 8 (addons not available in v10)
- Pin cheerio to 1.0.0-rc.12 via pnpm override (type exports changed)
- Fix AI SDK tool definitions: parameters -> inputSchema
- Fix cheerio types in extract-meta and table-extract tools
- Add explicit type annotations to tool execute functions
- Migrate biome config to v2.3.11 schema

All type-checks, tests, and builds pass.
2026-01-09 22:49:41 +10:00
..
src feat: add 55 new business tools and improve existing implementations 2026-01-01 19:23:32 +10:00
CHANGELOG.md chore: version packages 2025-12-31 23:54:47 +10:00
package.json chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00
README.md feat: add 100+ official TPMJS tools 2025-12-31 22:55:56 +10:00
tsconfig.json feat: add 100+ official TPMJS tools 2025-12-31 22:55:56 +10:00
tsup.config.ts feat: add 100+ official TPMJS tools 2025-12-31 22:55:56 +10:00

@tpmjs/tools-runbook-draft

Draft operational runbooks from procedure steps with commands and verification.

Installation

npm install @tpmjs/tools-runbook-draft

Usage

import { runbookDraftTool } from '@tpmjs/tools-runbook-draft';

const result = await runbookDraftTool.execute({
  title: 'Database Migration Runbook',
  steps: [
    {
      action: 'Backup the database',
      command: 'pg_dump mydb > backup.sql',
      verification: 'Check that backup.sql exists and has content',
    },
    {
      action: 'Stop the application',
      command: 'systemctl stop myapp',
      verification: 'Run systemctl status myapp to confirm stopped',
    },
    {
      action: 'Run migrations',
      command: 'npm run migrate',
      verification: 'Check migration logs for errors',
    },
    {
      action: 'Start the application',
      command: 'systemctl start myapp',
      verification: 'Run systemctl status myapp to confirm running',
    },
  ],
});

console.log(result.runbook);
// Markdown-formatted runbook with all steps
console.log(`Steps: ${result.stepCount}`);
console.log(`Has commands: ${result.hasCommands}`);

Features

  • Generates structured markdown runbooks
  • Supports optional command examples in code blocks
  • Includes verification steps for each action
  • Automatically adds prerequisites section when commands are present
  • Timestamps generation for version tracking

Input

RunbookDraftInput

  • title (string, required): Title of the runbook
  • steps (array, required): Array of procedure steps

RunbookStep

  • action (string, required): Description of the action to perform
  • command (string, optional): Command to execute
  • verification (string, optional): Verification step to confirm success

Output

RunbookDraft

  • runbook (string): Markdown-formatted runbook document
  • stepCount (number): Number of steps in the runbook
  • hasCommands (boolean): Whether any steps include commands

License

MIT