@crewx/sdk 0.9.0-rc.79 → 0.9.0-rc.80

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.
@@ -31,6 +31,7 @@ export interface SkillEntry {
31
31
  };
32
32
  filePath: string;
33
33
  }
34
+ export declare function loadAgentSkills(projectRoot?: string): SkillEntry[];
34
35
  export interface RenderAgentPromptOptions {
35
36
  layout?: LayoutSpec;
36
37
  session?: {
@@ -1 +1,2 @@
1
1
  export declare const THREAD_HIGHLIGHT_PROMPT_INSTRUCTIONS: string;
2
+ export declare const THREAD_HIGHLIGHT_CONSOLIDATION_PROMPT_INSTRUCTIONS: string;
@@ -1,15 +1,17 @@
1
1
  import { z } from 'zod';
2
2
  import type { ThreadHighlight } from '../schema/thread-history.js';
3
3
  import type { ProviderRuntime } from '../provider/bridge.js';
4
- import type { CreateThreadHighlightInput } from '../repository/thread-history.repository.js';
5
- export { THREAD_HIGHLIGHT_PROMPT_INSTRUCTIONS } from './thread-highlight-prompt.js';
4
+ import type { CreateThreadHighlightInput, ThreadHighlightRegenerationCandidate } from '../repository/thread-history.repository.js';
5
+ export { THREAD_HIGHLIGHT_CONSOLIDATION_PROMPT_INSTRUCTIONS, THREAD_HIGHLIGHT_PROMPT_INSTRUCTIONS, } from './thread-highlight-prompt.js';
6
6
  export declare const THREAD_HIGHLIGHTER_AGENT_ID: "thread_highlighter";
7
7
  export declare const THREAD_HIGHLIGHTER_PROVIDER_ORDER: readonly ["cli/claude", "cli/opencode", "cli/copilot", "cli/codex"];
8
8
  export type ThreadHighlightProviderId = (typeof THREAD_HIGHLIGHTER_PROVIDER_ORDER)[number];
9
9
  export declare const MAX_THREAD_HIGHLIGHT_TURN_TEXT_LENGTH = 4000;
10
10
  export declare const MAX_THREAD_HIGHLIGHT_PROMPT_LENGTH = 32000;
11
- export declare const MAX_THREAD_HIGHLIGHTS_PER_RUN = 8;
11
+ export declare const MAX_THREAD_HIGHLIGHTS_PER_RUN = 3;
12
+ export declare const MAX_THREAD_HIGHLIGHTS_PER_THREAD = 10;
12
13
  export declare const MAX_THREAD_HIGHLIGHT_INPUT_TURNS = 100;
14
+ export declare const MAX_THREAD_HIGHLIGHT_REGENERATION_CANDIDATES = 40;
13
15
  export declare const MAX_THREAD_HIGHLIGHT_ALREADY_RECORDED_COUNT = 20;
14
16
  export declare const MAX_THREAD_HIGHLIGHT_ALREADY_RECORDED_TEXT_LENGTH = 160;
15
17
  export declare const MAX_THREAD_HIGHLIGHT_ALREADY_RECORDED_TOTAL_LENGTH = 4000;
@@ -69,8 +71,89 @@ export declare const ThreadHighlightResponseSchema: z.ZodObject<{
69
71
  anchorTaskId: string;
70
72
  }[];
71
73
  }>;
74
+ export declare const ThreadHighlightConsolidationItemSchema: z.ZodObject<{
75
+ id: z.ZodOptional<z.ZodString>;
76
+ source: z.ZodOptional<z.ZodEnum<["auto", "manual"]>>;
77
+ status: z.ZodOptional<z.ZodEnum<["active", "dismissed"]>>;
78
+ kind: z.ZodEnum<["decision", "judgment", "issue", "result", "pivot"]>;
79
+ text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
80
+ anchorTaskId: z.ZodString;
81
+ coversFromTaskId: z.ZodString;
82
+ coversToTaskId: z.ZodString;
83
+ }, "strict", z.ZodTypeAny, {
84
+ text: string;
85
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
86
+ coversFromTaskId: string;
87
+ coversToTaskId: string;
88
+ anchorTaskId: string;
89
+ id?: string | undefined;
90
+ status?: "active" | "dismissed" | undefined;
91
+ source?: "auto" | "manual" | undefined;
92
+ }, {
93
+ text: string;
94
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
95
+ coversFromTaskId: string;
96
+ coversToTaskId: string;
97
+ anchorTaskId: string;
98
+ id?: string | undefined;
99
+ status?: "active" | "dismissed" | undefined;
100
+ source?: "auto" | "manual" | undefined;
101
+ }>;
102
+ export declare const ThreadHighlightConsolidationResponseSchema: z.ZodObject<{
103
+ highlights: z.ZodArray<z.ZodObject<{
104
+ id: z.ZodOptional<z.ZodString>;
105
+ source: z.ZodOptional<z.ZodEnum<["auto", "manual"]>>;
106
+ status: z.ZodOptional<z.ZodEnum<["active", "dismissed"]>>;
107
+ kind: z.ZodEnum<["decision", "judgment", "issue", "result", "pivot"]>;
108
+ text: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
109
+ anchorTaskId: z.ZodString;
110
+ coversFromTaskId: z.ZodString;
111
+ coversToTaskId: z.ZodString;
112
+ }, "strict", z.ZodTypeAny, {
113
+ text: string;
114
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
115
+ coversFromTaskId: string;
116
+ coversToTaskId: string;
117
+ anchorTaskId: string;
118
+ id?: string | undefined;
119
+ status?: "active" | "dismissed" | undefined;
120
+ source?: "auto" | "manual" | undefined;
121
+ }, {
122
+ text: string;
123
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
124
+ coversFromTaskId: string;
125
+ coversToTaskId: string;
126
+ anchorTaskId: string;
127
+ id?: string | undefined;
128
+ status?: "active" | "dismissed" | undefined;
129
+ source?: "auto" | "manual" | undefined;
130
+ }>, "many">;
131
+ }, "strict", z.ZodTypeAny, {
132
+ highlights: {
133
+ text: string;
134
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
135
+ coversFromTaskId: string;
136
+ coversToTaskId: string;
137
+ anchorTaskId: string;
138
+ id?: string | undefined;
139
+ status?: "active" | "dismissed" | undefined;
140
+ source?: "auto" | "manual" | undefined;
141
+ }[];
142
+ }, {
143
+ highlights: {
144
+ text: string;
145
+ kind: "result" | "decision" | "judgment" | "issue" | "pivot";
146
+ coversFromTaskId: string;
147
+ coversToTaskId: string;
148
+ anchorTaskId: string;
149
+ id?: string | undefined;
150
+ status?: "active" | "dismissed" | undefined;
151
+ source?: "auto" | "manual" | undefined;
152
+ }[];
153
+ }>;
72
154
  export type ThreadHighlightItem = z.infer<typeof ThreadHighlightItemSchema>;
73
155
  export type ThreadHighlightResponse = z.infer<typeof ThreadHighlightResponseSchema>;
156
+ export type ThreadHighlightConsolidationResponse = z.infer<typeof ThreadHighlightConsolidationResponseSchema>;
74
157
  export interface ThreadHighlightTaskTurn {
75
158
  taskId?: string;
76
159
  task_id?: string;
@@ -102,6 +185,40 @@ export interface ThreadHighlightGenerationInput {
102
185
  detectorVersion?: string;
103
186
  detector_version?: string;
104
187
  }
188
+ export interface ThreadHighlightConsolidationItem {
189
+ id?: string | null;
190
+ source?: string | null;
191
+ status?: string | null;
192
+ kind: ThreadHighlight['kind'];
193
+ text: string | null;
194
+ anchorTaskId?: string | null;
195
+ coversFromTaskId?: string | null;
196
+ coversToTaskId?: string | null;
197
+ sourceTaskId?: string | null;
198
+ covers_from_task_id?: string | null;
199
+ covers_to_task_id?: string | null;
200
+ source_task_id?: string | null;
201
+ contentFingerprint?: string | null;
202
+ content_fingerprint?: string | null;
203
+ }
204
+ export interface ThreadHighlightConsolidationInput {
205
+ threadId?: string;
206
+ agentId?: string;
207
+ workspaceId?: string;
208
+ detectorVersion?: string;
209
+ detector_version?: string;
210
+ currentHighlights?: readonly ThreadHighlightConsolidationItem[];
211
+ currentAutoHighlights?: readonly ThreadHighlightConsolidationItem[];
212
+ current?: readonly ThreadHighlightConsolidationItem[];
213
+ existingHighlights?: readonly ThreadHighlightConsolidationItem[];
214
+ existingAutoHighlights?: readonly ThreadHighlightConsolidationItem[];
215
+ existing?: readonly ThreadHighlightConsolidationItem[];
216
+ newCandidates?: readonly ThreadHighlightConsolidationItem[];
217
+ candidates?: readonly ThreadHighlightConsolidationItem[];
218
+ newHighlights?: readonly ThreadHighlightConsolidationItem[];
219
+ manualHighlights?: readonly ThreadHighlightConsolidationItem[];
220
+ manual?: readonly ThreadHighlightConsolidationItem[];
221
+ }
105
222
  export interface ThreadHighlightWriter {
106
223
  resolveWorkspaceId?(threadId: string): string | null | Promise<string | null>;
107
224
  createHighlight(input: CreateThreadHighlightInput): ThreadHighlight | Promise<ThreadHighlight>;
@@ -112,12 +229,21 @@ export interface ThreadHighlightGeneratorOptions {
112
229
  providerFactory?: (provider: ThreadHighlightProviderId) => ProviderRuntime;
113
230
  providers?: Partial<Record<ThreadHighlightProviderId, ProviderRuntime>>;
114
231
  }
232
+ export interface ThreadHighlightBatchDetectorOptions {
233
+ providerFactory?: (provider: ThreadHighlightProviderId) => ProviderRuntime;
234
+ providers?: Partial<Record<ThreadHighlightProviderId, ProviderRuntime>>;
235
+ }
236
+ export interface ThreadHighlightConsolidationOptions {
237
+ providerFactory?: (provider: ThreadHighlightProviderId) => ProviderRuntime;
238
+ providers?: Partial<Record<ThreadHighlightProviderId, ProviderRuntime>>;
239
+ }
115
240
  export type ThreadHighlightProviderAttemptOutcome = 'provider_error' | 'invalid_output';
116
241
  export interface ThreadHighlightProviderAttempt {
117
242
  provider: ThreadHighlightProviderId;
118
243
  outcome: ThreadHighlightProviderAttemptOutcome;
244
+ batchIndex?: number;
119
245
  }
120
- export type ThreadHighlightFailureCode = 'INVALID_INPUT' | 'PROVIDER_EXHAUSTED' | 'INVALID_OUTPUT' | 'REPOSITORY_FAILED';
246
+ export type ThreadHighlightFailureCode = 'INVALID_INPUT' | 'PROVIDER_EXHAUSTED' | 'INVALID_OUTPUT' | 'REPOSITORY_FAILED' | 'THREAD_HIGHLIGHT_REGENERATION_NO_ELIGIBLE_TURNS' | 'THREAD_HIGHLIGHT_REGENERATION_DETECTION_FAILED';
121
247
  export interface ThreadHighlightGenerationFailure {
122
248
  code: ThreadHighlightFailureCode;
123
249
  message: string;
@@ -135,6 +261,31 @@ export interface ThreadHighlightGenerationFailureResult {
135
261
  failure: ThreadHighlightGenerationFailure;
136
262
  }
137
263
  export type ThreadHighlightGenerationResult = ThreadHighlightGenerationSuccess | ThreadHighlightGenerationFailureResult;
264
+ export interface ThreadHighlightRegenerationInput extends Omit<ThreadHighlightGenerationInput, 'turns'> {
265
+ turns: readonly ThreadHighlightTaskTurn[];
266
+ }
267
+ export interface ThreadHighlightBatchDetectionSuccess {
268
+ ok: true;
269
+ provider: ThreadHighlightProviderId;
270
+ candidates: readonly ThreadHighlightRegenerationCandidate[];
271
+ batchCount: number;
272
+ attempts: readonly ThreadHighlightProviderAttempt[];
273
+ }
274
+ export type ThreadHighlightBatchDetectionResult = ThreadHighlightBatchDetectionSuccess | ThreadHighlightGenerationFailureResult;
275
+ export interface ThreadHighlightConsolidationHighlight extends ThreadHighlightRegenerationCandidate {
276
+ id?: string;
277
+ source: 'auto';
278
+ status: 'active';
279
+ }
280
+ export interface ThreadHighlightConsolidationSuccess {
281
+ ok: true;
282
+ provider: ThreadHighlightProviderId | null;
283
+ highlights: readonly ThreadHighlightConsolidationHighlight[];
284
+ candidates: readonly ThreadHighlightRegenerationCandidate[];
285
+ dismissedHighlightIds: readonly string[];
286
+ attempts: readonly ThreadHighlightProviderAttempt[];
287
+ }
288
+ export type ThreadHighlightConsolidationResult = ThreadHighlightConsolidationSuccess | ThreadHighlightGenerationFailureResult;
138
289
  export declare class ThreadHighlightGenerationError extends Error {
139
290
  readonly failure: ThreadHighlightGenerationFailure;
140
291
  readonly name = "ThreadHighlightGenerationError";
@@ -152,15 +303,24 @@ export declare class ThreadHighlightInputValidationError extends Error {
152
303
  }
153
304
  export declare function redactThreadHighlightSecrets(value: string): string;
154
305
  export declare function buildThreadHighlightPrompt(input: ThreadHighlightGenerationInput): string;
306
+ export declare function buildThreadHighlightConsolidationPrompt(input: ThreadHighlightConsolidationInput): string;
155
307
  export declare function parseThreadHighlightResponse(raw: unknown): ThreadHighlightResponse;
308
+ export declare function parseThreadHighlightConsolidationResponse(raw: unknown): ThreadHighlightConsolidationResponse;
156
309
  export declare class ThreadHighlightGenerator {
157
310
  private readonly repository;
158
311
  private readonly workspaceId?;
159
312
  private readonly providerFactory;
160
313
  private readonly providers;
161
314
  constructor(options: ThreadHighlightGeneratorOptions);
315
+ private detectBatch;
316
+ detectBatches(input: ThreadHighlightRegenerationInput): Promise<ThreadHighlightBatchDetectionResult>;
317
+ consolidate(input: ThreadHighlightConsolidationInput): Promise<ThreadHighlightConsolidationResult>;
318
+ consolidateHighlights(input: ThreadHighlightConsolidationInput): Promise<ThreadHighlightConsolidationResult>;
162
319
  generate(input: ThreadHighlightGenerationInput): Promise<ThreadHighlightGenerationResult>;
163
320
  generateOrThrow(input: ThreadHighlightGenerationInput): Promise<ThreadHighlightGenerationSuccess>;
164
321
  }
165
322
  export declare function generateThreadHighlights(input: ThreadHighlightGenerationInput, options: ThreadHighlightGeneratorOptions): Promise<ThreadHighlightGenerationResult>;
323
+ export declare function consolidateThreadHighlights(input: ThreadHighlightConsolidationInput, options?: ThreadHighlightConsolidationOptions): Promise<ThreadHighlightConsolidationResult>;
324
+ export declare function detectThreadHighlightBatches(input: ThreadHighlightRegenerationInput, options: ThreadHighlightBatchDetectorOptions): Promise<ThreadHighlightBatchDetectionResult>;
325
+ export declare const generateThreadHighlightBatches: typeof detectThreadHighlightBatches;
166
326
  export declare const ThreadHighlighter: typeof ThreadHighlightGenerator;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,10 @@
1
- export { Crewx } from './facade/Crewx';
1
+ export { Crewx, loadAgentSkills } from './facade/Crewx';
2
2
  export type { ToolDefinition } from './facade/Crewx';
3
3
  export type { ActionReceipt, ActionReceiptOutcome, CreateUiInstanceInput, JsonObject, JsonPrimitive, JsonValue, UiActionHandlerContext, UiActionHandlerRegistration, UiActionHandlerResult, UiActionEnvelope, UiActor, UiDefinition, UiDefinitionAction, UiDefinitionInput, UiDefinitionRef, UiProjectionPolicy, UiExecutionContext, UiAuthenticatedActor, UiAuthenticatedExecutionContext, UiAuthenticatedGrantPolicy, UiServerRuntimeFacade, UiServerRuntimeOptions, UiAgentContextProjection, UiExternalActionHandlerRegistration, UiInstance, UiInstanceStatus, UiLocalGrantPolicy, UiRuntimeFacade, UiRuntimeOptions, UiStateActionHandlerRegistration, } from './ui-instance/types.js';
4
4
  export { UiRuntimeError, hashUiDefinition, createUiServerRuntime, resolveUiEffectiveCapabilities } from './ui-instance/index.js';
5
5
  export type { UiRuntimeErrorCode } from './ui-instance/index.js';
6
+ export { canonicalManifestJson, manifestHash, normalizeManifest, UiPluginValidationError, validateManifest, validatePayload, } from './ui-plugin/index.js';
7
+ export type { UiPluginActivation, UiPluginCardShellNode, UiPluginFieldSchema, UiPluginHeadingNode, UiPluginLabeledTextNode, UiPluginLayoutNode, UiPluginLayout, UiPluginManifest, UiPluginMetaBannerNode, UiPluginPayload, UiPluginPayloadValue, UiPluginPrimitive, UiPluginSchemaType, UiPluginSchema, UiPluginStep, UiPluginStepFlowNode, UiPluginStepListSchema, UiPluginTextListNode, UiPluginTextListSchema, UiPluginTextSchema, UiPluginValidationErrorCode, UiPluginValidationOptions, } from './ui-plugin/index.js';
6
8
  export { CrewxPlugin } from './plugin';
7
9
  export { TypedEventEmitter } from './events/TypedEventEmitter';
8
10
  export type { CrewxEvents, CrewxEventName, CrewxEventPayload, BaseEvent, TaskStartEvent, TaskEndEvent, TaskOutputEvent, AdapterLifecycleEvent, AdapterMessageEvent, UnsubscribeFn, } from './events/types';
@@ -54,8 +56,8 @@ export type { InputBudgetUnresolvedReason, TokenizerFallbackReason, ResolveInput
54
56
  export { ContextBudgetLayoutError, DEFAULT_HIGHLIGHT_BUDGET_PERCENT, DEFAULT_PROTECTED_TURN_COUNT, MAX_ACTIVE_HIGHLIGHT_CHARS, MAX_ACTIVE_HIGHLIGHTS, MAX_THREAD_STATE_VALUE_CHARS, MAX_THREAD_TITLE_CHARS, buildSemanticContinuityContext, buildThreadStateContext, getConversationMessageTaskId, groupConversationTurns, materializeConversationTurn, selectConversationHighlights, selectConversationTurns, } from './context-budget';
55
57
  export type { BuildSemanticContinuityContextOptions, ConversationHighlightSelection, ConversationTurn, ConversationTurnSelection, GroupedConversationTurns, SelectConversationHighlightsOptions, SelectConversationTurnsOptions, } from './context-budget';
56
58
  export type { ConversationHighlight, ConversationMessage, ConversationSemanticContinuityContext, ConversationThreadState, ConversationThreadStateValue, ConversationThread, FetchHistoryOptions, IConversationHistoryProvider, Platform, SemanticContinuityContext, TemplateMessage, ThreadStateContext, } from './conversation/types.js';
57
- export { MAX_THREAD_HIGHLIGHTS_PER_RUN, MAX_THREAD_HIGHLIGHT_PROMPT_LENGTH, MAX_THREAD_HIGHLIGHT_TURN_TEXT_LENGTH, THREAD_HIGHLIGHTER_AGENT_ID, THREAD_HIGHLIGHTER_PROVIDER_ORDER, ThreadHighlightGenerationError, ThreadHighlightGenerator, ThreadHighlighter, ThreadHighlightInputValidationError, ThreadHighlightItemSchema, ThreadHighlightOutputValidationError, ThreadHighlightResponseSchema, buildThreadHighlightPrompt, generateThreadHighlights, parseThreadHighlightResponse, redactThreadHighlightSecrets, } from './highlight/thread-highlighter.js';
58
- export type { ThreadHighlightFailureCode, ThreadHighlightGenerationFailure, ThreadHighlightGenerationFailureResult, ThreadHighlightGenerationInput, ThreadHighlightGenerationResult, ThreadHighlightGenerationSuccess, ThreadHighlightGeneratorOptions, ThreadHighlightItem, ThreadHighlightProviderAttempt, ThreadHighlightProviderAttemptOutcome, ThreadHighlightProviderId, ThreadHighlightResponse, ThreadHighlightTaskTurn, ThreadHighlightWriter, } from './highlight/thread-highlighter.js';
59
+ export { MAX_THREAD_HIGHLIGHTS_PER_THREAD, MAX_THREAD_HIGHLIGHTS_PER_RUN, MAX_THREAD_HIGHLIGHT_REGENERATION_CANDIDATES, MAX_THREAD_HIGHLIGHT_PROMPT_LENGTH, MAX_THREAD_HIGHLIGHT_TURN_TEXT_LENGTH, THREAD_HIGHLIGHT_CONSOLIDATION_PROMPT_INSTRUCTIONS, THREAD_HIGHLIGHT_PROMPT_INSTRUCTIONS, THREAD_HIGHLIGHTER_AGENT_ID, THREAD_HIGHLIGHTER_PROVIDER_ORDER, ThreadHighlightGenerationError, ThreadHighlightGenerator, ThreadHighlighter, ThreadHighlightConsolidationItemSchema, ThreadHighlightConsolidationResponseSchema, ThreadHighlightInputValidationError, ThreadHighlightItemSchema, ThreadHighlightOutputValidationError, ThreadHighlightResponseSchema, buildThreadHighlightPrompt, buildThreadHighlightConsolidationPrompt, consolidateThreadHighlights, detectThreadHighlightBatches, generateThreadHighlightBatches, generateThreadHighlights, parseThreadHighlightResponse, parseThreadHighlightConsolidationResponse, redactThreadHighlightSecrets, } from './highlight/thread-highlighter.js';
60
+ export type { ThreadHighlightConsolidationHighlight, ThreadHighlightConsolidationInput, ThreadHighlightConsolidationItem, ThreadHighlightConsolidationOptions, ThreadHighlightConsolidationResponse, ThreadHighlightConsolidationResult, ThreadHighlightConsolidationSuccess, ThreadHighlightFailureCode, ThreadHighlightBatchDetectionResult, ThreadHighlightBatchDetectionSuccess, ThreadHighlightBatchDetectorOptions, ThreadHighlightGenerationFailure, ThreadHighlightGenerationFailureResult, ThreadHighlightGenerationInput, ThreadHighlightGenerationResult, ThreadHighlightGenerationSuccess, ThreadHighlightGeneratorOptions, ThreadHighlightItem, ThreadHighlightRegenerationInput, ThreadHighlightProviderAttempt, ThreadHighlightProviderAttemptOutcome, ThreadHighlightProviderId, ThreadHighlightResponse, ThreadHighlightTaskTurn, ThreadHighlightWriter, } from './highlight/thread-highlighter.js';
59
61
  export { createProvider, ProviderError, ClientToolCallRequiredError, registerProviderFactory, mergeAdditionalArgs } from './provider/bridge';
60
62
  export type { ProviderRuntime, ProviderQueryOptions, ProviderFactory, ProviderUsage, ClientToolCall, ContinuationState, AdditionalArgsProvider } from './provider/bridge';
61
63
  export { VercelProviderRuntime } from './provider/vercel-runtime';
@@ -106,12 +108,13 @@ export { ThreadRepository, ThreadTitleMetadataPatchError, } from './repository/t
106
108
  export type { ThreadRow, NewThread, ThreadTitleMetadataPatch, ThreadTitleMetadataPatchResult, ThreadTitleMetadataPatchErrorReason, } from './repository/thread.repository.js';
107
109
  export { migrateLegacyThreadTitleCommonCodes, migrateThreadTitleCommonCodes, } from './repository/thread-title-common-code-migration.js';
108
110
  export type { ThreadTitleCommonCodeMigrationOptions, ThreadTitleCommonCodeMigrationResult, } from './repository/thread-title-common-code-migration.js';
109
- export { ThreadHistoryConflictError, ThreadHighlightConflictError, ThreadHistoryRepository, } from './repository/thread-history.repository.js';
110
- export type { CreateThreadHighlightInput, DismissThreadHighlightInput, ListActiveHighlightsOptions, ThreadActorInput, ThreadSnapshot, ThreadSnapshotMutationInput, ThreadTimeline, ThreadTimelineOptions, ThreadTimelineQuery, UpdateThreadHighlightInput, } from './repository/thread-history.repository.js';
111
+ export { ThreadHistoryConflictError, ThreadHighlightConflictError, ThreadHighlightRegenerationConflictError, ThreadHistoryRepository, } from './repository/thread-history.repository.js';
112
+ export { THREAD_HIGHLIGHT_DELETION_REASON_REGENERATION_REPLACED, THREAD_HIGHLIGHT_REGENERATION_COMMIT_FAILED, THREAD_HIGHLIGHT_REGENERATION_DETECTION_FAILED, THREAD_HIGHLIGHT_REGENERATION_INTERRUPTED, THREAD_HIGHLIGHT_REGENERATION_NO_ELIGIBLE_TURNS, } from './repository/thread-history.repository.js';
113
+ export type { CompleteThreadHighlightRegenerationInput, CompleteThreadHighlightRegenerationResult, CreateThreadHighlightRegenerationRunInput, CreateThreadHighlightRegenerationRunResult, CreateThreadHighlightInput, DismissThreadHighlightInput, FailThreadHighlightRegenerationRunInput, ListActiveHighlightsOptions, ThreadActorInput, ThreadHighlightDeletionReason, ThreadHighlightEligibleTurn, ThreadHighlightRegenerationCandidate, ThreadHighlightRegenerationErrorCode, ThreadSnapshot, ThreadSnapshotMutationInput, ThreadTimeline, ThreadTimelineOptions, ThreadTimelineQuery, UpdateThreadHighlightInput, } from './repository/thread-history.repository.js';
111
114
  export { BUILTIN_THREAD_STATES, THREAD_PRIORITIES, customStateLabel, hasThreadTitleKey, isThreadPriority, isThreadState, matchesThreadTitleFilter, mergeThreadTitleMeta, parseThreadPriorityFilter, parseThreadStateFilter, readThreadTitleMeta, threadTitleSearchHaystack, } from './repository/thread-title.types.js';
112
115
  export type { BuiltinThreadState, LegacyThreadState, StableThreadState, ThreadPriority, ThreadState, ThreadTitleFilter, ThreadTitleMeta, ThreadTitlePatch, } from './repository/thread-title.types.js';
113
- export { THREAD_ACTOR_TYPES, THREAD_EVENT_TYPES, THREAD_HIGHLIGHT_KINDS, THREAD_HIGHLIGHT_SOURCES, THREAD_HIGHLIGHT_STATUSES, } from './schema/thread-history.js';
114
- export type { NewThreadEvent, NewThreadHighlight, ThreadActorType, ThreadEvent, ThreadEventType, ThreadHighlight, ThreadHighlightKind, ThreadHighlightSource, ThreadHighlightStatus, } from './schema/thread-history.js';
116
+ export { THREAD_ACTOR_TYPES, THREAD_EVENT_TYPES, THREAD_HIGHLIGHT_KINDS, THREAD_HIGHLIGHT_SOURCES, THREAD_HIGHLIGHT_STATUSES, THREAD_HIGHLIGHT_RUN_STATUSES, } from './schema/thread-history.js';
117
+ export type { NewThreadEvent, NewThreadHighlight, NewThreadHighlightRun, ThreadActorType, ThreadEvent, ThreadEventType, ThreadHighlight, ThreadHighlightKind, ThreadHighlightSource, ThreadHighlightStatus, ThreadHighlightRun, ThreadHighlightRunStatus, } from './schema/thread-history.js';
115
118
  export { RemoteProviderRuntime, createRemoteProviderFactory } from './remote/remote-provider';
116
119
  export { RemoteAgentManager } from './remote/remote-agent-manager';
117
120
  export { McpHttpTransport } from './remote/remote-transport';