@meego-harness/manager-contract
v0.9.0
Published
Shared manager decision contract for meego-harness
Downloads
527
Readme
@meego-harness/manager-contract
Shared structured decision contract for the Meego Harness manager-agent.
The package contains TypeScript types and parsers for manager run input, manager run output, and supported manager decisions. It is intentionally small so runtime packages can share one contract without importing the manager runtime itself.
Install
pnpm add @meego-harness/manager-contractUsage
import type { ManagerRunInput, ManagerRunResult } from '@meego-harness/manager-contract'
import {
parseManagerRunResult
} from '@meego-harness/manager-contract'
const input: ManagerRunInput = {
runId: 'run-1',
triggerEvent: 'manual-enable',
scope: 'workspace',
payload: {},
workers: [],
tasks: [],
hitl: [],
recentMemory: [],
}
const result: ManagerRunResult = parseManagerRunResult({
summary: 'No action required.',
decisions: [
{
type: 'noop',
rationale: 'No actionable project state is available.',
},
],
})Boundaries
- This package owns schemas and parsing for manager decisions.
- It does not run a model.
- It does not execute decisions.
- Prompt text used to produce these decisions belongs in
@meego-harness/prompt-registry, except system preset strategymetaPrompttext, which is stored inline assystem-presetstrategy data. - System preset strategy
metaPrompttext should describe the intent boundary of the rules the strategy can generate, not capability implementation details.
