takt/src/index.ts
nrs dec77e069e
add-model-to-persona-providers (#324)
* takt: add-model-to-persona-providers

* refactor: loadConfigを廃止しresolveConfigValueにキー単位解決を一元化

loadConfig()による一括マージを廃止し、resolveConfigValue()でキーごとに
global/project/piece/envの優先順位を宣言的に解決する方式に移行。
providerOptionsの優先順位をglobal < piece < project < envに修正し、
sourceトラッキングでOptionsBuilderのマージ方向を制御する。
2026-02-20 11:12:46 +09:00

61 lines
1.2 KiB
TypeScript

/**
* TAKT - TAKT Agent Koordination Topology
*
* This module exports the public API for programmatic usage.
*/
// Models
export type {
Status,
PieceRule,
PieceMovement,
PieceConfig,
PieceState,
Language,
PartDefinition,
PartResult,
} from './core/models/types.js';
// Configuration
export {
loadPiece,
loadPieceByIdentifier,
listPieces,
listPieceEntries,
loadAllPieces,
loadAllPiecesWithSources,
getPieceDescription,
getBuiltinPiece,
isPiecePath,
} from './infra/config/loaders/index.js';
export type { PieceSource, PieceWithSource, PieceDirEntry } from './infra/config/loaders/index.js';
export {
saveProjectConfig,
updateProjectConfig,
setCurrentPiece,
isVerboseMode,
type ProjectLocalConfig,
} from './infra/config/project/index.js';
// Piece engine
export {
PieceEngine,
isOutputContractItem,
executeAgent,
generateReport,
executePart,
judgeStatus,
evaluateCondition,
decomposeTask,
} from './core/piece/index.js';
export type {
PieceEvents,
UserInputRequest,
IterationLimitRequest,
SessionUpdateCallback,
IterationLimitCallback,
PieceEngineOptions,
ProviderType,
JudgeStatusResult,
} from './core/piece/index.js';