@haibun/core 3.1.1 → 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
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { TFileSystem } from './util/workspace-lib.js';
|
|
2
|
+
export interface HaibunWorkspace {
|
|
3
|
+
/** Base path - parent of features/ folder */
|
|
4
|
+
base: string;
|
|
5
|
+
/** Path to config.json if it exists */
|
|
6
|
+
configPath: string | null;
|
|
7
|
+
/** Path to backgrounds/ folder if it exists */
|
|
8
|
+
backgroundsPath: string | null;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Find the haibun workspace root from a feature file path.
|
|
12
|
+
* Walks up from the file until finding a 'features/' parent directory.
|
|
13
|
+
* Returns the base path (parent of features/), config path, and backgrounds path.
|
|
14
|
+
*
|
|
15
|
+
* @param featurePath - Absolute path to a .feature file
|
|
16
|
+
* @param fs - File system interface (for testing)
|
|
17
|
+
* @returns Workspace info or null if no features/ parent found
|
|
18
|
+
*/
|
|
19
|
+
export declare function findHaibunWorkspace(featurePath: string, fs?: TFileSystem): HaibunWorkspace | null;
|
|
20
|
+
/**
|
|
21
|
+
* Recursively find all .feature files in a directory
|
|
22
|
+
*/
|
|
23
|
+
export declare function findFeatureFiles(dir: string, fs?: TFileSystem): Promise<string[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Count features in the workspace (base/features)
|
|
26
|
+
*/
|
|
27
|
+
export declare function countFeatures(base: string, fs?: TFileSystem): Promise<number>;
|
|
28
|
+
/**
|
|
29
|
+
* Load all background files from a backgrounds directory
|
|
30
|
+
*/
|
|
31
|
+
export declare function loadBackgroundsFromPath(backgroundsPath: string, fs?: TFileSystem): Promise<Array<{
|
|
32
|
+
path: string;
|
|
33
|
+
content: string;
|
|
34
|
+
name: string;
|
|
35
|
+
base: string;
|
|
36
|
+
}>>;
|
|
37
|
+
//# sourceMappingURL=workspace-discovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-discovery.d.ts","sourceRoot":"","sources":["../../src/lib/workspace-discovery.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,WAAW,eAAe;IAC9B,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,+CAA+C;IAC/C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,EAAE,GAAE,WAAoB,GACvB,eAAe,GAAG,IAAI,CAmCxB;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,GAAE,WAAoB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAmB/F;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAE,WAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAI3F;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,eAAe,EAAE,MAAM,EACvB,EAAE,GAAE,WAAoB,GACvB,OAAO,CAAC,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAuB/E"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import nodeFS from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
/**
|
|
4
|
+
* Find the haibun workspace root from a feature file path.
|
|
5
|
+
* Walks up from the file until finding a 'features/' parent directory.
|
|
6
|
+
* Returns the base path (parent of features/), config path, and backgrounds path.
|
|
7
|
+
*
|
|
8
|
+
* @param featurePath - Absolute path to a .feature file
|
|
9
|
+
* @param fs - File system interface (for testing)
|
|
10
|
+
* @returns Workspace info or null if no features/ parent found
|
|
11
|
+
*/
|
|
12
|
+
export function findHaibunWorkspace(featurePath, fs = nodeFS) {
|
|
13
|
+
// Normalize path
|
|
14
|
+
const normalized = path.normalize(featurePath);
|
|
15
|
+
const parts = normalized.split(path.sep);
|
|
16
|
+
// Find the 'features' or 'backgrounds' segment in the path
|
|
17
|
+
let featuresIndex = -1;
|
|
18
|
+
for (let i = parts.length - 1; i >= 0; i--) {
|
|
19
|
+
if (parts[i] === 'features' || parts[i] === 'backgrounds') {
|
|
20
|
+
featuresIndex = i;
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (featuresIndex < 0) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
// Base is the parent of features/
|
|
28
|
+
const baseParts = parts.slice(0, featuresIndex);
|
|
29
|
+
const base = baseParts.join(path.sep) || path.sep;
|
|
30
|
+
// Check for config.json at base level
|
|
31
|
+
const configPath = path.join(base, 'config.json');
|
|
32
|
+
const hasConfig = fs.existsSync(configPath);
|
|
33
|
+
// Check for backgrounds/ at base level
|
|
34
|
+
const backgroundsPath = path.join(base, 'backgrounds');
|
|
35
|
+
const hasBackgrounds = fs.existsSync(backgroundsPath);
|
|
36
|
+
return {
|
|
37
|
+
base,
|
|
38
|
+
configPath: hasConfig ? configPath : null,
|
|
39
|
+
backgroundsPath: hasBackgrounds ? backgroundsPath : null,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Recursively find all .feature files in a directory
|
|
44
|
+
*/
|
|
45
|
+
export async function findFeatureFiles(dir, fs = nodeFS) {
|
|
46
|
+
const results = [];
|
|
47
|
+
if (!fs.existsSync(dir))
|
|
48
|
+
return results;
|
|
49
|
+
async function recurse(currentDir) {
|
|
50
|
+
const entries = fs.readdirSync(currentDir);
|
|
51
|
+
for (const entry of entries) {
|
|
52
|
+
const fullPath = path.join(currentDir, entry);
|
|
53
|
+
const stat = fs.statSync(fullPath);
|
|
54
|
+
if (stat.isDirectory()) {
|
|
55
|
+
await recurse(fullPath);
|
|
56
|
+
}
|
|
57
|
+
else if (entry.endsWith('.feature')) {
|
|
58
|
+
results.push(fullPath);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
await recurse(dir);
|
|
63
|
+
return results;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Count features in the workspace (base/features)
|
|
67
|
+
*/
|
|
68
|
+
export async function countFeatures(base, fs = nodeFS) {
|
|
69
|
+
const featuresPath = path.join(base, 'features');
|
|
70
|
+
const files = await findFeatureFiles(featuresPath, fs);
|
|
71
|
+
return files.length;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Load all background files from a backgrounds directory
|
|
75
|
+
*/
|
|
76
|
+
export async function loadBackgroundsFromPath(backgroundsPath, fs = nodeFS) {
|
|
77
|
+
const backgrounds = [];
|
|
78
|
+
if (!fs.existsSync(backgroundsPath)) {
|
|
79
|
+
return backgrounds;
|
|
80
|
+
}
|
|
81
|
+
const base = path.dirname(backgroundsPath);
|
|
82
|
+
const files = await findFeatureFiles(backgroundsPath, fs);
|
|
83
|
+
for (const fullPath of files) {
|
|
84
|
+
const content = fs.readFileSync(fullPath, 'utf-8');
|
|
85
|
+
const relativePath = fullPath.replace(base, '');
|
|
86
|
+
const name = path.basename(fullPath, '.feature');
|
|
87
|
+
backgrounds.push({
|
|
88
|
+
path: relativePath,
|
|
89
|
+
content,
|
|
90
|
+
name,
|
|
91
|
+
base,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
return backgrounds;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=workspace-discovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-discovery.js","sourceRoot":"","sources":["../../src/lib/workspace-discovery.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,IAAI,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AAYxB;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CACjC,WAAmB,EACnB,KAAkB,MAAM;IAExB,iBAAiB;IACjB,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEzC,2DAA2D;IAC3D,IAAI,aAAa,GAAG,CAAC,CAAC,CAAC;IACvB,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC3C,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,UAAU,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,aAAa,EAAE,CAAC;YAC1D,aAAa,GAAG,CAAC,CAAC;YAClB,MAAM;QACR,CAAC;IACH,CAAC;IAED,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kC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ACjD,WAAW,CAAC,IAAI,CAAC;YACf,IAAI,EAAE,YAAY;YAClB,OAAO;YACP,IAAI;YACJ,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
package/build/monitor/index.d.ts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Monitor utilities for Haibun.
|
|
3
|
-
* This module is browser-safe - all imports are from browser-compatible sources.
|
|
4
|
-
*/
|
|
5
|
-
export { EventFormatter, type TIndication } from './formatters.js';
|
|
6
|
-
export { JITSerializer } from './jit-serialization.js';
|
|
7
|
-
export { Timer } from './timer.js';
|
|
8
|
-
export { CHECK_YES, CHECK_NO, MAYBE_CHECK_YES, MAYBE_CHECK_NO } from './constants.js';
|
|
9
|
-
export { type THaibunEvent, type TArtifactEvent, type TImageArtifact, type TVideoArtifact, type THtmlArtifact, type TSpeechArtifact, type TJsonArtifact, type TMermaidArtifact, type THttpTraceArtifact, type TResolvedFeaturesArtifact, type TFileArtifact, } from '../schema/events.js';
|
|
10
|
-
export { LOG_LEVEL_NONE, LOG_LEVEL_DEBUG, LOG_LEVEL_TRACE, LOG_LEVEL_LOG, LOG_LEVEL_INFO, LOG_LEVEL_WARN, LOG_LEVEL_ERROR, LOG_LEVELS, type TLogLevel, type TLogArgs, EExecutionMessageType, type TMessageContext, type TArtifact, type TArtifactSpeech, type TArtifactVideo, type TArtifactVideoStart, type TArtifactImage, type TArtifactHTML, type TArtifactJSON, type TArtifactHTTPTrace, type TArtifactResolvedFeatures, type RegisteredOutcomeEntry, type TArtifactType, type THTTPTraceContent, type TPrompt, } from './monitor-types.js';
|
|
1
|
+
export { type THaibunEvent, type TArtifactEvent, type TImageArtifact, type TVideoArtifact, type THtmlArtifact, type TSpeechArtifact, type TJsonArtifact, type TMermaidArtifact, type THttpTraceArtifact, type TResolvedFeaturesArtifact, type TFileArtifact, type TRegisteredOutcomeEntry, type TPrompt, type THaibunLogLevel, type TIndication, HAIBUN_LOG_LEVELS, CHECK_YES, CHECK_NO, CHECK_YIELD, MAYBE_CHECK_YES, MAYBE_CHECK_NO, Timer, JITSerializer, EventFormatter, shortenURI, } from '../schema/protocol.js';
|
|
11
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/monitor/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/monitor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,WAAW,EACX,eAAe,EACf,cAAc,EACd,KAAK,EACL,aAAa,EACb,cAAc,EACd,UAAU,GACX,MAAM,uBAAuB,CAAC"}
|
package/build/monitor/index.js
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Monitor utilities for Haibun.
|
|
3
|
-
* This module is browser-safe - all imports are from browser-compatible sources.
|
|
4
|
-
*/
|
|
5
|
-
export { EventFormatter } from './formatters.js';
|
|
6
|
-
export { JITSerializer } from './jit-serialization.js';
|
|
7
|
-
export { Timer } from './timer.js';
|
|
8
|
-
export { CHECK_YES, CHECK_NO, MAYBE_CHECK_YES, MAYBE_CHECK_NO } from './constants.js';
|
|
9
|
-
// Re-export browser-safe types from monitor-types
|
|
10
|
-
export {
|
|
11
|
-
// Log levels
|
|
12
|
-
LOG_LEVEL_NONE, LOG_LEVEL_DEBUG, LOG_LEVEL_TRACE, LOG_LEVEL_LOG, LOG_LEVEL_INFO, LOG_LEVEL_WARN, LOG_LEVEL_ERROR, LOG_LEVELS,
|
|
13
|
-
// Execution message types
|
|
14
|
-
EExecutionMessageType, } from './monitor-types.js';
|
|
1
|
+
export { HAIBUN_LOG_LEVELS, CHECK_YES, CHECK_NO, CHECK_YIELD, MAYBE_CHECK_YES, MAYBE_CHECK_NO, Timer, JITSerializer, EventFormatter, shortenURI, } from '../schema/protocol.js';
|
|
15
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/monitor/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/monitor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAgBL,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,WAAW,EACX,eAAe,EACf,cAAc,EACd,KAAK,EACL,aAAa,EACb,cAAc,EACd,UAAU,GACX,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { TFeatureStep, TResolvedFeature,
|
|
2
|
-
import {
|
|
1
|
+
import { TFeatureStep, TResolvedFeature, TWorld, TStepAction, ExecMode } from '../lib/defs.js';
|
|
2
|
+
import { TExecutorResult, TStepResult, TFeatureResult, TActionResult, TStepArgs, TSeqPath } from '../schema/protocol.js';
|
|
3
3
|
import { AStepper } from '../lib/astepper.js';
|
|
4
|
-
import { EExecutionMessageType, TMessageContext } from '../lib/interfaces/logger.js';
|
|
5
|
-
export declare const endExecutonContext: TMessageContext;
|
|
6
4
|
export declare class Executor {
|
|
7
5
|
private static createExecutionFailure;
|
|
8
6
|
static action(steppers: AStepper[], featureStep: TFeatureStep, found: TStepAction, args: TStepArgs, world: TWorld): Promise<TActionResult>;
|
|
@@ -11,14 +9,8 @@ export declare class Executor {
|
|
|
11
9
|
export declare class FeatureExecutor {
|
|
12
10
|
private steppers;
|
|
13
11
|
private world;
|
|
14
|
-
private logit;
|
|
15
12
|
private startOffset;
|
|
16
|
-
constructor(steppers: AStepper[], world: TWorld,
|
|
17
|
-
incident: EExecutionMessageType;
|
|
18
|
-
artifact?: T;
|
|
19
|
-
incidentDetails?: TAnyFixme;
|
|
20
|
-
}, level?: import("../lib/interfaces/logger.js").TLogLevel) => void, startOffset?: number);
|
|
21
|
-
private static formatStepLogMessage;
|
|
13
|
+
constructor(steppers: AStepper[], world: TWorld, startOffset?: number);
|
|
22
14
|
doFeature(feature: TResolvedFeature): Promise<TFeatureResult>;
|
|
23
15
|
static doFeatureStep(steppers: AStepper[], featureStep: TFeatureStep, world: TWorld, execMode?: ExecMode): Promise<TStepResult>;
|
|
24
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Executor.d.ts","sourceRoot":"","sources":["../../src/phases/Executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"Executor.d.ts","sourceRoot":"","sources":["../../src/phases/Executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAA2E,QAAQ,EAAoB,MAAM,gBAAgB,CAAC;AAC1L,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAiI,SAAS,EAAmC,QAAQ,EAAwB,MAAM,uBAAuB,CAAC;AAE/S,OAAO,EAAE,QAAQ,EAAc,MAAM,oBAAoB,CAAC;AAyB1D,qBAAa,QAAQ;IACpB,OAAO,CAAC,MAAM,CAAC,sBAAsB;WA8BxB,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM;WAyB1G,eAAe,CAAC,QAAQ,EAAE,QAAQ,EAAE,E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