import { z } from 'zod'; import { type ProviderSchema, type RolePolicySchema } from './types-policy.js'; import { RoleSchema } from './types-role.js'; export { CostTiersSchema, DEFAULT_MAX_EVIDENCE_ATTEMPTS, LoadoutSchema } from './types-cost.js'; export type { BusEvent, DecisionGate, DecisionKind, ToolResultEventData } from './types-events.js'; export { TOOL_RESULT_OUTPUT_MAX_CHARS } from './types-events.js'; export type { ArtifactRef, ContextSlice, FailureRouting, HandoffDecision, OrgHandoff, } from './types-handoff.js'; export { ArtifactRefSchema, ContextSliceSchema, FailureRoutingSchema, HandoffDecisionSchema, OrgHandoffSchema, } from './types-handoff.js'; export type { FenceAllowlistRule, FenceConfig } from './types-policy.js'; export { FenceAllowlistRuleSchema, FenceConfigSchema, ProviderSchema, RolePolicySchema, } from './types-policy.js'; export type { EndpointConfig, ToolProviderConfig } from './types-role.js'; export { DEFAULT_MAX_TURNS_PER_MESSAGE, EndpointSchema, MAX_BLOCK_RECHECK_MINUTES, MAX_TOOL_ROUNDS_LIMIT, RoleSchema, ToolProviderSchema, } from './types-role.js'; export declare const OrgDefSchema: z.ZodObject<{ name: z.ZodString; goal: z.ZodDefault; status: z.ZodDefault; schedule: z.ZodDefault>; run_config: z.ZodPipe>; budget_tokens: z.ZodOptional>; budget_tokens_basis: z.ZodOptional>>; memory_namespace: z.ZodOptional>; max_turns_per_message: z.ZodOptional>; max_tool_rounds: z.ZodOptional>; idle_minutes: z.ZodOptional>; verify_writes: z.ZodOptional>; lead_watch: z.ZodOptional, z.ZodObject<{ not_started_s: z.ZodOptional; silent_s: z.ZodOptional; unread_s: z.ZodOptional; }, z.core.$strip>]>>>; block_recheck_minutes: z.ZodOptional>; completion: z.ZodOptional, z.ZodObject<{ mode: z.ZodEnum<{ boss: "boss"; dag: "dag"; }>; protocol: z.ZodOptional; }, z.core.$strict>]>>>; experimental: z.ZodOptional>; completion_evidence: z.ZodOptional>; max_evidence_attempts: z.ZodOptional>; session_scope: z.ZodOptional>>; context: z.ZodOptional; notes: z.ZodOptional; session_cap: z.ZodOptional; tokens: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>>; session_idle_exit_ms: z.ZodOptional>; bash_timeout_ms: z.ZodOptional>; deadline_seconds: z.ZodOptional>; notify_task_creator: z.ZodOptional>; workspace: z.ZodOptional, z.ZodLiteral<"isolated">, z.ZodLiteral<"worktree">, z.ZodLiteral<"worktree-per-role">, z.ZodString]>>>; circuit_breaker: z.ZodOptional>; cooldown_ms: z.ZodOptional>; }, z.core.$strip>>>; max_role_respawns: z.ZodOptional>; max_role_resets: z.ZodOptional>; respawn_drain_timeout_ms: z.ZodOptional>; respawn_force_stop_timeout_ms: z.ZodOptional>; respawn_start_timeout_ms: z.ZodOptional>; failure_routing: z.ZodOptional; backoffMs: z.ZodOptional>>; }, z.core.$strip>>>; fallbackAssignee: z.ZodOptional>; escalate: z.ZodOptional>; }, z.core.$strip>>>; stale_base_threshold: z.ZodOptional>; prechecks: z.ZodOptional>>>; allow_unattended_full_access: z.ZodOptional>; accept_full_access_taint: z.ZodOptional>>; }, z.core.$loose>>, z.ZodTransform<{ memory_namespace?: string | undefined; max_tool_rounds?: number | undefined; idle_minutes?: number | undefined; verify_writes?: boolean | undefined; lead_watch?: false | { not_started_s?: number | undefined; silent_s?: number | undefined; unread_s?: number | undefined; } | undefined; block_recheck_minutes?: number | undefined; experimental?: unknown; session_scope?: "role" | "task" | undefined; context?: { require_brief?: boolean | undefined; notes?: boolean | undefined; session_cap?: { tasks?: number | undefined; tokens?: number | undefined; } | undefined; } | undefined; session_idle_exit_ms?: number | undefined; bash_timeout_ms?: number | undefined; deadline_seconds?: number | undefined; notify_task_creator?: boolean | undefined; circuit_breaker?: { failure_threshold?: number | undefined; cooldown_ms?: number | undefined; } | undefined; max_role_resets?: number | undefined; failure_routing?: { retry?: { maxAttempts?: number | undefined; backoffMs?: number[] | undefined; } | undefined; fallbackAssignee?: string | undefined; escalate?: boolean | undefined; } | undefined; prechecks?: { name: string; command: string; }[] | undefined; allow_unattended_full_access?: boolean | undefined; accept_full_access_taint?: string[] | undefined; max_concurrent_agents: number; budget_tokens: number; budget_tokens_basis: "billable" | "uncached"; max_turns_per_message: number; workspace: string; stale_base_threshold: number; max_role_respawns: number; completion: "boss" | "dag" | { mode: "boss" | "dag"; protocol?: string | undefined; }; completion_evidence: boolean; max_evidence_attempts: number; respawn_drain_timeout_ms: number; respawn_force_stop_timeout_ms: number; respawn_start_timeout_ms: number; }, { [x: string]: unknown; max_concurrent_agents?: number | undefined; budget_tokens?: number | undefined; budget_tokens_basis?: "billable" | "uncached" | undefined; memory_namespace?: string | undefined; max_turns_per_message?: number | undefined; max_tool_rounds?: number | undefined; idle_minutes?: number | undefined; verify_writes?: boolean | undefined; lead_watch?: false | { not_started_s?: number | undefined; silent_s?: number | undefined; unread_s?: number | undefined; } | undefined; block_recheck_minutes?: number | undefined; completion?: "boss" | "dag" | { mode: "boss" | "dag"; protocol?: string | undefined; } | undefined; experimental?: unknown; completion_evidence?: boolean | undefined; max_evidence_attempts?: number | undefined; session_scope?: "role" | "task" | undefined; context?: { require_brief?: boolean | undefined; notes?: boolean | undefined; session_cap?: { tasks?: number | undefined; tokens?: number | undefined; } | undefined; } | undefined; session_idle_exit_ms?: number | undefined; bash_timeout_ms?: number | undefined; deadline_seconds?: number | undefined; notify_task_creator?: boolean | undefined; workspace?: string | undefined; circuit_breaker?: { failure_threshold?: number | undefined; cooldown_ms?: number | undefined; } | undefined; max_role_respawns?: number | undefined; max_role_resets?: number | undefined; respawn_drain_timeout_ms?: number | undefined; respawn_force_stop_timeout_ms?: number | undefined; respawn_start_timeout_ms?: number | undefined; failure_routing?: { retry?: { maxAttempts?: number | undefined; backoffMs?: number[] | undefined; } | undefined; fallbackAssignee?: string | undefined; escalate?: boolean | undefined; } | undefined; stale_base_threshold?: number | undefined; prechecks?: { name: string; command: string; }[] | undefined; allow_unattended_full_access?: boolean | undefined; accept_full_access_taint?: string[] | undefined; }>>; fence: z.ZodOptional>; confidenceThreshold: z.ZodOptional>; enablePIIDetection: z.ZodOptional>; scanMessages: z.ZodOptional>; scanOutput: z.ZodOptional>; abortThreshold: z.ZodOptional>; allowlist: z.ZodOptional>>; context: z.ZodOptional; reason: z.ZodOptional; source: z.ZodOptional; }, z.core.$strip>>>>; }, z.core.$loose>>; federation: z.ZodOptional>; allow_to: z.ZodOptional>; }, z.core.$loose>>; cost_tiers: z.ZodOptional; roles: z.ZodOptional>; }, z.core.$loose>]>>>; tiers: z.ZodOptional>; }, z.core.$loose>>>>; providers: z.ZodOptional & z.core.$partial, z.ZodRecord>>; }, z.core.$loose>>>; }, z.core.$loose>>; loadouts: z.ZodOptional; prompt: z.ZodOptional; skills: z.ZodOptional>; instructions_file: z.ZodOptional; }, z.core.$loose>>>; requires: z.ZodOptional; }, z.core.$loose>>; sections: z.ZodOptional>; documents: z.ZodOptional>; roles: z.ZodArray; type: z.ZodDefault; reports_to: z.ZodDefault>; responsibilities: z.ZodDefault>; instructions_file: z.ZodOptional; skills: z.ZodOptional>; skill_pool: z.ZodOptional>; blueprint: z.ZodOptional; ui: z.ZodOptional; y: z.ZodOptional; icon: z.ZodOptional; color: z.ZodOptional; }, z.core.$loose>>; adapter_config: z.ZodOptional>; max_tokens: z.ZodOptional>; provider: z.ZodOptional>; }, z.core.$strip>>; provider: z.ZodOptional>; vendor: z.ZodOptional>; apiKeyEnv: z.ZodOptional; apiKey: z.ZodOptional; baseUrl: z.ZodOptional; authTokenEnv: z.ZodOptional; authToken: z.ZodOptional; usageProxy: z.ZodOptional; usageProxyEnvVar: z.ZodOptional; }, z.core.$strict>>; policy: z.ZodOptional>>; denyTools: z.ZodOptional>>; fileWrite: z.ZodOptional>>; fileRead: z.ZodOptional>>; webAllow: z.ZodOptional>>; maxTokens: z.ZodOptional>; maxTokensBasis: z.ZodOptional>>; maxUsd: z.ZodOptional>; git: z.ZodOptional>>; sandbox: z.ZodOptional>; allowedDomains: z.ZodOptional>; deniedDomains: z.ZodOptional>; allowWrite: z.ZodOptional>; denyWrite: z.ZodOptional>; denyExec: z.ZodOptional>; denyRead: z.ZodOptional>; homeWriteAllow: z.ZodOptional>; allowUnixSockets: z.ZodOptional; }, z.core.$strict>>>; fence: z.ZodOptional>; confidenceThreshold: z.ZodOptional>; enablePIIDetection: z.ZodOptional>; scanMessages: z.ZodOptional>; scanOutput: z.ZodOptional>; abortThreshold: z.ZodOptional>; allowlist: z.ZodOptional>>; context: z.ZodOptional; reason: z.ZodOptional; source: z.ZodOptional; }, z.core.$strip>>>>; }, z.core.$loose>>>; autoApproveTools: z.ZodOptional>>; approvalTools: z.ZodOptional>>; access: z.ZodOptional>>; settings: z.ZodOptional>>>; access_ack: z.ZodOptional; at: z.ZodString; hash: z.ZodString; sig: z.ZodOptional; }, z.core.$strict>>>; }, z.core.$loose>>; session_scope: z.ZodOptional>; review_input: z.ZodOptional>; deliberative: z.ZodOptional; runtime: z.ZodOptional>; max_turns_per_message: z.ZodOptional; max_tool_rounds: z.ZodOptional; budget_tokens: z.ZodOptional; budget_usd: z.ZodOptional; tool_providers: z.ZodOptional; name: z.ZodString; command: z.ZodString; args: z.ZodDefault>; env: z.ZodDefault>; allow: z.ZodOptional>; prefix: z.ZodOptional; timeout_ms: z.ZodDefault; idle_ms: z.ZodDefault; }, z.core.$loose>>>; kind: z.ZodOptional>; endpoint: z.ZodOptional; timeout_ms: z.ZodOptional; input_hint: z.ZodOptional; }, z.core.$loose>>; }, z.core.$loose>>; runtime: z.ZodOptional>; }, z.core.$loose>; export type OrgDef = z.infer; export type OrgRole = z.infer; export type RolePolicy = z.infer; export type ProviderConfig = z.infer; export declare const ORG_DIR = ".monomind/orgs"; /** * Recommended org_send handoff format for inter-role communication: * * Use org_send(target_role, context_summary, next_action, files_changed, related_issues): * * - **target_role**: Role ID to receive the handoff * - **context_summary**: Brief status of what was done (1-2 sentences) * - **next_action**: What the receiver should do next (specific, actionable) * - **files_changed**: Array of file paths modified (if applicable) * - **related_issues**: Array of issue IDs or PR references (if applicable) * * Example: * ```json * { * "summary": "Bug fix implemented in auth module", * "next_action": "Review the fix and run tests", * "files_changed": ["src/auth.ts", "tests/auth.test.ts"], * "related_issues": ["#123", "PR #456"] * } * ``` * * The org_send tool already passes `subject` and `message` — this format * documents best practice for structured handoffs between roles. */ //# sourceMappingURL=types.d.ts.map