@termix-ssh/plugin-sdk 1.0.2 → 1.0.5

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/LICENSE +202 -0
  3. package/README.md +4 -2
  4. package/cli/commands/build.mjs +44 -19
  5. package/cli/commands/dev.mjs +1 -1
  6. package/cli/commands/migrations.mjs +2 -2
  7. package/cli/commands/openapi.mjs +39 -0
  8. package/cli/commands/validate.mjs +72 -0
  9. package/cli/index.mjs +3 -0
  10. package/cli/lib/css-classes.mjs +37 -0
  11. package/dist/changelog.d.ts +3 -1
  12. package/dist/changelog.js +12 -2
  13. package/dist/db.d.ts +1 -1
  14. package/dist/db.js +1 -1
  15. package/dist/ddl.js +4 -1
  16. package/dist/docs.d.ts +28 -0
  17. package/dist/docs.js +39 -0
  18. package/dist/frontend.d.ts +17 -0
  19. package/dist/frontend.js +8 -0
  20. package/dist/host/{chunk-XKMRKQFN.js → chunk-KOOUKYW3.js} +1 -1
  21. package/dist/host/{chunk-LKYAVM4T.js → chunk-OEOKIKXC.js} +18 -9
  22. package/dist/host/{chunk-SS43S6VI.js → chunk-VETPF5WI.js} +478 -431
  23. package/dist/host/core-classes.json +1 -0
  24. package/dist/host/{linked-server-DW5P3NLZ.js → linked-server-RWBK427T.js} +1 -1
  25. package/dist/host/{rbac-api-JKISXZEP.js → rbac-api-UJGGTQVA.js} +1 -1
  26. package/dist/host/testing-host.js +3 -3
  27. package/dist/host/types/src/types/credential-sidebar-preferences.d.ts +1 -1
  28. package/dist/host/types/src/ui/api/plugins-api.d.ts +6 -0
  29. package/dist/host/types/src/ui/components/docs-link.d.ts +25 -0
  30. package/dist/host/types/src/ui/components/panel-layout.d.ts +3 -1
  31. package/dist/host/types/src/ui/lib/docs.d.ts +10 -0
  32. package/dist/host/types/src/ui/lib/error-message.d.ts +1 -1
  33. package/dist/host/types/src/ui/main-axios.d.ts +1 -2
  34. package/dist/host/types/src/ui/plugin-host/sdk-ui.d.ts +1 -0
  35. package/dist/host/ui.js +18 -8
  36. package/dist/host/{use-permissions-5CZEA3P4.js → use-permissions-P3DC7ZDR.js} +1 -1
  37. package/dist/host-commands.js +1 -1
  38. package/dist/manifest.d.ts +7 -1
  39. package/dist/manifest.js +48 -1
  40. package/dist/openapi.d.ts +43 -0
  41. package/dist/openapi.js +60 -0
  42. package/dist/testing/setup.js +1 -0
  43. package/package.json +22 -1
  44. package/schema/manifest.schema.json +21 -0
@@ -85,6 +85,27 @@
85
85
  "items": { "type": "string", "minLength": 1, "maxLength": 160 },
86
86
  "description": "Short lines listing what the plugin does, shown on its page."
87
87
  },
88
+ "docs": {
89
+ "type": "string",
90
+ "pattern": "^https://",
91
+ "description": "Where the plugin's docs live. Shown as a Documentation link in Termix."
92
+ },
93
+ "env": {
94
+ "type": "array",
95
+ "description": "Environment variables the plugin reads, listed in its docs.",
96
+ "items": {
97
+ "type": "object",
98
+ "additionalProperties": false,
99
+ "required": ["name", "description"],
100
+ "properties": {
101
+ "name": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]{0,63}$" },
102
+ "description": { "type": "string", "minLength": 1, "maxLength": 300 },
103
+ "default": { "type": "string" },
104
+ "required": { "type": "boolean" },
105
+ "secret": { "type": "boolean" }
106
+ }
107
+ }
108
+ },
88
109
  "engine": {
89
110
  "type": "object",
90
111
  "additionalProperties": false,