@serviceme/devtools-cli 0.1.2 → 0.1.3

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.
@@ -9597,7 +9597,7 @@ function normalizeServicemeError(error, fallbackCode = "internal_error") {
9597
9597
  }
9598
9598
 
9599
9599
  // src/version.ts
9600
- var SERVICEME_CLI_VERSION = "0.1.2";
9600
+ var SERVICEME_CLI_VERSION = "0.1.3";
9601
9601
 
9602
9602
  // src/bridge/ndjson.ts
9603
9603
  function writeBridgeMessage(message) {
@@ -10003,7 +10003,11 @@ var executors = {
10003
10003
  github_copilot_cli: new GithubCopilotCliExecutor()
10004
10004
  };
10005
10005
  function getExecutor(taskType) {
10006
- return executors[taskType];
10006
+ const executor = executors[taskType];
10007
+ if (!executor) {
10008
+ throw new Error(`Unsupported bridge task type: ${taskType}`);
10009
+ }
10010
+ return executor;
10007
10011
  }
10008
10012
 
10009
10013
  // ../../packages/serviceme-core/src/scheduled-tasks/TaskExecutionEngine.ts
package/dist/cli.js CHANGED
@@ -12198,7 +12198,11 @@ var init_types = __esm({
12198
12198
 
12199
12199
  // ../../packages/serviceme-core/src/scheduled-tasks/executors/index.ts
12200
12200
  function getExecutor(taskType) {
12201
- return executors[taskType];
12201
+ const executor = executors[taskType];
12202
+ if (!executor) {
12203
+ throw new Error(`Unsupported bridge task type: ${taskType}`);
12204
+ }
12205
+ return executor;
12202
12206
  }
12203
12207
  var executors;
12204
12208
  var init_executors = __esm({
@@ -12901,7 +12905,7 @@ init_src();
12901
12905
 
12902
12906
  // src/version.ts
12903
12907
  var SERVICEME_CLI_NAME = "serviceme";
12904
- var SERVICEME_CLI_VERSION = "0.1.2";
12908
+ var SERVICEME_CLI_VERSION = "0.1.3";
12905
12909
 
12906
12910
  // src/bridge/ndjson.ts
12907
12911
  function writeBridgeMessage(message) {
@@ -14099,6 +14103,12 @@ function handleStatus(parsed) {
14099
14103
  }
14100
14104
  async function runDaemon(parsed) {
14101
14105
  const wp = requireWorkspace2(parsed);
14106
+ const pidMgr = new PidManager(wp);
14107
+ const existingPid = pidMgr.getRunningPid();
14108
+ if (existingPid !== null && existingPid !== process.pid) {
14109
+ process.exit(0);
14110
+ }
14111
+ pidMgr.writePid(process.pid);
14102
14112
  const { SchedulerDaemon: SchedulerDaemon2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
14103
14113
  const daemon = new SchedulerDaemon2(wp);
14104
14114
  daemon.start();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serviceme/devtools-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Unified SERVICEME CLI for automation, project scaffolding, and bridge-based tooling.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {
@@ -42,8 +42,8 @@
42
42
  "@types/node": "^24",
43
43
  "tsup": "^8.5.1",
44
44
  "typescript": "^5.9.3",
45
- "@serviceme/devtools-core": "0.1.2",
46
- "@serviceme/devtools-protocol": "0.1.2"
45
+ "@serviceme/devtools-core": "0.1.3",
46
+ "@serviceme/devtools-protocol": "0.1.3"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "tsup --config tsup.config.ts",