@surnie/plugin-kit 0.0.0-stage → 0.2.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Gerard Camí
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,30 @@
1
- # Temporary Holding Version
1
+ # @surnie/plugin-kit
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
+ Kit para escribir plugins de [Surnie](https://surnie.app). **Contrato 0: inestable**: cambia sin aviso
4
+ hasta que el sistema de plugins esté terminado.
5
+
6
+ Para empezar un plugin: `npm create surnie-plugin@latest`.
7
+
8
+ ```bash
9
+ surnie-plugin keygen # tu clave de autor, cifrada con contraseña (una vez)
10
+ surnie-plugin pack # compila de forma reproducible: dos veces desde la fuente, iguales
11
+ surnie-plugin sign # firma y crea dist/<namespace>-<versión>.tgz
12
+ surnie-plugin inspect <.tgz> # qué lleva un paquete y quién lo firmó
13
+ surnie-plugin publish # la envía a la plataforma y trae su aprobación
14
+ surnie-plugin status # en qué punto está (y su aprobación, si ya está publicada)
15
+ ```
16
+
17
+ - `manifest.json`: lo que declara el plugin. Su esquema para el editor está en
18
+ `@surnie/plugin-kit/schema/manifest.schema.json`.
19
+ - `src/server.ts` → `server.js` y `src/ui.ts` o `src/ui.tsx` → `ui.js`, las dos opcionales. El plugin no
20
+ corre en Node: APIs web y paquetes de npm que no dependan de Node. La interfaz corre en el navegador,
21
+ aislada, y dibuja con los componentes de Surnie (`surnie-*`).
22
+ - `locales/<idioma>.json`: los textos del plugin; van al paquete juntos en `locales.json`.
23
+ - `package.json` dice con qué gestor y versión exacta se instala (`"packageManager": "pnpm@10.30.3"`;
24
+ npm, pnpm, yarn o bun) y el lockfile va siempre.
25
+
26
+ La clave del autor está en `~/.surnie/plugin-author-key.age` (o `SURNIE_PLUGIN_KEY`); la contraseña
27
+ se pide en la terminal o se toma de `SURNIE_PLUGIN_KEY_PASSWORD`. El token de publicador (`srnp_…`), de
28
+ `SURNIE_PUBLISH_TOKEN` o en la terminal, nunca como argumento.
29
+
30
+ Licencia MIT.