Cli

Interfaces

Interfaces

ContextCommandOptions

Properties:

PropertyTypeRequiredDescription
orgIdstring | undefinedNoOrganization ID to set
workspaceIdstring | undefinedNoWorkspace ID to set
interactiveboolean | undefinedNoInteractive mode

OrgListOptions

Properties:

PropertyTypeRequiredDescription
verboseboolean | undefinedNoShow all details
format"table" | "json" | undefinedNoOutput format

WorkspaceListOptions

Properties:

PropertyTypeRequiredDescription
orgIdstring | undefinedNoFilter by org ID
verboseboolean | undefinedNoShow all details
format"table" | "json" | undefinedNoOutput format

WorkspaceCreateOptions

Properties:

PropertyTypeRequiredDescription
namestringYesWorkspace name
titlestring | undefinedNoWorkspace title
descriptionstring | undefinedNoWorkspace description
orgIdstring | undefinedNoOrganization ID
userIdstring | undefinedNoUser ID
interactiveboolean | undefinedNoInteractive mode

OrgCreateOptions

Properties:

PropertyTypeRequiredDescription
namestringYesOrganization name
titlestring | undefinedNoOrganization title
descriptionstring | undefinedNoOrganization description
userIdstring | undefinedNoUser ID
interactiveboolean | undefinedNoInteractive mode

CreateAppOptions

Properties:

PropertyTypeRequiredDescription
appNamestringYes
skipVerifyboolean | undefinedNo
verboseboolean | undefinedNo

DiscoverOptions

Properties:

PropertyTypeRequiredDescription
pathstring | undefinedNo
jsonboolean | undefinedNo
verboseboolean | undefinedNo
packagestring | undefinedNo
onlystring | undefinedNo
listboolean | undefinedNo

DoctorOptions

Properties:

PropertyTypeRequiredDescription
fixboolean | undefinedNo
jsonboolean | undefinedNo

ConfigCheckResult

Properties:

PropertyTypeRequiredDescription
existsbooleanYes
validbooleanYes
linkedToCodebasebooleanYes
codebaseIdstring | undefinedNo
workspaceIdstring | undefinedNo
issuesstring[]Yes

ServiceCheckResult

Properties:

PropertyTypeRequiredDescription
runningbooleanYes
healthybooleanYes
containerExistsboolean | undefinedNo
errorstring | undefinedNo

DoctorResult

Properties:

PropertyTypeRequiredDescription
dependenciesMap<string, DependencyCheckResult>Yes
configConfigCheckResultYes
servicesMap<string, ServiceCheckResult>Yes
repoRequirementsRepoRequirementsYes
allPassedbooleanYes

RepoRequirements

Properties:

PropertyTypeRequiredDescription
foundbooleanYes
requiredNodeVersionstring | undefinedNo
currentNodeVersionstring | undefinedNo
nodeVersionMatchboolean | undefinedNo
packageManagerstring | undefinedNo
isMonorepoboolean | undefinedNo
hasDockerComposeboolean | undefinedNo

Properties:

PropertyTypeRequiredDescription
verboseboolean | undefinedNoShow verbose output
yesboolean | undefinedNoNon-interactive mode - skip already linked

FolderInfo

Properties:

