glidercli 0.3.3 → 0.3.4
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/bin/glider.js +5 -4
- package/package.json +1 -1
package/bin/glider.js
CHANGED
|
@@ -50,10 +50,11 @@ if (fs.existsSync(REGISTRY_FILE)) {
|
|
|
50
50
|
// Direct CDP module
|
|
51
51
|
const { DirectCDP, checkChrome } = require(path.join(LIB_DIR, 'cdp-direct.js'));
|
|
52
52
|
|
|
53
|
-
// Domain extensions - load from ~/.
|
|
53
|
+
// Domain extensions - load from ~/.glider/config/domains.json (primary) or legacy paths
|
|
54
54
|
const DOMAIN_CONFIG_PATHS = [
|
|
55
|
-
path.join(os.homedir(), '.
|
|
55
|
+
path.join(os.homedir(), '.glider', 'config', 'domains.json'),
|
|
56
56
|
path.join(os.homedir(), '.glider', 'domains.json'),
|
|
57
|
+
path.join(os.homedir(), '.cursor', 'glider', 'domains.json'), // legacy
|
|
57
58
|
];
|
|
58
59
|
let DOMAINS = {};
|
|
59
60
|
for (const cfgPath of DOMAIN_CONFIG_PATHS) {
|
|
@@ -894,7 +895,7 @@ async function cmdDomains() {
|
|
|
894
895
|
const domainKeys = Object.keys(DOMAINS);
|
|
895
896
|
if (domainKeys.length === 0) {
|
|
896
897
|
log.warn('No domains configured');
|
|
897
|
-
log.info('Add domains to ~/.
|
|
898
|
+
log.info('Add domains to ~/.glider/config/domains.json');
|
|
898
899
|
return;
|
|
899
900
|
}
|
|
900
901
|
console.log(`${GREEN}${domainKeys.length}${NC} domain(s) configured:\n`);
|
|
@@ -1751,7 +1752,7 @@ ${YELLOW}REQUIREMENTS:${NC}
|
|
|
1751
1752
|
- Glider Chrome extension connected
|
|
1752
1753
|
|
|
1753
1754
|
${YELLOW}DOMAIN EXTENSIONS:${NC}
|
|
1754
|
-
Add custom domain commands via ~/.
|
|
1755
|
+
Add custom domain commands via ~/.glider/config/domains.json:
|
|
1755
1756
|
{
|
|
1756
1757
|
"mysite": { "url": "https://mysite.com/dashboard" },
|
|
1757
1758
|
"mytool": { "script": "~/.cursor/tools/scripts/mytool.sh" }
|
package/package.json
CHANGED