feat(aircoding): AirCoding V2 baseline — deterministic multi-agent architecture
Forked from OpenCode v1.17.4 with multi-agent system: - 5 agents: aircoding, scheduler, worker, architect, reviewer - Deterministic DAG scheduling engine (coordinator_tick) - Tool whitelists as hard enforcement - AirCoding validation plugin - V1 requirements: C4 docs, ADR, AGENTS.md, debug-log.md - Design documents in docs/
This commit is contained in:
41
packages/storybook/.storybook/mocks/app/context/layout.ts
Normal file
41
packages/storybook/.storybook/mocks/app/context/layout.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
import { createSignal } from "solid-js"
|
||||
|
||||
const [all, setAll] = createSignal<string[]>([])
|
||||
const [active, setActive] = createSignal<string | undefined>(undefined)
|
||||
const [reviewOpen, setReviewOpen] = createSignal(false)
|
||||
|
||||
const tabs = {
|
||||
all,
|
||||
active,
|
||||
open(tab: string) {
|
||||
setAll((current) => (current.includes(tab) ? current : [...current, tab]))
|
||||
},
|
||||
setActive(tab: string) {
|
||||
if (!all().includes(tab)) {
|
||||
tabs.open(tab)
|
||||
}
|
||||
setActive(tab)
|
||||
},
|
||||
}
|
||||
|
||||
const view = {
|
||||
reviewPanel: {
|
||||
opened: reviewOpen,
|
||||
open() {
|
||||
setReviewOpen(true)
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export function useLayout() {
|
||||
return {
|
||||
tabs: () => tabs,
|
||||
view: () => view,
|
||||
fileTree: {
|
||||
setTab() {},
|
||||
},
|
||||
handoff: {
|
||||
setTabs() {},
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user