thepopebot 1.2.72-beta.0 → 1.2.72-beta.2
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.
- package/package.json +1 -1
- package/setup/setup.mjs +14 -0
package/package.json
CHANGED
package/setup/setup.mjs
CHANGED
|
@@ -516,6 +516,20 @@ async function main() {
|
|
|
516
516
|
fs.mkdirSync(path.dirname(braveSymlink), { recursive: true });
|
|
517
517
|
createDirLink('../../pi-skills/brave-search', braveSymlink);
|
|
518
518
|
clack.log.success('Enabled brave-search skill');
|
|
519
|
+
|
|
520
|
+
// Commit and push the symlink so the Docker agent can use it
|
|
521
|
+
try {
|
|
522
|
+
execSync('git add .pi/skills/brave-search', { stdio: 'ignore' });
|
|
523
|
+
execSync('git commit -m "enable brave-search skill [no ci]"', { stdio: 'ignore' });
|
|
524
|
+
const remote = execSync('git remote get-url origin', { encoding: 'utf-8' }).trim();
|
|
525
|
+
const authedUrl = remote.replace('https://github.com/', `https://x-access-token:${pat}@github.com/`);
|
|
526
|
+
execSync(`git remote set-url origin "${authedUrl}"`, { stdio: 'ignore' });
|
|
527
|
+
execSync('git push origin main', { stdio: 'ignore' });
|
|
528
|
+
execSync(`git remote set-url origin "${remote}"`, { stdio: 'ignore' });
|
|
529
|
+
clack.log.success('Pushed brave-search skill to GitHub');
|
|
530
|
+
} catch {
|
|
531
|
+
clack.log.warn('Could not push brave-search symlink — you may need to push manually');
|
|
532
|
+
}
|
|
519
533
|
}
|
|
520
534
|
}
|
|
521
535
|
|