xypriss-swagger 1.0.36 → 1.0.37

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 CHANGED
@@ -41,7 +41,6 @@ const server = createServer({
41
41
  },
42
42
  });
43
43
 
44
-
45
44
  server.start();
46
45
  ```
47
46
 
@@ -62,6 +61,10 @@ Ensure the plugin is authorized in your `xypriss.config.jsonc`:
62
61
  },
63
62
  "permissions": {
64
63
  "allowedHooks": [
64
+ "PLG.HTTP.ON_REQUEST",
65
+ "PLG.SECURITY.ACCESS_SENSITIVE_DATA",
66
+ "PLG.LIFECYCLE.REGISTER",
67
+ "PLG.LIFECYCLE.SERVER_START",
65
68
  "PLG.OPS.AUXILIARY_SERVER",
66
69
  "PLG.SECURITY.ACCESS_CONFIGS",
67
70
  ],
@@ -131,13 +134,27 @@ server.get(
131
134
 
132
135
  ## Security & Permissions
133
136
 
134
- In order to properly analyze your project's codebase and generate accurate Swagger documentation, this plugin requires the `CWD://` (Current Working Directory) context permission.
137
+ In order to properly function and integrate safely into your Zero-Trust XyPriss environment, this plugin requires the following privileges to be strictly allowed in your `xypriss.config.jsonc`:
138
+
139
+ ### Filesystem Context (`CWD://`)
140
+
141
+ **Why?** The plugin needs to resolve the active execution directory to dynamically scan your route files, interpret comments, and compile the OpenAPI JSON structure correctly.
142
+ **Is it safe?** Absolutely. The plugin performs exclusive read-only operations targeting your router files, safely ignoring sensitive `.env` or credentials.
143
+
144
+ ### Lifecycle & Auxiliary Hooks
145
+
146
+ The Swagger plugin operates as an independent subsystem connected to the main server loop:
147
+
148
+ - `PLG.LIFECYCLE.REGISTER`: Required to negotiate initialization with the core engine.
149
+ - `PLG.LIFECYCLE.SERVER_START`: Allows the plugin to participate safely in the startup sequence.
150
+ - `PLG.OPS.AUXILIARY_SERVER`: **Crucial.** Permits the deployment of the isolated documentation HTTP server without exposing your main server loop.
151
+
152
+ ### Security Access Hooks
135
153
 
136
- **Why is `CWD://` required?**
137
- The plugin needs to resolve the active execution directory to dynamically scan your route files, interpret comments, and compile the OpenAPI JSON structure correctly.
154
+ - `PLG.HTTP.ON_REQUEST`: Used strictly on the isolated auxiliary server to mount the documentation UI and manage static assets.
155
+ - `PLG.SECURITY.ACCESS_SENSITIVE_DATA` & `PLG.SECURITY.ACCESS_CONFIGS`: Required for the plugin to introspect the router architecture and extract the internal metadata needed for documentation auto-generation.
138
156
 
139
- **Is it safe?**
140
- Absolutely. While `CWD://` grants broad access to the project root, the XyPriss Swagger plugin is an official, strictly audited core module. It **exclusively** performs safe, read-only operations targeting your router files. It explicitly ignores sensitive system files (e.g., `.env`, credentials) and does not leak or alter your business logic. Your environment remains completely secure.
157
+ By explicitly providing these permissions, you maintain complete Zero-Trust authority over what the plugin is allowed to do, preventing silent system overrides or unwanted network binding.
141
158
 
142
159
  ## License
143
160
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xypriss-swagger",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Auto-documentation plugin for XyPriss Router V2",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",
@@ -1,10 +1,10 @@
1
1
  --- XYPRISS SIGNATURE (G3) ---
2
- Manifest: xypriss-swagger@1.0.36
3
- Min-Engine: 1.0.29
4
- Fingerprint: sha256:8eac1f742c803956f15dd5c25b62f6ae4ef6831cd4f1282cd307527c0a6a834d
2
+ Manifest: xypriss-swagger@1.0.37
3
+ Min-Engine: 1.0.35
4
+ Fingerprint: sha256:53f24df6e325461b5f45bdf2c1ad7dab95e6c904979af8ffc396507a543ded56
5
5
  Identity: ed25519:a58b17a3e46302dd3ae5538bc9b8b991c57f4c5fe2e7d8ac41803de818d947f4
6
- Expires: 2027-04-22T11:51:22Z
6
+ Expires: 2027-04-22T20:54:37Z
7
7
  Revision: sha256:none
8
8
  --- BEGIN CRYPTOGRAPHIC PROOF ---
9
- base64:QoQVvBkDNRa08k5tnK9VQxq0F9HQYM8E81Mzzvx1ij9iSEmxipKRQKIH8svQzLes/XOOSmKaMOc3I+QYrmEhBA==
9
+ base64:d2rumcZZmiZpCpc1TQbA1RmMnDgppcYNSv+LHuZ+SZXF0NHXotKdQeroTQaCEnqxjvRJEXyPjZsJNgt4RW8AAw==
10
10
  --- END XYPRISS SIGNATURE ---