@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/init.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "../chunk-2M57EO6U.js";
|
|
5
5
|
import {
|
|
6
6
|
verifyInitReachable
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-TANUWTFO.js";
|
|
8
8
|
import {
|
|
9
9
|
buildImportGraph
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-MMKFFF2L.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig
|
|
13
13
|
} from "../chunk-VUZCLMIX.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
unwrapCJSExport,
|
|
22
22
|
unwrapExport,
|
|
23
23
|
writeDiscoveryFile
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-VJQIFY33.js";
|
|
25
25
|
import {
|
|
26
26
|
detectAgents,
|
|
27
27
|
generateInfoSection,
|
|
@@ -40,8 +40,8 @@ import {
|
|
|
40
40
|
readEnvLocalApiKey,
|
|
41
41
|
resolveEffectiveMcpCredential,
|
|
42
42
|
writeMcpMarker
|
|
43
|
-
} from "../chunk-
|
|
44
|
-
import "../chunk-
|
|
43
|
+
} from "../chunk-MFYOQOD7.js";
|
|
44
|
+
import "../chunk-4WI7B5FQ.js";
|
|
45
45
|
import {
|
|
46
46
|
NEXT_CONFIG_NAMES,
|
|
47
47
|
formatAgentName
|
|
@@ -994,7 +994,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
|
|
|
994
994
|
}
|
|
995
995
|
const baseConfig = resolveConfig({ apiKey: devKey });
|
|
996
996
|
const config = { ...baseConfig, apiKey: devKey };
|
|
997
|
-
const sdkVersion = true ? "1.
|
|
997
|
+
const sdkVersion = true ? "1.4.0" : "0.0.0-dev";
|
|
998
998
|
const result = await verifyInitReachable(config, anonKey, sdkVersion);
|
|
999
999
|
if (result.ok) {
|
|
1000
1000
|
return { outcome: "verified" };
|
package/dist/cli/mcp-add.cjs
CHANGED
|
@@ -13831,7 +13831,18 @@ var CaptureConfigSchema = external_exports.object({
|
|
|
13831
13831
|
fullConsoleOutput: external_exports.boolean(),
|
|
13832
13832
|
importGraph: external_exports.boolean(),
|
|
13833
13833
|
consoleErrors: external_exports.boolean().optional().default(false),
|
|
13834
|
-
errorResponseBodies: external_exports.boolean().optional().default(false)
|
|
13834
|
+
errorResponseBodies: external_exports.boolean().optional().default(false),
|
|
13835
|
+
/**
|
|
13836
|
+
* Account opt-in for side-effect evidence emission (SDK-049).
|
|
13837
|
+
*
|
|
13838
|
+
* When `false` (default), `recordSideEffect()` is a silent no-op:
|
|
13839
|
+
* no allowlist evaluation runs and no `glasstrace.side_effect.*`
|
|
13840
|
+
* attribute reaches the wire. When `true`, allowlisted side-effect
|
|
13841
|
+
* metadata is attached to the active OTel span subject to the
|
|
13842
|
+
* client-side allowlist enforcement layered with the product's
|
|
13843
|
+
* storage-time filter as defense-in-depth.
|
|
13844
|
+
*/
|
|
13845
|
+
sideEffectEvidence: external_exports.boolean().optional().default(false)
|
|
13835
13846
|
});
|
|
13836
13847
|
var SdkCachedConfigSchema = external_exports.object({
|
|
13837
13848
|
response: external_exports.record(external_exports.string(), external_exports.unknown()),
|