@hydranium/core 1.0.0-next.4 → 1.0.0-next.40
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/documents/ast-document-manager.d.ts +42 -5
- package/lib/documents/ast-document-manager.d.ts.map +1 -1
- package/lib/documents/ast-document-manager.js +9 -12
- package/lib/documents/ast-document-manager.js.map +1 -1
- package/lib/documents/hydranium-text-documents.d.ts.map +1 -1
- package/lib/documents/hydranium-text-documents.js +41 -9
- package/lib/documents/hydranium-text-documents.js.map +1 -1
- package/lib/documents/language-client-text-shadow.d.ts +24 -1
- package/lib/documents/language-client-text-shadow.d.ts.map +1 -1
- package/lib/documents/language-client-text-shadow.js +36 -2
- package/lib/documents/language-client-text-shadow.js.map +1 -1
- package/lib/documents/self-save-registry.d.ts +37 -6
- package/lib/documents/self-save-registry.d.ts.map +1 -1
- package/lib/documents/self-save-registry.js +28 -15
- package/lib/documents/self-save-registry.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/langium/ast-extension/ast-node-builder.d.ts +32 -9
- package/lib/langium/ast-extension/ast-node-builder.d.ts.map +1 -1
- package/lib/langium/ast-extension/ast-node-builder.js +60 -22
- package/lib/langium/ast-extension/ast-node-builder.js.map +1 -1
- package/lib/langium/bootstrap.d.ts.map +1 -1
- package/lib/langium/bootstrap.js +16 -9
- package/lib/langium/bootstrap.js.map +1 -1
- package/lib/langium/document-builder/build-pipeline-integration.d.ts +13 -1
- package/lib/langium/document-builder/build-pipeline-integration.d.ts.map +1 -1
- package/lib/langium/document-builder/build-pipeline-integration.js +1 -1
- package/lib/langium/document-builder/build-pipeline-integration.js.map +1 -1
- package/lib/langium/document-builder/build-session.d.ts +93 -0
- package/lib/langium/document-builder/build-session.d.ts.map +1 -0
- package/lib/langium/document-builder/build-session.js +72 -0
- package/lib/langium/document-builder/build-session.js.map +1 -0
- package/lib/langium/document-builder/document-builder.d.ts +150 -7
- package/lib/langium/document-builder/document-builder.d.ts.map +1 -1
- package/lib/langium/document-builder/document-builder.js +298 -11
- package/lib/langium/document-builder/document-builder.js.map +1 -1
- package/lib/langium/document-builder/index.d.ts +1 -0
- package/lib/langium/document-builder/index.d.ts.map +1 -1
- package/lib/langium/document-builder/index.js +1 -0
- package/lib/langium/document-builder/index.js.map +1 -1
- package/lib/langium/integration-services.d.ts +45 -1
- package/lib/langium/integration-services.d.ts.map +1 -1
- package/lib/langium/integration-services.js +10 -5
- package/lib/langium/integration-services.js.map +1 -1
- package/lib/langium/integrity/integrity-service.d.ts +5 -0
- package/lib/langium/integrity/integrity-service.d.ts.map +1 -1
- package/lib/langium/integrity/integrity-service.js +34 -1
- package/lib/langium/integrity/integrity-service.js.map +1 -1
- package/lib/langium/keys/containment.d.ts +64 -0
- package/lib/langium/keys/containment.d.ts.map +1 -0
- package/lib/langium/keys/containment.js +53 -0
- package/lib/langium/keys/containment.js.map +1 -0
- package/lib/langium/keys/index.d.ts +1 -0
- package/lib/langium/keys/index.d.ts.map +1 -1
- package/lib/langium/keys/index.js +1 -0
- package/lib/langium/keys/index.js.map +1 -1
- package/lib/langium/keys/name-based-key-provider.d.ts +4 -0
- package/lib/langium/keys/name-based-key-provider.d.ts.map +1 -1
- package/lib/langium/keys/name-based-key-provider.js +4 -0
- package/lib/langium/keys/name-based-key-provider.js.map +1 -1
- package/lib/langium/model-service/model-service.d.ts +103 -7
- package/lib/langium/model-service/model-service.d.ts.map +1 -1
- package/lib/langium/model-service/model-service.js +70 -89
- package/lib/langium/model-service/model-service.js.map +1 -1
- package/lib/langium/module.d.ts +82 -13
- package/lib/langium/module.d.ts.map +1 -1
- package/lib/langium/module.js +21 -12
- package/lib/langium/module.js.map +1 -1
- package/lib/langium/naming/name-provider.d.ts +10 -0
- package/lib/langium/naming/name-provider.d.ts.map +1 -1
- package/lib/langium/naming/name-provider.js.map +1 -1
- package/lib/langium/naming/name-separator-validation.d.ts +23 -0
- package/lib/langium/naming/name-separator-validation.d.ts.map +1 -1
- package/lib/langium/naming/name-separator-validation.js +30 -1
- package/lib/langium/naming/name-separator-validation.js.map +1 -1
- package/lib/langium/residency/cst-residency-service.d.ts +31 -9
- package/lib/langium/residency/cst-residency-service.d.ts.map +1 -1
- package/lib/langium/residency/cst-residency-service.js +13 -56
- package/lib/langium/residency/cst-residency-service.js.map +1 -1
- package/lib/langium/scope/hydranium-scope-provider.d.ts +32 -13
- package/lib/langium/scope/hydranium-scope-provider.d.ts.map +1 -1
- package/lib/langium/scope/hydranium-scope-provider.js +37 -20
- package/lib/langium/scope/hydranium-scope-provider.js.map +1 -1
- package/lib/langium/shared-services.d.ts +15 -2
- package/lib/langium/shared-services.d.ts.map +1 -1
- package/lib/langium/shared-services.js.map +1 -1
- package/lib/langium/transfer/transfer-encoder.d.ts +33 -2
- package/lib/langium/transfer/transfer-encoder.d.ts.map +1 -1
- package/lib/langium/transfer/transfer-encoder.js +14 -3
- package/lib/langium/transfer/transfer-encoder.js.map +1 -1
- package/lib/langium/validation/document-validator.d.ts +145 -6
- package/lib/langium/validation/document-validator.d.ts.map +1 -1
- package/lib/langium/validation/document-validator.js +211 -4
- package/lib/langium/validation/document-validator.js.map +1 -1
- package/lib/langium/workspace/document-uri-policy.d.ts +3 -4
- package/lib/langium/workspace/document-uri-policy.d.ts.map +1 -1
- package/lib/langium/workspace/document-uri-policy.js +3 -4
- package/lib/langium/workspace/document-uri-policy.js.map +1 -1
- package/lib/langium/workspace/hydranium-langium-document-factory.d.ts +25 -0
- package/lib/langium/workspace/hydranium-langium-document-factory.d.ts.map +1 -1
- package/lib/langium/workspace/hydranium-langium-document-factory.js +25 -0
- package/lib/langium/workspace/hydranium-langium-document-factory.js.map +1 -1
- package/lib/langium/workspace/hydranium-workspace-manager.d.ts +21 -1
- package/lib/langium/workspace/hydranium-workspace-manager.d.ts.map +1 -1
- package/lib/langium/workspace/hydranium-workspace-manager.js +28 -0
- package/lib/langium/workspace/hydranium-workspace-manager.js.map +1 -1
- package/lib/langium/workspace/in-memory-file-system-provider.d.ts +8 -0
- package/lib/langium/workspace/in-memory-file-system-provider.d.ts.map +1 -1
- package/lib/langium/workspace/in-memory-file-system-provider.js +11 -2
- package/lib/langium/workspace/in-memory-file-system-provider.js.map +1 -1
- package/lib/langium/workspace/initialize-workspace.d.ts +22 -2
- package/lib/langium/workspace/initialize-workspace.d.ts.map +1 -1
- package/lib/langium/workspace/initialize-workspace.js +13 -5
- package/lib/langium/workspace/initialize-workspace.js.map +1 -1
- package/lib/langium/workspace/langium-documents.d.ts +79 -17
- package/lib/langium/workspace/langium-documents.d.ts.map +1 -1
- package/lib/langium/workspace/langium-documents.js +83 -28
- package/lib/langium/workspace/langium-documents.js.map +1 -1
- package/lib/locale/index.d.ts +10 -0
- package/lib/locale/index.d.ts.map +1 -0
- package/lib/locale/index.js +10 -0
- package/lib/locale/index.js.map +1 -0
- package/lib/locale/server-locale.d.ts +73 -0
- package/lib/locale/server-locale.d.ts.map +1 -0
- package/lib/locale/server-locale.js +61 -0
- package/lib/locale/server-locale.js.map +1 -0
- package/lib/lsp/hydranium-document-update-handler.js +1 -1
- package/lib/lsp/hydranium-document-update-handler.js.map +1 -1
- package/lib/messages/carriers.d.ts +54 -0
- package/lib/messages/carriers.d.ts.map +1 -0
- package/lib/messages/carriers.js +62 -0
- package/lib/messages/carriers.js.map +1 -0
- package/lib/messages/index.d.ts +25 -0
- package/lib/messages/index.d.ts.map +1 -0
- package/lib/messages/index.js +25 -0
- package/lib/messages/index.js.map +1 -0
- package/lib/messages/renderer.d.ts +136 -0
- package/lib/messages/renderer.d.ts.map +1 -0
- package/lib/messages/renderer.js +159 -0
- package/lib/messages/renderer.js.map +1 -0
- package/lib/node/node-file-system-provider.d.ts.map +1 -1
- package/lib/node/node-file-system-provider.js +1 -40
- package/lib/node/node-file-system-provider.js.map +1 -1
- package/lib/node/rename-over-open-readers.d.ts +52 -0
- package/lib/node/rename-over-open-readers.d.ts.map +1 -0
- package/lib/node/rename-over-open-readers.js +66 -0
- package/lib/node/rename-over-open-readers.js.map +1 -0
- package/lib/testing/fake-document.d.ts +14 -3
- package/lib/testing/fake-document.d.ts.map +1 -1
- package/lib/testing/fake-document.js +18 -3
- package/lib/testing/fake-document.js.map +1 -1
- package/lib/testing/make-noop-shared-services.d.ts +14 -0
- package/lib/testing/make-noop-shared-services.d.ts.map +1 -1
- package/lib/testing/make-noop-shared-services.js +28 -2
- package/lib/testing/make-noop-shared-services.js.map +1 -1
- package/lib/testing/make-test-services.d.ts +31 -4
- package/lib/testing/make-test-services.d.ts.map +1 -1
- package/lib/testing/make-test-services.js +19 -3
- package/lib/testing/make-test-services.js.map +1 -1
- package/lib/testing/playwright/server-log-capture.d.ts +14 -4
- package/lib/testing/playwright/server-log-capture.d.ts.map +1 -1
- package/lib/testing/playwright/server-log-capture.js +21 -4
- package/lib/testing/playwright/server-log-capture.js.map +1 -1
- package/lib/testing/playwright/server-log-rename-reporter.d.ts.map +1 -1
- package/lib/testing/playwright/server-log-rename-reporter.js +10 -1
- package/lib/testing/playwright/server-log-rename-reporter.js.map +1 -1
- package/lib/testing/stub-ast-document-manager.d.ts +3 -4
- package/lib/testing/stub-ast-document-manager.d.ts.map +1 -1
- package/lib/testing/stub-ast-document-manager.js +2 -5
- package/lib/testing/stub-ast-document-manager.js.map +1 -1
- package/lib/testing/stub-document-builder.d.ts +8 -0
- package/lib/testing/stub-document-builder.d.ts.map +1 -1
- package/lib/testing/stub-document-builder.js +22 -3
- package/lib/testing/stub-document-builder.js.map +1 -1
- package/lib/testing/stub-model-service.d.ts +1 -1
- package/lib/testing/stub-model-service.d.ts.map +1 -1
- package/lib/testing/stub-model-service.js +2 -2
- package/lib/testing/stub-model-service.js.map +1 -1
- package/package.json +17 -8
- package/src/documents/ast-document-manager.ts +55 -14
- package/src/documents/hydranium-text-documents.ts +41 -9
- package/src/documents/language-client-text-shadow.ts +38 -2
- package/src/documents/self-save-registry.ts +52 -13
- package/src/index.ts +5 -0
- package/src/langium/ast-extension/ast-node-builder.ts +66 -22
- package/src/langium/bootstrap.ts +16 -9
- package/src/langium/document-builder/build-pipeline-integration.ts +14 -1
- package/src/langium/document-builder/build-session.ts +87 -0
- package/src/langium/document-builder/document-builder.ts +339 -11
- package/src/langium/document-builder/index.ts +1 -0
- package/src/langium/integration-services.ts +67 -6
- package/src/langium/integrity/integrity-service.ts +35 -1
- package/src/langium/keys/containment.ts +87 -0
- package/src/langium/keys/index.ts +1 -0
- package/src/langium/keys/name-based-key-provider.ts +4 -0
- package/src/langium/model-service/model-service.ts +145 -22
- package/src/langium/module.ts +99 -19
- package/src/langium/naming/name-provider.ts +10 -0
- package/src/langium/naming/name-separator-validation.ts +34 -5
- package/src/langium/residency/cst-residency-service.ts +36 -12
- package/src/langium/scope/hydranium-scope-provider.ts +40 -22
- package/src/langium/shared-services.ts +19 -2
- package/src/langium/transfer/transfer-encoder.ts +45 -3
- package/src/langium/validation/document-validator.ts +255 -8
- package/src/langium/workspace/document-uri-policy.ts +3 -4
- package/src/langium/workspace/hydranium-langium-document-factory.ts +34 -0
- package/src/langium/workspace/hydranium-workspace-manager.ts +30 -1
- package/src/langium/workspace/in-memory-file-system-provider.ts +13 -3
- package/src/langium/workspace/initialize-workspace.ts +34 -5
- package/src/langium/workspace/langium-documents.ts +106 -33
- package/src/locale/index.ts +10 -0
- package/src/locale/server-locale.ts +86 -0
- package/src/lsp/hydranium-document-update-handler.ts +1 -1
- package/src/messages/carriers.ts +78 -0
- package/src/messages/index.ts +27 -0
- package/src/messages/renderer.ts +204 -0
- package/src/node/node-file-system-provider.ts +1 -41
- package/src/node/rename-over-open-readers.ts +78 -0
- package/src/testing/fake-document.ts +22 -4
- package/src/testing/make-noop-shared-services.ts +50 -2
- package/src/testing/make-test-services.ts +49 -7
- package/src/testing/playwright/server-log-capture.ts +24 -5
- package/src/testing/playwright/server-log-rename-reporter.ts +12 -1
- package/src/testing/stub-ast-document-manager.ts +5 -10
- package/src/testing/stub-document-builder.ts +32 -3
- package/src/testing/stub-model-service.ts +2 -2
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 CrossBreeze, EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the MIT License which is available in the project root.
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: MIT
|
|
8
|
+
********************************************************************************/
|
|
9
|
+
import { type URI } from '@hydranium/langium';
|
|
10
|
+
/** What a build is about, handed to `HydraniumDocumentBuilder.createBuildSession`. */
|
|
11
|
+
export interface BuildSessionContext {
|
|
12
|
+
/**
|
|
13
|
+
* Which entry point opened the build: `'build'` is the workspace-wide pass
|
|
14
|
+
* (initialization), `'update'` an incremental rebuild. A subclass deriving
|
|
15
|
+
* cascade state skips the work for `'build'`, where every document is in the
|
|
16
|
+
* set already and `shouldRelink` is never consulted.
|
|
17
|
+
*/
|
|
18
|
+
readonly kind: 'build' | 'update';
|
|
19
|
+
/** Formatted description of what caused the build — a URI, a count summary. */
|
|
20
|
+
readonly trigger: string;
|
|
21
|
+
/** True when {@link trigger} already states the document count. */
|
|
22
|
+
readonly triggerCountsDocs: boolean;
|
|
23
|
+
/** URIs the build was asked to rebuild, already flattened and canonicalized. */
|
|
24
|
+
readonly changed: readonly URI[];
|
|
25
|
+
/** URIs the build was asked to delete, already expanded by `collectDeletedURIs`. Empty for a `build` call. */
|
|
26
|
+
readonly deleted: readonly URI[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* One rebuild, treated as a correlated unit.
|
|
30
|
+
*
|
|
31
|
+
* Everything a build phase needs to know about the build it belongs to — what
|
|
32
|
+
* triggered it, when it started, whether it was cancelled, and the log lines it
|
|
33
|
+
* has produced so far. A `HydraniumDocumentBuilder` opens one per `update` /
|
|
34
|
+
* `build` call and holds it for the duration, so a per-phase hook can reach
|
|
35
|
+
* build-wide facts that no per-line formatting hook could.
|
|
36
|
+
*
|
|
37
|
+
* **Identity is the object, not {@link traceId}.** `Tracer.time` short-circuits
|
|
38
|
+
* when its log level is suppressed and never calls `captureId`, so `traceId` is
|
|
39
|
+
* `undefined` on every build in a production configuration that logs above
|
|
40
|
+
* `debug`. A teardown guard keyed on the id would then compare `undefined`
|
|
41
|
+
* against `undefined` and let a preempted build clear its successor's state.
|
|
42
|
+
* Reference equality against `HydraniumDocumentBuilder.activeSession` holds in
|
|
43
|
+
* both configurations, which is why nothing here is keyed on the id.
|
|
44
|
+
*
|
|
45
|
+
* Adopters carrying build-scoped state of their own subclass this and return it
|
|
46
|
+
* from `HydraniumDocumentBuilder.createBuildSession`, narrowing with an
|
|
47
|
+
* `instanceof` where they read it back. That buys them the framework's
|
|
48
|
+
* preemption-correct teardown rather than a second copy of it.
|
|
49
|
+
*/
|
|
50
|
+
export declare class BuildSession {
|
|
51
|
+
/** Millisecond timestamp the build started at, on the same clock as `performance.now()`. */
|
|
52
|
+
readonly startMs: number;
|
|
53
|
+
/** What caused this build — a formatted URI, a count summary, or an adopter label. */
|
|
54
|
+
readonly trigger: string;
|
|
55
|
+
/** True when {@link trigger} already states the document count, so a phase line must not repeat it. */
|
|
56
|
+
readonly triggerCountsDocs: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Build duration at or above which the buffered lines are emitted; `0`
|
|
59
|
+
* disables buffering entirely. Captured per session so the flush decision
|
|
60
|
+
* uses the same value the buffering decision did, even if the underlying
|
|
61
|
+
* observable changed mid-build.
|
|
62
|
+
*/
|
|
63
|
+
readonly detailThresholdMs: number;
|
|
64
|
+
/**
|
|
65
|
+
* `Tracer.time` correlation id, so a phase line and the build line share a
|
|
66
|
+
* `#N`. `undefined` until the timer starts, and permanently `undefined` when
|
|
67
|
+
* the timing line is suppressed.
|
|
68
|
+
*/
|
|
69
|
+
traceId?: number;
|
|
70
|
+
/** Set when the build ended in `OperationCancelled`, so the successor can tag itself "cancels #N". */
|
|
71
|
+
cancelled: boolean;
|
|
72
|
+
/** Phase-reached lines produced so far; the first one measures from {@link startMs} rather than from the previous phase. */
|
|
73
|
+
phasesLogged: number;
|
|
74
|
+
/** Lines held back by {@link detailThresholdMs}; flushed or dropped when the build ends. */
|
|
75
|
+
readonly bufferedLines: string[];
|
|
76
|
+
constructor(
|
|
77
|
+
/** Millisecond timestamp the build started at, on the same clock as `performance.now()`. */
|
|
78
|
+
startMs: number,
|
|
79
|
+
/** What caused this build — a formatted URI, a count summary, or an adopter label. */
|
|
80
|
+
trigger: string,
|
|
81
|
+
/** True when {@link trigger} already states the document count, so a phase line must not repeat it. */
|
|
82
|
+
triggerCountsDocs: boolean,
|
|
83
|
+
/**
|
|
84
|
+
* Build duration at or above which the buffered lines are emitted; `0`
|
|
85
|
+
* disables buffering entirely. Captured per session so the flush decision
|
|
86
|
+
* uses the same value the buffering decision did, even if the underlying
|
|
87
|
+
* observable changed mid-build.
|
|
88
|
+
*/
|
|
89
|
+
detailThresholdMs: number);
|
|
90
|
+
/** True while lines are being held rather than emitted as they are produced. */
|
|
91
|
+
get buffers(): boolean;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=build-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-session.d.ts","sourceRoot":"","sources":["../../../src/langium/document-builder/build-session.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAE9C,sFAAsF;AACtF,MAAM,WAAW,mBAAmB;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IAClC,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,gFAAgF;IAChF,QAAQ,CAAC,OAAO,EAAE,SAAS,GAAG,EAAE,CAAC;IACjC,8GAA8G;IAC9G,QAAQ,CAAC,OAAO,EAAE,SAAS,GAAG,EAAE,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,YAAY;IAenB,4FAA4F;IAC5F,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB,sFAAsF;IACtF,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB,uGAAuG;IACvG,QAAQ,CAAC,iBAAiB,EAAE,OAAO;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,iBAAiB,EAAE,MAAM;IA1BrC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sGAAsG;IACtG,SAAS,UAAS;IAClB,4HAA4H;IAC5H,YAAY,SAAK;IACjB,4FAA4F;IAC5F,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,CAAM;;IAGnC,4FAA4F;IACnF,OAAO,EAAE,MAAM;IACxB,sFAAsF;IAC7E,OAAO,EAAE,MAAM;IACxB,uGAAuG;IAC9F,iBAAiB,EAAE,OAAO;IACnC;;;;;OAKG;IACM,iBAAiB,EAAE,MAAM;IAGrC,gFAAgF;IAChF,IAAI,OAAO,IAAI,OAAO,CAErB;CACH"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 CrossBreeze, EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the MIT License which is available in the project root.
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: MIT
|
|
8
|
+
********************************************************************************/
|
|
9
|
+
/**
|
|
10
|
+
* One rebuild, treated as a correlated unit.
|
|
11
|
+
*
|
|
12
|
+
* Everything a build phase needs to know about the build it belongs to — what
|
|
13
|
+
* triggered it, when it started, whether it was cancelled, and the log lines it
|
|
14
|
+
* has produced so far. A `HydraniumDocumentBuilder` opens one per `update` /
|
|
15
|
+
* `build` call and holds it for the duration, so a per-phase hook can reach
|
|
16
|
+
* build-wide facts that no per-line formatting hook could.
|
|
17
|
+
*
|
|
18
|
+
* **Identity is the object, not {@link traceId}.** `Tracer.time` short-circuits
|
|
19
|
+
* when its log level is suppressed and never calls `captureId`, so `traceId` is
|
|
20
|
+
* `undefined` on every build in a production configuration that logs above
|
|
21
|
+
* `debug`. A teardown guard keyed on the id would then compare `undefined`
|
|
22
|
+
* against `undefined` and let a preempted build clear its successor's state.
|
|
23
|
+
* Reference equality against `HydraniumDocumentBuilder.activeSession` holds in
|
|
24
|
+
* both configurations, which is why nothing here is keyed on the id.
|
|
25
|
+
*
|
|
26
|
+
* Adopters carrying build-scoped state of their own subclass this and return it
|
|
27
|
+
* from `HydraniumDocumentBuilder.createBuildSession`, narrowing with an
|
|
28
|
+
* `instanceof` where they read it back. That buys them the framework's
|
|
29
|
+
* preemption-correct teardown rather than a second copy of it.
|
|
30
|
+
*/
|
|
31
|
+
export class BuildSession {
|
|
32
|
+
startMs;
|
|
33
|
+
trigger;
|
|
34
|
+
triggerCountsDocs;
|
|
35
|
+
detailThresholdMs;
|
|
36
|
+
/**
|
|
37
|
+
* `Tracer.time` correlation id, so a phase line and the build line share a
|
|
38
|
+
* `#N`. `undefined` until the timer starts, and permanently `undefined` when
|
|
39
|
+
* the timing line is suppressed.
|
|
40
|
+
*/
|
|
41
|
+
traceId;
|
|
42
|
+
/** Set when the build ended in `OperationCancelled`, so the successor can tag itself "cancels #N". */
|
|
43
|
+
cancelled = false;
|
|
44
|
+
/** Phase-reached lines produced so far; the first one measures from {@link startMs} rather than from the previous phase. */
|
|
45
|
+
phasesLogged = 0;
|
|
46
|
+
/** Lines held back by {@link detailThresholdMs}; flushed or dropped when the build ends. */
|
|
47
|
+
bufferedLines = [];
|
|
48
|
+
constructor(
|
|
49
|
+
/** Millisecond timestamp the build started at, on the same clock as `performance.now()`. */
|
|
50
|
+
startMs,
|
|
51
|
+
/** What caused this build — a formatted URI, a count summary, or an adopter label. */
|
|
52
|
+
trigger,
|
|
53
|
+
/** True when {@link trigger} already states the document count, so a phase line must not repeat it. */
|
|
54
|
+
triggerCountsDocs,
|
|
55
|
+
/**
|
|
56
|
+
* Build duration at or above which the buffered lines are emitted; `0`
|
|
57
|
+
* disables buffering entirely. Captured per session so the flush decision
|
|
58
|
+
* uses the same value the buffering decision did, even if the underlying
|
|
59
|
+
* observable changed mid-build.
|
|
60
|
+
*/
|
|
61
|
+
detailThresholdMs) {
|
|
62
|
+
this.startMs = startMs;
|
|
63
|
+
this.trigger = trigger;
|
|
64
|
+
this.triggerCountsDocs = triggerCountsDocs;
|
|
65
|
+
this.detailThresholdMs = detailThresholdMs;
|
|
66
|
+
}
|
|
67
|
+
/** True while lines are being held rather than emitted as they are produced. */
|
|
68
|
+
get buffers() {
|
|
69
|
+
return this.detailThresholdMs > 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=build-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-session.js","sourceRoot":"","sources":["../../../src/langium/document-builder/build-session.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAuBlF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,OAAO,YAAY;IAgBV;IAEA;IAEA;IAOA;IA1BZ;;;;OAIG;IACH,OAAO,CAAU;IACjB,sGAAsG;IACtG,SAAS,GAAG,KAAK,CAAC;IAClB,4HAA4H;IAC5H,YAAY,GAAG,CAAC,CAAC;IACjB,4FAA4F;IACnF,aAAa,GAAa,EAAE,CAAC;IAEtC;IACG,4FAA4F;IACnF,OAAe;IACxB,sFAAsF;IAC7E,OAAe;IACxB,uGAAuG;IAC9F,iBAA0B;IACnC;;;;;OAKG;IACM,iBAAyB;QAXzB,YAAO,GAAP,OAAO,CAAQ;QAEf,YAAO,GAAP,OAAO,CAAQ;QAEf,sBAAiB,GAAjB,iBAAiB,CAAS;QAO1B,sBAAiB,GAAjB,iBAAiB,CAAQ;IAClC,CAAC;IAEJ,gFAAgF;IAChF,IAAI,OAAO;QACR,OAAO,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC;IACrC,CAAC;CACH"}
|
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
* SPDX-License-Identifier: MIT
|
|
8
8
|
********************************************************************************/
|
|
9
9
|
import { type Clock, type LogThreshold, type MaybeObservableValue, ObservableValue, type Tracer } from '@hydranium/protocol';
|
|
10
|
-
import { type BuildOptions, DefaultDocumentBuilder, type DocumentPhaseListener, DocumentState, type LangiumDocument, type URI } from '@hydranium/langium';
|
|
10
|
+
import { type AstNode, type BuildOptions, DefaultDocumentBuilder, type DocumentPhaseListener, DocumentState, type LangiumDocument, type URI } from '@hydranium/langium';
|
|
11
11
|
import { CancellationToken } from 'vscode-languageserver-protocol';
|
|
12
12
|
import { type LogNameOptions } from '../diagnostics/logger.js';
|
|
13
|
+
import type { MessageRenderer } from '../../messages/renderer.js';
|
|
13
14
|
import { type ExtendedServiceRegistry } from '../service-registry.js';
|
|
14
15
|
import { type ServerSharedServicesMinimal } from '../shared-services.js';
|
|
15
16
|
import { type DocumentUriPolicy } from '../workspace/document-uri-policy.js';
|
|
17
|
+
import { BuildSession, type BuildSessionContext } from './build-session.js';
|
|
16
18
|
/** Document states a phase-reached line is emitted for by default — every built phase. */
|
|
17
19
|
export declare const DEFAULT_LOGGED_PHASES: DocumentState[];
|
|
18
20
|
/** Constructor options for {@link HydraniumDocumentBuilder}. */
|
|
@@ -46,6 +48,18 @@ export interface DocumentBuilderOptions extends LogNameOptions {
|
|
|
46
48
|
* logged. Default: `25`. Read per phase; accepts a {@link MaybeObservableValue}.
|
|
47
49
|
*/
|
|
48
50
|
readonly slowBuildMs?: MaybeObservableValue<number>;
|
|
51
|
+
/**
|
|
52
|
+
* Build duration at or above which a build's phase-reached and slow-listener
|
|
53
|
+
* lines are emitted; they are held for the duration of the build and dropped
|
|
54
|
+
* when it finishes faster. Default `0` — no buffering, every line emitted as
|
|
55
|
+
* it is produced, which is the only setting that keeps lines interleaved with
|
|
56
|
+
* the rest of the log in real time.
|
|
57
|
+
*
|
|
58
|
+
* Set it to make a fast rebuild log nothing but its one build line. The
|
|
59
|
+
* decision needs the build's TOTAL duration, so it cannot be made by any
|
|
60
|
+
* per-line hook. Read once per build; accepts a {@link MaybeObservableValue}.
|
|
61
|
+
*/
|
|
62
|
+
readonly phaseDetailMs?: MaybeObservableValue<number>;
|
|
49
63
|
/**
|
|
50
64
|
* Refresh cross-document `ComputedScopes` derivations when a referencing
|
|
51
65
|
* document is cascade-rebuilt (see
|
|
@@ -72,15 +86,24 @@ export interface DocumentBuilderOptions extends LogNameOptions {
|
|
|
72
86
|
* - **In-place rebuild helpers** — {@link reparse} and
|
|
73
87
|
* {@link reparseAndRelink} — for a build-phase listener that mutated a
|
|
74
88
|
* document's AST and must reconcile it within the same build.
|
|
75
|
-
* - **Diagnostic dedupe** at `Validated` ({@link dedupeDiagnostics})
|
|
89
|
+
* - **Diagnostic dedupe** at `Validated` ({@link dedupeDiagnostics}), followed
|
|
90
|
+
* by the **one server-side message render** every head inherits
|
|
91
|
+
* ({@link renderDiagnostics}).
|
|
92
|
+
* - **Build sessions** ({@link BuildSession}): each `update` / `build` call is
|
|
93
|
+
* one correlated unit carrying an id, a trigger label, a start time and
|
|
94
|
+
* cancellation lineage, so every line of a rebuild reads as belonging to it
|
|
95
|
+
* and a preempted build is distinguishable from the winner.
|
|
76
96
|
* - **Logging instrumentation** (default on, opt-out via `logLevel: 'off'`):
|
|
77
|
-
* phase-reached lines, slow-listener breakdowns on
|
|
78
|
-
* and slow-build-phase totals on `notifyBuildPhase`.
|
|
97
|
+
* a per-build line, phase-reached lines, slow-listener breakdowns on
|
|
98
|
+
* `notifyDocumentPhase`, and slow-build-phase totals on `notifyBuildPhase`.
|
|
79
99
|
*
|
|
80
100
|
* Adopters extend this class — the configuration knobs cover what most
|
|
81
101
|
* adopters need; the `format*Line` methods, `formatUri`, and
|
|
82
102
|
* `collectDeletedURIs` are protected so subclasses can customise wording or
|
|
83
|
-
* domain-aware cascades without re-implementing surrounding logic.
|
|
103
|
+
* domain-aware cascades without re-implementing surrounding logic. An adopter
|
|
104
|
+
* with build-scoped state of its own subclasses {@link BuildSession} and
|
|
105
|
+
* overrides {@link createBuildSession}, which puts that state under the same
|
|
106
|
+
* preemption-correct teardown rather than a reimplementation of it.
|
|
84
107
|
*/
|
|
85
108
|
export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
86
109
|
protected readonly tracer: Tracer;
|
|
@@ -94,8 +117,11 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
94
117
|
protected readonly slowListenerMs: ObservableValue<number>;
|
|
95
118
|
/** Live slow-build-phase-total threshold; read `.value` per phase. */
|
|
96
119
|
protected readonly slowBuildMs: ObservableValue<number>;
|
|
120
|
+
/** Live phase-detail buffering threshold; read `.value` once per build, onto the session. */
|
|
121
|
+
protected readonly phaseDetailMs: ObservableValue<number>;
|
|
97
122
|
protected readonly uriPolicy: DocumentUriPolicy;
|
|
98
123
|
protected readonly clock: Clock;
|
|
124
|
+
protected readonly messageRenderer: MessageRenderer;
|
|
99
125
|
/** Narrower handle on the same registry as the inherited `serviceRegistry`, for {@link ExtendedServiceRegistry.registrations}. */
|
|
100
126
|
protected readonly languageRegistry: ExtendedServiceRegistry;
|
|
101
127
|
protected languageFileExtensions: string[];
|
|
@@ -106,6 +132,22 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
106
132
|
protected readonly refreshCrossDocumentComputedScopes: boolean;
|
|
107
133
|
/** LSP event name (e.g. `'didChangeWatchedFiles'`) staged for the next `update()` call. */
|
|
108
134
|
protected pendingUpdateReason?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The build currently in progress, or `undefined` between builds.
|
|
137
|
+
*
|
|
138
|
+
* A subclass carrying its own build-scoped state returns a {@link BuildSession}
|
|
139
|
+
* subclass from {@link createBuildSession} and narrows this with a typeguard
|
|
140
|
+
* where it reads that state — rather than redeclaring the field, whose
|
|
141
|
+
* initialiser would run after `super()` and clear a session opened during
|
|
142
|
+
* construction.
|
|
143
|
+
*/
|
|
144
|
+
protected activeSession?: BuildSession;
|
|
145
|
+
/**
|
|
146
|
+
* `traceId` of the last build that ended in cancellation, for the successor's
|
|
147
|
+
* "cancels #N" tag. Held here rather than on a session because the session
|
|
148
|
+
* that carries it is already gone by the time its successor is opened.
|
|
149
|
+
*/
|
|
150
|
+
protected lastCancelledTraceId?: number;
|
|
109
151
|
constructor(services: ServerSharedServicesMinimal, options?: DocumentBuilderOptions);
|
|
110
152
|
/**
|
|
111
153
|
* Stage an LSP event name for the next `update()` call. Adopters call before
|
|
@@ -130,6 +172,8 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
130
172
|
* duplicate what this already knows.
|
|
131
173
|
*/
|
|
132
174
|
formatBuildStatus(uri: URI): string;
|
|
175
|
+
/** Render a session for a status line. `undefined` — no build in progress — reads as `none`. */
|
|
176
|
+
protected formatSession(session: BuildSession | undefined): string;
|
|
133
177
|
/**
|
|
134
178
|
* Two edge cases the default Langium implementation rejects on:
|
|
135
179
|
* - Document below target state with no build active (newly-created file):
|
|
@@ -228,6 +272,12 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
228
272
|
*/
|
|
229
273
|
protected shouldRelink(document: LangiumDocument, changedUris: Set<string>): boolean;
|
|
230
274
|
update(changed: URI[], deleted: URI[], cancelToken?: CancellationToken): Promise<void>;
|
|
275
|
+
/**
|
|
276
|
+
* The workspace-initialization entry point, bracketed by a session like
|
|
277
|
+
* {@link update}. Langium's `update` reaches `buildDocuments` directly rather
|
|
278
|
+
* than through here, so the two never nest.
|
|
279
|
+
*/
|
|
280
|
+
build<T extends AstNode>(documents: Array<LangiumDocument<T>>, options?: BuildOptions, cancelToken?: CancellationToken): Promise<void>;
|
|
231
281
|
/**
|
|
232
282
|
* Refresh cross-document `ComputedScopes` derivations on cascade, when
|
|
233
283
|
* {@link refreshCrossDocumentComputedScopes} is set (default off).
|
|
@@ -340,10 +390,65 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
340
390
|
* project descriptor should cascade to all its members).
|
|
341
391
|
*/
|
|
342
392
|
protected collectDeletedURIs(uri: URI): URI[];
|
|
393
|
+
/**
|
|
394
|
+
* Open a session, run `body` inside it, and close it — the bracket every
|
|
395
|
+
* line of a rebuild is emitted within.
|
|
396
|
+
*
|
|
397
|
+
* The session is installed **synchronously**, before the timed body runs, so
|
|
398
|
+
* that state a subclass computed in {@link createBuildSession} is already
|
|
399
|
+
* readable by the time Langium's `update` consults `shouldRelink`.
|
|
400
|
+
*
|
|
401
|
+
* Teardown is preemption-correct, which is the reason this is framework code
|
|
402
|
+
* rather than a recipe. Langium's write mutex cancels an in-flight build when
|
|
403
|
+
* a later one arrives, so two sessions overlap: the successor installs itself
|
|
404
|
+
* as {@link activeSession} while the predecessor is still unwinding, and the
|
|
405
|
+
* predecessor's `finally` runs LAST. Clearing unconditionally there would
|
|
406
|
+
* discard the winner's state mid-build. Only the session that is still
|
|
407
|
+
* current clears — and the check is reference equality on the session object,
|
|
408
|
+
* not on {@link BuildSession.traceId}, which is `undefined` for every build
|
|
409
|
+
* whenever the timing level is suppressed and would compare equal to itself
|
|
410
|
+
* across two different builds.
|
|
411
|
+
*
|
|
412
|
+
* Re-entrancy is not hypothetical even without an adopter: {@link
|
|
413
|
+
* requeueOrphaned} calls `update` from inside a wait, while a build may be
|
|
414
|
+
* running.
|
|
415
|
+
*/
|
|
416
|
+
protected runInSession(context: BuildSessionContext, label: string, body: () => Promise<void>): Promise<void>;
|
|
417
|
+
/**
|
|
418
|
+
* Construct the session for one build. Override to return a
|
|
419
|
+
* {@link BuildSession} subclass carrying adopter build-scoped state — it is
|
|
420
|
+
* called before the build body, so anything derived here is readable
|
|
421
|
+
* throughout it.
|
|
422
|
+
*/
|
|
423
|
+
protected createBuildSession(context: BuildSessionContext): BuildSession;
|
|
424
|
+
/**
|
|
425
|
+
* Close `session`: flush what it buffered, then release it if it is still the
|
|
426
|
+
* current one (see {@link runInSession} on why that check is conditional).
|
|
427
|
+
* The flush is unconditional — a preempted build's lines still describe work
|
|
428
|
+
* that happened.
|
|
429
|
+
*/
|
|
430
|
+
protected endSession(session: BuildSession): void;
|
|
431
|
+
/**
|
|
432
|
+
* Emit the lines `session` held back, if it ran long enough to be worth the
|
|
433
|
+
* detail; drop them otherwise. Emits through {@link emit} rather than
|
|
434
|
+
* {@link log}, which would route them straight back into the buffer.
|
|
435
|
+
*/
|
|
436
|
+
protected flushSession(session: BuildSession): void;
|
|
437
|
+
/** Label for the build's own log line. Override to customise wording. */
|
|
438
|
+
protected rebuildLabel(changed: URI[], deleted: URI[]): string;
|
|
439
|
+
/** Short description of what triggered the build, repeated on every phase line. Override to customise wording. */
|
|
440
|
+
protected buildTriggerLabel(changed: URI[], deleted: URI[]): string;
|
|
343
441
|
protected registerPhaseListeners(): void;
|
|
344
442
|
/** Called once per phase-reached event. Override to add custom side-effects beyond logging. */
|
|
345
443
|
protected onPhaseReached(state: DocumentState, documents: LangiumDocument[]): void;
|
|
346
|
-
/**
|
|
444
|
+
/**
|
|
445
|
+
* Format the phase-reached log line. Override to customise wording.
|
|
446
|
+
*
|
|
447
|
+
* Within a session the line names what triggered the build, so a phase read
|
|
448
|
+
* in isolation still says which rebuild it belongs to. `elapsedMs` is ignored
|
|
449
|
+
* for the FIRST phase of a session: it measures from the previous build's
|
|
450
|
+
* last phase, an idle gap that says nothing about this build.
|
|
451
|
+
*/
|
|
347
452
|
protected phaseReachedLine(state: DocumentState, documents: LangiumDocument[], elapsedMs: number): string;
|
|
348
453
|
notifyDocumentPhase(document: LangiumDocument, state: DocumentState, cancelToken: CancellationToken): Promise<void>;
|
|
349
454
|
/**
|
|
@@ -399,7 +504,45 @@ export declare class HydraniumDocumentBuilder extends DefaultDocumentBuilder {
|
|
|
399
504
|
* serialising anything.
|
|
400
505
|
*/
|
|
401
506
|
protected dedupeDiagnostics(document: LangiumDocument): void;
|
|
402
|
-
/**
|
|
507
|
+
/**
|
|
508
|
+
* Render every diagnostic on `document` through the bound message renderer,
|
|
509
|
+
* in ONE pass over the finished list.
|
|
510
|
+
*
|
|
511
|
+
* All three heads read `document.diagnostics` — the LSP publish,
|
|
512
|
+
* `TransferEncoder.toTransferDiagnostic` and the GLSP validation path — so
|
|
513
|
+
* one pass here is what keeps the render from happening per head. It is also
|
|
514
|
+
* the only placement that covers lexer and parser errors, which Langium
|
|
515
|
+
* pushes onto the document without routing them through `toDiagnostic`.
|
|
516
|
+
*
|
|
517
|
+
* Running here rather than from a `Validated` phase listener needs no
|
|
518
|
+
* ordering assumption: Langium publishes from `addDiagnosticsHandler`, a free
|
|
519
|
+
* function it registers as such a listener, which can only be outrun.
|
|
520
|
+
*
|
|
521
|
+
* **It inherits {@link dedupeDiagnostics}'s window, and therefore the same
|
|
522
|
+
* precondition.** A build settling inside the listener window appends
|
|
523
|
+
* diagnostics this pass never saw, and the publisher of the build that
|
|
524
|
+
* rendered sends them — unrendered. `ModelServiceOptions.serializeBuilds`
|
|
525
|
+
* closes it and defaults to `true`, so "every diagnostic is rendered" holds
|
|
526
|
+
* by default and is an opt-out rather than a guarantee. Opting out accepts
|
|
527
|
+
* unrendered diagnostics on exactly the terms it already accepts duplicates.
|
|
528
|
+
*
|
|
529
|
+
* Entries are REPLACED rather than mutated: `sendDiagnostics` passes the
|
|
530
|
+
* array by reference and serialises later, so an in-place message mutation
|
|
531
|
+
* reaches the wire even when it runs after the publisher — which would make
|
|
532
|
+
* a test for the ordering pass in either state.
|
|
533
|
+
*/
|
|
534
|
+
protected renderDiagnostics(document: LangiumDocument): void;
|
|
535
|
+
/**
|
|
536
|
+
* Dispatch a log line at the configured log level; a no-op when `logLevel ===
|
|
537
|
+
* 'off'`.
|
|
538
|
+
*
|
|
539
|
+
* Held on the active session when it buffers, so the "was this build worth a
|
|
540
|
+
* per-phase breakdown" decision — which needs the build's total duration, and
|
|
541
|
+
* so cannot be taken by anything that runs while the lines are produced — is
|
|
542
|
+
* deferred to {@link flushSession}.
|
|
543
|
+
*/
|
|
403
544
|
protected log(message: string): void;
|
|
545
|
+
/** Write a line out, bypassing session buffering. The single sink every framework log line reaches. */
|
|
546
|
+
protected emit(message: string): void;
|
|
404
547
|
}
|
|
405
548
|
//# sourceMappingURL=document-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-builder.d.ts","sourceRoot":"","sources":["../../../src/langium/document-builder/document-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,oBAAoB,EAAE,eAAe,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7H,OAAO,EACJ,KAAK,YAAY,EACjB,sBAAsB,EACtB,KAAK,qBAAqB,EAC1B,aAAa,EACb,KAAK,eAAe,EAEpB,KAAK,GAAG,EAIV,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"document-builder.d.ts","sourceRoot":"","sources":["../../../src/langium/document-builder/document-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,oBAAoB,EAAE,eAAe,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7H,OAAO,EACJ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,sBAAsB,EACtB,KAAK,qBAAqB,EAC1B,aAAa,EACb,KAAK,eAAe,EAEpB,KAAK,GAAG,EAIV,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAE,iBAAiB,EAAc,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE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