@profullstack/agenticjobs 0.3.0 → 0.4.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.
Files changed (60) hide show
  1. package/dist/cli/index.d.ts +9 -1
  2. package/dist/cli/index.js +87 -9
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/client/client.d.ts +16 -0
  5. package/dist/client/client.js +8 -0
  6. package/dist/client/client.js.map +1 -1
  7. package/dist/config.d.ts +1 -1
  8. package/dist/config.js +1 -1
  9. package/dist/core/applications.js +4 -1
  10. package/dist/core/applications.js.map +1 -1
  11. package/dist/core/candidates.d.ts +42 -0
  12. package/dist/core/candidates.js +143 -0
  13. package/dist/core/candidates.js.map +1 -0
  14. package/dist/core/import-job.d.ts +36 -0
  15. package/dist/core/import-job.js +221 -0
  16. package/dist/core/import-job.js.map +1 -0
  17. package/dist/core/jobs.d.ts +29 -0
  18. package/dist/core/jobs.js +101 -31
  19. package/dist/core/jobs.js.map +1 -1
  20. package/dist/core/resumes.d.ts +23 -1
  21. package/dist/core/resumes.js +86 -9
  22. package/dist/core/resumes.js.map +1 -1
  23. package/dist/directory/fetch.d.ts +11 -1
  24. package/dist/directory/fetch.js +23 -8
  25. package/dist/directory/fetch.js.map +1 -1
  26. package/dist/markup/resume.js +7 -1
  27. package/dist/markup/resume.js.map +1 -1
  28. package/dist/schema/job.d.ts +13 -10
  29. package/dist/schema/job.js.map +1 -1
  30. package/dist/schema/query.js +8 -4
  31. package/dist/schema/query.js.map +1 -1
  32. package/dist/schema/text.d.ts +12 -1
  33. package/dist/schema/text.js +14 -3
  34. package/dist/schema/text.js.map +1 -1
  35. package/dist/server/routes/api.js +183 -18
  36. package/dist/server/routes/api.js.map +1 -1
  37. package/dist/server/routes/discovery.js +162 -1
  38. package/dist/server/routes/discovery.js.map +1 -1
  39. package/dist/server/routes/pages.js +30 -1
  40. package/dist/server/routes/pages.js.map +1 -1
  41. package/dist/views/candidates.d.ts +47 -0
  42. package/dist/views/candidates.js +21 -0
  43. package/dist/views/candidates.js.map +1 -0
  44. package/dist/views/jobs.d.ts +13 -0
  45. package/dist/views/jobs.js +35 -10
  46. package/dist/views/jobs.js.map +1 -1
  47. package/dist/views/layout.js +2 -2
  48. package/dist/views/layout.js.map +1 -1
  49. package/dist/views/me.js +3 -1
  50. package/dist/views/me.js.map +1 -1
  51. package/dist/views/post.js +1 -1
  52. package/dist/views/post.js.map +1 -1
  53. package/docs/openjob.md +16 -9
  54. package/migrations/0006_board_only_applications.sql +34 -0
  55. package/migrations/0007_public_resumes.sql +24 -0
  56. package/migrations/0008_backfill_public_slugs.sql +57 -0
  57. package/migrations/0009_shorten_runaway_slugs.sql +21 -0
  58. package/package.json +1 -1
  59. package/web/public/app.css +45 -2
  60. package/web/public/sw.js +29 -5
@@ -1 +1 @@
1
- {"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/views/layout.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAiBpD,MAAM,CAAC,MAAM,MAAM,GAAqC,CAAC,KAAK,EAAE,EAAE;IAChE,MAAM,EACJ,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,EACT,SAAS,EACT,IAAI,EACJ,MAAM,EACN,SAAS,EACT,OAAO,EACP,WAAW,EACX,QAAQ,GACT,GAAG,KAAK,CAAC;IAEV,MAAM,IAAI,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,MAAM,SAAS,EAAE,CAAC;IACrE,MAAM,GAAG,GAAG,SAAS,IAAI,GAAG,SAAS,GAAG,IAAI,EAAE,CAAC;IAE/C,OAAO,CACL,gBAAM,IAAI,EAAC,IAAI,aACb,2BACE,eAAM,OAAO,EAAC,OAAO,GAAG,EACxB,eAAM,IAAI,EAAC,UAAU,EAAC,OAAO,EAAC,yDAA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O,CACL,KAAC,KAAK,IAAC,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,WAAW,+BAElC,CACT,CAAC;IACJ,CAAC;IACD,IAAI,MAAM,KAAK,YAAY,EAAE,CAAC;QAC5B,OAAO,CACL,KAAC,KAAK,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,WAAW,8BAEhC,CACT,CAAC;IACJ,CAAC;IACD,OAAO,CACL,KAAC,KAAK,IAAC,OAAO,EAAC,UAAU,EAAC,KAAK,EAAC,WAAW,kCAEnC,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,cAAK,KAAK,EAAC,OAAO,YAAE,QAAQ,GAAO,CAAC;AAElG,MAAM,CAAC,MAAM,KAAK,GAEd,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,eAAK,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB,aAC7D,gBAAO,KAAK,EAAC,OAAO,EAAC,GAAG,EAAE,IAAI,YAC3B,KAAK,GACA,EACP,QAAQ,EACR,IAAI,KAAK,SAAS,IAAI,eAAM,KAAK,EAAC,MAAM,YAAE,IAAI,GAAQ,EACtD,KAAK,KAAK,SAAS,IAAI,eAAM,KAAK,EAAC,YAAY,YAAE,KAAK,GAAQ,IAC3D,CACP,CAAC"}
package/dist/views/me.js CHANGED
@@ -2,5 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "hono/jsx/jsx-runtime";
2
2
  import { ago } from "../schema/text.js";
3
3
  import { Alert, Badge, Card, Empty, Field, Prose } from "./layout.js";