PropertyTypeRequiredDescription
pathstringYesAbsolute path to the folder
relativePathstringYesRelative path from current directory
hasPackageJsonbooleanYesWhether it has package.json
hasFlowstateJsonbooleanYesWhether it has flowstate.json
packageNamestring | undefinedYesPackage name from package.json if available (e.g.,
flowstateDisplayNamestring | undefinedYesDisplay name from flowstate.json if available
isLinkedbooleanYesWhether already linked (has .flowstate/config.json)
linkedProjectIdstring | undefinedYesExisting project ID if linked

LocalFlowStateConfig

Properties:

PropertyTypeRequiredDescription
projectIdstringYes
workspaceIdstringYes
orgIdstringYes
linkedAtstringYes
packageNamestring | undefinedNo

ScanTodosOptions

Properties:

PropertyTypeRequiredDescription
dryRunboolean | undefinedNo
summaryOnlyboolean | undefinedNo
filestring | undefinedNo
verboseboolean | undefinedNo

LoggingConfig

Properties:

PropertyTypeRequiredDescription
verbosebooleanYes
levelLogLevelYes
timestampboolean | undefinedNo
colorizeboolean | undefinedNo

SessionContextData

ObsSessionContext - Singleton for managing observability session context

This class maintains session context that can be automatically included in errors, logs, and traces sent to the observability platform. The context is also set as environment variables for SDK consumption.

Properties:

PropertyTypeRequiredDescription
projectIdstring | undefinedNoCurrent project ID
taskIdstring | undefinedNoCurrent task ID
specNamestring | undefinedNoCurrent spec name
userIdstring | undefinedNoCurrent user ID
gitBranchstring | undefinedNoCurrent git branch
workingDirectorystring | undefinedNoCurrent working directory

CLISettings

Configuration types for FlowState CLI

Note: Server profiles and authentication are managed by ConfigManager from

Properties:

PropertyTypeRequiredDescription
defaultEditorstringYesDefault editor for editing files
colorOutputbooleanYesWhether to use color output in terminal
verboseLoggingbooleanYesEnable verbose logging
outputFormat"table" | "json" | "yaml" | undefinedNoDefault output format (json, table, etc.)

AgentSettings

Agent-specific settings

Properties:

PropertyTypeRequiredDescription
defaultPollIntervalnumberYesDefault polling interval in milliseconds
maxConcurrentTasksnumberYesMaximum concurrent tasks per agent
defaultLogLevel"debug" | "info" | "warn" | "error"YesDefault log level for agents
autoRestartboolean | undefinedNoAuto-restart agents on failure

AgentConfig

Agent runtime configuration

Properties:

PropertyTypeRequiredDescription
idstringYes
namestringYes
status"error" | "running" | "stopped"Yes
startedAtstring | undefinedNo
stoppedAtstring | undefinedNo
tasksCompletednumber | undefinedNo
tasksInProgressnumber | undefinedNo
lastErrorstring | undefinedNo

ContextConfig

Current working context configuration

Properties:

PropertyTypeRequiredDescription
currentOrgIdstring | undefinedNoCurrently selected organization ID
currentWorkspaceIdstring | undefinedNoCurrently selected workspace ID
lastUpdatedstring | undefinedNoLast updated timestamp

ObservabilityConfig

Observability platform configuration

Properties:

PropertyTypeRequiredDescription
enabledbooleanYesWhether observability is enabled
serverUrlstringYesObservability server URL
apiKeystringYesAPI key for authentication
defaultProjectstring | undefinedNoDefault project ID
autoLinkboolean | undefinedNoAuto-link errors and logs to tasks
sessionTrackingboolean | undefinedNoTrack session context automatically
autoCreateTasksboolean | undefinedNoAutomatically create tasks from TODO comments

FlowStateConfig

Complete FlowState CLI configuration Stored in ~/.flowstate/cli-config.json

Note: Server profiles are stored separately in ~/.flowstate/config.json and managed by ConfigManager from

Properties:

PropertyTypeRequiredDescription
versionstringYesConfiguration format version
cliCLISettingsYesCLI settings
agentAgentSettingsYesAgent settings
contextContextConfig | undefinedNoCurrent working context (org/workspace)
observabilityObservabilityConfig | undefinedNoObservability platform configuration
lastUpdatedstring | undefinedNoLast updated timestamp

CollectionRegistryConfig

Collection registry configuration

Properties:

PropertyTypeRequiredDescription
defaultOrgIdstring | undefinedNo
defaultUserIdstring | undefinedNo
autoFillFieldsboolean | undefinedNo

ServerConfig

Properties:

PropertyTypeRequiredDescription
idstringYes
namestringYes
environmentsRecord<string, any>Yes
activeEnvironmentstringYes
replicationEnabledboolean | undefinedNo
metadataRecord<string, any> | undefinedNo

InitOptions

CLI options for flowstate init command

Properties:

PropertyTypeRequiredDescription
namestring | undefinedNoProject name (defaults to current directory name)
typeProjectType | undefinedNoProject type
descriptionstring | undefinedNoProject description
gitboolean | undefinedNoForce git initialization
noGitboolean | undefinedNoSkip git initialization
repostring | undefinedNoLink to existing GitHub repo URL
createRepoboolean | undefinedNoCreate new GitHub repository
vaultstring | undefinedNoUse existing 1Password vault name
createVaultboolean | undefinedNoCreate new 1Password vault
rxdbUrlstring | undefinedNoRxDB server URL
rxdbDomainstring | undefinedNoRxDB domain ID
rxdbTokenstring | undefinedNoRxDB auth token
rxdbEnv"production" | "staging" | "development" | "local" | undefinedNoRxDB environment
skipRxdbboolean | undefinedNoSkip RxDB configuration
orgIdstring | undefinedNoFlowState org ID
workspacestring | undefinedNoFlowState workspace ID
userIdstring | undefinedNoFlowState user ID
obsUrlstring | undefinedNoObservability server URL
obsSetupboolean | undefinedNoSet up observability (non-interactive)
skipObsboolean | undefinedNoSkip observability setup
skipChecksboolean | undefinedNoSkip dependency checks
yesboolean | undefinedNoAccept all defaults (non-interactive)
dryRunboolean | undefinedNoPreview what would be created without making changes
format"json" | "text" | undefinedNoOutput format for dry-run (text or json)
executePlanboolean | undefinedNoExecute a previously saved init plan

ProjectConfig

Project configuration stored in .flowstate/config.json

Properties:

PropertyTypeRequiredDescription
versionstringYes
projectNamestringYes
projectTypeProjectTypeYes
orgIdstring | undefinedNo
workspaceIdstring | undefinedNo
userIdstring | undefinedNo
codebaseIdstring | undefinedNo
projectIdstring | undefinedNo
vault{ name: string; id?: string; type: "1password"; } | undefinedNo
repository{ url: string; provider: "github" | "gitlab" | "bitbucket" | "other"; } | undefinedNo
dependencies{ node?: string; packageManager?: "npm" | "yarn" | "pnpm" | "bun"; docker?: boolean; } | undefinedNo
rxdbServer{ serverUrl: string; domainId: string; authToken?: string; environment: "local" | "development" | "staging" | "production"; replicationEnabled?: boolean; collections?: string[]; } | undefinedNo
observability{ enabled: boolean; serverUrl: string; apiKey: string; defaultProject?: string; autoLink?: boolean; sessionTracking?: boolean; autoCreateTasks?: boolean; } | undefinedNo
secretsRecord<string, string> | undefinedNo
createdAtstringYes
lastUpdatedstringYes

DependencyCheckResult

Dependency check result

Properties:

PropertyTypeRequiredDescription
installedbooleanYes
versionstring | undefinedNo
installInstructionsstring | undefinedNo

VaultConfig

Vault configuration result

Properties:

PropertyTypeRequiredDescription
namestringYes
idstring | undefinedNo
type"1password"Yes

CodebaseCreationResult

Codebase creation result

Properties:

PropertyTypeRequiredDescription
successbooleanYes
orgIdstring | undefinedNo
workspaceIdstring | undefinedNo
userIdstring | undefinedNo
codebaseIdstring | undefinedNo
projectIdstring | undefinedNo
messagestring | undefinedNo

PlannedFile

Planned file operation for dry-run

Properties:

PropertyTypeRequiredDescription
pathstringYesRelative path from project root
operation"create" | "update" | "skip"YesType of operation
contentstring | undefinedNoFull content that would be written to the file
skipReasonstring | undefinedNoReason for skip if applicable

PlannedEntity

Planned database entity for dry-run

Properties:

PropertyTypeRequiredDescription
collectionstringYesCollection name
idstringYesEntity ID (pre-generated)
dataRecord<string, unknown>YesEntity data
operation"create" | "use-existing"YesType of operation

PlannedIntegration

Planned external integration for dry-run

Properties:

PropertyTypeRequiredDescription
type"1password" | "github" | "git" | "rxdb" | "observability"YesIntegration type
operation"create" | "skip" | "init" | "connect"YesOperation to perform
detailsstringYesDetails about what will be done
optionalbooleanYesWhether this is optional

DryRunPlan

Complete dry-run plan

Properties:

PropertyTypeRequiredDescription
versionstringYesPlan version for compatibility
generatedAtstringYesWhen the plan was generated
projectConfigPartial<ProjectConfig>YesProject configuration that would be created
filesPlannedFile[]YesFiles that would be created/modified
entitiesPlannedEntity[]YesDatabase entities that would be created
integrationsPlannedIntegration[]YesExternal integrations that would be set up
optionsInitOptionsYesOptions used to generate this plan

QueryFilters

Query filter options from CLI

Properties:

PropertyTypeRequiredDescription
selectoranyNo
sort{ [key: string]: "asc" | "desc"; }[] | undefinedNo
limitnumber | undefinedNo
skipnumber | undefinedNo

CollectionOperationOptions

CLI options for collection operations

Properties:

PropertyTypeRequiredDescription
datastring | undefinedNo
filestring | undefinedNo
interactiveboolean | undefinedNo
filterstring | undefinedNo
sortstring | undefinedNo
limitstring | undefinedNo
skipstring | undefinedNo
setstring[] | undefinedNo
format"table" | "json" | "yaml" | "csv" | undefinedNo
outputstring | undefinedNo
forceboolean | undefinedNo
upsertboolean | undefinedNo

OperationResult

Result from collection operations

Properties:

PropertyTypeRequiredDescription
successbooleanYes
dataT | undefinedNo
messagestring | undefinedNo
errorstring | undefinedNo

ProjectTypeTemplate

Project type template interface

Properties:

PropertyTypeRequiredDescription
type"nodejs" | "mcp" | "fullstack" | "generic"Yes
displayNamestringYes
descriptionstringYes
dependencies{ node?: string; packageManager?: "npm" | "yarn" | "pnpm" | "bun"; docker?: boolean; git?: boolean; onePassword?: boolean; githubCli?: boolean; }Yes
scriptsRecord<string, string> | undefinedNo
files{ claudeMd: string; gitignore?: string[]; }Yes
claudeCommandsstring[]Yes
mcpServersstring[] | undefinedNo

RxDBClient

Org

Properties:

PropertyTypeRequiredDescription
idstringYes
namestringYes
descriptionstring | undefinedNo
createdAtstringYes
updatedAtstringYes

Workspace

Properties:

PropertyTypeRequiredDescription
idstringYes
orgIdstringYes
userIdstringYes
namestringYes
titlestringYes
descriptionstringYes
status"active" | "archived" | "paused"Yes
tagsstring[] | undefinedNo
createdAtstringYes
updatedAtstringYes

User

Properties:

PropertyTypeRequiredDescription
idstringYes
orgIdstringYes
namestringYes
emailstring | undefinedNo
onboardedbooleanYes
createdAtstringYes
updatedAtstringYes

Project

Properties:

PropertyTypeRequiredDescription
idstringYes
orgIdstringYes
userIdstringYes
workspaceIdstring | undefinedNo
codebaseIdstring | undefinedNo
titlestringYes
descriptionstring | undefinedNo
completedbooleanYes
createdAtstringYes
updatedAtstringYes

EntitySelectionResult

Properties:

PropertyTypeRequiredDescription
orgIdstringYes
workspaceIdstringYes
userIdstringYes
projectIdstring | undefinedNo

PlannedOperation

Planned entity operation for dry-run mode

Properties:

PropertyTypeRequiredDescription
collectionstringYes
idstringYes
dataRecord<string, unknown>Yes
operation"create" | "use-existing"Yes

JsonValidationResult

JSON Validation Utility Provides clear, actionable error messages for JSON parsing and validation issues.

Properties:

PropertyTypeRequiredDescription
successbooleanYes
dataanyNo
errorJsonValidationError | undefinedNo

JsonValidationError

Properties:

PropertyTypeRequiredDescription
messagestringYes
positionnumber | undefinedNo
linenumber | undefinedNo
columnnumber | undefinedNo
snippetstring | undefinedNo
suggestionsstring[]Yes

ObsConfig

Properties:

PropertyTypeRequiredDescription
serverUrlstringYes
apiKeystringYes
defaultProjectIdstring | undefinedNo

AgentFile

Agent file metadata parsed from .flowstate/agents/*.json

Properties:

PropertyTypeRequiredDescription
namestringYesAgent name (from JSON)
filePathstringYesFile path relative to project root
contentHashstringYesSHA-256 hash of file content for change detection
configAgentConfigYesFull agent configuration object
stats{ size: number; created: string; modified: string; }YesFile statistics

AgentConfig

Agent configuration matching the FlowState agent template schema

Properties:

PropertyTypeRequiredDescription
$schemastring | undefinedNo
namestringYes
descriptionstringYes
instructionsstringYes
model{ claude?: string | undefined; opencode?: string | undefined; openai?: string | undefined; } | undefinedNo
toolsstring[] | undefinedNo
disallowedToolsstring[] | undefinedNo
permissions{ mode?: string | undefined; edit?: string | undefined; bash?: string | undefined; } | undefinedNo
settings{ temperature?: number | undefined; maxSteps?: number | undefined; resetToolChoice?: boolean | undefined; } | undefinedNo
skillsstring[] | undefinedNo
hooksRecord<string, unknown> | undefinedNo
mcpServers{ name: string; url: string; }[] | undefinedNo
outputTypeRecord<string, unknown> | undefinedNo
metadataAgentMetadata | undefinedNo

AgentMetadata

Agent metadata from FlowState schema

Properties:

PropertyTypeRequiredDescription
versionstring | undefinedNo
authorstring | undefinedNo
createdAtstring | undefinedNo
updatedAtstring | undefinedNo
tagsstring[] | undefinedNo
orgRolestring | undefinedNo
reportsTostring | undefinedNo
directReportsstring[] | undefinedNo
levelstring | undefinedNo
departmentstring | undefinedNo
characterNamestring | undefinedNo
characterEmailstring | undefinedNo
backstorystring | undefinedNo
biostring | undefinedNo
tonestring | undefinedNo
teamMemberIdstring | undefinedNo
productIdstring | undefinedNo

AgentSyncMetadata

Sync metadata stored in TeamMember extended.agentSync

Properties:

PropertyTypeRequiredDescription
contentHashstringYesSHA-256 hash of last synced content
lastSyncedstringYesISO timestamp of last sync
filePathstringYesLocal file path that was synced
lastSyncDirection"local-to-remote" | "remote-to-local"YesDirection of last sync

AgentSyncResult

Sync result for a single agent

Properties:

PropertyTypeRequiredDescription
action"error" | "create" | "update" | "skip" | "conflict"Yes
agentNamestringYes
teamMemberIdstring | undefinedNo
direction"local-to-remote" | "remote-to-local" | undefinedNo
errorstring | undefinedNo

AgentSyncStats

Summary statistics for agent sync

Properties:

PropertyTypeRequiredDescription
totalnumberYes
creatednumberYes
updatednumberYes
skippednumberYes
errorsnumberYes
conflictsnumberYes

AgentScannerConfig

Configuration for agent scanner

Properties:

PropertyTypeRequiredDescription
agentsDirstringYesDirectory containing agent JSON files
patternsstring[]YesFile patterns to include
ignoreFilesstring[]YesFiles to ignore

AgentSyncSummaryJson

Summary JSON output for agent sync

Properties:

PropertyTypeRequiredDescription
generatedAtstringYes
mode"dry-run" | "sync"Yes
direction"bidirectional" | "local-to-remote" | "remote-to-local"Yes
statisticsAgentSyncStatsYes
agents{ name: string; filePath?: string | undefined; teamMemberId?: string | undefined; action: string; direction?: string | undefined; contentHash?: string | undefined; error?: string | undefined; }[]Yes

DocumentStoreClientConfig

Document Store API Types

Type definitions for interacting with the document-store service API. The document-store handles S3 storage and RAG processing for documents.

Properties:

PropertyTypeRequiredDescription
baseUrlstringYesBase URL of the document-store service (e.g., http://localhost:3003)
authTokenstringYesJWT auth token for API authentication
timeoutnumber | undefinedNoOptional timeout in milliseconds (default: 30000)
workspaceIdstring | undefinedNoWorkspace ID for document isolation (required by document-store)
domainIdstring | undefinedNoDomain ID for multi-tenancy
userIdstring | undefinedNoUser ID for audit trail
urlReplacementsRecord<string, string> | undefinedNoMap of internal Docker URLs to external URLs for S3 presigned URLs.
Used when document-store returns internal Docker network URLs.
Example: { 'http://minio:9000': 'http://localhost:9000' }

UploadRequest

Request payload for document upload

Properties:

PropertyTypeRequiredDescription
filenamestringYesOriginal filename of the document
mimeTypestringYesMIME type of the document (e.g., text/markdown)
codebaseIdstring | undefinedNoOptional codebase ID to associate the document with
metadata{ [key: string]: unknown; type?: "code" | "markdown" | "plan" | "config" | "other"; language?: string; tags?: string[]; filePath?: string; contentHash?: string; } | undefinedNoOptional metadata for the document

UploadResponse

Response from document upload request

Properties:

PropertyTypeRequiredDescription
documentIdstringYesDocument-store assigned document ID
uploadUrlstringYesPresigned S3 URL for uploading content
s3KeystringYesS3 object key where content will be stored
s3BucketstringYesS3 bucket name
codebaseIdstring | undefinedNoCodebase ID if provided
expiresInnumberYesTime in seconds until the presigned URL expires
ragJobIdstring | undefinedNoRAG job ID if RAG processing was triggered

DownloadResponse

Response from document download request

Properties:

PropertyTypeRequiredDescription
downloadUrlstringYesPresigned S3 URL for downloading content
filenamestringYesOriginal filename
mimeTypestringYesMIME type of the document
sizeBytesnumber | undefinedNoSize in bytes (if available)
expiresInnumberYesTime in seconds until the presigned URL expires

DocumentStoreError

Error response from document-store API

Properties:

PropertyTypeRequiredDescription
errorstringYesError message
detailsunknownNoOptional error details
messagestring | undefinedNoOptional error message (alternative field)

FileMetadata

File metadata collected from filesystem and git

Properties:

PropertyTypeRequiredDescription
pathstringYes
namestringYes
type"file" | "directory"Yes
sizenumberYes
createdstringYes
modifiedstringYes
permissionsstringYes
gitInfo{ lastCommit?: string; lastAuthor?: string; lastModified?: string; isTracked: boolean; } | undefinedNo
contentHashstring | undefinedNo

FiletreeNode

Tree node representing file or directory

Properties:

PropertyTypeRequiredDescription
namestringYes
pathstringYes
type"file" | "directory"Yes
metadataFileMetadataYes
childrenFiletreeNode[] | undefinedNo

Filetree

Complete filetree structure with metadata

Properties:

PropertyTypeRequiredDescription
rootstringYes
generatedAtstringYes
totalFilesnumberYes
totalDirectoriesnumberYes
totalSizenumberYes
treeFiletreeNodeYes

FiletreeGeneratorConfig

Configuration for filetree generation

Properties:

PropertyTypeRequiredDescription
ignorePathsstring[]Yes
includeGitInfobooleanYes
includeContentHashbooleanYes
maxDepthnumber | undefinedNo

FiletreeSyncStats

Statistics for filetree sync

Properties:

PropertyTypeRequiredDescription
successbooleanYes
filesProcessednumberYes
directoriesProcessednumberYes
totalSizenumberYes
errorstring | undefinedNo

FiletreeSummaryJson

Summary output formats

Properties:

PropertyTypeRequiredDescription
generatedAtstringYes
rootPathstringYes
statistics{ totalFiles: number; totalDirectories: number; totalSize: number; filesProcessed: number; }Yes
documentIdstring | undefinedNo
treeFiletreeNodeYes

BaseMapping

Properties:

PropertyTypeRequiredDescription
createdAtstringYes
statusMappingStatusYes

TodoMapping

Properties:

PropertyTypeRequiredDescription
taskIdstringYes
textstringYes
contentHashstringYes

MarkdownMapping

Properties:

PropertyTypeRequiredDescription
documentIdstringYes
documentTypestringYes
contentHashstringYes

FileMapping

Properties:

PropertyTypeRequiredDescription
specIdsstring[]Yes
tagsstring[]Yes

CommitMapping

Properties:

PropertyTypeRequiredDescription
taskIdsstring[]Yes
messagestringYes
authorstringYes
timestampstringYes

TodoMappingFile

Properties:

PropertyTypeRequiredDescription
versionstringYes
lastUpdatedstringYes
mappingsRecord<string, TodoMapping>Yes
index{ byTaskId: Record<string, string[]>; byFile: Record<string, string[]>; }Yes

MarkdownMappingFile

Properties:

PropertyTypeRequiredDescription
versionstringYes
lastUpdatedstringYes
mappingsRecord<string, MarkdownMapping>Yes
index{ byDocumentId: Record<string, string[]>; byType: Record<string, string[]>; }Yes

FileMappingFile

Properties:

PropertyTypeRequiredDescription
versionstringYes
lastUpdatedstringYes
mappingsRecord<string, FileMapping>Yes
index{ bySpecId: Record<string, string[]>; byTag: Record<string, string[]>; }Yes

CommitMappingFile

Properties:

PropertyTypeRequiredDescription
versionstringYes
lastUpdatedstringYes
mappingsRecord<string, CommitMapping>Yes
index{ byTaskId: Record<string, string[]>; }Yes

MappingManagerConfig

Properties:

PropertyTypeRequiredDescription
projectRootstringYes
mappingsDirstring | undefinedNo

StorageBackedSyncManagerConfig

Properties:

PropertyTypeRequiredDescription
dbRxDatabaseYesRxDB database instance
documentStoreClientDocumentStoreClientYesDocument-store API client
codebaseIdstringYesCodebase ID to associate documents with

MarkdownFile

Markdown file metadata parsed from file system and frontmatter

Properties:

PropertyTypeRequiredDescription
filePathstringYesRelative path from project root
contentstringYesMarkdown content
contentHashstringYesSHA-256 hash of content
documentType"markdown" | "product" | "tech" | "structure"YesDocument type detected from filename or frontmatter
frontmatterRecord<string, any> | undefinedNoFrontmatter metadata (if present)
stats{ size: number; created: string; modified: string; }YesFile statistics

MarkdownSyncResult

Sync result for a markdown file

Properties:

PropertyTypeRequiredDescription
action"error" | "create" | "update" | "skip"Yes
documentIdstring | undefinedNo
errorstring | undefinedNo

MarkdownSyncStats

Summary statistics for markdown sync

Properties:

PropertyTypeRequiredDescription
totalnumberYes
creatednumberYes
updatednumberYes
skippednumberYes
errorsnumberYes

MarkdownScannerConfig

Configuration for markdown scanner

Properties:

PropertyTypeRequiredDescription
patternsstring[]Yes
ignorePathsstring[]Yes
syncMetadatabooleanYes
documentTypeMappingRecord<string, "product" | "tech" | "structure"> | undefinedNo
useMappingSystemboolean | undefinedNo

MarkdownSummaryJson

Summary JSON output

Properties:

PropertyTypeRequiredDescription
generatedAtstringYes
mode"dry-run" | "sync"Yes
statisticsMarkdownSyncStatsYes
files{ filePath: string; documentType: string; documentId?: string; action: string; contentHash: string; }[]Yes

StorageBackedSyncResult

Result from storage-backed sync operation

Properties:

PropertyTypeRequiredDescription
action"error" | "create" | "update" | "skip"Yes
documentIdstring | undefinedNo
s3Keystring | undefinedNoS3 key where content was uploaded
s3Bucketstring | undefinedNoS3 bucket name
documentStoreIdstring | undefinedNoDocument-store internal document ID
ragJobIdstring | undefinedNoRAG job ID if processing was triggered
errorstring | undefinedNoError message if action is 'error'

StorageBackedSyncStats

Statistics for storage-backed sync

Properties:

PropertyTypeRequiredDescription
totalnumberYes
creatednumberYes
updatednumberYes
skippednumberYes
errorsnumberYes
bytesUploadednumberYesTotal bytes uploaded

ScanOptions

Properties:

PropertyTypeRequiredDescription
dryRunboolean | undefinedNo
summaryOnlyboolean | undefinedNo
filePathstring | undefinedNo

ScanResult

Properties:

PropertyTypeRequiredDescription
statsTodoSyncStatsYes
summary{ markdown: string; json: TodoSummaryJson; }Yes

SyncResult

Properties:

PropertyTypeRequiredDescription
action"conflict" | "create_task" | "update_task" | "update_comment" | "no_change"Yes
taskIdstring | undefinedNo
metadataTodoMetadata | undefinedNo

TodoMetadata

Properties:

PropertyTypeRequiredDescription
taskIdstringYes
statusTaskStatusYes
lastSyncstring | undefinedNo

TodoComment

Properties:

PropertyTypeRequiredDescription
filePathstringYes
lineNumbernumberYes
descriptionstringYes
metadataTodoMetadata | undefinedNo
fileModifiedAtstringYes
rawTextstringYes

TodoScanResult

Properties:

PropertyTypeRequiredDescription
todosTodoComment[]Yes
errors{ file: string; error: string; }[]Yes

TodoSyncStats

Properties:

PropertyTypeRequiredDescription
totalnumberYes
trackednumberYes
untrackednumberYes
syncednumberYes
conflictsnumberYes
creatednumberYes
updatednumberYes

TodoScannerConfig

Properties:

PropertyTypeRequiredDescription
ignorePathsstring[] | undefinedNo
groupByFileboolean | undefinedNo
useMappingSystemboolean | undefinedNo

FlowStateConfig

Properties:

PropertyTypeRequiredDescription
projectIdstring | undefinedNo
codebaseIdstring | undefinedNo
workspaceIdstring | undefinedNo
projectNamestring | undefinedNo
projectTypestring | undefinedNo
todoScannerTodoScannerConfig | undefinedNo

TaskModel

Properties:

PropertyTypeRequiredDescription
idstringYes
titlestringYes
descriptionstringYes
statusTaskStatusYes
projectIdstringYes
metadataRecord<string, unknown> | undefinedNo
createdAtstringYes
updatedAtstringYes

TaskUpdateInput

Properties:

PropertyTypeRequiredDescription
titlestring | undefinedNo
descriptionstring | undefinedNo
statusTaskStatus | undefinedNo
metadataRecord<string, unknown> | undefinedNo

TodoSummaryJson

Properties:

PropertyTypeRequiredDescription
generatedAtstringYes
statisticsTodoSyncStatsYes
todos{ filePath: string; lineNumber: number; taskId?: string; status?: TaskStatus; description: string; lastSync?: string; }[]Yes
Previous
API Reference
Next
Types