cxgrd 1.1.0 → 1.1.1
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/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
9
9
|
<img alt="License" src="https://img.shields.io/badge/License-MIT%20-4f5d75?style=flat-square" />
|
|
10
|
-
<img alt="Release" src="https://img.shields.io/badge/release-v1.
|
|
10
|
+
<img alt="Release" src="https://img.shields.io/badge/release-v1.1.1-8b5cf6?style=flat-square" />
|
|
11
11
|
</p>
|
|
12
12
|
|
|
13
13
|
<h1 align="center">Architectural Guardrail for AI-native development</h1>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function openBrowser(
|
|
1
|
+
export declare function openBrowser(raw: string): void;
|
|
2
2
|
//# sourceMappingURL=open-browser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-browser.d.ts","sourceRoot":"","sources":["../../src/auth/open-browser.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"open-browser.d.ts","sourceRoot":"","sources":["../../src/auth/open-browser.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAW7C"}
|
|
@@ -2,22 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.openBrowser = openBrowser;
|
|
4
4
|
const child_process_1 = require("child_process");
|
|
5
|
-
function openBrowser(
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
(0, child_process_1.exec)(command, (err) => {
|
|
18
|
-
if (err) {
|
|
19
|
-
console.log(` Open this URL in your browser:\n ${url}`);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
5
|
+
function openBrowser(raw) {
|
|
6
|
+
const u = new URL(raw);
|
|
7
|
+
if (u.protocol !== 'https:' && u.protocol !== 'http:')
|
|
8
|
+
throw new Error('Bad URL');
|
|
9
|
+
const url = u.toString();
|
|
10
|
+
const [cmd, args] = process.platform === 'win32' ? ['rundll32', ['url.dll,FileProtocolHandler', url]] :
|
|
11
|
+
process.platform === 'darwin' ? ['open', [url]] :
|
|
12
|
+
['xdg-open', [url]];
|
|
13
|
+
const child = (0, child_process_1.spawn)(cmd, args, { stdio: 'ignore', detached: true });
|
|
14
|
+
child.on('error', () => console.log(` Open this URL in your browser:\n ${url}`));
|
|
15
|
+
child.unref();
|
|
22
16
|
}
|
|
23
17
|
//# sourceMappingURL=open-browser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-browser.js","sourceRoot":"","sources":["../../src/auth/open-browser.ts"],"names":[],"mappings":";;AAEA,
|
|
1
|
+
{"version":3,"file":"open-browser.js","sourceRoot":"","sources":["../../src/auth/open-browser.ts"],"names":[],"mappings":";;AAEA,kCAWC;AAbD,iDAAsC;AAEtC,SAAgB,WAAW,CAAC,GAAW;IACrC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;IACvB,IAAI,CAAC,CAAC,QAAQ,KAAK,QAAQ,IAAI,CAAC,CAAC,QAAQ,KAAK,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;IAClF,MAAM,GAAG,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;IACzB,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,GACf,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;QACnF,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACjD,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,MAAM,KAAK,GAAG,IAAA,qBAAK,EAAC,GAAG,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACpE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,GAAG,EAAE,CAAC,CAAC,CAAC;IACnF,KAAK,CAAC,KAAK,EAAE,CAAC;AAChB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -110,7 +110,7 @@ async function main() {
|
|
|
110
110
|
.command('watch [path]', 'Monitor project for real-time architecture analysis', (y) => y
|
|
111
111
|
.positional('path', { describe: 'Project path (default: current directory)', type: 'string' })
|
|
112
112
|
.option('debounce', { type: 'number', default: 500 }), async (argv) => { (0, telemetry_1.trackEvent)('cli_watch'); await (0, watch_1.watchCommand)(argv.path, { debounce: argv.debounce }); })
|
|
113
|
-
.version('1.1.
|
|
113
|
+
.version('1.1.1')
|
|
114
114
|
.help()
|
|
115
115
|
.alias('h', 'help')
|
|
116
116
|
.epilogue(chalk_1.default.gray('For more information, visit: https://www.cxgrd.com'))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cxgrd",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "AI context guardrail CLI — dependency-aware architecture safety for AI-assisted development",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"chalk": "^5.3.0",
|
|
23
|
-
"chokidar": "^
|
|
23
|
+
"chokidar": "^4.0.0",
|
|
24
24
|
"typescript": "^5.3.3",
|
|
25
25
|
"yargs": "^17.7.2"
|
|
26
26
|
},
|