@longtable/core 0.1.31 → 0.1.32
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/types.d.ts +47 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -273,6 +273,51 @@ export interface NarrativeTrace {
|
|
|
273
273
|
importance: ConfidenceLevel;
|
|
274
274
|
linkedDecisionRecordId?: string;
|
|
275
275
|
}
|
|
276
|
+
export type LongTableHookKind = "longtable_interview" | "quality_probe" | "checkpoint" | "panel_decision";
|
|
277
|
+
export type LongTableHookStatus = "pending" | "active" | "ready_to_confirm" | "confirmed" | "deferred" | "cancelled";
|
|
278
|
+
export type InterviewTurnQuality = "thin" | "usable" | "rich";
|
|
279
|
+
export type InterviewDepth = "gathering_context" | "forming_first_handle" | "ready_to_summarize";
|
|
280
|
+
export interface LongTableInterviewTurn {
|
|
281
|
+
id: string;
|
|
282
|
+
index: number;
|
|
283
|
+
createdAt: string;
|
|
284
|
+
question: string;
|
|
285
|
+
answer: string;
|
|
286
|
+
reflection?: string;
|
|
287
|
+
quality: InterviewTurnQuality;
|
|
288
|
+
needsFollowUp: boolean;
|
|
289
|
+
followUpQuestion?: string;
|
|
290
|
+
rationale?: string[];
|
|
291
|
+
}
|
|
292
|
+
export interface FirstResearchShape {
|
|
293
|
+
handle: string;
|
|
294
|
+
currentGoal: string;
|
|
295
|
+
currentBlocker?: string;
|
|
296
|
+
researchObject?: string;
|
|
297
|
+
gapRisk?: string;
|
|
298
|
+
protectedDecision?: string;
|
|
299
|
+
openQuestions: string[];
|
|
300
|
+
nextAction: string;
|
|
301
|
+
confidence: ConfidenceLevel;
|
|
302
|
+
sourceHookId?: string;
|
|
303
|
+
confirmedAt?: string;
|
|
304
|
+
}
|
|
305
|
+
export interface LongTableHookRun {
|
|
306
|
+
id: string;
|
|
307
|
+
kind: LongTableHookKind;
|
|
308
|
+
status: LongTableHookStatus;
|
|
309
|
+
createdAt: string;
|
|
310
|
+
updatedAt: string;
|
|
311
|
+
targetOutcome?: "first_research_handle" | string;
|
|
312
|
+
depth?: InterviewDepth;
|
|
313
|
+
provider?: ProviderKind;
|
|
314
|
+
turns?: LongTableInterviewTurn[];
|
|
315
|
+
firstResearchShape?: FirstResearchShape;
|
|
316
|
+
qualityNotes?: string[];
|
|
317
|
+
rationale?: string[];
|
|
318
|
+
linkedQuestionRecordIds?: string[];
|
|
319
|
+
linkedDecisionRecordIds?: string[];
|
|
320
|
+
}
|
|
276
321
|
export interface RuntimeGuidance {
|
|
277
322
|
mode: InteractionMode;
|
|
278
323
|
minimumQuestions: number;
|
|
@@ -304,6 +349,8 @@ export interface StudyContract {
|
|
|
304
349
|
export interface ResearchState {
|
|
305
350
|
explicitState: Record<string, unknown>;
|
|
306
351
|
workingState: Record<string, unknown>;
|
|
352
|
+
hooks?: LongTableHookRun[];
|
|
353
|
+
firstResearchShape?: FirstResearchShape;
|
|
307
354
|
inferredHypotheses: InferredHypothesis[];
|
|
308
355
|
openTensions: string[];
|
|
309
356
|
decisionLog: DecisionRecord[];
|