diff --git a/src/actor/src/_index.yaml b/src/actor/src/_index.yaml index b3ff64bb..ca5f7873 100644 --- a/src/actor/src/_index.yaml +++ b/src/actor/src/_index.yaml @@ -8,14 +8,6 @@ entries: title: Actor description: Actor pattern library for message-passing concurrency - # Dependencies - - name: dep.wippy.test - kind: "ns.dependency" - meta: - description: "Testing component" - component: "wippy/test" - version: ">=v0.2.0" - # wippy.actor:actor - name: actor kind: library.lua @@ -24,27 +16,3 @@ entries: source: file://actor.lua modules: - time - - # wippy.actor:actor_test - - name: actor_test - kind: function.lua - meta: - name: Actor Library Test - type: test - suite: actor - comment: Tests the actor library's messaging and event handling capabilities - group: Actor Framework - tags: - - actor - - library - - message-passing - - concurrency - - tests - source: file://actor_test.lua - imports: - actor: wippy.actor:actor - test: wippy.test:test - modules: - - time - - json - method: run diff --git a/src/actor/test/_index.yaml b/src/actor/test/_index.yaml new file mode 100644 index 00000000..dea45655 --- /dev/null +++ b/src/actor/test/_index.yaml @@ -0,0 +1,34 @@ +version: "1.0" +namespace: app + +entries: + - name: dep.wippy.test + kind: ns.dependency + meta: + description: Test framework + component: wippy/test + version: ">=v0.2.0" + + # app:actor_test + - name: actor_test + kind: function.lua + meta: + name: Actor Library Test + type: test + suite: actor + comment: Tests the actor library's messaging and event handling capabilities + group: Actor Framework + tags: + - actor + - library + - message-passing + - concurrency + - tests + source: file://actor_test.lua + imports: + actor: wippy.actor:actor + test: wippy.test:test + modules: + - time + - json + method: run diff --git a/src/actor/src/actor_test.lua b/src/actor/test/actor_test.lua similarity index 100% rename from src/actor/src/actor_test.lua rename to src/actor/test/actor_test.lua diff --git a/src/actor/test/wippy.lock b/src/actor/test/wippy.lock index cdeb23a5..0c08bdc2 100644 --- a/src/actor/test/wippy.lock +++ b/src/actor/test/wippy.lock @@ -1,6 +1,6 @@ directories: modules: .wippy - src: ../src + src: .. modules: - name: wippy/terminal version: 0.4.2 diff --git a/src/agent/src/_index.yaml b/src/agent/src/_index.yaml index 1a1c955b..03675c84 100644 --- a/src/agent/src/_index.yaml +++ b/src/agent/src/_index.yaml @@ -9,13 +9,6 @@ entries: description: LLM agent framework with tool support and conversation management # Dependencies - - name: dep.wippy.test - kind: "ns.dependency" - meta: - description: "Testing component" - component: "wippy/test" - version: ">=v0.4.0" - - name: dep.wippy.llm kind: "ns.dependency" meta: @@ -39,90 +32,6 @@ entries: llm: wippy.llm:llm output: wippy.llm:output - # wippy.agent:agent_integration_test - - name: agent_integration_test - kind: function.lua - meta: - name: Agent Integration Test - type: test - comment: Comprehensive integration tests for the full agent system chain - Raw Spec to Compiler to Agent to Tool Caller to Real Tools - group: Agent Framework - tags: - - agents - - integration - - compiler - - tool_caller - - parallel_execution - - tool_aliases - - tests - source: file://agent_integration_test.lua - modules: - - time - - json - - env - imports: - prompt: wippy.llm:prompt - agent: wippy.agent:agent - output: wippy.llm:output - compiler: wippy.agent.compiler:compiler - test: wippy.test:test - tool_caller: wippy.agent.tools:caller - method: run_tests - - # wippy.agent:agent_memory_test - - name: agent_memory_test - kind: function.lua - meta: - name: Agent Memory Processing Test - type: test - comment: Detailed tests for agent memory contract integration and processing logic - group: Agent Framework - tags: - - agents - - memory - - contracts - - processing - - tests - source: file://agent_memory_test.lua - modules: - - time - - json - imports: - prompt: wippy.llm:prompt - agent: wippy.agent:agent - output: wippy.llm:output - test: wippy.test:test - method: run_tests - - # wippy.agent:agent_test - - name: agent_test - kind: function.lua - meta: - name: Agent Test - type: test - comment: Tests the agent runner library functionality for executing LLM agents with conversation and tool support - group: Agent Framework - tags: - - agents - - llm - - conversation - - tools - - tests - source: file://agent_test.lua - modules: - - time - - json - - env - imports: - prompt: wippy.llm:prompt - agent: wippy.agent:agent - agent_registry: wippy.agent.discovery:registry - llm: wippy.llm:llm - output: wippy.llm:output - test: wippy.test:test - tool_caller: wippy.agent.tools:caller - method: run_tests - # wippy.agent:context - name: context kind: library.lua @@ -146,27 +55,6 @@ entries: compiler: wippy.agent.compiler:compiler output: wippy.llm:output - # wippy.agent:context_test - - name: context_test - kind: function.lua - meta: - name: Agent Context Test - type: test - comment: Tests the agent context manager functionality for loading, compilation, and runtime switching - group: Agent Framework - tags: - - agents - - context - - runtime - - switching - - tests - source: file://context_test.lua - imports: - context: wippy.agent:context - compiler: wippy.agent.compiler:compiler - test: wippy.test:test - method: run_tests - # wippy.agent:lifecycle_controller - name: lifecycle_controller kind: library.lua @@ -175,20 +63,6 @@ entries: comment: Shared activation and deactivation state machine for agent hosts source: file://lifecycle_controller.lua - - name: lifecycle_controller_test - kind: function.lua - meta: - name: Agent Lifecycle Controller Test - type: test - comment: Tests agent transition ordering, refresh, and error state - group: Agent Framework - tags: [agents, lifecycle, tests] - source: file://lifecycle_controller_test.lua - imports: - lifecycle_controller: wippy.agent:lifecycle_controller - test: wippy.test:test - method: run_tests - - name: behavior_controls kind: library.lua meta: @@ -197,17 +71,6 @@ entries: source: file://behavior_controls.lua modules: [json] - - name: behavior_controls_test - kind: function.lua - meta: - type: test - group: Agent Framework - source: file://behavior_controls_test.lua - imports: - behavior_controls: wippy.agent:behavior_controls - test: wippy.test:test - method: run_tests - # wippy.agent:lifecycle_runtime - name: lifecycle_runtime kind: library.lua @@ -220,26 +83,6 @@ entries: imports: behavior_controls: wippy.agent:behavior_controls - # wippy.agent:lifecycle_runtime_test - - name: lifecycle_runtime_test - kind: function.lua - meta: - name: Agent Lifecycle Runtime Test - type: test - comment: Unit tests for optional trait-owned lifecycle contract dispatch - group: Agent Framework - tags: - - agents - - lifecycle - - traits - - contracts - - tests - source: file://lifecycle_runtime_test.lua - imports: - lifecycle_runtime: wippy.agent:lifecycle_runtime - test: wippy.test:test - method: run_tests - # wippy.agent:checkpoint_runtime - name: checkpoint_runtime kind: library.lua @@ -250,26 +93,6 @@ entries: modules: - contract - # wippy.agent:checkpoint_runtime_test - - name: checkpoint_runtime_test - kind: function.lua - meta: - name: Agent Checkpoint Runtime Test - type: test - comment: Unit tests for optional trait-owned checkpoint contract dispatch - group: Agent Framework - tags: - - agents - - checkpoint - - traits - - contracts - - tests - source: file://checkpoint_runtime_test.lua - imports: - checkpoint_runtime: wippy.agent:checkpoint_runtime - test: wippy.test:test - method: run_tests - # wippy.agent:memory - name: memory kind: contract.definition diff --git a/src/agent/src/compiler/_index.yaml b/src/agent/src/compiler/_index.yaml index 43bee986..2c5ce8db 100644 --- a/src/agent/src/compiler/_index.yaml +++ b/src/agent/src/compiler/_index.yaml @@ -16,24 +16,4 @@ entries: imports: tools: wippy.agent.discovery:tools traits: wippy.agent.discovery:traits - - # wippy.agent.compiler:compiler_test - - name: compiler_test - kind: function.lua - meta: - name: Agent Compiler Test - type: test - comment: Tests the agent compiler functionality for materializing raw agent specs into runnable agents - group: Agent Framework - tags: - - agents - - compiler - - traits - - delegates - - tests - source: file://compiler_test.lua - imports: - compiler: wippy.agent.compiler:compiler - test: wippy.test:test - method: run_tests \ No newline at end of file diff --git a/src/agent/src/discovery/_index.yaml b/src/agent/src/discovery/_index.yaml index bbe18574..5f87a678 100644 --- a/src/agent/src/discovery/_index.yaml +++ b/src/agent/src/discovery/_index.yaml @@ -13,25 +13,6 @@ entries: - registry - json - # wippy.agent.discovery:registry_test - - name: registry_test - kind: function.lua - meta: - name: Agent Registry Test - type: test - comment: Tests the agent registry library functionality for discovering and loading gen1 agents - group: Agent Framework - tags: - - agents - - registry - - discovery - - tests - source: file://registry_test.lua - imports: - agent_registry: wippy.agent.discovery:registry - test: wippy.test:test - method: run_tests - # wippy.agent.discovery:selector - name: selector kind: function.lua @@ -49,36 +30,12 @@ entries: llm: wippy.llm:llm method: execute - # wippy.agent.discovery:selector_test - - name: selector_test - kind: function.lua - meta: - name: Agent Selector Test - type: test - comment: Tests the agent selector functionality for selecting agents based on user prompt analysis - group: Agent Framework - tags: - - selector - - discovery - - agent_selection - - llm_integration - - tests - source: file://selector_test.lua - modules: - - env - imports: - selector: wippy.agent.discovery:selector - test: wippy.test:test - method: run_tests - # wippy.agent.discovery:tools - name: tools kind: library.lua meta: type: library comment: Tool resolver library for discovering tools and their schemas - depends_on: - - ns:wippy.test source: file://tools.lua modules: - json @@ -86,59 +43,13 @@ entries: - funcs - store - # wippy.agent.discovery:tools_test - - name: tools_test - kind: function.lua - meta: - name: Tools Library Test - type: test - comment: Tests the tool resolver library functionality for discovering and managing tools - group: Agent Framework - tags: - - llm - - tools - - resolver - - tests - depends_on: - - ns:wippy.test - source: file://tools_test.lua - modules: - - json - imports: - tools: wippy.agent.discovery:tools - test: wippy.test:test - method: run_tests - # wippy.agent.discovery:traits - name: traits kind: library.lua meta: type: library comment: Traits library for discovering and loading agent traits - depends_on: - - ns:wippy.test source: file://traits.lua modules: - registry - - # wippy.agent.discovery:traits_test - - name: traits_test - kind: function.lua - meta: - name: Agent Traits Test - type: test - comment: Tests the agent traits library - group: Agent Framework - tags: - - traits - - registry - - discovery - - tests - depends_on: - - traits - source: file://traits_test.lua - imports: - test: wippy.test:test - traits: wippy.agent.discovery:traits - method: run_tests \ No newline at end of file diff --git a/src/agent/src/tools/_index.yaml b/src/agent/src/tools/_index.yaml index 9c390e0c..881f00bb 100644 --- a/src/agent/src/tools/_index.yaml +++ b/src/agent/src/tools/_index.yaml @@ -19,85 +19,3 @@ entries: imports: tools: wippy.agent.discovery:tools behavior_controls: wippy.agent:behavior_controls - - # wippy.agent.tools:caller_test - - name: caller_test - kind: function.lua - meta: - name: Tool Caller Test - type: test - comment: Tests the unified tool caller functionality for sequential and parallel tool execution - group: Agent Framework - tags: - - tools - - execution - - parallel - - sequential - - tests - source: file://caller_test.lua - modules: - - env - - time - imports: - test: wippy.test:test - tool_caller: wippy.agent.tools:caller - method: run_tests - - # wippy.agent.tools:delay_tool_test - - name: delay_tool_test - kind: function.lua - meta: - name: Delay Tool Test - type: test - comment: Tests the delay tool echo and timing behavior - group: Agent Framework - tags: - - tools - - delay - - tests - source: file://delay_tool_test.lua - modules: - - time - - ctx - imports: - test: wippy.test:test - delay_tool: wippy.agent.tools:delay_tool - method: run_tests - - # wippy.agent.tools:delay_tool - - name: delay_tool - kind: function.lua - meta: - name: Delayed Echo Tool - type: tool - comment: Test tool that echoes input with configurable delay and context inspection - for testing only - group: Testing - tags: - - test - - delay - - echo - - context - input_schema: | - { - "type": "object", - "properties": { - "message": { - "type": "string", - "description": "The message to echo back", - "default": "Hello" - }, - "delay_ms": { - "type": "number", - "description": "Delay in milliseconds before responding", - "default": 100, - "minimum": 0 - } - }, - "required": [], - "additionalProperties": false - } - source: file://delay_tool.lua - modules: - - time - - ctx - method: delayed_echo diff --git a/src/agent/src/traits/_index.yaml b/src/agent/src/traits/_index.yaml index c7c3fe0c..af038ab1 100644 --- a/src/agent/src/traits/_index.yaml +++ b/src/agent/src/traits/_index.yaml @@ -14,27 +14,6 @@ entries: - ctx method: execute - # wippy.agent.traits:init_time_aware_test - - name: init_time_aware_test - kind: function.lua - meta: - name: Init Time Aware Trait Test - type: test - comment: Tests the time-aware trait initialization and prompt generation - group: Agent Framework - tags: - - traits - - time - - tests - source: file://init_time_aware_test.lua - modules: - - time - - ctx - imports: - test: wippy.test:test - init_time_aware: wippy.agent.traits:init_time_aware - method: run_tests - # wippy.agent.traits:time_aware - name: time_aware kind: registry.entry diff --git a/src/agent/src/wippy.lock b/src/agent/src/wippy.lock index 6222225e..ec258083 100644 --- a/src/agent/src/wippy.lock +++ b/src/agent/src/wippy.lock @@ -5,12 +5,6 @@ modules: - name: wippy/llm version: 0.4.7 hash: 2e55afcf55c441a8e79e3737691e5721d06138b9a3a46c7fb87199db6a5dd426 - - name: wippy/terminal - version: 0.4.2 - hash: 34b99aac2eba9c5016fd02c783117fb2b0381ce14696c7b199265458b99a3271 - - name: wippy/test - version: 0.4.9 - hash: 31fb7486fae9e47ce33a89782969bfec0a754d13143d2af24ddc46c406717476 replacements: - from: wippy/llm to: ../../llm/src diff --git a/src/agent/test/_index.yaml b/src/agent/test/_index.yaml index 5758056c..812703ce 100644 --- a/src/agent/test/_index.yaml +++ b/src/agent/test/_index.yaml @@ -2,7 +2,392 @@ version: "1.0" namespace: app entries: + - name: dep.wippy.test + kind: ns.dependency + meta: + description: Test framework + component: wippy/test + version: ">=v0.4.0" + - name: env_storage kind: env.storage.os meta: type: envstorage + + # app:agent_integration_test + - name: agent_integration_test + kind: function.lua + meta: + name: Agent Integration Test + type: test + comment: Comprehensive integration tests for the full agent system chain - Raw Spec to Compiler to Agent to Tool Caller to Real Tools + group: Agent Framework + tags: + - agents + - integration + - compiler + - tool_caller + - parallel_execution + - tool_aliases + - tests + source: file://agent_integration_test.lua + modules: + - time + - json + - env + imports: + prompt: wippy.llm:prompt + agent: wippy.agent:agent + output: wippy.llm:output + compiler: wippy.agent.compiler:compiler + test: wippy.test:test + tool_caller: wippy.agent.tools:caller + method: run_tests + + # app:agent_memory_test + - name: agent_memory_test + kind: function.lua + meta: + name: Agent Memory Processing Test + type: test + comment: Detailed tests for agent memory contract integration and processing logic + group: Agent Framework + tags: + - agents + - memory + - contracts + - processing + - tests + source: file://agent_memory_test.lua + modules: + - time + - json + imports: + prompt: wippy.llm:prompt + agent: wippy.agent:agent + output: wippy.llm:output + test: wippy.test:test + method: run_tests + + # app:agent_test + - name: agent_test + kind: function.lua + meta: + name: Agent Test + type: test + comment: Tests the agent runner library functionality for executing LLM agents with conversation and tool support + group: Agent Framework + tags: + - agents + - llm + - conversation + - tools + - tests + source: file://agent_test.lua + modules: + - time + - json + - env + imports: + prompt: wippy.llm:prompt + agent: wippy.agent:agent + agent_registry: wippy.agent.discovery:registry + llm: wippy.llm:llm + output: wippy.llm:output + test: wippy.test:test + tool_caller: wippy.agent.tools:caller + method: run_tests + + # app:context_test + - name: context_test + kind: function.lua + meta: + name: Agent Context Test + type: test + comment: Tests the agent context manager functionality for loading, compilation, and runtime switching + group: Agent Framework + tags: + - agents + - context + - runtime + - switching + - tests + source: file://context_test.lua + imports: + context: wippy.agent:context + compiler: wippy.agent.compiler:compiler + test: wippy.test:test + method: run_tests + + - name: lifecycle_controller_test + kind: function.lua + meta: + name: Agent Lifecycle Controller Test + type: test + comment: Tests agent transition ordering, refresh, and error state + group: Agent Framework + tags: [agents, lifecycle, tests] + source: file://lifecycle_controller_test.lua + imports: + lifecycle_controller: wippy.agent:lifecycle_controller + test: wippy.test:test + method: run_tests + + - name: behavior_controls_test + kind: function.lua + meta: + type: test + group: Agent Framework + source: file://behavior_controls_test.lua + imports: + behavior_controls: wippy.agent:behavior_controls + test: wippy.test:test + method: run_tests + + # app:lifecycle_runtime_test + - name: lifecycle_runtime_test + kind: function.lua + meta: + name: Agent Lifecycle Runtime Test + type: test + comment: Unit tests for optional trait-owned lifecycle contract dispatch + group: Agent Framework + tags: + - agents + - lifecycle + - traits + - contracts + - tests + source: file://lifecycle_runtime_test.lua + imports: + lifecycle_runtime: wippy.agent:lifecycle_runtime + test: wippy.test:test + method: run_tests + + # app:checkpoint_runtime_test + - name: checkpoint_runtime_test + kind: function.lua + meta: + name: Agent Checkpoint Runtime Test + type: test + comment: Unit tests for optional trait-owned checkpoint contract dispatch + group: Agent Framework + tags: + - agents + - checkpoint + - traits + - contracts + - tests + source: file://checkpoint_runtime_test.lua + imports: + checkpoint_runtime: wippy.agent:checkpoint_runtime + test: wippy.test:test + method: run_tests + + # app:compiler_compiler_test + - name: compiler_compiler_test + kind: function.lua + meta: + name: Agent Compiler Test + type: test + comment: Tests the agent compiler functionality for materializing raw agent specs into runnable agents + group: Agent Framework + tags: + - agents + - compiler + - traits + - delegates + - tests + source: file://compiler/compiler_test.lua + imports: + compiler: wippy.agent.compiler:compiler + test: wippy.test:test + method: run_tests + + # app:discovery_registry_test + - name: discovery_registry_test + kind: function.lua + meta: + name: Agent Registry Test + type: test + comment: Tests the agent registry library functionality for discovering and loading gen1 agents + group: Agent Framework + tags: + - agents + - registry + - discovery + - tests + source: file://discovery/registry_test.lua + imports: + agent_registry: wippy.agent.discovery:registry + test: wippy.test:test + method: run_tests + + # app:discovery_selector_test + - name: discovery_selector_test + kind: function.lua + meta: + name: Agent Selector Test + type: test + comment: Tests the agent selector functionality for selecting agents based on user prompt analysis + group: Agent Framework + tags: + - selector + - discovery + - agent_selection + - llm_integration + - tests + source: file://discovery/selector_test.lua + modules: + - env + imports: + selector: wippy.agent.discovery:selector + test: wippy.test:test + method: run_tests + + # app:discovery_tools_test + - name: discovery_tools_test + kind: function.lua + meta: + name: Tools Library Test + type: test + comment: Tests the tool resolver library functionality for discovering and managing tools + group: Agent Framework + tags: + - llm + - tools + - resolver + - tests + depends_on: + - ns:wippy.test + source: file://discovery/tools_test.lua + modules: + - json + imports: + tools: wippy.agent.discovery:tools + test: wippy.test:test + method: run_tests + + # app:discovery_traits_test + - name: discovery_traits_test + kind: function.lua + meta: + name: Agent Traits Test + type: test + comment: Tests the agent traits library + group: Agent Framework + tags: + - traits + - registry + - discovery + - tests + depends_on: + - traits + source: file://discovery/traits_test.lua + imports: + test: wippy.test:test + traits: wippy.agent.discovery:traits + method: run_tests + + # app:tools_caller_test + - name: tools_caller_test + kind: function.lua + meta: + name: Tool Caller Test + type: test + comment: Tests the unified tool caller functionality for sequential and parallel tool execution + group: Agent Framework + tags: + - tools + - execution + - parallel + - sequential + - tests + source: file://tools/caller_test.lua + modules: + - env + - time + imports: + test: wippy.test:test + tool_caller: wippy.agent.tools:caller + method: run_tests + + # app:tools_delay_tool_test + - name: tools_delay_tool_test + kind: function.lua + meta: + name: Delay Tool Test + type: test + comment: Tests the delay tool echo and timing behavior + group: Agent Framework + tags: + - tools + - delay + - tests + source: file://tools/delay_tool_test.lua + modules: + - time + - ctx + imports: + test: wippy.test:test + delay_tool: app:delay_tool + method: run_tests + + # app:traits_init_time_aware_test + - name: traits_init_time_aware_test + kind: function.lua + meta: + name: Init Time Aware Trait Test + type: test + comment: Tests the time-aware trait initialization and prompt generation + group: Agent Framework + tags: + - traits + - time + - tests + source: file://traits/init_time_aware_test.lua + modules: + - time + - ctx + imports: + test: wippy.test:test + init_time_aware: wippy.agent.traits:init_time_aware + method: run_tests + + # app:delay_tool + - name: delay_tool + kind: function.lua + meta: + name: Delayed Echo Tool + type: tool + comment: Test tool that echoes input with configurable delay and context inspection - for testing only + group: Testing + tags: + - test + - delay + - echo + - context + input_schema: | + { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The message to echo back", + "default": "Hello" + }, + "delay_ms": { + "type": "number", + "description": "Delay in milliseconds before responding", + "default": 100, + "minimum": 0 + } + }, + "required": [], + "additionalProperties": false + } + source: file://tools/delay_tool.lua + modules: + - time + - ctx + method: delayed_echo diff --git a/src/agent/src/agent_integration_test.lua b/src/agent/test/agent_integration_test.lua similarity index 98% rename from src/agent/src/agent_integration_test.lua rename to src/agent/test/agent_integration_test.lua index 3ee09a96..c6977b7e 100644 --- a/src/agent/src/agent_integration_test.lua +++ b/src/agent/test/agent_integration_test.lua @@ -75,7 +75,7 @@ Be concise in your text responses but ALWAYS use the tools when requested.]], -- Tools with aliases - same registry tool, different names and contexts tools = { { - id = "wippy.agent.tools:delay_tool", + id = "app:delay_tool", alias = "fast_echo", description = "Quick response tool for immediate feedback and speed tests", context = { @@ -86,7 +86,7 @@ Be concise in your text responses but ALWAYS use the tools when requested.]], } }, { - id = "wippy.agent.tools:delay_tool", + id = "app:delay_tool", alias = "slow_echo", description = "Thorough response tool for detailed processing and tests", context = { @@ -145,7 +145,7 @@ Be concise but ALWAYS use the tools when requested.]], tools = { { - id = "wippy.agent.tools:delay_tool", + id = "app:delay_tool", alias = "test_tool_1", description = "First test tool", context = { @@ -154,7 +154,7 @@ Be concise but ALWAYS use the tools when requested.]], } }, { - id = "wippy.agent.tools:delay_tool", + id = "app:delay_tool", alias = "test_tool_2", description = "Second test tool", context = { @@ -163,7 +163,7 @@ Be concise but ALWAYS use the tools when requested.]], } }, { - id = "wippy.agent.tools:delay_tool", + id = "app:delay_tool", alias = "test_tool_3", description = "Third test tool", context = { @@ -476,8 +476,8 @@ Be concise but ALWAYS use the tools when requested.]], local sc = slow_call :: any -- Verify tool call properties - test.eq(fc.registry_id, "wippy.agent.tools:delay_tool") - test.eq(sc.registry_id, "wippy.agent.tools:delay_tool") + test.eq(fc.registry_id, "app:delay_tool") + test.eq(sc.registry_id, "app:delay_tool") print("Tool calls have correct registry IDs") @@ -566,7 +566,7 @@ Be concise but ALWAYS use the tools when requested.]], prompt = "You are a context testing agent.", tools = { { - id = "wippy.agent.tools:delay_tool", + id = "app:delay_tool", alias = "context_test_tool", description = "Tool for testing context precedence rules", context = { diff --git a/src/agent/src/agent_memory_test.lua b/src/agent/test/agent_memory_test.lua similarity index 100% rename from src/agent/src/agent_memory_test.lua rename to src/agent/test/agent_memory_test.lua diff --git a/src/agent/src/agent_test.lua b/src/agent/test/agent_test.lua similarity index 99% rename from src/agent/src/agent_test.lua rename to src/agent/test/agent_test.lua index a8d3a11c..6aaa2c29 100644 --- a/src/agent/src/agent_test.lua +++ b/src/agent/test/agent_test.lua @@ -63,7 +63,7 @@ local function define_tests() name = "fast_echo", description = "Fast echo tool", schema = { type = "object", properties = {} }, - registry_id = "wippy.agent.tools:delay_tool", + registry_id = "app:delay_tool", context = { delay = 25, priority = "high", @@ -74,7 +74,7 @@ local function define_tests() name = "slow_echo", description = "Slow echo tool", schema = { type = "object", properties = {} }, - registry_id = "wippy.agent.tools:delay_tool", + registry_id = "app:delay_tool", context = { delay = 80, priority = "low", @@ -296,13 +296,13 @@ local function define_tests() id = "call_fast_123", name = "fast_echo", -- Alias name matches context key arguments = { message = "fast test" }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" }, { id = "call_slow_456", name = "slow_echo", -- Alias name matches context key arguments = { message = "slow test" }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" } }, tokens = { prompt_tokens = 25, completion_tokens = 20, total_tokens = 45 }, @@ -788,14 +788,14 @@ local function define_tests() -- Verify fast_echo context test.eq(fast_call.name, "fast_echo") - test.eq(fast_call.registry_id, "wippy.agent.tools:delay_tool") + test.eq(fast_call.registry_id, "app:delay_tool") test.not_nil(fast_call.context) test.eq(fast_call.context.delay, 25) test.eq(fast_call.context.priority, "high") -- Verify slow_echo context test.eq(slow_call.name, "slow_echo") - test.eq(slow_call.registry_id, "wippy.agent.tools:delay_tool") + test.eq(slow_call.registry_id, "app:delay_tool") test.not_nil(slow_call.context) test.eq(slow_call.context.delay, 80) test.eq(slow_call.context.priority, "low") @@ -1183,10 +1183,10 @@ local function define_tests() for _, tool in ipairs(opts.tools) do if tool.name == "fast_echo" then found_fast = true - test.eq(tool.registry_id, "wippy.agent.tools:delay_tool") + test.eq(tool.registry_id, "app:delay_tool") elseif tool.name == "slow_echo" then found_slow = true - test.eq(tool.registry_id, "wippy.agent.tools:delay_tool") + test.eq(tool.registry_id, "app:delay_tool") end end test.is_true(found_fast) diff --git a/src/agent/src/behavior_controls_test.lua b/src/agent/test/behavior_controls_test.lua similarity index 100% rename from src/agent/src/behavior_controls_test.lua rename to src/agent/test/behavior_controls_test.lua diff --git a/src/agent/src/checkpoint_runtime_test.lua b/src/agent/test/checkpoint_runtime_test.lua similarity index 100% rename from src/agent/src/checkpoint_runtime_test.lua rename to src/agent/test/checkpoint_runtime_test.lua diff --git a/src/agent/src/compiler/compiler_test.lua b/src/agent/test/compiler/compiler_test.lua similarity index 100% rename from src/agent/src/compiler/compiler_test.lua rename to src/agent/test/compiler/compiler_test.lua diff --git a/src/agent/src/context_test.lua b/src/agent/test/context_test.lua similarity index 100% rename from src/agent/src/context_test.lua rename to src/agent/test/context_test.lua diff --git a/src/agent/src/discovery/registry_test.lua b/src/agent/test/discovery/registry_test.lua similarity index 100% rename from src/agent/src/discovery/registry_test.lua rename to src/agent/test/discovery/registry_test.lua diff --git a/src/agent/src/discovery/selector_test.lua b/src/agent/test/discovery/selector_test.lua similarity index 100% rename from src/agent/src/discovery/selector_test.lua rename to src/agent/test/discovery/selector_test.lua diff --git a/src/agent/src/discovery/tools_test.lua b/src/agent/test/discovery/tools_test.lua similarity index 100% rename from src/agent/src/discovery/tools_test.lua rename to src/agent/test/discovery/tools_test.lua diff --git a/src/agent/src/discovery/traits_test.lua b/src/agent/test/discovery/traits_test.lua similarity index 100% rename from src/agent/src/discovery/traits_test.lua rename to src/agent/test/discovery/traits_test.lua diff --git a/src/agent/src/lifecycle_controller_test.lua b/src/agent/test/lifecycle_controller_test.lua similarity index 100% rename from src/agent/src/lifecycle_controller_test.lua rename to src/agent/test/lifecycle_controller_test.lua diff --git a/src/agent/src/lifecycle_runtime_test.lua b/src/agent/test/lifecycle_runtime_test.lua similarity index 100% rename from src/agent/src/lifecycle_runtime_test.lua rename to src/agent/test/lifecycle_runtime_test.lua diff --git a/src/agent/src/tools/caller_test.lua b/src/agent/test/tools/caller_test.lua similarity index 98% rename from src/agent/src/tools/caller_test.lua rename to src/agent/test/tools/caller_test.lua index e0b40c3b..4ca6a664 100644 --- a/src/agent/src/tools/caller_test.lua +++ b/src/agent/test/tools/caller_test.lua @@ -1291,7 +1291,7 @@ local function define_tests() message = "Hello from real tool!", delay_ms = 50 }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" } } @@ -1337,7 +1337,7 @@ local function define_tests() message = "First call", delay_ms = 30 }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" }, { id = "call_second", @@ -1346,7 +1346,7 @@ local function define_tests() message = "Second call", delay_ms = 20 }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" }, { id = "call_third", @@ -1355,7 +1355,7 @@ local function define_tests() message = "Third call", delay_ms = 40 }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" } } @@ -1410,7 +1410,7 @@ local function define_tests() message = "Parallel call 1", delay_ms = 60 }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" }, { id = "call_parallel_2", @@ -1419,7 +1419,7 @@ local function define_tests() message = "Parallel call 2", delay_ms = 40 }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" }, { id = "call_parallel_3", @@ -1428,7 +1428,7 @@ local function define_tests() message = "Parallel call 3", delay_ms = 50 }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" } } @@ -1500,7 +1500,7 @@ local function define_tests() id = "call_param_test_" .. i, name = "delayed_echo", arguments = test_case, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" } } @@ -1546,7 +1546,7 @@ local function define_tests() message = "Test message", delay_ms = -50 -- Negative delay might cause issues }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" } } @@ -1583,7 +1583,7 @@ local function define_tests() message = "Context verification test", delay_ms = 20 }, - registry_id = "wippy.agent.tools:delay_tool", + registry_id = "app:delay_tool", context = { tool_context_key = "tool_value", shared_key = "from_tool_context", @@ -1645,7 +1645,7 @@ local function define_tests() message = "Empty context test", delay_ms = 15 }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" -- No context field at all } } @@ -1688,13 +1688,13 @@ local function define_tests() id = "seq_call_1", name = "delayed_echo", arguments = { message = "Sequential 1", delay_ms = 30 }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" }, { id = "seq_call_2", name = "delayed_echo", arguments = { message = "Sequential 2", delay_ms = 20 }, - registry_id = "wippy.agent.tools:delay_tool" + registry_id = "app:delay_tool" } } diff --git a/src/agent/src/tools/delay_tool.lua b/src/agent/test/tools/delay_tool.lua similarity index 100% rename from src/agent/src/tools/delay_tool.lua rename to src/agent/test/tools/delay_tool.lua diff --git a/src/agent/src/tools/delay_tool_test.lua b/src/agent/test/tools/delay_tool_test.lua similarity index 100% rename from src/agent/src/tools/delay_tool_test.lua rename to src/agent/test/tools/delay_tool_test.lua diff --git a/src/agent/src/traits/init_time_aware_test.lua b/src/agent/test/traits/init_time_aware_test.lua similarity index 100% rename from src/agent/src/traits/init_time_aware_test.lua rename to src/agent/test/traits/init_time_aware_test.lua diff --git a/src/bootloader/src/_index.yaml b/src/bootloader/src/_index.yaml index 0fdfaa67..8af751f9 100644 --- a/src/bootloader/src/_index.yaml +++ b/src/bootloader/src/_index.yaml @@ -9,13 +9,6 @@ entries: description: Application bootloader and initialization orchestrator # Dependencies - - name: dep.wippy.test - kind: "ns.dependency" - meta: - description: "Testing component" - component: "wippy/test" - version: ">=v0.3.0" - - name: dep.wippy.security kind: "ns.dependency" meta: @@ -79,17 +72,3 @@ entries: groups: - wippy.security:process process: bootloader - - # wippy.bootloader:bootloader_test - - name: bootloader_test - kind: function.lua - meta: - type: test - suite: bootloader - comment: Tests for bootloader utilities and registry - source: file://bootloader_test.lua - method: run - imports: - bootloader: wippy.bootloader:bootloader - bootloader_registry: wippy.bootloader:bootloader_registry - test: wippy.test:test diff --git a/src/bootloader/src/wippy.lock b/src/bootloader/src/wippy.lock deleted file mode 100644 index 04563252..00000000 --- a/src/bootloader/src/wippy.lock +++ /dev/null @@ -1,7 +0,0 @@ -directories: - modules: .wippy - src: . -modules: - - name: wippy/test - version: 0.4.9 - hash: 31fb7486fae9e47ce33a89782969bfec0a754d13143d2af24ddc46c406717476 diff --git a/src/bootloader/test/_index.yaml b/src/bootloader/test/_index.yaml index 7bb1d986..87abc34e 100644 --- a/src/bootloader/test/_index.yaml +++ b/src/bootloader/test/_index.yaml @@ -2,6 +2,13 @@ version: "1.0" namespace: app entries: + - name: dep.wippy.test + kind: ns.dependency + meta: + description: Test framework + component: wippy/test + version: ">=v0.3.0" + - name: envs kind: env.storage.memory meta: @@ -73,3 +80,17 @@ entries: imports: bootloader: wippy.bootloader:bootloader test: wippy.test:test + + # app:bootloader_test + - name: bootloader_test + kind: function.lua + meta: + type: test + suite: bootloader + comment: Tests for bootloader utilities and registry + source: file://bootloader_test.lua + method: run + imports: + bootloader: wippy.bootloader:bootloader + bootloader_registry: wippy.bootloader:bootloader_registry + test: wippy.test:test diff --git a/src/bootloader/src/bootloader_test.lua b/src/bootloader/test/bootloader_test.lua similarity index 100% rename from src/bootloader/src/bootloader_test.lua rename to src/bootloader/test/bootloader_test.lua diff --git a/src/embeddings/_index.yaml b/src/embeddings/_index.yaml index 2a280694..96a49c2b 100644 --- a/src/embeddings/_index.yaml +++ b/src/embeddings/_index.yaml @@ -31,11 +31,6 @@ entries: component: wippy/migration version: "*" - - name: test - kind: ns.dependency - component: wippy/test - version: "*" - # wippy.embeddings:embedding_repo - name: embedding_repo kind: library.lua @@ -55,48 +50,6 @@ entries: - time - registry - # wippy.embeddings:embeddings_test - - name: embeddings_test - kind: function.lua - meta: - name: Embeddings Library Test - type: test - comment: Tests the embeddings library error reporting - group: LLM / Embeddings (SQL) - tags: - - embeddings - - tests - source: file://embeddings_test.lua - modules: - - uuid - imports: - embeddings: wippy.embeddings:embeddings - test: wippy.test:test - method: run - - # wippy.embeddings:embedding_repo_test - - name: embedding_repo_test - kind: function.lua - meta: - name: Embedding Repository Test - type: test - comment: Tests the embedding_repo library for vector operations - group: LLM / Embeddings (SQL) - tags: - - embeddings - - vector - - tests - source: file://embedding_repo_test.lua - modules: - - sql - - uuid - - json - - registry - imports: - embedding_repo: wippy.embeddings:embedding_repo - test: wippy.test:test - method: run - # wippy.embeddings:embeddings - name: embeddings kind: library.lua diff --git a/src/embeddings/test/_index.yaml b/src/embeddings/test/_index.yaml index 2f3ad5b7..0fc0d586 100644 --- a/src/embeddings/test/_index.yaml +++ b/src/embeddings/test/_index.yaml @@ -2,6 +2,13 @@ version: "1.0" namespace: app entries: + - name: dep.wippy.test + kind: ns.dependency + meta: + description: Test framework + component: wippy/test + version: "*" + - name: db kind: db.sql.sqlite meta: @@ -19,3 +26,45 @@ entries: kind: process.host lifecycle: auto_start: true + + # app:embeddings_test + - name: embeddings_test + kind: function.lua + meta: + name: Embeddings Library Test + type: test + comment: Tests the embeddings library error reporting + group: LLM / Embeddings (SQL) + tags: + - embeddings + - tests + source: file://embeddings_test.lua + modules: + - uuid + imports: + embeddings: wippy.embeddings:embeddings + test: wippy.test:test + method: run + + # app:embedding_repo_test + - name: embedding_repo_test + kind: function.lua + meta: + name: Embedding Repository Test + type: test + comment: Tests the embedding_repo library for vector operations + group: LLM / Embeddings (SQL) + tags: + - embeddings + - vector + - tests + source: file://embedding_repo_test.lua + modules: + - sql + - uuid + - json + - registry + imports: + embedding_repo: wippy.embeddings:embedding_repo + test: wippy.test:test + method: run diff --git a/src/embeddings/embedding_repo_test.lua b/src/embeddings/test/embedding_repo_test.lua similarity index 100% rename from src/embeddings/embedding_repo_test.lua rename to src/embeddings/test/embedding_repo_test.lua diff --git a/src/embeddings/embeddings_test.lua b/src/embeddings/test/embeddings_test.lua similarity index 100% rename from src/embeddings/embeddings_test.lua rename to src/embeddings/test/embeddings_test.lua diff --git a/src/embeddings/wippy.lock b/src/embeddings/wippy.lock index 8f8a8c24..9028cc77 100644 --- a/src/embeddings/wippy.lock +++ b/src/embeddings/wippy.lock @@ -14,9 +14,3 @@ modules: - name: wippy/migration version: 0.3.14 hash: b7c28ba246cade1bcedad8b97e22b9da9b6f5b36d859a6cee7f3153f10b14847 - - name: wippy/terminal - version: 0.4.2 - hash: 34b99aac2eba9c5016fd02c783117fb2b0381ce14696c7b199265458b99a3271 - - name: wippy/test - version: 0.4.9 - hash: 31fb7486fae9e47ce33a89782969bfec0a754d13143d2af24ddc46c406717476 diff --git a/src/facade/_index.yaml b/src/facade/_index.yaml index b34d7218..f69487f9 100644 --- a/src/facade/_index.yaml +++ b/src/facade/_index.yaml @@ -658,53 +658,3 @@ entries: actions: - fs.get effect: allow - - - name: dep.wippy.test - kind: ns.dependency - meta: - scope: dev - component: wippy/test - version: "*" - - # Tests - - name: config_handler_test - kind: function.lua - meta: - type: test - suite: facade - comment: Config handler tests - source: file://config_handler_test.lua - method: run - imports: - test: wippy.test:test - modules: - - json - - registry - - - name: security_policy_test - kind: function.lua - meta: - type: test - suite: facade - comment: Facade handler security policy tests - source: file://security_policy_test.lua - method: run - imports: - test: wippy.test:test - modules: - - security - - - name: theming_helpers_test - kind: function.lua - meta: - type: test - suite: facade - comment: Tests for theming_helpers (CSS generation + file-ref resolution) - source: file://theming_helpers_test.lua - method: run - imports: - test: wippy.test:test - theming_helpers: wippy.facade:theming_helpers - modules: - - fs - - json diff --git a/src/facade/security_policy_test.lua b/src/facade/security_policy_test.lua deleted file mode 100644 index 779b47a4..00000000 --- a/src/facade/security_policy_test.lua +++ /dev/null @@ -1,38 +0,0 @@ -local test = require("test") -local security = require("security") - -local function load_policy(id: string) - local policy, err = security.policy(id) - if not policy then - error("missing policy " .. id .. ": " .. tostring(err)) - end - return policy -end - -local function decision(policy_id: string, action: string, resource: string): string - local actor = security.new_actor("wippy.facade:test", {}) - local result = load_policy(policy_id):evaluate(actor, action, resource, {}) - if result == "allow" or result == "deny" then - return result - end - return "undefined" -end - -local function run() - test.describe("wippy.facade security policies", function() - test.it("grants facade config registry and public API env reads only", function() - test.eq(decision("wippy.facade:config_read_runtime", "registry.get", "wippy.facade:fe_facade_url"), "allow") - test.eq(decision("wippy.facade:config_read_runtime", "env.get", "PUBLIC_API_URL"), "allow") - test.eq(decision("wippy.facade:config_read_runtime", "template.get", "wippy.facade:templates"), "allow") - test.eq(decision("wippy.facade:config_read_runtime", "env.get", "ENCRYPTION_KEY"), "undefined") - test.eq(decision("wippy.facade:config_read_runtime", "registry.apply", "wippy.facade:fe_facade_url"), "undefined") - end) - - test.it("grants only filesystem open for fs-backed theming", function() - test.eq(decision("wippy.facade:content_fs_runtime", "fs.get", "app:app_fs"), "allow") - test.eq(decision("wippy.facade:content_fs_runtime", "db.get", "app:db"), "undefined") - end) - end) -end - -return { run = run } diff --git a/src/facade/test/_index.yaml b/src/facade/test/_index.yaml index 89fe0855..5d7265c5 100644 --- a/src/facade/test/_index.yaml +++ b/src/facade/test/_index.yaml @@ -2,6 +2,13 @@ version: "1.0" namespace: app entries: + - name: dep.wippy.test + kind: ns.dependency + meta: + description: Test framework + component: wippy/test + version: "*" + - name: gateway kind: http.service meta: @@ -30,7 +37,7 @@ entries: modules: - security - - name: config_handler_test + - name: config_dependency_test kind: function.lua meta: type: test @@ -43,3 +50,33 @@ entries: modules: - json - registry + + # Tests + - name: config_handler_test + kind: function.lua + meta: + type: test + suite: facade + comment: Config handler tests + source: file://config_handler_test.lua + method: run + imports: + test: wippy.test:test + modules: + - json + - registry + + - name: theming_helpers_test + kind: function.lua + meta: + type: test + suite: facade + comment: Tests for theming_helpers (CSS generation + file-ref resolution) + source: file://theming_helpers_test.lua + method: run + imports: + test: wippy.test:test + theming_helpers: wippy.facade:theming_helpers + modules: + - fs + - json diff --git a/src/facade/config_handler_test.lua b/src/facade/test/config_handler_test.lua similarity index 100% rename from src/facade/config_handler_test.lua rename to src/facade/test/config_handler_test.lua diff --git a/src/facade/test/security_policy_test.lua b/src/facade/test/security_policy_test.lua index 9959d232..f5eb9f10 100644 --- a/src/facade/test/security_policy_test.lua +++ b/src/facade/test/security_policy_test.lua @@ -1,7 +1,7 @@ local test = require("test") local security = require("security") -local function load_policy(id) +local function load_policy(id: string) local policy, err = security.policy(id) if not policy then error("missing policy " .. id .. ": " .. tostring(err)) @@ -9,7 +9,7 @@ local function load_policy(id) return policy end -local function decision(policy_id, action, resource) +local function decision(policy_id: string, action: string, resource: string): string local actor = security.new_actor("wippy.facade:test", {}) local result = load_policy(policy_id):evaluate(actor, action, resource, {}) if result == "allow" or result == "deny" then diff --git a/src/facade/theming_helpers_test.lua b/src/facade/test/theming_helpers_test.lua similarity index 100% rename from src/facade/theming_helpers_test.lua rename to src/facade/test/theming_helpers_test.lua diff --git a/src/facade/wippy.lock b/src/facade/wippy.lock index d8ba0a96..6f26413c 100644 --- a/src/facade/wippy.lock +++ b/src/facade/wippy.lock @@ -5,9 +5,3 @@ modules: - name: wippy/facade version: 0.5.25 hash: e6d38b49b392e4af8c518589ed2dde99191642fde57313f73e8fe9841d2c2fa7 - - name: wippy/terminal - version: 0.4.2 - hash: 34b99aac2eba9c5016fd02c783117fb2b0381ce14696c7b199265458b99a3271 - - name: wippy/test - version: 0.4.11 - hash: 235f2f1d222dabeec1a83f6f9f48a7f75abf2143860b833437c1d96da3cd3e95 diff --git a/src/llm/src/_index.yaml b/src/llm/src/_index.yaml index c842c9f9..e8392bf1 100644 --- a/src/llm/src/_index.yaml +++ b/src/llm/src/_index.yaml @@ -88,13 +88,6 @@ entries: default: "wippy.terminal:host" # Dependencies - - name: dep.wippy.test - kind: "ns.dependency" - meta: - description: "Testing component" - component: "wippy/test" - version: ">=v0.4.0" - - name: dep.wippy.security kind: "ns.dependency" meta: @@ -343,52 +336,6 @@ entries: comment: Shared provider-independent validation for typed evaluation requests source: file://evaluation.lua - # wippy.llm:llm_test - - name: llm_test - kind: function.lua - meta: - name: LLM Library Test - type: test - comment: Tests the modern LLM library with smart model resolution and contract-based providers - group: LLM / General - tags: - - llm - - generation - - structured_output - - embeddings - - evaluate - - contracts - - providers - - tests - source: file://llm_test.lua - modules: - - json - - uuid - - security - imports: - llm: wippy.llm:llm - test: wippy.test:test - method: run_tests - - # wippy.llm:route_flow_test - - name: route_flow_test - kind: function.lua - meta: - name: Route Driver Flow Test - type: test - group: LLM / General - source: file://route_flow_test.lua - imports: - llm: wippy.llm:llm - claude_generate: wippy.llm.claude:generate - claude_structured: wippy.llm.claude:structured_output - bedrock_generate: wippy.llm.bedrock:generate - bedrock_structured: wippy.llm.bedrock:structured_output - google_generate: wippy.llm.google:generate - google_structured: wippy.llm.google:structured_output - test: wippy.test:test - method: run_tests - # wippy.llm:output - name: output kind: library.lua @@ -399,84 +346,16 @@ entries: modules: - logger - # wippy.llm:output_test - - name: output_test - kind: function.lua - meta: - name: Output Library Test - type: test - comment: Tests the output library functionality for formatting LLM responses - group: LLM / General - tags: - - llm - - output - - formatting - - tests - depends_on: - - ns:wippy.test - source: file://output_test.lua - modules: - - json - - time - imports: - output: wippy.llm:output - test: wippy.test:test - method: run_tests - # wippy.llm:prompt - name: prompt kind: library.lua meta: type: library comment: Universal abstract prompt builder for LLM messages with multi-modal support - depends_on: - - ns:wippy.test source: file://prompt.lua modules: - json - # wippy.llm:prompt_test - - name: prompt_test - kind: function.lua - meta: - name: Prompt Library Test - type: test - comment: Tests the prompt library functionality for building LLM messages - group: LLM / General - tags: - - llm - - prompts - - messages - - tests - depends_on: - - ns:wippy.test - source: file://prompt_test.lua - modules: - - json - imports: - prompt: wippy.llm:prompt - test: wippy.test:test - method: run_tests - - - name: process_security_test - kind: function.lua - meta: - name: LLM Process Security Test - type: test - comment: Ensures auto-start LLM background services run under the platform process scope. - group: LLM / General - tags: - - llm - - security - - process - - tests - source: file://process_security_test.lua - modules: - - registry - imports: - test: wippy.test:test - method: run_tests - # wippy.llm:provider - name: provider kind: contract.definition diff --git a/src/llm/src/bedrock/_index.yaml b/src/llm/src/bedrock/_index.yaml index d440a4d9..f9dda73b 100644 --- a/src/llm/src/bedrock/_index.yaml +++ b/src/llm/src/bedrock/_index.yaml @@ -315,164 +315,3 @@ entries: session_token_env: wippy.llm.bedrock:aws_session_token base_url_env: wippy.llm.bedrock:base_url timeout_env: wippy.llm.bedrock:timeout - - # Tests - - name: sigv4_test - kind: function.lua - meta: - name: AWS SigV4 Signing Unit Tests - type: test - comment: Unit tests for AWS SigV4 request signing - group: LLM / Drivers / Bedrock - tags: - - unit-test - - sigv4 - - aws - - bedrock - source: file://sigv4_test.lua - modules: - - crypto - - hash - - time - imports: - sigv4: wippy.llm.bedrock:sigv4 - test: wippy.test:test - method: run_tests - - - name: client_test - kind: function.lua - meta: - name: Bedrock Client Unit Tests - type: test - comment: Unit tests for the Bedrock Runtime client covering transport retry - group: LLM / Drivers / Bedrock - tags: - - unit-test - - client - - bedrock - source: file://client_test.lua - modules: - - json - imports: - bedrock_client: wippy.llm.bedrock:client - test: wippy.test:test - method: run_tests - - - name: mapper_test - kind: function.lua - meta: - name: Bedrock Converse Mapper Unit Tests - type: test - comment: Unit tests for Converse API request/response mapping - group: LLM / Drivers / Bedrock - tags: - - unit-test - - mapper - - bedrock - source: file://mapper_test.lua - modules: - - json - imports: - mapper: wippy.llm.bedrock:mapper - output: wippy.llm:output - test: wippy.test:test - method: run_tests - - - name: generate_test - kind: function.lua - meta: - name: Bedrock Generate Handler Unit Tests - type: test - comment: Unit tests for Bedrock text generation handler using Converse API - group: LLM / Drivers / Bedrock - tags: - - unit-test - - generation - - bedrock - source: file://generate_test.lua - modules: - - json - imports: - generate_handler: wippy.llm.bedrock:generate - test: wippy.test:test - method: run_tests - - - name: structured_output_test - kind: function.lua - meta: - name: Bedrock Structured Output Handler Unit Tests - type: test - comment: Unit tests for Bedrock structured output handler using Converse API - group: LLM / Drivers / Bedrock - tags: - - unit-test - - structured-output - - bedrock - source: file://structured_output_test.lua - modules: - - json - imports: - structured_output_handler: wippy.llm.bedrock:structured_output - test: wippy.test:test - method: run_tests - - - name: embed_test - kind: function.lua - meta: - name: Bedrock Embed Handler Unit Tests - type: test - comment: Unit tests for Bedrock embedding handler with Titan and Cohere format adapters - group: LLM / Drivers / Bedrock - tags: - - unit-test - - embed - - bedrock - source: file://embed_test.lua - modules: - - json - imports: - embed_handler: wippy.llm.bedrock:embed - test: wippy.test:test - method: run_tests - - - name: status_test - kind: function.lua - meta: - name: Bedrock Status Handler Unit Tests - type: test - comment: Unit tests for Bedrock status handler - group: LLM / Drivers / Bedrock - tags: - - unit-test - - status - - bedrock - source: file://status_test.lua - imports: - status_handler: wippy.llm.bedrock:status - test: wippy.test:test - method: run_tests - - - name: integration_test - kind: function.lua - meta: - timeout: 300s - name: Bedrock Integration Tests - type: test - comment: Integration tests for Bedrock using real API calls - group: LLM / Drivers / Bedrock - tags: - - integration-test - - bedrock - source: file://integration_test.lua - modules: - - json - - env - imports: - generate_handler: wippy.llm.bedrock:generate - status_handler: wippy.llm.bedrock:status - structured_output_handler: wippy.llm.bedrock:structured_output - embed_handler: wippy.llm.bedrock:embed - bedrock_credentials: wippy.llm.bedrock:credentials - output: wippy.llm:output - test: wippy.test:test - method: run_tests diff --git a/src/llm/src/claude/_index.yaml b/src/llm/src/claude/_index.yaml index 5033352c..92900315 100644 --- a/src/llm/src/claude/_index.yaml +++ b/src/llm/src/claude/_index.yaml @@ -42,32 +42,6 @@ entries: output: wippy.llm:output transport: wippy.llm.util:transport - # wippy.llm.claude:client_test - - name: client_test - kind: function.lua - meta: - name: Claude Client Unit Tests - type: test - comment: Unit tests for Claude client covering context resolution, HTTP handling, streaming, and error parsing - group: LLM / Drivers / Claude - tags: - - unit-test - - client - - http - - streaming - - context - - claude - source: file://client_test.lua - modules: - - json - - env - - ctx - - http_client - imports: - claude_client: wippy.llm.claude:client - test: wippy.test:test - method: run_tests - # wippy.llm.claude:driver - name: driver kind: contract.binding @@ -129,61 +103,6 @@ entries: route: wippy.llm.util:route method: handler - # wippy.llm.claude:generate_test - - name: generate_test - kind: function.lua - meta: - name: Claude Generate Handler Unit Tests - type: test - comment: Unit tests for Claude text generation handler covering contract validation, streaming, and tool calling - group: LLM / Drivers / Claude - tags: - - unit-test - - generation - - streaming - - tools - - contract - - claude - source: file://generate_test.lua - modules: - - json - - env - - ctx - imports: - generate_handler: wippy.llm.claude:generate - test: wippy.test:test - method: run_tests - - # wippy.llm.claude:integration_test - - name: integration_test - kind: function.lua - meta: - timeout: 300s - name: Claude Contract Integration Tests - type: test - comment: Integration tests for all Claude contract handlers using real API calls when enabled - group: LLM / Drivers / Claude - tags: - - integration-test - - api - - generation - - structured-output - - status - - contract - - claude - source: file://integration_test.lua - modules: - - json - - env - - ctx - imports: - llm: wippy.llm:llm - generate_handler: wippy.llm.claude:generate - status_handler: wippy.llm.claude:status - structured_output_handler: wippy.llm.claude:structured_output - test: wippy.test:test - method: run_tests - # wippy.llm.claude:mapper - name: mapper kind: library.lua @@ -199,30 +118,6 @@ entries: output: wippy.llm:output route: wippy.llm.util:route - # wippy.llm.claude:mapper_test - - name: mapper_test - kind: function.lua - meta: - name: Claude Mapper Test - type: test - comment: Tests for Claude mapper functionality - group: LLM / Drivers / Claude - tags: - - llm - - claude - - mapper - - transformation - source: file://mapper_test.lua - modules: - - json - - hash - imports: - prompt: wippy.llm:prompt - mapper: wippy.llm.claude:mapper - output: wippy.llm:output - test: wippy.test:test - method: run_tests - # wippy.llm.claude:provider - name: provider kind: registry.entry @@ -263,30 +158,6 @@ entries: transport: wippy.llm.util:transport method: handler - # wippy.llm.claude:status_test - - name: status_test - kind: function.lua - meta: - name: Claude Status Handler Unit Tests - type: test - comment: Unit tests for Claude status handler covering health checks and connection testing - group: LLM / Drivers / Claude - tags: - - unit-test - - status - - health-check - - contract - - claude - source: file://status_test.lua - modules: - - json - - env - - ctx - imports: - status_handler: wippy.llm.claude:status - test: wippy.test:test - method: run_tests - # wippy.llm.claude:structured_output - name: structured_output kind: function.lua @@ -304,32 +175,6 @@ entries: route: wippy.llm.util:route method: handler - # wippy.llm.claude:structured_output_test - - name: structured_output_test - kind: function.lua - meta: - name: Claude Structured Output Handler Unit Tests - type: test - comment: Unit tests for Claude structured output handler covering schema validation and tool-based structured generation - group: LLM / Drivers / Claude - tags: - - unit-test - - structured-output - - schema - - tools - - contract - - claude - source: file://structured_output_test.lua - modules: - - json - - env - - ctx - - hash - imports: - structured_output_handler: wippy.llm.claude:structured_output - test: wippy.test:test - method: run_tests - # wippy.llm.claude:timeout - name: timeout kind: env.variable diff --git a/src/llm/src/discovery/_index.yaml b/src/llm/src/discovery/_index.yaml index 8d0afc23..ac966930 100644 --- a/src/llm/src/discovery/_index.yaml +++ b/src/llm/src/discovery/_index.yaml @@ -12,28 +12,6 @@ entries: modules: - registry - # wippy.llm.discovery:models_test - - name: models_test - kind: function.lua - meta: - name: Models Discovery Library Test - type: test - comment: Tests the model discovery library functionality for finding models and classes - group: LLM / Discovery - tags: - - llm - - models - - discovery - - classes - - tests - source: file://models_test.lua - modules: - - registry - imports: - models: wippy.llm.discovery:models - test: wippy.test:test - method: run_tests - # wippy.llm.discovery:providers - name: providers kind: library.lua @@ -44,27 +22,4 @@ entries: modules: - registry - contract - - # wippy.llm.discovery:providers_test - - name: providers_test - kind: function.lua - meta: - name: Providers Discovery Library Test - type: test - comment: Tests the provider discovery library functionality for listing and opening providers - group: LLM / Discovery - tags: - - llm - - providers - - discovery - - contracts - - tests - source: file://providers_test.lua - modules: - - registry - - contract - imports: - providers: wippy.llm.discovery:providers - test: wippy.test:test - method: run_tests \ No newline at end of file diff --git a/src/llm/src/e2e/_index.yaml b/src/llm/src/e2e/_index.yaml deleted file mode 100644 index 84c0076f..00000000 --- a/src/llm/src/e2e/_index.yaml +++ /dev/null @@ -1,26 +0,0 @@ -version: "1.0" -namespace: wippy.llm.e2e - -entries: - # wippy.llm.e2e:integration_test - - name: integration_test - kind: function.lua - meta: - timeout: 300s - name: LLM E2E Integration Test - type: test - comment: End-to-end integration test for LLM provider calls through contract routing - group: LLM / E2E - tags: - - llm - - e2e - - integration - - providers - source: file://integration_test.lua - modules: - - env - imports: - bedrock_credentials: wippy.llm.bedrock:credentials - llm: wippy.llm:llm - test: wippy.test:test - method: run_tests diff --git a/src/llm/src/google/_index.yaml b/src/llm/src/google/_index.yaml index 546448c4..e9f6f1f3 100644 --- a/src/llm/src/google/_index.yaml +++ b/src/llm/src/google/_index.yaml @@ -118,25 +118,6 @@ entries: transport: wippy.llm.util:transport google_mapper: wippy.llm.google:mapper - # wippy.llm.google:client_test - - name: client_test - kind: function.lua - meta: - name: Google low-level HTTP client Unit Tests - type: test - comment: Unit tests for Google low-level HTTP client - group: LLM / Drivers / Google - tags: - - unit-test - - google_http_client - source: file://client_test.lua - modules: - - json - imports: - google_client: wippy.llm.google:client - test: wippy.test:test - method: run_tests - # wippy.llm.google:config - name: config kind: library.lua @@ -155,26 +136,6 @@ entries: imports: transport: wippy.llm.util:transport - # wippy.llm.google:config_test - - name: config_test - kind: function.lua - meta: - name: Google configuration Unit Tests - type: test - comment: Unit tests for Google configuration - group: LLM / Drivers / Google - tags: - - unit-test - - configuration - source: file://config_test.lua - modules: - - base64 - - json - imports: - google_config: wippy.llm.google:config - test: wippy.test:test - method: run_tests - # wippy.llm.google:generate - name: generate kind: function.lua @@ -190,48 +151,6 @@ entries: google_config: wippy.llm.google:config method: handler - # wippy.llm.google:generate_test - - name: generate_test - kind: function.lua - meta: - name: Google Generate Handler Unit Tests - type: test - comment: Unit tests for Google generate handler - group: LLM / Drivers / Google - tags: - - unit-test - - generation - source: file://generate_test.lua - modules: - - base64 - - json - imports: - google_generate: wippy.llm.google:generate - google_config: wippy.llm.google:config - test: wippy.test:test - method: run_tests - - # wippy.llm.google:integration_test - - name: integration_test - kind: function.lua - meta: - timeout: 300s - name: Google Integration Tests - type: test - comment: Integration tests for Google LLM driver - group: LLM / Drivers / Google - tags: - - integration-test - - google - source: file://integration_test.lua - modules: - - env - imports: - google_generate: wippy.llm.google:generate - google_structured_output: wippy.llm.google:structured_output - test: wippy.test:test - method: run_tests - # wippy.llm.google:mapper - name: mapper kind: library.lua @@ -245,24 +164,6 @@ entries: output: wippy.llm:output route: wippy.llm.util:route - # wippy.llm.google:mapper_test - - name: mapper_test - kind: function.lua - meta: - name: Google Mapper Unit Tests - type: test - comment: Unit tests for Google mapper - group: LLM / Drivers / Google - tags: - - unit-test - - mapper - source: file://mapper_test.lua - imports: - google_mapper: wippy.llm.google:mapper - output: wippy.llm:output - test: wippy.test:test - method: run_tests - # wippy.llm.google:status - name: status kind: function.lua @@ -277,23 +178,6 @@ entries: transport: wippy.llm.util:transport method: handler - # wippy.llm.google:status_test - - name: status_test - kind: function.lua - meta: - name: Google provider status handler Unit Tests - type: test - comment: Unit tests for Google provider status handler - group: LLM / Drivers / Google - tags: - - unit-test - - status - source: file://status_test.lua - imports: - google_status: wippy.llm.google:status - test: wippy.test:test - method: run_tests - # wippy.llm.google:structured_output - name: structured_output kind: function.lua @@ -310,20 +194,3 @@ entries: google_mapper: wippy.llm.google:mapper output: wippy.llm:output method: handler - - # wippy.llm.google:structured_output_test - - name: structured_output_test - kind: function.lua - meta: - name: Google structured output handler Unit Tests - type: test - comment: Unit tests for Google structured output handler - group: LLM / Drivers / Google - tags: - - unit-test - - structured-output - source: file://structured_output_test.lua - imports: - google_structured_output: wippy.llm.google:structured_output - test: wippy.test:test - method: run_tests diff --git a/src/llm/src/google/generative_ai/_index.yaml b/src/llm/src/google/generative_ai/_index.yaml index b24dd610..548933e7 100644 --- a/src/llm/src/google/generative_ai/_index.yaml +++ b/src/llm/src/google/generative_ai/_index.yaml @@ -74,22 +74,3 @@ entries: google_config: wippy.llm.google:config transport: wippy.llm.util:transport method: request - - # wippy.llm.google.generative_ai:client_test - - name: client_test - kind: function.lua - meta: - name: Google Generative AI Client Unit Tests - type: test - comment: Unit tests for Google Generative AI client - group: LLM / Drivers / Google - tags: - - unit-test - - generative_ai_client - source: file://client_test.lua - modules: - - json - imports: - generative_ai_client: wippy.llm.google.generative_ai:client - test: wippy.test:test - method: run_tests diff --git a/src/llm/src/google/vertex/_index.yaml b/src/llm/src/google/vertex/_index.yaml index c170e6d0..f1137916 100644 --- a/src/llm/src/google/vertex/_index.yaml +++ b/src/llm/src/google/vertex/_index.yaml @@ -76,22 +76,3 @@ entries: google_config: wippy.llm.google:config transport: wippy.llm.util:transport method: request - - # wippy.llm.google.vertex:client_test - - name: client_test - kind: function.lua - meta: - name: Google Vertex AI Client Unit Tests - type: test - comment: Unit tests for Google Vertex AI client - group: LLM / Drivers / Google - tags: - - unit-test - - vertex_ai_client - source: file://client_test.lua - modules: - - json - imports: - vertex_client: wippy.llm.google.vertex:client - test: wippy.test:test - method: run_tests diff --git a/src/llm/src/openai/_index.yaml b/src/llm/src/openai/_index.yaml index fda6f3fc..8ea7a898 100644 --- a/src/llm/src/openai/_index.yaml +++ b/src/llm/src/openai/_index.yaml @@ -34,31 +34,6 @@ entries: transport: wippy.llm.util:transport openai_mapper: wippy.llm.openai:mapper - # wippy.llm.openai:client_test - - name: client_test - kind: function.lua - meta: - name: OpenAI Client Unit Tests - type: test - comment: Unit tests for OpenAI client covering context resolution, HTTP handling, streaming, and error parsing - group: LLM / Drivers / OpenAI - tags: - - unit-test - - client - - http - - streaming - - context - source: file://client_test.lua - modules: - - json - - env - - ctx - - http_client - imports: - openai_client: wippy.llm.openai:client - test: wippy.test:test - method: run_tests - # wippy.llm.openai:driver - name: driver kind: contract.binding @@ -123,29 +98,6 @@ entries: pool: max_size: 50 - # wippy.llm.openai:embed_test - - name: embed_test - kind: function.lua - meta: - name: OpenAI Embeddings Handler Unit Tests - type: test - comment: Unit tests for OpenAI embeddings handler covering single and batch embedding generation via contract - group: LLM / Drivers / OpenAI - tags: - - unit-test - - embeddings - - batch - - contract - source: file://embed_test.lua - modules: - - json - - env - - ctx - imports: - embed_handler: wippy.llm.openai:embed - test: wippy.test:test - method: run_tests - # wippy.llm.openai:generate - name: generate kind: function.lua @@ -162,60 +114,6 @@ entries: pool: max_size: 50 - # wippy.llm.openai:generate_test - - name: generate_test - kind: function.lua - meta: - name: OpenAI Generate Handler Unit Tests - type: test - comment: Unit tests for OpenAI text generation handler covering contract validation, streaming, and tool calling - group: LLM / Drivers / OpenAI - tags: - - unit-test - - generation - - streaming - - tools - - contract - source: file://generate_test.lua - modules: - - json - - env - - ctx - imports: - generate_handler: wippy.llm.openai:generate - test: wippy.test:test - method: run_tests - - # wippy.llm.openai:integration_test - - name: integration_test - kind: function.lua - meta: - timeout: 300s - name: OpenAI Contract Integration Tests - type: test - comment: Integration tests for all OpenAI contract handlers using real API calls when enabled - group: LLM / Drivers / OpenAI - tags: - - integration-test - - api - - generation - - embeddings - - structured-output - - status - - contract - source: file://integration_test.lua - modules: - - json - - env - - ctx - imports: - embed_handler: wippy.llm.openai:embed - generate_handler: wippy.llm.openai:generate - status_handler: wippy.llm.openai:status - structured_output_handler: wippy.llm.openai:structured_output - test: wippy.test:test - method: run_tests - # wippy.llm.openai:mapper - name: mapper kind: library.lua @@ -228,29 +126,6 @@ entries: output: wippy.llm:output route: wippy.llm.util:route - # wippy.llm.openai:mapper_test - - name: mapper_test - kind: function.lua - meta: - name: OpenAI Mapper Unit Tests - type: test - comment: Unit tests for OpenAI mapper covering tool mapping, options mapping, response mapping, and error handling - group: LLM / Drivers / OpenAI - tags: - - unit-test - - mapper - - tools - - options - - responses - source: file://mapper_test.lua - modules: - - json - imports: - openai_mapper: wippy.llm.openai:mapper - output: wippy.llm:output - test: wippy.test:test - method: run_tests - # wippy.llm.openai:organization - name: organization kind: env.variable @@ -298,29 +173,6 @@ entries: pool: max_size: 10 - # wippy.llm.openai:status_test - - name: status_test - kind: function.lua - meta: - name: OpenAI Status Handler Unit Tests - type: test - comment: Unit tests for OpenAI status handler covering health checks and connection testing - group: LLM / Drivers / OpenAI - tags: - - unit-test - - status - - health-check - - contract - source: file://status_test.lua - modules: - - json - - env - - ctx - imports: - status_handler: wippy.llm.openai:status - test: wippy.test:test - method: run_tests - # wippy.llm.openai:structured_output - name: structured_output kind: function.lua @@ -338,31 +190,6 @@ entries: pool: max_size: 25 - # wippy.llm.openai:structured_output_test - - name: structured_output_test - kind: function.lua - meta: - name: OpenAI Structured Output Handler Unit Tests - type: test - comment: Unit tests for OpenAI structured output handler covering schema validation and JSON parsing via contract - group: LLM / Drivers / OpenAI - tags: - - unit-test - - structured-output - - schema - - json - - contract - source: file://structured_output_test.lua - modules: - - json - - env - - ctx - - hash - imports: - structured_output_handler: wippy.llm.openai:structured_output - test: wippy.test:test - method: run_tests - # wippy.llm.openai:timeout - name: timeout kind: env.variable diff --git a/src/llm/src/openai_compat/_index.yaml b/src/llm/src/openai_compat/_index.yaml index a3c65678..698100cb 100644 --- a/src/llm/src/openai_compat/_index.yaml +++ b/src/llm/src/openai_compat/_index.yaml @@ -33,31 +33,6 @@ entries: imports: transport: wippy.llm.util:transport - # wippy.llm.openai_compat:client_test - - name: client_test - kind: function.lua - meta: - name: OpenAI-Compatible Client Unit Tests - type: test - comment: Unit tests for OpenAI-compatible client covering context resolution, HTTP, streaming, and error parsing - group: LLM / Drivers / OpenAI Compatible - tags: - - unit-test - - client - - http - - streaming - - context - source: file://client_test.lua - modules: - - json - - env - - ctx - - http_client - imports: - openai_client: wippy.llm.openai_compat:client - test: wippy.test:test - method: run_tests - # wippy.llm.openai_compat:driver - name: driver kind: contract.binding @@ -122,29 +97,6 @@ entries: pool: max_size: 50 - # wippy.llm.openai_compat:embed_test - - name: embed_test - kind: function.lua - meta: - name: OpenAI-Compatible Embeddings Handler Unit Tests - type: test - comment: Unit tests for OpenAI-compatible embeddings handler covering single and batch generation - group: LLM / Drivers / OpenAI Compatible - tags: - - unit-test - - embeddings - - batch - - contract - source: file://embed_test.lua - modules: - - json - - env - - ctx - imports: - embed_handler: wippy.llm.openai_compat:embed - test: wippy.test:test - method: run_tests - # wippy.llm.openai_compat:generate - name: generate kind: function.lua @@ -161,60 +113,6 @@ entries: pool: max_size: 50 - # wippy.llm.openai_compat:generate_test - - name: generate_test - kind: function.lua - meta: - name: OpenAI-Compatible Generate Handler Unit Tests - type: test - comment: Unit tests for OpenAI-compatible text generation handler covering validation, streaming, and tool calling - group: LLM / Drivers / OpenAI Compatible - tags: - - unit-test - - generation - - streaming - - tools - - contract - source: file://generate_test.lua - modules: - - json - - env - - ctx - imports: - generate_handler: wippy.llm.openai_compat:generate - test: wippy.test:test - method: run_tests - - # wippy.llm.openai_compat:integration_test - - name: integration_test - kind: function.lua - meta: - timeout: 300s - name: OpenAI-Compatible Integration Tests - type: test - comment: Integration tests for OpenAI-compatible contract handlers using real API calls when enabled - group: LLM / Drivers / OpenAI Compatible - tags: - - integration-test - - api - - generation - - embeddings - - structured-output - - status - - contract - source: file://integration_test.lua - modules: - - json - - env - - ctx - imports: - embed_handler: wippy.llm.openai_compat:embed - generate_handler: wippy.llm.openai_compat:generate - status_handler: wippy.llm.openai_compat:status - structured_output_handler: wippy.llm.openai_compat:structured_output - test: wippy.test:test - method: run_tests - # wippy.llm.openai_compat:mapper - name: mapper kind: library.lua @@ -227,29 +125,6 @@ entries: output: wippy.llm:output route: wippy.llm.util:route - # wippy.llm.openai_compat:mapper_test - - name: mapper_test - kind: function.lua - meta: - name: OpenAI-Compatible Mapper Unit Tests - type: test - comment: Unit tests for OpenAI-compatible mapper covering tool mapping, options, response mapping, and error handling - group: LLM / Drivers / OpenAI Compatible - tags: - - unit-test - - mapper - - tools - - options - - responses - source: file://mapper_test.lua - modules: - - json - imports: - openai_mapper: wippy.llm.openai_compat:mapper - output: wippy.llm:output - test: wippy.test:test - method: run_tests - # wippy.llm.openai_compat:organization - name: organization kind: env.variable @@ -300,29 +175,6 @@ entries: pool: max_size: 10 - # wippy.llm.openai_compat:status_test - - name: status_test - kind: function.lua - meta: - name: OpenAI-Compatible Status Handler Unit Tests - type: test - comment: Unit tests for OpenAI-compatible status handler covering health checks and connection testing - group: LLM / Drivers / OpenAI Compatible - tags: - - unit-test - - status - - health-check - - contract - source: file://status_test.lua - modules: - - json - - env - - ctx - imports: - status_handler: wippy.llm.openai_compat:status - test: wippy.test:test - method: run_tests - # wippy.llm.openai_compat:structured_output - name: structured_output kind: function.lua @@ -340,31 +192,6 @@ entries: pool: max_size: 25 - # wippy.llm.openai_compat:structured_output_test - - name: structured_output_test - kind: function.lua - meta: - name: OpenAI-Compatible Structured Output Handler Unit Tests - type: test - comment: Unit tests for OpenAI-compatible structured output handler covering schema validation and JSON parsing - group: LLM / Drivers / OpenAI Compatible - tags: - - unit-test - - structured-output - - schema - - json - - contract - source: file://structured_output_test.lua - modules: - - json - - env - - ctx - - hash - imports: - structured_output_handler: wippy.llm.openai_compat:structured_output - test: wippy.test:test - method: run_tests - # wippy.llm.openai_compat:timeout - name: timeout kind: env.variable diff --git a/src/llm/src/typesafe/_index.yaml b/src/llm/src/typesafe/_index.yaml index 1b7c0e71..88be0191 100644 --- a/src/llm/src/typesafe/_index.yaml +++ b/src/llm/src/typesafe/_index.yaml @@ -33,31 +33,6 @@ entries: imports: transport: wippy.llm.util:transport - # wippy.llm.typesafe:client_test - - name: client_test - kind: function.lua - meta: - name: TypeSafe Client Unit Tests - type: test - comment: Unit tests for the TypeSafe client covering context resolution, HTTP, retry, and error parsing - group: LLM / Drivers / TypeSafe - tags: - - unit-test - - client - - http - - retry - - context - source: file://client_test.lua - modules: - - json - - env - - ctx - - http_client - imports: - typesafe_client: wippy.llm.typesafe:client - test: wippy.test:test - method: run_tests - # wippy.llm.typesafe:driver - name: driver kind: contract.binding @@ -95,28 +70,6 @@ entries: type: object description: Provider-level retry policy for transient transport/provider failures - # wippy.llm.typesafe:integration_test - - name: integration_test - kind: function.lua - meta: - name: TypeSafe Integration Tests - type: test - comment: Integration tests driving the TypeSafe contract binding against the real API when enabled - group: LLM / Drivers / TypeSafe - tags: - - integration-test - - api - - evaluate - - status - - contract - source: file://integration_test.lua - modules: - - env - - contract - imports: - test: wippy.test:test - method: run_tests - # wippy.llm.typesafe:mapper - name: mapper kind: library.lua @@ -126,26 +79,6 @@ entries: imports: output: wippy.llm:output - # wippy.llm.typesafe:mapper_test - - name: mapper_test - kind: function.lua - meta: - name: TypeSafe Mapper Unit Tests - type: test - comment: Unit tests for the TypeSafe mapper covering questions, readings, tokens, and error classification - group: LLM / Drivers / TypeSafe - tags: - - unit-test - - mapper - - evaluate - - readings - source: file://mapper_test.lua - imports: - typesafe_mapper: wippy.llm.typesafe:mapper - output: wippy.llm:output - test: wippy.test:test - method: run_tests - # wippy.llm.typesafe:provider - name: provider kind: registry.entry @@ -183,29 +116,6 @@ entries: pool: max_size: 10 - # wippy.llm.typesafe:status_test - - name: status_test - kind: function.lua - meta: - name: TypeSafe Status Handler Unit Tests - type: test - comment: Unit tests for the TypeSafe status handler covering health checks and connection testing - group: LLM / Drivers / TypeSafe - tags: - - unit-test - - status - - health-check - - contract - source: file://status_test.lua - modules: - - json - - env - - ctx - imports: - status_handler: wippy.llm.typesafe:status - test: wippy.test:test - method: run_tests - # wippy.llm.typesafe:timeout - name: timeout kind: env.variable @@ -228,26 +138,3 @@ entries: method: handler pool: max_size: 50 - - # wippy.llm.typesafe:evaluate_test - - name: evaluate_test - kind: function.lua - meta: - name: TypeSafe Evaluation Handler Unit Tests - type: test - comment: Unit tests for the TypeSafe evaluate handler covering validation, request building, readings, and errors - group: LLM / Drivers / TypeSafe - tags: - - unit-test - - evaluate - - readings - - contract - source: file://evaluate_test.lua - modules: - - json - - env - - ctx - imports: - evaluate_handler: wippy.llm.typesafe:evaluate - test: wippy.test:test - method: run_tests diff --git a/src/llm/src/util/_index.yaml b/src/llm/src/util/_index.yaml index ab27c945..00e8f02b 100644 --- a/src/llm/src/util/_index.yaml +++ b/src/llm/src/util/_index.yaml @@ -21,31 +21,6 @@ entries: llm: wippy.llm:llm models: wippy.llm.discovery:models - # wippy.llm.util:compress_test - - name: compress_test - kind: function.lua - meta: - name: Compress Library Test - type: test - comment: Tests the intelligent content compression library functionality for adapting to model context limits - group: LLM / Utils - tags: - - llm - - compression - - summarization - - text-processing - - tests - source: file://compress_test.lua - modules: - - env - - text - imports: - compress: wippy.llm.util:compress - llm: wippy.llm:llm - models: wippy.llm.discovery:models - test: wippy.test:test - method: run_tests - # wippy.llm.util:transport - name: transport kind: library.lua @@ -60,41 +35,10 @@ entries: modules: - time - # wippy.llm.util:transport_test - - name: transport_test - kind: function.lua - meta: - name: Provider Transport Test - type: test - comment: Tests config lookup, method dispatch, retry and health classification of the shared provider transport - group: LLM / Utils - tags: - - llm - - http - - retry - - tests - source: file://transport_test.lua - imports: - transport: wippy.llm.util:transport - test: wippy.test:test - method: run_tests - - name: route kind: library.lua source: file://route.lua - - name: route_test - kind: function.lua - meta: - name: Route Facts Test - type: test - group: LLM / Utils - source: file://route_test.lua - imports: - route: wippy.llm.util:route - test: wippy.test:test - method: run_tests - - name: thinking kind: library.lua source: file://thinking.lua diff --git a/src/llm/src/wippy.lock b/src/llm/src/wippy.lock deleted file mode 100644 index da607b49..00000000 --- a/src/llm/src/wippy.lock +++ /dev/null @@ -1,10 +0,0 @@ -directories: - modules: .wippy - src: . -modules: - - name: wippy/terminal - version: 0.4.2 - hash: 34b99aac2eba9c5016fd02c783117fb2b0381ce14696c7b199265458b99a3271 - - name: wippy/test - version: 0.4.10 - hash: 5bc5ffe1b71889c0610133d8843451e5bf80e93ff43712b9017c2c0955fb023d diff --git a/src/llm/test/_index.yaml b/src/llm/test/_index.yaml index b4819488..fa9898df 100644 --- a/src/llm/test/_index.yaml +++ b/src/llm/test/_index.yaml @@ -2,6 +2,13 @@ version: "1.0" namespace: app entries: + - name: dep.wippy.test + kind: ns.dependency + meta: + description: Test framework + component: wippy/test + version: ">=v0.4.0" + - name: env_storage kind: env.storage.os meta: @@ -91,3 +98,1185 @@ entries: imports: test: wippy.test:test providers: wippy.llm.discovery:providers + + # app:llm_test + - name: llm_test + kind: function.lua + meta: + name: LLM Library Test + type: test + comment: Tests the modern LLM library with smart model resolution and contract-based providers + group: LLM / General + tags: + - llm + - generation + - structured_output + - embeddings + - evaluate + - contracts + - providers + - tests + source: file://llm_test.lua + modules: + - json + - uuid + - security + imports: + llm: wippy.llm:llm + test: wippy.test:test + method: run_tests + + # app:route_flow_test + - name: route_flow_test + kind: function.lua + meta: + name: Route Driver Flow Test + type: test + group: LLM / General + source: file://route_flow_test.lua + imports: + llm: wippy.llm:llm + claude_generate: wippy.llm.claude:generate + claude_structured: wippy.llm.claude:structured_output + bedrock_generate: wippy.llm.bedrock:generate + bedrock_structured: wippy.llm.bedrock:structured_output + google_generate: wippy.llm.google:generate + google_structured: wippy.llm.google:structured_output + test: wippy.test:test + method: run_tests + + # app:output_test + - name: output_test + kind: function.lua + meta: + name: Output Library Test + type: test + comment: Tests the output library functionality for formatting LLM responses + group: LLM / General + tags: + - llm + - output + - formatting + - tests + depends_on: + - ns:wippy.test + source: file://output_test.lua + modules: + - json + - time + imports: + output: wippy.llm:output + test: wippy.test:test + method: run_tests + + # app:prompt_test + - name: prompt_test + kind: function.lua + meta: + name: Prompt Library Test + type: test + comment: Tests the prompt library functionality for building LLM messages + group: LLM / General + tags: + - llm + - prompts + - messages + - tests + depends_on: + - ns:wippy.test + source: file://prompt_test.lua + modules: + - json + imports: + prompt: wippy.llm:prompt + test: wippy.test:test + method: run_tests + + - name: process_security_test + kind: function.lua + meta: + name: LLM Process Security Test + type: test + comment: Ensures auto-start LLM background services run under the platform process scope. + group: LLM / General + tags: + - llm + - security + - process + - tests + source: file://process_security_test.lua + modules: + - registry + imports: + test: wippy.test:test + method: run_tests + + # Tests + - name: bedrock_sigv4_test + kind: function.lua + meta: + name: AWS SigV4 Signing Unit Tests + type: test + comment: Unit tests for AWS SigV4 request signing + group: LLM / Drivers / Bedrock + tags: + - unit-test + - sigv4 + - aws + - bedrock + source: file://bedrock/sigv4_test.lua + modules: + - crypto + - hash + - time + imports: + sigv4: wippy.llm.bedrock:sigv4 + test: wippy.test:test + method: run_tests + + - name: bedrock_client_test + kind: function.lua + meta: + name: Bedrock Client Unit Tests + type: test + comment: Unit tests for the Bedrock Runtime client covering transport retry + group: LLM / Drivers / Bedrock + tags: + - unit-test + - client + - bedrock + source: file://bedrock/client_test.lua + modules: + - json + imports: + bedrock_client: wippy.llm.bedrock:client + test: wippy.test:test + method: run_tests + + - name: bedrock_mapper_test + kind: function.lua + meta: + name: Bedrock Converse Mapper Unit Tests + type: test + comment: Unit tests for Converse API request/response mapping + group: LLM / Drivers / Bedrock + tags: + - unit-test + - mapper + - bedrock + source: file://bedrock/mapper_test.lua + modules: + - json + imports: + mapper: wippy.llm.bedrock:mapper + output: wippy.llm:output + test: wippy.test:test + method: run_tests + + - name: bedrock_generate_test + kind: function.lua + meta: + name: Bedrock Generate Handler Unit Tests + type: test + comment: Unit tests for Bedrock text generation handler using Converse API + group: LLM / Drivers / Bedrock + tags: + - unit-test + - generation + - bedrock + source: file://bedrock/generate_test.lua + modules: + - json + imports: + generate_handler: wippy.llm.bedrock:generate + test: wippy.test:test + method: run_tests + + - name: bedrock_structured_output_test + kind: function.lua + meta: + name: Bedrock Structured Output Handler Unit Tests + type: test + comment: Unit tests for Bedrock structured output handler using Converse API + group: LLM / Drivers / Bedrock + tags: + - unit-test + - structured-output + - bedrock + source: file://bedrock/structured_output_test.lua + modules: + - json + imports: + structured_output_handler: wippy.llm.bedrock:structured_output + test: wippy.test:test + method: run_tests + + - name: bedrock_embed_test + kind: function.lua + meta: + name: Bedrock Embed Handler Unit Tests + type: test + comment: Unit tests for Bedrock embedding handler with Titan and Cohere format adapters + group: LLM / Drivers / Bedrock + tags: + - unit-test + - embed + - bedrock + source: file://bedrock/embed_test.lua + modules: + - json + imports: + embed_handler: wippy.llm.bedrock:embed + test: wippy.test:test + method: run_tests + + - name: bedrock_status_test + kind: function.lua + meta: + name: Bedrock Status Handler Unit Tests + type: test + comment: Unit tests for Bedrock status handler + group: LLM / Drivers / Bedrock + tags: + - unit-test + - status + - bedrock + source: file://bedrock/status_test.lua + imports: + status_handler: wippy.llm.bedrock:status + test: wippy.test:test + method: run_tests + + - name: bedrock_integration_test + kind: function.lua + meta: + timeout: 300s + name: Bedrock Integration Tests + type: test + comment: Integration tests for Bedrock using real API calls + group: LLM / Drivers / Bedrock + tags: + - integration-test + - bedrock + source: file://bedrock/integration_test.lua + modules: + - json + - env + imports: + generate_handler: wippy.llm.bedrock:generate + status_handler: wippy.llm.bedrock:status + structured_output_handler: wippy.llm.bedrock:structured_output + embed_handler: wippy.llm.bedrock:embed + bedrock_credentials: wippy.llm.bedrock:credentials + output: wippy.llm:output + test: wippy.test:test + method: run_tests + + # app:claude_client_test + - name: claude_client_test + kind: function.lua + meta: + name: Claude Client Unit Tests + type: test + comment: Unit tests for Claude client covering context resolution, HTTP handling, streaming, and error parsing + group: LLM / Drivers / Claude + tags: + - unit-test + - client + - http + - streaming + - context + - claude + source: file://claude/client_test.lua + modules: + - json + - env + - ctx + - http_client + imports: + claude_client: wippy.llm.claude:client + test: wippy.test:test + method: run_tests + + # app:claude_generate_test + - name: claude_generate_test + kind: function.lua + meta: + name: Claude Generate Handler Unit Tests + type: test + comment: Unit tests for Claude text generation handler covering contract validation, streaming, and tool calling + group: LLM / Drivers / Claude + tags: + - unit-test + - generation + - streaming + - tools + - contract + - claude + source: file://claude/generate_test.lua + modules: + - json + - env + - ctx + imports: + generate_handler: wippy.llm.claude:generate + test: wippy.test:test + method: run_tests + + # app:claude_integration_test + - name: claude_integration_test + kind: function.lua + meta: + timeout: 300s + name: Claude Contract Integration Tests + type: test + comment: Integration tests for all Claude contract handlers using real API calls when enabled + group: LLM / Drivers / Claude + tags: + - integration-test + - api + - generation + - structured-output + - status + - contract + - claude + source: file://claude/integration_test.lua + modules: + - json + - env + - ctx + imports: + llm: wippy.llm:llm + generate_handler: wippy.llm.claude:generate + status_handler: wippy.llm.claude:status + structured_output_handler: wippy.llm.claude:structured_output + test: wippy.test:test + method: run_tests + + # app:claude_mapper_test + - name: claude_mapper_test + kind: function.lua + meta: + name: Claude Mapper Test + type: test + comment: Tests for Claude mapper functionality + group: LLM / Drivers / Claude + tags: + - llm + - claude + - mapper + - transformation + source: file://claude/mapper_test.lua + modules: + - json + - hash + imports: + prompt: wippy.llm:prompt + mapper: wippy.llm.claude:mapper + output: wippy.llm:output + test: wippy.test:test + method: run_tests + + # app:claude_status_test + - name: claude_status_test + kind: function.lua + meta: + name: Claude Status Handler Unit Tests + type: test + comment: Unit tests for Claude status handler covering health checks and connection testing + group: LLM / Drivers / Claude + tags: + - unit-test + - status + - health-check + - contract + - claude + source: file://claude/status_test.lua + modules: + - json + - env + - ctx + imports: + status_handler: wippy.llm.claude:status + test: wippy.test:test + method: run_tests + + # app:claude_structured_output_test + - name: claude_structured_output_test + kind: function.lua + meta: + name: Claude Structured Output Handler Unit Tests + type: test + comment: Unit tests for Claude structured output handler covering schema validation and tool-based structured generation + group: LLM / Drivers / Claude + tags: + - unit-test + - structured-output + - schema + - tools + - contract + - claude + source: file://claude/structured_output_test.lua + modules: + - json + - env + - ctx + - hash + imports: + structured_output_handler: wippy.llm.claude:structured_output + test: wippy.test:test + method: run_tests + + # app:discovery_models_test + - name: discovery_models_test + kind: function.lua + meta: + name: Models Discovery Library Test + type: test + comment: Tests the model discovery library functionality for finding models and classes + group: LLM / Discovery + tags: + - llm + - models + - discovery + - classes + - tests + source: file://discovery/models_test.lua + modules: + - registry + imports: + models: wippy.llm.discovery:models + test: wippy.test:test + method: run_tests + + # app:discovery_providers_test + - name: discovery_providers_test + kind: function.lua + meta: + name: Providers Discovery Library Test + type: test + comment: Tests the provider discovery library functionality for listing and opening providers + group: LLM / Discovery + tags: + - llm + - providers + - discovery + - contracts + - tests + source: file://discovery/providers_test.lua + modules: + - registry + - contract + imports: + providers: wippy.llm.discovery:providers + test: wippy.test:test + method: run_tests + + # app:e2e_integration_test + - name: e2e_integration_test + kind: function.lua + meta: + timeout: 300s + name: LLM E2E Integration Test + type: test + comment: End-to-end integration test for LLM provider calls through contract routing + group: LLM / E2E + tags: + - llm + - e2e + - integration + - providers + source: file://e2e/integration_test.lua + modules: + - env + imports: + bedrock_credentials: wippy.llm.bedrock:credentials + llm: wippy.llm:llm + test: wippy.test:test + method: run_tests + + # app:google_client_test + - name: google_client_test + kind: function.lua + meta: + name: Google low-level HTTP client Unit Tests + type: test + comment: Unit tests for Google low-level HTTP client + group: LLM / Drivers / Google + tags: + - unit-test + - google_http_client + source: file://google/client_test.lua + modules: + - json + imports: + google_client: wippy.llm.google:client + test: wippy.test:test + method: run_tests + + # app:google_config_test + - name: google_config_test + kind: function.lua + meta: + name: Google configuration Unit Tests + type: test + comment: Unit tests for Google configuration + group: LLM / Drivers / Google + tags: + - unit-test + - configuration + source: file://google/config_test.lua + modules: + - base64 + - json + imports: + google_config: wippy.llm.google:config + test: wippy.test:test + method: run_tests + + # app:google_generate_test + - name: google_generate_test + kind: function.lua + meta: + name: Google Generate Handler Unit Tests + type: test + comment: Unit tests for Google generate handler + group: LLM / Drivers / Google + tags: + - unit-test + - generation + source: file://google/generate_test.lua + modules: + - base64 + - json + imports: + google_generate: wippy.llm.google:generate + google_config: wippy.llm.google:config + test: wippy.test:test + method: run_tests + + # app:google_integration_test + - name: google_integration_test + kind: function.lua + meta: + timeout: 300s + name: Google Integration Tests + type: test + comment: Integration tests for Google LLM driver + group: LLM / Drivers / Google + tags: + - integration-test + - google + source: file://google/integration_test.lua + modules: + - env + imports: + google_generate: wippy.llm.google:generate + google_structured_output: wippy.llm.google:structured_output + test: wippy.test:test + method: run_tests + + # app:google_mapper_test + - name: google_mapper_test + kind: function.lua + meta: + name: Google Mapper Unit Tests + type: test + comment: Unit tests for Google mapper + group: LLM / Drivers / Google + tags: + - unit-test + - mapper + source: file://google/mapper_test.lua + imports: + google_mapper: wippy.llm.google:mapper + output: wippy.llm:output + test: wippy.test:test + method: run_tests + + # app:google_status_test + - name: google_status_test + kind: function.lua + meta: + name: Google provider status handler Unit Tests + type: test + comment: Unit tests for Google provider status handler + group: LLM / Drivers / Google + tags: + - unit-test + - status + source: file://google/status_test.lua + imports: + google_status: wippy.llm.google:status + test: wippy.test:test + method: run_tests + + # app:google_structured_output_test + - name: google_structured_output_test + kind: function.lua + meta: + name: Google structured output handler Unit Tests + type: test + comment: Unit tests for Google structured output handler + group: LLM / Drivers / Google + tags: + - unit-test + - structured-output + source: file://google/structured_output_test.lua + imports: + google_structured_output: wippy.llm.google:structured_output + test: wippy.test:test + method: run_tests + + # app:google_generative_ai_client_test + - name: google_generative_ai_client_test + kind: function.lua + meta: + name: Google Generative AI Client Unit Tests + type: test + comment: Unit tests for Google Generative AI client + group: LLM / Drivers / Google + tags: + - unit-test + - generative_ai_client + source: file://google/generative_ai/client_test.lua + modules: + - json + imports: + generative_ai_client: wippy.llm.google.generative_ai:client + test: wippy.test:test + method: run_tests + + # app:google_vertex_client_test + - name: google_vertex_client_test + kind: function.lua + meta: + name: Google Vertex AI Client Unit Tests + type: test + comment: Unit tests for Google Vertex AI client + group: LLM / Drivers / Google + tags: + - unit-test + - vertex_ai_client + source: file://google/vertex/client_test.lua + modules: + - json + imports: + vertex_client: wippy.llm.google.vertex:client + test: wippy.test:test + method: run_tests + + # app:openai_client_test + - name: openai_client_test + kind: function.lua + meta: + name: OpenAI Client Unit Tests + type: test + comment: Unit tests for OpenAI client covering context resolution, HTTP handling, streaming, and error parsing + group: LLM / Drivers / OpenAI + tags: + - unit-test + - client + - http + - streaming + - context + source: file://openai/client_test.lua + modules: + - json + - env + - ctx + - http_client + imports: + openai_client: wippy.llm.openai:client + test: wippy.test:test + method: run_tests + + # app:openai_embed_test + - name: openai_embed_test + kind: function.lua + meta: + name: OpenAI Embeddings Handler Unit Tests + type: test + comment: Unit tests for OpenAI embeddings handler covering single and batch embedding generation via contract + group: LLM / Drivers / OpenAI + tags: + - unit-test + - embeddings + - batch + - contract + source: file://openai/embed_test.lua + modules: + - json + - env + - ctx + imports: + embed_handler: wippy.llm.openai:embed + test: wippy.test:test + method: run_tests + + # app:openai_generate_test + - name: openai_generate_test + kind: function.lua + meta: + name: OpenAI Generate Handler Unit Tests + type: test + comment: Unit tests for OpenAI text generation handler covering contract validation, streaming, and tool calling + group: LLM / Drivers / OpenAI + tags: + - unit-test + - generation + - streaming + - tools + - contract + source: file://openai/generate_test.lua + modules: + - json + - env + - ctx + imports: + generate_handler: wippy.llm.openai:generate + test: wippy.test:test + method: run_tests + + # app:openai_integration_test + - name: openai_integration_test + kind: function.lua + meta: + timeout: 300s + name: OpenAI Contract Integration Tests + type: test + comment: Integration tests for all OpenAI contract handlers using real API calls when enabled + group: LLM / Drivers / OpenAI + tags: + - integration-test + - api + - generation + - embeddings + - structured-output + - status + - contract + source: file://openai/integration_test.lua + modules: + - json + - env + - ctx + imports: + embed_handler: wippy.llm.openai:embed + generate_handler: wippy.llm.openai:generate + status_handler: wippy.llm.openai:status + structured_output_handler: wippy.llm.openai:structured_output + test: wippy.test:test + method: run_tests + + # app:openai_mapper_test + - name: openai_mapper_test + kind: function.lua + meta: + name: OpenAI Mapper Unit Tests + type: test + comment: Unit tests for OpenAI mapper covering tool mapping, options mapping, response mapping, and error handling + group: LLM / Drivers / OpenAI + tags: + - unit-test + - mapper + - tools + - options + - responses + source: file://openai/mapper_test.lua + modules: + - json + imports: + openai_mapper: wippy.llm.openai:mapper + output: wippy.llm:output + test: wippy.test:test + method: run_tests + + # app:openai_status_test + - name: openai_status_test + kind: function.lua + meta: + name: OpenAI Status Handler Unit Tests + type: test + comment: Unit tests for OpenAI status handler covering health checks and connection testing + group: LLM / Drivers / OpenAI + tags: + - unit-test + - status + - health-check + - contract + source: file://openai/status_test.lua + modules: + - json + - env + - ctx + imports: + status_handler: wippy.llm.openai:status + test: wippy.test:test + method: run_tests + + # app:openai_structured_output_test + - name: openai_structured_output_test + kind: function.lua + meta: + name: OpenAI Structured Output Handler Unit Tests + type: test + comment: Unit tests for OpenAI structured output handler covering schema validation and JSON parsing via contract + group: LLM / Drivers / OpenAI + tags: + - unit-test + - structured-output + - schema + - json + - contract + source: file://openai/structured_output_test.lua + modules: + - json + - env + - ctx + - hash + imports: + structured_output_handler: wippy.llm.openai:structured_output + test: wippy.test:test + method: run_tests + + # app:openai_compat_client_test + - name: openai_compat_client_test + kind: function.lua + meta: + name: OpenAI-Compatible Client Unit Tests + type: test + comment: Unit tests for OpenAI-compatible client covering context resolution, HTTP, streaming, and error parsing + group: LLM / Drivers / OpenAI Compatible + tags: + - unit-test + - client + - http + - streaming + - context + source: file://openai_compat/client_test.lua + modules: + - json + - env + - ctx + - http_client + imports: + openai_client: wippy.llm.openai_compat:client + test: wippy.test:test + method: run_tests + + # app:openai_compat_embed_test + - name: openai_compat_embed_test + kind: function.lua + meta: + name: OpenAI-Compatible Embeddings Handler Unit Tests + type: test + comment: Unit tests for OpenAI-compatible embeddings handler covering single and batch generation + group: LLM / Drivers / OpenAI Compatible + tags: + - unit-test + - embeddings + - batch + - contract + source: file://openai_compat/embed_test.lua + modules: + - json + - env + - ctx + imports: + embed_handler: wippy.llm.openai_compat:embed + test: wippy.test:test + method: run_tests + + # app:openai_compat_generate_test + - name: openai_compat_generate_test + kind: function.lua + meta: + name: OpenAI-Compatible Generate Handler Unit Tests + type: test + comment: Unit tests for OpenAI-compatible text generation handler covering validation, streaming, and tool calling + group: LLM / Drivers / OpenAI Compatible + tags: + - unit-test + - generation + - streaming + - tools + - contract + source: file://openai_compat/generate_test.lua + modules: + - json + - env + - ctx + imports: + generate_handler: wippy.llm.openai_compat:generate + test: wippy.test:test + method: run_tests + + # app:openai_compat_integration_test + - name: openai_compat_integration_test + kind: function.lua + meta: + timeout: 300s + name: OpenAI-Compatible Integration Tests + type: test + comment: Integration tests for OpenAI-compatible contract handlers using real API calls when enabled + group: LLM / Drivers / OpenAI Compatible + tags: + - integration-test + - api + - generation + - embeddings + - structured-output + - status + - contract + source: file://openai_compat/integration_test.lua + modules: + - json + - env + - ctx + imports: + embed_handler: wippy.llm.openai_compat:embed + generate_handler: wippy.llm.openai_compat:generate + status_handler: wippy.llm.openai_compat:status + structured_output_handler: wippy.llm.openai_compat:structured_output + test: wippy.test:test + method: run_tests + + # app:openai_compat_mapper_test + - name: openai_compat_mapper_test + kind: function.lua + meta: + name: OpenAI-Compatible Mapper Unit Tests + type: test + comment: Unit tests for OpenAI-compatible mapper covering tool mapping, options, response mapping, and error handling + group: LLM / Drivers / OpenAI Compatible + tags: + - unit-test + - mapper + - tools + - options + - responses + source: file://openai_compat/mapper_test.lua + modules: + - json + imports: + openai_mapper: wippy.llm.openai_compat:mapper + output: wippy.llm:output + test: wippy.test:test + method: run_tests + + # app:openai_compat_status_test + - name: openai_compat_status_test + kind: function.lua + meta: + name: OpenAI-Compatible Status Handler Unit Tests + type: test + comment: Unit tests for OpenAI-compatible status handler covering health checks and connection testing + group: LLM / Drivers / OpenAI Compatible + tags: + - unit-test + - status + - health-check + - contract + source: file://openai_compat/status_test.lua + modules: + - json + - env + - ctx + imports: + status_handler: wippy.llm.openai_compat:status + test: wippy.test:test + method: run_tests + + # app:openai_compat_structured_output_test + - name: openai_compat_structured_output_test + kind: function.lua + meta: + name: OpenAI-Compatible Structured Output Handler Unit Tests + type: test + comment: Unit tests for OpenAI-compatible structured output handler covering schema validation and JSON parsing + group: LLM / Drivers / OpenAI Compatible + tags: + - unit-test + - structured-output + - schema + - json + - contract + source: file://openai_compat/structured_output_test.lua + modules: + - json + - env + - ctx + - hash + imports: + structured_output_handler: wippy.llm.openai_compat:structured_output + test: wippy.test:test + method: run_tests + + # app:typesafe_client_test + - name: typesafe_client_test + kind: function.lua + meta: + name: TypeSafe Client Unit Tests + type: test + comment: Unit tests for the TypeSafe client covering context resolution, HTTP, retry, and error parsing + group: LLM / Drivers / TypeSafe + tags: + - unit-test + - client + - http + - retry + - context + source: file://typesafe/client_test.lua + modules: + - json + - env + - ctx + - http_client + imports: + typesafe_client: wippy.llm.typesafe:client + test: wippy.test:test + method: run_tests + + # app:typesafe_integration_test + - name: typesafe_integration_test + kind: function.lua + meta: + name: TypeSafe Integration Tests + type: test + comment: Integration tests driving the TypeSafe contract binding against the real API when enabled + group: LLM / Drivers / TypeSafe + tags: + - integration-test + - api + - evaluate + - status + - contract + source: file://typesafe/integration_test.lua + modules: + - env + - contract + imports: + test: wippy.test:test + method: run_tests + + # app:typesafe_mapper_test + - name: typesafe_mapper_test + kind: function.lua + meta: + name: TypeSafe Mapper Unit Tests + type: test + comment: Unit tests for the TypeSafe mapper covering questions, readings, tokens, and error classification + group: LLM / Drivers / TypeSafe + tags: + - unit-test + - mapper + - evaluate + - readings + source: file://typesafe/mapper_test.lua + imports: + typesafe_mapper: wippy.llm.typesafe:mapper + output: wippy.llm:output + test: wippy.test:test + method: run_tests + + # app:typesafe_status_test + - name: typesafe_status_test + kind: function.lua + meta: + name: TypeSafe Status Handler Unit Tests + type: test + comment: Unit tests for the TypeSafe status handler covering health checks and connection testing + group: LLM / Drivers / TypeSafe + tags: + - unit-test + - status + - health-check + - contract + source: file://typesafe/status_test.lua + modules: + - json + - env + - ctx + imports: + status_handler: wippy.llm.typesafe:status + test: wippy.test:test + method: run_tests + + # app:typesafe_evaluate_test + - name: typesafe_evaluate_test + kind: function.lua + meta: + name: TypeSafe Evaluation Handler Unit Tests + type: test + comment: Unit tests for the TypeSafe evaluate handler covering validation, request building, readings, and errors + group: LLM / Drivers / TypeSafe + tags: + - unit-test + - evaluate + - readings + - contract + source: file://typesafe/evaluate_test.lua + modules: + - json + - env + - ctx + imports: + evaluate_handler: wippy.llm.typesafe:evaluate + test: wippy.test:test + method: run_tests + + # app:util_compress_test + - name: util_compress_test + kind: function.lua + meta: + name: Compress Library Test + type: test + comment: Tests the intelligent content compression library functionality for adapting to model context limits + group: LLM / Utils + tags: + - llm + - compression + - summarization + - text-processing + - tests + source: file://util/compress_test.lua + modules: + - env + - text + imports: + compress: wippy.llm.util:compress + llm: wippy.llm:llm + models: wippy.llm.discovery:models + test: wippy.test:test + method: run_tests + + # app:util_transport_test + - name: util_transport_test + kind: function.lua + meta: + name: Provider Transport Test + type: test + comment: Tests config lookup, method dispatch, retry and health classification of the shared provider transport + group: LLM / Utils + tags: + - llm + - http + - retry + - tests + source: file://util/transport_test.lua + imports: + transport: wippy.llm.util:transport + test: wippy.test:test + method: run_tests + + - name: util_route_test + kind: function.lua + meta: + name: Route Facts Test + type: test + group: LLM / Utils + source: file://util/route_test.lua + imports: + route: wippy.llm.util:route + test: wippy.test:test + method: run_tests diff --git a/src/llm/src/bedrock/client_test.lua b/src/llm/test/bedrock/client_test.lua similarity index 100% rename from src/llm/src/bedrock/client_test.lua rename to src/llm/test/bedrock/client_test.lua diff --git a/src/llm/src/bedrock/embed_test.lua b/src/llm/test/bedrock/embed_test.lua similarity index 100% rename from src/llm/src/bedrock/embed_test.lua rename to src/llm/test/bedrock/embed_test.lua diff --git a/src/llm/src/bedrock/generate_test.lua b/src/llm/test/bedrock/generate_test.lua similarity index 100% rename from src/llm/src/bedrock/generate_test.lua rename to src/llm/test/bedrock/generate_test.lua diff --git a/src/llm/src/bedrock/integration_test.lua b/src/llm/test/bedrock/integration_test.lua similarity index 100% rename from src/llm/src/bedrock/integration_test.lua rename to src/llm/test/bedrock/integration_test.lua diff --git a/src/llm/src/bedrock/mapper_test.lua b/src/llm/test/bedrock/mapper_test.lua similarity index 100% rename from src/llm/src/bedrock/mapper_test.lua rename to src/llm/test/bedrock/mapper_test.lua diff --git a/src/llm/src/bedrock/sigv4_test.lua b/src/llm/test/bedrock/sigv4_test.lua similarity index 100% rename from src/llm/src/bedrock/sigv4_test.lua rename to src/llm/test/bedrock/sigv4_test.lua diff --git a/src/llm/src/bedrock/status_test.lua b/src/llm/test/bedrock/status_test.lua similarity index 100% rename from src/llm/src/bedrock/status_test.lua rename to src/llm/test/bedrock/status_test.lua diff --git a/src/llm/src/bedrock/structured_output_test.lua b/src/llm/test/bedrock/structured_output_test.lua similarity index 100% rename from src/llm/src/bedrock/structured_output_test.lua rename to src/llm/test/bedrock/structured_output_test.lua diff --git a/src/llm/src/claude/client_test.lua b/src/llm/test/claude/client_test.lua similarity index 100% rename from src/llm/src/claude/client_test.lua rename to src/llm/test/claude/client_test.lua diff --git a/src/llm/src/claude/generate_test.lua b/src/llm/test/claude/generate_test.lua similarity index 100% rename from src/llm/src/claude/generate_test.lua rename to src/llm/test/claude/generate_test.lua diff --git a/src/llm/src/claude/integration_test.lua b/src/llm/test/claude/integration_test.lua similarity index 100% rename from src/llm/src/claude/integration_test.lua rename to src/llm/test/claude/integration_test.lua diff --git a/src/llm/src/claude/mapper_test.lua b/src/llm/test/claude/mapper_test.lua similarity index 100% rename from src/llm/src/claude/mapper_test.lua rename to src/llm/test/claude/mapper_test.lua diff --git a/src/llm/src/claude/status_test.lua b/src/llm/test/claude/status_test.lua similarity index 100% rename from src/llm/src/claude/status_test.lua rename to src/llm/test/claude/status_test.lua diff --git a/src/llm/src/claude/structured_output_test.lua b/src/llm/test/claude/structured_output_test.lua similarity index 100% rename from src/llm/src/claude/structured_output_test.lua rename to src/llm/test/claude/structured_output_test.lua diff --git a/src/llm/src/discovery/models_test.lua b/src/llm/test/discovery/models_test.lua similarity index 100% rename from src/llm/src/discovery/models_test.lua rename to src/llm/test/discovery/models_test.lua diff --git a/src/llm/src/discovery/providers_test.lua b/src/llm/test/discovery/providers_test.lua similarity index 100% rename from src/llm/src/discovery/providers_test.lua rename to src/llm/test/discovery/providers_test.lua diff --git a/src/llm/src/e2e/integration_test.lua b/src/llm/test/e2e/integration_test.lua similarity index 100% rename from src/llm/src/e2e/integration_test.lua rename to src/llm/test/e2e/integration_test.lua diff --git a/src/llm/src/google/client_test.lua b/src/llm/test/google/client_test.lua similarity index 100% rename from src/llm/src/google/client_test.lua rename to src/llm/test/google/client_test.lua diff --git a/src/llm/src/google/config_test.lua b/src/llm/test/google/config_test.lua similarity index 100% rename from src/llm/src/google/config_test.lua rename to src/llm/test/google/config_test.lua diff --git a/src/llm/src/google/generate_test.lua b/src/llm/test/google/generate_test.lua similarity index 100% rename from src/llm/src/google/generate_test.lua rename to src/llm/test/google/generate_test.lua diff --git a/src/llm/src/google/generative_ai/client_test.lua b/src/llm/test/google/generative_ai/client_test.lua similarity index 100% rename from src/llm/src/google/generative_ai/client_test.lua rename to src/llm/test/google/generative_ai/client_test.lua diff --git a/src/llm/src/google/integration_test.lua b/src/llm/test/google/integration_test.lua similarity index 100% rename from src/llm/src/google/integration_test.lua rename to src/llm/test/google/integration_test.lua diff --git a/src/llm/src/google/mapper_test.lua b/src/llm/test/google/mapper_test.lua similarity index 100% rename from src/llm/src/google/mapper_test.lua rename to src/llm/test/google/mapper_test.lua diff --git a/src/llm/src/google/status_test.lua b/src/llm/test/google/status_test.lua similarity index 100% rename from src/llm/src/google/status_test.lua rename to src/llm/test/google/status_test.lua diff --git a/src/llm/src/google/structured_output_test.lua b/src/llm/test/google/structured_output_test.lua similarity index 100% rename from src/llm/src/google/structured_output_test.lua rename to src/llm/test/google/structured_output_test.lua diff --git a/src/llm/src/google/vertex/client_test.lua b/src/llm/test/google/vertex/client_test.lua similarity index 100% rename from src/llm/src/google/vertex/client_test.lua rename to src/llm/test/google/vertex/client_test.lua diff --git a/src/llm/src/llm_test.lua b/src/llm/test/llm_test.lua similarity index 100% rename from src/llm/src/llm_test.lua rename to src/llm/test/llm_test.lua diff --git a/src/llm/src/openai/client_test.lua b/src/llm/test/openai/client_test.lua similarity index 100% rename from src/llm/src/openai/client_test.lua rename to src/llm/test/openai/client_test.lua diff --git a/src/llm/src/openai/embed_test.lua b/src/llm/test/openai/embed_test.lua similarity index 100% rename from src/llm/src/openai/embed_test.lua rename to src/llm/test/openai/embed_test.lua diff --git a/src/llm/src/openai/generate_test.lua b/src/llm/test/openai/generate_test.lua similarity index 100% rename from src/llm/src/openai/generate_test.lua rename to src/llm/test/openai/generate_test.lua diff --git a/src/llm/src/openai/integration_test.lua b/src/llm/test/openai/integration_test.lua similarity index 100% rename from src/llm/src/openai/integration_test.lua rename to src/llm/test/openai/integration_test.lua diff --git a/src/llm/src/openai/mapper_test.lua b/src/llm/test/openai/mapper_test.lua similarity index 100% rename from src/llm/src/openai/mapper_test.lua rename to src/llm/test/openai/mapper_test.lua diff --git a/src/llm/src/openai/status_test.lua b/src/llm/test/openai/status_test.lua similarity index 100% rename from src/llm/src/openai/status_test.lua rename to src/llm/test/openai/status_test.lua diff --git a/src/llm/src/openai/structured_output_test.lua b/src/llm/test/openai/structured_output_test.lua similarity index 100% rename from src/llm/src/openai/structured_output_test.lua rename to src/llm/test/openai/structured_output_test.lua diff --git a/src/llm/src/openai_compat/client_test.lua b/src/llm/test/openai_compat/client_test.lua similarity index 100% rename from src/llm/src/openai_compat/client_test.lua rename to src/llm/test/openai_compat/client_test.lua diff --git a/src/llm/src/openai_compat/embed_test.lua b/src/llm/test/openai_compat/embed_test.lua similarity index 100% rename from src/llm/src/openai_compat/embed_test.lua rename to src/llm/test/openai_compat/embed_test.lua diff --git a/src/llm/src/openai_compat/generate_test.lua b/src/llm/test/openai_compat/generate_test.lua similarity index 100% rename from src/llm/src/openai_compat/generate_test.lua rename to src/llm/test/openai_compat/generate_test.lua diff --git a/src/llm/src/openai_compat/integration_test.lua b/src/llm/test/openai_compat/integration_test.lua similarity index 100% rename from src/llm/src/openai_compat/integration_test.lua rename to src/llm/test/openai_compat/integration_test.lua diff --git a/src/llm/src/openai_compat/mapper_test.lua b/src/llm/test/openai_compat/mapper_test.lua similarity index 100% rename from src/llm/src/openai_compat/mapper_test.lua rename to src/llm/test/openai_compat/mapper_test.lua diff --git a/src/llm/src/openai_compat/status_test.lua b/src/llm/test/openai_compat/status_test.lua similarity index 100% rename from src/llm/src/openai_compat/status_test.lua rename to src/llm/test/openai_compat/status_test.lua diff --git a/src/llm/src/openai_compat/structured_output_test.lua b/src/llm/test/openai_compat/structured_output_test.lua similarity index 100% rename from src/llm/src/openai_compat/structured_output_test.lua rename to src/llm/test/openai_compat/structured_output_test.lua diff --git a/src/llm/src/output_test.lua b/src/llm/test/output_test.lua similarity index 100% rename from src/llm/src/output_test.lua rename to src/llm/test/output_test.lua diff --git a/src/llm/src/process_security_test.lua b/src/llm/test/process_security_test.lua similarity index 100% rename from src/llm/src/process_security_test.lua rename to src/llm/test/process_security_test.lua diff --git a/src/llm/src/prompt_test.lua b/src/llm/test/prompt_test.lua similarity index 100% rename from src/llm/src/prompt_test.lua rename to src/llm/test/prompt_test.lua diff --git a/src/llm/src/route_flow_test.lua b/src/llm/test/route_flow_test.lua similarity index 100% rename from src/llm/src/route_flow_test.lua rename to src/llm/test/route_flow_test.lua diff --git a/src/llm/src/typesafe/client_test.lua b/src/llm/test/typesafe/client_test.lua similarity index 100% rename from src/llm/src/typesafe/client_test.lua rename to src/llm/test/typesafe/client_test.lua diff --git a/src/llm/src/typesafe/evaluate_test.lua b/src/llm/test/typesafe/evaluate_test.lua similarity index 100% rename from src/llm/src/typesafe/evaluate_test.lua rename to src/llm/test/typesafe/evaluate_test.lua diff --git a/src/llm/src/typesafe/integration_test.lua b/src/llm/test/typesafe/integration_test.lua similarity index 100% rename from src/llm/src/typesafe/integration_test.lua rename to src/llm/test/typesafe/integration_test.lua diff --git a/src/llm/src/typesafe/mapper_test.lua b/src/llm/test/typesafe/mapper_test.lua similarity index 100% rename from src/llm/src/typesafe/mapper_test.lua rename to src/llm/test/typesafe/mapper_test.lua diff --git a/src/llm/src/typesafe/status_test.lua b/src/llm/test/typesafe/status_test.lua similarity index 100% rename from src/llm/src/typesafe/status_test.lua rename to src/llm/test/typesafe/status_test.lua diff --git a/src/llm/src/util/compress_test.lua b/src/llm/test/util/compress_test.lua similarity index 100% rename from src/llm/src/util/compress_test.lua rename to src/llm/test/util/compress_test.lua diff --git a/src/llm/src/util/route_test.lua b/src/llm/test/util/route_test.lua similarity index 100% rename from src/llm/src/util/route_test.lua rename to src/llm/test/util/route_test.lua diff --git a/src/llm/src/util/transport_test.lua b/src/llm/test/util/transport_test.lua similarity index 100% rename from src/llm/src/util/transport_test.lua rename to src/llm/test/util/transport_test.lua diff --git a/src/migration/_index.yaml b/src/migration/_index.yaml index 17fbeb9e..2dfbc1ab 100644 --- a/src/migration/_index.yaml +++ b/src/migration/_index.yaml @@ -8,14 +8,6 @@ entries: title: Migration description: Database migration framework - # Dependencies - - name: dep.wippy.test - kind: "ns.dependency" - meta: - description: "Testing component" - component: "wippy/test" - version: ">=v0.3.0" - # Requirements - name: app_db kind: ns.requirement @@ -103,44 +95,3 @@ entries: migration_registry: wippy.migration:registry runner: wippy.migration:runner method: run - - # wippy.migration:core_test - - name: core_test - kind: function.lua - meta: - type: test - suite: migration-core - comment: Tests for migration core DSL - source: file://core_test.lua - method: run - imports: - core: wippy.migration:core - test: wippy.test:test - - # wippy.migration:registry_test - - name: registry_test - kind: function.lua - meta: - type: test - suite: migration-registry - comment: Tests for migration registry queries - source: file://registry_test.lua - method: run - imports: - migration_registry: wippy.migration:registry - test: wippy.test:test - - - name: runner_test - kind: function.lua - meta: - type: test - suite: migration-runner - comment: SQL rollback ordering and filtering regressions - source: file://runner_test.lua - method: run - modules: [sql] - imports: - runner: wippy.migration:runner - repository: wippy.migration:repository - migration_registry: wippy.migration:registry - test: wippy.test:test diff --git a/src/migration/test/_index.yaml b/src/migration/test/_index.yaml index 248d4f7c..2b39eb4f 100644 --- a/src/migration/test/_index.yaml +++ b/src/migration/test/_index.yaml @@ -2,6 +2,13 @@ version: "1.0" namespace: app entries: + - name: dep.wippy.test + kind: ns.dependency + meta: + description: Test framework + component: wippy/test + version: ">=v0.3.0" + - name: db kind: db.sql.sqlite meta: @@ -113,3 +120,44 @@ entries: modules: [time] imports: migration_api: wippy.migration:migration + + # app:core_test + - name: core_test + kind: function.lua + meta: + type: test + suite: migration-core + comment: Tests for migration core DSL + source: file://core_test.lua + method: run + imports: + core: wippy.migration:core + test: wippy.test:test + + # app:registry_test + - name: registry_test + kind: function.lua + meta: + type: test + suite: migration-registry + comment: Tests for migration registry queries + source: file://registry_test.lua + method: run + imports: + migration_registry: wippy.migration:registry + test: wippy.test:test + + - name: runner_test + kind: function.lua + meta: + type: test + suite: migration-runner + comment: SQL rollback ordering and filtering regressions + source: file://runner_test.lua + method: run + modules: [sql] + imports: + runner: wippy.migration:runner + repository: wippy.migration:repository + migration_registry: wippy.migration:registry + test: wippy.test:test diff --git a/src/migration/core_test.lua b/src/migration/test/core_test.lua similarity index 100% rename from src/migration/core_test.lua rename to src/migration/test/core_test.lua diff --git a/src/migration/registry_test.lua b/src/migration/test/registry_test.lua similarity index 100% rename from src/migration/registry_test.lua rename to src/migration/test/registry_test.lua diff --git a/src/migration/runner_test.lua b/src/migration/test/runner_test.lua similarity index 100% rename from src/migration/runner_test.lua rename to src/migration/test/runner_test.lua diff --git a/src/migration/wippy.lock b/src/migration/wippy.lock deleted file mode 100644 index 04563252..00000000 --- a/src/migration/wippy.lock +++ /dev/null @@ -1,7 +0,0 @@ -directories: - modules: .wippy - src: . -modules: - - name: wippy/test - version: 0.4.9 - hash: 31fb7486fae9e47ce33a89782969bfec0a754d13143d2af24ddc46c406717476 diff --git a/src/relay/src/_index.yaml b/src/relay/src/_index.yaml index 5729fc50..adb85b3d 100644 --- a/src/relay/src/_index.yaml +++ b/src/relay/src/_index.yaml @@ -80,13 +80,6 @@ entries: default: 7200s # Dependencies - - name: dep.wippy.test - kind: "ns.dependency" - meta: - description: "Testing component" - component: "wippy/test" - version: ">=v0.2.0" - # wippy.relay:central - name: central kind: process.lua @@ -149,69 +142,3 @@ entries: imports: consts: wippy.relay:consts method: run - - # wippy.relay:consts_test - - name: consts_test - kind: function.lua - meta: - name: Relay Constants Test - type: test - suite: relay - comment: Tests relay configuration constants and derived values - group: Relay - tags: - - relay - - constants - - tests - source: file://consts_test.lua - imports: - consts: wippy.relay:consts - test: wippy.test:test - modules: - - env - - time - method: run - - # wippy.relay:user_test - - name: user_test - kind: function.lua - meta: - name: Relay User Hub Test - type: test - suite: relay - comment: Tests user-hub websocket payload compatibility. - group: Relay - tags: - - relay - - user - - tests - source: file://user_test.lua - imports: - consts: wippy.relay:consts - test: wippy.test:test - user: wippy.relay:user - modules: - - time - - security - method: run - - # wippy.relay:central_test - - name: central_test - kind: function.lua - meta: - name: Relay Central Identity Test - type: test - suite: relay - comment: Tests user identity and scope propagation from websocket metadata. - group: Relay - tags: - - relay - - identity - - tests - source: file://central_test.lua - imports: - central: wippy.relay:central - test: wippy.test:test - modules: - - time - method: run diff --git a/src/relay/src/wippy.lock b/src/relay/src/wippy.lock deleted file mode 100644 index 5624bb61..00000000 --- a/src/relay/src/wippy.lock +++ /dev/null @@ -1,10 +0,0 @@ -directories: - modules: .wippy - src: . -modules: - - name: wippy/terminal - version: 0.4.2 - hash: 34b99aac2eba9c5016fd02c783117fb2b0381ce14696c7b199265458b99a3271 - - name: wippy/test - version: 0.4.9 - hash: 31fb7486fae9e47ce33a89782969bfec0a754d13143d2af24ddc46c406717476 diff --git a/src/relay/test/_index.yaml b/src/relay/test/_index.yaml index 19a4f2ee..544773dd 100644 --- a/src/relay/test/_index.yaml +++ b/src/relay/test/_index.yaml @@ -2,6 +2,13 @@ version: "1.0" namespace: app entries: + - name: dep.wippy.test + kind: ns.dependency + meta: + description: Test framework + component: wippy/test + version: ">=v0.2.0" + - name: user kind: registry.entry meta: @@ -11,3 +18,69 @@ entries: kind: process.host lifecycle: auto_start: true + + # app:consts_test + - name: consts_test + kind: function.lua + meta: + name: Relay Constants Test + type: test + suite: relay + comment: Tests relay configuration constants and derived values + group: Relay + tags: + - relay + - constants + - tests + source: file://consts_test.lua + imports: + consts: wippy.relay:consts + test: wippy.test:test + modules: + - env + - time + method: run + + # app:user_test + - name: user_test + kind: function.lua + meta: + name: Relay User Hub Test + type: test + suite: relay + comment: Tests user-hub websocket payload compatibility. + group: Relay + tags: + - relay + - user + - tests + source: file://user_test.lua + imports: + consts: wippy.relay:consts + test: wippy.test:test + user: wippy.relay:user + modules: + - time + - security + method: run + + # app:central_test + - name: central_test + kind: function.lua + meta: + name: Relay Central Identity Test + type: test + suite: relay + comment: Tests user identity and scope propagation from websocket metadata. + group: Relay + tags: + - relay + - identity + - tests + source: file://central_test.lua + imports: + central: wippy.relay:central + test: wippy.test:test + modules: + - time + method: run diff --git a/src/relay/src/central_test.lua b/src/relay/test/central_test.lua similarity index 100% rename from src/relay/src/central_test.lua rename to src/relay/test/central_test.lua diff --git a/src/relay/src/consts_test.lua b/src/relay/test/consts_test.lua similarity index 100% rename from src/relay/src/consts_test.lua rename to src/relay/test/consts_test.lua diff --git a/src/relay/src/user_test.lua b/src/relay/test/user_test.lua similarity index 100% rename from src/relay/src/user_test.lua rename to src/relay/test/user_test.lua diff --git a/src/usage/src/_index.yaml b/src/usage/src/_index.yaml index 73b7a451..a7f48bbe 100644 --- a/src/usage/src/_index.yaml +++ b/src/usage/src/_index.yaml @@ -20,13 +20,6 @@ entries: path: ".meta.target_db" # Dependencies - - name: dep.wippy.test - kind: "ns.dependency" - meta: - description: "Testing component" - component: "wippy/test" - version: ">=v0.2.0" - - name: dep.wippy.migration kind: "ns.dependency" meta: @@ -58,32 +51,6 @@ entries: - time - registry - # wippy.usage:token_usage_repo_test - - name: token_usage_repo_test - kind: function.lua - meta: - name: Token Usage Repository Test - type: test - comment: Tests for the token usage repository functionality - group: LLM / Usage Tests - tags: - - usage - - tokens - - database - - tests - description: Tests for token usage tracking - source: file://token_usage_repo_test.lua - modules: - - sql - - uuid - - json - - time - - registry - imports: - test: wippy.test:test - token_usage_repo: wippy.usage:token_usage_repo - method: run_tests - # wippy.usage:usage_tracker - name: usage_tracker kind: function.lua diff --git a/src/usage/test/_index.yaml b/src/usage/test/_index.yaml index 4cc2b794..23ee7eaf 100644 --- a/src/usage/test/_index.yaml +++ b/src/usage/test/_index.yaml @@ -2,6 +2,13 @@ version: "1.0" namespace: app entries: + - name: dep.wippy.test + kind: ns.dependency + meta: + description: Test framework + component: wippy/test + version: ">=v0.2.0" + - name: db kind: db.sql.sqlite meta: @@ -19,3 +26,29 @@ entries: kind: process.host lifecycle: auto_start: true + + # app:token_usage_repo_test + - name: token_usage_repo_test + kind: function.lua + meta: + name: Token Usage Repository Test + type: test + comment: Tests for the token usage repository functionality + group: LLM / Usage Tests + tags: + - usage + - tokens + - database + - tests + description: Tests for token usage tracking + source: file://token_usage_repo_test.lua + modules: + - sql + - uuid + - json + - time + - registry + imports: + test: wippy.test:test + token_usage_repo: wippy.usage:token_usage_repo + method: run_tests diff --git a/src/usage/src/token_usage_repo_test.lua b/src/usage/test/token_usage_repo_test.lua similarity index 100% rename from src/usage/src/token_usage_repo_test.lua rename to src/usage/test/token_usage_repo_test.lua diff --git a/src/views/_index.yaml b/src/views/_index.yaml index 86562457..0aecea5e 100644 --- a/src/views/_index.yaml +++ b/src/views/_index.yaml @@ -319,113 +319,3 @@ entries: actions: - funcs.call effect: allow - - name: dep.wippy.test - kind: ns.dependency - meta: - scope: dev - component: wippy/test - version: '*' - - name: page_access_probe - kind: function.lua - meta: - scope: dev - comment: Test seam - calls page_registry.can_access under a funcs.call-supplied security context - source: file://page_access_probe.lua - method: run - imports: - page_registry: wippy.views:page_registry - - name: test_page_view_policy - kind: security.policy - meta: - scope: dev - comment: Test-only policy granting view access to the fixture secure pages, used as a positive control for page_access_probe - policy: - resources: - - page:wippy.views.test:test_secure - - page:app:test_tmpl_settings - actions: - - view - effect: allow - - name: page_registry_test - kind: function.lua - meta: - type: test - suite: views - comment: Page registry tests - source: file://page_registry_test.lua - method: run - imports: - test: wippy.test:test - page_registry: wippy.views:page_registry - modules: - - registry - - security - - funcs - - - name: component_registry_test - kind: function.lua - meta: - type: test - suite: views - comment: Component registry tests - source: file://component_registry_test.lua - method: run - imports: - test: wippy.test:test - page_registry: wippy.views:page_registry - component_registry: wippy.views:component_registry - modules: - - registry - - - name: resource_registry_test - kind: function.lua - meta: - type: test - suite: views - comment: Resource registry tests - source: file://resource_registry_test.lua - method: run - imports: - test: wippy.test:test - resource_registry: wippy.views:resource_registry - modules: - - registry - - - name: env_loader_test - kind: function.lua - meta: - type: test - suite: views - comment: Env loader tests - source: file://env_loader_test.lua - method: run - imports: - test: wippy.test:test - env_loader: wippy.views:env_loader - modules: - - registry - - - name: bundled_meta_test - kind: function.lua - meta: - type: test - suite: views - comment: Bundled-meta projection tests (YAML-first precedence + nil-vs-empty override) - source: file://bundled_meta_test.lua - method: run - imports: - test: wippy.test:test - bundled_meta: wippy.views:bundled_meta - - - name: public_security_test - kind: function.lua - meta: - type: test - suite: views - comment: Public view API security policy tests - source: file://public_security_test.lua - method: run - imports: - test: wippy.test:test - modules: - - security diff --git a/src/views/test/_index.yaml b/src/views/test/_index.yaml index e80eb7a5..0d7afb2a 100644 --- a/src/views/test/_index.yaml +++ b/src/views/test/_index.yaml @@ -2,6 +2,13 @@ version: "1.0" namespace: app entries: + - name: dep.wippy.test + kind: ns.dependency + meta: + description: Test framework + component: wippy/test + version: "*" + - name: gateway kind: http.service meta: @@ -69,7 +76,7 @@ entries: # Package test entries are excluded from the runtime projection. Keep this # executable regression in the harness that consumes the package. - - name: component_registry_test + - name: component_registry_regression_test kind: function.lua meta: type: test @@ -81,3 +88,118 @@ entries: component_registry: wippy.views:component_registry modules: - registry + + # app:page_access_probe + - name: page_access_probe + kind: function.lua + meta: + scope: dev + comment: Test seam - calls page_registry.can_access under a funcs.call-supplied security context + source: file://page_access_probe.lua + method: run + imports: + page_registry: wippy.views:page_registry + + # app:test_page_view_policy + - name: test_page_view_policy + kind: security.policy + meta: + scope: dev + comment: Test-only policy granting view access to the fixture secure pages, used as a positive control for page_access_probe + policy: + resources: + - page:wippy.views.test:test_secure + - page:app:test_tmpl_settings + actions: + - view + effect: allow + + # app:page_registry_test + - name: page_registry_test + kind: function.lua + meta: + type: test + suite: views + comment: Page registry tests + source: file://page_registry_test.lua + method: run + imports: + test: wippy.test:test + page_registry: wippy.views:page_registry + modules: + - registry + - security + - funcs + + # app:component_registry_test + - name: component_registry_test + kind: function.lua + meta: + type: test + suite: views + comment: Component registry tests + source: file://component_registry_test.lua + method: run + imports: + test: wippy.test:test + page_registry: wippy.views:page_registry + component_registry: wippy.views:component_registry + modules: + - registry + + # app:resource_registry_test + - name: resource_registry_test + kind: function.lua + meta: + type: test + suite: views + comment: Resource registry tests + source: file://resource_registry_test.lua + method: run + imports: + test: wippy.test:test + resource_registry: wippy.views:resource_registry + modules: + - registry + + # app:env_loader_test + - name: env_loader_test + kind: function.lua + meta: + type: test + suite: views + comment: Env loader tests + source: file://env_loader_test.lua + method: run + imports: + test: wippy.test:test + env_loader: wippy.views:env_loader + modules: + - registry + + # app:bundled_meta_test + - name: bundled_meta_test + kind: function.lua + meta: + type: test + suite: views + comment: Bundled-meta projection tests (YAML-first precedence + nil-vs-empty override) + source: file://bundled_meta_test.lua + method: run + imports: + test: wippy.test:test + bundled_meta: wippy.views:bundled_meta + + # app:public_security_test + - name: public_security_test + kind: function.lua + meta: + type: test + suite: views + comment: Public view API security policy tests + source: file://public_security_test.lua + method: run + imports: + test: wippy.test:test + modules: + - security diff --git a/src/views/bundled_meta_test.lua b/src/views/test/bundled_meta_test.lua similarity index 100% rename from src/views/bundled_meta_test.lua rename to src/views/test/bundled_meta_test.lua diff --git a/src/views/component_registry_test.lua b/src/views/test/component_registry_test.lua similarity index 100% rename from src/views/component_registry_test.lua rename to src/views/test/component_registry_test.lua diff --git a/src/views/env_loader_test.lua b/src/views/test/env_loader_test.lua similarity index 100% rename from src/views/env_loader_test.lua rename to src/views/test/env_loader_test.lua diff --git a/src/views/page_access_probe.lua b/src/views/test/page_access_probe.lua similarity index 100% rename from src/views/page_access_probe.lua rename to src/views/test/page_access_probe.lua diff --git a/src/views/page_registry_test.lua b/src/views/test/page_registry_test.lua similarity index 99% rename from src/views/page_registry_test.lua rename to src/views/test/page_registry_test.lua index 51e7ce8b..cc403e30 100644 --- a/src/views/page_registry_test.lua +++ b/src/views/test/page_registry_test.lua @@ -19,7 +19,7 @@ local function can_access_as_unauthorized(page) local result, err = funcs.new() :with_actor(unauthorized_actor) :with_scope(empty_scope) - :call("wippy.views:page_access_probe", page) + :call("app:page_access_probe", page) if err then error(err) end @@ -31,7 +31,7 @@ end -- rather than the probe failing closed for an unrelated reason. local function can_access_as_authorized(page) local authorized_actor = security.new_actor("wippy.views.test:authorized") - local view_policy, err = security.policy("wippy.views:test_page_view_policy") + local view_policy, err = security.policy("app:test_page_view_policy") if err then error(err) end @@ -40,7 +40,7 @@ local function can_access_as_authorized(page) local result, call_err = funcs.new() :with_actor(authorized_actor) :with_scope(view_scope) - :call("wippy.views:page_access_probe", page) + :call("app:page_access_probe", page) if call_err then error(call_err) end diff --git a/src/views/public_security_test.lua b/src/views/test/public_security_test.lua similarity index 100% rename from src/views/public_security_test.lua rename to src/views/test/public_security_test.lua diff --git a/src/views/resource_registry_test.lua b/src/views/test/resource_registry_test.lua similarity index 100% rename from src/views/resource_registry_test.lua rename to src/views/test/resource_registry_test.lua diff --git a/src/views/wippy.lock b/src/views/wippy.lock index 0f5d9fd9..c033827b 100644 --- a/src/views/wippy.lock +++ b/src/views/wippy.lock @@ -2,12 +2,6 @@ directories: modules: .wippy src: . modules: - - name: wippy/terminal - version: 0.4.2 - hash: 34b99aac2eba9c5016fd02c783117fb2b0381ce14696c7b199265458b99a3271 - - name: wippy/test - version: 0.4.10 - hash: 5bc5ffe1b71889c0610133d8843451e5bf80e93ff43712b9017c2c0955fb023d - name: wippy/views version: 0.4.15 hash: 804de16d370216ca5bf7c46c01c3815ec0774394965998248fa72f2421941ca3