@zyro-sec/server 0.0.0-stage → 1.0.1
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 +40 -4
- package/script/build.ts +28 -0
- package/script/pack.ts +5 -0
- package/script/workerd-probe.ts +59 -0
- package/src/api.ts +12 -0
- package/src/auth.ts +70 -0
- package/src/content-headers.ts +32 -0
- package/src/cors.ts +34 -0
- package/src/event-feed.ts +93 -0
- package/src/fetch.ts +67 -0
- package/src/handlers/agent.ts +23 -0
- package/src/handlers/artifact.ts +242 -0
- package/src/handlers/automation.ts +63 -0
- package/src/handlers/blob.ts +55 -0
- package/src/handlers/command.ts +8 -0
- package/src/handlers/config.ts +26 -0
- package/src/handlers/credential.ts +87 -0
- package/src/handlers/debug.ts +57 -0
- package/src/handlers/event.ts +38 -0
- package/src/handlers/form.ts +15 -0
- package/src/handlers/fs.ts +180 -0
- package/src/handlers/generate.ts +117 -0
- package/src/handlers/integration.ts +310 -0
- package/src/handlers/job.ts +29 -0
- package/src/handlers/location.ts +33 -0
- package/src/handlers/machine.ts +336 -0
- package/src/handlers/mcp.ts +160 -0
- package/src/handlers/media.ts +44 -0
- package/src/handlers/message.ts +82 -0
- package/src/handlers/migration.ts +13 -0
- package/src/handlers/model.ts +25 -0
- package/src/handlers/permission.ts +131 -0
- package/src/handlers/persistent-pty.ts +285 -0
- package/src/handlers/plugin.ts +97 -0
- package/src/handlers/project.ts +23 -0
- package/src/handlers/provider.ts +32 -0
- package/src/handlers/pty-socket.ts +47 -0
- package/src/handlers/pty.ts +181 -0
- package/src/handlers/push.ts +67 -0
- package/src/handlers/reference.ts +8 -0
- package/src/handlers/rpc.ts +31 -0
- package/src/handlers/server.ts +58 -0
- package/src/handlers/session-error.ts +47 -0
- package/src/handlers/session.ts +722 -0
- package/src/handlers/shell.ts +72 -0
- package/src/handlers/skill.ts +34 -0
- package/src/handlers/usage.ts +23 -0
- package/src/handlers/vcs.ts +104 -0
- package/src/handlers/voice.ts +50 -0
- package/src/handlers/websearch.ts +50 -0
- package/src/handlers/worktree.ts +60 -0
- package/src/handlers.ts +69 -0
- package/src/location.ts +86 -0
- package/src/media-uri.ts +13 -0
- package/src/middleware/authorization.ts +111 -0
- package/src/middleware/defect-response.ts +39 -0
- package/src/middleware/form-location.ts +44 -0
- package/src/middleware/schema-error.ts +49 -0
- package/src/middleware/session-location.ts +30 -0
- package/src/options.ts +61 -0
- package/src/pairing.ts +36 -0
- package/src/process.ts +274 -0
- package/src/range.ts +16 -0
- package/src/request-site.ts +36 -0
- package/src/request-tracing.ts +9 -0
- package/src/routes.ts +261 -0
- package/src/server-info.ts +41 -0
- package/src/service-status.ts +30 -0
- package/src/workerd.ts +184 -0
- package/test/artifact.test.ts +224 -0
- package/test/auth.test.ts +24 -0
- package/test/automation.test.ts +315 -0
- package/test/client-mcp.test.ts +369 -0
- package/test/codemode-api.test.ts +88 -0
- package/test/config.test.ts +104 -0
- package/test/cors.test.ts +24 -0
- package/test/defect-response.test.ts +83 -0
- package/test/event-feed.test.ts +201 -0
- package/test/fetch-option.test.ts +104 -0
- package/test/fetch.test.ts +698 -0
- package/test/fixture/mcp-starts.cjs +20 -0
- package/test/fixture/routes.ts +37 -0
- package/test/fixture/server.ts +20 -0
- package/test/fixture/worktree-delegate/index.ts +13 -0
- package/test/fixture/worktree-plugin/index.ts +47 -0
- package/test/flag-channel.test.ts +126 -0
- package/test/fs.test.ts +439 -0
- package/test/generate.test.ts +132 -0
- package/test/handler-policy.test.ts +43 -0
- package/test/heap-dump.test.ts +137 -0
- package/test/integration-policy.test.ts +93 -0
- package/test/job.test.ts +186 -0
- package/test/machine-iroh.test.ts +259 -0
- package/test/machine-link.test.ts +1234 -0
- package/test/machine-routes.test.ts +198 -0
- package/test/media.test.ts +343 -0
- package/test/message.test.ts +105 -0
- package/test/model.test.ts +62 -0
- package/test/options.test.ts +42 -0
- package/test/permission-saved.test.ts +73 -0
- package/test/persistent-pty.test.ts +1007 -0
- package/test/process.test.ts +261 -0
- package/test/provider.test.ts +88 -0
- package/test/pty-socket.property.test.ts +240 -0
- package/test/pty-socket.test.ts +89 -0
- package/test/pty-transport.test.ts +200 -0
- package/test/push-routes.test.ts +157 -0
- package/test/request-site.test.ts +71 -0
- package/test/request-tracing.test.ts +87 -0
- package/test/rpc-handler-errors.test.ts +76 -0
- package/test/schema-error.test.ts +68 -0
- package/test/service-status.test.ts +34 -0
- package/test/session-admit-location.test.ts +92 -0
- package/test/session-create.test.ts +65 -0
- package/test/session-diff.test.ts +100 -0
- package/test/session-form.test.ts +50 -0
- package/test/session-import.test.ts +152 -0
- package/test/session-instances.test.ts +335 -0
- package/test/session-unarchive.test.ts +73 -0
- package/test/session-update.test.ts +66 -0
- package/test/skill.test.ts +57 -0
- package/test/sse-failure.test.ts +71 -0
- package/test/usage.test.ts +88 -0
- package/test/vcs.test.ts +356 -0
- package/test/video-generate.test.ts +131 -0
- package/test/voice.test.ts +170 -0
- package/test/workerd.test.ts +227 -0
- package/test/worktree.test.ts +333 -0
- package/tsconfig.build.json +15 -0
- package/tsconfig.json +11 -0
- package/README.md +0 -3
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { describe, expect, test } from "bun:test"
|
|
2
|
+
import { Agent } from "@zyro-sec/core/agent"
|
|
3
|
+
import { Bus } from "@zyro-sec/core/bus"
|
|
4
|
+
import { Credential } from "@zyro-sec/schema/credential"
|
|
5
|
+
import { Event } from "@zyro-sec/schema/event"
|
|
6
|
+
import { IntegrationID } from "@zyro-sec/schema/integration-id"
|
|
7
|
+
import { Deferred, Effect, Exit, Fiber, Option, Schema, Stream } from "effect"
|
|
8
|
+
import { it } from "../../core/test/lib/effect"
|
|
9
|
+
import { EventFeed } from "../src/event-feed"
|
|
10
|
+
|
|
11
|
+
const Internal = Bus.ephemeral({ type: "test.internal", schema: { value: Schema.String } })
|
|
12
|
+
|
|
13
|
+
const event = (id: string): Event.Payload<typeof Agent.Event.Updated> => ({
|
|
14
|
+
id: Event.ID.make(`evt_${id}`),
|
|
15
|
+
created: Date.now(),
|
|
16
|
+
type: Agent.Event.Updated.type,
|
|
17
|
+
data: {},
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
const internal = (value: string): Event.Payload<typeof Internal> => ({
|
|
21
|
+
id: Event.ID.create(),
|
|
22
|
+
created: Date.now(),
|
|
23
|
+
type: Internal.type,
|
|
24
|
+
data: { value },
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
function makeSource() {
|
|
28
|
+
let subscriber: Bus.Subscriber | undefined
|
|
29
|
+
return {
|
|
30
|
+
observe: (next: Bus.Subscriber) =>
|
|
31
|
+
Effect.sync(() => {
|
|
32
|
+
subscriber = next
|
|
33
|
+
return Effect.sync(() => {
|
|
34
|
+
if (subscriber === next) subscriber = undefined
|
|
35
|
+
})
|
|
36
|
+
}),
|
|
37
|
+
publish: (event: Event.Payload) => Effect.suspend(() => (subscriber ? subscriber(event) : Effect.void)),
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
describe("EventFeed", () => {
|
|
42
|
+
test("preserves the public SSE frame encoding", () => {
|
|
43
|
+
const payload = event("wire")
|
|
44
|
+
expect(EventFeed.frame(payload)).toBe(`data: ${JSON.stringify(payload)}\n\n`)
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
it.effect("encodes once and delivers the same frame to every subscriber", () =>
|
|
48
|
+
Effect.gen(function* () {
|
|
49
|
+
let encodes = 0
|
|
50
|
+
const source = makeSource()
|
|
51
|
+
const feed = yield* EventFeed.make(source.observe, {
|
|
52
|
+
encode: (event) => {
|
|
53
|
+
encodes += 1
|
|
54
|
+
return event.type
|
|
55
|
+
},
|
|
56
|
+
})
|
|
57
|
+
const first = yield* feed.subscribe()
|
|
58
|
+
const second = yield* feed.subscribe()
|
|
59
|
+
const left = yield* first.pipe(Stream.take(1), Stream.runCollect, Effect.forkScoped)
|
|
60
|
+
const right = yield* second.pipe(Stream.take(1), Stream.runCollect, Effect.forkScoped)
|
|
61
|
+
|
|
62
|
+
yield* source.publish(event("example"))
|
|
63
|
+
|
|
64
|
+
expect([Array.from(yield* Fiber.join(left)), Array.from(yield* Fiber.join(right))]).toEqual([
|
|
65
|
+
[Agent.Event.Updated.type],
|
|
66
|
+
[Agent.Event.Updated.type],
|
|
67
|
+
])
|
|
68
|
+
expect(encodes).toBe(1)
|
|
69
|
+
}),
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
it.effect("delivers only the requested event types to filtered subscribers", () =>
|
|
73
|
+
Effect.gen(function* () {
|
|
74
|
+
const source = makeSource()
|
|
75
|
+
const feed = yield* EventFeed.make(source.observe, { encode: (event) => event.type })
|
|
76
|
+
const filtered = yield* feed.subscribe([Credential.Event.Switched.type])
|
|
77
|
+
const all = yield* feed.subscribe()
|
|
78
|
+
const left = yield* filtered.pipe(Stream.take(1), Stream.runCollect, Effect.forkScoped)
|
|
79
|
+
const right = yield* all.pipe(Stream.take(2), Stream.runCollect, Effect.forkScoped)
|
|
80
|
+
|
|
81
|
+
yield* source.publish(event("ignored"))
|
|
82
|
+
yield* source.publish({
|
|
83
|
+
id: Event.ID.create(),
|
|
84
|
+
created: Date.now(),
|
|
85
|
+
type: Credential.Event.Switched.type,
|
|
86
|
+
data: {
|
|
87
|
+
credentialID: Credential.ID.make("cred_test"),
|
|
88
|
+
integrationID: IntegrationID.make("openai"),
|
|
89
|
+
},
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
expect(Array.from(yield* Fiber.join(left))).toEqual([Credential.Event.Switched.type])
|
|
93
|
+
expect(Array.from(yield* Fiber.join(right))).toEqual([Agent.Event.Updated.type, Credential.Event.Switched.type])
|
|
94
|
+
}),
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
it.effect("fails only the subscriber that exceeds its lag capacity", () =>
|
|
98
|
+
Effect.gen(function* () {
|
|
99
|
+
const source = makeSource()
|
|
100
|
+
const feed = yield* EventFeed.make(source.observe, {
|
|
101
|
+
capacity: 1,
|
|
102
|
+
encode: (event) => event.id,
|
|
103
|
+
})
|
|
104
|
+
const slow = yield* feed.subscribe()
|
|
105
|
+
const fast = yield* feed.subscribe()
|
|
106
|
+
const first = yield* Deferred.make<void>()
|
|
107
|
+
const second = yield* Deferred.make<void>()
|
|
108
|
+
const received = new Array<string>()
|
|
109
|
+
const fastFiber = yield* fast.pipe(
|
|
110
|
+
Stream.take(3),
|
|
111
|
+
Stream.runForEach((frame) =>
|
|
112
|
+
Effect.sync(() => received.push(frame)).pipe(
|
|
113
|
+
Effect.andThen(
|
|
114
|
+
frame === "evt_one"
|
|
115
|
+
? Deferred.succeed(first, undefined)
|
|
116
|
+
: frame === "evt_two"
|
|
117
|
+
? Deferred.succeed(second, undefined)
|
|
118
|
+
: Effect.void,
|
|
119
|
+
),
|
|
120
|
+
),
|
|
121
|
+
),
|
|
122
|
+
Effect.forkScoped,
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
yield* source.publish(event("one"))
|
|
126
|
+
yield* Deferred.await(first)
|
|
127
|
+
yield* source.publish(event("two"))
|
|
128
|
+
yield* Deferred.await(second)
|
|
129
|
+
yield* source.publish(event("three"))
|
|
130
|
+
|
|
131
|
+
yield* Fiber.join(fastFiber)
|
|
132
|
+
|
|
133
|
+
const result = yield* slow.pipe(Stream.runCollect, Effect.exit)
|
|
134
|
+
expect(received).toEqual(["evt_one", "evt_two", "evt_three"])
|
|
135
|
+
expect(Exit.isFailure(result)).toBeTrue()
|
|
136
|
+
if (Exit.isSuccess(result)) return
|
|
137
|
+
expect(Option.getOrUndefined(Exit.findErrorOption(result))).toBeInstanceOf(EventFeed.SubscriberOverflowError)
|
|
138
|
+
}),
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
it.effect("delivers global credential events to public subscribers", () =>
|
|
142
|
+
Effect.gen(function* () {
|
|
143
|
+
const source = makeSource()
|
|
144
|
+
const feed = yield* EventFeed.make(source.observe, { encode: (event) => event.type })
|
|
145
|
+
const stream = yield* feed.subscribe()
|
|
146
|
+
const received = yield* stream.pipe(Stream.take(1), Stream.runCollect, Effect.forkScoped)
|
|
147
|
+
|
|
148
|
+
yield* source.publish({
|
|
149
|
+
id: Event.ID.create(),
|
|
150
|
+
created: Date.now(),
|
|
151
|
+
type: Credential.Event.Switched.type,
|
|
152
|
+
data: {
|
|
153
|
+
credentialID: Credential.ID.make("cred_test"),
|
|
154
|
+
integrationID: IntegrationID.make("openai"),
|
|
155
|
+
},
|
|
156
|
+
})
|
|
157
|
+
|
|
158
|
+
expect(Array.from(yield* Fiber.join(received))).toEqual([Credential.Event.Switched.type])
|
|
159
|
+
}),
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
it.effect("filters internal events before they consume subscriber capacity", () =>
|
|
163
|
+
Effect.gen(function* () {
|
|
164
|
+
const source = makeSource()
|
|
165
|
+
const feed = yield* EventFeed.make(source.observe, { capacity: 1, encode: (event) => event.type })
|
|
166
|
+
const stream = yield* feed.subscribe()
|
|
167
|
+
|
|
168
|
+
yield* source.publish(internal("one"))
|
|
169
|
+
yield* source.publish(internal("two"))
|
|
170
|
+
yield* source.publish(event("public"))
|
|
171
|
+
|
|
172
|
+
expect(Array.from(yield* stream.pipe(Stream.take(1), Stream.runCollect))).toEqual([Agent.Event.Updated.type])
|
|
173
|
+
}),
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
it.effect("disconnects current subscribers after an encoding failure and continues for later subscribers", () =>
|
|
177
|
+
Effect.gen(function* () {
|
|
178
|
+
const source = makeSource()
|
|
179
|
+
const feed = yield* EventFeed.make(source.observe, {
|
|
180
|
+
encode: (event) => {
|
|
181
|
+
if (event.id === Event.ID.make("evt_bad")) throw new Error("invalid event")
|
|
182
|
+
return event.id
|
|
183
|
+
},
|
|
184
|
+
})
|
|
185
|
+
const current = yield* feed.subscribe()
|
|
186
|
+
const failed = yield* current.pipe(Stream.runCollect, Effect.exit, Effect.forkScoped)
|
|
187
|
+
|
|
188
|
+
yield* source.publish(event("bad"))
|
|
189
|
+
const exit = yield* Fiber.join(failed)
|
|
190
|
+
|
|
191
|
+
const next = yield* feed.subscribe()
|
|
192
|
+
const received = yield* next.pipe(Stream.take(1), Stream.runCollect, Effect.forkScoped)
|
|
193
|
+
yield* source.publish(event("good"))
|
|
194
|
+
|
|
195
|
+
expect(Exit.isFailure(exit)).toBeTrue()
|
|
196
|
+
if (Exit.isSuccess(exit)) return
|
|
197
|
+
expect(Option.getOrUndefined(Exit.findErrorOption(exit))).toBeInstanceOf(EventFeed.EncodingError)
|
|
198
|
+
expect(Array.from(yield* Fiber.join(received))).toEqual(["evt_good"])
|
|
199
|
+
}),
|
|
200
|
+
)
|
|
201
|
+
})
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { expect } from "bun:test"
|
|
2
|
+
import { Location } from "@zyro-sec/core/location"
|
|
3
|
+
import { LocationServiceMap } from "@zyro-sec/core/location-service-map"
|
|
4
|
+
import { Mcp } from "@zyro-sec/core/mcp/index"
|
|
5
|
+
import { Context, Effect, Layer } from "effect"
|
|
6
|
+
import { HttpEffect, HttpRouter, HttpServer } from "effect/http"
|
|
7
|
+
import { echoMcpHandler } from "../../core/test/fixture/mcp-echo"
|
|
8
|
+
import { waitUntil } from "../../core/test/lib/eventually"
|
|
9
|
+
import { tmpdirScoped } from "../../core/test/fixture/tmpdir"
|
|
10
|
+
import { it } from "../../core/test/lib/effect"
|
|
11
|
+
import { createRoutes } from "../src/routes"
|
|
12
|
+
|
|
13
|
+
// `.invalid` never resolves, so only the embedder's fetch can answer these.
|
|
14
|
+
const consoleServer = "https://console.invalid"
|
|
15
|
+
const mcpServer = "https://mcp.invalid/mcp"
|
|
16
|
+
|
|
17
|
+
it.live("sends Console config and remote MCP requests through the embedder's fetch", () =>
|
|
18
|
+
Effect.gen(function* () {
|
|
19
|
+
const tmp = yield* tmpdirScoped("opencode-fetch-option-")
|
|
20
|
+
const requested: string[] = []
|
|
21
|
+
const methods: string[] = []
|
|
22
|
+
const mcp = echoMcpHandler()
|
|
23
|
+
yield* Effect.addFinalizer(() => Effect.promise(() => mcp.close()))
|
|
24
|
+
const fetch = async (input: Request | string | URL, init?: RequestInit) => {
|
|
25
|
+
const request = new Request(input, init)
|
|
26
|
+
const url = new URL(request.url)
|
|
27
|
+
requested.push(`${url.origin}${url.pathname}`)
|
|
28
|
+
if (url.pathname === "/api/v2/config") return Response.json({})
|
|
29
|
+
if (`${url.origin}${url.pathname}` !== mcpServer) return new Response("Not found", { status: 404 })
|
|
30
|
+
const body: unknown = request.method === "POST" ? await request.clone().json() : undefined
|
|
31
|
+
if (typeof body === "object" && body !== null && "method" in body && typeof body.method === "string")
|
|
32
|
+
methods.push(body.method)
|
|
33
|
+
return mcp.fetch(request)
|
|
34
|
+
}
|
|
35
|
+
const context = yield* Layer.build(
|
|
36
|
+
createRoutes({
|
|
37
|
+
password: "secret",
|
|
38
|
+
database: { path: ":memory:" },
|
|
39
|
+
models: { fetch: false },
|
|
40
|
+
fs: { filewatcher: false },
|
|
41
|
+
fetch,
|
|
42
|
+
config: {
|
|
43
|
+
directory: tmp.path,
|
|
44
|
+
project: false,
|
|
45
|
+
content: JSON.stringify({ mcp: { servers: { gateway: { type: "remote", url: mcpServer, oauth: false } } } }),
|
|
46
|
+
},
|
|
47
|
+
}).pipe(Layer.provide(HttpServer.layerServices)),
|
|
48
|
+
)
|
|
49
|
+
const handler = Context.get(context, HttpRouter.HttpRouter)
|
|
50
|
+
.asHttpEffect()
|
|
51
|
+
.pipe(HttpEffect.toWebHandlerWith(context))
|
|
52
|
+
const request = (method: "GET" | "POST", route: string, body?: unknown) =>
|
|
53
|
+
Effect.promise(async (signal) => {
|
|
54
|
+
const url = new URL(route, "http://opencode.local")
|
|
55
|
+
url.searchParams.set("location[directory]", tmp.path)
|
|
56
|
+
const response = await handler(
|
|
57
|
+
new Request(url, {
|
|
58
|
+
method,
|
|
59
|
+
headers: {
|
|
60
|
+
authorization: `Basic ${btoa("opencode:secret")}`,
|
|
61
|
+
...(body === undefined ? {} : { "content-type": "application/json" }),
|
|
62
|
+
},
|
|
63
|
+
body: body === undefined ? undefined : JSON.stringify(body),
|
|
64
|
+
signal,
|
|
65
|
+
}),
|
|
66
|
+
)
|
|
67
|
+
return response.status
|
|
68
|
+
})
|
|
69
|
+
const inLocation = <A, E>(effect: Effect.Effect<A, E, Mcp.Service>) =>
|
|
70
|
+
effect.pipe(
|
|
71
|
+
Effect.provide(
|
|
72
|
+
LocationServiceMap.Service.get(
|
|
73
|
+
LocationServiceMap.canonical(Location.Ref.make({ directory: tmp.path as Location.Ref["directory"] })),
|
|
74
|
+
),
|
|
75
|
+
),
|
|
76
|
+
Effect.provideContext(context),
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
expect(
|
|
80
|
+
yield* request("POST", "/api/credential", {
|
|
81
|
+
integrationID: "opencode",
|
|
82
|
+
value: { type: "key", key: "secret", metadata: { server: consoleServer } },
|
|
83
|
+
}),
|
|
84
|
+
).toBe(200)
|
|
85
|
+
expect(yield* request("GET", "/api/provider")).toBe(200)
|
|
86
|
+
yield* waitUntil(Effect.sync(() => requested.includes(`${consoleServer}/api/v2/config`)))
|
|
87
|
+
|
|
88
|
+
yield* waitUntil(
|
|
89
|
+
inLocation(Mcp.Service.use((service) => service.tools())).pipe(
|
|
90
|
+
Effect.map((tools) => tools.some((tool) => tool.server === "gateway" && tool.name === "echo")),
|
|
91
|
+
),
|
|
92
|
+
)
|
|
93
|
+
const result = yield* inLocation(
|
|
94
|
+
Mcp.Service.use((service) => service.callTool({ server: "gateway", name: "echo" })),
|
|
95
|
+
)
|
|
96
|
+
expect(result.content).toEqual([{ type: "text", text: "called echo" }])
|
|
97
|
+
expect(methods).toEqual(expect.arrayContaining(["server/discover", "tools/list", "tools/call"]))
|
|
98
|
+
|
|
99
|
+
// A reconnect requested over the API starts the connection in the request's fiber rather than the MCP service's.
|
|
100
|
+
methods.length = 0
|
|
101
|
+
expect(yield* request("POST", "/api/experimental/mcp/gateway/connect")).toBe(204)
|
|
102
|
+
expect(methods).toContain("server/discover")
|
|
103
|
+
}),
|
|
104
|
+
)
|