create-yeow 0.4.2 → 0.4.3
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/package.json
CHANGED
|
Binary file
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
| 进阶 · 调度器与任务 | `https://yexin.wiki/yeow/v1/advanced/scheduler` | 三级优先级调度器(时间片预算/自动降级/空闲自旋)、任务配置(TaskOptions)、异步 vs 同步、手动分片、调度器设计(队列/降级算法/空队自旋) |
|
|
21
21
|
| 进阶 · 事件与回调 | `https://yexin.wiki/yeow/v1/advanced/events` | 事件桥(EventBridge):并发/串行、事件数据、处理器操作与模式选择、事件重入死锁 |
|
|
22
22
|
| 进阶 · 生命周期与热重载 | `https://yexin.wiki/yeow/v1/advanced/lifecycle` | onInit/onLoad/onUnload、统一回调系统、热重载(强杀机制:原生中断 + 实体重建)、生产 /yeow reload/unload |
|
|
23
|
-
| 进阶 · 环境能力与通道 | `https://yexin.wiki/yeow/v1/advanced/channels` | $
|
|
23
|
+
| 进阶 · 环境能力与通道 | `https://yexin.wiki/yeow/v1/advanced/channels` | $send 封装(底层桥 $_send 为内部实现,闭包持有不外露)、各消息通道说明(运行时配置指向 /operations) |
|
|
24
24
|
| 进阶 · 服务机制 | `https://yexin.wiki/yeow/v1/advanced/service` | Plugin Service(插件间通信)与 Native Service(原生扩展)的机制(API 用法见 /api/service) |
|
|
25
25
|
| 关于 Yeow | `https://yexin.wiki/yeow/v1/advanced/about` | 关于 Yeow |
|
|
26
26
|
| 编写依赖包 | `https://yexin.wiki/yeow/v1/package-author` | 将共享逻辑与资源封装为 npm 依赖包:assets 命名空间、依赖项识别、构建自动处理(多副本共存/权限合并/native 清单) |
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
| Command | `https://yexin.wiki/yeow/v1/api/command` | 命令注册 + Tab 补全(含 yeow-command 重载式命令 Command.create 与模式化参数) |
|
|
56
56
|
| ItemStack | `https://yexin.wiki/yeow/v1/api/item` | 物品纯数据描述符:type/amount/meta(显示名/附魔/耐久/染色/药水/头颅/属性修饰符);构造工具(create/clone/equals);值语义(快照,不绑定真实物品) |
|
|
57
57
|
| Service | `https://yexin.wiki/yeow/v1/api/service` | 插件间服务(registerService/request/subscribe/publish)与原生服务(registerNativeService,spawn 子进程 + TCP 通信) |
|
|
58
|
-
| HTTP | `https://yexin.wiki/yeow/v1/api/http` | 底层 HTTP
|
|
58
|
+
| HTTP | `https://yexin.wiki/yeow/v1/api/http` | 底层 HTTP 客户端:`request`(异步,请求/响应体二进制与 fs 同语义、encoding/timeout 可选)、全局 `fetch`(text/json 按需解码 + base64/bytes) |
|
|
59
59
|
| HTTP Server | `https://yexin.wiki/yeow/v1/api/http-server` | 高层 `createServer`(yeow-server):洋葱中间件、路由、mount/mountAssets 静态挂载、二进制响应(Uint8Array/encoding)、返回对象自动 JSON、资源包下载闭环 |
|
|
60
60
|
| Worker | `https://yexin.wiki/yeow/v1/api/worker` | 虚拟插件(独立线程):createWorker(仅注册)/load/unload/reload、双向 postMessage、Worker 侧 onMessage/postMessage;共享数据目录/权限、禁嵌套、/yeow 不覆盖 |
|
|
61
61
|
| FS | `https://yexin.wiki/yeow/v1/api/fs` | 文件系统:plugin/server/outer 三级(路径安全)、读写/追加/二进制、目录操作、systemPaths、path 工具 |
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
| Log | `https://yexin.wiki/yeow/v1/specifications/message/log` | log 通道:日志消息格式 |
|
|
91
91
|
| Lifecycle | `https://yexin.wiki/yeow/v1/specifications/message/lifecycle` | lifecycle 通道:unloadDone 确认、gc-collect 资源回收 |
|
|
92
92
|
| Debug | `https://yexin.wiki/yeow/v1/specifications/message/debug` | debug 通道:reportError 错误上报、ping-pong 心跳 |
|
|
93
|
+
| Util | `https://yexin.wiki/yeow/v1/specifications/message/util` | util 通道:gzip 压缩/解压(一次性与流式分块)、UTF-8 ↔ 字节转换(encode.utf8/decode.utf8) |
|
|
93
94
|
| Worker | `https://yexin.wiki/yeow/v1/specifications/message/worker` | worker 通道:create(仅注册)/load/unload/post/reload/postToMain 消息格式、生命周期、origin 错误字段、约束(禁嵌套/共享数据与权限) |
|
|
94
95
|
|
|
95
96
|
### 任务类型(/v1/specifications/task/)
|