ttsc 0.32.0 → 0.32.1
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/lib/TtscCompiler.js +1 -1
- package/lib/TtscCompiler.js.map +1 -1
- package/lib/compiler/internal/ResidentCheckProcess.d.ts +74 -96
- package/lib/compiler/internal/ResidentCheckProcess.js +150 -335
- package/lib/compiler/internal/ResidentCheckProcess.js.map +1 -1
- package/lib/compiler/internal/ResidentCheckProcessHost.d.ts +127 -0
- package/lib/compiler/internal/ResidentCheckProcessHost.js +447 -0
- package/lib/compiler/internal/ResidentCheckProcessHost.js.map +1 -0
- package/lib/compiler/internal/ResidentCheckProcessProtocol.d.ts +64 -0
- package/lib/compiler/internal/ResidentCheckProcessProtocol.js +3 -0
- package/lib/compiler/internal/ResidentCheckProcessProtocol.js.map +1 -0
- package/lib/compiler/internal/build/BuildExecution.d.ts +103 -1
- package/lib/compiler/internal/build/BuildExecution.js +91 -11
- package/lib/compiler/internal/build/BuildExecution.js.map +1 -1
- package/lib/compiler/internal/build/ResidentCheckWatchSession.d.ts +16 -11
- package/lib/compiler/internal/build/ResidentCheckWatchSession.js +37 -21
- package/lib/compiler/internal/build/ResidentCheckWatchSession.js.map +1 -1
- package/lib/compiler/internal/build/RunBuildOptions.d.ts +6 -5
- package/lib/compiler/internal/build/WatchInputPublication.d.ts +59 -0
- package/lib/compiler/internal/build/WatchInputPublication.js +93 -0
- package/lib/compiler/internal/build/WatchInputPublication.js.map +1 -0
- package/lib/compiler/internal/build/runBuild.d.ts +29 -2
- package/lib/compiler/internal/build/runBuild.js +45 -19
- package/lib/compiler/internal/build/runBuild.js.map +1 -1
- package/lib/compiler/internal/buildNativeCompiler.d.ts +2 -0
- package/lib/compiler/internal/buildNativeCompiler.js +1 -0
- package/lib/compiler/internal/buildNativeCompiler.js.map +1 -1
- package/lib/compiler/internal/compileProjectInMemory.js +4 -2
- package/lib/compiler/internal/compileProjectInMemory.js.map +1 -1
- package/lib/compiler/internal/project/resolveOwningProjectConfig.d.ts +7 -2
- package/lib/compiler/internal/project/resolveOwningProjectConfig.js +6 -3
- package/lib/compiler/internal/project/resolveOwningProjectConfig.js.map +1 -1
- package/lib/compiler/internal/readEffectiveCompilerOptions.js +1 -1
- package/lib/compiler/internal/readEffectiveCompilerOptions.js.map +1 -1
- package/lib/compiler/internal/resolveBinary.d.ts +1 -0
- package/lib/compiler/internal/resolveBinary.js.map +1 -1
- package/lib/compiler/internal/resolveTsgo.d.ts +6 -0
- package/lib/compiler/internal/resolveTsgo.js.map +1 -1
- package/lib/compiler/internal/runSingleFileEmit.d.ts +28 -1
- package/lib/compiler/internal/runSingleFileEmit.js +120 -86
- package/lib/compiler/internal/runSingleFileEmit.js.map +1 -1
- package/lib/compiler/internal/startResidentTransform.js +8 -2
- package/lib/compiler/internal/startResidentTransform.js.map +1 -1
- package/lib/compiler/internal/transformProjectInMemory.js +11 -3
- package/lib/compiler/internal/transformProjectInMemory.js.map +1 -1
- package/lib/compiler/internal/transformProjectInWorker.d.ts +1 -1
- package/lib/compiler/internal/transformProjectInWorker.js +3 -2
- package/lib/compiler/internal/transformProjectInWorker.js.map +1 -1
- package/lib/internal/workerModuleUrl.d.ts +28 -0
- package/lib/internal/workerModuleUrl.js +40 -0
- package/lib/internal/workerModuleUrl.js.map +1 -0
- package/lib/launcher/internal/buildSingleRootProject.js +2 -1
- package/lib/launcher/internal/buildSingleRootProject.js.map +1 -1
- package/lib/launcher/internal/getCompilerVersionText.js +3 -2
- package/lib/launcher/internal/getCompilerVersionText.js.map +1 -1
- package/lib/launcher/internal/prepareExecution.js +2 -1
- package/lib/launcher/internal/prepareExecution.js.map +1 -1
- package/lib/launcher/internal/runTtsc.js +91 -41
- package/lib/launcher/internal/runTtsc.js.map +1 -1
- package/lib/launcher/internal/runtime/CommonJsRuntimeSource.d.ts +10 -6
- package/lib/launcher/internal/runtime/CommonJsRuntimeSource.js +11 -9
- package/lib/launcher/internal/runtime/CommonJsRuntimeSource.js.map +1 -1
- package/lib/launcher/internal/runtime/advertiseTypeScriptExtensions.d.ts +20 -0
- package/lib/launcher/internal/runtime/advertiseTypeScriptExtensions.js +27 -0
- package/lib/launcher/internal/runtime/advertiseTypeScriptExtensions.js.map +1 -0
- package/lib/launcher/internal/runtime/installRuntimeHooks.d.ts +5 -3
- package/lib/launcher/internal/runtime/installRuntimeHooks.js +7 -3
- package/lib/launcher/internal/runtime/installRuntimeHooks.js.map +1 -1
- package/lib/launcher/internal/watch/AsyncWatchTopology.d.ts +113 -0
- package/lib/launcher/internal/watch/AsyncWatchTopology.js +232 -0
- package/lib/launcher/internal/watch/AsyncWatchTopology.js.map +1 -0
- package/lib/launcher/internal/watch/WatchSettlement.d.ts +49 -0
- package/lib/launcher/internal/watch/WatchSettlement.js +70 -0
- package/lib/launcher/internal/watch/WatchSettlement.js.map +1 -0
- package/lib/launcher/internal/watch/WatchTopology.d.ts +29 -1
- package/lib/launcher/internal/watch/WatchTopology.js +86 -10
- package/lib/launcher/internal/watch/WatchTopology.js.map +1 -1
- package/lib/launcher/internal/watch/WatchTopologyWorkerProtocol.d.ts +121 -0
- package/lib/launcher/internal/watch/WatchTopologyWorkerProtocol.js +3 -0
- package/lib/launcher/internal/watch/WatchTopologyWorkerProtocol.js.map +1 -0
- package/lib/launcher/internal/watch/serveWatchTopologyWorker.d.ts +19 -0
- package/lib/launcher/internal/watch/serveWatchTopologyWorker.js +62 -0
- package/lib/launcher/internal/watch/serveWatchTopologyWorker.js.map +1 -0
- package/lib/launcher/internal/watch/watchTopologyWorker.d.ts +1 -0
- package/lib/launcher/internal/watch/watchTopologyWorker.js +22 -0
- package/lib/launcher/internal/watch/watchTopologyWorker.js.map +1 -0
- package/lib/plugin/CapabilityPluginResolver.d.ts +1 -1
- package/lib/plugin/CapabilityPluginResolver.js +3 -2
- package/lib/plugin/CapabilityPluginResolver.js.map +1 -1
- package/lib/plugin/internal/load/PluginDescriptorEvaluationCache.d.ts +15 -12
- package/lib/plugin/internal/load/PluginDescriptorEvaluationCache.js +13 -11
- package/lib/plugin/internal/load/PluginDescriptorEvaluationCache.js.map +1 -1
- package/lib/plugin/internal/load/PluginPackageResolution.d.ts +2 -2
- package/lib/plugin/internal/load/PluginPackageResolution.js +13 -7
- package/lib/plugin/internal/load/PluginPackageResolution.js.map +1 -1
- package/lib/plugin/internal/load/ProjectPluginEntries.d.ts +23 -7
- package/lib/plugin/internal/load/ProjectPluginEntries.js +36 -14
- package/lib/plugin/internal/load/ProjectPluginEntries.js.map +1 -1
- package/lib/plugin/internal/load/collectProjectHostInputs.d.ts +3 -1
- package/lib/plugin/internal/load/collectProjectHostInputs.js +5 -2
- package/lib/plugin/internal/load/collectProjectHostInputs.js.map +1 -1
- package/lib/plugin/internal/load/hasProjectPluginEntries.d.ts +3 -1
- package/lib/plugin/internal/load/hasProjectPluginEntries.js +4 -2
- package/lib/plugin/internal/load/hasProjectPluginEntries.js.map +1 -1
- package/lib/plugin/internal/load/loadProjectPlugins.d.ts +36 -5
- package/lib/plugin/internal/load/loadProjectPlugins.js +466 -416
- package/lib/plugin/internal/load/loadProjectPlugins.js.map +1 -1
- package/lib/plugin/internal/load/pluginResolutionFailure.d.ts +18 -0
- package/lib/plugin/internal/load/pluginResolutionFailure.js +32 -0
- package/lib/plugin/internal/load/pluginResolutionFailure.js.map +1 -0
- package/lib/plugin/internal/source/PluginBuildEnvironmentReadings.d.ts +1 -1
- package/lib/plugin/internal/source/PluginBuildEnvironmentReadings.js +3 -2
- package/lib/plugin/internal/source/PluginBuildEnvironmentReadings.js.map +1 -1
- package/lib/structures/ITtscCompilerContext.d.ts +12 -12
- package/lib/structures/ITtscPlugin.d.ts +7 -5
- package/lib/structures/ITtscPluginFactoryContext.d.ts +9 -8
- package/lib/structures/internal/TtscSingleFileEmitOptions.d.ts +12 -6
- package/package.json +9 -9
- package/src/TtscCompiler.ts +1 -1
- package/src/compiler/internal/ResidentCheckProcess.ts +159 -374
- package/src/compiler/internal/ResidentCheckProcessHost.ts +502 -0
- package/src/compiler/internal/ResidentCheckProcessProtocol.ts +53 -0
- package/src/compiler/internal/build/BuildExecution.ts +118 -9
- package/src/compiler/internal/build/ResidentCheckWatchSession.ts +41 -24
- package/src/compiler/internal/build/RunBuildOptions.ts +9 -5
- package/src/compiler/internal/build/WatchInputPublication.ts +106 -0
- package/src/compiler/internal/build/runBuild.ts +58 -34
- package/src/compiler/internal/buildNativeCompiler.ts +4 -0
- package/src/compiler/internal/compileProjectInMemory.ts +8 -2
- package/src/compiler/internal/project/resolveOwningProjectConfig.ts +16 -5
- package/src/compiler/internal/readEffectiveCompilerOptions.ts +1 -1
- package/src/compiler/internal/resolveBinary.ts +4 -1
- package/src/compiler/internal/resolveTsgo.ts +7 -0
- package/src/compiler/internal/runSingleFileEmit.ts +139 -99
- package/src/compiler/internal/startResidentTransform.ts +9 -2
- package/src/compiler/internal/transformProjectInMemory.ts +12 -3
- package/src/compiler/internal/transformProjectInWorker.ts +10 -2
- package/src/internal/workerModuleUrl.ts +34 -0
- package/src/launcher/internal/buildSingleRootProject.ts +2 -0
- package/src/launcher/internal/getCompilerVersionText.ts +3 -2
- package/src/launcher/internal/prepareExecution.ts +2 -0
- package/src/launcher/internal/runTtsc.ts +123 -45
- package/src/launcher/internal/runtime/CommonJsRuntimeSource.ts +11 -9
- package/src/launcher/internal/runtime/advertiseTypeScriptExtensions.ts +25 -0
- package/src/launcher/internal/runtime/installRuntimeHooks.ts +7 -3
- package/src/launcher/internal/watch/AsyncWatchTopology.ts +267 -0
- package/src/launcher/internal/watch/WatchSettlement.ts +67 -0
- package/src/launcher/internal/watch/WatchTopology.ts +84 -13
- package/src/launcher/internal/watch/WatchTopologyWorkerProtocol.ts +106 -0
- package/src/launcher/internal/watch/serveWatchTopologyWorker.ts +75 -0
- package/src/launcher/internal/watch/watchTopologyWorker.ts +29 -0
- package/src/plugin/CapabilityPluginResolver.ts +9 -2
- package/src/plugin/internal/load/PluginDescriptorEvaluationCache.ts +17 -12
- package/src/plugin/internal/load/PluginPackageResolution.ts +14 -9
- package/src/plugin/internal/load/ProjectPluginEntries.ts +40 -15
- package/src/plugin/internal/load/collectProjectHostInputs.ts +7 -1
- package/src/plugin/internal/load/hasProjectPluginEntries.ts +8 -3
- package/src/plugin/internal/load/loadProjectPlugins.ts +672 -594
- package/src/plugin/internal/load/pluginResolutionFailure.ts +37 -0
- package/src/plugin/internal/source/PluginBuildEnvironmentReadings.ts +8 -2
- package/src/structures/ITtscCompilerContext.ts +12 -12
- package/src/structures/ITtscPlugin.ts +7 -5
- package/src/structures/ITtscPluginFactoryContext.ts +9 -8
- package/src/structures/internal/TtscSingleFileEmitOptions.ts +22 -11
|
@@ -33,14 +33,14 @@ const takeResidentCheckEntryRequest_1 = require("./takeResidentCheckEntryRequest
|
|
|
33
33
|
* `TTSC_WATCH_DEBUG_INPUTS` reports why selection is reset and the active
|
|
34
34
|
* sidecar count being retired, and distinguishes a failed resident transport.
|
|
35
35
|
*
|
|
36
|
-
* @evidence contracts/common.md#principled-implementation Stable invocation selection and serialized cycles let compatible analysis-only checks retain their Program; explicit reload and observed input-topology changes reset selection before another cycle.
|
|
37
|
-
* @evidence contracts/common.md#clear-and-simple-design The session owns selected execution, dependency snapshot, process identities and per-entry delivery buffers while shared BuildExecution owns one-shot phase and failure policy.
|
|
38
|
-
* @evidence contracts/common.md#prohibited-implementation-shortcuts Capability-aware residency
|
|
39
|
-
* @evidence contracts/common.md#meaningful-documentation Native paragraphs state supported lanes, reset causes and the caller's serialization/stable-invocation premise; run and dispose document lifecycle effects.
|
|
40
|
-
* @evidence contracts/portability.md#os-neutral-implementation Native filesystem checks
|
|
41
|
-
* @evidence contracts/performance.md#efficient-algorithms Per-cycle command planning, key serialization and buffer unions process configured checks and pending path text; sorting/comparison bytes, native cache observations, subscribed input discovery and delegated checks add work.
|
|
42
|
-
* @evidence contracts/performance.md#reuse-equivalent-work Process keys include binary/name/argv/compiler payload, while stable invocation context and reload guard the remaining startup inputs
|
|
43
|
-
* @evidence contracts/performance.md#bound-retention-and-release-resources Reset clears active maps, execution and snapshots while retiring children and join promises remain separately retained. Unknown joins
|
|
36
|
+
* @evidence contracts/common.md#principled-implementation Stable invocation selection and serialized cycles let compatible analysis-only checks retain their Program; explicit reload and observed input-topology changes reset selection before another cycle. Initial capture and warm refresh await the watch owner's publication before retaining topology; warm refresh compares physical dependency identity while publishing every declared-alias update.
|
|
37
|
+
* @evidence contracts/common.md#clear-and-simple-design The session owns selected execution, dependency snapshot, process identities and per-entry delivery buffers while shared BuildExecution owns one-shot phase and failure policy. Initial capture wraps the existing discovery callback, and warm refresh joins discovery, comparison and watch registration without another topology owner.
|
|
38
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Capability-aware residency retains the actual transport-failure one-shot path and distinct configured check positions. Pending or rejected registration cannot restamp topology, and unchanged physical dependencies cannot bypass declared-alias publication.
|
|
39
|
+
* @evidence contracts/common.md#meaningful-documentation Native paragraphs state supported lanes, reset causes and the caller's serialization/stable-invocation premise; private capture and refresh prose distinguish committed topology, physical comparison and declared-alias publication, while run and dispose document lifecycle effects.
|
|
40
|
+
* @evidence contracts/portability.md#os-neutral-implementation Native filesystem checks, cache touch helpers and child creation retain selected binary paths and delegated executable/argv/environment handling. BuildExecution owns native discovery and path normalization; initial capture forwards its snapshot without native operations and warm comparison preserves physical and declared representations.
|
|
41
|
+
* @evidence contracts/performance.md#efficient-algorithms Per-cycle command planning, key serialization and buffer unions process configured checks and pending path text; sorting/comparison bytes, native cache observations, subscribed input discovery and delegated checks add work. Initial capture adds one shallow options copy and one awaited callback; warm refresh adds one native discovery, linear normalized comparison and callback, avoiding reset when topology is unchanged. Accumulated output can repeatedly copy earlier phase text.
|
|
42
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Process keys include binary/name/argv/compiler payload, while stable invocation context and reload guard the remaining startup inputs. Accepted snapshots serve warm topology comparison only after watch registration completes; execution reuse also requires equal physical dependency topology.
|
|
43
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources Initial capture closes over the session and caller for its build; warm handoff retains the previous and next snapshots until successful registration replaces the accepted population, while rejection preserves it. Reset clears active maps, execution and snapshots while retiring children and join promises remain separately retained. Unknown joins retain rejection and prevent replacement; delegated termination is not descendant settlement. Stable options bound active process keys by configured checks, but pending unique paths and repeated disposal chains have no independent historical ceiling.
|
|
44
44
|
*/
|
|
45
45
|
class ResidentCheckWatchSession {
|
|
46
46
|
execution;
|
|
@@ -63,7 +63,9 @@ class ResidentCheckWatchSession {
|
|
|
63
63
|
* and plugins and starts resident check processes for compatible entries.
|
|
64
64
|
* Later cycles reuse them and forward `change` as an incremental request. A
|
|
65
65
|
* resident process that fails is retired and its entry falls back to the
|
|
66
|
-
* one-shot check for that cycle.
|
|
66
|
+
* one-shot check for that cycle. Plugin and project watch handoffs complete
|
|
67
|
+
* before checks begin; reused topology is republished through the same
|
|
68
|
+
* completion boundary.
|
|
67
69
|
*
|
|
68
70
|
* @evidence contracts/common.md#principled-implementation Compatible no-emit check-only selection uses the same diagnostic/failure policy as one-shot execution; reload, missing binaries and changed normalized dependency topology cold-resolve the next execution.
|
|
69
71
|
* @evidence contracts/common.md#clear-and-simple-design The cycle separates setup/reuse, topology refresh, ordered checks and final diagnostics/timing, delegating each phase to its owning shared operation.
|
|
@@ -91,9 +93,11 @@ class ResidentCheckWatchSession {
|
|
|
91
93
|
let buildOptions;
|
|
92
94
|
if (execution === undefined) {
|
|
93
95
|
const setupStartedAt = process.hrtime.bigint();
|
|
94
|
-
execution = BuildExecution_1.BuildExecution.
|
|
96
|
+
execution = await BuildExecution_1.BuildExecution.resolveExecutionContextAsync(options);
|
|
97
|
+
this.assertOpen(generation);
|
|
95
98
|
const discoveryOptions = this.captureProjectInputs(options);
|
|
96
|
-
const prepared = BuildExecution_1.BuildExecution.
|
|
99
|
+
const prepared = await BuildExecution_1.BuildExecution.prepareBuildExecutionAsync(discoveryOptions, timing, execution, setupStartedAt);
|
|
100
|
+
this.assertOpen(generation);
|
|
97
101
|
buildOptions = prepared.buildOptions;
|
|
98
102
|
if (prepared.result !== undefined) {
|
|
99
103
|
await this.resetForRun("preparation-result");
|
|
@@ -119,10 +123,13 @@ class ResidentCheckWatchSession {
|
|
|
119
123
|
(0, touchPluginCacheEntryInUse_1.touchPluginCacheEntryInUse)(plugin.binary);
|
|
120
124
|
buildOptions = BuildExecution_1.BuildExecution.applyProjectNoEmit(options, execution);
|
|
121
125
|
}
|
|
122
|
-
if (reusedExecution
|
|
123
|
-
this.refreshProjectInputTopology(options, execution)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
if (reusedExecution) {
|
|
127
|
+
const topologyChanged = await this.refreshProjectInputTopology(options, execution);
|
|
128
|
+
this.assertOpen(generation);
|
|
129
|
+
if (topologyChanged) {
|
|
130
|
+
await this.resetForRun("project-input-topology");
|
|
131
|
+
return this.run(options);
|
|
132
|
+
}
|
|
126
133
|
}
|
|
127
134
|
const checked = await this.runCheckPlugins(buildOptions, execution, timing, change, generation);
|
|
128
135
|
this.assertOpen(generation);
|
|
@@ -232,32 +239,41 @@ class ResidentCheckWatchSession {
|
|
|
232
239
|
void joined.then(() => this.retiringProcesses.delete(child), () => { });
|
|
233
240
|
return joined;
|
|
234
241
|
}
|
|
235
|
-
/**
|
|
242
|
+
/**
|
|
243
|
+
* Retain discovered project topology after its watch owner confirms the
|
|
244
|
+
* publication; rejected registration leaves the previous snapshot intact.
|
|
245
|
+
*/
|
|
236
246
|
captureProjectInputs(options) {
|
|
237
247
|
const onProjectInputs = options.onProjectInputs;
|
|
238
248
|
if (onProjectInputs === undefined)
|
|
239
249
|
return options;
|
|
250
|
+
const generation = this.generation;
|
|
240
251
|
return {
|
|
241
252
|
...options,
|
|
242
|
-
onProjectInputs: (snapshot) => {
|
|
253
|
+
onProjectInputs: async (snapshot) => {
|
|
254
|
+
await onProjectInputs(snapshot);
|
|
255
|
+
this.assertOpen(generation);
|
|
243
256
|
this.projectInputs = snapshot;
|
|
244
|
-
onProjectInputs(snapshot);
|
|
245
257
|
},
|
|
246
258
|
};
|
|
247
259
|
}
|
|
248
260
|
/**
|
|
249
261
|
* Refresh normalized Program topology while always publishing declared alias
|
|
250
262
|
* updates to the watcher, even when physical dependency identity is
|
|
251
|
-
* unchanged.
|
|
263
|
+
* unchanged. Await registration before checks reuse the selected execution.
|
|
252
264
|
*/
|
|
253
|
-
refreshProjectInputTopology(options, execution) {
|
|
265
|
+
async refreshProjectInputTopology(options, execution) {
|
|
254
266
|
if (options.onProjectInputs === undefined)
|
|
255
267
|
return false;
|
|
268
|
+
const generation = this.generation;
|
|
256
269
|
const next = BuildExecution_1.BuildExecution.discoverNativeProjectInputs(options, execution);
|
|
257
270
|
const changed = this.projectInputs !== undefined &&
|
|
258
271
|
!projectInputSnapshotsEqual(this.projectInputs, next);
|
|
272
|
+
// Replaying an unchanged population still crosses the worker's publication
|
|
273
|
+
// barrier. Starting checks first would accept edits before registration.
|
|
274
|
+
await options.onProjectInputs(next);
|
|
275
|
+
this.assertOpen(generation);
|
|
259
276
|
this.projectInputs = next;
|
|
260
|
-
options.onProjectInputs(next);
|
|
261
277
|
return changed;
|
|
262
278
|
}
|
|
263
279
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResidentCheckWatchSession.js","sourceRoot":"","sources":["../../../../src/compiler/internal/build/ResidentCheckWatchSession.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AAEzB,2GAAwG;AAGxG,kEAA+D;AAE/D,qDAAkD;AAClD,+CAA4C;AAC5C,mEAAgE;AAChE,yDAAsD;AAGtD,mDAAgD;AAChD,2DAAwD;AACxD,yFAAsF;AACtF,iEAA8D;AAC9D,yEAAsE;AACtE,iEAA8D;AAC9D,mFAAgF;AAEhF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;IACU,SAAS,CAEH;IAEd,+EAA+E;IAC9D,cAAc,GAAG,IAAI,GAAG,EAAgC,CAAC;IAE1E,4EAA4E;IACpE,aAAa,CAAwC;IAE7D,6EAA6E;I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AAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAChE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAChE,qBAAqB,CAAC,KAAK,CACzB,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,sBAAsB,CAAC,KAAK,CAAC,CAC1D;QACD,eAAe,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAC3E,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,kCAAkC,CACzC,OAAwB,EACxB,SAAoE;IAEpE,OAAO,CACL,OAAO,CAAC,IAAI,KAAK,KAAK;QACtB,OAAO,CAAC,GAAG,KAAK,IAAI;QACpB,OAAO,CAAC,MAAM,KAAK,IAAI;QACvB,mCAAgB,CAAC,wBAAwB,CAAC,OAAO,CAAC,KAAK,KAAK;QAC5D,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO,CAAC,CACpE,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ITtscParsedProjectConfig } from "../../../structures/internal/ITtscParsedProjectConfig";
|
|
2
|
-
import type { ITtscProjectInputSnapshot } from "../../../structures/internal/ITtscProjectInputSnapshot";
|
|
3
2
|
import type { TtscBuildOptions } from "../../../structures/internal/TtscBuildOptions";
|
|
4
|
-
import type { TtscPluginSourceInputsHandler } from "../../../structures/internal/TtscSingleFileEmitOptions";
|
|
3
|
+
import type { TtscPluginSourceInputsHandler, TtscProjectInputsHandler } from "../../../structures/internal/TtscSingleFileEmitOptions";
|
|
5
4
|
/**
|
|
6
5
|
* Options of one {@link runBuild} call: the public build options plus the knobs
|
|
7
6
|
* only ttsc's own lanes set (ttsx's private runtime builds, single-file emit,
|
|
@@ -107,16 +106,18 @@ export type RunBuildOptions = TtscBuildOptions & {
|
|
|
107
106
|
/**
|
|
108
107
|
* Receives selected native-plugin source roots after the project resolves.
|
|
109
108
|
* The watch launcher uses these roots to invalidate a sidecar when its Go
|
|
110
|
-
* implementation changes between rebuilds.
|
|
109
|
+
* implementation changes between rebuilds. Asynchronous entries await a
|
|
110
|
+
* returned promise; synchronous entries require a synchronous handler.
|
|
111
111
|
*/
|
|
112
112
|
onWatchInputs?: TtscPluginSourceInputsHandler;
|
|
113
113
|
/**
|
|
114
114
|
* Receives the reconciled project-rule filesystem dependency snapshot. Called
|
|
115
115
|
* when this internal callback is supplied, normally by watch launchers;
|
|
116
116
|
* ordinary calls without the callback do not probe the optional sidecar
|
|
117
|
-
* command.
|
|
117
|
+
* command. Asynchronous entries await a returned promise before compilation;
|
|
118
|
+
* synchronous entries require a synchronous handler.
|
|
118
119
|
*/
|
|
119
|
-
onProjectInputs?:
|
|
120
|
+
onProjectInputs?: TtscProjectInputsHandler;
|
|
120
121
|
/**
|
|
121
122
|
* Request an external source map in an emitting direct tsgo lane even when
|
|
122
123
|
* the project configures none. Later forwarded sourceMap assignments can
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Complete each watch-input handoff before resuming its producer.
|
|
3
|
+
*
|
|
4
|
+
* Synchronous compiler APIs retain their return types and require synchronous
|
|
5
|
+
* handlers. Watch callers use the asynchronous runner so a worker establishes
|
|
6
|
+
* its baseline before the producer reads or builds the reported inputs.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/common.md#principled-implementation Generator suspension preserves ordered publication checkpoints; rejected handoffs return to the producer's failure policy and finally blocks. The synchronous guard recognizes callable then members across realms and observes an already-started promise's rejection before refusing asynchronous completion.
|
|
9
|
+
* @evidence contracts/common.md#clear-and-simple-design Two runners share one producer sequence; the synchronous guard owns promise recognition and refusal, and its caller delivers that failure to the producer.
|
|
10
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts A synchronous entry refuses asynchronous work instead of reporting completion or blocking; neither runner changes watcher or filesystem internals.
|
|
11
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose identifies publication ordering, synchronous restrictions, cross-realm recognition and already-started handler ownership; each runner documents failure delivery.
|
|
12
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation Promise recognition and publication stepping introduce no native filesystem, path identity or process boundary.
|
|
13
|
+
* @evidence contracts/performance.md#efficient-algorithms Each runner advances each handoff once with constant state; the synchronous guard adds one then-member observation and one rejection observer. Callback work and retained producer state remain owner costs.
|
|
14
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Publication and completion validation belong to each current producer handoff and are never memoized or shared away.
|
|
15
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources One suspended sequence remains until completion or failure, and rejected handoffs enter its cleanup path. The rejection observer lasts until the already-started handler settles; the synchronous runner cannot join or cancel it. Handler duration and retained producer bytes have no independent bound.
|
|
16
|
+
*/
|
|
17
|
+
export declare namespace WatchInputPublication {
|
|
18
|
+
/**
|
|
19
|
+
* A producer suspends only at a watch owner's completion boundary.
|
|
20
|
+
*
|
|
21
|
+
* @evidence contracts/common.md#principled-implementation Yielded values describe handler completion, and the final return preserves the producer's result type.
|
|
22
|
+
* @evidence contracts/common.md#clear-and-simple-design One generator shape serves both completion runners without changing the producer's return contract.
|
|
23
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts The type models real callback completion without injecting watcher or filesystem behavior.
|
|
24
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose identifies the suspension boundary.
|
|
25
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation This type has no native representation or process boundary.
|
|
26
|
+
* @evidenceExclude contracts/performance.md#efficient-algorithms A type declaration chooses no processing strategy.
|
|
27
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work A type declaration computes no reusable work.
|
|
28
|
+
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources A type declaration acquires no resource.
|
|
29
|
+
*/
|
|
30
|
+
type Sequence<Result> = Generator<void | Promise<void>, Result, void>;
|
|
31
|
+
/**
|
|
32
|
+
* Finish a synchronous producer, refusing a handler that returns a promise.
|
|
33
|
+
* The refusal enters the producer's ordinary exception and cleanup path.
|
|
34
|
+
*
|
|
35
|
+
* @evidence contracts/common.md#principled-implementation Each yielded completion is checked before advancing; asynchronous completion becomes an exception delivered into the producer.
|
|
36
|
+
* @evidence contracts/common.md#clear-and-simple-design The runner owns synchronous completion while the sequence owns operation policy and cleanup.
|
|
37
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Promise rejection is observed and synchronous success cannot precede its completion.
|
|
38
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose states promise refusal and the producer-owned exception path.
|
|
39
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation Sequence stepping performs no native operation.
|
|
40
|
+
* @evidence contracts/performance.md#efficient-algorithms The runner visits each handoff once and retains one iterator result at a time.
|
|
41
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Ordered effectful publications are not cached or shared.
|
|
42
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources Refusal enters generator cleanup and observes the already-started promise's rejection; its unfinished handler remains handler-owned rather than joined by this synchronous API.
|
|
43
|
+
*/
|
|
44
|
+
function run<Result>(sequence: Sequence<Result>): Result;
|
|
45
|
+
/**
|
|
46
|
+
* Join every handoff before continuing, delivering rejection to the producer
|
|
47
|
+
* rather than bypassing its error handling or temporary-resource cleanup.
|
|
48
|
+
*
|
|
49
|
+
* @evidence contracts/common.md#principled-implementation Await settles each yielded handoff and throws rejection back into the same suspended generator before advancing.
|
|
50
|
+
* @evidence contracts/common.md#clear-and-simple-design The runner owns asynchronous completion while producer policy remains inside the shared sequence.
|
|
51
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No pending or rejected publication is silently treated as completed registration.
|
|
52
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose states ordered joining, rejection delivery and cleanup ownership.
|
|
53
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation Promise and generator stepping introduce no native boundary.
|
|
54
|
+
* @evidence contracts/performance.md#efficient-algorithms Each yielded handoff is awaited once with constant runner state.
|
|
55
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Each effectful publication belongs to its current producer and is not cached.
|
|
56
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources One suspended sequence remains live until the handler settles; rejection enters its cleanup path, with no independent callback deadline imposed here.
|
|
57
|
+
*/
|
|
58
|
+
function runAsync<Result>(sequence: Sequence<Result>): Promise<Result>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WatchInputPublication = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Complete each watch-input handoff before resuming its producer.
|
|
6
|
+
*
|
|
7
|
+
* Synchronous compiler APIs retain their return types and require synchronous
|
|
8
|
+
* handlers. Watch callers use the asynchronous runner so a worker establishes
|
|
9
|
+
* its baseline before the producer reads or builds the reported inputs.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/common.md#principled-implementation Generator suspension preserves ordered publication checkpoints; rejected handoffs return to the producer's failure policy and finally blocks. The synchronous guard recognizes callable then members across realms and observes an already-started promise's rejection before refusing asynchronous completion.
|
|
12
|
+
* @evidence contracts/common.md#clear-and-simple-design Two runners share one producer sequence; the synchronous guard owns promise recognition and refusal, and its caller delivers that failure to the producer.
|
|
13
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts A synchronous entry refuses asynchronous work instead of reporting completion or blocking; neither runner changes watcher or filesystem internals.
|
|
14
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose identifies publication ordering, synchronous restrictions, cross-realm recognition and already-started handler ownership; each runner documents failure delivery.
|
|
15
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation Promise recognition and publication stepping introduce no native filesystem, path identity or process boundary.
|
|
16
|
+
* @evidence contracts/performance.md#efficient-algorithms Each runner advances each handoff once with constant state; the synchronous guard adds one then-member observation and one rejection observer. Callback work and retained producer state remain owner costs.
|
|
17
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Publication and completion validation belong to each current producer handoff and are never memoized or shared away.
|
|
18
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources One suspended sequence remains until completion or failure, and rejected handoffs enter its cleanup path. The rejection observer lasts until the already-started handler settles; the synchronous runner cannot join or cancel it. Handler duration and retained producer bytes have no independent bound.
|
|
19
|
+
*/
|
|
20
|
+
var WatchInputPublication;
|
|
21
|
+
(function (WatchInputPublication) {
|
|
22
|
+
/**
|
|
23
|
+
* Finish a synchronous producer, refusing a handler that returns a promise.
|
|
24
|
+
* The refusal enters the producer's ordinary exception and cleanup path.
|
|
25
|
+
*
|
|
26
|
+
* @evidence contracts/common.md#principled-implementation Each yielded completion is checked before advancing; asynchronous completion becomes an exception delivered into the producer.
|
|
27
|
+
* @evidence contracts/common.md#clear-and-simple-design The runner owns synchronous completion while the sequence owns operation policy and cleanup.
|
|
28
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Promise rejection is observed and synchronous success cannot precede its completion.
|
|
29
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose states promise refusal and the producer-owned exception path.
|
|
30
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation Sequence stepping performs no native operation.
|
|
31
|
+
* @evidence contracts/performance.md#efficient-algorithms The runner visits each handoff once and retains one iterator result at a time.
|
|
32
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Ordered effectful publications are not cached or shared.
|
|
33
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources Refusal enters generator cleanup and observes the already-started promise's rejection; its unfinished handler remains handler-owned rather than joined by this synchronous API.
|
|
34
|
+
*/
|
|
35
|
+
function run(sequence) {
|
|
36
|
+
let step = sequence.next();
|
|
37
|
+
while (!step.done) {
|
|
38
|
+
try {
|
|
39
|
+
assertSynchronous(step.value);
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
step = sequence.throw(error);
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
step = sequence.next();
|
|
46
|
+
}
|
|
47
|
+
return step.value;
|
|
48
|
+
}
|
|
49
|
+
WatchInputPublication.run = run;
|
|
50
|
+
/**
|
|
51
|
+
* Join every handoff before continuing, delivering rejection to the producer
|
|
52
|
+
* rather than bypassing its error handling or temporary-resource cleanup.
|
|
53
|
+
*
|
|
54
|
+
* @evidence contracts/common.md#principled-implementation Await settles each yielded handoff and throws rejection back into the same suspended generator before advancing.
|
|
55
|
+
* @evidence contracts/common.md#clear-and-simple-design The runner owns asynchronous completion while producer policy remains inside the shared sequence.
|
|
56
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts No pending or rejected publication is silently treated as completed registration.
|
|
57
|
+
* @evidence contracts/common.md#meaningful-documentation Native prose states ordered joining, rejection delivery and cleanup ownership.
|
|
58
|
+
* @evidenceExclude contracts/portability.md#os-neutral-implementation Promise and generator stepping introduce no native boundary.
|
|
59
|
+
* @evidence contracts/performance.md#efficient-algorithms Each yielded handoff is awaited once with constant runner state.
|
|
60
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Each effectful publication belongs to its current producer and is not cached.
|
|
61
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources One suspended sequence remains live until the handler settles; rejection enters its cleanup path, with no independent callback deadline imposed here.
|
|
62
|
+
*/
|
|
63
|
+
async function runAsync(sequence) {
|
|
64
|
+
let step = sequence.next();
|
|
65
|
+
while (!step.done) {
|
|
66
|
+
try {
|
|
67
|
+
await step.value;
|
|
68
|
+
}
|
|
69
|
+
catch (error) {
|
|
70
|
+
step = sequence.throw(error);
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
step = sequence.next();
|
|
74
|
+
}
|
|
75
|
+
return step.value;
|
|
76
|
+
}
|
|
77
|
+
WatchInputPublication.runAsync = runAsync;
|
|
78
|
+
/**
|
|
79
|
+
* Refuse cross-realm promises and thenables through the producer's failure
|
|
80
|
+
* path, observing rejection from a handler that has already started.
|
|
81
|
+
*/
|
|
82
|
+
function assertSynchronous(value) {
|
|
83
|
+
if (value !== null &&
|
|
84
|
+
(typeof value === "object" || typeof value === "function") &&
|
|
85
|
+
typeof value.then === "function") {
|
|
86
|
+
// The handler has already started; observe its rejection even though
|
|
87
|
+
// this synchronous caller cannot join it and must fail the operation.
|
|
88
|
+
void Promise.resolve(value).catch(() => { });
|
|
89
|
+
throw new TypeError("ttsc: asynchronous watch input publication requires an asynchronous build entry");
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
})(WatchInputPublication || (exports.WatchInputPublication = WatchInputPublication = {}));
|
|
93
|
+
//# sourceMappingURL=WatchInputPublication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WatchInputPublication.js","sourceRoot":"","sources":["../../../../src/compiler/internal/build/WatchInputPublication.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,IAAiB,qBAAqB,CAyFrC;AAzFD,WAAiB,qBAAqB;IAepC;;;;;;;;;;;;OAYG;IACH,SAAgB,GAAG,CAAS,QAA0B;QACpD,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;QAC3B,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,IAAI,CAAC;gBACH,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAChC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC7B,SAAS;YACX,CAAC;YACD,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;QACzB,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAZe,sBAAA,GAAG,MAYlB,CAAA;IAED;;;;;;;;;;;;OAYG;IACI,KAAK,UAAU,QAAQ,CAC5B,QAA0B;QAE1B,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;QAC3B,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,KAAK,CAAC;YACnB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC7B,SAAS;YACX,CAAC;YACD,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;QACzB,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAdqB,sBAAA,QAAQ,WAc7B,CAAA;IAED;;;OAGG;IACH,SAAS,iBAAiB,CAAC,KAAc;QACvC,IACE,KAAK,KAAK,IAAI;YACd,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,UAAU,CAAC;YAC1D,OAAQ,KAA4B,CAAC,IAAI,KAAK,UAAU,EACxD,CAAC;YACD,qEAAqE;YACrE,sEAAsE;YACtE,KAAK,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;YAC5C,MAAM,IAAI,SAAS,CACjB,iFAAiF,CAClF,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC,EAzFgB,qBAAqB,aAArB,qBAAqB,GAArB,qBAAqB,QAyFrC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { TtscBuildResult } from "../../../structures/internal/TtscBuildResult";
|
|
2
2
|
import type { RunBuildOptions } from "./RunBuildOptions";
|
|
3
|
+
import { WatchInputPublication } from "./WatchInputPublication";
|
|
3
4
|
/**
|
|
4
5
|
* Run `ttsc` against a tsconfig. Returns once the binary exits so the CLI can
|
|
5
6
|
* decide how to surface diagnostics. Non-zero process exit is returned as a
|
|
@@ -7,8 +8,9 @@ import type { RunBuildOptions } from "./RunBuildOptions";
|
|
|
7
8
|
*
|
|
8
9
|
* Project-free terminal flags bypass project/plugin setup when applicable.
|
|
9
10
|
* Required emit provenance preserves compiler selection and exposes unknown
|
|
10
|
-
* ownership when the selected producer cannot establish the requested
|
|
11
|
-
*
|
|
11
|
+
* ownership when the selected producer cannot establish the requested relation.
|
|
12
|
+
* Watch-input handlers must complete synchronously; use {@link runBuild.async}
|
|
13
|
+
* when a handler returns a promise.
|
|
12
14
|
*
|
|
13
15
|
* @evidence contracts/common.md#principled-implementation Shared preparation selects project and plugins before execution, while project-free terminal requests take their supported direct compiler path; timing is appended after the resulting build phase.
|
|
14
16
|
* @evidence contracts/common.md#clear-and-simple-design The public synchronous entry owns timing and delegates setup/execution to BuildExecution, keeping the same build policy available to watch sessions.
|
|
@@ -20,3 +22,28 @@ import type { RunBuildOptions } from "./RunBuildOptions";
|
|
|
20
22
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The ledger and execution state are build-owned, while returned output/proof/diagnostic records transfer to the caller; no resident handle or historical build is stored here. Delegated native/probe/artifact acquisition and cleanup may be best effort, and thrown setup can precede some cleanup boundaries. This wrapper supplies no duration/output bound or descendant-release certification.
|
|
21
23
|
*/
|
|
22
24
|
export declare function runBuild(options?: RunBuildOptions): TtscBuildResult;
|
|
25
|
+
/**
|
|
26
|
+
* Share one build sequence between synchronous APIs and awaited watch cycles.
|
|
27
|
+
*
|
|
28
|
+
* @evidence contracts/common.md#principled-implementation Both completion modes use the same timed terminal selection, context acquisition, preparation and compile sequence. The asynchronous runner joins every plugin and project publication before native compilation; composing callers must deliver callback rejection into that sequence.
|
|
29
|
+
* @evidence contracts/common.md#clear-and-simple-design The namespace keeps awaited completion beside its synchronous entry and exposes one timing and phase sequence to single-file orchestration; BuildExecution retains build policy.
|
|
30
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Awaiting changes only publication completion, preserves compiler/plugin selection and project-free terminal behavior, and sends publication failure through existing setup and cleanup rather than bypassing a pending baseline.
|
|
31
|
+
* @evidence contracts/common.md#meaningful-documentation Entry prose states the publication barrier, order before compilation and internal callers' obligation to complete the sequence and deliver rejection.
|
|
32
|
+
* @evidence contracts/portability.md#os-neutral-implementation BuildExecution retains native cwd, path identity and argument-array ownership across suspension; the namespace adds no independent native boundary.
|
|
33
|
+
* @evidence contracts/performance.md#efficient-algorithms Each selected terminal, context, discovery, preparation and compile phase runs once; each publication adds one await and constant sequence state.
|
|
34
|
+
* @evidence contracts/performance.md#reuse-equivalent-work One resolved execution context serves preparation and compilation without reloading plugins; the namespace retains no completed build or in-flight cache.
|
|
35
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources The invocation owns its sequence, ledger, context and current handoff while callbacks settle. Selected results transfer to the caller, delegated resource ownership and cleanup stay unchanged, and no resident history is retained.
|
|
36
|
+
*/
|
|
37
|
+
export declare namespace runBuild {
|
|
38
|
+
/**
|
|
39
|
+
* Run a build after each watch-input handler's returned promise settles.
|
|
40
|
+
* Compilation starts only after both plugin and project baselines complete.
|
|
41
|
+
*/
|
|
42
|
+
function async(options?: RunBuildOptions): Promise<TtscBuildResult>;
|
|
43
|
+
/**
|
|
44
|
+
* Produce one timed build, yielding watch handoffs before native work.
|
|
45
|
+
* Composing owners must complete the sequence and deliver callback rejection
|
|
46
|
+
* back into it so the existing setup and cleanup policies apply.
|
|
47
|
+
*/
|
|
48
|
+
function steps(options: RunBuildOptions): WatchInputPublication.Sequence<TtscBuildResult>;
|
|
49
|
+
}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.runBuild = runBuild;
|
|
4
4
|
const BuildExecution_1 = require("./BuildExecution");
|
|
5
5
|
const BuildTiming_1 = require("./BuildTiming");
|
|
6
|
+
const WatchInputPublication_1 = require("./WatchInputPublication");
|
|
6
7
|
/**
|
|
7
8
|
* Run `ttsc` against a tsconfig. Returns once the binary exits so the CLI can
|
|
8
9
|
* decide how to surface diagnostics. Non-zero process exit is returned as a
|
|
@@ -10,8 +11,9 @@ const BuildTiming_1 = require("./BuildTiming");
|
|
|
10
11
|
*
|
|
11
12
|
* Project-free terminal flags bypass project/plugin setup when applicable.
|
|
12
13
|
* Required emit provenance preserves compiler selection and exposes unknown
|
|
13
|
-
* ownership when the selected producer cannot establish the requested
|
|
14
|
-
*
|
|
14
|
+
* ownership when the selected producer cannot establish the requested relation.
|
|
15
|
+
* Watch-input handlers must complete synchronously; use {@link runBuild.async}
|
|
16
|
+
* when a handler returns a promise.
|
|
15
17
|
*
|
|
16
18
|
* @evidence contracts/common.md#principled-implementation Shared preparation selects project and plugins before execution, while project-free terminal requests take their supported direct compiler path; timing is appended after the resulting build phase.
|
|
17
19
|
* @evidence contracts/common.md#clear-and-simple-design The public synchronous entry owns timing and delegates setup/execution to BuildExecution, keeping the same build policy available to watch sessions.
|
|
@@ -23,22 +25,46 @@ const BuildTiming_1 = require("./BuildTiming");
|
|
|
23
25
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The ledger and execution state are build-owned, while returned output/proof/diagnostic records transfer to the caller; no resident handle or historical build is stored here. Delegated native/probe/artifact acquisition and cleanup may be best effort, and thrown setup can precede some cleanup boundaries. This wrapper supplies no duration/output bound or descendant-release certification.
|
|
24
26
|
*/
|
|
25
27
|
function runBuild(options = {}) {
|
|
26
|
-
|
|
27
|
-
const result = runBuildTimed(options, timing);
|
|
28
|
-
return BuildTiming_1.BuildTiming.appendTimingOutput(result, timing);
|
|
29
|
-
}
|
|
30
|
-
function runBuildTimed(options, timing) {
|
|
31
|
-
const projectFree = BuildExecution_1.BuildExecution.runProjectFreeTerminalFlag(options);
|
|
32
|
-
if (projectFree !== null)
|
|
33
|
-
return projectFree;
|
|
34
|
-
const setupStartedAt = process.hrtime.bigint();
|
|
35
|
-
const execution = BuildExecution_1.BuildExecution.resolveExecutionContext(options);
|
|
36
|
-
return runBuildWithExecution(options, timing, execution, setupStartedAt);
|
|
37
|
-
}
|
|
38
|
-
function runBuildWithExecution(options, timing, execution, setupStartedAt) {
|
|
39
|
-
const prepared = BuildExecution_1.BuildExecution.prepareBuildExecution(options, timing, execution, setupStartedAt);
|
|
40
|
-
if (prepared.result !== undefined)
|
|
41
|
-
return prepared.result;
|
|
42
|
-
return BuildExecution_1.BuildExecution.runPreparedBuild(options, timing, execution, prepared.buildOptions);
|
|
28
|
+
return WatchInputPublication_1.WatchInputPublication.run(runBuild.steps(options));
|
|
43
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Share one build sequence between synchronous APIs and awaited watch cycles.
|
|
32
|
+
*
|
|
33
|
+
* @evidence contracts/common.md#principled-implementation Both completion modes use the same timed terminal selection, context acquisition, preparation and compile sequence. The asynchronous runner joins every plugin and project publication before native compilation; composing callers must deliver callback rejection into that sequence.
|
|
34
|
+
* @evidence contracts/common.md#clear-and-simple-design The namespace keeps awaited completion beside its synchronous entry and exposes one timing and phase sequence to single-file orchestration; BuildExecution retains build policy.
|
|
35
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Awaiting changes only publication completion, preserves compiler/plugin selection and project-free terminal behavior, and sends publication failure through existing setup and cleanup rather than bypassing a pending baseline.
|
|
36
|
+
* @evidence contracts/common.md#meaningful-documentation Entry prose states the publication barrier, order before compilation and internal callers' obligation to complete the sequence and deliver rejection.
|
|
37
|
+
* @evidence contracts/portability.md#os-neutral-implementation BuildExecution retains native cwd, path identity and argument-array ownership across suspension; the namespace adds no independent native boundary.
|
|
38
|
+
* @evidence contracts/performance.md#efficient-algorithms Each selected terminal, context, discovery, preparation and compile phase runs once; each publication adds one await and constant sequence state.
|
|
39
|
+
* @evidence contracts/performance.md#reuse-equivalent-work One resolved execution context serves preparation and compilation without reloading plugins; the namespace retains no completed build or in-flight cache.
|
|
40
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources The invocation owns its sequence, ledger, context and current handoff while callbacks settle. Selected results transfer to the caller, delegated resource ownership and cleanup stay unchanged, and no resident history is retained.
|
|
41
|
+
*/
|
|
42
|
+
(function (runBuild) {
|
|
43
|
+
/**
|
|
44
|
+
* Run a build after each watch-input handler's returned promise settles.
|
|
45
|
+
* Compilation starts only after both plugin and project baselines complete.
|
|
46
|
+
*/
|
|
47
|
+
function async(options = {}) {
|
|
48
|
+
return WatchInputPublication_1.WatchInputPublication.runAsync(steps(options));
|
|
49
|
+
}
|
|
50
|
+
runBuild.async = async;
|
|
51
|
+
/**
|
|
52
|
+
* Produce one timed build, yielding watch handoffs before native work.
|
|
53
|
+
* Composing owners must complete the sequence and deliver callback rejection
|
|
54
|
+
* back into it so the existing setup and cleanup policies apply.
|
|
55
|
+
*/
|
|
56
|
+
function* steps(options) {
|
|
57
|
+
const timing = BuildTiming_1.BuildTiming.createBuildTiming(options);
|
|
58
|
+
const projectFree = BuildExecution_1.BuildExecution.runProjectFreeTerminalFlag(options);
|
|
59
|
+
if (projectFree !== null)
|
|
60
|
+
return BuildTiming_1.BuildTiming.appendTimingOutput(projectFree, timing);
|
|
61
|
+
const setupStartedAt = process.hrtime.bigint();
|
|
62
|
+
const execution = yield* BuildExecution_1.BuildExecution.resolveExecutionContextSteps(options);
|
|
63
|
+
const prepared = yield* BuildExecution_1.BuildExecution.prepareBuildExecutionSteps(options, timing, execution, setupStartedAt);
|
|
64
|
+
const result = prepared.result ??
|
|
65
|
+
BuildExecution_1.BuildExecution.runPreparedBuild(options, timing, execution, prepared.buildOptions);
|
|
66
|
+
return BuildTiming_1.BuildTiming.appendTimingOutput(result, timing);
|
|
67
|
+
}
|
|
68
|
+
runBuild.steps = steps;
|
|
69
|
+
})(runBuild || (exports.runBuild = runBuild = {}));
|
|
44
70
|
//# sourceMappingURL=runBuild.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runBuild.js","sourceRoot":"","sources":["../../../../src/compiler/internal/build/runBuild.ts"],"names":[],"mappings":";;;AACA,qDAAkD;AAClD,+CAA4C;
|
|
1
|
+
{"version":3,"file":"runB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AAC,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IAzBgB,SAAA,KAAK,QAyBrB,CAAA;AACH,CAAC,EA1CgB,QAAQ,aAhBT,QAAQ,GAgBP,QAAQ,QA0CxB"}
|
|
@@ -26,6 +26,8 @@ export declare function buildNativeCompiler(options: {
|
|
|
26
26
|
cacheBaseDir: string;
|
|
27
27
|
/** Optional explicit cache directory, interpreted by the artifact builder. */
|
|
28
28
|
cacheDir?: string;
|
|
29
|
+
/** Complete environment used to select and key the native host build. */
|
|
30
|
+
env?: NodeJS.ProcessEnv;
|
|
29
31
|
/** Installed ttsc package containing cmd/ttsc and its module metadata. */
|
|
30
32
|
packageRoot: string;
|
|
31
33
|
}): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildNativeCompiler.js","sourceRoot":"","sources":["../../../src/compiler/internal/buildNativeCompiler.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,sFAAmF;AAEnF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,6BAAoC,
|
|
1
|
+
{"version":3,"file":"buildNativeCompiler.js","sourceRoot":"","sources":["../../../src/compiler/internal/buildNativeCompiler.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,sFAAmF;AAEnF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,6BAAoC,OAYnC;IACC,OAAO,IAAA,qCAAiB,EAAC;QACvB,OAAO,EAAE,OAAO,CAAC,YAAY;QAC7B,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,EAAE;QACf,UAAU,EAAE,MAAM;QAClB,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,mBAAI,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,EAAE,MAAM,CAAC;QACrD,WAAW,EAAE,qBAAqB,CAAC,OAAO,CAAC,WAAW,CAAC;QACvD,WAAW,EAAE,mBAAmB,CAAC,OAAO,CAAC,WAAW,CAAC;KACtD,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,SAAS,qBAAqB,CAAC,WAAmB;IAChD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CACpB,iBAAE,CAAC,YAAY,CAAC,mBAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CACvC,CAAC;QAC3B,OAAO,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IACjE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC;IACjB,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,SAAS,mBAAmB,CAAC,WAAmB;IAC9C,IAAI,CAAC;QACH,OAAO,iBAAE,CAAC,YAAY,CAAC,mBAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;IACnE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
|
|
@@ -62,15 +62,17 @@ function compileProjectInMemory(options) {
|
|
|
62
62
|
return compileProjectWithPlugins(options, cwd, project);
|
|
63
63
|
}
|
|
64
64
|
const tsconfig = project.path;
|
|
65
|
+
const env = (0, inheritedSidecarEnv_1.inheritedSidecarEnv)(options.env, options.binary);
|
|
65
66
|
const binary = (0, buildNativeCompiler_1.buildNativeCompiler)({
|
|
66
67
|
cacheBaseDir: project.root,
|
|
67
68
|
cacheDir: options.cacheDir ??
|
|
68
69
|
SidecarEnvironment_1.SidecarEnvironment.read(options.env, "TTSC_CACHE_DIR"),
|
|
70
|
+
env,
|
|
69
71
|
packageRoot: (0, packageRootDir_1.packageRootDir)(),
|
|
70
72
|
});
|
|
71
73
|
const res = (0, spawnNative_1.spawnNative)(binary, ["api-compile", "--cwd", project.root, "--tsconfig", tsconfig], {
|
|
72
74
|
cwd: project.root,
|
|
73
|
-
env
|
|
75
|
+
env,
|
|
74
76
|
});
|
|
75
77
|
if (res.error) {
|
|
76
78
|
throw new Error(`ttsc: failed to spawn native compiler host ${binary}: ${res.error.message}`);
|
|
@@ -89,7 +91,7 @@ function compileProjectInMemory(options) {
|
|
|
89
91
|
}
|
|
90
92
|
/** Return true when the project or the call-level options declare any plugins. */
|
|
91
93
|
function hasConfiguredPlugins(options, project) {
|
|
92
|
-
return (0, hasProjectPluginEntries_1.hasProjectPluginEntries)(project, options.plugins);
|
|
94
|
+
return (0, hasProjectPluginEntries_1.hasProjectPluginEntries)(project, options.plugins, options.pluginConfigDir);
|
|
93
95
|
}
|
|
94
96
|
/**
|
|
95
97
|
* Route plugin discovery failures through runBuild's recoverable setup path.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compileProjectInMemory.js","sourceRoot":"","sources":["../../../src/compiler/internal/compileProjectInMemory.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,8FAA2F;AAC3F,gGAA6F;AAK7F,mEAAgE;AAChE,+CAA4C;AAC5C,+DAA4D;AAC5D,6CAA0C;AAC1C,qDAAkD;AAClD,mEAAgE;AAChE,wEAAqE;AACrE,0EAAuE;AACvE,+CAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,gCAAuC,OAA6B;IAOlE,MAAM,GAAG,GAAG,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,IAAA,qCAAiB,EAAC;QAChC,GAAG;QACH,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ;KAC3B,CAAC,CAAC;IACH,IAAI,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC;QAC3C,OAAO,yBAAyB,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAC9B,MAAM,MAAM,GAAG,IAAA,yCAAmB,EAAC;QACjC,YAAY,EAAE,OAAO,CAAC,IAAI;QAC1B,QAAQ,EACN,OAAO,CAAC,QAAQ;YAChB,uCAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,gBAAgB,CAAC;QACxD,WAAW,EAAE,IAAA,+BAAc,GAAE;KAC9B,CAAC,CAAC;IACH,MAAM,GAAG,GAAG,IAAA,yBAAW,EACrB,MAAM,EACN,CAAC,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,CAAC,EAC9D;QACE,GAAG,EAAE,OAAO,CAAC,IAAI;QACjB,GAAG
|
|
1
|
+
{"version":3,"file":"compileProjectInMemory.js","sourceRoot":"","sources":["../../../src/compiler/internal/compileProjectInMemory.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,8FAA2F;AAC3F,gGAA6F;AAK7F,mEAAgE;AAChE,+CAA4C;AAC5C,+DAA4D;AAC5D,6CAA0C;AAC1C,qDAAkD;AAClD,mEAAgE;AAChE,wEAAqE;AACrE,0EAAuE;AACvE,+CAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,gCAAuC,OAA6B;IAOlE,MAAM,GAAG,GAAG,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,IAAA,qCAAiB,EAAC;QAChC,GAAG;QACH,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,QAAQ,EAAE,OAAO,CAA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