@okfit/plugin 0.3.7 → 0.4.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/README.md +4 -0
- package/bin/okfit-mcp.js +5 -1
- package/bin/okfit.js +5 -1
- package/index.d.ts +12 -3
- package/index.js +3 -6
- package/package.json +3 -3
- package/version.js +16 -0
package/README.md
CHANGED
|
@@ -6,6 +6,10 @@ The one package to install for [okfit](https://github.com/spencerbeggs/okfit) in
|
|
|
6
6
|
pnpm add -D @okfit/plugin
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
+
## Versions
|
|
10
|
+
|
|
11
|
+
`okfit --version` prints four numbers: `okfit 0.5.4 via @okfit/plugin 0.3.7 (engine 0.6.0, okf 0.2, config-schema 1.0)`. The engine, OKF, and config-schema versions are the ones that determine what a report says and what a config may contain; the CLI, MCP server, and this package version independently and are packaging. Every `--format json` report carries `engine_version`, `okf_version`, and `distribution`; `okfit context --format json` adds `config_schema_version`.
|
|
12
|
+
|
|
9
13
|
## Status
|
|
10
14
|
|
|
11
15
|
Both bins install. `okfit` has five subcommands (`validate`, `init`, `context`, `verify`, `sync`); `okfit-mcp` serves six read-only MCP tools plus static concept resources over stdio.
|
package/bin/okfit-mcp.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { PLUGIN_VERSION } from "../version.js";
|
|
2
3
|
import { main } from "@okfit/mcp/main";
|
|
3
4
|
|
|
4
5
|
//#region src/bin/okfit-mcp.ts
|
|
@@ -7,7 +8,10 @@ import { main } from "@okfit/mcp/main";
|
|
|
7
8
|
*
|
|
8
9
|
* @packageDocumentation
|
|
9
10
|
*/
|
|
10
|
-
await main(
|
|
11
|
+
await main({ distribution: {
|
|
12
|
+
name: "@okfit/plugin",
|
|
13
|
+
version: PLUGIN_VERSION
|
|
14
|
+
} });
|
|
11
15
|
|
|
12
16
|
//#endregion
|
|
13
17
|
export { };
|
package/bin/okfit.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { PLUGIN_VERSION } from "../version.js";
|
|
2
3
|
import { main } from "@okfit/cli/main";
|
|
3
4
|
|
|
4
5
|
//#region src/bin/okfit.ts
|
|
@@ -7,7 +8,10 @@ import { main } from "@okfit/cli/main";
|
|
|
7
8
|
*
|
|
8
9
|
* @packageDocumentation
|
|
9
10
|
*/
|
|
10
|
-
main(
|
|
11
|
+
main({ distribution: {
|
|
12
|
+
name: "@okfit/plugin",
|
|
13
|
+
version: PLUGIN_VERSION
|
|
14
|
+
} });
|
|
11
15
|
|
|
12
16
|
//#endregion
|
|
13
17
|
export { };
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
//#region src/
|
|
1
|
+
//#region src/version.d.ts
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* This package's own version, reported as `distribution.version` (alongside
|
|
4
|
+
* `distribution.name: "@okfit/plugin"`) whenever a report is produced
|
|
5
|
+
* through one of this package's bin shims (okfit #137).
|
|
6
|
+
* `@savvy-web/bundler` replaces `process.env.__PACKAGE_VERSION__` with this
|
|
7
|
+
* package's own version at build time (K-32), so a release can never desync
|
|
8
|
+
* from the printed version. `"0.0.0"` is the unbuilt-source fallback and
|
|
9
|
+
* reads as dev mode.
|
|
4
10
|
*
|
|
5
|
-
* @
|
|
11
|
+
* @public
|
|
6
12
|
*/
|
|
13
|
+
export declare const PLUGIN_VERSION: string;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/index.d.ts
|
|
7
16
|
/**
|
|
8
17
|
* Bins made available by installing this package.
|
|
9
18
|
*
|
package/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
+
import { PLUGIN_VERSION } from "./version.js";
|
|
2
|
+
|
|
1
3
|
//#region src/index.ts
|
|
2
4
|
/**
|
|
3
|
-
* okfit meta-package. Installing it provides the `okfit` and `okfit-mcp` bins.
|
|
4
|
-
*
|
|
5
|
-
* @packageDocumentation
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
5
|
* Bins made available by installing this package.
|
|
9
6
|
*
|
|
10
7
|
* @public
|
|
@@ -12,4 +9,4 @@
|
|
|
12
9
|
const OKFIT_BINS = ["okfit", "okfit-mcp"];
|
|
13
10
|
|
|
14
11
|
//#endregion
|
|
15
|
-
export { OKFIT_BINS };
|
|
12
|
+
export { OKFIT_BINS, PLUGIN_VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okfit/plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Install this one package to get the okfit CLI and MCP server in your repository. Depends on @okfit/cli and @okfit/mcp.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"okfit-mcp": "bin/okfit-mcp.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@okfit/cli": "0.
|
|
44
|
-
"@okfit/mcp": "0.
|
|
43
|
+
"@okfit/cli": "0.6.0",
|
|
44
|
+
"@okfit/mcp": "0.4.0"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=24.11.0"
|
package/version.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/version.ts
|
|
2
|
+
/**
|
|
3
|
+
* This package's own version, reported as `distribution.version` (alongside
|
|
4
|
+
* `distribution.name: "@okfit/plugin"`) whenever a report is produced
|
|
5
|
+
* through one of this package's bin shims (okfit #137).
|
|
6
|
+
* `@savvy-web/bundler` replaces `process.env.__PACKAGE_VERSION__` with this
|
|
7
|
+
* package's own version at build time (K-32), so a release can never desync
|
|
8
|
+
* from the printed version. `"0.0.0"` is the unbuilt-source fallback and
|
|
9
|
+
* reads as dev mode.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
const PLUGIN_VERSION = "0.4.0";
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { PLUGIN_VERSION };
|