@confect/cli 9.0.0-next.6 → 9.0.0-next.8
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 +39 -0
- package/dist/BuildError.mjs +9 -2
- package/dist/BuildError.mjs.map +1 -1
- package/dist/Bundler.mjs +5 -2
- package/dist/Bundler.mjs.map +1 -1
- package/dist/CodeBlockWriter.mjs +1 -1
- package/dist/CodeBlockWriter.mjs.map +1 -1
- package/dist/CodegenError.mjs +7 -2
- package/dist/CodegenError.mjs.map +1 -1
- package/dist/ConfectDirectory.mjs +5 -2
- package/dist/ConfectDirectory.mjs.map +1 -1
- package/dist/ConvexDirectory.mjs +6 -2
- package/dist/ConvexDirectory.mjs.map +1 -1
- package/dist/FunctionPath.mjs +1 -1
- package/dist/FunctionPath.mjs.map +1 -1
- package/dist/FunctionPaths.mjs +5 -1
- package/dist/FunctionPaths.mjs.map +1 -1
- package/dist/GroupPath.mjs +9 -2
- package/dist/GroupPath.mjs.map +1 -1
- package/dist/GroupPaths.mjs +1 -1
- package/dist/GroupPaths.mjs.map +1 -1
- package/dist/LeafModule.mjs +8 -2
- package/dist/LeafModule.mjs.map +1 -1
- package/dist/ProjectRoot.mjs +8 -3
- package/dist/ProjectRoot.mjs.map +1 -1
- package/dist/SpecAssemblyNode.mjs +5 -1
- package/dist/SpecAssemblyNode.mjs.map +1 -1
- package/dist/TableModule.mjs +6 -2
- package/dist/TableModule.mjs.map +1 -1
- package/dist/cliApp.mjs +1 -1
- package/dist/cliApp.mjs.map +1 -1
- package/dist/confect/codegen.mjs +10 -3
- package/dist/confect/codegen.mjs.map +1 -1
- package/dist/confect/dev.mjs +24 -4
- package/dist/confect/dev.mjs.map +1 -1
- package/dist/confect.mjs +2 -2
- package/dist/confect.mjs.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/log.mjs +7 -3
- package/dist/log.mjs.map +1 -1
- package/dist/package.mjs +1 -1
- package/dist/templates.mjs +3 -1
- package/dist/templates.mjs.map +1 -1
- package/dist/utils.mjs +25 -15
- package/dist/utils.mjs.map +1 -1
- package/package.json +3 -3
- package/src/BuildError.ts +9 -2
- package/src/Bundler.ts +5 -2
- package/src/CodeBlockWriter.ts +1 -1
- package/src/CodegenError.ts +7 -2
- package/src/ConfectDirectory.ts +5 -2
- package/src/ConvexDirectory.ts +6 -2
- package/src/FunctionPath.ts +1 -1
- package/src/FunctionPaths.ts +5 -1
- package/src/GroupPath.ts +9 -11
- package/src/GroupPaths.ts +1 -1
- package/src/LeafModule.ts +8 -2
- package/src/ProjectRoot.ts +8 -3
- package/src/SpecAssemblyNode.ts +5 -1
- package/src/TableModule.ts +6 -2
- package/src/cliApp.ts +1 -1
- package/src/confect/codegen.ts +10 -3
- package/src/confect/dev.ts +24 -24
- package/src/confect.ts +2 -2
- package/src/index.ts +3 -2
- package/src/log.ts +7 -3
- package/src/templates.ts +3 -1
- package/src/utils.ts +12 -13
package/src/LeafModule.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { GroupSpec, Registry } from "@confect/core";
|
|
2
2
|
import * as GroupImpl from "@confect/server/GroupImpl";
|
|
3
|
-
import
|
|
3
|
+
import * as FileSystem from "@effect/platform/FileSystem";
|
|
4
|
+
import * as Path from "@effect/platform/Path";
|
|
4
5
|
import type { Context } from "effect";
|
|
5
|
-
import
|
|
6
|
+
import * as Array from "effect/Array";
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
import * as Option from "effect/Option";
|
|
10
|
+
import * as Ref from "effect/Ref";
|
|
11
|
+
import * as String from "effect/String";
|
|
6
12
|
import { fromBundlerError } from "./BuildError";
|
|
7
13
|
import * as Bundler from "./Bundler";
|
|
8
14
|
import {
|
package/src/ProjectRoot.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import * as FileSystem from "@effect/platform/FileSystem";
|
|
2
|
+
import * as Path from "@effect/platform/Path";
|
|
3
|
+
import * as NodeFileSystem from "@effect/platform-node/NodeFileSystem";
|
|
4
|
+
import * as Array from "effect/Array";
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Option from "effect/Option";
|
|
7
|
+
import * as Ref from "effect/Ref";
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
4
9
|
|
|
5
10
|
export class ProjectRoot extends Effect.Service<ProjectRoot>()(
|
|
6
11
|
"@confect/cli/ProjectRoot",
|
package/src/SpecAssemblyNode.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { LeafModule } from "./LeafModule";
|
|
2
|
-
import {
|
|
2
|
+
import { pipe } from "effect/Function";
|
|
3
|
+
import * as Array from "effect/Array";
|
|
4
|
+
import * as Option from "effect/Option";
|
|
5
|
+
import * as Order from "effect/Order";
|
|
6
|
+
import * as Record from "effect/Record";
|
|
3
7
|
|
|
4
8
|
export interface SpecImportBinding {
|
|
5
9
|
readonly importPath: string;
|
package/src/TableModule.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Identifier } from "@confect/core";
|
|
2
2
|
import * as Table from "@confect/server/Table";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import * as FileSystem from "@effect/platform/FileSystem";
|
|
4
|
+
import * as Path from "@effect/platform/Path";
|
|
5
|
+
import { pipe } from "effect/Function";
|
|
6
|
+
import * as Array from "effect/Array";
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import * as Order from "effect/Order";
|
|
5
9
|
import { fromBundlerError } from "./BuildError";
|
|
6
10
|
import * as Bundler from "./Bundler";
|
|
7
11
|
import {
|
package/src/cliApp.ts
CHANGED
package/src/confect/codegen.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { Spec, type GroupSpec } from "@confect/core";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import * as Command from "@effect/cli/Command";
|
|
3
|
+
import * as FileSystem from "@effect/platform/FileSystem";
|
|
4
|
+
import * as Path from "@effect/platform/Path";
|
|
5
|
+
import * as Array from "effect/Array";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Either from "effect/Either";
|
|
8
|
+
import * as HashSet from "effect/HashSet";
|
|
9
|
+
import * as Match from "effect/Match";
|
|
10
|
+
import * as Option from "effect/Option";
|
|
11
|
+
import * as Ref from "effect/Ref";
|
|
5
12
|
import * as Bundler from "../Bundler";
|
|
6
13
|
import * as CodegenError from "../CodegenError";
|
|
7
14
|
import {
|
package/src/confect/dev.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import * as Command from "@effect/cli/Command";
|
|
2
|
+
import * as FileSystem from "@effect/platform/FileSystem";
|
|
3
|
+
import * as Path from "@effect/platform/Path";
|
|
4
|
+
import * as Ansi from "@effect/printer-ansi/Ansi";
|
|
5
|
+
import * as AnsiDoc from "@effect/printer-ansi/AnsiDoc";
|
|
6
|
+
import { pipe } from "effect/Function";
|
|
7
|
+
import * as Array from "effect/Array";
|
|
8
|
+
import * as Chunk from "effect/Chunk";
|
|
9
|
+
import * as Clock from "effect/Clock";
|
|
10
|
+
import * as Console from "effect/Console";
|
|
11
|
+
import * as Duration from "effect/Duration";
|
|
12
|
+
import * as Effect from "effect/Effect";
|
|
13
|
+
import * as Equal from "effect/Equal";
|
|
14
|
+
import * as ExecutionStrategy from "effect/ExecutionStrategy";
|
|
15
|
+
import * as Exit from "effect/Exit";
|
|
16
|
+
import * as HashSet from "effect/HashSet";
|
|
17
|
+
import * as Match from "effect/Match";
|
|
18
|
+
import * as Option from "effect/Option";
|
|
19
|
+
import * as Order from "effect/Order";
|
|
20
|
+
import * as Queue from "effect/Queue";
|
|
21
|
+
import * as Ref from "effect/Ref";
|
|
22
|
+
import * as Scope from "effect/Scope";
|
|
23
|
+
import * as Stream from "effect/Stream";
|
|
24
|
+
import * as String from "effect/String";
|
|
25
25
|
import {
|
|
26
26
|
externalPlugin,
|
|
27
27
|
loadTsConfig,
|
package/src/confect.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as Command from "@effect/cli/Command";
|
|
2
|
+
import * as Layer from "effect/Layer";
|
|
3
3
|
import { codegen } from "./confect/codegen";
|
|
4
4
|
import { dev } from "./confect/dev";
|
|
5
5
|
import { ConfectDirectory } from "./ConfectDirectory";
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import * as NodeContext from "@effect/platform-node/NodeContext";
|
|
4
|
+
import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
5
6
|
import { cliApp } from "./cliApp";
|
|
6
7
|
|
|
7
8
|
// Track if we received SIGINT so we can re-raise it after cleanup.
|
package/src/log.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import * as Path from "@effect/platform/Path";
|
|
2
|
+
import * as Ansi from "@effect/printer-ansi/Ansi";
|
|
3
|
+
import * as AnsiDoc from "@effect/printer-ansi/AnsiDoc";
|
|
4
|
+
import { pipe } from "effect/Function";
|
|
5
|
+
import * as Console from "effect/Console";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as String from "effect/String";
|
|
4
8
|
import type * as FunctionPath from "./FunctionPath";
|
|
5
9
|
import * as GroupPath from "./GroupPath";
|
|
6
10
|
import { ProjectRoot } from "./ProjectRoot";
|
package/src/templates.ts
CHANGED
package/src/utils.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import type { FunctionSpec, Spec } from "@confect/core";
|
|
2
|
-
import
|
|
2
|
+
import * as FileSystem from "@effect/platform/FileSystem";
|
|
3
|
+
import * as Path from "@effect/platform/Path";
|
|
3
4
|
import type { PlatformError } from "@effect/platform/Error";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
String,
|
|
15
|
-
} from "effect";
|
|
5
|
+
import { pipe } from "effect/Function";
|
|
6
|
+
import * as Array from "effect/Array";
|
|
7
|
+
import * as Context from "effect/Context";
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import * as HashSet from "effect/HashSet";
|
|
10
|
+
import * as Option from "effect/Option";
|
|
11
|
+
import * as Order from "effect/Order";
|
|
12
|
+
import * as Record from "effect/Record";
|
|
13
|
+
import * as Ref from "effect/Ref";
|
|
14
|
+
import * as String from "effect/String";
|
|
16
15
|
import * as FunctionPaths from "./FunctionPaths";
|
|
17
16
|
import * as GroupPath from "./GroupPath";
|
|
18
17
|
import * as GroupPaths from "./GroupPaths";
|