@basou/core 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +100 -2
- package/dist/index.js +208 -55
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/event.schema.json +64 -0
- package/schemas/session-import.schema.json +64 -0
package/dist/index.d.ts
CHANGED
|
@@ -410,6 +410,17 @@ declare const SessionImportPayloadSchema: z.ZodObject<{
|
|
|
410
410
|
rejected_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
411
411
|
linked_events: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>>>;
|
|
412
412
|
linked_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
413
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
414
|
+
schema_version: z.ZodLiteral<"0.1.0">;
|
|
415
|
+
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
416
|
+
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
417
|
+
occurred_at: z.ZodString;
|
|
418
|
+
source: z.ZodString;
|
|
419
|
+
prev_hash: z.ZodOptional<z.ZodString>;
|
|
420
|
+
type: z.ZodLiteral<"decision_voided">;
|
|
421
|
+
decision_id: z.ZodString & z.ZodType<`decision_${string}`, string, z.core.$ZodTypeInternals<`decision_${string}`, string>>;
|
|
422
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
423
|
+
superseded_by: z.ZodOptional<z.ZodString & z.ZodType<`decision_${string}`, string, z.core.$ZodTypeInternals<`decision_${string}`, string>>>;
|
|
413
424
|
}, z.core.$strip>, z.ZodObject<{
|
|
414
425
|
schema_version: z.ZodLiteral<"0.1.0">;
|
|
415
426
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
@@ -1203,6 +1214,17 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1203
1214
|
rejected_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1204
1215
|
linked_events: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>>>;
|
|
1205
1216
|
linked_files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1218
|
+
schema_version: z.ZodLiteral<"0.1.0">;
|
|
1219
|
+
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
1220
|
+
session_id: z.ZodString & z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1221
|
+
occurred_at: z.ZodString;
|
|
1222
|
+
source: z.ZodString;
|
|
1223
|
+
prev_hash: z.ZodOptional<z.ZodString>;
|
|
1224
|
+
type: z.ZodLiteral<"decision_voided">;
|
|
1225
|
+
decision_id: z.ZodString & z.ZodType<`decision_${string}`, string, z.core.$ZodTypeInternals<`decision_${string}`, string>>;
|
|
1226
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1227
|
+
superseded_by: z.ZodOptional<z.ZodString & z.ZodType<`decision_${string}`, string, z.core.$ZodTypeInternals<`decision_${string}`, string>>>;
|
|
1206
1228
|
}, z.core.$strip>, z.ZodObject<{
|
|
1207
1229
|
schema_version: z.ZodLiteral<"0.1.0">;
|
|
1208
1230
|
id: z.ZodString & z.ZodType<`evt_${string}`, string, z.core.$ZodTypeInternals<`evt_${string}`, string>>;
|
|
@@ -3161,6 +3183,71 @@ type SanitizeRelatedFilesResult = {
|
|
|
3161
3183
|
*/
|
|
3162
3184
|
declare function sanitizeRelatedFiles(paths: ReadonlyArray<string>, opts: SanitizePathOptions): SanitizeRelatedFilesResult;
|
|
3163
3185
|
|
|
3186
|
+
/**
|
|
3187
|
+
* Cross-project boundary classification: split a session's `related_files`
|
|
3188
|
+
* into those that resolve INSIDE the project's declared `source_roots` and
|
|
3189
|
+
* those that confidently resolve OUTSIDE all of them.
|
|
3190
|
+
*
|
|
3191
|
+
* Why this exists: the claude-code adapter records every file a transcript
|
|
3192
|
+
* edited, regardless of where the file lives. A session is attributed to a
|
|
3193
|
+
* project by its recorded cwd (the import-time cwd guard), but a session that
|
|
3194
|
+
* legitimately belongs to project A can still have edited files under an
|
|
3195
|
+
* unrelated repo B. Those B paths then surface in `basou orient`'s "recent
|
|
3196
|
+
* files" and can mislead a resuming agent into continuing the wrong project's
|
|
3197
|
+
* work. This helper is the read-only primitive both the import warning and the
|
|
3198
|
+
* orientation advisory use to flag that boundary crossing — it never mutates
|
|
3199
|
+
* the trail.
|
|
3200
|
+
*
|
|
3201
|
+
* Resolution is realpath-aware so a file recorded through a workspace-view
|
|
3202
|
+
* symlink (e.g. `~/projects/foo-workspace/foo -> ../foo`) is NOT mis-flagged as
|
|
3203
|
+
* out-of-root. The bias is deliberately toward NOT crying wolf: a path is only
|
|
3204
|
+
* reported out-of-root when it confidently resolves outside every source root.
|
|
3205
|
+
* Anything that cannot be resolved with confidence stays classified in-root.
|
|
3206
|
+
*/
|
|
3207
|
+
/**
|
|
3208
|
+
* The agent's / basou's own tooling directories. Edits here (plans, memory,
|
|
3209
|
+
* the trail store itself) are routine infrastructure, not another project's
|
|
3210
|
+
* work, so callers pass these as `extraInRoot` to keep them out of the
|
|
3211
|
+
* cross-project out-of-root flag.
|
|
3212
|
+
*/
|
|
3213
|
+
declare const AGENT_INFRA_DIRS: readonly string[];
|
|
3214
|
+
/** Result of {@link classifyFilesBySourceRoot}: a partition of the input. */
|
|
3215
|
+
type SourceRootScope = {
|
|
3216
|
+
/** Entries (verbatim, as passed in) that resolve under a source root, or that could not be resolved with confidence. */
|
|
3217
|
+
inRoot: string[];
|
|
3218
|
+
/** Entries (verbatim) that confidently resolve outside every source root. */
|
|
3219
|
+
outOfRoot: string[];
|
|
3220
|
+
};
|
|
3221
|
+
/**
|
|
3222
|
+
* Partition `files` into in-root / out-of-root against the project's
|
|
3223
|
+
* `source_roots`.
|
|
3224
|
+
*
|
|
3225
|
+
* - `sourceRoots` are the manifest's `import.source_roots` (relative to
|
|
3226
|
+
* `masterRoot`). An absent/empty list means "the whole repo root" — matching
|
|
3227
|
+
* the effective-source-roots rule elsewhere — so a solo project never reports
|
|
3228
|
+
* anything out-of-root.
|
|
3229
|
+
* - `masterRoot` is the absolute repository root the source roots resolve
|
|
3230
|
+
* against (the parent of `.basou`).
|
|
3231
|
+
*
|
|
3232
|
+
* Returns `{ inRoot, outOfRoot }` preserving the original entry strings. Empty
|
|
3233
|
+
* input or zero resolvable roots yields everything in-root (no false alarms).
|
|
3234
|
+
*/
|
|
3235
|
+
declare function classifyFilesBySourceRoot(input: {
|
|
3236
|
+
files: readonly string[];
|
|
3237
|
+
workingDirectory: string;
|
|
3238
|
+
sourceRoots: readonly string[] | null | undefined;
|
|
3239
|
+
masterRoot: string;
|
|
3240
|
+
/**
|
|
3241
|
+
* Extra directories (absolute or `~`-prefixed) that also count as in-root.
|
|
3242
|
+
* Callers pass the agent's own tooling dirs (`~/.claude`, `~/.codex`,
|
|
3243
|
+
* `~/.basou`) so routine plan / memory / store edits are NOT flagged as
|
|
3244
|
+
* another project's work — they are infrastructure, not a cross-project
|
|
3245
|
+
* crossing. Resolved against the home directory, not `masterRoot`.
|
|
3246
|
+
*/
|
|
3247
|
+
extraInRoot?: readonly string[];
|
|
3248
|
+
homedir?: string;
|
|
3249
|
+
}): Promise<SourceRootScope>;
|
|
3250
|
+
|
|
3164
3251
|
/** Input contract for {@link renderOrientation} and {@link summarizeOrientation}. */
|
|
3165
3252
|
type OrientationRendererInput = {
|
|
3166
3253
|
paths: BasouPaths;
|
|
@@ -3288,10 +3375,19 @@ type OrientationSummary = {
|
|
|
3288
3375
|
* step / handoff ("次の起点") surfaced in the forward section; null when none.
|
|
3289
3376
|
*/
|
|
3290
3377
|
latestNote: NoteRecord | null;
|
|
3291
|
-
/**
|
|
3378
|
+
/**
|
|
3379
|
+
* related_files of the latest session, deduped + sorted + capped at the
|
|
3380
|
+
* display limit. `outOfRoot` lists the entries (over the FULL deduped set,
|
|
3381
|
+
* not just `displayed`) that resolve OUTSIDE the project's `source_roots` — a
|
|
3382
|
+
* cross-project boundary crossing worth flagging so a resuming agent does not
|
|
3383
|
+
* mistake another repo's edits for this project's work. Empty unless the
|
|
3384
|
+
* latest session is local (a federated host's source_roots are not loaded
|
|
3385
|
+
* here) and confidently has out-of-root edits.
|
|
3386
|
+
*/
|
|
3292
3387
|
relatedFiles: {
|
|
3293
3388
|
displayed: string[];
|
|
3294
3389
|
overflow: number;
|
|
3390
|
+
outOfRoot: string[];
|
|
3295
3391
|
};
|
|
3296
3392
|
/** Tasks whose status is `planned` or `in_progress`. */
|
|
3297
3393
|
inFlightTasks: InFlightTask[];
|
|
@@ -4597,6 +4693,8 @@ type ReportDecisionItem = {
|
|
|
4597
4693
|
id: string;
|
|
4598
4694
|
title: string;
|
|
4599
4695
|
occurredAt: string;
|
|
4696
|
+
/** True when a later `decision_voided` event retracted this decision. */
|
|
4697
|
+
voided?: boolean;
|
|
4600
4698
|
};
|
|
4601
4699
|
type ReportTaskItem = {
|
|
4602
4700
|
id: string;
|
|
@@ -5380,4 +5478,4 @@ declare function overwriteYamlFile(filePath: string, value: unknown): Promise<vo
|
|
|
5380
5478
|
*/
|
|
5381
5479
|
declare const BASOU_CORE_VERSION = "0.1.0";
|
|
5382
5480
|
|
|
5383
|
-
export { ACTIVE_GAP_CAP_MS, type ActiveTimeBasis, type AdapterOutputEvent, type AdoptCandidate, type AdoptCandidateKind, type AppendBasouGitignoreOptions, type AppendBasouGitignoreResult, type AppendEventToExistingInput, type AppendEventToExistingResult, type Approval, type ApprovalApprovedEvent, type ApprovalExpiredEvent, ApprovalIdSchema, type ApprovalLocation, type ApprovalRejectedEvent, type ApprovalRequestedEvent, ApprovalSchema, type ApprovalStatus, ApprovalStatusSchema, type ArchivePlan, type ArchiveTaskInput, type ArchiveTaskResult, type AttachTaskInput, type AttachUpdateTaskStatusInput, type AttachableStatus, BASOU_CORE_VERSION, type BasouPaths, type BulkChainResult, CLAUDE_IMPORT_SOURCE, CODEX_IMPORT_SOURCE, type CaptureMode, type ChainBreakReason, type ChainTailState, type ChainVerdict, type ChainVerdictStatus, type ChainedEvents, ChildProcessRunner, type CitedReview, type ClaudeTranscriptRecord, type ClaudeTranscriptToPayloadOptions, type CodexRolloutRecord, type CodexRolloutToPayloadOptions, type CommandExecutedEvent, type CommandLookup, type CreateAdHocSessionInput, type CreateAdHocSessionResult, type CreateAdHocTaskInput, type CreateManifestInput, type CreateTaskInput, type CreateTaskResult, type DayWorkStats, DecisionIdSchema, type DecisionRecordedEvent, type DecisionsRendererInput, type DecisionsRendererResult, type DeleteTaskInput, type DeleteTaskResult, type DiffResult, type EditTaskInput, type EditTaskResult, type Event, EventIdSchema, EventSchema, EventSourceSchema, type ExistingViewLink, FailedToFinalizeError, type FederatedRoot, type FileChange, type FileChangeStatus, type FileChangedEvent, GENERATED_END, GENERATED_START, type GitSnapshot, type GitSnapshotEvent, type GitignorePlanSummary, type HandoffRendererInput, type HandoffRendererResult, ID_PREFIXES, type IdPrefix, type ImportSessionOptions, type ImportSessionResult, type InstructionFileFact, type InstructionSymlinkFact, type InstructionSymlinkState, IsoTimestampSchema, JSON_SCHEMA_VERSION, type JsonSchemaArtifact, type LoadFederatedOptions, type LoadSessionEntriesOptions, type LoadTaskEntriesOptions, type LoadedApproval, type LockHandle, type LockScope, type Manifest, ManifestSchema, type MarkerSection, type Markers, type MeasureAvailability, type NoteAddedEvent, type OrientationRendererInput, type OrientationRendererResult, type OrientationSummary, PROTOCOL_END, PROTOCOL_START, type PrefixedId, type PresetAction, type PresetCollision, type PresetMarkerConflict, type PresetMarkerKind, type PresetPlanSummary, type PresetRepo, type ProcessRunner, type PublishKind, type PublishTarget, type RechainOptions, type RechainResult, type ReconcileAllResult, type ReconcileAllTasksInput, type ReconcileAllTasksOptions, type ReconcileFailure, type ReconcileResult, type ReconcileTaskInput, type RefreshLinkageInput, type RefreshLinkageResult, type ReimportOptions, type ReimportResult, type RenamePlan, type ReplayOptions, type ReplayWarning, type RepoEntry, type RepoGitignoreFacts, type RepoGitignorePlan, type RepoLanguage, type RepoPresetFacts, type RepoPresetPlan, type RepoSymlinkFacts, type RepoSymlinkPlan, type RepoVisibility, type RepoWiringFacts, type ReportApprovalItem, type ReportData, type ReportDecisionItem, type ReportRendererInput, type ReportRendererResult, type ReportSessionItem, type ReportTaskItem, type ReviewGapRepoSummary, type ReviewGapUnit, type ReviewGapVerdict, type ReviewGapsInput, type ReviewGapsSummary, type RiskLevel, RiskLevelSchema, type RosterAdoptionPlan, type RosterDriftSummary, type RunOptions, type RunResult, STUCK_THRESHOLD_MS, type SanitizePathOptions, type SanitizeRelatedFilesResult, SchemaVersionSchema, type Session, type SessionEndedEvent, type SessionEntry, SessionIdSchema, type SessionImportPayload, SessionImportPayloadSchema, type SessionInnerImportInput, SessionInnerImportSchema, type SessionIntegrity, SessionIntegritySchema, type SessionMetrics, SessionMetricsSchema, SessionSchema, type SessionSkipReason, type SessionSourceKind, SessionSourceKindSchema, type SessionStartedEvent, type SessionStatus, type SessionStatusChangedEvent, SessionStatusSchema, type SessionWorkStats, type SourceRootsReconcile, type SourceWorkStats, type StatusCount, StatusSchema, type StatusSnapshot, type SuspectReason, type SymlinkCollision, type SymlinkConflict, type SymlinkPlanSummary, type Task, type TaskArchivedEvent, type TaskCreatedEvent, type TaskDeletedEvent, type TaskDocument, TaskIdSchema, type TaskLinkageRefreshedEvent, type TaskReconciledEvent, TaskSchema, type TaskSkipReason, type TaskStatus, type TaskStatusChangedEvent, type TaskStatusCount, TaskStatusSchema, TaskWriteAfterEventError, type TaskWriteAfterEventPhase, type TokenTotals, type UpdateAdHocTaskStatusInput, type UpdateTaskStatusInput, type UpdateTaskStatusResult, type ViewCollision, type ViewConflict, type ViewLinkState, type ViewRepoFact, type ViewStrayUnknown, type WiringRisk, type WiringSummary, type WorkStatsInput, type WorkStatsResult, type WorkStatsTotals, WorkspaceIdSchema, type WorkspaceViewPlan, type WriteEventsBulkOptions, type WriteTaskFileMode, acquireLock, appendBasouGitignore, appendChainedEvent, appendChainedEventLocked, appendEvent, appendEventToExistingSession, archiveTask, assertBasouRootSafe, basouPaths, buildJsonSchemas, buildStatusSnapshot, chainEvents, chainRawJsonLines, classifySuspect, claudeCodeAdapterMetadata, claudeTranscriptToImportPayload, codexRolloutToImportPayload, computeWorkStats, createAdHocSessionWithEvent, createManifest, createTaskWithEvent, deleteTask, editTask, ensureBasouDirectory, enumerateApprovals, enumerateArchivedTaskIds, enumerateSessionDirs, enumerateTaskIds, finalizeSessionYaml, findErrorCode, findReviewGaps, formatDurationMs, genesisHash, getDiff, getSnapshot, importSessionFromJson, inspectChainTail, isGitNotFound, isImportDerivedSource, isLazyExpired, isRenderable, isValidPrefixedId, lineHash, linkYamlFile, loadApproval, loadFederatedSessionEntries, loadSessionEntries, loadTaskEntries, normalizeRepoKey, normalizeRepoPath, overwriteYamlFile, parseDuration, parseMarkers, pathBasename, planArchive, planGitignore, planRename, planRosterAdoption, planWorkspaceView, prefixedUlid, readAllEvents, readManifest, readMarkdownFile, readSessionYaml, readStatus, readTaskFile, readTaskFileWithArchiveFallback, readYamlFile, rechainSessionInPlace, reconcileAllTasks, reconcileSourceRoots, reconcileTask, refreshTaskLinkedSessions, reimportPreservingId, removeMarkerSection, renderDecisions, renderHandoff, renderOrientation, renderPresetBlock, renderReport, renderWithMarkers, replayEvents, resolveBasouRepositoryRoot, resolveClaudeCodeCommand, resolveRepositoryRoot, resolveSessionId, resolveTaskId, safeSimpleGit, sanitizePath, sanitizeRelatedFiles, sanitizeWorkingDirectory, serializeEventLine, serializeJsonSchema, sessionWorkStatsFromEvents, summarizeAdapterOutput, summarizeOrientation, summarizePresetPlan, summarizeRosterDrift, summarizeSymlinkPlan, summarizeWiring, tryRemoteUrl, ulid, unknownManifestKeys, updateTaskStatusWithEvent, verifyEventsChain, writeEventsBulk, writeManifest, writeMarkdownFile, writeStatus, writeTaskFile, writeYamlFile };
|
|
5481
|
+
export { ACTIVE_GAP_CAP_MS, AGENT_INFRA_DIRS, type ActiveTimeBasis, type AdapterOutputEvent, type AdoptCandidate, type AdoptCandidateKind, type AppendBasouGitignoreOptions, type AppendBasouGitignoreResult, type AppendEventToExistingInput, type AppendEventToExistingResult, type Approval, type ApprovalApprovedEvent, type ApprovalExpiredEvent, ApprovalIdSchema, type ApprovalLocation, type ApprovalRejectedEvent, type ApprovalRequestedEvent, ApprovalSchema, type ApprovalStatus, ApprovalStatusSchema, type ArchivePlan, type ArchiveTaskInput, type ArchiveTaskResult, type AttachTaskInput, type AttachUpdateTaskStatusInput, type AttachableStatus, BASOU_CORE_VERSION, type BasouPaths, type BulkChainResult, CLAUDE_IMPORT_SOURCE, CODEX_IMPORT_SOURCE, type CaptureMode, type ChainBreakReason, type ChainTailState, type ChainVerdict, type ChainVerdictStatus, type ChainedEvents, ChildProcessRunner, type CitedReview, type ClaudeTranscriptRecord, type ClaudeTranscriptToPayloadOptions, type CodexRolloutRecord, type CodexRolloutToPayloadOptions, type CommandExecutedEvent, type CommandLookup, type CreateAdHocSessionInput, type CreateAdHocSessionResult, type CreateAdHocTaskInput, type CreateManifestInput, type CreateTaskInput, type CreateTaskResult, type DayWorkStats, DecisionIdSchema, type DecisionRecordedEvent, type DecisionsRendererInput, type DecisionsRendererResult, type DeleteTaskInput, type DeleteTaskResult, type DiffResult, type EditTaskInput, type EditTaskResult, type Event, EventIdSchema, EventSchema, EventSourceSchema, type ExistingViewLink, FailedToFinalizeError, type FederatedRoot, type FileChange, type FileChangeStatus, type FileChangedEvent, GENERATED_END, GENERATED_START, type GitSnapshot, type GitSnapshotEvent, type GitignorePlanSummary, type HandoffRendererInput, type HandoffRendererResult, ID_PREFIXES, type IdPrefix, type ImportSessionOptions, type ImportSessionResult, type InstructionFileFact, type InstructionSymlinkFact, type InstructionSymlinkState, IsoTimestampSchema, JSON_SCHEMA_VERSION, type JsonSchemaArtifact, type LoadFederatedOptions, type LoadSessionEntriesOptions, type LoadTaskEntriesOptions, type LoadedApproval, type LockHandle, type LockScope, type Manifest, ManifestSchema, type MarkerSection, type Markers, type MeasureAvailability, type NoteAddedEvent, type OrientationRendererInput, type OrientationRendererResult, type OrientationSummary, PROTOCOL_END, PROTOCOL_START, type PrefixedId, type PresetAction, type PresetCollision, type PresetMarkerConflict, type PresetMarkerKind, type PresetPlanSummary, type PresetRepo, type ProcessRunner, type PublishKind, type PublishTarget, type RechainOptions, type RechainResult, type ReconcileAllResult, type ReconcileAllTasksInput, type ReconcileAllTasksOptions, type ReconcileFailure, type ReconcileResult, type ReconcileTaskInput, type RefreshLinkageInput, type RefreshLinkageResult, type ReimportOptions, type ReimportResult, type RenamePlan, type ReplayOptions, type ReplayWarning, type RepoEntry, type RepoGitignoreFacts, type RepoGitignorePlan, type RepoLanguage, type RepoPresetFacts, type RepoPresetPlan, type RepoSymlinkFacts, type RepoSymlinkPlan, type RepoVisibility, type RepoWiringFacts, type ReportApprovalItem, type ReportData, type ReportDecisionItem, type ReportRendererInput, type ReportRendererResult, type ReportSessionItem, type ReportTaskItem, type ReviewGapRepoSummary, type ReviewGapUnit, type ReviewGapVerdict, type ReviewGapsInput, type ReviewGapsSummary, type RiskLevel, RiskLevelSchema, type RosterAdoptionPlan, type RosterDriftSummary, type RunOptions, type RunResult, STUCK_THRESHOLD_MS, type SanitizePathOptions, type SanitizeRelatedFilesResult, SchemaVersionSchema, type Session, type SessionEndedEvent, type SessionEntry, SessionIdSchema, type SessionImportPayload, SessionImportPayloadSchema, type SessionInnerImportInput, SessionInnerImportSchema, type SessionIntegrity, SessionIntegritySchema, type SessionMetrics, SessionMetricsSchema, SessionSchema, type SessionSkipReason, type SessionSourceKind, SessionSourceKindSchema, type SessionStartedEvent, type SessionStatus, type SessionStatusChangedEvent, SessionStatusSchema, type SessionWorkStats, type SourceRootScope, type SourceRootsReconcile, type SourceWorkStats, type StatusCount, StatusSchema, type StatusSnapshot, type SuspectReason, type SymlinkCollision, type SymlinkConflict, type SymlinkPlanSummary, type Task, type TaskArchivedEvent, type TaskCreatedEvent, type TaskDeletedEvent, type TaskDocument, TaskIdSchema, type TaskLinkageRefreshedEvent, type TaskReconciledEvent, TaskSchema, type TaskSkipReason, type TaskStatus, type TaskStatusChangedEvent, type TaskStatusCount, TaskStatusSchema, TaskWriteAfterEventError, type TaskWriteAfterEventPhase, type TokenTotals, type UpdateAdHocTaskStatusInput, type UpdateTaskStatusInput, type UpdateTaskStatusResult, type ViewCollision, type ViewConflict, type ViewLinkState, type ViewRepoFact, type ViewStrayUnknown, type WiringRisk, type WiringSummary, type WorkStatsInput, type WorkStatsResult, type WorkStatsTotals, WorkspaceIdSchema, type WorkspaceViewPlan, type WriteEventsBulkOptions, type WriteTaskFileMode, acquireLock, appendBasouGitignore, appendChainedEvent, appendChainedEventLocked, appendEvent, appendEventToExistingSession, archiveTask, assertBasouRootSafe, basouPaths, buildJsonSchemas, buildStatusSnapshot, chainEvents, chainRawJsonLines, classifyFilesBySourceRoot, classifySuspect, claudeCodeAdapterMetadata, claudeTranscriptToImportPayload, codexRolloutToImportPayload, computeWorkStats, createAdHocSessionWithEvent, createManifest, createTaskWithEvent, deleteTask, editTask, ensureBasouDirectory, enumerateApprovals, enumerateArchivedTaskIds, enumerateSessionDirs, enumerateTaskIds, finalizeSessionYaml, findErrorCode, findReviewGaps, formatDurationMs, genesisHash, getDiff, getSnapshot, importSessionFromJson, inspectChainTail, isGitNotFound, isImportDerivedSource, isLazyExpired, isRenderable, isValidPrefixedId, lineHash, linkYamlFile, loadApproval, loadFederatedSessionEntries, loadSessionEntries, loadTaskEntries, normalizeRepoKey, normalizeRepoPath, overwriteYamlFile, parseDuration, parseMarkers, pathBasename, planArchive, planGitignore, planRename, planRosterAdoption, planWorkspaceView, prefixedUlid, readAllEvents, readManifest, readMarkdownFile, readSessionYaml, readStatus, readTaskFile, readTaskFileWithArchiveFallback, readYamlFile, rechainSessionInPlace, reconcileAllTasks, reconcileSourceRoots, reconcileTask, refreshTaskLinkedSessions, reimportPreservingId, removeMarkerSection, renderDecisions, renderHandoff, renderOrientation, renderPresetBlock, renderReport, renderWithMarkers, replayEvents, resolveBasouRepositoryRoot, resolveClaudeCodeCommand, resolveRepositoryRoot, resolveSessionId, resolveTaskId, safeSimpleGit, sanitizePath, sanitizeRelatedFiles, sanitizeWorkingDirectory, serializeEventLine, serializeJsonSchema, sessionWorkStatsFromEvents, summarizeAdapterOutput, summarizeOrientation, summarizePresetPlan, summarizeRosterDrift, summarizeSymlinkPlan, summarizeWiring, tryRemoteUrl, ulid, unknownManifestKeys, updateTaskStatusWithEvent, verifyEventsChain, writeEventsBulk, writeManifest, writeMarkdownFile, writeStatus, writeTaskFile, writeYamlFile };
|