@spotpatch/shared 1.12.0 → 1.14.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.
Files changed (64) hide show
  1. package/dist/annotation-Cz-NNgR4.d.cts +102 -0
  2. package/dist/annotation-Cz-NNgR4.d.ts +102 -0
  3. package/dist/chunk-CLQ6MIJB.js +586 -0
  4. package/dist/chunk-CLQ6MIJB.js.map +1 -0
  5. package/dist/chunk-EWJTKNL4.js +90 -0
  6. package/dist/chunk-EWJTKNL4.js.map +1 -0
  7. package/dist/{chunk-JGOIBOFI.js → chunk-FPDSZDP2.js} +16 -2
  8. package/dist/chunk-FPDSZDP2.js.map +1 -0
  9. package/dist/{chunk-2LVIH7OA.js → chunk-IX6MSCK6.js} +6 -2
  10. package/dist/chunk-IX6MSCK6.js.map +1 -0
  11. package/dist/{chunk-JU5HIWX7.js → chunk-JTZFOTPT.js} +9 -174
  12. package/dist/chunk-JTZFOTPT.js.map +1 -0
  13. package/dist/chunk-R6QJFNT2.js +195 -0
  14. package/dist/chunk-R6QJFNT2.js.map +1 -0
  15. package/dist/contextual-ask-BpbkpFFf.d.cts +1476 -0
  16. package/dist/contextual-ask-BpbkpFFf.d.ts +1476 -0
  17. package/dist/contextual-ask-browser.cjs +201 -0
  18. package/dist/contextual-ask-browser.cjs.map +1 -0
  19. package/dist/contextual-ask-browser.d.cts +31 -0
  20. package/dist/contextual-ask-browser.d.ts +31 -0
  21. package/dist/contextual-ask-browser.js +66 -0
  22. package/dist/contextual-ask-browser.js.map +1 -0
  23. package/dist/contextual-ask-node.cjs +971 -0
  24. package/dist/contextual-ask-node.cjs.map +1 -0
  25. package/dist/contextual-ask-node.d.cts +14 -0
  26. package/dist/contextual-ask-node.d.ts +14 -0
  27. package/dist/contextual-ask-node.js +122 -0
  28. package/dist/contextual-ask-node.js.map +1 -0
  29. package/dist/{data-flow-runtime-BelOgo8s.d.ts → data-flow-runtime-DhWpQoik.d.ts} +26 -13
  30. package/dist/{data-flow-runtime-oq9m21IP.d.cts → data-flow-runtime-w43iwvGA.d.cts} +26 -13
  31. package/dist/data-flow-runtime.cjs +2 -0
  32. package/dist/data-flow-runtime.cjs.map +1 -1
  33. package/dist/data-flow-runtime.d.cts +2 -2
  34. package/dist/data-flow-runtime.d.ts +2 -2
  35. package/dist/data-flow-runtime.js +1 -1
  36. package/dist/{endpoints-GedF44M2.d.cts → endpoints-O3ohYyAo.d.cts} +7 -1
  37. package/dist/{endpoints-GedF44M2.d.ts → endpoints-O3ohYyAo.d.ts} +7 -1
  38. package/dist/error-code-DRz2eqcB.d.cts +63 -0
  39. package/dist/error-code-DRz2eqcB.d.ts +63 -0
  40. package/dist/external-agent-node.cjs +320 -141
  41. package/dist/external-agent-node.cjs.map +1 -1
  42. package/dist/external-agent-node.d.cts +43 -27
  43. package/dist/external-agent-node.d.ts +43 -27
  44. package/dist/external-agent-node.js +174 -20
  45. package/dist/external-agent-node.js.map +1 -1
  46. package/dist/{external-handoff-BNUyMfNb.d.ts → external-handoff-5zHu-fz2.d.ts} +41 -131
  47. package/dist/{external-handoff-BNUyMfNb.d.cts → external-handoff-DeiIvR-2.d.cts} +41 -131
  48. package/dist/external-handoff-browser.cjs +7 -1
  49. package/dist/external-handoff-browser.cjs.map +1 -1
  50. package/dist/external-handoff-browser.d.cts +4 -3
  51. package/dist/external-handoff-browser.d.ts +4 -3
  52. package/dist/external-handoff-browser.js +2 -2
  53. package/dist/index.cjs +1170 -426
  54. package/dist/index.cjs.map +1 -1
  55. package/dist/index.d.cts +138 -178
  56. package/dist/index.d.ts +138 -178
  57. package/dist/index.js +116 -20
  58. package/dist/index.js.map +1 -1
  59. package/package.json +29 -2
  60. package/dist/chunk-2LVIH7OA.js.map +0 -1
  61. package/dist/chunk-JGOIBOFI.js.map +0 -1
  62. package/dist/chunk-JU5HIWX7.js.map +0 -1
  63. package/dist/{external-agent-control-BMoSq_xI.d.cts → external-agent-control-C79Nl85y.d.cts} +49 -49
  64. package/dist/{external-agent-control-BMoSq_xI.d.ts → external-agent-control-C79Nl85y.d.ts} +49 -49
