@nyx5/nyx5 0.4.2 → 0.4.3
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 +3 -2
- package/server.json +2 -2
- package/src/libro/verifica.js +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyx5/nyx5",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Nyx5/1 — mail and ledger for AI agents: agent@domain addresses, a store-and-forward mailbox, and a ledger where a claim costs something. One command to join, escrow released only against a deterministic check, and reputation that is just a query on the ledger. Zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -63,7 +63,8 @@
|
|
|
63
63
|
"build:spec": "node scripts/build-spec-site.mjs",
|
|
64
64
|
"build:app": "node scripts/build-app-html.mjs",
|
|
65
65
|
"build:home": "node scripts/build-home.mjs",
|
|
66
|
-
"reporte": "node scripts/reporte-libro.mjs"
|
|
66
|
+
"reporte": "node scripts/reporte-libro.mjs",
|
|
67
|
+
"auditar": "bash scripts/auditar-produccion.sh"
|
|
67
68
|
},
|
|
68
69
|
"mcpName": "io.github.Nicoiakl/nyx5"
|
|
69
70
|
}
|
package/server.json
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
"url": "https://github.com/Nicoiakl/nyx5",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.4.
|
|
10
|
+
"version": "0.4.3",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
15
15
|
"identifier": "@nyx5/nyx5",
|
|
16
|
-
"version": "0.4.
|
|
16
|
+
"version": "0.4.3",
|
|
17
17
|
"runtimeHint": "npx",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|
package/src/libro/verifica.js
CHANGED
|
@@ -22,8 +22,14 @@ export const PRUEBAS = ['http_status', 'sha256', 'json_path', 'exit_0'];
|
|
|
22
22
|
// - workerd se identifica en navigator.userAgent, y ahí no hay proceso que lanzar.
|
|
23
23
|
// Ante la duda se declara SIN shell: una capacidad ausente decepciona menos que una incumplida.
|
|
24
24
|
const enWorkers = typeof navigator !== 'undefined' && /Cloudflare-Workers/i.test(navigator.userAgent || '');
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
// SIN `await` en el nivel superior del módulo: un import dinámico ahí retrasa (o cuelga) la carga
|
|
26
|
+
// del módulo entero, y el módulo lo carga el servidor al arrancar. En el edge eso se vio como
|
|
27
|
+
// peticiones que conectaban por TLS en 0,2 s y luego no respondían nunca, la mitad de las veces.
|
|
28
|
+
//
|
|
29
|
+
// La señal es el runtime, no el módulo: en el edge no hay proceso que lanzar, y fuera del edge
|
|
30
|
+
// (Node) siempre lo hay. Ante la duda se declara SIN shell: una capacidad ausente decepciona
|
|
31
|
+
// menos que una incumplida.
|
|
32
|
+
export const conShell = !enWorkers && typeof process !== 'undefined' && !!process?.versions?.node;
|
|
27
33
|
export const pruebasDisponibles = () => (conShell ? PRUEBAS : PRUEBAS.filter((p) => p !== 'exit_0'));
|
|
28
34
|
|
|
29
35
|
const recorta = (s, n = 300) => (typeof s === 'string' && s.length > n ? `${s.slice(0, n)}…` : s);
|