@danhachuel/jobfinder 0.1.4 → 0.1.6

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 CHANGED
@@ -6,6 +6,30 @@ All notable changes to JobFinder are documented in this file.
6
6
 
7
7
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
8
8
 
9
+ ## [0.1.06] — 2026-11-13
10
+
11
+ ### Added
12
+
13
+ - **Skills de prevenção de regressões (`.agents/skills/`)**: sete documentos obrigatórios, adaptados das lições do Thunderbolt para a arquitetura React + Node + JSON do JobFinder — `systemic-view-guard` (dependências entre UI/API/serviços/storage/launcher), `parallel-session-guard` (uma sessão por repositório, `git status` pré-commit, `rebase` antes do push), `surgical-scope-guard` (menor diff possível, arquivos sensíveis só com autorização explícita), `atomic-write-guard` (toda escrita em JSON via `JsonStore`, nunca `fs.writeFileSync` em estado), `windows-runtime-guard` (handlers de `unhandledRejection`/EPIPE/sinais, `spawn` com `windowsHide` + `creationFlags` + `stdio: pipe`), `contract-test-guard` (testar comportamento HTTP/clique/persistência, não strings) e `react-state-guard` (backend como fonte da verdade, sem `setInterval` sem limpeza, `AbortController` no polling).
14
+ - **`AGENTS.md` na raiz**: instrução de leitura obrigatória das skills, regras de projeto (versionamento visual, release via GitHub Actions, push com `rebase`, suíte de testes antes do commit, proibição de sessões paralelas), mapa rápido do repositório e convenções de código.
15
+ - **`tests/`**: pasta criada com stubs (`test_systemic_dependencies.js`, `test_atomic_write_concurrency.js`, `test_windows_keepalive.js`, `test_api_contracts.js`, `test_ui_state.spec.js`) documentando o que cada suíte deve cobrir nas próximas fases — rodáveis com `node --test tests/*.js`.
16
+ - **README**: nova seção em "Development" descrevendo as skills, o `AGENTS.md` e a suíte de testes.
17
+
18
+ ### Notas
19
+
20
+ - Nenhum código funcional foi alterado: apenas documentação, `AGENTS.md` e stubs de teste. A suíte existente (`scripts/manual-tests/`) continua passando (82 checks) e os stubs rodam limpos com `node --test tests/*.js` (5 skipped).
21
+
22
+ ## [0.1.05] — 2026-11-13
23
+
24
+ ### Changed
25
+
26
+ - **Nenhuma abertura automática de navegador**: o launcher (`scripts/cli.mjs`) não abre mais o navegador do sistema ao iniciar. O terminal apenas imprime a URL (`http://127.0.0.1:4040`) e a mensagem `Press Ctrl+C to stop.`, aguardando a ação do usuário — abrir uma janela sem ser pedido não é aceitável para um produto hospedado (SaaS). A função `openBrowser` foi removida, as flags `--open`/`--no-open` viraram no-ops (ainda aceitas por compatibilidade) e a chave `openBrowserOnStart` saiu do config padrão.
27
+ - **Marca reposicionada para SaaS**: removidas todas as menções a "100% local" / "local-first" / "seus dados nunca saem desta máquina" da UI (badge do login, rodapé da sidebar — que fica apenas com o perfil e o botão **Sair** —, rodapé do conteúdo, cartões de Vagas, Candidaturas e Header) e do CLI (subtítulo do banner agora é "LinkedIn Automation • Intelligent Workflows"). A descrição do pacote npm e o README seguem o mesmo reposicionamento.
28
+
29
+ ### Removed
30
+
31
+ - Bloco "100% local" (link para o GitHub) do rodapé da sidebar e badge "100% local" da tela de login; frases de posicionamento exclusivamente local em toda a interface.
32
+
9
33
  ## [0.1.04] — 2026-11-12
10
34
 
11
35
  ### Added
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # JobFinder
2
2
 
3
- **Local-first LinkedIn automation.** Single user, no cloud account, no external database — everything runs on your machine and is stored in JSON.
3
+ **LinkedIn automation platform.** Posts, connections/DMs and job applications — intelligent workflows in one place.
4
4
 
