open-index/open-npm huggingface dataset:
npm package: @onegai/cli
Description: Declarative workflow orchestrator for AI agents
Latest version: 0.1.1

# onegai

Declarative workflow orchestrator for AI agents.

## What it does

onegai runs workflows that combine AI agent skills with shell commands. Workflows are YAML files defining jobs and steps with DAG-based dependency resolution.

```yaml
# .claude/workflows/dev/implement.yml
name: Implement and review

jobs:
  implement:
    steps:
      - skill: dev/impl
        id: impl
      - skill: dev/review
        inputs:
          changes: ${{ steps.impl.outputs.changes }}
  lint:
    steps:
      - run: bun run lint
  integrate:
    needs: [implement, lint]
    steps:
      - run: echo "All checks passed"
```

Skills are Markdown files with frontmatter declaring inputs, provider, and tools:

```yaml
# .claude/skills/dev/impl.md
---
provider: claude
model: sonnet
tools: [Read, Edit, Write, Bash]
inputs:
  what: 実装内容
  where:
    description: 対象ファイル
    type: plain
---

指定されたファイルに対して実装を行う。
```

## Core values

- **Hallucination suppression**: Evidenced inputs require citations. onegai verifies citations exist before execution (Intent Gate).
- **Progressive disclosure**: Workers receive only what they need. Process isolation prevents context leakage.
- **Declarative workflows**: Jobs, steps, and dependencies defined in YAML. No code changes to add workflows.

## Prerequisites

- [Claude Code](https://claude.ai/code) CLI installed and authenticated
- Node.js >= 20

## Install

```bash
npm install -g @onegai/cli
```

For development:

```bash
bun install
```

## CLI

```bash
onegai run <workflow.yml> [--input key=json]   # Run a workflow
onegai workflows [--context]                   # List available workflows
onegai inspect <workflow.yml>                  # Show required inputs as JSON
onegai view <run-id> [--json]                  # View run results
```

## How it works

1. `onegai workflows` shows available workflows with their required inputs
2. `onegai run` validates inputs (Intent Gate), resolves the DAG, executes jobs in parallel batches
3. `skill:` steps run via Claude Agent SDK with process isolation
4. `run:` steps execute shell commands
5. Step outputs flow via `${{ steps.<id>.outputs.<key> }}` references
6. Results are persisted in `.onegai/runs/`

## File structure

```
.claude/
  workflows/       # Workflow definitions (.yml)
  skills/          # Skill definitions (.md)
  hooks/           # Claude Code hooks
```

Skills are resolved from: project `.claude/skills/`, repo root, `~/.claude/skills/`.

## Design docs

- [Design Philosophy](./docs/2026-03-30-dec-onegai-design-philosophy.md)
- [v2 Specification](./docs/2026-03-31-dec-onegai-v2-spec.md)
- [Jobs/Steps Architecture](./docs/2026-03-31-con-jobs-steps-architecture.md)
npm package: @onegini/websequencediagrams
Description: Interface to websequencediagrams.com
Author: Joe Hildebrand
Latest version: 0.0.7
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

Call the WebSequenceDiagram.com API.

Example:

    var wsd = require('websequencediagrams');
    var fs = require('fs');
    wsd.diagram("Alice->Bob: message", "modern-blue", "png", function(er, buf, typ) {
    	if (er) {
    		console.error(er);    		
    	} else {
    		console.log("Received MIME type:", typ);
    		fs.writeFile("my.png", buf);
    	}
    });

### .diagram(text, style, output_type, callback)
Takes the text to turn into a diagram, the style name, the output type, and a callback.

Valid output types include "png", "svg", and "pdf".

The callback takes an error, a Buffer, and a MIME type

### .styles
.styles is an array of all of the currently-known style types.

### .root
.root is the URL for the service, which defaults to "http://www.websequencediagrams.com".  It can be modified to suit your needs.

### License
This code is licensed under the [Apache Software License, 2.0](http://www.apache.org/licenses/LICENSE-2.0)