@aqian0/dsh-renderer 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +122 -2
- package/cordis.patch.yml +4 -0
- package/icon.svg +5 -0
- package/lib/client.js +789 -0
- package/lib/config.js +96 -0
- package/lib/host/artifact-skill.js +55 -0
- package/lib/host/artifact-tool.js +177 -0
- package/lib/host/media-bridge.js +102 -0
- package/lib/index.js +120 -0
- package/lib/shared/artifact-stream.js +293 -0
- package/lib/shared/config-defaults.js +92 -0
- package/lib/shared/content-complexity.js +812 -0
- package/lib/shared/media-extractor.js +154 -0
- package/lib/shared/sandbox-core.js +286 -0
- package/lib/shared/sanitize.js +539 -0
- package/lib/types/client/artifact-node.d.ts +62 -0
- package/lib/types/client/artifact-resource.d.ts +30 -0
- package/lib/types/client/artifact-toolview.d.ts +17 -0
- package/lib/types/client/code-view.d.ts +22 -0
- package/lib/types/client/document-card.d.ts +33 -0
- package/lib/types/client/fence-layer.d.ts +26 -0
- package/lib/types/client/highlight.d.ts +24 -0
- package/lib/types/client/icons.d.ts +10 -0
- package/lib/types/client/locales.d.ts +57 -0
- package/lib/types/client/sandbox.d.ts +23 -0
- package/lib/types/client/styles.d.ts +20 -0
- package/lib/types/client/svg-view.d.ts +19 -0
- package/lib/types/client/theme.d.ts +20 -0
- package/lib/types/client/turn-media.d.ts +10 -0
- package/lib/types/client/types.d.ts +293 -0
- package/lib/types/client/workbench.d.ts +24 -0
- package/lib/types/client.d.ts +10 -0
- package/lib/types/config.d.ts +50 -0
- package/lib/types/host/artifact-skill.d.ts +39 -0
- package/lib/types/host/artifact-tool.d.ts +82 -0
- package/lib/types/host/media-bridge.d.ts +47 -0
- package/lib/types/index.d.ts +29 -0
- package/lib/types/shared/artifact-stream.d.ts +52 -0
- package/lib/types/shared/config-defaults.d.ts +56 -0
- package/lib/types/shared/content-complexity.d.ts +94 -0
- package/lib/types/shared/media-extractor.d.ts +42 -0
- package/lib/types/shared/sandbox-core.d.ts +128 -0
- package/lib/types/shared/sanitize.d.ts +97 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +95 -4
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zero-dependency streaming JSON parser and durable event extractor for
|
|
3
|
+
* `render_artifact` tool calls.
|
|
4
|
+
*
|
|
5
|
+
* Shared by the Conversation node assembler (`artifact-node.ts`) and the
|
|
6
|
+
* `ctx.resources` session-history recovery provider (`artifact-resource.ts`).
|
|
7
|
+
*
|
|
8
|
+
* @module dsh-renderer/shared/artifact-stream
|
|
9
|
+
*/
|
|
10
|
+
import { computeArtifactId } from './content-complexity.js';
|
|
11
|
+
import { utf8ByteLength } from './sanitize.js';
|
|
12
|
+
/** Canonical tool name matching Host registration (`src/host/artifact-tool.ts`). */
|
|
13
|
+
export const RENDER_ARTIFACT_TOOL_NAME = 'render_artifact';
|
|
14
|
+
const VALID_ARTIFACT_KINDS = new Set(['html', 'svg', 'code']);
|
|
15
|
+
function isRecord(value) {
|
|
16
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
17
|
+
}
|
|
18
|
+
function normalizeArtifactKind(raw) {
|
|
19
|
+
if (typeof raw !== 'string')
|
|
20
|
+
return undefined;
|
|
21
|
+
const lower = raw.trim().toLowerCase();
|
|
22
|
+
return VALID_ARTIFACT_KINDS.has(lower) ? lower : undefined;
|
|
23
|
+
}
|
|
24
|
+
function normalizeArtifactLang(kind, rawLang) {
|
|
25
|
+
if (kind === 'html')
|
|
26
|
+
return 'html';
|
|
27
|
+
if (kind === 'svg')
|
|
28
|
+
return 'svg';
|
|
29
|
+
if (typeof rawLang === 'string') {
|
|
30
|
+
const trimmed = rawLang.trim().toLowerCase();
|
|
31
|
+
if (trimmed.length > 0)
|
|
32
|
+
return trimmed.slice(0, 32);
|
|
33
|
+
}
|
|
34
|
+
return 'text';
|
|
35
|
+
}
|
|
36
|
+
function countContentLines(content) {
|
|
37
|
+
const trimmed = content.trim();
|
|
38
|
+
return trimmed.length === 0 ? 0 : trimmed.split(/\r?\n/).length;
|
|
39
|
+
}
|
|
40
|
+
function skipWhitespace(source, index) {
|
|
41
|
+
let i = index;
|
|
42
|
+
while (i < source.length) {
|
|
43
|
+
const ch = source.charCodeAt(i);
|
|
44
|
+
if (ch === 32 || ch === 9 || ch === 10 || ch === 13) {
|
|
45
|
+
i += 1;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return i;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Decode a JSON string literal starting at `openQuoteIndex` (`"`), tolerating
|
|
55
|
+
* truncation mid-stream or mid-escape without throwing.
|
|
56
|
+
*/
|
|
57
|
+
function readJsonStringPrefix(source, openQuoteIndex) {
|
|
58
|
+
let i = openQuoteIndex + 1;
|
|
59
|
+
let out = '';
|
|
60
|
+
while (i < source.length) {
|
|
61
|
+
const ch = source[i];
|
|
62
|
+
if (ch === '"') {
|
|
63
|
+
return { value: out, nextIndex: i + 1, closed: true };
|
|
64
|
+
}
|
|
65
|
+
if (ch !== '\\') {
|
|
66
|
+
out += ch;
|
|
67
|
+
i += 1;
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if (i + 1 >= source.length) {
|
|
71
|
+
return { value: out, nextIndex: source.length, closed: false };
|
|
72
|
+
}
|
|
73
|
+
const esc = source[i + 1];
|
|
74
|
+
switch (esc) {
|
|
75
|
+
case '"':
|
|
76
|
+
case '\\':
|
|
77
|
+
case '/':
|
|
78
|
+
out += esc;
|
|
79
|
+
i += 2;
|
|
80
|
+
break;
|
|
81
|
+
case 'b':
|
|
82
|
+
out += '\b';
|
|
83
|
+
i += 2;
|
|
84
|
+
break;
|
|
85
|
+
case 'f':
|
|
86
|
+
out += '\f';
|
|
87
|
+
i += 2;
|
|
88
|
+
break;
|
|
89
|
+
case 'n':
|
|
90
|
+
out += '\n';
|
|
91
|
+
i += 2;
|
|
92
|
+
break;
|
|
93
|
+
case 'r':
|
|
94
|
+
out += '\r';
|
|
95
|
+
i += 2;
|
|
96
|
+
break;
|
|
97
|
+
case 't':
|
|
98
|
+
out += '\t';
|
|
99
|
+
i += 2;
|
|
100
|
+
break;
|
|
101
|
+
case 'u': {
|
|
102
|
+
if (i + 6 > source.length) {
|
|
103
|
+
return { value: out, nextIndex: source.length, closed: false };
|
|
104
|
+
}
|
|
105
|
+
const hex = source.slice(i + 2, i + 6);
|
|
106
|
+
if (/^[0-9a-fA-F]{4}$/.test(hex)) {
|
|
107
|
+
out += String.fromCharCode(Number.parseInt(hex, 16));
|
|
108
|
+
}
|
|
109
|
+
i += 6;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
default:
|
|
113
|
+
out += esc;
|
|
114
|
+
i += 2;
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return { value: out, nextIndex: source.length, closed: false };
|
|
119
|
+
}
|
|
120
|
+
/** Skip any non-string JSON value (object, array, number, boolean, null) safely. */
|
|
121
|
+
function skipJsonValue(source, start) {
|
|
122
|
+
const i = skipWhitespace(source, start);
|
|
123
|
+
if (i >= source.length)
|
|
124
|
+
return source.length;
|
|
125
|
+
const first = source[i];
|
|
126
|
+
if (first === '"') {
|
|
127
|
+
return readJsonStringPrefix(source, i).nextIndex;
|
|
128
|
+
}
|
|
129
|
+
if (first === '{' || first === '[') {
|
|
130
|
+
let depth = 0;
|
|
131
|
+
let cursor = i;
|
|
132
|
+
while (cursor < source.length) {
|
|
133
|
+
const ch = source[cursor];
|
|
134
|
+
if (ch === '"') {
|
|
135
|
+
const str = readJsonStringPrefix(source, cursor);
|
|
136
|
+
cursor = str.nextIndex;
|
|
137
|
+
if (!str.closed)
|
|
138
|
+
return source.length;
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
if (ch === '{' || ch === '[') {
|
|
142
|
+
depth += 1;
|
|
143
|
+
}
|
|
144
|
+
else if (ch === '}' || ch === ']') {
|
|
145
|
+
depth -= 1;
|
|
146
|
+
if (depth === 0)
|
|
147
|
+
return cursor + 1;
|
|
148
|
+
}
|
|
149
|
+
cursor += 1;
|
|
150
|
+
}
|
|
151
|
+
return source.length;
|
|
152
|
+
}
|
|
153
|
+
let cursor = i;
|
|
154
|
+
while (cursor < source.length) {
|
|
155
|
+
const ch = source[cursor];
|
|
156
|
+
if (ch === ',' || ch === '}' || ch === ']' || ch === ' ' || ch === '\t' || ch === '\n' || ch === '\r') {
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
cursor += 1;
|
|
160
|
+
}
|
|
161
|
+
return cursor;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Incrementally extract top-level `title`, `kind`, `lang`, and streamed `content`
|
|
165
|
+
* size/line estimates from a partial JSON object produced by `tool-call-delta`.
|
|
166
|
+
*/
|
|
167
|
+
export function extractStreamingArtifactFields(rawJsonPrefix) {
|
|
168
|
+
let i = skipWhitespace(rawJsonPrefix, 0);
|
|
169
|
+
if (i >= rawJsonPrefix.length || rawJsonPrefix[i] !== '{') {
|
|
170
|
+
return {};
|
|
171
|
+
}
|
|
172
|
+
i += 1;
|
|
173
|
+
let title;
|
|
174
|
+
let kind;
|
|
175
|
+
let lang;
|
|
176
|
+
let contentBytes;
|
|
177
|
+
let contentLines;
|
|
178
|
+
while (i < rawJsonPrefix.length) {
|
|
179
|
+
i = skipWhitespace(rawJsonPrefix, i);
|
|
180
|
+
if (i >= rawJsonPrefix.length || rawJsonPrefix[i] === '}')
|
|
181
|
+
break;
|
|
182
|
+
if (rawJsonPrefix[i] === ',') {
|
|
183
|
+
i += 1;
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
if (rawJsonPrefix[i] !== '"')
|
|
187
|
+
break;
|
|
188
|
+
const keyToken = readJsonStringPrefix(rawJsonPrefix, i);
|
|
189
|
+
if (!keyToken.closed)
|
|
190
|
+
break;
|
|
191
|
+
const key = keyToken.value;
|
|
192
|
+
i = skipWhitespace(rawJsonPrefix, keyToken.nextIndex);
|
|
193
|
+
if (i >= rawJsonPrefix.length || rawJsonPrefix[i] !== ':')
|
|
194
|
+
break;
|
|
195
|
+
i = skipWhitespace(rawJsonPrefix, i + 1);
|
|
196
|
+
if (i >= rawJsonPrefix.length)
|
|
197
|
+
break;
|
|
198
|
+
if (rawJsonPrefix[i] === '"') {
|
|
199
|
+
const valToken = readJsonStringPrefix(rawJsonPrefix, i);
|
|
200
|
+
i = valToken.nextIndex;
|
|
201
|
+
if (key === 'title') {
|
|
202
|
+
const cleaned = valToken.value.replace(/\s+/g, ' ').trim().slice(0, 120);
|
|
203
|
+
if (cleaned.length > 0)
|
|
204
|
+
title = cleaned;
|
|
205
|
+
}
|
|
206
|
+
else if (key === 'kind') {
|
|
207
|
+
const normalized = normalizeArtifactKind(valToken.value);
|
|
208
|
+
if (normalized !== undefined)
|
|
209
|
+
kind = normalized;
|
|
210
|
+
}
|
|
211
|
+
else if (key === 'lang') {
|
|
212
|
+
const cleaned = valToken.value.trim().toLowerCase().slice(0, 32);
|
|
213
|
+
if (cleaned.length > 0)
|
|
214
|
+
lang = cleaned;
|
|
215
|
+
}
|
|
216
|
+
else if (key === 'content') {
|
|
217
|
+
if (valToken.value.length > 0) {
|
|
218
|
+
contentBytes = utf8ByteLength(valToken.value);
|
|
219
|
+
contentLines = countContentLines(valToken.value);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
if (!valToken.closed)
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
i = skipJsonValue(rawJsonPrefix, i);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return { title, kind, lang, contentBytes, contentLines };
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Parse and validate complete `render_artifact` arguments (either a JSON string
|
|
233
|
+
* from `tool/call` or a plain object from PTC `tool/ptc-dispatch*`).
|
|
234
|
+
*/
|
|
235
|
+
export function parseArtifactToolArguments(raw) {
|
|
236
|
+
let obj = raw;
|
|
237
|
+
if (typeof obj === 'string') {
|
|
238
|
+
if (obj.trim().length === 0)
|
|
239
|
+
return null;
|
|
240
|
+
try {
|
|
241
|
+
obj = JSON.parse(obj);
|
|
242
|
+
}
|
|
243
|
+
catch {
|
|
244
|
+
return null;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
if (!isRecord(obj))
|
|
248
|
+
return null;
|
|
249
|
+
const rawTitle = typeof obj['title'] === 'string' ? obj['title'].replace(/\s+/g, ' ').trim().slice(0, 120) : '';
|
|
250
|
+
const kind = normalizeArtifactKind(obj['kind']);
|
|
251
|
+
const rawContent = obj['content'];
|
|
252
|
+
if (kind === undefined || typeof rawContent !== 'string' || rawContent.trim().length === 0) {
|
|
253
|
+
return null;
|
|
254
|
+
}
|
|
255
|
+
const lang = normalizeArtifactLang(kind, obj['lang']);
|
|
256
|
+
const title = rawTitle.length > 0 ? rawTitle : kind.toUpperCase();
|
|
257
|
+
const bytes = utf8ByteLength(rawContent);
|
|
258
|
+
const lines = countContentLines(rawContent);
|
|
259
|
+
const artifactId = computeArtifactId(kind, rawContent, lang);
|
|
260
|
+
return {
|
|
261
|
+
artifactId,
|
|
262
|
+
title,
|
|
263
|
+
kind,
|
|
264
|
+
lang,
|
|
265
|
+
content: rawContent,
|
|
266
|
+
lines,
|
|
267
|
+
bytes,
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Extract a complete logged `render_artifact` invocation from a durable DSH
|
|
272
|
+
* Session event (`tool/call`, `tool/ptc-dispatch-start`, or `tool/ptc-dispatch`).
|
|
273
|
+
*/
|
|
274
|
+
export function extractLoggedRenderArtifact(event) {
|
|
275
|
+
if (event.type !== 'tool/call' && event.type !== 'tool/ptc-dispatch-start' && event.type !== 'tool/ptc-dispatch') {
|
|
276
|
+
return undefined;
|
|
277
|
+
}
|
|
278
|
+
if (!isRecord(event.data) || event.data['name'] !== RENDER_ARTIFACT_TOOL_NAME) {
|
|
279
|
+
return undefined;
|
|
280
|
+
}
|
|
281
|
+
const rawCallId = event.type === 'tool/call' ? event.data['callId'] : event.data['subCallId'];
|
|
282
|
+
if (typeof rawCallId !== 'string' || rawCallId.length === 0) {
|
|
283
|
+
return undefined;
|
|
284
|
+
}
|
|
285
|
+
const parsed = parseArtifactToolArguments(event.data['arguments']);
|
|
286
|
+
if (parsed === null) {
|
|
287
|
+
return undefined;
|
|
288
|
+
}
|
|
289
|
+
return {
|
|
290
|
+
callId: rawCallId,
|
|
291
|
+
...parsed,
|
|
292
|
+
};
|
|
293
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zero-dependency configuration types, defaults, and browser-safe normalizer.
|
|
3
|
+
*
|
|
4
|
+
* Kept separate from `src/config.ts` (which imports `@deepseek-ai/schemastery`)
|
|
5
|
+
* so the browser Client bundle stays 100% dependency-free.
|
|
6
|
+
*
|
|
7
|
+
* @module dsh-renderer/shared/config-defaults
|
|
8
|
+
*/
|
|
9
|
+
/** Supported Markdown fence languages rendered by Phase 1 of `@aqian0/dsh-renderer`. */
|
|
10
|
+
export const SUPPORTED_FENCE_LANGUAGES = ['html', 'svg'];
|
|
11
|
+
/** Global property name written by the Host `webserver/index-inject` hook and read by the Client. */
|
|
12
|
+
export const RENDERER_CONFIG_GLOBAL = '__DSH_RENDERER_CONFIG__';
|
|
13
|
+
/** Baseline defaults used when configuration fields or Host injections are absent. */
|
|
14
|
+
export const DEFAULT_RENDERER_CONFIG = Object.freeze({
|
|
15
|
+
enableFencePreview: true,
|
|
16
|
+
fenceLanguages: Object.freeze([...SUPPORTED_FENCE_LANGUAGES]),
|
|
17
|
+
defaultView: 'preview',
|
|
18
|
+
allowExternalResources: false,
|
|
19
|
+
enableWorkbench: true,
|
|
20
|
+
complexContentToSidebar: true,
|
|
21
|
+
enableArtifactTool: true,
|
|
22
|
+
enableArtifactSkill: true,
|
|
23
|
+
autoOpenArtifact: true,
|
|
24
|
+
enableTurnMediaFallback: true,
|
|
25
|
+
bridgeToolDataImages: false,
|
|
26
|
+
maxContentBytes: 524_288,
|
|
27
|
+
inlineMaxHeight: 480,
|
|
28
|
+
maxActiveSandboxes: 6,
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* Safely coerce an untrusted global config payload (e.g. `globalThis.__DSH_RENDERER_CONFIG__`)
|
|
32
|
+
* into a complete {@link RendererPluginConfig} without requiring Schemastery in the browser bundle.
|
|
33
|
+
*
|
|
34
|
+
* @param raw - untrusted value read from the browser global object.
|
|
35
|
+
*/
|
|
36
|
+
export function normalizeClientConfig(raw) {
|
|
37
|
+
if (raw === null || typeof raw !== 'object') {
|
|
38
|
+
return DEFAULT_RENDERER_CONFIG;
|
|
39
|
+
}
|
|
40
|
+
const input = raw;
|
|
41
|
+
const supported = new Set(SUPPORTED_FENCE_LANGUAGES);
|
|
42
|
+
let fenceLanguages = [...DEFAULT_RENDERER_CONFIG.fenceLanguages];
|
|
43
|
+
if (Array.isArray(input['fenceLanguages'])) {
|
|
44
|
+
const filtered = [];
|
|
45
|
+
for (const item of input['fenceLanguages']) {
|
|
46
|
+
if (typeof item === 'string' && supported.has(item) && !filtered.includes(item)) {
|
|
47
|
+
filtered.push(item);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
fenceLanguages = filtered;
|
|
51
|
+
}
|
|
52
|
+
const defaultView = input['defaultView'] === 'code' ? 'code' : 'preview';
|
|
53
|
+
const clampInt = (value, min, max, fallback) => {
|
|
54
|
+
if (typeof value !== 'number' || !Number.isInteger(value))
|
|
55
|
+
return fallback;
|
|
56
|
+
return Math.min(max, Math.max(min, value));
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
enableFencePreview: typeof input['enableFencePreview'] === 'boolean'
|
|
60
|
+
? input['enableFencePreview']
|
|
61
|
+
: DEFAULT_RENDERER_CONFIG.enableFencePreview,
|
|
62
|
+
fenceLanguages,
|
|
63
|
+
defaultView,
|
|
64
|
+
allowExternalResources: typeof input['allowExternalResources'] === 'boolean'
|
|
65
|
+
? input['allowExternalResources']
|
|
66
|
+
: DEFAULT_RENDERER_CONFIG.allowExternalResources,
|
|
67
|
+
enableWorkbench: typeof input['enableWorkbench'] === 'boolean'
|
|
68
|
+
? input['enableWorkbench']
|
|
69
|
+
: DEFAULT_RENDERER_CONFIG.enableWorkbench,
|
|
70
|
+
complexContentToSidebar: typeof input['complexContentToSidebar'] === 'boolean'
|
|
71
|
+
? input['complexContentToSidebar']
|
|
72
|
+
: DEFAULT_RENDERER_CONFIG.complexContentToSidebar,
|
|
73
|
+
enableArtifactTool: typeof input['enableArtifactTool'] === 'boolean'
|
|
74
|
+
? input['enableArtifactTool']
|
|
75
|
+
: DEFAULT_RENDERER_CONFIG.enableArtifactTool,
|
|
76
|
+
enableArtifactSkill: typeof input['enableArtifactSkill'] === 'boolean'
|
|
77
|
+
? input['enableArtifactSkill']
|
|
78
|
+
: DEFAULT_RENDERER_CONFIG.enableArtifactSkill,
|
|
79
|
+
autoOpenArtifact: typeof input['autoOpenArtifact'] === 'boolean'
|
|
80
|
+
? input['autoOpenArtifact']
|
|
81
|
+
: DEFAULT_RENDERER_CONFIG.autoOpenArtifact,
|
|
82
|
+
enableTurnMediaFallback: typeof input['enableTurnMediaFallback'] === 'boolean'
|
|
83
|
+
? input['enableTurnMediaFallback']
|
|
84
|
+
: DEFAULT_RENDERER_CONFIG.enableTurnMediaFallback,
|
|
85
|
+
bridgeToolDataImages: typeof input['bridgeToolDataImages'] === 'boolean'
|
|
86
|
+
? input['bridgeToolDataImages']
|
|
87
|
+
: DEFAULT_RENDERER_CONFIG.bridgeToolDataImages,
|
|
88
|
+
maxContentBytes: clampInt(input['maxContentBytes'], 1024, 16_777_216, DEFAULT_RENDERER_CONFIG.maxContentBytes),
|
|
89
|
+
inlineMaxHeight: clampInt(input['inlineMaxHeight'], 120, 2400, DEFAULT_RENDERER_CONFIG.inlineMaxHeight),
|
|
90
|
+
maxActiveSandboxes: clampInt(input['maxActiveSandboxes'], 1, 32, DEFAULT_RENDERER_CONFIG.maxActiveSandboxes),
|
|
91
|
+
};
|
|
92
|
+
}
|