bazis 0.130.0 → 0.131.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 (31) hide show
  1. package/core/agent/AgentToolExecutor.ts +3 -0
  2. package/core/agent/Tool.contract.ts +1 -1
  3. package/core/agent/index.ts +1 -0
  4. package/core/agent/metadata.ts +9 -0
  5. package/core/agent/semantic.ts +8 -1
  6. package/core/infra/connectors/codex/CodexAppServerClient.ts +1 -1
  7. package/core/workflow/contracts/types.ts +37 -1
  8. package/core/workflow/definitions_module/WorkflowDefinitions.module.ts +3 -1
  9. package/core/workflow/definitions_module/events/Definitions.events.ts +16 -0
  10. package/core/workflow/definitions_module/http/Processes.controller.ts +17 -12
  11. package/core/workflow/definitions_module/services/IWorkflowDefinitions.service.ts +18 -6
  12. package/core/workflow/definitions_module/services/WorkflowDefinitions.service.ts +44 -21
  13. package/core/workflow/generated/deps.ts +5 -3
  14. package/core/workflow/index.ts +13 -1
  15. package/core/workflow/internal/WorkflowEvents.ts +23 -0
  16. package/core/workflow/internal/http.ts +34 -5
  17. package/core/workflow/runtime_module/events/Runtime.events.ts +28 -1
  18. package/core/workflow/runtime_module/http/Events.controller.ts +2 -1
  19. package/core/workflow/runtime_module/http/Instances.controller.ts +19 -13
  20. package/core/workflow/runtime_module/internal/ToolStep.ts +2 -1
  21. package/core/workflow/runtime_module/internal/WorkflowEngine.ts +23 -21
  22. package/core/workflow/runtime_module/services/IWorkflowRuntime.service.ts +14 -5
  23. package/core/workflow/runtime_module/services/WorkflowRuntime.service.ts +12 -11
  24. package/core/workflow/tasks_module/events/Tasks.events.ts +15 -0
  25. package/core/workflow/tasks_module/http/Tasks.controller.ts +14 -12
  26. package/core/workflow/tasks_module/services/IWorkflowTasks.service.ts +2 -2
  27. package/core/workflow/tasks_module/services/WorkflowTasks.service.ts +9 -6
  28. package/library/openapi/codegen.ts +9 -0
  29. package/library/validation/types/ValidatorOptions.ts +10 -0
  30. package/library/workflow/formFields.ts +2 -1
  31. package/package.json +1 -1
@@ -19,7 +19,8 @@ export interface FormSpec {
19
19
  /** One problem of a value: which field and why. */
20
20
  export interface FormIssue {
21
21
  readonly field: string;
22
- readonly code: "required" | "type" | "enum" | "unknown";
22
+ /** Built in: `required`, `type`, `enum`, `unknown`; an application's validator adds its own. */
23
+ readonly code: string;
23
24
  readonly message: string;
24
25
  }
25
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bazis",
3
- "version": "0.130.0",
3
+ "version": "0.131.0",
4
4
  "description": "Modular backend framework for Bun in TypeScript: DI wired by codegen, HTTP, a PostgreSQL ORM, JWT, WebSocket, agents and a CLI.",
5
5
  "license": "MIT",
6
6
  "author": "Alexander Alenin",