4b44665c7e
Phase 1 of #23: - createThreadCas() core API: put/get/delete/list with XXH64 hashing - hashString() utility for string → 13-char Crockford Base32 - CLI: uncaged-workflow cas get/put/list/rm subcommands - thread rm now cleans up .cas/ directory - 10 new tests for CAS operations Refs #23
90 lines
2.5 KiB
TypeScript
90 lines
2.5 KiB
TypeScript
export {
|
|
CROCKFORD_BASE32_ALPHABET,
|
|
decodeCrockfordBase32Bits,
|
|
decodeCrockfordToUint64,
|
|
encodeCrockfordBase32Bits,
|
|
encodeUint64AsCrockford,
|
|
} from "./base32.js";
|
|
export { buildDescriptor } from "./build-descriptor.js";
|
|
export { validateWorkflowBundle, type WorkflowBundleValidationInput } from "./bundle-validator.js";
|
|
export { type CasStore, createThreadCas } from "./cas.js";
|
|
export { createWorkflow } from "./create-workflow.js";
|
|
export {
|
|
type ExecuteThreadIo,
|
|
type ExecuteThreadOptions,
|
|
executeThread,
|
|
type PrefilledDiskStep,
|
|
} from "./engine.js";
|
|
export { type ExtractedBundleExports, extractBundleExports } from "./extract-bundle-exports.js";
|
|
export { createExtract, type ExtractFn } from "./extract-fn.js";
|
|
export {
|
|
buildForkPlan,
|
|
type ForkHistoricalStep,
|
|
type ForkPlan,
|
|
type ParsedThreadStartRecord,
|
|
parseThreadDataJsonl,
|
|
selectForkHistoricalSteps,
|
|
} from "./fork-thread.js";
|
|
export { stringifyWorkflowDescriptor } from "./generate-descriptor.js";
|
|
export { hashString, hashWorkflowBundleBytes } from "./hash.js";
|
|
export {
|
|
type LlmError,
|
|
llmErrorToCause,
|
|
llmExtract,
|
|
llmExtractWithRetry,
|
|
} from "./llm-extract.js";
|
|
export {
|
|
type CreateLoggerOptions,
|
|
createLogger,
|
|
type LogFn,
|
|
type LoggerSink,
|
|
} from "./logger.js";
|
|
export {
|
|
getRegisteredWorkflow,
|
|
listRegisteredWorkflowNames,
|
|
parseWorkflowRegistryYaml,
|
|
readWorkflowRegistry,
|
|
registerWorkflowVersion,
|
|
rollbackWorkflowToHistoryHash,
|
|
stringifyWorkflowRegistryYaml,
|
|
unregisterWorkflow,
|
|
type WorkflowHistoryEntry,
|
|
type WorkflowRegistryEntry,
|
|
type WorkflowRegistryFile,
|
|
workflowRegistryPath,
|
|
writeWorkflowRegistry,
|
|
} from "./registry.js";
|
|
export { err, ok, type Result } from "./result.js";
|
|
export { getDefaultWorkflowStorageRoot } from "./storage-root.js";
|
|
export { createThreadPauseGate, type ThreadPauseGate } from "./thread-pause-gate.js";
|
|
export {
|
|
type AgentBinding,
|
|
type AgentContext,
|
|
type AgentFn,
|
|
END,
|
|
type ExtractContext,
|
|
type LlmProvider,
|
|
type Moderator,
|
|
type ModeratorContext,
|
|
type RoleDefinition,
|
|
type RoleMeta,
|
|
type RoleOutput,
|
|
type RoleStep,
|
|
START,
|
|
type StartStep,
|
|
type ThreadContext,
|
|
type ThreadInput,
|
|
type WorkflowDefinition,
|
|
type WorkflowFn,
|
|
type WorkflowFnOptions,
|
|
type WorkflowResult,
|
|
} from "./types.js";
|
|
export { generateUlid } from "./ulid.js";
|
|
export { getWorkerHostScriptPath } from "./worker-entry-path.js";
|
|
export {
|
|
validateWorkflowDescriptor,
|
|
type WorkflowDescriptor,
|
|
type WorkflowRoleDescriptor,
|
|
type WorkflowRoleSchema,
|
|
} from "./workflow-descriptor.js";
|