@haibun/core 3.1.3 → 3.3.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/build/currentVersion.d.ts +1 -1
- package/build/currentVersion.js +1 -1
- package/build/kireji/converter.d.ts +16 -1
- package/build/kireji/converter.d.ts.map +1 -1
- package/build/kireji/converter.js +19 -2
- package/build/kireji/converter.js.map +1 -1
- package/build/lib/EventLogger.d.ts +16 -10
- package/build/lib/EventLogger.d.ts.map +1 -1
- package/build/lib/EventLogger.js +54 -21
- package/build/lib/EventLogger.js.map +1 -1
- package/build/lib/astepper.d.ts +6 -0
- package/build/lib/astepper.d.ts.map +1 -1
- package/build/lib/astepper.js +1 -0
- package/build/lib/astepper.js.map +1 -1
- package/build/lib/base-prompt-manager.d.ts.map +1 -1
- package/build/lib/base-prompt-manager.js +2 -2
- package/build/lib/base-prompt-manager.js.map +1 -1
- package/build/lib/capture-locator.d.ts +1 -1
- package/build/lib/capture-locator.d.ts.map +1 -1
- package/build/lib/capture-locator.js +4 -2
- package/build/lib/capture-locator.js.map +1 -1
- package/build/lib/core/flow-runner.d.ts +5 -4
- package/build/lib/core/flow-runner.d.ts.map +1 -1
- package/build/lib/core/flow-runner.js +48 -15
- package/build/lib/core/flow-runner.js.map +1 -1
- package/build/lib/core-domains.d.ts +1 -1
- package/build/lib/core-domains.d.ts.map +1 -1
- package/build/lib/core-domains.js +1 -1
- package/build/lib/core-domains.js.map +1 -1
- package/build/lib/defs.d.ts +103 -200
- package/build/lib/defs.d.ts.map +1 -1
- package/build/lib/defs.js +4 -46
- package/build/lib/defs.js.map +1 -1
- package/build/lib/feature-variables.d.ts +2 -1
- package/build/lib/feature-variables.d.ts.map +1 -1
- package/build/lib/feature-variables.js +1 -2
- package/build/lib/feature-variables.js.map +1 -1
- package/build/lib/features.d.ts +5 -4
- package/build/lib/features.d.ts.map +1 -1
- package/build/lib/features.js +26 -16
- package/build/lib/features.js.map +1 -1
- package/build/lib/fixme.d.ts +1 -1
- package/build/lib/fixme.d.ts.map +1 -1
- package/build/lib/http-observations.d.ts +25 -0
- package/build/lib/http-observations.d.ts.map +1 -0
- package/build/lib/http-observations.js +40 -0
- package/build/lib/http-observations.js.map +1 -0
- package/build/lib/namedVars.d.ts +5 -1
- package/build/lib/namedVars.d.ts.map +1 -1
- package/build/lib/namedVars.js +11 -1
- package/build/lib/namedVars.js.map +1 -1
- package/build/lib/node-http-events.d.ts +16 -0
- package/build/lib/node-http-events.d.ts.map +1 -0
- package/build/lib/node-http-events.js +125 -0
- package/build/lib/node-http-events.js.map +1 -0
- package/build/lib/populateActionArgs.d.ts +2 -1
- package/build/lib/populateActionArgs.d.ts.map +1 -1
- package/build/lib/populateActionArgs.js.map +1 -1
- package/build/lib/resolver-features.d.ts +2 -1
- package/build/lib/resolver-features.d.ts.map +1 -1
- package/build/lib/resolver-features.js +2 -2
- package/build/lib/resolver-features.js.map +1 -1
- package/build/lib/step-trace.d.ts +10 -0
- package/build/lib/step-trace.d.ts.map +1 -0
- package/build/lib/step-trace.js +3 -0
- package/build/lib/step-trace.js.map +1 -0
- package/build/lib/stepper-registry.d.ts +28 -0
- package/build/lib/stepper-registry.d.ts.map +1 -0
- package/build/lib/stepper-registry.js +42 -0
- package/build/lib/stepper-registry.js.map +1 -0
- package/build/lib/test/SetTimeStepper.d.ts +2 -2
- package/build/lib/test/SetTimeStepper.d.ts.map +1 -1
- package/build/lib/test/SetTimeStepper.js +1 -1
- package/build/lib/test/SetTimeStepper.js.map +1 -1
- package/build/lib/test/TestSteps.d.ts +5 -3
- package/build/lib/test/TestSteps.d.ts.map +1 -1
- package/build/lib/test/TestStepsWithOptions.d.ts +3 -1
- package/build/lib/test/TestStepsWithOptions.d.ts.map +1 -1
- package/build/lib/test/TestStepsWithOptions.js +3 -5
- package/build/lib/test/TestStepsWithOptions.js.map +1 -1
- package/build/lib/test/lib.d.ts +4 -3
- package/build/lib/test/lib.d.ts.map +1 -1
- package/build/lib/test/lib.js +12 -12
- package/build/lib/test/lib.js.map +1 -1
- package/build/lib/test/resolvedTestFeatures.d.ts +5 -5
- package/build/lib/test/resolvedTestFeatures.js +1 -1
- package/build/lib/test/resolvedTestFeatures.js.map +1 -1
- package/build/lib/ttag.d.ts +2 -2
- package/build/lib/ttag.d.ts.map +1 -1
- package/build/lib/ttag.js +5 -5
- package/build/lib/ttag.js.map +1 -1
- package/build/lib/util/index.d.ts +20 -12
- package/build/lib/util/index.d.ts.map +1 -1
- package/build/lib/util/index.js +53 -17
- package/build/lib/util/index.js.map +1 -1
- package/build/lib/workspace-discovery.d.ts +37 -0
- package/build/lib/workspace-discovery.d.ts.map +1 -0
- package/build/lib/workspace-discovery.js +96 -0
- package/build/lib/workspace-discovery.js.map +1 -0
- package/build/monitor/index.d.ts +1 -10
- package/build/monitor/index.d.ts.map +1 -1
- package/build/monitor/index.js +1 -14
- package/build/monitor/index.js.map +1 -1
- package/build/phases/Executor.d.ts +3 -11
- package/build/phases/Executor.d.ts.map +1 -1
- package/build/phases/Executor.js +76 -169
- package/build/phases/Executor.js.map +1 -1
- package/build/phases/Resolver.d.ts +25 -1
- package/build/phases/Resolver.d.ts.map +1 -1
- package/build/phases/Resolver.js +88 -22
- package/build/phases/Resolver.js.map +1 -1
- package/build/phases/collector.d.ts +1 -0
- package/build/phases/collector.d.ts.map +1 -1
- package/build/phases/collector.js +7 -3
- package/build/phases/collector.js.map +1 -1
- package/build/runner.d.ts +3 -2
- package/build/runner.d.ts.map +1 -1
- package/build/runner.js +0 -1
- package/build/runner.js.map +1 -1
- package/build/schema/protocol.d.ts +1443 -0
- package/build/schema/protocol.d.ts.map +1 -0
- package/build/schema/protocol.js +429 -0
- package/build/schema/protocol.js.map +1 -0
- package/build/steps/activities-stepper.d.ts +24 -28
- package/build/steps/activities-stepper.d.ts.map +1 -1
- package/build/steps/activities-stepper.js +150 -162
- package/build/steps/activities-stepper.js.map +1 -1
- package/build/steps/conformance.d.ts +3 -1
- package/build/steps/conformance.d.ts.map +1 -1
- package/build/steps/conformance.js +1 -0
- package/build/steps/conformance.js.map +1 -1
- package/build/steps/console-monitor-stepper.d.ts +3 -6
- package/build/steps/console-monitor-stepper.d.ts.map +1 -1
- package/build/steps/console-monitor-stepper.js +23 -64
- package/build/steps/console-monitor-stepper.js.map +1 -1
- package/build/steps/debugger-stepper.d.ts +7 -4
- package/build/steps/debugger-stepper.d.ts.map +1 -1
- package/build/steps/debugger-stepper.js +36 -43
- package/build/steps/debugger-stepper.js.map +1 -1
- package/build/steps/haibun.d.ts +24 -16
- package/build/steps/haibun.d.ts.map +1 -1
- package/build/steps/haibun.js +68 -31
- package/build/steps/haibun.js.map +1 -1
- package/build/steps/lib/tts.d.ts +2 -3
- package/build/steps/lib/tts.d.ts.map +1 -1
- package/build/steps/lib/tts.js +4 -5
- package/build/steps/lib/tts.js.map +1 -1
- package/build/steps/logic-stepper.d.ts +14 -3
- package/build/steps/logic-stepper.d.ts.map +1 -1
- package/build/steps/logic-stepper.js +116 -17
- package/build/steps/logic-stepper.js.map +1 -1
- package/build/steps/narrator.d.ts +7 -5
- package/build/steps/narrator.d.ts.map +1 -1
- package/build/steps/narrator.js +30 -18
- package/build/steps/narrator.js.map +1 -1
- package/build/steps/parse.d.ts +5 -3
- package/build/steps/parse.d.ts.map +1 -1
- package/build/steps/parse.js +2 -1
- package/build/steps/parse.js.map +1 -1
- package/build/steps/variables-stepper.d.ts +285 -4
- package/build/steps/variables-stepper.d.ts.map +1 -1
- package/build/steps/variables-stepper.js +44 -50
- package/build/steps/variables-stepper.js.map +1 -1
- package/package.json +9 -16
- package/build/lib/Logger.d.ts +0 -48
- package/build/lib/Logger.d.ts.map +0 -1
- package/build/lib/Logger.js +0 -85
- package/build/lib/Logger.js.map +0 -1
- package/build/lib/TestLogger.d.ts +0 -12
- package/build/lib/TestLogger.d.ts.map +0 -1
- package/build/lib/TestLogger.js +0 -12
- package/build/lib/TestLogger.js.map +0 -1
- package/build/lib/Timer.d.ts +0 -7
- package/build/lib/Timer.d.ts.map +0 -1
- package/build/lib/Timer.js +0 -9
- package/build/lib/Timer.js.map +0 -1
- package/build/lib/core/protocol.d.ts +0 -58
- package/build/lib/core/protocol.d.ts.map +0 -1
- package/build/lib/core/protocol.js +0 -18
- package/build/lib/core/protocol.js.map +0 -1
- package/build/lib/event-bridge.d.ts +0 -42
- package/build/lib/event-bridge.d.ts.map +0 -1
- package/build/lib/event-bridge.js +0 -214
- package/build/lib/event-bridge.js.map +0 -1
- package/build/lib/interfaces/logger.d.ts +0 -123
- package/build/lib/interfaces/logger.d.ts.map +0 -1
- package/build/lib/interfaces/logger.js +0 -29
- package/build/lib/interfaces/logger.js.map +0 -1
- package/build/lib/util/variables.d.ts +0 -9
- package/build/lib/util/variables.d.ts.map +0 -1
- package/build/lib/util/variables.js +0 -40
- package/build/lib/util/variables.js.map +0 -1
- package/build/monitor/browser-stubs.d.ts +0 -12
- package/build/monitor/browser-stubs.d.ts.map +0 -1
- package/build/monitor/browser-stubs.js +0 -20
- package/build/monitor/browser-stubs.js.map +0 -1
- package/build/monitor/constants.d.ts +0 -9
- package/build/monitor/constants.d.ts.map +0 -1
- package/build/monitor/constants.js +0 -9
- package/build/monitor/constants.js.map +0 -1
- package/build/monitor/event-view.d.ts +0 -40
- package/build/monitor/event-view.d.ts.map +0 -1
- package/build/monitor/event-view.js +0 -104
- package/build/monitor/event-view.js.map +0 -1
- package/build/monitor/filters.d.ts +0 -17
- package/build/monitor/filters.d.ts.map +0 -1
- package/build/monitor/filters.js +0 -32
- package/build/monitor/filters.js.map +0 -1
- package/build/monitor/formatters.d.ts +0 -27
- package/build/monitor/formatters.d.ts.map +0 -1
- package/build/monitor/formatters.js +0 -89
- package/build/monitor/formatters.js.map +0 -1
- package/build/monitor/jit-serialization.d.ts +0 -9
- package/build/monitor/jit-serialization.d.ts.map +0 -1
- package/build/monitor/jit-serialization.js +0 -73
- package/build/monitor/jit-serialization.js.map +0 -1
- package/build/monitor/monitor-types.d.ts +0 -119
- package/build/monitor/monitor-types.d.ts.map +0 -1
- package/build/monitor/monitor-types.js +0 -43
- package/build/monitor/monitor-types.js.map +0 -1
- package/build/monitor/speculative-tracker.d.ts +0 -20
- package/build/monitor/speculative-tracker.d.ts.map +0 -1
- package/build/monitor/speculative-tracker.js +0 -38
- package/build/monitor/speculative-tracker.js.map +0 -1
- package/build/monitor/state.d.ts +0 -31
- package/build/monitor/state.d.ts.map +0 -1
- package/build/monitor/state.js +0 -110
- package/build/monitor/state.js.map +0 -1
- package/build/monitor/timer.d.ts +0 -11
- package/build/monitor/timer.d.ts.map +0 -1
- package/build/monitor/timer.js +0 -13
- package/build/monitor/timer.js.map +0 -1
- package/build/monitor/tree-builder.d.ts +0 -25
- package/build/monitor/tree-builder.d.ts.map +0 -1
- package/build/monitor/tree-builder.js +0 -36
- package/build/monitor/tree-builder.js.map +0 -1
- package/build/schema/events.d.ts +0 -426
- package/build/schema/events.d.ts.map +0 -1
- package/build/schema/events.js +0 -123
- package/build/schema/events.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,35 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haibun/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.3.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./build/index.js",
|
|
9
9
|
"./*": "./build/*",
|
|
10
|
-
"./monitor": {
|
|
11
|
-
"browser": "./build/monitor/index.js",
|
|
12
|
-
"default": "./build/monitor/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./monitor/*": {
|
|
15
|
-
"browser": "./build/monitor/*",
|
|
16
|
-
"default": "./build/monitor/*"
|
|
17
|
-
},
|
|
18
10
|
"./schema/*": "./build/schema/*"
|
|
19
11
|
},
|
|
20
12
|
"main": "./build/index.js",
|
|
21
|
-
"files": [
|
|
13
|
+
"files": [
|
|
14
|
+
"build/**"
|
|
15
|
+
],
|
|
22
16
|
"scripts": {
|
|
23
|
-
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
|
|
24
|
-
"lint": "eslint -c .eslintrc.json --ext .ts,.js src",
|
|
25
17
|
"test": "vitest run",
|
|
26
18
|
"coverage": "vitest --coverage",
|
|
27
19
|
"test-watch": "vitest",
|
|
28
20
|
"build": "tsc -b .",
|
|
29
21
|
"build-watch": "tsc -b . --watch",
|
|
30
|
-
"prepublishOnly": "tsc -b ."
|
|
31
|
-
"preversion": "npm run lint"
|
|
22
|
+
"prepublishOnly": "tsc -b ."
|
|
32
23
|
},
|
|
33
24
|
"gitHead": "7cf9680bd922fb622fb59f1e6bf5b65284cb8fd5",
|
|
34
|
-
"dependencies": {
|
|
35
|
-
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"zod": "^4.1.13"
|
|
27
|
+
}
|
|
28
|
+
}
|
package/build/lib/Logger.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { TWorld } from './defs.js';
|
|
2
|
-
import { TAnyFixme } from './fixme.js';
|
|
3
|
-
import { ILogger, ILogOutput, TLogArgs, TLogLevel, TOutputEnv, EExecutionMessageType, TMessageContext, TArtifact } from './interfaces/logger.js';
|
|
4
|
-
export declare const LOGGER_LOG: {
|
|
5
|
-
level: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const LOGGER_NOTHING: {
|
|
8
|
-
level: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const LOGGER_LEVELS: {
|
|
11
|
-
debug: number;
|
|
12
|
-
trace: number;
|
|
13
|
-
log: number;
|
|
14
|
-
info: number;
|
|
15
|
-
warn: number;
|
|
16
|
-
error: number;
|
|
17
|
-
none: number;
|
|
18
|
-
};
|
|
19
|
-
type TLevel = {
|
|
20
|
-
level: string;
|
|
21
|
-
follow?: string;
|
|
22
|
-
};
|
|
23
|
-
type TConf = TLevel | TOutputEnv;
|
|
24
|
-
export default class Logger implements ILogger, ILogOutput {
|
|
25
|
-
level: number | undefined;
|
|
26
|
-
env: TOutputEnv | undefined;
|
|
27
|
-
subscribers: ILogOutput[];
|
|
28
|
-
follow: string | undefined;
|
|
29
|
-
static lastLevel: any;
|
|
30
|
-
constructor(conf: TConf);
|
|
31
|
-
addSubscriber(subscriber: ILogOutput): void;
|
|
32
|
-
removeSubscriber(subscriber: ILogOutput): void;
|
|
33
|
-
static shouldLogLevel(level: number, name: TLogLevel): boolean;
|
|
34
|
-
out(level: TLogLevel, args: TLogArgs, messageContext?: TMessageContext): void;
|
|
35
|
-
debug: (args: TLogArgs, mctx?: TMessageContext) => void;
|
|
36
|
-
trace: (args: TLogArgs, mctx?: TMessageContext) => void;
|
|
37
|
-
log: (args: TLogArgs, mctx?: TMessageContext) => void;
|
|
38
|
-
info: (args: TLogArgs, mctx?: TMessageContext) => void;
|
|
39
|
-
warn: (args: TLogArgs, mctx?: TMessageContext) => void;
|
|
40
|
-
error: (args: TLogArgs, mctx?: TMessageContext) => void;
|
|
41
|
-
}
|
|
42
|
-
export declare const topicArtifactLogger: (world: TWorld) => <T extends TArtifact>(message: TLogArgs, data: {
|
|
43
|
-
incident: EExecutionMessageType;
|
|
44
|
-
artifact?: T;
|
|
45
|
-
incidentDetails?: TAnyFixme;
|
|
46
|
-
}, level?: TLogLevel) => void;
|
|
47
|
-
export {};
|
|
48
|
-
//# sourceMappingURL=Logger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../src/lib/Logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,qBAAqB,EAAE,eAAe,EAAE,SAAS,EAAmB,MAAM,wBAAwB,CAAC;AAIlK,eAAO,MAAM,UAAU;;CAAmB,CAAC;AAC3C,eAAO,MAAM,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,QAAQ,CAAC,EAAE,CAAC,CAAC;IAAC,eAAe,CAAC,EAAE,SAAS,CAAA;CAAE,EACpF,QAAO,SAAiB,KACtB,IAOF,CAAA"}
|
package/build/lib/Logger.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { LOG_LEVEL_TRACE } from './interfaces/logger.js';
|
|
2
|
-
import { Timer } from './Timer.js';
|
|
3
|
-
import { descTag, isFirstTag } from './util/index.js';
|
|
4
|
-
export const LOGGER_LOG = { level: 'log' };
|
|
5
|
-
export const LOGGER_NOTHING = { level: 'none' };
|
|
6
|
-
export const LOGGER_LEVELS = {
|
|
7
|
-
debug: 1,
|
|
8
|
-
trace: 2,
|
|
9
|
-
log: 3,
|
|
10
|
-
info: 4,
|
|
11
|
-
warn: 5,
|
|
12
|
-
error: 6,
|
|
13
|
-
none: 9,
|
|
14
|
-
};
|
|
15
|
-
export default class Logger {
|
|
16
|
-
level = 1;
|
|
17
|
-
env;
|
|
18
|
-
subscribers = [];
|
|
19
|
-
follow;
|
|
20
|
-
static lastLevel = undefined;
|
|
21
|
-
constructor(conf) {
|
|
22
|
-
// passed a log level and possibly a follow
|
|
23
|
-
if (conf.level) {
|
|
24
|
-
this.level = LOGGER_LEVELS[conf.level];
|
|
25
|
-
this.follow = conf.follow;
|
|
26
|
-
}
|
|
27
|
-
else if (conf.output) {
|
|
28
|
-
this.env = conf;
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
throw Error(`invalid logger config ${conf}`);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
addSubscriber(subscriber) {
|
|
35
|
-
this.subscribers.push(subscriber);
|
|
36
|
-
}
|
|
37
|
-
removeSubscriber(subscriber) {
|
|
38
|
-
this.subscribers = this.subscribers.filter((sub) => JSON.stringify(sub) !== JSON.stringify(subscriber));
|
|
39
|
-
}
|
|
40
|
-
static shouldLogLevel(level, name) {
|
|
41
|
-
return LOGGER_LEVELS[name] >= level;
|
|
42
|
-
}
|
|
43
|
-
out(level, args, messageContext) {
|
|
44
|
-
for (const subscriber of this.subscribers) {
|
|
45
|
-
subscriber.out(level, args, messageContext);
|
|
46
|
-
}
|
|
47
|
-
if (this.env?.output) {
|
|
48
|
-
this.env.output.out(level, args, { ...messageContext, tag: this.env.tag });
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
const stack = Error().stack?.split('\n');
|
|
52
|
-
const caller = stack[Math.min((stack?.length || 1) - 1, 4)]
|
|
53
|
-
?.replace(/.*\(/, '')
|
|
54
|
-
?.replace(process.cwd(), '')
|
|
55
|
-
.replace(')', '')
|
|
56
|
-
.replace(/.*\//, '')
|
|
57
|
-
.replace(/\.ts:/, ':');
|
|
58
|
-
if (!Logger.shouldLogLevel(this.level, level)) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
const showLevel = Logger.lastLevel === level ? level.substring(0, 1).padStart(1 + level.length / 2) : level;
|
|
62
|
-
Logger.lastLevel = level;
|
|
63
|
-
const tag = messageContext?.tag ? (isFirstTag(messageContext.tag) ? '' : descTag(messageContext.tag)) : '';
|
|
64
|
-
const [proggy, line /*, col*/] = caller.split(':');
|
|
65
|
-
// Map trace to log for console output (console.trace prints stack traces)
|
|
66
|
-
const consoleLevel = level === LOG_LEVEL_TRACE ? 'log' : level;
|
|
67
|
-
console[consoleLevel]((showLevel.padStart(6) + ` █ ${Timer.since() / 1000}:${proggy}:${line}${tag}`).padEnd(38) + ` | `, args);
|
|
68
|
-
}
|
|
69
|
-
debug = (args, mctx) => this.out('debug', args, mctx);
|
|
70
|
-
trace = (args, mctx) => this.out('trace', args, mctx);
|
|
71
|
-
log = (args, mctx) => this.out('log', args, mctx);
|
|
72
|
-
info = (args, mctx) => this.out('info', args, mctx);
|
|
73
|
-
warn = (args, mctx) => this.out('warn', args, mctx);
|
|
74
|
-
error = (args, mctx) => this.out('error', args, mctx);
|
|
75
|
-
}
|
|
76
|
-
// Convenience function to create a log with message context and artifact
|
|
77
|
-
export const topicArtifactLogger = (world) => (message, data, level = 'log') => {
|
|
78
|
-
const context = {
|
|
79
|
-
incident: data.incident,
|
|
80
|
-
artifacts: data.artifact ? [data.artifact] : undefined,
|
|
81
|
-
incidentDetails: data.incidentDetails,
|
|
82
|
-
};
|
|
83
|
-
world.logger[level](message, context);
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=Logger.js.map
|
package/build/lib/Logger.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../src/lib/Logger.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2G,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAClK,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC3C,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAChD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;CACP,CAAC;AAKF,MAAM,CAAC,OAAO,OAAO,MAAM;IAC1B,KAAK,GAAuB,CAAC,CAAC;IAC9B,GAAG,CAAyB;IAC5B,WAAW,GAAiB,EAAE,CAAC;IAC/B,MAAM,CAAqB;IAC3B,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;IAE7B,YAAY,IAAW;QACtB,2CAA2C;QAC3C,IAAK,IAAe,CAAC,KAAK,EAAE,CAAC;YAC5B,IAAI,CAAC,KAAK,GAAG,aAAa,CAAE,IAAe,CAAC,KAAkB,CAAC,CAAC;YAChE,IAAI,CAAC,M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,CAAC,CAAC,CAAC,SAAS;QACtD,eAAe,EAAE,IAAI,CAAC,eAAe;KACrC,CAAC;IACF,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ILogger } from './interfaces/logger.js';
|
|
2
|
-
export default class TestLogger implements ILogger {
|
|
3
|
-
debug: () => any;
|
|
4
|
-
trace: () => any;
|
|
5
|
-
log: () => any;
|
|
6
|
-
info: () => any;
|
|
7
|
-
warn: () => any;
|
|
8
|
-
error: () => any;
|
|
9
|
-
addSubscriber: () => any;
|
|
10
|
-
removeSubscriber: () => any;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=TestLogger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestLogger.d.ts","sourceRoot":"","sources":["../../src/lib/TestLogger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,UAAW,YAAW,OAAO;IACjD,KAAK,YAAU;IACf,KAAK,YAAU;IACf,GAAG,YAAU;IACb,IAAI,YAAU;IACd,IAAI,YAAU;IACd,KAAK,YAAU;IACf,aAAa,YAAU;IACvB,gBAAgB,YAAU;CAC1B"}
|
package/build/lib/TestLogger.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const nothin = () => undefined;
|
|
2
|
-
export default class TestLogger {
|
|
3
|
-
debug = nothin;
|
|
4
|
-
trace = nothin;
|
|
5
|
-
log = nothin;
|
|
6
|
-
info = nothin;
|
|
7
|
-
warn = nothin;
|
|
8
|
-
error = nothin;
|
|
9
|
-
addSubscriber = nothin;
|
|
10
|
-
removeSubscriber = nothin;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=TestLogger.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestLogger.js","sourceRoot":"","sources":["../../src/lib/TestLogger.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;AAC/B,MAAM,CAAC,OAAO,OAAO,UAAU;IAC9B,KAAK,GAAG,MAAM,CAAC;IACf,KAAK,GAAG,MAAM,CAAC;IACf,GAAG,GAAG,MAAM,CAAC;IACb,IAAI,GAAG,MAAM,CAAC;IACd,IAAI,GAAG,MAAM,CAAC;IACd,KAAK,GAAG,MAAM,CAAC;IACf,aAAa,GAAG,MAAM,CAAC;IACvB,gBAAgB,GAAG,MAAM,CAAC;CAC1B"}
|
package/build/lib/Timer.d.ts
DELETED
package/build/lib/Timer.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Timer.d.ts","sourceRoot":"","sources":["../../src/lib/Timer.ts"],"names":[],"mappings":"AAAA,qBAAa,KAAK;IACjB,MAAM,CAAC,SAAS,OAAc;IAC9B,MAAM,CAAC,GAAG,SAAkC;IAC5C,MAAM,CAAC,UAAU,SAAc;IAE/B,MAAM,CAAC,KAAK;CAGZ"}
|
package/build/lib/Timer.js
DELETED
package/build/lib/Timer.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Timer.js","sourceRoot":"","sources":["../../src/lib/Timer.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,KAAK;IACjB,MAAM,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;IAC9B,MAAM,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC;IAC5C,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE/B,MAAM,CAAC,KAAK;QACX,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC;IACtC,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const ExecutionIntentSchema: z.ZodObject<{
|
|
3
|
-
mode: z.ZodDefault<z.ZodEnum<{
|
|
4
|
-
speculative: "speculative";
|
|
5
|
-
authoritative: "authoritative";
|
|
6
|
-
prose: "prose";
|
|
7
|
-
}>>;
|
|
8
|
-
usage: z.ZodOptional<z.ZodEnum<{
|
|
9
|
-
testing: "testing";
|
|
10
|
-
debugging: "debugging";
|
|
11
|
-
background: "background";
|
|
12
|
-
polling: "polling";
|
|
13
|
-
}>>;
|
|
14
|
-
stepperOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export type ExecutionIntent = z.infer<typeof ExecutionIntentSchema>;
|
|
17
|
-
export declare const FlowSignalSchema: z.ZodObject<{
|
|
18
|
-
kind: z.ZodEnum<{
|
|
19
|
-
ok: "ok";
|
|
20
|
-
fail: "fail";
|
|
21
|
-
retry: "retry";
|
|
22
|
-
skip: "skip";
|
|
23
|
-
}>;
|
|
24
|
-
message: z.ZodOptional<z.ZodString>;
|
|
25
|
-
fatal: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
-
payload: z.ZodOptional<z.ZodAny>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
export type FlowSignal = z.infer<typeof FlowSignalSchema>;
|
|
29
|
-
export declare const SystemMessageSchema: z.ZodObject<{
|
|
30
|
-
topic: z.ZodOptional<z.ZodString>;
|
|
31
|
-
signal: z.ZodObject<{
|
|
32
|
-
kind: z.ZodEnum<{
|
|
33
|
-
ok: "ok";
|
|
34
|
-
fail: "fail";
|
|
35
|
-
retry: "retry";
|
|
36
|
-
skip: "skip";
|
|
37
|
-
}>;
|
|
38
|
-
message: z.ZodOptional<z.ZodString>;
|
|
39
|
-
fatal: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
-
payload: z.ZodOptional<z.ZodAny>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
intent: z.ZodObject<{
|
|
43
|
-
mode: z.ZodDefault<z.ZodEnum<{
|
|
44
|
-
speculative: "speculative";
|
|
45
|
-
authoritative: "authoritative";
|
|
46
|
-
prose: "prose";
|
|
47
|
-
}>>;
|
|
48
|
-
usage: z.ZodOptional<z.ZodEnum<{
|
|
49
|
-
testing: "testing";
|
|
50
|
-
debugging: "debugging";
|
|
51
|
-
background: "background";
|
|
52
|
-
polling: "polling";
|
|
53
|
-
}>>;
|
|
54
|
-
stepperOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
|
-
}, z.core.$strip>;
|
|
57
|
-
export type SystemMessage = z.infer<typeof SystemMessageSchema>;
|
|
58
|
-
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/lib/core/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;iBAIhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAK3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export const ExecutionIntentSchema = z.object({
|
|
3
|
-
mode: z.enum(['authoritative', 'speculative', 'prose']).default('authoritative'),
|
|
4
|
-
usage: z.enum(['testing', 'debugging', 'background', 'polling']).optional(),
|
|
5
|
-
stepperOptions: z.record(z.string(), z.any()).optional(),
|
|
6
|
-
});
|
|
7
|
-
export const FlowSignalSchema = z.object({
|
|
8
|
-
kind: z.enum(['ok', 'fail', 'retry', 'skip']),
|
|
9
|
-
message: z.string().optional(),
|
|
10
|
-
fatal: z.boolean().optional(),
|
|
11
|
-
payload: z.any().optional(),
|
|
12
|
-
});
|
|
13
|
-
export const SystemMessageSchema = z.object({
|
|
14
|
-
topic: z.string().optional(),
|
|
15
|
-
signal: FlowSignalSchema,
|
|
16
|
-
intent: ExecutionIntentSchema,
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=protocol.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../src/lib/core/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;IAChF,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3E,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,MAAM,EAAE,gBAAgB;IACxB,MAAM,EAAE,qBAAqB;CAC9B,CAAC,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility functions for bridging TMessageContext (old) to THaibunEvent (new).
|
|
3
|
-
*
|
|
4
|
-
* This module provides conversion utilities to enable gradual migration from
|
|
5
|
-
* the legacy TMessageContext/EExecutionMessageType system to the new
|
|
6
|
-
* THaibunEvent Zod-validated event system.
|
|
7
|
-
*/
|
|
8
|
-
import { THaibunEvent, TArtifactEvent } from '../schema/events.js';
|
|
9
|
-
import { TMessageContext, TLogLevel, TArtifact } from './interfaces/logger.js';
|
|
10
|
-
/**
|
|
11
|
-
* Convert a legacy TArtifact to a THaibunEvent artifact event.
|
|
12
|
-
*/
|
|
13
|
-
export declare function legacyArtifactToEvent(artifact: TArtifact, seqPath: string, index: number): TArtifactEvent | null;
|
|
14
|
-
/**
|
|
15
|
-
* Convert a TMessageContext to THaibunEvents (may return multiple if artifacts present).
|
|
16
|
-
*
|
|
17
|
-
* @param message - The log message
|
|
18
|
-
* @param level - The log level
|
|
19
|
-
* @param context - The legacy TMessageContext
|
|
20
|
-
* @param seqPath - Optional seqPath for event ID
|
|
21
|
-
* @returns Array of THaibunEvent (main event + artifact events)
|
|
22
|
-
*/
|
|
23
|
-
export declare function messageContextToEvents(message: string, level: TLogLevel, context?: TMessageContext, seqPath?: string): THaibunEvent[];
|
|
24
|
-
/**
|
|
25
|
-
* Convert a TMessageContext to a THaibunEvent.
|
|
26
|
-
*
|
|
27
|
-
* @param message - The log message
|
|
28
|
-
* @param level - The log level
|
|
29
|
-
* @param context - The legacy TMessageContext
|
|
30
|
-
* @param seqPath - Optional seqPath for event ID
|
|
31
|
-
* @returns THaibunEvent or null if conversion not applicable
|
|
32
|
-
*/
|
|
33
|
-
export declare function messageContextToEvent(message: string, level: TLogLevel, context?: TMessageContext, seqPath?: string): THaibunEvent | null;
|
|
34
|
-
/**
|
|
35
|
-
* Check if a TMessageContext represents a lifecycle event
|
|
36
|
-
*/
|
|
37
|
-
export declare function isLifecycleContext(context?: TMessageContext): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Check if a TMessageContext represents a control event
|
|
40
|
-
*/
|
|
41
|
-
export declare function isControlContext(context?: TMessageContext): boolean;
|
|
42
|
-
//# sourceMappingURL=event-bridge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-bridge.d.ts","sourceRoot":"","sources":["../../src/lib/event-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAA6C,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC9G,OAAO,EAAE,eAAe,EAAyB,SAAS,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAuBtG;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,SAAS,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,cAAc,GAAG,IAAI,CA6EvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,eAAe,EACzB,OAAO,GAAE,MAAY,GACpB,YAAY,EAAE,CAoBhB;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,eAAe,EACzB,OAAO,GAAE,MAAY,GACpB,YAAY,GAAG,IAAI,CAuErB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAGrE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAInE"}
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility functions for bridging TMessageContext (old) to THaibunEvent (new).
|
|
3
|
-
*
|
|
4
|
-
* This module provides conversion utilities to enable gradual migration from
|
|
5
|
-
* the legacy TMessageContext/EExecutionMessageType system to the new
|
|
6
|
-
* THaibunEvent Zod-validated event system.
|
|
7
|
-
*/
|
|
8
|
-
import { EExecutionMessageType } from './interfaces/logger.js';
|
|
9
|
-
const INCIDENT_TO_LIFECYCLE = {
|
|
10
|
-
[EExecutionMessageType.FEATURE_START]: { type: 'feature', stage: 'start' },
|
|
11
|
-
[EExecutionMessageType.FEATURE_END]: { type: 'feature', stage: 'end' },
|
|
12
|
-
[EExecutionMessageType.SCENARIO_START]: { type: 'scenario', stage: 'start' },
|
|
13
|
-
[EExecutionMessageType.SCENARIO_END]: { type: 'scenario', stage: 'end' },
|
|
14
|
-
[EExecutionMessageType.STEP_START]: { type: 'step', stage: 'start' },
|
|
15
|
-
[EExecutionMessageType.STEP_END]: { type: 'step', stage: 'end' },
|
|
16
|
-
[EExecutionMessageType.EXECUTION_START]: { type: 'execution', stage: 'start' },
|
|
17
|
-
[EExecutionMessageType.EXECUTION_END]: { type: 'execution', stage: 'end' },
|
|
18
|
-
[EExecutionMessageType.ENSURE_START]: { type: 'ensure', stage: 'start' },
|
|
19
|
-
[EExecutionMessageType.ENSURE_END]: { type: 'ensure', stage: 'end' },
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Convert a legacy TArtifact to a THaibunEvent artifact event.
|
|
23
|
-
*/
|
|
24
|
-
export function legacyArtifactToEvent(artifact, seqPath, index) {
|
|
25
|
-
const baseEvent = {
|
|
26
|
-
id: `${seqPath}.artifact.${index}`,
|
|
27
|
-
timestamp: Date.now(),
|
|
28
|
-
source: 'haibun',
|
|
29
|
-
kind: 'artifact',
|
|
30
|
-
};
|
|
31
|
-
switch (artifact.artifactType) {
|
|
32
|
-
case 'image':
|
|
33
|
-
return {
|
|
34
|
-
...baseEvent,
|
|
35
|
-
artifactType: 'image',
|
|
36
|
-
path: artifact.path,
|
|
37
|
-
mimetype: 'image/png',
|
|
38
|
-
};
|
|
39
|
-
case 'video':
|
|
40
|
-
return {
|
|
41
|
-
...baseEvent,
|
|
42
|
-
artifactType: 'video',
|
|
43
|
-
path: artifact.path,
|
|
44
|
-
mimetype: 'video/webm',
|
|
45
|
-
isTimeLined: true,
|
|
46
|
-
};
|
|
47
|
-
case 'html':
|
|
48
|
-
const htmlPath = 'path' in artifact ? artifact.path : undefined;
|
|
49
|
-
if (htmlPath) {
|
|
50
|
-
return {
|
|
51
|
-
...baseEvent,
|
|
52
|
-
artifactType: 'html',
|
|
53
|
-
path: htmlPath,
|
|
54
|
-
mimetype: 'text/html',
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
return null; // Inline HTML not supported in new schema
|
|
58
|
-
case 'speech':
|
|
59
|
-
return {
|
|
60
|
-
...baseEvent,
|
|
61
|
-
artifactType: 'speech',
|
|
62
|
-
path: artifact.path,
|
|
63
|
-
mimetype: 'audio/mpeg',
|
|
64
|
-
transcript: artifact.transcript,
|
|
65
|
-
durationS: artifact.durationS,
|
|
66
|
-
};
|
|
67
|
-
case 'json':
|
|
68
|
-
return {
|
|
69
|
-
...baseEvent,
|
|
70
|
-
artifactType: 'json',
|
|
71
|
-
json: artifact.json,
|
|
72
|
-
mimetype: 'application/json',
|
|
73
|
-
};
|
|
74
|
-
case 'resolvedFeatures':
|
|
75
|
-
return {
|
|
76
|
-
...baseEvent,
|
|
77
|
-
artifactType: 'resolvedFeatures',
|
|
78
|
-
resolvedFeatures: artifact.resolvedFeatures,
|
|
79
|
-
index: artifact.index,
|
|
80
|
-
mimetype: 'application/json',
|
|
81
|
-
};
|
|
82
|
-
case 'json/http/trace':
|
|
83
|
-
return {
|
|
84
|
-
...baseEvent,
|
|
85
|
-
artifactType: 'http-trace',
|
|
86
|
-
httpEvent: artifact.httpEvent,
|
|
87
|
-
trace: artifact.trace,
|
|
88
|
-
mimetype: 'application/json',
|
|
89
|
-
};
|
|
90
|
-
default:
|
|
91
|
-
return null;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Convert a TMessageContext to THaibunEvents (may return multiple if artifacts present).
|
|
96
|
-
*
|
|
97
|
-
* @param message - The log message
|
|
98
|
-
* @param level - The log level
|
|
99
|
-
* @param context - The legacy TMessageContext
|
|
100
|
-
* @param seqPath - Optional seqPath for event ID
|
|
101
|
-
* @returns Array of THaibunEvent (main event + artifact events)
|
|
102
|
-
*/
|
|
103
|
-
export function messageContextToEvents(message, level, context, seqPath = '0') {
|
|
104
|
-
const events = [];
|
|
105
|
-
// Get the main event
|
|
106
|
-
const mainEvent = messageContextToEvent(message, level, context, seqPath);
|
|
107
|
-
if (mainEvent) {
|
|
108
|
-
events.push(mainEvent);
|
|
109
|
-
}
|
|
110
|
-
// Convert artifacts to separate events
|
|
111
|
-
if (context?.artifacts) {
|
|
112
|
-
context.artifacts.forEach((artifact, index) => {
|
|
113
|
-
const artifactEvent = legacyArtifactToEvent(artifact, seqPath, index);
|
|
114
|
-
if (artifactEvent) {
|
|
115
|
-
events.push(artifactEvent);
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
return events;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Convert a TMessageContext to a THaibunEvent.
|
|
123
|
-
*
|
|
124
|
-
* @param message - The log message
|
|
125
|
-
* @param level - The log level
|
|
126
|
-
* @param context - The legacy TMessageContext
|
|
127
|
-
* @param seqPath - Optional seqPath for event ID
|
|
128
|
-
* @returns THaibunEvent or null if conversion not applicable
|
|
129
|
-
*/
|
|
130
|
-
export function messageContextToEvent(message, level, context, seqPath = '0') {
|
|
131
|
-
if (!context) {
|
|
132
|
-
// No context means a simple log message
|
|
133
|
-
return {
|
|
134
|
-
id: seqPath,
|
|
135
|
-
timestamp: Date.now(),
|
|
136
|
-
source: 'haibun',
|
|
137
|
-
kind: 'log',
|
|
138
|
-
level: level === 'log' ? 'info' : level,
|
|
139
|
-
message,
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
const { incident, incidentDetails } = context;
|
|
143
|
-
// Check if this is a lifecycle event
|
|
144
|
-
const lifecycleMapping = INCIDENT_TO_LIFECYCLE[incident];
|
|
145
|
-
if (lifecycleMapping) {
|
|
146
|
-
const lifecycleEvent = {
|
|
147
|
-
id: seqPath,
|
|
148
|
-
timestamp: Date.now(),
|
|
149
|
-
source: 'haibun',
|
|
150
|
-
kind: 'lifecycle',
|
|
151
|
-
type: lifecycleMapping.type,
|
|
152
|
-
stage: lifecycleMapping.stage,
|
|
153
|
-
label: message,
|
|
154
|
-
status: incidentDetails?.ok === false ? 'failed' :
|
|
155
|
-
lifecycleMapping.stage === 'start' ? 'running' : 'completed',
|
|
156
|
-
error: incidentDetails?.error?.message,
|
|
157
|
-
stepperName: incidentDetails?.stepperName,
|
|
158
|
-
actionName: incidentDetails?.actionName,
|
|
159
|
-
};
|
|
160
|
-
return lifecycleEvent;
|
|
161
|
-
}
|
|
162
|
-
// Check if this is a control event (DEBUG, GRAPH_LINK)
|
|
163
|
-
if (incident === EExecutionMessageType.DEBUG) {
|
|
164
|
-
const controlEvent = {
|
|
165
|
-
id: seqPath,
|
|
166
|
-
timestamp: Date.now(),
|
|
167
|
-
source: 'haibun',
|
|
168
|
-
kind: 'control',
|
|
169
|
-
signal: incidentDetails?.rerunStep ? 'break' :
|
|
170
|
-
incidentDetails?.nextStep ? 'resume' : 'pause',
|
|
171
|
-
payload: incidentDetails || {},
|
|
172
|
-
};
|
|
173
|
-
return controlEvent;
|
|
174
|
-
}
|
|
175
|
-
if (incident === EExecutionMessageType.GRAPH_LINK) {
|
|
176
|
-
const controlEvent = {
|
|
177
|
-
id: seqPath,
|
|
178
|
-
timestamp: Date.now(),
|
|
179
|
-
source: 'haibun',
|
|
180
|
-
kind: 'control',
|
|
181
|
-
signal: 'graph-link',
|
|
182
|
-
payload: incidentDetails || {},
|
|
183
|
-
};
|
|
184
|
-
return controlEvent;
|
|
185
|
-
}
|
|
186
|
-
// Default: treat as log event
|
|
187
|
-
return {
|
|
188
|
-
id: seqPath,
|
|
189
|
-
timestamp: Date.now(),
|
|
190
|
-
source: 'haibun',
|
|
191
|
-
kind: 'log',
|
|
192
|
-
level: level === 'log' ? 'info' : level,
|
|
193
|
-
message,
|
|
194
|
-
payload: incidentDetails,
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Check if a TMessageContext represents a lifecycle event
|
|
199
|
-
*/
|
|
200
|
-
export function isLifecycleContext(context) {
|
|
201
|
-
if (!context)
|
|
202
|
-
return false;
|
|
203
|
-
return context.incident in INCIDENT_TO_LIFECYCLE;
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Check if a TMessageContext represents a control event
|
|
207
|
-
*/
|
|
208
|
-
export function isControlContext(context) {
|
|
209
|
-
if (!context)
|
|
210
|
-
return false;
|
|
211
|
-
return context.incident === EExecutionMessageType.DEBUG ||
|
|
212
|
-
context.incident === EExecutionMessageType.GRAPH_LINK;
|
|
213
|
-
}
|
|
214
|
-
//# sourceMappingURL=event-bridge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-bridge.js","sourceRoot":"","sources":["../../src/lib/event-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAmB,qBAAqB,EAAwB,MAAM,wBAAwB,CAAC;AAUtG,MAAM,qBAAqB,GAAiE;IAC1F,CAAC,qBAAqB,CAAC,aAAa,C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