@r_masseater/masseater-utils 0.9.1 → 0.10.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/agent-query.d.mts +18 -0
- package/dist/agent-query.mjs +52 -0
- package/dist/agent-query.mjs.map +1 -0
- package/dist/app-name.d.mts +1 -2
- package/dist/browser-test/vite.d.mts +1 -2
- package/dist/browser-test/vite.mjs +1 -1
- package/dist/{browser-test-vite-DS3fTcyM.mjs → browser-test-vite-DtB8cExi.mjs} +1 -1
- package/dist/{browser-test-vite-DS3fTcyM.mjs.map → browser-test-vite-DtB8cExi.mjs.map} +1 -1
- package/dist/{button-980Op0uF.mjs → button-Cu09f5VU.mjs} +4 -4
- package/dist/{button-980Op0uF.mjs.map → button-Cu09f5VU.mjs.map} +1 -1
- package/dist/{button-variants-BLMlMm-s.mjs → button-variants-BlDbQ4DD.mjs} +1 -1
- package/dist/{button-variants-BLMlMm-s.mjs.map → button-variants-BlDbQ4DD.mjs.map} +1 -1
- package/dist/{button-variants-Bupz7GI3.d.mts → button-variants-YGBhQ_mb.d.mts} +1 -2
- package/dist/{client-BS-MCJ0I.mjs → client-DX2jXirb.mjs} +39 -42
- package/dist/client-DX2jXirb.mjs.map +1 -0
- package/dist/{cn-DtxpfSUK.mjs → cn-COS9Py_F.mjs} +1 -1
- package/dist/{cn-DtxpfSUK.mjs.map → cn-COS9Py_F.mjs.map} +1 -1
- package/dist/{context-B_4aJtEC.mjs → context-COCO-Ecg.mjs} +1 -1
- package/dist/{context-B_4aJtEC.mjs.map → context-COCO-Ecg.mjs.map} +1 -1
- package/dist/desktop-shell/media-notes/protocol.d.mts +1 -1
- package/dist/desktop-shell/media-notes/protocol.mjs +1 -1
- package/dist/desktop-shell/media-notes.d.mts +5 -5
- package/dist/desktop-shell/media-notes.mjs +7 -7
- package/dist/desktop-shell/media-notes.mjs.map +1 -1
- package/dist/desktop-shell/release-cli.mjs +2 -2
- package/dist/desktop-shell/telemetry.d.mts +1 -2
- package/dist/desktop-shell/telemetry.mjs +2 -2
- package/dist/desktop-shell/vite.d.mts +1 -2
- package/dist/desktop-shell/vite.mjs +2 -2
- package/dist/effect2cs.d.mts +1 -2
- package/dist/effect2rs.d.mts +2 -3
- package/dist/effect2rs.mjs +4 -4
- package/dist/{failure-CjeINRVu.mjs → failure-BhLz69b6.mjs} +1 -1
- package/dist/{failure-CjeINRVu.mjs.map → failure-BhLz69b6.mjs.map} +1 -1
- package/dist/github-workflow.d.mts +2 -3
- package/dist/github-workflow.mjs +1 -1
- package/dist/{headers-Cr6gAurg.mjs → headers-Bpv9DhNS.mjs} +2 -2
- package/dist/{headers-Cr6gAurg.mjs.map → headers-Bpv9DhNS.mjs.map} +1 -1
- package/dist/{headers-BK-aW9Kw.d.mts → headers-NUwRihYD.d.mts} +1 -2
- package/dist/{heading-class-H4Z13Bpn.mjs → heading-class-Cj0jHgsZ.mjs} +1 -1
- package/dist/{heading-class-H4Z13Bpn.mjs.map → heading-class-Cj0jHgsZ.mjs.map} +1 -1
- package/dist/{heading-class-CDq0WZpR.d.mts → heading-class-DPbs-YiQ.d.mts} +1 -2
- package/dist/hook-flags.d.mts +1 -2
- package/dist/{index-CeVmiNfF.d.mts → index-1-4t9rX2.d.mts} +2 -3
- package/dist/{index-KNezbJnC.d.mts → index-2z0Rr69i.d.mts} +1 -2
- package/dist/{index-ChbPLmqu.d.mts → index-8ZrDzBaY.d.mts} +1 -2
- package/dist/{index-CjUS4pmA.d.mts → index-B9MYxbAp.d.mts} +2 -3
- package/dist/{index-BkZOsFv4.d.mts → index-BhIR7Vrb.d.mts} +1 -2
- package/dist/index-Cz3K0tg_.d.mts +3 -0
- package/dist/index-DJGZKGut.d.mts +5 -0
- package/dist/{index-CLb1-l_c.d.mts → index-DeL_mxdJ.d.mts} +2 -3
- package/dist/index-DgofHxew.d.mts +1 -0
- package/dist/{index-Cb8YSEwo.d.mts → index-DmIMnqv8.d.mts} +1 -2
- package/dist/kestrion/node.d.mts +1 -2
- package/dist/kestrion/npm.d.mts +2 -3
- package/dist/kestrion/npm.mjs +1 -1
- package/dist/kestrion/pnpm.d.mts +2 -3
- package/dist/kestrion/pnpm.mjs +4 -4
- package/dist/kestrion.d.mts +1 -1
- package/dist/kestrion.mjs +1 -1
- package/dist/lapse/sdk.d.mts +1 -2
- package/dist/lapse.d.mts +2 -3
- package/dist/lapse.mjs +1 -1
- package/dist/local-server/node.d.mts +2 -3
- package/dist/local-server/node.mjs +3 -3
- package/dist/local-server/node.mjs.map +1 -1
- package/dist/local-server/serve.d.mts +1 -2
- package/dist/local-server.d.mts +2 -3
- package/dist/local-server.mjs +1 -1
- package/dist/mapped-import/mapper.d.mts +2 -3
- package/dist/mapped-import/vite.d.mts +1 -2
- package/dist/mapped-import/vite.mjs +1 -1
- package/dist/mapped-import.d.mts +1 -1
- package/dist/{media-protocol-CMyatw7A.mjs → media-protocol-Buk1x3Gb.mjs} +1 -1
- package/dist/{media-protocol-CMyatw7A.mjs.map → media-protocol-Buk1x3Gb.mjs.map} +1 -1
- package/dist/model-server/process.mjs +7 -7
- package/dist/model-server/process.mjs.map +1 -1
- package/dist/model-server.d.mts +423 -102
- package/dist/model-server.mjs +1 -1
- package/dist/model-server.mjs.map +1 -1
- package/dist/{node-main-Bwril94o.mjs → node-main-BrhzkUvP.mjs} +1 -1
- package/dist/{node-main-Bwril94o.mjs.map → node-main-BrhzkUvP.mjs.map} +1 -1
- package/dist/node-main.d.mts +2 -3
- package/dist/node-main.mjs +2 -2
- package/dist/{normalize-CogX79EO.mjs → normalize-CboffJzv.mjs} +1 -1
- package/dist/{normalize-CogX79EO.mjs.map → normalize-CboffJzv.mjs.map} +1 -1
- package/dist/{otlp-ohapzeFh.mjs → otlp-DwZqQqjc.mjs} +1 -1
- package/dist/{otlp-ohapzeFh.mjs.map → otlp-DwZqQqjc.mjs.map} +1 -1
- package/dist/{otlp-schema-CDBPGJ5s.mjs → otlp-schema-DcYNaxGn.mjs} +1 -1
- package/dist/{otlp-schema-CDBPGJ5s.mjs.map → otlp-schema-DcYNaxGn.mjs.map} +1 -1
- package/dist/{otlp-spans-D88555DO.mjs → otlp-spans-BF7m_C1W.mjs} +2 -2
- package/dist/{otlp-spans-D88555DO.mjs.map → otlp-spans-BF7m_C1W.mjs.map} +1 -1
- package/dist/{package-json-CYRyaF9U.mjs → package-json-CdnNcBLT.mjs} +1 -1
- package/dist/{package-json-CYRyaF9U.mjs.map → package-json-CdnNcBLT.mjs.map} +1 -1
- package/dist/plugin-kit.d.mts +3 -4
- package/dist/plugin-kit.mjs +1 -1
- package/dist/plugin-kit.mjs.map +1 -1
- package/dist/{portfolio-BQJtJtfK.mjs → portfolio-VMbxOrAS.mjs} +1 -1
- package/dist/{portfolio-BQJtJtfK.mjs.map → portfolio-VMbxOrAS.mjs.map} +1 -1
- package/dist/{process-_W_7DeKe.d.mts → process-BHJEIAWo.d.mts} +1 -2
- package/dist/{process-lKS6nYWh.mjs → process-l69KvwcT.mjs} +1 -1
- package/dist/{process-lKS6nYWh.mjs.map → process-l69KvwcT.mjs.map} +1 -1
- package/dist/process.d.mts +1 -1
- package/dist/process.mjs +1 -1
- package/dist/{receive-S2txZwcV.mjs → receive-o3h4RxCi.mjs} +1 -1
- package/dist/{receive-S2txZwcV.mjs.map → receive-o3h4RxCi.mjs.map} +1 -1
- package/dist/{route-handlers-Cn3O2hmf.mjs → route-handlers-CKVY2bqC.mjs} +1 -1
- package/dist/{route-handlers-Cn3O2hmf.mjs.map → route-handlers-CKVY2bqC.mjs.map} +1 -1
- package/dist/{route-handlers-E2lwhaAf.d.mts → route-handlers-DAmv3iMD.d.mts} +1 -2
- package/dist/{run-D59Owiv1.d.mts → run-C1nPjDih.d.mts} +1 -2
- package/dist/{run-Cc5W9mi8.mjs → run-DKB2KSjp.mjs} +2 -2
- package/dist/{run-Cc5W9mi8.mjs.map → run-DKB2KSjp.mjs.map} +1 -1
- package/dist/{run-main-BD4uT8sr.mjs → run-main-Chtieg-p.mjs} +7 -7
- package/dist/run-main-Chtieg-p.mjs.map +1 -0
- package/dist/security-headers/http.d.mts +2 -3
- package/dist/security-headers/http.mjs +1 -1
- package/dist/security-headers/request.d.mts +1 -2
- package/dist/security-headers/response.d.mts +1 -2
- package/dist/security-headers/response.mjs +1 -1
- package/dist/security-headers/static.d.mts +1 -1
- package/dist/security-headers/static.mjs +1 -1
- package/dist/security-headers/vite.d.mts +1 -1
- package/dist/security-headers/vite.mjs +1 -1
- package/dist/security-headers.d.mts +3 -3
- package/dist/security-headers.mjs +2 -2
- package/dist/skerm.d.mts +1 -2
- package/dist/{socket-port-CTg-qfiP.mjs → socket-port-Cq7YKLFS.mjs} +1 -1
- package/dist/{socket-port-CTg-qfiP.mjs.map → socket-port-Cq7YKLFS.mjs.map} +1 -1
- package/dist/{span-BKjRu617.mjs → span-BK0kTs11.mjs} +2 -2
- package/dist/{span-BKjRu617.mjs.map → span-BK0kTs11.mjs.map} +1 -1
- package/dist/{static-page-headers-_B0WGkew.mjs → static-page-headers-muClDOhu.mjs} +2 -2
- package/dist/{static-page-headers-_B0WGkew.mjs.map → static-page-headers-muClDOhu.mjs.map} +1 -1
- package/dist/{sync-BkyZGGDA.mjs → sync-Ctl9b02O.mjs} +1 -1
- package/dist/{sync-BkyZGGDA.mjs.map → sync-Ctl9b02O.mjs.map} +1 -1
- package/dist/{table-class-BeiCXlFj.d.mts → table-class-B6OCkS3k.d.mts} +1 -2
- package/dist/{table-class-RQvT6MYy.mjs → table-class-Ck9lRrm4.mjs} +1 -1
- package/dist/{table-class-RQvT6MYy.mjs.map → table-class-Ck9lRrm4.mjs.map} +1 -1
- package/dist/{telemetry-BEWIE8tU.d.mts → telemetry-D6lI0_F9.d.mts} +1 -2
- package/dist/ui/backdrop-palette.d.mts +1 -2
- package/dist/ui/badge.d.mts +1 -2
- package/dist/ui/badge.mjs +1 -1
- package/dist/ui/browser-runtime.d.mts +1 -2
- package/dist/ui/browser-runtime.mjs +1 -1
- package/dist/ui/button-variants.d.mts +1 -1
- package/dist/ui/button-variants.mjs +1 -1
- package/dist/ui/button.d.mts +3 -4
- package/dist/ui/button.mjs +1 -1
- package/dist/ui/cn.d.mts +1 -2
- package/dist/ui/cn.mjs +1 -1
- package/dist/ui/color-scheme.d.mts +1 -2
- package/dist/ui/heading-class.d.mts +1 -1
- package/dist/ui/heading-class.mjs +1 -1
- package/dist/ui/heading.d.mts +2 -3
- package/dist/ui/heading.mjs +1 -1
- package/dist/ui/input-class.d.mts +1 -2
- package/dist/ui/native-select-class.d.mts +1 -2
- package/dist/ui/next-page-trigger.d.mts +1 -2
- package/dist/ui/next-page-trigger.mjs +2 -2
- package/dist/ui/page-footer.d.mts +2 -3
- package/dist/ui/page-footer.mjs +1 -1
- package/dist/ui/page-header.d.mts +2 -3
- package/dist/ui/page-header.mjs +1 -1
- package/dist/ui/pointer.d.mts +1 -2
- package/dist/ui/portfolio.d.mts +1 -2
- package/dist/ui/portfolio.mjs +1 -1
- package/dist/ui/table-class.d.mts +1 -1
- package/dist/ui/table-class.mjs +1 -1
- package/dist/ui/table.d.mts +2 -3
- package/dist/ui/table.mjs +2 -2
- package/dist/ui/to-wavy-letters.d.mts +1 -2
- package/dist/ui/web-analytics.d.mts +3 -4
- package/dist/ui/web-analytics.mjs +1 -1
- package/dist/usage-meter/report.d.mts +2 -3
- package/dist/usage-meter/report.mjs +1 -1
- package/dist/{usage-meter-CmCceKx1.mjs → usage-meter-B196tKiM.mjs} +2 -2
- package/dist/{usage-meter-CmCceKx1.mjs.map → usage-meter-B196tKiM.mjs.map} +1 -1
- package/dist/usage-meter.d.mts +3 -4
- package/dist/usage-meter.mjs +2 -2
- package/dist/{usage-tally-C7zVBg75.d.mts → usage-tally-BBhBouif.d.mts} +1 -2
- package/dist/{usage-tally-FiAxcD-H.mjs → usage-tally-BD3f41V8.mjs} +1 -1
- package/dist/{usage-tally-FiAxcD-H.mjs.map → usage-tally-BD3f41V8.mjs.map} +1 -1
- package/dist/vitest-otlp/collector-files.d.mts +3 -4
- package/dist/vitest-otlp/collector-files.mjs +2 -2
- package/dist/vitest-otlp/semconv.d.mts +1 -2
- package/dist/vitest-otlp/semconv.mjs +2 -2
- package/dist/vitest-otlp/setup.mjs +4 -4
- package/dist/vitest-otlp/workers.d.mts +2 -3
- package/dist/vitest-otlp/workers.mjs +1 -1
- package/dist/{vitest-otlp-current-receiver-8c7rIP1N.mjs → vitest-otlp-current-receiver-Bh_4YbhT.mjs} +1 -1
- package/dist/{vitest-otlp-current-receiver-8c7rIP1N.mjs.map → vitest-otlp-current-receiver-Bh_4YbhT.mjs.map} +1 -1
- package/dist/{vitest-otlp-current-receiver-DphmM9Ha.d.mts → vitest-otlp-current-receiver-DSgQ3zo9.d.mts} +3 -4
- package/dist/vitest-otlp.d.mts +4 -5
- package/dist/vitest-otlp.mjs +3 -3
- package/dist/{web-analytics-Bz6nyJmQ.mjs → web-analytics-CondjbtC.mjs} +1 -1
- package/dist/{web-analytics-Bz6nyJmQ.mjs.map → web-analytics-CondjbtC.mjs.map} +1 -1
- package/dist/{web-analytics-BM9LdncT.d.mts → web-analytics-Cvs9PDoh.d.mts} +1 -2
- package/dist/workers-tracing/alchemy.d.mts +3 -4
- package/dist/workers-tracing/alchemy.mjs +3 -3
- package/dist/workers-tracing/browser-logs.d.mts +2 -3
- package/dist/workers-tracing/browser-logs.mjs +2 -2
- package/dist/workers-tracing/browser-spans.d.mts +2 -3
- package/dist/workers-tracing/browser-spans.mjs +2 -2
- package/dist/workers-tracing/effect.browser.d.mts +2 -3
- package/dist/workers-tracing/effect.browser.mjs +1 -1
- package/dist/workers-tracing/effect.d.mts +2 -3
- package/dist/workers-tracing/effect.mjs +3 -3
- package/dist/workers-tracing/elysia.d.mts +2 -3
- package/dist/workers-tracing/elysia.mjs +4 -4
- package/dist/workers-tracing/elysia.node.d.mts +1 -1
- package/dist/workers-tracing/elysia.node.mjs +1 -1
- package/dist/workers-tracing/tanstack-start.browser.d.mts +1 -2
- package/dist/workers-tracing/tanstack-start.d.mts +1 -2
- package/dist/workers-tracing/tanstack-start.mjs +3 -3
- package/dist/workers-tracing/trace-sink-worker.d.mts +1 -2
- package/dist/workers-tracing/trace-sink-worker.mjs +1 -1
- package/dist/workers-tracing/workers-ai.d.mts +1 -2
- package/dist/yohaku-protocol/sync.d.mts +1 -1
- package/dist/yohaku-protocol/sync.mjs +1 -1
- package/dist/yohaku-protocol.d.mts +1 -1
- package/dist/yohaku-protocol.mjs +1 -1
- package/package.json +9 -3
- package/dist/client-BS-MCJ0I.mjs.map +0 -1
- package/dist/index-BtcxUsGh.d.mts +0 -4
- package/dist/index-CUo4CRam.d.mts +0 -1
- package/dist/index-DudHILTn.d.mts +0 -6
- package/dist/run-main-BD4uT8sr.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage-tally-
|
|
1
|
+
{"version":3,"file":"usage-tally-BD3f41V8.mjs","names":[],"sources":["../src/shared/lib/usage-tally.ts"],"sourcesContent":["import { Schema } from \"effect\";\n\nconst TallyFields = Schema.Struct({\n library: Schema.String,\n version: Schema.String,\n kind: Schema.String,\n name: Schema.String,\n calls: Schema.Finite,\n});\n\nexport type Tally = typeof TallyFields.Type;\n\nexport const TallyList = Schema.Array(TallyFields);\n\nexport const SPOOL_ENV = \"USAGE_METER_SPOOL\";\n\nexport const CALLS_METRIC = \"code.usage.calls\";\n\nexport const NO_CALLS = 0;\n"],"mappings":";;AAEA,MAAM,cAAc,OAAO,OAAO;CAChC,SAAS,OAAO;CAChB,SAAS,OAAO;CAChB,MAAM,OAAO;CACb,MAAM,OAAO;CACb,OAAO,OAAO;AAChB,CAAC;AAID,MAAa,YAAY,OAAO,MAAM,WAAW;AAEjD,MAAa,YAAY;AAEzB,MAAa,eAAe"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { a as ReceivedSpan, i as ReceivedMetric, r as ReceivedLogRecord } from "../telemetry-
|
|
2
|
-
import "../index-CUo4CRam.mjs";
|
|
1
|
+
import { a as ReceivedSpan, i as ReceivedMetric, r as ReceivedLogRecord } from "../telemetry-D6lI0_F9.mjs";
|
|
3
2
|
import { Effect, Schema } from "effect";
|
|
3
|
+
import "../index-DgofHxew.mjs";
|
|
4
4
|
export declare const spansInFile: (text: string) => Effect.Effect<readonly ReceivedSpan[], Schema.SchemaError>;
|
|
5
5
|
export declare const logsInFile: (text: string) => Effect.Effect<readonly ReceivedLogRecord[], Schema.SchemaError>;
|
|
6
6
|
export declare const metricsInFile: (text: string) => Effect.Effect<readonly ReceivedMetric[], Schema.SchemaError>;
|
|
7
|
-
export type { ReceivedLogRecord, ReceivedMetric, ReceivedSpan };
|
|
8
|
-
//# sourceMappingURL=collector-files.d.mts.map
|
|
7
|
+
export type { ReceivedLogRecord, ReceivedMetric, ReceivedSpan };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as decodeMetrics, r as decodeSpans, t as decodeLogs } from "../otlp-schema-CDBPGJ5s.mjs";
|
|
2
|
-
import { r as normalizeOtlpJson } from "../normalize-CogX79EO.mjs";
|
|
3
1
|
import { Array, Effect, Schema, String, pipe } from "effect";
|
|
2
|
+
import { n as decodeMetrics, r as decodeSpans, t as decodeLogs } from "../otlp-schema-DcYNaxGn.mjs";
|
|
3
|
+
import { r as normalizeOtlpJson } from "../normalize-CboffJzv.mjs";
|
|
4
4
|
// src/app/vitest-otlp-collector-files.ts
|
|
5
5
|
const decodeJson = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.MutableJson));
|
|
6
6
|
const linesOf = (text) => pipe(text, String.split("\n"), Array.filter((line) => String.isNonEmpty(String.trim(line))));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as SEMCONV_KEY, t as FORWARD_KEY } from "../context-B_4aJtEC.mjs";
|
|
2
|
-
import { Array, Duration, Effect, Exit, Layer, ManagedRuntime, MutableRef, Option, Predicate, Record, Schedule, Schema, Scope, Stream, String, pipe } from "effect";
|
|
3
1
|
import { layer } from "@effect/platform-node/NodeServices";
|
|
2
|
+
import { Array, Duration, Effect, Exit, Layer, ManagedRuntime, MutableRef, Option, Predicate, Record, Schedule, Schema, Scope, Stream, String, pipe } from "effect";
|
|
4
3
|
import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/http";
|
|
5
4
|
import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
|
5
|
+
import { n as SEMCONV_KEY, t as FORWARD_KEY } from "../context-COCO-Ecg.mjs";
|
|
6
6
|
// src/app/vitest-otlp-semconv.ts
|
|
7
7
|
const taggedError = Schema.TaggedError;
|
|
8
8
|
var SemconvCheckFailed = class extends taggedError()("SemconvCheckFailed", { message: Schema.String }) {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as FORWARD_KEY } from "../context-B_4aJtEC.mjs";
|
|
2
|
-
import { n as normalize, t as hexIdsToBase64 } from "../normalize-CogX79EO.mjs";
|
|
3
|
-
import { r as setReceiver } from "../vitest-otlp-current-receiver-8c7rIP1N.mjs";
|
|
4
1
|
import { Array, Config, ConfigProvider, Context, Effect, Exit, Layer, MutableRef, Option, Predicate, Record, Schema, Scope, String as String$1, pipe } from "effect";
|
|
5
|
-
import { HttpServer, HttpServerRequest, HttpServerResponse } from "effect/http";
|
|
6
2
|
import { afterAll, inject, vi } from "vite-plus/test";
|
|
3
|
+
import { t as FORWARD_KEY } from "../context-COCO-Ecg.mjs";
|
|
7
4
|
import { connect, createServer } from "node:http2";
|
|
8
5
|
import { layerTest, make } from "@effect/platform-node/NodeHttpServer";
|
|
9
6
|
import { toServerResponse } from "@effect/platform-node/NodeHttpServerRequest";
|
|
7
|
+
import { HttpServer, HttpServerRequest, HttpServerResponse } from "effect/http";
|
|
10
8
|
import { create, fromBinary, fromJson, toBinary, toJson } from "@bufbuild/protobuf";
|
|
11
9
|
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
10
|
+
import { n as normalize, t as hexIdsToBase64 } from "../normalize-CboffJzv.mjs";
|
|
11
|
+
import { r as setReceiver } from "../vitest-otlp-current-receiver-Bh_4YbhT.mjs";
|
|
12
12
|
// src/features/receive-otlp/model/environment.ts
|
|
13
13
|
const UNSET = "";
|
|
14
14
|
const POINTED = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ReceiverNotRunning } from "../vitest-otlp-current-receiver-DphmM9Ha.mjs";
|
|
2
1
|
import { Effect, Schema } from "effect";
|
|
2
|
+
import { t as ReceiverNotRunning } from "../vitest-otlp-current-receiver-DSgQ3zo9.mjs";
|
|
3
3
|
declare const TailWorkerBuildFailed_base: Schema.Class<TailWorkerBuildFailed, Schema.TaggedStruct<"TailWorkerBuildFailed", {
|
|
4
4
|
readonly message: Schema.String;
|
|
5
5
|
}>, import("effect/Cause").YieldableError & {
|
|
@@ -22,5 +22,4 @@ export interface TailWorkerOptions {
|
|
|
22
22
|
readonly serviceName?: string;
|
|
23
23
|
}
|
|
24
24
|
export declare const tailWorker: ({ name, compatibilityDate, serviceName }?: TailWorkerOptions) => Effect.Effect<TailWorker, TailWorkerBuildFailed | ReceiverNotRunning>;
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=workers.d.mts.map
|
|
25
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as currentReceiver } from "../vitest-otlp-current-receiver-8c7rIP1N.mjs";
|
|
2
1
|
import { fileURLToPath } from "node:url";
|
|
3
2
|
import { Array, Effect, Option, Predicate, Schema, pipe } from "effect";
|
|
4
3
|
import { build } from "vite-plus";
|
|
4
|
+
import { n as currentReceiver } from "../vitest-otlp-current-receiver-Bh_4YbhT.mjs";
|
|
5
5
|
// src/app/vitest-otlp-workers.ts
|
|
6
6
|
const taggedError = Schema.TaggedError;
|
|
7
7
|
var TailWorkerBuildFailed = class extends taggedError()("TailWorkerBuildFailed", { message: Schema.String }) {};
|
package/dist/{vitest-otlp-current-receiver-8c7rIP1N.mjs → vitest-otlp-current-receiver-Bh_4YbhT.mjs}
RENAMED
|
@@ -10,4 +10,4 @@ const notRunning = () => ReceiverNotRunning.make({ message: "The OTLP receiver i
|
|
|
10
10
|
const currentReceiver = Effect.suspend(() => current.pipe(MutableRef.get, Effect.fromOption)).pipe(Effect.mapError(notRunning));
|
|
11
11
|
export { currentReceiver as n, setReceiver as r, ReceiverNotRunning as t };
|
|
12
12
|
|
|
13
|
-
//# sourceMappingURL=vitest-otlp-current-receiver-
|
|
13
|
+
//# sourceMappingURL=vitest-otlp-current-receiver-Bh_4YbhT.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vitest-otlp-current-receiver-
|
|
1
|
+
{"version":3,"file":"vitest-otlp-current-receiver-Bh_4YbhT.mjs","names":[],"sources":["../src/app/vitest-otlp-current-receiver.ts"],"sourcesContent":["import { Effect, MutableRef, Option, Schema } from \"effect\";\n\nimport type { Receiver } from \"#/features/receive-otlp/index.ts\";\n\nconst taggedError = Schema.TaggedError;\n\nexport class ReceiverNotRunning extends taggedError<\n ReceiverNotRunning,\n { readonly brand: unique symbol }\n>()(\"ReceiverNotRunning\", { message: Schema.String }) {}\n\nconst current = MutableRef.make(Option.none<Receiver>());\n\nexport const setReceiver = (receiver: Option.Option<Receiver>): void => {\n MutableRef.set(current, receiver);\n};\n\nconst notRunning = (): ReceiverNotRunning =>\n ReceiverNotRunning.make({\n message:\n \"The OTLP receiver is not running. Add otlp() from @r_masseater/masseater-utils/vitest-otlp to the Vitest plugins.\",\n });\n\nexport const currentReceiver: Effect.Effect<Receiver, ReceiverNotRunning> = Effect.suspend(() =>\n current.pipe(MutableRef.get, Effect.fromOption),\n).pipe(Effect.mapError(notRunning));\n"],"mappings":";;AAIA,MAAM,cAAc,OAAO;AAE3B,IAAa,qBAAb,cAAwC,YAGtC,CAAC,CAAC,sBAAsB,EAAE,SAAS,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;AAEvD,MAAM,UAAU,WAAW,KAAK,OAAO,KAAe,CAAC;AAEvD,MAAa,eAAe,aAA4C;CACtE,WAAW,IAAI,SAAS,QAAQ;AAClC;AAEA,MAAM,mBACJ,mBAAmB,KAAK,EACtB,SACE,oHACJ,CAAC;AAEH,MAAa,kBAA+D,OAAO,cACjF,QAAQ,KAAK,WAAW,KAAK,OAAO,UAAU,CAChD,CAAC,CAAC,KAAK,OAAO,SAAS,UAAU,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import "./index-DgofHxew.mjs";
|
|
3
3
|
declare const ReceiverNotRunning_base: Schema.Class<ReceiverNotRunning, Schema.TaggedStruct<"ReceiverNotRunning", {
|
|
4
4
|
readonly message: Schema.String;
|
|
5
5
|
}>, import("effect/Cause").YieldableError & {
|
|
6
6
|
readonly brand: unique symbol;
|
|
7
7
|
}>;
|
|
8
8
|
declare class ReceiverNotRunning extends ReceiverNotRunning_base {}
|
|
9
|
-
export { ReceiverNotRunning as t };
|
|
10
|
-
//# sourceMappingURL=vitest-otlp-current-receiver-DphmM9Ha.d.mts.map
|
|
9
|
+
export { ReceiverNotRunning as t };
|
package/dist/vitest-otlp.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as ReceivedSpan, i as ReceivedMetric, n as InstrumentationScope, o as ReceiverAddress, r as ReceivedLogRecord, t as Attributes } from "./telemetry-
|
|
2
|
-
import "./index-CUo4CRam.mjs";
|
|
3
|
-
import { t as ReceiverNotRunning } from "./vitest-otlp-current-receiver-DphmM9Ha.mjs";
|
|
1
|
+
import { a as ReceivedSpan, i as ReceivedMetric, n as InstrumentationScope, o as ReceiverAddress, r as ReceivedLogRecord, t as Attributes } from "./telemetry-D6lI0_F9.mjs";
|
|
4
2
|
import { Duration, Effect, Schema } from "effect";
|
|
5
3
|
import { Plugin } from "vite-plus";
|
|
4
|
+
import "./index-DgofHxew.mjs";
|
|
5
|
+
import { t as ReceiverNotRunning } from "./vitest-otlp-current-receiver-DSgQ3zo9.mjs";
|
|
6
6
|
type SemconvLevel = "violation" | "improvement" | "information";
|
|
7
7
|
interface SemconvOptions {
|
|
8
8
|
readonly registry?: string;
|
|
@@ -47,5 +47,4 @@ export declare const waitForSpans: ({ where, count, timeout, interval }?: WaitOp
|
|
|
47
47
|
export declare const waitForLogs: ({ where, count, timeout, interval }?: WaitOptions<ReceivedLogRecord>) => Effect.Effect<readonly ReceivedLogRecord[], TelemetryNotReceived | ReadError, never>;
|
|
48
48
|
export declare const waitForMetrics: ({ where, count, timeout, interval }?: WaitOptions<ReceivedMetric>) => Effect.Effect<readonly ReceivedMetric[], TelemetryNotReceived | ReadError, never>;
|
|
49
49
|
export declare const clearTelemetry: Effect.Effect<void, ReceiverNotRunning>;
|
|
50
|
-
export { type Attributes, type InstrumentationScope, type ReceivedLogRecord, type ReceivedMetric, type ReceivedSpan, type ReceiverAddress, ReceiverNotRunning, type SemconvLevel, type SemconvOptions };
|
|
51
|
-
//# sourceMappingURL=vitest-otlp.d.mts.map
|
|
50
|
+
export { type Attributes, type InstrumentationScope, type ReceivedLogRecord, type ReceivedMetric, type ReceivedSpan, type ReceiverAddress, ReceiverNotRunning, type SemconvLevel, type SemconvOptions };
|
package/dist/vitest-otlp.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as SEMCONV_KEY } from "./context-B_4aJtEC.mjs";
|
|
2
|
-
import { n as decodeMetrics, r as decodeSpans, t as decodeLogs } from "./otlp-schema-CDBPGJ5s.mjs";
|
|
3
|
-
import { n as currentReceiver, t as ReceiverNotRunning } from "./vitest-otlp-current-receiver-8c7rIP1N.mjs";
|
|
4
1
|
import { Array, Duration, Effect, Option, Predicate, Schedule, Schema, pipe } from "effect";
|
|
2
|
+
import { n as SEMCONV_KEY } from "./context-COCO-Ecg.mjs";
|
|
3
|
+
import { n as decodeMetrics, r as decodeSpans, t as decodeLogs } from "./otlp-schema-DcYNaxGn.mjs";
|
|
4
|
+
import { n as currentReceiver, t as ReceiverNotRunning } from "./vitest-otlp-current-receiver-Bh_4YbhT.mjs";
|
|
5
5
|
// src/app/vitest-otlp.ts
|
|
6
6
|
const taggedError = Schema.TaggedError;
|
|
7
7
|
var TelemetryNotReceived = class extends taggedError()("TelemetryNotReceived", { message: Schema.String }) {};
|
|
@@ -3,4 +3,4 @@ const WEB_ANALYTICS_SCRIPT_ORIGIN = "https://static.cloudflareinsights.com";
|
|
|
3
3
|
const WEB_ANALYTICS_REPORT_ORIGIN = "https://cloudflareinsights.com";
|
|
4
4
|
export { WEB_ANALYTICS_SCRIPT_ORIGIN as n, WEB_ANALYTICS_REPORT_ORIGIN as t };
|
|
5
5
|
|
|
6
|
-
//# sourceMappingURL=web-analytics-
|
|
6
|
+
//# sourceMappingURL=web-analytics-CondjbtC.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-analytics-
|
|
1
|
+
{"version":3,"file":"web-analytics-CondjbtC.mjs","names":[],"sources":["../src/shared/config/web-analytics.ts"],"sourcesContent":["export const WEB_ANALYTICS_SCRIPT_ORIGIN = \"https://static.cloudflareinsights.com\";\n\nexport const WEB_ANALYTICS_REPORT_ORIGIN = \"https://cloudflareinsights.com\";\n"],"mappings":";AAAA,MAAa,8BAA8B;AAE3C,MAAa,8BAA8B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
declare const WEB_ANALYTICS_SCRIPT_ORIGIN = "https://static.cloudflareinsights.com";
|
|
2
2
|
declare const WEB_ANALYTICS_REPORT_ORIGIN = "https://cloudflareinsights.com";
|
|
3
|
-
export { WEB_ANALYTICS_SCRIPT_ORIGIN as n, WEB_ANALYTICS_REPORT_ORIGIN as t };
|
|
4
|
-
//# sourceMappingURL=web-analytics-BM9LdncT.d.mts.map
|
|
3
|
+
export { WEB_ANALYTICS_SCRIPT_ORIGIN as n, WEB_ANALYTICS_REPORT_ORIGIN as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Workers } from "@alchemy.run/cloudflare";
|
|
2
|
-
import { Effect, Layer, Option, Schema } from "effect";
|
|
3
1
|
import { Worker, WorkerProps } from "@alchemy.run/cloudflare/Workers/Worker";
|
|
4
2
|
import { ProviderService } from "alchemy/Provider";
|
|
3
|
+
import { Effect, Layer } from "effect";
|
|
4
|
+
import { Workers } from "@alchemy.run/cloudflare";
|
|
5
5
|
export declare const COMPATIBILITY_DATE = "2026-08-25";
|
|
6
6
|
interface TraceSinkProps {
|
|
7
7
|
readonly destination?: string;
|
|
@@ -18,5 +18,4 @@ export declare const traced: (options?: TracingOptions) => (props: WorkerProps)
|
|
|
18
18
|
export type WorkerService = ProviderService<Worker>;
|
|
19
19
|
export declare const tuneService: (options: TracingOptions) => <Service extends WorkerService>(service: Service) => Service;
|
|
20
20
|
export declare const withWorkersTracing: (options?: TracingOptions) => <Out, Error, In>(providers: Layer.Layer<Out, Error, In>) => Layer.Layer<Out, Error, In>;
|
|
21
|
-
export type { TraceSinkProps };
|
|
22
|
-
//# sourceMappingURL=alchemy.d.mts.map
|
|
21
|
+
export type { TraceSinkProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Workers } from "@alchemy.run/cloudflare";
|
|
2
|
-
import { makeRandom } from "alchemy";
|
|
3
|
-
import { Array, Effect, Layer, Option, Order, Predicate, Record, Redacted, pipe } from "effect";
|
|
4
1
|
import { Worker } from "@alchemy.run/cloudflare/Workers/Worker";
|
|
5
2
|
import { effect, tryFindProviderRegistrationByType } from "alchemy/Provider";
|
|
3
|
+
import { Array, Effect, Layer, Option, Order, Predicate, Record, Redacted, pipe } from "effect";
|
|
4
|
+
import { Workers } from "@alchemy.run/cloudflare";
|
|
5
|
+
import { makeRandom } from "alchemy";
|
|
6
6
|
import { map } from "alchemy/Output";
|
|
7
7
|
// src/shared/config/compatibility.ts
|
|
8
8
|
const COMPATIBILITY_DATE = "2026-08-25";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { t as BrowserOptions } from "../index-
|
|
1
|
+
import { t as BrowserOptions } from "../index-DJGZKGut.mjs";
|
|
2
2
|
export type BrowserLogsOptions = BrowserOptions;
|
|
3
|
-
export declare const browserLogs: (options: BrowserLogsOptions) => (request: Request) => Promise<Response>;
|
|
4
|
-
//# sourceMappingURL=browser-logs.d.mts.map
|
|
3
|
+
export declare const browserLogs: (options: BrowserLogsOptions) => (request: Request) => Promise<Response>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as UnixNano, c as serviceOf, i as Scope, l as valueOf, n as Attributes, o as flatten, r as Resource, s as scopeNameOf, t as AnyValue } from "../otlp-ohapzeFh.mjs";
|
|
2
|
-
import { t as receiver } from "../receive-S2txZwcV.mjs";
|
|
3
1
|
import { Array, Effect, Option, Schema, pipe } from "effect";
|
|
2
|
+
import { a as UnixNano, c as serviceOf, i as Scope, l as valueOf, n as Attributes, o as flatten, r as Resource, s as scopeNameOf, t as AnyValue } from "../otlp-DwZqQqjc.mjs";
|
|
3
|
+
import { t as receiver } from "../receive-o3h4RxCi.mjs";
|
|
4
4
|
// src/entities/log/model/otlp-logs.ts
|
|
5
5
|
const ERROR_SEVERITY = 17;
|
|
6
6
|
const WARN_SEVERITY = 13;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { t as BrowserOptions } from "../index-
|
|
1
|
+
import { t as BrowserOptions } from "../index-DJGZKGut.mjs";
|
|
2
2
|
export type BrowserSpansOptions = BrowserOptions;
|
|
3
|
-
export declare const browserSpans: (options: BrowserSpansOptions) => (request: Request) => Promise<Response>;
|
|
4
|
-
//# sourceMappingURL=browser-spans.d.mts.map
|
|
3
|
+
export declare const browserSpans: (options: BrowserSpansOptions) => (request: Request) => Promise<Response>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as spanCount, i as logTraceRequest, o as traceRequestOf, t as TraceRequest } from "../otlp-spans-
|
|
2
|
-
import { t as receiver } from "../receive-
|
|
1
|
+
import { a as spanCount, i as logTraceRequest, o as traceRequestOf, t as TraceRequest } from "../otlp-spans-BF7m_C1W.mjs";
|
|
2
|
+
import { t as receiver } from "../receive-o3h4RxCi.mjs";
|
|
3
3
|
// src/app/workers-tracing-browser-spans.ts
|
|
4
4
|
const browserSpans = receiver({
|
|
5
5
|
name: "spans",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as Runner, t as Run } from "../run-D59Owiv1.mjs";
|
|
2
1
|
import { Layer } from "effect";
|
|
2
|
+
import { n as Runner, t as Run } from "../run-C1nPjDih.mjs";
|
|
3
3
|
export declare const layer: Layer.Layer<never>;
|
|
4
4
|
export declare const runner: Runner;
|
|
5
5
|
export declare const run: Run<never>;
|
|
6
|
-
export type { Run, Runner };
|
|
7
|
-
//# sourceMappingURL=effect.browser.d.mts.map
|
|
6
|
+
export type { Run, Runner };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { n as Runner, t as Run } from "../run-D59Owiv1.mjs";
|
|
2
1
|
import { Layer, Logger } from "effect";
|
|
2
|
+
import { n as Runner, t as Run } from "../run-C1nPjDih.mjs";
|
|
3
3
|
export declare const inSpanContext: <Message>(logger: Logger.Logger<Message, void>) => Logger.Logger<Message, void>;
|
|
4
4
|
export declare const layer: Layer.Layer<never>;
|
|
5
5
|
export declare const runner: Runner;
|
|
6
6
|
export declare const run: Run<never>;
|
|
7
|
-
export type { Run, Runner };
|
|
8
|
-
//# sourceMappingURL=effect.d.mts.map
|
|
7
|
+
export type { Run, Runner };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as markCause } from "../span-BKjRu617.mjs";
|
|
2
|
-
import { t as runnerWith } from "../run-Cc5W9mi8.mjs";
|
|
3
|
-
import { Exit, Layer, Logger, Option, Predicate, Tracer, pipe } from "effect";
|
|
4
1
|
import { tracing } from "cloudflare:workers";
|
|
2
|
+
import { Exit, Layer, Logger, Option, Predicate, Tracer, pipe } from "effect";
|
|
3
|
+
import { t as markCause } from "../span-BK0kTs11.mjs";
|
|
5
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
|
+
import { t as runnerWith } from "../run-DKB2KSjp.mjs";
|
|
6
6
|
// src/shared/lib/context.ts
|
|
7
7
|
const capture = () => {
|
|
8
8
|
const snapshot = AsyncLocalStorage.snapshot();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { i as routeHandlers, n as RouteHandler, r as RouteHandlers, t as Handle } from "../route-handlers-E2lwhaAf.mjs";
|
|
2
1
|
import { Elysia as Elysia$1 } from "elysia";
|
|
2
|
+
import { i as routeHandlers, n as RouteHandler, r as RouteHandlers, t as Handle } from "../route-handlers-DAmv3iMD.mjs";
|
|
3
3
|
export declare const Elysia: typeof Elysia$1;
|
|
4
|
-
export { type Handle, type RouteHandler, type RouteHandlers, routeHandlers };
|
|
5
|
-
//# sourceMappingURL=elysia.d.mts.map
|
|
4
|
+
export { type Handle, type RouteHandler, type RouteHandlers, routeHandlers };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as traced, i as requestSpans, n as markFailed, r as recordStatus } from "../span-BKjRu617.mjs";
|
|
2
|
-
import { n as isServerError } from "../failure-CjeINRVu.mjs";
|
|
3
|
-
import { t as routeHandlers } from "../route-handlers-Cn3O2hmf.mjs";
|
|
4
|
-
import { Option, Predicate, pipe } from "effect";
|
|
5
1
|
import { tracing } from "cloudflare:workers";
|
|
2
|
+
import { Option, Predicate, pipe } from "effect";
|
|
6
3
|
import { Elysia as Elysia$1 } from "elysia";
|
|
4
|
+
import { a as traced, i as requestSpans, n as markFailed, r as recordStatus } from "../span-BK0kTs11.mjs";
|
|
5
|
+
import { n as isServerError } from "../failure-BhLz69b6.mjs";
|
|
6
|
+
import { t as routeHandlers } from "../route-handlers-CKVY2bqC.mjs";
|
|
7
7
|
// src/app/workers-tracing-elysia.ts
|
|
8
8
|
const activeSpan = () => Option.fromUndefinedOr(tracing.getActiveSpan());
|
|
9
9
|
const answersBelowServerError = (error) => Predicate.hasProperty(error, "status") && Predicate.isNumber(error.status) && !isServerError(error.status);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as routeHandlers, n as RouteHandler, r as RouteHandlers, t as Handle } from "../route-handlers-
|
|
1
|
+
import { i as routeHandlers, n as RouteHandler, r as RouteHandlers, t as Handle } from "../route-handlers-DAmv3iMD.mjs";
|
|
2
2
|
import { Elysia } from "elysia";
|
|
3
3
|
export { Elysia, type Handle, type RouteHandler, type RouteHandlers, routeHandlers };
|
|
@@ -5,5 +5,4 @@ export declare const requestSpan: import("@tanstack/react-start").RequestMiddlew
|
|
|
5
5
|
export declare const serverFnSpan: import("@tanstack/react-start").FunctionMiddlewareAfterServer<{}, unknown, undefined, unknown, undefined, undefined, unknown>;
|
|
6
6
|
export declare const traceRequest: typeof passThrough;
|
|
7
7
|
export declare const traceServerFn: typeof passThrough;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=tanstack-start.browser.d.mts.map
|
|
8
|
+
export {};
|
|
@@ -18,5 +18,4 @@ export declare const traceRequest: <Result extends {
|
|
|
18
18
|
}>({ request, pathname, handlerType, next }: StartRequest<Result>) => Promise<Result>;
|
|
19
19
|
export declare const traceServerFn: <Result>({ method, serverFnMeta, next }: ServerFnCall<Result>) => Promise<Result>;
|
|
20
20
|
export declare const requestSpan: import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, unknown>;
|
|
21
|
-
export declare const serverFnSpan: import("@tanstack/react-start").FunctionMiddlewareAfterServer<{}, unknown, undefined, unknown, undefined, undefined, unknown>;
|
|
22
|
-
//# sourceMappingURL=tanstack-start.d.mts.map
|
|
21
|
+
export declare const serverFnSpan: import("@tanstack/react-start").FunctionMiddlewareAfterServer<{}, unknown, undefined, unknown, undefined, undefined, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as traced, i as requestSpans, r as recordStatus } from "../span-BKjRu617.mjs";
|
|
2
|
-
import { Function } from "effect";
|
|
3
|
-
import { tracing } from "cloudflare:workers";
|
|
4
1
|
import { createMiddleware } from "@tanstack/react-start";
|
|
2
|
+
import { tracing } from "cloudflare:workers";
|
|
3
|
+
import { Function } from "effect";
|
|
4
|
+
import { a as traced, i as requestSpans, r as recordStatus } from "../span-BK0kTs11.mjs";
|
|
5
5
|
// src/app/workers-tracing-tanstack-start.ts
|
|
6
6
|
const traceRequest = ({ request, pathname, handlerType, next }) => tracing.enterSpan(`${request.method} ${pathname}`, (span) => {
|
|
7
7
|
span.setAttributes({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as logTraceRequest, n as UnreadableBody, r as bodyOf, t as TraceRequest } from "../otlp-spans-D88555DO.mjs";
|
|
2
1
|
import { Effect, Logger, ManagedRuntime, Schema } from "effect";
|
|
3
2
|
import { Mac } from "effect/crypto";
|
|
3
|
+
import { i as logTraceRequest, n as UnreadableBody, r as bodyOf, t as TraceRequest } from "../otlp-spans-BF7m_C1W.mjs";
|
|
4
4
|
// src/app/workers-tracing-trace-sink.ts
|
|
5
5
|
const runtime = ManagedRuntime.make(Logger.layer([Logger.withLeveledConsole(Logger.formatStructured)]));
|
|
6
6
|
const encoder = new TextEncoder();
|
|
@@ -29,5 +29,4 @@ export interface WorkersAiCall<Output> {
|
|
|
29
29
|
readonly call: (options: GatewayOptions) => PromiseLike<Output>;
|
|
30
30
|
}
|
|
31
31
|
export declare const runWorkersAi: <Output>({ call, caller, gateway, ...request }: WorkersAiCall<Output>) => Effect.Effect<Output, WorkersAiError>;
|
|
32
|
-
export {};
|
|
33
|
-
//# sourceMappingURL=workers-ai.d.mts.map
|
|
32
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as Remark, D as Title, E as SourceOrigin, S as Reaction, T as SourceId, _ as Manuscript, a as ManuscriptBody, b as ParagraphId, c as SYNC_ORIGIN, d as SyncDocument, f as SyncStatus, g as FactKind, h as Fact, i as DocumentKind, l as SourceBody, m as Classified, n as Changes, o as Pushed, p as Annotations, r as DOCUMENTS_PATH, s as SYNC_HOST, t as CHANGES_PATH, u as StoredDocument, v as ManuscriptId, w as Source, x as ParagraphKind, y as Paragraph } from "../index-
|
|
1
|
+
import { C as Remark, D as Title, E as SourceOrigin, S as Reaction, T as SourceId, _ as Manuscript, a as ManuscriptBody, b as ParagraphId, c as SYNC_ORIGIN, d as SyncDocument, f as SyncStatus, g as FactKind, h as Fact, i as DocumentKind, l as SourceBody, m as Classified, n as Changes, o as Pushed, p as Annotations, r as DOCUMENTS_PATH, s as SYNC_HOST, t as CHANGES_PATH, u as StoredDocument, v as ManuscriptId, w as Source, x as ParagraphKind, y as Paragraph } from "../index-BhIR7Vrb.mjs";
|
|
2
2
|
export { Annotations, CHANGES_PATH, Changes, Classified, DOCUMENTS_PATH, DocumentKind, Fact, FactKind, Manuscript, ManuscriptBody, ManuscriptId, Paragraph, ParagraphId, ParagraphKind, Pushed, Reaction, Remark, SYNC_HOST, SYNC_ORIGIN, Source, SourceBody, SourceId, SourceOrigin, StoredDocument, SyncDocument, SyncStatus, Title };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { p as Annotations, t as CHANGES_PATH, n as Changes, m as Classified, r as DOCUMENTS_PATH, i as DocumentKind, h as Fact, g as FactKind, _ as Manuscript, a as ManuscriptBody, v as ManuscriptId, y as Paragraph, b as ParagraphId, x as ParagraphKind, o as Pushed, S as Reaction, C as Remark, s as SYNC_HOST, c as SYNC_ORIGIN, w as Source, l as SourceBody, T as SourceId, E as SourceOrigin, u as StoredDocument, d as SyncDocument, f as SyncStatus, D as Title } from "../sync-
|
|
1
|
+
export { p as Annotations, t as CHANGES_PATH, n as Changes, m as Classified, r as DOCUMENTS_PATH, i as DocumentKind, h as Fact, g as FactKind, _ as Manuscript, a as ManuscriptBody, v as ManuscriptId, y as Paragraph, b as ParagraphId, x as ParagraphKind, o as Pushed, S as Reaction, C as Remark, s as SYNC_HOST, c as SYNC_ORIGIN, w as Source, l as SourceBody, T as SourceId, E as SourceOrigin, u as StoredDocument, d as SyncDocument, f as SyncStatus, D as Title } from "../sync-Ctl9b02O.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as Remark, D as Title, E as SourceOrigin, S as Reaction, T as SourceId, _ as Manuscript, b as ParagraphId, f as SyncStatus, g as FactKind, h as Fact, m as Classified, p as Annotations, v as ManuscriptId, w as Source, x as ParagraphKind, y as Paragraph } from "./index-
|
|
1
|
+
import { C as Remark, D as Title, E as SourceOrigin, S as Reaction, T as SourceId, _ as Manuscript, b as ParagraphId, f as SyncStatus, g as FactKind, h as Fact, m as Classified, p as Annotations, v as ManuscriptId, w as Source, x as ParagraphKind, y as Paragraph } from "./index-BhIR7Vrb.mjs";
|
|
2
2
|
export { Annotations, Classified, Fact, FactKind, Manuscript, ManuscriptId, Paragraph, ParagraphId, ParagraphKind, Reaction, Remark, Source, SourceId, SourceOrigin, SyncStatus, Title };
|
package/dist/yohaku-protocol.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { p as Annotations, m as Classified, h as Fact, g as FactKind, _ as Manuscript, v as ManuscriptId, y as Paragraph, b as ParagraphId, x as ParagraphKind, S as Reaction, C as Remark, w as Source, T as SourceId, E as SourceOrigin, f as SyncStatus, D as Title } from "./sync-
|
|
1
|
+
export { p as Annotations, m as Classified, h as Fact, g as FactKind, _ as Manuscript, v as ManuscriptId, y as Paragraph, b as ParagraphId, x as ParagraphKind, S as Reaction, C as Remark, w as Source, T as SourceId, E as SourceOrigin, f as SyncStatus, D as Title } from "./sync-Ctl9b02O.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r_masseater/masseater-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "The small shared libraries of masseater's repositories as subpaths of one package: a chip row for React, Claude Code plugin helpers, Effect entry points for Node.js and GitHub Actions, file import mapping, Node package readers, OTLP assertions for Vitest and Cloudflare Workers tracing, and what the Tauri desktop apps share: OpenTelemetry for the screens, Vite settings, the media-notes screens and the release commands.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"actions",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"#/*": "./src/*"
|
|
65
65
|
},
|
|
66
66
|
"exports": {
|
|
67
|
+
"./agent-query": "./dist/agent-query.mjs",
|
|
67
68
|
"./app-name": "./dist/app-name.mjs",
|
|
68
69
|
"./browser-test/fonts.conf": "./src/app/browser-test-fonts.conf",
|
|
69
70
|
"./browser-test/vite": "./dist/browser-test/vite.mjs",
|
|
@@ -164,6 +165,7 @@
|
|
|
164
165
|
},
|
|
165
166
|
"devDependencies": {
|
|
166
167
|
"@alchemy.run/cloudflare": "2.0.0-beta.87",
|
|
168
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.332",
|
|
167
169
|
"@bufbuild/buf": "1.75.0",
|
|
168
170
|
"@bufbuild/protobuf": "2.17.0",
|
|
169
171
|
"@cloudflare/workers-types": "5.20261129.1",
|
|
@@ -197,7 +199,7 @@
|
|
|
197
199
|
"@types/react": "19.3.3",
|
|
198
200
|
"@types/youtube": "0.3.0",
|
|
199
201
|
"@vitejs/plugin-react": "6.3.0",
|
|
200
|
-
"@vitest/browser-playwright": "5.1.
|
|
202
|
+
"@vitest/browser-playwright": "5.1.2",
|
|
201
203
|
"alchemy": "2.0.0-beta.87",
|
|
202
204
|
"class-variance-authority": "0.7.1",
|
|
203
205
|
"clsx": "2.1.1",
|
|
@@ -219,10 +221,11 @@
|
|
|
219
221
|
"ts-content-mapper": "0.1.1",
|
|
220
222
|
"tw-animate-css": "1.4.0",
|
|
221
223
|
"typescript": "7.1.0-dev.20261129.1",
|
|
222
|
-
"vite-plus": "1.
|
|
224
|
+
"vite-plus": "1.9.0"
|
|
223
225
|
},
|
|
224
226
|
"peerDependencies": {
|
|
225
227
|
"@alchemy.run/cloudflare": "^2.0.0-beta.85",
|
|
228
|
+
"@anthropic-ai/claude-agent-sdk": ">=0.3.332",
|
|
226
229
|
"@bufbuild/protobuf": ">=2.17.0",
|
|
227
230
|
"@effect/atom-react": ">=4.1.7",
|
|
228
231
|
"@effect/platform-node": ">=4.1.5",
|
|
@@ -270,6 +273,9 @@
|
|
|
270
273
|
"@alchemy.run/cloudflare": {
|
|
271
274
|
"optional": true
|
|
272
275
|
},
|
|
276
|
+
"@anthropic-ai/claude-agent-sdk": {
|
|
277
|
+
"optional": true
|
|
278
|
+
},
|
|
273
279
|
"@bufbuild/protobuf": {
|
|
274
280
|
"optional": true
|
|
275
281
|
},
|