@flowscripter/plugin-api 0.0.0-stage → 1.3.2

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Flowscripter
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,72 @@
1
- # Temporary Holding Version
1
+ # plugin-api
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![version](https://img.shields.io/github/v/release/flowscripter/plugin-api?sort=semver)](https://github.com/flowscripter/plugin-api/releases)
4
+ [![build](https://img.shields.io/github/actions/workflow/status/flowscripter/plugin-api/release-bun-library.yml)](https://github.com/flowscripter/plugin-api/actions/workflows/release-bun-library.yml)
5
+ [![coverage](https://codecov.io/gh/flowscripter/plugin-api/graph/badge.svg?token=uWK0oWsBjr)](https://codecov.io/gh/flowscripter/plugin-api)
6
+ [![docs](https://img.shields.io/badge/docs-API-blue)](https://flowscripter.github.io/plugin-api/index.html)
7
+ [![license: MIT](https://img.shields.io/github/license/flowscripter/plugin-api)](https://github.com/flowscripter/plugin-api/blob/main/LICENSE)
8
+
9
+ > Flowscripter plugin API: interfaces for command and component plugins
10
+
11
+ > Work in progress.
12
+
13
+ ## Bun Module Usage
14
+
15
+ Add the module:
16
+
17
+ `bun add @flowscripter/plugin-api`
18
+
19
+ Use the module:
20
+
21
+ ```typescript
22
+ import { world } from "@flowscripter/plugin-api";
23
+
24
+ world();
25
+ ```
26
+
27
+ ## Development
28
+
29
+ Install dependencies:
30
+
31
+ `bun install`
32
+
33
+ Build (produces `dist/` for Node.js and TypeScript consumers; Bun uses raw source directly):
34
+
35
+ `bun run build`
36
+
37
+ Test:
38
+
39
+ `bun test`
40
+
41
+ Format:
42
+
43
+ `bunx oxfmt`
44
+
45
+ Lint:
46
+
47
+ `bunx oxlint index.ts src/ tests/`
48
+
49
+ Generate HTML API Documentation:
50
+
51
+ `bunx typedoc index.ts`
52
+
53
+ ## Documentation
54
+
55
+ ### Overview
56
+
57
+ Sample mermaid diagram to test rendering in markdown:
58
+
59
+ ```mermaid
60
+ classDiagram
61
+ Foo <|-- Bar
62
+ ```
63
+
64
+ ### API
65
+
66
+ Link to auto-generated API docs:
67
+
68
+ [API Documentation](https://flowscripter.github.io/plugin-api/index.html)
69
+
70
+ ## License
71
+
72
+ MIT © Flowscripter
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./src/world.ts";
package/package.json CHANGED
@@ -1,6 +1,55 @@
1
1
  {
2
2
  "name": "@flowscripter/plugin-api",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.3.2",
4
+ "description": "Flowscripter plugin API: interfaces for command and component plugins",
5
+ "keywords": [
6
+ "api",
7
+ "bun",
8
+ "flowscripter",
9
+ "plugin"
10
+ ],
11
+ "homepage": "https://github.com/flowscripter/plugin-api#readme",
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/flowscripter/plugin-api.git"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "src",
20
+ "index.ts",
21
+ "README.md",
22
+ "LICENSE"
23
+ ],
24
+ "type": "module",
25
+ "main": "dist/index.js",
26
+ "module": "dist/index.js",
27
+ "types": "dist/index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "bun": "./index.ts",
31
+ "types": "./dist/index.d.ts",
32
+ "default": "./dist/index.js"
33
+ }
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "scripts": {
39
+ "build": "tsc -p tsconfig.build.json"
40
+ },
41
+ "devDependencies": {
42
+ "@types/bun": "^1.3.14",
43
+ "oxfmt": "0.57.0",
44
+ "oxlint": "1.72.0"
45
+ },
46
+ "peerDependencies": {
47
+ "typescript": "^6.0.3"
48
+ },
49
+ "typedocOptions": {
50
+ "readme": "none",
51
+ "exclude": [
52
+ "tests/**"
53
+ ]
54
+ }
55
+ }
package/src/world.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Logs out `World`.
3
+ */
4
+ export function world(): void {
5
+ console.info("World");
6
+ }