@r_masseater/masseater-utils 0.18.0 → 0.18.2
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/ui/backdrop-palette.d.mts +1 -1
- package/dist/ui/backdrop-palette.mjs +1 -1
- package/dist/ui/backdrop-palette.mjs.map +1 -1
- package/dist/vitest-otlp/workers.d.mts +1 -0
- package/dist/vitest-otlp/workers.mjs +2 -1
- package/dist/vitest-otlp/workers.mjs.map +1 -1
- package/native/desktop-shell/Cargo.toml +3 -3
- package/native/media-notes/Cargo.toml +2 -2
- package/package.json +15 -15
- package/skills/add-scroll-chip-row/SKILL.md +1 -1
- package/skills/assert-exported-telemetry/SKILL.md +4 -3
- package/skills/build-tauri-app/SKILL.md +1 -1
- package/skills/find-cache-folder/SKILL.md +1 -1
- package/skills/import-custom-format/SKILL.md +1 -1
- package/skills/name-stack-resources/SKILL.md +1 -1
- package/skills/read-hook-input/SKILL.md +1 -1
- package/skills/read-node-ecosystem/SKILL.md +1 -1
- package/skills/run-effect-main/SKILL.md +1 -1
- package/skills/share-types-with-rust/SKILL.md +1 -1
- package/skills/trace-workers/SKILL.md +1 -1
- package/skills/use-model-server/SKILL.md +1 -1
- package/skills/write-actions-steps/SKILL.md +1 -1
|
@@ -6,4 +6,4 @@ export declare const backdropPalette: {
|
|
|
6
6
|
readonly indigo: "#c7d2fe";
|
|
7
7
|
readonly mint: "#d1fae5";
|
|
8
8
|
};
|
|
9
|
-
export declare const BACKDROP_STYLE_HASH = "'sha256-
|
|
9
|
+
export declare const BACKDROP_STYLE_HASH = "'sha256-03H/EKQ3LJuQsQVJzaVxXiTovqZXv4fPdrGh2+TOZOc='";
|
|
@@ -7,7 +7,7 @@ const backdropPalette = {
|
|
|
7
7
|
indigo: "#c7d2fe",
|
|
8
8
|
mint: "#d1fae5"
|
|
9
9
|
};
|
|
10
|
-
const BACKDROP_STYLE_HASH = "'sha256-
|
|
10
|
+
const BACKDROP_STYLE_HASH = "'sha256-03H/EKQ3LJuQsQVJzaVxXiTovqZXv4fPdrGh2+TOZOc='";
|
|
11
11
|
export { BACKDROP_STYLE_HASH, backdropPalette };
|
|
12
12
|
|
|
13
13
|
//# sourceMappingURL=backdrop-palette.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backdrop-palette.mjs","names":[],"sources":["../../src/shared/lib/backdrop-palette.ts"],"sourcesContent":["export const backdropPalette = {\n base: \"#ffffff\",\n sky: \"#dbeafe\",\n pink: \"#fbcfe8\",\n amber: \"#fef3c7\",\n indigo: \"#c7d2fe\",\n mint: \"#d1fae5\",\n} as const;\n\nexport const BACKDROP_STYLE_HASH = \"'sha256-
|
|
1
|
+
{"version":3,"file":"backdrop-palette.mjs","names":[],"sources":["../../src/shared/lib/backdrop-palette.ts"],"sourcesContent":["export const backdropPalette = {\n base: \"#ffffff\",\n sky: \"#dbeafe\",\n pink: \"#fbcfe8\",\n amber: \"#fef3c7\",\n indigo: \"#c7d2fe\",\n mint: \"#d1fae5\",\n} as const;\n\nexport const BACKDROP_STYLE_HASH = \"'sha256-03H/EKQ3LJuQsQVJzaVxXiTovqZXv4fPdrGh2+TOZOc='\";\n"],"mappings":";AAAA,MAAa,kBAAkB;CAC7B,MAAM;CACN,KAAK;CACL,MAAM;CACN,OAAO;CACP,QAAQ;CACR,MAAM;AACR;AAEA,MAAa,sBAAsB"}
|
|
@@ -21,5 +21,6 @@ export interface TailWorkerOptions {
|
|
|
21
21
|
readonly compatibilityDate?: string;
|
|
22
22
|
readonly serviceName?: string;
|
|
23
23
|
}
|
|
24
|
+
export declare const tailRuntimeEnv: Record<string, string>;
|
|
24
25
|
export declare const tailWorker: ({ name, compatibilityDate, serviceName }?: TailWorkerOptions) => Effect.Effect<TailWorker, TailWorkerBuildFailed | ReceiverNotRunning>;
|
|
25
26
|
export {};
|
|
@@ -5,6 +5,7 @@ import { n as currentReceiver } from "../vitest-otlp-current-receiver-Bh_4YbhT.m
|
|
|
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 }) {};
|
|
8
|
+
const tailRuntimeEnv = { OTEL_EXPORTER_OTLP_ENDPOINT: "" };
|
|
8
9
|
const DEFAULT_NAME = "vitest-otlp-tail";
|
|
9
10
|
const DEFAULT_SERVICE_NAME = "worker";
|
|
10
11
|
const DEFAULT_COMPATIBILITY_DATE = "2026-07-01";
|
|
@@ -49,6 +50,6 @@ const tailWorker = ({ name = DEFAULT_NAME, compatibilityDate = DEFAULT_COMPATIBI
|
|
|
49
50
|
OTEL_SERVICE_NAME: serviceName
|
|
50
51
|
}
|
|
51
52
|
})));
|
|
52
|
-
export { TailWorkerBuildFailed, tailWorker };
|
|
53
|
+
export { TailWorkerBuildFailed, tailRuntimeEnv, tailWorker };
|
|
53
54
|
|
|
54
55
|
//# sourceMappingURL=workers.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workers.mjs","names":[],"sources":["../../src/app/vitest-otlp-workers.ts"],"sourcesContent":["import { fileURLToPath } from \"node:url\";\n\nimport { Array, Effect, Option, Predicate, Schema, pipe } from \"effect\";\nimport { build } from \"vite-plus\";\n\nimport type { ReceiverNotRunning } from \"./vitest-otlp-current-receiver.ts\";\nimport { currentReceiver } from \"./vitest-otlp-current-receiver.ts\";\n\nconst taggedError = Schema.TaggedError;\n\nexport class TailWorkerBuildFailed extends taggedError<\n TailWorkerBuildFailed,\n { readonly brand: unique symbol }\n>()(\"TailWorkerBuildFailed\", { message: Schema.String }) {}\n\nexport interface TailWorker {\n name: string;\n compatibilityDate: string;\n modules: { type: \"ESModule\"; path: string; contents: string }[];\n bindings: Record<string, string>;\n}\n\nexport interface TailWorkerOptions {\n readonly name?: string;\n readonly compatibilityDate?: string;\n readonly serviceName?: string;\n}\n\nconst DEFAULT_NAME = \"vitest-otlp-tail\";\nconst DEFAULT_SERVICE_NAME = \"worker\";\nconst DEFAULT_COMPATIBILITY_DATE = \"2026-07-01\";\nconst ENTRY = \"@r_masseater/masseater-utils/vitest-otlp/tail-worker\";\nconst WORKER_CONDITIONS = [\"workerd\", \"worker\", \"browser\", \"import\", \"default\"];\n\nconst failed = (message: string): TailWorkerBuildFailed => TailWorkerBuildFailed.make({ message });\n\nconst chunkCode = (output: unknown): Option.Option<string> =>\n pipe(\n Array.head(Array.ensure(output)),\n Option.filter(Predicate.hasProperty(\"output\")),\n Option.map((result) => result.output),\n Option.filter(Predicate.isIterable),\n Option.flatMap((chunks) => Array.head(Array.fromIterable(chunks))),\n Option.filter(Predicate.hasProperty(\"code\")),\n Option.map((chunk) => chunk.code),\n Option.filter(Predicate.isString),\n );\n\nconst bundle: Effect.Effect<string, TailWorkerBuildFailed> = Effect.tryPromise({\n try: () =>\n build({\n configFile: false,\n logLevel: \"silent\",\n resolve: { conditions: WORKER_CONDITIONS },\n build: {\n write: false,\n minify: false,\n target: \"esnext\",\n lib: {\n entry: fileURLToPath(import.meta.resolve(ENTRY)),\n formats: [\"es\"],\n fileName: \"tail\",\n },\n },\n }),\n catch: (cause) => failed(`Bundling the tail worker failed: ${String(cause)}`),\n}).pipe(\n Effect.flatMap((output) =>\n Effect.fromOption(chunkCode(output)).pipe(\n Effect.mapError(() => failed(\"Bundling the tail worker produced no code.\")),\n ),\n ),\n Effect.withSpan(\"vitest-otlp.tail-worker.bundle\"),\n);\n\nexport const tailWorker = ({\n name = DEFAULT_NAME,\n compatibilityDate = DEFAULT_COMPATIBILITY_DATE,\n serviceName = DEFAULT_SERVICE_NAME,\n}: TailWorkerOptions = {}): Effect.Effect<TailWorker, TailWorkerBuildFailed | ReceiverNotRunning> =>\n Effect.all([bundle, currentReceiver], { concurrency: 1 }).pipe(\n Effect.map(([contents, receiver]) => ({\n name,\n compatibilityDate,\n modules: [{ type: \"ESModule\", path: \"tail-to-otlp.mjs\", contents }],\n bindings: {\n OTEL_EXPORTER_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AO,SAAS,gCAAgC,CAClD;AAEA,MAAa,cAAc,EACzB,OAAO,cACP,oBAAoB,4BACpB,cAAc,yBACO,CAAC,MACtB,OAAO,IAAI,CAAC,QAAQ,eAAe,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,KACxD,OAAO,KAAK,CAAC,UAAU,eAAe;CACpC;CACA;CACA,SAAS,CAAC;EAAE,MAAM;EAAY,MAAM;EAAoB;CAAS,CAAC;CAClE,UAAU;EACR,6BAA6B,SAAS,QAAQ;EAC9C,mBAAmB;CACrB;AACF,EAAE,CACJ"}
|
|
1
|
+
{"version":3,"file":"workers.mjs","names":[],"sources":["../../src/app/vitest-otlp-workers.ts"],"sourcesContent":["import { fileURLToPath } from \"node:url\";\n\nimport { Array, Effect, Option, Predicate, Schema, pipe } from \"effect\";\nimport { build } from \"vite-plus\";\n\nimport type { ReceiverNotRunning } from \"./vitest-otlp-current-receiver.ts\";\nimport { currentReceiver } from \"./vitest-otlp-current-receiver.ts\";\n\nconst taggedError = Schema.TaggedError;\n\nexport class TailWorkerBuildFailed extends taggedError<\n TailWorkerBuildFailed,\n { readonly brand: unique symbol }\n>()(\"TailWorkerBuildFailed\", { message: Schema.String }) {}\n\nexport interface TailWorker {\n name: string;\n compatibilityDate: string;\n modules: { type: \"ESModule\"; path: string; contents: string }[];\n bindings: Record<string, string>;\n}\n\nexport interface TailWorkerOptions {\n readonly name?: string;\n readonly compatibilityDate?: string;\n readonly serviceName?: string;\n}\n\nexport const tailRuntimeEnv: Record<string, string> = { OTEL_EXPORTER_OTLP_ENDPOINT: \"\" };\n\nconst DEFAULT_NAME = \"vitest-otlp-tail\";\nconst DEFAULT_SERVICE_NAME = \"worker\";\nconst DEFAULT_COMPATIBILITY_DATE = \"2026-07-01\";\nconst ENTRY = \"@r_masseater/masseater-utils/vitest-otlp/tail-worker\";\nconst WORKER_CONDITIONS = [\"workerd\", \"worker\", \"browser\", \"import\", \"default\"];\n\nconst failed = (message: string): TailWorkerBuildFailed => TailWorkerBuildFailed.make({ message });\n\nconst chunkCode = (output: unknown): Option.Option<string> =>\n pipe(\n Array.head(Array.ensure(output)),\n Option.filter(Predicate.hasProperty(\"output\")),\n Option.map((result) => result.output),\n Option.filter(Predicate.isIterable),\n Option.flatMap((chunks) => Array.head(Array.fromIterable(chunks))),\n Option.filter(Predicate.hasProperty(\"code\")),\n Option.map((chunk) => chunk.code),\n Option.filter(Predicate.isString),\n );\n\nconst bundle: Effect.Effect<string, TailWorkerBuildFailed> = Effect.tryPromise({\n try: () =>\n build({\n configFile: false,\n logLevel: \"silent\",\n resolve: { conditions: WORKER_CONDITIONS },\n build: {\n write: false,\n minify: false,\n target: \"esnext\",\n lib: {\n entry: fileURLToPath(import.meta.resolve(ENTRY)),\n formats: [\"es\"],\n fileName: \"tail\",\n },\n },\n }),\n catch: (cause) => failed(`Bundling the tail worker failed: ${String(cause)}`),\n}).pipe(\n Effect.flatMap((output) =>\n Effect.fromOption(chunkCode(output)).pipe(\n Effect.mapError(() => failed(\"Bundling the tail worker produced no code.\")),\n ),\n ),\n Effect.withSpan(\"vitest-otlp.tail-worker.bundle\"),\n);\n\nexport const tailWorker = ({\n name = DEFAULT_NAME,\n compatibilityDate = DEFAULT_COMPATIBILITY_DATE,\n serviceName = DEFAULT_SERVICE_NAME,\n}: TailWorkerOptions = {}): Effect.Effect<TailWorker, TailWorkerBuildFailed | ReceiverNotRunning> =>\n Effect.all([bundle, currentReceiver], { concurrency: 1 }).pipe(\n Effect.map(([contents, receiver]) => ({\n name,\n compatibilityDate,\n modules: [{ type: \"ESModule\", path: \"tail-to-otlp.mjs\", contents }],\n bindings: {\n OTEL_EXPORTER_OTLP_ENDPOINT: receiver.address.httpEndpoint,\n OTEL_SERVICE_NAME: serviceName,\n },\n })),\n );\n"],"mappings":";;;;;AAQA,MAAM,cAAc,OAAO;AAE3B,IAAa,wBAAb,cAA2C,YAGzC,CAAC,CAAC,yBAAyB,EAAE,SAAS,OAAO,OAAO,CAAC,CAAC,CA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,CAAC,KACxD,OAAO,KAAK,CAAC,UAAU,eAAe;CACpC;CACA;CACA,SAAS,CAAC;EAAE,MAAM;EAAY,MAAM;EAAoB;CAAS,CAAC;CAClE,UAAU;EACR,6BAA6B,SAAS,QAAQ;EAC9C,mBAAmB;CACrB;AACF,EAAE,CACJ"}
|
|
@@ -13,8 +13,8 @@ constant_time_eq = "=0.6.2"
|
|
|
13
13
|
getrandom = "=0.4.3"
|
|
14
14
|
opentelemetry = "=0.33.1"
|
|
15
15
|
opentelemetry_sdk = "=0.33.1"
|
|
16
|
-
otlp-file-exporter = "=0.2.
|
|
17
|
-
rmcp = { version = "=3.12.
|
|
16
|
+
otlp-file-exporter = "=0.2.2"
|
|
17
|
+
rmcp = { version = "=3.12.1", features = ["macros", "server", "transport-streamable-http-server"] }
|
|
18
18
|
tauri = { version = "=2.13.0", features = ["tracing"] }
|
|
19
19
|
tauri-plugin-dialog = "=2.9.0"
|
|
20
20
|
tauri-plugin-localhost = "=2.4.0"
|
|
@@ -22,7 +22,7 @@ tauri-plugin-log = "=2.10.2"
|
|
|
22
22
|
tauri-plugin-prevent-default = "=6.0.1"
|
|
23
23
|
tauri-plugin-single-instance = "=2.5.5"
|
|
24
24
|
tauri-plugin-updater = "=2.14.1"
|
|
25
|
-
tauri-plugin-window-state = "=2.5.
|
|
25
|
+
tauri-plugin-window-state = "=2.5.1"
|
|
26
26
|
tokio = { version = "=1.54.1", features = ["net"] }
|
|
27
27
|
serde_json = "=1.0.154"
|
|
28
28
|
tracing = "=0.1.44"
|
|
@@ -16,12 +16,12 @@ reqwest = { version = "=0.13.5", default-features = false, features = [
|
|
|
16
16
|
"rustls",
|
|
17
17
|
"system-proxy",
|
|
18
18
|
] }
|
|
19
|
-
rmcp = { version = "=3.12.
|
|
19
|
+
rmcp = { version = "=3.12.1", features = ["macros", "server", "transport-streamable-http-server"] }
|
|
20
20
|
rusqlite = { version = "=0.43.0", features = ["bundled"] }
|
|
21
21
|
schemars = "=1.2.3"
|
|
22
22
|
serde = { version = "=1.0.229", features = ["derive"] }
|
|
23
23
|
serde_json = "=1.0.154"
|
|
24
|
-
sha2 = "=0.11.
|
|
24
|
+
sha2 = "=0.11.3"
|
|
25
25
|
specta = { version = "=2.0.0-rc.28", features = ["derive", "function"] }
|
|
26
26
|
specta-typescript = "=0.0.15"
|
|
27
27
|
tauri = { version = "=2.13.0", features = ["protocol-asset"] }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@r_masseater/masseater-utils",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
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",
|
|
@@ -168,10 +168,10 @@
|
|
|
168
168
|
},
|
|
169
169
|
"devDependencies": {
|
|
170
170
|
"@alchemy.run/cloudflare": "2.0.0-beta.88",
|
|
171
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
171
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.335",
|
|
172
172
|
"@bufbuild/buf": "1.75.0",
|
|
173
173
|
"@bufbuild/protobuf": "2.17.0",
|
|
174
|
-
"@cloudflare/workers-types": "5.
|
|
174
|
+
"@cloudflare/workers-types": "5.20261201.1",
|
|
175
175
|
"@effect/atom-react": "4.2.0",
|
|
176
176
|
"@effect/platform-node": "4.2.0",
|
|
177
177
|
"@effect/platform-node-shared": "4.2.0",
|
|
@@ -180,14 +180,14 @@
|
|
|
180
180
|
"@fontsource-variable/roboto-flex": "5.3.0",
|
|
181
181
|
"@npmcli/package-json": "8.0.1",
|
|
182
182
|
"@opentelemetry/api": "1.10.0",
|
|
183
|
-
"@opentelemetry/browser-instrumentation": "0.
|
|
184
|
-
"@opentelemetry/browser-sdk": "0.9.
|
|
185
|
-
"@opentelemetry/exporter-logs-otlp-http": "0.
|
|
186
|
-
"@opentelemetry/exporter-trace-otlp-http": "0.
|
|
187
|
-
"@opentelemetry/sdk-logs": "3.1.
|
|
188
|
-
"@opentelemetry/sdk-node": "0.
|
|
189
|
-
"@opentelemetry/sdk-trace": "3.1.
|
|
190
|
-
"@paper-design/shaders": "0.0.
|
|
183
|
+
"@opentelemetry/browser-instrumentation": "0.13.0",
|
|
184
|
+
"@opentelemetry/browser-sdk": "0.9.2",
|
|
185
|
+
"@opentelemetry/exporter-logs-otlp-http": "0.302.0",
|
|
186
|
+
"@opentelemetry/exporter-trace-otlp-http": "0.302.0",
|
|
187
|
+
"@opentelemetry/sdk-logs": "3.1.2",
|
|
188
|
+
"@opentelemetry/sdk-node": "0.302.0",
|
|
189
|
+
"@opentelemetry/sdk-trace": "3.1.2",
|
|
190
|
+
"@paper-design/shaders": "0.0.84",
|
|
191
191
|
"@pnpm/deps.path": "1101.0.11",
|
|
192
192
|
"@pnpm/lockfile.fs": "1100.2.20",
|
|
193
193
|
"@pnpm/workspace.projects-reader": "1101.1.9",
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"@types/npmcli__package-json": "4.0.4",
|
|
202
202
|
"@types/react": "19.3.3",
|
|
203
203
|
"@types/youtube": "0.3.0",
|
|
204
|
-
"@vitejs/plugin-react": "6.3.
|
|
204
|
+
"@vitejs/plugin-react": "6.3.1",
|
|
205
205
|
"@vitest/browser-playwright": "5.1.2",
|
|
206
206
|
"alchemy": "2.0.0-beta.88",
|
|
207
207
|
"class-variance-authority": "0.7.1",
|
|
@@ -210,16 +210,16 @@
|
|
|
210
210
|
"effect": "4.2.0",
|
|
211
211
|
"elysia": "1.4.32",
|
|
212
212
|
"happy-dom": "21.0.4",
|
|
213
|
-
"lucide-react": "1.
|
|
213
|
+
"lucide-react": "1.86.0",
|
|
214
214
|
"miniflare": "4.20260730.0",
|
|
215
215
|
"niconico-embed-player": "0.1.2",
|
|
216
|
-
"playwright": "1.65.
|
|
216
|
+
"playwright": "1.65.2",
|
|
217
217
|
"publint": "0.3.25",
|
|
218
218
|
"quicktype-core": "26.0.0",
|
|
219
219
|
"radix-ui": "1.8.1",
|
|
220
220
|
"react": "19.3.1",
|
|
221
221
|
"srvx": "1.0.8",
|
|
222
|
-
"tailwind-merge": "3.7.
|
|
222
|
+
"tailwind-merge": "3.7.3",
|
|
223
223
|
"tailwindcss": "4.3.5",
|
|
224
224
|
"ts-content-mapper": "0.1.1",
|
|
225
225
|
"tw-animate-css": "1.4.0",
|
|
@@ -8,7 +8,7 @@ description: >
|
|
|
8
8
|
metadata:
|
|
9
9
|
type: core
|
|
10
10
|
library: "@r_masseater/masseater-utils"
|
|
11
|
-
library_version: 0.18.
|
|
11
|
+
library_version: 0.18.2
|
|
12
12
|
sources:
|
|
13
13
|
- src/app
|
|
14
14
|
- src/features/receive-otlp
|
|
@@ -94,11 +94,11 @@ Weaver must be on `PATH` unless `weaver` names it.
|
|
|
94
94
|
|
|
95
95
|
`tailWorker()` from `@r_masseater/masseater-utils/vitest-otlp/workers` bundles a tail worker.
|
|
96
96
|
It forwards a Worker's traces and logs to the receiver.
|
|
97
|
-
Add it to Miniflare's `workers
|
|
97
|
+
Add it to Miniflare's `workers`, list its name in the traced Worker's `streamingTails`, and pass `tailRuntimeEnv` as `unsafeRuntimeEnv` so that workerd does not also export its own spans to the receiver.
|
|
98
98
|
|
|
99
99
|
```ts
|
|
100
100
|
import { waitForSpans } from "@r_masseater/masseater-utils/vitest-otlp";
|
|
101
|
-
import { tailWorker } from "@r_masseater/masseater-utils/vitest-otlp/workers";
|
|
101
|
+
import { tailRuntimeEnv, tailWorker } from "@r_masseater/masseater-utils/vitest-otlp/workers";
|
|
102
102
|
import { Effect } from "effect";
|
|
103
103
|
import { Miniflare } from "miniflare";
|
|
104
104
|
import { test } from "vite-plus/test";
|
|
@@ -107,6 +107,7 @@ test("caching writes to KV", () =>
|
|
|
107
107
|
Effect.gen(function* () {
|
|
108
108
|
const tail = yield* tailWorker({ serviceName: "app" });
|
|
109
109
|
const miniflare = new Miniflare({
|
|
110
|
+
unsafeRuntimeEnv: tailRuntimeEnv,
|
|
110
111
|
workers: [
|
|
111
112
|
{
|
|
112
113
|
name: "app",
|