@gobing-ai/ts-dual-workflow-engine 0.3.4 → 0.3.6
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/README.md +1 -1
- package/dist/extensions.d.ts +1 -1
- package/dist/extensions.js +2 -2
- package/dist/host.d.ts +1 -1
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +1 -1
- package/package.json +4 -4
- package/src/extensions.ts +3 -3
- package/src/host.ts +1 -1
package/README.md
CHANGED
|
@@ -554,7 +554,7 @@ host.registerGuard({
|
|
|
554
554
|
});
|
|
555
555
|
```
|
|
556
556
|
|
|
557
|
-
Registered actions and guards are available to any workflow definition by their `kind` string. Internally, the host uses `CapabilityRegistry` from `@gobing-ai/ts-runtime/
|
|
557
|
+
Registered actions and guards are available to any workflow definition by their `kind` string. Internally, the host uses `CapabilityRegistry` from `@gobing-ai/ts-runtime/extension` to track registrations with origin metadata (`'builtin'`, `'extension'`, or `'core'`).
|
|
558
558
|
|
|
559
559
|
## Extension Loading
|
|
560
560
|
|
package/dist/extensions.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export interface LoadWorkflowExtensionsOptions {
|
|
|
48
48
|
* its actions and/or guards on the workflow host.
|
|
49
49
|
*
|
|
50
50
|
* Delegates generic loading (gate, path guard, module import, export
|
|
51
|
-
* validation) to the shared ``loadExtensionModules`` from ts-runtime/
|
|
51
|
+
* validation) to the shared ``loadExtensionModules`` from ts-runtime/extension,
|
|
52
52
|
* then routes each capability to ``host.registerAction`` or
|
|
53
53
|
* ``host.registerGuard`` based on ``ref.kind``.
|
|
54
54
|
*
|
package/dist/extensions.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { basenamePath, dirnamePath, SEP } from '@gobing-ai/ts-runtime';
|
|
2
|
-
import { loadExtensionModules } from '@gobing-ai/ts-runtime/
|
|
2
|
+
import { loadExtensionModules } from '@gobing-ai/ts-runtime/extension';
|
|
3
3
|
import { WorkflowValidationError } from './errors.js';
|
|
4
4
|
/**
|
|
5
5
|
* Import each extension module behind an explicit trust gate and register
|
|
6
6
|
* its actions and/or guards on the workflow host.
|
|
7
7
|
*
|
|
8
8
|
* Delegates generic loading (gate, path guard, module import, export
|
|
9
|
-
* validation) to the shared ``loadExtensionModules`` from ts-runtime/
|
|
9
|
+
* validation) to the shared ``loadExtensionModules`` from ts-runtime/extension,
|
|
10
10
|
* then routes each capability to ``host.registerAction`` or
|
|
11
11
|
* ``host.registerGuard`` based on ``ref.kind``.
|
|
12
12
|
*
|
package/dist/host.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ProcessExecutor } from '@gobing-ai/ts-runtime';
|
|
2
|
-
import { type CapabilityOrigin } from '@gobing-ai/ts-runtime/
|
|
2
|
+
import { type CapabilityOrigin } from '@gobing-ai/ts-runtime/extension';
|
|
3
3
|
import type { ActionResult, ActionRunContext, ActionRunner, GuardContext, GuardRunner } from './types';
|
|
4
4
|
/** Registry owner for workflow actions and guards. */
|
|
5
5
|
export declare class WorkflowEngineHost {
|
package/dist/host.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,KAAK,gBAAgB,EAAsB,MAAM,
|
|
1
|
+
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,KAAK,gBAAgB,EAAsB,MAAM,iCAAiC,CAAC;AAE5F,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEvG,sDAAsD;AACtD,qBAAa,kBAAkB;IAC3B,OAAO,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AM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;CAGzE;AAED,kEAAkE;AAClE,qBAAa,iBAAkB,YAAW,YAAY;IAGtC,OAAO,CAAC,QAAQ,CAAC,eAAe;IAF5C,QAAQ,CAAC,IAAI,WAAW;gBAEK,eAAe,EAAE,eAAe;IAE7D,0DAA0D;IACpD,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC;CAgBpG"}
|
package/dist/host.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NodeProcessExecutor } from '@gobing-ai/ts-runtime';
|
|
2
|
-
import { CapabilityRegistry } from '@gobing-ai/ts-runtime/
|
|
2
|
+
import { CapabilityRegistry } from '@gobing-ai/ts-runtime/extension';
|
|
3
3
|
import { WorkflowValidationError } from './errors.js';
|
|
4
4
|
/** Registry owner for workflow actions and guards. */
|
|
5
5
|
export class WorkflowEngineHost {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobing-ai/ts-dual-workflow-engine",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "@gobing-ai/ts-dual-workflow-engine — State-machine and transition-flow workflow runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"release": "echo 'Manual publish is disabled. Releases go through GitHub Actions via Trusted Publishing — push a tag: git tag @gobing-ai/ts-dual-workflow-engine-v<version> && git push --tags' && exit 1"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@gobing-ai/ts-db": "^0.3.
|
|
52
|
-
"@gobing-ai/ts-infra": "^0.3.
|
|
53
|
-
"@gobing-ai/ts-runtime": "^0.3.
|
|
51
|
+
"@gobing-ai/ts-db": "^0.3.6",
|
|
52
|
+
"@gobing-ai/ts-infra": "^0.3.6",
|
|
53
|
+
"@gobing-ai/ts-runtime": "^0.3.6",
|
|
54
54
|
"zod": "^4.1.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
package/src/extensions.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Logger } from '@gobing-ai/ts-infra';
|
|
2
2
|
import { basenamePath, dirnamePath, SEP } from '@gobing-ai/ts-runtime';
|
|
3
|
-
import type { ExtensionRef, LoadExtensionsOptions } from '@gobing-ai/ts-runtime/
|
|
4
|
-
import { loadExtensionModules } from '@gobing-ai/ts-runtime/
|
|
3
|
+
import type { ExtensionRef, LoadExtensionsOptions } from '@gobing-ai/ts-runtime/extension';
|
|
4
|
+
import { loadExtensionModules } from '@gobing-ai/ts-runtime/extension';
|
|
5
5
|
import { WorkflowValidationError } from './errors';
|
|
6
6
|
import type { WorkflowEngineHost } from './host';
|
|
7
7
|
import type { ActionRunner, GuardRunner } from './types';
|
|
@@ -58,7 +58,7 @@ export interface LoadWorkflowExtensionsOptions {
|
|
|
58
58
|
* its actions and/or guards on the workflow host.
|
|
59
59
|
*
|
|
60
60
|
* Delegates generic loading (gate, path guard, module import, export
|
|
61
|
-
* validation) to the shared ``loadExtensionModules`` from ts-runtime/
|
|
61
|
+
* validation) to the shared ``loadExtensionModules`` from ts-runtime/extension,
|
|
62
62
|
* then routes each capability to ``host.registerAction`` or
|
|
63
63
|
* ``host.registerGuard`` based on ``ref.kind``.
|
|
64
64
|
*
|
package/src/host.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NodeProcessExecutor, type ProcessExecutor } from '@gobing-ai/ts-runtime';
|
|
2
|
-
import { type CapabilityOrigin, CapabilityRegistry } from '@gobing-ai/ts-runtime/
|
|
2
|
+
import { type CapabilityOrigin, CapabilityRegistry } from '@gobing-ai/ts-runtime/extension';
|
|
3
3
|
import { WorkflowValidationError } from './errors';
|
|
4
4
|
import type { ActionResult, ActionRunContext, ActionRunner, GuardContext, GuardRunner } from './types';
|
|
5
5
|
|