adhdev 0.1.28 → 0.1.30

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.
Files changed (2) hide show
  1. package/dist/index.js +17 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -984,7 +984,7 @@ var init_gemini_cli = __esm({
984
984
  startupBuffer = "";
985
985
  startupDialogDismissed = false;
986
986
  constructor(workingDir) {
987
- this.workingDir = workingDir;
987
+ this.workingDir = workingDir.startsWith("~") ? workingDir.replace(/^~/, os3.homedir()) : workingDir;
988
988
  }
989
989
  setOnStatusChange(callback) {
990
990
  this.onStatusChange = callback;
@@ -1006,7 +1006,7 @@ var init_gemini_cli = __esm({
1006
1006
  name: "xterm-256color",
1007
1007
  cols: 120,
1008
1008
  rows: 40,
1009
- cwd: this.workingDir,
1009
+ cwd: this.workingDir.startsWith("~") ? this.workingDir.replace(/^~/, os3.homedir()) : this.workingDir,
1010
1010
  env: {
1011
1011
  ...process.env
1012
1012
  }
@@ -5002,15 +5002,16 @@ var init_adhdev_daemon = __esm({
5002
5002
  }
5003
5003
  }
5004
5004
  async startCliSession(cliType, workingDir) {
5005
+ const resolvedDir = workingDir.startsWith("~") ? workingDir.replace(/^~/, os8.homedir()) : workingDir;
5005
5006
  const cliInfo = await detectCLI(cliType);
5006
5007
  if (!cliInfo) throw new Error(`${cliType} not found`);
5007
- const key = this.getCliKey(cliType, workingDir);
5008
+ const key = this.getCliKey(cliType, resolvedDir);
5008
5009
  if (this.adapters.has(key)) {
5009
- console.log(import_chalk2.default.yellow(` \u26A1 CLI ${cliType} already running in ${workingDir}`));
5010
+ console.log(import_chalk2.default.yellow(` \u26A1 CLI ${cliType} already running in ${resolvedDir}`));
5010
5011
  return;
5011
5012
  }
5012
- console.log(import_chalk2.default.yellow(` \u26A1 Starting CLI ${cliType} in ${workingDir}...`));
5013
- const adapter = this.createAdapter(cliType, workingDir);
5013
+ console.log(import_chalk2.default.yellow(` \u26A1 Starting CLI ${cliType} in ${resolvedDir}...`));
5014
+ const adapter = this.createAdapter(cliType, resolvedDir);
5014
5015
  await adapter.spawn();
5015
5016
  if (this.bridge && typeof adapter.setBridge === "function") {
5016
5017
  adapter.setBridge(this.bridge);
@@ -5018,7 +5019,7 @@ var init_adhdev_daemon = __esm({
5018
5019
  adapter.setOnStatusChange(() => this.sendUnifiedStatusReport());
5019
5020
  this.adapters.set(key, adapter);
5020
5021
  this.lastAgentStatus.set(key, "idle");
5021
- console.log(import_chalk2.default.green(` \u2713 CLI started: ${cliInfo.displayName} v${cliInfo.version || "unknown"} in ${workingDir}`));
5022
+ console.log(import_chalk2.default.green(` \u2713 CLI started: ${cliInfo.displayName} v${cliInfo.version || "unknown"} in ${resolvedDir}`));
5022
5023
  this.sendUnifiedStatusReport();
5023
5024
  }
5024
5025
  async stopCliSession(key) {
@@ -5220,8 +5221,16 @@ var init_adhdev_daemon = __esm({
5220
5221
  ...Array.from(this.adapters.entries()).map(([k, a]) => ({ id: a.cliType, name: a.cliName, status: this.lastAgentStatus.get(k) || "idle" }))
5221
5222
  ],
5222
5223
  activeChat: managedClis[0]?.activeChat || managedIdes[0]?.activeChat || null,
5223
- // Legacy agentStreams: managedIdes의 agentStreams만 통합 (CLI는 managedClis로 별도 push)
5224
+ // agentStreams: IDE + CLI 통합 (대시보드 생성 기반)
5224
5225
  agentStreams: [
5226
+ ...managedClis.map((c) => ({
5227
+ agentType: c.cliType,
5228
+ agentName: c.cliName,
5229
+ extensionId: "cli-bridge",
5230
+ status: c.status === "generating" ? "streaming" : "idle",
5231
+ messages: c.activeChat?.messages || [],
5232
+ inputContent: ""
5233
+ })),
5225
5234
  ...managedIdes.flatMap((ide) => ide.agentStreams || [])
5226
5235
  ],
5227
5236
  connectedExtensions: extSummary.connectedIdes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adhdev",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "description": "ADHDev CLI — Detect, install and configure your IDE + AI agent extensions",
5
5
  "main": "dist/index.js",
6
6
  "bin": {