Files
marqdo/public/stdlib/sys.mq.md
T
cflmyandCursor 2a9fceb51c Land OKF aliases, view SSE, workbook nav, and explicit parent ctor.
Complete the core agent roadmap: soft KB hits via Task aliases, EventBus-backed view streaming, D4 writeback/workbook navigation, and I3 explicit-super without implicit auto-super.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 11:58:26 +08:00

500 B


title: lib/sys — process description: Env, dotenv, cwd, args, exit, exec

lib/sys.mq.md


main

Import lib/sys.mq.md. Functions: env_get, env_set, load_dotenv(optional path), args, cwd, exit(code), exec(cmd), stream_publish(event). load_dotenv does not override existing variables. Under view, exit soft-fails instead of killing the process. stream_publish feeds the view SSE EventBus.

*d = > cwd *

*n = > len d *

  1. n > 0

print text=cwd-ok

print text=cwd-empty