5
5
  [![npm](https://img.shields.io/badge/npm-@danhachuel%2Fjobfinder-indigo)](https://www.npmjs.com/package/@danhachuel/jobfinder)
6
6
  [![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
@@ -29,15 +29,15 @@ Everything is driven from a React dashboard at `http://localhost:4040` — metri
29
29
  Windows / CMD / MobaXterm:
30
30
 
31
31
  ```bash
32
- npx.cmd --yes --prefer-online @danhachuel/jobfinder@0.1.4 install
33
- npx.cmd --yes --prefer-online @danhachuel/jobfinder@0.1.4
32
+ npx.cmd --yes --prefer-online @danhachuel/jobfinder@0.1.6 install
33
+ npx.cmd --yes --prefer-online @danhachuel/jobfinder@0.1.6
34
34
  ```
35
35
 
36
36
  Normal terminal:
37
37
 
38
38
  ```bash
39
- npx --yes @danhachuel/jobfinder@0.1.4 install
40
- npx --yes @danhachuel/jobfinder@0.1.4
39
+ npx --yes @danhachuel/jobfinder@0.1.6 install
40
+ npx --yes @danhachuel/jobfinder@0.1.6
41
41
  ```
42
42
 
43
43
  `install` creates `~/.jobfinder/` (config, auth, channels, topics, posts, connections, dm-cascades, jobs, applications, resume, logs). It is safe to re-run: existing data is never overwritten.
@@ -112,9 +112,19 @@ Manual smoke tests (start a temporary server + Playwright for the UI):
112
112
  node scripts/manual-tests/fase1-auth-dryrun.mjs # API: login, sessão, toggle dry-run, troca de senha
113
113
  node scripts/manual-tests/fase1-dryrun-services.mjs # API: flag dry-run aplicada a postagens/convites/DMs
114
114
  node scripts/manual-tests/fase1-ui-e2e.mjs # UI (Playwright): login, badges, configurações, logout
115
+ node scripts/manual-tests/startup-keepalive.mjs # runtime: boot, unhandledRejection, EPIPE, sinais
116
+ node --test tests/*.js # contratos/concorrência/UI (stubs por enquanto)
115
117
  ```
116
118
 
117
- Layout: `scripts/cli.mjs` (launcher) · `src/server/` (Express API, JSON store, LinkedIn + LLM services, workers) · `src/ui/` (React + Vite + Tailwind v4).
119
+ ### Regression-prevention skills (read before changing code)
120
+
121
+ [AGENTS.md](AGENTS.md) is the entry point: every agent (and every task) must read the seven
122
+ skills in `.agents/skills/` before touching the repo — systemic view of dependencies, one
123
+ session per repository, surgical scope (no unrequested refactors), atomic JSON writes through
124
+ the store, Windows runtime resilience, contract tests that exercise real behavior, and
125
+ predictable React state.
126
+
127
+ Layout: `scripts/cli.mjs` (launcher) · `src/server/` (Express API, JSON store, LinkedIn + LLM services, workers) · `src/ui/` (React + Vite + Tailwind v4) · `.agents/skills/` (regression rules) · `tests/` (contract/concurrency/UI stubs).
118
128
 
119
129
  ## Publishing
120
130
 
@@ -126,7 +136,7 @@ Releases happen **exclusively via GitHub Actions** (`.github/workflows/publish-n
126
136
 
127
137
  - [Legal index](legal/index.html) · [Privacy Policy](legal/privacy.html) · [Terms of Use](legal/terms.html)
128
138
 
129
- Key points: 100% local storage, no data sent to any JobFinder server, cookies never shared, you are responsible for respecting LinkedIn's rate limits and for every action taken on your account.
139
+ Key points: your data stays in your own JSON store, no data is sent to any JobFinder server, cookies are never shared, you are responsible for respecting LinkedIn's rate limits and for every action taken on your account.
130
140
 
131
141
  ## License
132
142
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@danhachuel/jobfinder",
3
- "version": "0.1.04",
4
- "description": "JobFinder — local-first LinkedIn automation (posts, connections/DMs, job matching) with a React + Vite UI. Single-user, JSON storage, no external database.",
3
+ "version": "0.1.06",
4
+ "description": "JobFinder — LinkedIn automation platform (posts, connections/DMs, job matching) with a React + Vite UI. Intelligent workflows, JSON storage.",
5
5
  "keywords": [
6
6
  "linkedin",
7
7
  "automation",
8
8
  "jobs",
9
- "local-first",
9
+ "saas",
10
10
  "cli",
11
11
  "npx"
12
12
  ],
package/scripts/cli.mjs CHANGED
@@ -71,10 +71,10 @@ function normalizeNpmVersion(v) {
71
71
  }
72
72
 
73
73
  const USAGE = `
74
- JobFinder — local-first LinkedIn automation
74
+ JobFinder — LinkedIn automation platform
75
75
 
76
76
  Usage:
77
- jobfinder install Create the local JSON data store (~/.jobfinder/)
77
+ jobfinder install Create the JSON data store (~/.jobfinder/)
78
78
  jobfinder [start] [flags] Start the app at http://localhost:4040
79
79
  jobfinder --version Show version
80
80
  jobfinder --help Show this help
@@ -83,8 +83,6 @@ Flags:
83
83
  --port <n> Port to listen on (default 4040)
84
84
  --host <addr> Bind address (default 127.0.0.1)
85
85
  --data-dir <path> Data directory (default ~/.jobfinder, override with JOBFINDER_HOME)
86
- --open Open the browser after start (default)
87
- --no-open Do not open the browser after start
88
86
  --dry-run Run with automations in dry-run mode (no real LinkedIn actions)
89
87
 
90
88
  Install commands (canonical npm version):
@@ -93,7 +91,7 @@ Install commands (canonical npm version):
93
91
  `;
94
92
 
95
93
  function parseArgs(argv) {
96
- const args = { command: null, port: null, host: null, dataDir: null, open: null, dryRun: false };
94
+ const args = { command: null, port: null, host: null, dataDir: null, dryRun: false };
97
95
  const rest = [...argv];
98
96
  const first = rest[0];
99
97
  if (first && !first.startsWith('-')) {
@@ -115,11 +113,10 @@ function parseArgs(argv) {
115
113
  args.dataDir = rest[i + 1];
116
114
  i += 1;
117
115
  break;
116
+ // Deprecated no-ops: the browser is never opened automatically.
117
+ // The flags are still accepted so existing commands keep working.
118
118
  case '--open':
119
- args.open = true;
120
- break;
121
119
  case '--no-open':
122
- args.open = false;
123
120
  break;
124
121
  case '--dry-run':
125
122
  args.dryRun = true;
@@ -146,7 +143,7 @@ function printBanner() {
146
143
  const line = '-'.repeat(58);
147
144
  console.log(line);
148
145
  console.log(` JobFinder v${VISUAL_VERSION} (npm: ${NPM_VERSION})`);
149
- console.log(' Local-first LinkedIn automation • JSON storage • single user');
146
+ console.log(' LinkedIn Automation • Intelligent Workflows');
150
147
  console.log(line);
151
148
  }
152
149
 
@@ -171,7 +168,7 @@ function commandInstall({ dataDir }) {
171
168
  console.log(` 3. Start the app: npx --yes @danhachuel/jobfinder@${NPM_VERSION}`);
172
169
  }
173
170
 
174
- async function commandStart({ port, host, dataDir, open, dryRun }) {
171
+ async function commandStart({ port, host, dataDir, dryRun }) {
175
172
  const resolved = resolveDataDir(dataDir);
176
173
  ensureDataDir(resolved);
177
174
 
@@ -227,10 +224,9 @@ async function commandStart({ port, host, dataDir, open, dryRun }) {
227
224
  // Windows-only (Ctrl+Break) — harmless no-op on other platforms.
228
225
  process.on('SIGBREAK', forward('SIGBREAK'));
229
226
 
230
- const shouldOpen = open === null ? !process.env.CI && process.env.JOBFINDER_NO_OPEN !== '1' : open;
231
- if (shouldOpen) {
232
- setTimeout(() => openBrowser(url), 1200);
233
- }
227
+ // No auto-open: the terminal prints the URL and waits for the user.
228
+ // Opening a browser window on the user's machine without being asked
229
+ // is not acceptable for a hosted (SaaS) product.
234
230
 
235
231
  child.on('exit', (code, signal) => {
236
232
  // Loud, visible reason: the server ending must never look like a silent
@@ -241,21 +237,6 @@ async function commandStart({ port, host, dataDir, open, dryRun }) {
241
237
  });
242
238
  }
243
239
 
244
- function openBrowser(url) {
245
- const cmd = process.platform === 'win32' ? 'cmd' : process.platform === 'darwin' ? 'open' : 'xdg-open';
246
- const args =
247
- process.platform === 'win32' ? ['/c', 'start', '', url] : [url];
248
- try {
249
- // Best-effort: an 'error' event (e.g. no shell/browser available) must
250
- // never take the launcher down.
251
- const opened = spawn(cmd, args, { stdio: 'ignore', detached: true });
252
- opened.on('error', () => {});
253
- opened.unref();
254
- } catch {
255
- /* opening the browser is best-effort */
256
- }
257
- }
258
-
259
240
  function commandVersion() {
260
241
  console.log(`JobFinder v${VISUAL_VERSION} (npm: ${NPM_VERSION})`);
261
242
  console.log(`os: ${os.type()} ${os.arch()} • node: ${process.version}`);
@@ -30,7 +30,6 @@ export const DEFAULT_CONFIG = {
30
30
  schemaVersion: 1,
31
31
  port: 4040,
32
32
  host: '127.0.0.1',
33
- openBrowserOnStart: true,
34
33
  dryRun: true,
35
34
  llm: {
36
35
  provider: 'ollama',