@get-bb/plugin-sdk 0.6.157 → 0.6.169
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 +1 -1
- package/bundled-types/bb-plugin-sdk-app.d.ts +1010 -353
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +3 -0
- package/bundled-types/bb-plugin-sdk-host.d.ts +4 -1
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +9 -6
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +10 -4
- package/bundled-types/bb-plugin-sdk-internal-thread-event-gate.d.ts +1001 -0
- package/bundled-types/bb-plugin-sdk-internal-thread-status.d.ts +2 -2
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +56 -6
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +56 -6
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +45 -8
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +7 -3
- package/bundled-types/bb-plugin-sdk-testing.d.ts +14 -19
- package/bundled-types/bb-plugin-sdk.d.ts +1043 -436
- package/dist/app.js +8 -0
- package/dist/host.js +27 -3
- package/dist/index.js +19 -1
- package/dist/internal/host-policy.js +34 -13
- package/dist/internal/plugin-app-collector.js +35 -3
- package/dist/internal/rpc-query-host.js +1 -0
- package/dist/internal/thread-event-gate.js +95 -0
- package/dist/process.js +7 -1
- package/dist/provider-bridge-acp-next.js +503 -144
- package/dist/provider-bridge-acp.js +503 -144
- package/dist/provider-bridge-testing.js +12 -4
- package/dist/provider-bridge.js +115 -34
- package/dist/replay-provider-child.mjs +158 -31
- package/dist/testing/app.js +647 -351
- package/dist/testing/index.js +184 -77
- package/package.json +8 -1
package/dist/app.js
CHANGED
|
@@ -384,6 +384,12 @@ var experimental_ImageLightbox = runtimeComponent(
|
|
|
384
384
|
var experimental_PromptMentionIcon = runtimeComponent(
|
|
385
385
|
"experimental_PromptMentionIcon"
|
|
386
386
|
);
|
|
387
|
+
var experimental_matchesShortcutKey = runtimeFunction(
|
|
388
|
+
"experimental_matchesShortcutKey"
|
|
389
|
+
);
|
|
390
|
+
var experimental_sliceUtf16Head = runtimeFunction(
|
|
391
|
+
"experimental_sliceUtf16Head"
|
|
392
|
+
);
|
|
387
393
|
var experimental_describePromptMention = runtimeFunction(
|
|
388
394
|
"experimental_describePromptMention"
|
|
389
395
|
);
|
|
@@ -532,11 +538,13 @@ export {
|
|
|
532
538
|
experimental_copyToClipboard,
|
|
533
539
|
experimental_describePromptMention,
|
|
534
540
|
experimental_getApplicationLinkApprovals,
|
|
541
|
+
experimental_matchesShortcutKey,
|
|
535
542
|
experimental_promptMentionClipboardAttributes,
|
|
536
543
|
experimental_readPromptMentionClipboard,
|
|
537
544
|
experimental_resolveThreadStatus,
|
|
538
545
|
experimental_revokeApplicationLinkApproval,
|
|
539
546
|
experimental_saveFile,
|
|
547
|
+
experimental_sliceUtf16Head,
|
|
540
548
|
experimental_useAppPanel,
|
|
541
549
|
experimental_useArchiveEnvironmentThreads,
|
|
542
550
|
experimental_useBranches,
|
package/dist/host.js
CHANGED
|
@@ -213,6 +213,30 @@ var providerNativeRootSetSchema = z.object({
|
|
|
213
213
|
resolved: providerResolvedNativeRootsSchema
|
|
214
214
|
}).strict();
|
|
215
215
|
|
|
216
|
+
// ../text-utils/src/utf16.ts
|
|
217
|
+
function isHighSurrogateAt(value, index) {
|
|
218
|
+
const code = value.charCodeAt(index);
|
|
219
|
+
return code >= 55296 && code <= 56319;
|
|
220
|
+
}
|
|
221
|
+
function isLowSurrogateAt(value, index) {
|
|
222
|
+
const code = value.charCodeAt(index);
|
|
223
|
+
return code >= 56320 && code <= 57343;
|
|
224
|
+
}
|
|
225
|
+
function sliceUtf16Head(value, maxChars) {
|
|
226
|
+
let end = Math.min(value.length, Math.max(0, maxChars));
|
|
227
|
+
if (isHighSurrogateAt(value, end - 1) && isLowSurrogateAt(value, end)) {
|
|
228
|
+
end -= 1;
|
|
229
|
+
}
|
|
230
|
+
return value.slice(0, end);
|
|
231
|
+
}
|
|
232
|
+
function sliceUtf16Tail(value, maxChars) {
|
|
233
|
+
let start = Math.max(0, value.length - Math.max(0, maxChars));
|
|
234
|
+
if (isHighSurrogateAt(value, start - 1) && isLowSurrogateAt(value, start)) {
|
|
235
|
+
start += 1;
|
|
236
|
+
}
|
|
237
|
+
return value.slice(start);
|
|
238
|
+
}
|
|
239
|
+
|
|
216
240
|
// src/rpc-contract.ts
|
|
217
241
|
var refusalBrand = /* @__PURE__ */ Symbol.for("@get-bb/plugin-sdk/rpc-refusal");
|
|
218
242
|
var experimental_PluginRpcRefusal = class extends Error {
|
|
@@ -1442,8 +1466,7 @@ function spawnPortableProcess(request) {
|
|
|
1442
1466
|
cwd: request.cwd,
|
|
1443
1467
|
detached: request.detached,
|
|
1444
1468
|
env: request.env,
|
|
1445
|
-
stdio: request.stdio
|
|
1446
|
-
windowsHide: true
|
|
1469
|
+
stdio: request.stdio
|
|
1447
1470
|
});
|
|
1448
1471
|
}
|
|
1449
1472
|
function assertPortableOutputProcess(child) {
|
|
@@ -1834,7 +1857,6 @@ async function readWindowsProcess(pid) {
|
|
|
1834
1857
|
],
|
|
1835
1858
|
{
|
|
1836
1859
|
encoding: "utf8",
|
|
1837
|
-
windowsHide: true,
|
|
1838
1860
|
timeout: 3e4,
|
|
1839
1861
|
maxBuffer: 1024 * 1024
|
|
1840
1862
|
}
|
|
@@ -1887,5 +1909,7 @@ export {
|
|
|
1887
1909
|
experimental_resolveVendorPluginRoots,
|
|
1888
1910
|
runVcsProcess as experimental_runVcsProcess,
|
|
1889
1911
|
sanitizeInheritedChildProcessEnv as experimental_sanitizeInheritedChildProcessEnv,
|
|
1912
|
+
sliceUtf16Head as experimental_sliceUtf16Head,
|
|
1913
|
+
sliceUtf16Tail as experimental_sliceUtf16Tail,
|
|
1890
1914
|
spawnPortableOutputProcess as experimental_spawnPortableOutputProcess
|
|
1891
1915
|
};
|
package/dist/index.js
CHANGED
|
@@ -919,6 +919,23 @@ var experimental_THREAD_INFO_SECTION_GROUPS = {
|
|
|
919
919
|
storage: "3_storage"
|
|
920
920
|
};
|
|
921
921
|
|
|
922
|
+
// ../text-utils/src/utf16.ts
|
|
923
|
+
function isHighSurrogateAt(value, index) {
|
|
924
|
+
const code = value.charCodeAt(index);
|
|
925
|
+
return code >= 55296 && code <= 56319;
|
|
926
|
+
}
|
|
927
|
+
function isLowSurrogateAt(value, index) {
|
|
928
|
+
const code = value.charCodeAt(index);
|
|
929
|
+
return code >= 56320 && code <= 57343;
|
|
930
|
+
}
|
|
931
|
+
function sliceUtf16Head(value, maxChars) {
|
|
932
|
+
let end = Math.min(value.length, Math.max(0, maxChars));
|
|
933
|
+
if (isHighSurrogateAt(value, end - 1) && isLowSurrogateAt(value, end)) {
|
|
934
|
+
end -= 1;
|
|
935
|
+
}
|
|
936
|
+
return value.slice(0, end);
|
|
937
|
+
}
|
|
938
|
+
|
|
922
939
|
// ../domain/src/host-path.ts
|
|
923
940
|
var WINDOWS_DRIVE_PATH_PATTERN = /^([A-Za-z]):(?:[\\/]+|$)/u;
|
|
924
941
|
var WINDOWS_UNC_PATH_PATTERN = /^[\\/]{2}([^\\/]+)[\\/]+([^\\/]+)(?:[\\/]+|$)/u;
|
|
@@ -1090,5 +1107,6 @@ export {
|
|
|
1090
1107
|
isHostPathWithin as experimental_isHostPathWithin,
|
|
1091
1108
|
joinHostPath as experimental_joinHostPath,
|
|
1092
1109
|
normalizeHostPath as experimental_normalizeHostPath,
|
|
1093
|
-
resolveHostPath as experimental_resolveHostPath
|
|
1110
|
+
resolveHostPath as experimental_resolveHostPath,
|
|
1111
|
+
sliceUtf16Head as experimental_sliceUtf16Head
|
|
1094
1112
|
};
|
|
@@ -287,6 +287,23 @@ var providerNativeRootSetSchema = z4.object({
|
|
|
287
287
|
resolved: providerResolvedNativeRootsSchema
|
|
288
288
|
}).strict();
|
|
289
289
|
|
|
290
|
+
// ../text-utils/src/utf16.ts
|
|
291
|
+
function isHighSurrogateAt(value, index) {
|
|
292
|
+
const code = value.charCodeAt(index);
|
|
293
|
+
return code >= 55296 && code <= 56319;
|
|
294
|
+
}
|
|
295
|
+
function isLowSurrogateAt(value, index) {
|
|
296
|
+
const code = value.charCodeAt(index);
|
|
297
|
+
return code >= 56320 && code <= 57343;
|
|
298
|
+
}
|
|
299
|
+
function sliceUtf16Head(value, maxChars) {
|
|
300
|
+
let end = Math.min(value.length, Math.max(0, maxChars));
|
|
301
|
+
if (isHighSurrogateAt(value, end - 1) && isLowSurrogateAt(value, end)) {
|
|
302
|
+
end -= 1;
|
|
303
|
+
}
|
|
304
|
+
return value.slice(0, end);
|
|
305
|
+
}
|
|
306
|
+
|
|
290
307
|
// src/backend-contract.ts
|
|
291
308
|
var PLUGIN_CLI_OUTPUT_MAX_BYTES = 32 * 1024 * 1024;
|
|
292
309
|
|
|
@@ -2147,7 +2164,9 @@ function runPluginStorageMigrations(database, statements) {
|
|
|
2147
2164
|
if (!migrationColumns.some((column) => column.name === "statement_hash")) {
|
|
2148
2165
|
database.exec("ALTER TABLE _bb_migrations ADD COLUMN statement_hash TEXT");
|
|
2149
2166
|
}
|
|
2150
|
-
const rows = database.prepare(
|
|
2167
|
+
const rows = database.prepare(
|
|
2168
|
+
"SELECT id, statement_hash FROM _bb_migrations ORDER BY id"
|
|
2169
|
+
).all();
|
|
2151
2170
|
const applied = /* @__PURE__ */ new Map();
|
|
2152
2171
|
for (const row of rows) applied.set(row.id, row.statement_hash);
|
|
2153
2172
|
const statementHashes = statements.map(migrationStatementHash);
|
|
@@ -2510,20 +2529,19 @@ function normalizeInteractionRequest(request) {
|
|
|
2510
2529
|
`ui.requestInput title must be 1-${PLUGIN_INTERACTION_MAX_TITLE_LENGTH} characters`
|
|
2511
2530
|
);
|
|
2512
2531
|
}
|
|
2513
|
-
let
|
|
2532
|
+
let json;
|
|
2514
2533
|
try {
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
if (Buffer.byteLength(json, "utf8") > PLUGIN_INTERACTION_MAX_PAYLOAD_BYTES) {
|
|
2518
|
-
throw new Error("ui.requestInput payload exceeds 64 KiB");
|
|
2519
|
-
}
|
|
2520
|
-
payload = JSON.parse(json);
|
|
2521
|
-
} catch (error) {
|
|
2522
|
-
if (error instanceof Error && error.message.includes("64 KiB")) {
|
|
2523
|
-
throw error;
|
|
2524
|
-
}
|
|
2534
|
+
json = JSON.stringify(request.payload);
|
|
2535
|
+
} catch {
|
|
2525
2536
|
throw new Error("ui.requestInput payload must be JSON-serializable");
|
|
2526
2537
|
}
|
|
2538
|
+
if (json === void 0) {
|
|
2539
|
+
throw new Error("ui.requestInput payload must be JSON-serializable");
|
|
2540
|
+
}
|
|
2541
|
+
if (Buffer.byteLength(json, "utf8") > PLUGIN_INTERACTION_MAX_PAYLOAD_BYTES) {
|
|
2542
|
+
throw new Error("ui.requestInput payload exceeds 64 KiB");
|
|
2543
|
+
}
|
|
2544
|
+
const payload = JSON.parse(json);
|
|
2527
2545
|
const timeoutMs = request.timeoutMs ?? 10 * 60 * 1e3;
|
|
2528
2546
|
if (!Number.isInteger(timeoutMs) || timeoutMs <= 0 || timeoutMs > PLUGIN_INTERACTION_MAX_TIMEOUT_MS) {
|
|
2529
2547
|
throw new Error(
|
|
@@ -2700,7 +2718,10 @@ function normalizePluginAgentConfiguration(args) {
|
|
|
2700
2718
|
if (output.instructions !== void 0 && typeof output.instructions !== "string") {
|
|
2701
2719
|
throw new Error("configure() output.instructions must be a string");
|
|
2702
2720
|
}
|
|
2703
|
-
const instructions = typeof output.instructions === "string" && output.instructions.trim().length > 0 ?
|
|
2721
|
+
const instructions = typeof output.instructions === "string" && output.instructions.trim().length > 0 ? sliceUtf16Head(
|
|
2722
|
+
output.instructions,
|
|
2723
|
+
PLUGIN_DYNAMIC_INSTRUCTIONS_MAX_CHARS
|
|
2724
|
+
) : null;
|
|
2704
2725
|
const toolSelections = normalizePluginAgentToolSelections({
|
|
2705
2726
|
knownIds: args.knownToolIds,
|
|
2706
2727
|
pluginId: args.pluginId,
|
|
@@ -41,7 +41,7 @@ function adaptSidebarFooterAction(registration) {
|
|
|
41
41
|
label: registration.title,
|
|
42
42
|
icon: registration.icon,
|
|
43
43
|
kind: "action",
|
|
44
|
-
onActivate: ({ openPluginDetails }) => registration.run({ openSettings: openPluginDetails }),
|
|
44
|
+
onActivate: ({ openPluginDetails, ...context }) => registration.run({ ...context, openSettings: openPluginDetails }),
|
|
45
45
|
runtime: new SidebarFooterItemRuntime()
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -416,6 +416,14 @@ function checkStaleNavPanelKeys(kind, registration, onWarning) {
|
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
+
function readLegacyCardSectionTitle(kind, registration, onWarning) {
|
|
420
|
+
const title = "title" in registration ? registration.title : void 0;
|
|
421
|
+
if (typeof title !== "string" || title === "") return null;
|
|
422
|
+
onWarning(
|
|
423
|
+
`${kind}: "title" is retired; render experimental_InfoSection from the component instead.`
|
|
424
|
+
);
|
|
425
|
+
return title;
|
|
426
|
+
}
|
|
419
427
|
function createCommandShortcutSchema() {
|
|
420
428
|
return z.object({
|
|
421
429
|
key: z.string().min(1).max(32).refine(
|
|
@@ -439,6 +447,22 @@ function createCommandShortcutSchema() {
|
|
|
439
447
|
"Use Command, Control, or Alt with a key, or a function key"
|
|
440
448
|
);
|
|
441
449
|
}
|
|
450
|
+
var MESSAGE_ACTION_SURFACES = [
|
|
451
|
+
"thread-view",
|
|
452
|
+
"embedded-chat"
|
|
453
|
+
];
|
|
454
|
+
function isMessageActionSurface(value) {
|
|
455
|
+
return value === "thread-view" || value === "embedded-chat";
|
|
456
|
+
}
|
|
457
|
+
function collectMessageActionSurfaces(kind, value) {
|
|
458
|
+
if (value === void 0) return MESSAGE_ACTION_SURFACES;
|
|
459
|
+
if (!Array.isArray(value) || value.length === 0 || !value.every(isMessageActionSurface)) {
|
|
460
|
+
throw new Error(
|
|
461
|
+
`${kind}: "experimental_surfaces" must be a non-empty array of "thread-view" or "embedded-chat", got ${JSON.stringify(value)}`
|
|
462
|
+
);
|
|
463
|
+
}
|
|
464
|
+
return MESSAGE_ACTION_SURFACES.filter((surface) => value.includes(surface));
|
|
465
|
+
}
|
|
442
466
|
function requireOptionalOrder(kind, order) {
|
|
443
467
|
if (order === void 0) return {};
|
|
444
468
|
if (!Number.isFinite(order)) {
|
|
@@ -1015,10 +1039,14 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
|
|
|
1015
1039
|
requireUniqueId(kind, seenIds.threadContextCardSection, id);
|
|
1016
1040
|
collected.threadContextCardSections.push({
|
|
1017
1041
|
id,
|
|
1018
|
-
title: requireNonEmptyString(kind, "title", registration.title),
|
|
1019
1042
|
group: requireNonEmptyString(kind, "group", registration.group),
|
|
1020
1043
|
...requireOptionalOrder(kind, registration.order),
|
|
1021
|
-
component: requireComponent(kind, registration.component)
|
|
1044
|
+
component: requireComponent(kind, registration.component),
|
|
1045
|
+
legacyTitle: readLegacyCardSectionTitle(
|
|
1046
|
+
kind,
|
|
1047
|
+
registration,
|
|
1048
|
+
onWarning
|
|
1049
|
+
)
|
|
1022
1050
|
});
|
|
1023
1051
|
},
|
|
1024
1052
|
experimental_threadAction(registration) {
|
|
@@ -1165,6 +1193,10 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
|
|
|
1165
1193
|
...registration.icon !== void 0 ? {
|
|
1166
1194
|
icon: requireNonEmptyString(kind, "icon", registration.icon)
|
|
1167
1195
|
} : {},
|
|
1196
|
+
experimental_surfaces: collectMessageActionSurfaces(
|
|
1197
|
+
kind,
|
|
1198
|
+
registration.experimental_surfaces
|
|
1199
|
+
),
|
|
1168
1200
|
run: registration.run
|
|
1169
1201
|
});
|
|
1170
1202
|
},
|
|
@@ -1666,6 +1666,7 @@ var environmentLifecycleSchema = z6.object({
|
|
|
1666
1666
|
teardown: z6.object({
|
|
1667
1667
|
status: z6.enum(["running", "failed", "removed"]),
|
|
1668
1668
|
attempt: z6.number().int().nonnegative(),
|
|
1669
|
+
needsRecovery: z6.boolean(),
|
|
1669
1670
|
message: z6.string().optional()
|
|
1670
1671
|
}).nullable()
|
|
1671
1672
|
});
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// src/internal/thread-event-gate.ts
|
|
2
|
+
function fromThread(thread) {
|
|
3
|
+
return { threadId: thread.id, createdAt: thread.createdAt };
|
|
4
|
+
}
|
|
5
|
+
function fromThreadId(threadId) {
|
|
6
|
+
return { threadId, createdAt: null };
|
|
7
|
+
}
|
|
8
|
+
var THREAD_OF_EVENT = {
|
|
9
|
+
"experimental_environment.removed": () => null,
|
|
10
|
+
"experimental_thread.events": ({ thread }) => fromThread(thread),
|
|
11
|
+
"experimental_thread.parentChanged": ({ thread }) => fromThread(thread),
|
|
12
|
+
"experimental_thread.read": ({ thread }) => fromThread(thread),
|
|
13
|
+
"experimental_terminal.input": () => null,
|
|
14
|
+
"experimental_host.deleted": () => null,
|
|
15
|
+
"thread.created": ({ thread }) => fromThread(thread),
|
|
16
|
+
"thread.active": ({ thread }) => fromThread(thread),
|
|
17
|
+
"thread.idle": ({ thread }) => fromThread(thread),
|
|
18
|
+
"thread.failed": ({ thread }) => fromThread(thread),
|
|
19
|
+
"thread.archived": ({ thread }) => fromThread(thread),
|
|
20
|
+
"thread.unarchived": ({ thread }) => fromThread(thread),
|
|
21
|
+
"thread.deleted": ({ thread }) => fromThread(thread),
|
|
22
|
+
"interaction.pending": ({ thread }) => fromThread(thread),
|
|
23
|
+
"message.queued": ({ entry }) => fromThreadId(entry.threadId),
|
|
24
|
+
"message.dispatched": ({ entry }) => fromThreadId(entry.threadId),
|
|
25
|
+
"message.cancelled": ({ entry }) => fromThreadId(entry.threadId),
|
|
26
|
+
"turn.failed": ({ threadId }) => fromThreadId(threadId),
|
|
27
|
+
"experimental_thread.settled": ({ thread }) => fromThread(thread)
|
|
28
|
+
};
|
|
29
|
+
function threadOfEvent(event, payload) {
|
|
30
|
+
const extract = THREAD_OF_EVENT[event];
|
|
31
|
+
return extract(payload);
|
|
32
|
+
}
|
|
33
|
+
function createThreadEventGate(options = {}) {
|
|
34
|
+
const now = options.now ?? Date.now;
|
|
35
|
+
const schedule = options.schedule ?? ((run) => void setImmediate(run));
|
|
36
|
+
const callsStartedAt = /* @__PURE__ */ new Map();
|
|
37
|
+
let held = [];
|
|
38
|
+
function createdDuringCall(createdAt) {
|
|
39
|
+
if (createdAt === null) return false;
|
|
40
|
+
for (const startedAt of callsStartedAt.values()) {
|
|
41
|
+
if (startedAt <= createdAt) return true;
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
function release() {
|
|
46
|
+
const pending = held;
|
|
47
|
+
held = [];
|
|
48
|
+
const stillHeld = /* @__PURE__ */ new Set();
|
|
49
|
+
for (const entry of pending) {
|
|
50
|
+
if (stillHeld.has(entry.threadId) || createdDuringCall(entry.createdAt)) {
|
|
51
|
+
stillHeld.add(entry.threadId);
|
|
52
|
+
held.push(entry);
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
entry.deliver();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
async track(call) {
|
|
60
|
+
const token = /* @__PURE__ */ Symbol("thread-creating-call");
|
|
61
|
+
callsStartedAt.set(token, now());
|
|
62
|
+
try {
|
|
63
|
+
return await call();
|
|
64
|
+
} finally {
|
|
65
|
+
callsStartedAt.delete(token);
|
|
66
|
+
schedule(release);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
deliver(subject, deliver) {
|
|
70
|
+
if (subject === null) {
|
|
71
|
+
deliver();
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const threadId = subject.threadId;
|
|
75
|
+
if (held.some((entry) => entry.threadId === threadId)) {
|
|
76
|
+
held.push({ threadId, createdAt: null, deliver });
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (callsStartedAt.size === 0) {
|
|
80
|
+
deliver();
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const createdAt = subject.createdAt();
|
|
84
|
+
if (!createdDuringCall(createdAt)) {
|
|
85
|
+
deliver();
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
held.push({ threadId, createdAt, deliver });
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
export {
|
|
93
|
+
createThreadEventGate,
|
|
94
|
+
threadOfEvent
|
|
95
|
+
};
|
package/dist/process.js
CHANGED
|
@@ -600,7 +600,13 @@ function forkHostProcess(modulePath, args = [], options = {}) {
|
|
|
600
600
|
);
|
|
601
601
|
const execPath = options.execPath === void 0 || options.execPath === process.execPath ? hostToolchain.node({ env, cwd: options.cwd }) : options.execPath;
|
|
602
602
|
return observe(
|
|
603
|
-
nodeFork(modulePath, args, {
|
|
603
|
+
nodeFork(modulePath, args, {
|
|
604
|
+
...options,
|
|
605
|
+
env,
|
|
606
|
+
execArgv,
|
|
607
|
+
execPath,
|
|
608
|
+
windowsHide: options.windowsHide ?? true
|
|
609
|
+
})
|
|
604
610
|
);
|
|
605
611
|
}
|
|
606
612
|
function prepareExecFile(command, args, options) {
|