@spotpatch/shared 1.9.0 → 1.11.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/chunk-2LVIH7OA.js +75 -0
- package/dist/chunk-2LVIH7OA.js.map +1 -0
- package/dist/chunk-JGOIBOFI.js +34 -0
- package/dist/chunk-JGOIBOFI.js.map +1 -0
- package/dist/chunk-JU5HIWX7.js +431 -0
- package/dist/chunk-JU5HIWX7.js.map +1 -0
- package/dist/{chunk-K2UAPG7T.js → chunk-RK46Y7LD.js} +2 -23
- package/dist/chunk-RK46Y7LD.js.map +1 -0
- package/dist/{data-flow-runtime-zwbvImvl.d.cts → data-flow-runtime-BiouPr1G.d.cts} +2 -16
- package/dist/{data-flow-runtime-zwbvImvl.d.ts → data-flow-runtime-oKZOBYAB.d.ts} +2 -16
- package/dist/data-flow-runtime.cjs +11 -1
- package/dist/data-flow-runtime.cjs.map +1 -1
- package/dist/data-flow-runtime.d.cts +2 -1
- package/dist/data-flow-runtime.d.ts +2 -1
- package/dist/data-flow-runtime.js +4 -2
- package/dist/endpoints-GedF44M2.d.cts +26 -0
- package/dist/endpoints-GedF44M2.d.ts +26 -0
- package/dist/external-agent-control-BB-oicmw.d.cts +547 -0
- package/dist/external-agent-control-BB-oicmw.d.ts +547 -0
- package/dist/external-agent-node.cjs +692 -0
- package/dist/external-agent-node.cjs.map +1 -0
- package/dist/external-agent-node.d.cts +556 -0
- package/dist/external-agent-node.d.ts +556 -0
- package/dist/external-agent-node.js +210 -0
- package/dist/external-agent-node.js.map +1 -0
- package/dist/external-handoff--lT9XQEw.d.cts +720 -0
- package/dist/external-handoff--lT9XQEw.d.ts +720 -0
- package/dist/external-handoff-browser.cjs +324 -0
- package/dist/external-handoff-browser.cjs.map +1 -0
- package/dist/external-handoff-browser.d.cts +58 -0
- package/dist/external-handoff-browser.d.ts +58 -0
- package/dist/external-handoff-browser.js +198 -0
- package/dist/external-handoff-browser.js.map +1 -0
- package/dist/index.cjs +664 -129
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +164 -128
- package/dist/index.d.ts +164 -128
- package/dist/index.js +354 -267
- package/dist/index.js.map +1 -1
- package/package.json +28 -2
- package/dist/chunk-K2UAPG7T.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as
|
|
1
|
+
import { C as ContextBudget, y as SPOTPATCH_LOCALE_PREFERENCES, S as SpotAnnotation } from './external-handoff--lT9XQEw.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--lT9XQEw.js';
|
|
3
|
+
import { R as ReportCompleteness, C as ComponentDataFlowReport, P as PageDataFlowReport, a as RuntimeDataFlowConfig } from './data-flow-runtime-oKZOBYAB.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-oKZOBYAB.js';
|
|
3
5
|
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-BB-oicmw.js';
|
|
4
9
|
|
|
5
10
|
declare const ERROR_CODES: {
|
|
6
11
|
readonly INVALID_REQUEST: "INVALID_REQUEST";
|
|
@@ -23,6 +28,24 @@ declare const ERROR_CODES: {
|
|
|
23
28
|
readonly AGENT_BUSY: "AGENT_BUSY";
|
|
24
29
|
readonly AGENT_LIMIT_EXCEEDED: "AGENT_LIMIT_EXCEEDED";
|
|
25
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";
|
|
26
49
|
readonly WORKTREE_DIRTY: "WORKTREE_DIRTY";
|
|
27
50
|
readonly WORKTREE_NOT_REPOSITORY: "WORKTREE_NOT_REPOSITORY";
|
|
28
51
|
readonly WORKTREE_OPERATION_IN_PROGRESS: "WORKTREE_OPERATION_IN_PROGRESS";
|
|
@@ -41,6 +64,8 @@ declare const ERROR_CODES: {
|
|
|
41
64
|
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
42
65
|
};
|
|
43
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;
|
|
44
69
|
|
|
45
70
|
declare class SpotPatchError extends Error {
|
|
46
71
|
readonly code: ErrorCode;
|
|
@@ -51,107 +76,6 @@ declare function isSensitiveName(name: string): boolean;
|
|
|
51
76
|
declare function redactSensitiveText(value: string): string;
|
|
52
77
|
declare function sanitizeUrl(value: string, baseUrl: string): string;
|
|
53
78
|
|
|
54
|
-
interface ContextBudget {
|
|
55
|
-
readonly totalCharacters: number;
|
|
56
|
-
readonly domCharacters: number;
|
|
57
|
-
readonly cssCharacters: number;
|
|
58
|
-
readonly codeCharacters: number;
|
|
59
|
-
readonly maxCodeLines: number;
|
|
60
|
-
readonly maxComponentDepth: number;
|
|
61
|
-
}
|
|
62
|
-
interface CodeContext {
|
|
63
|
-
readonly relativePath: string;
|
|
64
|
-
readonly language: "tsx" | "jsx";
|
|
65
|
-
readonly startLine: number;
|
|
66
|
-
readonly endLine: number;
|
|
67
|
-
readonly excerpt: string;
|
|
68
|
-
readonly boundary: "component" | "nearby-lines";
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
type SourceConfidence = "exact" | "probable" | "approximate" | "unknown";
|
|
72
|
-
type SourceOrigin = "jsx-host" | "react-fiber" | "dom-ancestor" | "none";
|
|
73
|
-
interface SourceRef {
|
|
74
|
-
readonly fileId?: string;
|
|
75
|
-
readonly relativePath?: string;
|
|
76
|
-
readonly line?: number;
|
|
77
|
-
readonly column?: number;
|
|
78
|
-
readonly origin: SourceOrigin;
|
|
79
|
-
readonly confidence: SourceConfidence;
|
|
80
|
-
}
|
|
81
|
-
interface ReactContext {
|
|
82
|
-
readonly supported: boolean;
|
|
83
|
-
readonly version?: string;
|
|
84
|
-
readonly componentName?: string;
|
|
85
|
-
readonly componentSourceId?: string;
|
|
86
|
-
readonly sourceVersion?: string;
|
|
87
|
-
readonly componentStack: readonly string[];
|
|
88
|
-
readonly source?: SourceRef;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
interface MatchedStyleRule {
|
|
92
|
-
readonly selector: string;
|
|
93
|
-
readonly declarations: string;
|
|
94
|
-
readonly source?: string;
|
|
95
|
-
readonly media?: string;
|
|
96
|
-
}
|
|
97
|
-
interface StyleContext {
|
|
98
|
-
readonly classNames: readonly string[];
|
|
99
|
-
readonly inlineStyle?: string;
|
|
100
|
-
readonly matchedRules: readonly MatchedStyleRule[];
|
|
101
|
-
readonly computed: Readonly<Record<string, string>>;
|
|
102
|
-
readonly warnings: readonly string[];
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
interface PageContext {
|
|
106
|
-
readonly url: string;
|
|
107
|
-
readonly pathname: string;
|
|
108
|
-
readonly title: string;
|
|
109
|
-
readonly viewportWidth: number;
|
|
110
|
-
readonly viewportHeight: number;
|
|
111
|
-
readonly devicePixelRatio: number;
|
|
112
|
-
}
|
|
113
|
-
interface ElementContext {
|
|
114
|
-
readonly tagName: string;
|
|
115
|
-
readonly selector: string;
|
|
116
|
-
readonly sanitizedHtml: string;
|
|
117
|
-
readonly textPreview?: string;
|
|
118
|
-
readonly role?: string;
|
|
119
|
-
readonly rect: Readonly<{
|
|
120
|
-
x: number;
|
|
121
|
-
y: number;
|
|
122
|
-
width: number;
|
|
123
|
-
height: number;
|
|
124
|
-
}>;
|
|
125
|
-
}
|
|
126
|
-
/** Protocol hard limit. Runtime configuration may choose a smaller limit. */
|
|
127
|
-
declare const MAX_ANNOTATION_TARGETS = 20;
|
|
128
|
-
/** Each target owns its requested change; the UI enforces the same bound. */
|
|
129
|
-
declare const MAX_TARGET_INSTRUCTION_CHARACTERS = 2000;
|
|
130
|
-
/** Keeps the complete, atomic user intent within the prompt and request budgets. */
|
|
131
|
-
declare const MAX_ANNOTATION_INSTRUCTION_CHARACTERS = 4000;
|
|
132
|
-
declare const SPOTPATCH_LOCALES: readonly ["en-US", "zh-CN"];
|
|
133
|
-
type SpotPatchLocale = (typeof SPOTPATCH_LOCALES)[number];
|
|
134
|
-
declare const SPOTPATCH_LOCALE_PREFERENCES: readonly ["auto", "en-US", "zh-CN"];
|
|
135
|
-
type SpotPatchLocalePreference = (typeof SPOTPATCH_LOCALE_PREFERENCES)[number];
|
|
136
|
-
interface SpotTargetContext {
|
|
137
|
-
readonly instruction: string;
|
|
138
|
-
readonly page?: Readonly<PageContext>;
|
|
139
|
-
readonly source: SourceRef;
|
|
140
|
-
readonly react: ReactContext;
|
|
141
|
-
readonly element: ElementContext;
|
|
142
|
-
readonly styles: StyleContext;
|
|
143
|
-
readonly code?: CodeContext;
|
|
144
|
-
readonly warnings: readonly string[];
|
|
145
|
-
}
|
|
146
|
-
interface SpotAnnotation {
|
|
147
|
-
readonly schemaVersion: 3;
|
|
148
|
-
readonly id: string;
|
|
149
|
-
readonly locale: SpotPatchLocale;
|
|
150
|
-
readonly page: Readonly<PageContext>;
|
|
151
|
-
readonly targets: readonly SpotTargetContext[];
|
|
152
|
-
readonly createdAt: string;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
79
|
/**
|
|
156
80
|
* Syntax names shared by the compiler and Node analyzer.
|
|
157
81
|
*
|
|
@@ -351,6 +275,7 @@ interface AgentCheckResult {
|
|
|
351
275
|
readonly label: string;
|
|
352
276
|
readonly status: AgentCheckStatus;
|
|
353
277
|
readonly durationMs: number;
|
|
278
|
+
readonly exitCode?: number;
|
|
354
279
|
readonly output: string;
|
|
355
280
|
}
|
|
356
281
|
interface AgentJobSnapshot {
|
|
@@ -391,6 +316,9 @@ interface RuntimeConfigBase {
|
|
|
391
316
|
readonly dataFlow: RuntimeDataFlowConfig;
|
|
392
317
|
readonly debug: boolean;
|
|
393
318
|
readonly editor: (typeof SPOTPATCH_EDITOR_PREFERENCES)[number];
|
|
319
|
+
readonly externalAgent: Readonly<{
|
|
320
|
+
enabled: boolean;
|
|
321
|
+
}>;
|
|
394
322
|
readonly frameworkVersion: string;
|
|
395
323
|
readonly locale: (typeof SPOTPATCH_LOCALE_PREFERENCES)[number];
|
|
396
324
|
readonly maxTargets: number;
|
|
@@ -867,10 +795,10 @@ declare const agentCapabilitySnapshotSchema: z.ZodObject<{
|
|
|
867
795
|
}>;
|
|
868
796
|
state: z.ZodEnum<{
|
|
869
797
|
unknown: "unknown";
|
|
870
|
-
unavailable: "unavailable";
|
|
871
798
|
probing: "probing";
|
|
872
799
|
"agent-ready": "agent-ready";
|
|
873
800
|
"prompt-only": "prompt-only";
|
|
801
|
+
unavailable: "unavailable";
|
|
874
802
|
}>;
|
|
875
803
|
authenticated: z.ZodBoolean;
|
|
876
804
|
modelAvailable: z.ZodBoolean;
|
|
@@ -899,6 +827,24 @@ declare const agentCapabilitySnapshotSchema: z.ZodObject<{
|
|
|
899
827
|
readonly AGENT_BUSY: "AGENT_BUSY";
|
|
900
828
|
readonly AGENT_LIMIT_EXCEEDED: "AGENT_LIMIT_EXCEEDED";
|
|
901
829
|
readonly AGENT_CANCELLED: "AGENT_CANCELLED";
|
|
830
|
+
readonly EXTERNAL_HANDOFF_DISABLED: "EXTERNAL_HANDOFF_DISABLED";
|
|
831
|
+
readonly EXTERNAL_HANDOFF_UNAVAILABLE: "EXTERNAL_HANDOFF_UNAVAILABLE";
|
|
832
|
+
readonly HANDOFF_VALIDATION_FAILED: "HANDOFF_VALIDATION_FAILED";
|
|
833
|
+
readonly HANDOFF_SOURCE_STALE: "HANDOFF_SOURCE_STALE";
|
|
834
|
+
readonly HANDOFF_NOT_FOUND: "HANDOFF_NOT_FOUND";
|
|
835
|
+
readonly HANDOFF_EXPIRED: "HANDOFF_EXPIRED";
|
|
836
|
+
readonly HANDOFF_CURSOR_INVALID: "HANDOFF_CURSOR_INVALID";
|
|
837
|
+
readonly HANDOFF_RESPONSE_TOO_LARGE: "HANDOFF_RESPONSE_TOO_LARGE";
|
|
838
|
+
readonly BRIDGE_UNAUTHORIZED: "BRIDGE_UNAUTHORIZED";
|
|
839
|
+
readonly BRIDGE_PROTOCOL_MISMATCH: "BRIDGE_PROTOCOL_MISMATCH";
|
|
840
|
+
readonly BRIDGE_BUSY: "BRIDGE_BUSY";
|
|
841
|
+
readonly EXTERNAL_AGENT_BUSY: "EXTERNAL_AGENT_BUSY";
|
|
842
|
+
readonly ACTIVE_ADAPTER_CONFLICT: "ACTIVE_ADAPTER_CONFLICT";
|
|
843
|
+
readonly ACTIVE_ADAPTER_LEASE_INVALID: "ACTIVE_ADAPTER_LEASE_INVALID";
|
|
844
|
+
readonly ACTIVE_DISPATCH_INVALID: "ACTIVE_DISPATCH_INVALID";
|
|
845
|
+
readonly SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
|
|
846
|
+
readonly SESSION_AMBIGUOUS: "SESSION_AMBIGUOUS";
|
|
847
|
+
readonly SESSION_CLOSED: "SESSION_CLOSED";
|
|
902
848
|
readonly WORKTREE_DIRTY: "WORKTREE_DIRTY";
|
|
903
849
|
readonly WORKTREE_NOT_REPOSITORY: "WORKTREE_NOT_REPOSITORY";
|
|
904
850
|
readonly WORKTREE_OPERATION_IN_PROGRESS: "WORKTREE_OPERATION_IN_PROGRESS";
|
|
@@ -920,8 +866,8 @@ declare const agentCapabilitySnapshotSchema: z.ZodObject<{
|
|
|
920
866
|
declare const agentWorkspaceHealthSnapshotSchema: z.ZodObject<{
|
|
921
867
|
state: z.ZodEnum<{
|
|
922
868
|
ready: "ready";
|
|
923
|
-
"consent-required": "consent-required";
|
|
924
869
|
blocked: "blocked";
|
|
870
|
+
"consent-required": "consent-required";
|
|
925
871
|
}>;
|
|
926
872
|
checkedAt: z.ZodISODateTime;
|
|
927
873
|
changes: z.ZodObject<{
|
|
@@ -953,6 +899,24 @@ declare const agentWorkspaceHealthSnapshotSchema: z.ZodObject<{
|
|
|
953
899
|
readonly AGENT_BUSY: "AGENT_BUSY";
|
|
954
900
|
readonly AGENT_LIMIT_EXCEEDED: "AGENT_LIMIT_EXCEEDED";
|
|
955
901
|
readonly AGENT_CANCELLED: "AGENT_CANCELLED";
|
|
902
|
+
readonly EXTERNAL_HANDOFF_DISABLED: "EXTERNAL_HANDOFF_DISABLED";
|
|
903
|
+
readonly EXTERNAL_HANDOFF_UNAVAILABLE: "EXTERNAL_HANDOFF_UNAVAILABLE";
|
|
904
|
+
readonly HANDOFF_VALIDATION_FAILED: "HANDOFF_VALIDATION_FAILED";
|
|
905
|
+
readonly HANDOFF_SOURCE_STALE: "HANDOFF_SOURCE_STALE";
|
|
906
|
+
readonly HANDOFF_NOT_FOUND: "HANDOFF_NOT_FOUND";
|
|
907
|
+
readonly HANDOFF_EXPIRED: "HANDOFF_EXPIRED";
|
|
908
|
+
readonly HANDOFF_CURSOR_INVALID: "HANDOFF_CURSOR_INVALID";
|
|
909
|
+
readonly HANDOFF_RESPONSE_TOO_LARGE: "HANDOFF_RESPONSE_TOO_LARGE";
|
|
910
|
+
readonly BRIDGE_UNAUTHORIZED: "BRIDGE_UNAUTHORIZED";
|
|
911
|
+
readonly BRIDGE_PROTOCOL_MISMATCH: "BRIDGE_PROTOCOL_MISMATCH";
|
|
912
|
+
readonly BRIDGE_BUSY: "BRIDGE_BUSY";
|
|
913
|
+
readonly EXTERNAL_AGENT_BUSY: "EXTERNAL_AGENT_BUSY";
|
|
914
|
+
readonly ACTIVE_ADAPTER_CONFLICT: "ACTIVE_ADAPTER_CONFLICT";
|
|
915
|
+
readonly ACTIVE_ADAPTER_LEASE_INVALID: "ACTIVE_ADAPTER_LEASE_INVALID";
|
|
916
|
+
readonly ACTIVE_DISPATCH_INVALID: "ACTIVE_DISPATCH_INVALID";
|
|
917
|
+
readonly SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
|
|
918
|
+
readonly SESSION_AMBIGUOUS: "SESSION_AMBIGUOUS";
|
|
919
|
+
readonly SESSION_CLOSED: "SESSION_CLOSED";
|
|
956
920
|
readonly WORKTREE_DIRTY: "WORKTREE_DIRTY";
|
|
957
921
|
readonly WORKTREE_NOT_REPOSITORY: "WORKTREE_NOT_REPOSITORY";
|
|
958
922
|
readonly WORKTREE_OPERATION_IN_PROGRESS: "WORKTREE_OPERATION_IN_PROGRESS";
|
|
@@ -985,8 +949,8 @@ declare const agentCheckResultSchema: z.ZodObject<{
|
|
|
985
949
|
checkId: z.ZodString;
|
|
986
950
|
label: z.ZodString;
|
|
987
951
|
status: z.ZodEnum<{
|
|
988
|
-
cancelled: "cancelled";
|
|
989
952
|
failed: "failed";
|
|
953
|
+
cancelled: "cancelled";
|
|
990
954
|
passed: "passed";
|
|
991
955
|
"timed-out": "timed-out";
|
|
992
956
|
}>;
|
|
@@ -996,6 +960,8 @@ declare const agentCheckResultSchema: z.ZodObject<{
|
|
|
996
960
|
declare const agentJobSnapshotSchema: z.ZodObject<{
|
|
997
961
|
jobId: z.ZodString;
|
|
998
962
|
status: z.ZodEnum<{
|
|
963
|
+
completed: "completed";
|
|
964
|
+
failed: "failed";
|
|
999
965
|
queued: "queued";
|
|
1000
966
|
preparing: "preparing";
|
|
1001
967
|
running: "running";
|
|
@@ -1003,12 +969,10 @@ declare const agentJobSnapshotSchema: z.ZodObject<{
|
|
|
1003
969
|
"awaiting-review": "awaiting-review";
|
|
1004
970
|
applying: "applying";
|
|
1005
971
|
applied: "applied";
|
|
1006
|
-
completed: "completed";
|
|
1007
972
|
cancelling: "cancelling";
|
|
1008
973
|
cancelled: "cancelled";
|
|
1009
974
|
reverting: "reverting";
|
|
1010
975
|
reverted: "reverted";
|
|
1011
|
-
failed: "failed";
|
|
1012
976
|
}>;
|
|
1013
977
|
providerProfileId: z.ZodString;
|
|
1014
978
|
providerLabel: z.ZodString;
|
|
@@ -1041,6 +1005,24 @@ declare const agentJobSnapshotSchema: z.ZodObject<{
|
|
|
1041
1005
|
readonly AGENT_BUSY: "AGENT_BUSY";
|
|
1042
1006
|
readonly AGENT_LIMIT_EXCEEDED: "AGENT_LIMIT_EXCEEDED";
|
|
1043
1007
|
readonly AGENT_CANCELLED: "AGENT_CANCELLED";
|
|
1008
|
+
readonly EXTERNAL_HANDOFF_DISABLED: "EXTERNAL_HANDOFF_DISABLED";
|
|
1009
|
+
readonly EXTERNAL_HANDOFF_UNAVAILABLE: "EXTERNAL_HANDOFF_UNAVAILABLE";
|
|
1010
|
+
readonly HANDOFF_VALIDATION_FAILED: "HANDOFF_VALIDATION_FAILED";
|
|
1011
|
+
readonly HANDOFF_SOURCE_STALE: "HANDOFF_SOURCE_STALE";
|
|
1012
|
+
readonly HANDOFF_NOT_FOUND: "HANDOFF_NOT_FOUND";
|
|
1013
|
+
readonly HANDOFF_EXPIRED: "HANDOFF_EXPIRED";
|
|
1014
|
+
readonly HANDOFF_CURSOR_INVALID: "HANDOFF_CURSOR_INVALID";
|
|
1015
|
+
readonly HANDOFF_RESPONSE_TOO_LARGE: "HANDOFF_RESPONSE_TOO_LARGE";
|
|
1016
|
+
readonly BRIDGE_UNAUTHORIZED: "BRIDGE_UNAUTHORIZED";
|
|
1017
|
+
readonly BRIDGE_PROTOCOL_MISMATCH: "BRIDGE_PROTOCOL_MISMATCH";
|
|
1018
|
+
readonly BRIDGE_BUSY: "BRIDGE_BUSY";
|
|
1019
|
+
readonly EXTERNAL_AGENT_BUSY: "EXTERNAL_AGENT_BUSY";
|
|
1020
|
+
readonly ACTIVE_ADAPTER_CONFLICT: "ACTIVE_ADAPTER_CONFLICT";
|
|
1021
|
+
readonly ACTIVE_ADAPTER_LEASE_INVALID: "ACTIVE_ADAPTER_LEASE_INVALID";
|
|
1022
|
+
readonly ACTIVE_DISPATCH_INVALID: "ACTIVE_DISPATCH_INVALID";
|
|
1023
|
+
readonly SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
|
|
1024
|
+
readonly SESSION_AMBIGUOUS: "SESSION_AMBIGUOUS";
|
|
1025
|
+
readonly SESSION_CLOSED: "SESSION_CLOSED";
|
|
1044
1026
|
readonly WORKTREE_DIRTY: "WORKTREE_DIRTY";
|
|
1045
1027
|
readonly WORKTREE_NOT_REPOSITORY: "WORKTREE_NOT_REPOSITORY";
|
|
1046
1028
|
readonly WORKTREE_OPERATION_IN_PROGRESS: "WORKTREE_OPERATION_IN_PROGRESS";
|
|
@@ -1077,8 +1059,8 @@ declare const agentJobResultSchema: z.ZodObject<{
|
|
|
1077
1059
|
checkId: z.ZodString;
|
|
1078
1060
|
label: z.ZodString;
|
|
1079
1061
|
status: z.ZodEnum<{
|
|
1080
|
-
cancelled: "cancelled";
|
|
1081
1062
|
failed: "failed";
|
|
1063
|
+
cancelled: "cancelled";
|
|
1082
1064
|
passed: "passed";
|
|
1083
1065
|
"timed-out": "timed-out";
|
|
1084
1066
|
}>;
|
|
@@ -1090,6 +1072,8 @@ declare const agentJobResultResponseSchema: z.ZodObject<{
|
|
|
1090
1072
|
snapshot: z.ZodObject<{
|
|
1091
1073
|
jobId: z.ZodString;
|
|
1092
1074
|
status: z.ZodEnum<{
|
|
1075
|
+
completed: "completed";
|
|
1076
|
+
failed: "failed";
|
|
1093
1077
|
queued: "queued";
|
|
1094
1078
|
preparing: "preparing";
|
|
1095
1079
|
running: "running";
|
|
@@ -1097,12 +1081,10 @@ declare const agentJobResultResponseSchema: z.ZodObject<{
|
|
|
1097
1081
|
"awaiting-review": "awaiting-review";
|
|
1098
1082
|
applying: "applying";
|
|
1099
1083
|
applied: "applied";
|
|
1100
|
-
completed: "completed";
|
|
1101
1084
|
cancelling: "cancelling";
|
|
1102
1085
|
cancelled: "cancelled";
|
|
1103
1086
|
reverting: "reverting";
|
|
1104
1087
|
reverted: "reverted";
|
|
1105
|
-
failed: "failed";
|
|
1106
1088
|
}>;
|
|
1107
1089
|
providerProfileId: z.ZodString;
|
|
1108
1090
|
providerLabel: z.ZodString;
|
|
@@ -1135,6 +1117,24 @@ declare const agentJobResultResponseSchema: z.ZodObject<{
|
|
|
1135
1117
|
readonly AGENT_BUSY: "AGENT_BUSY";
|
|
1136
1118
|
readonly AGENT_LIMIT_EXCEEDED: "AGENT_LIMIT_EXCEEDED";
|
|
1137
1119
|
readonly AGENT_CANCELLED: "AGENT_CANCELLED";
|
|
1120
|
+
readonly EXTERNAL_HANDOFF_DISABLED: "EXTERNAL_HANDOFF_DISABLED";
|
|
1121
|
+
readonly EXTERNAL_HANDOFF_UNAVAILABLE: "EXTERNAL_HANDOFF_UNAVAILABLE";
|
|
1122
|
+
readonly HANDOFF_VALIDATION_FAILED: "HANDOFF_VALIDATION_FAILED";
|
|
1123
|
+
readonly HANDOFF_SOURCE_STALE: "HANDOFF_SOURCE_STALE";
|
|
1124
|
+
readonly HANDOFF_NOT_FOUND: "HANDOFF_NOT_FOUND";
|
|
1125
|
+
readonly HANDOFF_EXPIRED: "HANDOFF_EXPIRED";
|
|
1126
|
+
readonly HANDOFF_CURSOR_INVALID: "HANDOFF_CURSOR_INVALID";
|
|
1127
|
+
readonly HANDOFF_RESPONSE_TOO_LARGE: "HANDOFF_RESPONSE_TOO_LARGE";
|
|
1128
|
+
readonly BRIDGE_UNAUTHORIZED: "BRIDGE_UNAUTHORIZED";
|
|
1129
|
+
readonly BRIDGE_PROTOCOL_MISMATCH: "BRIDGE_PROTOCOL_MISMATCH";
|
|
1130
|
+
readonly BRIDGE_BUSY: "BRIDGE_BUSY";
|
|
1131
|
+
readonly EXTERNAL_AGENT_BUSY: "EXTERNAL_AGENT_BUSY";
|
|
1132
|
+
readonly ACTIVE_ADAPTER_CONFLICT: "ACTIVE_ADAPTER_CONFLICT";
|
|
1133
|
+
readonly ACTIVE_ADAPTER_LEASE_INVALID: "ACTIVE_ADAPTER_LEASE_INVALID";
|
|
1134
|
+
readonly ACTIVE_DISPATCH_INVALID: "ACTIVE_DISPATCH_INVALID";
|
|
1135
|
+
readonly SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
|
|
1136
|
+
readonly SESSION_AMBIGUOUS: "SESSION_AMBIGUOUS";
|
|
1137
|
+
readonly SESSION_CLOSED: "SESSION_CLOSED";
|
|
1138
1138
|
readonly WORKTREE_DIRTY: "WORKTREE_DIRTY";
|
|
1139
1139
|
readonly WORKTREE_NOT_REPOSITORY: "WORKTREE_NOT_REPOSITORY";
|
|
1140
1140
|
readonly WORKTREE_OPERATION_IN_PROGRESS: "WORKTREE_OPERATION_IN_PROGRESS";
|
|
@@ -1171,8 +1171,8 @@ declare const agentJobResultResponseSchema: z.ZodObject<{
|
|
|
1171
1171
|
checkId: z.ZodString;
|
|
1172
1172
|
label: z.ZodString;
|
|
1173
1173
|
status: z.ZodEnum<{
|
|
1174
|
-
cancelled: "cancelled";
|
|
1175
1174
|
failed: "failed";
|
|
1175
|
+
cancelled: "cancelled";
|
|
1176
1176
|
passed: "passed";
|
|
1177
1177
|
"timed-out": "timed-out";
|
|
1178
1178
|
}>;
|
|
@@ -1186,6 +1186,8 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1186
1186
|
sequence: z.ZodNumber;
|
|
1187
1187
|
jobId: z.ZodString;
|
|
1188
1188
|
status: z.ZodEnum<{
|
|
1189
|
+
completed: "completed";
|
|
1190
|
+
failed: "failed";
|
|
1189
1191
|
queued: "queued";
|
|
1190
1192
|
preparing: "preparing";
|
|
1191
1193
|
running: "running";
|
|
@@ -1193,12 +1195,10 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1193
1195
|
"awaiting-review": "awaiting-review";
|
|
1194
1196
|
applying: "applying";
|
|
1195
1197
|
applied: "applied";
|
|
1196
|
-
completed: "completed";
|
|
1197
1198
|
cancelling: "cancelling";
|
|
1198
1199
|
cancelled: "cancelled";
|
|
1199
1200
|
reverting: "reverting";
|
|
1200
1201
|
reverted: "reverted";
|
|
1201
|
-
failed: "failed";
|
|
1202
1202
|
}>;
|
|
1203
1203
|
timestamp: z.ZodISODateTime;
|
|
1204
1204
|
type: z.ZodLiteral<"snapshot">;
|
|
@@ -1206,6 +1206,8 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1206
1206
|
snapshot: z.ZodObject<{
|
|
1207
1207
|
jobId: z.ZodString;
|
|
1208
1208
|
status: z.ZodEnum<{
|
|
1209
|
+
completed: "completed";
|
|
1210
|
+
failed: "failed";
|
|
1209
1211
|
queued: "queued";
|
|
1210
1212
|
preparing: "preparing";
|
|
1211
1213
|
running: "running";
|
|
@@ -1213,12 +1215,10 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1213
1215
|
"awaiting-review": "awaiting-review";
|
|
1214
1216
|
applying: "applying";
|
|
1215
1217
|
applied: "applied";
|
|
1216
|
-
completed: "completed";
|
|
1217
1218
|
cancelling: "cancelling";
|
|
1218
1219
|
cancelled: "cancelled";
|
|
1219
1220
|
reverting: "reverting";
|
|
1220
1221
|
reverted: "reverted";
|
|
1221
|
-
failed: "failed";
|
|
1222
1222
|
}>;
|
|
1223
1223
|
providerProfileId: z.ZodString;
|
|
1224
1224
|
providerLabel: z.ZodString;
|
|
@@ -1251,6 +1251,24 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1251
1251
|
readonly AGENT_BUSY: "AGENT_BUSY";
|
|
1252
1252
|
readonly AGENT_LIMIT_EXCEEDED: "AGENT_LIMIT_EXCEEDED";
|
|
1253
1253
|
readonly AGENT_CANCELLED: "AGENT_CANCELLED";
|
|
1254
|
+
readonly EXTERNAL_HANDOFF_DISABLED: "EXTERNAL_HANDOFF_DISABLED";
|
|
1255
|
+
readonly EXTERNAL_HANDOFF_UNAVAILABLE: "EXTERNAL_HANDOFF_UNAVAILABLE";
|
|
1256
|
+
readonly HANDOFF_VALIDATION_FAILED: "HANDOFF_VALIDATION_FAILED";
|
|
1257
|
+
readonly HANDOFF_SOURCE_STALE: "HANDOFF_SOURCE_STALE";
|
|
1258
|
+
readonly HANDOFF_NOT_FOUND: "HANDOFF_NOT_FOUND";
|
|
1259
|
+
readonly HANDOFF_EXPIRED: "HANDOFF_EXPIRED";
|
|
1260
|
+
readonly HANDOFF_CURSOR_INVALID: "HANDOFF_CURSOR_INVALID";
|
|
1261
|
+
readonly HANDOFF_RESPONSE_TOO_LARGE: "HANDOFF_RESPONSE_TOO_LARGE";
|
|
1262
|
+
readonly BRIDGE_UNAUTHORIZED: "BRIDGE_UNAUTHORIZED";
|
|
1263
|
+
readonly BRIDGE_PROTOCOL_MISMATCH: "BRIDGE_PROTOCOL_MISMATCH";
|
|
1264
|
+
readonly BRIDGE_BUSY: "BRIDGE_BUSY";
|
|
1265
|
+
readonly EXTERNAL_AGENT_BUSY: "EXTERNAL_AGENT_BUSY";
|
|
1266
|
+
readonly ACTIVE_ADAPTER_CONFLICT: "ACTIVE_ADAPTER_CONFLICT";
|
|
1267
|
+
readonly ACTIVE_ADAPTER_LEASE_INVALID: "ACTIVE_ADAPTER_LEASE_INVALID";
|
|
1268
|
+
readonly ACTIVE_DISPATCH_INVALID: "ACTIVE_DISPATCH_INVALID";
|
|
1269
|
+
readonly SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
|
|
1270
|
+
readonly SESSION_AMBIGUOUS: "SESSION_AMBIGUOUS";
|
|
1271
|
+
readonly SESSION_CLOSED: "SESSION_CLOSED";
|
|
1254
1272
|
readonly WORKTREE_DIRTY: "WORKTREE_DIRTY";
|
|
1255
1273
|
readonly WORKTREE_NOT_REPOSITORY: "WORKTREE_NOT_REPOSITORY";
|
|
1256
1274
|
readonly WORKTREE_OPERATION_IN_PROGRESS: "WORKTREE_OPERATION_IN_PROGRESS";
|
|
@@ -1275,6 +1293,8 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1275
1293
|
sequence: z.ZodNumber;
|
|
1276
1294
|
jobId: z.ZodString;
|
|
1277
1295
|
status: z.ZodEnum<{
|
|
1296
|
+
completed: "completed";
|
|
1297
|
+
failed: "failed";
|
|
1278
1298
|
queued: "queued";
|
|
1279
1299
|
preparing: "preparing";
|
|
1280
1300
|
running: "running";
|
|
@@ -1282,12 +1302,10 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1282
1302
|
"awaiting-review": "awaiting-review";
|
|
1283
1303
|
applying: "applying";
|
|
1284
1304
|
applied: "applied";
|
|
1285
|
-
completed: "completed";
|
|
1286
1305
|
cancelling: "cancelling";
|
|
1287
1306
|
cancelled: "cancelled";
|
|
1288
1307
|
reverting: "reverting";
|
|
1289
1308
|
reverted: "reverted";
|
|
1290
|
-
failed: "failed";
|
|
1291
1309
|
}>;
|
|
1292
1310
|
timestamp: z.ZodISODateTime;
|
|
1293
1311
|
type: z.ZodLiteral<"phase">;
|
|
@@ -1299,6 +1317,8 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1299
1317
|
sequence: z.ZodNumber;
|
|
1300
1318
|
jobId: z.ZodString;
|
|
1301
1319
|
status: z.ZodEnum<{
|
|
1320
|
+
completed: "completed";
|
|
1321
|
+
failed: "failed";
|
|
1302
1322
|
queued: "queued";
|
|
1303
1323
|
preparing: "preparing";
|
|
1304
1324
|
running: "running";
|
|
@@ -1306,12 +1326,10 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1306
1326
|
"awaiting-review": "awaiting-review";
|
|
1307
1327
|
applying: "applying";
|
|
1308
1328
|
applied: "applied";
|
|
1309
|
-
completed: "completed";
|
|
1310
1329
|
cancelling: "cancelling";
|
|
1311
1330
|
cancelled: "cancelled";
|
|
1312
1331
|
reverting: "reverting";
|
|
1313
1332
|
reverted: "reverted";
|
|
1314
|
-
failed: "failed";
|
|
1315
1333
|
}>;
|
|
1316
1334
|
timestamp: z.ZodISODateTime;
|
|
1317
1335
|
type: z.ZodLiteral<"tool">;
|
|
@@ -1332,6 +1350,8 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1332
1350
|
sequence: z.ZodNumber;
|
|
1333
1351
|
jobId: z.ZodString;
|
|
1334
1352
|
status: z.ZodEnum<{
|
|
1353
|
+
completed: "completed";
|
|
1354
|
+
failed: "failed";
|
|
1335
1355
|
queued: "queued";
|
|
1336
1356
|
preparing: "preparing";
|
|
1337
1357
|
running: "running";
|
|
@@ -1339,12 +1359,10 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1339
1359
|
"awaiting-review": "awaiting-review";
|
|
1340
1360
|
applying: "applying";
|
|
1341
1361
|
applied: "applied";
|
|
1342
|
-
completed: "completed";
|
|
1343
1362
|
cancelling: "cancelling";
|
|
1344
1363
|
cancelled: "cancelled";
|
|
1345
1364
|
reverting: "reverting";
|
|
1346
1365
|
reverted: "reverted";
|
|
1347
|
-
failed: "failed";
|
|
1348
1366
|
}>;
|
|
1349
1367
|
timestamp: z.ZodISODateTime;
|
|
1350
1368
|
type: z.ZodLiteral<"check">;
|
|
@@ -1353,8 +1371,8 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1353
1371
|
checkId: z.ZodString;
|
|
1354
1372
|
label: z.ZodString;
|
|
1355
1373
|
status: z.ZodEnum<{
|
|
1356
|
-
cancelled: "cancelled";
|
|
1357
1374
|
failed: "failed";
|
|
1375
|
+
cancelled: "cancelled";
|
|
1358
1376
|
passed: "passed";
|
|
1359
1377
|
"timed-out": "timed-out";
|
|
1360
1378
|
}>;
|
|
@@ -1367,6 +1385,8 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1367
1385
|
sequence: z.ZodNumber;
|
|
1368
1386
|
jobId: z.ZodString;
|
|
1369
1387
|
status: z.ZodEnum<{
|
|
1388
|
+
completed: "completed";
|
|
1389
|
+
failed: "failed";
|
|
1370
1390
|
queued: "queued";
|
|
1371
1391
|
preparing: "preparing";
|
|
1372
1392
|
running: "running";
|
|
@@ -1374,12 +1394,10 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1374
1394
|
"awaiting-review": "awaiting-review";
|
|
1375
1395
|
applying: "applying";
|
|
1376
1396
|
applied: "applied";
|
|
1377
|
-
completed: "completed";
|
|
1378
1397
|
cancelling: "cancelling";
|
|
1379
1398
|
cancelled: "cancelled";
|
|
1380
1399
|
reverting: "reverting";
|
|
1381
1400
|
reverted: "reverted";
|
|
1382
|
-
failed: "failed";
|
|
1383
1401
|
}>;
|
|
1384
1402
|
timestamp: z.ZodISODateTime;
|
|
1385
1403
|
type: z.ZodLiteral<"result-ready">;
|
|
@@ -1391,6 +1409,8 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1391
1409
|
sequence: z.ZodNumber;
|
|
1392
1410
|
jobId: z.ZodString;
|
|
1393
1411
|
status: z.ZodEnum<{
|
|
1412
|
+
completed: "completed";
|
|
1413
|
+
failed: "failed";
|
|
1394
1414
|
queued: "queued";
|
|
1395
1415
|
preparing: "preparing";
|
|
1396
1416
|
running: "running";
|
|
@@ -1398,12 +1418,10 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1398
1418
|
"awaiting-review": "awaiting-review";
|
|
1399
1419
|
applying: "applying";
|
|
1400
1420
|
applied: "applied";
|
|
1401
|
-
completed: "completed";
|
|
1402
1421
|
cancelling: "cancelling";
|
|
1403
1422
|
cancelled: "cancelled";
|
|
1404
1423
|
reverting: "reverting";
|
|
1405
1424
|
reverted: "reverted";
|
|
1406
|
-
failed: "failed";
|
|
1407
1425
|
}>;
|
|
1408
1426
|
timestamp: z.ZodISODateTime;
|
|
1409
1427
|
type: z.ZodLiteral<"error">;
|
|
@@ -1429,6 +1447,24 @@ declare const agentJobEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1429
1447
|
readonly AGENT_BUSY: "AGENT_BUSY";
|
|
1430
1448
|
readonly AGENT_LIMIT_EXCEEDED: "AGENT_LIMIT_EXCEEDED";
|
|
1431
1449
|
readonly AGENT_CANCELLED: "AGENT_CANCELLED";
|
|
1450
|
+
readonly EXTERNAL_HANDOFF_DISABLED: "EXTERNAL_HANDOFF_DISABLED";
|
|
1451
|
+
readonly EXTERNAL_HANDOFF_UNAVAILABLE: "EXTERNAL_HANDOFF_UNAVAILABLE";
|
|
1452
|
+
readonly HANDOFF_VALIDATION_FAILED: "HANDOFF_VALIDATION_FAILED";
|
|
1453
|
+
readonly HANDOFF_SOURCE_STALE: "HANDOFF_SOURCE_STALE";
|
|
1454
|
+
readonly HANDOFF_NOT_FOUND: "HANDOFF_NOT_FOUND";
|
|
1455
|
+
readonly HANDOFF_EXPIRED: "HANDOFF_EXPIRED";
|
|
1456
|
+
readonly HANDOFF_CURSOR_INVALID: "HANDOFF_CURSOR_INVALID";
|
|
1457
|
+
readonly HANDOFF_RESPONSE_TOO_LARGE: "HANDOFF_RESPONSE_TOO_LARGE";
|
|
1458
|
+
readonly BRIDGE_UNAUTHORIZED: "BRIDGE_UNAUTHORIZED";
|
|
1459
|
+
readonly BRIDGE_PROTOCOL_MISMATCH: "BRIDGE_PROTOCOL_MISMATCH";
|
|
1460
|
+
readonly BRIDGE_BUSY: "BRIDGE_BUSY";
|
|
1461
|
+
readonly EXTERNAL_AGENT_BUSY: "EXTERNAL_AGENT_BUSY";
|
|
1462
|
+
readonly ACTIVE_ADAPTER_CONFLICT: "ACTIVE_ADAPTER_CONFLICT";
|
|
1463
|
+
readonly ACTIVE_ADAPTER_LEASE_INVALID: "ACTIVE_ADAPTER_LEASE_INVALID";
|
|
1464
|
+
readonly ACTIVE_DISPATCH_INVALID: "ACTIVE_DISPATCH_INVALID";
|
|
1465
|
+
readonly SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
|
|
1466
|
+
readonly SESSION_AMBIGUOUS: "SESSION_AMBIGUOUS";
|
|
1467
|
+
readonly SESSION_CLOSED: "SESSION_CLOSED";
|
|
1432
1468
|
readonly WORKTREE_DIRTY: "WORKTREE_DIRTY";
|
|
1433
1469
|
readonly WORKTREE_NOT_REPOSITORY: "WORKTREE_NOT_REPOSITORY";
|
|
1434
1470
|
readonly WORKTREE_OPERATION_IN_PROGRESS: "WORKTREE_OPERATION_IN_PROGRESS";
|
|
@@ -1465,4 +1501,4 @@ type ApiResponse<T> = ApiSuccess<T> | ApiFailure;
|
|
|
1465
1501
|
|
|
1466
1502
|
declare const SPOTPATCH_REPOSITORY_URL: "https://github.com/huanglvjing/spotpatch";
|
|
1467
1503
|
|
|
1468
|
-
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,
|
|
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 };
|