Skip to content

1.2.0 @ 2026/09/08

Choose a tag to compare

@SuperMonster003 SuperMonster003 released this 08 Sep 04:27
· 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.

更新内容

  • 新增 mediainfo facade 新增 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.swipeaccessibility.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

  • Feature Added capabilities() to the mediainfo facade and explicit plugin snapshot v1/v2 selection to its callable entry and read(); omitting schema continues to return the existing host-owned Node v1 snapshot
  • Feature Added module-source provider v3 for on-demand compilation of runtime-created .ts/.mts/.cts through 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 mapping
  • Feature Enabled desktop-like filesystem access within Android app permissions while keeping /proc, /sys, and /dev denied
  • Feature Added accessibility.swipe and accessibility.gesture behind the dedicated accessibility.gesture capability
  • Feature Added script timeouts covering queueing and execution, returning ERR_AUTOJS6_SCRIPT_TIMEOUT; scripts without a timeout can still run indefinitely
  • Feature Enabled dgram (UDP) and http2 by default, with an explicit disabled error for trace_events
  • Feature Added explicitly enabled local inspector debugging in Debug builds, listening only on localhost and connecting through adb forward
  • Feature Added a host-permission-protected activation entry without a UI, completed plugin-center descriptions, and disabled application data backup
  • Fix Made raw TypeScript fail closed unless the host supplies compiler output, mapped snapshot dynamic imports, and normalized generated/imported stack frames
  • Fix Replaced the snapshot-based partial ESM adapter with the V8 native linker, fixing mutable exports that failed to update through cyclic re-exports
  • Fix Fixed ESM imports of AutoJs6 compatibility facades and missing TypeScript suffix probes while preserving installed npm package precedence
  • Improvement Removed the legacy regex-based TypeScript erasure fallback and its request switch; raw .ts/.mts/.cts now always require host compiler output
  • Improvement Aligned the v2 host/plugin contract, capability manifests, and plugin-only runtime responsibility boundary
  • Improvement Centralized 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 assets
  • Improvement Expanded verified npm coverage to 15 packages, adding axios, express, and the ESM-only packages nanoid, p-limit, and yocto-queue
  • Improvement Made the executionMode request field authoritative for lifecycle mode and deprecated the no-op runtimeAdapter field
  • Improvement Removed ten historical examples that only printed fixed status values and marked screen capture, image analysis, and recording declarations as lacking host providers