feat: pre-install feishu skills to ~/.openclaw/skills on first launch (#252)
This commit is contained in:
committed by
GitHub
Unverified
parent
91cb69d01c
commit
0bc4b7cbc2
@@ -17,6 +17,7 @@ import { ClawHubService } from '../gateway/clawhub';
|
||||
import { ensureClawXContext, repairClawXOnlyBootstrapFiles } from '../utils/openclaw-workspace';
|
||||
import { autoInstallCliIfNeeded, generateCompletionCache, installCompletionToProfile } from '../utils/openclaw-cli';
|
||||
import { isQuitting, setQuitting } from './app-state';
|
||||
import { ensureBuiltinSkillsInstalled } from '../utils/skill-config';
|
||||
|
||||
// Disable GPU hardware acceleration globally for maximum stability across
|
||||
// all GPU configurations (no GPU, integrated, discrete).
|
||||
@@ -187,6 +188,12 @@ async function initialize(): Promise<void> {
|
||||
logger.warn('Failed to repair bootstrap files:', error);
|
||||
});
|
||||
|
||||
// Pre-deploy built-in skills (feishu-doc, feishu-drive, feishu-perm, feishu-wiki)
|
||||
// to ~/.openclaw/skills/ so they are immediately available without manual install.
|
||||
void ensureBuiltinSkillsInstalled().catch((error) => {
|
||||
logger.warn('Failed to install built-in skills:', error);
|
||||
});
|
||||
|
||||
// Start Gateway automatically (this seeds missing bootstrap files with full templates)
|
||||
try {
|
||||
logger.debug('Auto-starting Gateway...');
|
||||
|
||||
Reference in New Issue
Block a user