@pasosdejesus/mpdj 0.3.0 → 0.3.1
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/SKILL.md +64 -26
- package/dist/SKILL.md +64 -26
- package/package.json +20 -11
package/SKILL.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# m CLI — AI Agent Guide
|
|
2
2
|
|
|
3
|
+
> Canonical command reference: [API.md](../../API.md) and `bin/m --help`; this file is the
|
|
4
|
+
> agent quick guide. Engine/vendoring details: [doc/engines.md](../../doc/engines.md).
|
|
5
|
+
|
|
3
6
|
This document is organized by audience:
|
|
4
7
|
|
|
5
8
|
| Section | Audience |
|
|
@@ -194,7 +197,6 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
194
197
|
|----------|---------|---------|
|
|
195
198
|
| `PG_TIMEOUT` | `30` | Migration timeout in seconds |
|
|
196
199
|
| `M_POST_MIGRATE` | — | Command to run after `db:migrate`/`db:rollback` |
|
|
197
|
-
```
|
|
198
200
|
|
|
199
201
|
### Engine Commands
|
|
200
202
|
|
|
@@ -205,8 +207,8 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
205
207
|
# (local path or a git subtree, with PROVENANCE.json)
|
|
206
208
|
./bin/m eng:verify [<motor>] # Guards the generated file against the sources and the intention
|
|
207
209
|
./bin/m eng:remove <motor> [--drop] # Removes a vendored copy (--drop also drops its model tables)
|
|
208
|
-
./bin/m eng:check # Schema vs DB + vendored drift (
|
|
209
|
-
./bin/m eng:setup [<motor>] [--check] # Generic: writes the motor migrations (db/migrations)
|
|
210
|
+
./bin/m eng:check # Schema vs DB + vendored drift (schema, version or content) + self-containment
|
|
211
|
+
./bin/m eng:setup [<motor>] [--check] # Generic: writes the motor migrations (db/migrations)
|
|
210
212
|
./bin/m eng:seed [<motor>] [--force] [--check] # Generic: loads db/seed.sql.gz; msip keeps its idempotent seed
|
|
211
213
|
./bin/m eng:msip:setup # Writes the `msip` base model migrations into the consumer
|
|
212
214
|
./bin/m eng:msip:seed [--file <sql>] [--force] [--check]
|
|
@@ -228,6 +230,34 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
228
230
|
./bin/m eng:credentials:set-site-uri # Sets base URI for a site (admin)
|
|
229
231
|
```
|
|
230
232
|
|
|
233
|
+
### Engines and private motors
|
|
234
|
+
|
|
235
|
+
`msip` and `wallet` are **private** engines: they are not published to npm. Consumers copy them with
|
|
236
|
+
`eng:sync --vendor` (from a checkout or `--from-git`). The generated copy is self-contained
|
|
237
|
+
(`catalog:`/`workspace:*`, `generated-<alias>`); `vendor()` regenerates its derived facts and the
|
|
238
|
+
copy **must not be edited by hand**. `PROVENANCE.json` stores `sha256` (content) and
|
|
239
|
+
`schemaSha256` (schema); `eng:check` reports schema, version or content drift.
|
|
240
|
+
|
|
241
|
+
**Never use the bare motor name with `--vendor`** (`eng:sync wallet --vendor`): it resolves the
|
|
242
|
+
already-vendored copy as the source and deletes that folder. Pass the motor path or use
|
|
243
|
+
`--from-git ... --path packages/<motor>`.
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
./bin/m eng:sync <ruta>/packages/<motor> --vendor --out packages/generated/<motor>
|
|
247
|
+
# or
|
|
248
|
+
./bin/m eng:sync --vendor --from-git <url>#<motor>-vX.Y.Z --path packages/<motor> --out packages/generated/<motor>
|
|
249
|
+
# after vendoring, in this order:
|
|
250
|
+
pnpm install # refresh the node_modules link
|
|
251
|
+
(cd packages/generated/<motor> && npx tsc -b) # or `make engines-dist`
|
|
252
|
+
./bin/m eng:verify
|
|
253
|
+
./bin/m eng:check
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
Skipping `pnpm install` makes the copy fail with `Cannot find module 'generated-<alias>'`.
|
|
257
|
+
|
|
258
|
+
Full recipe: [doc/engines.md](../../doc/engines.md) §12; release ritual:
|
|
259
|
+
[doc/version-bump.md](../../doc/version-bump.md).
|
|
260
|
+
|
|
231
261
|
### Wallet Commands
|
|
232
262
|
|
|
233
263
|
> Wallets in `~/.m/wallets/` (chmod 600). Uses `NEXT_PUBLIC_RPC_URL` or `RPC_URL` from `.env`.
|
|
@@ -255,6 +285,9 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
255
285
|
```bash
|
|
256
286
|
./bin/m m:create <name> [desc] # Scaffolds a new project from templates/
|
|
257
287
|
./bin/m m:update # Syncs project files with template improvements
|
|
288
|
+
./bin/m m:check [--json|--strict|--fix] # Recommended layout, catalog and workspace findings
|
|
289
|
+
./bin/m m:self-update [--check|--dry-run] # Installs/refreshes a user copy in ~/.m-cli
|
|
290
|
+
./bin/m m:man [--out <file>] # Generates the mdoc manual page
|
|
258
291
|
```
|
|
259
292
|
|
|
260
293
|
### Environment Commands
|
|
@@ -263,6 +296,7 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
263
296
|
./bin/m env:diff [base] [target] # Compare two .env files (default: ../.env.example vs ../.env).
|
|
264
297
|
# Reports missing, extra, different, and equal variables.
|
|
265
298
|
# Exits with code 1 if differences found.
|
|
299
|
+
./bin/m env:check [file...] # Warns about renamed ecosystem variables; informative only.
|
|
266
300
|
```
|
|
267
301
|
|
|
268
302
|
### Environment
|
|
@@ -278,9 +312,12 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
278
312
|
|
|
279
313
|
```bash
|
|
280
314
|
./bin/m contract:test [--fork-url <url>] [--fork-block <N>] [--verbose]
|
|
315
|
+
./bin/m contract:compile [--solc <path>|--solc-js <soljson>|--solc-version <v>]
|
|
316
|
+
./bin/m contract:checkdeploy [--json|--strict|--root <dir>|--network <name>]
|
|
281
317
|
```
|
|
282
|
-
Runs Hardhat-compatible tests on OpenBSD/adJ using `@ethereumjs/vm` (EDR replacement)
|
|
283
|
-
|
|
318
|
+
Runs Hardhat-compatible tests on OpenBSD/adJ using `@ethereumjs/vm` (EDR replacement);
|
|
319
|
+
`contract:compile` compiles without Hardhat and `contract:checkdeploy` validates deployment addresses.
|
|
320
|
+
See [doc/edr.md](../../doc/edr.md) and [issue #7](https://gitlab.com/pasosdeJesus/m/-/issues/7).
|
|
284
321
|
|
|
285
322
|
### E2E Test Commands
|
|
286
323
|
|
|
@@ -288,38 +325,39 @@ See [doc/edr.md](doc/edr.md) and [issue #7](https://gitlab.com/pasosdeJesus/m/-/
|
|
|
288
325
|
./bin/m test:e2e [pattern] # Run browser specs (falls back to smoke with warning if none)
|
|
289
326
|
./bin/m test:e2e --smoke # Run smoke tests only (HTTP, no Chrome)
|
|
290
327
|
./bin/m test:e2e --grep <filter> # Filter specs by name
|
|
328
|
+
./bin/m test:e2e:summary <log...> # Compare per-spec results across E2E logs
|
|
291
329
|
```
|
|
292
330
|
Runs E2E tests from `e2e/specs/` (browser) and `e2e/smoke/` (HTTP).
|
|
293
331
|
Without `--smoke`, searches specs/ first, then falls back to smoke/ with a warning.
|
|
294
332
|
Requires `puppeteer-core` installed as devDependency and `CHROME_PATH` set (OpenBSD: `/usr/local/bin/chromium`).
|
|
295
|
-
See [src/e2e/README.md](src/e2e/README.md).
|
|
333
|
+
See [src/e2e/README.md](../m/src/e2e/README.md).
|
|
296
334
|
|
|
297
335
|
### Package Exports (for programmatic use)
|
|
298
336
|
|
|
299
337
|
| Import | Purpose | Docs |
|
|
300
338
|
|--------|---------|------|
|
|
301
|
-
| `@pasosdejesus/m/i18n` | `createTranslator` — zero-dep i18n | [`src/i18n/README.md`](src/i18n/README.md) |
|
|
302
|
-
| `@pasosdejesus/m/wba` | `recordEvent`, `sendEvent` — analytics | [`src/wba/README.md`](src/wba/README.md) |
|
|
303
|
-
| `@pasosdejesus/m/wba/routes` | `makeEventHandler`, `makeSummaryHandler` — Next.js routes | [`src/wba/README.md`](src/wba/README.md) |
|
|
304
|
-
| `@pasosdejesus/m/debug` | `createLogger`, `DebugConsole` — MiniPay debug | [`src/debug/README.md`](src/debug/README.md) |
|
|
305
|
-
| `@pasosdejesus/m/test-utils` | Mocks for Kysely, viem, RainbowKit, Radix, fs | [`src/test-utils/README.md`](src/test-utils/README.md) |
|
|
306
|
-
| `@pasosdejesus/m/blockchain/credentials` | `mintCredential`, `getCredential` — NFTs | [`src/blockchain/README.md`](src/blockchain/README.md) |
|
|
307
|
-
| `@pasosdejesus/m/blockchain/credential-images` | SVG composition + PNG rendering | [`src/blockchain/README.md`](src/blockchain/README.md) |
|
|
308
|
-
| `@pasosdejesus/m/blockchain/ecosystem-addresses` | Shared contract + signer addresses | [`src/blockchain/README.md`](src/blockchain/README.md) |
|
|
309
|
-
| `@pasosdejesus/m/blockchain/slearn-info` | SlearnInfo React component | [`src/blockchain/README.md`](src/blockchain/README.md) |
|
|
310
|
-
| `@pasosdejesus/m/e2e` | Puppeteer + SIWE E2E test helpers | [`src/e2e/README.md`](src/e2e/README.md) |
|
|
311
|
-
| `@pasosdejesus/m/shadcn-components/ui/*` |
|
|
339
|
+
| `@pasosdejesus/m/i18n` | `createTranslator` — zero-dep i18n | [`src/i18n/README.md`](../m/src/i18n/README.md) |
|
|
340
|
+
| `@pasosdejesus/m/wba` | `recordEvent`, `sendEvent` — analytics | [`src/wba/README.md`](../m/src/wba/README.md) |
|
|
341
|
+
| `@pasosdejesus/m/wba/routes` | `makeEventHandler`, `makeSummaryHandler` — Next.js routes | [`src/wba/README.md`](../m/src/wba/README.md) |
|
|
342
|
+
| `@pasosdejesus/m/debug` | `createLogger`, `DebugConsole` — MiniPay debug | [`src/debug/README.md`](../m/src/debug/README.md) |
|
|
343
|
+
| `@pasosdejesus/m/test-utils` | Mocks for Kysely, viem, RainbowKit, Radix, fs | [`src/test-utils/README.md`](../m/src/test-utils/README.md) |
|
|
344
|
+
| `@pasosdejesus/m/blockchain/credentials` | `mintCredential`, `getCredential` — NFTs | [`src/blockchain/README.md`](../m/src/blockchain/README.md) |
|
|
345
|
+
| `@pasosdejesus/m/blockchain/credential-images` | SVG composition + PNG rendering | [`src/blockchain/README.md`](../m/src/blockchain/README.md) |
|
|
346
|
+
| `@pasosdejesus/m/blockchain/ecosystem-addresses` | Shared contract + signer addresses | [`src/blockchain/README.md`](../m/src/blockchain/README.md) |
|
|
347
|
+
| `@pasosdejesus/m/blockchain/slearn-info` | SlearnInfo React component | [`src/blockchain/README.md`](../m/src/blockchain/README.md) |
|
|
348
|
+
| `@pasosdejesus/m/e2e` | Puppeteer + SIWE E2E test helpers | [`src/e2e/README.md`](../m/src/e2e/README.md) |
|
|
349
|
+
| `@pasosdejesus/m/shadcn-components/ui/*` | 30 shadcn UI components | [`src/shadcn_components/README.md`](../m/src/shadcn_components/README.md) |
|
|
312
350
|
|
|
313
351
|
### Key Documentation
|
|
314
352
|
|
|
315
353
|
| File | Purpose |
|
|
316
354
|
|------|---------|
|
|
317
|
-
| [`ARCHITECTURE.md`](ARCHITECTURE.md) | Design decisions, platform constraints |
|
|
318
|
-
| [`CONTRIBUTING.md`](CONTRIBUTING.md) | Dev workflow, testing, package linking |
|
|
319
|
-
| [`API.md`](API.md) | Full CLI commands and package exports |
|
|
320
|
-
| [`doc/edr.md`](doc/edr.md) | Architecture, usage and design decisions |
|
|
321
|
-
| [`doc/wallet.md`](doc/wallet.md) | Wallet CLI deep dive |
|
|
322
|
-
| [`doc/engines.md`](doc/engines.md) | Engine system (WBA, credentials modules) |
|
|
323
|
-
| [`doc/migraciones-db-blockchain.md`](doc/migraciones-db-blockchain.md) | DB + blockchain migrations |
|
|
324
|
-
| [`doc/adding-command.md`](doc/adding-command.md) | How to add new CLI commands |
|
|
325
|
-
| [`REQ/README.md`](REQ/README.md) | Requirements management and config |
|
|
355
|
+
| [`ARCHITECTURE.md`](../../ARCHITECTURE.md) | Design decisions, platform constraints |
|
|
356
|
+
| [`CONTRIBUTING.md`](../../CONTRIBUTING.md) | Dev workflow, testing, package linking |
|
|
357
|
+
| [`API.md`](../../API.md) | Full CLI commands and package exports |
|
|
358
|
+
| [`doc/edr.md`](../../doc/edr.md) | Architecture, usage and design decisions |
|
|
359
|
+
| [`doc/wallet.md`](../../doc/wallet.md) | Wallet CLI deep dive |
|
|
360
|
+
| [`doc/engines.md`](../../doc/engines.md) | Engine system (WBA, credentials modules) |
|
|
361
|
+
| [`doc/migraciones-db-blockchain.md`](../../doc/migraciones-db-blockchain.md) | DB + blockchain migrations |
|
|
362
|
+
| [`doc/adding-command.md`](../../doc/adding-command.md) | How to add new CLI commands |
|
|
363
|
+
| [`REQ/README.md`](../../REQ/README.md) | Requirements management and config |
|
package/dist/SKILL.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# m CLI — AI Agent Guide
|
|
2
2
|
|
|
3
|
+
> Canonical command reference: [API.md](../../API.md) and `bin/m --help`; this file is the
|
|
4
|
+
> agent quick guide. Engine/vendoring details: [doc/engines.md](../../doc/engines.md).
|
|
5
|
+
|
|
3
6
|
This document is organized by audience:
|
|
4
7
|
|
|
5
8
|
| Section | Audience |
|
|
@@ -194,7 +197,6 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
194
197
|
|----------|---------|---------|
|
|
195
198
|
| `PG_TIMEOUT` | `30` | Migration timeout in seconds |
|
|
196
199
|
| `M_POST_MIGRATE` | — | Command to run after `db:migrate`/`db:rollback` |
|
|
197
|
-
```
|
|
198
200
|
|
|
199
201
|
### Engine Commands
|
|
200
202
|
|
|
@@ -205,8 +207,8 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
205
207
|
# (local path or a git subtree, with PROVENANCE.json)
|
|
206
208
|
./bin/m eng:verify [<motor>] # Guards the generated file against the sources and the intention
|
|
207
209
|
./bin/m eng:remove <motor> [--drop] # Removes a vendored copy (--drop also drops its model tables)
|
|
208
|
-
./bin/m eng:check # Schema vs DB + vendored drift (
|
|
209
|
-
./bin/m eng:setup [<motor>] [--check] # Generic: writes the motor migrations (db/migrations)
|
|
210
|
+
./bin/m eng:check # Schema vs DB + vendored drift (schema, version or content) + self-containment
|
|
211
|
+
./bin/m eng:setup [<motor>] [--check] # Generic: writes the motor migrations (db/migrations)
|
|
210
212
|
./bin/m eng:seed [<motor>] [--force] [--check] # Generic: loads db/seed.sql.gz; msip keeps its idempotent seed
|
|
211
213
|
./bin/m eng:msip:setup # Writes the `msip` base model migrations into the consumer
|
|
212
214
|
./bin/m eng:msip:seed [--file <sql>] [--force] [--check]
|
|
@@ -228,6 +230,34 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
228
230
|
./bin/m eng:credentials:set-site-uri # Sets base URI for a site (admin)
|
|
229
231
|
```
|
|
230
232
|
|
|
233
|
+
### Engines and private motors
|
|
234
|
+
|
|
235
|
+
`msip` and `wallet` are **private** engines: they are not published to npm. Consumers copy them with
|
|
236
|
+
`eng:sync --vendor` (from a checkout or `--from-git`). The generated copy is self-contained
|
|
237
|
+
(`catalog:`/`workspace:*`, `generated-<alias>`); `vendor()` regenerates its derived facts and the
|
|
238
|
+
copy **must not be edited by hand**. `PROVENANCE.json` stores `sha256` (content) and
|
|
239
|
+
`schemaSha256` (schema); `eng:check` reports schema, version or content drift.
|
|
240
|
+
|
|
241
|
+
**Never use the bare motor name with `--vendor`** (`eng:sync wallet --vendor`): it resolves the
|
|
242
|
+
already-vendored copy as the source and deletes that folder. Pass the motor path or use
|
|
243
|
+
`--from-git ... --path packages/<motor>`.
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
./bin/m eng:sync <ruta>/packages/<motor> --vendor --out packages/generated/<motor>
|
|
247
|
+
# or
|
|
248
|
+
./bin/m eng:sync --vendor --from-git <url>#<motor>-vX.Y.Z --path packages/<motor> --out packages/generated/<motor>
|
|
249
|
+
# after vendoring, in this order:
|
|
250
|
+
pnpm install # refresh the node_modules link
|
|
251
|
+
(cd packages/generated/<motor> && npx tsc -b) # or `make engines-dist`
|
|
252
|
+
./bin/m eng:verify
|
|
253
|
+
./bin/m eng:check
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
Skipping `pnpm install` makes the copy fail with `Cannot find module 'generated-<alias>'`.
|
|
257
|
+
|
|
258
|
+
Full recipe: [doc/engines.md](../../doc/engines.md) §12; release ritual:
|
|
259
|
+
[doc/version-bump.md](../../doc/version-bump.md).
|
|
260
|
+
|
|
231
261
|
### Wallet Commands
|
|
232
262
|
|
|
233
263
|
> Wallets in `~/.m/wallets/` (chmod 600). Uses `NEXT_PUBLIC_RPC_URL` or `RPC_URL` from `.env`.
|
|
@@ -255,6 +285,9 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
255
285
|
```bash
|
|
256
286
|
./bin/m m:create <name> [desc] # Scaffolds a new project from templates/
|
|
257
287
|
./bin/m m:update # Syncs project files with template improvements
|
|
288
|
+
./bin/m m:check [--json|--strict|--fix] # Recommended layout, catalog and workspace findings
|
|
289
|
+
./bin/m m:self-update [--check|--dry-run] # Installs/refreshes a user copy in ~/.m-cli
|
|
290
|
+
./bin/m m:man [--out <file>] # Generates the mdoc manual page
|
|
258
291
|
```
|
|
259
292
|
|
|
260
293
|
### Environment Commands
|
|
@@ -263,6 +296,7 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
263
296
|
./bin/m env:diff [base] [target] # Compare two .env files (default: ../.env.example vs ../.env).
|
|
264
297
|
# Reports missing, extra, different, and equal variables.
|
|
265
298
|
# Exits with code 1 if differences found.
|
|
299
|
+
./bin/m env:check [file...] # Warns about renamed ecosystem variables; informative only.
|
|
266
300
|
```
|
|
267
301
|
|
|
268
302
|
### Environment
|
|
@@ -278,9 +312,12 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
278
312
|
|
|
279
313
|
```bash
|
|
280
314
|
./bin/m contract:test [--fork-url <url>] [--fork-block <N>] [--verbose]
|
|
315
|
+
./bin/m contract:compile [--solc <path>|--solc-js <soljson>|--solc-version <v>]
|
|
316
|
+
./bin/m contract:checkdeploy [--json|--strict|--root <dir>|--network <name>]
|
|
281
317
|
```
|
|
282
|
-
Runs Hardhat-compatible tests on OpenBSD/adJ using `@ethereumjs/vm` (EDR replacement)
|
|
283
|
-
|
|
318
|
+
Runs Hardhat-compatible tests on OpenBSD/adJ using `@ethereumjs/vm` (EDR replacement);
|
|
319
|
+
`contract:compile` compiles without Hardhat and `contract:checkdeploy` validates deployment addresses.
|
|
320
|
+
See [doc/edr.md](../../doc/edr.md) and [issue #7](https://gitlab.com/pasosdeJesus/m/-/issues/7).
|
|
284
321
|
|
|
285
322
|
### E2E Test Commands
|
|
286
323
|
|
|
@@ -288,38 +325,39 @@ See [doc/edr.md](doc/edr.md) and [issue #7](https://gitlab.com/pasosdeJesus/m/-/
|
|
|
288
325
|
./bin/m test:e2e [pattern] # Run browser specs (falls back to smoke with warning if none)
|
|
289
326
|
./bin/m test:e2e --smoke # Run smoke tests only (HTTP, no Chrome)
|
|
290
327
|
./bin/m test:e2e --grep <filter> # Filter specs by name
|
|
328
|
+
./bin/m test:e2e:summary <log...> # Compare per-spec results across E2E logs
|
|
291
329
|
```
|
|
292
330
|
Runs E2E tests from `e2e/specs/` (browser) and `e2e/smoke/` (HTTP).
|
|
293
331
|
Without `--smoke`, searches specs/ first, then falls back to smoke/ with a warning.
|
|
294
332
|
Requires `puppeteer-core` installed as devDependency and `CHROME_PATH` set (OpenBSD: `/usr/local/bin/chromium`).
|
|
295
|
-
See [src/e2e/README.md](src/e2e/README.md).
|
|
333
|
+
See [src/e2e/README.md](../m/src/e2e/README.md).
|
|
296
334
|
|
|
297
335
|
### Package Exports (for programmatic use)
|
|
298
336
|
|
|
299
337
|
| Import | Purpose | Docs |
|
|
300
338
|
|--------|---------|------|
|
|
301
|
-
| `@pasosdejesus/m/i18n` | `createTranslator` — zero-dep i18n | [`src/i18n/README.md`](src/i18n/README.md) |
|
|
302
|
-
| `@pasosdejesus/m/wba` | `recordEvent`, `sendEvent` — analytics | [`src/wba/README.md`](src/wba/README.md) |
|
|
303
|
-
| `@pasosdejesus/m/wba/routes` | `makeEventHandler`, `makeSummaryHandler` — Next.js routes | [`src/wba/README.md`](src/wba/README.md) |
|
|
304
|
-
| `@pasosdejesus/m/debug` | `createLogger`, `DebugConsole` — MiniPay debug | [`src/debug/README.md`](src/debug/README.md) |
|
|
305
|
-
| `@pasosdejesus/m/test-utils` | Mocks for Kysely, viem, RainbowKit, Radix, fs | [`src/test-utils/README.md`](src/test-utils/README.md) |
|
|
306
|
-
| `@pasosdejesus/m/blockchain/credentials` | `mintCredential`, `getCredential` — NFTs | [`src/blockchain/README.md`](src/blockchain/README.md) |
|
|
307
|
-
| `@pasosdejesus/m/blockchain/credential-images` | SVG composition + PNG rendering | [`src/blockchain/README.md`](src/blockchain/README.md) |
|
|
308
|
-
| `@pasosdejesus/m/blockchain/ecosystem-addresses` | Shared contract + signer addresses | [`src/blockchain/README.md`](src/blockchain/README.md) |
|
|
309
|
-
| `@pasosdejesus/m/blockchain/slearn-info` | SlearnInfo React component | [`src/blockchain/README.md`](src/blockchain/README.md) |
|
|
310
|
-
| `@pasosdejesus/m/e2e` | Puppeteer + SIWE E2E test helpers | [`src/e2e/README.md`](src/e2e/README.md) |
|
|
311
|
-
| `@pasosdejesus/m/shadcn-components/ui/*` |
|
|
339
|
+
| `@pasosdejesus/m/i18n` | `createTranslator` — zero-dep i18n | [`src/i18n/README.md`](../m/src/i18n/README.md) |
|
|
340
|
+
| `@pasosdejesus/m/wba` | `recordEvent`, `sendEvent` — analytics | [`src/wba/README.md`](../m/src/wba/README.md) |
|
|
341
|
+
| `@pasosdejesus/m/wba/routes` | `makeEventHandler`, `makeSummaryHandler` — Next.js routes | [`src/wba/README.md`](../m/src/wba/README.md) |
|
|
342
|
+
| `@pasosdejesus/m/debug` | `createLogger`, `DebugConsole` — MiniPay debug | [`src/debug/README.md`](../m/src/debug/README.md) |
|
|
343
|
+
| `@pasosdejesus/m/test-utils` | Mocks for Kysely, viem, RainbowKit, Radix, fs | [`src/test-utils/README.md`](../m/src/test-utils/README.md) |
|
|
344
|
+
| `@pasosdejesus/m/blockchain/credentials` | `mintCredential`, `getCredential` — NFTs | [`src/blockchain/README.md`](../m/src/blockchain/README.md) |
|
|
345
|
+
| `@pasosdejesus/m/blockchain/credential-images` | SVG composition + PNG rendering | [`src/blockchain/README.md`](../m/src/blockchain/README.md) |
|
|
346
|
+
| `@pasosdejesus/m/blockchain/ecosystem-addresses` | Shared contract + signer addresses | [`src/blockchain/README.md`](../m/src/blockchain/README.md) |
|
|
347
|
+
| `@pasosdejesus/m/blockchain/slearn-info` | SlearnInfo React component | [`src/blockchain/README.md`](../m/src/blockchain/README.md) |
|
|
348
|
+
| `@pasosdejesus/m/e2e` | Puppeteer + SIWE E2E test helpers | [`src/e2e/README.md`](../m/src/e2e/README.md) |
|
|
349
|
+
| `@pasosdejesus/m/shadcn-components/ui/*` | 30 shadcn UI components | [`src/shadcn_components/README.md`](../m/src/shadcn_components/README.md) |
|
|
312
350
|
|
|
313
351
|
### Key Documentation
|
|
314
352
|
|
|
315
353
|
| File | Purpose |
|
|
316
354
|
|------|---------|
|
|
317
|
-
| [`ARCHITECTURE.md`](ARCHITECTURE.md) | Design decisions, platform constraints |
|
|
318
|
-
| [`CONTRIBUTING.md`](CONTRIBUTING.md) | Dev workflow, testing, package linking |
|
|
319
|
-
| [`API.md`](API.md) | Full CLI commands and package exports |
|
|
320
|
-
| [`doc/edr.md`](doc/edr.md) | Architecture, usage and design decisions |
|
|
321
|
-
| [`doc/wallet.md`](doc/wallet.md) | Wallet CLI deep dive |
|
|
322
|
-
| [`doc/engines.md`](doc/engines.md) | Engine system (WBA, credentials modules) |
|
|
323
|
-
| [`doc/migraciones-db-blockchain.md`](doc/migraciones-db-blockchain.md) | DB + blockchain migrations |
|
|
324
|
-
| [`doc/adding-command.md`](doc/adding-command.md) | How to add new CLI commands |
|
|
325
|
-
| [`REQ/README.md`](REQ/README.md) | Requirements management and config |
|
|
355
|
+
| [`ARCHITECTURE.md`](../../ARCHITECTURE.md) | Design decisions, platform constraints |
|
|
356
|
+
| [`CONTRIBUTING.md`](../../CONTRIBUTING.md) | Dev workflow, testing, package linking |
|
|
357
|
+
| [`API.md`](../../API.md) | Full CLI commands and package exports |
|
|
358
|
+
| [`doc/edr.md`](../../doc/edr.md) | Architecture, usage and design decisions |
|
|
359
|
+
| [`doc/wallet.md`](../../doc/wallet.md) | Wallet CLI deep dive |
|
|
360
|
+
| [`doc/engines.md`](../../doc/engines.md) | Engine system (WBA, credentials modules) |
|
|
361
|
+
| [`doc/migraciones-db-blockchain.md`](../../doc/migraciones-db-blockchain.md) | DB + blockchain migrations |
|
|
362
|
+
| [`doc/adding-command.md`](../../doc/adding-command.md) | How to add new CLI commands |
|
|
363
|
+
| [`REQ/README.md`](../../REQ/README.md) | Requirements management and config |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pasosdejesus/mpdj",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Extensión Pasos de Jesús para m CLI — marco cristiano, credenciales, requerimientos",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -13,39 +13,48 @@
|
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
15
|
"import": "./dist/index.js",
|
|
16
|
-
"types": "./dist/index.d.ts"
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.js"
|
|
17
18
|
},
|
|
18
19
|
"./blockchain": {
|
|
19
20
|
"import": "./dist/blockchain/index.js",
|
|
20
|
-
"types": "./dist/blockchain/index.d.ts"
|
|
21
|
+
"types": "./dist/blockchain/index.d.ts",
|
|
22
|
+
"default": "./dist/blockchain/index.js"
|
|
21
23
|
},
|
|
22
24
|
"./blockchain/credentials": {
|
|
23
25
|
"import": "./dist/blockchain/credentials.js",
|
|
24
|
-
"types": "./dist/blockchain/credentials.d.ts"
|
|
26
|
+
"types": "./dist/blockchain/credentials.d.ts",
|
|
27
|
+
"default": "./dist/blockchain/credentials.js"
|
|
25
28
|
},
|
|
26
29
|
"./blockchain/admin-credentials": {
|
|
27
30
|
"import": "./dist/blockchain/admin-credentials.js",
|
|
28
|
-
"types": "./dist/blockchain/admin-credentials.d.ts"
|
|
31
|
+
"types": "./dist/blockchain/admin-credentials.d.ts",
|
|
32
|
+
"default": "./dist/blockchain/admin-credentials.js"
|
|
29
33
|
},
|
|
30
34
|
"./blockchain/credential-images": {
|
|
31
35
|
"import": "./dist/blockchain/credential-images.js",
|
|
32
|
-
"types": "./dist/blockchain/credential-images.d.ts"
|
|
36
|
+
"types": "./dist/blockchain/credential-images.d.ts",
|
|
37
|
+
"default": "./dist/blockchain/credential-images.js"
|
|
33
38
|
},
|
|
34
39
|
"./blockchain/credential-cache": {
|
|
35
40
|
"import": "./dist/blockchain/credential-cache.js",
|
|
36
|
-
"types": "./dist/blockchain/credential-cache.d.ts"
|
|
41
|
+
"types": "./dist/blockchain/credential-cache.d.ts",
|
|
42
|
+
"default": "./dist/blockchain/credential-cache.js"
|
|
37
43
|
},
|
|
38
44
|
"./blockchain/ecosystem-addresses": {
|
|
39
45
|
"import": "./dist/blockchain/ecosystem-addresses.js",
|
|
40
|
-
"types": "./dist/blockchain/ecosystem-addresses.d.ts"
|
|
46
|
+
"types": "./dist/blockchain/ecosystem-addresses.d.ts",
|
|
47
|
+
"default": "./dist/blockchain/ecosystem-addresses.js"
|
|
41
48
|
},
|
|
42
49
|
"./blockchain/slearn-info": {
|
|
43
50
|
"import": "./dist/blockchain/SlearnInfo.js",
|
|
44
|
-
"types": "./dist/blockchain/SlearnInfo.d.ts"
|
|
51
|
+
"types": "./dist/blockchain/SlearnInfo.d.ts",
|
|
52
|
+
"default": "./dist/blockchain/SlearnInfo.js"
|
|
45
53
|
},
|
|
46
54
|
"./test-utils": {
|
|
47
55
|
"import": "./dist/test-utils/blockchain-mocks.js",
|
|
48
|
-
"types": "./dist/test-utils/blockchain-mocks.d.ts"
|
|
56
|
+
"types": "./dist/test-utils/blockchain-mocks.d.ts",
|
|
57
|
+
"default": "./dist/test-utils/blockchain-mocks.js"
|
|
49
58
|
}
|
|
50
59
|
},
|
|
51
60
|
"files": [
|
|
@@ -55,7 +64,7 @@
|
|
|
55
64
|
"REQ"
|
|
56
65
|
],
|
|
57
66
|
"peerDependencies": {
|
|
58
|
-
"@pasosdejesus/m": "
|
|
67
|
+
"@pasosdejesus/m": "^0.36.4",
|
|
59
68
|
"next": ">=15.0.0",
|
|
60
69
|
"react": ">=18.0.0",
|
|
61
70
|
"vitest": ">=2.1.9"
|