diff --git a/awareness.elh b/awareness.elh index eb000d1..0190761 100644 --- a/awareness.elh +++ b/awareness.elh @@ -1,4 +1,4 @@ -// auto-generated by elc --emit-header — do not edit +// auto-generated by elc --emit-header - do not edit extern fn idle_count() -> Int extern fn idle_inc() -> Int extern fn idle_reset() -> Void @@ -7,6 +7,7 @@ extern fn elapsed_ms() -> Int extern fn elapsed_human() -> String extern fn embed_ok() -> Int extern fn emit_heartbeat() -> Void +extern fn auto_term_try_slot(slot_type: String, slot_lbl: String) -> Void extern fn proactive_curiosity() -> Bool extern fn pulse_count() -> Int extern fn pulse_inc() -> Int diff --git a/chat.elh b/chat.elh index 083a968..a6a2900 100644 --- a/chat.elh +++ b/chat.elh @@ -1,4 +1,4 @@ -// auto-generated by elc --emit-header — do not edit +// auto-generated by elc --emit-header - do not edit extern fn chat_default_model() -> String extern fn engram_numeric_valid(s: String) -> Bool extern fn parse_float_x100(s: String) -> Int @@ -17,7 +17,9 @@ extern fn id_in_seen(node_id: String, seen: String) -> Bool extern fn add_to_seen(seen: String, node_id: String) -> String extern fn engram_extract_ids(nodes_json: String) -> String extern fn engram_compile(intent: String) -> String +extern fn distill_transcript(transcript: String) -> String extern fn json_safe(s: String) -> String +extern fn current_engine_note(model: String) -> String extern fn build_system_prompt(ctx: String, chat_mode: Bool) -> String extern fn hist_append(hist: String, role: String, content: String) -> String extern fn hist_trim(hist: String) -> String @@ -26,10 +28,15 @@ extern fn clean_llm_response(s: String) -> String extern fn conv_history_persist(hist: String) -> Void extern fn conv_history_load() -> String extern fn session_preload_bullets(nodes: String, max_bullets: Int, snip_len: Int) -> String +extern fn affective_context_prefix() -> String extern fn handle_chat(body: String) -> String extern fn handle_see(body: String) -> String extern fn studio_tools_json() -> String extern fn agentic_api_key() -> String +extern fn llm_base_url() -> String +extern fn llm_wire_format() -> String +extern fn json_escape(s: String) -> String +extern fn openai_chat_complete(model: String, base_url: String, api_key: String, safe_sys: String, messages_json: String) -> String extern fn agentic_tools_literal() -> String extern fn agentic_tools_with_web() -> String extern fn connector_tools_json() -> String @@ -40,6 +47,10 @@ extern fn call_neuron_mcp(tool_name: String, args: String) -> String extern fn agent_workspace_root() -> String extern fn path_within_root(path: String, root: String) -> Bool extern fn resolve_in_root(path: String, root: String) -> String +extern fn run_command_is_readonly(cmd: String) -> Bool +extern fn cmd_abs_escape_at(cmd: String, root: String, needle: String) -> Bool +extern fn run_command_guard(cmd: String, root: String) -> String +extern fn classify_tool_risk(tool_name: String, tool_input: String) -> String extern fn dispatch_tool(tool_name: String, tool_input: String) -> String extern fn is_builtin_tool(tool_name: String) -> Bool extern fn next_bridge_id() -> String diff --git a/imprint.elh b/imprint.elh index 8a29f42..9340136 100644 --- a/imprint.elh +++ b/imprint.elh @@ -1,4 +1,4 @@ -// auto-generated by elc --emit-header — do not edit +// auto-generated by elc --emit-header - do not edit extern fn imprint_current() -> String extern fn imprint_load(imprint_id: String) -> String extern fn imprint_respond(input: String, imprint_id: String) -> String diff --git a/neuron-api.elh b/neuron-api.elh index c3dbccb..c74b499 100644 --- a/neuron-api.elh +++ b/neuron-api.elh @@ -1,4 +1,4 @@ -// auto-generated by elc --emit-header — do not edit +// auto-generated by elc --emit-header - do not edit extern fn is_protected_node(id: String) -> Bool extern fn api_err_protected(id: String) -> String extern fn api_json_escape(s: String) -> String diff --git a/safety.elh b/safety.elh index 512ae8a..4501a77 100644 --- a/safety.elh +++ b/safety.elh @@ -1,4 +1,4 @@ -// auto-generated by elc --emit-header — do not edit +// auto-generated by elc --emit-header - do not edit extern fn soft_bell_threshold() -> Int extern fn hard_bell_threshold() -> Int extern fn safety_score_crisis(input: String) -> Int @@ -13,12 +13,3 @@ extern fn safety_self_harm_phrases() -> String extern fn safety_abuse_phrases() -> String extern fn safety_general_hard_phrases() -> String extern fn safety_soft_phrases() -> String -extern fn safety_detect_positive_level(message: String) -> String -extern fn safety_detect_bell_level(message: String) -> String -extern fn safety_classify_hard_bell(message: String) -> String -extern fn safety_soft_directive() -> String -extern fn safety_hard_directive(hard_type: String) -> String -extern fn safety_augment_system(system: String, user_msg: String) -> String -extern fn safety_contact_path() -> String -extern fn handle_safety_contact_get() -> String -extern fn handle_safety_contact_post(body: String) -> String diff --git a/sessions.elh b/sessions.elh index 3c2d136..8bd8d0c 100644 --- a/sessions.elh +++ b/sessions.elh @@ -8,6 +8,7 @@ extern fn session_list() -> String extern fn session_get(session_id: String) -> String extern fn session_delete(session_id: String) -> String extern fn session_update_patch(session_id: String, body: String) -> String +extern fn session_search_entry(node: String) -> String extern fn session_search(query: String) -> String extern fn session_hist_load(session_id: String) -> String extern fn session_hist_save(session_id: String, hist: String) -> Void diff --git a/stewardship.elh b/stewardship.elh index 4198268..e73d425 100644 --- a/stewardship.elh +++ b/stewardship.elh @@ -1,15 +1,11 @@ -// stewardship.elh — Layer 2 public surface -// auto-generated by elc --emit-header — do not edit +// auto-generated by elc --emit-header - do not edit +extern fn steward_log_event(kind: String, detail: String) -> Void extern fn steward_get_mission() -> String extern fn steward_align(input: String, imprint_id: String) -> String extern fn steward_validate_imprint(imprint_id: String, tool_name: String) -> String extern fn steward_cgi_check(action: String) -> String -// steward_log_event is an internal helper exported here because El has no access modifiers. -// External callers have no business invoking this directly — use steward_align, -// steward_validate_imprint, or steward_cgi_check, which call it at the correct points. -extern fn steward_log_event(kind: String, detail: String) -> Void -// Behavioral profiling and continuity detection (Layer 2 — session fingerprinting). extern fn steward_fingerprint_session(input: String, session_id: String) -> String +extern fn extract_dim(content: String, key: String) -> String extern fn steward_build_baseline() -> String extern fn steward_check_continuity(current_fingerprint: String, session_id: String) -> String extern fn steward_session_check(input: String, session_id: String) -> String