covenant-bridge 0.3.2 → 0.4.0
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/dist/backend.js +47 -36
- package/dist/backend.js.map +1 -1
- package/package.json +6 -6
package/dist/backend.js
CHANGED
|
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../node_modules/.pnpm/@linuxcnc-node+core@
|
|
36
|
+
// ../node_modules/.pnpm/@linuxcnc-node+core@3.0.0/node_modules/@linuxcnc-node/core/dist/constants.js
|
|
37
37
|
var require_constants = __commonJS({
|
|
38
|
-
"../node_modules/.pnpm/@linuxcnc-node+core@
|
|
38
|
+
"../node_modules/.pnpm/@linuxcnc-node+core@3.0.0/node_modules/@linuxcnc-node/core/dist/constants.js"(exports2) {
|
|
39
39
|
"use strict";
|
|
40
40
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
41
41
|
exports2.addon = void 0;
|
|
@@ -93,9 +93,9 @@ var require_dist = __commonJS({
|
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
// ../node_modules/.pnpm/@linuxcnc-node+core@
|
|
96
|
+
// ../node_modules/.pnpm/@linuxcnc-node+core@3.0.0/node_modules/@linuxcnc-node/core/dist/statChannel.js
|
|
97
97
|
var require_statChannel = __commonJS({
|
|
98
|
-
"../node_modules/.pnpm/@linuxcnc-node+core@
|
|
98
|
+
"../node_modules/.pnpm/@linuxcnc-node+core@3.0.0/node_modules/@linuxcnc-node/core/dist/statChannel.js"(exports2) {
|
|
99
99
|
"use strict";
|
|
100
100
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
101
101
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -298,9 +298,9 @@ var require_statChannel = __commonJS({
|
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
300
|
|
|
301
|
-
// ../node_modules/.pnpm/@linuxcnc-node+types@
|
|
301
|
+
// ../node_modules/.pnpm/@linuxcnc-node+types@3.0.0/node_modules/@linuxcnc-node/types/dist/constants.js
|
|
302
302
|
var require_constants2 = __commonJS({
|
|
303
|
-
"../node_modules/.pnpm/@linuxcnc-node+types@
|
|
303
|
+
"../node_modules/.pnpm/@linuxcnc-node+types@3.0.0/node_modules/@linuxcnc-node/types/dist/constants.js"(exports2) {
|
|
304
304
|
"use strict";
|
|
305
305
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
306
306
|
exports2.EmcDebug = exports2.OrientState = exports2.JointType = exports2.NmlMessageType = exports2.ProgramUnits = exports2.RcsStatus = exports2.KinematicsType = exports2.MotionType = exports2.TrajMode = exports2.InterpState = exports2.ExecState = exports2.TaskState = exports2.TaskMode = void 0;
|
|
@@ -414,9 +414,9 @@ var require_constants2 = __commonJS({
|
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
416
|
|
|
417
|
-
// ../node_modules/.pnpm/@linuxcnc-node+types@
|
|
417
|
+
// ../node_modules/.pnpm/@linuxcnc-node+types@3.0.0/node_modules/@linuxcnc-node/types/dist/core.js
|
|
418
418
|
var require_core = __commonJS({
|
|
419
|
-
"../node_modules/.pnpm/@linuxcnc-node+types@
|
|
419
|
+
"../node_modules/.pnpm/@linuxcnc-node+types@3.0.0/node_modules/@linuxcnc-node/types/dist/core.js"(exports2) {
|
|
420
420
|
"use strict";
|
|
421
421
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
422
422
|
exports2.PositionIndex = exports2.PositionLoggerIndex = exports2.POSITION_STRIDE = void 0;
|
|
@@ -449,17 +449,17 @@ var require_core = __commonJS({
|
|
|
449
449
|
}
|
|
450
450
|
});
|
|
451
451
|
|
|
452
|
-
// ../node_modules/.pnpm/@linuxcnc-node+types@
|
|
452
|
+
// ../node_modules/.pnpm/@linuxcnc-node+types@3.0.0/node_modules/@linuxcnc-node/types/dist/hal.js
|
|
453
453
|
var require_hal = __commonJS({
|
|
454
|
-
"../node_modules/.pnpm/@linuxcnc-node+types@
|
|
454
|
+
"../node_modules/.pnpm/@linuxcnc-node+types@3.0.0/node_modules/@linuxcnc-node/types/dist/hal.js"(exports2) {
|
|
455
455
|
"use strict";
|
|
456
456
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
457
457
|
}
|
|
458
458
|
});
|
|
459
459
|
|
|
460
|
-
// ../node_modules/.pnpm/@linuxcnc-node+types@
|
|
460
|
+
// ../node_modules/.pnpm/@linuxcnc-node+types@3.0.0/node_modules/@linuxcnc-node/types/dist/gcode.js
|
|
461
461
|
var require_gcode = __commonJS({
|
|
462
|
-
"../node_modules/.pnpm/@linuxcnc-node+types@
|
|
462
|
+
"../node_modules/.pnpm/@linuxcnc-node+types@3.0.0/node_modules/@linuxcnc-node/types/dist/gcode.js"(exports2) {
|
|
463
463
|
"use strict";
|
|
464
464
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
465
465
|
exports2.Plane = exports2.OperationType = void 0;
|
|
@@ -494,9 +494,9 @@ var require_gcode = __commonJS({
|
|
|
494
494
|
}
|
|
495
495
|
});
|
|
496
496
|
|
|
497
|
-
// ../node_modules/.pnpm/@linuxcnc-node+types@
|
|
497
|
+
// ../node_modules/.pnpm/@linuxcnc-node+types@3.0.0/node_modules/@linuxcnc-node/types/dist/index.js
|
|
498
498
|
var require_dist2 = __commonJS({
|
|
499
|
-
"../node_modules/.pnpm/@linuxcnc-node+types@
|
|
499
|
+
"../node_modules/.pnpm/@linuxcnc-node+types@3.0.0/node_modules/@linuxcnc-node/types/dist/index.js"(exports2) {
|
|
500
500
|
"use strict";
|
|
501
501
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
502
502
|
if (k2 === void 0) k2 = k;
|
|
@@ -522,9 +522,9 @@ var require_dist2 = __commonJS({
|
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
524
|
|
|
525
|
-
// ../node_modules/.pnpm/@linuxcnc-node+core@
|
|
525
|
+
// ../node_modules/.pnpm/@linuxcnc-node+core@3.0.0/node_modules/@linuxcnc-node/core/dist/commandChannel.js
|
|
526
526
|
var require_commandChannel = __commonJS({
|
|
527
|
-
"../node_modules/.pnpm/@linuxcnc-node+core@
|
|
527
|
+
"../node_modules/.pnpm/@linuxcnc-node+core@3.0.0/node_modules/@linuxcnc-node/core/dist/commandChannel.js"(exports2) {
|
|
528
528
|
"use strict";
|
|
529
529
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
530
530
|
exports2.CommandChannel = void 0;
|
|
@@ -619,6 +619,14 @@ var require_commandChannel = __commonJS({
|
|
|
619
619
|
async programOpen(filePath) {
|
|
620
620
|
return this.exec(this.nativeInstance.programOpen, filePath);
|
|
621
621
|
}
|
|
622
|
+
/**
|
|
623
|
+
* Closes the currently loaded G-code program
|
|
624
|
+
*
|
|
625
|
+
* @returns Promise resolving to RcsStatus indicating command completion
|
|
626
|
+
*/
|
|
627
|
+
async programClose() {
|
|
628
|
+
return this.exec(this.nativeInstance.programClose);
|
|
629
|
+
}
|
|
622
630
|
/**
|
|
623
631
|
* Runs the currently loaded G-code program
|
|
624
632
|
*
|
|
@@ -1438,9 +1446,9 @@ var require_commandChannel = __commonJS({
|
|
|
1438
1446
|
}
|
|
1439
1447
|
});
|
|
1440
1448
|
|
|
1441
|
-
// ../node_modules/.pnpm/@linuxcnc-node+core@
|
|
1449
|
+
// ../node_modules/.pnpm/@linuxcnc-node+core@3.0.0/node_modules/@linuxcnc-node/core/dist/errorChannel.js
|
|
1442
1450
|
var require_errorChannel = __commonJS({
|
|
1443
|
-
"../node_modules/.pnpm/@linuxcnc-node+core@
|
|
1451
|
+
"../node_modules/.pnpm/@linuxcnc-node+core@3.0.0/node_modules/@linuxcnc-node/core/dist/errorChannel.js"(exports2) {
|
|
1444
1452
|
"use strict";
|
|
1445
1453
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1446
1454
|
exports2.ErrorChannel = exports2.DEFAULT_ERROR_POLL_INTERVAL = void 0;
|
|
@@ -1505,9 +1513,9 @@ var require_errorChannel = __commonJS({
|
|
|
1505
1513
|
}
|
|
1506
1514
|
});
|
|
1507
1515
|
|
|
1508
|
-
// ../node_modules/.pnpm/@linuxcnc-node+core@
|
|
1516
|
+
// ../node_modules/.pnpm/@linuxcnc-node+core@3.0.0/node_modules/@linuxcnc-node/core/dist/positionLogger.js
|
|
1509
1517
|
var require_positionLogger = __commonJS({
|
|
1510
|
-
"../node_modules/.pnpm/@linuxcnc-node+core@
|
|
1518
|
+
"../node_modules/.pnpm/@linuxcnc-node+core@3.0.0/node_modules/@linuxcnc-node/core/dist/positionLogger.js"(exports2) {
|
|
1511
1519
|
"use strict";
|
|
1512
1520
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1513
1521
|
exports2.PositionLogger = void 0;
|
|
@@ -1603,9 +1611,9 @@ var require_positionLogger = __commonJS({
|
|
|
1603
1611
|
}
|
|
1604
1612
|
});
|
|
1605
1613
|
|
|
1606
|
-
// ../node_modules/.pnpm/@linuxcnc-node+core@
|
|
1614
|
+
// ../node_modules/.pnpm/@linuxcnc-node+core@3.0.0/node_modules/@linuxcnc-node/core/dist/index.js
|
|
1607
1615
|
var require_dist3 = __commonJS({
|
|
1608
|
-
"../node_modules/.pnpm/@linuxcnc-node+core@
|
|
1616
|
+
"../node_modules/.pnpm/@linuxcnc-node+core@3.0.0/node_modules/@linuxcnc-node/core/dist/index.js"(exports2) {
|
|
1609
1617
|
"use strict";
|
|
1610
1618
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1611
1619
|
exports2.PositionLogger = exports2.ErrorChannel = exports2.CommandChannel = exports2.StatChannel = void 0;
|
|
@@ -1639,9 +1647,9 @@ var require_dist3 = __commonJS({
|
|
|
1639
1647
|
}
|
|
1640
1648
|
});
|
|
1641
1649
|
|
|
1642
|
-
// ../node_modules/.pnpm/@linuxcnc-node+gcode@
|
|
1650
|
+
// ../node_modules/.pnpm/@linuxcnc-node+gcode@3.0.0/node_modules/@linuxcnc-node/gcode/dist/parser.js
|
|
1643
1651
|
var require_parser = __commonJS({
|
|
1644
|
-
"../node_modules/.pnpm/@linuxcnc-node+gcode@
|
|
1652
|
+
"../node_modules/.pnpm/@linuxcnc-node+gcode@3.0.0/node_modules/@linuxcnc-node/gcode/dist/parser.js"(exports2) {
|
|
1645
1653
|
"use strict";
|
|
1646
1654
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1647
1655
|
exports2.parseGCode = parseGCode2;
|
|
@@ -1682,9 +1690,9 @@ var require_parser = __commonJS({
|
|
|
1682
1690
|
}
|
|
1683
1691
|
});
|
|
1684
1692
|
|
|
1685
|
-
// ../node_modules/.pnpm/@linuxcnc-node+gcode@
|
|
1693
|
+
// ../node_modules/.pnpm/@linuxcnc-node+gcode@3.0.0/node_modules/@linuxcnc-node/gcode/dist/index.js
|
|
1686
1694
|
var require_dist4 = __commonJS({
|
|
1687
|
-
"../node_modules/.pnpm/@linuxcnc-node+gcode@
|
|
1695
|
+
"../node_modules/.pnpm/@linuxcnc-node+gcode@3.0.0/node_modules/@linuxcnc-node/gcode/dist/index.js"(exports2) {
|
|
1688
1696
|
"use strict";
|
|
1689
1697
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1690
1698
|
exports2.parseGCode = void 0;
|
|
@@ -1695,9 +1703,9 @@ var require_dist4 = __commonJS({
|
|
|
1695
1703
|
}
|
|
1696
1704
|
});
|
|
1697
1705
|
|
|
1698
|
-
// ../node_modules/.pnpm/@linuxcnc-node+hal@
|
|
1706
|
+
// ../node_modules/.pnpm/@linuxcnc-node+hal@3.0.0/node_modules/@linuxcnc-node/hal/dist/constants.js
|
|
1699
1707
|
var require_constants3 = __commonJS({
|
|
1700
|
-
"../node_modules/.pnpm/@linuxcnc-node+hal@
|
|
1708
|
+
"../node_modules/.pnpm/@linuxcnc-node+hal@3.0.0/node_modules/@linuxcnc-node/hal/dist/constants.js"(exports2) {
|
|
1701
1709
|
"use strict";
|
|
1702
1710
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1703
1711
|
exports2.RtapiMsgLevelFromValue = exports2.HalParamDirFromValue = exports2.HalPinDirFromValue = exports2.HalTypeFromValue = exports2.RtapiMsgLevelValue = exports2.HalParamDirValue = exports2.HalPinDirValue = exports2.HalTypeValue = exports2.halNative = void 0;
|
|
@@ -1754,9 +1762,9 @@ var require_constants3 = __commonJS({
|
|
|
1754
1762
|
}
|
|
1755
1763
|
});
|
|
1756
1764
|
|
|
1757
|
-
// ../node_modules/.pnpm/@linuxcnc-node+hal@
|
|
1765
|
+
// ../node_modules/.pnpm/@linuxcnc-node+hal@3.0.0/node_modules/@linuxcnc-node/hal/dist/item.js
|
|
1758
1766
|
var require_item = __commonJS({
|
|
1759
|
-
"../node_modules/.pnpm/@linuxcnc-node+hal@
|
|
1767
|
+
"../node_modules/.pnpm/@linuxcnc-node+hal@3.0.0/node_modules/@linuxcnc-node/hal/dist/item.js"(exports2) {
|
|
1760
1768
|
"use strict";
|
|
1761
1769
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1762
1770
|
exports2.Param = exports2.Pin = exports2.HalItem = void 0;
|
|
@@ -1801,9 +1809,9 @@ var require_item = __commonJS({
|
|
|
1801
1809
|
}
|
|
1802
1810
|
});
|
|
1803
1811
|
|
|
1804
|
-
// ../node_modules/.pnpm/@linuxcnc-node+hal@
|
|
1812
|
+
// ../node_modules/.pnpm/@linuxcnc-node+hal@3.0.0/node_modules/@linuxcnc-node/hal/dist/component.js
|
|
1805
1813
|
var require_component = __commonJS({
|
|
1806
|
-
"../node_modules/.pnpm/@linuxcnc-node+hal@
|
|
1814
|
+
"../node_modules/.pnpm/@linuxcnc-node+hal@3.0.0/node_modules/@linuxcnc-node/hal/dist/component.js"(exports2) {
|
|
1807
1815
|
"use strict";
|
|
1808
1816
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1809
1817
|
exports2.HalComponent = exports2.DEFAULT_POLL_INTERVAL = void 0;
|
|
@@ -2140,9 +2148,9 @@ var require_component = __commonJS({
|
|
|
2140
2148
|
}
|
|
2141
2149
|
});
|
|
2142
2150
|
|
|
2143
|
-
// ../node_modules/.pnpm/@linuxcnc-node+hal@
|
|
2151
|
+
// ../node_modules/.pnpm/@linuxcnc-node+hal@3.0.0/node_modules/@linuxcnc-node/hal/dist/functions.js
|
|
2144
2152
|
var require_functions = __commonJS({
|
|
2145
|
-
"../node_modules/.pnpm/@linuxcnc-node+hal@
|
|
2153
|
+
"../node_modules/.pnpm/@linuxcnc-node+hal@3.0.0/node_modules/@linuxcnc-node/hal/dist/functions.js"(exports2) {
|
|
2146
2154
|
"use strict";
|
|
2147
2155
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2148
2156
|
exports2.setSignalValue = exports2.setPinParamValue = exports2.pinHasWriter = exports2.newSignal = exports2.getInfoParams = exports2.getInfoSignals = exports2.getInfoPins = exports2.getValue = exports2.disconnect = exports2.connect = exports2.setMsgLevel = exports2.getMsgLevel = void 0;
|
|
@@ -2213,9 +2221,9 @@ var require_functions = __commonJS({
|
|
|
2213
2221
|
}
|
|
2214
2222
|
});
|
|
2215
2223
|
|
|
2216
|
-
// ../node_modules/.pnpm/@linuxcnc-node+hal@
|
|
2224
|
+
// ../node_modules/.pnpm/@linuxcnc-node+hal@3.0.0/node_modules/@linuxcnc-node/hal/dist/index.js
|
|
2217
2225
|
var require_dist5 = __commonJS({
|
|
2218
|
-
"../node_modules/.pnpm/@linuxcnc-node+hal@
|
|
2226
|
+
"../node_modules/.pnpm/@linuxcnc-node+hal@3.0.0/node_modules/@linuxcnc-node/hal/dist/index.js"(exports2) {
|
|
2219
2227
|
"use strict";
|
|
2220
2228
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2221
2229
|
exports2.setSignalValue = exports2.setPinParamValue = exports2.pinHasWriter = exports2.newSignal = exports2.getInfoParams = exports2.getInfoSignals = exports2.getInfoPins = exports2.getValue = exports2.disconnect = exports2.connect = exports2.setMsgLevel = exports2.getMsgLevel = exports2.Param = exports2.Pin = exports2.HalItem = exports2.HalComponent = void 0;
|
|
@@ -3876,6 +3884,9 @@ function initLinuxCNCService() {
|
|
|
3876
3884
|
typedConn.handle("cmd/program-open", async ({ filePath }) => {
|
|
3877
3885
|
return commandChannel.programOpen(filePath);
|
|
3878
3886
|
});
|
|
3887
|
+
typedConn.handle("cmd/program-close", async () => {
|
|
3888
|
+
return commandChannel.programClose();
|
|
3889
|
+
});
|
|
3879
3890
|
typedConn.handle("cmd/program-run", async ({ startLine }) => {
|
|
3880
3891
|
return commandChannel.runProgram(startLine ?? 0);
|
|
3881
3892
|
});
|