@hydranium/protocol 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 (122) hide show
  1. package/README.md +35 -1
  2. package/lib/client/data-connection.d.ts +114 -0
  3. package/lib/client/data-connection.d.ts.map +1 -0
  4. package/lib/client/data-connection.js +128 -0
  5. package/lib/client/data-connection.js.map +1 -0
  6. package/lib/client/data-events.d.ts +9 -1
  7. package/lib/client/data-events.d.ts.map +1 -1
  8. package/lib/client/data-events.js +14 -0
  9. package/lib/client/data-events.js.map +1 -1
  10. package/lib/client/data-port.d.ts +17 -22
  11. package/lib/client/data-port.d.ts.map +1 -1
  12. package/lib/client/data-session.d.ts +95 -78
  13. package/lib/client/data-session.d.ts.map +1 -1
  14. package/lib/client/data-session.js +115 -108
  15. package/lib/client/data-session.js.map +1 -1
  16. package/lib/client/index.d.ts +10 -7
  17. package/lib/client/index.d.ts.map +1 -1
  18. package/lib/client/index.js +10 -7
  19. package/lib/client/index.js.map +1 -1
  20. package/lib/client/message-relay.d.ts +8 -2
  21. package/lib/client/message-relay.d.ts.map +1 -1
  22. package/lib/client/message-relay.js +10 -4
  23. package/lib/client/message-relay.js.map +1 -1
  24. package/lib/client/rpc-connection.d.ts +139 -0
  25. package/lib/client/rpc-connection.d.ts.map +1 -0
  26. package/lib/client/rpc-connection.js +171 -0
  27. package/lib/client/rpc-connection.js.map +1 -0
  28. package/lib/client-ids.d.ts +41 -0
  29. package/lib/client-ids.d.ts.map +1 -0
  30. package/lib/client-ids.js +44 -0
  31. package/lib/client-ids.js.map +1 -0
  32. package/lib/data/data-protocol-methods.d.ts +2 -2
  33. package/lib/data/data-protocol-methods.d.ts.map +1 -1
  34. package/lib/data/data-protocol-methods.js +6 -1
  35. package/lib/data/data-protocol-methods.js.map +1 -1
  36. package/lib/data/data-server-protocol.d.ts +35 -2
  37. package/lib/data/data-server-protocol.d.ts.map +1 -1
  38. package/lib/data/events.d.ts +70 -3
  39. package/lib/data/events.d.ts.map +1 -1
  40. package/lib/errors.d.ts +28 -11
  41. package/lib/errors.d.ts.map +1 -1
  42. package/lib/errors.js +35 -17
  43. package/lib/errors.js.map +1 -1
  44. package/lib/index.d.ts +2 -0
  45. package/lib/index.d.ts.map +1 -1
  46. package/lib/index.js +5 -0
  47. package/lib/index.js.map +1 -1
  48. package/lib/messages/index.d.ts +28 -0
  49. package/lib/messages/index.d.ts.map +1 -0
  50. package/lib/messages/index.js +52 -0
  51. package/lib/messages/index.js.map +1 -0
  52. package/lib/messages/primitives.d.ts +141 -0
  53. package/lib/messages/primitives.d.ts.map +1 -0
  54. package/lib/messages/primitives.js +138 -0
  55. package/lib/messages/primitives.js.map +1 -0
  56. package/lib/model-server.d.ts +6 -5
  57. package/lib/model-server.d.ts.map +1 -1
  58. package/lib/model-service/args.d.ts +14 -13
  59. package/lib/model-service/args.d.ts.map +1 -1
  60. package/lib/model-service/based-on.d.ts +55 -0
  61. package/lib/model-service/based-on.d.ts.map +1 -0
  62. package/lib/model-service/based-on.js +34 -0
  63. package/lib/model-service/based-on.js.map +1 -0
  64. package/lib/model-service/index.d.ts +1 -0
  65. package/lib/model-service/index.d.ts.map +1 -1
  66. package/lib/model-service/index.js +1 -0
  67. package/lib/model-service/index.js.map +1 -1
  68. package/lib/rpc/bind-rpc-methods.d.ts +29 -3
  69. package/lib/rpc/bind-rpc-methods.d.ts.map +1 -1
  70. package/lib/rpc/bind-rpc-methods.js +22 -3
  71. package/lib/rpc/bind-rpc-methods.js.map +1 -1
  72. package/lib/rpc/create-rpc-proxy.d.ts +7 -0
  73. package/lib/rpc/create-rpc-proxy.d.ts.map +1 -1
  74. package/lib/rpc/create-rpc-proxy.js +6 -1
  75. package/lib/rpc/create-rpc-proxy.js.map +1 -1
  76. package/lib/testing/catalogue-audit.d.ts +80 -0
  77. package/lib/testing/catalogue-audit.d.ts.map +1 -0
  78. package/lib/testing/catalogue-audit.js +94 -0
  79. package/lib/testing/catalogue-audit.js.map +1 -0
  80. package/lib/testing/data-doubles.d.ts +11 -12
  81. package/lib/testing/data-doubles.d.ts.map +1 -1
  82. package/lib/testing/data-doubles.js +14 -5
  83. package/lib/testing/data-doubles.js.map +1 -1
  84. package/lib/testing/index.d.ts +1 -0
  85. package/lib/testing/index.d.ts.map +1 -1
  86. package/lib/testing/index.js +4 -1
  87. package/lib/testing/index.js.map +1 -1
  88. package/lib/transfer-diagnostic.d.ts +33 -0
  89. package/lib/transfer-diagnostic.d.ts.map +1 -1
  90. package/lib/transfer-diagnostic.js +23 -0
  91. package/lib/transfer-diagnostic.js.map +1 -1
  92. package/lib/transfer-document.d.ts +15 -5
  93. package/lib/transfer-document.d.ts.map +1 -1
  94. package/lib/transfer-document.js +14 -1
  95. package/lib/transfer-document.js.map +1 -1
  96. package/package.json +11 -2
  97. package/src/client/data-connection.ts +181 -0
  98. package/src/client/data-events.ts +24 -1
  99. package/src/client/data-port.ts +17 -23
  100. package/src/client/data-session.ts +172 -131
  101. package/src/client/index.ts +10 -7
  102. package/src/client/message-relay.ts +28 -6
  103. package/src/client/rpc-connection.ts +230 -0
  104. package/src/client-ids.ts +45 -0
  105. package/src/data/data-protocol-methods.ts +6 -3
  106. package/src/data/data-server-protocol.ts +46 -2
  107. package/src/data/events.ts +74 -3
  108. package/src/errors.ts +41 -19
  109. package/src/index.ts +5 -0
  110. package/src/messages/index.ts +35 -0
  111. package/src/messages/primitives.ts +215 -0
  112. package/src/model-server.ts +6 -5
  113. package/src/model-service/args.ts +15 -13
  114. package/src/model-service/based-on.ts +60 -0
  115. package/src/model-service/index.ts +1 -0
  116. package/src/rpc/bind-rpc-methods.ts +49 -4
  117. package/src/rpc/create-rpc-proxy.ts +14 -1
  118. package/src/testing/catalogue-audit.ts +111 -0
  119. package/src/testing/data-doubles.ts +33 -17
  120. package/src/testing/index.ts +4 -1
  121. package/src/transfer-diagnostic.ts +40 -0
  122. package/src/transfer-document.ts +22 -6
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;;;;;;;;;;;;;;;AAElF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,gDAA8B;AAC9B,8CAA4B;AAC5B,iDAA+B;AAC/B,kDAAgC;AAChC,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;;;;;;;;;;;;;;;AAElF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,oDAAkC;AAClC,gDAA8B;AAC9B,8CAA4B;AAC5B,iDAA+B;AAC/B,kDAAgC;AAChC,2DAAyC;AACzC,mDAAiC"}
@@ -7,7 +7,12 @@
7
7
  * SPDX-License-Identifier: MIT
