@hydranium/glsp-server 1.0.0-next.8 → 1.0.0-next.85

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.
Files changed (68) hide show
  1. package/README.md +11 -2
  2. package/lib/command/hydranium-glsp-recording-command.d.ts +21 -21
  3. package/lib/command/hydranium-glsp-recording-command.d.ts.map +1 -1
  4. package/lib/command/hydranium-glsp-recording-command.js +24 -25
  5. package/lib/command/hydranium-glsp-recording-command.js.map +1 -1
  6. package/lib/launcher/hydranium-glsp-server.d.ts +4 -3
  7. package/lib/launcher/hydranium-glsp-server.d.ts.map +1 -1
  8. package/lib/launcher/hydranium-glsp-server.js +4 -3
  9. package/lib/launcher/hydranium-glsp-server.js.map +1 -1
  10. package/lib/messages/index.d.ts +24 -0
  11. package/lib/messages/index.d.ts.map +1 -0
  12. package/lib/messages/index.js +24 -0
  13. package/lib/messages/index.js.map +1 -0
  14. package/lib/state/abstract-hydranium-glsp-state.d.ts +65 -42
  15. package/lib/state/abstract-hydranium-glsp-state.d.ts.map +1 -1
  16. package/lib/state/abstract-hydranium-glsp-state.js +58 -41
  17. package/lib/state/abstract-hydranium-glsp-state.js.map +1 -1
  18. package/lib/state/full-text-hydranium-glsp-state.d.ts +3 -3
  19. package/lib/state/full-text-hydranium-glsp-state.d.ts.map +1 -1
  20. package/lib/state/full-text-hydranium-glsp-state.js +4 -3
  21. package/lib/state/full-text-hydranium-glsp-state.js.map +1 -1
  22. package/lib/state/reconcile-source-model-write.d.ts +7 -6
  23. package/lib/state/reconcile-source-model-write.d.ts.map +1 -1
  24. package/lib/state/reconcile-source-model-write.js +7 -7
  25. package/lib/state/reconcile-source-model-write.js.map +1 -1
  26. package/lib/state/reconciling-multi-document-glsp-state.d.ts +32 -12
  27. package/lib/state/reconciling-multi-document-glsp-state.d.ts.map +1 -1
  28. package/lib/state/reconciling-multi-document-glsp-state.js +44 -17
  29. package/lib/state/reconciling-multi-document-glsp-state.js.map +1 -1
  30. package/lib/state/reconciling-transfer-hydranium-glsp-state.d.ts +3 -3
  31. package/lib/state/reconciling-transfer-hydranium-glsp-state.d.ts.map +1 -1
  32. package/lib/state/reconciling-transfer-hydranium-glsp-state.js +6 -6
  33. package/lib/state/reconciling-transfer-hydranium-glsp-state.js.map +1 -1
  34. package/lib/storage/hydranium-glsp-storage.d.ts +187 -69
  35. package/lib/storage/hydranium-glsp-storage.d.ts.map +1 -1
  36. package/lib/storage/hydranium-glsp-storage.js +209 -80
  37. package/lib/storage/hydranium-glsp-storage.js.map +1 -1
  38. package/lib/storage/index.d.ts +1 -1
  39. package/lib/storage/index.js +1 -1
  40. package/lib/storage/save-delivery-policy.d.ts +46 -0
  41. package/lib/storage/save-delivery-policy.d.ts.map +1 -0
  42. package/lib/storage/{save-conflict-policy.js → save-delivery-policy.js} +7 -8
  43. package/lib/storage/save-delivery-policy.js.map +1 -0
  44. package/lib/validation/diagnostic-markers.d.ts +2 -2
  45. package/lib/validation/diagnostic-markers.d.ts.map +1 -1
  46. package/lib/validation/diagnostic-markers.js +7 -0
  47. package/lib/validation/diagnostic-markers.js.map +1 -1
  48. package/lib/validation/hydranium-glsp-model-validator.d.ts.map +1 -1
  49. package/lib/validation/hydranium-glsp-model-validator.js +1 -1
  50. package/lib/validation/hydranium-glsp-model-validator.js.map +1 -1
  51. package/package.json +17 -8
  52. package/src/command/hydranium-glsp-recording-command.ts +25 -25
  53. package/src/launcher/hydranium-glsp-server.ts +4 -3
  54. package/src/messages/index.ts +25 -0
  55. package/src/state/abstract-hydranium-glsp-state.ts +85 -51
  56. package/src/state/full-text-hydranium-glsp-state.ts +5 -4
  57. package/src/state/reconcile-source-model-write.ts +15 -12
  58. package/src/state/reconciling-multi-document-glsp-state.ts +46 -18
  59. package/src/state/reconciling-transfer-hydranium-glsp-state.ts +7 -7
  60. package/src/storage/hydranium-glsp-storage.ts +234 -89
  61. package/src/storage/index.ts +1 -1
  62. package/src/storage/save-delivery-policy.ts +44 -0
  63. package/src/validation/diagnostic-markers.ts +10 -3
  64. package/src/validation/hydranium-glsp-model-validator.ts +3 -3
  65. package/lib/storage/save-conflict-policy.d.ts +0 -56
  66. package/lib/storage/save-conflict-policy.d.ts.map +0 -1
  67. package/lib/storage/save-conflict-policy.js.map +0 -1
  68. package/src/storage/save-conflict-policy.ts +0 -52
