@devory/core
v0.5.1
Published
Shared types and workspace utilities for Devory
Readme
@devory/core
Shared types, parsing utilities, and path configuration for Devory.
Installation
npm install @devory/coreAPI
Task parsing
import { parseFrontmatter } from '@devory/core'
const result = parseFrontmatter(fileContent)
// result.meta — typed TaskMeta fields
// result.body — markdown body after frontmatterFactory environment
import { resolveFactoryEnvironment, factoryPaths } from '@devory/core'
const env = resolveFactoryEnvironment()
const paths = factoryPaths(env.root)
// paths.tasksDir, paths.runsDir, paths.artifactsDir, etc.Types
TaskMeta— frontmatter fields for a Devory task fileFactoryEnvironment— resolved root, mode, and sourceFactoryPaths— all well-known directories in a factory workspaceLicenseInfo/LicenseStatus— resolved tier, source, verification, and cache state
License Helpers
import { detectTier, getLicenseStatus, writeLicenseToken, clearLicenseToken } from '@devory/core'
const tier = await detectTier('/path/to/workspace')
const status = await getLicenseStatus('/path/to/workspace')
writeLicenseToken('/path/to/workspace', 'devory_pro_...')
clearLicenseToken('/path/to/workspace')Routing Control Plane
@devory/core exports the routing-control-plane helpers used by the VS Code run surface, including task profiling, routing policy resolution, provider registry selection, concrete target resolution, readiness checks, adapter resolution, and execution binding.
These helpers are deterministic and inspectable. They preserve selected-versus-actual truth rather than collapsing the route into one synthetic value.
Requirements
- Node.js 18+
