unity-agentic-tools 0.1.0 → 0.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.

Potentially problematic release.


This version of unity-agentic-tools might be problematic. Click here for more details.

package/dist/cli.js CHANGED
@@ -2505,9 +2505,11 @@ function getNativeBuildGuidCache() {
2505
2505
  // src/setup.ts
2506
2506
  var import_fs = require("fs");
2507
2507
  var import_path = require("path");
2508
- var __dirname = "/home/runner/work/unity-agentic-tools/unity-agentic-tools/unity-agentic-tools/src";
2509
- var pkg = JSON.parse(import_fs.readFileSync(import_path.resolve(__dirname, "../package.json"), "utf-8"));
2510
- var VERSION = pkg.version;
2508
+
2509
+ // src/version.ts
2510
+ var VERSION = "0.1.1";
2511
+
2512
+ // src/setup.ts
2511
2513
  var CONFIG_DIR = ".unity-agentic";
2512
2514
  var CONFIG_FILE = "config.json";
2513
2515
  var GUID_CACHE_FILE = "guid-cache.json";
@@ -8671,11 +8673,8 @@ function grep_project_js(options) {
8671
8673
 
8672
8674
  // src/cli.ts
8673
8675
  var path9 = __toESM(require("path"));
8674
- var fs4 = __toESM(require("fs"));
8675
8676
  var __dirname = "/home/runner/work/unity-agentic-tools/unity-agentic-tools/unity-agentic-tools/src";
8676
8677
  var { exec } = require("child_process");
8677
- var pkg2 = JSON.parse(fs4.readFileSync(path9.resolve(__dirname, "../package.json"), "utf-8"));
8678
- var VERSION2 = pkg2.version;
8679
8678
  if (!process.versions.bun) {
8680
8679
  console.error("CRITICAL ERROR: This tool MUST be run with BUN.");
8681
8680
  console.error("You are currently using: Node.js");
@@ -8693,7 +8692,7 @@ function getScanner() {
8693
8692
  }
8694
8693
  return _scanner;
8695
8694
  }
8696
- program.name("unity-agentic-tools").description("Fast, token-efficient Unity YAML parser").version(VERSION2);
8695
+ program.name("unity-agentic-tools").description("Fast, token-efficient Unity YAML parser").version(VERSION);
8697
8696
  program.addCommand(build_create_command());
8698
8697
  program.addCommand(build_read_command(getScanner));
8699
8698
  program.addCommand(build_update_command(getScanner));
@@ -8822,13 +8821,13 @@ program.command("status").description("Show current configuration and status").o
8822
8821
  let config = null;
8823
8822
  let guidCacheCount = 0;
8824
8823
  try {
8825
- const { existsSync: existsSync15, readFileSync: readFileSync11 } = require("fs");
8824
+ const { existsSync: existsSync15, readFileSync: readFileSync10 } = require("fs");
8826
8825
  if (existsSync15(configFile)) {
8827
- config = JSON.parse(readFileSync11(configFile, "utf-8"));
8826
+ config = JSON.parse(readFileSync10(configFile, "utf-8"));
8828
8827
  }
8829
8828
  const guidCachePath = path9.join(configPath, "guid-cache.json");
8830
8829
  if (existsSync15(guidCachePath)) {
8831
- const guidCache = JSON.parse(readFileSync11(guidCachePath, "utf-8"));
8830
+ const guidCache = JSON.parse(readFileSync10(guidCachePath, "utf-8"));
8832
8831
  guidCacheCount = Object.keys(guidCache).length;
8833
8832
  }
8834
8833
  } catch {}
@@ -8838,7 +8837,7 @@ program.command("status").description("Show current configuration and status").o
8838
8837
  config,
8839
8838
  guid_cache_count: guidCacheCount,
8840
8839
  runtime: "bun",
8841
- version: VERSION2,
8840
+ version: VERSION,
8842
8841
  native_module: isNativeModuleAvailable(),
8843
8842
  native_module_error: isNativeModuleAvailable() ? null : getNativeModuleError()
8844
8843
  };
package/dist/index.js CHANGED
@@ -440,9 +440,11 @@ function getNativeBuildGuidCache() {
440
440
  // src/setup.ts
441
441
  var import_fs = require("fs");
442
442
  var import_path = require("path");
443
- var __dirname = "/home/runner/work/unity-agentic-tools/unity-agentic-tools/unity-agentic-tools/src";
444
- var pkg = JSON.parse(import_fs.readFileSync(import_path.resolve(__dirname, "../package.json"), "utf-8"));
445
- var VERSION = pkg.version;
443
+
444
+ // src/version.ts
445
+ var VERSION = "0.1.1";
446
+
447
+ // src/setup.ts
446
448
  var CONFIG_DIR = ".unity-agentic";
447
449
  var CONFIG_FILE = "config.json";
448
450
  var GUID_CACHE_FILE = "guid-cache.json";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unity-agentic-tools",
3
3
  "packageManager": "bun@latest",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "Fast, token-efficient Unity YAML parser for AI agents",
6
6
  "exports": {
7
7
  ".": {
@@ -18,7 +18,7 @@
18
18
  "LICENSE"
19
19
  ],
20
20
  "scripts": {
21
- "build": "bun run build:lib && bun run build:cli && rm -f dist/*.node && cp ../doc-indexer/dist/cli.js dist/doc-indexer-cli.js",
21
+ "build": "bun scripts/generate-version.ts && bun run build:lib && bun run build:cli && rm -f dist/*.node && cp ../doc-indexer/dist/cli.js dist/doc-indexer-cli.js",
22
22
  "build:lib": "bun build src/index.ts --outdir=dist --target=bun --format=cjs --external unity-file-tools",
23
23
  "build:cli": "bun build src/cli.ts --outdir=dist --target=bun --format=cjs --external unity-file-tools",
24
24
  "build:rust": "cd ../rust-core && bun run build",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "type": "commonjs",
44
44
  "bin": {
45
- "unity-agentic-tools": "./dist/cli.js"
45
+ "unity-agentic-tools": "dist/cli.js"
46
46
  },
47
47
  "engines": {
48
48
  "bun": ">=1.0.0"