@cleocode/runtime 2026.5.129 → 2026.5.131

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.
@@ -0,0 +1,306 @@
1
+ import { SubsystemDefinition, Subsystem, DaemonLifecycleHooks, HealthStatus, SupervisorIpcRequest, SupervisorIpcResponseEnvelope } from '@cleocode/contracts';
2
+ export { DaemonLifecycleHooks, HealthStatus, Subsystem, SubsystemDefinition, SubsystemHealth, SubsystemLifecyclePhase, SubsystemState } from '@cleocode/contracts';
3
+
4
+ /**
5
+ * `defineSubsystem()` — declare a supervised daemon subsystem.
6
+ *
7
+ * The single factory R4-R7 adapters call to express a long-running concern
8
+ * (Studio supervision, GC cron, web server, docs-viewer, runtime poller) as a
9
+ * uniform {@link Subsystem}. The returned descriptor is frozen so the registry
10
+ * can drive `start → healthProbe → shutdown` without the definition mutating
11
+ * underfoot.
12
+ *
13
+ * @packageDocumentation
14
+ * @module @cleocode/runtime/daemon
15
+ *
16
+ * @epic T11253 R2 — `@cleocode/runtime/daemon` submodule
17
+ * @task T11367 — defineSubsystem + lifecycle/health registry + IPC client
18
+ * @saga T11243 SG-RUNTIME-UNIFICATION
19
+ */
20
+
21
+ /**
22
+ * Declare a daemon subsystem.
23
+ *
24
+ * Validates that the four required surfaces (`name`, `start`, `healthProbe`,
25
+ * `shutdown`) are present and that `name` is a non-empty string, then returns a
26
+ * frozen {@link Subsystem} ready to register with a `SubsystemRegistry`.
27
+ *
28
+ * @typeParam TContext - Opaque context threaded from `start` into `shutdown`
29
+ * (e.g. a child handle or resolved config). Defaults to `void`.
30
+ * @param definition - The subsystem descriptor.
31
+ * @returns A frozen, registrable {@link Subsystem}.
32
+ * @throws {TypeError} When `name` is empty or a required method is missing.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const studio = defineSubsystem({
37
+ * name: 'studio',
38
+ * start: () => supervisor.start(),
39
+ * healthProbe: () => ({ child_id: 'studio', pid: supervisor.pid ?? 0,
40
+ * state: supervisor.status === 'running' ? 'running' : 'stopped',
41
+ * restart_count: 0 }),
42
+ * shutdown: () => supervisor.stop(),
43
+ * });
44
+ * ```
45
+ */
46
+ declare function defineSubsystem<TContext = void>(definition: SubsystemDefinition<TContext>): Subsystem<TContext>;
47
+
48
+ /**
49
+ * Daemon subsystem log-routing primitive.
50
+ *
51
+ * `createSubsystemLogger(name)` is the **single** logging surface the
52
+ * `@cleocode/runtime/daemon` submodule exposes. It routes through the canonical
53
+ * pino factory `getLogger` (`packages/core/src/logger.ts`) — NOT raw
54
+ * `createWriteStream` and NOT `console.*` — so every daemon log line lands in
55
+ * the rotating, retention-managed CLEO log files with a consistent structured
56
+ * shape and a per-subsystem `subsystem` field.
57
+ *
58
+ * It supersedes the **5 ad-hoc logging conventions** the legacy daemons grew,
59
+ * which R4-R7 will migrate onto this primitive:
60
+ *
61
+ * 1. `sentient/daemon.ts` — `createWriteStream(sentient.log)` /
62
+ * `createWriteStream(sentient.err)` + `process.stderr.write` lines.
63
+ * 2. `gc/daemon.ts` — `createWriteStream(gc.log)` / `createWriteStream(gc.err)`.
64
+ * 3. `web.ts` — `console.*`.
65
+ * 4. `docs-viewer.ts` — ad-hoc stdout/stderr writes.
66
+ * 5. the `runtime` services — bespoke per-service logging.
67
+ *
68
+ * ## Migration guidance for R4-R7 adapters
69
+ *
70
+ * Each adapter (Studio, GC, web, docs-viewer) replaces its bespoke sink with:
71
+ *
72
+ * ```ts
73
+ * import { createSubsystemLogger } from '@cleocode/runtime/daemon';
74
+ * const log = createSubsystemLogger('studio');
75
+ * log.info({ pid }, 'Studio started'); // not process.stderr.write(...)
76
+ * log.error({ err }, 'Studio crashed'); // not createWriteStream('sentient.err')
77
+ * ```
78
+ *
79
+ * Do not import pino directly and do not open file streams — the canonical
80
+ * factory owns rotation, retention, level, and the `projectHash` correlation
81
+ * field. Routing through it is what makes the daemon's logs observable via the
82
+ * same `cleo` log surface as the rest of the system.
83
+ *
84
+ * @packageDocumentation
85
+ * @module @cleocode/runtime/daemon
86
+ *
87
+ * @epic T11253 R2 — `@cleocode/runtime/daemon` submodule
88
+ * @task T11368 — log routing primitive (pino getLogger canonical sink)
89
+ * @saga T11243 SG-RUNTIME-UNIFICATION
90
+ */
91
+ /**
92
+ * A structured log payload — a plain object of serializable fields merged into
93
+ * the emitted log record (e.g. `{ pid, err }`).
94
+ */
95
+ type SubsystemLogFields = Record<string, unknown>;
96
+ /**
97
+ * The narrow logging surface a daemon subsystem uses.
98
+ *
99
+ * Each method accepts an optional structured `fields` object followed by the
100
+ * message, mirroring pino's `(obj, msg)` call shape. This is intentionally
101
+ * smaller than the full pino `Logger` so the daemon submodule does not leak the
102
+ * pino type across its public boundary while still routing through the
103
+ * canonical pino sink.
104
+ */
105
+ interface SubsystemLogger {
106
+ /** Log at `debug` level. */
107
+ debug: (fields: SubsystemLogFields, msg: string) => void;
108
+ /** Log at `info` level. */
109
+ info: (fields: SubsystemLogFields, msg: string) => void;
110
+ /** Log at `warn` level. */
111
+ warn: (fields: SubsystemLogFields, msg: string) => void;
112
+ /** Log at `error` level. */
113
+ error: (fields: SubsystemLogFields, msg: string) => void;
114
+ }
115
+ /**
116
+ * Create the single per-subsystem logger for the daemon submodule.
117
+ *
118
+ * Routes through the canonical pino factory `getLogger('daemon')` and namespaces
119
+ * the result with a per-subsystem child binding (`{ subsystem: name }`), so all
120
+ * daemon log lines share the `daemon` subsystem root while remaining
121
+ * individually attributable. Never opens a file stream and never writes to
122
+ * `console`.
123
+ *
124
+ * @param name - The logical subsystem name (e.g. `'studio'`, `'gc'`, `'web'`).
125
+ * @returns A {@link SubsystemLogger} bound to `name`.
126
+ *
127
+ * @example
128
+ * ```ts
129
+ * const log = createSubsystemLogger('studio');
130
+ * log.info({ pid: 4242, port: 3456 }, 'Studio started');
131
+ * ```
132
+ */
133
+ declare function createSubsystemLogger(name: string): SubsystemLogger;
134
+
135
+ /**
136
+ * `SubsystemRegistry` — drives the uniform daemon subsystem lifecycle.
137
+ *
138
+ * Aggregates {@link Subsystem}s declared via `defineSubsystem` and runs them
139
+ * through a uniform `start → healthProbe → shutdown` lifecycle, firing the
140
+ * typed {@link DaemonLifecycleHooks} in order. Health probes are aggregated
141
+ * into a {@link HealthStatus} that projects onto the FROZEN `supervisor-ipc`
142
+ * `MonitorResponse` the Rust supervisor consumes (AC4).
143
+ *
144
+ * Shutdown runs in reverse registration order (LIFO) so dependants stop before
145
+ * their dependencies — the conventional supervised-process teardown ordering.
146
+ *
147
+ * @packageDocumentation
148
+ * @module @cleocode/runtime/daemon
149
+ *
150
+ * @epic T11253 R2 — `@cleocode/runtime/daemon` submodule
151
+ * @task T11367 — defineSubsystem + lifecycle/health registry + IPC client
152
+ * @saga T11243 SG-RUNTIME-UNIFICATION
153
+ */
154
+
155
+ /**
156
+ * The registry that owns and drives the daemon's subsystems.
157
+ *
158
+ * Construct with optional {@link DaemonLifecycleHooks}; register subsystems,
159
+ * then `startAll()` / `aggregateHealth()` / `shutdownAll()`.
160
+ */
161
+ declare class SubsystemRegistry {
162
+ #private;
163
+ /**
164
+ * @param hooks - Optional lifecycle hooks fired around start/shutdown and on
165
+ * any lifecycle error.
166
+ */
167
+ constructor(hooks?: DaemonLifecycleHooks);
168
+ /**
169
+ * Register a subsystem. Registration order defines start order; shutdown runs
170
+ * in reverse.
171
+ *
172
+ * @typeParam TContext - The subsystem's start→shutdown context type.
173
+ * @param subsystem - A subsystem produced by `defineSubsystem`.
174
+ * @throws {Error} When a subsystem with the same `name` is already registered.
175
+ */
176
+ register<TContext>(subsystem: Subsystem<TContext>): void;
177
+ /** The names of all registered subsystems, in registration order. */
178
+ get names(): readonly string[];
179
+ /**
180
+ * Start every registered subsystem in registration order.
181
+ *
182
+ * For each subsystem: awaits `start()`, stores the resolved context, then
183
+ * fires `onStart`. If `start()` throws, fires `onError` with phase `start`
184
+ * and re-throws — a failed start is surfaced, never swallowed.
185
+ *
186
+ * @throws The first subsystem `start()` error (after firing `onError`).
187
+ */
188
+ startAll(): Promise<void>;
189
+ /**
190
+ * Probe every registered subsystem and aggregate into a {@link HealthStatus}.
191
+ *
192
+ * A subsystem whose `healthProbe()` rejects does not abort the aggregate:
193
+ * `onError` fires with phase `healthProbe` and the subsystem is reported as a
194
+ * `stopped` row carrying the error in its `detail`, so the supervisor still
195
+ * receives a complete snapshot.
196
+ *
197
+ * @returns The aggregate health snapshot (projects onto `MonitorResponse`).
198
+ */
199
+ aggregateHealth(): Promise<HealthStatus>;
200
+ /**
201
+ * Shut down every started subsystem in reverse registration order (LIFO).
202
+ *
203
+ * Each subsystem's `shutdown(context)` is awaited and `onShutdown` fires. A
204
+ * throwing `shutdown` fires `onError` with phase `shutdown` but does NOT
205
+ * abort the teardown of the remaining subsystems — best-effort graceful
206
+ * shutdown of the whole daemon.
207
+ */
208
+ shutdownAll(): Promise<void>;
209
+ }
210
+
211
+ /**
212
+ * Typed NDJSON client for the FROZEN `supervisor-ipc` v1.0 contract.
213
+ *
214
+ * The Rust `cleo-supervisor` is the server; a CLEO daemon process is a client
215
+ * that sends {@link SupervisorIpcRequestEnvelope}s and receives
216
+ * {@link SupervisorIpcResponseEnvelope}s, one newline-delimited JSON
217
+ * (NDJSON) envelope per line. This module is a transport-agnostic codec: it
218
+ * encodes outbound envelopes to NDJSON lines and decodes inbound lines through
219
+ * the frozen Zod schemas. **Every inbound line is parsed** — a malformed or
220
+ * schema-violating frame is rejected with a typed {@link MalformedIpcFrameError}
221
+ * and never silently dropped (T11367 AC2).
222
+ *
223
+ * The codec does not own a socket — callers feed it raw lines from whatever
224
+ * transport (Unix socket, named pipe, test pair) they own, keeping the daemon
225
+ * submodule free of platform IO and trivially testable.
226
+ *
227
+ * @packageDocumentation
228
+ * @module @cleocode/runtime/daemon
229
+ *
230
+ * @epic T11253 R2 — `@cleocode/runtime/daemon` submodule
231
+ * @task T11367 — defineSubsystem + lifecycle/health registry + IPC client
232
+ * @saga T11243 SG-RUNTIME-UNIFICATION
233
+ */
234
+
235
+ /**
236
+ * A typed error raised when an inbound NDJSON line cannot be decoded into a
237
+ * valid {@link SupervisorIpcResponseEnvelope}.
238
+ *
239
+ * Carries the offending raw `line` and the underlying `cause` (a JSON
240
+ * `SyntaxError` or a Zod validation error) so callers can log + correlate.
241
+ * Invalid frames are surfaced as this error — never silently dropped.
242
+ */
243
+ declare class MalformedIpcFrameError extends Error {
244
+ /** The raw NDJSON line that failed to decode. */
245
+ readonly line: string;
246
+ /**
247
+ * @param line - The offending raw NDJSON line.
248
+ * @param cause - The underlying JSON or Zod error.
249
+ */
250
+ constructor(line: string, cause: unknown);
251
+ }
252
+ /**
253
+ * A transport-agnostic codec for the FROZEN `supervisor-ipc` v1.0 wire format.
254
+ *
255
+ * Construct via {@link createSupervisorIpcClient}. The client is stateful only
256
+ * in its monotonic correlation-id counter; it owns no socket.
257
+ */
258
+ interface SupervisorIpcClient {
259
+ /**
260
+ * Encode a request body into a complete, newline-terminated NDJSON envelope
261
+ * line ready to write to the transport.
262
+ *
263
+ * Stamps the frozen protocol version and a fresh correlation `id`, validates
264
+ * the result against {@link SupervisorIpcRequestEnvelopeSchema}, and returns
265
+ * the serialized line (including the trailing `\n`).
266
+ *
267
+ * @param request - The request body (validated by the envelope schema).
268
+ * @returns `{ id, line }` — the correlation id and the NDJSON line to send.
269
+ */
270
+ encodeRequest: (request: SupervisorIpcRequest) => {
271
+ id: string;
272
+ line: string;
273
+ };
274
+ /**
275
+ * Decode a single inbound NDJSON line into a typed response envelope.
276
+ *
277
+ * Parses the line as JSON, then validates it against
278
+ * {@link SupervisorIpcResponseEnvelopeSchema}. A malformed or
279
+ * schema-violating line throws {@link MalformedIpcFrameError} — it is never
280
+ * silently dropped.
281
+ *
282
+ * @param line - A single NDJSON line (without the trailing newline).
283
+ * @returns The decoded {@link SupervisorIpcResponseEnvelope}.
284
+ * @throws {MalformedIpcFrameError} When the line is not a valid response frame.
285
+ */
286
+ decodeResponseLine: (line: string) => SupervisorIpcResponseEnvelope;
287
+ }
288
+ /**
289
+ * Create a typed NDJSON codec for the FROZEN `supervisor-ipc` v1.0 contract.
290
+ *
291
+ * @returns A {@link SupervisorIpcClient}.
292
+ *
293
+ * @example
294
+ * ```ts
295
+ * const client = createSupervisorIpcClient();
296
+ * const { id, line } = client.encodeRequest({ kind: 'health' });
297
+ * socket.write(line);
298
+ * socket.on('line', (raw) => {
299
+ * const env = client.decodeResponseLine(raw); // throws MalformedIpcFrameError on bad frame
300
+ * if (env.response.kind === 'health') { /* ... *\/ }
301
+ * });
302
+ * ```
303
+ */
304
+ declare function createSupervisorIpcClient(): SupervisorIpcClient;
305
+
306
+ export { MalformedIpcFrameError, type SubsystemLogFields, type SubsystemLogger, SubsystemRegistry, type SupervisorIpcClient, createSubsystemLogger, createSupervisorIpcClient, defineSubsystem };
@@ -0,0 +1,15 @@
1
+ import {
2
+ MalformedIpcFrameError,
3
+ SubsystemRegistry,
4
+ createSubsystemLogger,
5
+ createSupervisorIpcClient,
6
+ defineSubsystem
7
+ } from "../chunk-WSQQ5DQL.js";
8
+ export {
9
+ MalformedIpcFrameError,
10
+ SubsystemRegistry,
11
+ createSubsystemLogger,
12
+ createSupervisorIpcClient,
13
+ defineSubsystem
14
+ };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,10 @@
1
+ export { H as HttpServerHandle, a as HttpServerOptions, b as HttpUnaryRequest, c as HttpUnaryResult, S as SSE_HEADERS, d as SseEmitter, e as SseFrame, f as SseSource, g as createSseStream, h as encodeSseFrame, i as encodeStreamEvent, p as parseHttpRoute, r as routeUnary, s as startHttpServer, j as statusForResponse } from '../rpc/index.js';
2
+ import '@cleocode/contracts/gateway';
3
+ import '@cleocode/core/store/background-jobs.js';
4
+ import '@cleocode/contracts';
5
+ import 'node:http';
6
+ import '@cleocode/contracts/operations/orchestrate';
7
+ import '@cleocode/core/internal';
8
+ import '@cleocode/core';
9
+ import '@cleocode/contracts/gateway/rpc';
10
+ import 'node:net';
@@ -0,0 +1,21 @@
1
+ import {
2
+ SSE_HEADERS,
3
+ createSseStream,
4
+ encodeSseFrame,
5
+ encodeStreamEvent,
6
+ parseHttpRoute,
7
+ routeUnary,
8
+ startHttpServer,
9
+ statusForResponse
10
+ } from "../../chunk-YZBIPGMH.js";
11
+ export {
12
+ SSE_HEADERS,
13
+ createSseStream,
14
+ encodeSseFrame,
15
+ encodeStreamEvent,
16
+ parseHttpRoute,
17
+ routeUnary,
18
+ startHttpServer,
19
+ statusForResponse
20
+ };
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,10 @@
1
+ import '@cleocode/contracts/gateway';
2
+ export { B as BRAIN_DB_FILENAME, C as CLEO_DIR_NAME, DecodeResult, D as Dispatcher, z as DispatcherConfig, E as ErrorMeta, A as GatewayHandler, G as GatewayOperationKey, F as GatewayScope, I as GatewaySubsystemContext, J as GatewaySubsystemOptions, H as HttpServerHandle, a as HttpServerOptions, b as HttpUnaryRequest, c as HttpUnaryResult, LineBuffer, M as MCP_TOOL_PREFIX, k as McpContent, l as McpInputProperty, m as McpServerOptions, n as McpTool, o as McpToolResult, O as OPERATIONS, RpcServerHandle, RpcServerOptions, S as SSE_HEADERS, K as STRING_TO_EXIT, d as SseEmitter, e as SseFrame, f as SseSource, W as WORKFLOWS_SUBDIR, buildErrorFrame, L as buildNexusMetaExtensions, q as buildToolsList, t as callTool, N as cleoErrorToEngineError, P as compose, Q as createDispatchMeta, R as createGatewayHandler, g as createSseStream, decodeLine, T as defineGatewaySubsystem, U as deriveGatewayMatrix, encodeFrame, h as encodeSseFrame, i as encodeStreamEvent, V as engineError, u as exposedOperations, X as formatSuggestedNext, Y as gatewaySubsystemName, Z as generateTemplateConfig, _ as getActiveDomains, $ as getByDomain, a0 as getByGateway, a1 as getByTier, a2 as getCounts, a3 as getGatewayDomains, a4 as getJobManager, a5 as getTemplateForSubcommand, a6 as mapNumericExitCodeToString, v as operationToMcpTool, w as operationToToolName, p as parseHttpRoute, a7 as parseIssueTemplates, a8 as pickDecoratorMetaExtensions, a9 as resolve, routeFrame, r as routeUnary, aa as setJobManager, ab as stampNexusMeta, s as startHttpServer, x as startMcpServer, startRpcServer, j as statusForResponse, y as toolNameToOperationKey, ac as validateLabels, ad as validateRequiredParams, ae as validateSuggestedNext } from './rpc/index.js';
3
+ export { BackgroundJob, BackgroundJobManager, BackgroundJobManagerConfig, BackgroundJobStatus, DurableJobStore } from '@cleocode/core/store/background-jobs.js';
4
+ export { MinimalTaskRecord, OperationDef, Resolution, Session as SessionRecord, TaskRecord } from '@cleocode/contracts';
5
+ export { OrchestratePlanResult } from '@cleocode/contracts/operations/orchestrate';
6
+ export { ArchiveStatsResult as ArchiveStatsData, AuditResult as AuditData, BackupResult as BackupData, BackupEntry as BackupEntryData, CleanupResult as CleanupData, CompactTask, ComplianceData, ContextData, DashboardData, DecisionRecord, DiagnosticsResult as DiagnosticsData, FileRestoreResult, HealthResult as HealthData, HelpData, HookMatrixResult, InjectGenerateResult as InjectGenerateData, IssueTemplate, IvtrHistoryEntry, LabelsResult as LabelsData, LifecycleStageEntry, LogQueryData, SystemMetricsResult as MetricsData, MigrateResult as MigrateData, OrchestratePlanInput, PathsData, PlanWarning, PlanWave, PlanWorkerEntry, ProviderMatrixEntry, ManifestEntry as ResearchManifestEntry, RestoreResult as RestoreData, RuntimeDiagnostics as RuntimeData, SafestopResult as SafestopData, ScaffoldHubData, StatsData, SyncData, TemplateConfig, TemplateSection, UncancelResult as UncancelData, addTaskWithSessionScope, completeTaskStrict, configGet, configListPresets, configSet, configSetPreset, ensureInitialized, filterEntries as filterManifestEntries, getVersion, initProject, isAutoInitEnabled, lifecycleCheck, lifecycleGateFail, lifecycleGatePass, lifecycleGates, lifecycleHistory, lifecyclePrerequisites, lifecycleProgress, lifecycleReset, lifecycleSkip, lifecycleStatus, mapCodebase, memoryBrainStats, memoryContradictions, memoryDecisionFind, memoryDecisionStore, memoryFetch, memoryFind, memoryGraphAdd, memoryGraphContext, memoryGraphNeighbors, memoryGraphRelated, memoryGraphRemove, memoryGraphShow, memoryGraphStatsFull, memoryGraphTrace, memoryLearningFind, memoryLearningStats, memoryLearningStore, memoryLink, memoryObserve, memoryPatternFind, memoryPatternStats, memoryPatternStore, memoryQualityReport, memoryReasonSimilar, memoryReasonWhy, memorySearchHybrid, memoryShow, memorySuperseded, memoryTimeline, memoryUnlink, orchestrateAnalyze, orchestrateBootstrap, orchestrateCheck, orchestrateContext, orchestrateCriticalPath, orchestrateHandoff, orchestrateNext, orchestrateParallelEnd, orchestrateParallelStart, orchestratePlan, orchestrateReady, orchestrateReport, orchestrateSkillInject, orchestrateSpawn, orchestrateSpawnExecute, orchestrateStartup, orchestrateStatus, orchestrateUnblockOpportunities, orchestrateValidate, orchestrateWaves, phaseAdvance, phaseComplete, phaseDelete, phaseList, phaseRename, phaseSet, phaseShow, phaseStart, pipelineManifestAppend, pipelineManifestArchive, pipelineManifestFind, pipelineManifestList, pipelineManifestPending, pipelineManifestShow, pipelineManifestStats, queryCommonHooks, queryHookProviders, readManifestEntries, releaseCancel, releaseCommit, releaseGateCheck, releaseGatesRun, releaseIvtrAutoSuggest, releaseList, releaseOpen, releasePlan, releasePrStatus, releasePrepare, releasePush, releaseReconcileV2, releaseRollback, releaseRollbackFull, releaseShow, releaseTag, sessionAdopt, sessionArchive, sessionBriefing, sessionChainShow, sessionCleanup, sessionComputeDebrief, sessionComputeHandoff, sessionContextDrift, sessionContextInject, sessionDebriefShow, sessionDecisionLog, sessionEnd, sessionFind, sessionGc, sessionHandoff, sessionHistory, sessionList, sessionRecordAssumption, sessionRecordDecision, sessionResume, sessionShow, sessionStart, sessionStats, sessionStatus, sessionSuspend, sessionSwitch, systemHooksMatrix, taskAnalyze, taskArchive, taskBatchValidate, taskBlockers, taskCancel, taskClaim, taskComplete, taskComplexityEstimate, taskCurrentGet, taskDelete, taskDepends, taskDeps, taskDepsCycles, taskDepsOverview, taskDepsTree, taskDepsValidate, taskExists, taskExport, taskFind, taskHistory, taskImpact, taskImport, taskLabelList, taskLabelShow, taskLint, taskList, taskNext, taskPlan, taskPromote, taskRelates, taskRelatesAdd, taskRelatesAddBatch, taskRelatesFind, taskRelatesRemove, taskReopen, taskReorder, taskReparent, taskRestore, taskShow, taskShowIvtrHistory, taskShowOperation, taskShowWithHistory, taskSlice, taskStart, taskStats, taskStop, taskSyncLinks, taskSyncLinksRemove, taskSyncReconcile, taskTree, taskUnarchive, taskUnclaim, taskUpdate, taskWorkHistory, tasksAddBatchOp, coreBatchValidate as validateBatchValidate, validateChangelog, coreCoherenceCheck as validateCoherenceCheck, coreComplianceRecord as validateComplianceRecord, coreComplianceSummary as validateComplianceSummary, coreComplianceViolations as validateComplianceViolations, validateGateVerify, coreValidateManifest as validateManifestOp, coreValidateOutput as validateOutput, coreValidateProtocol as validateProtocol, validateProtocolArchitectureDecision, validateProtocolArtifactPublish, validateProtocolConsensus, validateProtocolContribution, validateProtocolDecomposition, validateProtocolImplementation, validateProtocolProvenance, validateProtocolRelease, validateProtocolResearch, validateProtocolSpecification, validateProtocolTesting, validateProtocolValidation, coreValidateSchema as validateSchemaOp, coreValidateTask as validateTaskOp, coreTestCoverage as validateTestCoverage, coreTestRun as validateTestRun, coreTestStatus as validateTestStatus } from '@cleocode/core/internal';
7
+ export { EngineResult, engineSuccess } from '@cleocode/core';
8
+ import 'node:http';
9
+ import '@cleocode/contracts/gateway/rpc';
10
+ import 'node:net';