unity-agentic-tools 0.3.1 → 0.3.3

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/native/index.d.ts CHANGED
@@ -46,6 +46,7 @@ export interface PrefabModification {
46
46
  targetGuid?: string | undefined
47
47
  propertyPath: string
48
48
  value: string
49
+ objectReference?: string | undefined
49
50
  }
50
51
  /** Union result from find_by_name: either a GameObject or PrefabInstance */
51
52
  export interface FindResult {
@@ -203,7 +204,7 @@ export declare function extractCsharpTypes(path: string): Array<CSharpTypeRef>
203
204
  *
204
205
  * Scans Assets/ and optionally Library/PackageCache/ for .cs files,
205
206
  * extracts type declarations, and returns them with GUID + namespace info.
206
- * When include_packages is true, also scans Library/PackageCache/.
207
+ * When include_packages is true, also scans Library/PackageCache/ and Packages/.
207
208
  * When include_dlls is true, also extracts types from DLLs in Library/ScriptAssemblies/.
208
209
  */
209
210
  export declare function buildTypeRegistry(projectRoot: string, includePackages?: boolean | undefined | null, includeDlls?: boolean | undefined | null): Array<CSharpTypeRef>
@@ -261,6 +262,14 @@ export declare function buildGuidCache(projectRoot: string): any
261
262
  * Returns a separate cache so project assets and package assets stay distinct.
262
263
  */
263
264
  export declare function buildPackageGuidCache(projectRoot: string): any
265
+ /**
266
+ * Build a GUID cache for Packages/ directory (local/embedded packages).
267
+ *
268
+ * Local packages referenced via "file:" in manifest.json live in Packages/
269
+ * and are not indexed by build_guid_cache (Assets/) or
270
+ * build_package_guid_cache (Library/PackageCache/).
271
+ */
272
+ export declare function buildLocalPackageGuidCache(projectRoot: string): any
264
273
  /** Get the version of the native module */
265
274
  export declare function getVersion(): string
266
275
  /** Check if the native module is available */
package/native/index.js CHANGED
@@ -310,7 +310,7 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { ChunkType, extractDllTypes, extractDllFields, extractCsharpTypes, buildTypeRegistry, extractSerializedFields, Scanner, Indexer, EmbeddingGenerator, walkProjectFiles, grepProject, buildGuidCache, buildPackageGuidCache, getVersion, isNativeAvailable } = nativeBinding
313
+ const { ChunkType, extractDllTypes, extractDllFields, extractCsharpTypes, buildTypeRegistry, extractSerializedFields, Scanner, Indexer, EmbeddingGenerator, walkProjectFiles, grepProject, buildGuidCache, buildPackageGuidCache, buildLocalPackageGuidCache, getVersion, isNativeAvailable } = nativeBinding
314
314
 
315
315
  module.exports.ChunkType = ChunkType
316
316
  module.exports.extractDllTypes = extractDllTypes
@@ -325,5 +325,6 @@ module.exports.walkProjectFiles = walkProjectFiles
325
325
  module.exports.grepProject = grepProject
326
326
  module.exports.buildGuidCache = buildGuidCache
327
327
  module.exports.buildPackageGuidCache = buildPackageGuidCache
328
+ module.exports.buildLocalPackageGuidCache = buildLocalPackageGuidCache
328
329
  module.exports.getVersion = getVersion
329
330
  module.exports.isNativeAvailable = isNativeAvailable
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unity-agentic-tools",
3
3
  "packageManager": "bun@latest",
4
- "version": "0.3.1",
4
+ "version": "0.3.3",
5
5
  "description": "Fast, token-efficient Unity YAML parser for AI agents",
6
6
  "exports": {
7
7
  ".": {