@pasosdejesus/mpdj 0.2.13 → 0.2.14
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 +24 -14
- package/dist/SKILL.md +24 -14
- package/dist/next-server-probe.d.ts +1 -1
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -185,7 +185,7 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
185
185
|
./bin/m db:restore [name] # Restores from db/backups/<name>/ (no args: lists backups)
|
|
186
186
|
./bin/m db:structure:dump # Dumps schema to db/structure.sql AND regenerates db/db.d.ts
|
|
187
187
|
./bin/m db:structure:load # Loads schema from db/structure.sql into database
|
|
188
|
-
./bin/m
|
|
188
|
+
./bin/m eng:check # Verifies expected DB schemas (WBA, credentials, msip) + engine drift/self-containment
|
|
189
189
|
```
|
|
190
190
|
|
|
191
191
|
### DB Environment Variables
|
|
@@ -199,10 +199,20 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
199
199
|
### Engine Commands
|
|
200
200
|
|
|
201
201
|
```bash
|
|
202
|
+
./bin/m eng:list # Lists discovered engines (m-engine.json + packages/generated/*)
|
|
203
|
+
./bin/m eng:sync [<motor>] [--check] [--vendor] [--out <dir>] [--from-git <url>#<ref> [--path <subdir>]]
|
|
204
|
+
# Regenerates m-engine.generated.ts; --vendor copies the motor
|
|
205
|
+
# (local path or a git subtree, with PROVENANCE.json)
|
|
206
|
+
./bin/m eng:verify [<motor>] # Guards the generated file against the sources and the intention
|
|
207
|
+
./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 (by schema or version) + self-containment
|
|
209
|
+
./bin/m eng:setup [<motor>] [--check] # Generic: writes the motor migrations (db/migrations); msip alias
|
|
210
|
+
./bin/m eng:seed [<motor>] [--force] [--check] # Generic: loads db/seed.sql.gz; msip keeps its idempotent seed
|
|
211
|
+
./bin/m eng:msip:setup # Writes the `msip` base model migrations into the consumer
|
|
212
|
+
./bin/m eng:msip:seed [--file <sql>] [--force] [--check]
|
|
213
|
+
# Loads the base model seed (bundled subset; --file for the full dataset)
|
|
202
214
|
./bin/m eng:wba:setup # Creates migration files for web_event + transaction
|
|
203
215
|
./bin/m eng:credentials:setup # Creates migration files for credential tables
|
|
204
|
-
./bin/m eng:list # Lists available engines
|
|
205
|
-
./bin/m eng:check # Verifies engine schemas against DB
|
|
206
216
|
./bin/m eng:credentials:list-types [--network] # Lists credential types from contract
|
|
207
217
|
./bin/m eng:credentials:mint # Mints a credential to a wallet
|
|
208
218
|
./bin/m eng:credentials:register-type # Registers a new credential type
|
|
@@ -223,21 +233,21 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
223
233
|
> Wallets in `~/.m/wallets/` (chmod 600). Uses `NEXT_PUBLIC_RPC_URL` or `RPC_URL` from `.env`.
|
|
224
234
|
|
|
225
235
|
```bash
|
|
226
|
-
./bin/m
|
|
227
|
-
./bin/m
|
|
228
|
-
./bin/m
|
|
229
|
-
./bin/m
|
|
230
|
-
./bin/m
|
|
236
|
+
./bin/m eng:opwallet:generate --name <n> [--index 0] [--output-env <VAR>]
|
|
237
|
+
./bin/m eng:opwallet:import --name <n> [--mnemonic "..."] [--private-key 0x...] [--index 0]
|
|
238
|
+
./bin/m eng:opwallet:list [--name <n>] [--address-only] [--balance] [--network celoSepolia] [--rpc <url>]
|
|
239
|
+
./bin/m eng:opwallet:balance --name <n> [--token <addr>] [--network celoSepolia] [--rpc <url>]
|
|
240
|
+
./bin/m eng:opwallet:send --name <n> --to <addr|name> [--amount <eth>] [--token <addr>]
|
|
231
241
|
[--function "name(type)"] [--args "v1,v2"] [--data 0x...]
|
|
232
242
|
[--network celoSepolia] [--rpc <url>]
|
|
233
|
-
./bin/m
|
|
243
|
+
./bin/m eng:opwallet:approve --name <n> --token <addr> --spender <addr|name> --amount <n|max>
|
|
234
244
|
[--network celoSepolia] [--rpc <url>]
|
|
235
|
-
./bin/m
|
|
245
|
+
./bin/m eng:opwallet:call --name <n> --to <addr> --function "name(type)[(returnType)]" [--args "v1"]
|
|
236
246
|
[--network celoSepolia] [--rpc <url>]
|
|
237
|
-
./bin/m
|
|
238
|
-
./bin/m
|
|
239
|
-
./bin/m
|
|
240
|
-
./bin/m
|
|
247
|
+
./bin/m eng:opwallet:sign --name <n> --tx <json-file>
|
|
248
|
+
./bin/m eng:opwallet:broadcast --signed-tx <json> [--rpc <url>]
|
|
249
|
+
./bin/m eng:opwallet:keccak <string>
|
|
250
|
+
./bin/m eng:opwallet:derive --name <parent> --as <new-name> [--index 1]
|
|
241
251
|
```
|
|
242
252
|
|
|
243
253
|
### Project Commands
|
package/dist/SKILL.md
CHANGED
|
@@ -185,7 +185,7 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
185
185
|
./bin/m db:restore [name] # Restores from db/backups/<name>/ (no args: lists backups)
|
|
186
186
|
./bin/m db:structure:dump # Dumps schema to db/structure.sql AND regenerates db/db.d.ts
|
|
187
187
|
./bin/m db:structure:load # Loads schema from db/structure.sql into database
|
|
188
|
-
./bin/m
|
|
188
|
+
./bin/m eng:check # Verifies expected DB schemas (WBA, credentials, msip) + engine drift/self-containment
|
|
189
189
|
```
|
|
190
190
|
|
|
191
191
|
### DB Environment Variables
|
|
@@ -199,10 +199,20 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
199
199
|
### Engine Commands
|
|
200
200
|
|
|
201
201
|
```bash
|
|
202
|
+
./bin/m eng:list # Lists discovered engines (m-engine.json + packages/generated/*)
|
|
203
|
+
./bin/m eng:sync [<motor>] [--check] [--vendor] [--out <dir>] [--from-git <url>#<ref> [--path <subdir>]]
|
|
204
|
+
# Regenerates m-engine.generated.ts; --vendor copies the motor
|
|
205
|
+
# (local path or a git subtree, with PROVENANCE.json)
|
|
206
|
+
./bin/m eng:verify [<motor>] # Guards the generated file against the sources and the intention
|
|
207
|
+
./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 (by schema or version) + self-containment
|
|
209
|
+
./bin/m eng:setup [<motor>] [--check] # Generic: writes the motor migrations (db/migrations); msip alias
|
|
210
|
+
./bin/m eng:seed [<motor>] [--force] [--check] # Generic: loads db/seed.sql.gz; msip keeps its idempotent seed
|
|
211
|
+
./bin/m eng:msip:setup # Writes the `msip` base model migrations into the consumer
|
|
212
|
+
./bin/m eng:msip:seed [--file <sql>] [--force] [--check]
|
|
213
|
+
# Loads the base model seed (bundled subset; --file for the full dataset)
|
|
202
214
|
./bin/m eng:wba:setup # Creates migration files for web_event + transaction
|
|
203
215
|
./bin/m eng:credentials:setup # Creates migration files for credential tables
|
|
204
|
-
./bin/m eng:list # Lists available engines
|
|
205
|
-
./bin/m eng:check # Verifies engine schemas against DB
|
|
206
216
|
./bin/m eng:credentials:list-types [--network] # Lists credential types from contract
|
|
207
217
|
./bin/m eng:credentials:mint # Mints a credential to a wallet
|
|
208
218
|
./bin/m eng:credentials:register-type # Registers a new credential type
|
|
@@ -223,21 +233,21 @@ If you have direct terminal and filesystem access (Crush, Cursor, etc.), **do no
|
|
|
223
233
|
> Wallets in `~/.m/wallets/` (chmod 600). Uses `NEXT_PUBLIC_RPC_URL` or `RPC_URL` from `.env`.
|
|
224
234
|
|
|
225
235
|
```bash
|
|
226
|
-
./bin/m
|
|
227
|
-
./bin/m
|
|
228
|
-
./bin/m
|
|
229
|
-
./bin/m
|
|
230
|
-
./bin/m
|
|
236
|
+
./bin/m eng:opwallet:generate --name <n> [--index 0] [--output-env <VAR>]
|
|
237
|
+
./bin/m eng:opwallet:import --name <n> [--mnemonic "..."] [--private-key 0x...] [--index 0]
|
|
238
|
+
./bin/m eng:opwallet:list [--name <n>] [--address-only] [--balance] [--network celoSepolia] [--rpc <url>]
|
|
239
|
+
./bin/m eng:opwallet:balance --name <n> [--token <addr>] [--network celoSepolia] [--rpc <url>]
|
|
240
|
+
./bin/m eng:opwallet:send --name <n> --to <addr|name> [--amount <eth>] [--token <addr>]
|
|
231
241
|
[--function "name(type)"] [--args "v1,v2"] [--data 0x...]
|
|
232
242
|
[--network celoSepolia] [--rpc <url>]
|
|
233
|
-
./bin/m
|
|
243
|
+
./bin/m eng:opwallet:approve --name <n> --token <addr> --spender <addr|name> --amount <n|max>
|
|
234
244
|
[--network celoSepolia] [--rpc <url>]
|
|
235
|
-
./bin/m
|
|
245
|
+
./bin/m eng:opwallet:call --name <n> --to <addr> --function "name(type)[(returnType)]" [--args "v1"]
|
|
236
246
|
[--network celoSepolia] [--rpc <url>]
|
|
237
|
-
./bin/m
|
|
238
|
-
./bin/m
|
|
239
|
-
./bin/m
|
|
240
|
-
./bin/m
|
|
247
|
+
./bin/m eng:opwallet:sign --name <n> --tx <json-file>
|
|
248
|
+
./bin/m eng:opwallet:broadcast --signed-tx <json> [--rpc <url>]
|
|
249
|
+
./bin/m eng:opwallet:keccak <string>
|
|
250
|
+
./bin/m eng:opwallet:derive --name <parent> --as <new-name> [--index 1]
|
|
241
251
|
```
|
|
242
252
|
|
|
243
253
|
### Project Commands
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* (learn.tg, sivel3) lo provee.
|
|
10
10
|
*
|
|
11
11
|
* No se usa en runtime; existe solo para validar/ilustrar el mecanismo
|
|
12
|
-
* (ver
|
|
12
|
+
* (ver https://gitlab.com/pasosdeJesus/m/-/work_items/35 §11 D1).
|
|
13
13
|
*/
|
|
14
14
|
import type { NextRequest } from 'next/server';
|
|
15
15
|
export type ProbeHandler = (req: NextRequest) => Response;
|