feat(server): expose location paths
This commit is contained in:
parent
6e8aefcfa0
commit
a7855aa169
7 changed files with 65 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ export { Model } from "./model.js"
|
|||
export { Money } from "./money.js"
|
||||
export { Permission } from "./permission.js"
|
||||
export { PermissionSaved } from "./permission-saved.js"
|
||||
export { Path } from "./path.js"
|
||||
export { Project } from "./project.js"
|
||||
export { ProjectCopy } from "./project-copy.js"
|
||||
export { Provider } from "./provider.js"
|
||||
|
|
|
|||
13
packages/schema/src/path.ts
Normal file
13
packages/schema/src/path.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
export * as Path from "./path.js"
|
||||
|
||||
import { Schema } from "effect"
|
||||
import { AbsolutePath } from "./schema.js"
|
||||
|
||||
export const Info = Schema.Struct({
|
||||
home: AbsolutePath,
|
||||
state: AbsolutePath,
|
||||
config: AbsolutePath,
|
||||
worktree: AbsolutePath,
|
||||
directory: AbsolutePath,
|
||||
}).annotate({ identifier: "Path.Info" })
|
||||
export interface Info extends Schema.Schema.Type<typeof Info> {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue