1.2.0 @ 2026/09/08
·
115 commits
to master
since this release
AutoJs6 Node.js Runtime 1.2.0 · Node.js 24.5.0 · versionCode 105
发布于 / Published on 2026-09-08。支持 / Supported ABIs: arm64-v8a, armeabi-v7a, x86_64; universal 包含全部三种架构 / includes all three architectures.
更新内容
新增mediainfofacade 新增capabilities(), 且其可调用入口与read()支持显式选择插件快照 v1/v2; 省略 schema 时继续返回原有宿主 Node v1 快照新增新增 module-source provider v3, 通过绑定精确字节数与 SHA-256 的有界 PFD 按需编译运行中创建的.ts/.mts/.cts, 使用独立 30 s 编译预算, 稳定拒绝路径逃逸, 符号链接和歧义, 并保留宿主 TypeScript 诊断与 Source Map 栈映射新增在 Android 应用权限范围内启用桌面式文件系统访问, 同时继续拒绝/proc、/sys、/dev新增支持accessibility.swipe与accessibility.gesture, 并由独立能力accessibility.gesture门禁新增支持覆盖排队与执行全过程的脚本超时, 超时返回ERR_AUTOJS6_SCRIPT_TIMEOUT; 未指定超时时仍可无限运行新增默认启用dgram(UDP) 与http2, 并对trace_events返回明确的禁用错误新增支持 Debug 构建显式开启本地inspector调试, 仅监听 localhost 并通过adb forward连接新增新增受宿主插件权限保护的无界面激活入口, 补齐插件中心说明并禁用应用数据备份修复raw TypeScript 在宿主未提供编译产物时改为 fail-closed, 补齐快照动态 import 映射并归一化生成/导入栈帧修复以 V8 native linker 替换快照式 partial ESM adapter, 修复循环 re-export 中可变导出不会实时更新的问题修复修复 AutoJs6 兼容 facade 的 ESM 导入与不存在的 TypeScript 后缀探测, 同时保持已安装 npm 包优先优化删除基于 regex 的 legacy TypeScript 类型剥离 fallback 及其请求开关, raw.ts/.mts/.cts现始终要求宿主编译产物优化对齐宿主/插件 v2 合约, 能力清单与 plugin-only 运行时职责边界优化将 Node.js 样例, TypeScript 类型声明, 项目向导, 运行时默认值及宿主对齐校验统一归属插件仓库, 移除宿主侧 Gradle 开关与重复开发资产优化实测 npm 生态扩展到 15 包, 新增 axios、express 及 ESM-only 包 nanoid、p-limit、yocto-queue优化以executionMode请求字段作为生命周期模式的权威来源, 将无实际作用的runtimeAdapter标记为废弃优化移除十个仅打印固定状态的历史样例, 并在类型声明中标明截图、图像分析和录音尚未提供宿主 provider
Changes
FeatureAddedcapabilities()to themediainfofacade and explicit plugin snapshot v1/v2 selection to its callable entry andread(); omitting schema continues to return the existing host-owned Node v1 snapshotFeatureAdded module-source provider v3 for on-demand compilation of runtime-created.ts/.mts/.ctsthrough byte- and SHA-256-bound PFDs, with an independent 30 s compilation budget, stable path/symlink/ambiguity rejection, and host TypeScript diagnostics plus Source Map stack mappingFeatureEnabled desktop-like filesystem access within Android app permissions while keeping/proc,/sys, and/devdeniedFeatureAddedaccessibility.swipeandaccessibility.gesturebehind the dedicatedaccessibility.gesturecapabilityFeatureAdded script timeouts covering queueing and execution, returningERR_AUTOJS6_SCRIPT_TIMEOUT; scripts without a timeout can still run indefinitelyFeatureEnableddgram(UDP) andhttp2by default, with an explicit disabled error fortrace_eventsFeatureAdded explicitly enabled localinspectordebugging in Debug builds, listening only on localhost and connecting throughadb forwardFeatureAdded a host-permission-protected activation entry without a UI, completed plugin-center descriptions, and disabled application data backupFixMade raw TypeScript fail closed unless the host supplies compiler output, mapped snapshot dynamic imports, and normalized generated/imported stack framesFixReplaced the snapshot-based partial ESM adapter with the V8 native linker, fixing mutable exports that failed to update through cyclic re-exportsFixFixed ESM imports of AutoJs6 compatibility facades and missing TypeScript suffix probes while preserving installed npm package precedenceImprovementRemoved the legacy regex-based TypeScript erasure fallback and its request switch; raw.ts/.mts/.ctsnow always require host compiler outputImprovementAligned the v2 host/plugin contract, capability manifests, and plugin-only runtime responsibility boundaryImprovementCentralized Node.js examples, TypeScript declarations, the project wizard, runtime defaults, and host-alignment checks in the plugin repository, removing host-side Gradle switches and duplicate development assetsImprovementExpanded verified npm coverage to 15 packages, adding axios, express, and the ESM-only packages nanoid, p-limit, and yocto-queueImprovementMade theexecutionModerequest field authoritative for lifecycle mode and deprecated the no-opruntimeAdapterfieldImprovementRemoved ten historical examples that only printed fixed status values and marked screen capture, image analysis, and recording declarations as lacking host providers