dsh-unreal-python-api 1.4.0 → 1.5.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/CHANGELOG.md +11 -0
- package/README.md +5 -0
- package/index.js +50 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.5.0 — 2026-11-30
|
|
4
|
+
|
|
5
|
+
- The configuration is now a real GUI form. The Host projects a plugin's
|
|
6
|
+
`Config` schema into a form, and that form needed two things this package was
|
|
7
|
+
missing: a description per field (it becomes the help text) and a constrained
|
|
8
|
+
`scope`. Every one of the twelve fields now carries one, and `scope` is a
|
|
9
|
+
three-way choice (`anywhere` / `unreal-project` / `workspaces`) instead of a
|
|
10
|
+
free-text string, so it renders as a select and an invalid value is refused at
|
|
11
|
+
load with `$.scope expected "anywhere" | "unreal-project" | "workspaces"`.
|
|
12
|
+
- No behaviour change: the defaults, the scope gate and the tools are untouched.
|
|
13
|
+
|
|
3
14
|
## 1.4.0 — 2026-11-30
|
|
4
15
|
|
|
5
16
|
- Two new general tools, so the plugin knows *which* engine it is talking about
|
package/README.md
CHANGED
|
@@ -136,6 +136,11 @@ locale/, icon.svg Host display metadata
|
|
|
136
136
|
| `exclude` | `[]` | Absolute roots that never get the development tier, in every `scope` mode. |
|
|
137
137
|
| `monolithUrl` | `http://127.0.0.1:9316/mcp` | The editor bridge these tools read through. Read-only tools only; there is no fallback provider. |
|
|
138
138
|
| `engines` | `[]` | Installation roots to resolve an `EngineAssociation` against, for a machine whose Launcher manifest is missing or stale. Each root is read for the version it actually is. |
|
|
139
|
+
|
|
140
|
+
This schema is also the GUI. DSH projects a plugin's `Config` into a form on the
|
|
141
|
+
plugin's own page (Web sidebar → **Plugins** → this bundle), with each field's
|
|
142
|
+
`description` as its help text and `scope` as a select. The YAML above stays the
|
|
143
|
+
source of truth for a machine-level install; both edit the same entry.
|
|
139
144
|
| `projectMarkers` | `['.uproject']` | Files that identify a project root; replaces the default list. |
|
|
140
145
|
|
|
141
146
|
### Two tiers, and workspace scoping
|
package/index.js
CHANGED
|
@@ -38,19 +38,57 @@ export const name = 'unreal-python-api'
|
|
|
38
38
|
|
|
39
39
|
export const inject = ['tools', 'systemPrompt', 'workingDirectory']
|
|
40
40
|
|
|
41
|
+
// Every field carries a description because the Host projects this schema into a
|
|
42
|
+
// configuration form, where the description is the field's help text.
|
|
41
43
|
export const Config = z.object({
|
|
42
|
-
docBaseUrl: z
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
docBaseUrl: z
|
|
45
|
+
.string()
|
|
46
|
+
.default(DEFAULT_DOC_BASE_URL)
|
|
47
|
+
.description('Base URL of the published Unreal Python API documentation. The symbol inventory and the signature pages are read from here.'),
|
|
48
|
+
cacheDir: z
|
|
49
|
+
.string()
|
|
50
|
+
.default('')
|
|
51
|
+
.description('Directory for the cached symbol inventory. Empty uses DSH_UNREAL_PYTHON_API_CACHE, then the platform cache directory.'),
|
|
52
|
+
refreshHours: z
|
|
53
|
+
.number()
|
|
54
|
+
.default(24)
|
|
55
|
+
.description('Re-download the inventory when the cached copy is older than this many hours. 0 always re-downloads.'),
|
|
56
|
+
maxResults: z
|
|
57
|
+
.number()
|
|
58
|
+
.default(30)
|
|
59
|
+
.description('Largest number of rows a listing or search returns before it reports truncation.'),
|
|
60
|
+
fetchTimeoutMs: z
|
|
61
|
+
.number()
|
|
62
|
+
.default(30_000)
|
|
63
|
+
.description('Timeout for one documentation or editor request, in milliseconds.'),
|
|
64
|
+
promptSection: z
|
|
65
|
+
.boolean()
|
|
66
|
+
.default(true)
|
|
67
|
+
.description('Add a short system-prompt section so the model knows these tools exist.'),
|
|
68
|
+
scope: z
|
|
69
|
+
.union([z.const('anywhere'), z.const('unreal-project'), z.const('workspaces')])
|
|
70
|
+
.default(DEFAULT_SCOPE)
|
|
71
|
+
.description('Where the development tier (the tool builder) is offered: anywhere never gates it; unreal-project needs a *.uproject in the session directory or a parent; workspaces needs the directory inside one of the listed roots.'),
|
|
72
|
+
workspaces: z
|
|
73
|
+
.array(z.string())
|
|
74
|
+
.default([])
|
|
75
|
+
.description('Absolute roots that count as members when scope is workspaces.'),
|
|
76
|
+
projectMarkers: z
|
|
77
|
+
.array(z.string())
|
|
78
|
+
.default(DEFAULT_PROJECT_MARKERS)
|
|
79
|
+
.description('Files or directories that mark an Unreal project root for scope unreal-project. A leading dot matches a file extension.'),
|
|
80
|
+
exclude: z
|
|
81
|
+
.array(z.string())
|
|
82
|
+
.default([])
|
|
83
|
+
.description('Absolute roots that never get the development tier, in every scope mode.'),
|
|
84
|
+
monolithUrl: z
|
|
85
|
+
.string()
|
|
86
|
+
.default(DEFAULT_MONOLITH_URL)
|
|
87
|
+
.description('The Unreal editor bridge the engine and project tools read through (Monolith MCP). Read-only tools only, no fallback provider.'),
|
|
88
|
+
engines: z
|
|
89
|
+
.array(z.string())
|
|
90
|
+
.default([])
|
|
91
|
+
.description('Engine installation roots to resolve EngineAssociation against when the launcher manifest is missing or stale.'),
|
|
54
92
|
})
|
|
55
93
|
|
|
56
94
|
/** Largest row count any tool returns, whatever a caller asks for. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-unreal-python-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Unreal Engine Python API context for DSH agents: symbol inventory listing, symbol search, exact syntax from the Epic docs, and tool scaffolding in four styles (ToolsetRegistry toolset, editor script, MCP tool descriptors, DSH defineTool module).",
|
|
6
6
|
"license": "MIT",
|