beddel 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/LICENSE +21 -0
  3. package/README.md +446 -192
  4. package/dist/agents/agentRegistry.d.ts +26 -1
  5. package/dist/agents/agentRegistry.d.ts.map +1 -1
  6. package/dist/agents/agentRegistry.js +180 -1
  7. package/dist/agents/agentRegistry.js.map +1 -1
  8. package/dist/runtime/declarativeAgentRuntime.d.ts +4 -0
  9. package/dist/runtime/declarativeAgentRuntime.d.ts.map +1 -1
  10. package/dist/runtime/declarativeAgentRuntime.js +43 -0
  11. package/dist/runtime/declarativeAgentRuntime.js.map +1 -1
  12. package/dist/runtime/schemaCompiler.js +5 -4
  13. package/dist/runtime/schemaCompiler.js.map +1 -1
  14. package/package.json +6 -3
  15. package/src/agents/agentRegistry.ts +172 -2
  16. package/src/runtime/declarativeAgentRuntime.ts +71 -13
  17. package/src/runtime/schemaCompiler.ts +5 -5
  18. package/dist/agents/formatter-agent.d.ts +0 -10
  19. package/dist/agents/formatter-agent.d.ts.map +0 -1
  20. package/dist/agents/formatter-agent.js +0 -49
  21. package/dist/agents/formatter-agent.js.map +0 -1
  22. package/dist/agents/genkit-agent.d.ts +0 -12
  23. package/dist/agents/genkit-agent.d.ts.map +0 -1
  24. package/dist/agents/genkit-agent.js +0 -119
  25. package/dist/agents/genkit-agent.js.map +0 -1
  26. package/dist/agents/i18n-messages.d.ts +0 -17
  27. package/dist/agents/i18n-messages.d.ts.map +0 -1
  28. package/dist/agents/i18n-messages.js +0 -92
  29. package/dist/agents/i18n-messages.js.map +0 -1
  30. package/dist/agents/index.d.ts +0 -10
  31. package/dist/agents/index.d.ts.map +0 -1
  32. package/dist/agents/index.js +0 -26
  33. package/dist/agents/index.js.map +0 -1
  34. package/dist/agents/pipeline.d.ts +0 -15
  35. package/dist/agents/pipeline.d.ts.map +0 -1
  36. package/dist/agents/pipeline.js +0 -45
  37. package/dist/agents/pipeline.js.map +0 -1
  38. package/dist/agents/schema-factory.d.ts +0 -40
  39. package/dist/agents/schema-factory.d.ts.map +0 -1
  40. package/dist/agents/schema-factory.js +0 -121
  41. package/dist/agents/schema-factory.js.map +0 -1
  42. package/dist/agents/translation-validators.d.ts +0 -26
  43. package/dist/agents/translation-validators.d.ts.map +0 -1
  44. package/dist/agents/translation-validators.js +0 -77
  45. package/dist/agents/translation-validators.js.map +0 -1
  46. package/dist/agents/translator-agents.d.ts +0 -184
  47. package/dist/agents/translator-agents.d.ts.map +0 -1
  48. package/dist/agents/translator-agents.js +0 -613
  49. package/dist/agents/translator-agents.js.map +0 -1
  50. package/dist/agents/types/translation.types.d.ts +0 -100
  51. package/dist/agents/types/translation.types.d.ts.map +0 -1
  52. package/dist/agents/types/translation.types.js +0 -3
  53. package/dist/agents/types/translation.types.js.map +0 -1
  54. package/dist/agents/validator-agent.d.ts +0 -42
  55. package/dist/agents/validator-agent.d.ts.map +0 -1
  56. package/dist/agents/validator-agent.js +0 -122
  57. package/dist/agents/validator-agent.js.map +0 -1
  58. package/dist/security/test-security.d.ts +0 -22
  59. package/dist/security/test-security.d.ts.map +0 -1
  60. package/dist/security/test-security.js +0 -154
  61. package/dist/security/test-security.js.map +0 -1
  62. package/tools/seed.ts +0 -365
  63. package/tools/test-endpoints.ts +0 -174
package/CHANGELOG.md ADDED
@@ -0,0 +1,58 @@
1
+ # Changelog
2
+
3
+ ## [0.2.0] - 2025-12-18
4
+
5
+ ### Added
6
+ - **TypeScript Code-Behind for Custom Agents**: Custom agents can now include TypeScript implementations alongside YAML definitions
7
+ - Place `.ts` files in `/agents` directory
8
+ - Export functions are automatically registered with namespaced keys
9
+ - New `custom-action` workflow type for executing TypeScript functions
10
+ - Full access to input, variables, execution context, and Beddel helpers
11
+ - **Enhanced Agent Registry**:
12
+ - `loadCustomFunctions()` method for dynamic TypeScript module loading
13
+ - `getCustomFunction()` method for runtime function retrieval
14
+ - Async agent loading with proper error handling
15
+ - **Complete Documentation**: Added comprehensive guide for TypeScript code-behind in README.md
16
+
17
+ ### Changed
18
+ - `AgentRegistry.loadCustomAgents()` is now async to support dynamic imports
19
+ - Updated agent loading flow to include TypeScript module discovery
20
+
21
+ ### Backward Compatibility
22
+ - All existing agents (joker, translator, image-generator) continue to work without changes
23
+ - YAML-only agents are fully supported
24
+ - No breaking changes to existing APIs
25
+
26
+ ---
27
+
28
+
29
+ All notable changes to this project will be documented in this file.
30
+
31
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
32
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
33
+
34
+ ## [0.1.0] - 2025-12-18
35
+
36
+ ### Added
37
+ - Initial release of Beddel package
38
+ - Secure YAML parser with FAILSAFE schema
39
+ - Declarative agent runtime (protocol v2.0)
40
+ - Agent registry with custom agent support
41
+ - Built-in agents: joker, translator, image generator
42
+ - Schema validation with Zod
43
+ - Isolated runtime with security profiles
44
+ - Multi-tenant Firebase support
45
+ - GDPR/LGPD compliance utilities
46
+ - Performance monitoring and autoscaling
47
+ - Security scanning and threat detection
48
+ - Server utilities (KV store, runtime security)
49
+ - GraphQL API integration
50
+ - Comprehensive documentation and guides
51
+
52
+ ### Features
53
+ - Custom agents auto-discovery from `/agents` directory
54
+ - Agent override mechanism (custom > built-in)
55
+ - Variable interpolation in YAML workflows
56
+ - Nested property access in output schemas
57
+ - Gemini Flash integration for AI capabilities
58
+ - TypeScript support with full type definitions
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Beddel Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.