4
4
  export const MePage = ({ viewer, orgs, jobs, resumes, applications }) => (_jsxs("div", { class: "stack", children: [_jsxs("div", { children: [_jsx("h1", { children: "You" }), _jsx("p", { class: "lede", children: viewer.email })] }), _jsxs("section", { class: "stack", children: [_jsxs("div", { class: "spread", children: [_jsx("h2", { children: "Resumes" }), _jsx("a", { class: "btn btn-sm", href: "/me/resumes/new", children: "New resume" })] }), _jsx("p", { class: "small muted", children: "Markdown, in the OpenResume.md convention. Upload a PDF or a Word file and it is converted for you; what you keep is the Markdown." }), resumes.length === 0 ? (_jsx(Empty, { children: "No resumes yet." })) : (_jsx("ul", { class: "job-list", children: resumes.map((resume) => (_jsx("li", { children: _jsxs("a", { class: "card card-link", href: `/me/resumes/${resume.slug}`, children: [_jsxs("div", { class: "spread", children: [_jsx("h3", { class: "card-title", children: resume.title }), _jsx(Badge, { variant: resume.visibility === 'private' ? 'outline' : 'primary', children: resume.visibility })] }), _jsxs("p", { class: "small muted", children: ["Updated ", ago(resume.updatedAt), resume.sourceName !== null && ` - from ${resume.sourceName}`] })] }) }))) }))] }), _jsxs("section", { class: "stack", children: [_jsxs("div", { class: "spread", children: [_jsx("h2", { children: "Employers" }), _jsx("a", { class: "btn btn-sm btn-secondary", href: "/me/employers/new", children: "Add an employer" })] }), orgs.length === 0 ? (_jsx(Empty, { children: "You cannot post a job until you add the employer it is for." })) : (_jsx("div", { class: "row", children: orgs.map((org) => (_jsx("a", { class: "badge badge-primary", href: `/employers/${org.slug}`, children: org.name }))) }))] }), _jsxs("section", { class: "stack", children: [_jsxs("div", { class: "spread", children: [_jsx("h2", { children: "Your listings" }), orgs.length > 0 && (_jsx("a", { class: "btn btn-sm", href: "/post", children: "Post a job" }))] }), jobs.length === 0 ? (_jsx(Empty, { children: "Nothing posted yet." })) : (_jsx("ul", { class: "job-list", children: jobs.map((job) => (_jsx("li", { children: _jsxs("a", { class: "card card-link", href: `/me/jobs/${job.slug}`, children: [_jsxs("div", { class: "spread", children: [_jsx("h3", { class: "card-title", children: job.title }), _jsx(Badge, { variant: job.status === 'published' ? 'primary' : 'outline', children: job.status })] }), _jsxs("p", { class: "small muted", children: [job.org.name, " - ", job.status === 'published' ? ago(job.publishedAt) : 'not live'] })] }) }))) }))] }), _jsxs("section", { class: "stack", children: [_jsx("h2", { children: "Applications you have sent" }), applications.length === 0 ? (_jsx(Empty, { children: "None yet." })) : (_jsx("ul", { class: "job-list", children: applications.map((application) => (_jsx("li", { children: _jsxs("a", { class: "card card-link", href: `/jobs/${application.jobSlug}`, children: [_jsxs("div", { class: "spread", children: [_jsx("h3", { class: "card-title", children: application.jobTitle }), _jsx(Badge, { variant: "outline", children: application.status })] }), _jsxs("p", { class: "small muted", children: ["Sent ", ago(application.createdAt)] })] }) }))) }))] }), _jsxs(Card, { children: [_jsxs("div", { class: "card-header", children: [_jsx("h2", { class: "card-title", children: "Terminals and agents" }), _jsxs("p", { class: "card-description", children: [_jsx("code", { children: "agenticjobs login" }), " asks this board for a code; approve it at", ' ', _jsx("a", { href: "/device", children: "/device" }), ". A terminal token can read and apply, and is never an administrator."] })] }), _jsx("button", { class: "btn btn-secondary btn-sm", type: "button", id: "passkey-add", hidden: true, children: "Add a passkey to this account" }), _jsx("p", { class: "small error-text", id: "passkey-add-error", hidden: true }), _jsx("form", { method: "post", action: "/logout", style: "margin-top:.75rem", children: _jsx("button", { class: "btn btn-ghost btn-sm", type: "submit", children: "Sign out of this browser" }) })] })] }));