package/dist/index.d.ts CHANGED
@@ -1,71 +1,15 @@
1
- import { C as ContextBudget, y as SPOTPATCH_LOCALE_PREFERENCES, S as SpotAnnotation } from './external-handoff-BNUyMfNb.js';
2
- export { A as ActiveAdapterSummary, z as CodeContext, 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, B as ElementContext, 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, M as MAX_ANNOTATION_INSTRUCTION_CHARACTERS, F as MAX_ANNOTATION_TARGETS, G as MAX_TARGET_INSTRUCTION_CHARACTERS, H as MatchedStyleRule, P as PageContext, R as ReactContext, I as SPOTPATCH_LOCALES, J as SourceConfidence, K as SourceOrigin, L as SourceRef, x as SpotPatchLocale, N as SpotPatchLocalePreference, O as SpotTargetContext, Q as StyleContext, T as activeAdapterSummarySchema, U as dispatchSummarySchema, V as externalHandoffCapabilityRequestSchema, W as externalHandoffCapabilitySchema, X as externalHandoffPublishDeliverySchema, Y as externalHandoffPublishRequestSchema, Z as externalHandoffPublishResultSchema, _ as externalHandoffReportableDispatchPhaseSchema, $ as externalHandoffResolveDeliveryRequestSchema, a0 as externalHandoffSnapshotSchema, a1 as externalHandoffStatusRequestSchema, a2 as externalHandoffStatusResultSchema, a3 as externalHandoffSummarySchema } from './external-handoff-BNUyMfNb.js';
3
- import { R as ReportCompleteness, C as ComponentDataFlowReport, P as PageDataFlowReport, a as RuntimeDataFlowConfig } from './data-flow-runtime-BelOgo8s.js';
4
- 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-BelOgo8s.js';
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-Cz-NNgR4.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-Cz-NNgR4.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-BpbkpFFf.js';
6
+ import { R as ReportCompleteness, C as ComponentDataFlowReport, P as PageDataFlowReport, a as RuntimeDataFlowConfig } from './data-flow-runtime-DhWpQoik.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-DhWpQoik.js';
5
8
  import { z } from 'zod';
6
- import { b as SPOTPATCH_API_BASE } from './endpoints-GedF44M2.js';
7
- export { A as AgentJobAction, S as SPOTPATCH_ENDPOINTS, a as SPOTPATCH_TOKEN_HEADER, g as getAgentJobEndpoint } from './endpoints-GedF44M2.js';
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-BMoSq_xI.js';
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-C79Nl85y.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-5zHu-fz2.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];
@@ -330,6 +277,8 @@ interface RuntimeConfigBase {
330
277
  }