8
8
  ********************************************************************************/
9
9
  import { type Disposable, type Event, type MessageReader, type MessageWriter } from 'vscode-jsonrpc';
10
+ import { type ResolvedMessage } from '../messages/primitives';
10
11
  import type { PostMessageChannel } from './post-message-transport';
12
+ export declare const RELAY_TRANSPORT_OPEN_FAILED: import("../messages/primitives").MessageDefinition<"Could not open the transport to relay: {detail}">;
13
+ export declare const RELAY_TRANSPORT_READ_FAILED: import("../messages/primitives").MessageDefinition<"Could not read from the relayed transport: {detail}">;
14
+ export declare const RELAY_TRANSPORT_WRITE_FAILED: import("../messages/primitives").MessageDefinition<"Could not write to the relayed transport: {detail}">;
15
+ export declare const RELAY_REPLAY_FAILED: import("../messages/primitives").MessageDefinition<"Could not replay a buffered message to the relayed transport: {detail}">;
11
16
  /**
12
17
  * The framed side of a relay: the reader/writer pair over whatever transport the
13
18
  * host actually holds — a TCP socket to the data-server, a child process' stdio,
@@ -27,13 +32,14 @@ export interface RelayTransport {
27
32
  export interface MessageRelayOptions {
28
33
  /**
29
34
  * Surface a failure the way the host does. Same contract as
30
- * `DataPort.reportError`: `context` names what was being attempted.
35
+ * `DataPort.reportError`: `reported` is a complete sentence plus the identity
36
+ * needed to render it in another language.
31
37
  *
32
38
  * A relay has no other way to report — it sits between two transports and
33
39
  * owns neither, so a swallowed error here presents as a form that never
34
40
  * populates.
35
41
  */
36
- readonly reportError?: (error: unknown, context: string) => void;
42
+ readonly reportError?: (error: unknown, reported: ResolvedMessage) => void;
37
43
  }
38
44
  /** A live relay. Dispose to tear both directions down. */
