crumbtrail-core 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/index.cjs +24 -0
- package/dist/index.d.cts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +23 -0
- package/package.json +6 -2
package/dist/index.cjs
CHANGED
|
@@ -265,6 +265,7 @@ __export(index_exports, {
|
|
|
265
265
|
REDACTED_STORAGE_KEY: () => REDACTED_STORAGE_KEY,
|
|
266
266
|
REDACTED_VALUE: () => REDACTED_VALUE,
|
|
267
267
|
RingBuffer: () => RingBuffer,
|
|
268
|
+
STACK_IDS: () => STACK_IDS,
|
|
268
269
|
W3C_TRACEPARENT_HEADER: () => W3C_TRACEPARENT_HEADER,
|
|
269
270
|
WebTargetDescriptorResolver: () => WebTargetDescriptorResolver,
|
|
270
271
|
abandonedFlowDetector: () => abandonedFlowDetector,
|
|
@@ -4792,6 +4793,28 @@ function suggestCaptureDirectives(symptom, evidence, gaps) {
|
|
|
4792
4793
|
|
|
4793
4794
|
// src/evidence-source.ts
|
|
4794
4795
|
var EVIDENCE_SOURCE_SCHEMA_VERSION = "evidence-source.v1";
|
|
4796
|
+
|
|
4797
|
+
// src/stacks.ts
|
|
4798
|
+
var STACK_IDS = [
|
|
4799
|
+
"nextjs",
|
|
4800
|
+
"react",
|
|
4801
|
+
"vue",
|
|
4802
|
+
"svelte",
|
|
4803
|
+
"vite",
|
|
4804
|
+
"express",
|
|
4805
|
+
"hono",
|
|
4806
|
+
"node",
|
|
4807
|
+
"django",
|
|
4808
|
+
"flask",
|
|
4809
|
+
"fastapi",
|
|
4810
|
+
"dotnet",
|
|
4811
|
+
"go",
|
|
4812
|
+
"rails",
|
|
4813
|
+
"postgres",
|
|
4814
|
+
"grafana",
|
|
4815
|
+
"loki",
|
|
4816
|
+
"docker"
|
|
4817
|
+
];
|
|
4795
4818
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4796
4819
|
0 && (module.exports = {
|
|
4797
4820
|
BROWSER_REDACTION_POLICY,
|
|
@@ -4820,6 +4843,7 @@ var EVIDENCE_SOURCE_SCHEMA_VERSION = "evidence-source.v1";
|
|
|
4820
4843
|
REDACTED_STORAGE_KEY,
|
|
4821
4844
|
REDACTED_VALUE,
|
|
4822
4845
|
RingBuffer,
|
|
4846
|
+
STACK_IDS,
|
|
4823
4847
|
W3C_TRACEPARENT_HEADER,
|
|
4824
4848
|
WebTargetDescriptorResolver,
|
|
4825
4849
|
abandonedFlowDetector,
|
package/dist/index.d.cts
CHANGED
|
@@ -957,4 +957,18 @@ interface EvidenceSourceResult {
|
|
|
957
957
|
};
|
|
958
958
|
}
|
|
959
959
|
|
|
960
|
-
|
|
960
|
+
/**
|
|
961
|
+
* The stack vocabulary — the set of frameworks and runtimes Crumbtrail knows how
|
|
962
|
+
* to instrument.
|
|
963
|
+
*
|
|
964
|
+
* This lives in core because it is shared domain language, not presentation: the
|
|
965
|
+
* CLI uses it to pick an install recipe, install-shared uses it to build agent
|
|
966
|
+
* prompts, and the design system uses it to pick a brand mark. Core is the only
|
|
967
|
+
* package all three can depend on without dragging React into a Node CLI.
|
|
968
|
+
*/
|
|
969
|
+
/** The exact set of stacks with first-class support. */
|
|
970
|
+
type Stack = "nextjs" | "react" | "vue" | "svelte" | "vite" | "express" | "hono" | "node" | "django" | "flask" | "fastapi" | "dotnet" | "go" | "rails" | "postgres" | "grafana" | "loki" | "docker";
|
|
971
|
+
/** Stable ordered id list, handy for iterating or building pickers. */
|
|
972
|
+
declare const STACK_IDS: readonly Stack[];
|
|
973
|
+
|
|
974
|
+
export { type AbandonedFlowOptions, type AddBugEventOptions, type AssembleBundleInput, type AutoFlagController, type AutoFlagOptions, BROWSER_REDACTION_POLICY, type BodyRedactionOptions, type BodyRedactionResult, type BugEvent, type BugReport, CRUMBTRAIL_EVENT_KINDS, CRUMBTRAIL_REQUEST_HEADER, CRUMBTRAIL_REQUEST_HEADER_LOWER, CRUMBTRAIL_REQUEST_ID_MAX_LENGTH, CRUMBTRAIL_SCHEMA_VERSION, CRUMBTRAIL_SESSION_HEADER, CRUMBTRAIL_SESSION_HEADER_LOWER, type CaptureDirective, type CollectorCleanup, type CollectorContext, type CommitInfo, Crumbtrail, type CrumbtrailCapabilities, type CrumbtrailConfig, type CrumbtrailPlatform, type CrumbtrailPreset, type CrumbtrailSdkDescriptor, type CrumbtrailTransport, DB_DIFF_BULK_EVENT_KIND, DB_DIFF_EVENT_KIND, DB_READ_BULK_EVENT_KIND, DB_READ_EVENT_KIND, DEFAULT_CONFIG, DEFAULT_SESSION_STORAGE_KEY, type DbDiffBulkEventData, type DbDiffEventData, type DbDiffOp, type DbEngine, type DbReadBulkEventData, type DbReadEventData, EVIDENCE_SCHEMA_VERSION, EVIDENCE_SOURCE_SCHEMA_VERSION, type ElementSignature, type EnvDeclaration, type EnvSnapshot, EventBus, type EvidenceGap, type EvidenceItem, type EvidenceJoinKey, type EvidenceLane, type EvidenceQuery, type EvidenceRef, type EvidenceSourceDescriptor, type EvidenceSourceResult, FUSION_SCHEMA_VERSION, type FlagBugOptions, type GitHostClient, type GitHostRef, HttpTransport, type Hypothesis, type HypothesisKind, type InputValueRedactionOptions, type IntentSignal, type InteractionElementDescriptor, type InteractionElementDescriptorFactory, type OutboundCorrelation, PRESET_FULL, PRESET_LIGHT, PRESET_PASSIVE, type PayloadSummary, type PersistedSession, REDACTED_STORAGE_KEY, REDACTED_VALUE, type RageClickOptions, type RankedBundle, type RedactionAction, type RedactionField, type RedactionMetadata, type RedactionResult, type RetryStormOptions, RingBuffer, STACK_IDS, type SessionStore, type Signal, type SignalDetector, type SlowResponseOptions, type Stack, type StoredValueRedactionOptions, type Symptom, type TargetDescriptor, type TargetDescriptorResolver, type W3CTraceContext, W3C_TRACEPARENT_HEADER, WebTargetDescriptorResolver, abandonedFlowDetector, assembleBundle, attachRedactionMetadata, buildEnvDelta, buildEnvSnapshot, canInjectCorrelationHeaders, computeElementPath, computeElementSignature, createAutoFlagController, createCrumbtrailRequestHeaders, createWebSessionStore, environmentCollector, errorDetector, errorSignature, formatTraceparent, generateRequestId, generateSpanId, generateTraceContext, generateTraceId, hashString, inferIntent, mergeRedactionMetadata, parseTraceparent, rageClickDetector, redactCookieMap, redactCookieName, redactCookieValue, redactHeaders, redactInputValue, redactNetworkTextBody, redactStorageKey, redactStoredValue, redactTokenLikeString, redactUrl, redactUrlsInText, redactValue, resolveOutboundCorrelation, retryStormDetector, slowResponseDetector, summarizeBinaryPayload, summarizeOmittedPayload, webTargetDescriptorResolver };
|
package/dist/index.d.ts
CHANGED
|
@@ -957,4 +957,18 @@ interface EvidenceSourceResult {
|
|
|
957
957
|
};
|
|
958
958
|
}
|
|
959
959
|
|
|
960
|
-
|
|
960
|
+
/**
|
|
961
|
+
* The stack vocabulary — the set of frameworks and runtimes Crumbtrail knows how
|
|
962
|
+
* to instrument.
|
|
963
|
+
*
|
|
964
|
+
* This lives in core because it is shared domain language, not presentation: the
|
|
965
|
+
* CLI uses it to pick an install recipe, install-shared uses it to build agent
|
|
966
|
+
* prompts, and the design system uses it to pick a brand mark. Core is the only
|
|
967
|
+
* package all three can depend on without dragging React into a Node CLI.
|
|
968
|
+
*/
|
|
969
|
+
/** The exact set of stacks with first-class support. */
|
|
970
|
+
type Stack = "nextjs" | "react" | "vue" | "svelte" | "vite" | "express" | "hono" | "node" | "django" | "flask" | "fastapi" | "dotnet" | "go" | "rails" | "postgres" | "grafana" | "loki" | "docker";
|
|
971
|
+
/** Stable ordered id list, handy for iterating or building pickers. */
|
|
972
|
+
declare const STACK_IDS: readonly Stack[];
|
|
973
|
+
|
|
974
|
+
export { type AbandonedFlowOptions, type AddBugEventOptions, type AssembleBundleInput, type AutoFlagController, type AutoFlagOptions, BROWSER_REDACTION_POLICY, type BodyRedactionOptions, type BodyRedactionResult, type BugEvent, type BugReport, CRUMBTRAIL_EVENT_KINDS, CRUMBTRAIL_REQUEST_HEADER, CRUMBTRAIL_REQUEST_HEADER_LOWER, CRUMBTRAIL_REQUEST_ID_MAX_LENGTH, CRUMBTRAIL_SCHEMA_VERSION, CRUMBTRAIL_SESSION_HEADER, CRUMBTRAIL_SESSION_HEADER_LOWER, type CaptureDirective, type CollectorCleanup, type CollectorContext, type CommitInfo, Crumbtrail, type CrumbtrailCapabilities, type CrumbtrailConfig, type CrumbtrailPlatform, type CrumbtrailPreset, type CrumbtrailSdkDescriptor, type CrumbtrailTransport, DB_DIFF_BULK_EVENT_KIND, DB_DIFF_EVENT_KIND, DB_READ_BULK_EVENT_KIND, DB_READ_EVENT_KIND, DEFAULT_CONFIG, DEFAULT_SESSION_STORAGE_KEY, type DbDiffBulkEventData, type DbDiffEventData, type DbDiffOp, type DbEngine, type DbReadBulkEventData, type DbReadEventData, EVIDENCE_SCHEMA_VERSION, EVIDENCE_SOURCE_SCHEMA_VERSION, type ElementSignature, type EnvDeclaration, type EnvSnapshot, EventBus, type EvidenceGap, type EvidenceItem, type EvidenceJoinKey, type EvidenceLane, type EvidenceQuery, type EvidenceRef, type EvidenceSourceDescriptor, type EvidenceSourceResult, FUSION_SCHEMA_VERSION, type FlagBugOptions, type GitHostClient, type GitHostRef, HttpTransport, type Hypothesis, type HypothesisKind, type InputValueRedactionOptions, type IntentSignal, type InteractionElementDescriptor, type InteractionElementDescriptorFactory, type OutboundCorrelation, PRESET_FULL, PRESET_LIGHT, PRESET_PASSIVE, type PayloadSummary, type PersistedSession, REDACTED_STORAGE_KEY, REDACTED_VALUE, type RageClickOptions, type RankedBundle, type RedactionAction, type RedactionField, type RedactionMetadata, type RedactionResult, type RetryStormOptions, RingBuffer, STACK_IDS, type SessionStore, type Signal, type SignalDetector, type SlowResponseOptions, type Stack, type StoredValueRedactionOptions, type Symptom, type TargetDescriptor, type TargetDescriptorResolver, type W3CTraceContext, W3C_TRACEPARENT_HEADER, WebTargetDescriptorResolver, abandonedFlowDetector, assembleBundle, attachRedactionMetadata, buildEnvDelta, buildEnvSnapshot, canInjectCorrelationHeaders, computeElementPath, computeElementSignature, createAutoFlagController, createCrumbtrailRequestHeaders, createWebSessionStore, environmentCollector, errorDetector, errorSignature, formatTraceparent, generateRequestId, generateSpanId, generateTraceContext, generateTraceId, hashString, inferIntent, mergeRedactionMetadata, parseTraceparent, rageClickDetector, redactCookieMap, redactCookieName, redactCookieValue, redactHeaders, redactInputValue, redactNetworkTextBody, redactStorageKey, redactStoredValue, redactTokenLikeString, redactUrl, redactUrlsInText, redactValue, resolveOutboundCorrelation, retryStormDetector, slowResponseDetector, summarizeBinaryPayload, summarizeOmittedPayload, webTargetDescriptorResolver };
|
package/dist/index.js
CHANGED
|
@@ -4478,6 +4478,28 @@ function suggestCaptureDirectives(symptom, evidence, gaps) {
|
|
|
4478
4478
|
|
|
4479
4479
|
// src/evidence-source.ts
|
|
4480
4480
|
var EVIDENCE_SOURCE_SCHEMA_VERSION = "evidence-source.v1";
|
|
4481
|
+
|
|
4482
|
+
// src/stacks.ts
|
|
4483
|
+
var STACK_IDS = [
|
|
4484
|
+
"nextjs",
|
|
4485
|
+
"react",
|
|
4486
|
+
"vue",
|
|
4487
|
+
"svelte",
|
|
4488
|
+
"vite",
|
|
4489
|
+
"express",
|
|
4490
|
+
"hono",
|
|
4491
|
+
"node",
|
|
4492
|
+
"django",
|
|
4493
|
+
"flask",
|
|
4494
|
+
"fastapi",
|
|
4495
|
+
"dotnet",
|
|
4496
|
+
"go",
|
|
4497
|
+
"rails",
|
|
4498
|
+
"postgres",
|
|
4499
|
+
"grafana",
|
|
4500
|
+
"loki",
|
|
4501
|
+
"docker"
|
|
4502
|
+
];
|
|
4481
4503
|
export {
|
|
4482
4504
|
BROWSER_REDACTION_POLICY,
|
|
4483
4505
|
CRUMBTRAIL_EVENT_KINDS,
|
|
@@ -4505,6 +4527,7 @@ export {
|
|
|
4505
4527
|
REDACTED_STORAGE_KEY,
|
|
4506
4528
|
REDACTED_VALUE,
|
|
4507
4529
|
RingBuffer,
|
|
4530
|
+
STACK_IDS,
|
|
4508
4531
|
W3C_TRACEPARENT_HEADER,
|
|
4509
4532
|
WebTargetDescriptorResolver,
|
|
4510
4533
|
abandonedFlowDetector,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crumbtrail-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Browser SDK for capturing Crumbtrail sessions and sending evidence to a local Crumbtrail server.",
|
|
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/core"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
@@ -33,6 +33,10 @@
|
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
+
"homepage": "https://github.com/crumbtrail-dev/crumbtrail-js/tree/main/packages/core#readme",
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/crumbtrail-dev/crumbtrail-js/issues"
|
|
39
|
+
},
|
|
36
40
|
"scripts": {
|
|
37
41
|
"build": "tsup",
|
|
38
42
|
"test": "vitest run",
|