xypriss-swagger 1.0.27 → 1.0.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xypriss-swagger",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Auto-documentation plugin for XyPriss Router V2",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",
@@ -23,6 +23,14 @@
23
23
  "xypriss-security": "^2.1.13",
24
24
  "xypriss": "^9.7.1"
25
25
  },
26
+ "files": [
27
+ "dist/",
28
+ "template",
29
+ "LICENSE",
30
+ "README.md",
31
+ "package.json",
32
+ "xypriss.plugin.sig"
33
+ ],
26
34
  "devDependencies": {
27
35
  "@rollup/plugin-commonjs": "^29.0.2",
28
36
  "@rollup/plugin-json": "^6.1.0",
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "author_key": "ed25519:a58b17a3e46302dd3ae5538bc9b8b991c57f4c5fe2e7d8ac41803de818d947f4",
3
- "content_hash": "sha256:3ac1da2c14698f61d6dbc53a02fad706687a209cb1f3d33c54a9f3f93e4e1a41",
4
- "expires_at": "2027-04-21T08:14:34Z",
3
+ "content_hash": "sha256:a44a37a831884af6599e7363640fa2c8218d1a09094c50fba1902c22a4775919",
4
+ "expires_at": "2027-04-21T10:00:28Z",
5
5
  "min_version": "1.0.22",
6
6
  "name": "xypriss-swagger",
7
7
  "prev_sig_hash": "sha256:none",
8
- "signature": "base64:osCFae9BgpM5zkEXKoC2u8Mr69UEezVqeA/F0mOIG3wEwU4vXNonkkZpGfBvHXiZtmIjQDtys4b0KooQtWEMAQ==",
9
- "version": "1.0.26"
8
+ "signature": "base64:0Lh5MrctYXrLOr3ijC+tdFk+Sie1cXGXaImGx7coWnGzypRSpReOGgI7CwqTMz2JJLmrhjI94NwbNQSt5C6SBw==",
9
+ "version": "1.0.28"
10
10
  }
package/.env DELETED
@@ -1 +0,0 @@
1
- HELLO="SALUT DEPUIS SWAGGER"
package/.log DELETED
File without changes
package/.ts DELETED
@@ -1,14 +0,0 @@
1
- import * as crypto from "node:crypto";
2
- const privateKeyHex =
3
- "302e020100300506032b6570042204209e313d8086c485206e5f74673a77df2105929b6134e8acdd36445a0b931747fd";
4
- const privateKey = crypto.createPrivateKey({
5
- key: Buffer.from(privateKeyHex, "hex"),
6
- format: "der",
7
- type: "pkcs8",
8
- });
9
- const data =
10
- "xypriss-swagger:1.0.22:/home/idevo/Documents/projects/XyPriss/mods/swagger";
11
- const signature = crypto
12
- .sign(undefined, Buffer.from(data), privateKey)
13
- .toString("hex");
14
- console.log(signature);
package/README.md DELETED
@@ -1,62 +0,0 @@
1
- # XyPriss Swagger Plugin
2
-
3
- Auto-documentation execution plugin for XyPriss Router V2.
4
-
5
- ## Features
6
-
7
- - Provides automated API documentation via Swagger UI.
8
- - Securely sandboxed within the XyPriss ecosystem.
9
- - Caller-aware dependency injection with strict route filtering.
10
-
11
- ## Security Identity & Verification
12
-
13
- > [!IMPORTANT]
14
- > This plugin is secured with the XyPriss G3 Zero-Trust protocol. You MUST manually verify this Public Key during installation.
15
-
16
- **Developer ID (Public Key):**
17
- `ed25519:a58b17a3e46302dd3ae5538bc9b8b991c57f4c5fe2e7d8ac41803de818d947f4`
18
-
19
- ## Usage
20
-
21
- This module is designed to be loaded natively by the XyPriss plugin manager. Ensure that it is authorized in your `xypriss.config.jsonc` inside the `$internal` block, including the cryptographic signature.
22
-
23
- ```json
24
- {
25
- "$internal": {
26
- "xypriss-swagger": {
27
- "type": "plugin",
28
- "__meta__": {
29
- "path": "ROOT://"
30
- },
31
- "__xfs__": {
32
- "path": "CWD://"
33
- },
34
- "permissions": {
35
- "allowedHooks": [
36
- "PLG.OPS.AUXILIARY_SERVER",
37
- "PLG.SECURITY.ACCESS_CONFIGS"
38
- ],
39
- "policy": "allow"
40
- }
41
- }
42
- }
43
- }
44
- ```
45
-
46
- > [!NOTE]
47
- > For a deep dive into how XyPriss manages plugin isolation and filesystem access, see the [Workspace System Guide](../core/WORKSPACE_SYSTEM.md).
48
-
49
- ## Security & Permissions
50
-
51
- In order to properly analyze your project's codebase and generate accurate Swagger documentation, this plugin requires the `CWD://` (Current Working Directory) context permission.
52
-
53
- **Why is `CWD://` required?**
54
- The plugin needs to resolve the active execution directory to dynamically scan your route files, interpret comments, and compile the OpenAPI JSON structure correctly.
55
-
56
- **Is it safe?**
57
- 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.
58
-
59
- ## License
60
-
61
- Provided under the Nehonix Open Source License (NOSL) v1.0. Check the included LICENSE file for comprehensive terms.
62
-