@banzhe/dsh-devcontainer 0.0.0-stage → 0.2.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 +79 -2
- package/README.zh-CN.md +80 -0
- package/cordis.patch.yml +71 -0
- package/lib/client.js +789 -0
- package/lib/client.js.map +1 -0
- package/lib/exec-CKAAz2zz.js +241 -0
- package/lib/exec-CKAAz2zz.js.map +1 -0
- package/lib/exec-_8g5fdSx.d.ts +26 -0
- package/lib/exec-_8g5fdSx.d.ts.map +1 -0
- package/lib/fs.d.ts +530 -0
- package/lib/fs.d.ts.map +1 -0
- package/lib/fs.js +1737 -0
- package/lib/fs.js.map +1 -0
- package/lib/helper/main.mjs +1008 -0
- package/lib/index.d.ts +88 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +927 -0
- package/lib/index.js.map +1 -0
- package/lib/sbx-1GsFjQBk.js +1489 -0
- package/lib/sbx-1GsFjQBk.js.map +1 -0
- package/lib/shell.d.ts +175 -0
- package/lib/shell.d.ts.map +1 -0
- package/lib/shell.js +454 -0
- package/lib/shell.js.map +1 -0
- package/lib/types-DsF9Hz5P.d.ts +33 -0
- package/lib/types-DsF9Hz5P.d.ts.map +1 -0
- package/package.json +116 -3
package/lib/client.js
ADDED
|
@@ -0,0 +1,789 @@
|
|
|
1
|
+
window.__ModuleLoader__.load({
|
|
2
|
+
id: "@banzhe/dsh-devcontainer",
|
|
3
|
+
factory: (require) => {
|
|
4
|
+
var module = { exports: {} };
|
|
5
|
+
var exports = module.exports;
|
|
6
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
|
+
let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
|
|
8
|
+
let react = require("react");
|
|
9
|
+
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
//#region src/ids.ts
|
|
12
|
+
/**
|
|
13
|
+
* The suffixes and display labels that mark a derived preset, shared by both
|
|
14
|
+
* halves of the Bundle.
|
|
15
|
+
*
|
|
16
|
+
* Two independent tracks exist: a `… (devContainer)` variant for repositories
|
|
17
|
+
* that declare a Dev Container, and a `… (sbx)` variant for Docker Sandbox
|
|
18
|
+
* (`sbx`) sessions. They differ only in the suffix, the label, and the
|
|
19
|
+
* `DSH_*` marker the shell row injects; everything else about a derived preset
|
|
20
|
+
* is identical, so one module owns the naming for both.
|
|
21
|
+
*
|
|
22
|
+
* The browser half needs these to keep derived presets out of its own picker
|
|
23
|
+
* list, and must not import the Host modules to get them: this file has no
|
|
24
|
+
* imports.
|
|
25
|
+
*/
|
|
26
|
+
/** Appended to a source preset id to name its Dev Container variant. */
|
|
27
|
+
const DEVCONTAINER_VARIANT_SUFFIX = "-devcontainer";
|
|
28
|
+
/** Appended to a source preset id to name its Docker Sandbox variant. */
|
|
29
|
+
const SBX_VARIANT_SUFFIX = "-sbx";
|
|
30
|
+
/** Appended to a source preset's display name for the Dev Container variant. */
|
|
31
|
+
const DEVCONTAINER_NAME_SUFFIX = " (devContainer)";
|
|
32
|
+
/** Appended to a source preset's display name for the Docker Sandbox variant. */
|
|
33
|
+
const SBX_NAME_SUFFIX = " (sbx)";
|
|
34
|
+
/**
|
|
35
|
+
* The id suffix of one track.
|
|
36
|
+
* @param kind - the track.
|
|
37
|
+
* @returns `-devcontainer` or `-sbx`.
|
|
38
|
+
*/
|
|
39
|
+
function variantSuffixOf(kind) {
|
|
40
|
+
return kind === "sbx" ? SBX_VARIANT_SUFFIX : DEVCONTAINER_VARIANT_SUFFIX;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The display-name suffix of one track.
|
|
44
|
+
* @param kind - the track.
|
|
45
|
+
* @returns ` (devContainer)` or ` (sbx)`.
|
|
46
|
+
*/
|
|
47
|
+
function variantNameSuffixOf(kind) {
|
|
48
|
+
return kind === "sbx" ? SBX_NAME_SUFFIX : DEVCONTAINER_NAME_SUFFIX;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The derived id of one source preset on one track.
|
|
52
|
+
* @param source - the source preset id.
|
|
53
|
+
* @param kind - the track the variant belongs to.
|
|
54
|
+
* @returns the variant id.
|
|
55
|
+
*/
|
|
56
|
+
function variantIdOf(source, kind) {
|
|
57
|
+
return `${source}${variantSuffixOf(kind)}`;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The track one variant id belongs to.
|
|
61
|
+
* @param id - any preset id.
|
|
62
|
+
* @returns the track, or undefined when the id names no derived preset.
|
|
63
|
+
*/
|
|
64
|
+
function variantKindOf(id) {
|
|
65
|
+
if (id.endsWith("-devcontainer")) return "devcontainer";
|
|
66
|
+
if (id.endsWith("-sbx")) return "sbx";
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Whether an id names a preset this Bundle derived, on either track.
|
|
70
|
+
* @param id - any preset id.
|
|
71
|
+
* @returns true when the id carries either variant suffix.
|
|
72
|
+
*/
|
|
73
|
+
function isAnyVariantId(id) {
|
|
74
|
+
return variantKindOf(id) !== void 0;
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/client/variants.ts
|
|
78
|
+
/**
|
|
79
|
+
* The two stored source lists, one per derivative track.
|
|
80
|
+
*
|
|
81
|
+
* These are field names of the `devcontainer` settings namespace, and the Host
|
|
82
|
+
* row reads exactly the same pair.
|
|
83
|
+
*/
|
|
84
|
+
const SOURCE_FIELDS = {
|
|
85
|
+
devcontainer: "sources",
|
|
86
|
+
sbx: "sbxSources"
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* The stored ids of one track.
|
|
90
|
+
* @param section - the namespace value as the Host published it, possibly before the first read.
|
|
91
|
+
* @param field - the settings field holding that track's list.
|
|
92
|
+
* @returns every non-empty string id it lists, in written order.
|
|
93
|
+
*/
|
|
94
|
+
function idsOf(section, field) {
|
|
95
|
+
if (typeof section !== "object" || section === null) return [];
|
|
96
|
+
const raw = Reflect.get(section, field);
|
|
97
|
+
if (!Array.isArray(raw)) return [];
|
|
98
|
+
return raw.filter((id) => typeof id === "string" && id.length > 0);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The stored `(devContainer)` source list of one form value.
|
|
102
|
+
* @param section - the namespace value as the Host published it, possibly before the first read.
|
|
103
|
+
* @returns every non-empty string id it lists, in written order.
|
|
104
|
+
*/
|
|
105
|
+
function sourcesOf(section) {
|
|
106
|
+
return idsOf(section, SOURCE_FIELDS.devcontainer);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The stored `(sbx)` source list of one form value.
|
|
110
|
+
* @param section - the namespace value as the Host published it, possibly before the first read.
|
|
111
|
+
* @returns every non-empty string id it lists, in written order.
|
|
112
|
+
*/
|
|
113
|
+
function sbxSourcesOf(section) {
|
|
114
|
+
return idsOf(section, SOURCE_FIELDS.sbx);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The variant ids the roster currently carries.
|
|
118
|
+
* @param roster - the roster the Host answered with.
|
|
119
|
+
* @returns the derived preset ids it contains.
|
|
120
|
+
*/
|
|
121
|
+
function rowsOf(roster) {
|
|
122
|
+
if (roster === null || typeof roster !== "object") return [];
|
|
123
|
+
const presets = roster.presets;
|
|
124
|
+
return Array.isArray(presets) ? presets : [];
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The rows one track offers.
|
|
128
|
+
*
|
|
129
|
+
* Source presets keep the Host's roster order; a variant of either track never
|
|
130
|
+
* appears as a source. `checked` follows the STORED list rather than the roster,
|
|
131
|
+
* because a registration that failed still needs a row a person can uncheck.
|
|
132
|
+
* @param roster - the full roster from the Host.
|
|
133
|
+
* @param sources - the stored list of source ids on this track.
|
|
134
|
+
* @param kind - the derivative track whose variants the rows report.
|
|
135
|
+
* @returns one row per selectable preset.
|
|
136
|
+
*/
|
|
137
|
+
function selectablePresets(roster, sources, kind = "devcontainer") {
|
|
138
|
+
const wanted = new Set(sources);
|
|
139
|
+
const rows = rowsOf(roster);
|
|
140
|
+
const byId = new Map(rows.map((preset) => [preset.id, preset]));
|
|
141
|
+
return rows.filter((preset) => !isAnyVariantId(preset.id)).map((preset) => {
|
|
142
|
+
const variant = byId.get(variantIdOf(preset.id, kind));
|
|
143
|
+
return {
|
|
144
|
+
id: preset.id,
|
|
145
|
+
name: preset.name ?? preset.id,
|
|
146
|
+
description: preset.description ?? "",
|
|
147
|
+
derived: variant !== void 0,
|
|
148
|
+
checked: wanted.has(preset.id),
|
|
149
|
+
...preset.broken === void 0 ? {} : { broken: preset.broken },
|
|
150
|
+
...variant?.broken === void 0 ? {} : { variantBroken: variant.broken }
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Whether one row may be checked: a preset the registry could not mount derives
|
|
156
|
+
* a variant that cannot mount either, so offering it would only strand the page.
|
|
157
|
+
* @param row - the row to test.
|
|
158
|
+
* @returns false when the row is broken and not already stored.
|
|
159
|
+
*/
|
|
160
|
+
function selectable(row) {
|
|
161
|
+
return row.broken === void 0 || row.checked;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* The stored list one checkbox produces.
|
|
165
|
+
* @param sources - the ids currently stored, in written order.
|
|
166
|
+
* @param id - the preset the row owns.
|
|
167
|
+
* @param checked - whether that preset's variant is now wanted.
|
|
168
|
+
* @returns the next stored order: existing ids keep their place, an added id goes last.
|
|
169
|
+
*/
|
|
170
|
+
function nextSources(sources, id, checked) {
|
|
171
|
+
if (!checked) return sources.filter((held) => held !== id);
|
|
172
|
+
return sources.includes(id) ? [...sources] : [...sources, id];
|
|
173
|
+
}
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region src/client/controller.ts
|
|
176
|
+
/**
|
|
177
|
+
* Staged state for the Dev Container variants page.
|
|
178
|
+
*
|
|
179
|
+
* Reads the roster through `ctx.remote.agentPresets.list` — the same listing
|
|
180
|
+
* every picker reads — and writes BOTH stored source lists (`sources` for the
|
|
181
|
+
* `(devContainer)` track, `sbxSources` for the `(sbx)` track) through the shared
|
|
182
|
+
* `ConfigForm` of the `devcontainer` settings namespace. A write lands in the
|
|
183
|
+
* profile patch and in the Host's live reference, and the Host re-derives the
|
|
184
|
+
* variant set while the same event is still settling, so checking a box is felt
|
|
185
|
+
* before the next render.
|
|
186
|
+
*
|
|
187
|
+
* Toggles are queued rather than dropped: each write carries the WHOLE pair of
|
|
188
|
+
* lists, and a person clearing two rows in a row must not lose the second click.
|
|
189
|
+
*/
|
|
190
|
+
/** The settings namespace this page edits: also the Host Loader row id. */
|
|
191
|
+
const DEVCONTAINER_NS = "devcontainer";
|
|
192
|
+
const INITIAL = {
|
|
193
|
+
status: "loading",
|
|
194
|
+
failure: null,
|
|
195
|
+
writable: false,
|
|
196
|
+
saving: false,
|
|
197
|
+
rows: [],
|
|
198
|
+
sbxRows: [],
|
|
199
|
+
checkedCount: 0,
|
|
200
|
+
sbxCheckedCount: 0
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Delays between roster re-reads after a write lands.
|
|
204
|
+
*
|
|
205
|
+
* A landed write reaches the Host before the variants it asks for are
|
|
206
|
+
* registered: the settings event is emitted first, the sync then walks the
|
|
207
|
+
* presets. One immediate re-read therefore sees the old roster, and without a
|
|
208
|
+
* retry the page would show every freshly checked row as pending forever.
|
|
209
|
+
*/
|
|
210
|
+
const VERIFY_DELAYS = [
|
|
211
|
+
80,
|
|
212
|
+
150,
|
|
213
|
+
300,
|
|
214
|
+
600
|
|
215
|
+
];
|
|
216
|
+
/**
|
|
217
|
+
* The rows of one roster answer.
|
|
218
|
+
*
|
|
219
|
+
* A listing that reports success without a body (a namespace whose method is not
|
|
220
|
+
* what this build serves) must leave the page empty rather than throw inside the
|
|
221
|
+
* plugin: this page is a preference, not a critical surface.
|
|
222
|
+
* @param value - the roster the Remote answered with.
|
|
223
|
+
* @returns its preset rows, or none when the answer carries no roster.
|
|
224
|
+
*/
|
|
225
|
+
function rosterRows(value) {
|
|
226
|
+
if (value === null || typeof value !== "object") return [];
|
|
227
|
+
const presets = value.presets;
|
|
228
|
+
return Array.isArray(presets) ? presets : [];
|
|
229
|
+
}
|
|
230
|
+
/** Resolve after one delay, so a test can drive the clock. */
|
|
231
|
+
function wait(ms) {
|
|
232
|
+
return new Promise((resolve) => {
|
|
233
|
+
setTimeout(resolve, ms);
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
/** Reads the roster and writes the two source lists for one page instance. */
|
|
237
|
+
var VariantsController = class {
|
|
238
|
+
form;
|
|
239
|
+
listing;
|
|
240
|
+
declared = [];
|
|
241
|
+
failure = null;
|
|
242
|
+
loading = true;
|
|
243
|
+
/** The lists the queue will send next; undefined when every toggle has landed. */
|
|
244
|
+
intent;
|
|
245
|
+
writing = false;
|
|
246
|
+
/** Invalidates every read that a newer load, or a dispose, supersedes. */
|
|
247
|
+
generation = 0;
|
|
248
|
+
disposed = false;
|
|
249
|
+
store = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(INITIAL);
|
|
250
|
+
unsubscribe;
|
|
251
|
+
/**
|
|
252
|
+
* @param form - the shared form of the `devcontainer` settings namespace.
|
|
253
|
+
* @param listing - the roster listing the pickers read.
|
|
254
|
+
*/
|
|
255
|
+
constructor(form, listing) {
|
|
256
|
+
this.form = form;
|
|
257
|
+
this.listing = listing;
|
|
258
|
+
this.unsubscribe = form.subscribe(() => {
|
|
259
|
+
this.publish();
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
dispose() {
|
|
263
|
+
this.disposed = true;
|
|
264
|
+
this.generation += 1;
|
|
265
|
+
this.unsubscribe();
|
|
266
|
+
}
|
|
267
|
+
inject() {
|
|
268
|
+
return {
|
|
269
|
+
hooks: { devcontainerVariants: this.store },
|
|
270
|
+
load: () => this.load(),
|
|
271
|
+
setChecked: (id, checked) => {
|
|
272
|
+
this.setChecked(id, checked);
|
|
273
|
+
},
|
|
274
|
+
toggleSbxSource: (sourceId) => {
|
|
275
|
+
this.toggleSbxSource(sourceId);
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
/** Read the roster the pickers read. */
|
|
280
|
+
async load() {
|
|
281
|
+
await this.refresh(false);
|
|
282
|
+
this.settle();
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Re-read the roster without flipping the page back to `loading`.
|
|
286
|
+
* @param quiet - true when a previous render must stay on screen while it refreshes.
|
|
287
|
+
*/
|
|
288
|
+
async refresh(quiet) {
|
|
289
|
+
if (this.disposed) return;
|
|
290
|
+
const generation = ++this.generation;
|
|
291
|
+
if (!quiet) {
|
|
292
|
+
this.loading = true;
|
|
293
|
+
this.publish();
|
|
294
|
+
}
|
|
295
|
+
const result = await this.listing();
|
|
296
|
+
if (generation !== this.generation) return;
|
|
297
|
+
this.loading = false;
|
|
298
|
+
if (result.ok) {
|
|
299
|
+
this.declared = rosterRows(result.value);
|
|
300
|
+
this.failure = null;
|
|
301
|
+
} else {
|
|
302
|
+
this.declared = [];
|
|
303
|
+
this.failure = "load";
|
|
304
|
+
}
|
|
305
|
+
this.publish();
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Re-read the roster a few times while a write's registrations settle.
|
|
309
|
+
*
|
|
310
|
+
* The first re-read after a landed write races the Host's own sync, so the
|
|
311
|
+
* variants it asks for may still be missing. Retrying with backoff turns the
|
|
312
|
+
* "waiting to be registered" badge into the real state within a second, and
|
|
313
|
+
* stops as soon as nothing is outstanding.
|
|
314
|
+
*/
|
|
315
|
+
async settle() {
|
|
316
|
+
for (const delay of VERIFY_DELAYS) {
|
|
317
|
+
if (!this.polling()) return;
|
|
318
|
+
await wait(delay);
|
|
319
|
+
if (!this.polling()) return;
|
|
320
|
+
await this.refresh(true);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
/** Whether another retry is still both wanted and possible. */
|
|
324
|
+
polling() {
|
|
325
|
+
return !this.disposed && this.outstanding();
|
|
326
|
+
}
|
|
327
|
+
/** Whether a stored row of either track is still waiting for its variant to register. */
|
|
328
|
+
outstanding() {
|
|
329
|
+
const stored = this.effective(this.form.getSnapshot().value);
|
|
330
|
+
const roster = { presets: this.declared };
|
|
331
|
+
return selectablePresets(roster, stored.sources, "devcontainer").some(pending) || selectablePresets(roster, stored.sbxSources, "sbx").some(pending);
|
|
332
|
+
}
|
|
333
|
+
/** Derive or drop one preset's `(devContainer)` variant, without losing a toggle that arrives mid-write. */
|
|
334
|
+
setChecked(id, checked) {
|
|
335
|
+
const stored = this.stage();
|
|
336
|
+
if (stored === void 0) return;
|
|
337
|
+
this.commit({
|
|
338
|
+
...stored,
|
|
339
|
+
sources: nextSources(stored.sources, id, checked)
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Flip one preset's `(sbx)` variant.
|
|
344
|
+
*
|
|
345
|
+
* A toggle rather than a target state because the checkbox renders the
|
|
346
|
+
* effective list: whatever the person saw checked is what flips, including a
|
|
347
|
+
* toggle that is still queued behind a write in flight.
|
|
348
|
+
* @param sourceId - the source preset whose `(sbx)` variant flips.
|
|
349
|
+
*/
|
|
350
|
+
toggleSbxSource(sourceId) {
|
|
351
|
+
const stored = this.stage();
|
|
352
|
+
if (stored === void 0) return;
|
|
353
|
+
const checked = !stored.sbxSources.includes(sourceId);
|
|
354
|
+
this.commit({
|
|
355
|
+
...stored,
|
|
356
|
+
sbxSources: nextSources(stored.sbxSources, sourceId, checked)
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* The lists a toggle starts from, or undefined when this page must ignore it.
|
|
361
|
+
* @returns the queued lists when a write is still pending, otherwise the stored ones.
|
|
362
|
+
*/
|
|
363
|
+
stage() {
|
|
364
|
+
if (this.disposed) return void 0;
|
|
365
|
+
const snapshot = this.form.getSnapshot();
|
|
366
|
+
if (!snapshot.writable) return void 0;
|
|
367
|
+
return this.effective(snapshot.value);
|
|
368
|
+
}
|
|
369
|
+
/** Queue one toggle and start the write that carries it. */
|
|
370
|
+
commit(next) {
|
|
371
|
+
this.intent = next;
|
|
372
|
+
this.publish();
|
|
373
|
+
this.flush();
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* The lists to render: the queued ones while a write is in flight, otherwise
|
|
377
|
+
* the ones the Host stored.
|
|
378
|
+
*/
|
|
379
|
+
effective(section) {
|
|
380
|
+
if (this.intent !== void 0) return this.intent;
|
|
381
|
+
return {
|
|
382
|
+
sources: sourcesOf(section),
|
|
383
|
+
sbxSources: sbxSourcesOf(section)
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Send the queued lists until nothing is queued.
|
|
388
|
+
*
|
|
389
|
+
* Both fields travel in ONE mutation, so a single revision fence accepts or
|
|
390
|
+
* refuses the pair together: a deployment can never store one track's toggle
|
|
391
|
+
* and drop the other's.
|
|
392
|
+
*
|
|
393
|
+
* A refusal drops the queue: those intents were derived from lists the Host
|
|
394
|
+
* never stored, so replaying them would toggle a different set than the one the
|
|
395
|
+
* person was looking at. After a landed write the roster is re-read, because
|
|
396
|
+
* the Host may have just registered or disposed a variant.
|
|
397
|
+
*/
|
|
398
|
+
async flush() {
|
|
399
|
+
if (this.writing) return;
|
|
400
|
+
this.writing = true;
|
|
401
|
+
this.publish();
|
|
402
|
+
let landed = false;
|
|
403
|
+
try {
|
|
404
|
+
while (this.intent !== void 0) {
|
|
405
|
+
const next = this.intent;
|
|
406
|
+
const accepted = await this.form.mutate(opsFor(next));
|
|
407
|
+
this.failure = accepted ? null : "write";
|
|
408
|
+
if (!accepted) break;
|
|
409
|
+
landed = true;
|
|
410
|
+
if (this.intent === next) this.intent = void 0;
|
|
411
|
+
this.publish();
|
|
412
|
+
}
|
|
413
|
+
} catch {
|
|
414
|
+
this.failure = "write";
|
|
415
|
+
} finally {
|
|
416
|
+
this.intent = void 0;
|
|
417
|
+
this.writing = false;
|
|
418
|
+
this.publish();
|
|
419
|
+
}
|
|
420
|
+
if (landed && !this.disposed) {
|
|
421
|
+
await this.refresh(true);
|
|
422
|
+
await this.settle();
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
publish() {
|
|
426
|
+
if (this.disposed) return;
|
|
427
|
+
const snapshot = this.form.getSnapshot();
|
|
428
|
+
const stored = this.effective(snapshot.value);
|
|
429
|
+
const roster = { presets: this.declared };
|
|
430
|
+
const rows = selectablePresets(roster, stored.sources, "devcontainer");
|
|
431
|
+
const sbxRows = selectablePresets(roster, stored.sbxSources, "sbx");
|
|
432
|
+
this.store.set({
|
|
433
|
+
status: snapshot.status === "unavailable" ? "unavailable" : this.failure === "load" ? "error" : this.loading || snapshot.status === "loading" ? "loading" : "ready",
|
|
434
|
+
failure: this.failure,
|
|
435
|
+
writable: snapshot.writable,
|
|
436
|
+
saving: this.writing || this.intent !== void 0,
|
|
437
|
+
rows,
|
|
438
|
+
sbxRows,
|
|
439
|
+
checkedCount: rows.filter((row) => row.checked).length,
|
|
440
|
+
sbxCheckedCount: sbxRows.filter((row) => row.checked).length
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
/** Whether one row is stored but its variant is not registered yet. */
|
|
445
|
+
function pending(row) {
|
|
446
|
+
return row.checked && !row.derived && selectable(row);
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* One mutation carrying both stored lists.
|
|
450
|
+
* @param intent - the lists to store.
|
|
451
|
+
* @returns the settings operations, in track order.
|
|
452
|
+
*/
|
|
453
|
+
function opsFor(intent) {
|
|
454
|
+
return [{
|
|
455
|
+
op: "set",
|
|
456
|
+
path: [SOURCE_FIELDS.devcontainer],
|
|
457
|
+
value: intent.sources
|
|
458
|
+
}, {
|
|
459
|
+
op: "set",
|
|
460
|
+
path: [SOURCE_FIELDS.sbx],
|
|
461
|
+
value: intent.sbxSources
|
|
462
|
+
}];
|
|
463
|
+
}
|
|
464
|
+
//#endregion
|
|
465
|
+
//#region src/client/VariantsSection.tsx
|
|
466
|
+
/**
|
|
467
|
+
* The Dev Container variants page: two independent tracks, one checkbox per
|
|
468
|
+
* source preset on each.
|
|
469
|
+
*
|
|
470
|
+
* A checkbox, not a dropdown, because each track is a SET rather than one
|
|
471
|
+
* choice, and `Checkbox` is the primitive the shipped settings rows already use
|
|
472
|
+
* for the same shape. Checked means "derive my copy on this track".
|
|
473
|
+
*
|
|
474
|
+
* The row's tail carries the truth from the Host: a checked box whose variant is
|
|
475
|
+
* not in the roster yet says so (`pendingBadge`), and a preset the registry could
|
|
476
|
+
* not mount says so too (`brokenBadge`) — its variant could not mount either, so
|
|
477
|
+
* it is offered read-only rather than stranding the person with a pending row.
|
|
478
|
+
*/
|
|
479
|
+
/** Copy per track: the two groups differ only in their words and their suffix. */
|
|
480
|
+
const COPY = {
|
|
481
|
+
devcontainer: {
|
|
482
|
+
title: "devcontainerTitle",
|
|
483
|
+
description: "devcontainerDescription",
|
|
484
|
+
empty: "empty",
|
|
485
|
+
none: "noneChecked",
|
|
486
|
+
count: "checkedCount"
|
|
487
|
+
},
|
|
488
|
+
sbx: {
|
|
489
|
+
title: "sbxTitle",
|
|
490
|
+
description: "sbxDescription",
|
|
491
|
+
empty: "sbxEmpty",
|
|
492
|
+
none: "sbxNoneChecked",
|
|
493
|
+
count: "sbxCheckedCount"
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* Render the selectable presets on both tracks, each with one derivation toggle
|
|
498
|
+
* per row.
|
|
499
|
+
* @param props - settings actions, the page snapshot hook, and localized copy.
|
|
500
|
+
* @returns The Dev Container variants settings section.
|
|
501
|
+
*/
|
|
502
|
+
function DevcontainerVariantsSection(props) {
|
|
503
|
+
const { t, load } = props;
|
|
504
|
+
const state = props.useDevcontainerVariants((snapshot) => snapshot);
|
|
505
|
+
(0, react.useEffect)(() => {
|
|
506
|
+
load();
|
|
507
|
+
}, [load]);
|
|
508
|
+
const disabled = !state.writable;
|
|
509
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
510
|
+
className: "dcv-section",
|
|
511
|
+
children: [
|
|
512
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
513
|
+
className: "dcv-title",
|
|
514
|
+
children: t("nav")
|
|
515
|
+
}),
|
|
516
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
517
|
+
className: "dcv-intro",
|
|
518
|
+
children: t("intro")
|
|
519
|
+
}),
|
|
520
|
+
state.failure === "load" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
521
|
+
className: "dcv-notice",
|
|
522
|
+
"data-failed": "true",
|
|
523
|
+
role: "alert",
|
|
524
|
+
children: [
|
|
525
|
+
t("failed"),
|
|
526
|
+
" ",
|
|
527
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
528
|
+
variant: "ghost",
|
|
529
|
+
disabled,
|
|
530
|
+
onClick: () => {
|
|
531
|
+
load();
|
|
532
|
+
},
|
|
533
|
+
children: t("retry")
|
|
534
|
+
})
|
|
535
|
+
]
|
|
536
|
+
}) : null,
|
|
537
|
+
state.failure === "write" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
538
|
+
className: "dcv-notice",
|
|
539
|
+
"data-failed": "true",
|
|
540
|
+
role: "alert",
|
|
541
|
+
children: t("writeFailed")
|
|
542
|
+
}) : null,
|
|
543
|
+
state.status === "unavailable" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
544
|
+
className: "dcv-notice",
|
|
545
|
+
children: t("unavailable")
|
|
546
|
+
}) : null,
|
|
547
|
+
state.status === "loading" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
548
|
+
className: "dcv-notice",
|
|
549
|
+
role: "status",
|
|
550
|
+
children: t("loading")
|
|
551
|
+
}) : null,
|
|
552
|
+
state.status === "ready" && !state.writable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
553
|
+
className: "dcv-notice",
|
|
554
|
+
children: t("readOnly")
|
|
555
|
+
}) : null,
|
|
556
|
+
state.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
557
|
+
renderTrack(t, {
|
|
558
|
+
kind: "devcontainer",
|
|
559
|
+
rows: state.rows,
|
|
560
|
+
checkedCount: state.checkedCount,
|
|
561
|
+
disabled,
|
|
562
|
+
onToggle: (id, checked) => {
|
|
563
|
+
props.setChecked(id, checked);
|
|
564
|
+
}
|
|
565
|
+
}),
|
|
566
|
+
renderTrack(t, {
|
|
567
|
+
kind: "sbx",
|
|
568
|
+
rows: state.sbxRows,
|
|
569
|
+
checkedCount: state.sbxCheckedCount,
|
|
570
|
+
disabled,
|
|
571
|
+
onToggle: (id) => {
|
|
572
|
+
props.toggleSbxSource(id);
|
|
573
|
+
}
|
|
574
|
+
}),
|
|
575
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
576
|
+
className: "dcv-notice",
|
|
577
|
+
children: t("refreshHint")
|
|
578
|
+
})
|
|
579
|
+
] }) : null
|
|
580
|
+
]
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* One track's card: its heading with the preset-name suffix, what the track is,
|
|
585
|
+
* how much of it is derived, and the rows themselves.
|
|
586
|
+
* @param t - the localized copy seat.
|
|
587
|
+
* @param input - the track, its rows, and its toggle.
|
|
588
|
+
* @returns The rendered group.
|
|
589
|
+
*/
|
|
590
|
+
function renderTrack(t, input) {
|
|
591
|
+
const copy = COPY[input.kind];
|
|
592
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
593
|
+
className: "dcv-group",
|
|
594
|
+
"data-track": input.kind,
|
|
595
|
+
children: [
|
|
596
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("h3", {
|
|
597
|
+
className: "dcv-group-title",
|
|
598
|
+
children: [t(copy.title), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", {
|
|
599
|
+
className: "dcv-suffix",
|
|
600
|
+
children: variantNameSuffixOf(input.kind).trim()
|
|
601
|
+
})]
|
|
602
|
+
}),
|
|
603
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
604
|
+
className: "dcv-group-description",
|
|
605
|
+
children: t(copy.description)
|
|
606
|
+
}),
|
|
607
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
608
|
+
className: "dcv-count",
|
|
609
|
+
children: input.rows.length === 0 ? t(copy.empty) : input.checkedCount === 0 ? t(copy.none) : t(copy.count, { count: input.checkedCount })
|
|
610
|
+
}),
|
|
611
|
+
input.rows.length === 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
612
|
+
className: "dcv-rows",
|
|
613
|
+
children: input.rows.map((row) => renderRow(t, input.kind, row, input.disabled, input.onToggle))
|
|
614
|
+
})
|
|
615
|
+
]
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* One preset row: the checkbox, the preset's own description, and the Host's
|
|
620
|
+
* verdict on this track's variant.
|
|
621
|
+
* @param t - the localized copy seat.
|
|
622
|
+
* @param kind - the derivative track this row belongs to.
|
|
623
|
+
* @param row - the row to render.
|
|
624
|
+
* @param disabled - whether the deployment refuses writes.
|
|
625
|
+
* @param onToggle - the toggle for this row.
|
|
626
|
+
* @returns The rendered row.
|
|
627
|
+
*/
|
|
628
|
+
function renderRow(t, kind, row, disabled, onToggle) {
|
|
629
|
+
const broken = row.broken !== void 0;
|
|
630
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
|
|
631
|
+
className: "dcv-row",
|
|
632
|
+
"data-checked": row.checked ? "true" : void 0,
|
|
633
|
+
"data-broken": broken ? "true" : void 0,
|
|
634
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
635
|
+
className: "dcv-main",
|
|
636
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
|
|
637
|
+
checked: row.checked,
|
|
638
|
+
disabled: disabled || !selectable(row),
|
|
639
|
+
label: row.name,
|
|
640
|
+
title: broken ? `${t("brokenBadge")}: ${row.broken ?? ""}` : row.variantBroken === void 0 ? t(row.checked ? "checked" : "unchecked") : `${t("variantBrokenBadge")}: ${row.variantBroken}`,
|
|
641
|
+
onChange: (next) => {
|
|
642
|
+
onToggle(row.id, next);
|
|
643
|
+
}
|
|
644
|
+
}), row.description === "" ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
645
|
+
className: "dcv-description",
|
|
646
|
+
id: `dcv-description-${kind}-${row.id}`,
|
|
647
|
+
children: row.description
|
|
648
|
+
})]
|
|
649
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
650
|
+
className: "dcv-tail",
|
|
651
|
+
children: [
|
|
652
|
+
row.name === row.id ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", {
|
|
653
|
+
className: "dcv-id",
|
|
654
|
+
children: row.id
|
|
655
|
+
}),
|
|
656
|
+
broken ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
657
|
+
tone: "danger",
|
|
658
|
+
children: t("brokenBadge")
|
|
659
|
+
}) : null,
|
|
660
|
+
row.checked ? row.variantBroken === void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
661
|
+
tone: row.derived ? "success" : "warning",
|
|
662
|
+
children: t(row.derived ? "derivedBadge" : "pendingBadge")
|
|
663
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
664
|
+
tone: "danger",
|
|
665
|
+
children: t("variantBrokenBadge")
|
|
666
|
+
}) : null,
|
|
667
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
668
|
+
className: "dcv-state",
|
|
669
|
+
"data-checked": row.checked ? "true" : void 0,
|
|
670
|
+
children: t(row.checked ? "checked" : "unchecked")
|
|
671
|
+
})
|
|
672
|
+
]
|
|
673
|
+
})]
|
|
674
|
+
}, row.id);
|
|
675
|
+
}
|
|
676
|
+
//#endregion
|
|
677
|
+
//#region src/client/locales.ts
|
|
678
|
+
const en = {
|
|
679
|
+
nav: "Dev Container presets",
|
|
680
|
+
intro: "Check a preset to derive copies of it. A “(devContainer)” copy sends every command into the repository's Linux Dev Container; an “(sbx)” copy runs in a Docker Sandbox. The two tracks are independent, nothing is derived until you check something, and a copy disappears again as soon as you clear its box.",
|
|
681
|
+
devcontainerTitle: "Dev Container runtime",
|
|
682
|
+
devcontainerDescription: "The regular container environment built from the repository's .devcontainer declaration: every command runs inside the Linux container the Dev Container CLI builds and starts.",
|
|
683
|
+
sbxTitle: "Docker Sandbox runtime",
|
|
684
|
+
sbxDescription: "Hardware-isolated execution in a Docker Sandbox (MicroVM): each session gets its own micro VM with Docker ready to build out of the box, and no repository declaration is needed.",
|
|
685
|
+
checked: "derived",
|
|
686
|
+
unchecked: "not derived",
|
|
687
|
+
derivedBadge: "Available",
|
|
688
|
+
pendingBadge: "Wait for it",
|
|
689
|
+
brokenBadge: "Cannot load",
|
|
690
|
+
variantBrokenBadge: "Variant cannot mount",
|
|
691
|
+
noneChecked: "No preset is derived.",
|
|
692
|
+
checkedCount: "{count} derived",
|
|
693
|
+
sbxNoneChecked: "No Docker Sandbox copy is derived.",
|
|
694
|
+
sbxCheckedCount: "{count} derived as (sbx)",
|
|
695
|
+
loading: "Loading presets…",
|
|
696
|
+
failed: "Presets could not be loaded.",
|
|
697
|
+
retry: "Retry",
|
|
698
|
+
unavailable: "This plugin is not loaded, so there is nothing to configure.",
|
|
699
|
+
readOnly: "This deployment stores settings read-only.",
|
|
700
|
+
writeFailed: "The deployment did not accept this change.",
|
|
701
|
+
refreshHint: "Preset pickers re-read the roster the next time one opens.",
|
|
702
|
+
empty: "This deployment declares no preset to derive from.",
|
|
703
|
+
sbxEmpty: "This deployment declares no preset to derive a Docker Sandbox copy from."
|
|
704
|
+
};
|
|
705
|
+
const zh = {
|
|
706
|
+
nav: "Dev Container 预设",
|
|
707
|
+
intro: "勾选一个预设即可派生它的副本:「(devContainer)」副本把每条命令送进仓库指定的 Linux Dev Container,「(sbx)」副本在 Docker Sandbox 中执行。两组互相独立,默认都不派生;取消勾选后副本立即注销。",
|
|
708
|
+
devcontainerTitle: "Dev Container 运行环境",
|
|
709
|
+
devcontainerDescription: "基于仓库 .devcontainer 声明的常规容器运行环境:命令在 Dev Container CLI 构建并启动的 Linux 容器里执行。",
|
|
710
|
+
sbxTitle: "Docker Sandbox 运行环境",
|
|
711
|
+
sbxDescription: "基于 Docker Sandbox (MicroVM) 的硬件级隔离执行环境:每个会话独占一台微虚拟机,开箱即用支持 Docker 构建,不依赖仓库声明。",
|
|
712
|
+
checked: "已派生",
|
|
713
|
+
unchecked: "未派生",
|
|
714
|
+
derivedBadge: "已可用",
|
|
715
|
+
pendingBadge: "等待注册",
|
|
716
|
+
brokenBadge: "无法加载",
|
|
717
|
+
variantBrokenBadge: "派生副本不可用",
|
|
718
|
+
noneChecked: "当前没有派生任何预设。",
|
|
719
|
+
checkedCount: "已派生 {count} 项",
|
|
720
|
+
sbxNoneChecked: "当前没有派生任何 Docker Sandbox 副本。",
|
|
721
|
+
sbxCheckedCount: "已派生 {count} 项 (sbx)",
|
|
722
|
+
loading: "正在加载预设…",
|
|
723
|
+
failed: "无法加载预设。",
|
|
724
|
+
retry: "重试",
|
|
725
|
+
unavailable: "该插件当前未加载,无需配置。",
|
|
726
|
+
readOnly: "本部署的设置为只读。",
|
|
727
|
+
writeFailed: "本部署没有接受这次修改。",
|
|
728
|
+
refreshHint: "预设选择器下次打开时会重新读取清单。",
|
|
729
|
+
empty: "本部署没有可派生的预设。",
|
|
730
|
+
sbxEmpty: "本部署没有可派生 Docker Sandbox 副本的预设。"
|
|
731
|
+
};
|
|
732
|
+
//#endregion
|
|
733
|
+
//#region \0dsh-css-inline:/home/runner/work/dsh-plugins/dsh-plugins/plugins/devcontainer/src/client/styles.css.mjs
|
|
734
|
+
var styles_css_default = ".dcv-section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:16px;display:flex}.dcv-title{margin:0;font-size:18px;font-weight:600}.dcv-intro,.dcv-count,.dcv-notice,.dcv-description,.dcv-group-description{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px;line-height:1.5}.dcv-notice[data-failed=true]{color:var(--dsw-alias-state-error-primary)}.dcv-group{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);flex-direction:column;gap:8px;padding:12px 14px;display:flex}.dcv-group-title{align-items:baseline;gap:6px;margin:0;font-size:14px;font-weight:600;display:flex}.dcv-suffix{color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:500}.dcv-rows{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.dcv-row{justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex}.dcv-row+.dcv-row{border-top:.5px solid var(--dsw-alias-border-l2)}.dcv-main{flex-direction:column;gap:2px;min-width:0;display:flex}.dcv-description{text-overflow:ellipsis;white-space:nowrap;max-width:420px;overflow:hidden}.dcv-row[data-checked=true] .dcv-tail{color:var(--dsw-alias-label-primary)}.dcv-tail{flex:none;align-items:center;gap:8px;min-width:0;display:inline-flex}.dcv-id{color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;max-width:220px;font-size:12px;overflow:hidden}.dcv-state{color:var(--dsw-alias-label-tertiary);text-align:right;min-width:56px;font-size:12px}.dcv-state[data-checked=true]{color:var(--dsw-alias-label-secondary,var(--dsw-alias-label-tertiary))}";
|
|
735
|
+
//#endregion
|
|
736
|
+
//#region src/client/index.ts
|
|
737
|
+
/** Plugin id, stamped onto the injected stylesheet for teardown bookkeeping. */
|
|
738
|
+
const PLUGIN_ID = "@banzhe/dsh-devcontainer";
|
|
739
|
+
const NS = DEVCONTAINER_NS;
|
|
740
|
+
const inject = [
|
|
741
|
+
"configForms",
|
|
742
|
+
"locale",
|
|
743
|
+
"remote",
|
|
744
|
+
"remote.agentPresets",
|
|
745
|
+
"slots"
|
|
746
|
+
];
|
|
747
|
+
function apply(ctx) {
|
|
748
|
+
ctx.effect(() => ctx.locale.register(NS, {
|
|
749
|
+
zh,
|
|
750
|
+
en
|
|
751
|
+
}), "devcontainer: dictionaries");
|
|
752
|
+
ctx.effect(() => {
|
|
753
|
+
if (typeof document === "undefined") return () => {};
|
|
754
|
+
const tag = document.createElement("style");
|
|
755
|
+
tag.dataset.plugin = PLUGIN_ID;
|
|
756
|
+
tag.dataset.pluginCss = `${PLUGIN_ID}/styles.css`;
|
|
757
|
+
tag.textContent = styles_css_default;
|
|
758
|
+
document.head.appendChild(tag);
|
|
759
|
+
return () => {
|
|
760
|
+
tag.remove();
|
|
761
|
+
};
|
|
762
|
+
}, "devcontainer: stylesheet");
|
|
763
|
+
const form = ctx.configForms.get(NS);
|
|
764
|
+
ctx.effect(() => ctx.configForms.whileServed([NS], () => ctx.slots.inject("settings.section", () => {
|
|
765
|
+
const controller = new VariantsController(form, async () => {
|
|
766
|
+
const namespace = ctx.remote.agentPresets;
|
|
767
|
+
if (typeof namespace.list !== "function") return { ok: false };
|
|
768
|
+
return namespace.list();
|
|
769
|
+
});
|
|
770
|
+
return [ctx.slots.register({
|
|
771
|
+
name: "settings.section",
|
|
772
|
+
id: NS,
|
|
773
|
+
order: 31,
|
|
774
|
+
label: () => ctx.locale.bind(NS)("nav"),
|
|
775
|
+
locale: NS,
|
|
776
|
+
inject: () => controller.inject()
|
|
777
|
+
}, DevcontainerVariantsSection), () => {
|
|
778
|
+
controller.dispose();
|
|
779
|
+
}];
|
|
780
|
+
})), "devcontainer: variants page");
|
|
781
|
+
}
|
|
782
|
+
//#endregion
|
|
783
|
+
exports.apply = apply;
|
|
784
|
+
exports.inject = inject;
|
|
785
|
+
return module.exports;
|
|
786
|
+
}
|
|
787
|
+
});
|
|
788
|
+
|
|
789
|
+
//# sourceMappingURL=client.js.map
|