Development
pkg
Deploy autonomous business logic with semantic types and AI agent orchestration. Build applications that think, adapt, and scale with zero infrastructure management.
pkg
Pkg.do
Overview
The pkg primitive is part of the .do platform's semantic API system. It follows the $.Subject.verb.Object pattern for consistent, intuitive interactions across SDK, CLI, API, and MCP interfaces.
Semantic Pattern
All pkg operations follow the semantic $.Pkg.verb.Object pattern:
import { $, pkg } from 'sdk.do'
// Create resources
await $.Pkg.create.Resource({ /* config */ })
// Query data
await $.Pkg.get.Data({ /* params */ })
// Update state
await $.Pkg.update.Status({ /* changes */ })Quick Start
import { pkg } from 'sdk.do'
// Initialize and use the primitive
const result = await pkg.operation({
// configuration parameters
})Access Methods
The pkg primitive is accessible through multiple interfaces:
SDK
TypeScript/JavaScript library for programmatic access:
import { pkg } from 'sdk.do'
await pkg.method({ /* ... */ })CLI
Command-line interface for terminal operations:
do pkg <command> [options]API
REST/RPC endpoints for HTTP integration:
curl -X POST https://api.do/v1/pkg \
-H "Content-Type: application/json" \
-d '{"key":"value"}'MCP
Model Context Protocol for AI assistant integration:
Use pkg primitives with AI assistants via MCPRelated Primitives
See other primitives in the development category.