@team-antioch/sc2-adjutant 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.
- package/README.md +2 -0
- package/data/blizzard-baseline.json +3061 -0
- package/data/button-hotkeys.json +5722 -0
- package/data/game-assets.json +50909 -0
- package/data/package-entries.json +32361 -2
- package/dist/capture/bank-fixtures.d.ts +13 -0
- package/dist/capture/bank-fixtures.js +35 -0
- package/dist/capture/bank-snapshots.d.ts +95 -0
- package/dist/capture/bank-snapshots.js +302 -0
- package/dist/capture/editor-broker-client.d.ts +27 -4
- package/dist/capture/editor-broker-client.js +3 -3
- package/dist/capture/editor-broker.js +154 -9
- package/dist/capture/effect-tour.d.ts +113 -0
- package/dist/capture/effect-tour.js +283 -0
- package/dist/capture/effect-video.d.ts +74 -0
- package/dist/capture/effect-video.js +173 -0
- package/dist/capture/exemplar-capture.d.ts +4 -0
- package/dist/capture/exemplar-capture.js +4 -1
- package/dist/capture/shots.d.ts +6 -1
- package/dist/capture/shots.js +1 -1
- package/dist/capture/stop-tour.d.ts +3 -1
- package/dist/capture/stop-tour.js +1 -1
- package/dist/capture/style-pack-captures.d.ts +67 -0
- package/dist/capture/style-pack-captures.js +172 -0
- package/dist/catalog/stock-catalog.d.ts +8 -0
- package/dist/catalog/stock-catalog.js +13 -0
- package/dist/cli/capture-exemplars.js +18 -32
- package/dist/cli/effect-tour.d.ts +2 -0
- package/dist/cli/effect-tour.js +378 -0
- package/dist/cli/make-frames.d.ts +1 -0
- package/dist/cli/make-frames.js +21 -0
- package/dist/cli/sound-mix.d.ts +1 -0
- package/dist/cli/sound-mix.js +75 -0
- package/dist/cli/study.js +6 -26
- package/dist/domain/blueprint-trigger.d.ts +355 -3
- package/dist/domain/blueprint-trigger.js +149 -8
- package/dist/domain/library-interface.d.ts +50 -29
- package/dist/domain/library-interface.js +54 -41
- package/dist/domain/mission-blueprint.d.ts +13 -6
- package/dist/domain/mission-blueprint.js +6 -0
- package/dist/domain/mod-blueprint.d.ts +4 -4
- package/dist/host/game-logs.d.ts +63 -0
- package/dist/host/game-logs.js +178 -0
- package/dist/host/game-ownership.d.ts +37 -0
- package/dist/host/game-ownership.js +84 -0
- package/dist/host/game-run-report.d.ts +63 -0
- package/dist/host/game-run-report.js +119 -0
- package/dist/host/known-errors.d.ts +34 -0
- package/dist/host/known-errors.js +73 -0
- package/dist/init/init-workspace.d.ts +3 -1
- package/dist/init/init-workspace.js +10 -1
- package/dist/map/convert-mission-triggers.d.ts +115 -7
- package/dist/map/convert-mission-triggers.js +527 -47
- package/dist/map/editor-changes.d.ts +1 -1
- package/dist/map/editor-form.d.ts +5 -0
- package/dist/map/editor-form.js +72 -0
- package/dist/map/game-packages.d.ts +3 -2
- package/dist/map/game-packages.js +5 -2
- package/dist/map/kept-references.js +47 -1
- package/dist/map/kept-session.js +3 -1
- package/dist/map/outline-diff.d.ts +24 -0
- package/dist/map/outline-diff.js +95 -0
- package/dist/map/outline-trigger.d.ts +7 -0
- package/dist/map/outline-trigger.js +29 -20
- package/dist/map/ownership-plan.d.ts +6 -2
- package/dist/map/ownership-plan.js +1 -1
- package/dist/map/package-output.js +13 -8
- package/dist/map/tune-kept-triggers.d.ts +7 -0
- package/dist/map/tune-kept-triggers.js +33 -6
- package/dist/map/write-blueprint-trigger.d.ts +9 -4
- package/dist/map/write-blueprint-trigger.js +46 -13
- package/dist/map/write-map-package.js +20 -9
- package/dist/mcp/capture-jobs.d.ts +2 -0
- package/dist/mcp/capture-jobs.js +2 -0
- package/dist/mcp/server.d.ts +11 -2
- package/dist/mcp/server.js +17 -4
- package/dist/mcp/tools/bank-report.d.ts +19 -0
- package/dist/mcp/tools/bank-report.js +51 -0
- package/dist/mcp/tools/blueprint.js +18 -14
- package/dist/mcp/tools/capture.d.ts +4 -0
- package/dist/mcp/tools/capture.js +22 -5
- package/dist/mcp/tools/catalog.d.ts +1 -1
- package/dist/mcp/tools/catalog.js +30 -1
- package/dist/mcp/tools/compile.d.ts +1 -1
- package/dist/mcp/tools/compile.js +100 -9
- package/dist/mcp/tools/editor-handoff.d.ts +4 -1
- package/dist/mcp/tools/editor-handoff.js +6 -3
- package/dist/mcp/tools/style-pack.d.ts +11 -0
- package/dist/mcp/tools/style-pack.js +245 -0
- package/dist/mcp/tools/tool-group.d.ts +9 -0
- package/dist/mods/button-hotkeys.d.ts +45 -0
- package/dist/mods/button-hotkeys.js +185 -0
- package/dist/mods/compile-mod.js +19 -5
- package/dist/mods/custom-doodads.d.ts +21 -1
- package/dist/mods/custom-doodads.js +53 -7
- package/dist/mods/data-rules.js +8 -1
- package/dist/mods/effective-entry.d.ts +18 -0
- package/dist/mods/effective-entry.js +52 -0
- package/dist/mods/function-search.js +12 -0
- package/dist/mods/library-xml.d.ts +34 -5
- package/dist/mods/library-xml.js +94 -22
- package/dist/mods/sound-mix.d.ts +92 -0
- package/dist/mods/sound-mix.js +195 -0
- package/dist/plugins/check-workspace.js +22 -3
- package/dist/plugins/plugin-api.d.ts +59 -5
- package/dist/plugins/plugin-api.js +6 -0
- package/dist/plugins/plugin-sdk.d.ts +13 -1
- package/dist/plugins/plugin-sdk.js +16 -1
- package/dist/plugins/plugin-sources.js +1 -0
- package/dist/plugins/registry.d.ts +4 -0
- package/dist/plugins/registry.js +6 -2
- package/dist/plugins/workspace.d.ts +5 -0
- package/dist/plugins/workspace.js +10 -2
- package/dist/study/blizzard-baseline.d.ts +76 -0
- package/dist/study/blizzard-baseline.js +137 -0
- package/dist/study/exemplar-report.d.ts +71 -0
- package/dist/study/exemplar-report.js +163 -0
- package/dist/study/find-places.d.ts +127 -0
- package/dist/study/find-places.js +306 -0
- package/dist/study/load-map-package.d.ts +3 -0
- package/dist/study/load-map-package.js +11 -0
- package/dist/study/map-study.d.ts +1 -0
- package/dist/study/map-study.js +3 -0
- package/dist/study/measure-lighting.d.ts +6 -0
- package/dist/study/measure-lighting.js +1 -1
- package/dist/study/measures.d.ts +225 -0
- package/dist/study/measures.js +366 -0
- package/dist/study/scaffold-style-pack.d.ts +58 -0
- package/dist/study/scaffold-style-pack.js +261 -0
- package/dist/study/study-exemplars.d.ts +67 -0
- package/dist/study/study-exemplars.js +133 -0
- package/dist/triggers/blueprint-triggers.d.ts +71 -11
- package/dist/triggers/blueprint-triggers.js +403 -48
- package/dist/triggers/kept-trigger-galaxy.d.ts +29 -0
- package/dist/triggers/kept-trigger-galaxy.js +103 -7
- package/dist/triggers/splice-map-script.d.ts +2 -0
- package/dist/triggers/splice-map-script.js +309 -8
- package/dist/triggers/write-triggers-xml.js +20 -5
- package/dist/ui/frame-path-check.d.ts +43 -4
- package/dist/ui/frame-path-check.js +121 -13
- package/dist/ui/frame-paths.d.ts +21 -1
- package/dist/ui/frame-paths.js +26 -6
- package/dist/ui/toast.d.ts +4 -5
- package/dist/ui/toast.js +6 -10
- package/examples/example-campaign/README.md +27 -0
- package/examples/example-campaign/missions/ashfall-relay/blueprint.json +11 -1
- package/examples/example-campaign/missions/ashfall-relay/triggers/ash-tremors.json +69 -0
- package/examples/example-campaign/missions/ashfall-relay/triggers/start-ash-tremors.json +31 -0
- package/package.json +3 -3
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import { type BlueprintTrigger } from "../domain/blueprint-trigger.js";
|
|
1
|
+
import { type BlueprintComment, type BlueprintCustomScript, type BlueprintFunction, type BlueprintPreset, type BlueprintRecord, type BlueprintTriggerFolder, type BlueprintTrigger } from "../domain/blueprint-trigger.js";
|
|
2
|
+
import { type GuiVariable } from "../domain/library-interface.js";
|
|
2
3
|
import { type GameLibrary } from "../mods/library-galaxy.js";
|
|
3
4
|
import { mapElements } from "../mods/library-xml.js";
|
|
4
5
|
import { type Workspace } from "../plugins/workspace.js";
|
|
5
6
|
import { type AuthoredTriggers } from "../triggers/blueprint-triggers.js";
|
|
6
7
|
import { recordedItemKeys } from "../triggers/splice-triggers.js";
|
|
7
8
|
export type ConvertMissionTriggersOptions = {
|
|
8
|
-
/** The Kept triggers to convert, each by its name or element Id; every Kept one that can convert when not given. */
|
|
9
|
+
/** The Kept triggers and functions to convert, each by its name or element Id; every Kept one that can convert when not given. */
|
|
9
10
|
readonly triggers?: readonly string[];
|
|
10
11
|
/** The libraries in reach of the map; the game's and the Workspace mods' its dependencies load when not given. */
|
|
11
12
|
readonly libraries?: Readonly<Record<string, GameLibrary>>;
|
|
12
13
|
};
|
|
14
|
+
/** The kinds of Kept element a Mission's conversion reads into its Blueprint. */
|
|
15
|
+
export type ConvertedKind = "trigger" | "function" | "global" | "comment" | "folder" | "preset" | "record" | "custom-script";
|
|
13
16
|
export type ConvertedMissionTriggers = {
|
|
14
|
-
/** Each
|
|
17
|
+
/** Each element converted, globals and functions first, each in the package's order: its kind, name, element Id and file (relative to the Blueprint; a global's is the Blueprint itself, its triggerVariables). */
|
|
15
18
|
readonly converted: readonly {
|
|
19
|
+
readonly kind: ConvertedKind;
|
|
16
20
|
readonly name: string;
|
|
17
21
|
readonly id: string;
|
|
18
22
|
readonly file: string;
|
|
19
23
|
}[];
|
|
20
24
|
/** Each one left Kept, with why. */
|
|
21
25
|
readonly refused: readonly {
|
|
22
|
-
readonly
|
|
26
|
+
readonly kind: ConvertedKind;
|
|
27
|
+
readonly element: string;
|
|
23
28
|
readonly reason: string;
|
|
24
29
|
}[];
|
|
25
30
|
};
|
|
@@ -45,7 +50,7 @@ export type KeptConversionContext = {
|
|
|
45
50
|
/** Whether a file (relative to the Blueprint) is taken already, so a converted trigger is given another. */
|
|
46
51
|
readonly fileTaken?: (file: string) => boolean;
|
|
47
52
|
};
|
|
48
|
-
/** Which Kept triggers convert, as convertMissionTriggers would write them, and what stays Kept. */
|
|
53
|
+
/** Which Kept triggers and functions convert, as convertMissionTriggers would write them, and what stays Kept. */
|
|
49
54
|
export type KeptTriggerConversion = {
|
|
50
55
|
/** Each trigger that converts, in the package's order: its name, element Id, the file it would be written to, and its Blueprint element. */
|
|
51
56
|
readonly converted: readonly {
|
|
@@ -60,7 +65,103 @@ export type KeptTriggerConversion = {
|
|
|
60
65
|
readonly id: string;
|
|
61
66
|
readonly reason: string;
|
|
62
67
|
}[];
|
|
63
|
-
/**
|
|
68
|
+
/** The map's functions, as its triggers are: each that converts, and each left Kept with why. */
|
|
69
|
+
readonly functions: {
|
|
70
|
+
readonly converted: readonly {
|
|
71
|
+
readonly name: string;
|
|
72
|
+
readonly id: string;
|
|
73
|
+
readonly file: string;
|
|
74
|
+
readonly fn: BlueprintFunction;
|
|
75
|
+
}[];
|
|
76
|
+
readonly refused: readonly {
|
|
77
|
+
readonly function: string;
|
|
78
|
+
readonly id: string;
|
|
79
|
+
readonly reason: string;
|
|
80
|
+
}[];
|
|
81
|
+
};
|
|
82
|
+
/** The map's globals, each that converts into the Blueprint's triggerVariables, and each left Kept with why. */
|
|
83
|
+
readonly globals: {
|
|
84
|
+
readonly converted: readonly {
|
|
85
|
+
readonly name: string;
|
|
86
|
+
readonly id: string;
|
|
87
|
+
readonly variable: GuiVariable;
|
|
88
|
+
}[];
|
|
89
|
+
readonly refused: readonly {
|
|
90
|
+
readonly global: string;
|
|
91
|
+
readonly id: string;
|
|
92
|
+
readonly reason: string;
|
|
93
|
+
}[];
|
|
94
|
+
};
|
|
95
|
+
/** The comments filed in Root or a folder, each that converts and each left Kept with why. */
|
|
96
|
+
readonly comments: {
|
|
97
|
+
readonly converted: readonly {
|
|
98
|
+
readonly name: string;
|
|
99
|
+
readonly id: string;
|
|
100
|
+
readonly file: string;
|
|
101
|
+
readonly comment: BlueprintComment;
|
|
102
|
+
}[];
|
|
103
|
+
readonly refused: readonly {
|
|
104
|
+
readonly comment: string;
|
|
105
|
+
readonly id: string;
|
|
106
|
+
readonly reason: string;
|
|
107
|
+
}[];
|
|
108
|
+
};
|
|
109
|
+
/** The map's Trigger Folders, each that converts into the Blueprint's triggerFolders (filing what it did, Kept or converted), and each left Kept with why. */
|
|
110
|
+
readonly folders: {
|
|
111
|
+
readonly converted: readonly {
|
|
112
|
+
readonly name: string;
|
|
113
|
+
readonly id: string;
|
|
114
|
+
readonly folder: BlueprintTriggerFolder;
|
|
115
|
+
}[];
|
|
116
|
+
readonly refused: readonly {
|
|
117
|
+
readonly folder: string;
|
|
118
|
+
readonly id: string;
|
|
119
|
+
readonly reason: string;
|
|
120
|
+
}[];
|
|
121
|
+
};
|
|
122
|
+
/** The map's preset types, each that converts (its values and the comments among them with it), and each left Kept with why. */
|
|
123
|
+
readonly presets: {
|
|
124
|
+
readonly converted: readonly {
|
|
125
|
+
readonly name: string;
|
|
126
|
+
readonly id: string;
|
|
127
|
+
readonly file: string;
|
|
128
|
+
readonly preset: BlueprintPreset;
|
|
129
|
+
}[];
|
|
130
|
+
readonly refused: readonly {
|
|
131
|
+
readonly preset: string;
|
|
132
|
+
readonly id: string;
|
|
133
|
+
readonly reason: string;
|
|
134
|
+
}[];
|
|
135
|
+
};
|
|
136
|
+
/** The map's records (Editor Structures), each that converts (its members with it), and each left Kept with why. */
|
|
137
|
+
readonly records: {
|
|
138
|
+
readonly converted: readonly {
|
|
139
|
+
readonly name: string;
|
|
140
|
+
readonly id: string;
|
|
141
|
+
readonly file: string;
|
|
142
|
+
readonly record: BlueprintRecord;
|
|
143
|
+
}[];
|
|
144
|
+
readonly refused: readonly {
|
|
145
|
+
readonly record: string;
|
|
146
|
+
readonly id: string;
|
|
147
|
+
readonly reason: string;
|
|
148
|
+
}[];
|
|
149
|
+
};
|
|
150
|
+
/** The custom script filed among the map's items, each that converts (its script kept as data), and each left Kept with why. */
|
|
151
|
+
readonly customScripts: {
|
|
152
|
+
readonly converted: readonly {
|
|
153
|
+
readonly name: string;
|
|
154
|
+
readonly id: string;
|
|
155
|
+
readonly file: string;
|
|
156
|
+
readonly customScript: BlueprintCustomScript;
|
|
157
|
+
}[];
|
|
158
|
+
readonly refused: readonly {
|
|
159
|
+
readonly customScript: string;
|
|
160
|
+
readonly id: string;
|
|
161
|
+
readonly reason: string;
|
|
162
|
+
}[];
|
|
163
|
+
};
|
|
164
|
+
/** Each Kept item of a kind that doesn't convert yet: its type in Triggers, Id and name. Listed only when nothing was asked for. */
|
|
64
165
|
readonly notYetConvertible: readonly {
|
|
65
166
|
readonly type: string;
|
|
66
167
|
readonly id: string;
|
|
@@ -81,6 +182,13 @@ export declare const recordConversionContext: (entries: Parameters<typeof record
|
|
|
81
182
|
* the kinds that don't convert yet are listed apart.
|
|
82
183
|
*/
|
|
83
184
|
export declare function convertKeptTriggers({ triggers: xml, triggerStrings, script, gameStrings }: KeptPackageFiles, { triggers: asked, libraries, compiled, held, authored, fileTaken }?: KeptConversionContext): KeptTriggerConversion;
|
|
185
|
+
/**
|
|
186
|
+
* The package's Kept function `id` read back into a Blueprint element, as convert_triggers reads it:
|
|
187
|
+
* its interface and body, and its text values' words from each locale's GameStrings, keyed by the
|
|
188
|
+
* Param or expression holding them. Throws UnconvertibleFunctionError where its XML can't be read,
|
|
189
|
+
* or it is written as a Galaxy template (ScriptCode) or natively, which a Mission Blueprint doesn't hold.
|
|
190
|
+
*/
|
|
191
|
+
export declare function readKeptFunction(elements: ReturnType<typeof mapElements>, strings: ReadonlyMap<string, string>, gameStrings: ReadonlyMap<string, string>, id: string): BlueprintFunction;
|
|
84
192
|
/** Converts chosen Kept triggers of the Mission's Map Package at `blueprintPath` into its Blueprint's own trigger elements, as above. */
|
|
85
193
|
export declare function convertMissionTriggers(workspace: Workspace, blueprintPath: string, { triggers: asked, libraries: given }?: ConvertMissionTriggersOptions): Promise<ConvertedMissionTriggers>;
|
|
86
194
|
/**
|
|
@@ -94,5 +202,5 @@ export declare function readKeptTrigger(elements: ReturnType<typeof mapElements>
|
|
|
94
202
|
readonly asSaved: BlueprintTrigger;
|
|
95
203
|
readonly trigger: BlueprintTrigger;
|
|
96
204
|
};
|
|
97
|
-
/** What a conversion did, for the author: one line for what converted, one per
|
|
205
|
+
/** What a conversion did, for the author: one line for what converted, one per element left Kept. */
|
|
98
206
|
export declare function formatConvertedMissionTriggers({ converted, refused }: ConvertedMissionTriggers): string;
|