feat: enhance ClawHub integration with new CLI paths and IPC handlers for config and skills directories (#41)
This commit is contained in:
@@ -25,6 +25,13 @@ export function getOpenClawConfigDir(): string {
|
||||
return join(homedir(), '.openclaw');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get OpenClaw skills directory
|
||||
*/
|
||||
export function getOpenClawSkillsDir(): string {
|
||||
return join(getOpenClawConfigDir(), 'skills');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ClawX config directory
|
||||
*/
|
||||
@@ -108,6 +115,21 @@ export function getOpenClawEntryPath(): string {
|
||||
return join(getOpenClawDir(), 'openclaw.mjs');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ClawHub CLI entry script path (clawdhub.js)
|
||||
*/
|
||||
export function getClawHubCliEntryPath(): string {
|
||||
return join(app.getAppPath(), 'node_modules', 'clawhub', 'bin', 'clawdhub.js');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ClawHub CLI binary path (node_modules/.bin)
|
||||
*/
|
||||
export function getClawHubCliBinPath(): string {
|
||||
const binName = process.platform === 'win32' ? 'clawhub.cmd' : 'clawhub';
|
||||
return join(app.getAppPath(), 'node_modules', '.bin', binName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if OpenClaw package exists
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user