feat(tui): render forms and route question tool through form service
This commit is contained in:
parent
12d9f4b29b
commit
b181216ce5
6 changed files with 1004 additions and 21 deletions
|
|
@ -16,6 +16,7 @@ import { ConfigReferencePlugin } from "../config/plugin/reference"
|
|||
import { ConfigSkillPlugin } from "../config/plugin/skill"
|
||||
import { EventV2 } from "../event"
|
||||
import { FileMutation } from "../file-mutation"
|
||||
import { Form } from "../form"
|
||||
import { FileSystem } from "../filesystem"
|
||||
import { FSUtil } from "../fs-util"
|
||||
import { Global } from "../global"
|
||||
|
|
@ -69,6 +70,7 @@ export type Requirements =
|
|||
| EventV2.Service
|
||||
| FileMutation.Service
|
||||
| FileSystem.Service
|
||||
| Form.Service
|
||||
| FSUtil.Service
|
||||
| Global.Service
|
||||
| HttpClient.HttpClient
|
||||
|
|
@ -116,6 +118,7 @@ const layer = Layer.effectDiscard(
|
|||
Context.make(EventV2.Service, yield* EventV2.Service),
|
||||
Context.make(FSUtil.Service, yield* FSUtil.Service),
|
||||
Context.make(FileSystem.Service, yield* FileSystem.Service),
|
||||
Context.make(Form.Service, yield* Form.Service),
|
||||
Context.make(Global.Service, yield* Global.Service),
|
||||
Context.make(HttpClient.HttpClient, yield* HttpClient.HttpClient),
|
||||
Context.make(LocationMutation.Service, yield* LocationMutation.Service),
|
||||
|
|
@ -192,6 +195,7 @@ export const node = makeLocationNode({
|
|||
EventV2.node,
|
||||
FSUtil.node,
|
||||
FileSystem.node,
|
||||
Form.node,
|
||||
Global.node,
|
||||
httpClient,
|
||||
PermissionV2.node,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue