@decaf-ts/integrations 0.6.1 → 0.7.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 (93) hide show
  1. package/dist/integrations.cjs +1 -1
  2. package/jest.config.cjs +10 -0
  3. package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs +23 -2
  4. package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs.map +1 -1
  5. package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs +76 -0
  6. package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs.map +1 -1
  7. package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs +29 -4
  8. package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs.map +1 -1
  9. package/lib/cjs/graph/index.cjs +1 -0
  10. package/lib/cjs/graph/index.cjs.map +1 -1
  11. package/lib/cjs/graph/log/GraphRunLogger.cjs +142 -0
  12. package/lib/cjs/graph/log/GraphRunLogger.cjs.map +1 -0
  13. package/lib/cjs/graph/log/LogParameters.cjs +73 -0
  14. package/lib/cjs/graph/log/LogParameters.cjs.map +1 -0
  15. package/lib/cjs/graph/shared/GraphExecutionStateMapper.cjs +97 -0
  16. package/lib/cjs/graph/shared/GraphExecutionStateMapper.cjs.map +1 -0
  17. package/lib/cjs/graph/shared/constants.cjs +56 -1
  18. package/lib/cjs/graph/shared/constants.cjs.map +1 -1
  19. package/lib/cjs/graph/shared/index.cjs +9 -1
  20. package/lib/cjs/graph/shared/index.cjs.map +1 -1
  21. package/lib/cjs/graph/shared/nodes/flow-control.cjs +50 -6
  22. package/lib/cjs/graph/shared/nodes/flow-control.cjs.map +1 -1
  23. package/lib/cjs/index.cjs +3 -3
  24. package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs +1 -1
  25. package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs.map +1 -1
  26. package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +4 -3
  27. package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs.map +1 -1
  28. package/lib/cjs/nest/graph/GraphWorkflowModel.cjs +1 -5
  29. package/lib/cjs/nest/graph/GraphWorkflowModel.cjs.map +1 -1
  30. package/lib/cjs/user-requests/index.cjs +27 -0
  31. package/lib/cjs/user-requests/index.cjs.map +1 -0
  32. package/lib/esm/graph/engine/execution/GraphExecutionContext.js +23 -2
  33. package/lib/esm/graph/engine/execution/GraphExecutionContext.js.map +1 -1
  34. package/lib/esm/graph/engine/execution/GraphExecutionEngine.js +77 -1
  35. package/lib/esm/graph/engine/execution/GraphExecutionEngine.js.map +1 -1
  36. package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js +29 -4
  37. package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js.map +1 -1
  38. package/lib/esm/graph/index.js +1 -0
  39. package/lib/esm/graph/index.js.map +1 -1
  40. package/lib/esm/graph/log/GraphRunLogger.js +137 -0
  41. package/lib/esm/graph/log/GraphRunLogger.js.map +1 -0
  42. package/lib/esm/graph/log/LogParameters.js +69 -0
  43. package/lib/esm/graph/log/LogParameters.js.map +1 -0
  44. package/lib/esm/graph/shared/GraphExecutionStateMapper.js +91 -0
  45. package/lib/esm/graph/shared/GraphExecutionStateMapper.js.map +1 -0
  46. package/lib/esm/graph/shared/constants.js +82 -3
  47. package/lib/esm/graph/shared/constants.js.map +1 -1
  48. package/lib/esm/graph/shared/index.js +6 -0
  49. package/lib/esm/graph/shared/index.js.map +1 -1
  50. package/lib/esm/graph/shared/nodes/flow-control.js +49 -5
  51. package/lib/esm/graph/shared/nodes/flow-control.js.map +1 -1
  52. package/lib/esm/index.js +3 -3
  53. package/lib/esm/nest/graph/GraphExecutionResultModel.js +3 -3
  54. package/lib/esm/nest/graph/GraphExecutionResultModel.js.map +1 -1
  55. package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +4 -3
  56. package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js.map +1 -1
  57. package/lib/esm/nest/graph/GraphWorkflowModel.js +3 -7
  58. package/lib/esm/nest/graph/GraphWorkflowModel.js.map +1 -1
  59. package/lib/esm/user-requests/index.js +10 -0
  60. package/lib/esm/user-requests/index.js.map +1 -0
  61. package/lib/types/graph/engine/execution/GraphExecutionContext.d.cts +12 -2
  62. package/lib/types/graph/engine/execution/GraphExecutionContext.d.mts +12 -2
  63. package/lib/types/graph/engine/execution/GraphExecutionEngine.d.cts +34 -1
  64. package/lib/types/graph/engine/execution/GraphExecutionEngine.d.mts +34 -1
  65. package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.cts +16 -10
  66. package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.mts +16 -10
  67. package/lib/types/graph/index.d.cts +1 -0
  68. package/lib/types/graph/index.d.mts +1 -0
  69. package/lib/types/graph/log/GraphRunLogger.d.cts +72 -0
  70. package/lib/types/graph/log/GraphRunLogger.d.mts +72 -0
  71. package/lib/types/graph/log/LogParameters.d.cts +7 -0
  72. package/lib/types/graph/log/LogParameters.d.mts +7 -0
  73. package/lib/types/graph/shared/GraphExecutionStateMapper.d.cts +66 -0
  74. package/lib/types/graph/shared/GraphExecutionStateMapper.d.mts +66 -0
  75. package/lib/types/graph/shared/constants.d.cts +70 -3
  76. package/lib/types/graph/shared/constants.d.mts +70 -3
  77. package/lib/types/graph/shared/index.d.cts +3 -0
  78. package/lib/types/graph/shared/index.d.mts +3 -0
  79. package/lib/types/graph/shared/nodes/flow-control.d.cts +20 -7
  80. package/lib/types/graph/shared/nodes/flow-control.d.mts +20 -7
  81. package/lib/types/graph/shared/types.d.cts +94 -5
  82. package/lib/types/graph/shared/types.d.mts +94 -5
  83. package/lib/types/index.d.cts +2 -2
  84. package/lib/types/index.d.mts +2 -2
  85. package/lib/types/nest/graph/GraphExecutionResultModel.d.cts +3 -3
  86. package/lib/types/nest/graph/GraphExecutionResultModel.d.mts +3 -3
  87. package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +3 -3
  88. package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +3 -3
  89. package/lib/types/nest/graph/GraphWorkflowModel.d.cts +3 -4
  90. package/lib/types/nest/graph/GraphWorkflowModel.d.mts +3 -4
  91. package/lib/types/user-requests/index.d.cts +9 -0
  92. package/lib/types/user-requests/index.d.mts +9 -0
  93. package/package.json +16 -6
@@ -4,9 +4,9 @@
4
4
  * @description Creates a registry pre-loaded with the demo executors used by
5
5
  * the graph execution backend's sample workflows. The executors cover the
6
6
  * flow-control kinds (including Code, Log, and Switch with code conditions),
7
- * the agent kind, and the loop kinds. Additional executors can be registered
8
- * on the returned registry before it is handed to the
9
- * {@link GraphExecutionEngine}.
7
+ * the DECAF-48 `core.utility.log` Log node, the agent kind, and the loop
8
+ * kinds. Additional executors can be registered on the returned registry
9
+ * before it is handed to the {@link GraphExecutionEngine}.
10
10
  */
11
11
  import { GraphNodeExecutorRegistry, GraphExecutionEngine, type GraphNodeExecutor, IsolatedVmCodeSandboxEvaluator } from "../../graph/index.d.cts";
12
12
  /**
@@ -4,9 +4,9 @@
4
4
  * @description Creates a registry pre-loaded with the demo executors used by
5
5
  * the graph execution backend's sample workflows. The executors cover the
6
6
  * flow-control kinds (including Code, Log, and Switch with code conditions),
7
- * the agent kind, and the loop kinds. Additional executors can be registered
8
- * on the returned registry before it is handed to the
9
- * {@link GraphExecutionEngine}.
7
+ * the DECAF-48 `core.utility.log` Log node, the agent kind, and the loop
8
+ * kinds. Additional executors can be registered on the returned registry
9
+ * before it is handed to the {@link GraphExecutionEngine}.
10
10
  */
11
11
  import { GraphNodeExecutorRegistry, GraphExecutionEngine, type GraphNodeExecutor, IsolatedVmCodeSandboxEvaluator } from "../../graph/index.d.mts";
