@savvy-web/silk-effects 9.5.5 → 10.0.0
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/_virtual/_rolldown/runtime.js +1 -2
- package/changesets/api/categories.js +1 -2
- package/changesets/api/changelog.js +1 -2
- package/changesets/api/dependency-table.js +13 -14
- package/changesets/api/linter.js +24 -21
- package/changesets/api/transformer.js +39 -35
- package/changesets/categories/index.js +2 -3
- package/changesets/categories/types.js +3 -4
- package/changesets/changelog/formatting.js +1 -2
- package/changesets/changelog/getDependencyReleaseLine.js +2 -3
- package/changesets/changelog/getReleaseLine.js +1 -2
- package/changesets/changelog/index.js +3 -4
- package/changesets/changelog/vanilla.js +1 -2
- package/changesets/constants.js +2 -3
- package/changesets/errors.js +2 -3
- package/changesets/index.js +12 -42
- package/changesets/markdownlint/index.js +1 -2
- package/changesets/markdownlint/rules/content-structure.js +3 -4
- package/changesets/markdownlint/rules/dependency-table-format.js +1 -2
- package/changesets/markdownlint/rules/heading-hierarchy.js +3 -4
- package/changesets/markdownlint/rules/required-sections.js +3 -4
- package/changesets/markdownlint/rules/uncategorized-content.js +3 -4
- package/changesets/markdownlint/rules/utils.js +7 -8
- package/changesets/rules/content-structure.js +44 -0
- package/changesets/rules/dependency-table-format.js +54 -0
- package/changesets/rules/heading-hierarchy.js +37 -0
- package/changesets/rules/required-sections.js +34 -0
- package/changesets/rules/types.js +20 -0
- package/changesets/rules/uncategorized-content.js +30 -0
- package/changesets/schemas/changeset.js +2 -3
- package/changesets/schemas/dependency-table.js +1 -2
- package/changesets/schemas/deps-regen.js +1 -2
- package/changesets/schemas/git.js +1 -2
- package/changesets/schemas/github.js +1 -2
- package/changesets/schemas/options.js +1 -2
- package/changesets/schemas/package-scope.js +1 -2
- package/changesets/schemas/primitives.js +1 -2
- package/changesets/schemas/release-plan.js +1 -2
- package/changesets/schemas/version-files.js +1 -2
- package/changesets/services/branch-analyzer.js +1 -2
- package/changesets/services/changelog.js +1 -2
- package/changesets/services/config-inspector.js +1 -2
- package/changesets/services/deps-regen.js +1 -2
- package/changesets/services/github.js +1 -2
- package/changesets/services/maintenance-reason.js +1 -2
- package/changesets/services/release-planner.js +1 -2
- package/changesets/transforms/aggregate-dependency-tables.js +96 -0
- package/changesets/transforms/contributor-footnotes.js +290 -0
- package/changesets/transforms/deduplicate-items.js +47 -0
- package/changesets/transforms/issue-link-refs.js +47 -0
- package/changesets/transforms/maintenance-note.js +65 -0
- package/changesets/transforms/merge-sections.js +56 -0
- package/changesets/transforms/normalize-format.js +53 -0
- package/changesets/transforms/reorder-sections.js +53 -0
- package/changesets/utils/blocks.js +67 -0
- package/changesets/utils/commit-parser.js +1 -2
- package/changesets/utils/dep-diff.js +1 -2
- package/changesets/utils/dependency-section.js +1 -2
- package/changesets/utils/dependency-table.js +30 -38
- package/changesets/utils/git.js +1 -2
- package/changesets/utils/issue-refs.js +1 -2
- package/changesets/utils/jsonpath.js +1 -2
- package/changesets/utils/logger.js +1 -2
- package/changesets/utils/markdown-emit.js +12 -38
- package/changesets/utils/markdown-link.js +1 -2
- package/changesets/utils/publishability.js +1 -2
- package/changesets/utils/section-parser.js +1 -2
- package/changesets/utils/strip-frontmatter.js +1 -2
- package/changesets/utils/version-files.js +1 -2
- package/changesets/vendor/github-info.js +1 -2
- package/commitlint/config/factory.js +1 -2
- package/commitlint/config/plugins.js +1 -2
- package/commitlint/config/rules.js +1 -2
- package/commitlint/config/schema.js +1 -2
- package/commitlint/detection/dco.js +1 -2
- package/commitlint/detection/scopes.js +1 -2
- package/commitlint/formatter/format.js +1 -2
- package/commitlint/formatter/messages.js +1 -2
- package/commitlint/hook/diagnostics/branch.js +1 -2
- package/commitlint/hook/diagnostics/cache.js +1 -2
- package/commitlint/hook/diagnostics/commitlint-config.js +1 -2
- package/commitlint/hook/diagnostics/open-issues.js +1 -2
- package/commitlint/hook/diagnostics/package-manager.js +1 -2
- package/commitlint/hook/diagnostics/signing.js +1 -2
- package/commitlint/hook/envelope.js +1 -2
- package/commitlint/hook/output.js +1 -2
- package/commitlint/hook/parse-bash-command.js +1 -2
- package/commitlint/hook/rules/closes-trailer.js +1 -2
- package/commitlint/hook/rules/forbidden-content.js +1 -2
- package/commitlint/hook/rules/plan-leakage.js +1 -2
- package/commitlint/hook/rules/signing-flag-conflict.js +1 -2
- package/commitlint/hook/rules/soft-wrap.js +1 -2
- package/commitlint/hook/rules/types.js +1 -2
- package/commitlint/hook/rules/verbosity.js +1 -2
- package/commitlint/hook/silence-logger.js +1 -2
- package/commitlint/index.js +1 -2
- package/commitlint/prompt/config.js +1 -2
- package/commitlint/prompt/emojis.js +1 -2
- package/commitlint/prompt/prompter.js +1 -2
- package/commitlint/static.js +1 -2
- package/index.d.ts +141 -1450
- package/index.js +2 -2
- package/lint/Handler.js +1 -2
- package/lint/cli/sections.js +1 -2
- package/lint/cli/templates/markdownlint.gen.js +1 -2
- package/lint/config/Preset.js +1 -2
- package/lint/config/createConfig.js +1 -2
- package/lint/handlers/Biome.js +1 -2
- package/lint/handlers/Markdown.js +1 -2
- package/lint/handlers/PackageJson.js +1 -2
- package/lint/handlers/PnpmWorkspace.js +1 -2
- package/lint/handlers/ShellScripts.js +1 -2
- package/lint/handlers/TextFiles.js +1 -2
- package/lint/handlers/TypeScript.js +1 -2
- package/lint/handlers/Yaml.js +1 -2
- package/lint/index.js +1 -2
- package/lint/utils/Command.js +1 -2
- package/lint/utils/Filter.js +1 -2
- package/lint/utils/Workspace.js +1 -2
- package/package.json +15 -22
- package/repos/constants.js +1 -2
- package/repos/errors.js +1 -2
- package/repos/index.js +1 -2
- package/repos/schemas/drift.js +1 -2
- package/repos/schemas/manifest.js +1 -2
- package/repos/schemas/reports.js +1 -2
- package/repos/services/config-store.js +1 -2
- package/repos/services/drift.js +1 -2
- package/repos/services/lockdown.js +1 -2
- package/repos/services/manager.js +1 -2
- package/services/BiomeSchemaSync.js +1 -2
- package/services/ChangesetConfig.js +1 -2
- package/services/ChangesetConfigReader.js +1 -2
- package/services/ConfigDiscovery.js +1 -2
- package/services/SilkPublishability.js +147 -6
- package/services/SilkWorkspaceAnalyzer.js +1 -2
- package/turbo/digest.js +1 -2
- package/turbo/errors.js +1 -2
- package/turbo/index.js +1 -2
- package/turbo/schemas/DryRun.js +1 -2
- package/turbo/schemas/results.js +1 -2
- package/turbo/services/TurboInspector.js +1 -2
- package/changesets/remark/plugins/aggregate-dependency-tables.js +0 -99
- package/changesets/remark/plugins/contributor-footnotes.js +0 -335
- package/changesets/remark/plugins/deduplicate-items.js +0 -32
- package/changesets/remark/plugins/issue-link-refs.js +0 -58
- package/changesets/remark/plugins/maintenance-note.js +0 -75
- package/changesets/remark/plugins/merge-sections.js +0 -43
- package/changesets/remark/plugins/normalize-format.js +0 -47
- package/changesets/remark/plugins/reorder-sections.js +0 -49
- package/changesets/remark/presets.js +0 -119
- package/changesets/remark/rules/content-structure.js +0 -22
- package/changesets/remark/rules/dependency-table-format.js +0 -38
- package/changesets/remark/rules/heading-hierarchy.js +0 -19
- package/changesets/remark/rules/required-sections.js +0 -17
- package/changesets/remark/rules/uncategorized-content.js +0 -31
- package/changesets/utils/remark-pipeline.js +0 -36
- package/changesets/utils/version-blocks.js +0 -108
package/index.js
CHANGED
|
@@ -9,6 +9,6 @@ import { BiomeSchemaSync, buildSchemaUrl, extractSemver } from "./services/Biome
|
|
|
9
9
|
import { ConfigDiscovery } from "./services/ConfigDiscovery.js";
|
|
10
10
|
import { SilkWorkspaceAnalyzer } from "./services/SilkWorkspaceAnalyzer.js";
|
|
11
11
|
import { turbo_exports } from "./turbo/index.js";
|
|
12
|
-
import { AnalyzedWorkspace, BiomeSyncError, ChangesetConfigError, ConfigNotFoundError, LIFECYCLE_SCRIPTS_CONFIG_KEY, PrBody, PublishTargetBindingError, SavvyBaseSection, SavvyHooksSection, SavvyInstallSection, SavvyOkfSection, SavvyToolchainSection, SilkPublishConfig, WorkspaceAnalysis, WorkspaceAnalysisError, publishesBuiltLinkDirectory, savvyBasePreamble, savvyHooksHygiene, savvyInstallBlock, savvyInstallDeps, savvyOkfBlock, savvyOkfSync, savvyToolSection, savvyToolchainCheck } from "@savvy-web/silk-core";
|
|
12
|
+
import { AnalyzedWorkspace, BiomeSyncError, ChangesetConfigError, ConfigNotFoundError, LIFECYCLE_SCRIPTS_CONFIG_KEY, PrBody, PublishTargetBindingError, ReleaseChannelError, SavvyBaseSection, SavvyHooksSection, SavvyInstallSection, SavvyOkfSection, SavvyToolchainSection, SilkPublishConfig, WorkspaceAnalysis, WorkspaceAnalysisError, publishesBuiltLinkDirectory, savvyBasePreamble, savvyHooksHygiene, savvyInstallBlock, savvyInstallDeps, savvyOkfBlock, savvyOkfSync, savvyToolSection, savvyToolchainCheck } from "@savvy-web/silk-core";
|
|
13
13
|
|
|
14
|
-
export { AnalyzedWorkspace, BiomeSchemaSync, BiomeSyncError, ChangesetConfig, ChangesetConfigError, ChangesetConfigReader, changesets_exports as Changesets, commitlint_exports as Commitlint, ConfigDiscovery, ConfigNotFoundError, LIFECYCLE_SCRIPTS_CONFIG_KEY, lint_exports as Lint, PrBody, PublishTargetBindingError, repos_exports as Repos, SavvyBaseSection, SavvyHooksSection, SavvyInstallSection, SavvyOkfSection, SavvyToolchainSection, SilkPublishConfig, SilkPublishability, SilkWorkspaceAnalyzer, turbo_exports as Turbo, WorkspaceAnalysis, WorkspaceAnalysisError, buildSchemaUrl, extractSemver, publishesBuiltLinkDirectory, readTargetsBinding, savvyBasePreamble, savvyHooksHygiene, savvyInstallBlock, savvyInstallDeps, savvyOkfBlock, savvyOkfSync, savvyToolSection, savvyToolchainCheck };
|
|
14
|
+
export { AnalyzedWorkspace, BiomeSchemaSync, BiomeSyncError, ChangesetConfig, ChangesetConfigError, ChangesetConfigReader, changesets_exports as Changesets, commitlint_exports as Commitlint, ConfigDiscovery, ConfigNotFoundError, LIFECYCLE_SCRIPTS_CONFIG_KEY, lint_exports as Lint, PrBody, PublishTargetBindingError, ReleaseChannelError, repos_exports as Repos, SavvyBaseSection, SavvyHooksSection, SavvyInstallSection, SavvyOkfSection, SavvyToolchainSection, SilkPublishConfig, SilkPublishability, SilkWorkspaceAnalyzer, turbo_exports as Turbo, WorkspaceAnalysis, WorkspaceAnalysisError, buildSchemaUrl, extractSemver, publishesBuiltLinkDirectory, readTargetsBinding, savvyBasePreamble, savvyHooksHygiene, savvyInstallBlock, savvyInstallDeps, savvyOkfBlock, savvyOkfSync, savvyToolSection, savvyToolchainCheck };
|
package/lint/Handler.js
CHANGED
package/lint/cli/sections.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { savvyToolSection } from "@savvy-web/silk-core";
|
|
2
2
|
import { CommentStyle, SectionId } from "@effected/templates";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/lint/cli/sections.ts
|
|
5
5
|
/** Path for the husky pre-commit hook. */
|
|
6
6
|
const HUSKY_HOOK_PATH = ".husky/pre-commit";
|
|
7
7
|
/** Path for the husky post-checkout hook. */
|
|
@@ -64,5 +64,4 @@ function generateManagedContent(configPath) {
|
|
|
64
64
|
return savvyLintBlock(configPath).content;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
//#endregion
|
|
68
67
|
export { DEFAULT_CONFIG_PATH, HUSKY_HOOK_PATH, LegacySavvyLintHygieneDef, MARKDOWNLINT_CONFIG_PATH, POST_CHECKOUT_HOOK_PATH, POST_COMMIT_HOOK_PATH, POST_MERGE_HOOK_PATH, SavvyLintSectionDef, generateManagedContent, savvyLintBlock };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lint/cli/templates/markdownlint.gen.ts
|
|
2
2
|
/** Full markdownlint-cli2 config template. */
|
|
3
3
|
const MARKDOWNLINT_TEMPLATE = {
|
|
4
4
|
$schema: "https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/v0.22.0/schema/markdownlint-cli2-config-schema.json",
|
|
@@ -176,5 +176,4 @@ const MARKDOWNLINT_CONFIG = {
|
|
|
176
176
|
"changeset-dependency-table-format": false
|
|
177
177
|
};
|
|
178
178
|
|
|
179
|
-
//#endregion
|
|
180
179
|
export { MARKDOWNLINT_CONFIG, MARKDOWNLINT_SCHEMA, MARKDOWNLINT_TEMPLATE };
|
package/lint/config/Preset.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createConfig } from "./createConfig.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/lint/config/Preset.ts
|
|
4
4
|
/**
|
|
5
5
|
* Preset configurations for common lint-staged setups.
|
|
6
6
|
*
|
|
@@ -153,5 +153,4 @@ var Preset = class Preset {
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
-
//#endregion
|
|
157
156
|
export { Preset };
|
|
@@ -7,7 +7,7 @@ import { TextFiles } from "../handlers/TextFiles.js";
|
|
|
7
7
|
import { TypeScript } from "../handlers/TypeScript.js";
|
|
8
8
|
import { Yaml } from "../handlers/Yaml.js";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/lint/config/createConfig.ts
|
|
11
11
|
/**
|
|
12
12
|
* Configuration factory for generating complete lint-staged configurations.
|
|
13
13
|
*/
|
|
@@ -90,5 +90,4 @@ function createConfig(options = {}) {
|
|
|
90
90
|
return config;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
//#endregion
|
|
94
93
|
export { createConfig };
|
package/lint/handlers/Biome.js
CHANGED
|
@@ -4,7 +4,7 @@ import { getWorkspacePackagePaths, getWorkspaceRoot } from "../utils/Workspace.j
|
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/lint/handlers/Biome.ts
|
|
8
8
|
/**
|
|
9
9
|
* Handler for JavaScript/TypeScript/JSON files.
|
|
10
10
|
*
|
|
@@ -175,5 +175,4 @@ var Biome = class Biome {
|
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
177
|
|
|
178
|
-
//#endregion
|
|
179
178
|
export { Biome };
|
|
@@ -4,7 +4,7 @@ import { getWorkspaceRoot } from "../utils/Workspace.js";
|
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/lint/handlers/Markdown.ts
|
|
8
8
|
/**
|
|
9
9
|
* Handler for Markdown files.
|
|
10
10
|
*
|
|
@@ -135,5 +135,4 @@ var Markdown = class Markdown {
|
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
-
//#endregion
|
|
139
138
|
export { Markdown };
|
|
@@ -5,7 +5,7 @@ import { Result } from "effect";
|
|
|
5
5
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { PackageJsonFormat } from "@effected/package-json";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/lint/handlers/PackageJson.ts
|
|
9
9
|
/**
|
|
10
10
|
* Handler for package.json files.
|
|
11
11
|
*
|
|
@@ -136,5 +136,4 @@ var PackageJson = class PackageJson {
|
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
138
|
|
|
139
|
-
//#endregion
|
|
140
139
|
export { PackageJson };
|
|
@@ -3,7 +3,7 @@ import { Effect, Result } from "effect";
|
|
|
3
3
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { Yaml, YamlStringifyOptions } from "@effected/yaml";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/lint/handlers/PnpmWorkspace.ts
|
|
7
7
|
/**
|
|
8
8
|
* Handler for pnpm-workspace.yaml.
|
|
9
9
|
*
|
|
@@ -168,5 +168,4 @@ var PnpmWorkspace = class PnpmWorkspace {
|
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
170
|
|
|
171
|
-
//#endregion
|
|
172
171
|
export { PnpmWorkspace };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Filter } from "../utils/Filter.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/lint/handlers/ShellScripts.ts
|
|
4
4
|
/**
|
|
5
5
|
* Handler for shell script files.
|
|
6
6
|
*
|
|
@@ -59,5 +59,4 @@ var ShellScripts = class ShellScripts {
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
//#endregion
|
|
63
62
|
export { ShellScripts };
|
|
@@ -4,7 +4,7 @@ import { Data, Effect, FileSystem, Path, Schema, Stream } from "effect";
|
|
|
4
4
|
import { Git } from "@effected/git";
|
|
5
5
|
import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/lint/handlers/TextFiles.ts
|
|
8
8
|
/**
|
|
9
9
|
* Why a file is not grep-visible text.
|
|
10
10
|
*
|
|
@@ -387,5 +387,4 @@ var TextFiles = class TextFiles {
|
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
389
|
|
|
390
|
-
//#endregion
|
|
391
390
|
export { TextFileFinding, TextFileStagedReadError, TextFileStagedReadErrorBase, TextFileViolation, TextFileViolationReason, TextFiles };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command } from "../utils/Command.js";
|
|
2
2
|
import { Filter } from "../utils/Filter.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/lint/handlers/TypeScript.ts
|
|
5
5
|
/**
|
|
6
6
|
* Handler for TypeScript files.
|
|
7
7
|
*
|
|
@@ -136,5 +136,4 @@ var TypeScript = class TypeScript {
|
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
138
|
|
|
139
|
-
//#endregion
|
|
140
139
|
export { TypeScript };
|
package/lint/handlers/Yaml.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Filter } from "../utils/Filter.js";
|
|
|
3
3
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { Yaml, YamlFormat, YamlFormattingOptions } from "@effected/yaml";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/lint/handlers/Yaml.ts
|
|
7
7
|
/**
|
|
8
8
|
* Handler for YAML files.
|
|
9
9
|
*
|
|
@@ -179,5 +179,4 @@ var Yaml$1 = class Yaml$1 {
|
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
//#endregion
|
|
183
182
|
export { Yaml$1 as Yaml };
|
package/lint/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import { createConfig } from "./config/createConfig.js";
|
|
|
16
16
|
import { Preset } from "./config/Preset.js";
|
|
17
17
|
import { MARKDOWNLINT_CONFIG, MARKDOWNLINT_SCHEMA, MARKDOWNLINT_TEMPLATE } from "./cli/templates/markdownlint.gen.js";
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
// src/lint/index.ts
|
|
20
20
|
var lint_exports = /* @__PURE__ */ __exportAll({
|
|
21
21
|
Biome: () => Biome,
|
|
22
22
|
Command: () => Command,
|
|
@@ -56,5 +56,4 @@ var lint_exports = /* @__PURE__ */ __exportAll({
|
|
|
56
56
|
savvyLintBlock: () => savvyLintBlock
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
//#endregion
|
|
60
59
|
export { Biome, Command, DEFAULT_CONFIG_PATH, Filter, HUSKY_HOOK_PATH, Handler, LegacySavvyLintHygieneDef, MARKDOWNLINT_CONFIG, MARKDOWNLINT_CONFIG_PATH, MARKDOWNLINT_SCHEMA, MARKDOWNLINT_TEMPLATE, Markdown, POST_CHECKOUT_HOOK_PATH, POST_COMMIT_HOOK_PATH, POST_MERGE_HOOK_PATH, PackageJson, PnpmWorkspace, Preset, SavvyLintSectionDef, ShellScripts, TextFileFinding, TextFileStagedReadError, TextFileStagedReadErrorBase, TextFileViolation, TextFileViolationReason, TextFiles, TypeScript, Yaml, createConfig, generateManagedContent, getWorkspacePackagePaths, getWorkspacePackages, getWorkspaceRoot, isWorkspacePackagePath, lint_exports, resetWorkspaceCache, savvyLintBlock };
|
package/lint/utils/Command.js
CHANGED
|
@@ -3,7 +3,7 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
3
3
|
import { dirname, join, resolve } from "node:path";
|
|
4
4
|
import { execSync } from "node:child_process";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/lint/utils/Command.ts
|
|
7
7
|
/**
|
|
8
8
|
* Utilities for shell command operations.
|
|
9
9
|
*
|
|
@@ -276,5 +276,4 @@ var Command = class Command {
|
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
//#endregion
|
|
280
279
|
export { Command };
|
package/lint/utils/Filter.js
CHANGED
package/lint/utils/Workspace.js
CHANGED
|
@@ -2,7 +2,7 @@ import { dirname } from "node:path";
|
|
|
2
2
|
import { findWorkspaceRootSync, getWorkspacePackagesSync } from "@effected/workspaces";
|
|
3
3
|
import { nodeSyncOps } from "@effected/workspaces/node-sync";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/lint/utils/Workspace.ts
|
|
6
6
|
/**
|
|
7
7
|
* Workspace-aware discovery utilities.
|
|
8
8
|
*
|
|
@@ -86,5 +86,4 @@ function resetWorkspaceCache() {
|
|
|
86
86
|
cachedPaths = UNRESOLVED;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
//#endregion
|
|
90
89
|
export { getWorkspacePackagePaths, getWorkspacePackages, getWorkspaceRoot, isWorkspacePackagePath, resetWorkspaceCache };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/silk-effects",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared Effect library for Silk Suite conventions",
|
|
6
6
|
"homepage": "https://github.com/savvy-web/systems/tree/main/packages/silk-effects",
|
|
@@ -37,30 +37,23 @@
|
|
|
37
37
|
"@changesets/get-release-plan": "^5.0.2",
|
|
38
38
|
"@changesets/pre": "^3.0.0",
|
|
39
39
|
"@changesets/read": "^1.0.1",
|
|
40
|
-
"@effected/github-references": "^0.
|
|
41
|
-
"@effected/glob": "^0.
|
|
42
|
-
"@effected/jsonc": "^0.
|
|
43
|
-
"@effected/markdown": "^0.
|
|
44
|
-
"@effected/package-json": "^0.
|
|
45
|
-
"@effected/toml": "^0.
|
|
46
|
-
"@effected/walker": "^0.
|
|
47
|
-
"@effected/yaml": "^0.
|
|
40
|
+
"@effected/github-references": "^0.11.0",
|
|
41
|
+
"@effected/glob": "^0.14.0",
|
|
42
|
+
"@effected/jsonc": "^0.20.0",
|
|
43
|
+
"@effected/markdown": "^0.22.0",
|
|
44
|
+
"@effected/package-json": "^0.25.1",
|
|
45
|
+
"@effected/toml": "^0.16.0",
|
|
46
|
+
"@effected/walker": "^0.19.0",
|
|
47
|
+
"@effected/yaml": "^0.25.0",
|
|
48
48
|
"@manypkg/get-packages": "^3.1.0",
|
|
49
|
-
"@savvy-web/silk-core": "0.
|
|
50
|
-
"
|
|
51
|
-
"remark-gfm": "^4.0.1",
|
|
52
|
-
"remark-parse": "^11.0.0",
|
|
53
|
-
"remark-stringify": "^11.0.0",
|
|
54
|
-
"shell-quote": "^1.12.0",
|
|
55
|
-
"unified": "^11.0.5",
|
|
56
|
-
"unified-lint-rule": "^3.0.1",
|
|
57
|
-
"unist-util-visit": "^5.1.0"
|
|
49
|
+
"@savvy-web/silk-core": "^0.5.1",
|
|
50
|
+
"shell-quote": "^1.12.0"
|
|
58
51
|
},
|
|
59
52
|
"peerDependencies": {
|
|
60
|
-
"@effected/commands": "^0.
|
|
61
|
-
"@effected/git": "^0.
|
|
62
|
-
"@effected/templates": "^0.
|
|
63
|
-
"@effected/workspaces": "^0.
|
|
53
|
+
"@effected/commands": "^0.15.0",
|
|
54
|
+
"@effected/git": "^0.25.0",
|
|
55
|
+
"@effected/templates": "^0.14.0",
|
|
56
|
+
"@effected/workspaces": "^0.38.0",
|
|
64
57
|
"effect": "^4.0.0"
|
|
65
58
|
}
|
|
66
59
|
}
|
package/repos/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/repos/constants.ts
|
|
2
2
|
/**
|
|
3
3
|
* Directory vendored reference repos live under, relative to the repo root.
|
|
4
4
|
* @public
|
|
@@ -16,5 +16,4 @@ const MANIFEST_PATH = ".repos/config.json";
|
|
|
16
16
|
*/
|
|
17
17
|
const NOTE_LIMIT = 10;
|
|
18
18
|
|
|
19
|
-
//#endregion
|
|
20
19
|
export { MANIFEST_PATH, REPOS_DIR };
|
package/repos/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/repos/errors.ts
|
|
4
4
|
/** @internal */
|
|
5
5
|
const ReposConfigErrorBase = Data.TaggedError("ReposConfigError");
|
|
6
6
|
/**
|
|
@@ -57,5 +57,4 @@ var ReposLockdownError = class extends ReposLockdownErrorBase {
|
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
//#endregion
|
|
61
60
|
export { GitSubmoduleError, GitSubmoduleErrorBase, NoteNotFoundError, NoteNotFoundErrorBase, RepoNotFoundError, RepoNotFoundErrorBase, ReposConfigError, ReposConfigErrorBase, ReposLockdownError, ReposLockdownErrorBase };
|
package/repos/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { ReposLockdown, resolveModuleDir } from "./services/lockdown.js";
|
|
|
9
9
|
import { ReposDrift, submoduleNameFromKey } from "./services/drift.js";
|
|
10
10
|
import { ReposManager, STALE_LOCK_MAX_AGE_MS } from "./services/manager.js";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// src/repos/index.ts
|
|
13
13
|
var repos_exports = /* @__PURE__ */ __exportAll({
|
|
14
14
|
DriftKind: () => DriftKind,
|
|
15
15
|
GitSubmoduleError: () => GitSubmoduleError,
|
|
@@ -51,5 +51,4 @@ var repos_exports = /* @__PURE__ */ __exportAll({
|
|
|
51
51
|
submoduleNameFromKey: () => submoduleNameFromKey
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
//#endregion
|
|
55
54
|
export { DriftKind, GitSubmoduleError, GitSubmoduleErrorBase, MANIFEST_PATH, NoteNotFoundError, NoteNotFoundErrorBase, REPOS_DIR, RepoDrift, RepoEntry, RepoName, RepoNotFoundError, RepoNotFoundErrorBase, RepoNote, RepoOrientation, RepoStatusEntry, ReposAddResult, ReposConfigError, ReposConfigErrorBase, ReposConfigStore, ReposDeregisterResult, ReposDrift, ReposDriftReport, ReposLockdown, ReposLockdownError, ReposLockdownErrorBase, ReposManager, ReposManifestFile, ReposNoteResult, ReposPinResult, ReposRemoveResult, ReposRenameResult, ReposRestoreResult, ReposStatusReport, ReposSyncReport, STALE_LOCK_MAX_AGE_MS, repos_exports, resolveModuleDir, submoduleNameFromKey };
|
package/repos/schemas/drift.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/repos/schemas/drift.ts
|
|
4
4
|
/**
|
|
5
5
|
* The kinds of drift {@link ReposDrift} can detect between the five
|
|
6
6
|
* authorities it reconciles: the manifest, `.gitmodules`, the worktree,
|
|
@@ -47,5 +47,4 @@ var ReposDriftReport = class extends Schema.Class("ReposDriftReport")({
|
|
|
47
47
|
clean: Schema.Boolean
|
|
48
48
|
}) {};
|
|
49
49
|
|
|
50
|
-
//#endregion
|
|
51
50
|
export { DriftKind, RepoDrift, ReposDriftReport };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/repos/schemas/manifest.ts
|
|
4
4
|
/**
|
|
5
5
|
* A vendored-repo manifest key: non-empty, contains no `/` or `\`, and is
|
|
6
6
|
* never `.` or `..` — safe to join onto a filesystem path segment
|
|
@@ -63,5 +63,4 @@ const ReposManifestFile = Schema.Struct({ repos: Schema.Record(Schema.String, Re
|
|
|
63
63
|
return badKey === void 0 ? void 0 : `every repos key must be a valid RepoName (non-empty, no "/" or "\\", not "." or ".."); got ${JSON.stringify(badKey)}`;
|
|
64
64
|
})) });
|
|
65
65
|
|
|
66
|
-
//#endregion
|
|
67
66
|
export { RepoEntry, RepoName, RepoNote, RepoOrientation, ReposManifestFile };
|
package/repos/schemas/reports.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RepoEntry, RepoNote } from "./manifest.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/repos/schemas/reports.ts
|
|
5
5
|
/**
|
|
6
6
|
* Status of one vendored repo: gitlink presence and dirtiness, plus notes
|
|
7
7
|
* that no longer match the pinned ref.
|
|
@@ -181,5 +181,4 @@ const ReposNoteResult = Schema.Struct({
|
|
|
181
181
|
noteCount: Schema.Number
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
//#endregion
|
|
185
184
|
export { RepoStatusEntry, ReposAddResult, ReposDeregisterResult, ReposNoteResult, ReposPinResult, ReposRemoveResult, ReposRenameResult, ReposRestoreResult, ReposStatusReport, ReposSyncReport };
|
|
@@ -3,7 +3,7 @@ import { ReposConfigError } from "../errors.js";
|
|
|
3
3
|
import { ReposManifestFile } from "../schemas/manifest.js";
|
|
4
4
|
import { Clock, Context, Effect, FileSystem, Layer, Option, Path, Schedule, Schema } from "effect";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/repos/services/config-store.ts
|
|
7
7
|
/**
|
|
8
8
|
* Reads, validates, and writes the .repos/config.json manifest.
|
|
9
9
|
* @public
|
|
@@ -113,5 +113,4 @@ var ReposConfigStore = class extends Context.Service()("@savvy-web/silk-effects/
|
|
|
113
113
|
}));
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
//#endregion
|
|
117
116
|
export { ReposConfigStore };
|
package/repos/services/drift.js
CHANGED
|
@@ -6,7 +6,7 @@ import { resolveModuleDir } from "./lockdown.js";
|
|
|
6
6
|
import { Context, Effect, FileSystem, Layer, Option, Path, Result } from "effect";
|
|
7
7
|
import { Git, Gitmodules } from "@effected/git";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/repos/services/drift.ts
|
|
10
10
|
/**
|
|
11
11
|
* Extracts the submodule NAME from a `submodule.<name>.<property>` config key.
|
|
12
12
|
*
|
|
@@ -252,5 +252,4 @@ var ReposDrift = class extends Context.Service()("@savvy-web/silk-effects/ReposD
|
|
|
252
252
|
}));
|
|
253
253
|
};
|
|
254
254
|
|
|
255
|
-
//#endregion
|
|
256
255
|
export { ReposDrift, submoduleNameFromKey };
|
|
@@ -2,7 +2,7 @@ import { REPOS_DIR } from "../constants.js";
|
|
|
2
2
|
import { ReposLockdownError } from "../errors.js";
|
|
3
3
|
import { Context, Effect, Exit, FileSystem, Layer, Option, Path } from "effect";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/repos/services/lockdown.ts
|
|
6
6
|
const FILE_LOCKED_BASE_MODE = 292;
|
|
7
7
|
const DIR_LOCKED_MODE = 365;
|
|
8
8
|
const FILE_UNLOCKED_BASE_MODE = 420;
|
|
@@ -152,5 +152,4 @@ var ReposLockdown = class extends Context.Service()("@savvy-web/silk-effects/Rep
|
|
|
152
152
|
}));
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
//#endregion
|
|
156
155
|
export { ReposLockdown, resolveModuleDir };
|
|
@@ -8,7 +8,7 @@ import { Clock, Context, Effect, Exit, FileSystem, Layer, Option, Path, Result,
|
|
|
8
8
|
import { Git, GitConfig, Gitmodules, LsRemoteEntry } from "@effected/git";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/repos/services/manager.ts
|
|
12
12
|
/**
|
|
13
13
|
* Lock files git leaves behind when a submodule fetch is interrupted; `sync`
|
|
14
14
|
* clears these before attempting to (re)initialize a submodule.
|
|
@@ -728,5 +728,4 @@ var ReposManager = class extends Context.Service()("@savvy-web/silk-effects/Repo
|
|
|
728
728
|
}));
|
|
729
729
|
};
|
|
730
730
|
|
|
731
|
-
//#endregion
|
|
732
731
|
export { ReposManager, STALE_LOCK_MAX_AGE_MS };
|
|
@@ -2,7 +2,7 @@ import { BiomeSyncError } from "@savvy-web/silk-core";
|
|
|
2
2
|
import { Context, Effect, FileSystem, Layer } from "effect";
|
|
3
3
|
import { Jsonc, JsoncEdit, JsoncModifier } from "@effected/jsonc";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/services/BiomeSchemaSync.ts
|
|
6
6
|
/**
|
|
7
7
|
* Strip leading semver range operators from a version string.
|
|
8
8
|
*
|
|
@@ -149,5 +149,4 @@ var BiomeSchemaSync = class extends Context.Service()("@savvy-web/silk-effects/B
|
|
|
149
149
|
}));
|
|
150
150
|
};
|
|
151
151
|
|
|
152
|
-
//#endregion
|
|
153
152
|
export { BiomeSchemaSync, buildSchemaUrl, extractSemver };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangesetConfigReader } from "./ChangesetConfigReader.js";
|
|
2
2
|
import { Context, Effect, Layer, Option } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/services/ChangesetConfig.ts
|
|
5
5
|
const isSilk = (cfg) => "_isSilk" in cfg && cfg._isSilk === true;
|
|
6
6
|
/**
|
|
7
7
|
* Accessor service over a workspace root's `.changeset/config.json`.
|
|
@@ -77,5 +77,4 @@ var ChangesetConfig = class ChangesetConfig extends Context.Service()("@savvy-we
|
|
|
77
77
|
}));
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
//#endregion
|
|
81
80
|
export { ChangesetConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangesetConfigError, ChangesetConfigFile, SilkChangesetConfigFile } from "@savvy-web/silk-core";
|
|
2
2
|
import { Context, Effect, FileSystem, Layer, Schema } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/services/ChangesetConfigReader.ts
|
|
5
5
|
/**
|
|
6
6
|
* Substrings that identify a Silk changelog adapter entry in `.changeset/config.json`.
|
|
7
7
|
*
|
|
@@ -109,5 +109,4 @@ var ChangesetConfigReader = class extends Context.Service()("@savvy-web/silk-eff
|
|
|
109
109
|
}));
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
//#endregion
|
|
113
112
|
export { ChangesetConfigReader };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context, Effect, FileSystem, Layer } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/services/ConfigDiscovery.ts
|
|
4
4
|
/**
|
|
5
5
|
* Check whether a path exists, treating any PlatformError as "not found".
|
|
6
6
|
*/
|
|
@@ -69,5 +69,4 @@ var ConfigDiscovery = class extends Context.Service()("@savvy-web/silk-effects/C
|
|
|
69
69
|
}));
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
//#endregion
|
|
73
72
|
export { ConfigDiscovery };
|