fix typescript errors and update dependencies

This commit is contained in:
itsrubberduck
2026-02-17 18:13:04 +01:00
parent 59bede6ad4
commit 54c1b47dc2
14 changed files with 3215 additions and 2544 deletions

View File

@@ -190,6 +190,7 @@ export default function useCommunicationsEngine() {
stack: [],
off_schema_count: 0,
radio_checks_done: 0,
session_id: '',
})
const currentStateId = ref<string>('')
const communicationLog = ref<EngineLog[]>([])
@@ -421,7 +422,7 @@ export default function useCommunicationsEngine() {
new Set(
entries
.map(entry => entry?.to)
.filter((id): id is string => typeof id === 'string' && id.length)
.filter((id): id is string => typeof id === 'string' && id.length > 0)
)
)
})
@@ -546,7 +547,7 @@ export default function useCommunicationsEngine() {
const mainFlowSlug = computed(() => runtimeSystem.value?.main || '')
const availableFlows = computed(() => {
if (!runtimeSystem.value) return [] as Array<{ slug: string; name: string; description?: string; start: string }>
if (!runtimeSystem.value) return [] as Array<{ slug: string; name: string; description?: string; start: string; mode: string }>
return flowOrder.value
.filter((slug) => Boolean(runtimeSystem.value!.flows[slug]))
.map((slug) => {
@@ -567,7 +568,7 @@ export default function useCommunicationsEngine() {
if (typeof fetcher !== 'function') {
throw new Error('Universal fetch is not available in this context')
}
const data = await fetcher<RuntimeDecisionSystem>('/api/decision-flows/runtime')
const data = (await fetcher('/api/decision-flows/runtime')) as RuntimeDecisionSystem
const activeSlug = slug && data.flows[slug] ? slug : data.main
resetEngineFromSystem(data, { activeSlug })
}

View File

@@ -403,7 +403,7 @@ class TremoloEffect implements EffectNode {
const frequency = Math.max(0.0001, this.oscillator.frequency.value)
offset = Math.random() * (1 / frequency)
}
this.oscillator.start(0, offset)
this.oscillator.start(this.context.currentTime + offset)
this.started = true
} catch {
// oscillator already started