@@ -8,7 +8,7 @@
8
8
  ********************************************************************************/
9
9
  import { type JsonModelState } from '@eclipse-glsp/server';
10
10
  import { type AstNode } from '@hydranium/langium';
11
- import { type TransferElement } from '@hydranium/protocol';
11
+ import { type BasedOn, type TransferElement } from '@hydranium/protocol';
12
12
  import { AbstractHydraniumGlspState } from './abstract-hydranium-glsp-state.js';
13
13
  /**
14
14
  * Editable GLSP state for adopters whose source model is a **structured
@@ -68,7 +68,7 @@ export declare class ReconcilingTransferHydraniumGlspState<TRoot extends AstNode
68
68
  * (force = last-writer-wins, reconciling = field-level merge) shared with
69
69
  * undo / redo.
70
70
  */
71
- updateSourceModel(model: TSourceModel, version?: number): Promise<void>;
71
+ updateSourceModel(model: TSourceModel, basedOn?: BasedOn): Promise<void>;
72
72
  /**
73
73
  * Persist hook — the only write-side I/O. Default routes the structured
74
74
  * model through `ModelService.update` (serialize → reparse), opting into
@@ -76,7 +76,7 @@ export declare class ReconcilingTransferHydraniumGlspState<TRoot extends AstNode
76
76
  * round-trip differs override this; the orchestration in
77
77
  * {@link updateSourceModel} is unchanged.
78
78
  */
