@loopstack/delegate-error-example-workflow 0.21.7 → 0.22.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.
- package/dist/delegate-error-example.module.d.ts.map +1 -1
- package/dist/delegate-error-example.module.js +1 -2
- package/dist/delegate-error-example.module.js.map +1 -1
- package/package.json +10 -35
- package/src/__tests__/delegate-error.workflow.spec.ts +3 -2
- package/src/delegate-error-example.module.ts +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegate-error-example.module.d.ts","sourceRoot":"","sources":["../src/delegate-error-example.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"delegate-error-example.module.d.ts","sourceRoot":"","sources":["../src/delegate-error-example.module.ts"],"names":[],"mappings":"AAQA,qBAKa,0BAA0B;CAAG"}
|
|
@@ -9,7 +9,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.DelegateErrorExampleModule = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const claude_module_1 = require("@loopstack/claude-module");
|
|
12
|
-
const core_1 = require("@loopstack/core");
|
|
13
12
|
const delegate_error_workflow_1 = require("./delegate-error.workflow");
|
|
14
13
|
const failing_sub_workflow_tool_1 = require("./tools/failing-sub-workflow.tool");
|
|
15
14
|
const runtime_error_tool_1 = require("./tools/runtime-error.tool");
|
|
@@ -20,7 +19,7 @@ let DelegateErrorExampleModule = class DelegateErrorExampleModule {
|
|
|
20
19
|
exports.DelegateErrorExampleModule = DelegateErrorExampleModule;
|
|
21
20
|
exports.DelegateErrorExampleModule = DelegateErrorExampleModule = __decorate([
|
|
22
21
|
(0, common_1.Module)({
|
|
23
|
-
imports: [
|
|
22
|
+
imports: [claude_module_1.ClaudeModule],
|
|
24
23
|
providers: [strict_schema_tool_1.StrictSchemaTool, runtime_error_tool_1.RuntimeErrorTool, failing_sub_workflow_tool_1.FailingSubWorkflowTool, failing_workflow_1.FailingWorkflow, delegate_error_workflow_1.DelegateErrorWorkflow],
|
|
25
24
|
exports: [delegate_error_workflow_1.DelegateErrorWorkflow],
|
|
26
25
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegate-error-example.module.js","sourceRoot":"","sources":["../src/delegate-error-example.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,4DAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"delegate-error-example.module.js","sourceRoot":"","sources":["../src/delegate-error-example.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,4DAAwD;AACxD,uEAAkE;AAClE,iFAA2E;AAC3E,mEAA8D;AAC9D,mEAA8D;AAC9D,mEAA+D;AAOxD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;CAAG,CAAA;AAA7B,gEAA0B;qCAA1B,0BAA0B;IALtC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,4BAAY,CAAC;QACvB,SAAS,EAAE,CAAC,qCAAgB,EAAE,qCAAgB,EAAE,kDAAsB,EAAE,kCAAe,EAAE,+CAAqB,CAAC;QAC/G,OAAO,EAAE,CAAC,+CAAqB,CAAC;KACjC,CAAC;GACW,0BAA0B,CAAG"}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"example",
|
|
10
10
|
"workflow"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.22.0",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "Jakob Klippel",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"compile": "tsc --noEmit",
|
|
27
27
|
"format": "prettier --write .",
|
|
28
28
|
"lint": "eslint .",
|
|
29
|
-
"test": "
|
|
29
|
+
"test": "vitest run",
|
|
30
30
|
"watch": "nest build --watch"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@loopstack/claude-module": "^0.
|
|
34
|
-
"@loopstack/llm-provider-module": "^0.
|
|
35
|
-
"@loopstack/common": "^0.
|
|
36
|
-
"@loopstack/core": "^0.
|
|
33
|
+
"@loopstack/claude-module": "^0.24.0",
|
|
34
|
+
"@loopstack/llm-provider-module": "^0.3.0",
|
|
35
|
+
"@loopstack/common": "^0.30.0",
|
|
36
|
+
"@loopstack/core": "^0.30.0",
|
|
37
37
|
"@nestjs/common": "^11.1.19",
|
|
38
38
|
"zod": "^4.3.6"
|
|
39
39
|
},
|
|
@@ -41,34 +41,9 @@
|
|
|
41
41
|
"dist",
|
|
42
42
|
"src"
|
|
43
43
|
],
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"transform": {
|
|
49
|
-
"^.+\\.ts$": "ts-jest"
|
|
50
|
-
},
|
|
51
|
-
"testTimeout": 10000,
|
|
52
|
-
"forceExit": true,
|
|
53
|
-
"maxWorkers": 1
|
|
54
|
-
},
|
|
55
|
-
"loopstack": {
|
|
56
|
-
"modules": [
|
|
57
|
-
{
|
|
58
|
-
"path": "src/delegate-error-example.module.ts",
|
|
59
|
-
"className": "DelegateErrorExampleModule"
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"workflows": [
|
|
63
|
-
{
|
|
64
|
-
"path": "src/delegate-error.workflow.ts",
|
|
65
|
-
"className": "DelegateErrorWorkflow",
|
|
66
|
-
"propertyName": "delegateError"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"installModes": [
|
|
70
|
-
"add",
|
|
71
|
-
"install"
|
|
72
|
-
]
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"vitest": "^4.1.6",
|
|
46
|
+
"@swc/core": "^1.15.33",
|
|
47
|
+
"unplugin-swc": "^1.5.9"
|
|
73
48
|
}
|
|
74
49
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TestingModule } from '@nestjs/testing';
|
|
2
|
+
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
|
|
2
3
|
import { ClaudeModule } from '@loopstack/claude-module';
|
|
3
|
-
import {
|
|
4
|
+
import { WorkflowProcessorService } from '@loopstack/core';
|
|
4
5
|
import { LlmGenerateTextTool } from '@loopstack/llm-provider-module';
|
|
5
6
|
import { ToolMock, createStatelessContext, createWorkflowTest } from '@loopstack/testing';
|
|
6
7
|
import { DelegateErrorWorkflow } from '../delegate-error.workflow';
|
|
@@ -55,7 +56,7 @@ describe('DelegateErrorWorkflow', () => {
|
|
|
55
56
|
beforeEach(async () => {
|
|
56
57
|
module = await createWorkflowTest()
|
|
57
58
|
.forWorkflow(DelegateErrorWorkflow)
|
|
58
|
-
.withImports(
|
|
59
|
+
.withImports(ClaudeModule)
|
|
59
60
|
.withToolOverride(LlmGenerateTextTool)
|
|
60
61
|
// Real tools — we want to test actual validation and runtime errors
|
|
61
62
|
.withProviders(StrictSchemaTool, RuntimeErrorTool, FailingSubWorkflowTool, FailingWorkflow)
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Module } from '@nestjs/common';
|
|
2
2
|
import { ClaudeModule } from '@loopstack/claude-module';
|
|
3
|
-
import { LoopCoreModule } from '@loopstack/core';
|
|
4
3
|
import { DelegateErrorWorkflow } from './delegate-error.workflow';
|
|
5
4
|
import { FailingSubWorkflowTool } from './tools/failing-sub-workflow.tool';
|
|
6
5
|
import { RuntimeErrorTool } from './tools/runtime-error.tool';
|
|
@@ -8,7 +7,7 @@ import { StrictSchemaTool } from './tools/strict-schema.tool';
|
|
|
8
7
|
import { FailingWorkflow } from './workflows/failing.workflow';
|
|
9
8
|
|
|
10
9
|
@Module({
|
|
11
|
-
imports: [
|
|
10
|
+
imports: [ClaudeModule],
|
|
12
11
|
providers: [StrictSchemaTool, RuntimeErrorTool, FailingSubWorkflowTool, FailingWorkflow, DelegateErrorWorkflow],
|
|
13
12
|
exports: [DelegateErrorWorkflow],
|
|
14
13
|
})
|