@effected/plugin 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +12 -2
- package/bin/effected-mcp.js +16 -0
- package/bin/effected.js +16 -0
- package/index.d.ts +11 -0
- package/index.js +3 -0
- package/package.json +48 -5
- package/tsdoc-metadata.json +11 -0
- package/version.js +13 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 C. Spencer Beggs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @effected/plugin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Install this one package to get the `effected` command and the `effected-mcp` server. It depends on `@effected/cli` and `@effected/mcp` and adds a bin shim for each, so both report that they came through this package.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
pnpm add -D @effected/plugin
|
|
7
|
+
pnpm exec effected --version
|
|
8
|
+
# effected <version> via @effected/plugin <version>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The `effected` catalog in `@effected/pnpm-plugin-effected` lists this package, so a consumer writes `"@effected/plugin": "catalog:effected"`. That plugin also hoists this package publicly, so its bins reach every package of a pnpm workspace, even when only one leaf package declares it.
|
|
12
|
+
|
|
13
|
+
> **Pre-`1.0.0`.** Part of the `@effected/*` kit; unstable across `0.x` releases. Pin an exact version.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { PLUGIN_VERSION } from "../version.js";
|
|
3
|
+
import { main } from "@effected/mcp/main";
|
|
4
|
+
|
|
5
|
+
// src/bin/effected-mcp.ts
|
|
6
|
+
/**
|
|
7
|
+
* The `effected-mcp` bin, provided by the carrier.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
await main({ distribution: {
|
|
12
|
+
name: "@effected/plugin",
|
|
13
|
+
version: PLUGIN_VERSION
|
|
14
|
+
} });
|
|
15
|
+
|
|
16
|
+
export { };
|
package/bin/effected.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { PLUGIN_VERSION } from "../version.js";
|
|
3
|
+
import { main } from "@effected/cli/main";
|
|
4
|
+
|
|
5
|
+
// src/bin/effected.ts
|
|
6
|
+
/**
|
|
7
|
+
* The `effected` bin, provided by the carrier.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
main({ distribution: {
|
|
12
|
+
name: "@effected/plugin",
|
|
13
|
+
version: PLUGIN_VERSION
|
|
14
|
+
} });
|
|
15
|
+
|
|
16
|
+
export { };
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This package's own version, which each bin shim passes to its front end as
|
|
3
|
+
* `distribution.version` beside `distribution.name: "@effected/plugin"`. The
|
|
4
|
+
* bundler replaces the exact expression `process.env.__PACKAGE_VERSION__` with
|
|
5
|
+
* the package version at build time, so it must stay spelled this way;
|
|
6
|
+
* `"0.0.0"` is the unbuilt-source fallback.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare const PLUGIN_VERSION: string;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,49 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@effected/plugin",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Install this one package to get the effected command and the effected-mcp server. Depends on @effected/cli and @effected/mcp.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"effect",
|
|
8
|
+
"effected",
|
|
9
|
+
"cli",
|
|
10
|
+
"mcp",
|
|
11
|
+
"agent"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/spencerbeggs/effected/tree/main/packages/plugin#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/spencerbeggs/effected/issues"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/spencerbeggs/effected.git",
|
|
20
|
+
"directory": "packages/plugin"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"author": {
|
|
24
|
+
"name": "C. Spencer Beggs",
|
|
25
|
+
"email": "spencer@beggs.codes",
|
|
26
|
+
"url": "https://spencerbeg.gs"
|
|
27
|
+
},
|
|
28
|
+
"type": "module",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./index.d.ts",
|
|
32
|
+
"import": "./index.js",
|
|
33
|
+
"default": "./index.js"
|
|
34
|
+
},
|
|
35
|
+
"./package.json": "./package.json"
|
|
36
|
+
},
|
|
37
|
+
"bin": {
|
|
38
|
+
"effected": "bin/effected.js",
|
|
39
|
+
"effected-mcp": "bin/effected-mcp.js"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@effected/cli": "^0.26.0",
|
|
43
|
+
"@effected/mcp": "^0.13.0",
|
|
44
|
+
"effect": "~4.1.2"
|
|
45
|
+
},
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=24.11.0"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.60.1"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/version.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/version.ts
|
|
2
|
+
/**
|
|
3
|
+
* This package's own version, which each bin shim passes to its front end as
|
|
4
|
+
* `distribution.version` beside `distribution.name: "@effected/plugin"`. The
|
|
5
|
+
* bundler replaces the exact expression `process.env.__PACKAGE_VERSION__` with
|
|
6
|
+
* the package version at build time, so it must stay spelled this way;
|
|
7
|
+
* `"0.0.0"` is the unbuilt-source fallback.
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
const PLUGIN_VERSION = "0.1.0";
|
|
12
|
+
|
|
13
|
+
export { PLUGIN_VERSION };
|