@spotpatch/dev-server 0.5.0 → 0.7.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/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { applyPreparedAgentChange, executeAgentChange, inspectAgentWorkspace, probeProviderCapability, resolveProviderCredential, revertPreparedAgentChange } from '@spotpatch/agent';
2
- import { AgentJobEvent, AgentJobSnapshot, AgentJobCreateRequest, AgentCapabilityRequest, AgentCapabilitySnapshot, AgentJobResultResponse, AgentWorkspaceHealthSnapshot, ResolvedAiOptions, SpotPatchEditorPreference, ContextBudget, SpotPatchLocalePreference, DataFlowLimits, AiProviderProtocol, AiProviderAuthentication, AiExecutionOptions, AiOptions, RuntimeAiConfig, RuntimeDataFlowConfig, ResolvedAgentCheckDefinition, SpotPatchRuntimeConfig } from '@spotpatch/shared';
2
+ import { AgentJobEvent, AgentJobSnapshot, AgentJobCreateRequest, AgentCapabilityRequest, AgentCapabilitySnapshot, AgentJobResultResponse, AgentWorkspaceHealthSnapshot, ResolvedAiOptions, ExternalHandoffFramework, ExternalHandoffCapability, ExternalHandoffPublishRequest, SpotAnnotation, ExternalHandoffPublishResult, ExternalHandoffStatusResult, ExternalAgentControlStatus, ExternalAgentControlConnectRequest, ExternalAgentControlDisconnectRequest, ExternalAgentControlCancelRequest, ExternalAgentManagedResult, SpotPatchEditorPreference, ContextBudget, SpotPatchLocalePreference, DataFlowLimits, AiProviderProtocol, AiProviderAuthentication, AiExecutionOptions, AiOptions, RuntimeAiConfig, RuntimeDataFlowConfig, ResolvedAgentCheckDefinition, AgentLimits, SpotPatchRuntimeConfig } from '@spotpatch/shared';
3
3
  import { SourceFilterEntry } from '@spotpatch/compiler';
4
4
  import { IncomingMessage, ServerResponse } from 'node:http';
5
5
 
@@ -35,6 +35,32 @@ interface CreateAgentJobManagerOptions {
35
35
  }
36
36
  declare function createAgentJobManager(options: CreateAgentJobManagerOptions): AgentJobManager;
37
37
 
38
+ type AuthorizeExternalHandoff = (annotation: ExternalHandoffPublishRequest["annotation"]) => Promise<SpotAnnotation>;
39
+ interface ExternalHandoffService {
40
+ readonly capability: () => ExternalHandoffCapability;
41
+ readonly close: () => Promise<void>;
42
+ readonly publish: (request: ExternalHandoffPublishRequest, authorize: AuthorizeExternalHandoff) => Promise<ExternalHandoffPublishResult>;
43
+ readonly resolveDelivery: (cursor: string) => ExternalHandoffStatusResult;
44
+ readonly start: () => Promise<void>;
45
+ readonly status: (cursor?: string) => ExternalHandoffStatusResult;
46
+ }
47
+ interface CreateExternalHandoffServiceOptions {
48
+ readonly framework: ExternalHandoffFramework;
49
+ readonly root: string;
50
+ readonly sessionId: string;
51
+ }
52
+ declare function createExternalHandoffService(options: CreateExternalHandoffServiceOptions): ExternalHandoffService;
53
+
54
+ interface ExternalAgentControlPort {
55
+ getStatus(): ExternalAgentControlStatus;
56
+ connect(request: ExternalAgentControlConnectRequest, signal: AbortSignal): Promise<ExternalAgentControlStatus>;
57
+ disconnect(request: ExternalAgentControlDisconnectRequest): Promise<ExternalAgentControlStatus>;
58
+ cancel(request: ExternalAgentControlCancelRequest): Promise<ExternalAgentControlStatus>;
59
+ getResult(revision: number): ExternalAgentManagedResult | undefined;
60
+ subscribe(listener: (status: ExternalAgentControlStatus) => void): () => void;
61
+ dispose(): Promise<void>;
62
+ }
63
+
38
64
  type FilterEntry = SourceFilterEntry;
