@hadoku/jobplatform 3.42.41 → 3.42.43
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 +55 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -145,13 +145,65 @@ the edge degrades to `public` rather than being trusted.
|
|
|
145
145
|
|
|
146
146
|
---
|
|
147
147
|
|
|
148
|
+
## Getting access
|
|
149
|
+
|
|
150
|
+
Installing (the `@wolffm/*` dependencies come from GitHub Packages), the dev server and
|
|
151
|
+
the authed e2e suite all need secrets from the hadoku vault. You read them with your own
|
|
152
|
+
credential, which lasts 7 days. No hadoku_site clone and no GitHub token are needed.
|
|
153
|
+
|
|
154
|
+
1. Ask the operator for a service grant for `jobplatform-service-key`. Your hadoku.me
|
|
155
|
+
account must be friend tier or above. You cannot request one yourself.
|
|
156
|
+
2. Sign in at [hadoku.me](https://hadoku.me) on the computer you will approve from, and
|
|
157
|
+
save a passkey there: settings gear, or [hadoku.me/auth](https://hadoku.me/auth)
|
|
158
|
+
while signed in → "Save a passkey".
|
|
159
|
+
3. In your clone, run `npx @hadoku/dev-vault login`. It prints a code and a link to
|
|
160
|
+
`https://hadoku.me/account/device?code=XXXX-XXXX`; leave it running. The request
|
|
161
|
+
lives 24 hours.
|
|
162
|
+
4. Open the link. The first time only: "Set up" → tap your passkey → scan the QR into an
|
|
163
|
+
authenticator app (Google Authenticator, Microsoft Authenticator, 1Password, …) → type
|
|
164
|
+
its 6-digit code → Confirm. Then pick the identity, type the app's current code,
|
|
165
|
+
Approve, and tap your passkey.
|
|
166
|
+
5. The command writes `.devvault.local.json` (gitignored, mode 0600) with your `key`,
|
|
167
|
+
`expiresAt` and `identity`. Check it with `npx @hadoku/dev-vault --check`.
|
|
168
|
+
6. Add to your user `.npmrc` (`~/.npmrc`, or `%USERPROFILE%\.npmrc` on Windows):
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
dev-vault fills `NODE_AUTH_TOKEN` for whatever it runs.
|
|
175
|
+
|
|
176
|
+
When the credential expires, run `npx @hadoku/dev-vault login` again.
|
|
177
|
+
|
|
178
|
+
`pnpm dev` and `pnpm test:e2e` call `../hadoku_site/scripts/secrets/dev-vault.mjs`,
|
|
179
|
+
which you won't have. Run the same thing through the package:
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
npx @hadoku/dev-vault -- pnpm install
|
|
183
|
+
node extension/build.mjs && npx @hadoku/dev-vault -- vite # pnpm dev
|
|
184
|
+
node scripts/free-port.mjs 5173 && npx @hadoku/dev-vault -- playwright test # pnpm test:e2e
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
On Windows, dev-vault cannot start a `.cmd` shim (`pnpm`, `vite`, `playwright`)
|
|
188
|
+
directly; put `cmd /c` after the `--`, e.g. `npx @hadoku/dev-vault -- cmd /c vite`.
|
|
189
|
+
|
|
190
|
+
- **The passkey dialog is empty** ("Choose a passkey" with nothing in it, on Windows):
|
|
191
|
+
there is no passkey on this computer. Save one (step 2), or pick "Use another device"
|
|
192
|
+
and scan the QR with the phone that holds yours.
|
|
193
|
+
- **The request expired**: run `npx @hadoku/dev-vault login` again.
|
|
194
|
+
- **401, or "required: friend", from hadoku.me**: the credential has expired, or you hold
|
|
195
|
+
no grant. Log in again; if that is refused, ask the operator.
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
148
199
|
## Development
|
|
149
200
|
|
|
150
|
-
Requires `pnpm
|
|
151
|
-
|
|
201
|
+
Requires `pnpm`, and a credential for installing and for the dev server (see
|
|
202
|
+
[Getting access](#getting-access)). Without one a clone builds and tests but does not
|
|
203
|
+
fully run.
|
|
152
204
|
|
|
153
205
|
```bash
|
|
154
|
-
pnpm install
|
|
206
|
+
pnpm install # outside the fleet: npx @hadoku/dev-vault -- pnpm install
|
|
155
207
|
|
|
156
208
|
pnpm dev # dev server on :5173
|
|
157
209
|
pnpm build # build both packages
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadoku/jobplatform",
|
|
3
|
-
"version": "3.42.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "3.42.43",
|
|
4
|
+
"gitHead": "0f841fef40d286cbd7c3d7a98930eb8682988deb",
|
|
5
5
|
"description": "Job listings aggregation and tracking dashboard",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|