hiregraph 0.1.0 → 0.1.1

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/dist/index.js CHANGED
@@ -122,7 +122,7 @@ async function parseResume(filePath) {
122
122
  throw new Error(`Unsupported resume format: ${ext}. Supported: .pdf, .txt, .md`);
123
123
  }
124
124
  if (!isApiKeyConfigured()) {
125
- throw new Error("No API key detected. Run hiregraph inside Claude Code or Cursor for resume parsing.");
125
+ throw new Error("ANTHROPIC_API_KEY not set. Set it in your environment variables.");
126
126
  }
127
127
  const response = await callHaiku(SYSTEM_PROMPT, `Extract structured data from this resume:
128
128
 
@@ -383,7 +383,7 @@ async function initCommand() {
383
383
  }]);
384
384
  if (hasResume) {
385
385
  if (!isApiKeyConfigured()) {
386
- warn("No API key detected. Run inside Claude Code for resume parsing. Using manual flow.");
386
+ warn("ANTHROPIC_API_KEY not set \u2014 skipping resume parsing. Set it in your environment for full features.");
387
387
  } else {
388
388
  const { resumePath } = await inquirer.prompt([{
389
389
  type: "input",
@@ -1591,7 +1591,7 @@ async function scanCommand(path) {
1591
1591
  fail("Layer 7: LLM classification failed");
1592
1592
  }
1593
1593
  } else {
1594
- dim(" Layer 7: Skipped (no API key \u2014 run inside Claude Code for full analysis)");
1594
+ dim(" Layer 7: Skipped (set ANTHROPIC_API_KEY for LLM classification)");
1595
1595
  }
1596
1596
  const scanResult = {
1597
1597
  project_name: projectName,
@@ -2036,7 +2036,7 @@ var BATCH_SIZE2 = 10;
2036
2036
  var BATCH_DELAY_MS2 = 1e3;
2037
2037
  async function parseJobsBatch(jobs) {
2038
2038
  if (!isApiKeyConfigured()) {
2039
- throw new Error("No API key detected. Run hiregraph inside Claude Code or Cursor.");
2039
+ throw new Error("ANTHROPIC_API_KEY not set. Set it in your environment variables.");
2040
2040
  }
2041
2041
  const cached = await loadSubJson("jobs", "parsed.json");
2042
2042
  const requirements = cached?.requirements || {};
@@ -2372,7 +2372,7 @@ var BATCH_SIZE3 = 5;
2372
2372
  var BATCH_DELAY_MS3 = 1500;
2373
2373
  async function evaluateMatchesBatch(candidates, graph) {
2374
2374
  if (!isApiKeyConfigured()) {
2375
- throw new Error("No API key detected. Run hiregraph inside Claude Code or Cursor.");
2375
+ throw new Error("ANTHROPIC_API_KEY not set. Set it in your environment variables.");
2376
2376
  }
2377
2377
  const skillSummary = buildSkillSummary(graph);
2378
2378
  const results = [];
@@ -2557,7 +2557,7 @@ async function runMatchPipeline(options) {
2557
2557
  async function matchesCommand(options) {
2558
2558
  header("\n HireGraph Matches\n");
2559
2559
  if (!isApiKeyConfigured()) {
2560
- warn("No API key detected. Run hiregraph inside Claude Code or Cursor for automatic access.");
2560
+ warn('ANTHROPIC_API_KEY not set. Add it to your environment variables or run: $env:ANTHROPIC_API_KEY = "your-key"');
2561
2561
  return;
2562
2562
  }
2563
2563
  try {
@@ -3019,7 +3019,7 @@ async function submitToAshby(rawJobId, pdfBuffer, identity) {
3019
3019
  async function applyCommand(jobId, options) {
3020
3020
  header("\n HireGraph Apply\n");
3021
3021
  if (!isApiKeyConfigured()) {
3022
- warn("No API key detected. Run hiregraph inside Claude Code or Cursor.");
3022
+ warn('ANTHROPIC_API_KEY not set. Add it to your environment variables or run: $env:ANTHROPIC_API_KEY = "your-key"');
3023
3023
  return;
3024
3024
  }
3025
3025
  const graph = await loadGraph();