@denizokcu/haze 0.9.0 → 0.11.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 +133 -17
- package/README.md +164 -68
- package/SECURITY.md +22 -0
- package/bin/haze.js +102 -1
- package/dist/buildInfo.json +7 -0
- package/dist/cli/chat/TaskBar.d.ts +2 -1
- package/dist/cli/chat/TaskBar.js +7 -4
- package/dist/cli/chat/chatMetrics.d.ts +17 -1
- package/dist/cli/chat/chatMetrics.js +22 -5
- package/dist/cli/chat/contextReport.d.ts +11 -0
- package/dist/cli/chat/contextReport.js +46 -0
- package/dist/cli/chat/fileMentionSuggestions.d.ts +29 -0
- package/dist/cli/chat/fileMentionSuggestions.js +92 -0
- package/dist/cli/chat/inputSuggestions.d.ts +5 -0
- package/dist/cli/chat/inputSuggestions.js +17 -3
- package/dist/cli/chat/liveRegion.d.ts +25 -0
- package/dist/cli/chat/liveRegion.js +48 -0
- package/dist/cli/chat/messages.d.ts +33 -2
- package/dist/cli/chat/messages.js +216 -33
- package/dist/cli/chat/sessionLifecycle.d.ts +67 -0
- package/dist/cli/chat/sessionLifecycle.js +205 -0
- package/dist/cli/chat/sessionRecorder.js +80 -14
- package/dist/cli/chat/startupInfo.js +11 -4
- package/dist/cli/chat/tips.d.ts +21 -0
- package/dist/cli/chat/tips.js +43 -0
- package/dist/cli/chat/wizardDispatch.d.ts +64 -0
- package/dist/cli/chat/wizardDispatch.js +744 -0
- package/dist/cli/commands/chat.d.ts +6 -0
- package/dist/cli/commands/chat.js +373 -790
- package/dist/cli/commands/chatModes.d.ts +1 -1
- package/dist/cli/commands/chatModes.js +7 -2
- package/dist/cli/commands/commandHelp.js +5 -3
- package/dist/cli/commands/commands.d.ts +5 -2
- package/dist/cli/commands/commands.js +22 -18
- package/dist/cli/commands/doctor.d.ts +19 -0
- package/dist/cli/commands/doctor.js +76 -0
- package/dist/cli/commands/fleetCommand.d.ts +14 -0
- package/dist/cli/commands/fleetCommand.js +46 -0
- package/dist/cli/commands/formatters.d.ts +5 -0
- package/dist/cli/commands/formatters.js +35 -6
- package/dist/cli/commands/logsCommand.js +1 -7
- package/dist/cli/commands/modelCommand.js +1 -1
- package/dist/cli/commands/ndjsonSink.d.ts +23 -0
- package/dist/cli/commands/ndjsonSink.js +38 -0
- package/dist/cli/commands/providerWizard.d.ts +10 -2
- package/dist/cli/commands/providerWizard.js +50 -4
- package/dist/cli/commands/runCommand.d.ts +4 -0
- package/dist/cli/commands/runCommand.js +142 -16
- package/dist/cli/commands/sessionPicker.d.ts +9 -0
- package/dist/cli/commands/sessionPicker.js +29 -0
- package/dist/cli/commands/settingsSummary.js +6 -4
- package/dist/cli/commands/skillConfirmRemove.js +4 -3
- package/dist/cli/commands/skillWizard.d.ts +2 -0
- package/dist/cli/commands/skillWizard.js +16 -6
- package/dist/cli/commands/streaming/abortCause.d.ts +24 -0
- package/dist/cli/commands/streaming/abortCause.js +16 -0
- package/dist/cli/commands/streaming/assistantText.js +9 -2
- package/dist/cli/commands/streaming/goalCheckpoint.d.ts +65 -0
- package/dist/cli/commands/streaming/goalCheckpoint.js +23 -0
- package/dist/cli/commands/streaming/goalSupervisor.d.ts +64 -0
- package/dist/cli/commands/streaming/goalSupervisor.js +127 -0
- package/dist/cli/commands/streaming/idleTimer.d.ts +26 -0
- package/dist/cli/commands/streaming/idleTimer.js +24 -0
- package/dist/cli/commands/streaming/toolCallRecovery.d.ts +2 -0
- package/dist/cli/commands/streaming/toolCallRecovery.js +24 -0
- package/dist/cli/commands/streaming/toolGroupRenderer.d.ts +31 -0
- package/dist/cli/commands/streaming/toolGroupRenderer.js +50 -2
- package/dist/cli/commands/streaming/toolResultState.d.ts +6 -1
- package/dist/cli/commands/streaming/toolResultState.js +29 -7
- package/dist/cli/commands/streaming/turnOutcome.d.ts +17 -0
- package/dist/cli/commands/streaming/turnOutcome.js +27 -11
- package/dist/cli/commands/streaming/turnRuntime.js +6 -4
- package/dist/cli/commands/streaming.d.ts +82 -3
- package/dist/cli/commands/streaming.js +528 -91
- package/dist/cli/commands/wizardActions.d.ts +7 -0
- package/dist/cli/commands/wizardActions.js +7 -0
- package/dist/cli/commands/wizardPrompts.js +7 -1
- package/dist/cli/commands/wizardSuggestions.d.ts +8 -0
- package/dist/cli/commands/wizardSuggestions.js +64 -14
- package/dist/cli/commands/wizardTransition.d.ts +4 -0
- package/dist/cli/commands/wizardTransition.js +1 -2
- package/dist/cli/index.js +82 -22
- package/dist/cli/terminalTitle.d.ts +6 -0
- package/dist/cli/terminalTitle.js +36 -0
- package/dist/config/inputHistory.d.ts +3 -3
- package/dist/config/inputHistory.js +12 -18
- package/dist/config/modelDiscovery.d.ts +71 -0
- package/dist/config/modelDiscovery.js +214 -0
- package/dist/config/privateStorage.js +28 -2
- package/dist/config/providerAuth.d.ts +14 -0
- package/dist/config/providerAuth.js +49 -0
- package/dist/config/providerPresets.d.ts +49 -5
- package/dist/config/providerPresets.js +573 -73
- package/dist/config/providers.d.ts +2 -0
- package/dist/config/providers.js +9 -0
- package/dist/config/settings.d.ts +58 -0
- package/dist/config/settings.js +38 -1
- package/dist/config/skillSettings.d.ts +6 -13
- package/dist/config/skillSettings.js +20 -19
- package/dist/core/agent/budgets.d.ts +36 -0
- package/dist/core/agent/budgets.js +44 -0
- package/dist/core/agent/compaction.d.ts +38 -0
- package/dist/core/agent/compaction.js +108 -19
- package/dist/core/agent/completionController.d.ts +230 -0
- package/dist/core/agent/completionController.js +287 -0
- package/dist/core/agent/contextBudget.d.ts +46 -0
- package/dist/core/agent/contextBudget.js +89 -7
- package/dist/core/agent/errors.js +6 -2
- package/dist/core/agent/events.d.ts +86 -0
- package/dist/core/agent/reasoningPolicy.d.ts +31 -0
- package/dist/core/agent/reasoningPolicy.js +27 -0
- package/dist/core/agent/toolCapabilities.d.ts +27 -0
- package/dist/core/agent/toolCapabilities.js +58 -0
- package/dist/core/agent/toolExecutionBudget.d.ts +35 -0
- package/dist/core/agent/toolExecutionBudget.js +49 -0
- package/dist/core/agent/toolOutputStore.d.ts +13 -0
- package/dist/core/agent/toolOutputStore.js +27 -10
- package/dist/core/agent/toolResults.d.ts +12 -0
- package/dist/core/agent/toolResults.js +38 -0
- package/dist/core/agent/turnBudget.d.ts +35 -0
- package/dist/core/agent/turnBudget.js +27 -0
- package/dist/core/agent/turnPolicy.d.ts +11 -0
- package/dist/core/agent/turnPolicy.js +19 -0
- package/dist/core/agent/workState.d.ts +76 -1
- package/dist/core/agent/workState.js +120 -13
- package/dist/core/attachments/imageAttachments.d.ts +90 -0
- package/dist/core/attachments/imageAttachments.js +245 -0
- package/dist/core/attachments/readBlessings.d.ts +37 -0
- package/dist/core/attachments/readBlessings.js +79 -0
- package/dist/core/deadline.d.ts +33 -0
- package/dist/core/deadline.js +74 -0
- package/dist/core/goal/completionPolicy.d.ts +27 -0
- package/dist/core/goal/completionPolicy.js +37 -1
- package/dist/core/goal/requestClassifier.d.ts +0 -3
- package/dist/core/goal/requestClassifier.js +0 -13
- package/dist/core/io/boundedRead.js +76 -29
- package/dist/core/limits/byteBudgets.d.ts +7 -0
- package/dist/core/limits/byteBudgets.js +7 -0
- package/dist/core/limits/textBudgets.d.ts +25 -0
- package/dist/core/limits/textBudgets.js +25 -0
- package/dist/core/log/llmLog.js +7 -0
- package/dist/core/persistence/orderedFileWriter.d.ts +10 -0
- package/dist/core/persistence/orderedFileWriter.js +16 -2
- package/dist/core/process/backgroundRegistry.d.ts +35 -0
- package/dist/core/process/backgroundRegistry.js +195 -0
- package/dist/core/process/runBoundedProcess.d.ts +9 -0
- package/dist/core/process/runBoundedProcess.js +74 -29
- package/dist/core/safety/missingExecutable.d.ts +42 -0
- package/dist/core/safety/missingExecutable.js +77 -0
- package/dist/core/safety/urlGuard.d.ts +2 -1
- package/dist/core/safety/urlGuard.js +3 -2
- package/dist/core/session/sessionSlimming.js +47 -4
- package/dist/core/session/sessionStore.d.ts +74 -0
- package/dist/core/session/sessionStore.js +268 -18
- package/dist/core/subagent/contracts.d.ts +120 -0
- package/dist/core/subagent/contracts.js +55 -0
- package/dist/core/subagent/executionProfiles.d.ts +28 -0
- package/dist/core/subagent/executionProfiles.js +45 -0
- package/dist/core/subagent/subagentCoordinator.d.ts +78 -0
- package/dist/core/subagent/subagentCoordinator.js +164 -0
- package/dist/core/subagent/subagentRunner.d.ts +211 -145
- package/dist/core/subagent/subagentRunner.js +208 -98
- package/dist/core/subagent/workspaceMutationPolicy.d.ts +11 -0
- package/dist/core/subagent/workspaceMutationPolicy.js +52 -0
- package/dist/core/tasks/taskStorage.js +12 -1
- package/dist/llm/client.d.ts +36 -29
- package/dist/llm/client.js +102 -33
- package/dist/llm/hazeTools.d.ts +2559 -150
- package/dist/llm/hazeTools.js +119 -31
- package/dist/llm/lsp.d.ts +26 -4
- package/dist/llm/lsp.js +90 -14
- package/dist/llm/lspTools.d.ts +2366 -0
- package/dist/llm/lspTools.js +87 -79
- package/dist/llm/openaiCodex.d.ts +3 -0
- package/dist/llm/openaiCodex.js +47 -0
- package/dist/llm/openaiCodexOAuth.d.ts +54 -0
- package/dist/llm/openaiCodexOAuth.js +214 -0
- package/dist/llm/requestContext.d.ts +25 -1
- package/dist/llm/requestContext.js +51 -8
- package/dist/llm/systemPrompt.d.ts +15 -1
- package/dist/llm/systemPrompt.js +24 -8
- package/dist/llm/toolResultTypes.d.ts +8 -1
- package/dist/llm/tools/bashTool.d.ts +906 -32
- package/dist/llm/tools/bashTool.js +30 -4
- package/dist/llm/tools/editMatch.d.ts +14 -0
- package/dist/llm/tools/editMatch.js +72 -0
- package/dist/llm/tools/failures.d.ts +2 -0
- package/dist/llm/tools/failures.js +1 -0
- package/dist/llm/tools/fetchTool.d.ts +42 -26
- package/dist/llm/tools/fetchTool.js +1 -1
- package/dist/llm/tools/fileToolShared.d.ts +6 -4
- package/dist/llm/tools/fileToolShared.js +18 -23
- package/dist/llm/tools/gitIgnore.d.ts +49 -0
- package/dist/llm/tools/gitIgnore.js +129 -0
- package/dist/llm/tools/grepRunner.d.ts +5 -0
- package/dist/llm/tools/grepRunner.js +52 -71
- package/dist/llm/tools/outputCap.d.ts +2 -6
- package/dist/llm/tools/outputCap.js +2 -6
- package/dist/llm/tools/processTool.d.ts +1077 -0
- package/dist/llm/tools/processTool.js +41 -0
- package/dist/llm/tools/readRecovery.d.ts +10 -0
- package/dist/llm/tools/readRecovery.js +135 -0
- package/dist/llm/tools/toolContext.d.ts +9 -1
- package/dist/llm/tools/toolContext.js +83 -43
- package/dist/llm/tools/workspaceFile.d.ts +9 -1
- package/dist/llm/tools/workspaceFile.js +33 -4
- package/dist/llm/webFetch.d.ts +17 -0
- package/dist/llm/webFetch.js +66 -86
- package/dist/llm/workerContext.d.ts +18 -0
- package/dist/llm/workerContext.js +55 -0
- package/dist/skills/SkillLoader.d.ts +2 -2
- package/dist/skills/SkillRegistry.d.ts +3 -2
- package/dist/skills/SkillRegistry.js +43 -13
- package/dist/skills/builder/SkillBuilder.d.ts +3 -0
- package/dist/skills/builder/SkillBuilder.js +23 -5
- package/dist/skills/skillTools.js +11 -4
- package/dist/skills/types.d.ts +6 -1
- package/dist/ui/codeHighlight.d.ts +4 -0
- package/dist/ui/codeHighlight.js +31 -0
- package/dist/ui/components/Header.d.ts +1 -1
- package/dist/ui/components/MarkdownText.d.ts +16 -2
- package/dist/ui/components/MarkdownText.js +244 -34
- package/dist/ui/components/TextInput.d.ts +12 -2
- package/dist/ui/components/TextInput.js +80 -8
- package/dist/ui/theme.d.ts +4 -3
- package/dist/ui/theme.js +5 -4
- package/dist/utils/buildInfo.d.ts +104 -0
- package/dist/utils/buildInfo.js +253 -0
- package/dist/utils/format.d.ts +2 -0
- package/dist/utils/format.js +8 -0
- package/dist/utils/fs.d.ts +9 -1
- package/dist/utils/fs.js +87 -29
- package/dist/utils/openPath.d.ts +2 -0
- package/dist/utils/openPath.js +22 -0
- package/dist/utils/path.d.ts +2 -0
- package/dist/utils/path.js +5 -1
- package/dist/utils/utf8.d.ts +22 -0
- package/dist/utils/utf8.js +54 -0
- package/dist/utils/version.d.ts +9 -3
- package/dist/utils/version.js +28 -2
- package/package.json +24 -19
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { isMutationMode } from './executionProfiles.js';
|
|
2
|
+
/**
|
|
3
|
+
* Turn-scoped worker admission. A deadline returns logical control immediately,
|
|
4
|
+
* but an uncooperative underlying execution remains quarantined and continues
|
|
5
|
+
* to consume its real concurrency/mutation slot until it physically settles.
|
|
6
|
+
*/
|
|
7
|
+
export class SubagentCoordinator {
|
|
8
|
+
profile;
|
|
9
|
+
onEvent;
|
|
10
|
+
queue = [];
|
|
11
|
+
running = 0;
|
|
12
|
+
mutationRunning = false;
|
|
13
|
+
/** Read-only workers admitted behind a blocked mutation head (RH-010). */
|
|
14
|
+
bypassRunning = 0;
|
|
15
|
+
nextId = 1;
|
|
16
|
+
nextSequence = 1;
|
|
17
|
+
submissionBatch = 1;
|
|
18
|
+
admissionScheduled = false;
|
|
19
|
+
peakConcurrency = 0;
|
|
20
|
+
/** Peak read-only workers running concurrently behind a blocked mutation. */
|
|
21
|
+
peakBypass = 0;
|
|
22
|
+
constructor(profile, onEvent) {
|
|
23
|
+
this.profile = profile;
|
|
24
|
+
this.onEvent = onEvent;
|
|
25
|
+
}
|
|
26
|
+
createId() { return `worker-${this.nextId++}`; }
|
|
27
|
+
submit(input) {
|
|
28
|
+
const submittedAt = performance.now();
|
|
29
|
+
return new Promise(resolve => {
|
|
30
|
+
const item = { ...input, sequence: this.nextSequence++, batch: this.submissionBatch, submittedAt, resolve };
|
|
31
|
+
if (input.signal?.aborted) {
|
|
32
|
+
const value = input.terminal('cancelled', 0);
|
|
33
|
+
this.onEvent?.({ type: 'terminal', id: input.id, mode: input.mode, termination: 'cancelled', execution: 'settled', queueMs: 0, durationMs: 0, running: this.running });
|
|
34
|
+
resolve(value);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (input.signal) {
|
|
38
|
+
item.abortListener = () => {
|
|
39
|
+
const index = this.queue.indexOf(item);
|
|
40
|
+
if (index < 0)
|
|
41
|
+
return;
|
|
42
|
+
this.queue.splice(index, 1);
|
|
43
|
+
const queueMs = performance.now() - submittedAt;
|
|
44
|
+
resolve(input.terminal('cancelled', queueMs));
|
|
45
|
+
this.onEvent?.({ type: 'terminal', id: input.id, mode: input.mode, termination: 'cancelled', execution: 'settled', queueMs, durationMs: 0, running: this.running });
|
|
46
|
+
};
|
|
47
|
+
input.signal.addEventListener('abort', item.abortListener, { once: true });
|
|
48
|
+
}
|
|
49
|
+
this.queue.push(item);
|
|
50
|
+
this.onEvent?.({ type: 'queued', id: input.id, mode: input.mode, queued: this.queue.length, running: this.running });
|
|
51
|
+
this.scheduleAdmission();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
scheduleAdmission() {
|
|
55
|
+
if (this.admissionScheduled)
|
|
56
|
+
return;
|
|
57
|
+
this.admissionScheduled = true;
|
|
58
|
+
queueMicrotask(() => {
|
|
59
|
+
this.admissionScheduled = false;
|
|
60
|
+
const batch = this.submissionBatch++;
|
|
61
|
+
// Only reorder calls emitted in the same model batch. Older blocked work
|
|
62
|
+
// always remains ahead of later submissions, preventing starvation.
|
|
63
|
+
this.queue.sort((a, b) => {
|
|
64
|
+
if (a.batch !== b.batch || a.batch !== batch)
|
|
65
|
+
return a.sequence - b.sequence;
|
|
66
|
+
if (a.mode === 'implement' && b.mode === 'validate')
|
|
67
|
+
return -1;
|
|
68
|
+
if (a.mode === 'validate' && b.mode === 'implement')
|
|
69
|
+
return 1;
|
|
70
|
+
return a.sequence - b.sequence;
|
|
71
|
+
});
|
|
72
|
+
this.admit();
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
admit() {
|
|
76
|
+
// FIFO admission from the queue head. A mutation at the head blocks behind
|
|
77
|
+
// another running mutation; everything else is admitted in order while
|
|
78
|
+
// slots remain free.
|
|
79
|
+
while (this.running < this.profile.maxConcurrency) {
|
|
80
|
+
const item = this.queue[0];
|
|
81
|
+
if (!item || (isMutationMode(item.mode) && this.mutationRunning))
|
|
82
|
+
break;
|
|
83
|
+
this.queue.shift();
|
|
84
|
+
if (item.signal && item.abortListener)
|
|
85
|
+
item.signal.removeEventListener('abort', item.abortListener);
|
|
86
|
+
this.start(item, false);
|
|
87
|
+
}
|
|
88
|
+
// Bounded read-only bypass: while a mutation is blocked at the head, let
|
|
89
|
+
// read-only work waiting behind it consume otherwise-idle slots. The cap is
|
|
90
|
+
// maxConcurrency - 1 so a serialized mutation always retains a free slot
|
|
91
|
+
// the moment the running mutation settles, preventing starvation (RH-010).
|
|
92
|
+
const bypassCap = Math.max(0, this.profile.maxConcurrency - 1);
|
|
93
|
+
while (this.running < this.profile.maxConcurrency && this.bypassRunning < bypassCap) {
|
|
94
|
+
const head = this.queue[0];
|
|
95
|
+
if (!head || !(isMutationMode(head.mode) && this.mutationRunning))
|
|
96
|
+
break;
|
|
97
|
+
const index = this.queue.findIndex(item => !isMutationMode(item.mode));
|
|
98
|
+
if (index === -1)
|
|
99
|
+
break;
|
|
100
|
+
const [item] = this.queue.splice(index, 1);
|
|
101
|
+
if (item.signal && item.abortListener)
|
|
102
|
+
item.signal.removeEventListener('abort', item.abortListener);
|
|
103
|
+
this.start(item, true);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
start(item, bypass) {
|
|
107
|
+
const mutation = isMutationMode(item.mode);
|
|
108
|
+
this.running++;
|
|
109
|
+
if (bypass) {
|
|
110
|
+
this.bypassRunning++;
|
|
111
|
+
this.peakBypass = Math.max(this.peakBypass, this.bypassRunning);
|
|
112
|
+
}
|
|
113
|
+
if (mutation)
|
|
114
|
+
this.mutationRunning = true;
|
|
115
|
+
this.peakConcurrency = Math.max(this.peakConcurrency, this.running);
|
|
116
|
+
const queueMs = performance.now() - item.submittedAt;
|
|
117
|
+
const controller = new AbortController();
|
|
118
|
+
let abortSource;
|
|
119
|
+
let terminalDelivered = false;
|
|
120
|
+
let deliveredTermination;
|
|
121
|
+
const startedAt = performance.now();
|
|
122
|
+
const deliverTerminal = (termination, execution, value) => {
|
|
123
|
+
if (terminalDelivered)
|
|
124
|
+
return;
|
|
125
|
+
terminalDelivered = true;
|
|
126
|
+
deliveredTermination = termination;
|
|
127
|
+
const terminalValue = value ?? item.terminal(termination, queueMs);
|
|
128
|
+
this.onEvent?.({ type: 'terminal', id: item.id, mode: item.mode, termination, execution, queueMs, durationMs: performance.now() - startedAt, running: execution === 'settled' ? this.running - 1 : this.running });
|
|
129
|
+
item.resolve(terminalValue);
|
|
130
|
+
};
|
|
131
|
+
const abort = (source, reason) => {
|
|
132
|
+
if (abortSource)
|
|
133
|
+
return;
|
|
134
|
+
abortSource = source;
|
|
135
|
+
const termination = source === 'deadline' ? 'deadline_exceeded' : 'cancelled';
|
|
136
|
+
controller.abort(reason);
|
|
137
|
+
// Restore caller control now, without pretending the underlying execution
|
|
138
|
+
// or its real admission/mutation slot has been released.
|
|
139
|
+
deliverTerminal(termination, 'quarantined');
|
|
140
|
+
};
|
|
141
|
+
const parentAbort = () => abort('parent', item.signal?.reason);
|
|
142
|
+
item.signal?.addEventListener('abort', parentAbort, { once: true });
|
|
143
|
+
if (item.signal?.aborted)
|
|
144
|
+
parentAbort();
|
|
145
|
+
const timer = setTimeout(() => abort('deadline', 'subagent deadline exceeded'), this.profile.deadlineMs);
|
|
146
|
+
this.onEvent?.({ type: 'started', id: item.id, mode: item.mode, queueMs, running: this.running });
|
|
147
|
+
void Promise.resolve().then(() => item.run({ id: item.id, signal: controller.signal, queueMs, deadlineExpired: () => abortSource === 'deadline' }))
|
|
148
|
+
.then(value => deliverTerminal(item.terminationOf(value), 'settled', value))
|
|
149
|
+
.catch(() => deliverTerminal(abortSource === 'deadline' ? 'deadline_exceeded' : abortSource === 'parent' ? 'cancelled' : 'provider_error', 'settled'))
|
|
150
|
+
.finally(() => {
|
|
151
|
+
clearTimeout(timer);
|
|
152
|
+
item.signal?.removeEventListener('abort', parentAbort);
|
|
153
|
+
this.running--;
|
|
154
|
+
if (bypass)
|
|
155
|
+
this.bypassRunning--;
|
|
156
|
+
if (mutation)
|
|
157
|
+
this.mutationRunning = false;
|
|
158
|
+
if (deliveredTermination && abortSource) {
|
|
159
|
+
this.onEvent?.({ type: 'settled', id: item.id, mode: item.mode, termination: deliveredTermination, queueMs, durationMs: performance.now() - startedAt, running: this.running });
|
|
160
|
+
}
|
|
161
|
+
this.admit();
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
}
|