@aryasaatvik/motel 0.3.2 → 0.3.4
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/AGENTS.md +4 -4
- package/package.json +7 -7
- package/src/mcp.ts +7 -1
- package/src/motel.test.ts +1 -1
- package/src/motel.ts +3 -1
- package/src/services/ingestRpc.ts +1 -1
- package/src/services/queryRpc.ts +1 -1
- package/web/dist/assets/index-5mTXbtNw.js +21 -0
- package/web/dist/index.html +1 -1
- package/web/dist/assets/index-CYlBaY9O.js +0 -22
package/AGENTS.md
CHANGED
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
|
|
34
34
|
## Release Strategy
|
|
35
35
|
- npm package: `@aryasaatvik/motel`
|
|
36
|
-
- Releases are run
|
|
36
|
+
- Releases are run by the default `dev` branch GitHub Action with Tegami and npm trusted publishing; local sessions only prepare or verify releases.
|
|
37
37
|
- Tags are versioned as `vX.Y.Z` (`git tag --sort=-version:refname` shows `v0.2.4`, `v0.2.3`, ...)
|
|
38
38
|
- Add user-facing release notes under `.tegami/` and commit them with the implementation they describe.
|
|
39
39
|
- `bun run version:packages` consumes pending entries, updates the package version and changelog, writes the publish lock, and opens or updates `tegami/version-packages` against `dev`.
|
|
40
|
-
- After the version pull request is merged,
|
|
41
|
-
- The
|
|
42
|
-
- See `docs/release.md` for the
|
|
40
|
+
- After the version pull request is merged, the `publish.yml` workflow runs the release checks, then `tegami ci` publishes through npm OIDC, pushes the matching `v<version>` tag, and creates the GitHub Release.
|
|
41
|
+
- The npm trusted publisher is `aryasaatvik/motel` + `publish.yml` with no environment; no `NPM_TOKEN` or npm stage publishing is used.
|
|
42
|
+
- See `docs/release.md` for the workflow and verification procedure.
|
|
43
43
|
- Publishing does not install or restart the machine-global Motel service; that cutover is a separate operation.
|
|
44
44
|
|
|
45
45
|
## Effect LSP
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aryasaatvik/motel",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "A local OpenTelemetry ingest + TUI viewer for development, backed by SQLite.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -94,14 +94,14 @@
|
|
|
94
94
|
"@effect/language-service": "0.87.1",
|
|
95
95
|
"@types/bun": "^1.3.14",
|
|
96
96
|
"@types/react": "^19.2.17",
|
|
97
|
-
"tegami": "1.
|
|
97
|
+
"tegami": "1.4.0",
|
|
98
98
|
"typescript": "^6.0.3"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
|
-
"@effect/atom-react": "4.0.0-
|
|
102
|
-
"@effect/opentelemetry": "4.0.0-
|
|
103
|
-
"@effect/platform-bun": "4.0.0-
|
|
104
|
-
"@effect/platform-node-shared": "4.0.0-
|
|
101
|
+
"@effect/atom-react": "4.0.0-rc.112",
|
|
102
|
+
"@effect/opentelemetry": "4.0.0-rc.112",
|
|
103
|
+
"@effect/platform-bun": "4.0.0-rc.112",
|
|
104
|
+
"@effect/platform-node-shared": "4.0.0-rc.112",
|
|
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-
|
|
115
|
+
"effect": "4.0.0-rc.112",
|
|
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
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", {
|
|
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.
|
|
24
|
+
export class IngestError extends Schema.TaggedError<IngestError>()("IngestError", {
|
|
25
25
|
message: Schema.String,
|
|
26
26
|
}) {}
|
|
27
27
|
|
package/src/services/queryRpc.ts
CHANGED
|
@@ -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.
|
|
5
|
+
export class QueryError extends Schema.TaggedError<QueryError>()("QueryError", {
|
|
6
6
|
message: Schema.String,
|
|
7
7
|
}) {}
|
|
8
8
|
|