@livedesk/client 0.1.17 → 0.1.19

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.
@@ -6,7 +6,7 @@ import path from 'path';
6
6
  import crypto from 'crypto';
7
7
  import { promises as fs, statfsSync } from 'fs';
8
8
 
9
- const AGENT_VERSION = '0.1.17-livedesk.1';
9
+ const AGENT_VERSION = '0.1.19-livedesk.1';
10
10
  const DEFAULT_MANAGER = '127.0.0.1:5197';
11
11
  const DEFAULT_HEARTBEAT_MS = 5000;
12
12
  const DEFAULT_AI_MODEL = 'gpt-5.4-mini';
@@ -62,6 +62,15 @@ when a packaged RemoteFast runtime is unavailable.
62
62
  `.trimStart());
63
63
  }
64
64
 
65
+ function readPackageVersion() {
66
+ try {
67
+ const packageInfo = JSON.parse(readFileSync(join(packageRoot, 'package.json'), 'utf8'));
68
+ return packageInfo.version || '0.0.0';
69
+ } catch {
70
+ return '0.0.0';
71
+ }
72
+ }
73
+
65
74
  function normalizeEngine(value) {
66
75
  const engine = String(value || 'auto').trim().toLowerCase();
67
76
  if (engine === 'c#' || engine === 'csharp' || engine === 'fast') {
@@ -635,6 +644,13 @@ function getFastRuntime() {
635
644
  dll: join(packageRoot, 'fast', 'osx-x64', 'mindexec-remote-fast.dll')
636
645
  };
637
646
  }
647
+ if (platform === 'linux' && arch === 'x64') {
648
+ return {
649
+ rid: 'linux-x64',
650
+ executable: join(packageRoot, 'fast', 'linux-x64', 'mindexec-remote-fast'),
651
+ dll: join(packageRoot, 'fast', 'linux-x64', 'mindexec-remote-fast.dll')
652
+ };
653
+ }
638
654
 
639
655
  return null;
640
656
  }
@@ -819,6 +835,10 @@ async function main() {
819
835
  printHelp();
820
836
  return;
821
837
  }
838
+ if (parsed.version) {
839
+ console.log(readPackageVersion());
840
+ return;
841
+ }
822
842
 
823
843
  const prepared = await prepareLoginConnection(parsed);
824
844
  const fastRuntime = getFastRuntime();
@@ -0,0 +1,24 @@
1
+ {
2
+ "runtimeTarget": {
3
+ "name": ".NETCoreApp,Version=v9.0/linux-x64",
4
+ "signature": ""
5
+ },
6
+ "compilationOptions": {},
7
+ "targets": {
8
+ ".NETCoreApp,Version=v9.0": {},
9
+ ".NETCoreApp,Version=v9.0/linux-x64": {
10
+ "mindexec-remote-fast/1.0.0": {
11
+ "runtime": {
12
+ "mindexec-remote-fast.dll": {}
13
+ }
14
+ }
15
+ }
16
+ },
17
+ "libraries": {
18
+ "mindexec-remote-fast/1.0.0": {
19
+ "type": "project",
20
+ "serviceable": false,
21
+ "sha512": ""
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "runtimeOptions": {
3
+ "tfm": "net9.0",
4
+ "framework": {
5
+ "name": "Microsoft.NETCore.App",
6
+ "version": "9.0.0"
7
+ },
8
+ "configProperties": {
9
+ "System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
10
+ "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
11
+ }
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livedesk/client",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "LiveDesk local remote client",
5
5
  "type": "module",
6
6
  "bin": {