ci/woodpecker/push/publish Pipeline was canceled
Co-authored-by: mos-dt-0 <[email protected]>
66 lines
1.4 KiB
TypeScript
66 lines
1.4 KiB
TypeScript
// Types
|
|
export type {
|
|
TaskStatus,
|
|
TaskType,
|
|
DispatchMode,
|
|
DependsOnPolicy,
|
|
GateType,
|
|
GateFailOn,
|
|
GateStatus,
|
|
GateEntry,
|
|
Task,
|
|
EventType,
|
|
MACPEvent,
|
|
GateResult,
|
|
RunGatesResult,
|
|
TaskResult,
|
|
ProviderMeta,
|
|
ProviderRegistry,
|
|
} from './types.js';
|
|
|
|
export { CredentialError } from './types.js';
|
|
|
|
// Typed fail-closed capability errors (RI-N2, SDLC-D-035)
|
|
export { MACP_ERROR_CODES, MACPCapabilityError } from './errors.js';
|
|
|
|
export type { MacpErrorCode } from './errors.js';
|
|
|
|
// Credential resolver
|
|
export {
|
|
DEFAULT_CREDENTIALS_DIR,
|
|
OC_CONFIG_PATH,
|
|
REDACTED_MARKER,
|
|
PROVIDER_REGISTRY,
|
|
extractProvider,
|
|
parseDotenv,
|
|
stripJSON5Extensions,
|
|
checkOCConfigPermissions,
|
|
isValidCredential,
|
|
resolveCredentials,
|
|
} from './credential-resolver.js';
|
|
|
|
export type { ResolveCredentialsOptions } from './credential-resolver.js';
|
|
|
|
// Gate runner
|
|
export {
|
|
normalizeGate,
|
|
runShell,
|
|
countAIFindings,
|
|
runGate,
|
|
runGates,
|
|
SIMULATED_GATE_REASON,
|
|
} from './gate-runner.js';
|
|
|
|
export type { NormalizedGate, RunGateOptions } from './gate-runner.js';
|
|
|
|
// Risk-floor (agent reflection loop — diff review classifier)
|
|
export { evaluateRiskFloor, DEFAULT_RISK_THRESHOLD } from './risk-floor.js';
|
|
|
|
export type { ReviewSurface, RiskFloorInput, RiskFloorVerdict } from './risk-floor.js';
|
|
|
|
// Event emitter
|
|
export { nowISO, appendEvent, emitEvent } from './event-emitter.js';
|
|
|
|
// CLI
|
|
export { registerMacpCommand } from './cli.js';
|