39
65
  interface SimpleAiOptions {
40
66
  readonly baseURL: string;
@@ -66,6 +92,7 @@ interface SpotPatchOptions {
66
92
  readonly maxTargets?: number;
67
93
  readonly ai?: SpotPatchAiOptions;
68
94
  readonly dataFlow?: false | SpotPatchDataFlowOptions;
95
+ readonly externalAgent?: boolean;
69
96
  }
70
97
  interface ResolvedSpotPatchOptions {
71
98
  readonly enabled: boolean;
@@ -81,6 +108,9 @@ interface ResolvedSpotPatchOptions {
81
108
  readonly maxTargets: number;
82
109
  readonly ai: false | ResolvedAiOptions;
83
110
  readonly dataFlow: ResolvedSpotPatchDataFlowOptions;
111
+ readonly externalAgent: Readonly<{
112
+ enabled: boolean;
113
+ }>;
84
114
  }
85
115
  interface ResolvedSpotPatchDataFlowOptions {
86
116
  readonly enabled: boolean;
@@ -127,6 +157,9 @@ declare const DEFAULT_OPTIONS: Readonly<{
127
157
  readonly reportMaxFields: 100;
128
158
  }>;
129
159
  }>;
160
+ externalAgent: Readonly<{
161
+ enabled: false;
162
+ }>;
130
163
  }>;
131
164
  declare function createRuntimeAiConfig(options: false | ResolvedAiOptions): RuntimeAiConfig;
132
165
  declare function createRuntimeDataFlowConfig(options: ResolvedSpotPatchDataFlowOptions): RuntimeDataFlowConfig;
@@ -164,7 +197,20 @@ interface DiscoverProjectValidationCheckOptions {
164
197
  readonly appRoot: string;
165
198
  readonly timeoutMs: number;
166
199
  }
200
+ interface ResolveProjectValidationChecksOptions extends DiscoverProjectValidationCheckOptions {
201
+ readonly checks: Readonly<Record<string, ResolvedAgentCheckDefinition>>;
202
+ }
203
+ interface ResolveManagedExecutionValidationOptions {
204
+ readonly ai: false | ResolvedAiOptions;
205
+ readonly appRoot: string;
206
+ }
207
+ interface ResolvedManagedExecutionValidation {
208
+ readonly checks: Readonly<Record<string, ResolvedAgentCheckDefinition>>;
209
+ readonly limits: Readonly<AgentLimits>;
210
+ }
167
211
  declare function discoverProjectValidationCheck(options: DiscoverProjectValidationCheckOptions): Promise<ResolvedAgentCheckDefinition | undefined>;
212
+ declare function resolveProjectValidationChecks(options: ResolveProjectValidationChecksOptions): Promise<Readonly<Record<string, ResolvedAgentCheckDefinition>>>;
213
+ declare function resolveManagedExecutionValidation(options: ResolveManagedExecutionValidationOptions): Promise<ResolvedManagedExecutionValidation>;
168
214
 
169
215
  type SourceIdFactory = () => string;
170
216
 
@@ -209,7 +255,10 @@ declare function resolveRuntimeBootstrapOptions(options: RuntimeBootstrapOptions
209
255
  declare function readRuntimeBootstrap(request: IncomingMessage, options: ResolvedRuntimeBootstrapOptions): Promise<SpotPatchRuntimeConfig>;
210
256
 
211
257
  type SpotPatchNext = (error?: unknown) => void;
212
- type SpotPatchMiddleware = (request: IncomingMessage, response: ServerResponse, next: SpotPatchNext) => void;
258
+ interface SpotPatchMiddleware {
259
+ (request: IncomingMessage, response: ServerResponse, next: SpotPatchNext): void;
260
+ dispose(): void;
261
+ }
213
262
  interface SpotPatchServerLogger {
214
263
  warn(message: string): void;
215
264
  }
@@ -217,6 +266,8 @@ interface CreateMiddlewareOptions {
217
266
  readonly agentManager?: AgentJobManager;
218
267
  readonly bootstrap?: RuntimeBootstrapOptions;
219
268
  readonly editorLauncher?: EditorLauncher;
269
+ readonly externalAgentControl?: ExternalAgentControlPort;
270
+ readonly externalHandoffService?: ExternalHandoffService;
220
271
  readonly logger?: SpotPatchServerLogger;
221
272
  readonly options: ResolvedSpotPatchOptions;
222
273
  readonly registry: SourceRegistry;
@@ -261,6 +312,7 @@ interface SerializedSpotPatchOptions {
261
312
  readonly dataFlow: false | SpotPatchDataFlowOptions;
262
313
  readonly editor: SpotPatchEditorPreference;
263
314
  readonly enabled: boolean;
315
+ readonly externalAgent: boolean;
264
316
  readonly exclude: readonly SerializedFilterEntry[];
265
317
  readonly include: readonly SerializedFilterEntry[];
266
318
  readonly locale: SpotPatchLocalePreference;
@@ -271,4 +323,4 @@ interface SerializedSpotPatchOptions {
271
323
  declare function serializeResolvedSpotPatchOptions(options: ResolvedSpotPatchOptions): SerializedSpotPatchOptions;
272
324
  declare function parseSerializedSpotPatchOptions(value: unknown): ResolvedSpotPatchOptions;
273
325
 
274
- export { type AgentJobEventListener, type AgentJobManager, type CreateAgentJobManagerOptions, type CreateMiddlewareOptions, DEFAULT_EXCLUDE, DEFAULT_OPTIONS, type DiscoverProjectValidationCheckOptions, type EnvironmentAiConfiguration, type FilterEntry, type IntegrationFileChange, type IntegrationPlan, type ResolveProjectOptionsInput, type ResolvedRuntimeBootstrapOptions, type ResolvedSpotPatchDataFlowOptions, type ResolvedSpotPatchOptions, type RuntimeBootstrapOptions, type SerializedFilterEntry, type SerializedSpotPatchOptions, type SimpleAiOptions, type SourceRegistrationHandler, type SourceRegistrationService, type SourceRegistrationServiceOptions, type SourceRegistry, type SpotPatchAiOptions, type SpotPatchDataFlowOptions, type SpotPatchMiddleware, type SpotPatchNext, type SpotPatchOptions, type SpotPatchServerLogger, type SpotPatchSession, applyIntegrationPlan, createAgentJobManager, createIntegrationFileChange, createRuntimeAiConfig, createRuntimeDataFlowConfig, createSession, createSourceRegistrationService, createSourceRegistry, createSpotPatchMiddleware, discoverProjectValidationCheck, integrationPathExists, isLoopbackHostname, parseSerializedSpotPatchOptions, readIntegrationFile, readJsonRequestBody, readRuntimeBootstrap, resolveCredentialEnvironment, resolveEnvironmentAiConfiguration, resolveOptions, resolveProjectOptions, resolveRuntimeBootstrapOptions, serializeResolvedSpotPatchOptions };
326
+ export { type AgentJobEventListener, type AgentJobManager, type CreateAgentJobManagerOptions, type CreateExternalHandoffServiceOptions, type CreateMiddlewareOptions, DEFAULT_EXCLUDE, DEFAULT_OPTIONS, type DiscoverProjectValidationCheckOptions, type EnvironmentAiConfiguration, type ExternalAgentControlPort, type ExternalHandoffService, type FilterEntry, type IntegrationFileChange, type IntegrationPlan, type ResolveManagedExecutionValidationOptions, type ResolveProjectOptionsInput, type ResolveProjectValidationChecksOptions, type ResolvedManagedExecutionValidation, type ResolvedRuntimeBootstrapOptions, type ResolvedSpotPatchDataFlowOptions, type ResolvedSpotPatchOptions, type RuntimeBootstrapOptions, type SerializedFilterEntry, type SerializedSpotPatchOptions, type SimpleAiOptions, type SourceRegistrationHandler, type SourceRegistrationService, type SourceRegistrationServiceOptions, type SourceRegistry, type SpotPatchAiOptions, type SpotPatchDataFlowOptions, type SpotPatchMiddleware, type SpotPatchNext, type SpotPatchOptions, type SpotPatchServerLogger, type SpotPatchSession, applyIntegrationPlan, createAgentJobManager, createExternalHandoffService, createIntegrationFileChange, createRuntimeAiConfig, createRuntimeDataFlowConfig, createSession, createSourceRegistrationService, createSourceRegistry, createSpotPatchMiddleware, discoverProjectValidationCheck, integrationPathExists, isLoopbackHostname, parseSerializedSpotPatchOptions, readIntegrationFile, readJsonRequestBody, readRuntimeBootstrap, resolveCredentialEnvironment, resolveEnvironmentAiConfiguration, resolveManagedExecutionValidation, resolveOptions, resolveProjectOptions, resolveProjectValidationChecks, resolveRuntimeBootstrapOptions, serializeResolvedSpotPatchOptions };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { applyPreparedAgentChange, executeAgentChange, inspectAgentWorkspace, probeProviderCapability, resolveProviderCredential, revertPreparedAgentChange } from '@spotpatch/agent';
2
- import { AgentJobEvent, AgentJobSnapshot, AgentJobCreateRequest, AgentCapabilityRequest, AgentCapabilitySnapshot, AgentJobResultResponse, AgentWorkspaceHealthSnapshot, ResolvedAiOptions, SpotPatchEditorPreference, ContextBudget, SpotPatchLocalePreference, DataFlowLimits, AiProviderProtocol, AiProviderAuthentication, AiExecutionOptions, AiOptions, RuntimeAiConfig, RuntimeDataFlowConfig, ResolvedAgentCheckDefinition, SpotPatchRuntimeConfig } from '@spotpatch/shared';
2
+ import { AgentJobEvent, AgentJobSnapshot, AgentJobCreateRequest, AgentCapabilityRequest, AgentCapabilitySnapshot, AgentJobResultResponse, AgentWorkspaceHealthSnapshot, ResolvedAiOptions, ExternalHandoffFramework, ExternalHandoffCapability, ExternalHandoffPublishRequest, SpotAnnotation, ExternalHandoffPublishResult, ExternalHandoffStatusResult, ExternalAgentControlStatus, ExternalAgentControlConnectRequest, ExternalAgentControlDisconnectRequest, ExternalAgentControlCancelRequest, ExternalAgentManagedResult, SpotPatchEditorPreference, ContextBudget, SpotPatchLocalePreference, DataFlowLimits, AiProviderProtocol, AiProviderAuthentication, AiExecutionOptions, AiOptions, RuntimeAiConfig, RuntimeDataFlowConfig, ResolvedAgentCheckDefinition, AgentLimits, SpotPatchRuntimeConfig } from '@spotpatch/shared';
3
3
  import { SourceFilterEntry } from '@spotpatch/compiler';
4
4
  import { IncomingMessage, ServerResponse } from 'node:http';
5
5
 
@@ -35,6 +35,32 @@ interface CreateAgentJobManagerOptions {
35
35
  }
36
36
  declare function createAgentJobManager(options: CreateAgentJobManagerOptions): AgentJobManager;
37
37
 
38
+ type AuthorizeExternalHandoff = (annotation: ExternalHandoffPublishRequest["annotation"]) => Promise<SpotAnnotation>;
39
+ interface ExternalHandoffService {
40
+ readonly capability: () => ExternalHandoffCapability;
41
+ readonly close: () => Promise<void>;
42
+ readonly publish: (request: ExternalHandoffPublishRequest, authorize: AuthorizeExternalHandoff) => Promise<ExternalHandoffPublishResult>;
43
+ readonly resolveDelivery: (cursor: string) => ExternalHandoffStatusResult;
44
+ readonly start: () => Promise<void>;
45
+ readonly status: (cursor?: string) => ExternalHandoffStatusResult;
46
+ }
47
+ interface CreateExternalHandoffServiceOptions {
48
+ readonly framework: ExternalHandoffFramework;
49
+ readonly root: string;
50
+ readonly sessionId: string;
51
+ }
52
+ declare function createExternalHandoffService(options: CreateExternalHandoffServiceOptions): ExternalHandoffService;
53
+
54
+ interface ExternalAgentControlPort {
55
+ getStatus(): ExternalAgentControlStatus;
56
+ connect(request: ExternalAgentControlConnectRequest, signal: AbortSignal): Promise<ExternalAgentControlStatus>;
57
+ disconnect(request: ExternalAgentControlDisconnectRequest): Promise<ExternalAgentControlStatus>;
58
+ cancel(request: ExternalAgentControlCancelRequest): Promise<ExternalAgentControlStatus>;
59
+ getResult(revision: number): ExternalAgentManagedResult | undefined;
60
+ subscribe(listener: (status: ExternalAgentControlStatus) => void): () => void;
61
+ dispose(): Promise<void>;
62
+ }
63
+
38
64
  type FilterEntry = SourceFilterEntry;
39
65
  interface SimpleAiOptions {
40
66
  readonly baseURL: string;
@@ -66,6 +92,7 @@ interface SpotPatchOptions {
66
92
  readonly maxTargets?: number;
67
93
  readonly ai?: SpotPatchAiOptions;
68
94
  readonly dataFlow?: false | SpotPatchDataFlowOptions;
95
+ readonly externalAgent?: boolean;
69
96
  }
70
97
  interface ResolvedSpotPatchOptions {
71
98
  readonly enabled: boolean;
@@ -81,6 +108,9 @@ interface ResolvedSpotPatchOptions {
81
108
  readonly maxTargets: number;
82
109
  readonly ai: false | ResolvedAiOptions;
83
110
  readonly dataFlow: ResolvedSpotPatchDataFlowOptions;
111
+ readonly externalAgent: Readonly<{
112
+ enabled: boolean;
113
+ }>;
84
114
  }
85
115
  interface ResolvedSpotPatchDataFlowOptions {
86
116
  readonly enabled: boolean;
@@ -127,6 +157,9 @@ declare const DEFAULT_OPTIONS: Readonly<{
127
157
  readonly reportMaxFields: 100;
128
158
  }>;
129
159
  }>;
160
+ externalAgent: Readonly<{
161
+ enabled: false;
162
+ }>;
130
163
  }>;
131
164
  declare function createRuntimeAiConfig(options: false | ResolvedAiOptions): RuntimeAiConfig;
132
165
  declare function createRuntimeDataFlowConfig(options: ResolvedSpotPatchDataFlowOptions): RuntimeDataFlowConfig;
@@ -164,7 +197,20 @@ interface DiscoverProjectValidationCheckOptions {
164
197
  readonly appRoot: string;
165
198
  readonly timeoutMs: number;
166
199
  }
200
+ interface ResolveProjectValidationChecksOptions extends DiscoverProjectValidationCheckOptions {
201
+ readonly checks: Readonly<Record<string, ResolvedAgentCheckDefinition>>;
202
+ }
203
+ interface ResolveManagedExecutionValidationOptions {
204
+ readonly ai: false | ResolvedAiOptions;
205
+ readonly appRoot: string;
206
+ }
207
+ interface ResolvedManagedExecutionValidation {
208
+ readonly checks: Readonly<Record<string, ResolvedAgentCheckDefinition>>;
209
+ readonly limits: Readonly<AgentLimits>;
210
+ }
167
211
  declare function discoverProjectValidationCheck(options: DiscoverProjectValidationCheckOptions): Promise<ResolvedAgentCheckDefinition | undefined>;
212
+ declare function resolveProjectValidationChecks(options: ResolveProjectValidationChecksOptions): Promise<Readonly<Record<string, ResolvedAgentCheckDefinition>>>;
213
+ declare function resolveManagedExecutionValidation(options: ResolveManagedExecutionValidationOptions): Promise<ResolvedManagedExecutionValidation>;
168
214
 
169
215
  type SourceIdFactory = () => string;
170
216
 
@@ -209,7 +255,10 @@ declare function resolveRuntimeBootstrapOptions(options: RuntimeBootstrapOptions
209
255
  declare function readRuntimeBootstrap(request: IncomingMessage, options: ResolvedRuntimeBootstrapOptions): Promise<SpotPatchRuntimeConfig>;
210
256
 
211
257
  type SpotPatchNext = (error?: unknown) => void;
212
- type SpotPatchMiddleware = (request: IncomingMessage, response: ServerResponse, next: SpotPatchNext) => void;
258
+ interface SpotPatchMiddleware {
259
+ (request: IncomingMessage, response: ServerResponse, next: SpotPatchNext): void;
260
+ dispose(): void;
261
+ }
213
262
  interface SpotPatchServerLogger {
214
263
  warn(message: string): void;
215
264
  }
@@ -217,6 +266,8 @@ interface CreateMiddlewareOptions {
217
266
  readonly agentManager?: AgentJobManager;
218
267
  readonly bootstrap?: RuntimeBootstrapOptions;
219
268
  readonly editorLauncher?: EditorLauncher;
269
+ readonly externalAgentControl?: ExternalAgentControlPort;
270
+ readonly externalHandoffService?: ExternalHandoffService;
220
271
  readonly logger?: SpotPatchServerLogger;
221
272
  readonly options: ResolvedSpotPatchOptions;
222
273
  readonly registry: SourceRegistry;
@@ -261,6 +312,7 @@ interface SerializedSpotPatchOptions {
261
312
  readonly dataFlow: false | SpotPatchDataFlowOptions;
262
313
  readonly editor: SpotPatchEditorPreference;
263
314
  readonly enabled: boolean;
315
+ readonly externalAgent: boolean;
264
316
  readonly exclude: readonly SerializedFilterEntry[];
265
317
  readonly include: readonly SerializedFilterEntry[];
266
318
  readonly locale: SpotPatchLocalePreference;
@@ -271,4 +323,4 @@ interface SerializedSpotPatchOptions {
271
323
  declare function serializeResolvedSpotPatchOptions(options: ResolvedSpotPatchOptions): SerializedSpotPatchOptions;
272
324
  declare function parseSerializedSpotPatchOptions(value: unknown): ResolvedSpotPatchOptions;
273
325
 
274
- export { type AgentJobEventListener, type AgentJobManager, type CreateAgentJobManagerOptions, type CreateMiddlewareOptions, DEFAULT_EXCLUDE, DEFAULT_OPTIONS, type DiscoverProjectValidationCheckOptions, type EnvironmentAiConfiguration, type FilterEntry, type IntegrationFileChange, type IntegrationPlan, type ResolveProjectOptionsInput, type ResolvedRuntimeBootstrapOptions, type ResolvedSpotPatchDataFlowOptions, type ResolvedSpotPatchOptions, type RuntimeBootstrapOptions, type SerializedFilterEntry, type SerializedSpotPatchOptions, type SimpleAiOptions, type SourceRegistrationHandler, type SourceRegistrationService, type SourceRegistrationServiceOptions, type SourceRegistry, type SpotPatchAiOptions, type SpotPatchDataFlowOptions, type SpotPatchMiddleware, type SpotPatchNext, type SpotPatchOptions, type SpotPatchServerLogger, type SpotPatchSession, applyIntegrationPlan, createAgentJobManager, createIntegrationFileChange, createRuntimeAiConfig, createRuntimeDataFlowConfig, createSession, createSourceRegistrationService, createSourceRegistry, createSpotPatchMiddleware, discoverProjectValidationCheck, integrationPathExists, isLoopbackHostname, parseSerializedSpotPatchOptions, readIntegrationFile, readJsonRequestBody, readRuntimeBootstrap, resolveCredentialEnvironment, resolveEnvironmentAiConfiguration, resolveOptions, resolveProjectOptions, resolveRuntimeBootstrapOptions, serializeResolvedSpotPatchOptions };
326
+ export { type AgentJobEventListener, type AgentJobManager, type CreateAgentJobManagerOptions, type CreateExternalHandoffServiceOptions, type CreateMiddlewareOptions, DEFAULT_EXCLUDE, DEFAULT_OPTIONS, type DiscoverProjectValidationCheckOptions, type EnvironmentAiConfiguration, type ExternalAgentControlPort, type ExternalHandoffService, type FilterEntry, type IntegrationFileChange, type IntegrationPlan, type ResolveManagedExecutionValidationOptions, type ResolveProjectOptionsInput, type ResolveProjectValidationChecksOptions, type ResolvedManagedExecutionValidation, type ResolvedRuntimeBootstrapOptions, type ResolvedSpotPatchDataFlowOptions, type ResolvedSpotPatchOptions, type RuntimeBootstrapOptions, type SerializedFilterEntry, type SerializedSpotPatchOptions, type SimpleAiOptions, type SourceRegistrationHandler, type SourceRegistrationService, type SourceRegistrationServiceOptions, type SourceRegistry, type SpotPatchAiOptions, type SpotPatchDataFlowOptions, type SpotPatchMiddleware, type SpotPatchNext, type SpotPatchOptions, type SpotPatchServerLogger, type SpotPatchSession, applyIntegrationPlan, createAgentJobManager, createExternalHandoffService, createIntegrationFileChange, createRuntimeAiConfig, createRuntimeDataFlowConfig, createSession, createSourceRegistrationService, createSourceRegistry, createSpotPatchMiddleware, discoverProjectValidationCheck, integrationPathExists, isLoopbackHostname, parseSerializedSpotPatchOptions, readIntegrationFile, readJsonRequestBody, readRuntimeBootstrap, resolveCredentialEnvironment, resolveEnvironmentAiConfiguration, resolveManagedExecutionValidation, resolveOptions, resolveProjectOptions, resolveProjectValidationChecks, resolveRuntimeBootstrapOptions, serializeResolvedSpotPatchOptions };