5
- export const ResumeEditor = ({ resume, html, warnings, error, saved }) => (_jsxs("div", { class: "grid-2", children: [_jsxs("div", { class: "stack", children: [_jsx("h1", { children: resume === null ? 'New resume' : resume.title }), error !== undefined && _jsx(Alert, { variant: "error", children: error }), saved === true && _jsx(Alert, { variant: "success", children: "Saved." }), resume === null && (_jsxs(Card, { children: [_jsxs("div", { class: "card-header", children: [_jsx("h2", { class: "card-title", children: "Start from a file" }), _jsx("p", { class: "card-description", children: "PDF, Word, plain text or Markdown. It is converted to Markdown you can then edit - the Markdown is what gets kept and what employers read." })] }), _jsxs("form", { method: "post", action: "/me/resumes/import", enctype: "multipart/form-data", class: "stack", children: [_jsx("input", { class: "input", type: "file", name: "file", accept: ".md,.markdown,.txt,.pdf,.docx,.doc,.odt,.rtf", required: true }), _jsx("button", { class: "btn", type: "submit", children: "Convert to Markdown" })] })] })), _jsxs("form", { class: "stack", method: "post", action: resume === null ? '/me/resumes/new' : `/me/resumes/${resume.slug}`, children: [_jsx(Field, { label: "Title", name: "title", hint: "Only you see this. Name it after the kind of role.", children: _jsx("input", { class: "input", type: "text", id: "title", name: "title", value: resume?.title ?? '', placeholder: "Backend, senior" }) }), _jsx(Field, { label: "Resume", name: "markdown", hint: "OpenResume.md: an h1 with your name, a bullet list of contact details, then ## sections.", children: _jsx("textarea", { class: "textarea code", id: "markdown", name: "markdown", spellcheck: false, children: resume?.markdown ?? '' }) }), _jsx(Field, { label: "Who can see it", name: "visibility", children: _jsxs("select", { class: "select", id: "visibility", name: "visibility", children: [_jsx("option", { value: "private", selected: resume?.visibility === 'private', children: "Private - only you, and employers you apply to" }), _jsx("option", { value: "link", selected: resume?.visibility === 'link', children: "Anyone with the link" }), _jsx("option", { value: "public", selected: resume?.visibility === 'public', children: "Public" })] }) }), _jsxs("div", { class: "row", children: [_jsx("button", { class: "btn", type: "submit", children: "Save" }), resume !== null && (_jsx("a", { class: "btn btn-secondary", href: `/api/v1/resumes/${resume.slug}`, children: "As JSON" }))] })] }), resume !== null && (_jsx("form", { method: "post", action: `/me/resumes/${resume.slug}/delete`, children: _jsx("button", { class: "btn btn-destructive btn-sm", type: "submit", children: "Delete this resume" }) }))] }), _jsxs("aside", { class: "stack", children: [warnings.length > 0 && (_jsxs(Alert, { variant: "warning", children: [_jsx("strong", { children: "Worth a look:" }), _jsx("ul", { style: "margin:.5rem 0 0;padding-left:1.1rem", children: warnings.map((warning) => (_jsx("li", { children: warning }))) })] })), _jsxs(Card, { children: [_jsx("div", { class: "card-header", children: _jsx("h2", { class: "card-title", children: "Preview" }) }), _jsx(Prose, { html: html })] })] })] }));
5
+ export const ResumeEditor = ({ resume, html, warnings, error, saved }) => (_jsxs("div", { class: "grid-2", children: [_jsxs("div", { class: "stack", children: [_jsx("h1", { children: resume === null ? 'New resume' : resume.title }), error !== undefined && _jsx(Alert, { variant: "error", children: error }), saved === true && _jsx(Alert, { variant: "success", children: "Saved." }), resume === null && (_jsxs(Card, { children: [_jsxs("div", { class: "card-header", children: [_jsx("h2", { class: "card-title", children: "Start from a file" }), _jsx("p", { class: "card-description", children: "PDF, Word, plain text or Markdown. It is converted to Markdown you can then edit - the Markdown is what gets kept and what employers read." })] }), _jsxs("form", { method: "post", action: "/me/resumes/import", enctype: "multipart/form-data", class: "stack", children: [_jsx("input", { class: "input", type: "file", name: "file", accept: ".md,.markdown,.txt,.pdf,.docx,.doc,.odt,.rtf", required: true }), _jsx("button", { class: "btn", type: "submit", children: "Convert to Markdown" })] })] })), _jsxs("form", { class: "stack", method: "post", action: resume === null ? '/me/resumes/new' : `/me/resumes/${resume.slug}`, children: [_jsx(Field, { label: "Title", name: "title", hint: "Only you see this. Name it after the kind of role.", children: _jsx("input", { class: "input", type: "text", id: "title", name: "title", value: resume?.title ?? '', placeholder: "Backend, senior" }) }), _jsx(Field, { label: "Resume", name: "markdown", hint: "OpenResume.md: an h1 with your name, a bullet list of contact details, then ## sections.", children: _jsx("textarea", { class: "textarea code", id: "markdown", name: "markdown", spellcheck: false, children: resume?.markdown ?? '' }) }), _jsx(Field, { label: "Who can see it", name: "visibility", hint: "Sharing puts your resume, including the contact details in it, on a page anyone can open.", children: _jsxs("select", { class: "select", id: "visibility", name: "visibility", children: [_jsx("option", { value: "private", selected: resume?.visibility === 'private', children: "Private - only you, and employers you apply to" }), _jsx("option", { value: "link", selected: resume?.visibility === 'link', children: "Anyone with the link - not listed anywhere" }), _jsx("option", { value: "public", selected: resume?.visibility === 'public', children: "Public - listed in Candidates" })] }) }), _jsxs("div", { class: "row", children: [_jsx("button", { class: "btn", type: "submit", children: "Save" }), resume !== null && (_jsx("a", { class: "btn btn-secondary", href: `/api/v1/resumes/${resume.slug}`, children: "As JSON" }))] })] }), resume !== null && (_jsx("form", { method: "post", action: `/me/resumes/${resume.slug}/delete`, children: _jsx("button", { class: "btn btn-destructive btn-sm", type: "submit", children: "Delete this resume" }) }))] }), _jsxs("aside", { class: "stack", children: [resume !== null && resume.visibility !== 'private' && resume.publicSlug !== null && (_jsxs(Card, { children: [_jsxs("div", { class: "card-header", children: [_jsx("h2", { class: "card-title", children: resume.visibility === 'public' ? 'Listed in Candidates' : 'Shared by link' }), _jsx("p", { class: "card-description", children: resume.visibility === 'public'
6
+ ? 'Anyone can find this from the candidate directory.'
7
+ : 'Anyone with this address can read it. It is not listed.' })] }), _jsx("p", { class: "small", children: _jsxs("a", { href: `/candidates/${resume.publicSlug}`, children: ["/candidates/", resume.publicSlug] }) })] })), warnings.length > 0 && (_jsxs(Alert, { variant: "warning", children: [_jsx("strong", { children: "Worth a look:" }), _jsx("ul", { style: "margin:.5rem 0 0;padding-left:1.1rem", children: warnings.map((warning) => (_jsx("li", { children: warning }))) })] })), _jsxs(Card, { children: [_jsx("div", { class: "card-header", children: _jsx("h2", { class: "card-title", children: "Preview" }) }), _jsx(Prose, { html: html })] })] })] }));
6
8
  //# sourceMappingURL=me.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"me.js","sourceRoot":"","sources":["../../src/views/me.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,aAAc,CAAC;AAEvE,MAAM,CAAC,MAAM,MAAM,GAMd,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,CACtD,eAAK,KAAK,EAAC,OAAO,aAChB,0BACE,+BAAY,EACZ,YAAG,KAAK,EAAC,MAAM,YAAE,MAAM,CAAC,KAAK,GAAK,IAC9B,EAEN,mBAAS,KAAK,EAAC,OAAO,aACpB,eAAK,KAAK,EAAC,QAAQ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AAC,IAAI,eACH,cAAK,KAAK,EAAC,aAAa,YACtB,aAAI,KAAK,EAAC,YAAY,wBAAa,GAC/B,EACN,KAAC,KAAK,IAAC,IAAI,EAAE,IAAI,GAAI,IAChB,IACD,IACJ,CACP,CAAC"}
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "hono/jsx/jsx-
2
2
  import { AGENT_POLICIES, EMPLOYMENT_TYPES, SALARY_PERIODS, SENIORITIES, WORKPLACES, } from "../schema/job.js";
3
3
  import { ago } from "../schema/text.js";
4
4
  import { Alert, Badge, Card, Empty, Field, Prose } from "./layout.js";
5
- export const PostJobPage = ({ orgs, error, values = {} }) => (_jsxs("div", { class: "grid-2", children: [_jsxs("div", { class: "stack", children: [_jsx("h1", { children: "Post a job" }), _jsx("p", { class: "lede", children: "It stays a draft until you publish it, so nothing goes live by accident." }), error !== undefined && _jsx(Alert, { variant: "error", children: error }), orgs.length === 0 ? (_jsxs(Alert, { variant: "info", children: ["Add the employer first: ", _jsx("a", { href: "/me/employers/new", children: "add an employer" }), "."] })) : (_jsxs("form", { class: "stack", method: "post", action: "/post", children: [_jsx(Field, { label: "Employer", name: "org", children: _jsx("select", { class: "select", id: "org", name: "org", required: true, children: orgs.map((org) => (_jsx("option", { value: org.slug, selected: values['org'] === org.slug, children: org.name }))) }) }), _jsx(Field, { label: "Title", name: "title", children: _jsx("input", { class: "input", type: "text", id: "title", name: "title", value: values['title'] ?? '', required: true, maxlength: 140 }) }), _jsx(Field, { label: "Description", name: "description", hint: "Markdown. Headings, lists, links and tables all work.", children: _jsx("textarea", { class: "textarea", id: "description", name: "description", required: true, children: values['description'] ?? '' }) }), _jsxs("div", { class: "row", children: [_jsx(Field, { label: "Type", name: "employmentType", children: _jsx("select", { class: "select", id: "employmentType", name: "employmentType", children: EMPLOYMENT_TYPES.map((type) => (_jsx("option", { value: type, selected: values['employmentType'] === type, children: type }))) }) }), _jsx(Field, { label: "Where", name: "workplace", children: _jsx("select", { class: "select", id: "workplace", name: "workplace", children: WORKPLACES.map((place) => (_jsx("option", { value: place, selected: values['workplace'] === place, children: place }))) }) }), _jsx(Field, { label: "Level", name: "seniority", children: _jsxs("select", { class: "select", id: "seniority", name: "seniority", children: [_jsx("option", { value: "", children: "unspecified" }), SENIORITIES.map((level) => (_jsx("option", { value: level, selected: values['seniority'] === level, children: level })))] }) })] }), _jsx(Field, { label: "Location", name: "location", hint: 'Free text: "Berlin", "US timezones".', children: _jsx("input", { class: "input", type: "text", id: "location", name: "location", value: values['location'] ?? '' }) }), _jsxs("fieldset", { children: [_jsx("legend", { children: "Pay" }), _jsx("p", { class: "hint", style: "margin-top:0", children: "A listing without a number gets fewer and worse applications. Say the range." }), _jsxs("div", { class: "row", children: [_jsx("input", { class: "input", type: "number", name: "salaryMin", placeholder: "from", style: "width:8rem", value: values['salaryMin'] ?? '' }), _jsx("input", { class: "input", type: "number", name: "salaryMax", placeholder: "to", style: "width:8rem", value: values['salaryMax'] ?? '' }), _jsx("input", { class: "input", type: "text", name: "salaryCurrency", placeholder: "USD", maxlength: 3, style: "width:6rem", value: values['salaryCurrency'] ?? 'USD' }), _jsx("select", { class: "select", name: "salaryPeriod", style: "width:auto", children: SALARY_PERIODS.map((period) => (_jsxs("option", { value: period, selected: (values['salaryPeriod'] ?? 'year') === period, children: ["per ", period] }))) })] })] }), _jsx(Field, { label: "Stack", name: "stack", hint: "Comma separated. Also what people search on.", children: _jsx("input", { class: "input", type: "text", id: "stack", name: "stack", value: values['stack'] ?? '', placeholder: "typescript, postgres, hono" }) }), _jsx(Field, { label: "Tags", name: "tags", hint: "Comma separated.", children: _jsx("input", { class: "input", type: "text", id: "tags", name: "tags", value: values['tags'] ?? '', placeholder: "backend, remote-first" }) }), _jsxs("fieldset", { children: [_jsx("legend", { children: "Agent policy" }), _jsx("p", { class: "hint", style: "margin-top:0", children: "Required. Candidates increasingly use an agent to write applications; this says where you stand, instead of them finding out by being rejected without a reason." }), AGENT_POLICIES.map((policy) => (_jsxs("label", { class: "row", style: "align-items:flex-start;margin-top:.5rem", children: [_jsx("input", { type: "radio", name: "agentPolicy", value: policy, checked: (values['agentPolicy'] ?? 'disclose') === policy, style: "margin-top:.35rem" }), _jsxs("span", { children: [_jsx("strong", { children: POLICY_LABEL[policy] }), _jsx("br", {}), _jsx("span", { class: "hint", children: POLICY_HELP[policy] })] })] })))] }), _jsxs("fieldset", { children: [_jsx("legend", { children: "How to apply" }), _jsxs("label", { class: "row", children: [_jsx("input", { type: "radio", name: "applyVia", value: "board", checked: (values['applyVia'] ?? 'board') === 'board' }), "On this board (an agent can complete it)"] }), _jsxs("label", { class: "row", children: [_jsx("input", { type: "radio", name: "applyVia", value: "url", checked: values['applyVia'] === 'url' }), "On our own site"] }), _jsx("input", { class: "input", type: "url", name: "applyUrl", placeholder: "https://...", value: values['applyUrl'] ?? '', style: "margin-top:.5rem" }), _jsxs("label", { class: "row", style: "margin-top:.5rem", children: [_jsx("input", { type: "radio", name: "applyVia", value: "email", checked: values['applyVia'] === 'email' }), "By email"] }), _jsx("input", { class: "input", type: "email", name: "applyEmail", placeholder: "jobs@example.com", value: values['applyEmail'] ?? '', style: "margin-top:.5rem" })] }), _jsx("button", { class: "btn btn-block", type: "submit", children: "Create draft" })] }))] }), _jsx("aside", { class: "stack", children: _jsxs(Card, { children: [_jsx("div", { class: "card-header", children: _jsx("h2", { class: "card-title", children: "Or post it from anywhere else" }) }), _jsx("pre", { class: "code-block", children: "agenticjobs post --org acme job.md" }), _jsx("p", { class: "small muted", children: "Over MCP, with the board connected:" }), _jsx("pre", { class: "code-block", children: "post_job(org: \"acme\", ...)" }), _jsx("p", { class: "small muted", children: "Through myna, alongside the rest of a launch:" }), _jsx("pre", { class: "code-block", children: "myna jobs post --to jobs:acme job.md" })] }) })] }));
5
+ export const PostJobPage = ({ orgs, error, values = {} }) => (_jsxs("div", { class: "grid-2", children: [_jsxs("div", { class: "stack", children: [_jsx("h1", { children: "Post a job" }), _jsx("p", { class: "lede", children: "It stays a draft until you publish it, so nothing goes live by accident." }), error !== undefined && _jsx(Alert, { variant: "error", children: error }), orgs.length === 0 ? (_jsxs(Alert, { variant: "info", children: ["Add the employer first: ", _jsx("a", { href: "/me/employers/new", children: "add an employer" }), "."] })) : (_jsxs("form", { class: "stack", method: "post", action: "/post", children: [_jsx(Field, { label: "Employer", name: "org", children: _jsx("select", { class: "select", id: "org", name: "org", required: true, children: orgs.map((org) => (_jsx("option", { value: org.slug, selected: values['org'] === org.slug, children: org.name }))) }) }), _jsx(Field, { label: "Title", name: "title", children: _jsx("input", { class: "input", type: "text", id: "title", name: "title", value: values['title'] ?? '', required: true, maxlength: 140 }) }), _jsx(Field, { label: "Description", name: "description", hint: "Markdown. Headings, lists, links and tables all work.", children: _jsx("textarea", { class: "textarea", id: "description", name: "description", required: true, children: values['description'] ?? '' }) }), _jsxs("div", { class: "row", children: [_jsx(Field, { label: "Type", name: "employmentType", children: _jsx("select", { class: "select", id: "employmentType", name: "employmentType", children: EMPLOYMENT_TYPES.map((type) => (_jsx("option", { value: type, selected: values['employmentType'] === type, children: type }))) }) }), _jsx(Field, { label: "Where", name: "workplace", children: _jsx("select", { class: "select", id: "workplace", name: "workplace", children: WORKPLACES.map((place) => (_jsx("option", { value: place, selected: values['workplace'] === place, children: place }))) }) }), _jsx(Field, { label: "Level", name: "seniority", children: _jsxs("select", { class: "select", id: "seniority", name: "seniority", children: [_jsx("option", { value: "", children: "unspecified" }), SENIORITIES.map((level) => (_jsx("option", { value: level, selected: values['seniority'] === level, children: level })))] }) })] }), _jsx(Field, { label: "Location", name: "location", hint: 'Free text: "Berlin", "US timezones".', children: _jsx("input", { class: "input", type: "text", id: "location", name: "location", value: values['location'] ?? '' }) }), _jsxs("fieldset", { children: [_jsx("legend", { children: "Pay" }), _jsx("p", { class: "hint", style: "margin-top:0", children: "A listing without a number gets fewer and worse applications. Say the range." }), _jsxs("div", { class: "row", children: [_jsx("input", { class: "input", type: "number", name: "salaryMin", placeholder: "from", style: "width:8rem", value: values['salaryMin'] ?? '' }), _jsx("input", { class: "input", type: "number", name: "salaryMax", placeholder: "to", style: "width:8rem", value: values['salaryMax'] ?? '' }), _jsx("input", { class: "input", type: "text", name: "salaryCurrency", placeholder: "USD", maxlength: 3, style: "width:6rem", value: values['salaryCurrency'] ?? 'USD' }), _jsx("select", { class: "select", name: "salaryPeriod", style: "width:auto", children: SALARY_PERIODS.map((period) => (_jsxs("option", { value: period, selected: (values['salaryPeriod'] ?? 'year') === period, children: ["per ", period] }))) })] })] }), _jsx(Field, { label: "Stack", name: "stack", hint: "Comma separated. Also what people search on.", children: _jsx("input", { class: "input", type: "text", id: "stack", name: "stack", value: values['stack'] ?? '', placeholder: "typescript, postgres, hono" }) }), _jsx(Field, { label: "Tags", name: "tags", hint: "Comma separated.", children: _jsx("input", { class: "input", type: "text", id: "tags", name: "tags", value: values['tags'] ?? '', placeholder: "backend, remote-first" }) }), _jsxs("fieldset", { children: [_jsx("legend", { children: "Agent policy" }), _jsx("p", { class: "hint", style: "margin-top:0", children: "Required. Candidates increasingly use an agent to write applications; this says where you stand, instead of them finding out by being rejected without a reason." }), AGENT_POLICIES.map((policy) => (_jsxs("label", { class: "row", style: "align-items:flex-start;margin-top:.5rem", children: [_jsx("input", { type: "radio", name: "agentPolicy", value: policy, checked: (values['agentPolicy'] ?? 'disclose') === policy, style: "margin-top:.35rem" }), _jsxs("span", { children: [_jsx("strong", { children: POLICY_LABEL[policy] }), _jsx("br", {}), _jsx("span", { class: "hint", children: POLICY_HELP[policy] })] })] })))] }), _jsxs("fieldset", { children: [_jsx("legend", { children: "How to apply" }), _jsx("p", { class: "small muted", children: "Applications are taken on this board, so an agent can complete one without a browser and you get every application in one place. There is no offsite link." })] }), _jsx("button", { class: "btn btn-block", type: "submit", children: "Create draft" })] }))] }), _jsx("aside", { class: "stack", children: _jsxs(Card, { children: [_jsx("div", { class: "card-header", children: _jsx("h2", { class: "card-title", children: "Or post it from anywhere else" }) }), _jsx("pre", { class: "code-block", children: "agenticjobs post --org acme job.md" }), _jsx("p", { class: "small muted", children: "Over MCP, with the board connected:" }), _jsx("pre", { class: "code-block", children: "post_job(org: \"acme\", ...)" }), _jsx("p", { class: "small muted", children: "Through myna, alongside the rest of a launch:" }), _jsx("pre", { class: "code-block", children: "myna jobs post --to jobs:acme job.md" })] }) })] }));
6
6
  const POLICY_LABEL = {
7
7
  welcome: 'Agents welcome',
8
8
  disclose: 'Agents, if disclosed',
@@ -1 +1 @@
1
- {"version":3,"file":"post.js","sourceRoot":"","sources":["../../src/views/post.tsx"],"names":[],"mappings":";AAMA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,UAAU,GACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,aAAc,CAAC;AAEvE,MAAM,CAAC,MAAM,WAAW,GAInB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CACrC,eAAK,KAAK,EAAC,QAAQ,aACjB,eAAK,KAAK,EAAC,OAAO,aAChB,sCAAmB,EACnB,YAAG,KAAK,EAAC,MAAM,yFAEX,EACH,KAAK,KAAK,SAAS,IAAI,KAAC,KAAK,IAAC,OAAO,EAAC,OAAO,YAAE,KAAK,GAAS,EAE7D,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CACnB,MAAC,KAAK,IAAC,OAAO,EAAC,MAAM,yCACK,YAAG,IAAI,EAAC,mBAAmB,gCAAoB,SACjE,CACT,CAAC,CAAC,CAAC,CACF,gBAAM,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,aAC9C,KAAC,KAAK,IAAC,KAAK,EAAC,UAAU,EAAC,IAAI,EAAC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CACP,CAAC"}
package/docs/openjob.md CHANGED
@@ -84,17 +84,23 @@ wants to know, and wanting to know is the reason to answer honestly.
84
84
 
85
85
  ## apply
86
86
 
87
- Three shapes, and only the first is completable without a browser.
87
+ One shape. An application is a POST against a published schema, which is the only
88
+ kind an agent can complete without a browser.
88
89
 
89
90
  ```json
90
91
  { "via": "board", "schema": { "fields": [ ... ] } }
91
- { "via": "url", "url": "https://example.com/careers/123" }
92
- { "via": "email", "email": "jobs@example.com" }
93
92
  ```
94
93
 
95
- A listing that says `url` or `email` is being honest that an agent cannot finish the
96
- job. That is better than a board pretending every listing is applicable and handing
97
- an agent a form it cannot post.
94
+ Earlier drafts of this spec also allowed `{ "via": "url" }` and
95
+ `{ "via": "email" }`, on the reasoning that a listing saying so was at least being
96
+ honest that an agent could not finish the job. That was the wrong trade. A board
97
+ where some listings are applicable and some are links is one an agent has to filter,
98
+ and the listings it filters out are exactly the ones an employer cared enough to
99
+ cross-post. Offsite applications are gone.
100
+
101
+ A URL still has a use, but it points the other way: give the board a URL to a job
102
+ posting and it imports it, so the listing lives here and is applicable here. It is a
103
+ source, never a destination.
98
104
 
99
105
  ### The application schema
100
106
 
@@ -160,9 +166,10 @@ both - the JSON-LD for search engines, the OpenJob document for everything else.
160
166
  | `expiresAt` | `validThrough` |
161
167
  | `apply.via === "board"` | `directApply: true` |
162
168
 
163
- The three fields with no equivalent - `agentPolicy`, `applyVia` and the address of
164
- the application schema - travel in `additionalProperty`, which is the vocabulary's
165
- own escape hatch and passes every validator.
169
+ The two fields with no equivalent - `agentPolicy` and the address of the application
170
+ schema - travel in `additionalProperty`, which is the vocabulary's own escape hatch
171
+ and passes every validator. `directApply` is always `true`, because every listing is
172
+ applied to here.
166
173
 
167
174
  One trap worth naming, because it catches almost everyone: a remote role needs
168
175
  `jobLocationType: "TELECOMMUTE"` **and** a location the hire may sit in. A remote
@@ -0,0 +1,34 @@
1
+ -- Applications are taken on the board, never offsite.
2
+ --
3
+ -- A listing that sent applicants to a careers portal or a mailbox is a link to
4
+ -- a job rather than a job, and an agent cannot complete a form it cannot
5
+ -- reach, so those listings quietly excluded the readers this board exists for.
6
+ --
7
+ -- Rows written before the change are converted rather than deleted: the
8
+ -- listing is still a real opening posted by a real employer, and the only part
9
+ -- that was wrong is where the application went. A converted row keeps a null
10
+ -- apply_schema on purpose: `toApplyMethod` already reads null as
11
+ -- DEFAULT_APPLY_SCHEMA, so the default lives in one place and cannot drift
12
+ -- from a copy pasted into a migration.
13
+ --
14
+ -- The old target is kept in `apply_source_url` instead of being dropped. It is
15
+ -- where the listing came from, which is worth keeping for provenance and is
16
+ -- what a URL is allowed to mean here now.
17
+
18
+ alter table jobs add column if not exists apply_source_url text;
19
+
20
+ update jobs
21
+ set apply_source_url = coalesce(
22
+ apply_source_url,
23
+ case
24
+ when apply_via = 'url' then apply_url
25
+ when apply_via = 'email' then 'mailto:' || apply_email
26
+ end
27
+ )
28
+ where apply_via in ('url', 'email');
29
+
30
+ update jobs
31
+ set apply_via = 'board',
32
+ apply_url = null,
33
+ apply_email = null
34
+ where apply_via <> 'board';
@@ -0,0 +1,24 @@
1
+ -- Candidates, so a resume that says "public" is actually somewhere.
2
+ --
3
+ -- `visibility` has had three values since the resumes table was written, and
4
+ -- the column comment says what they mean: "private: only the owner. link:
5
+ -- anyone with the URL. public: listed". Nothing ever listed them and nothing
6
+ -- served a URL, so choosing either of the last two did nothing at all.
7
+ --
8
+ -- A resume slug is unique per user, deliberately, because two people may both
9
+ -- have a "backend" one. That is fine for /me/resumes/<slug> and useless for a
10
+ -- public address, so a shared resume gets a second slug that is unique across
11
+ -- the board. It is minted when a resume is first shared rather than for every
12
+ -- resume, so a private resume claims no name in a namespace everyone shares.
13
+
14
+ alter table resumes add column if not exists public_slug text;
15
+
16
+ create unique index if not exists resumes_public_slug_key
17
+ on resumes (public_slug)
18
+ where public_slug is not null;
19
+
20
+ -- Listing the directory is "the public ones, newest first", so it reads by
21
+ -- visibility and orders by when the resume was last touched.
22
+ create index if not exists resumes_visibility_idx
23
+ on resumes (visibility, updated_at desc)
24
+ where visibility = 'public';
@@ -0,0 +1,57 @@
1
+ -- Give the resumes that were already shared their public address.
2
+ --
3
+ -- 0007 added public_slug and the application mints it when a resume is saved
4
+ -- as shared. That leaves every resume shared BEFORE the candidate directory
5
+ -- existed with a null slug, and `listPublicResumes` requires one, so a resume
6
+ -- its owner had already set to "public" stayed invisible. They are the exact
7
+ -- resumes the directory was built for: someone asked to be listed and the
8
+ -- board had nowhere to list them.
9
+ --
10
+ -- Named after the person, like the application does, falling back to the
11
+ -- resume title and then to "candidate". Duplicates get a numeric suffix, and
12
+ -- the whole thing is guarded by `not exists` so it can never collide with a
13
+ -- slug the application has already handed out.
14
+ --
15
+ -- This is deliberately a one-time correction rather than a rule: new resumes
16
+ -- get their slug from ensurePublicSlug on save.
17
+
18
+ with base as (
19
+ select
20
+ id,
21
+ trim(
22
+ both '-' from
23
+ lower(
24
+ regexp_replace(
25
+ coalesce(nullif(parsed ->> 'name', ''), nullif(title, ''), 'candidate'),
26
+ '[^a-zA-Z0-9]+', '-', 'g'
27
+ )
28
+ )
29
+ ) as raw
30
+ from resumes
31
+ where visibility in ('link', 'public')
32
+ and public_slug is null
33
+ ),
34
+ named as (
35
+ select id, case when raw = '' then 'candidate' else raw end as slug from base
36
+ ),
37
+ numbered as (
38
+ select
39
+ id,
40
+ slug,
41
+ row_number() over (partition by slug order by id) as position
42
+ from named
43
+ )
44
+ update resumes as r
45
+ set public_slug = case
46
+ when numbered.position = 1 then numbered.slug
47
+ else numbered.slug || '-' || numbered.position
48
+ end
49
+ from numbered
50
+ where r.id = numbered.id
51
+ and not exists (
52
+ select 1 from resumes as taken
53
+ where taken.public_slug = case
54
+ when numbered.position = 1 then numbered.slug
55
+ else numbered.slug || '-' || numbered.position
56
+ end
57
+ );
@@ -0,0 +1,21 @@
1
+ -- Clear the public slugs that came out of a flattened resume.
2
+ --
3
+ -- 0008 built each slug from the resume's parsed name. A resume saved before
4
+ -- job descriptions, resumes and cover letters stopped having their newlines
5
+ -- flattened parses as one h1 holding the entire document, so "the name" was
6
+ -- the whole CV and the slug it produced was thousands of characters long.
7
+ --
8
+ -- Those slugs are machine-made from a bug rather than an address anybody has
9
+ -- ever been given, so clearing them costs nothing and leaving them means a
10
+ -- candidate page whose URL is a paragraph. Nulling them lets ensurePublicSlug
11
+ -- mint a sane one on the next save, now that it is bounded and checks that a
12
+ -- name is name-shaped.
13
+ --
14
+ -- The cutoff is generous on purpose: a real name that slugifies past 80
15
+ -- characters is not something to guess at, and the application caps new ones
16
+ -- at 60, so nothing it mints can be caught by this.
17
+
18
+ update resumes
19
+ set public_slug = null
20
+ where public_slug is not null
21
+ and length(public_slug) > 80;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profullstack/agenticjobs",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "An agent-friendly job board you self-host. It posts its own jobs, never scrapes anyone else's, and answers on every surface: web, API, MCP, CLI, TUI, desktop and PWA. Instances find each other through an open directory.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -148,10 +148,23 @@ main {
148
148
  color: var(--muted-foreground);
149
149
  }
