@ttsc/unplugin 0.32.0 → 0.33.0-next.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/core/options/ResolvedTtscUnpluginOptions.d.cts +2 -0
- package/lib/core/options/ResolvedTtscUnpluginOptions.d.mts +2 -0
- package/lib/core/options/ResolvedTtscUnpluginOptions.d.ts +2 -0
- package/lib/core/options/TtscUnpluginOptions.d.cts +12 -2
- package/lib/core/options/TtscUnpluginOptions.d.mts +12 -2
- package/lib/core/options/TtscUnpluginOptions.d.ts +12 -2
- package/lib/core/options/resolveOptions.d.cts +4 -3
- package/lib/core/options/resolveOptions.d.mts +4 -3
- package/lib/core/options/resolveOptions.d.ts +4 -3
- package/lib/core/options/resolveOptions.js +5 -3
- package/lib/core/options/resolveOptions.js.map +1 -1
- package/lib/core/options/resolveOptions.mjs +5 -3
- package/lib/core/options/resolveOptions.mjs.map +1 -1
- package/lib/core/transform/TtscPrecompilation.d.cts +52 -0
- package/lib/core/transform/TtscPrecompilation.d.mts +52 -0
- package/lib/core/transform/TtscPrecompilation.d.ts +52 -0
- package/lib/core/transform/TtscPrecompilation.js +101 -0
- package/lib/core/transform/TtscPrecompilation.js.map +1 -0
- package/lib/core/transform/TtscPrecompilation.mjs +101 -0
- package/lib/core/transform/TtscPrecompilation.mjs.map +1 -0
- package/lib/core/transform/cache/selectCachedGenerationAction.d.cts +2 -0
- package/lib/core/transform/cache/selectCachedGenerationAction.d.mts +2 -0
- package/lib/core/transform/cache/selectCachedGenerationAction.d.ts +2 -0
- package/lib/core/transform/cache/selectCachedGenerationAction.js +1 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.js.map +1 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.mjs +1 -1
- package/lib/core/transform/cache/selectCachedGenerationAction.mjs.map +1 -1
- package/lib/core/transform/cache/withdrawTtscTransformGenerations.js +2 -0
- package/lib/core/transform/cache/withdrawTtscTransformGenerations.js.map +1 -1
- package/lib/core/transform/cache/withdrawTtscTransformGenerations.mjs +2 -0
- package/lib/core/transform/cache/withdrawTtscTransformGenerations.mjs.map +1 -1
- package/lib/core/transform/generation/captureTransformGeneration.d.cts +2 -0
- package/lib/core/transform/generation/captureTransformGeneration.d.mts +2 -0
- package/lib/core/transform/generation/captureTransformGeneration.d.ts +2 -0
- package/lib/core/transform/generation/captureTransformGeneration.js +7 -2
- package/lib/core/transform/generation/captureTransformGeneration.js.map +1 -1
- package/lib/core/transform/generation/captureTransformGeneration.mjs +7 -2
- package/lib/core/transform/generation/captureTransformGeneration.mjs.map +1 -1
- package/lib/core/transform/generation/transformProject.d.cts +2 -0
- package/lib/core/transform/generation/transformProject.d.mts +2 -0
- package/lib/core/transform/generation/transformProject.d.ts +2 -0
- package/lib/core/transform/generation/transformProject.js.map +1 -1
- package/lib/core/transform/generation/transformProject.mjs.map +1 -1
- package/lib/core/transform/transformTtsc.d.cts +8 -24
- package/lib/core/transform/transformTtsc.d.mts +8 -24
- package/lib/core/transform/transformTtsc.d.ts +8 -24
- package/lib/core/transform/transformTtsc.js +51 -31
- package/lib/core/transform/transformTtsc.js.map +1 -1
- package/lib/core/transform/transformTtsc.mjs +51 -31
- package/lib/core/transform/transformTtsc.mjs.map +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.d.cts +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.d.mts +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.d.ts +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.js +12 -4
- package/lib/core/transform/validation/captureUniversalHostInputValidation.js.map +1 -1
- package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs +12 -4
- package/lib/core/transform/validation/captureUniversalHostInputValidation.mjs.map +1 -1
- package/lib/core/transform/validation/matchesCachedSource.d.cts +9 -2
- package/lib/core/transform/validation/matchesCachedSource.d.mts +9 -2
- package/lib/core/transform/validation/matchesCachedSource.d.ts +9 -2
- package/lib/core/transform/validation/matchesCachedSource.js +11 -3
- package/lib/core/transform/validation/matchesCachedSource.js.map +1 -1
- package/lib/core/transform/validation/matchesCachedSource.mjs +11 -3
- package/lib/core/transform/validation/matchesCachedSource.mjs.map +1 -1
- package/lib/core/transform/watch/TtscTransformHooks.d.cts +9 -0
- package/lib/core/transform/watch/TtscTransformHooks.d.mts +9 -0
- package/lib/core/transform/watch/TtscTransformHooks.d.ts +9 -0
- package/lib/core/unplugin.js +14 -0
- package/lib/core/unplugin.js.map +1 -1
- package/lib/core/unplugin.mjs +14 -0
- package/lib/core/unplugin.mjs.map +1 -1
- package/lib/core/vite/installViteDependencyScanPlugins.d.cts +46 -0
- package/lib/core/vite/installViteDependencyScanPlugins.d.mts +46 -0
- package/lib/core/vite/installViteDependencyScanPlugins.d.ts +46 -0
- package/lib/core/vite/installViteDependencyScanPlugins.js +186 -0
- package/lib/core/vite/installViteDependencyScanPlugins.js.map +1 -0
- package/lib/core/vite/installViteDependencyScanPlugins.mjs +184 -0
- package/lib/core/vite/installViteDependencyScanPlugins.mjs.map +1 -0
- package/package.json +5 -4
- package/src/core/options/ResolvedTtscUnpluginOptions.ts +3 -0
- package/src/core/options/TtscUnpluginOptions.ts +13 -2
- package/src/core/options/resolveOptions.ts +6 -3
- package/src/core/transform/TtscPrecompilation.ts +103 -0
- package/src/core/transform/cache/selectCachedGenerationAction.ts +3 -0
- package/src/core/transform/cache/withdrawTtscTransformGenerations.ts +2 -0
- package/src/core/transform/generation/captureTransformGeneration.ts +12 -2
- package/src/core/transform/generation/transformProject.ts +3 -0
- package/src/core/transform/transformTtsc.ts +81 -36
- package/src/core/transform/validation/captureUniversalHostInputValidation.ts +12 -4
- package/src/core/transform/validation/matchesCachedSource.ts +9 -2
- package/src/core/transform/watch/TtscTransformHooks.ts +10 -0
- package/src/core/unplugin.ts +32 -0
- package/src/core/vite/installViteDependencyScanPlugins.ts +219 -0
|
@@ -37,7 +37,7 @@ var matchesRecordedInput = require('./matchesRecordedInput.js');
|
|
|
37
37
|
* @evidence contracts/common.md#meaningful-documentation Native prose explains failed admission and successful generation attachment; inline comments justify readable-state, blocker and tree distinctions.
|
|
38
38
|
* @evidence contracts/portability.md#os-neutral-implementation The generation's filesystem view qualifies metadata and exact native absence. Grouped candidates retain original spelling because directory case policy alone does not define Unicode or short-name equivalence; their joined path follows that view's platform dialect. Physical targets and aliases remain distinct from content identity, and native plugin environment authority is not established by arbitrary filesystem injection.
|
|
39
39
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The generation retains manifest entries, lexical coverage, raw missing candidates and tree environments proportional to admitted inputs and their path/state text, without a total byte cap or native handle here. Failed attempt records are call-local and diagnostic witness counts are bounded by their owner; replacing or releasing the generation ends manifest ownership.
|
|
40
|
-
* @evidence contracts/performance.md#efficient-algorithms Input selection materializes the union of producer lists/proof keys and scans U universal inputs and T plugin source trees. Comparisons include content bytes, physical identity/ancestor/case queries, paired metadata and exact candidate stat; source proof includes tree population/bytes and environment validation. These delegated costs and temporary input/manifest populations are not constant-time map insertion work.
|
|
40
|
+
* @evidence contracts/performance.md#efficient-algorithms Input selection materializes the union of producer lists/proof keys and scans U universal inputs and T plugin source trees. Async-owned environments share one synchronous batch, qualifying common SDK paths once across plugin directories. Comparisons include content bytes, physical identity/ancestor/case queries, paired metadata and exact candidate stat; source proof includes tree population/bytes and environment validation. These delegated costs and temporary input/manifest populations are not constant-time map insertion work.
|
|
41
41
|
* @evidence contracts/performance.md#reuse-equivalent-work This shared generation manifest records exactly qualified lexical spellings, separable signatures and tree environments for later validators; changed proof requires new admission.
|
|
42
42
|
*/
|
|
43
43
|
function captureUniversalHostInputValidation(cached, currentFile) {
|
|
@@ -267,13 +267,21 @@ function captureUniversalHostInputValidation(cached, currentFile) {
|
|
|
267
267
|
// A plugin binary keyed on a source other than the disk's now, whether it
|
|
268
268
|
// was built here or adopted from another worker, is output for a state
|
|
269
269
|
// already gone (samchon/ttsc#1487).
|
|
270
|
-
|
|
270
|
+
const sources = selectPluginSourceInputs.selectPluginSourceInputs(cached.result);
|
|
271
|
+
const prepared = preparePluginBuildEnvironments.usesPreparedPluginBuildEnvironments(cached.result);
|
|
272
|
+
// Plugin directories commonly share the thousands-file Go SDK. Qualify it
|
|
273
|
+
// once for this synchronous proof, not once per directory (#1764). The map
|
|
274
|
+
// must stay inside this call: an await or later delivery needs fresh native
|
|
275
|
+
// authority, even when source watchers heard no change (#1712, #1516).
|
|
276
|
+
const environments = prepared
|
|
277
|
+
? pluginSource.PluginBuildEnvironmentReadings.cachedAll(sources.keys())
|
|
278
|
+
: undefined;
|
|
279
|
+
for (const [directory, digest] of sources) {
|
|
271
280
|
// The environment is recorded as read before the proof, so it is never a
|
|
272
281
|
// reading the proof did not see; one that moved meanwhile only makes the
|
|
273
282
|
// next delivery prove the tree again.
|
|
274
|
-
const prepared = preparePluginBuildEnvironments.usesPreparedPluginBuildEnvironments(cached.result);
|
|
275
283
|
const environment = prepared
|
|
276
|
-
?
|
|
284
|
+
? environments.get(directory)
|
|
277
285
|
: pluginSource.processPluginBuildEnvironment(directory, false, cached.projectRoot);
|
|
278
286
|
if (environment === undefined ||
|
|
279
287
|
!pluginSourceHolds.pluginSourceHolds(directory, digest, filesystem, prepared ? { environment } : undefined, cached.projectRoot)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captureUniversalHostInputValidation.js","sources":["../../../../src/core/transform/validation/captureUniversalHostInputValidation.ts"],"sourcesContent":[null],"names":["resultFilesystem","envelopeDerivation","createGenerationProofFailures","recordGenerationProofFailure","selectPersistentHostInputs","hostInputStateHash","sameHostInputRealpath","hostInputRealpath","inputMetadataEvidence","matchesRecordedInput","inputMetadataSignature","missingPathProbe","selectPluginSourceInputs","usesPreparedPluginBuildEnvironments","PluginBuildEnvironmentReadings","processPluginBuildEnvironment","pluginSourceHolds"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyBA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,mCAAmC,CACjD,MAAkC,EAClC,WAAm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I;AACF,YAAA,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,MAAM,IAAI,GAAI,KAA+B,CAAC,IAAI;YAClD,MAAM,GAAG,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,SAAS;QAClD;QACA,IAAI,CAAC,MAAM,EAAE;YACXA,yDAA4B,CAAC,QAAQ,EAAE;AACrC,gBAAA,MAAM,EAAE,MAAM;AACd,gBAAA,IAAI,EAAE,2BAA2B;AACjC,gBAAA,IAAI,EAAE,KAAK;AACZ,aAAA,CAAC;YACF;QACF;AACA,QAAA,IAAI,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC;AACnD,QAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACvB,YAAA,KAAK,GAAG,IAAI,GAAG,EAAU;YACzB,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC;QAChD;;AAEA,QAAA,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;IACvB;;;;
|
|
1
|
+
{"version":3,"file":"captureUniversalHostInputValidation.js","sources":["../../../../src/core/transform/validation/captureUniversalHostInputValidation.ts"],"sourcesContent":[null],"names":["resultFilesystem","envelopeDerivation","createGenerationProofFailures","recordGenerationProofFailure","selectPersistentHostInputs","hostInputStateHash","sameHostInputRealpath","hostInputRealpath","inputMetadataEvidence","matchesRecordedInput","inputMetadataSignature","missingPathProbe","selectPluginSourceInputs","usesPreparedPluginBuildEnvironments","PluginBuildEnvironmentReadings","processPluginBuildEnvironment","pluginSourceHolds"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyBA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,mCAAmC,CACjD,MAAkC,EAClC,WAAmB,EAAA;I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ACzB,CAACC,mCAAiB,CAChB,SAAS,EACT,MAAM,EACN,UAAU,EACV,QAAQ,GAAG,EAAE,WAAW,EAAE,GAAG,SAAS,EACtC,MAAM,CAAC,WAAW,CACnB,EACD;YACAb,yDAA4B,CAAC,QAAQ,EAAE;AACrC,gBAAA,MAAM,EAAE,MAAM;AACd,gBAAA,IAAI,EAAE,iBAAiB;AACvB,gBAAA,IAAI,EAAE,SAAS;AAChB,aAAA,CAAC;YACF;QACF;AACA,QAAA,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;QACjC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC;AACvC,QAAA,CAAC,UAAU,CAAC,gBAAgB,KAAK,IAAI,GAAG,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC;IACzE;AACA,IAAA,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,OAAO,KAAK,CAAC,EAAE;QAC3D,OAAO,EAAE,QAAQ,EAAE;IACrB;AACA,IAAA,MAAM,CAAC,mBAAmB,GAAG,UAAU;AACvC,IAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE;AACjC;;;;"}
|
|
@@ -35,7 +35,7 @@ import { matchesRecordedInput } from './matchesRecordedInput.mjs';
|
|
|
35
35
|
* @evidence contracts/common.md#meaningful-documentation Native prose explains failed admission and successful generation attachment; inline comments justify readable-state, blocker and tree distinctions.
|
|
36
36
|
* @evidence contracts/portability.md#os-neutral-implementation The generation's filesystem view qualifies metadata and exact native absence. Grouped candidates retain original spelling because directory case policy alone does not define Unicode or short-name equivalence; their joined path follows that view's platform dialect. Physical targets and aliases remain distinct from content identity, and native plugin environment authority is not established by arbitrary filesystem injection.
|
|
37
37
|
* @evidence contracts/performance.md#bound-retention-and-release-resources The generation retains manifest entries, lexical coverage, raw missing candidates and tree environments proportional to admitted inputs and their path/state text, without a total byte cap or native handle here. Failed attempt records are call-local and diagnostic witness counts are bounded by their owner; replacing or releasing the generation ends manifest ownership.
|
|
38
|
-
* @evidence contracts/performance.md#efficient-algorithms Input selection materializes the union of producer lists/proof keys and scans U universal inputs and T plugin source trees. Comparisons include content bytes, physical identity/ancestor/case queries, paired metadata and exact candidate stat; source proof includes tree population/bytes and environment validation. These delegated costs and temporary input/manifest populations are not constant-time map insertion work.
|
|
38
|
+
* @evidence contracts/performance.md#efficient-algorithms Input selection materializes the union of producer lists/proof keys and scans U universal inputs and T plugin source trees. Async-owned environments share one synchronous batch, qualifying common SDK paths once across plugin directories. Comparisons include content bytes, physical identity/ancestor/case queries, paired metadata and exact candidate stat; source proof includes tree population/bytes and environment validation. These delegated costs and temporary input/manifest populations are not constant-time map insertion work.
|
|
39
39
|
* @evidence contracts/performance.md#reuse-equivalent-work This shared generation manifest records exactly qualified lexical spellings, separable signatures and tree environments for later validators; changed proof requires new admission.
|
|
40
40
|
*/
|
|
41
41
|
function captureUniversalHostInputValidation(cached, currentFile) {
|
|
@@ -265,13 +265,21 @@ function captureUniversalHostInputValidation(cached, currentFile) {
|
|
|
265
265
|
// A plugin binary keyed on a source other than the disk's now, whether it
|
|
266
266
|
// was built here or adopted from another worker, is output for a state
|
|
267
267
|
// already gone (samchon/ttsc#1487).
|
|
268
|
-
|
|
268
|
+
const sources = selectPluginSourceInputs(cached.result);
|
|
269
|
+
const prepared = usesPreparedPluginBuildEnvironments(cached.result);
|
|
270
|
+
// Plugin directories commonly share the thousands-file Go SDK. Qualify it
|
|
271
|
+
// once for this synchronous proof, not once per directory (#1764). The map
|
|
272
|
+
// must stay inside this call: an await or later delivery needs fresh native
|
|
273
|
+
// authority, even when source watchers heard no change (#1712, #1516).
|
|
274
|
+
const environments = prepared
|
|
275
|
+
? PluginBuildEnvironmentReadings.cachedAll(sources.keys())
|
|
276
|
+
: undefined;
|
|
277
|
+
for (const [directory, digest] of sources) {
|
|
269
278
|
// The environment is recorded as read before the proof, so it is never a
|
|
270
279
|
// reading the proof did not see; one that moved meanwhile only makes the
|
|
271
280
|
// next delivery prove the tree again.
|
|
272
|
-
const prepared = usesPreparedPluginBuildEnvironments(cached.result);
|
|
273
281
|
const environment = prepared
|
|
274
|
-
?
|
|
282
|
+
? environments.get(directory)
|
|
275
283
|
: processPluginBuildEnvironment(directory, false, cached.projectRoot);
|
|
276
284
|
if (environment === undefined ||
|
|
277
285
|
!pluginSourceHolds(directory, digest, filesystem, prepared ? { environment } : undefined, cached.projectRoot)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captureUniversalHostInputValidation.mjs","sources":["../../../../src/core/transform/validation/captureUniversalHostInputValidation.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAyBA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,mCAAmC,CACjD,MAAkC,EAClC,WAAmB,EAAA;IAQnB,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC;AAClD,IAAA,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,CAAC;AACxC,IAAA,MAAM,QAAQ,GAAG,6BAA6B,EAAE;AAChD,IAAA,MAAM,UAAU,GAA4B;QAC1C,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,aAAa,EAAE,IAAI,GAAG,EAAE;QACxB,KAAK,EAAE,IAAI,GAAG,EAAE;KACjB;AACD,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM;AAC5B,IAAA,MAAM,gBAAgB,GACpB,MAAM,CAAC,IAAI,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,eAAe;AAClE,IAAA,MAAM,mBAAmB,GACvB,MAAM,CAAC,IAAI,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,kBAAkB;AACrE,IAAA,MAAM,aAAa,GACjB,MAAM,CAAC,IAAI,K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AAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;IACvB;;;;
|
|
1
|
+
{"version":3,"file":"captureUniversalHostInputValidation.mjs","sources":["../../../../src/core/transform/validation/captureUniversalHostInputValidation.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAyBA;;;;;;;;;;;;;;;;;;;;;AAqBG;AACG,SAAU,mCAAmC,CACjD,MAAkC,EAClC,WAAmB,EAAA;IAQnB,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC;AAClD,IAAA,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,CAAC;AACxC,IAAA,MAAM,QAAQ,GAAG,6BAA6B,EAAE;AAChD,IAAA,MAAM,UAAU,GAA4B;QAC1C,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,OAAO,EAAE,IAAI,GAAG,EAAE;QAClB,aAAa,EAAE,IAAI,GAAG,EAAE;QACxB,KAAK,EAAE,IAAI,GAAG,EAAE;KACjB;AACD,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM;AAC5B,IAAA,MAAM,gBAAgB,GACpB,MAAM,CAAC,IAAI,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,eAAe;AAClE,IAAA,MAAM,mBAAmB,GACvB,MAAM,CAAC,IAAI,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,kBAAkB;AACrE,IAAA,MAAM,aAAa,GACjB,MAAM,CAAC,IAAI,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,sBAAsB;AACzE,IAAA,IAAI,MAAM,CAAC,IAAI,KAAK,WAAW,IAAI,MAAM,CAAC,oBAAoB,KAAK,KAAK,EAAE;QACxE,4BAA4B,CAAC,QAAQ,EAAE;AACrC,YAAA,MAAM,EAAE,MAAM;AACd,YAAA,IAAI,EAAE,yBAAyB;AAC/B,YAAA,MAAM,EAAE,qBA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AE;UACvD,SAAS;IACb,KAAK,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,OAAO,EAAE;;;;QAIzC,MAAM,WAAW,GAAG;AAClB,cAAE,YAAa,CAAC,GAAG,CAAC,SAAS;cAC3B,6BAA6B,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC;QACvE,IACE,WAAW,KAAK,SAAS;YACzB,CAAC,iBAAiB,CAChB,SAAS,EACT,MAAM,EACN,UAAU,EACV,QAAQ,GAAG,EAAE,WAAW,EAAE,GAAG,SAAS,EACtC,MAAM,CAAC,WAAW,CACnB,EACD;YACA,4BAA4B,CAAC,QAAQ,EAAE;AACrC,gBAAA,MAAM,EAAE,MAAM;AACd,gBAAA,IAAI,EAAE,iBAAiB;AACvB,gBAAA,IAAI,EAAE,SAAS;AAChB,aAAA,CAAC;YACF;QACF;AACA,QAAA,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;QACjC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC;AACvC,QAAA,CAAC,UAAU,CAAC,gBAAgB,KAAK,IAAI,GAAG,EAAE,EAAE,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC;IACzE;AACA,IAAA,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,OAAO,KAAK,CAAC,EAAE;QAC3D,OAAO,EAAE,QAAQ,EAAE;IACrB;AACA,IAAA,MAAM,CAAC,mBAAmB,GAAG,UAAU;AACvC,IAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE;AACjC;;;;"}
|
|
@@ -21,7 +21,9 @@ import { TtscGenerationProof } from "./TtscGenerationProof.cjs";
|
|
|
21
21
|
* rejects this generation for the delivery; its caller chooses replacement or
|
|
22
22
|
* capture. Delivered text that differs while the disk still holds the bytes the
|
|
23
23
|
* generation compiled is not one: it is reported and served, since the compile
|
|
24
|
-
* read the disk (samchon/ttsc#1394).
|
|
24
|
+
* read the disk (samchon/ttsc#1394). Preparation performs the same comparison
|
|
25
|
+
* without reporting a host rewrite, because its native source read is not a
|
|
26
|
+
* delivered module.
|
|
25
27
|
*
|
|
26
28
|
* Its place in the adapter's invalidation model, and the units beside it, are
|
|
27
29
|
* mapped in the maintainer page
|
|
@@ -55,4 +57,9 @@ file: string,
|
|
|
55
57
|
/** Delivered text, compared with the recorded baseline rather than adopted. */
|
|
56
58
|
source: string,
|
|
57
59
|
/** Current host pass, or undefined for persistent input validation. */
|
|
58
|
-
epoch: number | undefined, proof?: TtscGenerationProof.Transaction
|
|
60
|
+
epoch: number | undefined, proof?: TtscGenerationProof.Transaction,
|
|
61
|
+
/**
|
|
62
|
+
* Preparation compares the same native bytes without reporting a host
|
|
63
|
+
* rewrite.
|
|
64
|
+
*/
|
|
65
|
+
reportDivergence?: boolean): boolean;
|
|
@@ -21,7 +21,9 @@ import { TtscGenerationProof } from "./TtscGenerationProof.mjs";
|
|
|
21
21
|
* rejects this generation for the delivery; its caller chooses replacement or
|
|
22
22
|
* capture. Delivered text that differs while the disk still holds the bytes the
|
|
23
23
|
* generation compiled is not one: it is reported and served, since the compile
|
|
24
|
-
* read the disk (samchon/ttsc#1394).
|
|
24
|
+
* read the disk (samchon/ttsc#1394). Preparation performs the same comparison
|
|
25
|
+
* without reporting a host rewrite, because its native source read is not a
|
|
26
|
+
* delivered module.
|
|
25
27
|
*
|
|
26
28
|
* Its place in the adapter's invalidation model, and the units beside it, are
|
|
27
29
|
* mapped in the maintainer page
|
|
@@ -55,4 +57,9 @@ file: string,
|
|
|
55
57
|
/** Delivered text, compared with the recorded baseline rather than adopted. */
|
|
56
58
|
source: string,
|
|
57
59
|
/** Current host pass, or undefined for persistent input validation. */
|
|
58
|
-
epoch: number | undefined, proof?: TtscGenerationProof.Transaction
|
|
60
|
+
epoch: number | undefined, proof?: TtscGenerationProof.Transaction,
|
|
61
|
+
/**
|
|
62
|
+
* Preparation compares the same native bytes without reporting a host
|
|
63
|
+
* rewrite.
|
|
64
|
+
*/
|
|
65
|
+
reportDivergence?: boolean): boolean;
|
|
@@ -21,7 +21,9 @@ import { TtscGenerationProof } from "./TtscGenerationProof";
|
|
|
21
21
|
* rejects this generation for the delivery; its caller chooses replacement or
|
|
22
22
|
* capture. Delivered text that differs while the disk still holds the bytes the
|
|
23
23
|
* generation compiled is not one: it is reported and served, since the compile
|
|
24
|
-
* read the disk (samchon/ttsc#1394).
|
|
24
|
+
* read the disk (samchon/ttsc#1394). Preparation performs the same comparison
|
|
25
|
+
* without reporting a host rewrite, because its native source read is not a
|
|
26
|
+
* delivered module.
|
|
25
27
|
*
|
|
26
28
|
* Its place in the adapter's invalidation model, and the units beside it, are
|
|
27
29
|
* mapped in the maintainer page
|
|
@@ -55,4 +57,9 @@ file: string,
|
|
|
55
57
|
/** Delivered text, compared with the recorded baseline rather than adopted. */
|
|
56
58
|
source: string,
|
|
57
59
|
/** Current host pass, or undefined for persistent input validation. */
|
|
58
|
-
epoch: number | undefined, proof?: TtscGenerationProof.Transaction
|
|
60
|
+
epoch: number | undefined, proof?: TtscGenerationProof.Transaction,
|
|
61
|
+
/**
|
|
62
|
+
* Preparation compares the same native bytes without reporting a host
|
|
63
|
+
* rewrite.
|
|
64
|
+
*/
|
|
65
|
+
reportDivergence?: boolean): boolean;
|
|
@@ -38,7 +38,9 @@ var notificationsProveProgramUnchanged = require('./notificationsProveProgramUnc
|
|
|
38
38
|
* rejects this generation for the delivery; its caller chooses replacement or
|
|
39
39
|
* capture. Delivered text that differs while the disk still holds the bytes the
|
|
40
40
|
* generation compiled is not one: it is reported and served, since the compile
|
|
41
|
-
* read the disk (samchon/ttsc#1394).
|
|
41
|
+
* read the disk (samchon/ttsc#1394). Preparation performs the same comparison
|
|
42
|
+
* without reporting a host rewrite, because its native source read is not a
|
|
43
|
+
* delivered module.
|
|
42
44
|
*
|
|
43
45
|
* Its place in the adapter's invalidation model, and the units beside it, are
|
|
44
46
|
* mapped in the maintainer page
|
|
@@ -72,7 +74,12 @@ file,
|
|
|
72
74
|
/** Delivered text, compared with the recorded baseline rather than adopted. */
|
|
73
75
|
source,
|
|
74
76
|
/** Current host pass, or undefined for persistent input validation. */
|
|
75
|
-
epoch, proof
|
|
77
|
+
epoch, proof,
|
|
78
|
+
/**
|
|
79
|
+
* Preparation compares the same native bytes without reporting a host
|
|
80
|
+
* rewrite.
|
|
81
|
+
*/
|
|
82
|
+
reportDivergence = true) {
|
|
76
83
|
if (!nativeInputPredicatesHold.nativeInputPredicatesHold(cached, proof))
|
|
77
84
|
return false;
|
|
78
85
|
const pass = TtscGenerationProof.TtscGenerationProof.sharesPass(cached, file, epoch);
|
|
@@ -115,7 +122,8 @@ epoch, proof) {
|
|
|
115
122
|
hostInputStateHash.hostInputStateHash(file, resultFilesystem.resultFilesystem(cached.result)) !== expected) {
|
|
116
123
|
return false;
|
|
117
124
|
}
|
|
118
|
-
|
|
125
|
+
if (reportDivergence)
|
|
126
|
+
reportDivergentDelivery.reportDivergentDelivery(cached, file);
|
|
119
127
|
}
|
|
120
128
|
if (pass)
|
|
121
129
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchesCachedSource.js","sources":["../../../../src/core/transform/validation/matchesCachedSource.ts"],"sourcesContent":[null],"names":["nativeInputPredicatesHold","TtscGenerationProof","envelopeDerivation","toProjectKey","pathIdentityKey","matchesProjectRootFile","resultFilesystem","createEnvelopeKeyIndex","notificationsProveProgramUnchanged","refreshFilesystemClockReference","TRANSFORM_CLOCK_REFERENCE_DIRECTORIES","matchesCompleteInputSnapshot","hashText","hostInputStateHash","reportDivergentDelivery","matchesNarrowPersistentInputs"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA
|
|
1
|
+
{"version":3,"file":"matchesCachedSource.js","sources":["../../../../src/core/transform/validation/matchesCachedSource.ts"],"sourcesContent":[null],"names":["nativeInputPredicatesHold","TtscGenerationProof","envelopeDerivation","toProjectKey","pathIdentityKey","matchesProjectRootFile","resultFilesystem","createEnvelopeKeyIndex","notificationsProveProgramUnchanged","refreshFilesystemClockReference","TRANSFORM_CLOCK_REFERENCE_DIRECTORIES","matchesCompleteInputSnapshot","hashText","hostInputStateHash","reportDivergentDelivery","matchesNarrowPersistentInputs"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDG;SACa,mBAAmB;AACjC;AACA,MAAkC;AAClC;AACA,IAAY;AACZ;AACA,MAAc;AACd;AACA,KAAyB,EACzB,KAAuC;AACvC;;;AAGG;AACH,gBAAgB,GAAG,IAAI,EAAA;AAEvB,IAAA,IAAI,CAACA,mDAAyB,CAAC,MAAM,EAAE,KAAK,CAAC;AAAE,QAAA,OAAO,KAAK;AAC3D,IAAA,MAAM,IAAI,GAAGC,uCAAmB,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC;AAChE,IAAA,IAAI,MAAM,CAAC,iBAAiB,KAAK,IAAI,IAAI,CAAC,IAAI;AAAE,QAAA,OAAO,KAAK;IAC5D,MAAM,UAAU,GAAGC,qCAAkB,CAAC,MAAM,CAAC,CAAC,eAAe;AAC7D,IAAA,MAAM,UAAU,GAAGC,yBAAY,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,EAAE,UAAU,CAAC;IACrE,MAAM,QAAQ,GAAGC,+BAAe,CAAC,IAAI,EAAE,UAAU,CAAC;IAClD,MAAM,QAAQ,GACZ,MAAM,CAAC,YAAY,GAAG,QAAQ,CAAC;AAC/B,SAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,UAAU;AAClE,cAAE,MAAM,CAAC,WAAW,CAAC,UAAU;cAC7B,SAAS,CAAC;AACd,QAAA,MAAM,CAAC,mBAAmB,GAAG,QAAQ,CAAC;IACxC,IACE,QAAQ,KAAK,SAAS;AACtB,QAAA,MAAM,CAAC,M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from './notificationsProveProgramU
|
|
|
36
36
|
* rejects this generation for the delivery; its caller chooses replacement or
|
|
37
37
|
* capture. Delivered text that differs while the disk still holds the bytes the
|
|
38
38
|
* generation compiled is not one: it is reported and served, since the compile
|
|
39
|
-
* read the disk (samchon/ttsc#1394).
|
|
39
|
+
* read the disk (samchon/ttsc#1394). Preparation performs the same comparison
|
|
40
|
+
* without reporting a host rewrite, because its native source read is not a
|
|
41
|
+
* delivered module.
|
|
40
42
|
*
|
|
41
43
|
* Its place in the adapter's invalidation model, and the units beside it, are
|
|
42
44
|
* mapped in the maintainer page
|
|
@@ -70,7 +72,12 @@ file,
|
|
|
70
72
|
/** Delivered text, compared with the recorded baseline rather than adopted. */
|
|
71
73
|
source,
|
|
72
74
|
/** Current host pass, or undefined for persistent input validation. */
|
|
73
|
-
epoch, proof
|
|
75
|
+
epoch, proof,
|
|
76
|
+
/**
|
|
77
|
+
* Preparation compares the same native bytes without reporting a host
|
|
78
|
+
* rewrite.
|
|
79
|
+
*/
|
|
80
|
+
reportDivergence = true) {
|
|
74
81
|
if (!nativeInputPredicatesHold(cached, proof))
|
|
75
82
|
return false;
|
|
76
83
|
const pass = TtscGenerationProof.sharesPass(cached, file, epoch);
|
|
@@ -113,7 +120,8 @@ epoch, proof) {
|
|
|
113
120
|
hostInputStateHash(file, resultFilesystem(cached.result)) !== expected) {
|
|
114
121
|
return false;
|
|
115
122
|
}
|
|
116
|
-
|
|
123
|
+
if (reportDivergence)
|
|
124
|
+
reportDivergentDelivery(cached, file);
|
|
117
125
|
}
|
|
118
126
|
if (pass)
|
|
119
127
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchesCachedSource.mjs","sources":["../../../../src/core/transform/validation/matchesCachedSource.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAkBA
|
|
1
|
+
{"version":3,"file":"matchesCachedSource.mjs","sources":["../../../../src/core/transform/validation/matchesCachedSource.ts"],"sourcesContent":[null],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BAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAChC;YACD,IAAI,CAAC,4BAA4B,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE;AAChD,gBAAA,OAAO,KAAK;YACd;AACA,YAAA,MAAM,CAAC,aAAa,GAAG,KAAK;AAC5B,YAAA,MAAM,CAAC,WAAW,EAAE,KAAK,EAAE;AAC3B,YAAA,OAAO,IAAI;QACb;QACA,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,QAAQ,CAAC,EAAE;AACtC,YAAA,OAAO,IAAI;QACb;IACF;AACA,IAAA,+BAA+B,CAC7B,qCAAqC,CAAC,GAAG,CAAC,MAAM,CAAC,EACjD,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAChC;AACD,IAAA,IACE,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS;AAChC,QAAA,MAAM,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS;QACjC,MAAM,CAAC,uBAAuB,KAAK,IAAI;QACvC,MAAM,CAAC,kBAAkB,KAAK,SAAS;QACvC,MAAM,CAAC,sBAAsB,KAAK,SAAS;AAC3C,QAAA,MAAM,CAAC,wBAAwB,KAAK,SAAS,EAC7C;QACA,MAAM,MAAM,GAAG,6BAA6B,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC;AACjE,QAAA,IAAI,MAAM,KAAK,SAAS,EAAE;AACxB,YAAA,OAAO,MAAM;QACf;;;;IAIF;AACA,IAAA,OAAO,4BAA4B,CAAC,MAAM,EAAE,KAAK,CAAC;AACpD;;;;"}
|
|
@@ -29,6 +29,15 @@ import type { TtscWatchInputEvidence } from "./TtscWatchInputEvidence.cjs";
|
|
|
29
29
|
* state at runtime.
|
|
30
30
|
*/
|
|
31
31
|
export interface TtscTransformHooks {
|
|
32
|
+
/**
|
|
33
|
+
* Native config already selected by the host for this delivered module.
|
|
34
|
+
*
|
|
35
|
+
* A host that freezes routing and its discovery inputs in one transaction
|
|
36
|
+
* supplies that config here and retains those inputs in its watch channel.
|
|
37
|
+
* Startup entries select their own projects from the user's
|
|
38
|
+
* `options.project`, independently of another module's discovered route.
|
|
39
|
+
*/
|
|
40
|
+
projectSelection?: string;
|
|
32
41
|
/**
|
|
33
42
|
* Invoked once per absolute watch-input path derived for the transformed file
|
|
34
43
|
* `F`: the plugin-reported `dependencies[F]` list unioned with the host-owned
|
|
@@ -29,6 +29,15 @@ import type { TtscWatchInputEvidence } from "./TtscWatchInputEvidence.mjs";
|
|
|
29
29
|
* state at runtime.
|
|
30
30
|
*/
|
|
31
31
|
export interface TtscTransformHooks {
|
|
32
|
+
/**
|
|
33
|
+
* Native config already selected by the host for this delivered module.
|
|
34
|
+
*
|
|
35
|
+
* A host that freezes routing and its discovery inputs in one transaction
|
|
36
|
+
* supplies that config here and retains those inputs in its watch channel.
|
|
37
|
+
* Startup entries select their own projects from the user's
|
|
38
|
+
* `options.project`, independently of another module's discovered route.
|
|
39
|
+
*/
|
|
40
|
+
projectSelection?: string;
|
|
32
41
|
/**
|
|
33
42
|
* Invoked once per absolute watch-input path derived for the transformed file
|
|
34
43
|
* `F`: the plugin-reported `dependencies[F]` list unioned with the host-owned
|
|
@@ -29,6 +29,15 @@ import type { TtscWatchInputEvidence } from "./TtscWatchInputEvidence";
|
|
|
29
29
|
* state at runtime.
|
|
30
30
|
*/
|
|
31
31
|
export interface TtscTransformHooks {
|
|
32
|
+
/**
|
|
33
|
+
* Native config already selected by the host for this delivered module.
|
|
34
|
+
*
|
|
35
|
+
* A host that freezes routing and its discovery inputs in one transaction
|
|
36
|
+
* supplies that config here and retains those inputs in its watch channel.
|
|
37
|
+
* Startup entries select their own projects from the user's
|
|
38
|
+
* `options.project`, independently of another module's discovered route.
|
|
39
|
+
*/
|
|
40
|
+
projectSelection?: string;
|
|
32
41
|
/**
|
|
33
42
|
* Invoked once per absolute watch-input path derived for the transformed file
|
|
34
43
|
* `F`: the plugin-reported `dependencies[F]` list unioned with the host-owned
|
package/lib/core/unplugin.js
CHANGED
|
@@ -30,6 +30,7 @@ var stripQuery = require('./transform/utils/stripQuery.js');
|
|
|
30
30
|
var createViteBuildLifecycle = require('./vite/createViteBuildLifecycle.js');
|
|
31
31
|
var createViteServeInputWatch = require('./vite/createViteServeInputWatch.js');
|
|
32
32
|
var createViteServeWatchHooks = require('./vite/createViteServeWatchHooks.js');
|
|
33
|
+
var installViteDependencyScanPlugins = require('./vite/installViteDependencyScanPlugins.js');
|
|
33
34
|
var TTSC_SOURCE_MAP_STASH = require('./webpack/TTSC_SOURCE_MAP_STASH.js');
|
|
34
35
|
var registerTtscSourceMapLoader = require('./webpack/registerTtscSourceMapLoader.js');
|
|
35
36
|
var reportCompiledProjectRecords = require('./webpack/reportCompiledProjectRecords.js');
|
|
@@ -210,6 +211,19 @@ const unpluginFactory = (rawOptions = {}, meta) => {
|
|
|
210
211
|
// proof there (samchon/ttsc#1395). Vite's chokidar reads the same
|
|
211
212
|
// environment override `hostDeclaresPolling` does.
|
|
212
213
|
declareTtscTransformPolling.declareTtscTransformPolling(transformCache, hostDeclaresPolling.hostDeclaresPolling(process.env, viteLifecycle.usePolling));
|
|
214
|
+
installViteDependencyScanPlugins.installViteDependencyScanPlugins(config, isTransformTarget.isTransformTarget, (source, file) => {
|
|
215
|
+
const startedAt = viteLifecycle.watching
|
|
216
|
+
? serveInputs.begin()
|
|
217
|
+
: undefined;
|
|
218
|
+
return transformTtsc.transformTtsc(file, source, options, aliases, transformCache, {
|
|
219
|
+
exactPath: true,
|
|
220
|
+
watching: viteLifecycle.watching,
|
|
221
|
+
...createViteServeWatchHooks.createViteServeWatchHooks("serve", viteLifecycle.watching, serveInputs, file, startedAt),
|
|
222
|
+
});
|
|
223
|
+
}, this?.meta
|
|
224
|
+
?.rolldownVersion === undefined
|
|
225
|
+
? "esbuild"
|
|
226
|
+
: "rolldown");
|
|
213
227
|
},
|
|
214
228
|
// Compiler dependencies belong to the filesystem watch graph. Vite's
|
|
215
229
|
// transform-context addWatchFile also inserts runtime imports, so none
|
package/lib/core/unplugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.js","sources":["../../src/core/unplugin.ts"],"sourcesContent":[null],"names":["resolveOptions","createEsbuildOptions","isTransformTarget","sharedBuildTransformCache","createTtscTransformCache","createViteBuildLifecycle","createViteServeInputWatch","selectBuildHostRoot","farmRecordFallback","fallbackToolDirectory","hostToolDirectory","stripQuery","isHostWrapperQuery","rollupDeliveryOptions","createAliasPaths","createRollupCachedModuleProof","selectRollupCachedModuleTransform","declareTtscTransformPolling","hostDeclaresPolling","resetTtscTransformCache","registerTtscSourceMapLoader","reportCompiledProjectRecords","farmPersistentCacheWithoutRecords","resolveConfiguredHostRoot","beginTtscTransformBuild","openHostWatchBridge","buildHostDeclaresPolling","refreshProjectRecordFiles","createBuildWatchFile","transformTtsc","createViteServeWatchHooks","registerProjectRecord","TTSC_SOURCE_MAP_STASH","createUnplugin"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,MAAM,IAAI,GAAG,eAAe;AAE5B;;;;;;;;;;;;;;;;;;;AAmBG;AACH,MAAM,eAAe,GAGjB,CAAC,UAAU,GAAG,EAAE,EAAE,IAAI,KAAI;AAC5B,IAAA,MAAM,OAAO,GAAGA,6BAAc,CAAC,UAAU,CAAC;AAC1C,IAAA,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;AAChC,QAAA,OAAOC,yCAAoB,CAAC,OAAO,EAAEC,mCAAiB,CAAC;IACzD;;;;;AAKA,IAAA,MAAM,MAAM,GACV,IAAI,CAAC,SAAS,KAAK,SAAS,IAAI,IAAI,CAAC,SAAS,KAAK;UAC/CC,mDAAyB,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;UACjD,SAAS;AACf,IAAA,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE;IACvB,MAAM,cAAc,GAAG,MAAM,EAAE,KAAK,IAAIC,iDAAwB,EAAE;;;A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AAM;;;;;AAK5C,YAAA,MAAM,SAAS,GAIX;AACF,gBAAA,IAAI,MAAM,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;AAC1C,gBAAA,IAAI,EAAE,aAAa,CAAC,OAAO,CACzB,MAAM,CAAC;AACL,sBAAE;AACF,sBAAE;wBACE,OAAO,EAAE,sBAAsB,EAAE;AACjC,wBAAA,IAAI,MAAM,CAAC,MAAM,KAAK;AACpB,8BAAE;8BACA,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;qBAC/B,CACN;aACF;AACD,YAAA,OAAO,SAAS;QAClB,CAAC;KACF;AACH,CAAC;AAED;;;;;;;;AAQG;MACU,QAAQ,GAGjBC,yBAAc,CAAC,eAAe;;;;"}
|
|
1
|
+
{"version":3,"file":"unplugin.js","sources":["../../src/core/unplugin.ts"],"sourcesContent":[null],"names":["resolveOptions","createEsbuildOptions","isTransformTarget","sharedBuildTransformCache","createTtscTransformCache","createViteBuildLifecycle","createViteServeInputWatch","selectBuildHostRoot","farmRecordFallback","fallbackToolDirectory","hostToolDirectory","stripQuery","isHostWrapperQuery","rollupDeliveryOptions","createAliasPaths","createRollupCachedModuleProof","selectRollupCachedModuleTransform","declareTtscTransformPolling","hostDeclaresPolling","installViteDependencyScanPlugins","transformTtsc","createViteServeWatchHooks","resetTtscTransformCache","registerTtscSourceMapLoader","reportCompiledProjectRecords","farmPersistentCacheWithoutRecords","resolveConfiguredHostRoot","beginTtscTransformBuild","openHostWatchBridge","buildHostDeclaresPolling","refreshProjectRecordFiles","createBuildWatchFile","registerProjectRecord","TTSC_SOURCE_MAP_STASH","createUnplugin"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,MAAM,IAAI,GAAG,eAAe;AAE5B;;;;;;;;;;;;;;;;;;;AAmBG;AACH,MAAM,eAAe,GAGjB,CAAC,UAAU,GAAG,EAAE,EAAE,IAAI,KAAI;AAC5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wBAAA,IAAI,MAAM,CAAC,MAAM,KAAK;AACpB,8BAAE;8BACA,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;qBAC/B,CACN;aACF;AACD,YAAA,OAAO,SAAS;QAClB,CAAC;KACF;AACH,CAAC;AAED;;;;;;;;AAQG;MACU,QAAQ,GAGjBC,yBAAc,CAAC,eAAe;;;;"}
|
package/lib/core/unplugin.mjs
CHANGED
|
@@ -28,6 +28,7 @@ import { stripQuery } from './transform/utils/stripQuery.mjs';
|
|
|
28
28
|
import { createViteBuildLifecycle } from './vite/createViteBuildLifecycle.mjs';
|
|
29
29
|
import { createViteServeInputWatch } from './vite/createViteServeInputWatch.mjs';
|
|
30
30
|
import { createViteServeWatchHooks } from './vite/createViteServeWatchHooks.mjs';
|
|
31
|
+
import { installViteDependencyScanPlugins } from './vite/installViteDependencyScanPlugins.mjs';
|
|
31
32
|
import { TTSC_SOURCE_MAP_STASH } from './webpack/TTSC_SOURCE_MAP_STASH.mjs';
|
|
32
33
|
import { registerTtscSourceMapLoader } from './webpack/registerTtscSourceMapLoader.mjs';
|
|
33
34
|
import { reportCompiledProjectRecords } from './webpack/reportCompiledProjectRecords.mjs';
|
|
@@ -208,6 +209,19 @@ const unpluginFactory = (rawOptions = {}, meta) => {
|
|
|
208
209
|
// proof there (samchon/ttsc#1395). Vite's chokidar reads the same
|
|
209
210
|
// environment override `hostDeclaresPolling` does.
|
|
210
211
|
declareTtscTransformPolling(transformCache, hostDeclaresPolling(process.env, viteLifecycle.usePolling));
|
|
212
|
+
installViteDependencyScanPlugins(config, isTransformTarget, (source, file) => {
|
|
213
|
+
const startedAt = viteLifecycle.watching
|
|
214
|
+
? serveInputs.begin()
|
|
215
|
+
: undefined;
|
|
216
|
+
return transformTtsc(file, source, options, aliases, transformCache, {
|
|
217
|
+
exactPath: true,
|
|
218
|
+
watching: viteLifecycle.watching,
|
|
219
|
+
...createViteServeWatchHooks("serve", viteLifecycle.watching, serveInputs, file, startedAt),
|
|
220
|
+
});
|
|
221
|
+
}, this?.meta
|
|
222
|
+
?.rolldownVersion === undefined
|
|
223
|
+
? "esbuild"
|
|
224
|
+
: "rolldown");
|
|
211
225
|
},
|
|
212
226
|
// Compiler dependencies belong to the filesystem watch graph. Vite's
|
|
213
227
|
// transform-context addWatchFile also inserts runtime imports, so none
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.mjs","sources":["../../src/core/unplugin.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unplugin.mjs","sources":["../../src/core/unplugin.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,MAAM,IAAI,GAAG,eAAe;AAE5B;;;;;;;;;;;;;;;;;;;AAmBG;AACH,MAAM,eAAe,GAGjB,CAAC,UAAU,GAAG,EAAE,EAAE,IAAI,KAAI;AAC5B,IAAA,MAAM,OAAO,GAAG,cAAc,CAAC,UAAU,CAAC;AAC1C,IAAA,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;AAChC,QAAA,OAAO,oBAAoB,CAAC,OAAO,EAAE,iBAAiB,CAAC;IACzD;;;;;AAKA,IAAA,MAAM,MAAM,GACV,IAAI,CAAC,SAAS,KAAK,SAAS,IAAI,IAAI,CAAC,SAAS,KAAK;UAC/C,yBAAyB,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;UACjD,SAAS;AACf,IAAA,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE;IACvB,MAAM,cAAc,GAAG,MAAM,EAAE,KAAK,IAAI,wBAAwB,EAAE;;;AAGlE,IAAA,MAAM,aAAa,GAAG,wBAAwB,CAAC,cAAc,CAAC;AAC9D,IAAA,MAAM,WAAW,GAAG,yBAAyB,EAAE;AAC/C,IAAA,IAAI,OAAgB;;;;AAIpB,IAAA,IAAI,MAAmC;;;;;;;;AAQvC,IAAA,IAAI,aAAiC;;;;AAIrC,I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AK,SAAS,IAAI,MAAM,EAAE,SAAS,KAAK,QAAQ,CAAC;AACnE,gBAAA,MAAM,CAAC,aAAa,KAAK,SAAS,EAClC;gBACA,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC;YACzD;AACA,YAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;AAAE,gBAAA,OAAO,MAAM;;;;;AAK5C,YAAA,MAAM,SAAS,GAIX;AACF,gBAAA,IAAI,MAAM,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;AAC1C,gBAAA,IAAI,EAAE,aAAa,CAAC,OAAO,CACzB,MAAM,CAAC;AACL,sBAAE;AACF,sBAAE;wBACE,OAAO,EAAE,sBAAsB,EAAE;AACjC,wBAAA,IAAI,MAAM,CAAC,MAAM,KAAK;AACpB,8BAAE;8BACA,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;qBAC/B,CACN;aACF;AACD,YAAA,OAAO,SAAS;QAClB,CAAC;KACF;AACH,CAAC;AAED;;;;;;;;AAQG;MACU,QAAQ,GAGjB,cAAc,CAAC,eAAe;;;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { BuildOptions } from "esbuild";
|
|
2
|
+
import type { TtscTransformResult } from "../transform/TtscTransformResult.cjs";
|
|
3
|
+
/**
|
|
4
|
+
* Exposes imports introduced by ttsc plugins to Vite's dependency scanner.
|
|
5
|
+
*
|
|
6
|
+
* Vite scans files without its normal transform hooks. Its optimizer plugins
|
|
7
|
+
* are the supported connection: Rolldown transforms the scanner's loaded text,
|
|
8
|
+
* while esbuild scans transformed modules in a separate namespace and also
|
|
9
|
+
* imports each original through Vite's loader. That original graph preserves
|
|
10
|
+
* glob, JSX and user loaders; the transformed graph adds complete relative
|
|
11
|
+
* import chains without a second parser or artificial exports.
|
|
12
|
+
*
|
|
13
|
+
* Vite's esbuild scanner supplies stdin; dependency bundling supplies entry
|
|
14
|
+
* points. Only the scanner gets the extra original graph, because publishing
|
|
15
|
+
* that graph would execute untransformed code alongside transformed code.
|
|
16
|
+
* Bundling applies ordinary transforms after user loaders instead. Supplying
|
|
17
|
+
* both stdin and entryPoints is not a supported Vite optimizer configuration.
|
|
18
|
+
*
|
|
19
|
+
* The caller owns compilation, aliases, validation and cache lifetime. Each
|
|
20
|
+
* environment keeps its own optimizer settings and existing plugins. Disabled
|
|
21
|
+
* discovery is left alone, and repeated installation on one settings object
|
|
22
|
+
* within this call is suppressed.
|
|
23
|
+
*
|
|
24
|
+
* @evidence contracts/common.md#principled-implementation Official optimizer hooks and the host's Rolldown capability select the real backend. Esbuild's stdin scan parses transformed namespaces plus actual-loader originals, while entry-point dependency bundles receive ordinary transforms without duplicate runtime source.
|
|
25
|
+
* @evidence contracts/common.md#clear-and-simple-design One installer selects the host's resolved optimizer backend and delegates compilation to the adapter's existing transform owner.
|
|
26
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Uses published setup, input options, namespaces, load, resolve and transform APIs. Synthetic original-import edges belong only to the unpublished dependency scan, and no host method, global, package name or expected dependency is replaced or special-cased.
|
|
27
|
+
* @evidence contracts/common.md#meaningful-documentation Prose explains the missing transform phase, original-loader ownership, scan versus bundle behavior, caller-owned generation validity and environment-specific option preservation.
|
|
28
|
+
* @evidence contracts/portability.md#os-neutral-implementation Node reads native paths and derives their resolve directories; Vite's resolver retains workspace, alias and filesystem identity policy. No OS-name or case assumption is introduced.
|
|
29
|
+
* @evidence contracts/performance.md#efficient-algorithms Esbuild scans at most a transformed and an original graph node per reached TypeScript source, sharing host cycle detection and parsing. Each interception delegates native resolution once. Active equal requests yield to the next resolver while the initiating interception retains the transformed graph edge; compilation and validation retain their own costs.
|
|
30
|
+
* @evidence contracts/performance.md#reuse-equivalent-work Scanner deliveries use the caller's transform cache and proof rules. Existing optimizer plugin objects remain shared by identity. Each distinct backend settings object receives one Rolldown transform or one prepended esbuild scanner and one appended bundle transform per installation.
|
|
31
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources Settings retain plugin closures for their Vite configuration lifetime. Active resolution keys are removed in finally; module graph state belongs to the host's scanner context. No child build, module history or separate compiler cache is retained, and the caller releases generations at its existing Vite boundaries.
|
|
32
|
+
*/
|
|
33
|
+
export declare function installViteDependencyScanPlugins(config: {
|
|
34
|
+
command: string;
|
|
35
|
+
optimizeDeps: {
|
|
36
|
+
disabled?: boolean | "build" | "dev";
|
|
37
|
+
noDiscovery?: boolean;
|
|
38
|
+
esbuildOptions?: BuildOptions;
|
|
39
|
+
rolldownOptions?: {
|
|
40
|
+
plugins?: unknown;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
environments?: Record<string, {
|
|
44
|
+
optimizeDeps?: typeof config.optimizeDeps;
|
|
45
|
+
}>;
|
|
46
|
+
}, includes: (file: string) => boolean, transform: (source: string, file: string) => Promise<TtscTransformResult | undefined>, backend: "esbuild" | "rolldown"): void;
|