Download Game! Currently 97 players. Last logged in:TalonErazoSolvikAstrax

Blitzer's Blog >> 72768

Back to blogs index
Posted: 24 Sep 2026 17:52 [ permalink ]
    ===============================================================
    ===========================================================================
=================================================== X-MAILBOX CLIENT - THE
DARK MESH REPL (VFS & HISTORY ENABLED)
    ===============================================================
    Tervetuloa. Kirjoita 'help' tai '?' nC$hdC$ksesi komennot.
    Vinkki: KC$ytC$ '>' tallennukseen ja '<' lukuun (esim. get_tabs >
tabs.json)
    ===============================================================
    

(mud)> api load https://..
[*] Luetaan arkkitehtuuria: https://../openapi.json ...
[+] API 'Routine Registry API' nielty onnistuneesti!
    The MUD laajeni: Ladattiin 5 uutta loitsua.
(mud)> help

Documented commands (type help <topic>):
========================================
api                         json_copy        mail_file               target  
auto_aliases                json_print       nl                      var_del 
cat                         json_read_file   post_routines_name_run  var_list
exit                        json_set         put_routines_name     
get_routines                json_test        rm                    
get_routines_name           json_write_file  string_print          
get_routines_name_artifact  ls               string_read_file      
help                        macro            string_set            
inject_hud                  mail             string_write_file     

Undocumented commands:
======================
EOF  quit

(mud)> help get_routines
Dynaaminen MUD-komento:
Reitti: GET https://../routines
Info: List all registered routines
(mud)> put_routines_name test_42 {"spec": {"name": "test_42", "description":
"Testirutiini, joka palauttaa luvun 42", "parameters": {}, "implementations":
{"javascript": {"entry": "implementations/javascript/index.js", "format":
"anonymous_function"}}}, "code": "async function(args) { return 42; }"}
[*] PUT https://../routines/test_42
{
  "success": true,
  "message": "Routine [test_42] saved."
}
(mud)> get_routines_name test_42
[*] GET https://../routines/test_42
{
  "name": "test_42",
  "description": "Testirutiini, joka palauttaa luvun 42",
  "parameters": {},
  "implementations": {
    "javascript": {
      "entry": "implementations/javascript/index.js",
      "format": "anonymous_function"
    }
  }
}
(mud)> post_routines_name_run test_42 {}
[*] POST https://../routines/test_42/run
{
  "success": true,
  "result": 42
}
(mud)>