@savvy-web/cli 3.4.0 → 3.4.2
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/cli/index.js +2 -2
- package/commands/changeset/commands/check.js +1 -1
- package/commands/changeset/commands/config-validate.js +1 -1
- package/commands/changeset/commands/deps-detect.js +1 -1
- package/commands/changeset/commands/deps-regen.js +1 -1
- package/commands/changeset/commands/lint.js +1 -1
- package/commands/changeset/commands/transform.js +1 -1
- package/commands/changeset/commands/validate-file.js +1 -1
- package/commands/changeset/commands/version.js +1 -1
- package/commands/changeset/index.js +1 -1
- package/commands/check.js +1 -1
- package/commands/clean.js +1 -1
- package/commands/commit/hook.js +1 -1
- package/commands/commit/hooks/post-commit-verify.js +1 -1
- package/commands/commit/hooks/pre-commit-message.js +1 -1
- package/commands/commit/hooks/session-start.js +1 -1
- package/commands/commit/index.js +1 -1
- package/commands/commit/lint.js +1 -1
- package/commands/init.js +1 -1
- package/commands/lint/fmt.js +1 -1
- package/commands/lint/index.js +1 -1
- package/commands/repos/commands/add.js +1 -1
- package/commands/repos/commands/deregister.js +1 -1
- package/commands/repos/commands/note.js +1 -1
- package/commands/repos/commands/pin.js +1 -1
- package/commands/repos/commands/remove.js +1 -1
- package/commands/repos/commands/rename.js +1 -1
- package/commands/repos/commands/restore.js +1 -1
- package/commands/repos/commands/status.js +1 -1
- package/commands/repos/commands/sync.js +1 -1
- package/commands/repos/index.js +1 -1
- package/index.d.ts +3 -3
- package/internal/version-line.js +1 -1
- package/main.js +1 -1
- package/package.json +12 -12
- package/version.js +1 -1
package/cli/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { initCommand } from "../commands/init.js";
|
|
|
5
5
|
import { lintCommand } from "../commands/lint/index.js";
|
|
6
6
|
import { reposCommand } from "../commands/repos/index.js";
|
|
7
7
|
import { cleanCommand } from "../commands/clean.js";
|
|
8
|
-
import { Command } from "effect/
|
|
8
|
+
import { Command } from "effect/cli";
|
|
9
9
|
import { BiomeSchemaSync, ChangesetConfigReader, Changesets, ConfigDiscovery, Repos, SilkPublishability } from "@savvy-web/silk-effects";
|
|
10
10
|
import { Layer } from "effect";
|
|
11
11
|
import { Git } from "@effected/git";
|
|
@@ -16,7 +16,7 @@ import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
|
16
16
|
|
|
17
17
|
//#region src/cli/index.ts
|
|
18
18
|
/**
|
|
19
|
-
* Root `savvy` CLI entry point using `effect/
|
|
19
|
+
* Root `savvy` CLI entry point using `effect/cli`.
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
22
|
* Assembles the five Phase-B command pieces — the `init` and `check` top-level
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Argument, Command } from "effect/
|
|
2
|
+
import { Argument, Command } from "effect/cli";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { CliExit } from "@effected/cli";
|
|
5
5
|
import { Changesets } from "@savvy-web/silk-effects";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Argument, Command } from "effect/
|
|
2
|
+
import { Argument, Command } from "effect/cli";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { CliExit } from "@effected/cli";
|
|
5
5
|
import { Changesets } from "@savvy-web/silk-effects";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Command, Flag } from "effect/
|
|
2
|
+
import { Command, Flag } from "effect/cli";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { CliExit } from "@effected/cli";
|
|
5
5
|
import { Changesets } from "@savvy-web/silk-effects";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Command, Flag } from "effect/
|
|
2
|
+
import { Command, Flag } from "effect/cli";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { CliExit } from "@effected/cli";
|
|
5
5
|
import { Changesets } from "@savvy-web/silk-effects";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
2
|
import { requireValidConfig } from "../utils/config-gate.js";
|
|
3
|
-
import { Argument, Command, Flag } from "effect/
|
|
3
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
4
4
|
import { dirname, resolve } from "node:path";
|
|
5
5
|
import { CliExit } from "@effected/cli";
|
|
6
6
|
import { Changesets } from "@savvy-web/silk-effects";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Argument, Command } from "effect/
|
|
2
|
+
import { Argument, Command } from "effect/cli";
|
|
3
3
|
import { CliExit } from "@effected/cli";
|
|
4
4
|
import { Changesets } from "@savvy-web/silk-effects";
|
|
5
5
|
import { Effect } from "effect";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
2
|
import { requireValidConfig } from "../utils/config-gate.js";
|
|
3
|
-
import { Command, Flag } from "effect/
|
|
3
|
+
import { Command, Flag } from "effect/cli";
|
|
4
4
|
import { Changesets } from "@savvy-web/silk-effects";
|
|
5
5
|
import { Effect } from "effect";
|
|
6
6
|
|
|
@@ -7,7 +7,7 @@ import { transformCommand } from "./commands/transform.js";
|
|
|
7
7
|
import { validateFileCommand } from "./commands/validate-file.js";
|
|
8
8
|
import { versionCommand } from "./commands/version.js";
|
|
9
9
|
import { runChangesetInit } from "./commands/init.js";
|
|
10
|
-
import { Command } from "effect/
|
|
10
|
+
import { Command } from "effect/cli";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/changeset/index.ts
|
|
13
13
|
/* v8 ignore start -- CLI registration; each command tested via exported handler */
|
package/commands/check.js
CHANGED
|
@@ -3,7 +3,7 @@ import { runChangesetCheck } from "./changeset/commands/check.js";
|
|
|
3
3
|
import "./changeset/index.js";
|
|
4
4
|
import { runCommitCheck } from "./commit/check.js";
|
|
5
5
|
import { runLintCheck } from "./lint/check.js";
|
|
6
|
-
import { Command, Flag } from "effect/
|
|
6
|
+
import { Command, Flag } from "effect/cli";
|
|
7
7
|
import { Effect, Result } from "effect";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/check.ts
|
package/commands/clean.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../internal/output.js";
|
|
2
|
-
import { Command, Flag } from "effect/
|
|
2
|
+
import { Command, Flag } from "effect/cli";
|
|
3
3
|
import { join, sep } from "node:path";
|
|
4
4
|
import { Data, Effect } from "effect";
|
|
5
5
|
import { WorkspaceDiscovery } from "@effected/workspaces";
|
package/commands/commit/hook.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { postCommitVerifyCommand } from "./hooks/post-commit-verify.js";
|
|
2
2
|
import { preCommitMessageCommand } from "./hooks/pre-commit-message.js";
|
|
3
3
|
import { sessionStartCommand } from "./hooks/session-start.js";
|
|
4
|
-
import { Command } from "effect/
|
|
4
|
+
import { Command } from "effect/cli";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/commit/hook.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { buildCommitlintInvocation } from "../commitlint-invocation.js";
|
|
2
|
-
import { Command } from "effect/
|
|
2
|
+
import { Command } from "effect/cli";
|
|
3
3
|
import { Commitlint } from "@savvy-web/silk-effects";
|
|
4
4
|
import { Effect } from "effect";
|
|
5
5
|
import { Git } from "@effected/git";
|
package/commands/commit/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { runCommitInit } from "./init.js";
|
|
|
2
2
|
import { runCommitCheck } from "./check.js";
|
|
3
3
|
import { hookCommand } from "./hook.js";
|
|
4
4
|
import { lintCommand } from "./lint.js";
|
|
5
|
-
import { Command } from "effect/
|
|
5
|
+
import { Command } from "effect/cli";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/commit/index.ts
|
|
8
8
|
/* v8 ignore start -- CLI registration; each command tested via exported handler */
|
package/commands/commit/lint.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Output } from "../../internal/output.js";
|
|
2
2
|
import { buildCommitlintInvocation } from "./commitlint-invocation.js";
|
|
3
|
-
import { Argument, CliError, Command } from "effect/
|
|
3
|
+
import { Argument, CliError, Command } from "effect/cli";
|
|
4
4
|
import { Commitlint } from "@savvy-web/silk-effects";
|
|
5
5
|
import { Effect } from "effect";
|
|
6
6
|
import { Git } from "@effected/git";
|
package/commands/init.js
CHANGED
|
@@ -2,7 +2,7 @@ import { runChangesetInit } from "./changeset/commands/init.js";
|
|
|
2
2
|
import "./changeset/index.js";
|
|
3
3
|
import { runCommitInit } from "./commit/init.js";
|
|
4
4
|
import { runLintInit } from "./lint/init.js";
|
|
5
|
-
import { Command, Flag } from "effect/
|
|
5
|
+
import { Command, Flag } from "effect/cli";
|
|
6
6
|
import { Effect } from "effect";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/init.ts
|
package/commands/lint/fmt.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Argument, Command, Flag } from "effect/
|
|
1
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
2
2
|
import { Lint } from "@savvy-web/silk-effects";
|
|
3
3
|
import { Effect, Option } from "effect";
|
|
4
4
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
package/commands/lint/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { runLintCheck } from "./check.js";
|
|
2
2
|
import { runLintInit } from "./init.js";
|
|
3
3
|
import { fmtCommand } from "./fmt.js";
|
|
4
|
-
import { Command } from "effect/
|
|
4
|
+
import { Command } from "effect/cli";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/lint/index.ts
|
|
7
7
|
/* v8 ignore start -- CLI registration; each command tested via exported handler */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Argument, Command, Flag } from "effect/
|
|
2
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
3
3
|
import { CliExit } from "@effected/cli";
|
|
4
4
|
import { Repos } from "@savvy-web/silk-effects";
|
|
5
5
|
import { Effect, Option } from "effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Argument, Command, Flag } from "effect/
|
|
2
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
3
3
|
import { CliExit } from "@effected/cli";
|
|
4
4
|
import { Repos } from "@savvy-web/silk-effects";
|
|
5
5
|
import { Effect } from "effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Argument, Command, Flag } from "effect/
|
|
2
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
3
3
|
import { CliExit } from "@effected/cli";
|
|
4
4
|
import { Repos } from "@savvy-web/silk-effects";
|
|
5
5
|
import { Effect } from "effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Argument, Command, Flag } from "effect/
|
|
2
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
3
3
|
import { CliExit } from "@effected/cli";
|
|
4
4
|
import { Repos } from "@savvy-web/silk-effects";
|
|
5
5
|
import { Effect } from "effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Argument, Command, Flag } from "effect/
|
|
2
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
3
3
|
import { CliExit } from "@effected/cli";
|
|
4
4
|
import { Repos } from "@savvy-web/silk-effects";
|
|
5
5
|
import { Effect } from "effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Argument, Command, Flag } from "effect/
|
|
2
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
3
3
|
import { CliExit } from "@effected/cli";
|
|
4
4
|
import { Repos } from "@savvy-web/silk-effects";
|
|
5
5
|
import { Effect } from "effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Argument, Command, Flag } from "effect/
|
|
2
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
3
3
|
import { CliExit } from "@effected/cli";
|
|
4
4
|
import { Repos } from "@savvy-web/silk-effects";
|
|
5
5
|
import { Effect } from "effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Command, Flag } from "effect/
|
|
2
|
+
import { Command, Flag } from "effect/cli";
|
|
3
3
|
import { CliExit } from "@effected/cli";
|
|
4
4
|
import { Repos } from "@savvy-web/silk-effects";
|
|
5
5
|
import { Console, Effect } from "effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Output } from "../../../internal/output.js";
|
|
2
|
-
import { Command, Flag } from "effect/
|
|
2
|
+
import { Command, Flag } from "effect/cli";
|
|
3
3
|
import { CliExit } from "@effected/cli";
|
|
4
4
|
import { Repos } from "@savvy-web/silk-effects";
|
|
5
5
|
import { Effect } from "effect";
|
package/commands/repos/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { renameCommand, runReposRename } from "./commands/rename.js";
|
|
|
7
7
|
import { restoreCommand, runReposRestore } from "./commands/restore.js";
|
|
8
8
|
import { runReposStatus, statusCommand } from "./commands/status.js";
|
|
9
9
|
import { runReposSync, syncCommand } from "./commands/sync.js";
|
|
10
|
-
import { Command } from "effect/
|
|
10
|
+
import { Command } from "effect/cli";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/repos/index.ts
|
|
13
13
|
/* v8 ignore start -- CLI registration; each command tested via exported handler */
|
package/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CliExit } from "@effected/cli";
|
|
2
2
|
import { BiomeSchemaSync, ChangesetConfigReader, Changesets, ConfigDiscovery, Repos } from "@savvy-web/silk-effects";
|
|
3
3
|
import { Cause, Effect, FileSystem, Path, Stdio } from "effect";
|
|
4
|
-
import { Command } from "effect/
|
|
5
|
-
import { ChildProcessSpawner } from "effect/
|
|
4
|
+
import { Command } from "effect/cli";
|
|
5
|
+
import { ChildProcessSpawner } from "effect/process";
|
|
6
6
|
import { Git } from "@effected/git";
|
|
7
7
|
import { PublishabilityDetector, WorkspaceDiscovery, WorkspaceRoot } from "@effected/workspaces";
|
|
8
8
|
import { ManagedSection, SectionFileError, SectionParseError, SectionRenderError } from "@effected/templates";
|
|
@@ -130,7 +130,7 @@ export declare function runCommitInit(opts: {
|
|
|
130
130
|
* errors from Effect's internal types. Task B7 should import and use this directly
|
|
131
131
|
* as `Command.withSubcommands([commitCommand])` — the cast is for declaration emit only.
|
|
132
132
|
*/
|
|
133
|
-
export declare const commitCommand: Command.Command<"commit", {}, {}, import("effect/
|
|
133
|
+
export declare const commitCommand: Command.Command<"commit", {}, {}, import("effect/cli/CliError").UserError, import("effect/process/ChildProcessSpawner").ChildProcessSpawner | import("@effected/git").Git | import("effect/Stdio").Stdio>;
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region src/commands/init.d.ts
|
|
136
136
|
/**
|
package/internal/version-line.js
CHANGED
|
@@ -3,7 +3,7 @@ import { distributionSuffix } from "@effected/engine";
|
|
|
3
3
|
//#region src/internal/version-line.ts
|
|
4
4
|
/**
|
|
5
5
|
* Renders the `savvy --version` line: the same `<name> v<version>` shape
|
|
6
|
-
* `effect/
|
|
6
|
+
* `effect/cli`'s default formatter prints, plus the
|
|
7
7
|
* `" via <carrier> <version>"` suffix when the bin was installed through a
|
|
8
8
|
* carrier such as `@savvy-web/silk`.
|
|
9
9
|
*
|
package/main.js
CHANGED
|
@@ -2,7 +2,7 @@ import { AppLive, CliPlatform, rootCommand } from "./cli/index.js";
|
|
|
2
2
|
import { FailureLine } from "./internal/failure-line.js";
|
|
3
3
|
import { VersionLine } from "./internal/version-line.js";
|
|
4
4
|
import { CLI_VERSION } from "./version.js";
|
|
5
|
-
import { Command } from "effect/
|
|
5
|
+
import { Command } from "effect/cli";
|
|
6
6
|
import { CliColor, CliRuntime } from "@effected/cli";
|
|
7
7
|
import { Effect, Layer, Option } from "effect";
|
|
8
8
|
import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/cli",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The savvy CLI — unified commit, changeset, and lint commands for the Silk Suite",
|
|
6
6
|
"homepage": "https://github.com/savvy-web/systems/tree/main/packages/cli",
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"savvy": "bin/savvy.js"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@effect/platform-node": "4.0.0-rc.
|
|
40
|
-
"@effected/cli": "^0.
|
|
41
|
-
"@effected/commands": "^0.
|
|
42
|
-
"@effected/engine": "^0.
|
|
43
|
-
"@effected/git": "^0.
|
|
44
|
-
"@effected/jsonc": "^0.
|
|
45
|
-
"@effected/templates": "^0.
|
|
46
|
-
"@effected/workspaces": "^0.
|
|
47
|
-
"@effected/yaml": "^0.
|
|
48
|
-
"@savvy-web/silk-effects": "9.1
|
|
49
|
-
"effect": "4.0.0-rc.
|
|
39
|
+
"@effect/platform-node": "4.0.0-rc.118",
|
|
40
|
+
"@effected/cli": "^0.10.0",
|
|
41
|
+
"@effected/commands": "^0.10.0",
|
|
42
|
+
"@effected/engine": "^0.2.0",
|
|
43
|
+
"@effected/git": "^0.18.0",
|
|
44
|
+
"@effected/jsonc": "^0.14.0",
|
|
45
|
+
"@effected/templates": "^0.9.0",
|
|
46
|
+
"@effected/workspaces": "^0.30.0",
|
|
47
|
+
"@effected/yaml": "^0.18.0",
|
|
48
|
+
"@savvy-web/silk-effects": "9.2.1",
|
|
49
|
+
"effect": "4.0.0-rc.118"
|
|
50
50
|
}
|
|
51
51
|
}
|