footprintjs 14.1.0 → 14.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/AGENTS.md +1 -0
- package/README.md +2 -0
- package/dist/declared-attempts.js +34 -0
- package/dist/esm/declared-attempts.d.ts +4 -0
- package/dist/esm/declared-attempts.js +30 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +5 -1
- package/dist/esm/lib/attempt/decision.d.ts +4 -4
- package/dist/esm/lib/attempt/decision.js +8 -86
- package/dist/esm/lib/attempt/declared.d.ts +9 -0
- package/dist/esm/lib/attempt/declared.js +153 -0
- package/dist/esm/lib/attempt/evidence.d.ts +2 -0
- package/dist/esm/lib/attempt/evidence.js +11 -1
- package/dist/esm/lib/attempt/outsideInputNames.d.ts +4 -0
- package/dist/esm/lib/attempt/outsideInputNames.js +54 -0
- package/dist/esm/lib/attempt/runner.js +5 -5
- package/dist/esm/lib/attempt/types.d.ts +36 -0
- package/dist/esm/lib/attempt/types.js +1 -1
- package/dist/esm/lib/builder/FlowChartBuilder.d.ts +27 -42
- package/dist/esm/lib/builder/FlowChartBuilder.js +45 -60
- package/dist/esm/lib/builder/namedDeclarations.d.ts +22 -0
- package/dist/esm/lib/builder/namedDeclarations.js +69 -0
- package/dist/esm/lib/builder/types.d.ts +8 -0
- package/dist/esm/lib/builder/types.js +1 -1
- package/dist/esm/lib/decide/decide.js +12 -73
- package/dist/esm/lib/decide/fromFacts.d.ts +75 -0
- package/dist/esm/lib/decide/fromFacts.js +114 -0
- package/dist/esm/lib/decide/index.d.ts +6 -1
- package/dist/esm/lib/decide/index.js +5 -2
- package/dist/esm/lib/decide/record.d.ts +81 -0
- package/dist/esm/lib/decide/record.js +83 -0
- package/dist/esm/lib/engine/executionResults.d.ts +21 -0
- package/dist/esm/lib/engine/executionResults.js +2 -0
- package/dist/esm/lib/engine/graph/StageNode.d.ts +4 -0
- package/dist/esm/lib/engine/graph/StageNode.js +26 -1
- package/dist/esm/lib/engine/graph/prefixNodeTree.d.ts +1 -1
- package/dist/esm/lib/engine/graph/prefixNodeTree.js +3 -2
- package/dist/esm/lib/engine/handlers/NodeResolver.d.ts +1 -1
- package/dist/esm/lib/engine/handlers/NodeResolver.js +9 -9
- package/dist/esm/lib/engine/handlers/ParallelForEachHandler.d.ts +1 -1
- package/dist/esm/lib/engine/handlers/ParallelForEachHandler.js +6 -6
- package/dist/esm/lib/engine/handlers/ResumeEntry.d.ts +1 -1
- package/dist/esm/lib/engine/handlers/ResumeEntry.js +7 -3
- package/dist/esm/lib/engine/handlers/RuntimeStructureManager.js +5 -1
- package/dist/esm/lib/engine/handlers/StageRunner.js +3 -1
- package/dist/esm/lib/engine/handlers/SubflowExecutor.d.ts +1 -1
- package/dist/esm/lib/engine/handlers/SubflowExecutor.js +4 -5
- package/dist/esm/lib/engine/narrative/CombinedNarrativeRecorder.d.ts +1 -1
- package/dist/esm/lib/engine/traversal/FlowchartTraverser.js +7 -12
- package/dist/esm/lib/engine/traversal/continuationHop.d.ts +41 -0
- package/dist/esm/lib/engine/traversal/continuationHop.js +10 -0
- package/dist/esm/lib/engine/types.d.ts +7 -21
- package/dist/esm/lib/engine/types.js +2 -2
- package/dist/esm/lib/filter/firstMatch.d.ts +98 -0
- package/dist/esm/lib/filter/firstMatch.js +174 -0
- package/dist/esm/lib/memory/StageContext.d.ts +12 -13
- package/dist/esm/lib/memory/StageContext.js +82 -129
- package/dist/esm/lib/memory/stageCallLifetime.d.ts +8 -0
- package/dist/esm/lib/memory/stageCallLifetime.js +26 -0
- package/dist/esm/lib/memory/stageOutsideInputs.d.ts +9 -0
- package/dist/esm/lib/memory/stageOutsideInputs.js +54 -0
- package/dist/esm/lib/memory/stageSnapshot.d.ts +49 -0
- package/dist/esm/lib/memory/stageSnapshot.js +100 -0
- package/dist/esm/lib/recorder/AttemptRecorder.d.ts +82 -0
- package/dist/esm/lib/recorder/AttemptRecorder.js +24 -7
- package/dist/esm/lib/recorder/attemptMetricRows.js +22 -1
- package/dist/esm/lib/recorder/attemptMetrics.d.ts +4 -1
- package/dist/esm/lib/recorder/attemptMetrics.js +19 -6
- package/dist/esm/lib/recorder/attemptMetricsTypes.d.ts +5 -0
- package/dist/esm/lib/recorder/attemptMetricsTypes.js +1 -1
- package/dist/esm/lib/recorder/attemptOTel.js +22 -12
- package/dist/esm/lib/runner/RunnableChart.d.ts +2 -1
- package/dist/esm/lib/runner/RunnableChart.js +29 -20
- package/dist/esm/lib/runner/describeChart.d.ts +25 -0
- package/dist/esm/lib/runner/describeChart.js +145 -0
- package/dist/esm/lib/runner/resume.js +4 -2
- package/dist/esm/lib/scope/ScopeFacade.d.ts +8 -2
- package/dist/esm/lib/scope/ScopeFacade.js +30 -15
- package/dist/esm/lib/sinks/fileSink.d.ts +17 -1
- package/dist/esm/lib/sinks/fileSink.js +136 -67
- package/dist/esm/lib/sinks/indexedAdmission.d.ts +6 -1
- package/dist/esm/lib/sinks/indexedAdmission.js +30 -7
- package/dist/esm/lib/sinks/indexedIO.js +4 -2
- package/dist/esm/lib/sinks/indexedRecordFile.js +29 -108
- package/dist/esm/lib/sinks/indexedScan.js +3 -9
- package/dist/esm/lib/sinks/indexedSession.d.ts +29 -0
- package/dist/esm/lib/sinks/indexedSession.js +105 -0
- package/dist/esm/lib/sinks/publishedRecordFile.d.ts +40 -0
- package/dist/esm/lib/sinks/publishedRecordFile.js +106 -0
- package/dist/esm/lib/sinks/publishedRecordIndex.d.ts +8 -0
- package/dist/esm/lib/sinks/publishedRecordIndex.js +98 -0
- package/dist/esm/lib/sinks/publishedRecordRows.d.ts +13 -0
- package/dist/esm/lib/sinks/publishedRecordRows.js +188 -0
- package/dist/esm/lib/sinks/publishedRecordSelection.d.ts +21 -0
- package/dist/esm/lib/sinks/publishedRecordSelection.js +69 -0
- package/dist/esm/lib/sinks/publishedRecordWriter.d.ts +49 -0
- package/dist/esm/lib/sinks/publishedRecordWriter.js +237 -0
- package/dist/esm/sinks.d.ts +5 -0
- package/dist/esm/sinks.js +3 -1
- package/dist/index.js +72 -63
- package/dist/lib/attempt/decision.js +8 -86
- package/dist/lib/attempt/declared.js +158 -0
- package/dist/lib/attempt/evidence.js +13 -2
- package/dist/lib/attempt/outsideInputNames.js +59 -0
- package/dist/lib/attempt/runner.js +5 -5
- package/dist/lib/attempt/types.js +1 -1
- package/dist/lib/builder/FlowChartBuilder.js +59 -74
- package/dist/lib/builder/namedDeclarations.js +74 -0
- package/dist/lib/builder/types.js +1 -1
- package/dist/lib/decide/decide.js +12 -73
- package/dist/lib/decide/fromFacts.js +118 -0
- package/dist/lib/decide/index.js +9 -3
- package/dist/lib/decide/record.js +88 -0
- package/dist/lib/engine/executionResults.js +3 -0
- package/dist/lib/engine/graph/StageNode.js +28 -2
- package/dist/lib/engine/graph/prefixNodeTree.js +3 -2
- package/dist/lib/engine/handlers/NodeResolver.js +9 -9
- package/dist/lib/engine/handlers/ParallelForEachHandler.js +6 -6
- package/dist/lib/engine/handlers/ResumeEntry.js +7 -3
- package/dist/lib/engine/handlers/RuntimeStructureManager.js +5 -1
- package/dist/lib/engine/handlers/StageRunner.js +3 -1
- package/dist/lib/engine/handlers/SubflowExecutor.js +4 -5
- package/dist/lib/engine/traversal/FlowchartTraverser.js +10 -15
- package/dist/lib/engine/traversal/continuationHop.js +14 -0
- package/dist/lib/engine/types.js +2 -2
- package/dist/lib/filter/firstMatch.js +182 -0
- package/dist/lib/memory/StageContext.js +97 -144
- package/dist/lib/memory/stageCallLifetime.js +31 -0
- package/dist/lib/memory/stageOutsideInputs.js +62 -0
- package/dist/lib/memory/stageSnapshot.js +105 -0
- package/dist/lib/recorder/AttemptRecorder.js +23 -6
- package/dist/lib/recorder/attemptMetricRows.js +22 -1
- package/dist/lib/recorder/attemptMetrics.js +22 -7
- package/dist/lib/recorder/attemptMetricsTypes.js +1 -1
- package/dist/lib/recorder/attemptOTel.js +21 -11
- package/dist/lib/runner/RunnableChart.js +29 -20
- package/dist/lib/runner/describeChart.js +150 -0
- package/dist/lib/runner/resume.js +4 -2
- package/dist/lib/scope/ScopeFacade.js +29 -14
- package/dist/lib/sinks/fileSink.js +140 -68
- package/dist/lib/sinks/indexedAdmission.js +34 -8
- package/dist/lib/sinks/indexedIO.js +4 -2
- package/dist/lib/sinks/indexedRecordFile.js +28 -107
- package/dist/lib/sinks/indexedScan.js +2 -8
- package/dist/lib/sinks/indexedSession.js +109 -0
- package/dist/lib/sinks/publishedRecordFile.js +110 -0
- package/dist/lib/sinks/publishedRecordIndex.js +103 -0
- package/dist/lib/sinks/publishedRecordRows.js +192 -0
- package/dist/lib/sinks/publishedRecordSelection.js +75 -0
- package/dist/lib/sinks/publishedRecordWriter.js +241 -0
- package/dist/sinks.js +6 -2
- package/dist/types/declared-attempts.d.ts +4 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/lib/attempt/decision.d.ts +4 -4
- package/dist/types/lib/attempt/declared.d.ts +9 -0
- package/dist/types/lib/attempt/evidence.d.ts +2 -0
- package/dist/types/lib/attempt/outsideInputNames.d.ts +4 -0
- package/dist/types/lib/attempt/types.d.ts +36 -0
- package/dist/types/lib/builder/FlowChartBuilder.d.ts +27 -42
- package/dist/types/lib/builder/namedDeclarations.d.ts +22 -0
- package/dist/types/lib/builder/types.d.ts +8 -0
- package/dist/types/lib/decide/fromFacts.d.ts +75 -0
- package/dist/types/lib/decide/index.d.ts +6 -1
- package/dist/types/lib/decide/record.d.ts +81 -0
- package/dist/types/lib/engine/executionResults.d.ts +21 -0
- package/dist/types/lib/engine/graph/StageNode.d.ts +4 -0
- package/dist/types/lib/engine/graph/prefixNodeTree.d.ts +1 -1
- package/dist/types/lib/engine/handlers/NodeResolver.d.ts +1 -1
- package/dist/types/lib/engine/handlers/ParallelForEachHandler.d.ts +1 -1
- package/dist/types/lib/engine/handlers/ResumeEntry.d.ts +1 -1
- package/dist/types/lib/engine/handlers/SubflowExecutor.d.ts +1 -1
- package/dist/types/lib/engine/narrative/CombinedNarrativeRecorder.d.ts +1 -1
- package/dist/types/lib/engine/traversal/continuationHop.d.ts +41 -0
- package/dist/types/lib/engine/types.d.ts +7 -21
- package/dist/types/lib/filter/firstMatch.d.ts +98 -0
- package/dist/types/lib/memory/StageContext.d.ts +12 -13
- package/dist/types/lib/memory/stageCallLifetime.d.ts +8 -0
- package/dist/types/lib/memory/stageOutsideInputs.d.ts +9 -0
- package/dist/types/lib/memory/stageSnapshot.d.ts +49 -0
- package/dist/types/lib/recorder/AttemptRecorder.d.ts +82 -0
- package/dist/types/lib/recorder/attemptMetrics.d.ts +4 -1
- package/dist/types/lib/recorder/attemptMetricsTypes.d.ts +5 -0
- package/dist/types/lib/runner/RunnableChart.d.ts +2 -1
- package/dist/types/lib/runner/describeChart.d.ts +25 -0
- package/dist/types/lib/scope/ScopeFacade.d.ts +8 -2
- package/dist/types/lib/sinks/fileSink.d.ts +17 -1
- package/dist/types/lib/sinks/indexedAdmission.d.ts +6 -1
- package/dist/types/lib/sinks/indexedSession.d.ts +29 -0
- package/dist/types/lib/sinks/publishedRecordFile.d.ts +40 -0
- package/dist/types/lib/sinks/publishedRecordIndex.d.ts +8 -0
- package/dist/types/lib/sinks/publishedRecordRows.d.ts +13 -0
- package/dist/types/lib/sinks/publishedRecordSelection.d.ts +21 -0
- package/dist/types/lib/sinks/publishedRecordWriter.d.ts +49 -0
- package/dist/types/sinks.d.ts +5 -0
- package/package.json +17 -3
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { AttemptRecord, AttemptSummary, LateWrite } from '../attempt/types.js';
|
|
2
|
+
import { type SourceReadCounter } from '../capture/sourceReadCounts.js';
|
|
3
|
+
import type { StageAttention } from './attention.js';
|
|
4
|
+
import type { DiagnosticCollector } from './DiagnosticCollector.js';
|
|
5
|
+
import type { StageSnapshot } from './frameTypes.js';
|
|
6
|
+
import type { RedactionRule } from './redaction.js';
|
|
7
|
+
type SnapshotFrame = {
|
|
8
|
+
readonly stageId: string;
|
|
9
|
+
readonly runtimeStageId: string;
|
|
10
|
+
readonly stageName: string;
|
|
11
|
+
readonly isDecider: boolean;
|
|
12
|
+
readonly isFork: boolean;
|
|
13
|
+
readonly description?: string;
|
|
14
|
+
readonly subflowId?: string;
|
|
15
|
+
readonly debug: Pick<DiagnosticCollector, 'logContext' | 'errorContext' | 'metricContext' | 'evalContext' | 'flowMessages'>;
|
|
16
|
+
readonly readSources?: {
|
|
17
|
+
readonly observing: boolean;
|
|
18
|
+
};
|
|
19
|
+
readonly captureClosureTracking?: boolean;
|
|
20
|
+
};
|
|
21
|
+
type SnapshotLinks<Frame> = {
|
|
22
|
+
readonly next?: Frame;
|
|
23
|
+
readonly children?: readonly Frame[];
|
|
24
|
+
};
|
|
25
|
+
/** Read retained frame data at the point it is used, including through pending-write projection. */
|
|
26
|
+
export type StageSnapshotInputs<Frame> = {
|
|
27
|
+
sourceReadCounter(frame: Frame): Pick<SourceReadCounter, 'snapshot'> | undefined;
|
|
28
|
+
sourceInvocations(frame: Frame): number;
|
|
29
|
+
closureInvocations(frame: Frame): {
|
|
30
|
+
readonly count: number;
|
|
31
|
+
} | undefined;
|
|
32
|
+
retainedWrites(frame: Frame): Readonly<Record<string, {
|
|
33
|
+
readonly value: unknown;
|
|
34
|
+
}>>;
|
|
35
|
+
stageReads(frame: Frame): Readonly<Record<string, unknown>>;
|
|
36
|
+
unsetNestedReads(frame: Frame): ReadonlyMap<string, {
|
|
37
|
+
readonly path: readonly string[];
|
|
38
|
+
readonly key: string;
|
|
39
|
+
}> | undefined;
|
|
40
|
+
attempts(frame: Frame): readonly AttemptRecord[] | undefined;
|
|
41
|
+
attemptSummary(frame: Frame): AttemptSummary | undefined;
|
|
42
|
+
lateWrites(frame: Frame): readonly LateWrite[] | undefined;
|
|
43
|
+
attemptsDropped(frame: Frame): number;
|
|
44
|
+
attention(frame: Frame): Pick<StageAttention, 'snapshot'> | undefined;
|
|
45
|
+
};
|
|
46
|
+
export declare function buildStageSnapshotTree<Frame extends SnapshotLinks<Frame>>(rootFrame: Frame, redaction: RedactionRule | undefined, project: (frame: Frame, rule: RedactionRule | undefined) => StageSnapshot): StageSnapshot;
|
|
47
|
+
/** This frame's fields, before the execution walk links its successors. */
|
|
48
|
+
export declare function buildStageSnapshot<Frame extends SnapshotFrame>(frame: Frame, inputs: StageSnapshotInputs<Frame>, rule: RedactionRule | undefined): StageSnapshot;
|
|
49
|
+
export {};
|
|
@@ -34,6 +34,7 @@ export declare class AttemptRecorder implements FlowRecorder {
|
|
|
34
34
|
decisions: AttemptDecisionRow[];
|
|
35
35
|
};
|
|
36
36
|
aggregate(supplied?: AttemptQuery): Promise<AttemptAggregate>;
|
|
37
|
+
private readAggregate;
|
|
37
38
|
private readStored;
|
|
38
39
|
toSnapshot(): {
|
|
39
40
|
name: string;
|
|
@@ -127,6 +128,87 @@ export declare class AttemptRecorder implements FlowRecorder {
|
|
|
127
128
|
}[];
|
|
128
129
|
}[];
|
|
129
130
|
};
|
|
131
|
+
/** Export admitted OTLP metrics and their storage accounting after reload. */
|
|
132
|
+
toStoredOTel(supplied?: AttemptQuery): Promise<{
|
|
133
|
+
metrics: {
|
|
134
|
+
resourceMetrics: {
|
|
135
|
+
resource: {
|
|
136
|
+
attributes: never[];
|
|
137
|
+
};
|
|
138
|
+
scopeMetrics: {
|
|
139
|
+
scope: {
|
|
140
|
+
name: string;
|
|
141
|
+
};
|
|
142
|
+
metrics: ({
|
|
143
|
+
name: string;
|
|
144
|
+
unit: string;
|
|
145
|
+
description: string;
|
|
146
|
+
histogram: {
|
|
147
|
+
aggregationTemporality: number;
|
|
148
|
+
dataPoints: {
|
|
149
|
+
attributes: {
|
|
150
|
+
key: string;
|
|
151
|
+
value: {
|
|
152
|
+
stringValue: string;
|
|
153
|
+
};
|
|
154
|
+
}[];
|
|
155
|
+
startTimeUnixNano: string;
|
|
156
|
+
timeUnixNano: string;
|
|
157
|
+
count: string;
|
|
158
|
+
sum: number;
|
|
159
|
+
explicitBounds: number[];
|
|
160
|
+
bucketCounts: string[];
|
|
161
|
+
exemplars: {
|
|
162
|
+
traceId?: string | undefined;
|
|
163
|
+
asDouble: number;
|
|
164
|
+
timeUnixNano: string;
|
|
165
|
+
filteredAttributes: {
|
|
166
|
+
key: string;
|
|
167
|
+
value: {
|
|
168
|
+
stringValue: string;
|
|
169
|
+
};
|
|
170
|
+
}[];
|
|
171
|
+
}[];
|
|
172
|
+
}[];
|
|
173
|
+
};
|
|
174
|
+
sum?: undefined;
|
|
175
|
+
} | {
|
|
176
|
+
name: string;
|
|
177
|
+
unit: string;
|
|
178
|
+
sum: {
|
|
179
|
+
aggregationTemporality: number;
|
|
180
|
+
isMonotonic: boolean;
|
|
181
|
+
dataPoints: {
|
|
182
|
+
attributes: {
|
|
183
|
+
key: string;
|
|
184
|
+
value: {
|
|
185
|
+
stringValue: string;
|
|
186
|
+
};
|
|
187
|
+
}[];
|
|
188
|
+
startTimeUnixNano: string;
|
|
189
|
+
timeUnixNano: string;
|
|
190
|
+
asDouble: number;
|
|
191
|
+
exemplars: {
|
|
192
|
+
asDouble: number;
|
|
193
|
+
traceId?: string | undefined;
|
|
194
|
+
timeUnixNano: string;
|
|
195
|
+
filteredAttributes: {
|
|
196
|
+
key: string;
|
|
197
|
+
value: {
|
|
198
|
+
stringValue: string;
|
|
199
|
+
};
|
|
200
|
+
}[];
|
|
201
|
+
}[];
|
|
202
|
+
}[];
|
|
203
|
+
};
|
|
204
|
+
description?: undefined;
|
|
205
|
+
histogram?: undefined;
|
|
206
|
+
})[];
|
|
207
|
+
}[];
|
|
208
|
+
}[];
|
|
209
|
+
};
|
|
210
|
+
storage: AttemptStorageStats;
|
|
211
|
+
}>;
|
|
130
212
|
/** Clear completed local projections; active/paused evidence and bounded ownership survive executor auto-clear. */
|
|
131
213
|
clear(): void;
|
|
132
214
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import type { AttemptAggregate, AttemptMetricRef, AttemptRow, AttemptStorageStats, PhysicalAttemptRow } from './attemptMetricsTypes.js';
|
|
1
|
+
import type { AttemptAggregate, AttemptFailureProvenance, AttemptMetricRef, AttemptRow, AttemptStorageStats, PhysicalAttemptRow } from './attemptMetricsTypes.js';
|
|
2
2
|
export declare const attemptRowKey: (row: AttemptRow) => string;
|
|
3
3
|
export declare const logicalKey: (runId: string, series: string, attempt: number) => string;
|
|
4
4
|
export declare const seriesKey: (runId: string, series: string) => string;
|
|
5
|
+
export declare const latestAttemptRows: (rows: readonly AttemptRow[]) => AttemptRow[];
|
|
6
|
+
/** A legacy category is usable, but its origin was never recorded. */
|
|
7
|
+
export declare function failureProvenance(row: PhysicalAttemptRow): AttemptFailureProvenance | undefined;
|
|
5
8
|
export declare function reference(row: PhysicalAttemptRow): AttemptMetricRef;
|
|
6
9
|
export declare function worst(rows: readonly PhysicalAttemptRow[], limit: number): AttemptMetricRef[];
|
|
7
10
|
export declare function aggregateAttempts(rows: readonly AttemptRow[], exemplars: number, storage: AttemptStorageStats): AttemptAggregate;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import type { AttemptId } from 'foottrace';
|
|
3
3
|
import type { RetryLoopCall, RetryLoopDecision } from '../attempt/retryLoopTypes.js';
|
|
4
4
|
import type { AttemptCategory, AttemptEffect, AttemptKind, AttemptNext, AttemptOutcome, AttemptReason } from '../attempt/types.js';
|
|
5
|
+
/** How the recorded failure category was obtained. Older rows may lack this fact. */
|
|
6
|
+
export type AttemptFailureProvenance = 'declared' | 'classified' | 'unknown';
|
|
5
7
|
export interface AttemptMetricRef {
|
|
6
8
|
readonly id: AttemptId;
|
|
7
9
|
readonly series: string;
|
|
@@ -15,6 +17,7 @@ export interface AttemptMetricRef {
|
|
|
15
17
|
readonly durationMs: number;
|
|
16
18
|
readonly outcome: AttemptOutcome;
|
|
17
19
|
readonly category?: AttemptCategory;
|
|
20
|
+
readonly provenance?: AttemptFailureProvenance;
|
|
18
21
|
readonly next: AttemptNext;
|
|
19
22
|
readonly reason: AttemptReason;
|
|
20
23
|
}
|
|
@@ -69,6 +72,8 @@ export interface AttemptStats {
|
|
|
69
72
|
readonly byKind: Record<AttemptKind, number>;
|
|
70
73
|
readonly byOutcome: Record<AttemptOutcome, number>;
|
|
71
74
|
readonly byCategory: Record<AttemptCategory, number>;
|
|
75
|
+
/** A breakdown for each category present in the result. */
|
|
76
|
+
readonly byCategoryProvenance: Readonly<Partial<Record<AttemptCategory, Readonly<Record<AttemptFailureProvenance, number>>>>>;
|
|
72
77
|
readonly retries: number;
|
|
73
78
|
readonly seriesRetried: number;
|
|
74
79
|
readonly gaveUp: number;
|
|
@@ -63,7 +63,8 @@ export interface RunnableFlowChart<TOut = any, TScope = any> extends FlowChart<T
|
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* Draw the default `flowchart TD` from a chart root. Declare each node once and draw every edge.
|
|
66
|
-
* A loop-reference stub
|
|
66
|
+
* A loop-reference stub points to the first placement of its target ID, as the engine's loop lookup does.
|
|
67
|
+
* Labels escape quotes as `#quot;`.
|
|
67
68
|
* IDs use `[A-Za-z0-9_]`; collisions get `_2`, `_3`, and so on in encounter order.
|
|
68
69
|
*/
|
|
69
70
|
export declare function chartToMermaid(root: StageNode): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FlowChart } from '../builder/types.js';
|
|
2
|
+
import type { RunnableFlowChart } from './RunnableChart.js';
|
|
3
|
+
/** One declared subflow placement, with a chart-local path suitable for a documentation index. */
|
|
4
|
+
export interface ChartMount {
|
|
5
|
+
readonly subflowId: string;
|
|
6
|
+
readonly subflowName: string;
|
|
7
|
+
/** Slash-separated mount IDs from the chart being described. */
|
|
8
|
+
readonly subflowPath: string;
|
|
9
|
+
readonly isLazy: boolean;
|
|
10
|
+
/** Entry stage of an eagerly mounted chart, when its structure is present. */
|
|
11
|
+
readonly entryStageId?: string;
|
|
12
|
+
/** Description declared on the mount or its eager entry stage. */
|
|
13
|
+
readonly description?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* List mount placements in graph order, descending into each eager mount.
|
|
17
|
+
* Lazy mounts appear without resolving them. Runtime fan-out creates its branches during a run.
|
|
18
|
+
*/
|
|
19
|
+
export declare function listMounts(chart: Pick<FlowChart, 'buildTimeStructure'>): readonly ChartMount[];
|
|
20
|
+
/**
|
|
21
|
+
* Generate a Markdown README for one built chart. The drawing uses the chart's
|
|
22
|
+
* default Mermaid export. Stage and loop details describe this chart, with eager
|
|
23
|
+
* child charts represented by their mounts. No stage or lazy resolver is called.
|
|
24
|
+
*/
|
|
25
|
+
export declare function describeChart(chart: Pick<RunnableFlowChart, 'buildTimeStructure' | 'description' | 'toMermaid'>): string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DeclaredFailureOwner } from '../attempt/declared.js';
|
|
2
|
+
import type { AttemptContext, AttemptError, CallOptions, DeclaredWrite, RetryPolicy, RunCorrelation } from '../attempt/types.js';
|
|
2
3
|
import type { FlowChart } from '../builder/types.js';
|
|
3
4
|
import type { DetachDriver, DetachHandle } from '../detach/types.js';
|
|
4
5
|
import type { ExecutionEnv } from '../engine/types.js';
|
|
@@ -163,6 +164,11 @@ export declare class ScopeFacade {
|
|
|
163
164
|
* ```
|
|
164
165
|
*/
|
|
165
166
|
getAttempt(): AttemptContext;
|
|
167
|
+
/** @internal For the optional declared-attempts entry point. */
|
|
168
|
+
declaredFailureOwner(): DeclaredFailureOwner & {
|
|
169
|
+
readonly context: StageContext;
|
|
170
|
+
sealScope(): void;
|
|
171
|
+
};
|
|
166
172
|
/**
|
|
167
173
|
* A call to an outside system, made inside this stage — `scope.$call(target, fn, policy?)` (design §3.6, P2).
|
|
168
174
|
* `fn` runs on the attempt runner under `policy` (none = ONE attempt, still recorded: a single call is evidence
|
|
@@ -335,7 +341,7 @@ export declare class ScopeFacade {
|
|
|
335
341
|
getValueAt(path: string[], key?: string): unknown;
|
|
336
342
|
setValue(key: string, value: unknown, shouldRedact?: boolean, description?: string): void;
|
|
337
343
|
/** Path-aware writes share recording, redaction and lifetime policy with flat writes. */
|
|
338
|
-
setValueAt(path: string[], key: string, value: unknown, shouldRedact?: boolean, description?: string): void;
|
|
344
|
+
setValueAt(path: string[], key: string, value: unknown, shouldRedact?: boolean, description?: string, declared?: readonly DeclaredWrite[]): void;
|
|
339
345
|
updateValue(key: string, value: unknown, description?: string): void;
|
|
340
346
|
/** Path-aware merges use the same write funnel as replacements. */
|
|
341
347
|
updateValueAt(path: string[], key: string, value: unknown, description?: string): void;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
* empty object, `undefined` disappears. A record of plain JSON values reads back exactly (`readRecordFile` →
|
|
42
42
|
* `readStoredRecord`); for richer values, bring an adapter with a richer encoding.
|
|
43
43
|
*/
|
|
44
|
-
import type { RecordSink } from 'foottrace/write';
|
|
44
|
+
import type { RecordEntry, RecordSink } from 'foottrace/write';
|
|
45
45
|
import type { CaptureHistoryOptions } from '../capture/historyTypes.js';
|
|
46
46
|
/** The default cap on a record file: 64 MiB. */
|
|
47
47
|
export declare const DEFAULT_FILE_SINK_MAX_BYTES: number;
|
|
@@ -51,6 +51,8 @@ export declare const DEFAULT_FILE_SINK_MAX_ENTRY_BYTES: number;
|
|
|
51
51
|
export declare const DEFAULT_FILE_SINK_MAX_QUEUED_BYTES: number;
|
|
52
52
|
/** The default bound on `flush()`: 10 s. */
|
|
53
53
|
export declare const DEFAULT_FILE_SINK_FLUSH_TIMEOUT_MS = 10000;
|
|
54
|
+
/** How far past `maxBytes` a CLOSING entry may still go, so a full file can say how the run ended: 64 KiB. */
|
|
55
|
+
export declare const CLOSE_RESERVE_BYTES: number;
|
|
54
56
|
/** `fileSink`'s options — every resource the sink can spend, bounded. */
|
|
55
57
|
export interface FileSinkOptions {
|
|
56
58
|
/**
|
|
@@ -114,6 +116,20 @@ export interface FileSink extends RecordSink, Pick<CaptureHistoryOptions, 'ackno
|
|
|
114
116
|
* ```
|
|
115
117
|
*/
|
|
116
118
|
export declare function fileSink(path: string, options?: FileSinkOptions): FileSink;
|
|
119
|
+
/** @internal Index observation never owns the writer's descriptor. */
|
|
120
|
+
export interface FileSinkIndex {
|
|
121
|
+
write(entry: RecordEntry, offset: number, bytes: Uint8Array): () => void;
|
|
122
|
+
omit(entry: RecordEntry, reason: 'too-large' | 'unavailable'): void;
|
|
123
|
+
}
|
|
124
|
+
/** @internal An indexed writer creates a fresh file and seals it on this descriptor. */
|
|
125
|
+
export declare function createFileSink(path: string, options?: FileSinkOptions, index?: FileSinkIndex): {
|
|
126
|
+
sink: FileSink;
|
|
127
|
+
finalize: <T>(inspect: (descriptor: number) => Promise<T>) => Promise<T>;
|
|
128
|
+
};
|
|
129
|
+
/** Write all of `buffer` at `position` (asynchronously, as many writes as it takes); `wrote` is how much went out. */
|
|
130
|
+
export declare function writeAt(fd: number, buffer: Uint8Array, position: number, done: (error: Error | null, wrote: number) => void): void;
|
|
131
|
+
/** `work`, or a rejection naming the bound once `ms` passed — the work goes on, nobody waits for it. */
|
|
132
|
+
export declare function withTimeout<T>(work: Promise<T>, ms: number, message: string, abort?: () => void): Promise<T>;
|
|
117
133
|
/** A record file read back: every parsed line, and every line that could not be. */
|
|
118
134
|
export interface RecordFile {
|
|
119
135
|
/** The parsed entries, in file order — untrusted input for `readStoredRecord` (`foottrace`). */
|
|
@@ -3,11 +3,16 @@ export declare class IndexedRefusal extends Error {
|
|
|
3
3
|
readonly reason: IndexedRecordFileReason;
|
|
4
4
|
constructor(reason: IndexedRecordFileReason);
|
|
5
5
|
}
|
|
6
|
+
export declare function invalidIndexedData(): never;
|
|
7
|
+
export declare function validIndexedAudience(value: unknown): value is string;
|
|
8
|
+
export declare const MAX_PUBLISHED_VIEW_BYTES: number;
|
|
6
9
|
/** A stored line's text. Bytes that are not UTF-8 are corrupt data (`'invalid-data'`), never an I/O problem. */
|
|
7
10
|
export declare function indexedText(bytes: Uint8Array): string;
|
|
11
|
+
/** JSON syntax is an admission failure once the bytes have been read. */
|
|
12
|
+
export declare function indexedJson(text: string): unknown;
|
|
8
13
|
/** An index key, not a source-ID or record codec. Canonical record admission remains in Foottrace. */
|
|
9
14
|
export declare function indexedAddress(value: unknown): string;
|
|
10
|
-
export declare function indexedLimits(options: IndexedRecordFileOptions): IndexedLimits;
|
|
15
|
+
export declare function indexedLimits(options: IndexedRecordFileOptions, published?: boolean): IndexedLimits;
|
|
11
16
|
export declare function refused(error: unknown): {
|
|
12
17
|
readonly status: 'unknown';
|
|
13
18
|
readonly reason: IndexedRecordFileReason;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { LogAddress } from 'foottrace';
|
|
2
|
+
import { fileIdentity } from './indexedIO.js';
|
|
3
|
+
import type { IndexedLimits, IndexedRecordUnknown } from './indexedTypes.js';
|
|
4
|
+
export type IndexedFileIdentity = ReturnType<typeof fileIdentity>;
|
|
5
|
+
export type IndexedReadStats = {
|
|
6
|
+
preparationBytes: number;
|
|
7
|
+
scopeBytes: number;
|
|
8
|
+
readCalls: number;
|
|
9
|
+
};
|
|
10
|
+
export type IndexedReadContext = {
|
|
11
|
+
readonly signal?: AbortSignal;
|
|
12
|
+
};
|
|
13
|
+
/** Own one payload descriptor during preparation, reads, cancellation and close. */
|
|
14
|
+
export declare function openIndexedSession<T, R>(path: string, limits: IndexedLimits, prepare: (fd: number, identity: IndexedFileIdentity, signal: AbortSignal, stats: IndexedReadStats) => Promise<T>, reader: (fd: number, identity: string, prepared: T, session: ReturnType<typeof indexedSession>) => R): Promise<{
|
|
15
|
+
readonly status: 'ready';
|
|
16
|
+
readonly reader: R;
|
|
17
|
+
} | IndexedRecordUnknown>;
|
|
18
|
+
declare function indexedSession(fd: number, identity: string, limits: IndexedLimits, stats: IndexedReadStats): {
|
|
19
|
+
stats: () => Readonly<{
|
|
20
|
+
preparationBytes: number;
|
|
21
|
+
scopeBytes: number;
|
|
22
|
+
readCalls: number;
|
|
23
|
+
}>;
|
|
24
|
+
count: (bytes: number) => number;
|
|
25
|
+
submitted: () => number;
|
|
26
|
+
read<T>(address: LogAddress, context: IndexedReadContext | undefined, work: (key: string, signal: AbortSignal) => Promise<T>): Promise<T | IndexedRecordUnknown>;
|
|
27
|
+
close(): Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type FoldedState, type LogAddress } from 'foottrace';
|
|
2
|
+
import { type IndexedReadContext, type IndexedReadStats } from './indexedSession.js';
|
|
3
|
+
import type { IndexedRecordUnknown } from './indexedTypes.js';
|
|
4
|
+
import { type PublishedOmissionReason } from './publishedRecordRows.js';
|
|
5
|
+
import { type PublishedRecordFileOptions } from './publishedRecordSelection.js';
|
|
6
|
+
import type { PublishedRecordFile } from './publishedRecordWriter.js';
|
|
7
|
+
export interface PublishedScopeResult {
|
|
8
|
+
readonly status: 'loaded';
|
|
9
|
+
/** All selected ranges and native rows were admitted. Foottrace still owns native completion. */
|
|
10
|
+
readonly coverage: 'whole';
|
|
11
|
+
readonly entries: readonly unknown[];
|
|
12
|
+
}
|
|
13
|
+
export interface PublishedStateResult {
|
|
14
|
+
readonly status: 'loaded';
|
|
15
|
+
readonly coverage: 'prefix' | 'whole';
|
|
16
|
+
readonly state: FoldedState;
|
|
17
|
+
/** Genuine pause closing positions visible in the selected prefix. */
|
|
18
|
+
readonly pauses: readonly number[];
|
|
19
|
+
}
|
|
20
|
+
export interface PublishedRecordUnknown extends IndexedRecordUnknown {
|
|
21
|
+
/** Distinct reasons from this authorized selection. Directory positions remain private. */
|
|
22
|
+
readonly omissions?: readonly {
|
|
23
|
+
readonly reason: PublishedOmissionReason;
|
|
24
|
+
}[];
|
|
25
|
+
}
|
|
26
|
+
export interface PublishedRecordReader {
|
|
27
|
+
readScope(address: LogAddress, context?: IndexedReadContext): Promise<PublishedScopeResult | PublishedRecordUnknown>;
|
|
28
|
+
readState(address: LogAddress, throughCommit: number, context?: IndexedReadContext): Promise<PublishedStateResult | PublishedRecordUnknown>;
|
|
29
|
+
close(): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
export type PublishedRecordFileResult = {
|
|
32
|
+
readonly status: 'ready';
|
|
33
|
+
readonly reader: PublishedRecordReader;
|
|
34
|
+
/** Physical I/O is for the trusted host. Serve only results from the reader. */
|
|
35
|
+
readonly diagnostics: {
|
|
36
|
+
readonly stats: Readonly<IndexedReadStats>;
|
|
37
|
+
};
|
|
38
|
+
} | PublishedRecordUnknown;
|
|
39
|
+
/** Open an authorized local publication. The trusted host supplies the independent binding, never the sidecar. */
|
|
40
|
+
export declare function openPublishedRecordFile(dataPath: string, indexPath: string, publication: PublishedRecordFile, options: PublishedRecordFileOptions): Promise<PublishedRecordFileResult>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type PublishedRecordFile, type PublishedRecordIndex } from './publishedRecordWriter.js';
|
|
2
|
+
/** Copy the independent publication binding supplied by the authoritative host catalog. */
|
|
3
|
+
export declare function readPublication(value: PublishedRecordFile, audience: string): PublishedRecordFile;
|
|
4
|
+
/**
|
|
5
|
+
* Admit the private directory against an independently resolved publication and a pinned payload.
|
|
6
|
+
* The host authorizes its audience before calling. Selection still requires explicit scope admission.
|
|
7
|
+
*/
|
|
8
|
+
export declare function decodePublishedRecordIndex(bytes: Uint8Array, publication: PublishedRecordFile, payloadIdentity: PublishedRecordFile['payload']): PublishedRecordIndex;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RecordEntry } from 'foottrace/write';
|
|
2
|
+
import type { IndexedLimits } from './indexedTypes.js';
|
|
3
|
+
import type { PublishedRecordRange } from './publishedRecordWriter.js';
|
|
4
|
+
export type PublishedOmissionReason = 'too-large' | 'unavailable' | 'invalid-data' | 'stale';
|
|
5
|
+
type RowLimits = Pick<IndexedLimits, 'maxScopeBytes' | 'maxEntries' | 'maxEntryBytes'>;
|
|
6
|
+
export declare function readPublishedRows(fd: number, scope: string, ranges: readonly PublishedRecordRange[], limits: RowLimits, signal: AbortSignal, count: (bytes: number) => void, submitted: () => void, stopAt?: number): Promise<{
|
|
7
|
+
readonly status: 'loaded';
|
|
8
|
+
readonly rows: readonly RecordEntry[];
|
|
9
|
+
} | {
|
|
10
|
+
readonly status: 'omitted';
|
|
11
|
+
readonly reasons: readonly PublishedOmissionReason[];
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CommitRangeIndex } from 'foottrace';
|
|
2
|
+
import type { IndexedFileIdentity, IndexedReadStats } from './indexedSession.js';
|
|
3
|
+
import type { IndexedLimits, IndexedRecordFileOptions } from './indexedTypes.js';
|
|
4
|
+
import { type PublishedRecordFile, type PublishedRecordRange } from './publishedRecordWriter.js';
|
|
5
|
+
export interface PublishedRecordFileOptions extends IndexedRecordFileOptions {
|
|
6
|
+
/** The audience selected by the trusted host for this request. */
|
|
7
|
+
readonly audience: string;
|
|
8
|
+
/** Limits encoded bytes of the selected native rows. The host also caps physical I/O at 16 MiB. */
|
|
9
|
+
readonly maxScopeBytes?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface PublishedScope {
|
|
12
|
+
readonly ranges: readonly PublishedRecordRange[];
|
|
13
|
+
readonly commits: CommitRangeIndex<number>;
|
|
14
|
+
readonly rowCount: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function publishedLimits(options: PublishedRecordFileOptions): IndexedLimits & {
|
|
17
|
+
readonly audience: string;
|
|
18
|
+
};
|
|
19
|
+
export declare function readPublishedIndex(path: string, identity: IndexedFileIdentity, publication: PublishedRecordFile, limits: IndexedLimits, signal: AbortSignal, stats: IndexedReadStats): Promise<Map<string, PublishedScope>>;
|
|
20
|
+
/** Include the opening, commit prefix and eligible native closes in original producer order. */
|
|
21
|
+
export declare function prefixRanges(scope: PublishedScope, target: number): readonly PublishedRecordRange[];
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { LogAddress } from 'foottrace';
|
|
2
|
+
import { type FileSink, type FileSinkOptions } from './fileSink.js';
|
|
3
|
+
export declare const MAX_INDEX_BYTES: number;
|
|
4
|
+
export declare const MAX_RANGES = 2048;
|
|
5
|
+
export declare const MAX_ROWS = 65536;
|
|
6
|
+
export interface PublishedRecordFile {
|
|
7
|
+
readonly audience: string;
|
|
8
|
+
readonly payload: {
|
|
9
|
+
readonly key: string;
|
|
10
|
+
readonly size: number;
|
|
11
|
+
};
|
|
12
|
+
readonly indexBytes: number;
|
|
13
|
+
readonly indexDigest: string;
|
|
14
|
+
}
|
|
15
|
+
interface RangePosition {
|
|
16
|
+
readonly id: number;
|
|
17
|
+
readonly address: LogAddress;
|
|
18
|
+
readonly firstRow: number;
|
|
19
|
+
rowCount: number;
|
|
20
|
+
firstCommit?: number;
|
|
21
|
+
lastCommit?: number;
|
|
22
|
+
closedThrough?: number;
|
|
23
|
+
}
|
|
24
|
+
type OmissionReason = 'too-large' | 'unavailable';
|
|
25
|
+
export type PublishedRecordRange = Readonly<RangePosition> & ({
|
|
26
|
+
readonly status: 'written';
|
|
27
|
+
readonly offset: number;
|
|
28
|
+
readonly bytes: number;
|
|
29
|
+
readonly maxLineBytes: number;
|
|
30
|
+
readonly digest: string;
|
|
31
|
+
} | {
|
|
32
|
+
readonly status: 'omitted';
|
|
33
|
+
readonly reason: OmissionReason;
|
|
34
|
+
});
|
|
35
|
+
export interface PublishedRecordIndex {
|
|
36
|
+
readonly version: 1;
|
|
37
|
+
readonly ranges: readonly PublishedRecordRange[];
|
|
38
|
+
}
|
|
39
|
+
export interface IndexedFileSinkOptions extends FileSinkOptions {
|
|
40
|
+
/** Record only entries already served for this audience. This sink does not authorize or redact entries. */
|
|
41
|
+
readonly audience: string;
|
|
42
|
+
}
|
|
43
|
+
export interface IndexedFileSink extends FileSink {
|
|
44
|
+
/** Permanently close the writer and create a fresh sidecar. Preserve the returned binding in a trusted catalog. */
|
|
45
|
+
seal(indexPath: string): Promise<PublishedRecordFile>;
|
|
46
|
+
}
|
|
47
|
+
/** Use the native file writer and an independently bound directory for one already-served audience. */
|
|
48
|
+
export declare function indexedFileSink(dataPath: string, options: IndexedFileSinkOptions): IndexedFileSink;
|
|
49
|
+
export {};
|
package/dist/types/sinks.d.ts
CHANGED
|
@@ -25,3 +25,8 @@ export type { FileSink, FileSinkOptions, RecordFile } from './lib/sinks/fileSink
|
|
|
25
25
|
export { DEFAULT_FILE_SINK_FLUSH_TIMEOUT_MS, DEFAULT_FILE_SINK_MAX_BYTES, DEFAULT_FILE_SINK_MAX_ENTRY_BYTES, DEFAULT_FILE_SINK_MAX_QUEUED_BYTES, fileSink, readRecordFile, } from './lib/sinks/fileSink.js';
|
|
26
26
|
export { openIndexedRecordFile } from './lib/sinks/indexedRecordFile.js';
|
|
27
27
|
export type { IndexedRecordFile, IndexedRecordFileOptions, IndexedRecordFileReason, IndexedRecordFileResult, IndexedRecordScope, IndexedRecordUnknown, } from './lib/sinks/indexedTypes.js';
|
|
28
|
+
export type { PublishedRecordFileResult, PublishedRecordReader, PublishedRecordUnknown, PublishedScopeResult, PublishedStateResult, } from './lib/sinks/publishedRecordFile.js';
|
|
29
|
+
export { openPublishedRecordFile } from './lib/sinks/publishedRecordFile.js';
|
|
30
|
+
export type { PublishedRecordFileOptions } from './lib/sinks/publishedRecordSelection.js';
|
|
31
|
+
export type { IndexedFileSink, IndexedFileSinkOptions, PublishedRecordFile, } from './lib/sinks/publishedRecordWriter.js';
|
|
32
|
+
export { indexedFileSink } from './lib/sinks/publishedRecordWriter.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "footprintjs",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.3.0",
|
|
4
4
|
"description": "TypeScript workflow engine that records each run's stages, state changes and decision evidence, so AI agents and people can explain and debug what happened.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sanjay Krishna Anbalagan",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"test:examples": "tsc -p examples/tsconfig.json && npm run build && vitest run --config vitest.examples.config.ts",
|
|
48
48
|
"test:every-example": "vitest run --config vitest.every-example.config.ts",
|
|
49
49
|
"example": "npx tsx",
|
|
50
|
+
"why": "node tools/why/why.mjs",
|
|
50
51
|
"release:patch": "bash scripts/release.sh patch",
|
|
51
52
|
"release:minor": "bash scripts/release.sh minor",
|
|
52
53
|
"release:major": "bash scripts/release.sh major",
|
|
@@ -168,6 +169,16 @@
|
|
|
168
169
|
}
|
|
169
170
|
},
|
|
170
171
|
"./package.json": "./package.json",
|
|
172
|
+
"./declared-attempts": {
|
|
173
|
+
"import": {
|
|
174
|
+
"types": "./dist/esm/declared-attempts.d.ts",
|
|
175
|
+
"default": "./dist/esm/declared-attempts.js"
|
|
176
|
+
},
|
|
177
|
+
"require": {
|
|
178
|
+
"types": "./dist/types/declared-attempts.d.ts",
|
|
179
|
+
"default": "./dist/declared-attempts.js"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
171
182
|
"./subflow-capture": {
|
|
172
183
|
"import": {
|
|
173
184
|
"types": "./dist/esm/subflow-capture.d.ts",
|
|
@@ -202,6 +213,9 @@
|
|
|
202
213
|
"zod": [
|
|
203
214
|
"./dist/types/zod.d.ts"
|
|
204
215
|
],
|
|
216
|
+
"declared-attempts": [
|
|
217
|
+
"./dist/types/declared-attempts.d.ts"
|
|
218
|
+
],
|
|
205
219
|
"subflow-capture": [
|
|
206
220
|
"./dist/types/subflow-capture.d.ts"
|
|
207
221
|
]
|
|
@@ -215,7 +229,7 @@
|
|
|
215
229
|
},
|
|
216
230
|
"sideEffects": false,
|
|
217
231
|
"peerDependencies": {
|
|
218
|
-
"foottrace": "^2.1
|
|
232
|
+
"foottrace": "^2.3.1",
|
|
219
233
|
"zod": "^3.0.0 || ^4.0.0"
|
|
220
234
|
},
|
|
221
235
|
"peerDependenciesMeta": {
|
|
@@ -240,7 +254,7 @@
|
|
|
240
254
|
"eslint-plugin-simple-import-sort": "^8.0.0",
|
|
241
255
|
"fast-check": "^4.4.0",
|
|
242
256
|
"footprintjs-baseline": "npm:footprintjs@9.28.0",
|
|
243
|
-
"foottrace": "^2.1
|
|
257
|
+
"foottrace": "^2.3.1",
|
|
244
258
|
"husky": "^9.1.7",
|
|
245
259
|
"lint-staged": "^16.3.2",
|
|
246
260
|
"markdown-it": "^14.3.1",
|