Skip to main content

Crate amberjs

Crate amberjs 

Source

Re-exports§

pub use repl::Repl;
pub use repl::ReplConfig;
pub use isolate_prewarmer::global_prewarmer;
pub use isolate_prewarmer::IsolatePrewarmer;
pub use isolate_prewarmer::PrewarmConfig;
pub use isolate_prewarmer::PrewarmStats;
pub use runtime_minimal::MinimalRuntime;

Modules§

agent
Agent host surface: tool export, stdin JSON-RPC session, MCP stdio.
ai_engine
Amber AI Engine - Native embeddings, tensor ops, and local inference
bus
capability
checkpoint
database
Embedded Database & Vector Store Module for Amber (amber:db, amber:sqlite, amber:vector).
ecosystem_lite
error
event_loop
fallback
ffi
grammar
isolate_prewarmer
Modern Isolate Pre-warming & Standby Pool System (Task 1.2 / v1.13.0)
kv
Amber v1.7.0: Embedded Persistent Key-Value & Durable State Engine (amber:kv)
mcp
Official Model Context Protocol (MCP) implementation for Amber (amber:mcp).
memory
napi
Minimal N-API (napi) host for process.dlopen.
nodejs_core
package_manager
permissions
pool
repl
Enhanced Interactive REPL for Amber (amber repl).
replay
runtime
Runtime submodule surface.
runtime_minimal
Minimal Runtime implementation for fast startup and basic JavaScript execution This is a simplified version of RuntimeLite without complex dependencies MARKER_V3 - This file has been modified
sandbox
Agent deterministic sandboxing and in-memory virtual filesystem
sockets
std_lib
Official modern standard library for Amber (amber:std, amber:std/*).
task_runner
Task Runner for executing package.json scripts
testing
tooling
Amber Peripheral Tooling Module
tools
Amber v1.7.0: Agent Tool Auto-Synthesis & OpenAPI Schema Compiler (amber:tools / amber:ai.tools)
types_export
TypeScript Types Exporter for Amberjs
typescript
v8_snapshot
wasm
watcher
watcher_websocket
web_api
weights

Macros§

amberjs_try
错误宏
amberjs_try_async
异步错误处理宏
benchmark
Benchmark macros
benchmark_group
with_fallback
降级宏

Structs§

PerformanceConfig
性能配置
Runtime
主要的 Amber 运行时
Server
HTTP 服务器类型(占位符)
TestSuite

Enums§

OptimizeMode

Functions§

console_assert_callback
Console assert callback - asserts a condition
console_count_callback
Console count callback - increments and prints a count (v0.3.259)
console_count_reset_callback
Console countReset callback - resets a count (v0.3.259)
console_debug_callback
console_dir_callback
Console dir callback - prints object representation
console_error_callback
console_group_callback
Console group callback - starts a new group
console_group_end_callback
Console groupEnd callback - ends a group
console_info_callback
console_log_callback
Console callback functions for V8 integration
console_table_callback
Console table callback - formats data as a table Supports optional columns parameter for column filtering
console_time_callback
Console time callback - starts a timer
console_time_end_callback
Console timeEnd callback - ends a timer and prints elapsed time
console_trace_callback
Console trace callback - prints a stack trace
console_warn_callback
generate_performance_report
生成性能报告 (Temporarily disabled - automation module disabled)
get_global_runtime
获取全局运行时实例
get_smart_runtime
获取智能运行时(根据代码特征自动优化)
initialize_v8
Initialize V8 engine (idempotent - safe to call multiple times)
is_v8_available
Check if V8 is available for use in tests Returns true if V8 can be safely initialized, false if already poisoned
is_v8_initialized
Check if V8 is initialized
run_performance_suite
运行完整的性能测试套件 (Temporarily disabled - automation module disabled)