@spotpatch/shared 1.11.0 → 1.13.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/annotation-C0Me9mN2.d.cts +102 -0
- package/dist/annotation-C0Me9mN2.d.ts +102 -0
- package/dist/{chunk-RK46Y7LD.js → chunk-5CHYMRNS.js} +3 -2
- package/dist/chunk-5CHYMRNS.js.map +1 -0
- package/dist/chunk-C2PJ4UUU.js +195 -0
- package/dist/chunk-C2PJ4UUU.js.map +1 -0
- package/dist/chunk-DYTWEIES.js +89 -0
- package/dist/chunk-DYTWEIES.js.map +1 -0
- package/dist/{chunk-JGOIBOFI.js → chunk-FPDSZDP2.js} +16 -2
- package/dist/chunk-FPDSZDP2.js.map +1 -0
- package/dist/chunk-IUTOVI5G.js +584 -0
- package/dist/chunk-IUTOVI5G.js.map +1 -0
- package/dist/{chunk-JU5HIWX7.js → chunk-YQ5GL523.js} +8 -173
- package/dist/chunk-YQ5GL523.js.map +1 -0
- package/dist/contextual-ask-B0mCFn92.d.cts +1451 -0
- package/dist/contextual-ask-B0mCFn92.d.ts +1451 -0
- package/dist/contextual-ask-browser.cjs +200 -0
- package/dist/contextual-ask-browser.cjs.map +1 -0
- package/dist/contextual-ask-browser.d.cts +31 -0
- package/dist/contextual-ask-browser.d.ts +31 -0
- package/dist/contextual-ask-browser.js +66 -0
- package/dist/contextual-ask-browser.js.map +1 -0
- package/dist/contextual-ask-node.cjs +968 -0
- package/dist/contextual-ask-node.cjs.map +1 -0
- package/dist/contextual-ask-node.d.cts +14 -0
- package/dist/contextual-ask-node.d.ts +14 -0
- package/dist/contextual-ask-node.js +122 -0
- package/dist/contextual-ask-node.js.map +1 -0
- package/dist/{data-flow-runtime-oKZOBYAB.d.ts → data-flow-runtime-D8HPSb2i.d.cts} +14 -13
- package/dist/{data-flow-runtime-BiouPr1G.d.cts → data-flow-runtime-vKeEaJgT.d.ts} +14 -13
- package/dist/data-flow-runtime.cjs +4 -1
- package/dist/data-flow-runtime.cjs.map +1 -1
- package/dist/data-flow-runtime.d.cts +2 -2
- package/dist/data-flow-runtime.d.ts +2 -2
- package/dist/data-flow-runtime.js +2 -2
- package/dist/{endpoints-GedF44M2.d.cts → endpoints-O3ohYyAo.d.cts} +7 -1
- package/dist/{endpoints-GedF44M2.d.ts → endpoints-O3ohYyAo.d.ts} +7 -1
- package/dist/error-code-DRz2eqcB.d.cts +63 -0
- package/dist/error-code-DRz2eqcB.d.ts +63 -0
- package/dist/external-agent-node.cjs +142 -121
- package/dist/external-agent-node.cjs.map +1 -1
- package/dist/external-agent-node.d.cts +28 -27
- package/dist/external-agent-node.d.ts +28 -27
- package/dist/external-agent-node.js +4 -2
- package/dist/external-agent-node.js.map +1 -1
- package/dist/{external-handoff--lT9XQEw.d.ts → external-handoff-DighrWn8.d.ts} +33 -133
- package/dist/{external-handoff--lT9XQEw.d.cts → external-handoff-DwtFFR6F.d.cts} +33 -133
- package/dist/external-handoff-browser.cjs +2 -0
- package/dist/external-handoff-browser.cjs.map +1 -1
- package/dist/external-handoff-browser.d.cts +4 -3
- package/dist/external-handoff-browser.d.ts +4 -3
- package/dist/external-handoff-browser.js +1 -1
- package/dist/index.cjs +1146 -423
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +106 -158
- package/dist/index.d.ts +106 -158
- package/dist/index.js +98 -17
- package/dist/index.js.map +1 -1
- package/package.json +29 -2
- package/dist/chunk-JGOIBOFI.js.map +0 -1
- package/dist/chunk-JU5HIWX7.js.map +0 -1
- package/dist/chunk-RK46Y7LD.js.map +0 -1
- package/dist/{external-agent-control-BB-oicmw.d.cts → external-agent-control-CRBbjDDk.d.cts} +31 -31
- package/dist/{external-agent-control-BB-oicmw.d.ts → external-agent-control-CRBbjDDk.d.ts} +31 -31
package/dist/index.d.ts
CHANGED
|
@@ -1,71 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
1
|
+
import { E as ErrorCode } from './error-code-DRz2eqcB.js';
|
|
2
|
+
export { C as CONTEXTUAL_ASK_ERROR_CODES, a as ContextualAskErrorCode, b as ERROR_CODES, c as ERROR_CODE_VALUES, i as isErrorCode } from './error-code-DRz2eqcB.js';
|
|
3
|
+
import { C as ContextBudget, b as SPOTPATCH_LOCALE_PREFERENCES, S as SpotAnnotation } from './annotation-C0Me9mN2.js';
|
|
4
|
+
export { c as CodeContext, E as ElementContext, M as MAX_ANNOTATION_INSTRUCTION_CHARACTERS, d as MAX_ANNOTATION_TARGETS, e as MAX_TARGET_INSTRUCTION_CHARACTERS, f as MatchedStyleRule, P as PageContext, R as ReactContext, g as SPOTPATCH_LOCALES, h as SourceConfidence, i as SourceOrigin, j as SourceRef, a as SpotPatchLocale, k as SpotPatchLocalePreference, l as SpotTargetContext, m as StyleContext } from './annotation-C0Me9mN2.js';
|
|
5
|
+
export { A as ASK_ANSWER_WARNING_CODES, a as ASK_EXECUTOR_ANSWER_WARNING_CODES, b as ASK_FILE_COUNT_BUCKETS, c as ASK_JOB_STATUSES, d as ASK_READ_ACTIVITY_STATES, e as ASK_SOURCE_CONFIDENCES, f as AskAnswerBlock, K as AskAnswerDraft, L as AskAnswerDraftBlock, g as AskAnswerResult, h as AskAnswerWarning, i as AskAnswerWarningCode, M as AskDraftCitation, j as AskDraftOrigin, k as AskExecutorAnswerWarningCode, l as AskFileCountBucket, m as AskJobActionRequest, n as AskJobCreateRequest, o as AskJobEvent, p as AskJobEventsRequest, q as AskJobResultResponse, r as AskJobSnapshot, s as AskJobStatus, t as AskReadActivityState, u as AskSourceConfidence, v as AskSourceReference, C as CONTEXTUAL_ASK_EXECUTOR_KINDS, w as CONTEXTUAL_ASK_EXECUTOR_STATES, x as CONTEXTUAL_ASK_LIMITS, N as CONTEXTUAL_ASK_PERMISSION_PROFILE, y as CONTEXTUAL_ASK_SCHEMA_VERSION, z as ContextualAskCapability, B as ContextualAskCapabilityRequest, D as ContextualAskExecutorCapability, E as ContextualAskExecutorKind, O as ContextualAskExecutorPreference, F as ContextualAskExecutorState, P as ContextualAskOptions, S as SpotAskTaskEnvelope, G as SpotChangeTaskEnvelope, H as SpotSelectionContext, I as SpotSelectionTarget, J as SpotTaskEnvelope, Q as askAnswerBlockSchema, R as askAnswerDraftBlockSchema, T as askAnswerDraftSchema, U as askAnswerResultSchema, V as askAnswerWarningSchema, W as askDraftCitationSchema, X as askDraftOriginSchema, Y as askJobActionRequestSchema, Z as askJobCreateRequestSchema, _ as askJobEventSchema, $ as askJobEventsRequestSchema, a0 as askJobResultResponseSchema, a1 as askJobSnapshotSchema, a2 as askSourceReferenceSchema, a3 as contextualAskCapabilityRequestSchema, a4 as contextualAskCapabilitySchema, a5 as contextualAskExecutorCapabilitySchema, a6 as contextualAskExecutorPreferenceSchema, a7 as contextualAskOptionsSchema, a8 as spotAskTaskEnvelopeSchema, a9 as spotChangeTaskEnvelopeSchema, aa as spotSelectionContextSchema, ab as spotSelectionTargetSchema, ac as spotTaskEnvelopeSchema } from './contextual-ask-B0mCFn92.js';
|
|
6
|
+
import { R as ReportCompleteness, C as ComponentDataFlowReport, P as PageDataFlowReport, a as RuntimeDataFlowConfig } from './data-flow-runtime-vKeEaJgT.js';
|
|
7
|
+
export { A as AnalysisBaseline, b as AssociationKind, c as ComponentIdentity, D as DATA_FLOW_ASSOCIATION_KINDS, d as DATA_FLOW_DIAGNOSTIC_CODES, e as DATA_FLOW_EXECUTION_STATES, f as DATA_FLOW_FRESHNESS_STATES, g as DATA_FLOW_PROOF_STATES, h as DATA_FLOW_SCHEMA_VERSION, i as DATA_FLOW_URL_QUERY_KEY_LIMIT, j as DEFAULT_DATA_FLOW_LIMITS, k as DEFAULT_RUNTIME_DATA_FLOW_LIMITS, l as DataDependency, m as DataFlowCapability, n as DataFlowCapabilityReason, o as DataFlowDiagnostic, p as DataFlowDiagnosticCode, q as DataFlowLimits, r as DataParameter, s as DataResponseDescriptor, E as EvidenceRef, t as EvidenceSourceRef, u as ExecutionState, F as FreshnessState, N as NetworkObservation, v as ProofState, w as RequestOrigin, x as RuntimeDataFlowLimits, S as SanitizedObservedUrl, y as componentDataFlowReportSchema, z as dataDependencySchema, B as networkObservationSchema, G as pageDataFlowReportSchema, H as runtimeDataFlowConfigSchema } from './data-flow-runtime-vKeEaJgT.js';
|
|
5
8
|
import { z } from 'zod';
|
|
6
|
-
import { b as SPOTPATCH_API_BASE } from './endpoints-
|
|
7
|
-
export {
|
|
8
|
-
export { k as EXTERNAL_AGENT_ACTIONS, l as EXTERNAL_AGENT_AUTH_READINESS, m as EXTERNAL_AGENT_CONNECTION_STATES, n as EXTERNAL_AGENT_CONTROL_LIMITS, o as EXTERNAL_AGENT_CONTROL_SCHEMA_VERSION, p as EXTERNAL_AGENT_DELIVERY_STATUSES, q as EXTERNAL_AGENT_ERROR_CODES, r as EXTERNAL_AGENT_ERROR_RECOVERABILITY, s as EXTERNAL_AGENT_ERROR_STAGES, t as EXTERNAL_AGENT_EXECUTION_STATUSES, u as EXTERNAL_AGENT_GRANT_STATES, v as EXTERNAL_AGENT_MANAGED_ADAPTER_KINDS, w as EXTERNAL_AGENT_MANAGED_PHASES, x as EXTERNAL_AGENT_MANAGED_PROFILE, y as EXTERNAL_AGENT_MODES, z as EXTERNAL_AGENT_VALIDATION_OUTCOMES, E as ExternalAgentAction, a as ExternalAgentConnectionState, b as ExternalAgentControlCancelRequest, c as ExternalAgentControlConnectRequest, d as ExternalAgentControlDisconnectRequest, e as ExternalAgentControlStatus, f as ExternalAgentErrorCode, g as ExternalAgentEvent, h as ExternalAgentEventsRequest, i as ExternalAgentManagedResult, j as ExternalAgentResultRequest, A as externalAgentControlCancelRequestSchema, B as externalAgentControlConnectRequestSchema, C as externalAgentControlDisconnectRequestSchema, D as externalAgentControlStatusRequestSchema, F as externalAgentControlStatusSchema, G as externalAgentErrorSchema, H as externalAgentEventSchema, I as externalAgentEventsRequestSchema, J as externalAgentManagedResultSchema, K as externalAgentResultRequestSchema, L as managedCheckSummarySchema, M as managedFileSummarySchema, N as managedTaskStatusSchema, O as managedTimingSummarySchema } from './external-agent-control-
|
|
9
|
-
|
|
10
|
-
declare const ERROR_CODES: {
|
|
11
|
-
readonly INVALID_REQUEST: "INVALID_REQUEST";
|
|
12
|
-
readonly INVALID_TOKEN: "INVALID_TOKEN";
|
|
13
|
-
readonly ORIGIN_NOT_ALLOWED: "ORIGIN_NOT_ALLOWED";
|
|
14
|
-
readonly SOURCE_NOT_FOUND: "SOURCE_NOT_FOUND";
|
|
15
|
-
readonly SOURCE_OUTSIDE_ROOT: "SOURCE_OUTSIDE_ROOT";
|
|
16
|
-
readonly SOURCE_TOO_LARGE: "SOURCE_TOO_LARGE";
|
|
17
|
-
readonly EDITOR_OPEN_FAILED: "EDITOR_OPEN_FAILED";
|
|
18
|
-
readonly DATA_FLOW_DISABLED: "DATA_FLOW_DISABLED";
|
|
19
|
-
readonly DATA_FLOW_SOURCE_STALE: "DATA_FLOW_SOURCE_STALE";
|
|
20
|
-
readonly DATA_FLOW_ANALYSIS_CANCELLED: "DATA_FLOW_ANALYSIS_CANCELLED";
|
|
21
|
-
readonly AI_DISABLED: "AI_DISABLED";
|
|
22
|
-
readonly PROVIDER_NOT_CONFIGURED: "PROVIDER_NOT_CONFIGURED";
|
|
23
|
-
readonly PROVIDER_AUTH_FAILED: "PROVIDER_AUTH_FAILED";
|
|
24
|
-
readonly PROVIDER_PROTOCOL_UNSUPPORTED: "PROVIDER_PROTOCOL_UNSUPPORTED";
|
|
25
|
-
readonly MODEL_NOT_ALLOWED: "MODEL_NOT_ALLOWED";
|
|
26
|
-
readonly MODEL_TOOL_CALL_UNSUPPORTED: "MODEL_TOOL_CALL_UNSUPPORTED";
|
|
27
|
-
readonly PROVIDER_RATE_LIMITED: "PROVIDER_RATE_LIMITED";
|
|
28
|
-
readonly AGENT_BUSY: "AGENT_BUSY";
|
|
29
|
-
readonly AGENT_LIMIT_EXCEEDED: "AGENT_LIMIT_EXCEEDED";
|
|
30
|
-
readonly AGENT_CANCELLED: "AGENT_CANCELLED";
|
|
31
|
-
readonly EXTERNAL_HANDOFF_DISABLED: "EXTERNAL_HANDOFF_DISABLED";
|
|
32
|
-
readonly EXTERNAL_HANDOFF_UNAVAILABLE: "EXTERNAL_HANDOFF_UNAVAILABLE";
|
|
33
|
-
readonly HANDOFF_VALIDATION_FAILED: "HANDOFF_VALIDATION_FAILED";
|
|
34
|
-
readonly HANDOFF_SOURCE_STALE: "HANDOFF_SOURCE_STALE";
|
|
35
|
-
readonly HANDOFF_NOT_FOUND: "HANDOFF_NOT_FOUND";
|
|
36
|
-
readonly HANDOFF_EXPIRED: "HANDOFF_EXPIRED";
|
|
37
|
-
readonly HANDOFF_CURSOR_INVALID: "HANDOFF_CURSOR_INVALID";
|
|
38
|
-
readonly HANDOFF_RESPONSE_TOO_LARGE: "HANDOFF_RESPONSE_TOO_LARGE";
|
|
39
|
-
readonly BRIDGE_UNAUTHORIZED: "BRIDGE_UNAUTHORIZED";
|
|
40
|
-
readonly BRIDGE_PROTOCOL_MISMATCH: "BRIDGE_PROTOCOL_MISMATCH";
|
|
41
|
-
readonly BRIDGE_BUSY: "BRIDGE_BUSY";
|
|
42
|
-
readonly EXTERNAL_AGENT_BUSY: "EXTERNAL_AGENT_BUSY";
|
|
43
|
-
readonly ACTIVE_ADAPTER_CONFLICT: "ACTIVE_ADAPTER_CONFLICT";
|
|
44
|
-
readonly ACTIVE_ADAPTER_LEASE_INVALID: "ACTIVE_ADAPTER_LEASE_INVALID";
|
|
45
|
-
readonly ACTIVE_DISPATCH_INVALID: "ACTIVE_DISPATCH_INVALID";
|
|
46
|
-
readonly SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
|
|
47
|
-
readonly SESSION_AMBIGUOUS: "SESSION_AMBIGUOUS";
|
|
48
|
-
readonly SESSION_CLOSED: "SESSION_CLOSED";
|
|
49
|
-
readonly WORKTREE_DIRTY: "WORKTREE_DIRTY";
|
|
50
|
-
readonly WORKTREE_NOT_REPOSITORY: "WORKTREE_NOT_REPOSITORY";
|
|
51
|
-
readonly WORKTREE_OPERATION_IN_PROGRESS: "WORKTREE_OPERATION_IN_PROGRESS";
|
|
52
|
-
readonly WORKTREE_CONFLICTED: "WORKTREE_CONFLICTED";
|
|
53
|
-
readonly WORKTREE_LOCAL_CHANGES_TOO_LARGE: "WORKTREE_LOCAL_CHANGES_TOO_LARGE";
|
|
54
|
-
readonly WORKTREE_UNTRACKED_UNSUPPORTED: "WORKTREE_UNTRACKED_UNSUPPORTED";
|
|
55
|
-
readonly WORKTREE_LOCAL_CHANGES_UNSUPPORTED: "WORKTREE_LOCAL_CHANGES_UNSUPPORTED";
|
|
56
|
-
readonly TOOL_DENIED: "TOOL_DENIED";
|
|
57
|
-
readonly TOOL_INPUT_INVALID: "TOOL_INPUT_INVALID";
|
|
58
|
-
readonly TOOL_ARGUMENTS_INVALID: "TOOL_ARGUMENTS_INVALID";
|
|
59
|
-
readonly TOOL_CALL_ID_CONFLICT: "TOOL_CALL_ID_CONFLICT";
|
|
60
|
-
readonly TOOL_PATH_DENIED: "TOOL_PATH_DENIED";
|
|
61
|
-
readonly PATCH_REJECTED: "PATCH_REJECTED";
|
|
62
|
-
readonly VALIDATION_FAILED: "VALIDATION_FAILED";
|
|
63
|
-
readonly APPLY_CONFLICT: "APPLY_CONFLICT";
|
|
64
|
-
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
65
|
-
};
|
|
66
|
-
type ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES];
|
|
67
|
-
declare const ERROR_CODE_VALUES: readonly ("INVALID_REQUEST" | "INVALID_TOKEN" | "ORIGIN_NOT_ALLOWED" | "SOURCE_NOT_FOUND" | "SOURCE_OUTSIDE_ROOT" | "SOURCE_TOO_LARGE" | "EDITOR_OPEN_FAILED" | "DATA_FLOW_DISABLED" | "DATA_FLOW_SOURCE_STALE" | "DATA_FLOW_ANALYSIS_CANCELLED" | "AI_DISABLED" | "PROVIDER_NOT_CONFIGURED" | "PROVIDER_AUTH_FAILED" | "PROVIDER_PROTOCOL_UNSUPPORTED" | "MODEL_NOT_ALLOWED" | "MODEL_TOOL_CALL_UNSUPPORTED" | "PROVIDER_RATE_LIMITED" | "AGENT_BUSY" | "AGENT_LIMIT_EXCEEDED" | "AGENT_CANCELLED" | "EXTERNAL_HANDOFF_DISABLED" | "EXTERNAL_HANDOFF_UNAVAILABLE" | "HANDOFF_VALIDATION_FAILED" | "HANDOFF_SOURCE_STALE" | "HANDOFF_NOT_FOUND" | "HANDOFF_EXPIRED" | "HANDOFF_CURSOR_INVALID" | "HANDOFF_RESPONSE_TOO_LARGE" | "BRIDGE_UNAUTHORIZED" | "BRIDGE_PROTOCOL_MISMATCH" | "BRIDGE_BUSY" | "EXTERNAL_AGENT_BUSY" | "ACTIVE_ADAPTER_CONFLICT" | "ACTIVE_ADAPTER_LEASE_INVALID" | "ACTIVE_DISPATCH_INVALID" | "SESSION_NOT_FOUND" | "SESSION_AMBIGUOUS" | "SESSION_CLOSED" | "WORKTREE_DIRTY" | "WORKTREE_NOT_REPOSITORY" | "WORKTREE_OPERATION_IN_PROGRESS" | "WORKTREE_CONFLICTED" | "WORKTREE_LOCAL_CHANGES_TOO_LARGE" | "WORKTREE_UNTRACKED_UNSUPPORTED" | "WORKTREE_LOCAL_CHANGES_UNSUPPORTED" | "TOOL_DENIED" | "TOOL_INPUT_INVALID" | "TOOL_ARGUMENTS_INVALID" | "TOOL_CALL_ID_CONFLICT" | "TOOL_PATH_DENIED" | "PATCH_REJECTED" | "VALIDATION_FAILED" | "APPLY_CONFLICT" | "INTERNAL_ERROR")[];
|
|
68
|
-
declare function isErrorCode(value: unknown): value is ErrorCode;
|
|
9
|
+
import { b as SPOTPATCH_API_BASE } from './endpoints-O3ohYyAo.js';
|
|
10
|
+
export { c as AgentJobAction, A as AskJobAction, S as SPOTPATCH_ENDPOINTS, a as SPOTPATCH_TOKEN_HEADER, d as getAgentJobEndpoint, g as getAskJobEndpoint } from './endpoints-O3ohYyAo.js';
|
|
11
|
+
export { k as EXTERNAL_AGENT_ACTIONS, l as EXTERNAL_AGENT_AUTH_READINESS, m as EXTERNAL_AGENT_CONNECTION_STATES, n as EXTERNAL_AGENT_CONTROL_LIMITS, o as EXTERNAL_AGENT_CONTROL_SCHEMA_VERSION, p as EXTERNAL_AGENT_DELIVERY_STATUSES, q as EXTERNAL_AGENT_ERROR_CODES, r as EXTERNAL_AGENT_ERROR_RECOVERABILITY, s as EXTERNAL_AGENT_ERROR_STAGES, t as EXTERNAL_AGENT_EXECUTION_STATUSES, u as EXTERNAL_AGENT_GRANT_STATES, v as EXTERNAL_AGENT_MANAGED_ADAPTER_KINDS, w as EXTERNAL_AGENT_MANAGED_PHASES, x as EXTERNAL_AGENT_MANAGED_PROFILE, y as EXTERNAL_AGENT_MODES, z as EXTERNAL_AGENT_VALIDATION_OUTCOMES, E as ExternalAgentAction, a as ExternalAgentConnectionState, b as ExternalAgentControlCancelRequest, c as ExternalAgentControlConnectRequest, d as ExternalAgentControlDisconnectRequest, e as ExternalAgentControlStatus, f as ExternalAgentErrorCode, g as ExternalAgentEvent, h as ExternalAgentEventsRequest, i as ExternalAgentManagedResult, j as ExternalAgentResultRequest, A as externalAgentControlCancelRequestSchema, B as externalAgentControlConnectRequestSchema, C as externalAgentControlDisconnectRequestSchema, D as externalAgentControlStatusRequestSchema, F as externalAgentControlStatusSchema, G as externalAgentErrorSchema, H as externalAgentEventSchema, I as externalAgentEventsRequestSchema, J as externalAgentManagedResultSchema, K as externalAgentResultRequestSchema, L as managedCheckSummarySchema, M as managedFileSummarySchema, N as managedTaskStatusSchema, O as managedTimingSummarySchema } from './external-agent-control-CRBbjDDk.js';
|
|
12
|
+
export { A as ActiveAdapterSummary, D as DispatchSummary, b as EXTERNAL_HANDOFF_ACTIVE_ADAPTER_KINDS, c as EXTERNAL_HANDOFF_ACTIVE_ADAPTER_STATES, d as EXTERNAL_HANDOFF_BROKER_PROTOCOL_VERSION, e as EXTERNAL_HANDOFF_DISPATCH_PHASES, f as EXTERNAL_HANDOFF_FRAMEWORKS, E as EXTERNAL_HANDOFF_LIMITS, g as EXTERNAL_HANDOFF_REPORTABLE_DISPATCH_PHASES, h as EXTERNAL_HANDOFF_SNAPSHOT_SCHEMA_VERSION, i as EXTERNAL_HANDOFF_STATES, j as ExternalHandoffActiveAdapterKind, k as ExternalHandoffActiveAdapterState, l as ExternalHandoffCapability, m as ExternalHandoffDispatchPhase, n as ExternalHandoffFramework, o as ExternalHandoffPublishDelivery, p as ExternalHandoffPublishRequest, q as ExternalHandoffPublishResult, r as ExternalHandoffReportableDispatchPhase, s as ExternalHandoffResolveDeliveryRequest, a as ExternalHandoffSnapshot, t as ExternalHandoffState, u as ExternalHandoffStatusRequest, v as ExternalHandoffStatusResult, w as ExternalHandoffSummary, x as activeAdapterSummarySchema, y as dispatchSummarySchema, z as externalHandoffCapabilityRequestSchema, B as externalHandoffCapabilitySchema, C as externalHandoffPublishDeliverySchema, F as externalHandoffPublishRequestSchema, G as externalHandoffPublishResultSchema, H as externalHandoffReportableDispatchPhaseSchema, I as externalHandoffResolveDeliveryRequestSchema, J as externalHandoffSnapshotSchema, K as externalHandoffStatusRequestSchema, L as externalHandoffStatusResultSchema, M as externalHandoffSummarySchema } from './external-handoff-DighrWn8.js';
|
|
69
13
|
|
|
70
14
|
declare class SpotPatchError extends Error {
|
|
71
15
|
readonly code: ErrorCode;
|
|
@@ -313,6 +257,9 @@ interface RuntimeConfigBase {
|
|
|
313
257
|
readonly apiBase: typeof SPOTPATCH_API_BASE;
|
|
314
258
|
readonly ai: RuntimeAiConfig;
|
|
315
259
|
readonly budget: Readonly<ContextBudget>;
|
|
260
|
+
readonly contextualAsk: Readonly<{
|
|
261
|
+
enabled: boolean;
|
|
262
|
+
}>;
|
|
316
263
|
readonly dataFlow: RuntimeDataFlowConfig;
|
|
317
264
|
readonly debug: boolean;
|
|
318
265
|
readonly editor: (typeof SPOTPATCH_EDITOR_PREFERENCES)[number];
|
|
@@ -346,44 +293,7 @@ interface SourceMarker {
|
|
|
346
293
|
declare function formatSourceMarker(marker: SourceMarker): string;
|
|
347
294
|
declare function parseSourceMarker(value: string | null): SourceMarker | undefined;
|
|
348
295
|
|
|
349
|
-
declare const
|
|
350
|
-
declare const sourceContextRequestSchema: z.ZodObject<{
|
|
351
|
-
fileId: z.ZodString;
|
|
352
|
-
line: z.ZodNumber;
|
|
353
|
-
column: z.ZodNumber;
|
|
354
|
-
maxLines: z.ZodNumber;
|
|
355
|
-
}, z.core.$strict>;
|
|
356
|
-
declare const openEditorRequestSchema: z.ZodObject<{
|
|
357
|
-
fileId: z.ZodString;
|
|
358
|
-
line: z.ZodNumber;
|
|
359
|
-
column: z.ZodNumber;
|
|
360
|
-
}, z.core.$strict>;
|
|
361
|
-
declare const dataFlowComponentReportRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
362
|
-
fileId: z.ZodString;
|
|
363
|
-
line: z.ZodNumber;
|
|
364
|
-
column: z.ZodNumber;
|
|
365
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
366
|
-
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
367
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
368
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
369
|
-
componentSourceId: z.ZodString;
|
|
370
|
-
sourceVersion: z.ZodString;
|
|
371
|
-
}, z.core.$strict>]>;
|
|
372
|
-
declare const dataFlowPageReportRequestSchema: z.ZodObject<{
|
|
373
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
374
|
-
targets: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
375
|
-
fileId: z.ZodString;
|
|
376
|
-
line: z.ZodNumber;
|
|
377
|
-
column: z.ZodNumber;
|
|
378
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
379
|
-
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
380
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
381
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
382
|
-
componentSourceId: z.ZodString;
|
|
383
|
-
sourceVersion: z.ZodString;
|
|
384
|
-
}, z.core.$strict>]>>;
|
|
385
|
-
}, z.core.$strict>;
|
|
386
|
-
declare const spotTargetContextRequestSchema: z.ZodObject<{
|
|
296
|
+
declare const spotTargetContextSchema: z.ZodObject<{
|
|
387
297
|
instruction: z.ZodString;
|
|
388
298
|
page: z.ZodOptional<z.ZodObject<{
|
|
389
299
|
url: z.ZodString;
|
|
@@ -478,7 +388,7 @@ declare const spotTargetContextRequestSchema: z.ZodObject<{
|
|
|
478
388
|
}, z.core.$strict>>;
|
|
479
389
|
warnings: z.ZodArray<z.ZodString>;
|
|
480
390
|
}, z.core.$strict>;
|
|
481
|
-
declare const
|
|
391
|
+
declare const spotAnnotationSchema: z.ZodObject<{
|
|
482
392
|
schemaVersion: z.ZodLiteral<3>;
|
|
483
393
|
id: z.ZodString;
|
|
484
394
|
locale: z.ZodEnum<{
|
|
@@ -590,6 +500,44 @@ declare const spotAnnotationRequestSchema: z.ZodObject<{
|
|
|
590
500
|
}, z.core.$strict>>;
|
|
591
501
|
createdAt: z.ZodISODateTime;
|
|
592
502
|
}, z.core.$strict>;
|
|
503
|
+
|
|
504
|
+
declare const runtimeBootstrapRequestSchema: z.ZodObject<{}, z.core.$strict>;
|
|
505
|
+
declare const sourceContextRequestSchema: z.ZodObject<{
|
|
506
|
+
fileId: z.ZodString;
|
|
507
|
+
line: z.ZodNumber;
|
|
508
|
+
column: z.ZodNumber;
|
|
509
|
+
maxLines: z.ZodNumber;
|
|
510
|
+
}, z.core.$strict>;
|
|
511
|
+
declare const openEditorRequestSchema: z.ZodObject<{
|
|
512
|
+
fileId: z.ZodString;
|
|
513
|
+
line: z.ZodNumber;
|
|
514
|
+
column: z.ZodNumber;
|
|
515
|
+
}, z.core.$strict>;
|
|
516
|
+
declare const dataFlowComponentReportRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
517
|
+
fileId: z.ZodString;
|
|
518
|
+
line: z.ZodNumber;
|
|
519
|
+
column: z.ZodNumber;
|
|
520
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
521
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
522
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
523
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
524
|
+
componentSourceId: z.ZodString;
|
|
525
|
+
sourceVersion: z.ZodString;
|
|
526
|
+
}, z.core.$strict>]>;
|
|
527
|
+
declare const dataFlowPageReportRequestSchema: z.ZodObject<{
|
|
528
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
529
|
+
targets: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
530
|
+
fileId: z.ZodString;
|
|
531
|
+
line: z.ZodNumber;
|
|
532
|
+
column: z.ZodNumber;
|
|
533
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
534
|
+
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
535
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
536
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
537
|
+
componentSourceId: z.ZodString;
|
|
538
|
+
sourceVersion: z.ZodString;
|
|
539
|
+
}, z.core.$strict>]>>;
|
|
540
|
+
}, z.core.$strict>;
|
|
593
541
|
declare const agentCapabilityRequestSchema: z.ZodObject<{
|
|
594
542
|
providerProfileId: z.ZodString;
|
|
595
543
|
modelProfileId: z.ZodString;
|
|
@@ -795,10 +743,10 @@ declare const agentCapabilitySnapshotSchema: z.ZodObject<{
|
|
|
795
743
|
}>;
|
|
796
744
|
state: z.ZodEnum<{
|
|
797
745
|
unknown: "unknown";
|
|
746
|
+
unavailable: "unavailable";
|
|
798
747
|
probing: "probing";
|
|
799
748
|
"agent-ready": "agent-ready";
|
|
800
749
|
"prompt-only": "prompt-only";
|
|
801
|
-
unavailable: "unavailable";
|
|
802
750
|
}>;
|
|
803
751
|
authenticated: z.ZodBoolean;
|
|
804
752
|
modelAvailable: z.ZodBoolean;
|
|
@@ -866,8 +814,8 @@ declare const agentCapabilitySnapshotSchema: z.ZodObject<{
|
|
|
866
814
|
declare const agentWorkspaceHealthSnapshotSchema: z.ZodObject<{
|
|
867
815
|
state: z.ZodEnum<{
|
|
868
816
|
ready: "ready";
|
|
869
|
-
blocked: "blocked";
|
|
870
817
|
"consent-required": "consent-required";
|
|
818
|
+
blocked: "blocked";
|
|
871
819
|
}>;
|
|
872
820
|
checkedAt: z.ZodISODateTime;
|
|
873
821
|
changes: z.ZodObject<{
|
|
@@ -949,8 +897,8 @@ declare const agentCheckResultSchema: z.ZodObject<{
|
|
|
949
897
|
checkId: z.ZodString;
|
|
950
898
|
label: z.ZodString;
|
|
951
899
|
status: z.ZodEnum<{
|
|
952
|
-
failed: "failed";
|
|
953
900
|
cancelled: "cancelled";
|
|
901
|
+
failed: "failed";
|
|
954
902
|
passed: "passed";
|
|
955
903
|
"timed-out": "timed-out";
|
|
956
904
|
}>;
|
|
@@ -960,17 +908,17 @@ declare const agentCheckResultSchema: z.ZodObject<{
|
|
|
960
908
|
declare const agentJobSnapshotSchema: z.ZodObject<{
|
|
961
909
|
jobId: z.ZodString;
|
|
962
910
|
status: z.ZodEnum<{
|
|
963
|
-
completed: "completed";
|
|
964
|
-
failed: "failed";
|
|
965
911
|
queued: "queued";
|
|
966
|
-
preparing: "preparing";
|
|
967
912
|
running: "running";
|
|
913
|
+
cancelling: "cancelling";
|
|
914
|
+
cancelled: "cancelled";
|
|
915
|
+
failed: "failed";
|
|
916
|
+
preparing: "preparing";
|
|
968
917
|
validating: "validating";
|
|
969
918
|
"awaiting-review": "awaiting-review";
|
|
970
919
|
applying: "applying";
|
|
971
920
|
applied: "applied";
|
|
972
|
-
|
|
973
|
-
cancelled: "cancelled";
|
|
921
|
+
completed: "completed";
|
|
974
922
|
reverting: "reverting";
|
|
975
923
|
reverted: "reverted";
|
|
976
924
|
}>;
|
|
@@ -1059,8 +1007,8 @@ declare const agentJobResultSchema: z.ZodObject<{
|
|
|
1059
1007
|
checkId: z.ZodString;
|
|
1060
1008
|
label: z.ZodString;
|
|
1061
1009
|
status: z.ZodEnum<{
|
|
1062
|
-
failed: "failed";
|
|
1063
1010
|
cancelled: "cancelled";
|
|
1011
|
+
failed: "failed";
|
|
1064
1012
|
passed: "passed";
|
|
1065
1013
|
"timed-out": "timed-out";
|
|
1066
1014
|
}>;
|
|
@@ -1072,17 +1020,17 @@ declare const agentJobResultResponseSchema: z.ZodObject<{
|
|
|
1072
1020
|
snapshot: z.ZodObject<{
|
|
1073
1021
|
jobId: z.ZodString;
|
|
1074
1022
|
status: z.ZodEnum<{
|
|
1075
|
-
completed: "completed";
|
|
1076
|
-
failed: "failed";
|
|
1077
1023
|
queued: "queued";
|
|
1078
|
-
preparing: "preparing";
|
|
1079
1024
|
running: "running";
|
|
1025
|
+
cancelling: "cancelling";
|
|
1026
|
+
cancelled: "cancelled";
|
|
1027
|
+
failed: "failed";
|
|
1028
|
+
preparing: "preparing";
|
|
1080
1029
|
validating: "validating";
|
|
1081
1030
|
"awaiting-review": "awaiting-review";
|
|
1082
1031
|
applying: "applying";
|
|
1083
1032
|
applied: "applied";
|
|
1084
|
-
|
|
1085
|
-
cancelled: "cancelled";
|
|
1033
|
+
completed: "completed";
|
|
1086
1034
|
reverting: "reverting";
|
|
1087
1035
|
reverted: "reverted";
|
|
1088
1036
|
}>;
|
|
@@ -1171,8 +1119,8 @@ declare const agentJobResultResponseSchema: z.ZodObject<{
|
|
|
1171
1119
|
checkId: z.ZodString;
|
|
1172
1120
|
label: z.ZodString;
|
|
1173
1121
|
status: z.ZodEnum<{
|
|
1174
|
-
failed: "failed";
|
|
1175
1122
|
cancelled: "cancelled";
|
|
1123
|
+
failed: "failed";
|
|
1176
1124
|
passed: "passed";
|
|
1177
1125
|
"timed-out": "timed-out";
|
|
1178
1126
|
}>;
|
|
@@ -1186,17 +1134,17 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1186
1134
|
sequence: z.ZodNumber;
|
|
1187
1135
|
jobId: z.ZodString;
|
|
1188
1136
|
status: z.ZodEnum<{
|
|
1189
|
-
completed: "completed";
|
|
1190
|
-
failed: "failed";
|
|
1191
1137
|
queued: "queued";
|
|
1192
|
-
preparing: "preparing";
|
|
1193
1138
|
running: "running";
|
|
1139
|
+
cancelling: "cancelling";
|
|
1140
|
+
cancelled: "cancelled";
|
|
1141
|
+
failed: "failed";
|
|
1142
|
+
preparing: "preparing";
|
|
1194
1143
|
validating: "validating";
|
|
1195
1144
|
"awaiting-review": "awaiting-review";
|
|
1196
1145
|
applying: "applying";
|
|
1197
1146
|
applied: "applied";
|
|
1198
|
-
|
|
1199
|
-
cancelled: "cancelled";
|
|
1147
|
+
completed: "completed";
|
|
1200
1148
|
reverting: "reverting";
|
|
1201
1149
|
reverted: "reverted";
|
|
1202
1150
|
}>;
|
|
@@ -1206,17 +1154,17 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1206
1154
|
snapshot: z.ZodObject<{
|
|
1207
1155
|
jobId: z.ZodString;
|
|
1208
1156
|
status: z.ZodEnum<{
|
|
1209
|
-
completed: "completed";
|
|
1210
|
-
failed: "failed";
|
|
1211
1157
|
queued: "queued";
|
|
1212
|
-
preparing: "preparing";
|
|
1213
1158
|
running: "running";
|
|
1159
|
+
cancelling: "cancelling";
|
|
1160
|
+
cancelled: "cancelled";
|
|
1161
|
+
failed: "failed";
|
|
1162
|
+
preparing: "preparing";
|
|
1214
1163
|
validating: "validating";
|
|
1215
1164
|
"awaiting-review": "awaiting-review";
|
|
1216
1165
|
applying: "applying";
|
|
1217
1166
|
applied: "applied";
|
|
1218
|
-
|
|
1219
|
-
cancelled: "cancelled";
|
|
1167
|
+
completed: "completed";
|
|
1220
1168
|
reverting: "reverting";
|
|
1221
1169
|
reverted: "reverted";
|
|
1222
1170
|
}>;
|
|
@@ -1293,17 +1241,17 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1293
1241
|
sequence: z.ZodNumber;
|
|
1294
1242
|
jobId: z.ZodString;
|
|
1295
1243
|
status: z.ZodEnum<{
|
|
1296
|
-
completed: "completed";
|
|
1297
|
-
failed: "failed";
|
|
1298
1244
|
queued: "queued";
|
|
1299
|
-
preparing: "preparing";
|
|
1300
1245
|
running: "running";
|
|
1246
|
+
cancelling: "cancelling";
|
|
1247
|
+
cancelled: "cancelled";
|
|
1248
|
+
failed: "failed";
|
|
1249
|
+
preparing: "preparing";
|
|
1301
1250
|
validating: "validating";
|
|
1302
1251
|
"awaiting-review": "awaiting-review";
|
|
1303
1252
|
applying: "applying";
|
|
1304
1253
|
applied: "applied";
|
|
1305
|
-
|
|
1306
|
-
cancelled: "cancelled";
|
|
1254
|
+
completed: "completed";
|
|
1307
1255
|
reverting: "reverting";
|
|
1308
1256
|
reverted: "reverted";
|
|
1309
1257
|
}>;
|
|
@@ -1317,17 +1265,17 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1317
1265
|
sequence: z.ZodNumber;
|
|
1318
1266
|
jobId: z.ZodString;
|
|
1319
1267
|
status: z.ZodEnum<{
|
|
1320
|
-
completed: "completed";
|
|
1321
|
-
failed: "failed";
|
|
1322
1268
|
queued: "queued";
|
|
1323
|
-
preparing: "preparing";
|
|
1324
1269
|
running: "running";
|
|
1270
|
+
cancelling: "cancelling";
|
|
1271
|
+
cancelled: "cancelled";
|
|
1272
|
+
failed: "failed";
|
|
1273
|
+
preparing: "preparing";
|
|
1325
1274
|
validating: "validating";
|
|
1326
1275
|
"awaiting-review": "awaiting-review";
|
|
1327
1276
|
applying: "applying";
|
|
1328
1277
|
applied: "applied";
|
|
1329
|
-
|
|
1330
|
-
cancelled: "cancelled";
|
|
1278
|
+
completed: "completed";
|
|
1331
1279
|
reverting: "reverting";
|
|
1332
1280
|
reverted: "reverted";
|
|
1333
1281
|
}>;
|
|
@@ -1350,17 +1298,17 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1350
1298
|
sequence: z.ZodNumber;
|
|
1351
1299
|
jobId: z.ZodString;
|
|
1352
1300
|
status: z.ZodEnum<{
|
|
1353
|
-
completed: "completed";
|
|
1354
|
-
failed: "failed";
|
|
1355
1301
|
queued: "queued";
|
|
1356
|
-
preparing: "preparing";
|
|
1357
1302
|
running: "running";
|
|
1303
|
+
cancelling: "cancelling";
|
|
1304
|
+
cancelled: "cancelled";
|
|
1305
|
+
failed: "failed";
|
|
1306
|
+
preparing: "preparing";
|
|
1358
1307
|
validating: "validating";
|
|
1359
1308
|
"awaiting-review": "awaiting-review";
|
|
1360
1309
|
applying: "applying";
|
|
1361
1310
|
applied: "applied";
|
|
1362
|
-
|
|
1363
|
-
cancelled: "cancelled";
|
|
1311
|
+
completed: "completed";
|
|
1364
1312
|
reverting: "reverting";
|
|
1365
1313
|
reverted: "reverted";
|
|
1366
1314
|
}>;
|
|
@@ -1371,8 +1319,8 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1371
1319
|
checkId: z.ZodString;
|
|
1372
1320
|
label: z.ZodString;
|
|
1373
1321
|
status: z.ZodEnum<{
|
|
1374
|
-
failed: "failed";
|
|
1375
1322
|
cancelled: "cancelled";
|
|
1323
|
+
failed: "failed";
|
|
1376
1324
|
passed: "passed";
|
|
1377
1325
|
"timed-out": "timed-out";
|
|
1378
1326
|
}>;
|
|
@@ -1385,17 +1333,17 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1385
1333
|
sequence: z.ZodNumber;
|
|
1386
1334
|
jobId: z.ZodString;
|
|
1387
1335
|
status: z.ZodEnum<{
|
|
1388
|
-
completed: "completed";
|
|
1389
|
-
failed: "failed";
|
|
1390
1336
|
queued: "queued";
|
|
1391
|
-
preparing: "preparing";
|
|
1392
1337
|
running: "running";
|
|
1338
|
+
cancelling: "cancelling";
|
|
1339
|
+
cancelled: "cancelled";
|
|
1340
|
+
failed: "failed";
|
|
1341
|
+
preparing: "preparing";
|
|
1393
1342
|
validating: "validating";
|
|
1394
1343
|
"awaiting-review": "awaiting-review";
|
|
1395
1344
|
applying: "applying";
|
|
1396
1345
|
applied: "applied";
|
|
1397
|
-
|
|
1398
|
-
cancelled: "cancelled";
|
|
1346
|
+
completed: "completed";
|
|
1399
1347
|
reverting: "reverting";
|
|
1400
1348
|
reverted: "reverted";
|
|
1401
1349
|
}>;
|
|
@@ -1409,17 +1357,17 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1409
1357
|
sequence: z.ZodNumber;
|
|
1410
1358
|
jobId: z.ZodString;
|
|
1411
1359
|
status: z.ZodEnum<{
|
|
1412
|
-
completed: "completed";
|
|
1413
|
-
failed: "failed";
|
|
1414
1360
|
queued: "queued";
|
|
1415
|
-
preparing: "preparing";
|
|
1416
1361
|
running: "running";
|
|
1362
|
+
cancelling: "cancelling";
|
|
1363
|
+
cancelled: "cancelled";
|
|
1364
|
+
failed: "failed";
|
|
1365
|
+
preparing: "preparing";
|
|
1417
1366
|
validating: "validating";
|
|
1418
1367
|
"awaiting-review": "awaiting-review";
|
|
1419
1368
|
applying: "applying";
|
|
1420
1369
|
applied: "applied";
|
|
1421
|
-
|
|
1422
|
-
cancelled: "cancelled";
|
|
1370
|
+
completed: "completed";
|
|
1423
1371
|
reverting: "reverting";
|
|
1424
1372
|
reverted: "reverted";
|
|
1425
1373
|
}>;
|
|
@@ -1501,4 +1449,4 @@ type ApiResponse<T> = ApiSuccess<T> | ApiFailure;
|
|
|
1501
1449
|
|
|
1502
1450
|
declare const SPOTPATCH_REPOSITORY_URL: "https://github.com/huanglvjing/spotpatch";
|
|
1503
1451
|
|
|
1504
|
-
export { AGENT_APPLY_MODES, AGENT_CAPABILITY_STATES, AGENT_CHECK_STATUSES, AGENT_FILE_CHANGE_KINDS, AGENT_JOB_STATUSES, AGENT_WORKSPACE_SNAPSHOT_LIMITS, AGENT_WORKSPACE_STATES, type AgentApplyMode, type AgentCapabilityRequest, type AgentCapabilitySnapshot, type AgentCapabilityState, type AgentChangedFile, type AgentCheckDefinition, type AgentCheckResult, type AgentCheckStatus, type AgentFileChangeKind, type AgentJobCreateRequest, type AgentJobEvent, type AgentJobResult, type AgentJobResultResponse, type AgentJobSnapshot, type AgentJobStatus, type AgentLimits, type AgentWorkingTreeMode, type AgentWorkspaceChangeSummary, type AgentWorkspaceHealthSnapshot, type AgentWorkspaceState, type AiExecutionOptions, type AiModelProfile, type AiOptions, type AiProviderAuthentication, type AiProviderProtocol, type ApiFailure, type ApiResponse, type ApiSuccess, ComponentDataFlowReport, ContextBudget, DATA_FLOW_QUERY_ADAPTER_MODULES, DATA_FLOW_QUERY_HOOK_NAMES, DATA_FLOW_TRPC_CLIENT_FACTORY_NAMES, DATA_FLOW_TRPC_PROXY_FACTORY_NAMES, DATA_FLOW_TRPC_REQUEST_METHODS, DATA_FLOW_TRPC_ROOT_FACTORY_NAMES, DEFAULT_AGENT_LIMITS, type DataFlowCollectionLimitOptions, type DataFlowComponentReportRequest, type DataFlowPageReportRequest,
|
|
1452
|
+
export { AGENT_APPLY_MODES, AGENT_CAPABILITY_STATES, AGENT_CHECK_STATUSES, AGENT_FILE_CHANGE_KINDS, AGENT_JOB_STATUSES, AGENT_WORKSPACE_SNAPSHOT_LIMITS, AGENT_WORKSPACE_STATES, type AgentApplyMode, type AgentCapabilityRequest, type AgentCapabilitySnapshot, type AgentCapabilityState, type AgentChangedFile, type AgentCheckDefinition, type AgentCheckResult, type AgentCheckStatus, type AgentFileChangeKind, type AgentJobCreateRequest, type AgentJobEvent, type AgentJobResult, type AgentJobResultResponse, type AgentJobSnapshot, type AgentJobStatus, type AgentLimits, type AgentWorkingTreeMode, type AgentWorkspaceChangeSummary, type AgentWorkspaceHealthSnapshot, type AgentWorkspaceState, type AiExecutionOptions, type AiModelProfile, type AiOptions, type AiProviderAuthentication, type AiProviderProtocol, type ApiFailure, type ApiResponse, type ApiSuccess, ComponentDataFlowReport, ContextBudget, DATA_FLOW_QUERY_ADAPTER_MODULES, DATA_FLOW_QUERY_HOOK_NAMES, DATA_FLOW_TRPC_CLIENT_FACTORY_NAMES, DATA_FLOW_TRPC_PROXY_FACTORY_NAMES, DATA_FLOW_TRPC_REQUEST_METHODS, DATA_FLOW_TRPC_ROOT_FACTORY_NAMES, DEFAULT_AGENT_LIMITS, type DataFlowCollectionLimitOptions, type DataFlowComponentReportRequest, type DataFlowPageReportRequest, type EditorOpenResult, ErrorCode, type OpenAICompatibleProviderOptions, type OpenEditorRequest, PageDataFlowReport, ReportCompleteness, type ResolvedAgentCheckDefinition, type ResolvedAiExecutionOptions, type ResolvedAiModelProfile, type ResolvedAiOptions, type ResolvedOpenAICompatibleProviderOptions, type RuntimeAiConfig, type RuntimeAiModelProfile, type RuntimeAiProviderProfile, type RuntimeBootstrapRequest, RuntimeDataFlowConfig, SOURCE_MARKER_ATTRIBUTE, SPOTPATCH_API_BASE, SPOTPATCH_EDITOR_PREFERENCES, SPOTPATCH_LOCALE_PREFERENCES, SPOTPATCH_NEXT_BUNDLERS, SPOTPATCH_NEXT_ROUTER_KINDS, SPOTPATCH_REPOSITORY_URL, type SourceContextRequest, type SourceMarker, SpotAnnotation, type SpotPatchEditorPreference, SpotPatchError, type SpotPatchNextBundler, type SpotPatchNextRouterKind, type SpotPatchRuntimeConfig, agentCapabilityRequestSchema, agentCapabilitySnapshotSchema, agentChangedFileSchema, agentCheckResultSchema, agentJobActionRequestSchema, agentJobCreateRequestSchema, agentJobEventSchema, agentJobResultResponseSchema, agentJobResultSchema, agentJobSnapshotSchema, agentWorkspaceHealthRequestSchema, agentWorkspaceHealthSnapshotSchema, dataFlowComponentReportRequestSchema, dataFlowPageReportRequestSchema, formatSourceMarker, isSensitiveName, limitDataFlowReportCollections, openEditorRequestSchema, parseSourceMarker, redactSensitiveText, runtimeBootstrapRequestSchema, runtimeConfigSchema, sanitizeUrl, sourceContextRequestSchema, spotAnnotationSchema as spotAnnotationRequestSchema, spotTargetContextSchema as spotTargetContextRequestSchema };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
askAnswerBlockSchema,
|
|
3
|
+
askAnswerDraftBlockSchema,
|
|
4
|
+
askAnswerDraftSchema,
|
|
5
|
+
askAnswerResultSchema,
|
|
6
|
+
askAnswerWarningSchema,
|
|
7
|
+
askDraftCitationSchema,
|
|
8
|
+
askDraftOriginSchema,
|
|
9
|
+
askJobActionRequestSchema,
|
|
10
|
+
askJobCreateRequestSchema,
|
|
11
|
+
askJobEventSchema,
|
|
12
|
+
askJobEventsRequestSchema,
|
|
13
|
+
askJobResultResponseSchema,
|
|
14
|
+
askJobSnapshotSchema,
|
|
15
|
+
askSourceReferenceSchema,
|
|
16
|
+
contextualAskCapabilityRequestSchema,
|
|
17
|
+
contextualAskCapabilitySchema,
|
|
18
|
+
contextualAskExecutorCapabilitySchema,
|
|
19
|
+
contextualAskExecutorPreferenceSchema,
|
|
20
|
+
contextualAskOptionsSchema,
|
|
21
|
+
spotAskTaskEnvelopeSchema,
|
|
22
|
+
spotChangeTaskEnvelopeSchema,
|
|
23
|
+
spotSelectionContextSchema,
|
|
24
|
+
spotSelectionTargetSchema,
|
|
25
|
+
spotTaskEnvelopeSchema
|
|
26
|
+
} from "./chunk-IUTOVI5G.js";
|
|
27
|
+
import {
|
|
28
|
+
ASK_ANSWER_WARNING_CODES,
|
|
29
|
+
ASK_EXECUTOR_ANSWER_WARNING_CODES,
|
|
30
|
+
ASK_FILE_COUNT_BUCKETS,
|
|
31
|
+
ASK_JOB_STATUSES,
|
|
32
|
+
ASK_READ_ACTIVITY_STATES,
|
|
33
|
+
ASK_SOURCE_CONFIDENCES,
|
|
34
|
+
CONTEXTUAL_ASK_EXECUTOR_KINDS,
|
|
35
|
+
CONTEXTUAL_ASK_EXECUTOR_STATES,
|
|
36
|
+
CONTEXTUAL_ASK_LIMITS,
|
|
37
|
+
CONTEXTUAL_ASK_PERMISSION_PROFILE,
|
|
38
|
+
CONTEXTUAL_ASK_SCHEMA_VERSION
|
|
39
|
+
} from "./chunk-DYTWEIES.js";
|
|
1
40
|
import {
|
|
2
41
|
DATA_FLOW_SCHEMA_VERSION,
|
|
3
42
|
DATA_FLOW_URL_QUERY_KEY_LIMIT,
|
|
4
43
|
DEFAULT_DATA_FLOW_LIMITS,
|
|
5
44
|
DEFAULT_RUNTIME_DATA_FLOW_LIMITS
|
|
6
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-5CHYMRNS.js";
|
|
7
46
|
import {
|
|
8
47
|
AGENT_APPLY_MODES,
|
|
9
48
|
AGENT_CAPABILITY_STATES,
|
|
@@ -13,13 +52,6 @@ import {
|
|
|
13
52
|
AGENT_WORKSPACE_SNAPSHOT_LIMITS,
|
|
14
53
|
AGENT_WORKSPACE_STATES,
|
|
15
54
|
DEFAULT_AGENT_LIMITS,
|
|
16
|
-
ERROR_CODES,
|
|
17
|
-
ERROR_CODE_VALUES,
|
|
18
|
-
MAX_ANNOTATION_INSTRUCTION_CHARACTERS,
|
|
19
|
-
MAX_ANNOTATION_TARGETS,
|
|
20
|
-
MAX_TARGET_INSTRUCTION_CHARACTERS,
|
|
21
|
-
SPOTPATCH_LOCALES,
|
|
22
|
-
SPOTPATCH_LOCALE_PREFERENCES,
|
|
23
55
|
SpotPatchError,
|
|
24
56
|
activeAdapterSummarySchema,
|
|
25
57
|
agentCapabilityRequestSchema,
|
|
@@ -40,19 +72,30 @@ import {
|
|
|
40
72
|
externalHandoffStatusRequestSchema,
|
|
41
73
|
externalHandoffStatusResultSchema,
|
|
42
74
|
externalHandoffSummarySchema,
|
|
43
|
-
isErrorCode,
|
|
44
75
|
openEditorRequestSchema,
|
|
45
76
|
runtimeBootstrapRequestSchema,
|
|
46
|
-
sourceContextRequestSchema
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
77
|
+
sourceContextRequestSchema
|
|
78
|
+
} from "./chunk-YQ5GL523.js";
|
|
79
|
+
import {
|
|
80
|
+
CONTEXTUAL_ASK_ERROR_CODES,
|
|
81
|
+
ERROR_CODES,
|
|
82
|
+
ERROR_CODE_VALUES,
|
|
83
|
+
MAX_ANNOTATION_INSTRUCTION_CHARACTERS,
|
|
84
|
+
MAX_ANNOTATION_TARGETS,
|
|
85
|
+
MAX_TARGET_INSTRUCTION_CHARACTERS,
|
|
86
|
+
SPOTPATCH_LOCALES,
|
|
87
|
+
SPOTPATCH_LOCALE_PREFERENCES,
|
|
88
|
+
isErrorCode,
|
|
89
|
+
spotAnnotationSchema,
|
|
90
|
+
spotTargetContextSchema
|
|
91
|
+
} from "./chunk-C2PJ4UUU.js";
|
|
50
92
|
import {
|
|
51
93
|
SPOTPATCH_API_BASE,
|
|
52
94
|
SPOTPATCH_ENDPOINTS,
|
|
53
95
|
SPOTPATCH_TOKEN_HEADER,
|
|
54
|
-
getAgentJobEndpoint
|
|
55
|
-
|
|
96
|
+
getAgentJobEndpoint,
|
|
97
|
+
getAskJobEndpoint
|
|
98
|
+
} from "./chunk-FPDSZDP2.js";
|
|
56
99
|
import {
|
|
57
100
|
EXTERNAL_HANDOFF_ACTIVE_ADAPTER_KINDS,
|
|
58
101
|
EXTERNAL_HANDOFF_ACTIVE_ADAPTER_STATES,
|
|
@@ -634,6 +677,7 @@ var runtimeConfigBaseShape = {
|
|
|
634
677
|
maxCodeLines: positiveInteger,
|
|
635
678
|
maxComponentDepth: positiveInteger
|
|
636
679
|
}),
|
|
680
|
+
contextualAsk: z2.strictObject({ enabled: z2.boolean() }),
|
|
637
681
|
debug: z2.boolean(),
|
|
638
682
|
dataFlow: runtimeDataFlowConfigSchema,
|
|
639
683
|
editor: z2.enum(SPOTPATCH_EDITOR_PREFERENCES),
|
|
@@ -1082,6 +1126,18 @@ export {
|
|
|
1082
1126
|
AGENT_JOB_STATUSES,
|
|
1083
1127
|
AGENT_WORKSPACE_SNAPSHOT_LIMITS,
|
|
1084
1128
|
AGENT_WORKSPACE_STATES,
|
|
1129
|
+
ASK_ANSWER_WARNING_CODES,
|
|
1130
|
+
ASK_EXECUTOR_ANSWER_WARNING_CODES,
|
|
1131
|
+
ASK_FILE_COUNT_BUCKETS,
|
|
1132
|
+
ASK_JOB_STATUSES,
|
|
1133
|
+
ASK_READ_ACTIVITY_STATES,
|
|
1134
|
+
ASK_SOURCE_CONFIDENCES,
|
|
1135
|
+
CONTEXTUAL_ASK_ERROR_CODES,
|
|
1136
|
+
CONTEXTUAL_ASK_EXECUTOR_KINDS,
|
|
1137
|
+
CONTEXTUAL_ASK_EXECUTOR_STATES,
|
|
1138
|
+
CONTEXTUAL_ASK_LIMITS,
|
|
1139
|
+
CONTEXTUAL_ASK_PERMISSION_PROFILE,
|
|
1140
|
+
CONTEXTUAL_ASK_SCHEMA_VERSION,
|
|
1085
1141
|
DATA_FLOW_ASSOCIATION_KINDS,
|
|
1086
1142
|
DATA_FLOW_DIAGNOSTIC_CODES,
|
|
1087
1143
|
DATA_FLOW_EXECUTION_STATES,
|
|
@@ -1152,7 +1208,26 @@ export {
|
|
|
1152
1208
|
agentJobSnapshotSchema,
|
|
1153
1209
|
agentWorkspaceHealthRequestSchema,
|
|
1154
1210
|
agentWorkspaceHealthSnapshotSchema,
|
|
1211
|
+
askAnswerBlockSchema,
|
|
1212
|
+
askAnswerDraftBlockSchema,
|
|
1213
|
+
askAnswerDraftSchema,
|
|
1214
|
+
askAnswerResultSchema,
|
|
1215
|
+
askAnswerWarningSchema,
|
|
1216
|
+
askDraftCitationSchema,
|
|
1217
|
+
askDraftOriginSchema,
|
|
1218
|
+
askJobActionRequestSchema,
|
|
1219
|
+
askJobCreateRequestSchema,
|
|
1220
|
+
askJobEventSchema,
|
|
1221
|
+
askJobEventsRequestSchema,
|
|
1222
|
+
askJobResultResponseSchema,
|
|
1223
|
+
askJobSnapshotSchema,
|
|
1224
|
+
askSourceReferenceSchema,
|
|
1155
1225
|
componentDataFlowReportSchema,
|
|
1226
|
+
contextualAskCapabilityRequestSchema,
|
|
1227
|
+
contextualAskCapabilitySchema,
|
|
1228
|
+
contextualAskExecutorCapabilitySchema,
|
|
1229
|
+
contextualAskExecutorPreferenceSchema,
|
|
1230
|
+
contextualAskOptionsSchema,
|
|
1156
1231
|
dataDependencySchema,
|
|
1157
1232
|
dataFlowComponentReportRequestSchema,
|
|
1158
1233
|
dataFlowPageReportRequestSchema,
|
|
@@ -1180,6 +1255,7 @@ export {
|
|
|
1180
1255
|
externalHandoffSummarySchema,
|
|
1181
1256
|
formatSourceMarker,
|
|
1182
1257
|
getAgentJobEndpoint,
|
|
1258
|
+
getAskJobEndpoint,
|
|
1183
1259
|
isErrorCode,
|
|
1184
1260
|
isSensitiveName,
|
|
1185
1261
|
limitDataFlowReportCollections,
|
|
@@ -1197,7 +1273,12 @@ export {
|
|
|
1197
1273
|
runtimeDataFlowConfigSchema,
|
|
1198
1274
|
sanitizeUrl,
|
|
1199
1275
|
sourceContextRequestSchema,
|
|
1200
|
-
spotAnnotationRequestSchema,
|
|
1201
|
-
|
|
1276
|
+
spotAnnotationSchema as spotAnnotationRequestSchema,
|
|
1277
|
+
spotAskTaskEnvelopeSchema,
|
|
1278
|
+
spotChangeTaskEnvelopeSchema,
|
|
1279
|
+
spotSelectionContextSchema,
|
|
1280
|
+
spotSelectionTargetSchema,
|
|
1281
|
+
spotTargetContextSchema as spotTargetContextRequestSchema,
|
|
1282
|
+
spotTaskEnvelopeSchema
|
|
1202
1283
|
};
|
|
1203
1284
|
//# sourceMappingURL=index.js.map
|