unity-agentic-tools 0.3.0 → 0.3.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/README.md +1 -1
- package/dist/cli.js +1474 -312
- package/dist/index.js +593 -97
- package/native/index.d.ts +10 -1
- package/native/index.js +2 -1
- package/native/unity-file-tools.darwin-arm64.node +0 -0
- package/native/unity-file-tools.darwin-x64.node +0 -0
- package/native/unity-file-tools.linux-x64-gnu.node +0 -0
- package/native/unity-file-tools.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|