@tarcisiojunior/shared
v0.2.3
Published
Shared types, validators and constants for the AI Toolkit ecosystem — package manager for AI coding tools.
Maintainers
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,ApiResponseand 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/sharedUsage
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
- AI Toolkit CLI: npmjs.com/package/aitk-cli
- Registry: ai-toolkit-henna.vercel.app
- GitHub: github.com/tarcisiojr/ai-toolkit
License
MIT © tarcisiojr