150
150
 
151
+ /*
152
+ * `1fr` means `minmax(auto, 1fr)`, and that `auto` floor is the widest child's
153
+ * min-content. One long unbreakable string in a code block is then enough to
154
+ * push the single mobile column past the viewport and scroll the whole page
155
+ * sideways. `minmax(0, …)` lets the track shrink so the code block scrolls
156
+ * inside itself instead, which is what its own `overflow-x: auto` is for.
157
+ * The two-column rule below always had this right; the mobile base did not.
158
+ */
151
159
  .grid-2 {
152
160
  display: grid;
153
161
  gap: 1.5rem;
154
- grid-template-columns: 1fr;
162
+ grid-template-columns: minmax(0, 1fr);
163
+ }
164
+
165
+ /* A grid item's default `min-width: auto` defeats the same shrinking. */
166
+ .grid-2 > * {
167
+ min-width: 0;
155
168
  }
156
169
 
157
170
  @media (min-width: 60rem) {
@@ -529,6 +542,34 @@ legend {
529
542
  margin: 0;
530
543
  }
531
544
 
545
+ /*
546
+ * The card used to be one big anchor, which is why its tags could not be
547
+ * links: an anchor cannot contain another. The title carries the link now, and
548
+ * this keeps the card feeling clickable while every tag on it is separately
549
+ * reachable.
550
+ */
551
+ .job-card .job-title a {
552
+ color: inherit;
553
+ text-decoration: none;
554
+ }
555
+
556
+ .job-card:hover {
557
+ border-color: color-mix(in oklab, var(--primary) 45%, var(--border));
558
+ }
559
+
560
+ .job-card .job-title a:hover {
561
+ text-decoration: underline;
562
+ }
563
+
564
+ /* A linked badge must not look like body copy that happens to be blue. */
565
+ a.badge {
566
+ text-decoration: none;
567
+ }
568
+
569
+ a.badge:hover {
570
+ border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
571
+ }
572
+
532
573
  .job-card .job-org {
533
574
  color: var(--muted-foreground);
534
575
  font-size: 0.9rem;
@@ -555,7 +596,9 @@ legend {
555
596
  @media (min-width: 40rem) {
556
597
  .filters-inline {
557
598
  display: grid;
558
- grid-template-columns: 1fr auto;
599
+ /* minmax(0, …) for the same reason as .grid-2: a long query in the search
600
+ box must not be able to widen the row. */
601
+ grid-template-columns: minmax(0, 1fr) auto;
559
602
  gap: 0.5rem;
560
603
  align-items: end;
561
604
  }
package/web/public/sw.js CHANGED
@@ -6,11 +6,14 @@
6
6
  * is cached is the shell (stylesheet, icon) and an offline fallback, and every
7
7
  * document goes to the network first.
8
8
  *
9
- * Bump VERSION on any change here or to the assets listed below. Without a
10
- * bump, a returning reader keeps the old worker and never sees the change.
9
+ * VERSION is a hash of the shell assets, not a number someone remembers to
10
+ * raise. It was a number, and the first CSS fix that shipped after this file
11
+ * was written did not raise it, so every returning reader kept the broken
12
+ * stylesheet forever. `pnpm test` recomputes the hash and fails when it has
13
+ * drifted, which is the only version of this rule that survives contact.
11
14
  */
12
15
 
13
- const VERSION = 'v1';
16
+ const VERSION = '82142d5f';
14
17
  const SHELL = `shell-${VERSION}`;
15
18
  const ASSETS = ['/assets/app.css', '/assets/tokens.css', '/assets/icon.svg'];
16
19
 
@@ -18,7 +21,13 @@ self.addEventListener('install', (event) => {
18
21
  event.waitUntil(
19
22
  caches
20
23
  .open(SHELL)
21
- .then((cache) => cache.addAll(ASSETS))
24
+ // `cache: 'reload'` because addAll goes through the HTTP cache by
25
+ // default, and these assets are served with max-age=3600. Without it the
26
+ // worker faithfully caches whatever stale copy the HTTP cache is still
27
+ // holding, under a fresh cache name, and the result is a cache that
28
+ // looks correct and serves the old file for an hour. That is exactly
29
+ // what happened to the mobile fix.
30
+ .then((cache) => cache.addAll(ASSETS.map((asset) => new Request(asset, { cache: 'reload' }))))
22
31
  .then(() => self.skipWaiting()),
23
32
  );
24
33
  });
@@ -43,8 +52,23 @@ self.addEventListener('fetch', (event) => {
43
52
  if (url.pathname.startsWith('/api/') || url.pathname.startsWith('/me')) return;
44
53
 
45
54
  if (ASSETS.includes(url.pathname)) {
55
+ // Answer from the cache, then refresh it in the background. A stale asset
56
+ // therefore survives one render rather than until the next VERSION bump,
57
+ // which matters because the bump is the step that gets missed.
46
58
  event.respondWith(
47
- caches.match(request).then((hit) => hit || fetch(request)),
59
+ caches.open(SHELL).then((cache) =>
60
+ cache.match(request).then((hit) => {
61
+ // Same reason as install: revalidating through the HTTP cache can
62
+ // refresh the entry with the copy it already had.
63
+ const fresh = fetch(new Request(request.url, { cache: 'reload' }))
64
+ .then((response) => {
65
+ if (response.ok) void cache.put(request, response.clone());
66
+ return response;
67
+ })
68
+ .catch(() => hit);
69
+ return hit || fresh;
70
+ }),
71
+ ),
48
72
  );
49
73
  return;
50
74
  }