glassbox 0.7.1 → 0.7.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/dist/cli.js +3 -4
- package/package.json +2 -1
package/dist/cli.js
CHANGED
|
@@ -393,7 +393,7 @@ var init_queries = __esm({
|
|
|
393
393
|
// src/cli.ts
|
|
394
394
|
init_connection();
|
|
395
395
|
init_queries();
|
|
396
|
-
import { mkdirSync as mkdirSync8 } from "fs";
|
|
396
|
+
import { mkdirSync as mkdirSync8, realpathSync } from "fs";
|
|
397
397
|
import { tmpdir } from "os";
|
|
398
398
|
import { join as join11, resolve as resolve5 } from "path";
|
|
399
399
|
|
|
@@ -6470,7 +6470,6 @@ async function checkForUpdates(force) {
|
|
|
6470
6470
|
}
|
|
6471
6471
|
|
|
6472
6472
|
// src/cli.ts
|
|
6473
|
-
import { realpathSync } from "fs";
|
|
6474
6473
|
function printUsage() {
|
|
6475
6474
|
console.log(`
|
|
6476
6475
|
glassbox - Review AI-generated code with annotations
|
|
@@ -6614,7 +6613,7 @@ async function main() {
|
|
|
6614
6613
|
console.log("AI service test mode enabled \u2014 using mock AI responses");
|
|
6615
6614
|
}
|
|
6616
6615
|
if (debug) {
|
|
6617
|
-
console.log(`[debug] Build timestamp: ${"2026-04-
|
|
6616
|
+
console.log(`[debug] Build timestamp: ${"2026-04-03T00:13:35.309Z"}`);
|
|
6618
6617
|
}
|
|
6619
6618
|
if (projectDir !== null) {
|
|
6620
6619
|
process.chdir(projectDir);
|
|
@@ -6695,7 +6694,7 @@ async function main() {
|
|
|
6695
6694
|
console.log(`Review ${review.id} created.`);
|
|
6696
6695
|
await startServer(port, review.id, repoRoot, { noOpen, strictPort });
|
|
6697
6696
|
}
|
|
6698
|
-
var resolvedArg = process.argv[1]
|
|
6697
|
+
var resolvedArg = process.argv[1] ? realpathSync(process.argv[1]) : "";
|
|
6699
6698
|
var isDirectRun = resolvedArg.endsWith("cli.js") || resolvedArg.endsWith("cli.ts");
|
|
6700
6699
|
if (isDirectRun) {
|
|
6701
6700
|
main().catch((err) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glassbox",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "A local code review tool for AI-generated code. Review diffs, annotate lines, and export structured feedback that AI tools can act on.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"test:watch": "vitest",
|
|
41
41
|
"test:all": "bash scripts/test-all.sh",
|
|
42
42
|
"test:e2e": "npx playwright test",
|
|
43
|
+
"test:smoke": "bash tests/smoke/smoke-test.sh",
|
|
43
44
|
"lint": "eslint src/",
|
|
44
45
|
"clean": "rm -rf dist node_modules/.cache",
|
|
45
46
|
"release": "bash scripts/release.sh",
|