@effected/workspaces 0.40.1 → 0.42.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/ChangeDetector.js +1 -1
- package/DependencyGraph.js +1 -1
- package/ImportGraph.js +2 -2
- package/LockfileReader.js +2 -2
- package/PackageManagerName.js +1 -1
- package/PackedInstall.js +5 -5
- package/PeerCheck.js +1 -1
- package/README.md +4 -4
- package/VersioningStrategy.js +1 -1
- package/WorkspaceCatalogs.js +5 -5
- package/WorkspaceLayering.js +1 -1
- package/WorkspaceSnapshots.js +4 -4
- package/Workspaces.js +4 -4
- package/WorkspacesSync.js +4 -4
- package/index.js +7 -7
- package/internal/workspaceYaml.js +1 -1
- package/package.json +12 -12
- package/testing.d.ts +3 -3
- package/testing.js +6 -6
- package/tsdoc-metadata.json +1 -1
package/ChangeDetector.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
2
1
|
import { DependencyGraph } from "./DependencyGraph.js";
|
|
2
|
+
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
3
3
|
import { Git } from "@effected/git";
|
|
4
4
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
5
5
|
|
package/DependencyGraph.js
CHANGED
package/ImportGraph.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
2
|
-
import { isIdentifierChar, lex, locate, specifierLiterals, wordEndingAt } from "./internal/sourceText.js";
|
|
3
1
|
import { isTypePositionImport } from "./internal/importPosition.js";
|
|
2
|
+
import { isIdentifierChar, lex, locate, specifierLiterals, wordEndingAt } from "./internal/sourceText.js";
|
|
4
3
|
import { DEFAULT_EXTENSIONS, walkSources } from "./internal/sourceWalk.js";
|
|
5
4
|
import { SourceBoundary } from "./SourceBoundary.js";
|
|
5
|
+
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
6
6
|
import { Effect, FileSystem, Option, Path, Schema } from "effect";
|
|
7
7
|
import { GlobSet } from "@effected/glob";
|
|
8
8
|
|
package/LockfileReader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { findLayerRoot } from "./internal/layerRoot.js";
|
|
2
|
-
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
3
|
-
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
4
2
|
import { PackageManagerDetector } from "./PackageManagerName.js";
|
|
3
|
+
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
4
|
+
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
5
5
|
import { Context, Duration, Effect, Exit, FileSystem, Layer, Option, Path, Result, Schema } from "effect";
|
|
6
6
|
import { PackageJsonFormat } from "@effected/package-json";
|
|
7
7
|
import { Lockfile, LockfileFormat, LockfileIntegrity, filenameFor } from "@effected/lockfiles";
|
package/PackageManagerName.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WorkspaceManifestError } from "./WorkspacePackage.js";
|
|
2
1
|
import { MARKER_FILES, decidePackageManager } from "./internal/packageManagerDecision.js";
|
|
2
|
+
import { WorkspaceManifestError } from "./WorkspacePackage.js";
|
|
3
3
|
import { Context, Effect, FileSystem, Layer, Option, Path, Predicate, Schema } from "effect";
|
|
4
4
|
import { PackageJsonFormat } from "@effected/package-json";
|
|
5
5
|
|
package/PackedInstall.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
2
|
-
import { PackageManagerName } from "./PackageManagerName.js";
|
|
3
1
|
import { binConflict, binTargetOf, closureOf, consumerFiles, fileOverridesOf, installArgs, overridePath, readPackedManifest, scrubEnv, versionOf } from "./internal/packedInstallPlan.js";
|
|
2
|
+
import { PackageManagerName } from "./PackageManagerName.js";
|
|
3
|
+
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
4
4
|
import { Config, Duration, Effect, FileSystem, Option, Path, Redacted, Result, Schema, Stream } from "effect";
|
|
5
5
|
import { PackageJsonFormat } from "@effected/package-json";
|
|
6
6
|
import { Yaml } from "@effected/yaml";
|
|
@@ -152,7 +152,7 @@ var InstalledConsumer = class extends Schema.Class("InstalledConsumer")({
|
|
|
152
152
|
/**
|
|
153
153
|
* The command {@link InstalledConsumer.runBin} spawns for the bin `name`,
|
|
154
154
|
* for a caller that drives the child itself, such as `McpProbe.initialize`
|
|
155
|
-
* from `@effected/mcp/testing`.
|
|
155
|
+
* from `@effected/mcp-kit/testing`.
|
|
156
156
|
*
|
|
157
157
|
* @remarks
|
|
158
158
|
* {@link InstalledConsumer.binPath}, from the consumer's directory, under
|
|
@@ -165,7 +165,7 @@ var InstalledConsumer = class extends Schema.Class("InstalledConsumer")({
|
|
|
165
165
|
*
|
|
166
166
|
* @example
|
|
167
167
|
* ```ts
|
|
168
|
-
* import { McpProbe } from "@effected/mcp/testing";
|
|
168
|
+
* import { McpProbe } from "@effected/mcp-kit/testing";
|
|
169
169
|
* import type { InstalledConsumer } from "@effected/workspaces/testing";
|
|
170
170
|
*
|
|
171
171
|
* declare const consumer: InstalledConsumer;
|
|
@@ -470,7 +470,7 @@ const planClosure = (carrier, options) => Effect.gen(function* () {
|
|
|
470
470
|
*
|
|
471
471
|
* It asserts nothing about what the bins DO: run them from the test through
|
|
472
472
|
* `InstalledConsumer.runBin`, or for an MCP bin through `McpProbe` from
|
|
473
|
-
* `@effected/mcp/testing` at `InstalledConsumer.binPath`, inside the same
|
|
473
|
+
* `@effected/mcp-kit/testing` at `InstalledConsumer.binPath`, inside the same
|
|
474
474
|
* scope, because the scratch directory (`PackedInstallResult.scratch`) is
|
|
475
475
|
* removed when the scope closes. Size the test's outer timeout with
|
|
476
476
|
* {@link PackedInstall.timeoutBudget}. POSIX only.
|
package/PeerCheck.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { indexInstances, rootInstances } from "./internal/roots.js";
|
|
2
1
|
import { peerNameMatcher } from "./internal/peerPatterns.js";
|
|
2
|
+
import { indexInstances, rootInstances } from "./internal/roots.js";
|
|
3
3
|
import { Option, Result, Schema } from "effect";
|
|
4
4
|
import { Range, SemVer } from "@effected/semver";
|
|
5
5
|
|
package/README.md
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
Monorepo workspace tooling for [Effect](https://effect.website) v4: find the workspace root, enumerate its packages, walk the dependency graph, detect the package manager, resolve pnpm catalogs, read the lockfile, check it for unsatisfied peer dependencies and work out which packages a git range touches. Every capability is a service you provide at the edge and swap in tests. Works with npm, pnpm, yarn Berry and bun.
|
|
9
9
|
|
|
10
10
|
> **Pre-`1.0.0`.** This package is part of the `@effected/*` kit, built on stable
|
|
11
|
-
> Effect v4 (`effect`
|
|
11
|
+
> Effect v4 (`effect` `~4.1.0`) and still in `0.x` development. Stable Effect
|
|
12
12
|
> makes a kit `1.0.0` possible, not automatic. To keep your `effect` and
|
|
13
13
|
> `@effect/*` versions on the line the kit is built and tested against, install
|
|
14
|
-
> [`@effected/pnpm-plugin-
|
|
14
|
+
> [`@effected/pnpm-plugin-effected`](https://www.npmjs.com/package/@effected/pnpm-plugin-effected).
|
|
15
15
|
>
|
|
16
16
|
> **Stability: unstable.** This package's API surface is not yet considered
|
|
17
17
|
> complete and may change across `0.x` releases. Pin an exact version — even a
|
|
@@ -464,7 +464,7 @@ Both checks are static analysis of literal specifiers — there is no dynamic-im
|
|
|
464
464
|
|
|
465
465
|
`PackedInstall.run` packs a carrier and every workspace package it needs, then installs the carrier into a fresh project outside the workspace under each package manager that answers `--version`, and checks every expected bin is linked and executable. It carries the traps each manager sets: the parent run's `npm_*` and `pnpm_config_*` context is scrubbed, pnpm's overrides go in `pnpm-workspace.yaml`, Yarn Berry gets the `node-modules` linker, `packageManager` is pinned to the probed version, and lifecycle scripts are skipped. By default it packs each package's built `dist/prod/npm/pkg`, the artifact a release publishes; build first.
|
|
466
466
|
|
|
467
|
-
It does not run the bins; the test does, inside the same scope, because the scratch directory (`result.scratch`) is removed when the scope closes. `consumer.runBin(name, args, options?)` runs one to completion and returns `{ stdout, stderr, exitCode }`, with no direct `@effected/commands` dependency. `consumer.command(name, args?, options?)` returns the `ChildProcess` command `runBin` builds, same environment and working directory, with stdin left open, so a probe that writes to the bin can spawn it. `consumer.binProvenance(name)` names the package a `.bin` symlink resolves into. `PackedInstall.closure(carrier, options?)` names every package the run will pack before it runs, and `PackedInstall.timeoutBudget` sizes the outer timeout from those names and the run's own ceilings. For an MCP server bin, `McpProbe` from `@effected/mcp/testing` is the proof:
|
|
467
|
+
It does not run the bins; the test does, inside the same scope, because the scratch directory (`result.scratch`) is removed when the scope closes. `consumer.runBin(name, args, options?)` runs one to completion and returns `{ stdout, stderr, exitCode }`, with no direct `@effected/commands` dependency. `consumer.command(name, args?, options?)` returns the `ChildProcess` command `runBin` builds, same environment and working directory, with stdin left open, so a probe that writes to the bin can spawn it. `consumer.binProvenance(name)` names the package a `.bin` symlink resolves into. `PackedInstall.closure(carrier, options?)` names every package the run will pack before it runs, and `PackedInstall.timeoutBudget` sizes the outer timeout from those names and the run's own ceilings. For an MCP server bin, `McpProbe` from `@effected/mcp-kit/testing` is the proof:
|
|
468
468
|
|
|
469
469
|
```ts
|
|
470
470
|
// __test__/e2e/packed-install.e2e.test.ts, two levels below the workspace root
|
|
@@ -472,7 +472,7 @@ import { dirname, resolve } from "node:path";
|
|
|
472
472
|
import { fileURLToPath } from "node:url";
|
|
473
473
|
import { NodeServices } from "@effect/platform-node";
|
|
474
474
|
import { assert, describe, layer } from "@effect/vitest";
|
|
475
|
-
import { McpProbe } from "@effected/mcp/testing";
|
|
475
|
+
import { McpProbe } from "@effected/mcp-kit/testing";
|
|
476
476
|
import { Workspaces } from "@effected/workspaces";
|
|
477
477
|
import { PackedInstall } from "@effected/workspaces/testing";
|
|
478
478
|
import { Duration, Effect, Layer } from "effect";
|
package/VersioningStrategy.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
2
1
|
import { PublishabilityDetector } from "./Publishability.js";
|
|
3
2
|
import { ReleaseTag } from "./ReleaseTag.js";
|
|
3
|
+
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
4
4
|
import { Effect, Schema } from "effect";
|
|
5
5
|
|
|
6
6
|
// src/VersioningStrategy.ts
|
package/WorkspaceCatalogs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { isStringRecord } from "./internal/guards.js";
|
|
2
|
-
import { findLayerRoot } from "./internal/layerRoot.js";
|
|
3
|
-
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
4
|
-
import { inlineCatalogs, merge, normalize, rangeOf } from "./internal/catalogs.js";
|
|
5
1
|
import { ConfigDependencyHooks, NoPeerDependencyRules } from "./ConfigDependencyHooks.js";
|
|
6
|
-
import {
|
|
2
|
+
import { inlineCatalogs, merge, normalize, rangeOf } from "./internal/catalogs.js";
|
|
3
|
+
import { isStringRecord } from "./internal/guards.js";
|
|
7
4
|
import { importerVersionsOf } from "./internal/importerVersions.js";
|
|
5
|
+
import { findLayerRoot } from "./internal/layerRoot.js";
|
|
8
6
|
import { configDependenciesOf, inlinePeerDependencyRules } from "./internal/workspaceYaml.js";
|
|
7
|
+
import { LockfileReader } from "./LockfileReader.js";
|
|
8
|
+
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
9
9
|
import { Context, Duration, Effect, Exit, FileSystem, Layer, Option, Path, PlatformError, Predicate, Schema } from "effect";
|
|
10
10
|
import { CatalogAssemblyError, CatalogResolver, DependencyResolutionError, PartialReleaseAgeGate, ReleaseAgeGate } from "@effected/npm";
|
|
11
11
|
import { PackageJsonFormat } from "@effected/package-json";
|
package/WorkspaceLayering.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
2
1
|
import { ALL_DEPENDENCY_FIELDS } from "./internal/dependencyFields.js";
|
|
2
|
+
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
3
3
|
import { Effect, Graph, Option, Schema } from "effect";
|
|
4
4
|
import { GlobSet } from "@effected/glob";
|
|
5
5
|
import { DependencyField } from "@effected/npm";
|
package/WorkspaceSnapshots.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { ConfigDependencyHooks } from "./ConfigDependencyHooks.js";
|
|
1
2
|
import { isStringRecord } from "./internal/guards.js";
|
|
3
|
+
import { importerVersionsOf } from "./internal/importerVersions.js";
|
|
2
4
|
import { findLayerRoot } from "./internal/layerRoot.js";
|
|
3
5
|
import { manifestPatternsOf, pnpmPatternsOf } from "./internal/patterns.js";
|
|
4
|
-
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
5
|
-
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
6
|
-
import { ConfigDependencyHooks } from "./ConfigDependencyHooks.js";
|
|
7
|
-
import { importerVersionsOf } from "./internal/importerVersions.js";
|
|
8
6
|
import { CatalogSet, WorkspaceCatalogs, injectFromDocument } from "./WorkspaceCatalogs.js";
|
|
7
|
+
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
8
|
+
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
9
9
|
import { PackageStateSnapshot, WorkspaceStateSnapshot } from "./WorkspaceStateSnapshot.js";
|
|
10
10
|
import { Git } from "@effected/git";
|
|
11
11
|
import { Context, Duration, Effect, Exit, Layer, Option, Predicate, Result } from "effect";
|
package/Workspaces.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { layerFindOptions } from "./internal/layerRoot.js";
|
|
2
|
-
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
3
|
-
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
4
1
|
import { ChangeDetector } from "./ChangeDetector.js";
|
|
5
2
|
import { ConfigDependencyHooks } from "./ConfigDependencyHooks.js";
|
|
6
|
-
import {
|
|
3
|
+
import { layerFindOptions } from "./internal/layerRoot.js";
|
|
7
4
|
import { LockfileReader } from "./LockfileReader.js";
|
|
5
|
+
import { PackageManagerDetector } from "./PackageManagerName.js";
|
|
8
6
|
import { WorkspaceCatalogs } from "./WorkspaceCatalogs.js";
|
|
7
|
+
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
8
|
+
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
9
9
|
import { WorkspaceSnapshots } from "./WorkspaceSnapshots.js";
|
|
10
10
|
import { Git } from "@effected/git";
|
|
11
11
|
import { Effect, Layer, Option } from "effect";
|
package/WorkspacesSync.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Traversal, badMaxDepthMessage, isPruned, isValidMaxDepth, joinRelative } from "./internal/traverse.js";
|
|
2
1
|
import { isStringRecord } from "./internal/guards.js";
|
|
3
|
-
import { manifestPatternsOf, pnpmPatternsOf } from "./internal/patterns.js";
|
|
4
|
-
import { PublishConfig, WorkspaceManifestError, WorkspacePackage } from "./WorkspacePackage.js";
|
|
5
|
-
import { WorkspaceRootMatch, probedMarkers } from "./WorkspaceMarker.js";
|
|
6
2
|
import { decidePackageManager } from "./internal/packageManagerDecision.js";
|
|
3
|
+
import { manifestPatternsOf, pnpmPatternsOf } from "./internal/patterns.js";
|
|
4
|
+
import { Traversal, badMaxDepthMessage, isPruned, isValidMaxDepth, joinRelative } from "./internal/traverse.js";
|
|
7
5
|
import { DetectedPackageManager, PackageManagerDetectionError, PackageManagerEvidence } from "./PackageManagerName.js";
|
|
6
|
+
import { WorkspaceRootMatch, probedMarkers } from "./WorkspaceMarker.js";
|
|
7
|
+
import { PublishConfig, WorkspaceManifestError, WorkspacePackage } from "./WorkspacePackage.js";
|
|
8
8
|
import { Effect, Exit, Option, Result, Schema } from "effect";
|
|
9
9
|
import { GlobSet } from "@effected/glob";
|
|
10
10
|
import { PackageJsonFormat } from "@effected/package-json";
|
package/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { PublishConfig, WorkspaceManifestError, WorkspacePackage } from "./WorkspacePackage.js";
|
|
2
|
-
import { WORKSPACE_MARKERS, WorkspaceMarker, WorkspaceRootMatch } from "./WorkspaceMarker.js";
|
|
3
|
-
import { WorkspaceRoot, WorkspaceRootNotFoundError } from "./WorkspaceRoot.js";
|
|
4
|
-
import { PackageNotFoundError, WorkspaceDiscovery, WorkspaceDiscoveryError, WorkspaceInfo, WorkspacePatternError } from "./WorkspaceDiscovery.js";
|
|
5
|
-
import { CyclicDependencyError, DependencyGraph } from "./DependencyGraph.js";
|
|
6
1
|
import { ChangeDetectionError, ChangeDetectionOptions, ChangeDetector } from "./ChangeDetector.js";
|
|
7
2
|
import { ConfigDependencyHooks, NoPeerDependencyRules } from "./ConfigDependencyHooks.js";
|
|
8
3
|
import { ConfigDependencySpec, InvalidConfigDependencySpecError } from "./ConfigDependencySpec.js";
|
|
4
|
+
import { CyclicDependencyError, DependencyGraph } from "./DependencyGraph.js";
|
|
9
5
|
import { Dependent, DuplicateCheck, DuplicateInstance, DuplicatedPackage, DuplicatedVersion } from "./DuplicateCheck.js";
|
|
10
|
-
import { DetectedPackageManager, PackageManagerDetectionError, PackageManagerDetector, PackageManagerEvidence, PackageManagerName } from "./PackageManagerName.js";
|
|
11
6
|
import { LockfileReadError, LockfileReader } from "./LockfileReader.js";
|
|
7
|
+
import { DetectedPackageManager, PackageManagerDetectionError, PackageManagerDetector, PackageManagerEvidence, PackageManagerName } from "./PackageManagerName.js";
|
|
12
8
|
import { PeerCheck, PeerParent, UnsatisfiedPeer } from "./PeerCheck.js";
|
|
13
9
|
import { PublishTarget, PublishabilityDetector } from "./Publishability.js";
|
|
14
10
|
import { ReleaseTag, TagStyle, TrackingTag, classifyTag } from "./ReleaseTag.js";
|
|
15
11
|
import { VersioningStrategy, VersioningStrategyType } from "./VersioningStrategy.js";
|
|
16
12
|
import { CatalogSet, WorkspaceCatalogs } from "./WorkspaceCatalogs.js";
|
|
17
|
-
import {
|
|
13
|
+
import { PackageNotFoundError, WorkspaceDiscovery, WorkspaceDiscoveryError, WorkspaceInfo, WorkspacePatternError } from "./WorkspaceDiscovery.js";
|
|
14
|
+
import { WORKSPACE_MARKERS, WorkspaceMarker, WorkspaceRootMatch } from "./WorkspaceMarker.js";
|
|
15
|
+
import { PublishConfig, WorkspaceManifestError, WorkspacePackage } from "./WorkspacePackage.js";
|
|
16
|
+
import { WorkspaceRoot, WorkspaceRootNotFoundError } from "./WorkspaceRoot.js";
|
|
18
17
|
import { WorkspaceSnapshots } from "./WorkspaceSnapshots.js";
|
|
18
|
+
import { PackageStateSnapshot, WorkspaceStateSnapshot } from "./WorkspaceStateSnapshot.js";
|
|
19
19
|
import { Workspaces } from "./Workspaces.js";
|
|
20
20
|
import { detectPackageManagerSync, findWorkspaceRootSync, getWorkspacePackagesSync, localExecContextSync, locateWorkspaceRootSync } from "./WorkspacesSync.js";
|
|
21
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/workspaces",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Monorepo workspace tooling as Effect services — root discovery, package enumeration, the dependency graph, package-manager detection, pnpm catalog resolution, lockfile IO and git-based change detection.",
|
|
6
6
|
"keywords": [
|
|
@@ -51,23 +51,23 @@
|
|
|
51
51
|
"./package.json": "./package.json"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@effected/commands": "^0.
|
|
55
|
-
"@effected/git": "^0.
|
|
56
|
-
"@effected/glob": "^0.
|
|
57
|
-
"@effected/jsonc": "^0.
|
|
58
|
-
"@effected/lockfiles": "^0.
|
|
59
|
-
"@effected/npm": "^0.
|
|
60
|
-
"@effected/package-json": "^0.
|
|
61
|
-
"@effected/semver": "^0.
|
|
62
|
-
"@effected/walker": "^0.
|
|
63
|
-
"@effected/yaml": "^0.
|
|
54
|
+
"@effected/commands": "^0.20.0",
|
|
55
|
+
"@effected/git": "^0.30.0",
|
|
56
|
+
"@effected/glob": "^0.18.0",
|
|
57
|
+
"@effected/jsonc": "^0.23.0",
|
|
58
|
+
"@effected/lockfiles": "^0.22.0",
|
|
59
|
+
"@effected/npm": "^0.30.0",
|
|
60
|
+
"@effected/package-json": "^0.29.0",
|
|
61
|
+
"@effected/semver": "^0.21.0",
|
|
62
|
+
"@effected/walker": "^0.25.0",
|
|
63
|
+
"@effected/yaml": "^0.28.0",
|
|
64
64
|
"@pnpm/catalogs.config": "^1100.0.5",
|
|
65
65
|
"@pnpm/catalogs.protocol-parser": "^1100.0.0",
|
|
66
66
|
"@pnpm/catalogs.resolver": "^1100.0.0",
|
|
67
67
|
"@pnpm/catalogs.types": "^1100.0.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"effect": "
|
|
70
|
+
"effect": "~4.1.0"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=24.11.0"
|
package/testing.d.ts
CHANGED
|
@@ -1614,7 +1614,7 @@ export declare class InstalledConsumer extends InstalledConsumer_base {
|
|
|
1614
1614
|
/**
|
|
1615
1615
|
* The command {@link InstalledConsumer.runBin} spawns for the bin `name`,
|
|
1616
1616
|
* for a caller that drives the child itself, such as `McpProbe.initialize`
|
|
1617
|
-
* from `@effected/mcp/testing`.
|
|
1617
|
+
* from `@effected/mcp-kit/testing`.
|
|
1618
1618
|
*
|
|
1619
1619
|
* @remarks
|
|
1620
1620
|
* {@link InstalledConsumer.binPath}, from the consumer's directory, under
|
|
@@ -1627,7 +1627,7 @@ export declare class InstalledConsumer extends InstalledConsumer_base {
|
|
|
1627
1627
|
*
|
|
1628
1628
|
* @example
|
|
1629
1629
|
* ```ts
|
|
1630
|
-
* import { McpProbe } from "@effected/mcp/testing";
|
|
1630
|
+
* import { McpProbe } from "@effected/mcp-kit/testing";
|
|
1631
1631
|
* import type { InstalledConsumer } from "@effected/workspaces/testing";
|
|
1632
1632
|
*
|
|
1633
1633
|
* declare const consumer: InstalledConsumer;
|
|
@@ -1820,7 +1820,7 @@ interface PackedInstallGate {
|
|
|
1820
1820
|
*
|
|
1821
1821
|
* It asserts nothing about what the bins DO: run them from the test through
|
|
1822
1822
|
* `InstalledConsumer.runBin`, or for an MCP bin through `McpProbe` from
|
|
1823
|
-
* `@effected/mcp/testing` at `InstalledConsumer.binPath`, inside the same
|
|
1823
|
+
* `@effected/mcp-kit/testing` at `InstalledConsumer.binPath`, inside the same
|
|
1824
1824
|
* scope, because the scratch directory (`PackedInstallResult.scratch`) is
|
|
1825
1825
|
* removed when the scope closes. Size the test's outer timeout with
|
|
1826
1826
|
* {@link PackedInstall.timeoutBudget}. POSIX only.
|
package/testing.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { PublishConfig, WorkspaceManifestError, WorkspacePackage } from "./WorkspacePackage.js";
|
|
2
|
-
import { WorkspaceMarker, WorkspaceRootMatch } from "./WorkspaceMarker.js";
|
|
3
|
-
import { WorkspaceRoot, WorkspaceRootNotFoundError } from "./WorkspaceRoot.js";
|
|
4
|
-
import { PackageNotFoundError, WorkspaceDiscovery, WorkspaceDiscoveryError, WorkspaceInfo, WorkspacePatternError } from "./WorkspaceDiscovery.js";
|
|
5
|
-
import { PackageManagerName } from "./PackageManagerName.js";
|
|
6
|
-
import { Offence, SourceBoundary, SourceScan } from "./SourceBoundary.js";
|
|
7
1
|
import { EntryNotFoundError, ImportGraph, NoEntriesError, ReachOffence, ReachabilityScan, UndeclaredImport, UndeclaredScan, UnresolvedImport } from "./ImportGraph.js";
|
|
8
2
|
import { LayerPolicy, LayerPolicyError } from "./LayerPolicy.js";
|
|
3
|
+
import { PackageManagerName } from "./PackageManagerName.js";
|
|
9
4
|
import { InstalledConsumer, PackedInstall, PackedInstallError, PackedInstallResult } from "./PackedInstall.js";
|
|
5
|
+
import { Offence, SourceBoundary, SourceScan } from "./SourceBoundary.js";
|
|
6
|
+
import { PackageNotFoundError, WorkspaceDiscovery, WorkspaceDiscoveryError, WorkspaceInfo, WorkspacePatternError } from "./WorkspaceDiscovery.js";
|
|
10
7
|
import { LayerEdge, LayeringReport, WorkspaceLayering } from "./WorkspaceLayering.js";
|
|
8
|
+
import { WorkspaceMarker, WorkspaceRootMatch } from "./WorkspaceMarker.js";
|
|
9
|
+
import { PublishConfig, WorkspaceManifestError, WorkspacePackage } from "./WorkspacePackage.js";
|
|
10
|
+
import { WorkspaceRoot, WorkspaceRootNotFoundError } from "./WorkspaceRoot.js";
|
|
11
11
|
|
|
12
12
|
export { EntryNotFoundError, ImportGraph, InstalledConsumer, LayerEdge, LayerPolicy, LayerPolicyError, LayeringReport, NoEntriesError, Offence, PackageManagerName, PackageNotFoundError, PackedInstall, PackedInstallError, PackedInstallResult, PublishConfig, ReachOffence, ReachabilityScan, SourceBoundary, SourceScan, UndeclaredImport, UndeclaredScan, UnresolvedImport, WorkspaceDiscovery, WorkspaceDiscoveryError, WorkspaceInfo, WorkspaceLayering, WorkspaceManifestError, WorkspaceMarker, WorkspacePackage, WorkspacePatternError, WorkspaceRoot, WorkspaceRootMatch, WorkspaceRootNotFoundError };
|