@bitsness/grapuco-cli 0.1.5 → 0.1.6

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.
Files changed (2) hide show
  1. package/dist/index.js +61 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -9,6 +9,9 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __esm = (fn, res) => function __init() {
10
10
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
11
11
  };
12
+ var __commonJS = (cb, mod) => function __require() {
13
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14
+ };
12
15
  var __export = (target, all) => {
13
16
  for (var name in all)
14
17
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -6435,6 +6438,63 @@ var init_push = __esm({
6435
6438
  }
6436
6439
  });
6437
6440
 
6441
+ // package.json
6442
+ var require_package = __commonJS({
6443
+ "package.json"(exports2, module2) {
6444
+ module2.exports = {
6445
+ name: "@bitsness/grapuco-cli",
6446
+ version: "0.1.6",
6447
+ description: "Grapuco CLI \u2014 Parse your code locally, sync architecture to cloud. Zero source code upload.",
6448
+ type: "commonjs",
6449
+ bin: {
6450
+ grapuco: "./dist/index.js"
6451
+ },
6452
+ files: [
6453
+ "dist/",
6454
+ "vendor/"
6455
+ ],
6456
+ scripts: {
6457
+ build: "tsup src/index.ts --format cjs --clean",
6458
+ postbuild: `node -e "const fs=require('fs'); fs.cpSync('src/parser/tree-sitter/parsers', 'dist/parsers', {recursive:true, force:true});"`,
6459
+ dev: "tsup src/index.ts --format cjs --watch",
6460
+ start: "node dist/index.js",
6461
+ lint: "eslint src/",
6462
+ test: "vitest run"
6463
+ },
6464
+ engines: {
6465
+ node: ">=18"
6466
+ },
6467
+ keywords: [
6468
+ "cli",
6469
+ "code-analysis",
6470
+ "ast",
6471
+ "architecture",
6472
+ "graph"
6473
+ ],
6474
+ author: "Grapuco",
6475
+ license: "MIT",
6476
+ repository: {
6477
+ type: "git",
6478
+ url: "https://git.bitsness.vn/graphyourcode/cli.git"
6479
+ },
6480
+ dependencies: {
6481
+ chalk: "^5.6.2",
6482
+ chokidar: "^5.0.0",
6483
+ commander: "^14.0.3",
6484
+ glob: "^13.0.6",
6485
+ "node-fetch": "^3.3.2",
6486
+ ora: "^9.3.0",
6487
+ "web-tree-sitter": "^0.26.7"
6488
+ },
6489
+ devDependencies: {
6490
+ "@types/node": "^25.5.0",
6491
+ tsup: "^8.5.1",
6492
+ typescript: "^6.0.2"
6493
+ }
6494
+ };
6495
+ }
6496
+ });
6497
+
6438
6498
  // src/index.ts
6439
6499
  var import_commander = require("commander");
6440
6500
 
@@ -6772,7 +6832,7 @@ function countByType(items, key) {
6772
6832
 
6773
6833
  // src/index.ts
6774
6834
  var program = new import_commander.Command();
6775
- program.name("grapuco").description("Grapuco CLI \u2014 Parse your code locally, sync architecture to cloud.\nZero source code upload. Your code never leaves your machine.").version("0.1.0");
6835
+ program.name("grapuco").description("Grapuco CLI \u2014 Parse your code locally, sync architecture to cloud.\nZero source code upload. Your code never leaves your machine.").version(require_package().version);
6776
6836
  program.command("login").description("Authenticate with your Grapuco API key").option("--api-key <key>", "API key (or enter interactively)").option("--server <url>", "Server URL", "https://api.grapuco.com").action(loginCommand);
6777
6837
  program.command("init").description("Initialize Grapuco in the current project directory").option("--name <name>", "Repository name (defaults to folder name)").option("--link <repoId>", "Link to existing repository instead of creating new").option("--server <url>", "Override Grapuco Enterprise server URL").action(initCommand);
6778
6838
  program.command("ingest").description("Parse all source files locally and prepare for push").option("--embeddings", "Enable AI embeddings (semantic search)").option("--no-embeddings", "Disable AI embeddings").option("--flows", "Enable data flow analysis").option("--no-flows", "Disable data flow analysis").option("--all", "Enable all features (embeddings + flows)").option("--dry-run", "Parse only, do not push to server").action(ingestCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitsness/grapuco-cli",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Grapuco CLI — Parse your code locally, sync architecture to cloud. Zero source code upload.",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -48,4 +48,4 @@
48
48
  "tsup": "^8.5.1",
49
49
  "typescript": "^6.0.2"
50
50
  }
51
- }
51
+ }