@hydranium/data-client-theia 1.0.0-next.25 → 1.0.0-next.28

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.
@@ -25,6 +25,16 @@ export interface DataServerConnectionHandlerOptions {
25
25
  * Defaults to the framework `DATA_SERVER_PORT_COMMAND`; override to match
26
26
  * an adopter's established id. */
27
27
  readonly portCommand?: string;
28
+ /**
29
+ * Product name for the connect-failure dialog this handler raises.
30
+ *
31
+ * It reaches the adopter's UI verbatim, so the framework default leaks a
32
+ * framework noun into a product that is not ours. Not a translation concern —
33
+ * routing it through a catalogue would ask an adopter to "translate" English
34
+ * into their own product name, and would make their branding
35
+ * locale-dependent.
36
+ */
37
+ readonly serverName?: string;
28
38
  readonly findPortTimeout?: number;
29
39
  readonly findPortAttempts?: number;
30
40
  readonly connectTimeoutMs?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"data-server-connection-handler.d.ts","sourceRoot":"","sources":["../../src/node/data-server-connection-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,yCAAyC,EAAE,MAAM,kCAAkC,CAAC;AAE7F,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,KAAK,KAAK,GAAG,MAAM,UAAU,CAAC;AAGrC;;;;kBAIkB;AAClB,MAAM,WAAW,kCAAkC;IAChD;;;;yDAIqD;IACrD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;uCAEmC;IACnC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC;;;;;;OAMG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC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G,UAAU;CAG7F"}
@@ -43,7 +43,7 @@ let DataServerConnectionHandler = class DataServerConnectionHandler extends node
43
43
  path: options.servicePath ?? protocol_1.DATA_SERVER_PATH,
44
44
  portCommand: options.portCommand ?? protocol_1.DATA_SERVER_PORT_COMMAND,
45
45
  logComponent: 'DataServer',
46
- serverName: 'Model Server',
46
+ serverName: options.serverName ?? 'Model Server',
47
47
  findPortTimeout: options.findPortTimeout,
48
48
  findPortAttempts: options.findPortAttempts,
49
49
  connectTimeoutMs: options.connectTimeoutMs,
@@ -1 +1 @@
1
- {"version":3,"file":"data-server-connection-handler.js","sourceRoot":"","sources":["../../src/node/data-server-connection-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;;;;;;;;;;;;;;AAElF,2DAA6F;AAC7F,kDAAiF;AAEjF,4DAAqE;AAErE,yEAAoE;AA+BpE;;;;;;;;;;;GAWG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,gDAAyC;IACvF,YAAyB,UAA8C,EAAE;QACtE,KAAK,CAAC;YACH,IAAI,EAAE,OAAO,CAAC,WAAW,IAAI,2BAAgB;YAC7C,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,mCAAwB;YAC5D,YAAY,EAAE,YAAY;YAC1B,UAAU,EAAE,cAAc;YAC1B,eAAe,EAAE,OAAO,CAAC,eAAe;YACxC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,eAAe,EAAE,OAAO,CAAC,eAAe;SAC1C,CAAC,CAAC;IACN,CAAC;IAES,yBAAyB,CAAC,aAAsB,EAAE,MAAkB;QAC3E,OAAO,IAAI,iDAAsB,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;CACH,CAAA;AAjBY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,sBAAU,GAAE;IAEG,WAAA,IAAA,qBAAS,GAAE,CAAA;;GADd,2BAA2B,CAiBvC"}
1
+ {"version":3,"file":"data-server-connection-handler.js","sourceRoot":"","sources":["../../src/node/data-server-connection-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;;;;;;;;;;;;;;AAElF,2DAA6F;AAC7F,kDAAiF;AAEjF,4DAAqE;AAErE,yEAAoE;AAyCpE;;;;;;;;;;;GAWG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,gDAAyC;IACvF,YAAyB,UAA8C,EAAE;QACtE,KAAK,CAAC;YACH,IAAI,EAAE,OAAO,CAAC,WAAW,IAAI,2BAAgB;YAC7C,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,mCAAwB;YAC5D,YAAY,EAAE,YAAY;YAC1B,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,cAAc;YAChD,eAAe,EAAE,OAAO,CAAC,eAAe;YACxC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,eAAe,EAAE,OAAO,CAAC,eAAe;SAC1C,CAAC,CAAC;IACN,CAAC;IAES,yBAAyB,CAAC,aAAsB,EAAE,MAAkB;QAC3E,OAAO,IAAI,iDAAsB,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;CACH,CAAA;AAjBY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,sBAAU,GAAE;IAEG,WAAA,IAAA,qBAAS,GAAE,CAAA;;GADd,2BAA2B,CAiBvC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hydranium/data-client-theia",
3
- "version": "1.0.0-next.25",
3
+ "version": "1.0.0-next.28",
4
4
  "description": "Theia-coupled client primitives for the hydranium data-server protocol head; companion of @hydranium/data-server. Bridges framework typed errors (e.g. ConflictError) across Theia's RPC boundary so their code + data survive the wire.",
5
5
  "keywords": [
6
6
  "hydranium",
@@ -70,9 +70,9 @@
70
70
  "watch": "tsc -b -w --preserveWatchOutput"
71
71
  },
72
72
  "devDependencies": {
73
- "@hydranium/client-theia": "1.0.0-next.25",
74
- "@hydranium/core": "1.0.0-next.25",
75
- "@hydranium/protocol": "1.0.0-next.25",
73
+ "@hydranium/client-theia": "1.0.0-next.28",
74
+ "@hydranium/core": "1.0.0-next.28",
75
+ "@hydranium/protocol": "1.0.0-next.28",
76
76
  "@theia/core": "^1.70.0",
77
77
  "@theia/workspace": "^1.70.0",
78
78
  "@types/node": "^22.0.0",
@@ -83,9 +83,9 @@
83
83
  "vscode-jsonrpc": "9.0.1"
84
84
  },
85
85
  "peerDependencies": {
86
- "@hydranium/client-theia": "1.0.0-next.25",
87
- "@hydranium/core": "1.0.0-next.25",
88
- "@hydranium/protocol": "1.0.0-next.25",
86
+ "@hydranium/client-theia": "1.0.0-next.28",
87
+ "@hydranium/core": "1.0.0-next.28",
88
+ "@hydranium/protocol": "1.0.0-next.28",
89
89
  "@theia/core": "^1.70.0",
90
90
  "@theia/workspace": "^1.70.0",
91
91
  "inversify": "^6.0.0",
@@ -30,6 +30,16 @@ export interface DataServerConnectionHandlerOptions {
30
30
  * Defaults to the framework `DATA_SERVER_PORT_COMMAND`; override to match
31
31
  * an adopter's established id. */
32
32
  readonly portCommand?: string;
33
+ /**
34
+ * Product name for the connect-failure dialog this handler raises.
35
+ *
36
+ * It reaches the adopter's UI verbatim, so the framework default leaks a
37
+ * framework noun into a product that is not ours. Not a translation concern —
38
+ * routing it through a catalogue would ask an adopter to "translate" English
39
+ * into their own product name, and would make their branding
40
+ * locale-dependent.
41
+ */
42
+ readonly serverName?: string;
33
43
  readonly findPortTimeout?: number;
34
44
  readonly findPortAttempts?: number;
35
45
  readonly connectTimeoutMs?: number;
@@ -62,7 +72,7 @@ export class DataServerConnectionHandler extends AbstractSocketForwardingConnect
62
72
  path: options.servicePath ?? DATA_SERVER_PATH,
63
73
  portCommand: options.portCommand ?? DATA_SERVER_PORT_COMMAND,
64
74
  logComponent: 'DataServer',
65
- serverName: 'Model Server',
75
+ serverName: options.serverName ?? 'Model Server',
66
76
  findPortTimeout: options.findPortTimeout,
67
77
  findPortAttempts: options.findPortAttempts,
68
78
  connectTimeoutMs: options.connectTimeoutMs,