crumbtrail-node 0.1.0 → 0.2.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/dist/{chunk-EASSXKUJ.js → chunk-5HPWIOG3.js} +303 -121
- package/dist/cli.cjs +302 -121
- package/dist/cli.js +2 -1
- package/dist/index.cjs +305 -119
- package/dist/index.d.cts +79 -4
- package/dist/index.d.ts +79 -4
- package/dist/index.js +5 -1
- package/package.json +7 -3
package/dist/index.d.cts
CHANGED
|
@@ -1795,6 +1795,13 @@ declare class McpServer {
|
|
|
1795
1795
|
/** Shared failed-requests body; notFoundMsg differs per caller. */
|
|
1796
1796
|
private failedRequestsFor;
|
|
1797
1797
|
private toolListSessions;
|
|
1798
|
+
/**
|
|
1799
|
+
* Surfaces release/build as first-class list-row fields regardless of which
|
|
1800
|
+
* alias the app used (release/releaseId/version, build/buildId/commit/sha), so
|
|
1801
|
+
* an agent can label and group sessions by release without re-reading each
|
|
1802
|
+
* meta. Additive: the raw meta keys are preserved.
|
|
1803
|
+
*/
|
|
1804
|
+
private withReleaseBuild;
|
|
1798
1805
|
private sessionMetadataMatches;
|
|
1799
1806
|
private toolGetIndex;
|
|
1800
1807
|
private toolGetEvents;
|
|
@@ -2487,8 +2494,8 @@ interface SessionComparison {
|
|
|
2487
2494
|
schemaVersion: typeof SESSION_COMPARE_SCHEMA_VERSION;
|
|
2488
2495
|
verdict: ComparisonVerdict;
|
|
2489
2496
|
confidence: ComparisonConfidence;
|
|
2490
|
-
a: SessionRef;
|
|
2491
|
-
b: SessionRef;
|
|
2497
|
+
a: SessionRef$1;
|
|
2498
|
+
b: SessionRef$1;
|
|
2492
2499
|
alignment: {
|
|
2493
2500
|
matchedSteps: number;
|
|
2494
2501
|
unmatchedA: number;
|
|
@@ -2503,8 +2510,49 @@ interface SessionComparison {
|
|
|
2503
2510
|
evidence: EvidenceItem[];
|
|
2504
2511
|
/** Intent inference. Empty until the git-host connector (slice 2) lands. */
|
|
2505
2512
|
intent: IntentSignal[];
|
|
2513
|
+
/**
|
|
2514
|
+
* Structured environment/flag/config/release/build delta between A and B —
|
|
2515
|
+
* the "works in QA, fails in prod, here is the config delta" channel. Present
|
|
2516
|
+
* only when the env plane diverges (mirrors the single `env.snapshot`
|
|
2517
|
+
* divergence). Additive: existing consumers that ignore it are unaffected.
|
|
2518
|
+
*/
|
|
2519
|
+
envDelta?: EnvDiff;
|
|
2520
|
+
}
|
|
2521
|
+
/** One environment key that was added, removed, or changed between two sessions. */
|
|
2522
|
+
interface EnvValueChange {
|
|
2523
|
+
key: string;
|
|
2524
|
+
/** Value in session A. Omitted for keys added in B. */
|
|
2525
|
+
before?: unknown;
|
|
2526
|
+
/** Value in session B. Omitted for keys removed in B. */
|
|
2527
|
+
after?: unknown;
|
|
2506
2528
|
}
|
|
2507
|
-
|
|
2529
|
+
/** Added/removed/changed breakdown for one env channel (flags or config). */
|
|
2530
|
+
interface EnvChannelDelta {
|
|
2531
|
+
added: EnvValueChange[];
|
|
2532
|
+
removed: EnvValueChange[];
|
|
2533
|
+
changed: EnvValueChange[];
|
|
2534
|
+
}
|
|
2535
|
+
/**
|
|
2536
|
+
* A clear added/removed/changed delta of the declared environment between two
|
|
2537
|
+
* sessions: feature flags, config, and the release/build labels. Only the keys
|
|
2538
|
+
* the noise model treats as real signal appear here (timestamp/uuid churn is
|
|
2539
|
+
* suppressed exactly as in the divergence channel).
|
|
2540
|
+
*/
|
|
2541
|
+
interface EnvDiff {
|
|
2542
|
+
flags: EnvChannelDelta;
|
|
2543
|
+
config: EnvChannelDelta;
|
|
2544
|
+
/** Present only when the release label differs between A and B. */
|
|
2545
|
+
release?: {
|
|
2546
|
+
before?: string;
|
|
2547
|
+
after?: string;
|
|
2548
|
+
};
|
|
2549
|
+
/** Present only when the build/commit label differs between A and B. */
|
|
2550
|
+
build?: {
|
|
2551
|
+
before?: string;
|
|
2552
|
+
after?: string;
|
|
2553
|
+
};
|
|
2554
|
+
}
|
|
2555
|
+
interface SessionRef$1 {
|
|
2508
2556
|
sessionId: string;
|
|
2509
2557
|
release?: string;
|
|
2510
2558
|
build?: string;
|
|
@@ -2519,6 +2567,12 @@ interface Divergence {
|
|
|
2519
2567
|
before: unknown;
|
|
2520
2568
|
after: unknown;
|
|
2521
2569
|
brief: string;
|
|
2570
|
+
/**
|
|
2571
|
+
* Structured added/removed/changed breakdown, attached to the env-plane
|
|
2572
|
+
* `env.snapshot` divergence. Lets consumers render the config delta without
|
|
2573
|
+
* re-diffing the opaque before/after blobs. Undefined on all other planes.
|
|
2574
|
+
*/
|
|
2575
|
+
envDelta?: EnvDiff;
|
|
2522
2576
|
}
|
|
2523
2577
|
interface CompareOptions {
|
|
2524
2578
|
alignmentWindow?: number;
|
|
@@ -2530,12 +2584,27 @@ declare class CompareError extends Error {
|
|
|
2530
2584
|
}
|
|
2531
2585
|
declare function compareSessions(aDir: string, bDir: string, options?: CompareOptions): Promise<SessionComparison>;
|
|
2532
2586
|
|
|
2587
|
+
type SessionRef = SessionComparison["a"];
|
|
2533
2588
|
declare function renderCompareReport(comparison: SessionComparison): string;
|
|
2534
2589
|
declare function formatComparisonSummary(comparison: SessionComparison): string;
|
|
2590
|
+
/**
|
|
2591
|
+
* Short, release-first label for a session: the release tag when one exists
|
|
2592
|
+
* (e.g. "R181"), otherwise the bare session id. Used to build "R181 vs R182"
|
|
2593
|
+
* comparison titles. Exported so the regression witness reuses one convention.
|
|
2594
|
+
*/
|
|
2595
|
+
declare function sessionRefLabel(ref: SessionRef): string;
|
|
2596
|
+
/** "R181 vs R182" when releases exist, else falls back to bare session ids. */
|
|
2597
|
+
declare function comparisonTitle(comparison: SessionComparison): string;
|
|
2535
2598
|
|
|
2536
2599
|
declare const REGRESSION_CONTEXT_SCHEMA_VERSION: "regression-context.v1";
|
|
2537
2600
|
interface RegressionContext {
|
|
2538
2601
|
schemaVersion: typeof REGRESSION_CONTEXT_SCHEMA_VERSION;
|
|
2602
|
+
/**
|
|
2603
|
+
* Release-first witness title, e.g. "R181 vs R182", falling back to bare
|
|
2604
|
+
* session ids when no release metadata exists. Lets a consumer name the
|
|
2605
|
+
* regression by release without re-deriving it from the comparison.
|
|
2606
|
+
*/
|
|
2607
|
+
title: string;
|
|
2539
2608
|
comparison: SessionComparison;
|
|
2540
2609
|
divergent_interaction: {
|
|
2541
2610
|
sig: string;
|
|
@@ -2554,6 +2623,12 @@ interface RegressionContext {
|
|
|
2554
2623
|
before: unknown;
|
|
2555
2624
|
after: unknown;
|
|
2556
2625
|
}>;
|
|
2626
|
+
/**
|
|
2627
|
+
* The "works in QA, fails in prod, here is the config delta" channel: the
|
|
2628
|
+
* structured added/removed/changed env/flag/config/release/build delta between
|
|
2629
|
+
* the two sessions. Null when the env plane did not diverge.
|
|
2630
|
+
*/
|
|
2631
|
+
env_delta: EnvDiff | null;
|
|
2557
2632
|
repro_hint: string;
|
|
2558
2633
|
}
|
|
2559
2634
|
declare function buildRegressionContext(comparison: SessionComparison, bDir: string): RegressionContext;
|
|
@@ -2795,4 +2870,4 @@ interface OtlpLogsRequest {
|
|
|
2795
2870
|
declare function decodeOtlpTraceProtobuf(buffer: Uint8Array): OtlpTraceRequest;
|
|
2796
2871
|
declare function decodeOtlpLogsProtobuf(buffer: Uint8Array): OtlpLogsRequest;
|
|
2797
2872
|
|
|
2798
|
-
export { AUTO_CAPTURE_ERROR_EVENT, type AdapterEvidence, type AdapterSourceStats, type AdfDoc, type AdfNode, type AdvisoryCommentGap, type AdvisoryCommentMatch, type AutoCaptureHandle, type AutoCaptureOptions, type AutoCaptureSource, type BoundedRetryOptions, type BugQueueConfig, BugQueueManager, type BuildAdvisoryCommentInput, type BuildDbDiffEventInput, type BuildDbReadBulkEventInput, type BuildDbReadEventInput, type BuildFixContextOptions, CLOUDFLARE_AUTH_FIELDS, CLOUDFLARE_DESCRIPTOR, CLOUDFLARE_R2_ACCESS_KEY_ID_ENV, CLOUDFLARE_R2_ACCOUNT_ID_ENV, CLOUDFLARE_R2_BUCKET_ENV, CLOUDFLARE_R2_DATASET_ENV, CLOUDFLARE_R2_ENDPOINT_ENV, CLOUDFLARE_R2_PREFIX_ENV, CLOUDFLARE_R2_SECRET_ACCESS_KEY_ENV, CLOUDWATCH_ACCESS_KEY_ID_ENV, CLOUDWATCH_AUTH_FIELDS, CLOUDWATCH_DESCRIPTOR, CLOUDWATCH_ENDPOINT_ENV, CLOUDWATCH_LOG_GROUPS_ENV, CLOUDWATCH_REGION_ENV, CLOUDWATCH_SECRET_ACCESS_KEY_ENV, CLOUDWATCH_SESSION_TOKEN_ENV, CRUMBTRAIL_USER_AGENT, CloudWatchEvidenceSource, type CloudWatchQueryPlan, type CloudWatchResultRow, type CloudWatchSourceConfig, type CloudflareDataset, CloudflareEvidenceSource, type CloudflarePlan, type CloudflareSourceConfig, type CommentingTicketConnector, CompareError, type CompareOptions, type ComparisonConfidence, type ComparisonVerdict, type CrumbtrailExpressErrorMiddleware, type CrumbtrailExpressErrorNext, type CrumbtrailExpressMiddleware, type CrumbtrailExpressNext, type CrumbtrailExpressOptions, type CrumbtrailExpressRequest, type CrumbtrailExpressResponse, type BackendIntakeWarning as CrumbtrailExpressWarning, type BackendIntakeWarningKind as CrumbtrailExpressWarningKind, DATADOG_API_KEY_ENV, DATADOG_APP_KEY_ENV, DATADOG_AUTH_FIELDS, DATADOG_DEFAULT_SITE, DATADOG_DESCRIPTOR, DATADOG_SITE_ENV, DEFAULT_MAX_TOTAL_BYTES, DEFAULT_SENSITIVE_DB_COLUMNS, DEFAULT_SOURCE_TIMEOUT_MS, DEFAULT_SWEEP_CHECKPOINT_MS, DEFAULT_SWEEP_IDLE_MS, DEFAULT_SWEEP_INTERVAL_MS, DISTINCT_BUGS_SCHEMA_VERSION, DatadogEvidenceSource, type DatadogLog, type DatadogQueryPlan, type DatadogSourceConfig, type DatadogSpan, type DbRequestContext, type DistinctBug, type DistinctBugEvidenceRef, type DistinctBugRecurrence, type DistinctBugRecurrenceInput, type DistinctBugRecurrenceOccurrence, type DistinctBugSeverity, type Divergence, type DuckTypedMssqlPool, type DuckTypedMssqlRequest, type DuckTypedMssqlResult, type DuckTypedMysqlClient, type DuckTypedMysqlResultHeader, type DuckTypedPgClient, type DuckTypedPgQueryResult, type DuckTypedSqliteDatabase, type DuckTypedSqliteRunResult, type DuckTypedSqliteStatement, EVIDENCE_SOURCE_PROVIDERS, CRUMBTRAIL_USER_AGENT as EVIDENCE_SOURCE_USER_AGENT, type EvidenceSource, type EvidenceSourceProvider, FIX_CONTEXT_SCHEMA_VERSION, type FetchAdapterEvidenceOptions, FilesystemSessionStore, type FixContext, type FixContextDbDiff, type FixContextDbRead, FixContextError, type FixContextPrimaryWindow, type FixContextReproHint, type FixContextSession, type HeadlessSession, type HeadlessSessionOptions, InspectError, type InspectSessionOptions, type InstrumentDbClientOptions, type InstrumentPgClientOptions, type JiraAuth, type JiraBasicAuth, type JiraBearerAuth, JiraTicketClient, type JiraTicketClientConfig, type JiraTicketClientConfigLegacy, type JiraTicketClientConfigWithAuth, McpServer, type McpServerConfig, type OtlpLogsRequest, type OtlpResourceLogs, type OtlpResourceSpans, type OtlpTraceRequest, POSTHOG_API_KEY_ENV, POSTHOG_AUTH_FIELDS, POSTHOG_DEFAULT_HOST, POSTHOG_DESCRIPTOR, POSTHOG_HOST_ENV, POSTHOG_PROJECT_ID_ENV, PROVIDER_IDS, PROVIDER_RECIPES, type PostHogEvent, PostHogEvidenceSource, type PostHogPropertyFilter, type PostHogQueryPlan, type PostHogRecording, type PostHogSourceConfig, type ProviderId, type ProviderRecipe, REGRESSION_CONTEXT_SCHEMA_VERSION, REPLAY_RESULT_SCHEMA_VERSION, type RegressionContext, type ReplayDivergence, type ReplayResult, type ReplayStepResult, SENTRY_AUTH_FIELDS, SENTRY_AUTH_TOKEN_ENV, SENTRY_DEFAULT_HOST, SENTRY_DESCRIPTOR, SENTRY_HOST_ENV, SENTRY_ORG_ENV, SESSION_COMPARE_SCHEMA_VERSION, SPLUNK_AUTH_FIELDS, SPLUNK_DESCRIPTOR, SPLUNK_HOST_ENV, SPLUNK_INDEX_ENV, SPLUNK_TOKEN_ENV, SPLUNK_WEB_URL_ENV, SentryEvidenceSource, type SentryQueryPlan, type SentrySourceConfig, type BugReport as ServerBugReport, type ServerConfig, type SessionComparison, type SessionFileFlags, type SessionFinalizationResult, type SessionInspection, type SessionInspectionArtifact, type SessionListItem, SessionManager, type SessionStore, type SessionSummary, type SessionSweepOptions, type SessionSweepResult, type SessionSweeperHandle, type Severity, type SigV4Input, type SignedHeaders, type SourceHealth, SplunkEvidenceSource, type SplunkQueryPlan, type SplunkResultRow, type SplunkSourceConfig, type StepResolution, type TicketConnector, TicketError, type TicketProvider, autoCapture, buildAdvisoryComment, buildCloudWatchQuery, buildCloudflarePlan, buildDatadogQuery, buildDbDiffEvent, buildDbReadBulkEvent, buildDbReadEvent, buildDistinctBugSignature, buildFixContext, buildPostHogQuery, buildRegressionContext, buildReplayResult, buildSentryQuery, buildSessionSummary, buildSplunkQuery, cloudWatchDeepLink, cloudWatchEvidenceProvider, cloudflareEvidenceProvider, compareSessions, createCrumbtrailExpressErrorMiddleware, createCrumbtrailExpressMiddleware, createServer, datadogAppBase, datadogEvidenceProvider, decodeOtlpLogsProtobuf, decodeOtlpTraceProtobuf, defaultSessionStore, evidenceRequestHeaders, evidenceSourcesFromEnv, fetchAdapterEvidence, formatComparisonSummary, formatDuration, formatInspection, getProviderRecipe, groupDistinctBugRecurrences, groupDistinctBugs, inspectSession, instrumentMssqlPool, instrumentMysqlClient, instrumentPgClient, instrumentSqliteDatabase, isProviderId, jiraToSymptom, normalizeCloudWatchRow, normalizeDatadogLog, normalizeDatadogSpan, normalizePostHogEvent, normalizePostHogRecording, normalizeSentryIssue, normalizeSplunkRow, parseMutation, parseRead, parseReplayResult, posthogEventDeepLink, posthogEvidenceProvider, posthogRecordingDeepLink, readPackageVersion, redactEvidenceGap, redactEvidenceItem, redactSourceResult, registerEvidenceProvider, renderCompareReport, renderProviderCliOutput, renderProviderConfig, renderProviderDoc, renderProviderReadme, resolveDbRequestContext, sentryEvidenceProvider, signSigV4, splunkEvidenceProvider, splunkSearchDeepLink, splunkWebBase, startHeadlessSession, startSessionSweeper, sweepIdleSessions, withBoundedRetry, writeReplayResult };
|
|
2873
|
+
export { AUTO_CAPTURE_ERROR_EVENT, type AdapterEvidence, type AdapterSourceStats, type AdfDoc, type AdfNode, type AdvisoryCommentGap, type AdvisoryCommentMatch, type AutoCaptureHandle, type AutoCaptureOptions, type AutoCaptureSource, type BoundedRetryOptions, type BugQueueConfig, BugQueueManager, type BuildAdvisoryCommentInput, type BuildDbDiffEventInput, type BuildDbReadBulkEventInput, type BuildDbReadEventInput, type BuildFixContextOptions, CLOUDFLARE_AUTH_FIELDS, CLOUDFLARE_DESCRIPTOR, CLOUDFLARE_R2_ACCESS_KEY_ID_ENV, CLOUDFLARE_R2_ACCOUNT_ID_ENV, CLOUDFLARE_R2_BUCKET_ENV, CLOUDFLARE_R2_DATASET_ENV, CLOUDFLARE_R2_ENDPOINT_ENV, CLOUDFLARE_R2_PREFIX_ENV, CLOUDFLARE_R2_SECRET_ACCESS_KEY_ENV, CLOUDWATCH_ACCESS_KEY_ID_ENV, CLOUDWATCH_AUTH_FIELDS, CLOUDWATCH_DESCRIPTOR, CLOUDWATCH_ENDPOINT_ENV, CLOUDWATCH_LOG_GROUPS_ENV, CLOUDWATCH_REGION_ENV, CLOUDWATCH_SECRET_ACCESS_KEY_ENV, CLOUDWATCH_SESSION_TOKEN_ENV, CRUMBTRAIL_USER_AGENT, CloudWatchEvidenceSource, type CloudWatchQueryPlan, type CloudWatchResultRow, type CloudWatchSourceConfig, type CloudflareDataset, CloudflareEvidenceSource, type CloudflarePlan, type CloudflareSourceConfig, type CommentingTicketConnector, CompareError, type CompareOptions, type ComparisonConfidence, type ComparisonVerdict, type CrumbtrailExpressErrorMiddleware, type CrumbtrailExpressErrorNext, type CrumbtrailExpressMiddleware, type CrumbtrailExpressNext, type CrumbtrailExpressOptions, type CrumbtrailExpressRequest, type CrumbtrailExpressResponse, type BackendIntakeWarning as CrumbtrailExpressWarning, type BackendIntakeWarningKind as CrumbtrailExpressWarningKind, DATADOG_API_KEY_ENV, DATADOG_APP_KEY_ENV, DATADOG_AUTH_FIELDS, DATADOG_DEFAULT_SITE, DATADOG_DESCRIPTOR, DATADOG_SITE_ENV, DEFAULT_MAX_TOTAL_BYTES, DEFAULT_SENSITIVE_DB_COLUMNS, DEFAULT_SOURCE_TIMEOUT_MS, DEFAULT_SWEEP_CHECKPOINT_MS, DEFAULT_SWEEP_IDLE_MS, DEFAULT_SWEEP_INTERVAL_MS, DISTINCT_BUGS_SCHEMA_VERSION, DatadogEvidenceSource, type DatadogLog, type DatadogQueryPlan, type DatadogSourceConfig, type DatadogSpan, type DbRequestContext, type DistinctBug, type DistinctBugEvidenceRef, type DistinctBugRecurrence, type DistinctBugRecurrenceInput, type DistinctBugRecurrenceOccurrence, type DistinctBugSeverity, type Divergence, type DuckTypedMssqlPool, type DuckTypedMssqlRequest, type DuckTypedMssqlResult, type DuckTypedMysqlClient, type DuckTypedMysqlResultHeader, type DuckTypedPgClient, type DuckTypedPgQueryResult, type DuckTypedSqliteDatabase, type DuckTypedSqliteRunResult, type DuckTypedSqliteStatement, EVIDENCE_SOURCE_PROVIDERS, CRUMBTRAIL_USER_AGENT as EVIDENCE_SOURCE_USER_AGENT, type EnvChannelDelta, type EnvDiff, type EnvValueChange, type EvidenceSource, type EvidenceSourceProvider, FIX_CONTEXT_SCHEMA_VERSION, type FetchAdapterEvidenceOptions, FilesystemSessionStore, type FixContext, type FixContextDbDiff, type FixContextDbRead, FixContextError, type FixContextPrimaryWindow, type FixContextReproHint, type FixContextSession, type HeadlessSession, type HeadlessSessionOptions, InspectError, type InspectSessionOptions, type InstrumentDbClientOptions, type InstrumentPgClientOptions, type JiraAuth, type JiraBasicAuth, type JiraBearerAuth, JiraTicketClient, type JiraTicketClientConfig, type JiraTicketClientConfigLegacy, type JiraTicketClientConfigWithAuth, McpServer, type McpServerConfig, type OtlpLogsRequest, type OtlpResourceLogs, type OtlpResourceSpans, type OtlpTraceRequest, POSTHOG_API_KEY_ENV, POSTHOG_AUTH_FIELDS, POSTHOG_DEFAULT_HOST, POSTHOG_DESCRIPTOR, POSTHOG_HOST_ENV, POSTHOG_PROJECT_ID_ENV, PROVIDER_IDS, PROVIDER_RECIPES, type PostHogEvent, PostHogEvidenceSource, type PostHogPropertyFilter, type PostHogQueryPlan, type PostHogRecording, type PostHogSourceConfig, type ProviderId, type ProviderRecipe, REGRESSION_CONTEXT_SCHEMA_VERSION, REPLAY_RESULT_SCHEMA_VERSION, type RegressionContext, type ReplayDivergence, type ReplayResult, type ReplayStepResult, SENTRY_AUTH_FIELDS, SENTRY_AUTH_TOKEN_ENV, SENTRY_DEFAULT_HOST, SENTRY_DESCRIPTOR, SENTRY_HOST_ENV, SENTRY_ORG_ENV, SESSION_COMPARE_SCHEMA_VERSION, SPLUNK_AUTH_FIELDS, SPLUNK_DESCRIPTOR, SPLUNK_HOST_ENV, SPLUNK_INDEX_ENV, SPLUNK_TOKEN_ENV, SPLUNK_WEB_URL_ENV, SentryEvidenceSource, type SentryQueryPlan, type SentrySourceConfig, type BugReport as ServerBugReport, type ServerConfig, type SessionComparison, type SessionFileFlags, type SessionFinalizationResult, type SessionInspection, type SessionInspectionArtifact, type SessionListItem, SessionManager, type SessionStore, type SessionSummary, type SessionSweepOptions, type SessionSweepResult, type SessionSweeperHandle, type Severity, type SigV4Input, type SignedHeaders, type SourceHealth, SplunkEvidenceSource, type SplunkQueryPlan, type SplunkResultRow, type SplunkSourceConfig, type StepResolution, type TicketConnector, TicketError, type TicketProvider, autoCapture, buildAdvisoryComment, buildCloudWatchQuery, buildCloudflarePlan, buildDatadogQuery, buildDbDiffEvent, buildDbReadBulkEvent, buildDbReadEvent, buildDistinctBugSignature, buildFixContext, buildPostHogQuery, buildRegressionContext, buildReplayResult, buildSentryQuery, buildSessionSummary, buildSplunkQuery, cloudWatchDeepLink, cloudWatchEvidenceProvider, cloudflareEvidenceProvider, compareSessions, comparisonTitle, createCrumbtrailExpressErrorMiddleware, createCrumbtrailExpressMiddleware, createServer, datadogAppBase, datadogEvidenceProvider, decodeOtlpLogsProtobuf, decodeOtlpTraceProtobuf, defaultSessionStore, evidenceRequestHeaders, evidenceSourcesFromEnv, fetchAdapterEvidence, formatComparisonSummary, formatDuration, formatInspection, getProviderRecipe, groupDistinctBugRecurrences, groupDistinctBugs, inspectSession, instrumentMssqlPool, instrumentMysqlClient, instrumentPgClient, instrumentSqliteDatabase, isProviderId, jiraToSymptom, normalizeCloudWatchRow, normalizeDatadogLog, normalizeDatadogSpan, normalizePostHogEvent, normalizePostHogRecording, normalizeSentryIssue, normalizeSplunkRow, parseMutation, parseRead, parseReplayResult, posthogEventDeepLink, posthogEvidenceProvider, posthogRecordingDeepLink, readPackageVersion, redactEvidenceGap, redactEvidenceItem, redactSourceResult, registerEvidenceProvider, renderCompareReport, renderProviderCliOutput, renderProviderConfig, renderProviderDoc, renderProviderReadme, resolveDbRequestContext, sentryEvidenceProvider, sessionRefLabel, signSigV4, splunkEvidenceProvider, splunkSearchDeepLink, splunkWebBase, startHeadlessSession, startSessionSweeper, sweepIdleSessions, withBoundedRetry, writeReplayResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -1795,6 +1795,13 @@ declare class McpServer {
|
|
|
1795
1795
|
/** Shared failed-requests body; notFoundMsg differs per caller. */
|
|
1796
1796
|
private failedRequestsFor;
|
|
1797
1797
|
private toolListSessions;
|
|
1798
|
+
/**
|
|
1799
|
+
* Surfaces release/build as first-class list-row fields regardless of which
|
|
1800
|
+
* alias the app used (release/releaseId/version, build/buildId/commit/sha), so
|
|
1801
|
+
* an agent can label and group sessions by release without re-reading each
|
|
1802
|
+
* meta. Additive: the raw meta keys are preserved.
|
|
1803
|
+
*/
|
|
1804
|
+
private withReleaseBuild;
|
|
1798
1805
|
private sessionMetadataMatches;
|
|
1799
1806
|
private toolGetIndex;
|
|
1800
1807
|
private toolGetEvents;
|
|
@@ -2487,8 +2494,8 @@ interface SessionComparison {
|
|
|
2487
2494
|
schemaVersion: typeof SESSION_COMPARE_SCHEMA_VERSION;
|
|
2488
2495
|
verdict: ComparisonVerdict;
|
|
2489
2496
|
confidence: ComparisonConfidence;
|
|
2490
|
-
a: SessionRef;
|
|
2491
|
-
b: SessionRef;
|
|
2497
|
+
a: SessionRef$1;
|
|
2498
|
+
b: SessionRef$1;
|
|
2492
2499
|
alignment: {
|
|
2493
2500
|
matchedSteps: number;
|
|
2494
2501
|
unmatchedA: number;
|
|
@@ -2503,8 +2510,49 @@ interface SessionComparison {
|
|
|
2503
2510
|
evidence: EvidenceItem[];
|
|
2504
2511
|
/** Intent inference. Empty until the git-host connector (slice 2) lands. */
|
|
2505
2512
|
intent: IntentSignal[];
|
|
2513
|
+
/**
|
|
2514
|
+
* Structured environment/flag/config/release/build delta between A and B —
|
|
2515
|
+
* the "works in QA, fails in prod, here is the config delta" channel. Present
|
|
2516
|
+
* only when the env plane diverges (mirrors the single `env.snapshot`
|
|
2517
|
+
* divergence). Additive: existing consumers that ignore it are unaffected.
|
|
2518
|
+
*/
|
|
2519
|
+
envDelta?: EnvDiff;
|
|
2520
|
+
}
|
|
2521
|
+
/** One environment key that was added, removed, or changed between two sessions. */
|
|
2522
|
+
interface EnvValueChange {
|
|
2523
|
+
key: string;
|
|
2524
|
+
/** Value in session A. Omitted for keys added in B. */
|
|
2525
|
+
before?: unknown;
|
|
2526
|
+
/** Value in session B. Omitted for keys removed in B. */
|
|
2527
|
+
after?: unknown;
|
|
2506
2528
|
}
|
|
2507
|
-
|
|
2529
|
+
/** Added/removed/changed breakdown for one env channel (flags or config). */
|
|
2530
|
+
interface EnvChannelDelta {
|
|
2531
|
+
added: EnvValueChange[];
|
|
2532
|
+
removed: EnvValueChange[];
|
|
2533
|
+
changed: EnvValueChange[];
|
|
2534
|
+
}
|
|
2535
|
+
/**
|
|
2536
|
+
* A clear added/removed/changed delta of the declared environment between two
|
|
2537
|
+
* sessions: feature flags, config, and the release/build labels. Only the keys
|
|
2538
|
+
* the noise model treats as real signal appear here (timestamp/uuid churn is
|
|
2539
|
+
* suppressed exactly as in the divergence channel).
|
|
2540
|
+
*/
|
|
2541
|
+
interface EnvDiff {
|
|
2542
|
+
flags: EnvChannelDelta;
|
|
2543
|
+
config: EnvChannelDelta;
|
|
2544
|
+
/** Present only when the release label differs between A and B. */
|
|
2545
|
+
release?: {
|
|
2546
|
+
before?: string;
|
|
2547
|
+
after?: string;
|
|
2548
|
+
};
|
|
2549
|
+
/** Present only when the build/commit label differs between A and B. */
|
|
2550
|
+
build?: {
|
|
2551
|
+
before?: string;
|
|
2552
|
+
after?: string;
|
|
2553
|
+
};
|
|
2554
|
+
}
|
|
2555
|
+
interface SessionRef$1 {
|
|
2508
2556
|
sessionId: string;
|
|
2509
2557
|
release?: string;
|
|
2510
2558
|
build?: string;
|
|
@@ -2519,6 +2567,12 @@ interface Divergence {
|
|
|
2519
2567
|
before: unknown;
|
|
2520
2568
|
after: unknown;
|
|
2521
2569
|
brief: string;
|
|
2570
|
+
/**
|
|
2571
|
+
* Structured added/removed/changed breakdown, attached to the env-plane
|
|
2572
|
+
* `env.snapshot` divergence. Lets consumers render the config delta without
|
|
2573
|
+
* re-diffing the opaque before/after blobs. Undefined on all other planes.
|
|
2574
|
+
*/
|
|
2575
|
+
envDelta?: EnvDiff;
|
|
2522
2576
|
}
|
|
2523
2577
|
interface CompareOptions {
|
|
2524
2578
|
alignmentWindow?: number;
|
|
@@ -2530,12 +2584,27 @@ declare class CompareError extends Error {
|
|
|
2530
2584
|
}
|
|
2531
2585
|
declare function compareSessions(aDir: string, bDir: string, options?: CompareOptions): Promise<SessionComparison>;
|
|
2532
2586
|
|
|
2587
|
+
type SessionRef = SessionComparison["a"];
|
|
2533
2588
|
declare function renderCompareReport(comparison: SessionComparison): string;
|
|
2534
2589
|
declare function formatComparisonSummary(comparison: SessionComparison): string;
|
|
2590
|
+
/**
|
|
2591
|
+
* Short, release-first label for a session: the release tag when one exists
|
|
2592
|
+
* (e.g. "R181"), otherwise the bare session id. Used to build "R181 vs R182"
|
|
2593
|
+
* comparison titles. Exported so the regression witness reuses one convention.
|
|
2594
|
+
*/
|
|
2595
|
+
declare function sessionRefLabel(ref: SessionRef): string;
|
|
2596
|
+
/** "R181 vs R182" when releases exist, else falls back to bare session ids. */
|
|
2597
|
+
declare function comparisonTitle(comparison: SessionComparison): string;
|
|
2535
2598
|
|
|
2536
2599
|
declare const REGRESSION_CONTEXT_SCHEMA_VERSION: "regression-context.v1";
|
|
2537
2600
|
interface RegressionContext {
|
|
2538
2601
|
schemaVersion: typeof REGRESSION_CONTEXT_SCHEMA_VERSION;
|
|
2602
|
+
/**
|
|
2603
|
+
* Release-first witness title, e.g. "R181 vs R182", falling back to bare
|
|
2604
|
+
* session ids when no release metadata exists. Lets a consumer name the
|
|
2605
|
+
* regression by release without re-deriving it from the comparison.
|
|
2606
|
+
*/
|
|
2607
|
+
title: string;
|
|
2539
2608
|
comparison: SessionComparison;
|
|
2540
2609
|
divergent_interaction: {
|
|
2541
2610
|
sig: string;
|
|
@@ -2554,6 +2623,12 @@ interface RegressionContext {
|
|
|
2554
2623
|
before: unknown;
|
|
2555
2624
|
after: unknown;
|
|
2556
2625
|
}>;
|
|
2626
|
+
/**
|
|
2627
|
+
* The "works in QA, fails in prod, here is the config delta" channel: the
|
|
2628
|
+
* structured added/removed/changed env/flag/config/release/build delta between
|
|
2629
|
+
* the two sessions. Null when the env plane did not diverge.
|
|
2630
|
+
*/
|
|
2631
|
+
env_delta: EnvDiff | null;
|
|
2557
2632
|
repro_hint: string;
|
|
2558
2633
|
}
|
|
2559
2634
|
declare function buildRegressionContext(comparison: SessionComparison, bDir: string): RegressionContext;
|
|
@@ -2795,4 +2870,4 @@ interface OtlpLogsRequest {
|
|
|
2795
2870
|
declare function decodeOtlpTraceProtobuf(buffer: Uint8Array): OtlpTraceRequest;
|
|
2796
2871
|
declare function decodeOtlpLogsProtobuf(buffer: Uint8Array): OtlpLogsRequest;
|
|
2797
2872
|
|
|
2798
|
-
export { AUTO_CAPTURE_ERROR_EVENT, type AdapterEvidence, type AdapterSourceStats, type AdfDoc, type AdfNode, type AdvisoryCommentGap, type AdvisoryCommentMatch, type AutoCaptureHandle, type AutoCaptureOptions, type AutoCaptureSource, type BoundedRetryOptions, type BugQueueConfig, BugQueueManager, type BuildAdvisoryCommentInput, type BuildDbDiffEventInput, type BuildDbReadBulkEventInput, type BuildDbReadEventInput, type BuildFixContextOptions, CLOUDFLARE_AUTH_FIELDS, CLOUDFLARE_DESCRIPTOR, CLOUDFLARE_R2_ACCESS_KEY_ID_ENV, CLOUDFLARE_R2_ACCOUNT_ID_ENV, CLOUDFLARE_R2_BUCKET_ENV, CLOUDFLARE_R2_DATASET_ENV, CLOUDFLARE_R2_ENDPOINT_ENV, CLOUDFLARE_R2_PREFIX_ENV, CLOUDFLARE_R2_SECRET_ACCESS_KEY_ENV, CLOUDWATCH_ACCESS_KEY_ID_ENV, CLOUDWATCH_AUTH_FIELDS, CLOUDWATCH_DESCRIPTOR, CLOUDWATCH_ENDPOINT_ENV, CLOUDWATCH_LOG_GROUPS_ENV, CLOUDWATCH_REGION_ENV, CLOUDWATCH_SECRET_ACCESS_KEY_ENV, CLOUDWATCH_SESSION_TOKEN_ENV, CRUMBTRAIL_USER_AGENT, CloudWatchEvidenceSource, type CloudWatchQueryPlan, type CloudWatchResultRow, type CloudWatchSourceConfig, type CloudflareDataset, CloudflareEvidenceSource, type CloudflarePlan, type CloudflareSourceConfig, type CommentingTicketConnector, CompareError, type CompareOptions, type ComparisonConfidence, type ComparisonVerdict, type CrumbtrailExpressErrorMiddleware, type CrumbtrailExpressErrorNext, type CrumbtrailExpressMiddleware, type CrumbtrailExpressNext, type CrumbtrailExpressOptions, type CrumbtrailExpressRequest, type CrumbtrailExpressResponse, type BackendIntakeWarning as CrumbtrailExpressWarning, type BackendIntakeWarningKind as CrumbtrailExpressWarningKind, DATADOG_API_KEY_ENV, DATADOG_APP_KEY_ENV, DATADOG_AUTH_FIELDS, DATADOG_DEFAULT_SITE, DATADOG_DESCRIPTOR, DATADOG_SITE_ENV, DEFAULT_MAX_TOTAL_BYTES, DEFAULT_SENSITIVE_DB_COLUMNS, DEFAULT_SOURCE_TIMEOUT_MS, DEFAULT_SWEEP_CHECKPOINT_MS, DEFAULT_SWEEP_IDLE_MS, DEFAULT_SWEEP_INTERVAL_MS, DISTINCT_BUGS_SCHEMA_VERSION, DatadogEvidenceSource, type DatadogLog, type DatadogQueryPlan, type DatadogSourceConfig, type DatadogSpan, type DbRequestContext, type DistinctBug, type DistinctBugEvidenceRef, type DistinctBugRecurrence, type DistinctBugRecurrenceInput, type DistinctBugRecurrenceOccurrence, type DistinctBugSeverity, type Divergence, type DuckTypedMssqlPool, type DuckTypedMssqlRequest, type DuckTypedMssqlResult, type DuckTypedMysqlClient, type DuckTypedMysqlResultHeader, type DuckTypedPgClient, type DuckTypedPgQueryResult, type DuckTypedSqliteDatabase, type DuckTypedSqliteRunResult, type DuckTypedSqliteStatement, EVIDENCE_SOURCE_PROVIDERS, CRUMBTRAIL_USER_AGENT as EVIDENCE_SOURCE_USER_AGENT, type EvidenceSource, type EvidenceSourceProvider, FIX_CONTEXT_SCHEMA_VERSION, type FetchAdapterEvidenceOptions, FilesystemSessionStore, type FixContext, type FixContextDbDiff, type FixContextDbRead, FixContextError, type FixContextPrimaryWindow, type FixContextReproHint, type FixContextSession, type HeadlessSession, type HeadlessSessionOptions, InspectError, type InspectSessionOptions, type InstrumentDbClientOptions, type InstrumentPgClientOptions, type JiraAuth, type JiraBasicAuth, type JiraBearerAuth, JiraTicketClient, type JiraTicketClientConfig, type JiraTicketClientConfigLegacy, type JiraTicketClientConfigWithAuth, McpServer, type McpServerConfig, type OtlpLogsRequest, type OtlpResourceLogs, type OtlpResourceSpans, type OtlpTraceRequest, POSTHOG_API_KEY_ENV, POSTHOG_AUTH_FIELDS, POSTHOG_DEFAULT_HOST, POSTHOG_DESCRIPTOR, POSTHOG_HOST_ENV, POSTHOG_PROJECT_ID_ENV, PROVIDER_IDS, PROVIDER_RECIPES, type PostHogEvent, PostHogEvidenceSource, type PostHogPropertyFilter, type PostHogQueryPlan, type PostHogRecording, type PostHogSourceConfig, type ProviderId, type ProviderRecipe, REGRESSION_CONTEXT_SCHEMA_VERSION, REPLAY_RESULT_SCHEMA_VERSION, type RegressionContext, type ReplayDivergence, type ReplayResult, type ReplayStepResult, SENTRY_AUTH_FIELDS, SENTRY_AUTH_TOKEN_ENV, SENTRY_DEFAULT_HOST, SENTRY_DESCRIPTOR, SENTRY_HOST_ENV, SENTRY_ORG_ENV, SESSION_COMPARE_SCHEMA_VERSION, SPLUNK_AUTH_FIELDS, SPLUNK_DESCRIPTOR, SPLUNK_HOST_ENV, SPLUNK_INDEX_ENV, SPLUNK_TOKEN_ENV, SPLUNK_WEB_URL_ENV, SentryEvidenceSource, type SentryQueryPlan, type SentrySourceConfig, type BugReport as ServerBugReport, type ServerConfig, type SessionComparison, type SessionFileFlags, type SessionFinalizationResult, type SessionInspection, type SessionInspectionArtifact, type SessionListItem, SessionManager, type SessionStore, type SessionSummary, type SessionSweepOptions, type SessionSweepResult, type SessionSweeperHandle, type Severity, type SigV4Input, type SignedHeaders, type SourceHealth, SplunkEvidenceSource, type SplunkQueryPlan, type SplunkResultRow, type SplunkSourceConfig, type StepResolution, type TicketConnector, TicketError, type TicketProvider, autoCapture, buildAdvisoryComment, buildCloudWatchQuery, buildCloudflarePlan, buildDatadogQuery, buildDbDiffEvent, buildDbReadBulkEvent, buildDbReadEvent, buildDistinctBugSignature, buildFixContext, buildPostHogQuery, buildRegressionContext, buildReplayResult, buildSentryQuery, buildSessionSummary, buildSplunkQuery, cloudWatchDeepLink, cloudWatchEvidenceProvider, cloudflareEvidenceProvider, compareSessions, createCrumbtrailExpressErrorMiddleware, createCrumbtrailExpressMiddleware, createServer, datadogAppBase, datadogEvidenceProvider, decodeOtlpLogsProtobuf, decodeOtlpTraceProtobuf, defaultSessionStore, evidenceRequestHeaders, evidenceSourcesFromEnv, fetchAdapterEvidence, formatComparisonSummary, formatDuration, formatInspection, getProviderRecipe, groupDistinctBugRecurrences, groupDistinctBugs, inspectSession, instrumentMssqlPool, instrumentMysqlClient, instrumentPgClient, instrumentSqliteDatabase, isProviderId, jiraToSymptom, normalizeCloudWatchRow, normalizeDatadogLog, normalizeDatadogSpan, normalizePostHogEvent, normalizePostHogRecording, normalizeSentryIssue, normalizeSplunkRow, parseMutation, parseRead, parseReplayResult, posthogEventDeepLink, posthogEvidenceProvider, posthogRecordingDeepLink, readPackageVersion, redactEvidenceGap, redactEvidenceItem, redactSourceResult, registerEvidenceProvider, renderCompareReport, renderProviderCliOutput, renderProviderConfig, renderProviderDoc, renderProviderReadme, resolveDbRequestContext, sentryEvidenceProvider, signSigV4, splunkEvidenceProvider, splunkSearchDeepLink, splunkWebBase, startHeadlessSession, startSessionSweeper, sweepIdleSessions, withBoundedRetry, writeReplayResult };
|
|
2873
|
+
export { AUTO_CAPTURE_ERROR_EVENT, type AdapterEvidence, type AdapterSourceStats, type AdfDoc, type AdfNode, type AdvisoryCommentGap, type AdvisoryCommentMatch, type AutoCaptureHandle, type AutoCaptureOptions, type AutoCaptureSource, type BoundedRetryOptions, type BugQueueConfig, BugQueueManager, type BuildAdvisoryCommentInput, type BuildDbDiffEventInput, type BuildDbReadBulkEventInput, type BuildDbReadEventInput, type BuildFixContextOptions, CLOUDFLARE_AUTH_FIELDS, CLOUDFLARE_DESCRIPTOR, CLOUDFLARE_R2_ACCESS_KEY_ID_ENV, CLOUDFLARE_R2_ACCOUNT_ID_ENV, CLOUDFLARE_R2_BUCKET_ENV, CLOUDFLARE_R2_DATASET_ENV, CLOUDFLARE_R2_ENDPOINT_ENV, CLOUDFLARE_R2_PREFIX_ENV, CLOUDFLARE_R2_SECRET_ACCESS_KEY_ENV, CLOUDWATCH_ACCESS_KEY_ID_ENV, CLOUDWATCH_AUTH_FIELDS, CLOUDWATCH_DESCRIPTOR, CLOUDWATCH_ENDPOINT_ENV, CLOUDWATCH_LOG_GROUPS_ENV, CLOUDWATCH_REGION_ENV, CLOUDWATCH_SECRET_ACCESS_KEY_ENV, CLOUDWATCH_SESSION_TOKEN_ENV, CRUMBTRAIL_USER_AGENT, CloudWatchEvidenceSource, type CloudWatchQueryPlan, type CloudWatchResultRow, type CloudWatchSourceConfig, type CloudflareDataset, CloudflareEvidenceSource, type CloudflarePlan, type CloudflareSourceConfig, type CommentingTicketConnector, CompareError, type CompareOptions, type ComparisonConfidence, type ComparisonVerdict, type CrumbtrailExpressErrorMiddleware, type CrumbtrailExpressErrorNext, type CrumbtrailExpressMiddleware, type CrumbtrailExpressNext, type CrumbtrailExpressOptions, type CrumbtrailExpressRequest, type CrumbtrailExpressResponse, type BackendIntakeWarning as CrumbtrailExpressWarning, type BackendIntakeWarningKind as CrumbtrailExpressWarningKind, DATADOG_API_KEY_ENV, DATADOG_APP_KEY_ENV, DATADOG_AUTH_FIELDS, DATADOG_DEFAULT_SITE, DATADOG_DESCRIPTOR, DATADOG_SITE_ENV, DEFAULT_MAX_TOTAL_BYTES, DEFAULT_SENSITIVE_DB_COLUMNS, DEFAULT_SOURCE_TIMEOUT_MS, DEFAULT_SWEEP_CHECKPOINT_MS, DEFAULT_SWEEP_IDLE_MS, DEFAULT_SWEEP_INTERVAL_MS, DISTINCT_BUGS_SCHEMA_VERSION, DatadogEvidenceSource, type DatadogLog, type DatadogQueryPlan, type DatadogSourceConfig, type DatadogSpan, type DbRequestContext, type DistinctBug, type DistinctBugEvidenceRef, type DistinctBugRecurrence, type DistinctBugRecurrenceInput, type DistinctBugRecurrenceOccurrence, type DistinctBugSeverity, type Divergence, type DuckTypedMssqlPool, type DuckTypedMssqlRequest, type DuckTypedMssqlResult, type DuckTypedMysqlClient, type DuckTypedMysqlResultHeader, type DuckTypedPgClient, type DuckTypedPgQueryResult, type DuckTypedSqliteDatabase, type DuckTypedSqliteRunResult, type DuckTypedSqliteStatement, EVIDENCE_SOURCE_PROVIDERS, CRUMBTRAIL_USER_AGENT as EVIDENCE_SOURCE_USER_AGENT, type EnvChannelDelta, type EnvDiff, type EnvValueChange, type EvidenceSource, type EvidenceSourceProvider, FIX_CONTEXT_SCHEMA_VERSION, type FetchAdapterEvidenceOptions, FilesystemSessionStore, type FixContext, type FixContextDbDiff, type FixContextDbRead, FixContextError, type FixContextPrimaryWindow, type FixContextReproHint, type FixContextSession, type HeadlessSession, type HeadlessSessionOptions, InspectError, type InspectSessionOptions, type InstrumentDbClientOptions, type InstrumentPgClientOptions, type JiraAuth, type JiraBasicAuth, type JiraBearerAuth, JiraTicketClient, type JiraTicketClientConfig, type JiraTicketClientConfigLegacy, type JiraTicketClientConfigWithAuth, McpServer, type McpServerConfig, type OtlpLogsRequest, type OtlpResourceLogs, type OtlpResourceSpans, type OtlpTraceRequest, POSTHOG_API_KEY_ENV, POSTHOG_AUTH_FIELDS, POSTHOG_DEFAULT_HOST, POSTHOG_DESCRIPTOR, POSTHOG_HOST_ENV, POSTHOG_PROJECT_ID_ENV, PROVIDER_IDS, PROVIDER_RECIPES, type PostHogEvent, PostHogEvidenceSource, type PostHogPropertyFilter, type PostHogQueryPlan, type PostHogRecording, type PostHogSourceConfig, type ProviderId, type ProviderRecipe, REGRESSION_CONTEXT_SCHEMA_VERSION, REPLAY_RESULT_SCHEMA_VERSION, type RegressionContext, type ReplayDivergence, type ReplayResult, type ReplayStepResult, SENTRY_AUTH_FIELDS, SENTRY_AUTH_TOKEN_ENV, SENTRY_DEFAULT_HOST, SENTRY_DESCRIPTOR, SENTRY_HOST_ENV, SENTRY_ORG_ENV, SESSION_COMPARE_SCHEMA_VERSION, SPLUNK_AUTH_FIELDS, SPLUNK_DESCRIPTOR, SPLUNK_HOST_ENV, SPLUNK_INDEX_ENV, SPLUNK_TOKEN_ENV, SPLUNK_WEB_URL_ENV, SentryEvidenceSource, type SentryQueryPlan, type SentrySourceConfig, type BugReport as ServerBugReport, type ServerConfig, type SessionComparison, type SessionFileFlags, type SessionFinalizationResult, type SessionInspection, type SessionInspectionArtifact, type SessionListItem, SessionManager, type SessionStore, type SessionSummary, type SessionSweepOptions, type SessionSweepResult, type SessionSweeperHandle, type Severity, type SigV4Input, type SignedHeaders, type SourceHealth, SplunkEvidenceSource, type SplunkQueryPlan, type SplunkResultRow, type SplunkSourceConfig, type StepResolution, type TicketConnector, TicketError, type TicketProvider, autoCapture, buildAdvisoryComment, buildCloudWatchQuery, buildCloudflarePlan, buildDatadogQuery, buildDbDiffEvent, buildDbReadBulkEvent, buildDbReadEvent, buildDistinctBugSignature, buildFixContext, buildPostHogQuery, buildRegressionContext, buildReplayResult, buildSentryQuery, buildSessionSummary, buildSplunkQuery, cloudWatchDeepLink, cloudWatchEvidenceProvider, cloudflareEvidenceProvider, compareSessions, comparisonTitle, createCrumbtrailExpressErrorMiddleware, createCrumbtrailExpressMiddleware, createServer, datadogAppBase, datadogEvidenceProvider, decodeOtlpLogsProtobuf, decodeOtlpTraceProtobuf, defaultSessionStore, evidenceRequestHeaders, evidenceSourcesFromEnv, fetchAdapterEvidence, formatComparisonSummary, formatDuration, formatInspection, getProviderRecipe, groupDistinctBugRecurrences, groupDistinctBugs, inspectSession, instrumentMssqlPool, instrumentMysqlClient, instrumentPgClient, instrumentSqliteDatabase, isProviderId, jiraToSymptom, normalizeCloudWatchRow, normalizeDatadogLog, normalizeDatadogSpan, normalizePostHogEvent, normalizePostHogRecording, normalizeSentryIssue, normalizeSplunkRow, parseMutation, parseRead, parseReplayResult, posthogEventDeepLink, posthogEvidenceProvider, posthogRecordingDeepLink, readPackageVersion, redactEvidenceGap, redactEvidenceItem, redactSourceResult, registerEvidenceProvider, renderCompareReport, renderProviderCliOutput, renderProviderConfig, renderProviderDoc, renderProviderReadme, resolveDbRequestContext, sentryEvidenceProvider, sessionRefLabel, signSigV4, splunkEvidenceProvider, splunkSearchDeepLink, splunkWebBase, startHeadlessSession, startSessionSweeper, sweepIdleSessions, withBoundedRetry, writeReplayResult };
|
package/dist/index.js
CHANGED
|
@@ -91,6 +91,7 @@ import {
|
|
|
91
91
|
cloudWatchEvidenceProvider,
|
|
92
92
|
cloudflareEvidenceProvider,
|
|
93
93
|
compareSessions,
|
|
94
|
+
comparisonTitle,
|
|
94
95
|
createServer,
|
|
95
96
|
datadogAppBase,
|
|
96
97
|
datadogEvidenceProvider,
|
|
@@ -133,6 +134,7 @@ import {
|
|
|
133
134
|
renderProviderReadme,
|
|
134
135
|
resolveBackendRequestCorrelation,
|
|
135
136
|
sentryEvidenceProvider,
|
|
137
|
+
sessionRefLabel,
|
|
136
138
|
signSigV4,
|
|
137
139
|
splunkEvidenceProvider,
|
|
138
140
|
splunkSearchDeepLink,
|
|
@@ -140,7 +142,7 @@ import {
|
|
|
140
142
|
startSessionSweeper,
|
|
141
143
|
sweepIdleSessions,
|
|
142
144
|
withBoundedRetry
|
|
143
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-5HPWIOG3.js";
|
|
144
146
|
import "./chunk-QGM4M3NI.js";
|
|
145
147
|
|
|
146
148
|
// src/db/columns.ts
|
|
@@ -2458,6 +2460,7 @@ export {
|
|
|
2458
2460
|
cloudWatchEvidenceProvider,
|
|
2459
2461
|
cloudflareEvidenceProvider,
|
|
2460
2462
|
compareSessions,
|
|
2463
|
+
comparisonTitle,
|
|
2461
2464
|
createCrumbtrailExpressErrorMiddleware,
|
|
2462
2465
|
createCrumbtrailExpressMiddleware,
|
|
2463
2466
|
createServer,
|
|
@@ -2507,6 +2510,7 @@ export {
|
|
|
2507
2510
|
renderProviderReadme,
|
|
2508
2511
|
resolveDbRequestContext,
|
|
2509
2512
|
sentryEvidenceProvider,
|
|
2513
|
+
sessionRefLabel,
|
|
2510
2514
|
signSigV4,
|
|
2511
2515
|
splunkEvidenceProvider,
|
|
2512
2516
|
splunkSearchDeepLink,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crumbtrail-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Local Crumbtrail server, MCP evidence tools, Express middleware, and CLI for self-hosted debugging sessions.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/
|
|
8
|
+
"url": "git+https://github.com/crumbtrail-dev/crumbtrail-js.git",
|
|
9
9
|
"directory": "packages/node"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"protobufjs": "^8.6.5",
|
|
45
|
-
"crumbtrail-core": "^0.
|
|
45
|
+
"crumbtrail-core": "^0.2.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/express": "^5.0.6",
|
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
"express": "^5.2.1",
|
|
51
51
|
"typescript": "^5.7.0"
|
|
52
52
|
},
|
|
53
|
+
"homepage": "https://github.com/crumbtrail-dev/crumbtrail-js/tree/main/packages/node#readme",
|
|
54
|
+
"bugs": {
|
|
55
|
+
"url": "https://github.com/crumbtrail-dev/crumbtrail-js/issues"
|
|
56
|
+
},
|
|
53
57
|
"scripts": {
|
|
54
58
|
"build": "tsup",
|
|
55
59
|
"test": "vitest run",
|