@blogmcp/sdk 0.10.0 → 0.11.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/community/channels.d.ts +3 -2
- package/dist/community/client.d.ts +129 -2
- package/dist/community/client.js +231 -161
- package/dist/community/forum.d.ts +82 -0
- package/dist/community/forum.js +96 -0
- package/dist/community/index.d.ts +14 -7
- package/dist/community/index.js +185 -121
- package/dist/community/links.d.ts +38 -0
- package/dist/community/links.js +98 -71
- package/dist/community/messages.cs.d.ts +160 -1
- package/dist/community/messages.cs.js +178 -1
- package/dist/community/messages.d.ts +19 -1
- package/dist/community/messages.en.d.ts +150 -1
- package/dist/community/messages.en.js +161 -1
- package/dist/community/messages.js +37 -28
- package/dist/community/outcome.d.ts +8 -3
- package/dist/community/outcome.js +64 -20
- package/dist/community/poll.d.ts +28 -4
- package/dist/community/poll.js +70 -47
- package/dist/community/realtime/index.d.ts +19 -3
- package/dist/community/realtime/index.js +175 -145
- package/dist/community/routes.d.ts +36 -1
- package/dist/community/routes.js +51 -21
- package/dist/community/server/bff.d.ts +25 -2
- package/dist/community/server/bff.js +135 -118
- package/dist/community/server/host-routes.d.ts +3 -0
- package/dist/community/server/host-routes.js +17 -0
- package/dist/community/server/index.d.ts +5 -1
- package/dist/community/shapes.d.ts +634 -7
- package/dist/community/shapes.js +92 -61
- package/dist/community/store.d.ts +15 -0
- package/dist/community/store.js +65 -61
- package/dist/community/topic.d.ts +173 -0
- package/dist/community/topic.js +225 -0
- package/package.json +3 -3
- package/src/community/channels.ts +3 -2
- package/src/community/client.ts +209 -5
- package/src/community/forum.ts +209 -0
- package/src/community/index.ts +146 -2
- package/src/community/links.ts +64 -4
- package/src/community/messages.cs.ts +179 -1
- package/src/community/messages.en.ts +162 -1
- package/src/community/messages.ts +25 -2
- package/src/community/outcome.ts +50 -1
- package/src/community/poll.ts +79 -17
- package/src/community/realtime/index.ts +124 -48
- package/src/community/routes.ts +42 -1
- package/src/community/server/bff.ts +89 -30
- package/src/community/server/host-routes.ts +20 -0
- package/src/community/server/index.ts +5 -1
- package/src/community/shapes.ts +662 -6
- package/src/community/store.ts +11 -5
- package/src/community/topic.ts +521 -0
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
* return respond(await bff.handle(http))
|
|
25
25
|
* }
|
|
26
26
|
*
|
|
27
|
+
* // A read the site's server makes on its own behalf (M3 FX3) — a tenant-wide state, the same for every reader, such
|
|
28
|
+
* // as the forum's switch for the page's chrome: no visitor IP forwarded, no session asked; the page's deadline aborts it.
|
|
29
|
+
* const state = await bff.handle(seam, { serverInitiated: true, signal: AbortSignal.timeout(1_500) })
|
|
30
|
+
*
|
|
27
31
|
* // A proxy that forwards on its own (the managed blogs): before its other rules, before any cookie or Bearer work.
|
|
28
32
|
* const decision = communityRouteDecision(request.method, path)
|
|
29
33
|
* if (decision.kind === 'deny') {
|
|
@@ -38,7 +42,7 @@ export type { CommunityHostRoute, CommunityRouteDecision } from './route-decisio
|
|
|
38
42
|
export { COMMUNITY_UNKNOWN_PATH_BODY, communityUnknownPath } from './unknown-path.js';
|
|
39
43
|
export type { CommunityUnknownPathAnswer } from './unknown-path.js';
|
|
40
44
|
export { createCommunityBff } from './bff.js';
|
|
41
|
-
export type { CommunityBff, CommunityBffCode, CommunityBffConfig, CommunityBffLogEvent } from './bff.js';
|
|
45
|
+
export type { CommunityBff, CommunityBffCode, CommunityBffConfig, CommunityBffLogEvent, CommunityBffRequestOptions } from './bff.js';
|
|
42
46
|
export { communityServerEnv } from './env.js';
|
|
43
47
|
export type { CommunityServerEnv } from './env.js';
|
|
44
48
|
export { COMMUNITY_BODY_MAX_BYTES, fromWebRequest, parseCommunityJson } from './http.js';
|