pluginfinity 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 +57 -2
- package/bin/pluginfinity.js +12 -0
- package/index.d.ts +26 -0
- package/index.js +25 -0
- package/package.json +60 -5
- package/tsdoc-metadata.json +11 -0
- package/version.js +14 -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,58 @@
|
|
|
1
|
-
#
|
|
1
|
+
# pluginfinity
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/pluginfinity)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](https://nodejs.org/)
|
|
6
|
+
[](https://www.typescriptlang.org/)
|
|
7
|
+
|
|
8
|
+
Build one host-neutral agent-plugin source (skills, agents, hooks and a `pluginfinity.config.ts`) into a complete, self-contained plugin for every host it targets, starting with Claude Code and GitHub Copilot.
|
|
9
|
+
|
|
10
|
+
> **Under development.** pluginfinity is in early `0.x` development. These packages install and run, but they do not build plugins yet: `build`, `validate`, `init` and `plugin add` check their input and then stop with "not implemented yet". Only `doctor` does its full job today. Expect breaking changes between `0.x` releases, and pin an exact version if you depend on it.
|
|
11
|
+
|
|
12
|
+
## Why pluginfinity
|
|
13
|
+
|
|
14
|
+
A plugin that ships to several agent hosts usually keeps a hand-ported copy per host, and the copies drift. Each host accepts different manifest keys, frontmatter fields, hook events and path conventions. pluginfinity replaces the porting with a build: you write the plugin once, and per-host differences are either produced mechanically or marked explicitly in that one source. Generated output goes to `builds/<target>/`, regenerated from source on every build.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pnpm add -D pluginfinity
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install --save-dev pluginfinity
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Requires Node.js >=24.11.0. This is the one package to install: it provides the `pluginfinity` command and the `defineConfig` helper. The `@pluginfinity/*` packages it depends on are internal layers, not a supported API.
|
|
27
|
+
|
|
28
|
+
## Configure
|
|
29
|
+
|
|
30
|
+
A plugin is a directory with a `pluginfinity.config.ts` (`.mts`, `.js` and `.mjs` also work). Each target is a top-level key, set to `true` or to an object of per-host overrides:
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import { defineConfig } from "pluginfinity";
|
|
34
|
+
|
|
35
|
+
export default defineConfig({
|
|
36
|
+
name: "my-plugin",
|
|
37
|
+
claude: true,
|
|
38
|
+
copilot: { name: "my-plugin-for-copilot" },
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
`name` is the plugin's name for every host unless a target overrides it. A target key that is absent is not built. pluginfinity finds the nearest config by walking up from the current directory, stopping at the repository root.
|
|
43
|
+
|
|
44
|
+
## Commands
|
|
45
|
+
|
|
46
|
+
| Command | Status |
|
|
47
|
+
| :-- | :-- |
|
|
48
|
+
| `pluginfinity doctor [path]` | Works. Checks Node.js, the package manager, the host CLIs your config targets, bats, git and whether the config loads. Add `--strict` to exit 1 when a required check fails. |
|
|
49
|
+
| `pluginfinity build [path]` | Finds and checks the config, then stops: not implemented yet. |
|
|
50
|
+
| `pluginfinity validate [path]` | Finds and checks the config, then stops: not implemented yet. |
|
|
51
|
+
| `pluginfinity init [dir]` | Checks its flags, then stops: not implemented yet. |
|
|
52
|
+
| `pluginfinity plugin add <name>` | Checks its flags, then stops: not implemented yet. |
|
|
53
|
+
|
|
54
|
+
Run `pluginfinity <command> --help` for the flags. Every command takes `--agent`, `--human` or `--ci` to choose its output: readable text for people, JSON on stdout for agents and CI. Exit codes are 0 for success, 1 for findings (a config problem, or a failed `doctor --strict`) and 64 for a usage error.
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { PLUGINFINITY_VERSION } from "../version.js";
|
|
3
|
+
import { main } from "@pluginfinity/cli/main";
|
|
4
|
+
|
|
5
|
+
//#region src/bin/pluginfinity.ts
|
|
6
|
+
main({ distribution: {
|
|
7
|
+
name: "pluginfinity",
|
|
8
|
+
version: PLUGINFINITY_VERSION
|
|
9
|
+
} });
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { };
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { KnownTargetId, PluginfinityConfig, PluginfinityConfigInput, PluginfinityConfigInput as PluginfinityConfigInput$1 } from "@pluginfinity/targets";
|
|
2
|
+
//#region src/index.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Declare a plugin's `pluginfinity.config.ts`, typed against the config schema.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { defineConfig } from "pluginfinity";
|
|
9
|
+
*
|
|
10
|
+
* export default defineConfig({
|
|
11
|
+
* name: "foo",
|
|
12
|
+
* description: "What foo does",
|
|
13
|
+
* claude: { name: "baz" },
|
|
14
|
+
* copilot: true,
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @param config - the plugin's name, description and one key per enabled target
|
|
19
|
+
* @returns `config`, unchanged: pluginfinity decodes it when it loads the file
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export declare const defineConfig: (config: PluginfinityConfigInput$1) => PluginfinityConfigInput$1;
|
|
24
|
+
//#endregion
|
|
25
|
+
export type { KnownTargetId, PluginfinityConfig, PluginfinityConfigInput };
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* Declare a plugin's `pluginfinity.config.ts`, typed against the config schema.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { defineConfig } from "pluginfinity";
|
|
8
|
+
*
|
|
9
|
+
* export default defineConfig({
|
|
10
|
+
* name: "foo",
|
|
11
|
+
* description: "What foo does",
|
|
12
|
+
* claude: { name: "baz" },
|
|
13
|
+
* copilot: true,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @param config - the plugin's name, description and one key per enabled target
|
|
18
|
+
* @returns `config`, unchanged: pluginfinity decodes it when it loads the file
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
const defineConfig = (config) => config;
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { defineConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "pluginfinity",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Build one agent-plugin source into every host's format: Claude Code, GitHub Copilot and more, from a single config.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"claude-code",
|
|
8
|
+
"copilot",
|
|
9
|
+
"agent-plugin",
|
|
10
|
+
"plugin",
|
|
11
|
+
"cli",
|
|
12
|
+
"effect"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/spencerbeggs/pluginfinity/tree/main/packages/pluginfinity#readme",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/spencerbeggs/pluginfinity/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/spencerbeggs/pluginfinity.git",
|
|
21
|
+
"directory": "packages/pluginfinity"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"author": {
|
|
25
|
+
"name": "C. Spencer Beggs",
|
|
26
|
+
"email": "spencer@beggs.codes",
|
|
27
|
+
"url": "https://spencerbeg.gs"
|
|
28
|
+
},
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"type": "module",
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./index.d.ts",
|
|
34
|
+
"import": "./index.js",
|
|
35
|
+
"default": "./index.js"
|
|
36
|
+
},
|
|
37
|
+
"./package.json": "./package.json"
|
|
38
|
+
},
|
|
39
|
+
"bin": {
|
|
40
|
+
"pluginfinity": "bin/pluginfinity.js"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@effect/platform-node": "^4.0.0",
|
|
44
|
+
"@effected/cli": "^0.11.0",
|
|
45
|
+
"@effected/commands": "^0.11.0",
|
|
46
|
+
"@effected/engine": "^0.3.0",
|
|
47
|
+
"@effected/env": "^0.1.0",
|
|
48
|
+
"@effected/glob": "^0.10.0",
|
|
49
|
+
"@effected/semver": "^0.11.0",
|
|
50
|
+
"@effected/walker": "^0.15.0",
|
|
51
|
+
"@pluginfinity/cli": "0.1.0",
|
|
52
|
+
"@pluginfinity/core": "0.1.0",
|
|
53
|
+
"@pluginfinity/engine": "0.1.0",
|
|
54
|
+
"@pluginfinity/targets": "0.1.0",
|
|
55
|
+
"effect": "^4.0.0",
|
|
56
|
+
"jiti": "^2.6.1"
|
|
57
|
+
},
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">=24.11.0"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -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.59.1"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/version.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/version.ts
|
|
2
|
+
/**
|
|
3
|
+
* The version of the `pluginfinity` package this build was made from, passed down
|
|
4
|
+
* to the front ends as the distribution a bin was installed through.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* A build-time literal: the bundler replaces `process.env.__PACKAGE_VERSION__`
|
|
8
|
+
* with this package's own version, so this is not a runtime environment read.
|
|
9
|
+
* `"0.0.0"` is the unbuilt-source fallback.
|
|
10
|
+
*/
|
|
11
|
+
const PLUGINFINITY_VERSION = "0.1.0";
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { PLUGINFINITY_VERSION };
|