Add object primitives, official ext/llm, and HTTPS/dotenv platform.
Introduce # objects with ## methods (handles + ` x.method `), ship OpenAI-compatible ext/llm, and upgrade net/sys for HTTPS headers and dotenv loading. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b974f10c6e
commit
b00b018056
55 files changed
+1741
-291
No files matched your search
@@ -1,12 +1,12 @@
|
||||
---
|
||||
title: lib/net — HTTP
|
||||
description: Minimal HTTP client and URL encode
|
||||
title: lib/net — HTTP(S)
|
||||
description: Minimal HTTP(S) client and URL encode
|
||||
> lib/net.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
Import lib/net.mq.md. Functions: http_get(url) returns map status/body, http_post(url, body), url_encode(text). v1 speaks cleartext http only.
|
||||
Import lib/net.mq.md. Functions: http_get(url), http_post(url, body), http_request(method, url), url_encode(text). HTTPS and optional headers= map are supported. Default post content-type is JSON.
|
||||
|
||||
*`e` = > url_encode text=hello world *
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@ title: Utility module
|
||||
description: Imported by main; bold is a return value
|
||||
---
|
||||
|
||||
# add_one
|
||||
## add_one
|
||||
- n
|
||||
|
||||
**`n` + 1**
|
||||
|
||||
# greet
|
||||
## greet
|
||||
- who
|
||||
|
||||
> print text=Hello, `who`!
|
||||
@@ -3,12 +3,12 @@ title: 工具模块
|
||||
description: 被 main 导入;粗体为返回值
|
||||
---
|
||||
|
||||
# 加一
|
||||
## 加一
|
||||
- n
|
||||
|
||||
**`n` + 1**
|
||||
|
||||
# 问候
|
||||
## 问候
|
||||
- 谁
|
||||
|
||||
> 打印 内容=你好,`谁`!
|
||||
Reference in new issue
Block a user