39
45
  export interface MessageRelay extends Disposable {
@@ -1 +1 @@
1
- {"version":3,"file":"message-relay.d.ts","sourceRoot":"","sources":["../../src/client/message-relay.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAW,KAAK,UAAU,EAAE,KAAK,KAAK,EAAgB,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC5H,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc;IAC5B,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,gEAAgE;IAChE,OAAO,CAAC,IAAI,IAAI,CAAC;CACnB;AAED,qDAAqD;AACrD,MAAM,WAAW,mBAAmB;IACjC;;;;;;;OAOG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACnE;AAED,0DAA0D;AAC1D,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC7C;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAEjC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,yBAAyB,CACtC,OAAO,EAAE,kBAAkB,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;;GA2CG;AACH,wBAAgB,yBAAyB,CACtC,OAAO,EAAE,kBAAkB,EAC3B,aAAa,EAAE,MAAM,OAAO,CAAC,cAAc,CAAC,EAC5C,OAAO,GAAE,mBAAwB,GACjC,YAAY,CAgGd"}
@@ -8,8 +8,14 @@
8
8
  * SPDX-License-Identifier: MIT
9
9
  ********************************************************************************/
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.RELAY_REPLAY_FAILED = exports.RELAY_TRANSPORT_WRITE_FAILED = exports.RELAY_TRANSPORT_READ_FAILED = exports.RELAY_TRANSPORT_OPEN_FAILED = void 0;
11
12
  exports.relayToPostMessageChannel = relayToPostMessageChannel;
12
13
  const vscode_jsonrpc_1 = require("vscode-jsonrpc");
14
+ const primitives_1 = require("../messages/primitives");
15
+ exports.RELAY_TRANSPORT_OPEN_FAILED = (0, primitives_1.defineMessage)('hydranium/protocol/relay-transport-open-failed', 'Could not open the transport to relay: {detail}');
16
+ exports.RELAY_TRANSPORT_READ_FAILED = (0, primitives_1.defineMessage)('hydranium/protocol/relay-transport-read-failed', 'Could not read from the relayed transport: {detail}');
17
+ exports.RELAY_TRANSPORT_WRITE_FAILED = (0, primitives_1.defineMessage)('hydranium/protocol/relay-transport-write-failed', 'Could not write to the relayed transport: {detail}');
18
+ exports.RELAY_REPLAY_FAILED = (0, primitives_1.defineMessage)('hydranium/protocol/relay-replay-failed', 'Could not replay a buffered message to the relayed transport: {detail}');
13
19
  /**
14
20
  * Pump JSON-RPC messages between a framed transport and a structured-clone
15
21
  * {@link PostMessageChannel}, decoding neither.
@@ -78,7 +84,7 @@ function relayToPostMessageChannel(channel, openTransport, options = {}) {
78
84
  bufferSubscription?.dispose();
79
85
  bufferSubscription = undefined;
80
86
  buffered.length = 0;
81
- options.reportError?.(error, 'opening the transport to relay');
87
+ options.reportError?.(error, (0, primitives_1.resolve)(exports.RELAY_TRANSPORT_OPEN_FAILED, { detail: (0, primitives_1.describeError)(error) }));
82
88
  closeFramedSide();
83
89
  return false;
84
90
  }
@@ -95,11 +101,11 @@ function relayToPostMessageChannel(channel, openTransport, options = {}) {
95
101
  bufferSubscription?.dispose();
96
102
  bufferSubscription = undefined;
97
103
  subscriptions.push(opened.reader.listen(message => channel.post(message)), opened.reader.onClose(() => closeFramedSide()), opened.reader.onError(error => {
98
- options.reportError?.(error, 'reading from the relayed transport');
104
+ options.reportError?.(error, (0, primitives_1.resolve)(exports.RELAY_TRANSPORT_READ_FAILED, { detail: (0, primitives_1.describeError)(error) }));
99
105
  closeFramedSide();
100
106
  }), channel.onMessage(message => {
101
107
  void opened.writer.write(message).catch((error) => {
102
- options.reportError?.(error, 'writing to the relayed transport');
108
+ options.reportError?.(error, (0, primitives_1.resolve)(exports.RELAY_TRANSPORT_WRITE_FAILED, { detail: (0, primitives_1.describeError)(error) }));
103
109
  });
104
110
  }));
105
111
  const onChannelClose = channel.onClose?.(() => dispose());
@@ -108,7 +114,7 @@ function relayToPostMessageChannel(channel, openTransport, options = {}) {
108
114
  }
109
115
  for (const message of buffered) {
110
116
  void opened.writer.write(message).catch((error) => {
111
- options.reportError?.(error, 'replaying a buffered message to the relayed transport');
117
+ options.reportError?.(error, (0, primitives_1.resolve)(exports.RELAY_REPLAY_FAILED, { detail: (0, primitives_1.describeError)(error) }));
112
118
  });
113
119
  }
114
120
  buffered.length = 0;
@@ -1 +1 @@
1
- {"version":3,"file":"message-relay.js","sourceRoot":"","sources":["../../src/client/message-relay.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;AA4GlF,8DAoGC;AA9MD,mDAA4H;AA8D5H;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,SAAgB,yBAAyB,CACtC,OAA2B,EAC3B,aAA4C,EAC5C,UAA+B,EAAE;IAEjC,MAAM,YAAY,GAAG,IAAI,wBAAO,EAAQ,CAAC;IACzC,MAAM,aAAa,GAAiB,EAAE,CAAC;IACvC,IAAI,SAAqC,CAAC;IAC1C,IAAI,Q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C,CAAC,EAAE,CAAC;IAEL,SAAS,OAAO;QACb,IAAI,QAAQ,EAAE,CAAC;YACZ,OAAO;QACV,CAAC;QACD,QAAQ,GAAG,IAAI,CAAC;QAChB,kBAAkB,EAAE,OAAO,EAAE,CAAC;QAC9B,kBAAkB,GAAG,SAAS,CAAC;QAC/B,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;QACpB,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE,CAAC;YACxC,YAAY,CAAC,OAAO,EAAE,CAAC;QAC1B,CAAC;QACD,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;QACzB,SAAS,EAAE,OAAO,EAAE,EAAE,CAAC;QACvB,SAAS,GAAG,SAAS,CAAC;QACtB,YAAY,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAED,OAAO;QACJ,KAAK;QACL,OAAO,EAAE,YAAY,CAAC,KAAK;QAC3B,OAAO;KACT,CAAC;AACL,CAAC"}
@@ -0,0 +1,139 @@
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 { MessageConnection } from 'vscode-jsonrpc';
10
+ import { type ResolvedMessage } from '../messages/primitives';
11
+ import { type RpcProxy } from '../rpc';
12
+ import type { DataPort } from './data-port';
13
+ /**
14
+ * The transport never opened. A complete sentence rather than a fragment: a
15
+ * fragment is nested inside a sentence the framework does not own, so no
16
+ * translator controls the whole and the composition cannot be made to read
17
+ * correctly in every language.
18
+ */
19
+ export declare const DATA_SERVER_CONNECT_FAILED: import("../messages/primitives").MessageDefinition<"Could not connect to the data server: {detail}">;
20
+ export declare const DATA_SERVER_NOT_READY: import("../messages/primitives").MessageDefinition<"The data server did not become ready: {detail}">;
21
+ /** The one method a connection needs of any server: its startup gate. */
22
+ export interface ReadyServer {
23
+ waitForReady(): Promise<void>;
24
+ }
25
+ /**
26
+ * Lifecycle reporting, for a host that raises warm-up UI around the two waits.
27
+ *
28
+ * Nothing fires until something asks for the connection — the generation is
29
+ * built on the first {@link RpcConnection.connected}. A host that wants the
30
+ * sequence at startup drives that call itself, or a workspace where nobody
31
+ * opens a document reports neither the connect nor the readiness its UI waits
32
+ * on.
33
+ */
34
+ export interface RpcConnectionLifecycle {
35
+ /** A generation is opening its transport, including on each reconnect. */
36
+ readonly onConnecting?: () => void;
37
+ /** The server's readiness gate has settled for a generation. */
38
+ readonly onReady?: () => void;
39
+ /**
40
+ * A generation failed to connect or to become ready. The failure is still
41
+ * reported through {@link DataPort.reportError} and still rejects the
42
+ * awaiting caller; this is for a host that also drives its own UI.
43
+ */
44
+ readonly onFailed?: (error: unknown) => void;
45
+ }
46
+ /** Everything {@link RpcConnection} needs once a subclass has resolved its defaults. */
47
+ export interface ResolvedRpcConnectionOptions<TClient extends object> {
48
+ readonly methodNamespace: string;
49
+ readonly clientMethods: readonly (keyof TClient & string)[];
50
+ readonly lifecycle: RpcConnectionLifecycle;
51
+ }
52
+ /** One connection generation: its connection, its proxy, and its readiness. */
53
+ interface Generation<TServer extends object> {
54
+ readonly connection: Promise<MessageConnection>;
55
+ readonly server: RpcProxy<TServer>;
56
+ /** Set on first use; the shared readiness gate for this generation. */
57
+ ready?: Promise<void>;
58
+ }
59
+ /**
60
+ * One JSON-RPC connection to a head, with the three jobs every host adapter
61
+ * would otherwise re-derive above {@link DataPort}:
62
+ *
63
+ * 1. **Build the typed proxy** over the port's connection, with the caller's
64
+ * wire prefix and client-method allowlist.
65
+ * 2. **Own the readiness gate** — `waitForReady` once per connection, shared
66
+ * across concurrent callers. A client can connect before the workspace walk
67
+ * finishes, and an early request is then answered correctly from an empty
68
+ * registry, which reads as a broken project tier rather than as a race.
69
+ * 3. **Own the reconnect policy**, by dropping its generation when the port
70
+ * disposes and building a fresh one on the next request.
71
+ *
72
+ * Bounded only by {@link ReadyServer}, so a head serving a slice of the data
73
+ * protocol — diagnostics alone, or one with methods excluded — is still a
74
+ * legal server here. `DataConnection` narrows the bound because its sessions
75
+ * call the document methods; nothing at this layer does.
76
+ */
77
+ export declare class RpcConnection<TServer extends ReadyServer, TClient extends object> {
78
+ protected readonly port: DataPort;
79
+ protected readonly client: TClient;
80
+ protected readonly methodNamespace: string;
81
+ protected readonly clientMethods: readonly (keyof TClient & string)[];
82
+ protected readonly lifecycle: RpcConnectionLifecycle;
83
+ /** The current generation, or `undefined` before the first request / after a teardown. */
84
+ protected generation?: Generation<TServer>;
85
+ protected disposed: boolean;
86
+ protected readonly portDisposeListener: {
87
+ dispose(): void;
88
+ };
89
+ constructor(port: DataPort, client: TClient, options: ResolvedRpcConnectionOptions<TClient>);
90
+ /**
91
+ * The connected, READY server proxy.
92
+ *
93
+ * Returns the proxy rather than `void` on purpose. A reconnect replaces the
94
+ * proxy, so a caller that cached one from an earlier call would go on
95
+ * addressing a dead connection with no error — handing it back per call
96
+ * makes the stale reference unrepresentable.
97
+ *
98
+ * Concurrent callers share one readiness promise, so `waitForReady` is
99
+ * awaited once per generation and not once per caller.
100
+ */
101
+ connected(): Promise<RpcProxy<TServer>>;
102
+ /**
103
+ * The current generation's proxy WITHOUT awaiting readiness — calls queue
104
+ * against the connection promise.
105
+ *
106
+ * **Protected, and that is the point.** An early request is answered
107
+ * correctly from a registry the workspace walk has not filled yet, which
108
+ * reads as a broken project tier rather than as a race — so every caller has
109
+ * to interpose the gate, and every caller forgetting to is a silent bug.
110
+ * {@link connected} is the public route and returns this same proxy once the
111
+ * gate has settled, which leaves nothing to forget. The one caller that
112
+ * cannot use it is {@link awaitReady}, whose whole job is running the gate.
113
+ *
114
+ * Read per access, never cached: a reconnect replaces the generation, and a
115
+ * held reference would address the dead one.
116
+ */
117
+ protected get server(): RpcProxy<TServer>;
118
+ /**
119
+ * Surface a failure the way this host does, through the port's sink.
120
+ *
121
+ * Here rather than only on the port so every participant sharing the
122
+ * connection reports through one route without being handed the transport.
123
+ */
124
+ reportError(error: unknown, reported: ResolvedMessage): void;
125
+ /** Tear down the current connection and stop tracking the port. Idempotent. */
126
+ dispose(): void;
127
+ /** The live generation, building one if there is none. */
128
+ protected currentGeneration(): Generation<TServer>;
129
+ /** Await the connection and the server's startup gate for one generation. */
130
+ protected awaitReady(generation: Generation<TServer>): Promise<void>;
131
+ /**
132
+ * Discard the current generation, disposing its connection if it opened.
133
+ * The next {@link connected} builds a fresh one.
134
+ */
135
+ protected dropGeneration(): void;
136
+ protected assertLive(): void;
137
+ }
138
+ export {};
139
+ //# sourceMappingURL=rpc-connection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc-connection.d.ts","sourceRoot":"","sources":["../../src/client/rpc-connection.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,KAAK,eAAe,EAAyC,MAAM,wBAAwB,CAAC;AACrG,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,QAAQ,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,sGAGtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,sGAGjC,CAAC;AAEF,yEAAyE;AACzE,MAAM,WAAW,WAAW;IACzB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAsB;IACpC,0EAA0E;IAC1E,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,gEAAgE;IAChE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,wFAAwF;AACxF,MAAM,WA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,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAU7C;;;;;;;;;;;;;;OAcG;IACH,SAAS,KAAK,MAAM,IAAI,QAAQ,CAAC,OAAO,CAAC,CAGxC;IAED;;;;;OAKG;IACH,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,GAAG,IAAI;IAI5D,+EAA+E;IAC/E,OAAO,IAAI,IAAI;IASf,0DAA0D;IAC1D,SAAS,CAAC,iBAAiB,IAAI,UAAU,CAAC,OAAO,CAAC;IAqBlD,6EAA6E;cAC7D,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB1E;;;OAGG;IACH,SAAS,CAAC,cAAc,IAAI,IAAI;IAShC,SAAS,CAAC,UAAU,IAAI,IAAI;CAK9B"}
@@ -0,0 +1,171 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (c) 2026 CrossBreeze, EclipseSource and others.
4
+ *
5
+ * This program and the accompanying materials are made available under the
6
+ * terms of the MIT License which is available in the project root.
7
+ *
8
+ * SPDX-License-Identifier: MIT
9
+ ********************************************************************************/
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.RpcConnection = exports.DATA_SERVER_NOT_READY = exports.DATA_SERVER_CONNECT_FAILED = void 0;
12
+ const primitives_1 = require("../messages/primitives");
13
+ const rpc_1 = require("../rpc");
14
+ /**
15
+ * The transport never opened. A complete sentence rather than a fragment: a
16
+ * fragment is nested inside a sentence the framework does not own, so no
17
+ * translator controls the whole and the composition cannot be made to read
18
+ * correctly in every language.
19
+ */
20
+ exports.DATA_SERVER_CONNECT_FAILED = (0, primitives_1.defineMessage)('hydranium/protocol/data-server-connect-failed', 'Could not connect to the data server: {detail}');
21
+ exports.DATA_SERVER_NOT_READY = (0, primitives_1.defineMessage)('hydranium/protocol/data-server-not-ready', 'The data server did not become ready: {detail}');
22
+ /**
23
+ * One JSON-RPC connection to a head, with the three jobs every host adapter
24
+ * would otherwise re-derive above {@link DataPort}:
25
+ *
26
+ * 1. **Build the typed proxy** over the port's connection, with the caller's
27
+ * wire prefix and client-method allowlist.
28
+ * 2. **Own the readiness gate** — `waitForReady` once per connection, shared
29
+ * across concurrent callers. A client can connect before the workspace walk
30
+ * finishes, and an early request is then answered correctly from an empty
31
+ * registry, which reads as a broken project tier rather than as a race.
32
+ * 3. **Own the reconnect policy**, by dropping its generation when the port
33
+ * disposes and building a fresh one on the next request.
34
+ *
35
+ * Bounded only by {@link ReadyServer}, so a head serving a slice of the data
36
+ * protocol — diagnostics alone, or one with methods excluded — is still a
37
+ * legal server here. `DataConnection` narrows the bound because its sessions
38
+ * call the document methods; nothing at this layer does.
39
+ */
40
+ class RpcConnection {
41
+ port;
42
+ client;
43
+ methodNamespace;
44
+ clientMethods;
45
+ lifecycle;
46
+ /** The current generation, or `undefined` before the first request / after a teardown. */
47
+ generation;
48
+ disposed = false;
49
+ portDisposeListener;
50
+ constructor(port, client, options) {
51
+ this.port = port;
52
+ this.client = client;
53
+ this.methodNamespace = options.methodNamespace;
54
+ this.clientMethods = options.clientMethods;
55
+ this.lifecycle = options.lifecycle;
56
+ this.portDisposeListener = this.port.onDispose(() => this.dropGeneration());
57
+ }
58
+ /**
59
+ * The connected, READY server proxy.
60
+ *
61
+ * Returns the proxy rather than `void` on purpose. A reconnect replaces the
62
+ * proxy, so a caller that cached one from an earlier call would go on
63
+ * addressing a dead connection with no error — handing it back per call
64
+ * makes the stale reference unrepresentable.
65
+ *
66
+ * Concurrent callers share one readiness promise, so `waitForReady` is
67
+ * awaited once per generation and not once per caller.
68
+ */
69
+ async connected() {
70
+ this.assertLive();
71
+ const generation = this.currentGeneration();
72
+ if (!generation.ready) {
73
+ generation.ready = this.awaitReady(generation);
74
+ }
75
+ await generation.ready;
76
+ return generation.server;
77
+ }
78
+ /**
79
+ * The current generation's proxy WITHOUT awaiting readiness — calls queue
80
+ * against the connection promise.
81
+ *
82
+ * **Protected, and that is the point.** An early request is answered
83
+ * correctly from a registry the workspace walk has not filled yet, which
84
+ * reads as a broken project tier rather than as a race — so every caller has
85
+ * to interpose the gate, and every caller forgetting to is a silent bug.
86
+ * {@link connected} is the public route and returns this same proxy once the
87
+ * gate has settled, which leaves nothing to forget. The one caller that
88
+ * cannot use it is {@link awaitReady}, whose whole job is running the gate.
89
+ *
90
+ * Read per access, never cached: a reconnect replaces the generation, and a
91
+ * held reference would address the dead one.
92
+ */
93
+ get server() {
94
+ this.assertLive();
95
+ return this.currentGeneration().server;
96
+ }
97
+ /**
98
+ * Surface a failure the way this host does, through the port's sink.
99
+ *
100
+ * Here rather than only on the port so every participant sharing the
101
+ * connection reports through one route without being handed the transport.
102
+ */
103
+ reportError(error, reported) {
104
+ this.port.reportError(error, reported);
105
+ }
106
+ /** Tear down the current connection and stop tracking the port. Idempotent. */
107
+ dispose() {
108
+ if (this.disposed) {
109
+ return;
110
+ }
111
+ this.disposed = true;
112
+ this.portDisposeListener.dispose();
113
+ this.dropGeneration();
114
+ }
115
+ /** The live generation, building one if there is none. */
116
+ currentGeneration() {
117
+ if (this.generation) {
118
+ return this.generation;
119
+ }
120
+ this.lifecycle.onConnecting?.();
121
+ const connection = this.port.connect();
122
+ // Rejection is reported here rather than left to float: an unhandled
123
+ // rejection on a connection promise is the failure mode that reads as
124
+ // "the model is empty" instead of "the transport never opened".
125
+ connection.catch((error) => this.port.reportError(error, (0, primitives_1.resolve)(exports.DATA_SERVER_CONNECT_FAILED, { detail: (0, primitives_1.describeError)(error) })));
126
+ const server = (0, rpc_1.createRpcProxy)(connection, {
127
+ methodNamespace: this.methodNamespace,
128
+ localTarget: this.client,
129
+ localMethods: this.clientMethods
130
+ });
131
+ this.generation = { connection, server };
132
+ return this.generation;
133
+ }
134
+ /** Await the connection and the server's startup gate for one generation. */
135
+ async awaitReady(generation) {
136
+ try {
137
+ await generation.connection;
138
+ await generation.server.waitForReady();
139
+ this.lifecycle.onReady?.();
140
+ }
141
+ catch (error) {
142
+ this.lifecycle.onFailed?.(error);
143
+ // Drop the generation so the next request retries rather than
144
+ // re-awaiting a settled rejection forever.
145
+ if (this.generation === generation) {
146
+ this.generation = undefined;
147
+ }
148
+ this.port.reportError(error, (0, primitives_1.resolve)(exports.DATA_SERVER_NOT_READY, { detail: (0, primitives_1.describeError)(error) }));
149
+ throw error;
150
+ }
151
+ }
152
+ /**
153
+ * Discard the current generation, disposing its connection if it opened.
154
+ * The next {@link connected} builds a fresh one.
155
+ */
156
+ dropGeneration() {
157
+ const generation = this.generation;
158
+ this.generation = undefined;
159
+ if (!generation) {
160
+ return;
161
+ }
162
+ generation.connection.then(connection => connection.dispose()).catch(() => undefined);
163
+ }
164
+ assertLive() {
165
+ if (this.disposed) {
166
+ throw new Error(`${this.constructor.name} is disposed`);
167
+ }
168
+ }
169
+ }
170
+ exports.RpcConnection = RpcConnection;
171
+ //# sourceMappingURL=rpc-connection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc-connection.js","sourceRoot":"","sources":["../../src/client/rpc-connection.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;;AAGlF,uDAAqG;AACrG,gCAAuD;AAGvD;;;;;GAKG;AACU,QAAA,0BAA0B,GAAG,IAAA,0BAAa,EACpD,+CAA+C,EAC/C,gDAAgD,CAClD,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAA,0BAAa,EAC/C,0CAA0C,EAC1C,gDAAgD,CAClD,CAAC;AA4CF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,aAAa;IAUD;IACA;IAVH,eAAe,CAAS;IACxB,aAAa,CAAsC;IACnD,SAAS,CAAyB;IACrD,0FAA0F;IAChF,UAAU,CAAuB;IACjC,QAAQ,GAAG,KAAK,CAAC;IACR,mBAAmB,CAAsB;IAE5D,YACsB,IAAc,EACd,MAAe,EAClC,OAA8C;QAF3B,SAAI,GAAJ,IAAI,CAAU;QACd,WAAM,GAAN,MAAM,CAAS;QAGlC,IAAI,CAAC,eAAe,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EAAE,IAAA,oBAAO,EAAC,6BAAqB,EAAE,EAAE,MAAM,EAAE,IAAA,0BAAa,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;YAC/F,MAAM,KAAK,CAAC;QACf,CAAC;IACJ,CAAC;IAED;;;OAGG;IACO,cAAc;QACrB,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,UAAU,EAAE,CAAC;YACf,OAAO;QACV,CAAC;QACD,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IACzF,CAAC;IAES,UAAU;QACjB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,cAAc,CAAC,CAAC;QAC3D,CAAC;IACJ,CAAC;CACH;AA3ID,sCA2IC"}
@@ -0,0 +1,41 @@
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
+ * Well-known values of the wire's `clientId` / `sourceClientId` field.
11
+ *
12
+ * The framework tracks each document as belonging to one or more "clients" —
13
+ * typically an LSP-text client (Monaco, VS Code, …), a GLSP diagram client,
14
+ * and/or a structured-form client — and keys its holds and watches per
15
+ * `(uri, clientId)`. These three values are not real participants, so a client
16
+ * minting its own id must avoid them.
17
+ *
18
+ * **Here rather than in the server package, because the side that has to
19
+ * RECOGNISE them is the client.** An inbound `onDocumentUpdated` carries
20
+ * `sourceClientId`, and a consumer deciding what to do with it is asking which
21
+ * of these it is — so a frontend would otherwise have to depend on the server
22
+ * tier to name three strings, and in practice retypes the literal instead.
23
+ */
24
+ /** Identifier for an LSP-text client (Monaco, VS Code, …). */
25
+ export declare const LANGUAGE_CLIENT_ID = "language-client";
26
+ /** Fallback identifier when a document's author is unknown (e.g. cold workspace-init load). */
27
+ export declare const UNKNOWN_CLIENT_ID = "unknown";
28
+ /**
29
+ * Synthetic author id on the `onDocumentUpdated` broadcast a data-server
30
+ * emits after the LAST client closed a document and the framework rebuilt it
31
+ * from its disk content (discarding unsaved in-session edits). Not a real
32
+ * client: it lets consumers distinguish the revert broadcast from
33
+ * client-authored updates.
34
+ */
35
+ export declare const REVERT_ON_CLOSE_CLIENT_ID = "revert-on-close";
36
+ /**
37
+ * Every id the framework reserves, for a client checking that the identity it
38
+ * is about to mint collides with none of them.
39
+ */
40
+ export declare const FRAMEWORK_CLIENT_IDS: readonly string[];
41
+ //# sourceMappingURL=client-ids.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-ids.d.ts","sourceRoot":"","sources":["../src/client-ids.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF;;;;;;;;;;;;;;GAcG;AAEH,8DAA8D;AAC9D,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,+FAA+F;AAC/F,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,oBAAoB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAAuE,CAAC"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /********************************************************************************
3
+ * Copyright (c) 2026 CrossBreeze, EclipseSource and others.
4
+ *
5
+ * This program and the accompanying materials are made available under the
6
+ * terms of the MIT License which is available in the project root.
7
+ *
8
+ * SPDX-License-Identifier: MIT
9
+ ********************************************************************************/
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.FRAMEWORK_CLIENT_IDS = exports.REVERT_ON_CLOSE_CLIENT_ID = exports.UNKNOWN_CLIENT_ID = exports.LANGUAGE_CLIENT_ID = void 0;
12
+ /**
13
+ * Well-known values of the wire's `clientId` / `sourceClientId` field.
14
+ *
15
+ * The framework tracks each document as belonging to one or more "clients" —
16
+ * typically an LSP-text client (Monaco, VS Code, …), a GLSP diagram client,
17
+ * and/or a structured-form client — and keys its holds and watches per
18
+ * `(uri, clientId)`. These three values are not real participants, so a client
19
+ * minting its own id must avoid them.
20
+ *
21
+ * **Here rather than in the server package, because the side that has to
22
+ * RECOGNISE them is the client.** An inbound `onDocumentUpdated` carries
23
+ * `sourceClientId`, and a consumer deciding what to do with it is asking which
24
+ * of these it is — so a frontend would otherwise have to depend on the server
25
+ * tier to name three strings, and in practice retypes the literal instead.
26
+ */
27
+ /** Identifier for an LSP-text client (Monaco, VS Code, …). */
28
+ exports.LANGUAGE_CLIENT_ID = 'language-client';
29
+ /** Fallback identifier when a document's author is unknown (e.g. cold workspace-init load). */
30
+ exports.UNKNOWN_CLIENT_ID = 'unknown';
31
+ /**
32
+ * Synthetic author id on the `onDocumentUpdated` broadcast a data-server
33
+ * emits after the LAST client closed a document and the framework rebuilt it
34
+ * from its disk content (discarding unsaved in-session edits). Not a real
35
+ * client: it lets consumers distinguish the revert broadcast from
36
+ * client-authored updates.
37
+ */
38
+ exports.REVERT_ON_CLOSE_CLIENT_ID = 'revert-on-close';
39
+ /**
40
+ * Every id the framework reserves, for a client checking that the identity it
41
+ * is about to mint collides with none of them.
42
+ */
43
+ exports.FRAMEWORK_CLIENT_IDS = [exports.LANGUAGE_CLIENT_ID, exports.UNKNOWN_CLIENT_ID, exports.REVERT_ON_CLOSE_CLIENT_ID];
44
+ //# sourceMappingURL=client-ids.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-ids.js","sourceRoot":"","sources":["../src/client-ids.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;;AAElF;;;;;;;;;;;;;;GAcG;AAEH,8DAA8D;AACjD,QAAA,kBAAkB,GAAG,iBAAiB,CAAC;AAEpD,+FAA+F;AAClF,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAE3C;;;;;;GAMG;AACU,QAAA,yBAAyB,GAAG,iBAAiB,CAAC;AAE3D;;;GAGG;AACU,QAAA,oBAAoB,GAAsB,CAAC,0BAAkB,EAAE,yBAAiB,EAAE,iCAAyB,CAAC,CAAC"}
@@ -25,7 +25,7 @@ export declare const DATA_SERVER_PROTOCOL_METHODS: readonly ["openModelDocument"
25
25
  */
26
26
  export declare const REFERENCE_SERVER_PROTOCOL_METHODS: readonly ["findReferenceCandidates", "resolveReference", "findNextName"];
27
27
  /** Notification-method names on {@link DocumentClientProtocol}. */
28
- export declare const DOCUMENT_CLIENT_PROTOCOL_METHODS: readonly ["onDocumentUpdated", "onDocumentSaved"];
28
+ export declare const DOCUMENT_CLIENT_PROTOCOL_METHODS: readonly ["onDocumentUpdated", "onDocumentSaved", "onDocumentDeleted", "onDocumentsBuilt"];
29
29
  /** Notification-method names on {@link ProjectClientProtocol}. */
30
30
  export declare const PROJECT_CLIENT_PROTOCOL_METHODS: readonly ["onProjectsChanged"];
31
31
  /**
@@ -35,5 +35,5 @@ export declare const PROJECT_CLIENT_PROTOCOL_METHODS: readonly ["onProjectsChang
35
35
  * data head's connection routes `<methodNamespace>onDocumentUpdated` etc. to
36
36
  * the bound client target.
37
37
  */
38
- export declare const DATA_CLIENT_PROTOCOL_METHODS: readonly ["onDocumentUpdated", "onDocumentSaved", "onProjectsChanged"];
38
+ export declare const DATA_CLIENT_PROTOCOL_METHODS: readonly ["onDocumentUpdated", "onDocumentSaved", "onDocumentDeleted", "onDocumentsBuilt", "onProjectsChanged"];
39
39
  //# sourceMappingURL=data-protocol-methods.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-protocol-methods.d.ts","sourceRoot":"","sources":["../../src/data/data-protocol-methods.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAalF,8DAA8D;AAC9D,eAAO,MAAM,gCAAgC,oLAS6C,CAAC;AAE3F,6DAA6D;AAC7D,eAAO,MAAM,+BAA+B,8CAE3C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,uNAG6C,CAAC;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,0EAI6C,CAAC;AAE5F,mEAAmE;AACnE,eAAO,MAAM,gCAAgC,mDAE5C,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,+BAA+B,gCAA+F,CAAC;AAE5I;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,wEAG6C,CAAC"}
1
+ {"version":3,"file":"data-protocol-methods.d.ts","sourceRoot":"","sources":["../../src/data/data-protocol-methods.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAalF,8DAA8D;AAC9D,eAAO,MAAM,gCAAgC,oLAS6C,CAAC;AAE3F,6DAA6D;AAC7D,eAAO,MAAM,+BAA+B,8CAE3C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,uNAG6C,CAAC;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,0EAI6C,CAAC;AAE5F,mEAAmE;AACnE,eAAO,MAAM,gCAAgC,4FAK6C,CAAC;AAE3F,kEAAkE;AAClE,eAAO,MAAM,+BAA+B,gCAA+F,CAAC;AAE5I;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,iHAG6C,CAAC"}
@@ -44,7 +44,12 @@ exports.REFERENCE_SERVER_PROTOCOL_METHODS = [
44
44
  'findNextName'
45
45
  ];
46
46
  /** Notification-method names on {@link DocumentClientProtocol}. */
47
- exports.DOCUMENT_CLIENT_PROTOCOL_METHODS = ['onDocumentUpdated', 'onDocumentSaved'];
47
+ exports.DOCUMENT_CLIENT_PROTOCOL_METHODS = [
48
+ 'onDocumentUpdated',
49
+ 'onDocumentSaved',
50
+ 'onDocumentDeleted',
51
+ 'onDocumentsBuilt'
52
+ ];
48
53
  /** Notification-method names on {@link ProjectClientProtocol}. */
49
54
  exports.PROJECT_CLIENT_PROTOCOL_METHODS = ['onProjectsChanged'];
50
55
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"data-protocol-methods.js","sourceRoot":"","sources":["../../src/data/data-protocol-methods.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;;AAalF,8DAA8D;AACjD,QAAA,gCAAgC,GAAG;IAC7C,mBAAmB;IACnB,oBAAoB;IACpB,kBAAkB;IAClB,qBAAqB;IACrB,mBAAmB;IACnB,oBAAoB;IACpB,sBAAsB;IACtB,cAAc;CACyE,CAAC;AAE3F,6DAA6D;AAChD,QAAA,+BAA+B,GAAG,CAAC,aAAa,EAAE,kBAAkB,CAEhF,CAAC;AAEF;;;;;GAKG;AACU,QAAA,4BAA4B,GAAG;IACzC,GAAG,wCAAgC;IACnC,GAAG,uCAA+B;CACiD,CAAC;AAEvF;;;;;GAKG;AACU,QAAA,iCAAiC,GAAG;IAC9C,yBAAyB;IACzB,kBAAkB;IAClB,cAAc;CAC0E,CAAC;AAE5F,mEAAmE;AACtD,QAAA,gCAAgC,GAAG,CAAC,mBAAmB,EAAE,iBAAiB,CAEtF,CAAC;AAEF,kEAAkE;AACrD,QAAA,+BAA+B,GAAG,CAAC,mBAAmB,CAAwE,CAAC;AAE5I;;;;;;GAMG;AACU,QAAA,4BAA4B,GAAG;IACzC,GAAG,wCAAgC;IACnC,GAAG,uCAA+B;CACiD,CAAC"}
1
+ {"version":3,"file":"data-protocol-methods.js","sourceRoot":"","sources":["../../src/data/data-protocol-methods.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;;AAalF,8DAA8D;AACjD,QAAA,gCAAgC,GAAG;IAC7C,mBAAmB;IACnB,oBAAoB;IACpB,kBAAkB;IAClB,qBAAqB;IACrB,mBAAmB;IACnB,oBAAoB;IACpB,sBAAsB;IACtB,cAAc;CACyE,CAAC;AAE3F,6DAA6D;AAChD,QAAA,+BAA+B,GAAG,CAAC,aAAa,EAAE,kBAAkB,CAEhF,CAAC;AAEF;;;;;GAKG;AACU,QAAA,4BAA4B,GAAG;IACzC,GAAG,wCAAgC;IACnC,GAAG,uCAA+B;CACiD,CAAC;AAEvF;;;;;GAKG;AACU,QAAA,iCAAiC,GAAG;IAC9C,yBAAyB;IACzB,kBAAkB;IAClB,cAAc;CAC0E,CAAC;AAE5F,mEAAmE;AACtD,QAAA,gCAAgC,GAAG;IAC7C,mBAAmB;IACnB,iBAAiB;IACjB,mBAAmB;IACnB,kBAAkB;CACqE,CAAC;AAE3F,kEAAkE;AACrD,QAAA,+BAA+B,GAAG,CAAC,mBAAmB,CAAwE,CAAC;AAE5I;;;;;;GAMG;AACU,QAAA,4BAA4B,GAAG;IACzC,GAAG,wCAAgC;IACnC,GAAG,uCAA+B;CACiD,CAAC"}