79
- protected persist(model: TSourceModel, baseVersion?: number): Promise<{
79
+ protected persist(model: TSourceModel, basedOn: BasedOn): Promise<{
80
80
  root: TRoot;
81
81
  }>;
82
82
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"reconciling-transfer-hydranium-glsp-state.d.ts","sourceRoot":"","sources":["../../src/state/reconciling-transfer-hydranium-glsp-state.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAGhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBACa,qCAAqC,CAAC,KAAK,SAAS,OAAO,EAAE,YAAY,SAAS,eAAe,CAC3G,SAAQ,0BAA0B,CAAC,KAAK,EAAE,YAAY,CACtD,YAAW,cAAc,CAAC,YAAY,CAAC;IAEvC;;;;;;OAMG;IACH,SAAS,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC;IAElC;;;;;;;OAOG;IACH,IAAI,WAAW,IAAI,YAAY,CAE9B;IAEQ,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI;IAKtD;;;;;;;OAOG;IACG,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB7E;;;;;;OAMG;cACa,OAAO,CAAC,KAAK,EAAE,YAAY,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,KAAK,CAAA;KAAE,CAAC;IAU5F;;;;;;OAMG;cACa,OAAO,IAAI,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;CAI9D"}
1
+ {"version":3,"file":"reconciling-transfer-hydranium-glsp-state.d.ts","sourceRoot":"","sources":["../../src/state/reconciling-transfer-hydranium-glsp-state.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAGhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBACa,qCAAqC,CAAC,KAAK,SAAS,OAAO,EAAE,YAAY,SAAS,eAAe,CAC3G,SAAQ,0BAA0B,CAAC,KAAK,EAAE,YAAY,CACtD,YAAW,cAAc,CAAC,YAAY,CAAC;IAEvC;;;;;;OAMG;IACH,SAAS,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC;IAElC;;;;;;;OAOG;IACH,IAAI,WAAW,IAAI,YAAY,CAE9B;IAEQ,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI;IAKtD;;;;;;;OAOG;IACG,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,GAAE,OAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB5F;;;;;;OAMG;cACa,OAAO,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,KAAK,CAAA;KAAE,CAAC;IAUxF;;;;;;OAMG;cACa,OAAO,IAAI,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;CAI9D"}
@@ -78,13 +78,13 @@ let ReconcilingTransferHydraniumGlspState = class ReconcilingTransferHydraniumGl
78
78
  * (force = last-writer-wins, reconciling = field-level merge) shared with
79
79
  * undo / redo.
80
80
  */
81
- async updateSourceModel(model, version) {
81
+ async updateSourceModel(model, basedOn = this.basedOn) {
82
82
  // Orchestration lives in `reconcileSourceModelWrite` so the multi-document
83
83
  // state gets the identical conflict handling; this method supplies only
84
84
  // the single-document meaning of persist / project.
85
- return reconcileSourceModelWrite(model, version, {
86
- persist: async (candidate, baseVersion) => {
87
- const { root } = await this.persist(candidate, baseVersion);
85
+ return reconcileSourceModelWrite(model, basedOn, {
86
+ persist: async (candidate, candidateBasedOn) => {
87
+ const { root } = await this.persist(candidate, candidateBasedOn);
88
88
  this.setSourceRoot(this._sourceUri, root);
89
89
  },
90
90
  refetch: () => this.refetch(),
@@ -101,12 +101,12 @@ let ReconcilingTransferHydraniumGlspState = class ReconcilingTransferHydraniumGl
101
101
  * round-trip differs override this; the orchestration in
102
102
  * {@link updateSourceModel} is unchanged.
103
103
  */
104
- async persist(model, baseVersion) {
104
+ async persist(model, basedOn) {
105
105
  const document = await this.sharedServices.model.ModelService.update({
106
106
  uri: this._sourceUri,
107
107
  model,
108
108
  clientId: this.clientId,
109
- baseVersion
109
+ basedOn
110
110
  });
111
111
  return document;
112
112
  }
@@ -1 +1 @@
1
- {"version":3,"file":"reconciling-transfer-hydranium-glsp-state.js","sourceRoot":"","sources":["../../src/state/reconciling-transfer-hydranium-glsp-state.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;;;;;;;AAGlF,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEI,IAAM,qCAAqC,GAA3C,MAAM,qCACV,SAAQ,0BAA+C;IAGvD;;;;;;OAMG;IACO,QAAQ,CAAgB;IAElC;;;;;;;OAOG;IACH,IAAI,WAAW;QACZ,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAA4B,CAAC;IACvH,CAAC;IAEQ,aAAa,CAAC,GAAW,EAAE,IAAW;QAC5C,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC;IACpC,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,iBAAiB,CAAC,KAAmB,EAAE,OAAgB;QAC1D,2EAA2E;QAC3E,wEAAwE;QACx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AC,CAAC,CAAC,SAAS,CAAC;IACvI,CAAC;CACH,CAAA;AAnFY,qCAAqC;IADjD,UAAU,EAAE;GACA,qCAAqC,CAmFjD"}
1
+ {"version":3,"file":"reconciling-transfer-hydranium-glsp-state.js","sourceRoot":"","sources":["../../src/state/reconciling-transfer-hydranium-glsp-state.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;;;;;;;AAGlF,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEI,IAAM,qCAAqC,GAA3C,MAAM,qCACV,SAAQ,0BAA+C;IAGvD;;;;;;OAMG;IACO,QAAQ,CAAgB;IAElC;;;;;;;OAOG;IACH,IAAI,WAAW;QACZ,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAA4B,CAAC;IACvH,CAAC;IAEQ,aAAa,CAAC,GAAW,EAAE,IAAW;QAC5C,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC;IACpC,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,iBAAiB,CAAC,KAAmB,EAAE,UAAmB,IAAI,CAAC,OAAO;QACzE,2EAA2E;QAC3E,wEAAwE;QACxE,oDAAoD;QACpD,OAAO,yBAAyB,CAAe,KAAK,EAAE,OAAO,EAAE;YAC5D,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE;gBAC5C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;gBACjE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;YAC7C,CAAC;YACD,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;YAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,iBAAiB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,iBAAiB,EAAE;SACnD,CAAC,CAAC;IACN,CAAC;IAED;;;;;;OAMG;IACO,KAAK,CAAC,OAAO,CAAC,KAAmB,EAAE,OAAgB;QAC1D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC;YAClE,GAAG,EAAE,IAAI,CAAC,UAAU;YACpB,KAAK;YACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,OAAO;SACT,CAAC,CAAC;QACH,OAAO,QAAsC,CAAC;IACjD,CAAC;IAED;;;;;;OAMG;IACO,KAAK,CAAC,OAAO;QACpB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QAC7G,OAAO,KAAK,CAAC,CAAC,CAAE,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAA6B,CAAC,CAAC,CAAC,SAAS,CAAC;IACvI,CAAC;CACH,CAAA;AAnFY,qCAAqC;IADjD,UAAU,EAAE;GACA,qCAAqC,CAmFjD"}
@@ -12,7 +12,46 @@ import { type AstNode } from '@hydranium/langium';
12
12
  import { AstDocument, type AstDocumentSavedEvent, type AstDocumentUpdatedEvent, type ServerSharedServices } from '@hydranium/core';
13
13
  import { type AbstractHydraniumGlspState } from '../state/abstract-hydranium-glsp-state.js';
14
14
  import { type HydraniumGlspSubmissionHandler } from '../submission/hydranium-glsp-submission-handler.js';
15
- import { SaveConflictPolicy } from './save-conflict-policy.js';
15
+ import { SaveDeliveryPolicy } from './save-delivery-policy.js';
16
+ /**
17
+ * A save action arrived with nowhere to write to. A save action carries no
18
+ * request id, so it falls through to the error handler and `message` becomes
19
+ * the toast text.
20
+ *
21
+ * Rendered at the raise site rather than by a carrier method, because GLSP's
22
+ * action protocol has no slot for an identity anywhere — every member of its
23
+ * message, status and reject actions is prose or an enum, and
24
+ * `MessageAction.details` is not a substitute since it is prose populated from
25
+ * `cause?.toString?.()`, and a Theia host shows it to a user on demand. So the
26
+ * throw is the last place that still knows which message this is.
27
+ */
28
+ export declare const SAVE_TARGET_UNKNOWN: import("@hydranium/protocol").MessageDefinition<"Could not determine where to save this model">;
29
+ /**
30
+ * A model request arrived without the source URI it is required to carry.
31
+ * Rendered at the raise site, like its save-path sibling and for the same
32
+ * reason.
33
+ */
34
+ export declare const SOURCE_URI_MISSING: import("@hydranium/protocol").MessageDefinition<"Could not open this model: the request did not say which document to load">;
35
+ /**
36
+ * Why the canvas has stopped accepting edits.
37
+ *
38
+ * **A READONLY canvas is otherwise indistinguishable from a broken one.** The
39
+ * client's answer to {@link SetEditModeAction} is to withdraw the tool palette,
40
+ * so the surface a reader was working in silently loses the only control it had,
41
+ * with the cause — a syntax error in a document that may not even be open —
42
+ * nowhere on screen. The mode flip is the mechanism; this is the only part of it
43
+ * a user can see.
44
+ *
45
+ * Rendered at the raise site, like its two siblings above and for the same
46
+ * reason: every member of GLSP's status action is prose or an enum.
47
+ *
48
+ * It names the recovery rather than the fault, because the fault already has a
49
+ * surface — the squiggle and the problems list, both of which say WHICH
50
+ * character — and repeating it here would put a second, less precise account of
51
+ * the same error on screen. What no other surface says is that the diagram is
52
+ * waiting on it.
53
+ */
54
+ export declare const DIAGRAM_READONLY_PARSE_ERROR: import("@hydranium/protocol").MessageDefinition<"Read-only: this document has a syntax error. Fix it to edit the diagram again.">;
16
55
  /**
17
56
  * GLSP source-model storage base shared by all hydranium adopters.
18
57
  * Provides the DI signature, the {@link ClientSessionListener} +
@@ -33,17 +72,14 @@ import { SaveConflictPolicy } from './save-conflict-policy.js';
33
72
  *
34
73
  * Adopters with richer needs override the seams ({@link isStructurallyBroken},
35
74
  * {@link onParseErrorChanged}, {@link onSourceModelSettled}) rather than the
36
- * whole flow, and select a {@link SaveConflictPolicy} via the bound option to
37
- * tune how {@link saveSourceModel} reacts to a concurrent edit.
75
+ * whole flow, and select a {@link SaveDeliveryPolicy} via the bound option to
76
+ * tune how {@link saveSourceModel} delivers its result.
38
77
  *
39
- * **Default `saveSourceModel` flow.** Delegates to `ModelService.save`, which
40
- * serialises through the language-specific `Serializer` bound at
41
- * `services.serializer.Serializer` (resolved per-URI via `ServiceRegistry`),
42
- * updates the multi-client text-document store, drives a rebuild, and writes the
43
- * result via the `WritableFileSystemProvider`. The bound
44
- * {@link SaveConflictPolicy} (default {@link DEFAULT_SAVE_CONFLICT_POLICY},
45
- * `overwrite`) decides the based-on-version guard, await-vs-fire-and-forget, and
46
- * failure handling.
78
+ * **Default `saveSourceModel` flow.** Flushes the stored text of the primary and
79
+ * every tracked secondary via `AstDocumentManager.save`, with no serializer in
80
+ * the path the update path already put the settled text in the store. The
81
+ * bound {@link SaveDeliveryPolicy} (default {@link DEFAULT_SAVE_DELIVERY_POLICY},
82
+ * `await`) decides await-vs-fire-and-forget and failure handling.
47
83
  *
48
84
  * **tempId filter.** GLSP's `DefaultGlobalActionProvider` spins up a
49
85
  * throwaway per-diagram-type container with upstream's {@link TEMPORARY_CLIENT_ID}
@@ -75,14 +111,13 @@ export declare class HydraniumGlspStorage<TRoot extends AstNode, TSourceModel =
75
111
  */
76
112
  protected readonly modelValidator?: ModelValidator;
77
113
  /**
78
- * Selected {@link SaveConflictPolicy} for {@link saveSourceModel}. Bind the
79
- * {@link SaveConflictPolicy} token in a `DiagramModule` to choose a policy;
80
- * left unbound it resolves to {@link DEFAULT_SAVE_CONFLICT_POLICY}
81
- * (`overwrite`, last-write-wins). Read via {@link saveConflictPolicy} so the
82
- * fallback is applied even when inversify injects `undefined` for an unbound
83
- * `@optional()` member.
114
+ * Selected {@link SaveDeliveryPolicy} for {@link saveSourceModel}. Bind the
115
+ * {@link SaveDeliveryPolicy} token in a `DiagramModule` to choose a policy;
116
+ * left unbound it resolves to {@link DEFAULT_SAVE_DELIVERY_POLICY}. Read via
117
+ * {@link saveDeliveryPolicy} so the fallback is applied even when inversify
118
+ * injects `undefined` for an unbound `@optional()` member.
84
119
  */
85
- protected readonly boundSaveConflictPolicy?: SaveConflictPolicy;
120
+ protected readonly boundSaveDeliveryPolicy?: SaveDeliveryPolicy;
86
121
  /** Disposables created during {@link doLoadSourceModel}; drained on session disposal. */
87
122
  protected toDispose: DisposableCollection;
88
123
  /**
@@ -111,7 +146,7 @@ export declare class HydraniumGlspStorage<TRoot extends AstNode, TSourceModel =
111
146
  */
112
147
  protected resubmitDebouncer: Debouncer;
113
148
  /** Latest event document awaiting the debounced resubmit; read by {@link flushResubmit} (last write wins). */
114
- protected pendingResubmitDocument?: AstDocument<AstNode, unknown>;
149
+ protected pendingResubmitDocument?: AstDocument<AstNode>;
115
150
  protected init(): void;
116
151
  /**
117
152
  * Default load flow — {@link doLoadSourceModel}. Adopters whose load flow
@@ -120,12 +155,29 @@ export declare class HydraniumGlspStorage<TRoot extends AstNode, TSourceModel =
120
155
  loadSourceModel(action: RequestModelAction): MaybePromise<void>;
121
156
  protected doLoadSourceModel(action: RequestModelAction): Promise<void>;
122
157
  /**
123
- * Capture the initial settled root and apply the initial edit mode. `settled()`
124
- * strips diagnostics by phase contract, so the first edit mode is `EDITABLE`;
125
- * the first {@link handleModelUpdated} (at `Validated`, with diagnostics) flips
126
- * it READONLY if the document has structural parse errors. Edit-mode +
127
- * settle-hook actions are dispatched on a macrotask so the initial
158
+ * Capture the initial settled root and apply the initial edit mode. Edit-mode
159
+ * + settle-hook actions are dispatched on a macrotask so the initial
128
160
  * `requestModel → setModel` handshake isn't perturbed.
161
+ *
162
+ * **Whether the settled document carries diagnostics depends on how far it
163
+ * had already got, so the initial edit mode has two correct outcomes rather
164
+ * than one.** `settled()` strips nothing: it resolves AT OR ABOVE the
165
+ * integrity landmark and hands back the live document's own array. Its
166
+ * `AstDocument<TAst, never>` return type asserts emptiness for a document the
167
+ * wait had to DRIVE to that landmark, which is pre-validation — and for that
168
+ * one the mode here is `EDITABLE` and the flip to READONLY arrives with the
169
+ * first {@link handleModelUpdated}. A document already past `Validated` when
170
+ * the session opened resolves immediately with its diagnostics intact, and is
171
+ * decided correctly here with no later update owed. Any host that validates
172
+ * its workspace before a diagram is opened produces the second case, so
173
+ * neither is exceptional.
174
+ *
175
+ * **A correct decision is not a delivered one.** This dispatch happens inside
176
+ * the initial `requestModel`, before the client has the model — so the UI
177
+ * extensions that answer {@link onParseErrorChanged}'s actions are not yet
178
+ * constructed, and a canvas that opens READONLY over a broken document shows
179
+ * none of that feedback. The same timer carries {@link onSourceModelSettled},
180
+ * so an adopter's own initial actions have it too.
129
181
  */
130
182
  protected captureSettledRoot(rootUri: string, document: AstDocument<AstNode, never>): Promise<void>;
131
183
  /**
@@ -171,18 +223,19 @@ export declare class HydraniumGlspStorage<TRoot extends AstNode, TSourceModel =
171
223
  * drag this client authors — the guard above gates the resubmit, not the
172
224
  * markers.
173
225
  */
174
- protected handleSecondaryUpdated(uri: string, event: AstDocumentUpdatedEvent<AstNode, unknown>): void;
226
+ protected handleSecondaryUpdated(uri: string, event: AstDocumentUpdatedEvent<AstNode>): void;
175
227
  /**
176
228
  * The primary document's current state, or `undefined` when it is not
177
229
  * registered.
178
230
  *
179
231
  * Synchronous by construction — the phase-agnostic lookup door plus the shared
180
232
  * projection — so reacting to a secondary neither waits nor can force a build.
181
- * `settled()` is not an alternative: it strips diagnostics by phase contract,
182
- * and diagnostics are the reason {@link doUpdateAndSubmit} takes a separate
183
- * event document at all.
233
+ * `settled()` is not an alternative: besides being asynchronous, it cannot be
234
+ * relied on to carry diagnostics a document it has to drive to the landmark
235
+ * arrives pre-validation with an empty array — and diagnostics are the reason
236
+ * {@link doUpdateAndSubmit} takes a separate event document at all.
184
237
  */
185
- protected currentPrimaryDocument(): AstDocument<AstNode, unknown> | undefined;
238
+ protected currentPrimaryDocument(): AstDocument<AstNode> | undefined;
186
239
  /**
187
240
  * React to an external rebuild reaching `Validated`. Self-cleans if the
188
241
  * session has vanished but this listener leaked (neither `sessionDisposed`
@@ -191,7 +244,7 @@ export declare class HydraniumGlspStorage<TRoot extends AstNode, TSourceModel =
191
244
  * diagnostic markers for every update — including own edits, which skip
192
245
  * the resubmit but can still change diagnostics.
193
246
  */
194
- protected handleModelUpdated(rootUri: string, event: AstDocumentUpdatedEvent<AstNode, unknown>): Promise<void>;
247
+ protected handleModelUpdated(rootUri: string, event: AstDocumentUpdatedEvent<AstNode>): Promise<void>;
195
248
  /**
196
249
  * Whether this storage has outlived its session — disposing it as a side
197
250
  * effect when so. Checked from every subscription entry point because GLSP's
@@ -206,7 +259,7 @@ export declare class HydraniumGlspStorage<TRoot extends AstNode, TSourceModel =
206
259
  * {@link resubmitDebouncer}, so a burst of rebuilds runs
207
260
  * {@link doUpdateAndSubmit} once with the most recent document.
208
261
  */
209
- protected scheduleUpdateAndSubmit(document: AstDocument<AstNode, unknown>): void;
262
+ protected scheduleUpdateAndSubmit(document: AstDocument<AstNode>): void;
210
263
  /**
211
264
  * Debouncer callback: run the resubmit for the latest pending document
212
265
  * against this storage's (invariant) source URI and dispatch the result.
@@ -218,20 +271,22 @@ export declare class HydraniumGlspStorage<TRoot extends AstNode, TSourceModel =
218
271
  * mark our stack clean so the editor doesn't prompt to re-save identical
219
272
  * content. Our own saves already settle the stack through the save flow.
220
273
  */
221
- protected handleModelSaved(event: AstDocumentSavedEvent<AstNode, unknown>): void;
274
+ protected handleModelSaved(event: AstDocumentSavedEvent<AstNode>): void;
222
275
  /**
223
276
  * Re-settle to a guaranteed fully-linked + reprojected root, capture it, and
224
277
  * (unless suppressed) resubmit a deduped external GModel. Diagnostics for the
225
- * edit-mode decision come from the event document (`settled()` strips them by
226
- * phase contract).
278
+ * edit-mode decision come from the event document, because the re-settled one
279
+ * cannot be relied on to have any: a document driven to the landmark arrives
280
+ * pre-validation, and this path re-settles precisely to escape a transient
281
+ * mid-rebuild snapshot.
227
282
  */
228
- protected doUpdateAndSubmit(rootUri: string, eventDocument: AstDocument<AstNode, unknown>): Promise<Action[]>;
283
+ protected doUpdateAndSubmit(rootUri: string, eventDocument: AstDocument<AstNode>): Promise<Action[]>;
229
284
  /**
230
285
  * Recompute the desired edit mode from the document's structural-error state,
231
286
  * flip {@link AbstractHydraniumGlspState.editMode}, and — only on a transition —
232
287
  * return the {@link onParseErrorChanged} actions. No transition → no actions.
233
288
  */
234
- protected refreshEditMode(document: AstDocument<AstNode, unknown>): Action[];
289
+ protected refreshEditMode(document: AstDocument<AstNode>): Action[];
235
290
  /**
236
291
  * Seam: is the AST structurally broken (lexing/parsing errors)? Drives both
237
292
  * READONLY mode and the GModel resubmit skip — keeping the last valid canvas
@@ -239,46 +294,92 @@ export declare class HydraniumGlspStorage<TRoot extends AstNode, TSourceModel =
239
294
  * carrying a Langium `lexing-error` / `parsing-error` code. Adopters override
240
295
  * to compose additional break reasons.
241
296
  */
242
- protected isStructurallyBroken(document: AstDocument<AstNode, unknown>): boolean;
297
+ protected isStructurallyBroken(document: AstDocument<AstNode>): boolean;
243
298
  /**
244
- * Seam: actions to emit when the structural-broken state transitions. Default:
245
- * a single {@link SetEditModeAction} toggling READONLY ↔ EDITABLE — editing is
246
- * disabled while the syntax is broken but re-enabled once it parses, a sound
247
- * generic for any Langium-backed diagram. Adopters override to add or replace
248
- * the transition feedback. The {@link AbstractHydraniumGlspState.editMode}
249
- * flip itself is owned by {@link refreshEditMode}.
299
+ * Seam: actions to emit when the structural-broken state transitions.
300
+ * Default: a {@link SetEditModeAction} toggling READONLY ↔ EDITABLE — editing
301
+ * is disabled while the syntax is broken but re-enabled once it parses, a
302
+ * sound generic for any Langium-backed diagram plus the
303
+ * {@link DIAGRAM_READONLY_PARSE_ERROR} band that says why, cleared on the way
304
+ * back. Adopters override to add or replace the transition feedback. The
305
+ * {@link AbstractHydraniumGlspState.editMode} flip itself is owned by
306
+ * {@link refreshEditMode}.
307
+ *
308
+ * **Both actions or neither, which is why they are one seam rather than
309
+ * two.** The mode flip removes the tool palette and the band is the only
310
+ * account of that, so an override that keeps one and drops the other produces
311
+ * either an unexplained loss of the palette or a warning about a restriction
312
+ * that is not in force.
313
+ *
314
+ * **The status is dispatched with no `timeout`, so it persists** — a
315
+ * time-limited band would describe a condition that outlasts it.
316
+ *
317
+ * **The slot is SHARED, and the other writer wins on one path.**
318
+ * `ModelSubmissionHandler`'s live validation writes the same slot, clearing
319
+ * it with `severity: 'NONE'` when it finishes, and an adopter dispatching its
320
+ * own `StatusAction` replaces this one too. Nothing re-asserts it. That is
321
+ * harmless while a document is being edited, because a resubmit is skipped
322
+ * once the AST is broken (see {@link doUpdateAndSubmit}) — but NOT at load:
323
+ * the initial `requestModel` submit is not that skipped path, so a diagram
324
+ * opened on an already-broken document shows this band and then loses it to
325
+ * the validation clear a moment later. Measured on a browser host, polling the
326
+ * overlay: no element, empty, the sentence, empty again.
250
327
  */
251
- protected onParseErrorChanged(_document: AstDocument<AstNode, unknown>, broken: boolean): Action[];
328
+ protected onParseErrorChanged(_document: AstDocument<AstNode>, broken: boolean): Action[];
252
329
  /**
253
330
  * Seam: extra actions to dispatch right after the initial settled root is
254
331
  * captured (e.g. an adopter-specific status or palette refresh). Default: none.
255
332
  */
256
333
  protected onSourceModelSettled(_document: AstDocument<AstNode, never>): Action[];
257
- /** The effective {@link SaveConflictPolicy}: the bound option, or {@link DEFAULT_SAVE_CONFLICT_POLICY} when unbound. */
258
- protected get saveConflictPolicy(): SaveConflictPolicy;
334
+ /** The effective {@link SaveDeliveryPolicy}: the bound option, or {@link DEFAULT_SAVE_DELIVERY_POLICY} when unbound. */
335
+ protected get saveDeliveryPolicy(): SaveDeliveryPolicy;
259
336
  /**
260
- * Default save flow: route through `ModelService.save`. The framework
261
- * serialise-and-persist machinery handles serialisation (via the
262
- * language-specific `Serializer` bound at `services.serializer.Serializer`),
263
- * the multi-client text-document update, the rebuild, and the eventual
264
- * `WritableFileSystemProvider.writeFile`.
337
+ * Default save flow: persist the store's current text for every document this
338
+ * diagram owns.
339
+ *
340
+ * **A save persists, it does not author.** Every diagram gesture already
341
+ * reached the store through `ModelService.update`, so the store holds the
342
+ * settled text and disk is the only thing behind. Re-serializing from the AST
343
+ * here cannot improve on that text and can only damage it: a serializer
344
+ * normalises formatting and carries no comments, so a save would reflow and
345
+ * strip a document nothing changed — which is what a pure bounds drag does to
346
+ * the semantic file when only its layout moved.
347
+ *
348
+ * **The write set is the primary plus every tracked secondary**
349
+ * (`AbstractHydraniumGlspState.trackSecondaryDocument`), so a document the
350
+ * diagram wrote is persisted whether or not it is the one the client named.
351
+ * The primary is flushed first, then secondaries in tracking order. A
352
+ * document no client holds open is skipped — there is no stored text to
353
+ * persist.
265
354
  *
266
- * The configured {@link SaveConflictPolicy} (see {@link saveConflictPolicy})
267
- * decides how a concurrent edit that advanced the document is handled:
268
- * - `overwrite` (default): no based-on guard, await, propagate failures
269
- * last-write-wins, correct for a single-editor head.
270
- * - `reject`: guard on the captured `state.version`, await, surface a
271
- * `ConflictError` (and any other failure) to the GLSP save action.
272
- * - `drop-and-log`: guard, fire-and-forget, log + swallow failures — a stale
273
- * diagram save is dropped because a concurrent form/code edit already wrote
274
- * the truth, and GLSP exposes no save-failure back-channel.
355
+ * **A save therefore names documents the gesture did not aim at**, which is
356
+ * why an unchanged one is not rewritten even though the user asked for a
357
+ * save: the mtime would move on a file they never touched.
358
+ * `AstDocumentManager.save` decides that per document and announces the save
359
+ * either way.
360
+ *
361
+ * The configured {@link SaveDeliveryPolicy} (see {@link saveDeliveryPolicy})
362
+ * decides await-vs-fire-and-forget and failure handling. It carries no
363
+ * based-on guard: the guard exists to stop a stale writer overwriting a newer
364
+ * document, and a flush persists the store — which already holds every other
365
+ * client's change, including the one that advanced the version.
275
366
  *
276
367
  * Returns `MaybePromise<void>` to match upstream `SourceModelStorage`:
277
- * resolves with the persist under `overwrite`/`reject`, returns synchronously
278
- * under `drop-and-log`. Adopters that bypass `ModelService` (writing through
279
- * `WritableFileSystemProvider` directly) still override the whole method.
368
+ * resolves with the flush under `await`, returns synchronously under
369
+ * `fire-and-forget`. Adopters that bypass `AstDocumentManager` (writing
370
+ * through `WritableFileSystemProvider` directly) still override the whole
371
+ * method.
280
372
  */
281
373
  saveSourceModel(action: SaveModelAction): MaybePromise<void>;
374
+ /**
375
+ * Save the stored text of `primaryUri` and every tracked secondary.
376
+ *
377
+ * Deduplicated, because a state that tracks its own primary as a secondary
378
+ * would otherwise save it twice and fire two save notifications for one
379
+ * save. A document no client holds open is skipped: there is no stored text
380
+ * to persist, and `AstDocumentManager.save` throws on one.
381
+ */
382
+ protected flushWriteSet(primaryUri: string): Promise<void>;
282
383
  /**
283
384
  * Normalise GLSP's `sourceUri` — which may be a filesystem PATH or a URI
284
385
  * string — to the URI string the workspace keys documents by.
@@ -305,6 +406,17 @@ export declare class HydraniumGlspStorage<TRoot extends AstNode, TSourceModel =
305
406
  *
306
407
  * Returns it VERBATIM, in whatever form the client sent;
307
408
  * {@link toSourceModelUri} is what normalises it.
409
+ *
410
+ * A model request DOES carry a request id, so a throw here takes the
411
+ * client-request path rather than the toast path — and on that path `detail`
412
+ * comes from `cause?.toString?.()`. A single-argument throw therefore reaches
413
+ * neither the server log nor the client console: both print `undefined`. So
414
+ * the two readers are addressed separately, as on the save path: `message`
415
+ * names what failed in the user's terms and is rendered, `cause` names the
416
+ * action and the option key that was missing and stays English. On THIS path
417
+ * the cause reaches only logs — `RejectAction.detail` is read by nothing but
418
+ * the client action-dispatcher's `logger.warn` — which is not what makes it
419
+ * English; its content is.
308
420
  */
309
421
  protected getSourceUri(action: RequestModelAction): string;
310
422
  /**
@@ -314,12 +426,18 @@ export declare class HydraniumGlspStorage<TRoot extends AstNode, TSourceModel =
314
426
  * {@link AbstractHydraniumGlspState.setSourceRoot}.
315
427
  *
316
428
  * A save action carries no request id, so a throw here reaches the user as a
317
- * toast built from `message`, with `cause` behind its details control. The
318
- * two therefore address different readers and must not be collapsed: the
319
- * message names what failed in the user's terms, and the cause names which
320
- * lookups came back empty for whom. Neither can name the URI not having
321
- * one IS the failure, and both sources are written together, so the typed
322
- * `sourceUri` is equally empty whenever this fires.
429
+ * toast built from `message`, while `cause` travels in
430
+ * `MessageAction.details` **which a Theia host DOES put in front of a
431
+ * user**, as a "Show details" button on the toast opening a dialog. So the
432
+ * two are not split by reachability; they are split by AUDIENCE, which is
433
+ * the older rule and the one that holds here. The message names what failed
434
+ * in the user's terms and is rendered; the cause names which lookups came
435
+ * back empty for whom, and stays English because a wire action kind, an
436
+ * option key and a client id address whoever composes the system — a
437
+ * translated developer string is a worse outcome than an untranslated one.
438
+ * Neither can name the URI — not having one IS the failure, and both sources
439
+ * are written together, so the typed `sourceUri` is equally empty whenever
440
+ * this fires.
323
441
  */
324
442
  protected getFileUri(action: SaveModelAction): string;
325
443
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"hydranium-glsp-storage.d.ts","sourceRoot":"","sources":["../../src/storage/hydranium-glsp-storage.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAGlF,OAAO,EACJ,KAAK,MAAM,EACX,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,oBAAoB,EAEpB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EAGf,MAAM,IAAI,UAAU,EACpB,KAAK,YAAY,EAGjB,cAAc,EACd,KAAK,kBAAkB,EAEvB,KAAK,eAAe,EAEpB,KAAK,kBAAkB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,oBAAoB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