@nt-ai-lab/deterministic-agent-workflow-engine 0.1.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 (29) hide show
  1. package/dist/index.d.ts +17 -0
  2. package/dist/index.js +8 -0
  3. package/dist/platform/domain/base-event.d.ts +13 -0
  4. package/dist/platform/domain/base-event.js +5 -0
  5. package/dist/platform/domain/bash-enforcement.d.ts +4 -0
  6. package/dist/platform/domain/bash-enforcement.js +24 -0
  7. package/dist/platform/domain/engine-events.d.ts +434 -0
  8. package/dist/platform/domain/engine-events.js +91 -0
  9. package/dist/platform/domain/identity-verification.d.ts +13 -0
  10. package/dist/platform/domain/identity-verification.js +19 -0
  11. package/dist/platform/domain/precondition-result.d.ts +9 -0
  12. package/dist/platform/domain/precondition-result.js +5 -0
  13. package/dist/platform/domain/repository-tracking-events.d.ts +86 -0
  14. package/dist/platform/domain/repository-tracking-events.js +21 -0
  15. package/dist/platform/domain/workflow-engine-support.d.ts +13 -0
  16. package/dist/platform/domain/workflow-engine-support.js +47 -0
  17. package/dist/platform/domain/workflow-engine-types.d.ts +57 -0
  18. package/dist/platform/domain/workflow-engine-types.js +1 -0
  19. package/dist/platform/domain/workflow-engine.d.ts +23 -0
  20. package/dist/platform/domain/workflow-engine.js +325 -0
  21. package/dist/platform/domain/workflow-registry.d.ts +41 -0
  22. package/dist/platform/domain/workflow-registry.js +1 -0
  23. package/dist/platform/domain/workflow-state.d.ts +8 -0
  24. package/dist/platform/domain/workflow-state.js +7 -0
  25. package/dist/platform/infra/cli/presentation/output-guidance.d.ts +15 -0
  26. package/dist/platform/infra/cli/presentation/output-guidance.js +29 -0
  27. package/dist/platform/infra/external-clients/transcript/transcript-reader.d.ts +9 -0
  28. package/dist/platform/infra/external-clients/transcript/transcript-reader.js +1 -0
  29. package/package.json +19 -0
@@ -0,0 +1,29 @@
1
+ export const SEPARATOR = '----------------------------------------------------------------';
2
+ /** @riviere-role cli-output-formatter */
3
+ export function formatBlock(title, body) {
4
+ return `${title}\n${SEPARATOR}\n${body}`;
5
+ }
6
+ /** @riviere-role cli-output-formatter */
7
+ export function formatTransitionSuccess(title, procedureContent, expectedPrefix) {
8
+ return formatBlock(title, `${procedureContent}\n\nNext message MUST begin with: ${expectedPrefix}`);
9
+ }
10
+ /** @riviere-role cli-output-formatter */
11
+ export function formatTransitionError(to, reason, currentProcedure, expectedPrefix) {
12
+ return formatBlock(`Cannot transition to ${to}`, `${reason}\n\nYou are still in the current state. Complete the checklist before transitioning.\n\n${currentProcedure}\n\nNext message MUST begin with: ${expectedPrefix}`);
13
+ }
14
+ /** @riviere-role cli-output-formatter */
15
+ export function formatIllegalTransitionError(reason, currentProcedure, expectedPrefix) {
16
+ return formatBlock('Illegal transition', `${reason}\n\nYou are still in the current state. Complete the checklist before transitioning.\n\n${currentProcedure}\n\nNext message MUST begin with: ${expectedPrefix}`);
17
+ }
18
+ /** @riviere-role cli-output-formatter */
19
+ export function formatOperationGateError(op, reason, expectedPrefix) {
20
+ return formatBlock(`Cannot ${op}`, `${reason}\n\nNext message MUST begin with: ${expectedPrefix}`);
21
+ }
22
+ /** @riviere-role cli-output-formatter */
23
+ export function formatOperationSuccess(op, body, expectedPrefix) {
24
+ return formatBlock(op, `${body}\n\nNext message MUST begin with: ${expectedPrefix}`);
25
+ }
26
+ /** @riviere-role cli-output-formatter */
27
+ export function formatInitSuccess(procedureContent, expectedPrefix) {
28
+ return formatBlock('Feature team initialized', `${procedureContent}\n\nNext message MUST begin with: ${expectedPrefix}`);
29
+ }
@@ -0,0 +1,9 @@
1
+ /** @riviere-role external-client-model */
2
+ export type TranscriptMessage = {
3
+ readonly id: string;
4
+ readonly textContent: string | undefined;
5
+ };
6
+ /** @riviere-role external-client-model */
7
+ export interface TranscriptReader {
8
+ readMessages(transcriptPath: string): readonly TranscriptMessage[];
9
+ }
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@nt-ai-lab/deterministic-agent-workflow-engine",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "exports": {
7
+ ".": "./dist/index.js"
8
+ },
9
+ "types": "./dist/index.d.ts",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "dependencies": {
14
+ "zod": "^3.25.76"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ }
19
+ }