feat: add zero-configuration Brainy service template with augmentation-first architecture
- Implement WebSocket augmentation for real-time communication - Implement WebRTC augmentation for peer-to-peer connections - Implement HTTP augmentation as minimal REST fallback - Add auto-discovery augmentation for data pattern analysis - Add adaptive storage augmentation for intelligent resource management - Add environment adapter augmentation for universal compatibility - Template auto-detects environment (browser, Node.js, serverless, containers) - Intelligent transport selection (WebRTC → WebSocket → HTTP) - Automatic storage optimization (memory → filesystem → S3) - Zero configuration required - just npm start - Includes intelligent verb scoring by default - Works in any environment without configuration - Full documentation and examples included
This commit is contained in:
parent
c38c8de10a
commit
768acf66ad
30 changed files with 3548 additions and 0 deletions
26
examples/brainy-service-template/vitest.config.js
Normal file
26
examples/brainy-service-template/vitest.config.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
environment: 'node',
|
||||
timeout: 60000, // 60 seconds for model loading
|
||||
testTimeout: 60000,
|
||||
hookTimeout: 60000,
|
||||
teardownTimeout: 60000,
|
||||
reporters: process.env.CI ? ['json'] : ['verbose'],
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'json', 'html'],
|
||||
exclude: [
|
||||
'coverage/**',
|
||||
'dist/**',
|
||||
'**/node_modules/**',
|
||||
'**/*.config.js',
|
||||
'**/*.config.ts',
|
||||
'tests/**'
|
||||
]
|
||||
},
|
||||
setupFiles: ['./tests/setup.js'],
|
||||
globalSetup: ['./tests/globalSetup.js']
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue