@cavuno/board 4.64.0 → 4.66.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/CHANGELOG.md +57 -0
- package/dist/{_spec-D1Qg_Twd.d.mts → _spec-DBI6azWs.d.mts} +96 -2
- package/dist/{_spec-D1Qg_Twd.d.ts → _spec-DBI6azWs.d.ts} +96 -2
- package/dist/{blog-Dp2jAVVM.d.ts → blog--VKuBIdw.d.ts} +1 -1
- package/dist/{blog-e0YbZBjg.d.mts → blog-Bx-rjH4V.d.mts} +1 -1
- package/dist/{board-Cc3wbTKI.d.mts → board-BsUhxdjL.d.mts} +2 -2
- package/dist/{board-BeNZLOYC.d.ts → board-USJ9ZZab.d.ts} +2 -2
- package/dist/{breadcrumbs-C5WjB8jm.d.mts → breadcrumbs-BVN_gIJq.d.mts} +2 -2
- package/dist/{breadcrumbs-BOFeIYEX.d.ts → breadcrumbs-maV86vZP.d.ts} +2 -2
- package/dist/browser/cavuno-board.global.min.js +1 -1
- package/dist/{chunk-H3YIWHXR.mjs → chunk-R62XFNS7.mjs} +1 -0
- package/dist/chunk-RDHHRDKN.mjs +6 -0
- package/dist/doctor.js +1 -1
- package/dist/filters.d.mts +2 -2
- package/dist/filters.d.ts +2 -2
- package/dist/format.d.mts +4 -4
- package/dist/format.d.ts +4 -4
- package/dist/index.d.mts +46 -18
- package/dist/index.d.ts +46 -18
- package/dist/index.js +19 -1
- package/dist/index.mjs +22 -5
- package/dist/{jobs-D04ngjCP.d.ts → jobs-Dyj1HZ8W.d.ts} +1 -1
- package/dist/{jobs-CClqlUld.d.mts → jobs-qoVMh_Zd.d.mts} +1 -1
- package/dist/mcp.d.mts +52 -0
- package/dist/mcp.d.ts +52 -0
- package/dist/mcp.js +150 -0
- package/dist/mcp.mjs +128 -0
- package/dist/{search-BtrwcLkc.d.mts → search-CrXCM8Hq.d.mts} +1 -1
- package/dist/{search-DZeNdYN6.d.ts → search-DPHLf8pI.d.ts} +1 -1
- package/dist/{seo-DLoyZRTo.d.ts → seo-BDwe8PwT.d.ts} +1 -1
- package/dist/{seo-LfpgbdnO.d.mts → seo-DRVgmTCQ.d.mts} +1 -1
- package/dist/seo-files.d.mts +2 -2
- package/dist/seo-files.d.ts +2 -2
- package/dist/seo.d.mts +22 -7
- package/dist/seo.d.ts +22 -7
- package/dist/seo.js +12 -3
- package/dist/seo.mjs +12 -3
- package/dist/server.d.mts +6 -6
- package/dist/server.d.ts +6 -6
- package/dist/server.mjs +1 -1
- package/dist/sitemap.d.mts +6 -6
- package/dist/sitemap.d.ts +6 -6
- package/dist/sitemap.mjs +1 -1
- package/dist/skills.js +1 -1
- package/dist/suggest.d.mts +2 -2
- package/dist/suggest.d.ts +2 -2
- package/package.json +13 -2
- package/skills/cavuno-board-filters/SKILL.md +12 -4
- package/skills/cavuno-board-mcp/SKILL.md +80 -0
- package/skills/cavuno-board-post-a-job/SKILL.md +54 -5
- package/skills/cavuno-board-seo/BLOG.md +13 -8
- package/skills/manifest.json +8 -1
package/dist/skills.js
CHANGED
|
@@ -27,7 +27,7 @@ __export(skills_exports, {
|
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(skills_exports);
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/tsup@8.5.1_postcss@8.5.
|
|
30
|
+
// node_modules/.pnpm/tsup@8.5.1_postcss@8.5.32_tsx@4.23.1_typescript@5.9.3/node_modules/tsup/assets/cjs_shims.js
|
|
31
31
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
|
|
32
32
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
33
33
|
|
package/dist/suggest.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as SuggestionItem, b as SearchSuggestQuery, F as FetchOptions, g as SuggestResult } from './search-
|
|
2
|
-
import './_spec-
|
|
1
|
+
import { h as SuggestionItem, b as SearchSuggestQuery, F as FetchOptions, g as SuggestResult } from './search-CrXCM8Hq.mjs';
|
|
2
|
+
import './_spec-DBI6azWs.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `@cavuno/board/suggest` — framework-agnostic headless search-suggest
|
package/dist/suggest.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as SuggestionItem, b as SearchSuggestQuery, F as FetchOptions, g as SuggestResult } from './search-
|
|
2
|
-
import './_spec-
|
|
1
|
+
import { h as SuggestionItem, b as SearchSuggestQuery, F as FetchOptions, g as SuggestResult } from './search-DPHLf8pI.js';
|
|
2
|
+
import './_spec-DBI6azWs.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `@cavuno/board/suggest` — framework-agnostic headless search-suggest
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cavuno/board",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.66.0",
|
|
4
4
|
"description": "Build custom job boards and careers pages with Cavuno’s TypeScript SDK.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-client",
|
|
@@ -134,6 +134,16 @@
|
|
|
134
134
|
"default": "./dist/go.js"
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
|
+
"./mcp": {
|
|
138
|
+
"import": {
|
|
139
|
+
"types": "./dist/mcp.d.mts",
|
|
140
|
+
"default": "./dist/mcp.mjs"
|
|
141
|
+
},
|
|
142
|
+
"require": {
|
|
143
|
+
"types": "./dist/mcp.d.ts",
|
|
144
|
+
"default": "./dist/mcp.js"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
137
147
|
"./route-contract": {
|
|
138
148
|
"import": {
|
|
139
149
|
"types": "./dist/route-contract.d.mts",
|
|
@@ -240,7 +250,8 @@
|
|
|
240
250
|
"publint": "^0.3.12",
|
|
241
251
|
"tsup": "^8.4.0",
|
|
242
252
|
"tsx": "^4.19.2",
|
|
243
|
-
"
|
|
253
|
+
"vite": "^8.3.6",
|
|
254
|
+
"vitest": "^5.1.0",
|
|
244
255
|
"typescript": "^5.9.3",
|
|
245
256
|
"@typescript/native-preview": "7.0.0-dev.20260707.2"
|
|
246
257
|
},
|
|
@@ -112,18 +112,26 @@ const categoryOptions = categories.data.map((term) => ({
|
|
|
112
112
|
}));
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
Categories also carry `totalJobCount`: published jobs on the category or
|
|
116
|
+
any subcategory, each job once. A parent category page lists its
|
|
117
|
+
subcategories' jobs, so show `totalJobCount` next to category links. A parent
|
|
118
|
+
whose jobs all sit in subcategories has `jobCount` 0 and is still listed.
|
|
119
|
+
|
|
120
|
+
For homepage "browse by category" tiles, ask for the busiest top-level
|
|
121
|
+
categories rather than the first page of the name-sorted collection:
|
|
117
122
|
|
|
118
123
|
```ts snippet
|
|
119
124
|
const top = await board.taxonomy.categories.list({
|
|
125
|
+
topLevel: true,
|
|
120
126
|
limit: 8,
|
|
121
|
-
sort: '
|
|
127
|
+
sort: 'totalJobCount',
|
|
122
128
|
});
|
|
123
129
|
```
|
|
124
130
|
|
|
125
131
|
Category and skill lists accept `q`, `limit` (1–100), `sort` (`name` or
|
|
126
|
-
`jobCount`), and opaque `cursor`.
|
|
132
|
+
`jobCount`; categories also `totalJobCount`), and opaque `cursor`. With
|
|
133
|
+
`sort: 'jobCount'` and no `q` or `topLevel`, a parent with no jobs of its own
|
|
134
|
+
is left out; `totalJobCount` includes it. Pass `nextCursor` unchanged to the next
|
|
127
135
|
request. The cursor is bound to `q`, `limit`, and `sort`.
|
|
128
136
|
|
|
129
137
|
```ts snippet
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cavuno-board-mcp
|
|
3
|
+
description: Serve the board's public MCP server at /mcp with @cavuno/board/mcp. Use when connecting a self-hosted board to Claude, ChatGPT, Cursor or another MCP client, or when /mcp or /mcp/docs returns 404 on the board's host.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Board MCP server
|
|
7
|
+
|
|
8
|
+
Every paid Cavuno board has a public, read-only MCP server: AI assistants can
|
|
9
|
+
search its jobs, read job and company pages, and look up salaries. Boards that
|
|
10
|
+
Cavuno hosts serve it at `/mcp` on their own domain already. A self-hosted
|
|
11
|
+
board serves it by mounting `createMcpHandler` from `@cavuno/board/mcp`, which
|
|
12
|
+
forwards to the Board API, so the tools, limits and setup page match every
|
|
13
|
+
other Cavuno board.
|
|
14
|
+
|
|
15
|
+
## Mount the handler
|
|
16
|
+
|
|
17
|
+
Mount one handler at `/mcp`, `/mcp/*` and `/.well-known/ai-catalog.json`, for
|
|
18
|
+
GET, HEAD and POST. Pass
|
|
19
|
+
the board's publishable key: job and company links in tool results then point
|
|
20
|
+
at the key's own origin.
|
|
21
|
+
|
|
22
|
+
```ts snippet
|
|
23
|
+
import { createMcpHandler } from '@cavuno/board/mcp';
|
|
24
|
+
|
|
25
|
+
// app/mcp/[[...path]]/route.ts, and the same lines in
|
|
26
|
+
// app/.well-known/ai-catalog.json/route.ts
|
|
27
|
+
const handler = createMcpHandler({
|
|
28
|
+
board: process.env.NEXT_PUBLIC_CAVUNO_BOARD_KEY!,
|
|
29
|
+
});
|
|
30
|
+
export const GET = handler;
|
|
31
|
+
export const HEAD = handler;
|
|
32
|
+
export const POST = handler;
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Other frameworks mount the same `(request: Request) => Promise<Response>`
|
|
36
|
+
function on each path. Do not add authentication, cookies or caching in front
|
|
37
|
+
of `/mcp`: every tool is an anonymous read, and MCP clients POST without
|
|
38
|
+
credentials.
|
|
39
|
+
|
|
40
|
+
## What each path answers
|
|
41
|
+
|
|
42
|
+
- `POST /mcp`: the stateless Streamable HTTP transport.
|
|
43
|
+
- `GET /mcp` from a browser: a redirect to `/mcp/docs`. Any other non-POST
|
|
44
|
+
request answers 405.
|
|
45
|
+
- `GET /mcp/docs`: an HTML page listing the tools and how to add the server
|
|
46
|
+
to each assistant. Use this URL as the documentation link in a Claude or
|
|
47
|
+
ChatGPT directory submission.
|
|
48
|
+
- `GET /mcp/server-card`: the MCP Server Card, the server's name, version,
|
|
49
|
+
title, icons and URL as `application/mcp-server-card+json`, for an
|
|
50
|
+
assistant to read before it connects.
|
|
51
|
+
- `GET /.well-known/ai-catalog.json`: the AI Catalog, which lists the Server
|
|
52
|
+
Card so an assistant that knows only the board's domain can find the server.
|
|
53
|
+
|
|
54
|
+
A free-plan board, a password-protected board, or a board whose operator has
|
|
55
|
+
switched the server off answers 404 on every path.
|
|
56
|
+
|
|
57
|
+
## Limits
|
|
58
|
+
|
|
59
|
+
The Board API allows 1,000 MCP requests a minute per visitor address. Requests
|
|
60
|
+
forwarded from a self-hosted server arrive from that server's address, so the
|
|
61
|
+
limit applies to the board's MCP traffic as a whole. Over the limit, `/mcp`
|
|
62
|
+
answers 429 with `Retry-After`.
|
|
63
|
+
|
|
64
|
+
## Completion gate
|
|
65
|
+
|
|
66
|
+
Finish only after every check passes against the deployed board:
|
|
67
|
+
|
|
68
|
+
- `POST /mcp` with `{"jsonrpc":"2.0","id":1,"method":"tools/list"}`,
|
|
69
|
+
`Content-Type: application/json` and
|
|
70
|
+
`Accept: application/json, text/event-stream` returns the tool list.
|
|
71
|
+
- Opening `/mcp` in a browser lands on `/mcp/docs`, and that page names the
|
|
72
|
+
board and shows `https://<board-host>/mcp` as the server URL.
|
|
73
|
+
- `GET /.well-known/ai-catalog.json` returns an entry whose `url` is
|
|
74
|
+
`https://<board-host>/mcp/server-card`, and that card's `remotes` URL is
|
|
75
|
+
`https://<board-host>/mcp`.
|
|
76
|
+
- A job URL in a `search_jobs` result opens on the board's own host.
|
|
77
|
+
|
|
78
|
+
## Cavuno SDK reference
|
|
79
|
+
|
|
80
|
+
For setup and API details beyond this workflow, use the [Cavuno Board SDK documentation](https://cavuno.com/docs/sdk).
|
|
@@ -5,7 +5,7 @@ description: Post a job publicly with @cavuno/board. Use for plan selection, log
|
|
|
5
5
|
|
|
6
6
|
# Status-first job posting
|
|
7
7
|
|
|
8
|
-
The public posting funnel is anonymous and rate-limited. Its invariant is status-first handling: `board.jobPosting.create` returns one of
|
|
8
|
+
The public posting funnel is anonymous and rate-limited. Its invariant is status-first handling: `board.jobPosting.create` returns one of its success states, and the host follows that state. Rejected submissions throw `BoardApiError` instead.
|
|
9
9
|
|
|
10
10
|
Employer dashboard job management belongs to `board.me.companies.jobs.*`. Candidate access payments belong to `cavuno-board-paywall`.
|
|
11
11
|
|
|
@@ -160,11 +160,59 @@ switch (result.status) {
|
|
|
160
160
|
|
|
161
161
|
The mapping is:
|
|
162
162
|
|
|
163
|
-
- paid Stripe plan → `checkout`;
|
|
163
|
+
- paid Stripe plan → `checkout`, or `embedded_checkout` when you send `checkoutUiMode: 'embedded_page'`;
|
|
164
164
|
- free or credited posting → `published`, or `pending_approval` on moderated boards;
|
|
165
165
|
- invoice plan → `invoice_sent`.
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
`checkoutUrl` is a URL for a host-owned full-page redirect. Payment publication happens by webhook; the SDK exposes no Stripe integration or publish-confirm method.
|
|
168
|
+
|
|
169
|
+
## Embedded checkout
|
|
170
|
+
|
|
171
|
+
To keep the poster on your page, send `checkoutUiMode: 'embedded_page'`. A paid plan then returns `embedded_checkout` with everything Stripe.js needs. Load Stripe.js from `js.stripe.com` yourself; the SDK never bundles it.
|
|
172
|
+
|
|
173
|
+
```ts no-check
|
|
174
|
+
const result = await board.jobPosting.create({
|
|
175
|
+
submission,
|
|
176
|
+
checkoutUiMode: 'embedded_page',
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
if (result.status === 'embedded_checkout') {
|
|
180
|
+
const stripe = await loadStripe(result.publishableKey, {
|
|
181
|
+
stripeAccount: result.stripeAccountId,
|
|
182
|
+
});
|
|
183
|
+
const checkout = await stripe.initEmbeddedCheckout({
|
|
184
|
+
clientSecret: result.clientSecret,
|
|
185
|
+
onComplete: () => showPaid(result.sessionId),
|
|
186
|
+
});
|
|
187
|
+
checkout.mount('#checkout');
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Cards finish in place and fire `onComplete`. Payment methods that need a redirect still return to the board's `/post/success`, so that page must exist in both modes.
|
|
192
|
+
|
|
193
|
+
## Checkout outcome
|
|
194
|
+
|
|
195
|
+
After either checkout, read what happened with the session id: `sessionId` from `embedded_checkout`, or `session_id` on the `/post/success` return URL. `awaiting_payment` lasts until the payment webhook lands, so poll briefly. `processing` means a bank payment is still clearing and can take days; `payment_failed` means it failed. `jobStatus` and `jobUrl` say whether the job is live.
|
|
196
|
+
|
|
197
|
+
```ts snippet
|
|
198
|
+
const outcome = await board.jobPosting.getCheckout(sessionId);
|
|
199
|
+
|
|
200
|
+
switch (outcome.status) {
|
|
201
|
+
case 'paid':
|
|
202
|
+
if (outcome.jobUrl) linkToJob(outcome.jobUrl);
|
|
203
|
+
break;
|
|
204
|
+
case 'processing':
|
|
205
|
+
showPaymentProcessing(outcome.jobTitle);
|
|
206
|
+
break;
|
|
207
|
+
case 'awaiting_payment':
|
|
208
|
+
retrySoon();
|
|
209
|
+
break;
|
|
210
|
+
case 'payment_failed':
|
|
211
|
+
case 'canceled':
|
|
212
|
+
offerToPostAgain();
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
```
|
|
168
216
|
|
|
169
217
|
## Verified existing credit
|
|
170
218
|
|
|
@@ -200,8 +248,9 @@ Bare-email billing lookup is intentionally absent because it would expose whethe
|
|
|
200
248
|
## Completion gate
|
|
201
249
|
|
|
202
250
|
- The form renders `forms.job` in order: hidden entries are absent, required and locked entries block submit while empty, and an unknown built-in key is skipped.
|
|
203
|
-
- Every `create` call handles
|
|
204
|
-
- Paid checkout redirects through `checkoutUrl`; the job appears only after webhook completion.
|
|
251
|
+
- Every `create` call handles every status it can return (`embedded_checkout` only with `checkoutUiMode: 'embedded_page'`).
|
|
252
|
+
- Paid checkout redirects through `checkoutUrl` or mounts `clientSecret`; the job appears only after webhook completion.
|
|
253
|
+
- The return page reads `getCheckout(sessionId)` and tells `paid` from `processing`.
|
|
205
254
|
- Free unmoderated submission returns a resolving `jobSlug`.
|
|
206
255
|
- Missing domain logos leave submission usable without `logoUrl`.
|
|
207
256
|
- Existing credit is selectable only after token verification.
|
|
@@ -10,17 +10,19 @@ import {
|
|
|
10
10
|
|
|
11
11
|
const { name } = await board.context();
|
|
12
12
|
const post = await board.blog.posts.retrieve('hello-world');
|
|
13
|
+
const [firstAuthor] = post.authors;
|
|
13
14
|
const article = createBlogArticleJsonLd({
|
|
14
15
|
post,
|
|
15
16
|
boardName: name,
|
|
16
17
|
permalink: `https://jobs.example.com/blog/${post.slug}`,
|
|
17
18
|
ogImageUrl: `https://jobs.example.com/blog/${post.slug}/og`,
|
|
19
|
+
authorProfileUrl: firstAuthor
|
|
20
|
+
? `https://jobs.example.com/blog/author/${firstAuthor.slug}`
|
|
21
|
+
: null,
|
|
18
22
|
});
|
|
19
23
|
|
|
20
24
|
const author = await board.blog.authors.retrieve('jane');
|
|
21
|
-
const
|
|
22
|
-
authorSlug: 'jane',
|
|
23
|
-
});
|
|
25
|
+
const authorPosts = await board.blog.posts.list({ authorSlug: 'jane' });
|
|
24
26
|
// Profile description is application-owned. Prefer author.bio; otherwise
|
|
25
27
|
// compose from the board catalog (shape only — not an English sentence).
|
|
26
28
|
const profile = createAuthorProfileJsonLd({
|
|
@@ -29,14 +31,17 @@ const profile = createAuthorProfileJsonLd({
|
|
|
29
31
|
description:
|
|
30
32
|
author.bio ?? messages.authorProfileDescription({ name: author.name }),
|
|
31
33
|
origin: 'https://jobs.example.com',
|
|
32
|
-
posts: authorPosts,
|
|
33
|
-
|
|
34
|
+
posts: authorPosts.data,
|
|
35
|
+
// The author's total, not this page's length.
|
|
36
|
+
totalPosts: authorPosts.count ?? authorPosts.data.length,
|
|
34
37
|
});
|
|
35
38
|
```
|
|
36
39
|
|
|
37
|
-
The article `ogImageUrl` is the fallback when the post has no cover.
|
|
38
|
-
|
|
39
|
-
`
|
|
40
|
+
The article `ogImageUrl` is the fallback when the post has no cover. Pass
|
|
41
|
+
`authorProfileUrl` as the same URL you give the profile's `canonical`, so the
|
|
42
|
+
post's author and the profile's `Person` share one `@id`. Supply author posts
|
|
43
|
+
newest-first; the profile builder keeps the first five as `hasPart`. The list's
|
|
44
|
+
`count` is the author's total published posts; `data` is one page.
|
|
40
45
|
|
|
41
46
|
This branch is complete when the post emits an `Article`, the author emits a
|
|
42
47
|
`ProfilePage`, every URL is absolute and canonical, and a null builder result
|
package/skills/manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.
|
|
2
|
+
"version": "4.66.0",
|
|
3
3
|
"skills": [
|
|
4
4
|
{
|
|
5
5
|
"name": "cavuno-board-account",
|
|
@@ -92,6 +92,13 @@
|
|
|
92
92
|
"framework": null,
|
|
93
93
|
"category": "core"
|
|
94
94
|
},
|
|
95
|
+
{
|
|
96
|
+
"name": "cavuno-board-mcp",
|
|
97
|
+
"description": "Serve the board's public MCP server at /mcp with @cavuno/board/mcp. Use when connecting a self-hosted board to Claude, ChatGPT, Cursor or another MCP client, or when /mcp or /mcp/docs returns 404 on the board's host.",
|
|
98
|
+
"path": "skills/cavuno-board-mcp/SKILL.md",
|
|
99
|
+
"framework": null,
|
|
100
|
+
"category": "core"
|
|
101
|
+
},
|
|
95
102
|
{
|
|
96
103
|
"name": "cavuno-board-messaging",
|
|
97
104
|
"description": "Polled messaging contract with @cavuno/board. Use for inboxes, unread badges, threads, read receipts, message moderation, or user blocks.",
|