@exaudeus/workrail 2.1.0 → 3.0.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 (58) hide show
  1. package/dist/application/services/compiler/template-registry.d.ts +4 -2
  2. package/dist/application/services/compiler/template-registry.js +97 -5
  3. package/dist/application/services/workflow-compiler.d.ts +5 -1
  4. package/dist/application/services/workflow-compiler.js +20 -7
  5. package/dist/di/container.js +10 -1
  6. package/dist/di/tokens.d.ts +1 -0
  7. package/dist/di/tokens.js +1 -0
  8. package/dist/engine/engine-factory.d.ts +3 -0
  9. package/dist/engine/engine-factory.js +295 -0
  10. package/dist/engine/index.d.ts +3 -0
  11. package/dist/engine/index.js +12 -0
  12. package/dist/engine/types.d.ts +130 -0
  13. package/dist/engine/types.js +18 -0
  14. package/dist/infrastructure/storage/file-workflow-storage.d.ts +1 -0
  15. package/dist/infrastructure/storage/file-workflow-storage.js +10 -0
  16. package/dist/manifest.json +140 -76
  17. package/dist/mcp/handlers/v2-checkpoint.d.ts +31 -1
  18. package/dist/mcp/handlers/v2-checkpoint.js +76 -64
  19. package/dist/mcp/handlers/v2-execution/continue-advance.d.ts +2 -0
  20. package/dist/mcp/handlers/v2-execution/continue-advance.js +5 -5
  21. package/dist/mcp/handlers/v2-execution/continue-rehydrate.d.ts +2 -0
  22. package/dist/mcp/handlers/v2-execution/continue-rehydrate.js +17 -22
  23. package/dist/mcp/handlers/v2-execution/index.d.ts +10 -17
  24. package/dist/mcp/handlers/v2-execution/index.js +44 -54
  25. package/dist/mcp/handlers/v2-execution/replay.d.ts +4 -15
  26. package/dist/mcp/handlers/v2-execution/replay.js +52 -128
  27. package/dist/mcp/handlers/v2-execution/start.d.ts +3 -2
  28. package/dist/mcp/handlers/v2-execution/start.js +18 -46
  29. package/dist/mcp/handlers/v2-token-ops.d.ts +45 -24
  30. package/dist/mcp/handlers/v2-token-ops.js +372 -32
  31. package/dist/mcp/output-schemas.d.ts +104 -283
  32. package/dist/mcp/output-schemas.js +24 -22
  33. package/dist/mcp/server.js +8 -0
  34. package/dist/mcp/types.d.ts +4 -0
  35. package/dist/mcp/v2/tools.d.ts +22 -52
  36. package/dist/mcp/v2/tools.js +18 -32
  37. package/dist/mcp/v2-response-formatter.js +12 -16
  38. package/dist/runtime/runtime-mode.d.ts +2 -0
  39. package/dist/v2/durable-core/domain/prompt-renderer.d.ts +1 -0
  40. package/dist/v2/durable-core/domain/prompt-renderer.js +5 -3
  41. package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +14 -14
  42. package/dist/v2/durable-core/schemas/session/events.d.ts +4 -4
  43. package/dist/v2/durable-core/schemas/session/validation-event.d.ts +2 -2
  44. package/dist/v2/durable-core/tokens/payloads.d.ts +32 -32
  45. package/dist/v2/durable-core/tokens/short-token.d.ts +38 -0
  46. package/dist/v2/durable-core/tokens/short-token.js +126 -0
  47. package/dist/v2/durable-core/tokens/token-patterns.d.ts +4 -0
  48. package/dist/v2/durable-core/tokens/token-patterns.js +9 -0
  49. package/dist/v2/infra/in-memory/token-alias-store/index.d.ts +11 -0
  50. package/dist/v2/infra/in-memory/token-alias-store/index.js +38 -0
  51. package/dist/v2/infra/local/data-dir/index.d.ts +1 -0
  52. package/dist/v2/infra/local/data-dir/index.js +3 -0
  53. package/dist/v2/infra/local/token-alias-store/index.d.ts +16 -0
  54. package/dist/v2/infra/local/token-alias-store/index.js +117 -0
  55. package/dist/v2/ports/data-dir.port.d.ts +1 -0
  56. package/dist/v2/ports/token-alias-store.port.d.ts +33 -0
  57. package/dist/v2/ports/token-alias-store.port.js +2 -0
  58. package/package.json +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exaudeus/workrail",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "Step-by-step workflow enforcement for AI agents via MCP",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -14,6 +14,13 @@
14
14
  "bin": {
15
15
  "workrail": "dist/mcp-server.js"
16
16
  },
17
+ "exports": {
18
+ ".": "./dist/mcp-server.js",
19
+ "./engine": {
20
+ "import": "./dist/engine/index.js",
21
+ "types": "./dist/engine/index.d.ts"
22
+ }
23
+ },
17
24
  "files": [
18
25
  "dist",
19
26
  "spec",