@tarcisiojunior/shared

v0.2.3

Published

Shared types, validators and constants for the AI Toolkit ecosystem — package manager for AI coding tools.

Readme

@tarcisiojunior/shared

Shared types, validators and constants for the AI Toolkit ecosystem.

Overview

This package provides the core type definitions, Zod validators and constants used across the AI Toolkit monorepo:

  • Types: Artifact, ArtifactVersion, User, Team, ApiResponse and more
  • Validators: Zod schemas for artifact manifests, publish payloads, and search queries
  • Constants: Supported artifact types (skill, mcp, template, config, hook) and tool targets (claude-code, opencode, gemini-cli, etc.)

Installation

npm install @tarcisiojunior/shared

Usage

import {
  type Artifact,
  type ArtifactType,
  ARTIFACT_TYPES,
  TOOL_TARGETS,
  artifactManifestSchema,
} from '@tarcisiojunior/shared';

// Validate an artifact manifest
const result = artifactManifestSchema.safeParse(manifest);

// Use type constants
console.log(ARTIFACT_TYPES); // ['skill', 'mcp', 'template', 'config', 'hook']
console.log(TOOL_TARGETS);   // ['claude-code', 'opencode', 'gemini-cli', ...]

Links

License

MIT © tarcisiojr