@oscharko-dev/keiko-contracts 0.2.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/.tsbuildinfo +1 -0
- package/dist/bff-wire.d.ts +661 -0
- package/dist/bff-wire.d.ts.map +1 -0
- package/dist/bff-wire.js +102 -0
- package/dist/bug-investigation-events.d.ts +92 -0
- package/dist/bug-investigation-events.d.ts.map +1 -0
- package/dist/bug-investigation-events.js +18 -0
- package/dist/coding-context.d.ts +76 -0
- package/dist/coding-context.d.ts.map +1 -0
- package/dist/coding-context.js +158 -0
- package/dist/connected-context.d.ts +174 -0
- package/dist/connected-context.d.ts.map +1 -0
- package/dist/connected-context.js +636 -0
- package/dist/conversation-budget.d.ts +37 -0
- package/dist/conversation-budget.d.ts.map +1 -0
- package/dist/conversation-budget.js +97 -0
- package/dist/editor-agent.d.ts +131 -0
- package/dist/editor-agent.d.ts.map +1 -0
- package/dist/editor-agent.js +197 -0
- package/dist/editor-completion.d.ts +62 -0
- package/dist/editor-completion.d.ts.map +1 -0
- package/dist/editor-completion.js +147 -0
- package/dist/editor-dirty-close.d.ts +17 -0
- package/dist/editor-dirty-close.d.ts.map +1 -0
- package/dist/editor-dirty-close.js +8 -0
- package/dist/editor-hot-exit.d.ts +18 -0
- package/dist/editor-hot-exit.d.ts.map +1 -0
- package/dist/editor-hot-exit.js +42 -0
- package/dist/editor-inline-completion.d.ts +70 -0
- package/dist/editor-inline-completion.d.ts.map +1 -0
- package/dist/editor-inline-completion.js +215 -0
- package/dist/editor-layout.d.ts +105 -0
- package/dist/editor-layout.d.ts.map +1 -0
- package/dist/editor-layout.js +479 -0
- package/dist/editor-patch-apply.d.ts +77 -0
- package/dist/editor-patch-apply.d.ts.map +1 -0
- package/dist/editor-patch-apply.js +122 -0
- package/dist/editor-session.d.ts +31 -0
- package/dist/editor-session.d.ts.map +1 -0
- package/dist/editor-session.js +75 -0
- package/dist/editor-test-generation.d.ts +104 -0
- package/dist/editor-test-generation.d.ts.map +1 -0
- package/dist/editor-test-generation.js +211 -0
- package/dist/evaluations.d.ts +75 -0
- package/dist/evaluations.d.ts.map +1 -0
- package/dist/evaluations.js +16 -0
- package/dist/evidence.d.ts +297 -0
- package/dist/evidence.d.ts.map +1 -0
- package/dist/evidence.js +9 -0
- package/dist/gateway.d.ts +129 -0
- package/dist/gateway.d.ts.map +1 -0
- package/dist/gateway.js +66 -0
- package/dist/harness.d.ts +274 -0
- package/dist/harness.d.ts.map +1 -0
- package/dist/harness.js +38 -0
- package/dist/index.d.ts +101 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +83 -0
- package/dist/language-service.d.ts +145 -0
- package/dist/language-service.d.ts.map +1 -0
- package/dist/language-service.js +161 -0
- package/dist/local-knowledge-large-document-validation.d.ts +7 -0
- package/dist/local-knowledge-large-document-validation.d.ts.map +1 -0
- package/dist/local-knowledge-large-document-validation.js +161 -0
- package/dist/local-knowledge-large-document.d.ts +113 -0
- package/dist/local-knowledge-large-document.d.ts.map +1 -0
- package/dist/local-knowledge-large-document.js +142 -0
- package/dist/local-knowledge-paths.d.ts +3 -0
- package/dist/local-knowledge-paths.d.ts.map +1 -0
- package/dist/local-knowledge-paths.js +65 -0
- package/dist/local-knowledge-records.d.ts +190 -0
- package/dist/local-knowledge-records.d.ts.map +1 -0
- package/dist/local-knowledge-records.js +36 -0
- package/dist/local-knowledge-schema-validation.d.ts +19 -0
- package/dist/local-knowledge-schema-validation.d.ts.map +1 -0
- package/dist/local-knowledge-schema-validation.js +115 -0
- package/dist/local-knowledge-schema.d.ts +14 -0
- package/dist/local-knowledge-schema.d.ts.map +1 -0
- package/dist/local-knowledge-schema.js +715 -0
- package/dist/local-knowledge-validation.d.ts +20 -0
- package/dist/local-knowledge-validation.d.ts.map +1 -0
- package/dist/local-knowledge-validation.js +487 -0
- package/dist/local-knowledge.d.ts +158 -0
- package/dist/local-knowledge.d.ts.map +1 -0
- package/dist/local-knowledge.js +63 -0
- package/dist/memory-audit-events.d.ts +73 -0
- package/dist/memory-audit-events.d.ts.map +1 -0
- package/dist/memory-audit-events.js +44 -0
- package/dist/memory-audit-validation.d.ts +4 -0
- package/dist/memory-audit-validation.d.ts.map +1 -0
- package/dist/memory-audit-validation.js +151 -0
- package/dist/memory-barrel.d.ts +15 -0
- package/dist/memory-barrel.d.ts.map +1 -0
- package/dist/memory-barrel.js +20 -0
- package/dist/memory-internal.d.ts +26 -0
- package/dist/memory-internal.d.ts.map +1 -0
- package/dist/memory-internal.js +104 -0
- package/dist/memory-operations-validation.d.ts +12 -0
- package/dist/memory-operations-validation.d.ts.map +1 -0
- package/dist/memory-operations-validation.js +267 -0
- package/dist/memory-operations.d.ts +156 -0
- package/dist/memory-operations.d.ts.map +1 -0
- package/dist/memory-operations.js +29 -0
- package/dist/memory-record-validation.d.ts +10 -0
- package/dist/memory-record-validation.d.ts.map +1 -0
- package/dist/memory-record-validation.js +101 -0
- package/dist/memory-records.d.ts +66 -0
- package/dist/memory-records.d.ts.map +1 -0
- package/dist/memory-records.js +22 -0
- package/dist/memory-retrieval-validation.d.ts +6 -0
- package/dist/memory-retrieval-validation.d.ts.map +1 -0
- package/dist/memory-retrieval-validation.js +108 -0
- package/dist/memory-validation.d.ts +31 -0
- package/dist/memory-validation.d.ts.map +1 -0
- package/dist/memory-validation.js +318 -0
- package/dist/memory-workflow-port.d.ts +26 -0
- package/dist/memory-workflow-port.d.ts.map +1 -0
- package/dist/memory-workflow-port.js +13 -0
- package/dist/memory.d.ts +81 -0
- package/dist/memory.d.ts.map +1 -0
- package/dist/memory.js +104 -0
- package/dist/prompt-enhancer-analyzer.d.ts +7 -0
- package/dist/prompt-enhancer-analyzer.d.ts.map +1 -0
- package/dist/prompt-enhancer-analyzer.js +745 -0
- package/dist/prompt-enhancer-bff.d.ts +67 -0
- package/dist/prompt-enhancer-bff.d.ts.map +1 -0
- package/dist/prompt-enhancer-bff.js +156 -0
- package/dist/prompt-enhancer-critic.d.ts +46 -0
- package/dist/prompt-enhancer-critic.d.ts.map +1 -0
- package/dist/prompt-enhancer-critic.js +35 -0
- package/dist/prompt-enhancer-grounding.d.ts +19 -0
- package/dist/prompt-enhancer-grounding.d.ts.map +1 -0
- package/dist/prompt-enhancer-grounding.js +235 -0
- package/dist/prompt-enhancer-safety.d.ts +66 -0
- package/dist/prompt-enhancer-safety.d.ts.map +1 -0
- package/dist/prompt-enhancer-safety.js +446 -0
- package/dist/prompt-enhancer-validation.d.ts +28 -0
- package/dist/prompt-enhancer-validation.d.ts.map +1 -0
- package/dist/prompt-enhancer-validation.js +931 -0
- package/dist/prompt-enhancer.d.ts +184 -0
- package/dist/prompt-enhancer.d.ts.map +1 -0
- package/dist/prompt-enhancer.js +350 -0
- package/dist/qualityIntelligence/assertNever.d.ts +2 -0
- package/dist/qualityIntelligence/assertNever.d.ts.map +1 -0
- package/dist/qualityIntelligence/assertNever.js +7 -0
- package/dist/qualityIntelligence/auditSummary.d.ts +25 -0
- package/dist/qualityIntelligence/auditSummary.d.ts.map +1 -0
- package/dist/qualityIntelligence/auditSummary.js +7 -0
- package/dist/qualityIntelligence/bffWire.d.ts +356 -0
- package/dist/qualityIntelligence/bffWire.d.ts.map +1 -0
- package/dist/qualityIntelligence/bffWire.js +22 -0
- package/dist/qualityIntelligence/coverageMap.d.ts +21 -0
- package/dist/qualityIntelligence/coverageMap.d.ts.map +1 -0
- package/dist/qualityIntelligence/coverageMap.js +29 -0
- package/dist/qualityIntelligence/editableRevision.d.ts +21 -0
- package/dist/qualityIntelligence/editableRevision.d.ts.map +1 -0
- package/dist/qualityIntelligence/editableRevision.js +8 -0
- package/dist/qualityIntelligence/evidenceAtom.d.ts +35 -0
- package/dist/qualityIntelligence/evidenceAtom.d.ts.map +1 -0
- package/dist/qualityIntelligence/evidenceAtom.js +29 -0
- package/dist/qualityIntelligence/exportBundle.d.ts +28 -0
- package/dist/qualityIntelligence/exportBundle.d.ts.map +1 -0
- package/dist/qualityIntelligence/exportBundle.js +46 -0
- package/dist/qualityIntelligence/handoffEnvelope.d.ts +23 -0
- package/dist/qualityIntelligence/handoffEnvelope.d.ts.map +1 -0
- package/dist/qualityIntelligence/handoffEnvelope.js +8 -0
- package/dist/qualityIntelligence/ids.d.ts +58 -0
- package/dist/qualityIntelligence/ids.d.ts.map +1 -0
- package/dist/qualityIntelligence/ids.js +93 -0
- package/dist/qualityIntelligence/index.d.ts +29 -0
- package/dist/qualityIntelligence/index.d.ts.map +1 -0
- package/dist/qualityIntelligence/index.js +20 -0
- package/dist/qualityIntelligence/reviewRecord.d.ts +19 -0
- package/dist/qualityIntelligence/reviewRecord.d.ts.map +1 -0
- package/dist/qualityIntelligence/reviewRecord.js +20 -0
- package/dist/qualityIntelligence/runPlanAndEvents.d.ts +84 -0
- package/dist/qualityIntelligence/runPlanAndEvents.d.ts.map +1 -0
- package/dist/qualityIntelligence/runPlanAndEvents.js +51 -0
- package/dist/qualityIntelligence/sourceEnvelope.d.ts +77 -0
- package/dist/qualityIntelligence/sourceEnvelope.d.ts.map +1 -0
- package/dist/qualityIntelligence/sourceEnvelope.js +118 -0
- package/dist/qualityIntelligence/testCaseCandidate.d.ts +21 -0
- package/dist/qualityIntelligence/testCaseCandidate.d.ts.map +1 -0
- package/dist/qualityIntelligence/testCaseCandidate.js +21 -0
- package/dist/qualityIntelligence/testQualityRubric.d.ts +17 -0
- package/dist/qualityIntelligence/testQualityRubric.d.ts.map +1 -0
- package/dist/qualityIntelligence/testQualityRubric.js +32 -0
- package/dist/qualityIntelligence/validationFinding.d.ts +48 -0
- package/dist/qualityIntelligence/validationFinding.d.ts.map +1 -0
- package/dist/qualityIntelligence/validationFinding.js +36 -0
- package/dist/relationships-validation.d.ts +13 -0
- package/dist/relationships-validation.d.ts.map +1 -0
- package/dist/relationships-validation.js +422 -0
- package/dist/relationships.d.ts +79 -0
- package/dist/relationships.d.ts.map +1 -0
- package/dist/relationships.js +307 -0
- package/dist/text-safety.d.ts +7 -0
- package/dist/text-safety.d.ts.map +1 -0
- package/dist/text-safety.js +58 -0
- package/dist/tools.d.ts +153 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +118 -0
- package/dist/unit-test-events.d.ts +87 -0
- package/dist/unit-test-events.d.ts.map +1 -0
- package/dist/unit-test-events.js +14 -0
- package/dist/verification-summary.d.ts +38 -0
- package/dist/verification-summary.d.ts.map +1 -0
- package/dist/verification-summary.js +5 -0
- package/dist/verification.d.ts +64 -0
- package/dist/verification.d.ts.map +1 -0
- package/dist/verification.js +13 -0
- package/dist/workflow-descriptor.d.ts +21 -0
- package/dist/workflow-descriptor.d.ts.map +1 -0
- package/dist/workflow-descriptor.js +8 -0
- package/dist/workflow-handoff.d.ts +69 -0
- package/dist/workflow-handoff.d.ts.map +1 -0
- package/dist/workflow-handoff.js +381 -0
- package/dist/workspace-descriptors.d.ts +21 -0
- package/dist/workspace-descriptors.d.ts.map +1 -0
- package/dist/workspace-descriptors.js +180 -0
- package/dist/workspace-ui.d.ts +119 -0
- package/dist/workspace-ui.d.ts.map +1 -0
- package/dist/workspace-ui.js +105 -0
- package/dist/workspace.d.ts +104 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +27 -0
- package/package.json +71 -0
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
import type { VerificationAuditSummary } from "./verification-summary.js";
|
|
2
|
+
import type { EditorDocumentSession, EditorDocumentVersion } from "./editor-session.js";
|
|
3
|
+
import type { ModelCapability } from "./gateway.js";
|
|
4
|
+
import { CONNECTED_CONTEXT_SCHEMA_VERSION, type CandidateOmissionReason, type ConnectedContextPack, type ExplorationBudget, type ExplorationUsage, type RetrievalQueryKind, type SelectedScopeKind } from "./connected-context.js";
|
|
5
|
+
import type { CapsuleSetId, ChunkId, DocumentId, KnowledgeCapsuleId, KnowledgeSourceId } from "./local-knowledge.js";
|
|
6
|
+
import type { MemorySensitivity, MemorySourceKind, MemoryStatus } from "./memory.js";
|
|
7
|
+
import type { ExpectedCheck, WorkflowKind } from "./workflow-handoff.js";
|
|
8
|
+
export interface Project {
|
|
9
|
+
readonly path: string;
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly favorite: boolean;
|
|
12
|
+
readonly createdAt: number;
|
|
13
|
+
readonly lastOpenedAt: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ChatConnectedScope {
|
|
16
|
+
readonly kind: SelectedScopeKind;
|
|
17
|
+
readonly relativePaths: readonly string[];
|
|
18
|
+
readonly connectedAtMs: number;
|
|
19
|
+
readonly root?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GroundingLimits {
|
|
22
|
+
readonly maxConnectedSources: number;
|
|
23
|
+
readonly maxLocalKnowledgeSources: number;
|
|
24
|
+
readonly maxPromptReferences: number;
|
|
25
|
+
readonly maxExcerptChars: number;
|
|
26
|
+
readonly referenceBudget: number;
|
|
27
|
+
readonly hybridMaxCandidates: number;
|
|
28
|
+
readonly hybridMaxExcerptBytes: number;
|
|
29
|
+
}
|
|
30
|
+
export declare const DEFAULT_GROUNDING_LIMITS: GroundingLimits;
|
|
31
|
+
export declare const GROUNDING_LIMIT_CEILINGS: GroundingLimits;
|
|
32
|
+
export declare function resolveGroundingLimits(partial?: Partial<GroundingLimits>): GroundingLimits;
|
|
33
|
+
export declare const MAX_CONNECTED_SOURCES: number;
|
|
34
|
+
export declare const MAX_LOCAL_KNOWLEDGE_SOURCES: number;
|
|
35
|
+
export type ChatLocalKnowledgeScope = {
|
|
36
|
+
readonly kind: "capsule";
|
|
37
|
+
readonly capsuleId: KnowledgeCapsuleId;
|
|
38
|
+
readonly connectedAtMs: number;
|
|
39
|
+
} | {
|
|
40
|
+
readonly kind: "capsule-set";
|
|
41
|
+
readonly capsuleSetId: CapsuleSetId;
|
|
42
|
+
readonly connectedAtMs: number;
|
|
43
|
+
};
|
|
44
|
+
export interface Chat {
|
|
45
|
+
readonly id: string;
|
|
46
|
+
readonly projectPath: string;
|
|
47
|
+
readonly title: string;
|
|
48
|
+
readonly selectedModel: string;
|
|
49
|
+
readonly branchLabel: string | undefined;
|
|
50
|
+
readonly status: "open" | "closed" | undefined;
|
|
51
|
+
readonly connectedScopes?: readonly ChatConnectedScope[];
|
|
52
|
+
readonly connectedScope: ChatConnectedScope | undefined;
|
|
53
|
+
readonly localKnowledgeScopes?: readonly ChatLocalKnowledgeScope[];
|
|
54
|
+
readonly localKnowledgeScope: ChatLocalKnowledgeScope | undefined;
|
|
55
|
+
readonly createdAt: number;
|
|
56
|
+
readonly updatedAt: number;
|
|
57
|
+
}
|
|
58
|
+
export type ChatRole = "user" | "assistant" | "system";
|
|
59
|
+
export type WorkflowStatus = "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
60
|
+
export interface ChatMessage {
|
|
61
|
+
readonly id: string;
|
|
62
|
+
readonly chatId: string;
|
|
63
|
+
readonly role: ChatRole;
|
|
64
|
+
readonly content: string;
|
|
65
|
+
readonly timestamp: number;
|
|
66
|
+
readonly runId: string | undefined;
|
|
67
|
+
readonly workflowId: string | undefined;
|
|
68
|
+
readonly workflowStatus: WorkflowStatus | undefined;
|
|
69
|
+
readonly shortResult: string | undefined;
|
|
70
|
+
readonly taskType: string | undefined;
|
|
71
|
+
}
|
|
72
|
+
export interface CreateChatOptions {
|
|
73
|
+
readonly branchLabel?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface UpdateProjectPatch {
|
|
76
|
+
readonly name?: string;
|
|
77
|
+
readonly favorite?: boolean;
|
|
78
|
+
}
|
|
79
|
+
export interface UpdateChatPatch {
|
|
80
|
+
readonly title?: string;
|
|
81
|
+
readonly selectedModel?: string;
|
|
82
|
+
readonly branchLabel?: string;
|
|
83
|
+
readonly status?: "open" | "closed";
|
|
84
|
+
readonly connectedScopes?: readonly ChatConnectedScope[] | null;
|
|
85
|
+
readonly connectedScope?: ChatConnectedScope | null;
|
|
86
|
+
readonly localKnowledgeScopes?: readonly ChatLocalKnowledgeScope[] | null;
|
|
87
|
+
readonly localKnowledgeScope?: ChatLocalKnowledgeScope | null;
|
|
88
|
+
}
|
|
89
|
+
export interface NewChatMessage {
|
|
90
|
+
readonly chatId: string;
|
|
91
|
+
readonly role: ChatRole;
|
|
92
|
+
readonly content: string;
|
|
93
|
+
readonly timestamp: number;
|
|
94
|
+
readonly runId: string | undefined;
|
|
95
|
+
readonly workflowId: string | undefined;
|
|
96
|
+
readonly workflowStatus: WorkflowStatus | undefined;
|
|
97
|
+
readonly shortResult: string | undefined;
|
|
98
|
+
readonly taskType: string | undefined;
|
|
99
|
+
}
|
|
100
|
+
export interface UpdateChatMessagePatch {
|
|
101
|
+
readonly workflowStatus?: WorkflowStatus;
|
|
102
|
+
readonly shortResult?: string;
|
|
103
|
+
readonly taskType?: string;
|
|
104
|
+
}
|
|
105
|
+
export interface ProjectWithAvailability extends Project {
|
|
106
|
+
readonly available: boolean;
|
|
107
|
+
}
|
|
108
|
+
export type ChatStatus = "open" | "closed";
|
|
109
|
+
export type ChatMessageRole = ChatRole;
|
|
110
|
+
export type ChatWorkflowStatus = WorkflowStatus;
|
|
111
|
+
export interface PatchChatMessageBody {
|
|
112
|
+
readonly workflowStatus?: ChatWorkflowStatus;
|
|
113
|
+
readonly shortResult?: string;
|
|
114
|
+
readonly taskType?: string;
|
|
115
|
+
}
|
|
116
|
+
export interface PatchMessageResponse {
|
|
117
|
+
readonly message: ChatMessage;
|
|
118
|
+
}
|
|
119
|
+
export interface ProjectsResponse {
|
|
120
|
+
readonly projects: readonly ProjectWithAvailability[];
|
|
121
|
+
}
|
|
122
|
+
export interface ProjectResponse {
|
|
123
|
+
readonly project: ProjectWithAvailability;
|
|
124
|
+
}
|
|
125
|
+
export interface ChatsResponse {
|
|
126
|
+
readonly chats: readonly Chat[];
|
|
127
|
+
}
|
|
128
|
+
export interface ChatResponse {
|
|
129
|
+
readonly chat: Chat;
|
|
130
|
+
}
|
|
131
|
+
export interface MessagesResponse {
|
|
132
|
+
readonly messages: readonly ChatMessage[];
|
|
133
|
+
}
|
|
134
|
+
export interface MessageResponse {
|
|
135
|
+
readonly message: ChatMessage;
|
|
136
|
+
}
|
|
137
|
+
export interface GroundedWorkflowHandoffRequest {
|
|
138
|
+
readonly assistantMessageId: string;
|
|
139
|
+
readonly chatId: string;
|
|
140
|
+
readonly modelId: string;
|
|
141
|
+
readonly workflowKind: WorkflowKind;
|
|
142
|
+
readonly input: Record<string, unknown>;
|
|
143
|
+
readonly editablePaths: readonly string[];
|
|
144
|
+
readonly expectedChecks?: readonly ExpectedCheck[] | undefined;
|
|
145
|
+
readonly unknowns?: readonly string[] | undefined;
|
|
146
|
+
readonly requestedAtMs: number;
|
|
147
|
+
}
|
|
148
|
+
export interface GroundedWorkflowHandoffResponse {
|
|
149
|
+
readonly run: {
|
|
150
|
+
readonly runId: string;
|
|
151
|
+
readonly fingerprint: string;
|
|
152
|
+
};
|
|
153
|
+
readonly messages: readonly ChatMessage[];
|
|
154
|
+
}
|
|
155
|
+
export interface DesktopChatBootstrapResponse {
|
|
156
|
+
readonly project: ProjectWithAvailability;
|
|
157
|
+
readonly chat: Chat;
|
|
158
|
+
readonly messages: readonly ChatMessage[];
|
|
159
|
+
readonly projects: readonly ProjectWithAvailability[];
|
|
160
|
+
readonly chats: readonly Chat[];
|
|
161
|
+
}
|
|
162
|
+
export interface DesktopChatSendUsage {
|
|
163
|
+
readonly requestId: string;
|
|
164
|
+
readonly promptTokens: number;
|
|
165
|
+
readonly completionTokens: number;
|
|
166
|
+
readonly latencyMs: number;
|
|
167
|
+
}
|
|
168
|
+
export interface ConversationMemoryScopeContextWire {
|
|
169
|
+
readonly userId: string;
|
|
170
|
+
readonly workspaceId?: string | undefined;
|
|
171
|
+
readonly projectId?: string | undefined;
|
|
172
|
+
readonly conversationId?: string | undefined;
|
|
173
|
+
}
|
|
174
|
+
export interface ConversationMemoryRequestWire {
|
|
175
|
+
readonly enabled?: boolean | undefined;
|
|
176
|
+
readonly budgetTokens?: number | undefined;
|
|
177
|
+
readonly context: ConversationMemoryScopeContextWire;
|
|
178
|
+
}
|
|
179
|
+
export interface ConversationMemoryContextEntryWire {
|
|
180
|
+
readonly memoryId: string;
|
|
181
|
+
readonly bodyExcerpt: string;
|
|
182
|
+
readonly inclusionReason: string;
|
|
183
|
+
readonly sourceKind: MemorySourceKind;
|
|
184
|
+
readonly captureRationale?: string | undefined;
|
|
185
|
+
readonly sensitivity: MemorySensitivity;
|
|
186
|
+
readonly confidence: number;
|
|
187
|
+
readonly status: MemoryStatus;
|
|
188
|
+
readonly capturedAt: number;
|
|
189
|
+
}
|
|
190
|
+
export interface ConversationMemoryContextWire {
|
|
191
|
+
readonly enabled: boolean;
|
|
192
|
+
readonly text: string;
|
|
193
|
+
readonly memories: readonly ConversationMemoryContextEntryWire[];
|
|
194
|
+
readonly budget: {
|
|
195
|
+
readonly tokens: number;
|
|
196
|
+
readonly used: number;
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
export type ConversationMemoryActionWire = {
|
|
200
|
+
readonly kind: "candidate";
|
|
201
|
+
readonly proposalId: string;
|
|
202
|
+
readonly body: string;
|
|
203
|
+
readonly scopeLabel: string;
|
|
204
|
+
readonly requiresApproval: boolean;
|
|
205
|
+
} | {
|
|
206
|
+
readonly kind: "update";
|
|
207
|
+
readonly memoryId: string;
|
|
208
|
+
readonly bodyPatch?: string | undefined;
|
|
209
|
+
} | {
|
|
210
|
+
readonly kind: "forget";
|
|
211
|
+
readonly memoryId: string;
|
|
212
|
+
readonly requiresConfirmation: boolean;
|
|
213
|
+
} | {
|
|
214
|
+
readonly kind: "rejected";
|
|
215
|
+
readonly reason: string;
|
|
216
|
+
};
|
|
217
|
+
export interface ConversationMemoryResultWire {
|
|
218
|
+
readonly context: ConversationMemoryContextWire;
|
|
219
|
+
readonly actions: readonly ConversationMemoryActionWire[];
|
|
220
|
+
}
|
|
221
|
+
export interface DesktopChatSendResponse {
|
|
222
|
+
readonly chat: Chat;
|
|
223
|
+
readonly messages: readonly ChatMessage[];
|
|
224
|
+
readonly usage?: DesktopChatSendUsage;
|
|
225
|
+
readonly memory?: ConversationMemoryResultWire;
|
|
226
|
+
}
|
|
227
|
+
export interface ConversationDocumentContextWire {
|
|
228
|
+
readonly id: string;
|
|
229
|
+
readonly displayName: string;
|
|
230
|
+
readonly mimeType: string;
|
|
231
|
+
readonly sizeBytes: number;
|
|
232
|
+
readonly extractedBytes: number;
|
|
233
|
+
readonly truncated: boolean;
|
|
234
|
+
readonly truncationMarker?: string | undefined;
|
|
235
|
+
readonly text: string;
|
|
236
|
+
}
|
|
237
|
+
export interface ConversationAttachmentDescriptorWire {
|
|
238
|
+
readonly id: string;
|
|
239
|
+
readonly kind: "image" | "document";
|
|
240
|
+
readonly name: string;
|
|
241
|
+
readonly mimeType: string;
|
|
242
|
+
readonly sizeBytes: number;
|
|
243
|
+
}
|
|
244
|
+
export interface DesktopChatSendRequestWire {
|
|
245
|
+
readonly chatId: string;
|
|
246
|
+
readonly projectPath: string;
|
|
247
|
+
readonly content: string;
|
|
248
|
+
readonly modelId?: string | undefined;
|
|
249
|
+
readonly documentContext?: readonly ConversationDocumentContextWire[] | undefined;
|
|
250
|
+
readonly attachments?: readonly ConversationAttachmentDescriptorWire[] | undefined;
|
|
251
|
+
}
|
|
252
|
+
export interface SafeProviderConfig {
|
|
253
|
+
readonly modelId: string;
|
|
254
|
+
readonly credentialHeaderName: string;
|
|
255
|
+
readonly timeoutMs: number;
|
|
256
|
+
readonly maxRetries: number;
|
|
257
|
+
readonly retryBaseDelayMs: number;
|
|
258
|
+
}
|
|
259
|
+
export interface SafeCircuitBreakerConfig {
|
|
260
|
+
readonly failureThreshold: number;
|
|
261
|
+
readonly cooldownMs: number;
|
|
262
|
+
readonly halfOpenProbes: number;
|
|
263
|
+
}
|
|
264
|
+
export interface SafeGatewayConfig {
|
|
265
|
+
readonly providers: readonly SafeProviderConfig[];
|
|
266
|
+
readonly circuitBreaker: SafeCircuitBreakerConfig;
|
|
267
|
+
readonly capabilities?: readonly ModelCapability[];
|
|
268
|
+
readonly grounding?: GroundingLimits;
|
|
269
|
+
}
|
|
270
|
+
export type WorkflowInputType = "string" | "boolean" | "string[]" | "object";
|
|
271
|
+
export interface WorkflowModelOptions {
|
|
272
|
+
readonly arbitrary: boolean;
|
|
273
|
+
readonly preferredCostClass: "low" | "medium" | "high";
|
|
274
|
+
}
|
|
275
|
+
export interface ExplainPlanInputSpec {
|
|
276
|
+
readonly inputs: readonly {
|
|
277
|
+
readonly name: string;
|
|
278
|
+
readonly type: WorkflowInputType;
|
|
279
|
+
readonly required: boolean;
|
|
280
|
+
}[];
|
|
281
|
+
readonly defaultLimits: Readonly<Record<string, unknown>>;
|
|
282
|
+
}
|
|
283
|
+
export interface VerifyInputSpec {
|
|
284
|
+
readonly inputs: readonly {
|
|
285
|
+
readonly name: string;
|
|
286
|
+
readonly type: WorkflowInputType;
|
|
287
|
+
readonly required: boolean;
|
|
288
|
+
}[];
|
|
289
|
+
readonly defaultLimits: Readonly<Record<string, unknown>>;
|
|
290
|
+
}
|
|
291
|
+
import type { WorkflowDescriptor } from "./workflow-descriptor.js";
|
|
292
|
+
export interface WorkflowsResponse {
|
|
293
|
+
readonly descriptors: readonly WorkflowDescriptor[];
|
|
294
|
+
readonly explainPlan: ExplainPlanInputSpec;
|
|
295
|
+
readonly verify: VerifyInputSpec;
|
|
296
|
+
}
|
|
297
|
+
export type AgentWorkflowId = "verify" | "explain-plan" | "unit-test-generation" | "bug-investigation";
|
|
298
|
+
export type UnitTestTargetKind = "file" | "module" | "changedFiles";
|
|
299
|
+
export interface AgentVerifyInput {
|
|
300
|
+
readonly targetFiles?: readonly string[];
|
|
301
|
+
}
|
|
302
|
+
export interface AgentExplainPlanInput {
|
|
303
|
+
readonly filePath: string;
|
|
304
|
+
readonly question?: string;
|
|
305
|
+
}
|
|
306
|
+
export interface AgentUnitTestInput {
|
|
307
|
+
readonly targetKind: UnitTestTargetKind;
|
|
308
|
+
readonly filePath?: string;
|
|
309
|
+
readonly moduleDir?: string;
|
|
310
|
+
readonly filePaths?: readonly string[];
|
|
311
|
+
}
|
|
312
|
+
export interface AgentBugInvestigationInput {
|
|
313
|
+
readonly description?: string;
|
|
314
|
+
readonly failingOutput?: string;
|
|
315
|
+
readonly stackTrace?: string;
|
|
316
|
+
readonly targetFiles?: readonly string[];
|
|
317
|
+
}
|
|
318
|
+
export interface GroundedAskRequest {
|
|
319
|
+
readonly chatId: string;
|
|
320
|
+
readonly content: string;
|
|
321
|
+
readonly modelId?: string | undefined;
|
|
322
|
+
}
|
|
323
|
+
export type GroundedCitationDocumentFormat = "docx" | "xlsx" | "pdf";
|
|
324
|
+
export interface GroundedEvidenceCitation {
|
|
325
|
+
readonly scopePath: string;
|
|
326
|
+
readonly lineRange: {
|
|
327
|
+
readonly startLine: number;
|
|
328
|
+
readonly endLine: number;
|
|
329
|
+
} | undefined;
|
|
330
|
+
readonly score: number;
|
|
331
|
+
readonly stableId: string;
|
|
332
|
+
readonly documentFormat?: GroundedCitationDocumentFormat;
|
|
333
|
+
readonly source?: string;
|
|
334
|
+
readonly marker?: number;
|
|
335
|
+
}
|
|
336
|
+
export interface GroundedUncertainty {
|
|
337
|
+
readonly kind: string;
|
|
338
|
+
readonly claim: string;
|
|
339
|
+
}
|
|
340
|
+
export interface GroundedAnswerContextPackSummary {
|
|
341
|
+
readonly schemaVersion: typeof CONNECTED_CONTEXT_SCHEMA_VERSION;
|
|
342
|
+
readonly scopeId: string;
|
|
343
|
+
readonly scopeKind: SelectedScopeKind;
|
|
344
|
+
readonly fileCount: number;
|
|
345
|
+
readonly queryKind: RetrievalQueryKind;
|
|
346
|
+
readonly usage: ExplorationUsage;
|
|
347
|
+
readonly budget: ExplorationBudget;
|
|
348
|
+
readonly citationCount: number;
|
|
349
|
+
readonly omittedCount: number;
|
|
350
|
+
readonly omittedCounts: Readonly<Record<CandidateOmissionReason, number>>;
|
|
351
|
+
readonly uncertaintyCount: number;
|
|
352
|
+
readonly elapsedMs: number;
|
|
353
|
+
}
|
|
354
|
+
export interface LocalKnowledgeGroundedAnswerContextSummary {
|
|
355
|
+
readonly kind: "local-knowledge";
|
|
356
|
+
readonly scopeKind: "capsule" | "capsule-set";
|
|
357
|
+
readonly scopeId: string;
|
|
358
|
+
readonly scopeLabel: string;
|
|
359
|
+
readonly capsuleCount: number;
|
|
360
|
+
readonly sourceCount: number;
|
|
361
|
+
readonly citationCount: number;
|
|
362
|
+
readonly referenceBudget: number;
|
|
363
|
+
readonly referencesUsed: number;
|
|
364
|
+
}
|
|
365
|
+
export declare function buildGroundedAnswerContextPackSummary(pack: ConnectedContextPack, citationCount: number, elapsedMs: number): GroundedAnswerContextPackSummary;
|
|
366
|
+
export interface ConnectedContextGroundedAnswer {
|
|
367
|
+
readonly groundingKind: "connected-context";
|
|
368
|
+
readonly userMessageId: string;
|
|
369
|
+
readonly assistantMessageId: string;
|
|
370
|
+
readonly evidenceRunId?: string | undefined;
|
|
371
|
+
readonly evidenceRunIds?: readonly string[] | undefined;
|
|
372
|
+
readonly content: string;
|
|
373
|
+
readonly citations: readonly GroundedEvidenceCitation[];
|
|
374
|
+
readonly uncertainty: readonly GroundedUncertainty[];
|
|
375
|
+
readonly omittedCount: number;
|
|
376
|
+
readonly elapsedMs: number;
|
|
377
|
+
readonly contextPack: GroundedAnswerContextPackSummary;
|
|
378
|
+
}
|
|
379
|
+
export interface LocalKnowledgeEvidenceCitation {
|
|
380
|
+
readonly stableId: string;
|
|
381
|
+
readonly marker: string;
|
|
382
|
+
readonly label: string;
|
|
383
|
+
readonly score: number;
|
|
384
|
+
readonly lineage: {
|
|
385
|
+
readonly capsuleId: KnowledgeCapsuleId;
|
|
386
|
+
readonly sourceId: KnowledgeSourceId;
|
|
387
|
+
readonly documentId: DocumentId;
|
|
388
|
+
readonly chunkId: ChunkId;
|
|
389
|
+
};
|
|
390
|
+
readonly source?: string;
|
|
391
|
+
}
|
|
392
|
+
export interface LocalKnowledgeGroundedAnswer {
|
|
393
|
+
readonly groundingKind: "local-knowledge";
|
|
394
|
+
readonly userMessageId: string;
|
|
395
|
+
readonly assistantMessageId: string;
|
|
396
|
+
readonly evidenceRunId?: string | undefined;
|
|
397
|
+
readonly content: string;
|
|
398
|
+
readonly citations: readonly LocalKnowledgeEvidenceCitation[];
|
|
399
|
+
readonly uncertainty: readonly GroundedUncertainty[];
|
|
400
|
+
readonly omittedCount: number;
|
|
401
|
+
readonly elapsedMs: number;
|
|
402
|
+
readonly noEvidence: boolean;
|
|
403
|
+
readonly noEvidenceReason?: string | undefined;
|
|
404
|
+
readonly contextPack: LocalKnowledgeGroundedAnswerContextSummary;
|
|
405
|
+
}
|
|
406
|
+
export interface HybridGroundedAnswerContextSummary {
|
|
407
|
+
readonly kind: "hybrid";
|
|
408
|
+
readonly folderSourceCount: number;
|
|
409
|
+
readonly connectorSourceCount: number;
|
|
410
|
+
readonly folder: GroundedAnswerContextPackSummary;
|
|
411
|
+
readonly knowledge: LocalKnowledgeGroundedAnswerContextSummary;
|
|
412
|
+
}
|
|
413
|
+
export interface HybridGroundedAnswer {
|
|
414
|
+
readonly groundingKind: "hybrid";
|
|
415
|
+
readonly userMessageId: string;
|
|
416
|
+
readonly assistantMessageId: string;
|
|
417
|
+
readonly evidenceRunId?: string | undefined;
|
|
418
|
+
readonly evidenceRunIds?: readonly string[] | undefined;
|
|
419
|
+
readonly content: string;
|
|
420
|
+
readonly citations: readonly GroundedEvidenceCitation[];
|
|
421
|
+
readonly knowledgeCitations: readonly LocalKnowledgeEvidenceCitation[];
|
|
422
|
+
readonly uncertainty: readonly GroundedUncertainty[];
|
|
423
|
+
readonly omittedCount: number;
|
|
424
|
+
readonly elapsedMs: number;
|
|
425
|
+
readonly contextPack: HybridGroundedAnswerContextSummary;
|
|
426
|
+
}
|
|
427
|
+
export type GroundedAnswer = ConnectedContextGroundedAnswer | LocalKnowledgeGroundedAnswer | HybridGroundedAnswer;
|
|
428
|
+
export type BffErrorCode = "BAD_REQUEST" | "NOT_FOUND" | "NOT_APPLIABLE" | "EVIDENCE_SCHEMA" | "WORKSPACE_FILE_TOO_LARGE" | "WORKSPACE_NOT_FOUND" | "WORKSPACE_PATH_DENIED" | "WORKSPACE_PATH_ESCAPE" | "WORKSPACE_READ_FAILED" | "CONVERSATION_UNAVAILABLE_MODEL" | "CONVERSATION_UNSUPPORTED_MODALITY" | "CONVERSATION_UNSUPPORTED_FILE_TYPE" | "CONVERSATION_OVERSIZED_CONTEXT" | "INTERNAL";
|
|
429
|
+
export interface BffError {
|
|
430
|
+
readonly error: {
|
|
431
|
+
readonly code: string;
|
|
432
|
+
readonly message: string;
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
export type RunStatus = "running" | "completed" | "dry-run" | "rejected" | "cancelled" | "failed" | "fix-applied" | "fix-proposed" | "investigation-only";
|
|
436
|
+
export interface ChangedFile {
|
|
437
|
+
readonly path: string;
|
|
438
|
+
readonly kind: string;
|
|
439
|
+
readonly addedLines: number;
|
|
440
|
+
readonly removedLines: number;
|
|
441
|
+
readonly elevatedReview: boolean;
|
|
442
|
+
}
|
|
443
|
+
export interface RunReportVerificationStep {
|
|
444
|
+
readonly kind: string;
|
|
445
|
+
readonly status: string;
|
|
446
|
+
readonly command: string;
|
|
447
|
+
readonly durationMs?: number;
|
|
448
|
+
}
|
|
449
|
+
export interface RunReportHypothesis {
|
|
450
|
+
readonly rootCause?: string;
|
|
451
|
+
readonly regressionTestStrategy?: string;
|
|
452
|
+
readonly uncertainty?: string;
|
|
453
|
+
readonly confidence?: string;
|
|
454
|
+
}
|
|
455
|
+
export interface RunReportUsage {
|
|
456
|
+
readonly requestId: string;
|
|
457
|
+
readonly promptTokens: number;
|
|
458
|
+
readonly completionTokens: number;
|
|
459
|
+
readonly latencyMs: number;
|
|
460
|
+
}
|
|
461
|
+
export interface RunReport {
|
|
462
|
+
readonly status: RunStatus;
|
|
463
|
+
readonly modelId?: string;
|
|
464
|
+
readonly durationMs?: number;
|
|
465
|
+
readonly report?: string;
|
|
466
|
+
readonly overallStatus?: string;
|
|
467
|
+
readonly results?: readonly RunReportVerificationStep[];
|
|
468
|
+
readonly proposedDiff?: string;
|
|
469
|
+
readonly dryRunPreview?: string;
|
|
470
|
+
readonly changedFiles?: readonly ChangedFile[];
|
|
471
|
+
readonly addedTestFiles?: readonly {
|
|
472
|
+
readonly path: string;
|
|
473
|
+
readonly estimatedTestCount?: number;
|
|
474
|
+
}[];
|
|
475
|
+
readonly coveredBehavior?: string;
|
|
476
|
+
readonly knownGaps?: string;
|
|
477
|
+
readonly verificationSkipReason?: string;
|
|
478
|
+
readonly nextActions?: readonly string[];
|
|
479
|
+
readonly failureReason?: string;
|
|
480
|
+
readonly hypothesis?: RunReportHypothesis;
|
|
481
|
+
readonly verificationSummary?: VerificationAuditSummary;
|
|
482
|
+
readonly usage?: RunReportUsage;
|
|
483
|
+
readonly applyReport?: RunReport;
|
|
484
|
+
readonly appliedAt?: number;
|
|
485
|
+
}
|
|
486
|
+
export type EvidenceOutcome = "completed" | "cancelled" | "failed" | "limit-exceeded";
|
|
487
|
+
export interface EvidenceListEntry {
|
|
488
|
+
readonly runId: string;
|
|
489
|
+
readonly taskType: string;
|
|
490
|
+
readonly outcome: EvidenceOutcome;
|
|
491
|
+
readonly startedAt: number;
|
|
492
|
+
readonly finishedAt: number;
|
|
493
|
+
readonly modelId: string;
|
|
494
|
+
readonly workspaceRoot?: string;
|
|
495
|
+
}
|
|
496
|
+
export interface TerminalPolicySummary {
|
|
497
|
+
readonly commands: readonly string[];
|
|
498
|
+
readonly limits: {
|
|
499
|
+
readonly maxOutputBytes: number;
|
|
500
|
+
readonly defaultTimeoutMs: number;
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
export interface TerminalDirectoryRoot {
|
|
504
|
+
readonly label: string;
|
|
505
|
+
readonly path: string;
|
|
506
|
+
}
|
|
507
|
+
export interface TerminalDirectoryEntry {
|
|
508
|
+
readonly name: string;
|
|
509
|
+
readonly path: string;
|
|
510
|
+
}
|
|
511
|
+
export interface TerminalDirectoryListing {
|
|
512
|
+
readonly path: string;
|
|
513
|
+
readonly parent: string | null;
|
|
514
|
+
readonly entries: readonly TerminalDirectoryEntry[];
|
|
515
|
+
readonly roots: readonly TerminalDirectoryRoot[];
|
|
516
|
+
}
|
|
517
|
+
export interface TerminalExecutionInput {
|
|
518
|
+
readonly projectId: string;
|
|
519
|
+
readonly command: string;
|
|
520
|
+
readonly args: readonly string[];
|
|
521
|
+
readonly cwd?: string;
|
|
522
|
+
readonly timeoutMs?: number;
|
|
523
|
+
readonly requestId?: string;
|
|
524
|
+
}
|
|
525
|
+
export interface TerminalExecutionResult {
|
|
526
|
+
readonly executionId: string;
|
|
527
|
+
readonly exitCode: number | null;
|
|
528
|
+
readonly stdout: string;
|
|
529
|
+
readonly stderr: string;
|
|
530
|
+
readonly durationMs: number;
|
|
531
|
+
readonly truncated: boolean;
|
|
532
|
+
readonly timedOut: boolean;
|
|
533
|
+
}
|
|
534
|
+
export type TerminalEventKind = "execution-started" | "execution-completed" | "execution-failed" | "execution-cancelled";
|
|
535
|
+
export interface TerminalEventEnvelope {
|
|
536
|
+
readonly kind: TerminalEventKind;
|
|
537
|
+
readonly executionId: string;
|
|
538
|
+
readonly payload: Readonly<Record<string, unknown>>;
|
|
539
|
+
}
|
|
540
|
+
export interface FilesDirectoryRoot {
|
|
541
|
+
readonly label: string;
|
|
542
|
+
readonly path: string;
|
|
543
|
+
}
|
|
544
|
+
export interface FilesDirectoryEntry {
|
|
545
|
+
readonly name: string;
|
|
546
|
+
readonly path: string;
|
|
547
|
+
}
|
|
548
|
+
export interface FilesDirectoryListing {
|
|
549
|
+
readonly path: string;
|
|
550
|
+
readonly parent: string | null;
|
|
551
|
+
readonly entries: readonly FilesDirectoryEntry[];
|
|
552
|
+
readonly roots: readonly FilesDirectoryRoot[];
|
|
553
|
+
}
|
|
554
|
+
export type FilesEntryKind = "directory" | "file" | "symlink";
|
|
555
|
+
export interface FilesTreeEntry {
|
|
556
|
+
readonly name: string;
|
|
557
|
+
readonly path: string;
|
|
558
|
+
readonly kind: FilesEntryKind;
|
|
559
|
+
readonly sizeBytes: number;
|
|
560
|
+
readonly modifiedAt: number;
|
|
561
|
+
readonly extension: string | null;
|
|
562
|
+
readonly symlink: boolean;
|
|
563
|
+
readonly readable: boolean;
|
|
564
|
+
}
|
|
565
|
+
export interface FilesTreeResponse {
|
|
566
|
+
readonly root: string;
|
|
567
|
+
readonly path: string;
|
|
568
|
+
readonly entries: readonly FilesTreeEntry[];
|
|
569
|
+
readonly truncated: boolean;
|
|
570
|
+
}
|
|
571
|
+
export interface FilesPreviewBase {
|
|
572
|
+
readonly root: string;
|
|
573
|
+
readonly path: string;
|
|
574
|
+
readonly name: string;
|
|
575
|
+
readonly sizeBytes: number;
|
|
576
|
+
readonly modifiedAt: number;
|
|
577
|
+
readonly extension: string | null;
|
|
578
|
+
readonly mime: string;
|
|
579
|
+
readonly symlink: boolean;
|
|
580
|
+
}
|
|
581
|
+
export type FilesPreviewResponse = (FilesPreviewBase & {
|
|
582
|
+
readonly kind: "text";
|
|
583
|
+
readonly content: string;
|
|
584
|
+
readonly truncated: boolean;
|
|
585
|
+
readonly maxBytes: number;
|
|
586
|
+
}) | (FilesPreviewBase & {
|
|
587
|
+
readonly kind: "image";
|
|
588
|
+
readonly dataUrl: string;
|
|
589
|
+
readonly maxBytes: number;
|
|
590
|
+
}) | (FilesPreviewBase & {
|
|
591
|
+
readonly kind: "binary";
|
|
592
|
+
readonly reason: "unsupported" | "too_large";
|
|
593
|
+
readonly maxBytes?: number;
|
|
594
|
+
});
|
|
595
|
+
export interface FilesContentResponse extends FilesPreviewBase {
|
|
596
|
+
readonly content: string;
|
|
597
|
+
readonly maxBytes: number;
|
|
598
|
+
readonly session: EditorDocumentSession;
|
|
599
|
+
}
|
|
600
|
+
export interface FilesWriteRequest {
|
|
601
|
+
readonly root: string;
|
|
602
|
+
readonly path: string;
|
|
603
|
+
readonly content: string;
|
|
604
|
+
readonly expectedModifiedAt?: number;
|
|
605
|
+
readonly baseVersion?: EditorDocumentVersion;
|
|
606
|
+
}
|
|
607
|
+
export type { EditorDocumentSession, EditorDocumentVersion, EditorSessionAiProvenance, EditorSessionErrorCode, } from "./editor-session.js";
|
|
608
|
+
export interface BrowserViewportPx {
|
|
609
|
+
readonly width: number;
|
|
610
|
+
readonly height: number;
|
|
611
|
+
}
|
|
612
|
+
export interface CdpReachability {
|
|
613
|
+
readonly reachable: boolean;
|
|
614
|
+
readonly userAgent: string | null;
|
|
615
|
+
readonly browserVersion: string | null;
|
|
616
|
+
readonly webSocketDebuggerUrl: string | null;
|
|
617
|
+
}
|
|
618
|
+
export interface BrowserSessionMeta {
|
|
619
|
+
readonly sessionId: string;
|
|
620
|
+
readonly cdpPort: number;
|
|
621
|
+
readonly targetId: string;
|
|
622
|
+
readonly status: "open" | "closed";
|
|
623
|
+
readonly createdAt: number;
|
|
624
|
+
}
|
|
625
|
+
export interface BrowserNavigateResult {
|
|
626
|
+
readonly originOnly: string;
|
|
627
|
+
readonly httpStatus: number | null;
|
|
628
|
+
}
|
|
629
|
+
export type BrowserScreenshotResult = {
|
|
630
|
+
readonly seq: number;
|
|
631
|
+
readonly viewportPx: BrowserViewportPx;
|
|
632
|
+
readonly dataBase64: string;
|
|
633
|
+
readonly persisted: false;
|
|
634
|
+
} | {
|
|
635
|
+
readonly seq: number;
|
|
636
|
+
readonly viewportPx: BrowserViewportPx;
|
|
637
|
+
readonly persisted: true;
|
|
638
|
+
readonly path: string;
|
|
639
|
+
readonly sha256: string;
|
|
640
|
+
readonly bytes: number;
|
|
641
|
+
};
|
|
642
|
+
export interface BrowserContentResult {
|
|
643
|
+
readonly seq: number;
|
|
644
|
+
readonly byteLength: number;
|
|
645
|
+
readonly redactedHtml: string;
|
|
646
|
+
}
|
|
647
|
+
export type BrowserEventKind = "session-opened" | "navigated" | "screenshot-captured" | "page-content-captured" | "session-closed" | "trust-warning" | "error";
|
|
648
|
+
export interface BrowserEventEnvelope {
|
|
649
|
+
readonly schemaVersion?: "1";
|
|
650
|
+
readonly type?: string;
|
|
651
|
+
readonly runId?: string;
|
|
652
|
+
readonly fingerprint?: string;
|
|
653
|
+
readonly seq?: number;
|
|
654
|
+
readonly ts?: number;
|
|
655
|
+
readonly kind: BrowserEventKind;
|
|
656
|
+
readonly sessionId: string;
|
|
657
|
+
readonly payload: Readonly<Record<string, unknown>>;
|
|
658
|
+
}
|
|
659
|
+
export type { PromptEnhancementWireRequest, PromptEnhancementModelAvailability, PromptEnhancementModelRoutingReason, PromptEnhancementModelRouting, PromptEnhancementCandidateComparison, PromptEnhancementGroundingReadiness, PromptEnhancementGroundingReadinessStatus, PromptEnhancementGroundingReadinessReason, PromptEnhancementEvidenceReference, PromptEnhancementWireResponse, } from "./prompt-enhancer-bff.js";
|
|
660
|
+
export { PROMPT_ENHANCEMENT_LOCALE_MAX_CHARS, PROMPT_ENHANCEMENT_MODEL_ID_MAX_CHARS, PROMPT_ENHANCEMENT_DEFAULT_CANDIDATE_COUNT, PROMPT_ENHANCEMENT_MAX_CANDIDATE_COUNT, PROMPT_ENHANCEMENT_MODEL_AVAILABILITIES, validatePromptEnhancementWireRequest, } from "./prompt-enhancer-bff.js";
|
|
661
|
+
//# sourceMappingURL=bff-wire.d.ts.map
|