@rivetkit/traces 0.0.0-pr.4600.db261bc

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.
Files changed (55) hide show
  1. package/dist/schemas/v1.ts +653 -0
  2. package/dist/tsup/chunk-7RQXHEKZ.js +541 -0
  3. package/dist/tsup/chunk-7RQXHEKZ.js.map +1 -0
  4. package/dist/tsup/chunk-AQ2YFUDS.cjs +407 -0
  5. package/dist/tsup/chunk-AQ2YFUDS.cjs.map +1 -0
  6. package/dist/tsup/chunk-EFMYWW4F.js +407 -0
  7. package/dist/tsup/chunk-EFMYWW4F.js.map +1 -0
  8. package/dist/tsup/chunk-PEQOL4YP.cjs +66 -0
  9. package/dist/tsup/chunk-PEQOL4YP.cjs.map +1 -0
  10. package/dist/tsup/chunk-QOSSO6CN.cjs +541 -0
  11. package/dist/tsup/chunk-QOSSO6CN.cjs.map +1 -0
  12. package/dist/tsup/chunk-W73DVHQG.js +66 -0
  13. package/dist/tsup/chunk-W73DVHQG.js.map +1 -0
  14. package/dist/tsup/encoding.cjs +20 -0
  15. package/dist/tsup/encoding.cjs.map +1 -0
  16. package/dist/tsup/encoding.d.cts +6 -0
  17. package/dist/tsup/encoding.d.ts +6 -0
  18. package/dist/tsup/encoding.js +20 -0
  19. package/dist/tsup/encoding.js.map +1 -0
  20. package/dist/tsup/index.browser.cjs +15 -0
  21. package/dist/tsup/index.browser.cjs.map +1 -0
  22. package/dist/tsup/index.browser.d.cts +7 -0
  23. package/dist/tsup/index.browser.d.ts +7 -0
  24. package/dist/tsup/index.browser.js +15 -0
  25. package/dist/tsup/index.browser.js.map +1 -0
  26. package/dist/tsup/index.cjs +932 -0
  27. package/dist/tsup/index.cjs.map +1 -0
  28. package/dist/tsup/index.d.cts +9 -0
  29. package/dist/tsup/index.d.ts +9 -0
  30. package/dist/tsup/index.js +932 -0
  31. package/dist/tsup/index.js.map +1 -0
  32. package/dist/tsup/noop-CcgjEgCu.d.cts +99 -0
  33. package/dist/tsup/noop-D-YAZiGa.d.ts +99 -0
  34. package/dist/tsup/otlp-Da4Yz0xC.d.cts +81 -0
  35. package/dist/tsup/otlp-Da4Yz0xC.d.ts +81 -0
  36. package/dist/tsup/otlp-entry.cjs +16 -0
  37. package/dist/tsup/otlp-entry.cjs.map +1 -0
  38. package/dist/tsup/otlp-entry.d.cts +10 -0
  39. package/dist/tsup/otlp-entry.d.ts +10 -0
  40. package/dist/tsup/otlp-entry.js +16 -0
  41. package/dist/tsup/otlp-entry.js.map +1 -0
  42. package/dist/tsup/v1-DovAIc7f.d.cts +118 -0
  43. package/dist/tsup/v1-DovAIc7f.d.ts +118 -0
  44. package/package.json +74 -0
  45. package/schemas/v1.bare +177 -0
  46. package/schemas/versioned.ts +99 -0
  47. package/src/encoding.ts +18 -0
  48. package/src/index.browser.ts +13 -0
  49. package/src/index.ts +29 -0
  50. package/src/noop.ts +84 -0
  51. package/src/otlp-entry.ts +18 -0
  52. package/src/otlp.ts +166 -0
  53. package/src/read-range.ts +492 -0
  54. package/src/traces.ts +1214 -0
  55. package/src/types.ts +99 -0
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkQOSSO6CNcjs = require('./chunk-QOSSO6CN.cjs');
5
+
6
+ // src/encoding.ts
7
+ function encodeReadRangeWire(wire) {
8
+ return _chunkQOSSO6CNcjs.READ_RANGE_VERSIONED.serializeWithEmbeddedVersion(
9
+ wire,
10
+ _chunkQOSSO6CNcjs.CURRENT_VERSION
11
+ );
12
+ }
13
+ function decodeReadRangeWire(bytes) {
14
+ return _chunkQOSSO6CNcjs.READ_RANGE_VERSIONED.deserializeWithEmbeddedVersion(bytes);
15
+ }
16
+
17
+
18
+
19
+ exports.decodeReadRangeWire = decodeReadRangeWire; exports.encodeReadRangeWire = encodeReadRangeWire;
20
+ //# sourceMappingURL=encoding.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/traces/dist/tsup/encoding.cjs","../../src/encoding.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACA;ACGO,SAAS,mBAAA,CAAoB,IAAA,EAAiC;AACpE,EAAA,OAAO,sCAAA,CAAqB,4BAAA;AAAA,IAC3B,IAAA;AAAA,IACA;AAAA,EACD,CAAA;AACD;AAEO,SAAS,mBAAA,CAAoB,KAAA,EAAkC;AACrE,EAAA,OAAO,sCAAA,CAAqB,8BAAA,CAA+B,KAAK,CAAA;AACjE;ADFA;AACE;AACA;AACF,qGAAC","file":"/home/runner/work/rivet/rivet/rivetkit-typescript/packages/traces/dist/tsup/encoding.cjs","sourcesContent":[null,"import {\n\tCURRENT_VERSION,\n\tREAD_RANGE_VERSIONED,\n\ttype ReadRangeWire,\n} from \"../schemas/versioned.js\";\n\nexport type { ReadRangeWire };\n\nexport function encodeReadRangeWire(wire: ReadRangeWire): Uint8Array {\n\treturn READ_RANGE_VERSIONED.serializeWithEmbeddedVersion(\n\t\twire,\n\t\tCURRENT_VERSION,\n\t);\n}\n\nexport function decodeReadRangeWire(bytes: Uint8Array): ReadRangeWire {\n\treturn READ_RANGE_VERSIONED.deserializeWithEmbeddedVersion(bytes);\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { R as ReadRangeWire } from './v1-DovAIc7f.cjs';
2
+
3
+ declare function encodeReadRangeWire(wire: ReadRangeWire): Uint8Array;
4
+ declare function decodeReadRangeWire(bytes: Uint8Array): ReadRangeWire;
5
+
6
+ export { ReadRangeWire, decodeReadRangeWire, encodeReadRangeWire };
@@ -0,0 +1,6 @@
1
+ import { R as ReadRangeWire } from './v1-DovAIc7f.js';
2
+
3
+ declare function encodeReadRangeWire(wire: ReadRangeWire): Uint8Array;
4
+ declare function decodeReadRangeWire(bytes: Uint8Array): ReadRangeWire;
5
+
6
+ export { ReadRangeWire, decodeReadRangeWire, encodeReadRangeWire };
@@ -0,0 +1,20 @@
1
+ import {
2
+ CURRENT_VERSION,
3
+ READ_RANGE_VERSIONED
4
+ } from "./chunk-7RQXHEKZ.js";
5
+
6
+ // src/encoding.ts
7
+ function encodeReadRangeWire(wire) {
8
+ return READ_RANGE_VERSIONED.serializeWithEmbeddedVersion(
9
+ wire,
10
+ CURRENT_VERSION
11
+ );
12
+ }
13
+ function decodeReadRangeWire(bytes) {
14
+ return READ_RANGE_VERSIONED.deserializeWithEmbeddedVersion(bytes);
15
+ }
16
+ export {
17
+ decodeReadRangeWire,
18
+ encodeReadRangeWire
19
+ };
20
+ //# sourceMappingURL=encoding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/encoding.ts"],"sourcesContent":["import {\n\tCURRENT_VERSION,\n\tREAD_RANGE_VERSIONED,\n\ttype ReadRangeWire,\n} from \"../schemas/versioned.js\";\n\nexport type { ReadRangeWire };\n\nexport function encodeReadRangeWire(wire: ReadRangeWire): Uint8Array {\n\treturn READ_RANGE_VERSIONED.serializeWithEmbeddedVersion(\n\t\twire,\n\t\tCURRENT_VERSION,\n\t);\n}\n\nexport function decodeReadRangeWire(bytes: Uint8Array): ReadRangeWire {\n\treturn READ_RANGE_VERSIONED.deserializeWithEmbeddedVersion(bytes);\n}\n"],"mappings":";;;;;;AAQO,SAAS,oBAAoB,MAAiC;AACpE,SAAO,qBAAqB;AAAA,IAC3B;AAAA,IACA;AAAA,EACD;AACD;AAEO,SAAS,oBAAoB,OAAkC;AACrE,SAAO,qBAAqB,+BAA+B,KAAK;AACjE;","names":[]}
@@ -0,0 +1,15 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkPEQOL4YPcjs = require('./chunk-PEQOL4YP.cjs');
4
+
5
+ // src/index.browser.ts
6
+ function createTraces() {
7
+ throw new Error(
8
+ "createTraces is not available in the browser. This is a server-only API."
9
+ );
10
+ }
11
+
12
+
13
+
14
+ exports.createNoopTraces = _chunkPEQOL4YPcjs.createNoopTraces; exports.createTraces = createTraces;
15
+ //# sourceMappingURL=index.browser.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/traces/dist/tsup/index.browser.cjs","../../src/index.browser.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACIO,SAAS,YAAA,CAAA,EAAsB;AACrC,EAAA,MAAM,IAAI,KAAA;AAAA,IACT;AAAA,EACD,CAAA;AACD;ADFA;AACE;AACA;AACF,mGAAC","file":"/home/runner/work/rivet/rivet/rivetkit-typescript/packages/traces/dist/tsup/index.browser.cjs","sourcesContent":[null,"export { createNoopTraces } from \"./noop.js\";\n\n// Browser stub: createTraces is server-only (uses node:async_hooks, node:crypto,\n// fdb-tuple). This module is selected via the \"browser\" export condition so that\n// bundlers like Vite never pull in the real implementation when resolving\n// @rivetkit/traces in a browser context. The function is never actually called\n// in the browser; it only exists because tsup chunk-splitting may place the\n// import in a shared chunk also reached by client code.\nexport function createTraces(): never {\n\tthrow new Error(\n\t\t\"createTraces is not available in the browser. This is a server-only API.\",\n\t);\n}\n"]}
@@ -0,0 +1,7 @@
1
+ export { c as createNoopTraces } from './noop-CcgjEgCu.cjs';
2
+ import './otlp-Da4Yz0xC.cjs';
3
+ import './v1-DovAIc7f.cjs';
4
+
5
+ declare function createTraces(): never;
6
+
7
+ export { createTraces };
@@ -0,0 +1,7 @@
1
+ export { c as createNoopTraces } from './noop-D-YAZiGa.js';
2
+ import './otlp-Da4Yz0xC.js';
3
+ import './v1-DovAIc7f.js';
4
+
5
+ declare function createTraces(): never;
6
+
7
+ export { createTraces };
@@ -0,0 +1,15 @@
1
+ import {
2
+ createNoopTraces
3
+ } from "./chunk-W73DVHQG.js";
4
+
5
+ // src/index.browser.ts
6
+ function createTraces() {
7
+ throw new Error(
8
+ "createTraces is not available in the browser. This is a server-only API."
9
+ );
10
+ }
11
+ export {
12
+ createNoopTraces,
13
+ createTraces
14
+ };
15
+ //# sourceMappingURL=index.browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.browser.ts"],"sourcesContent":["export { createNoopTraces } from \"./noop.js\";\n\n// Browser stub: createTraces is server-only (uses node:async_hooks, node:crypto,\n// fdb-tuple). This module is selected via the \"browser\" export condition so that\n// bundlers like Vite never pull in the real implementation when resolving\n// @rivetkit/traces in a browser context. The function is never actually called\n// in the browser; it only exists because tsup chunk-splitting may place the\n// import in a shared chunk also reached by client code.\nexport function createTraces(): never {\n\tthrow new Error(\n\t\t\"createTraces is not available in the browser. This is a server-only API.\",\n\t);\n}\n"],"mappings":";;;;;AAQO,SAAS,eAAsB;AACrC,QAAM,IAAI;AAAA,IACT;AAAA,EACD;AACD;","names":[]}