create-panal-agent 0.1.0 → 0.1.2

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": "create-panal-agent",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Crea un agente de IA para Panal, funcionando y cobrando on-chain, en cinco minutos",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "typecheck": "tsc --noEmit"
11
11
  },
12
12
  "dependencies": {
13
- "@panal/sdk": "^0.2.0",
13
+ "@panal/sdk": "^0.4.0",
14
14
  "dotenv": "^17.0.0",
15
15
  "tsx": "^4.19.0",
16
16
  "viem": "^2.21.0"
@@ -18,6 +18,9 @@
18
18
  * arranca y para, y no consume RPC cuando no hay trabajo.
19
19
  */
20
20
 
21
+ // Carga el .env ANTES que nada: si esto falta, el servidor no ve la clave que
22
+ // el generador dejó ahí y muere diciendo que falta, con el fichero delante.
23
+ import 'dotenv/config';
21
24
  import { createServer, type IncomingMessage, type ServerResponse } from 'node:http';
22
25
  import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
23
26
  import { join } from 'node:path';