12
12
  /**
@@ -1,7 +1,6 @@
1
- import { Model, type ModelArg } from "@decaf-ts/decorator-validation";
2
- export declare class GraphWorkflowModel extends Model {
1
+ import { BaseModel } from "@decaf-ts/core";
2
+ export declare class GraphWorkflowModel extends BaseModel {
3
3
  workflowId: string;
4
4
  snapshot: Record<string, unknown>;
5
- updatedAt: Date;
6
- constructor(arg?: ModelArg<GraphWorkflowModel>);
5
+ constructor(arg?: Partial<GraphWorkflowModel>);
7
6
  }
@@ -1,7 +1,6 @@
1
- import { Model, type ModelArg } from "@decaf-ts/decorator-validation";
2
- export declare class GraphWorkflowModel extends Model {
1
+ import { BaseModel } from "@decaf-ts/core";
2
+ export declare class GraphWorkflowModel extends BaseModel {
3
3
  workflowId: string;
4
4
  snapshot: Record<string, unknown>;
5
- updatedAt: Date;
6
- constructor(arg?: ModelArg<GraphWorkflowModel>);
5
+ constructor(arg?: Partial<GraphWorkflowModel>);
7
6
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @module integrations/user-requests
3
+ * @summary User Request Resolution Engine surface exported to integrations
4
+ * consumers.
5
+ * @description Re-exports the `@decaf-ts/ui-decorators/user-requests` barrel so
6
+ * integrations packages can hand user-request handling to app consumers
7
+ * through a flat entry point.
8
+ */
9
+ export * from '@decaf-ts/ui-decorators/user-requests';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @module integrations/user-requests
3
+ * @summary User Request Resolution Engine surface exported to integrations
4
+ * consumers.
5
+ * @description Re-exports the `@decaf-ts/ui-decorators/user-requests` barrel so
6
+ * integrations packages can hand user-request handling to app consumers
7
+ * through a flat entry point.
8
+ */
9
+ export * from '@decaf-ts/ui-decorators/user-requests';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/integrations",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.mts",
@@ -104,6 +104,17 @@
104
104
  },
105
105
  "default": "./lib/esm/feature-flags/index.js"
106
106
  },
107
+ "./user-requests": {
108
+ "import": {
109
+ "types": "./lib/types/user-requests/index.d.mts",
110
+ "default": "./lib/esm/user-requests/index.js"
111
+ },
112
+ "require": {
113
+ "types": "./lib/types/user-requests/index.d.cts",
114
+ "default": "./lib/cjs/user-requests/index.cjs"
115
+ },
116
+ "default": "./lib/esm/user-requests/index.js"
117
+ },
107
118
  "./secrets": {
108
119
  "import": {
109
120
  "types": "./lib/types/secrets/index.d.mts",
@@ -329,7 +340,7 @@
329
340
  "lint": "eslint .",
330
341
  "lint-fix": "eslint --fix .",
331
342
  "prepare-pr": "npm run lint-fix && npm run build:prod && npm run coverage && npm run docs",
332
- "prepare-release": "npm run lint-fix && npm run build:prod && npm run coverage && npm run docs",
343
+ "prepare-release": "npm run lint-fix && npm run build:prod",
333
344
  "release": "./bin/tag-release.sh",
334
345
  "clean-publish": "npx clean-publish",
335
346
  "drawings": "for FILE in workdocs/drawings/*.drawio; do echo \"converting $FILE to image...\" && docker run --rm -v $(pwd):/data rlespinasse/drawio-export --format png $FILE; done && cp -rf workdocs/drawings/export/* workdocs/resources/",
@@ -401,11 +412,11 @@
401
412
  },
402
413
  "overrides": {
403
414
  "multer": "^2.1.2",
404
- "test-exclude": "^7.0.2",
405
- "brace-expansion": "^5.0.8",
406
415
  "fast-uri": "^3.1.4",
407
416
  "fast-xml-parser": "^5.10.1",
408
- "js-yaml": "^5.2.1"
417
+ "test-exclude": "^7.0.2",
418
+ "js-yaml": "^5.2.2",
419
+ "brace-expansion": "^5.0.8"
409
420
  },
410
421
  "optionalDependencies": {
411
422
  "@aws-sdk/client-s3": "^3.1075.0",
@@ -416,7 +427,6 @@
416
427
  "@azure/storage-blob": "^12.33.0",
417
428
  "@google-cloud/secret-manager": "^5.6.0",
418
429
  "@google-cloud/storage": "^7.21.0",
419
- "aws-sdk": "^2.1693.0",
420
430
  "hashicorp-vault": "^0.1.0",
421
431
  "keycloak-admin": "^24.0.5",
422
432
  "kubo-rpc-client": "^7.1.0",