@glasstrace/sdk 1.3.9 → 1.4.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/README.md +68 -0
- package/dist/capture-error-BmQz7xF6.d.cts +455 -0
- package/dist/capture-error-CTgSYxek.d.ts +455 -0
- package/dist/{chunk-XS5W3SPL.js → chunk-4WI7B5FQ.js} +91 -5
- package/dist/chunk-4WI7B5FQ.js.map +1 -0
- package/dist/{chunk-GYTCZSAV.js → chunk-MFYOQOD7.js} +2 -2
- package/dist/{chunk-4WUHMLMM.js → chunk-MMKFFF2L.js} +2 -2
- package/dist/{chunk-FKBCEOJ5.js → chunk-Q42BY5BA.js} +2 -2
- package/dist/{chunk-DBKG6SRI.js → chunk-QU26IKIJ.js} +2 -2
- package/dist/{chunk-ADUD4PEK.js → chunk-TANUWTFO.js} +3 -3
- package/dist/{chunk-LJMZXJ45.js → chunk-VJQIFY33.js} +3 -3
- package/dist/{chunk-JH7EGRC5.js → chunk-VQDYXXVS.js} +9 -9
- package/dist/cli/init.cjs +13 -2
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +6 -6
- package/dist/cli/mcp-add.cjs +12 -1
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +2 -2
- package/dist/cli/uninit.js +3 -3
- package/dist/cli/validate.cjs +12 -1
- package/dist/cli/validate.cjs.map +1 -1
- package/dist/cli/validate.js +2 -2
- package/dist/{edge-entry-BSKA1l_0.d.ts → edge-entry-AWO70gje.d.ts} +1 -1
- package/dist/{edge-entry-DyMWa6JK.d.cts → edge-entry-DaeG7D7S.d.cts} +1 -1
- package/dist/edge-entry.cjs +43 -2
- package/dist/edge-entry.cjs.map +1 -1
- package/dist/edge-entry.d.cts +2 -2
- package/dist/edge-entry.d.ts +2 -2
- package/dist/edge-entry.js +2 -2
- package/dist/index.cjs +369 -8
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-Bo_Rxund.d.cts → index.d-Dq33YwFT.d.cts} +91 -1
- package/dist/{index.d-Bo_Rxund.d.ts → index.d-Dq33YwFT.d.ts} +91 -1
- package/dist/index.d.cts +91 -431
- package/dist/index.d.ts +91 -431
- package/dist/index.js +290 -6
- package/dist/index.js.map +1 -1
- package/dist/node-entry.cjs +49 -7
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.d.cts +3 -3
- package/dist/node-entry.d.ts +3 -3
- package/dist/node-entry.js +7 -7
- package/dist/node-subpath.cjs +12 -1
- package/dist/node-subpath.cjs.map +1 -1
- package/dist/node-subpath.d.cts +1 -1
- package/dist/node-subpath.d.ts +1 -1
- package/dist/node-subpath.js +3 -3
- package/dist/{source-map-uploader-FSTHCYDR.js → source-map-uploader-PB3M4PPP.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-XS5W3SPL.js.map +0 -1
- /package/dist/{chunk-GYTCZSAV.js.map → chunk-MFYOQOD7.js.map} +0 -0
- /package/dist/{chunk-4WUHMLMM.js.map → chunk-MMKFFF2L.js.map} +0 -0
- /package/dist/{chunk-FKBCEOJ5.js.map → chunk-Q42BY5BA.js.map} +0 -0
- /package/dist/{chunk-DBKG6SRI.js.map → chunk-QU26IKIJ.js.map} +0 -0
- /package/dist/{chunk-ADUD4PEK.js.map → chunk-TANUWTFO.js.map} +0 -0
- /package/dist/{chunk-LJMZXJ45.js.map → chunk-VJQIFY33.js.map} +0 -0
- /package/dist/{chunk-JH7EGRC5.js.map → chunk-VQDYXXVS.js.map} +0 -0
- /package/dist/{source-map-uploader-FSTHCYDR.js.map → source-map-uploader-PB3M4PPP.js.map} +0 -0
package/dist/cli/validate.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
identityFingerprint,
|
|
3
3
|
readMcpMarker,
|
|
4
4
|
resolveEffectiveMcpCredential
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-MFYOQOD7.js";
|
|
6
|
+
import "../chunk-4WI7B5FQ.js";
|
|
7
7
|
import "../chunk-NSBPE2FW.js";
|
|
8
8
|
|
|
9
9
|
// src/cli/validate.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as SdkDiagnosticCode, j as SessionId, C as CaptureConfig } from './index.d-Dq33YwFT.js';
|
|
2
2
|
import { ReadableSpan } from './export/ReadableSpan';
|
|
3
3
|
import { Span } from './Span';
|
|
4
4
|
import { SpanProcessor } from './SpanProcessor';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as SdkDiagnosticCode, j as SessionId, C as CaptureConfig } from './index.d-Dq33YwFT.cjs';
|
|
2
2
|
import { ReadableSpan } from './export/ReadableSpan';
|
|
3
3
|
import { Span } from './Span';
|
|
4
4
|
import { SpanProcessor } from './SpanProcessor';
|
package/dist/edge-entry.cjs
CHANGED
|
@@ -14561,7 +14561,18 @@ var CaptureConfigSchema = external_exports.object({
|
|
|
14561
14561
|
fullConsoleOutput: external_exports.boolean(),
|
|
14562
14562
|
importGraph: external_exports.boolean(),
|
|
14563
14563
|
consoleErrors: external_exports.boolean().optional().default(false),
|
|
14564
|
-
errorResponseBodies: external_exports.boolean().optional().default(false)
|
|
14564
|
+
errorResponseBodies: external_exports.boolean().optional().default(false),
|
|
14565
|
+
/**
|
|
14566
|
+
* Account opt-in for side-effect evidence emission (SDK-049).
|
|
14567
|
+
*
|
|
14568
|
+
* When `false` (default), `recordSideEffect()` is a silent no-op:
|
|
14569
|
+
* no allowlist evaluation runs and no `glasstrace.side_effect.*`
|
|
14570
|
+
* attribute reaches the wire. When `true`, allowlisted side-effect
|
|
14571
|
+
* metadata is attached to the active OTel span subject to the
|
|
14572
|
+
* client-side allowlist enforcement layered with the product's
|
|
14573
|
+
* storage-time filter as defense-in-depth.
|
|
14574
|
+
*/
|
|
14575
|
+
sideEffectEvidence: external_exports.boolean().optional().default(false)
|
|
14565
14576
|
});
|
|
14566
14577
|
var SdkCachedConfigSchema = external_exports.object({
|
|
14567
14578
|
response: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
@@ -14621,7 +14632,37 @@ var GLASSTRACE_ATTRIBUTE_NAMES = {
|
|
|
14621
14632
|
TRIGGER_TYPE: "glasstrace.trigger.type",
|
|
14622
14633
|
ELEMENT_FINGERPRINT: "glasstrace.element.fingerprint",
|
|
14623
14634
|
ELEMENT_CONFIDENCE: "glasstrace.element.confidence",
|
|
14624
|
-
TAB_ID: "glasstrace.tab.id"
|
|
14635
|
+
TAB_ID: "glasstrace.tab.id",
|
|
14636
|
+
// Side-effect evidence (SDK-049 / SCHEMA-036).
|
|
14637
|
+
// Top-level operation attributes attached to the active span when a
|
|
14638
|
+
// side-effect is recorded via `recordSideEffect()`. The wire-string
|
|
14639
|
+
// set aligns verbatim with the product-side filter in
|
|
14640
|
+
// `packages/ingestion/src/services/trace-writer.ts`.
|
|
14641
|
+
SIDE_EFFECT_KIND: "glasstrace.side_effect.kind",
|
|
14642
|
+
SIDE_EFFECT_OPERATION: "glasstrace.side_effect.operation",
|
|
14643
|
+
SIDE_EFFECT_STATUS: "glasstrace.side_effect.status",
|
|
14644
|
+
SIDE_EFFECT_PHASE: "glasstrace.side_effect.phase",
|
|
14645
|
+
// Allowlisted semantic field attributes — one per allowlisted key.
|
|
14646
|
+
// Wire keys are camelCase to match the SCHEMA-036 enum members
|
|
14647
|
+
// exactly; the SDK constant names are SCREAMING_SNAKE per the rest
|
|
14648
|
+
// of GLASSTRACE_ATTRIBUTE_NAMES.
|
|
14649
|
+
SIDE_EFFECT_FIELD_TEMPLATE_KEY: "glasstrace.side_effect.field.templateKey",
|
|
14650
|
+
SIDE_EFFECT_FIELD_PROVIDER_OPERATION: "glasstrace.side_effect.field.providerOperation",
|
|
14651
|
+
SIDE_EFFECT_FIELD_ROLE: "glasstrace.side_effect.field.role",
|
|
14652
|
+
SIDE_EFFECT_FIELD_LOCALE: "glasstrace.side_effect.field.locale",
|
|
14653
|
+
SIDE_EFFECT_FIELD_TIMEZONE: "glasstrace.side_effect.field.timezone",
|
|
14654
|
+
SIDE_EFFECT_FIELD_STATUS: "glasstrace.side_effect.field.status",
|
|
14655
|
+
SIDE_EFFECT_FIELD_PHASE: "glasstrace.side_effect.field.phase",
|
|
14656
|
+
// Omission reason attributes — one per allowlisted reason. The
|
|
14657
|
+
// attribute value carries an integer count; the rejected value is
|
|
14658
|
+
// never echoed.
|
|
14659
|
+
SIDE_EFFECT_OMITTED_PII: "glasstrace.side_effect.omitted.pii",
|
|
14660
|
+
SIDE_EFFECT_OMITTED_SECRET: "glasstrace.side_effect.omitted.secret",
|
|
14661
|
+
SIDE_EFFECT_OMITTED_RAW_PAYLOAD: "glasstrace.side_effect.omitted.raw_payload",
|
|
14662
|
+
SIDE_EFFECT_OMITTED_UNSUPPORTED_KEY: "glasstrace.side_effect.omitted.unsupported_key",
|
|
14663
|
+
SIDE_EFFECT_OMITTED_VALUE_TOO_LONG: "glasstrace.side_effect.omitted.value_too_long",
|
|
14664
|
+
SIDE_EFFECT_OMITTED_NOT_EMITTED: "glasstrace.side_effect.omitted.not_emitted",
|
|
14665
|
+
SIDE_EFFECT_OMITTED_CAPTURE_DISABLED: "glasstrace.side_effect.omitted.capture_disabled"
|
|
14625
14666
|
};
|
|
14626
14667
|
var MAX_SOURCE_MAP_FILE_PATH_LENGTH = 512;
|
|
14627
14668
|
var MAX_SOURCE_MAP_FILE_SIZE = 50 * 1024 * 1024;
|