@aryasaatvik/motel 0.3.2 → 0.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aryasaatvik/motel",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "A local OpenTelemetry ingest + TUI viewer for development, backed by SQLite.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -98,10 +98,10 @@
98
98
  "typescript": "^6.0.3"
99
99
  },
100
100
  "dependencies": {
101
- "@effect/atom-react": "4.0.0-beta.101",
102
- "@effect/opentelemetry": "4.0.0-beta.101",
103
- "@effect/platform-bun": "4.0.0-beta.101",
104
- "@effect/platform-node-shared": "4.0.0-beta.101",
101
+ "@effect/atom-react": "4.0.0-rc.110",
102
+ "@effect/opentelemetry": "4.0.0-rc.110",
103
+ "@effect/platform-bun": "4.0.0-rc.110",
104
+ "@effect/platform-node-shared": "4.0.0-rc.110",
105
105
  "@opentelemetry/api": "^1.9.0",
106
106
  "@opentelemetry/exporter-logs-otlp-http": "^0.219.0",
107
107
  "@opentelemetry/exporter-trace-otlp-http": "^0.219.0",
@@ -112,7 +112,7 @@
112
112
  "@opentelemetry/sdk-trace-node": "^2.8.0",
113
113
  "@opentui/core": "0.4.2",
114
114
  "@opentui/react": "0.4.2",
115
- "effect": "4.0.0-beta.101",
115
+ "effect": "4.0.0-rc.110",
116
116
  "protobufjs": "7.6.4",
117
117
  "react": "^19.2.7",
118
118
  "scheduler": "^0.27.0"
package/src/mcp.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import { BunRuntime, BunStdio } from "@effect/platform-bun"
3
3
  import { Effect, Layer, Logger, Schema } from "effect"
4
4
  import { MOTEL_VERSION } from "./registry.js"
5
- import { McpServer, Tool, Toolkit } from "effect/unstable/ai"
5
+ import { McpProtocol, McpServer, Tool, Toolkit } from "effect/unstable/ai"
6
6
  import { TraceSpanStatus } from "./domain.js"
7
7
  import { MotelClient, MotelClientLive } from "./motelClient.js"
8
8
  import { Locator, LocatorLive } from "./locator.js"
@@ -424,6 +424,12 @@ const ServerLayer = McpServer.toolkit(MotelToolkit).pipe(
424
424
  McpServer.layerStdio({
425
425
  name: "motel",
426
426
  version: MOTEL_VERSION,
427
+ protocols: [
428
+ McpProtocol.v2025_11_25,
429
+ McpProtocol.v2025_06_18,
430
+ McpProtocol.v2025_03_26,
431
+ McpProtocol.v2024_11_05,
432
+ ],
427
433
  }),
428
434
  ),
429
435
  Layer.provide(BunStdio.layer),
package/src/motel.test.ts CHANGED
@@ -172,5 +172,5 @@ describe("motel command tree", () => {
172
172
  } finally {
173
173
  fs.rmSync(temporaryPrefix, { recursive: true, force: true })
174
174
  }
175
- })
175
+ }, 20_000)
176
176
  })
package/src/motel.ts CHANGED
@@ -39,7 +39,9 @@ const restart = Command.make("restart", {}, () =>
39
39
  ).pipe(Command.withDescription("Restart only the managed telemetry daemon"))
40
40
 
41
41
  const serviceManager = createLaunchAgentManager()
42
- const serviceInstall = Command.make("install", { replace: Flag.boolean("replace") }, ({ replace }) =>
42
+ const serviceInstall = Command.make("install", {
43
+ replace: Flag.boolean("replace").pipe(Flag.withDefault(false)),
44
+ }, ({ replace }) =>
43
45
  serviceManager.install(replace).pipe(Effect.andThen(json)),
44
46
  ).pipe(Command.withDescription("Install the per-user Motel LaunchAgent"))
45
47
  const serviceStatus = Command.make("status", {}, () =>
@@ -21,7 +21,7 @@ import { Schema } from "effect"
21
21
  import * as Rpc from "effect/unstable/rpc/Rpc"
22
22
  import * as RpcGroup from "effect/unstable/rpc/RpcGroup"
23
23
 
24
- export class IngestError extends Schema.TaggedErrorClass<IngestError>()("IngestError", {
24
+ export class IngestError extends Schema.TaggedError<IngestError>()("IngestError", {
25
25
  message: Schema.String,
26
26
  }) {}
27
27
 
@@ -2,7 +2,7 @@ import { Schema } from "effect"
2
2
  import * as Rpc from "effect/unstable/rpc/Rpc"
3
3
  import * as RpcGroup from "effect/unstable/rpc/RpcGroup"
4
4
 
5
- export class QueryError extends Schema.TaggedErrorClass<QueryError>()("QueryError", {
5
+ export class QueryError extends Schema.TaggedError<QueryError>()("QueryError", {
6
6
  message: Schema.String,
7
7
  }) {}
8
8