@drisp/cli 0.5.28 → 0.6.1

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.
@@ -499,4 +499,4 @@ export {
499
499
  StepStatus,
500
500
  McpOptionsStep
501
501
  };
502
- //# sourceMappingURL=chunk-2HR7FV3M.js.map
502
+ //# sourceMappingURL=chunk-KPDCVR6Q.js.map
@@ -0,0 +1,56 @@
1
+ import {
2
+ startRunnerProcess
3
+ } from "./chunk-HQWVYIYF.js";
4
+
5
+ // src/app/entry/runnerDaemon.ts
6
+ import path from "path";
7
+ import { fileURLToPath } from "url";
8
+ async function runRunnerDaemonEntry() {
9
+ if (startedViaDeprecatedEntry()) {
10
+ process.stderr.write(
11
+ 'drisp runner: started through the deprecated drisp-dashboard-daemon entry (removed in 0.7.0); run "drisp runner install" to refresh the service unit.\n'
12
+ );
13
+ }
14
+ let runner;
15
+ try {
16
+ runner = await startRunnerProcess();
17
+ } catch (err) {
18
+ process.stderr.write(
19
+ `drisp runner: ${err instanceof Error ? err.message : String(err)}
20
+ `
21
+ );
22
+ return 1;
23
+ }
24
+ const reason = await new Promise((resolve) => {
25
+ const onSignal = (signal) => {
26
+ process.off("SIGINT", onSignal);
27
+ process.off("SIGTERM", onSignal);
28
+ resolve(signal);
29
+ };
30
+ process.on("SIGINT", onSignal);
31
+ process.on("SIGTERM", onSignal);
32
+ });
33
+ await runner.stop(reason);
34
+ return 0;
35
+ }
36
+ function startedViaDeprecatedEntry() {
37
+ try {
38
+ return path.basename(fileURLToPath(import.meta.url)).startsWith("dashboard-daemon");
39
+ } catch {
40
+ return false;
41
+ }
42
+ }
43
+ if (process.argv.includes("--help")) {
44
+ process.stdout.write(
45
+ 'Usage: drisp-runner\n\nStarts the paired runner service. Use "drisp runner" to pair, install, inspect, or stop it.\n'
46
+ );
47
+ } else {
48
+ void runRunnerDaemonEntry().then((code) => {
49
+ process.exit(code);
50
+ });
51
+ }
52
+
53
+ export {
54
+ runRunnerDaemonEntry
55
+ };
56
+ //# sourceMappingURL=chunk-OT72W4DD.js.map
@@ -0,0 +1,10 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ export {
8
+ __export
9
+ };
10
+ //# sourceMappingURL=chunk-PZ5AY32C.js.map