@dynamoengine/unity 1.1.1 → 2.0.0
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/index.d.ts +61 -1
- package/dist/index.js +1 -1
- package/dist/parse-worker.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
* - method enumerations (queryTypes, generateDeterministicKB, ...)
|
|
13
13
|
* - algorithm-revealing string literal types ('keyword' | 'llm' | ...)
|
|
14
14
|
*
|
|
15
|
-
* The runtime
|
|
15
|
+
* The runtime exports (`createProvider`, and the New project sheet's
|
|
16
|
+
* `listEditors`, `listEditorsCached`, `refreshEditors` and `createProject`)
|
|
17
|
+
* come from src/index.ts
|
|
16
18
|
* (esbuild bundle entry); this file only governs what TypeScript sees
|
|
17
19
|
* in the published declarations.
|
|
18
20
|
*/
|
|
@@ -26,5 +28,63 @@ export interface ContextProvider {
|
|
|
26
28
|
* resolves the methods it needs via structural typing at runtime.
|
|
27
29
|
*/
|
|
28
30
|
export declare function createProvider(cwd: string, host?: unknown): ContextProvider;
|
|
31
|
+
/**
|
|
32
|
+
* DYN-V2.0-011 — the Unity editors installed here, newest first, each with
|
|
33
|
+
* the templates it can make a project from (core's `projects/editors`).
|
|
34
|
+
*/
|
|
35
|
+
export declare function listEditors(): Promise<Array<{
|
|
36
|
+
version: string;
|
|
37
|
+
templates: Array<{
|
|
38
|
+
id: string;
|
|
39
|
+
label: string;
|
|
40
|
+
}>;
|
|
41
|
+
}>>;
|
|
42
|
+
/**
|
|
43
|
+
* BUG-84 — the editors as last found here, and whether that may be out of
|
|
44
|
+
* date; null when the package has never looked. `ctx.configPath` is core's
|
|
45
|
+
* config folder, where they are kept.
|
|
46
|
+
*/
|
|
47
|
+
export declare function listEditorsCached(ctx: {
|
|
48
|
+
configPath: (...segments: string[]) => string;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
editors: Array<{
|
|
51
|
+
version: string;
|
|
52
|
+
path: string;
|
|
53
|
+
source?: string;
|
|
54
|
+
templates: Array<{
|
|
55
|
+
id: string;
|
|
56
|
+
label: string;
|
|
57
|
+
}>;
|
|
58
|
+
}>;
|
|
59
|
+
stale: boolean;
|
|
60
|
+
} | null>;
|
|
61
|
+
/** BUG-84 — look again, keep what was found, and resolve with it. */
|
|
62
|
+
export declare function refreshEditors(ctx: {
|
|
63
|
+
configPath: (...segments: string[]) => string;
|
|
64
|
+
}): Promise<Array<{
|
|
65
|
+
version: string;
|
|
66
|
+
path: string;
|
|
67
|
+
source?: string;
|
|
68
|
+
templates: Array<{
|
|
69
|
+
id: string;
|
|
70
|
+
label: string;
|
|
71
|
+
}>;
|
|
72
|
+
}>>;
|
|
73
|
+
/**
|
|
74
|
+
* DYN-V2.0-011 — make a Unity project (core's `projects/create`); resolves
|
|
75
|
+
* with its folder once it is on disk. A refusal is an Error named
|
|
76
|
+
* `CreateProjectError`, in a creator's words, with `field` naming the sheet's
|
|
77
|
+
* field it is about when it is one field's.
|
|
78
|
+
*/
|
|
79
|
+
export declare function createProject(o: {
|
|
80
|
+
parentDir: string;
|
|
81
|
+
name: string;
|
|
82
|
+
editorVersion: string;
|
|
83
|
+
template: string;
|
|
84
|
+
}, ctx?: {
|
|
85
|
+
configPath: (...segments: string[]) => string;
|
|
86
|
+
}): Promise<{
|
|
87
|
+
path: string;
|
|
88
|
+
}>;
|
|
29
89
|
|
|
30
90
|
export {};
|