331
278
  type SpotPatchRuntimeConfig = RuntimeConfigBase & (Readonly<{
332
279
  framework: "vite";
280
+ }> | Readonly<{
281
+ framework: "astro";
333
282
  }> | Readonly<{
334
283
  bundler: SpotPatchNextBundler;
335
284
  framework: "next";
@@ -342,48 +291,12 @@ interface SourceMarker {
342
291
  readonly fileId: string;
343
292
  readonly line: number;
344
293
  readonly column: number;
294
+ readonly kind?: "astro";
345
295
  }
346
296
  declare function formatSourceMarker(marker: SourceMarker): string;
347
297
  declare function parseSourceMarker(value: string | null): SourceMarker | undefined;
348
298
 
349
- declare const runtimeBootstrapRequestSchema: z.ZodObject<{}, z.core.$strict>;
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<{
299
+ declare const spotTargetContextSchema: z.ZodObject<{
387
300
  instruction: z.ZodString;
388
301
  page: z.ZodOptional<z.ZodObject<{
389
302
  url: z.ZodString;
@@ -399,16 +312,17 @@ declare const spotTargetContextRequestSchema: z.ZodObject<{
399
312
  line: z.ZodOptional<z.ZodNumber>;
400
313
  column: z.ZodOptional<z.ZodNumber>;
401
314
  origin: z.ZodEnum<{
402
- none: "none";
403
315
  "jsx-host": "jsx-host";
316
+ "astro-host": "astro-host";
404
317
  "react-fiber": "react-fiber";
405
318
  "dom-ancestor": "dom-ancestor";
319
+ none: "none";
406
320
  }>;
407
321
  confidence: z.ZodEnum<{
408
- unknown: "unknown";
409
322
  exact: "exact";
410
323
  probable: "probable";
411
324
  approximate: "approximate";
325
+ unknown: "unknown";
412
326
  }>;
413
327
  }, z.core.$strict>;
414
328
  react: z.ZodObject<{
@@ -424,16 +338,17 @@ declare const spotTargetContextRequestSchema: z.ZodObject<{
424
338
  line: z.ZodOptional<z.ZodNumber>;
425
339
  column: z.ZodOptional<z.ZodNumber>;
426
340
  origin: z.ZodEnum<{
427
- none: "none";
428
341
  "jsx-host": "jsx-host";
342
+ "astro-host": "astro-host";
429
343
  "react-fiber": "react-fiber";
430
344
  "dom-ancestor": "dom-ancestor";
345
+ none: "none";
431
346
  }>;
432
347
  confidence: z.ZodEnum<{
433
- unknown: "unknown";
434
348
  exact: "exact";
435
349
  probable: "probable";
436
350
  approximate: "approximate";
351
+ unknown: "unknown";
437
352
  }>;
438
353
  }, z.core.$strict>>;
439
354
  }, z.core.$strict>;
@@ -467,6 +382,7 @@ declare const spotTargetContextRequestSchema: z.ZodObject<{
467
382
  language: z.ZodEnum<{
468
383
  tsx: "tsx";
469
384
  jsx: "jsx";
385
+ astro: "astro";
470
386
  }>;
471
387
  startLine: z.ZodNumber;
472
388
  endLine: z.ZodNumber;
@@ -478,7 +394,7 @@ declare const spotTargetContextRequestSchema: z.ZodObject<{
478
394
  }, z.core.$strict>>;
479
395
  warnings: z.ZodArray<z.ZodString>;
480
396
  }, z.core.$strict>;
481
- declare const spotAnnotationRequestSchema: z.ZodObject<{
397
+ declare const spotAnnotationSchema: z.ZodObject<{
482
398
  schemaVersion: z.ZodLiteral<3>;
483
399
  id: z.ZodString;
484
400
  locale: z.ZodEnum<{
@@ -509,16 +425,17 @@ declare const spotAnnotationRequestSchema: z.ZodObject<{
509
425
  line: z.ZodOptional<z.ZodNumber>;
510
426
  column: z.ZodOptional<z.ZodNumber>;
511
427
  origin: z.ZodEnum<{
512
- none: "none";
513
428
  "jsx-host": "jsx-host";
429
+ "astro-host": "astro-host";
514
430
  "react-fiber": "react-fiber";
515
431
  "dom-ancestor": "dom-ancestor";
432
+ none: "none";
516
433
  }>;
517
434
  confidence: z.ZodEnum<{
518
- unknown: "unknown";
519
435
  exact: "exact";
520
436
  probable: "probable";
521
437
  approximate: "approximate";
438
+ unknown: "unknown";
522
439
  }>;
523
440
  }, z.core.$strict>;
524
441
  react: z.ZodObject<{
@@ -534,16 +451,17 @@ declare const spotAnnotationRequestSchema: z.ZodObject<{
534
451
  line: z.ZodOptional<z.ZodNumber>;
535
452
  column: z.ZodOptional<z.ZodNumber>;
536
453
  origin: z.ZodEnum<{
537
- none: "none";
538
454
  "jsx-host": "jsx-host";
455
+ "astro-host": "astro-host";
539
456
  "react-fiber": "react-fiber";
540
457
  "dom-ancestor": "dom-ancestor";
458
+ none: "none";
541
459
  }>;
542
460
  confidence: z.ZodEnum<{
543
- unknown: "unknown";
544
461
  exact: "exact";
545
462
  probable: "probable";
546
463
  approximate: "approximate";
464
+ unknown: "unknown";
547
465
  }>;
548
466
  }, z.core.$strict>>;
549
467
  }, z.core.$strict>;
@@ -577,6 +495,7 @@ declare const spotAnnotationRequestSchema: z.ZodObject<{
577
495
  language: z.ZodEnum<{
578
496
  tsx: "tsx";
579
497
  jsx: "jsx";
498
+ astro: "astro";
580
499
  }>;
581
500
  startLine: z.ZodNumber;
582
501
  endLine: z.ZodNumber;
@@ -590,6 +509,44 @@ declare const spotAnnotationRequestSchema: z.ZodObject<{
590
509
  }, z.core.$strict>>;
591
510
  createdAt: z.ZodISODateTime;
592
511
  }, z.core.$strict>;
512
+
513
+ declare const runtimeBootstrapRequestSchema: z.ZodObject<{}, z.core.$strict>;
514
+ declare const sourceContextRequestSchema: z.ZodObject<{
515
+ fileId: z.ZodString;
516
+ line: z.ZodNumber;
517
+ column: z.ZodNumber;
518
+ maxLines: z.ZodNumber;
519
+ }, z.core.$strict>;
520
+ declare const openEditorRequestSchema: z.ZodObject<{
521
+ fileId: z.ZodString;
522
+ line: z.ZodNumber;
523
+ column: z.ZodNumber;
524
+ }, z.core.$strict>;
525
+ declare const dataFlowComponentReportRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
526
+ fileId: z.ZodString;
527
+ line: z.ZodNumber;
528
+ column: z.ZodNumber;
529
+ schemaVersion: z.ZodLiteral<1>;
530
+ sourceVersion: z.ZodOptional<z.ZodString>;
531
+ }, z.core.$strict>, z.ZodObject<{
532
+ schemaVersion: z.ZodLiteral<1>;
533
+ componentSourceId: z.ZodString;
534
+ sourceVersion: z.ZodString;
535
+ }, z.core.$strict>]>;
536
+ declare const dataFlowPageReportRequestSchema: z.ZodObject<{
537
+ schemaVersion: z.ZodLiteral<1>;
538
+ targets: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
539
+ fileId: z.ZodString;
540
+ line: z.ZodNumber;
541
+ column: z.ZodNumber;
542
+ schemaVersion: z.ZodLiteral<1>;
543
+ sourceVersion: z.ZodOptional<z.ZodString>;
544
+ }, z.core.$strict>, z.ZodObject<{
545
+ schemaVersion: z.ZodLiteral<1>;
546
+ componentSourceId: z.ZodString;
547
+ sourceVersion: z.ZodString;
548
+ }, z.core.$strict>]>>;
549
+ }, z.core.$strict>;
593
550
  declare const agentCapabilityRequestSchema: z.ZodObject<{
594
551
  providerProfileId: z.ZodString;
595
552
  modelProfileId: z.ZodString;
@@ -627,16 +584,17 @@ declare const agentJobCreateRequestSchema: z.ZodObject<{
627
584
  line: z.ZodOptional<z.ZodNumber>;
628
585
  column: z.ZodOptional<z.ZodNumber>;
629
586
  origin: z.ZodEnum<{
630
- none: "none";
631
587
  "jsx-host": "jsx-host";
588
+ "astro-host": "astro-host";
632
589
  "react-fiber": "react-fiber";
633
590
  "dom-ancestor": "dom-ancestor";
591
+ none: "none";
634
592
  }>;
635
593
  confidence: z.ZodEnum<{
636
- unknown: "unknown";
637
594
  exact: "exact";
638
595
  probable: "probable";
639
596
  approximate: "approximate";
597
+ unknown: "unknown";
640
598
  }>;
641
599
  }, z.core.$strict>;
642
600
  react: z.ZodObject<{
@@ -652,16 +610,17 @@ declare const agentJobCreateRequestSchema: z.ZodObject<{
652
610
  line: z.ZodOptional<z.ZodNumber>;
653
611
  column: z.ZodOptional<z.ZodNumber>;
654
612
  origin: z.ZodEnum<{
655
- none: "none";
656
613
  "jsx-host": "jsx-host";
614
+ "astro-host": "astro-host";
657
615
  "react-fiber": "react-fiber";
658
616
  "dom-ancestor": "dom-ancestor";
617
+ none: "none";
659
618
  }>;
660
619
  confidence: z.ZodEnum<{
661
- unknown: "unknown";
662
620
  exact: "exact";
663
621
  probable: "probable";
664
622
  approximate: "approximate";
623
+ unknown: "unknown";
665
624
  }>;
666
625
  }, z.core.$strict>>;
667
626
  }, z.core.$strict>;
@@ -695,6 +654,7 @@ declare const agentJobCreateRequestSchema: z.ZodObject<{
695
654
  language: z.ZodEnum<{
696
655
  tsx: "tsx";
697
656
  jsx: "jsx";
657
+ astro: "astro";
698
658
  }>;
699
659
  startLine: z.ZodNumber;
700
660
  endLine: z.ZodNumber;
@@ -949,8 +909,8 @@ declare const agentCheckResultSchema: z.ZodObject<{
949
909
  checkId: z.ZodString;
950
910
  label: z.ZodString;
951
911
  status: z.ZodEnum<{
952
- failed: "failed";
953
912
  cancelled: "cancelled";
913
+ failed: "failed";
954
914
  passed: "passed";
955
915
  "timed-out": "timed-out";
956
916
  }>;
@@ -961,16 +921,16 @@ declare const agentJobSnapshotSchema: z.ZodObject<{
961
921
  jobId: z.ZodString;
962
922
  status: z.ZodEnum<{
963
923
  queued: "queued";
964
- preparing: "preparing";
965
924
  running: "running";
966
- validating: "validating";
967
- applying: "applying";
968
- completed: "completed";
969
- failed: "failed";
925
+ cancelling: "cancelling";
970
926
  cancelled: "cancelled";
927
+ failed: "failed";
928
+ preparing: "preparing";
929
+ validating: "validating";
971
930
  "awaiting-review": "awaiting-review";
931
+ applying: "applying";
972
932
  applied: "applied";
973
- cancelling: "cancelling";
933
+ completed: "completed";
974
934
  reverting: "reverting";
975
935
  reverted: "reverted";
976
936
  }>;
@@ -1059,8 +1019,8 @@ declare const agentJobResultSchema: z.ZodObject<{
1059
1019
  checkId: z.ZodString;
1060
1020
  label: z.ZodString;
1061
1021
  status: z.ZodEnum<{
1062
- failed: "failed";
1063
1022
  cancelled: "cancelled";
1023
+ failed: "failed";
1064
1024
  passed: "passed";
1065
1025
  "timed-out": "timed-out";
1066
1026
  }>;
@@ -1073,16 +1033,16 @@ declare const agentJobResultResponseSchema: z.ZodObject<{
1073
1033
  jobId: z.ZodString;
1074
1034
  status: z.ZodEnum<{
1075
1035
  queued: "queued";
1076
- preparing: "preparing";
1077
1036
  running: "running";
1078
- validating: "validating";
1079
- applying: "applying";
1080
- completed: "completed";
1081
- failed: "failed";
1037
+ cancelling: "cancelling";
1082
1038
  cancelled: "cancelled";
1039
+ failed: "failed";
1040
+ preparing: "preparing";
1041
+ validating: "validating";
1083
1042
  "awaiting-review": "awaiting-review";
1043
+ applying: "applying";
1084
1044
  applied: "applied";
1085
- cancelling: "cancelling";
1045
+ completed: "completed";
1086
1046
  reverting: "reverting";
1087
1047
  reverted: "reverted";
1088
1048
  }>;
@@ -1171,8 +1131,8 @@ declare const agentJobResultResponseSchema: z.ZodObject<{
1171
1131
  checkId: z.ZodString;
1172
1132
  label: z.ZodString;
1173
1133
  status: z.ZodEnum<{
1174
- failed: "failed";
1175
1134
  cancelled: "cancelled";
1135
+ failed: "failed";
1176
1136
  passed: "passed";
1177
1137
  "timed-out": "timed-out";
1178
1138
  }>;
@@ -1187,16 +1147,16 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1187
1147
  jobId: z.ZodString;
1188
1148
  status: z.ZodEnum<{
1189
1149
  queued: "queued";
1190
- preparing: "preparing";
1191
1150
  running: "running";
1192
- validating: "validating";
1193
- applying: "applying";
1194
- completed: "completed";
1195
- failed: "failed";
1151
+ cancelling: "cancelling";
1196
1152
  cancelled: "cancelled";
1153
+ failed: "failed";
1154
+ preparing: "preparing";
1155
+ validating: "validating";
1197
1156
  "awaiting-review": "awaiting-review";
1157
+ applying: "applying";
1198
1158
  applied: "applied";
1199
- cancelling: "cancelling";
1159
+ completed: "completed";
1200
1160
  reverting: "reverting";
1201
1161
  reverted: "reverted";
1202
1162
  }>;
@@ -1207,16 +1167,16 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1207
1167
  jobId: z.ZodString;
1208
1168
  status: z.ZodEnum<{
1209
1169
  queued: "queued";
1210
- preparing: "preparing";
1211
1170
  running: "running";
1212
- validating: "validating";
1213
- applying: "applying";
1214
- completed: "completed";
1215
- failed: "failed";
1171
+ cancelling: "cancelling";
1216
1172
  cancelled: "cancelled";
1173
+ failed: "failed";
1174
+ preparing: "preparing";
1175
+ validating: "validating";
1217
1176
  "awaiting-review": "awaiting-review";
1177
+ applying: "applying";
1218
1178
  applied: "applied";
1219
- cancelling: "cancelling";
1179
+ completed: "completed";
1220
1180
  reverting: "reverting";
1221
1181
  reverted: "reverted";
1222
1182
  }>;
@@ -1294,16 +1254,16 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1294
1254
  jobId: z.ZodString;
1295
1255
  status: z.ZodEnum<{
1296
1256
  queued: "queued";
1297
- preparing: "preparing";
1298
1257
  running: "running";
1299
- validating: "validating";
1300
- applying: "applying";
1301
- completed: "completed";
1302
- failed: "failed";
1258
+ cancelling: "cancelling";
1303
1259
  cancelled: "cancelled";
1260
+ failed: "failed";
1261
+ preparing: "preparing";
1262
+ validating: "validating";
1304
1263
  "awaiting-review": "awaiting-review";
1264
+ applying: "applying";
1305
1265
  applied: "applied";
1306
- cancelling: "cancelling";
1266
+ completed: "completed";
1307
1267
  reverting: "reverting";
1308
1268
  reverted: "reverted";
1309
1269
  }>;
@@ -1318,16 +1278,16 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1318
1278
  jobId: z.ZodString;
1319
1279
  status: z.ZodEnum<{
1320
1280
  queued: "queued";
1321
- preparing: "preparing";
1322
1281
  running: "running";
1323
- validating: "validating";
1324
- applying: "applying";
1325
- completed: "completed";
1326
- failed: "failed";
1282
+ cancelling: "cancelling";
1327
1283
  cancelled: "cancelled";
1284
+ failed: "failed";
1285
+ preparing: "preparing";
1286
+ validating: "validating";
1328
1287
  "awaiting-review": "awaiting-review";
1288
+ applying: "applying";
1329
1289
  applied: "applied";
1330
- cancelling: "cancelling";
1290
+ completed: "completed";
1331
1291
  reverting: "reverting";
1332
1292
  reverted: "reverted";
1333
1293
  }>;
@@ -1338,8 +1298,8 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1338
1298
  toolCallId: z.ZodString;
1339
1299
  toolName: z.ZodString;
1340
1300
  state: z.ZodEnum<{
1341
- started: "started";
1342
1301
  failed: "failed";
1302
+ started: "started";
1343
1303
  succeeded: "succeeded";
1344
1304
  }>;
1345
1305
  relativePath: z.ZodOptional<z.ZodString>;
@@ -1351,16 +1311,16 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1351
1311
  jobId: z.ZodString;
1352
1312
  status: z.ZodEnum<{
1353
1313
  queued: "queued";
1354
- preparing: "preparing";
1355
1314
  running: "running";
1356
- validating: "validating";
1357
- applying: "applying";
1358
- completed: "completed";
1359
- failed: "failed";
1315
+ cancelling: "cancelling";
1360
1316
  cancelled: "cancelled";
1317
+ failed: "failed";
1318
+ preparing: "preparing";
1319
+ validating: "validating";
1361
1320
  "awaiting-review": "awaiting-review";
1321
+ applying: "applying";
1362
1322
  applied: "applied";
1363
- cancelling: "cancelling";
1323
+ completed: "completed";
1364
1324
  reverting: "reverting";
1365
1325
  reverted: "reverted";
1366
1326
  }>;
@@ -1371,8 +1331,8 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1371
1331
  checkId: z.ZodString;
1372
1332
  label: z.ZodString;
1373
1333
  status: z.ZodEnum<{
1374
- failed: "failed";
1375
1334
  cancelled: "cancelled";
1335
+ failed: "failed";
1376
1336
  passed: "passed";
1377
1337
  "timed-out": "timed-out";
1378
1338
  }>;
@@ -1386,16 +1346,16 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1386
1346
  jobId: z.ZodString;
1387
1347
  status: z.ZodEnum<{
1388
1348
  queued: "queued";
1389
- preparing: "preparing";
1390
1349
  running: "running";
1391
- validating: "validating";
1392
- applying: "applying";
1393
- completed: "completed";
1394
- failed: "failed";
1350
+ cancelling: "cancelling";
1395
1351
  cancelled: "cancelled";
1352
+ failed: "failed";
1353
+ preparing: "preparing";
1354
+ validating: "validating";
1396
1355
  "awaiting-review": "awaiting-review";
1356
+ applying: "applying";
1397
1357
  applied: "applied";
1398
- cancelling: "cancelling";
1358
+ completed: "completed";
1399
1359
  reverting: "reverting";
1400
1360
  reverted: "reverted";
1401
1361
  }>;
@@ -1410,16 +1370,16 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1410
1370
  jobId: z.ZodString;
1411
1371
  status: z.ZodEnum<{
1412
1372
  queued: "queued";
1413
- preparing: "preparing";
1414
1373
  running: "running";
1415
- validating: "validating";
1416
- applying: "applying";
1417
- completed: "completed";
1418
- failed: "failed";
1374
+ cancelling: "cancelling";
1419
1375
  cancelled: "cancelled";
1376
+ failed: "failed";
1377
+ preparing: "preparing";
1378
+ validating: "validating";
1420
1379
  "awaiting-review": "awaiting-review";
1380
+ applying: "applying";
1421
1381
  applied: "applied";
1422
- cancelling: "cancelling";
1382
+ completed: "completed";
1423
1383
  reverting: "reverting";
1424
1384
  reverted: "reverted";
1425
1385
  }>;
@@ -1501,4 +1461,4 @@ type ApiResponse<T> = ApiSuccess<T> | ApiFailure;
1501
1461
 
1502
1462
  declare const SPOTPATCH_REPOSITORY_URL: "https://github.com/huanglvjing/spotpatch";
1503
1463
 
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, ERROR_CODES, ERROR_CODE_VALUES, type EditorOpenResult, type 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, isErrorCode, isSensitiveName, limitDataFlowReportCollections, openEditorRequestSchema, parseSourceMarker, redactSensitiveText, runtimeBootstrapRequestSchema, runtimeConfigSchema, sanitizeUrl, sourceContextRequestSchema, spotAnnotationRequestSchema, spotTargetContextRequestSchema };
1464
+ 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 };