pi-career 0.1.0 → 0.2.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/README.md CHANGED
@@ -1,159 +1,476 @@
1
1
  # pi-career
2
2
 
3
- Self-contained [Pi package](https://github.com/earendil-works/pi) for deterministic Career Core workflows on explicitly supported native targets.
3
+ [![npm version](https://img.shields.io/npm/v/pi-career.svg)](https://www.npmjs.com/package/pi-career)
4
+ [![npm downloads](https://img.shields.io/npm/dm/pi-career.svg)](https://www.npmjs.com/package/pi-career)
5
+ [![CI](https://github.com/revazi/pi-career/actions/workflows/ci.yml/badge.svg)](https://github.com/revazi/pi-career/actions/workflows/ci.yml)
6
+ [![license: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)](#license-and-provenance)
4
7
 
5
- This publicly readable Git repository owns the Pi adapter, package-owned runtime artifacts and resolver, Pi package metadata, Pi-facing Agent Skill, build/package tests, and integration guidance. Career Core remains authoritative for operations, algorithms, versioned JSON schemas, errors, evidence, warnings, uncertainty, ordering, and assisted/non-authoritative semantics.
8
+ `pi-career` is a [Pi package](https://github.com/earendil-works/pi) for deterministic resume analysis and conservative vacancy matching, with an optional model-assisted workflow for reviewed resume improvements.
6
9
 
7
- ## Surface and non-scope
10
+ The package's command handlers do not call a model/provider. `/career-workbench` instead prepares a visible private prompt in Pi's editor; only the user's later submission invokes the selected Pi model/provider. At runtime, pi-career never uses a Career Core source checkout or Cargo build. Its optional maintainer compatibility test may read an explicitly supplied, reviewed Core fixture checkout.
8
11
 
9
- The package preserves exactly three native tools:
12
+ It gives you:
10
13
 
11
- - `career_core_discover`
12
- - `career_core_resume`
13
- - `career_core_job`
14
+ - local slash commands for setting up a resume library, analyzing originals, and matching them to a vacancy;
15
+ - one compact managed agent tool, `career_run`, for guided work after the deterministic baseline;
16
+ - a visible workbench handoff that never sends private resume text until you review and submit it yourself;
17
+ - a bounded resolver for a compatible external Career Core runtime;
18
+ - no bundled native binary, telemetry, vacancy URL fetching, automatic document overwrite, or hidden provider call.
14
19
 
15
- On supported targets it also provides deterministic slash commands:
20
+ Career Core remains authoritative for scores, evidence, warnings, uncertainty, matching, and proposal review. `pi-career` owns the Pi workflow and presentation layer; it does not reimplement Career Core algorithms or schemas.
16
21
 
17
- - `/career-setup`
18
- - `/career-library`
19
- - `/career-vacancy`
20
- - `/career-match`
21
- - `/career-analyze`
22
+ > **Version note:** this README describes `pi-career@0.2.0`. Published `pi-career@0.1.0` is the historical bundled-runtime release. If `0.2.0` is not yet visible on the npm registry, use a reviewed local checkout or pinned Git commit.
22
23
 
23
- Commands call the same package-owned runtime directly through bounded argv/stdin execution; they never call an LLM-facing tool, provider, model, network, PATH, Cargo, sibling checkout, or downloaded runtime. The workflow scans only explicitly configured `.md`/`.txt` roots, excludes assisted variants and inputs over 50,000 Unicode scalar values from authoritative operations, and never overwrites source files. See [`docs/design.md`](docs/design.md), [`docs/product-flow.md`](docs/product-flow.md), and [`SECURITY.md`](SECURITY.md).
24
+ ## Requirements
24
25
 
25
- ## Supported runtime targets
26
+ - Node.js 22.19 or newer
27
+ - Pi with 0.84.0-compatible package APIs
28
+ - a reviewed ARM64/x64 target: macOS, GNU/Linux with glibc 2.35+, musl Linux, or MSVC Windows
29
+ - either a compatible local `career` executable or network access for first-use acquisition of exact `@revazi/career@0.1.1`
26
30
 
27
- | Package target | Native platform |
28
- |---|---|
29
- | `darwin-arm64` | macOS on Apple silicon |
30
- | `linux-x64-gnu` | Linux x64 with glibc |
31
+ ## Install
31
32
 
32
- Windows, macOS x64, Linux arm64, Linux musl, and unknown libc/platform combinations are unsupported. The package may register on an unsupported target, but deterministic operations fail closed with a payload-free `unsupported_platform` error; they never guess, download a runtime, search `PATH`, or invoke Cargo.
33
+ After the registry confirms the release, install the exact version:
33
34
 
34
- The unsigned package-owned runtime artifacts were produced and natively verified from Career Core commit `a3cdb4c6d7f966397e93ea4664071975bca7228c` by [artifact run 30953471793](https://github.com/revazi/career-core/actions/runs/30953471793). [`runtime/manifest.json`](runtime/manifest.json) pins target paths, sizes, SHA-256 values, provenance, and bounded contract digests. Before the first bundled spawn in each process, the selected regular executable is checked for exact size, mode, and SHA-256; only successful verification is cached in memory.
35
+ ```bash
36
+ pi install npm:pi-career@0.2.0
37
+ pi list
38
+ ```
35
39
 
36
- `CAREER_CLI_PATH` remains an optional developer/recovery override. When set, it must be a bounded absolute path to a separately reviewed compatible executable and takes precedence over the bundled runtime. Normal users do not set it.
40
+ For release-candidate testing, a clean checkout includes reproducible `dist/index.js` and `dist/pdf-worker.js` bundles, so local installation does not require a build or npm install:
37
41
 
38
- ## End-user prerequisites
42
+ ```bash
43
+ cd /absolute/path/to/pi-career
44
+ pi install "$(pwd -P)"
45
+ pi list
46
+ ```
39
47
 
40
- - Pi with 0.84.0-compatible package APIs
41
- - one of the two supported native targets above
42
- - a reviewed clean local checkout, public Git commit, or exact npm version of this package
48
+ On Windows PowerShell, register the same clean checkout with:
43
49
 
44
- No separate Career Core checkout, `career` installation, Cargo, Rust toolchain, install-time build, or runtime download is required.
50
+ ```powershell
51
+ pi install (Resolve-Path .).Path
52
+ pi list
53
+ ```
45
54
 
46
- ## Reviewed local installation
55
+ Local-path installation loads the checkout in place. After a reviewed update, restart Pi or run `/reload`.
47
56
 
48
- Pi local-path packages are referenced in place rather than copied. Register a reviewed clean checkout at a stable absolute path:
57
+ To pin a reviewed Git commit instead:
49
58
 
50
59
  ```bash
51
- cd /absolute/path/to/pi-career
52
- package_root="$(pwd -P)"
53
- pi install "$package_root"
54
- pi list
60
+ pi install git:github.com/revazi/pi-career@<reviewed-full-commit>
55
61
  ```
56
62
 
57
- Restart Pi or run `/reload` after a reviewed update. A local registration follows files at that path and does not pin future changes, so update the checkout only to reviewed revisions.
58
-
59
- Remove the registration with the same resolved path:
63
+ Remove the exact source you installed:
60
64
 
61
65
  ```bash
66
+ pi remove npm:pi-career
67
+
68
+ # Or, for a local-path registration:
62
69
  cd /absolute/path/to/pi-career
63
- package_root="$(pwd -P)"
64
- pi remove "$package_root"
65
- pi list
70
+ pi remove "$(pwd -P)"
71
+ ```
72
+
73
+ Developers who modify `src/` must rebuild the tracked bundles with `npm run build`; see [Development](#development).
74
+
75
+ ## Recommended first run
76
+
77
+ The optimal path starts with deterministic analysis. The model-assisted path begins only if you review and submit the prompt prepared by `/career-workbench`.
78
+
79
+ ```mermaid
80
+ flowchart TD
81
+ A["Start Pi"] --> B{"Persist this Pi session?"}
82
+ B -->|No| C["Start with pi --no-session"]
83
+ B -->|Yes| D["Use a normal session<br/>approve local persistence if prompted"]
84
+
85
+ C --> E["/career-setup<br/>add an original-resume root"]
86
+ D --> E
87
+ E --> F["/career-library<br/>review indexed originals and notices"]
88
+ F --> G["/career-analyze<br/>establish the deterministic baseline"]
89
+
90
+ G --> H{"Matching a vacancy?"}
91
+ H -->|No| I{"Want model-assisted help?"}
92
+ H -->|Yes| J["/new<br/>one fresh session per company and role"]
93
+ J --> K["/career-application<br/>create company/role context"]
94
+ K --> L["/career-vacancy<br/>paste text; Career Core validates it"]
95
+ L --> M["/career-match<br/>rank eligible original resumes"]
96
+ M --> I
97
+
98
+ I -->|No| N["Inspect deterministic details and stop"]
99
+ I -->|Yes| O["/career-workbench<br/>private prompt is prepared in the editor<br/>nothing is sent"]
100
+ O --> P{"Review and submit the prompt?"}
101
+ P -->|No| Q["Edit or cancel"]
102
+ P -->|Yes| R["Selected Pi model/provider<br/>uses career_run handles"]
103
+ R --> S["career_run reruns the complete<br/>deterministic baseline"]
104
+ S --> T{"Requested workflow"}
105
+ T -->|Explain score| U["Explain the complete deterministic result"]
106
+ T -->|Plan / rewrite / replacements| V["Career Core reviews external<br/>suggestions or replacements once"]
107
+ V --> W["Present retained items, discards, and warnings<br/>no automatic application or save"]
108
+ T -->|Tailor to vacancy| X["Analyze and match the original<br/>Career Core reviews variant changes once"]
109
+ X --> Y{"Original format"}
110
+ Y -->|PDF| AA["Return targeted manual changes only"]
111
+ Y -->|Markdown/text| AB["Later turn: user selects retained change IDs"]
112
+ AB --> AC["career_run materialize<br/>assisted text; still not saved"]
113
+
114
+ N --> Z["Original remains unchanged<br/>assisted output is non-authoritative<br/>and is never reranked as an original"]
115
+ Q --> Z
116
+ U --> Z
117
+ W --> Z
118
+ AA --> Z
119
+ AC --> Z
66
120
  ```
67
121
 
68
- ## Public npm installation pinned to a version
122
+ ### 1. Start with a transient Pi session
69
123
 
70
- After reviewing the release metadata, install an exact published version:
124
+ For a first test—or whenever you do not want Pi to write this conversation to a session JSONL—start:
71
125
 
72
126
  ```bash
73
- pi install npm:pi-career@0.1.0
74
- pi list
127
+ pi --no-session
75
128
  ```
76
129
 
77
- A versioned npm package is pinned and skipped by package updates. Review and install a new exact version to update. Remove it by package identity:
130
+ This prevents Pi session persistence for the new run. It is not secure erasure and does not remove shell history, previous sessions, backups, provider copies, or npm cache data.
78
131
 
79
- ```bash
80
- pi remove npm:pi-career
132
+ If you use a normal persisted session, `pi-career` asks for explicit consent before it adds private vacancy/workflow state. A local-session decision is separate from permission to send content to a model provider.
133
+
134
+ ### 2. Configure an originals library
135
+
136
+ Put one or more original resumes in a dedicated directory. Supported inputs are:
137
+
138
+ - UTF-8 Markdown (`.md`)
139
+ - UTF-8 plain text (`.txt`)
140
+ - searchable, unencrypted PDF (`.pdf`), up to 10 MiB and 20 pages
141
+
142
+ Image-only/scanned PDFs need OCR or export to Markdown/text first. DOCX, Pages, vacancy URLs, and OCR are not supported.
143
+
144
+ In Pi, run:
145
+
146
+ ```text
147
+ /career-setup
81
148
  ```
82
149
 
83
- ## Public Git installation pinned to a commit
150
+ Choose **Add root** and enter the resume directory. Setup stores the canonical root in private local Pi configuration; it does not copy, move, or edit your resumes.
84
151
 
85
- After reviewing a full commit SHA, install directly from this public repository; no configured Git credentials are required:
152
+ Setup also displays a preferred `variants/` destination. This is suggestion-only: it creates no directory or file and does not authorize a save.
86
153
 
87
- ```bash
88
- pi install git:github.com/revazi/pi-career@<full-reviewed-commit-sha>
89
- pi list
154
+ ### 3. Confirm what was indexed
155
+
156
+ ```text
157
+ /career-library
90
158
  ```
91
159
 
92
- A pinned Git package is not moved by `pi update --extensions`. To update, review a new full SHA and install that explicit ref:
160
+ Review the indexed originals and any notices. Fix unreadable, oversized, invalid UTF-8, encrypted, or image-only documents before continuing.
93
161
 
94
- ```bash
95
- pi install git:github.com/revazi/pi-career@<new-full-reviewed-commit-sha>
162
+ ### 4. Analyze an original before tailoring it
163
+
164
+ ```text
165
+ /career-analyze
166
+ ```
167
+
168
+ Choose one original resume. The command runs deterministic readiness analysis, shows a compact card, and lets you inspect the complete result or focused sections in a transient viewer.
169
+
170
+ This is the best first baseline: understand the resume on its own before adding vacancy-specific concerns.
171
+
172
+ ### 5. Use one Pi session per company and role
173
+
174
+ Start a fresh Pi conversation before each application:
175
+
176
+ ```text
177
+ /new
178
+ /career-application
179
+ ```
180
+
181
+ Enter the company and role. The application context scopes its vacancy and result cards and names an otherwise unnamed Pi session. It does not create an application directory or write career documents.
182
+
183
+ Then set the vacancy:
184
+
185
+ ```text
186
+ /career-vacancy
187
+ ```
188
+
189
+ Paste the vacancy text directly. `pi-career` never fetches a vacancy URL. Career Core validates the text before it becomes the current vacancy.
190
+
191
+ ### 6. Match your originals
192
+
193
+ ```text
194
+ /career-match
195
+ ```
196
+
197
+ Choose all eligible originals or a subset. The command deterministically normalizes the vacancy, analyzes each selected original, matches each original to the vacancy, and then ranks the results conservatively. You can open detailed evidence for a selected row.
198
+
199
+ Scores and recommendations are bounded workflow guidance—not hiring predictions, ATS guarantees, or evidence that an employer will respond.
200
+
201
+ ### 7. Open the workbench only when you want model-assisted help
202
+
203
+ ```text
204
+ /career-workbench
205
+ ```
206
+
207
+ Choose an original and a guided mode. The command prepares a private prompt in Pi's normal editor; it does **not** invoke Career Core or a model and sends nothing automatically. Read the prompt and source payload before submitting it.
208
+
209
+ After you submit, the selected Pi agent uses `career_run` to rerun complete deterministic baselines and Core-review any proposed suggestions, replacements, or vacancy-specific changes. The original remains immutable.
210
+
211
+ For a non-PDF tailored variation, the agent must stop after review and ask you to select retained change IDs. Materialization can happen only in a later turn with exactly those IDs. For PDFs, the workbench returns targeted manual changes only because extracted text cannot preserve typography, columns, spacing, or graphics.
212
+
213
+ ## Slash command reference
214
+
215
+ The workflow commands below require interactive TUI/RPC mode except `/career-vacancy clear`; `/career-tools` is a lightweight tool-surface switch. Slash-command handlers do not invoke a model/provider. `/career-workbench` prepares an editor prompt whose later user submission does. Core-backed commands may resolve or acquire the external runtime before processing private input.
216
+
217
+ ### `/career-setup [status]`
218
+
219
+ Configure and inspect package-level resume-library settings.
220
+
221
+ Without arguments, the setup menu can:
222
+
223
+ - add a readable resume root;
224
+ - rescan configured roots;
225
+ - show setup and scan status;
226
+ - set or clear a suggestion-only resume-variation directory.
227
+
228
+ It stores only canonical root paths, bounded labels, and the optional variation-directory suggestion. It does not install Career Core, create the suggested directory, copy resumes, or write result files.
229
+
230
+ Use `/career-setup status` to display the current summary and notices without opening the menu.
231
+
232
+ ### `/career-library [status]`
233
+
234
+ Browse and maintain the configured resume index.
235
+
236
+ The menu can:
237
+
238
+ - browse indexed PDF, Markdown, and text records;
239
+ - add or remove a root from configuration;
240
+ - rescan all configured roots;
241
+ - show counts and actionable scan notices.
242
+
243
+ Removing a root changes configuration only; it never deletes files. Assisted variants with valid sidecars remain visible but are excluded from authoritative analysis and matching. Oversized originals remain visible as unavailable where appropriate.
244
+
245
+ Use `/career-library status` for a summary without the menu.
246
+
247
+ ### `/career-application [status|clear]`
248
+
249
+ Create and manage one company/role context for the current Pi session.
250
+
251
+ A new application records bounded company and role labels, starts at `preparing`, and can later be marked `applied`, `interviewing`, or `closed`. Its immutable application ID scopes the current vacancy and result cards. If the Pi session has no name, the command names it from the company and role.
252
+
253
+ Use:
254
+
255
+ - `/career-application status` to show the active context;
256
+ - `/career-application clear` to clear the application and its current vacancy.
257
+
258
+ After clearing—or before working on another company/role—run `/new`. The same Pi session cannot be reused for a second application context because earlier private prompts would still be in that conversation.
259
+
260
+ This command manages session state only. It does not create workspace folders or application files.
261
+
262
+ ### `/career-vacancy [clear]`
263
+
264
+ Set, inspect, replace, or clear the current vacancy.
265
+
266
+ When no vacancy exists, the command opens an editor for pasted text. When one exists, it offers **Replace**, **View**, **Clear**, or **Cancel**. New or replacement text is normalized and validated by Career Core before being stored in workflow state.
267
+
268
+ The vacancy is bound to the active application when one exists. It must be supplied as text; URLs are never fetched.
269
+
270
+ Use `/career-vacancy clear` to clear it directly. This is the only career slash-command action allowed without interactive TUI/RPC mode.
271
+
272
+ ### `/career-analyze [filter]`
273
+
274
+ Run deterministic readiness analysis for one eligible original resume.
275
+
276
+ The optional filter is a case-insensitive substring matched against the resume label, relative path, and stable ID. For example:
277
+
278
+ ```text
279
+ /career-analyze backend
96
280
  ```
97
281
 
98
- Remove it by repository identity:
282
+ After selecting a resume, the command:
283
+
284
+ 1. requests persistence consent when needed;
285
+ 2. runs the authoritative original-resume analysis;
286
+ 3. stores only a bounded result card in session state;
287
+ 4. offers complete/focused transient detail;
288
+ 5. can prepare a single-resume match command when a vacancy exists;
289
+ 6. can open the guided workbench for the selected resume.
290
+
291
+ It never analyzes an assisted variant as an original. Oversized output fails without partial results or hidden file export.
292
+
293
+ ### `/career-match [filter]`
294
+
295
+ Deterministically rank eligible original resumes against the current vacancy.
296
+
297
+ Set a vacancy first with `/career-vacancy`. The optional filter uses the same label/relative-path/ID substring matching as `/career-analyze`.
298
+
299
+ The command lets you choose every matching original or select a subset. It then runs, sequentially:
300
+
301
+ 1. vacancy normalization;
302
+ 2. readiness analysis for every selected original;
303
+ 3. original-resume/vacancy matching for every selected original;
304
+ 4. stable conservative ranking and tie display.
305
+
306
+ The summary keeps unavailable oversized results visible instead of silently dropping them. Select a ranked row to inspect scores, strengths, gaps, confidence, warnings, evidence, and vacancy context.
307
+
308
+ Assisted variants are never accepted as authoritative match inputs.
309
+
310
+ ### `/career-workbench [filter]`
311
+
312
+ Prepare a visible, guided prompt for the selected Pi agent.
313
+
314
+ The optional resume filter behaves like `/career-analyze`. Available modes are:
315
+
316
+ - **Explain my score** — rerun and explain the complete deterministic analysis;
317
+ - **Create a reviewed improvement plan** — propose at most three advisory suggestions and Core-review them once;
318
+ - **Guided rewrite interview** — ask a small set of factual questions first, wait for your answers, then review bounded exact replacements in a later turn;
319
+ - **Draft reviewed replacements** — propose and Core-review bounded before/after replacements without claiming they were applied;
320
+ - **Create a tailored variation** — available when a current vacancy exists; analyze and match the original, then review vacancy-grounded changes;
321
+ - **Ask my own question** — prepare a custom resume-only request under the same safety rules.
322
+
323
+ The command itself calls neither Career Core nor a provider. It puts the complete selected resume—and the vacancy only for tailoring—into Pi's editor. Nothing is sent until you submit. Submitting may persist that message and send it to the provider selected in Pi.
324
+
325
+ `pi-career` currently does not save the resulting variation to disk.
326
+
327
+ ### `/career-tools [managed|raw|status]`
328
+
329
+ Control which Career tools are active in model context.
330
+
331
+ - `/career-tools managed` keeps only the compact `career_run` workflow active. This is the default and recommended mode.
332
+ - `/career-tools raw` also activates `career_core_discover`, `career_core_resume`, and `career_core_job` for explicit schema/debugging work.
333
+ - `/career-tools status` reports the current tool mode.
334
+
335
+ This command changes only the active model-tool surface. It does not change slash-command behavior, runtime resolution, privacy boundaries, or compatibility validation.
336
+
337
+ ## Managed agent workflow
338
+
339
+ Normal users do not need to call raw JSON tools. The package's Agent Skill instructs Pi to use `career_run`:
340
+
341
+ 1. `context` obtains ephemeral handles for eligible originals and the current vacancy;
342
+ 2. `analyze` and `match` return compact projections backed by complete in-memory Core results;
343
+ 3. suggestion, replacement, and variant proposals must pass the corresponding Core review command;
344
+ 4. `detail` hydrates only the requested evidence, warning, check, change, document, or raw section;
345
+ 5. `materialize` requires a prior variant-review handle and explicit user-selected retained IDs.
346
+
347
+ Handles and complete results remain bounded in process memory and disappear on session/branch replacement, reload, or shutdown. They are not result files and cannot be reconstructed safely from chat text.
348
+
349
+ The raw tools are retained for advanced compatibility work only:
350
+
351
+ - `career_core_discover`
352
+ - `career_core_resume`
353
+ - `career_core_job`
354
+
355
+ When raw mode is explicitly enabled, discovery-first use remains mandatory: capabilities → operations → schema list/export/bundle → exact JSON input.
356
+
357
+ ## External Career Core runtime
358
+
359
+ `pi-career` contains no native Career Core binary. A Core-backed command resolves a compatible runtime in this fixed order:
360
+
361
+ 1. absolute `CAREER_CLI_PATH`;
362
+ 2. `career` on `PATH`;
363
+ 3. package-local exact `@revazi/career@0.1.1`;
364
+ 4. bounded acquisition of exact `@revazi/career@0.1.1` from the canonical npm registry.
365
+
366
+ Runtime installation is separate from loading the local Pi package. `/career-setup`, `/career-library`, `/career-application`, and `/career-workbench` do not need Core. `/career-vacancy`, `/career-analyze`, `/career-match`, `career_run`, and the raw tools do.
367
+
368
+ Before private document stdin opens, the selected executable must pass the exact managed Career Core 0.1.1 operation and schema compatibility checks. An invalid explicit `CAREER_CLI_PATH` fails without fallback. On Windows, the PATH route remains direct-argv-only and selects a native `career.exe`; npm command shims are not executed through a caller-selected shell.
369
+
370
+ The exact launcher target matrix is:
371
+
372
+ | Operating system | Architecture | Runtime target | Requirement |
373
+ | --- | --- | --- | --- |
374
+ | macOS | ARM64 | `darwin-arm64` | native Apple silicon |
375
+ | macOS | x64 | `darwin-x64` | native Intel |
376
+ | GNU/Linux | x64 | `linux-x64-gnu` | glibc 2.35+ |
377
+ | GNU/Linux | ARM64 | `linux-arm64-gnu` | glibc 2.35+ |
378
+ | musl Linux | x64 | `linux-x64-musl` | detected musl runtime |
379
+ | musl Linux | ARM64 | `linux-arm64-musl` | detected musl runtime |
380
+ | Windows | x64 | `win32-x64-msvc` | native MSVC Windows |
381
+ | Windows | ARM64 | `win32-arm64-msvc` | native MSVC Windows |
382
+
383
+ The platform-specific optional packages are internal launcher details; install or acquire only exact `@revazi/career@0.1.1`.
384
+
385
+ To prohibit acquisition:
99
386
 
100
387
  ```bash
101
- pi remove git:github.com/revazi/pi-career
388
+ PI_OFFLINE=1 pi --no-session
102
389
  ```
103
390
 
104
- Version `0.1.0` is published as the public npm package `pi-career` with no lifecycle scripts, package-owned runtime npm dependencies, or bundled Pi peer contents. The npm tarball carries the same two unsigned, hash-verified, not-notarized native executables as reviewed local and Git installations; it does not build them with Cargo on the user's machine.
391
+ On Windows PowerShell:
105
392
 
106
- The `v0.1.0` release consists of the exact npm version, an unsigned annotated Git tag, and a GitHub Release; the reviewed full commit SHA and exact npm version are the installation coordinates. There is no crate publication, custom release asset, signing, or notarization. Both the package-owned production audit and complete development/host-Pi audit are clean at the explicit low threshold. Native-license evidence received documented sole-maintainer review, not independent legal review; see [`docs/releasing.md`](docs/releasing.md).
393
+ ```powershell
394
+ $env:PI_OFFLINE = "1"
395
+ pi --no-session
396
+ ```
397
+
398
+ Offline Core-backed use then requires a compatible `CAREER_CLI_PATH`, `career` on `PATH`, or package-local launcher. Acquisition receives no resume or vacancy input, but it may leave ordinary npm cache or `_npx` data; this is not secure erasure.
399
+
400
+ ## Privacy and persistence
401
+
402
+ Use `pi --no-session` when you do not want a new Pi session JSONL. In a persisted session, review the package's consent prompt before continuing with private content.
403
+
404
+ Possible persistence surfaces are distinct:
405
+
406
+ - **Package config:** canonical resume-root paths, bounded labels, and an optional variation-directory suggestion; never resume text, vacancy text, or full Core output.
407
+ - **Pi session:** consent, application/vacancy workflow entries, bounded result cards, and potentially tool arguments/results or submitted workbench messages.
408
+ - **Model provider:** only content you submit through ordinary Pi model interaction; `/career-workbench` makes the private payload visible before submission.
409
+ - **npm cache:** ordinary package-acquisition data, never private Career Core stdin.
410
+
411
+ `pi-career` does not create payload/result temporary files, export full Core JSON, overwrite originals, or automatically save assisted resumes. Searchable PDF extraction is local, bounded, and network-disabled.
412
+
413
+ See [`SECURITY.md`](SECURITY.md), [`docs/design.md`](docs/design.md), and [`docs/product-flow.md`](docs/product-flow.md) for the complete boundary and threat model.
107
414
 
108
- ## Contributor build and verification
415
+ ## Current limitations
109
416
 
110
- Node.js 22.19 or newer is required for development checks; release verification uses npm 10.9.3 from the Node 22.19 CI toolchain. TypeScript under `src/` is authoritative. `dist/index.js` is its reproducible generated bundle and is intentionally tracked with the reviewed native runtimes so clean local, public-Git, and npm packages load without development dependencies. Node build/test tooling stays as directly executed `.mjs` under `scripts/` and `tests/` and is excluded from the package artifact. Pi-provided packages remain external peers.
417
+ - Supported original formats: searchable PDF, Markdown, and UTF-8 text.
418
+ - No OCR, DOCX/Pages editing, vacancy URL fetching, or PDF layout reconstruction.
419
+ - No automatic resume or application-workspace saving.
420
+ - PDF workbench output is targeted manual guidance only.
421
+ - Assisted variants remain non-authoritative and cannot be reranked as originals.
422
+ - Matching is conservative workflow guidance, not a hiring prediction or proprietary ATS simulation.
423
+ - Reviewed external native targets are `darwin-arm64`, `darwin-x64`, `linux-x64-gnu`, `linux-arm64-gnu`, `linux-x64-musl`, `linux-arm64-musl`, `win32-x64-msvc`, and `win32-arm64-msvc`.
424
+
425
+ The future application-workspace contract is documented in [`docs/application-workspaces.md`](docs/application-workspaces.md); those filesystem-writing phases are not implemented.
426
+
427
+ ## Development
428
+
429
+ TypeScript under `src/` is authoritative. `dist/index.js` and `dist/pdf-worker.js` are reproducible tracked bundles for clean local and Git loading.
111
430
 
112
431
  ```bash
113
432
  npm ci
114
433
  npm run build
115
- git diff --exit-code -- dist/index.js
434
+ git diff --exit-code -- dist/index.js dist/pdf-worker.js
435
+ npm run bench:tokens
116
436
  npm run check
117
- npm run test:bundled-runtime
437
+ npm run test:runtime-resolution
438
+ npm run test:career-package
118
439
  npm run audit:production
119
440
  npm run audit:full
120
441
  npm run check:publish
121
442
  PI_OFFLINE=1 npm run test:pi-smoke
122
443
  PI_OFFLINE=1 npm run test:install
444
+ npm run test:compat
123
445
  git diff --check
124
446
  ```
125
447
 
126
- `npm run build` rebuilds only `dist/index.js`; it never builds or downloads native runtimes. `npm run check:runtime-artifacts` enforces the runtime manifest, provenance, five-file source artifact contract, target magic, exact hashes/sizes/modes, and package bounds. `npm run audit:production` requires zero package-owned production vulnerabilities and `npm run audit:full` requires zero vulnerabilities across the complete development/host-Pi tree, both from an explicit low-severity threshold. Production/full audit and package commands invoke `process.execPath` with the absolute npm CLI derived from that real Node installation, verify any inherited `npm_execpath`, and remove omit/include/audit-level/`NODE_ENV` overrides; npm and tar are never selected from `PATH`. `npm run check:publish` is a direct Node authoritative readiness orchestrator but does not publish anything: it runs both strict audits and the package checks. Strict bounded parsing rejects duplicate decoded keys in audit and pack JSON. The package check uses verified absolute `/usr/bin/tar`, proves the tarball has no `node_modules` or Pi package contents, keeps exactly `@earendil-works/pi-ai`, `@earendil-works/pi-coding-agent`, `@earendil-works/pi-tui`, and `typebox` as wildcard external peers, extracts the artifact, loads it, executes the bundled runtime, and performs an isolated install/list/remove smoke. Any future audit finding blocks publication and requires remediation rather than a checked-in acceptance baseline.
127
-
128
- Optional local compatibility uses an explicitly supplied reviewed Career Core fixture root while still executing the bundled runtime:
448
+ `npm run test:career-package` is the network-capable exact-package integration test. `npm run test:compat` skips unless an explicitly reviewed fixture checkout is provided:
129
449
 
130
450
  ```bash
131
451
  CAREER_CORE_FIXTURE_ROOT=/absolute/path/to/reviewed/career-core \
132
452
  npm run test:compat
133
453
  ```
134
454
 
135
- Hosted CI needs no separate Core checkout or provider credentials. Its native matrix executes every claimed target: Ubuntu x64 GNU and macOS arm64.
136
-
137
- ## Privacy before document operations
455
+ `npm run build` rebuilds JavaScript bundles only; it never builds or downloads native runtimes. `npm run check:publish` verifies readiness and package contents but does not publish anything.
138
456
 
139
- Pi may persist native-tool arguments/results and workflow custom entries in session JSONL. The slash commands require the displayed session-persistence decision before the first private vacancy or compact result card is appended to a persisted session. Global config stores only canonical resume-root paths and bounded labels—never resume text, vacancy text, or Core output. Full Core JSON is not stored by the workflow, and custom workflow entries are excluded from LLM context.
457
+ ## Security and release provenance
140
458
 
141
- For direct native-tool use, make the same explicit persistence decision before placing private resume or job content in `input_json`. Prefer a new transient run when session saving is not wanted:
142
-
143
- ```bash
144
- pi --no-session
145
- ```
459
+ The exact reviewed external runtime coordinate is [`@revazi/career@0.1.1`](https://www.npmjs.com/package/@revazi/career/v/0.1.1), published from Career Core commit [`0318b3b0993ee23093c8f023757fa7e4d8b3b8e0`](https://github.com/revazi/career-core/tree/0318b3b0993ee23093c8f023757fa7e4d8b3b8e0). Its launcher owns native target/libc selection and package metadata, provenance, mode or Windows file invariant, size, format, and SHA-256 verification.
146
460
 
147
- This is not a secure-erasure guarantee and does not remove previous sessions, shell history, backups, provider copies, or saved output. Local Pi-context approval also does not authorize sending content to an external model/provider.
461
+ Historical published `pi-career` v0.1.0 coordinates are retained for verification:
148
462
 
149
- Start with `career_core_discover`, invoke only capabilities reported as available, and export the exact input schema before document calls. If the adapter reports `result_too_large` or `result_too_many_lines`, do not request or use partial output. Full-result export is not yet available through pi-career.
463
+ - npm: [`pi-career@0.1.0`](https://www.npmjs.com/package/pi-career/v/0.1.0)
464
+ - Git commit: [`967da62503bc8a97c070946f6506ea3471baeb34`](https://github.com/revazi/pi-career/tree/967da62503bc8a97c070946f6506ea3471baeb34)
465
+ - npm integrity: `sha512-mmbDdWDyWz77f2uLzZECJT9E6w1ZRCJjYFrUnZd3ldoS6ehEa5DrCENIfavHR5xMOFi0of6AVQ35ZTxwpeDeAQ==`
466
+ - GitHub Release: [`v0.1.0`](https://github.com/revazi/pi-career/releases/tag/v0.1.0)
150
467
 
151
- ## Maintainer and support
468
+ That historical release bundled native artifacts; `pi-career@0.2.0` does not. Historical evidence remains in [`docs/native-dependency-inventory.md`](docs/native-dependency-inventory.md), [`docs/releasing.md`](docs/releasing.md), and [`docs/licenses/`](docs/licenses/).
152
469
 
153
- Maintained by [Revaz Zakalashvili](https://github.com/revazi). Use this repository's Issues for sanitized bugs and scoped feature requests, follow [`CONTRIBUTING.md`](CONTRIBUTING.md) for changes, and follow [`SECURITY.md`](SECURITY.md) for vulnerabilities. Never place private career content or vulnerability details in an ordinary issue.
470
+ Use [Issues](https://github.com/revazi/pi-career/issues) only for sanitized bugs and scoped feature requests. Follow [`SECURITY.md`](SECURITY.md) for private vulnerability reports. Never attach real resumes, vacancies, credentials, provider responses, or Pi session files to a public issue.
154
471
 
155
472
  ## License and provenance
156
473
 
157
- Licensed under either Apache-2.0 or MIT, at your option. See [`LICENSE-APACHE`](LICENSE-APACHE), [`LICENSE-MIT`](LICENSE-MIT), [`NOTICE`](NOTICE), and the package-bounded runtime license/notices files under [`runtime/`](runtime/).
474
+ Licensed under either Apache-2.0 or MIT, at your option. See [`LICENSE-APACHE`](LICENSE-APACHE), [`LICENSE-MIT`](LICENSE-MIT), and [`NOTICE`](NOTICE).
158
475
 
159
- The locked normal/build dependency evidence for both native CLI targets is in [`docs/native-dependency-inventory.md`](docs/native-dependency-inventory.md). The package preserves the exact selected MIT/copyright texts for every reachable crate group, Rust 1.97.1 Standard Library evidence, and the required [`Unicode License V3`](docs/licenses/Unicode-3.0.txt) text under [`docs/licenses/`](docs/licenses/). `npm run check:native-licenses` enforces that payload. The inventory is evidence, not legal advice or automated release approval; [`docs/releasing.md`](docs/releasing.md) requires documented human sign-off and transparently records sole-maintainer review when independent review is unavailable.
476
+ The external `@revazi/career` distribution carries its own native licenses and notices.