@hadoku/resume-bot 3.15.86 → 3.15.88
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/README.md +12 -58
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,11 +6,7 @@ AI-powered conversational interface for interactive resume exploration — chat
|
|
|
6
6
|
|
|
7
7
|
**See it live:** [hadoku.me/resume](https://hadoku.me/resume)
|
|
8
8
|
|
|
9
|
-
This repo is the npm package that powers that widget. The rest of this README is for contributors working on the package itself.
|
|
10
|
-
|
|
11
|
-
## Overview
|
|
12
|
-
|
|
13
|
-
Two-panel UI: a markdown resume viewer on the left, an AI chat interface on the right. The chat uses Groq's LLM to answer questions about the resume. Also exposes a worker API for generating tailored resumes and cover letters.
|
|
9
|
+
This repo is the npm package that powers that widget. The rest of this README is for contributors working on the package itself; what it does and how it's built are in the [guide](docs/guide/index.md) above.
|
|
14
10
|
|
|
15
11
|
## Development
|
|
16
12
|
|
|
@@ -23,40 +19,13 @@ The identity to ask for is `resume-bot-service-key`.
|
|
|
23
19
|
|
|
24
20
|
### Local Development Setup
|
|
25
21
|
|
|
26
|
-
This package includes a development environment for testing the component locally:
|
|
27
|
-
|
|
28
22
|
```bash
|
|
29
|
-
#
|
|
30
|
-
pnpm
|
|
31
|
-
|
|
32
|
-
# Start dev server (opens http://localhost:5173)
|
|
33
|
-
pnpm dev
|
|
34
|
-
|
|
35
|
-
# Build for production
|
|
36
|
-
pnpm build
|
|
37
|
-
|
|
38
|
-
# Lint and format
|
|
39
|
-
pnpm lint:fix
|
|
40
|
-
pnpm format
|
|
23
|
+
pnpm install # outside the fleet: npx @hadoku/dev-vault -- pnpm install
|
|
24
|
+
pnpm dev # opens http://localhost:5173, mounting the component directly
|
|
41
25
|
```
|
|
42
26
|
|
|
43
|
-
The
|
|
44
|
-
|
|
45
|
-
**Example URLs:**
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
# Default configuration
|
|
49
|
-
http://localhost:5173
|
|
50
|
-
|
|
51
|
-
# Custom theme
|
|
52
|
-
http://localhost:5173?theme=ocean
|
|
53
|
-
|
|
54
|
-
# Admin user
|
|
55
|
-
http://localhost:5173?userType=admin&sessionId=test-123
|
|
56
|
-
|
|
57
|
-
# Full configuration
|
|
58
|
-
http://localhost:5173?theme=ocean&userType=admin&sessionId=dev-session
|
|
59
|
-
```
|
|
27
|
+
The rest of the commands, and the dev harness's URL parameters for trying
|
|
28
|
+
different states, are in [contributing.md](docs/guide/contributing.md#run-it).
|
|
60
29
|
|
|
61
30
|
## Integration
|
|
62
31
|
|
|
@@ -107,6 +76,7 @@ gated in-worker via `@wolffm/worker-utils` edge-auth — see `worker/src/index.t
|
|
|
107
76
|
|
|
108
77
|
- `${apiBaseUrl}/chat` - POST - Chat with the bot (public, rate-limited)
|
|
109
78
|
- `${apiBaseUrl}/resume` - GET - Fetch resume content, incl. `?v={slug}` variants (public)
|
|
79
|
+
- `${apiBaseUrl}/resume.pdf` - GET - Server-rendered PDF download (public)
|
|
110
80
|
- `${apiBaseUrl}/system-prompt` - GET - Fetch system prompt (admin/friend)
|
|
111
81
|
- `${apiBaseUrl}/tailored-resume` - POST - Per-job tailored resume (admin/friend/service)
|
|
112
82
|
- `${apiBaseUrl}/cover-letter` - POST - Per-job cover letter (admin/friend/service)
|
|
@@ -114,31 +84,15 @@ gated in-worker via `@wolffm/worker-utils` edge-auth — see `worker/src/index.t
|
|
|
114
84
|
|
|
115
85
|
## Deployment
|
|
116
86
|
|
|
117
|
-
Pushes to `main` automatically
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
2. Notify parent site to update
|
|
121
|
-
3. Parent pulls new version and redeploys
|
|
122
|
-
|
|
123
|
-
### Versioning
|
|
124
|
-
|
|
125
|
-
Version bumps are handled automatically through two mechanisms:
|
|
126
|
-
|
|
127
|
-
1. **Pre-commit hook** (primary): The `.husky/pre-commit` hook automatically bumps the version for every commit
|
|
128
|
-
2. **Workflow fallback**: The publish workflow checks if the current version already exists in the registry and bumps it if needed
|
|
129
|
-
|
|
130
|
-
This dual approach ensures versions are always incremented, even if commits bypass the pre-commit hook (e.g., web UI edits, `--no-verify` commits).
|
|
131
|
-
|
|
132
|
-
Version bumping follows this pattern:
|
|
133
|
-
|
|
134
|
-
- Patch version increments on each commit (1.1.8 → 1.1.9)
|
|
135
|
-
- At patch 20, rolls over to next minor (1.1.20 → 1.2.0)
|
|
87
|
+
Pushes to `main` build, publish and notify the parent site automatically, with
|
|
88
|
+
the version computed by CI at publish time — never by a commit or a hook. See
|
|
89
|
+
[contributing.md#how-it-deploys](docs/guide/contributing.md#how-it-deploys).
|
|
136
90
|
|
|
137
91
|
## Architecture
|
|
138
92
|
|
|
139
|
-
This package has two exports
|
|
93
|
+
This package has two exports, built and published together as
|
|
94
|
+
`@wolffm/resume-bot`; the full architecture — content model, gating, the LLM
|
|
95
|
+
provider chain — is in [contributing.md#architecture](docs/guide/contributing.md#architecture).
|
|
140
96
|
|
|
141
97
|
- **UI component** (`.` export): `mount(el, props)` / `unmount(el)` — React app from `src/entry.tsx`
|
|
142
98
|
- **Worker API** (`./api` export): `createResumeHandler(basePath, options)` — Hono router from `worker/src/index.ts` (`options.ownerName` sets the chat owner)
|
|
143
|
-
|
|
144
|
-
Both are built and published together as `@wolffm/resume-bot`.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadoku/resume-bot",
|
|
3
|
-
"version": "3.15.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "3.15.88",
|
|
4
|
+
"gitHead": "57a74472a731c0871f931f519b7e2ea7ccce8f09",
|
|
5
5
|
"description": "AI-powered conversational interface for interactive resume exploration",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|