@reconcrap/boss-recommend-mcp 2.0.46 → 2.0.47

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.
Files changed (56) hide show
  1. package/bin/boss-recommend-mcp.js +4 -4
  2. package/config/screening-config.example.json +27 -27
  3. package/package.json +1 -1
  4. package/scripts/postinstall.cjs +44 -44
  5. package/skills/boss-chat/README.md +39 -39
  6. package/skills/boss-chat/SKILL.md +93 -93
  7. package/skills/boss-recommend-pipeline/README.md +12 -12
  8. package/skills/boss-recommend-pipeline/SKILL.md +180 -180
  9. package/skills/boss-recruit-pipeline/README.md +17 -17
  10. package/skills/boss-recruit-pipeline/SKILL.md +58 -58
  11. package/src/chat-mcp.js +1780 -1780
  12. package/src/chat-runtime-config.js +749 -749
  13. package/src/cli.js +3054 -3054
  14. package/src/core/boss-cards/index.js +199 -199
  15. package/src/core/browser/index.js +1453 -1453
  16. package/src/core/capture/index.js +1201 -1201
  17. package/src/core/cv-acquisition/index.js +238 -238
  18. package/src/core/cv-capture-target/index.js +299 -299
  19. package/src/core/greet-quota/index.js +54 -54
  20. package/src/core/infinite-list/index.js +1326 -1326
  21. package/src/core/reporting/legacy-csv.js +341 -341
  22. package/src/core/run/timing.js +33 -33
  23. package/src/core/screening/index.js +50 -3
  24. package/src/core/self-heal/index.js +973 -973
  25. package/src/core/self-heal/viewport.js +564 -564
  26. package/src/domains/chat/cards.js +137 -137
  27. package/src/domains/chat/constants.js +221 -221
  28. package/src/domains/chat/detail.js +1668 -1668
  29. package/src/domains/chat/index.js +7 -7
  30. package/src/domains/chat/jobs.js +592 -592
  31. package/src/domains/chat/page-guard.js +98 -98
  32. package/src/domains/chat/roots.js +56 -56
  33. package/src/domains/chat/run-service.js +1977 -1977
  34. package/src/domains/recommend/actions.js +457 -457
  35. package/src/domains/recommend/cards.js +243 -243
  36. package/src/domains/recommend/constants.js +165 -165
  37. package/src/domains/recommend/detail.js +25 -18
  38. package/src/domains/recommend/filters.js +610 -610
  39. package/src/domains/recommend/index.js +10 -10
  40. package/src/domains/recommend/jobs.js +316 -316
  41. package/src/domains/recommend/refresh.js +472 -472
  42. package/src/domains/recommend/roots.js +80 -80
  43. package/src/domains/recommend/run-service.js +27 -20
  44. package/src/domains/recommend/scopes.js +246 -246
  45. package/src/domains/recruit/actions.js +277 -277
  46. package/src/domains/recruit/cards.js +74 -74
  47. package/src/domains/recruit/constants.js +167 -167
  48. package/src/domains/recruit/detail.js +461 -461
  49. package/src/domains/recruit/index.js +9 -9
  50. package/src/domains/recruit/instruction-parser.js +451 -451
  51. package/src/domains/recruit/refresh.js +44 -44
  52. package/src/domains/recruit/roots.js +68 -68
  53. package/src/domains/recruit/run-service.js +1207 -1207
  54. package/src/domains/recruit/search.js +1202 -1202
  55. package/src/recommend-mcp.js +22 -22
  56. package/src/recruit-mcp.js +1338 -1338
@@ -1,54 +1,54 @@
1
- import { normalizeText } from "../screening/index.js";
2
-
3
- export const GREET_CREDITS_EXHAUSTED_CODE = "GREET_CREDITS_EXHAUSTED";
4
-
5
- function coerceQuota(quota) {
6
- if (!quota || typeof quota !== "object") return null;
7
- return {
8
- found: Boolean(quota.found),
9
- text: normalizeText(quota.text),
10
- numerator: Number.isFinite(Number(quota.numerator)) ? Number(quota.numerator) : null,
11
- denominator: Number.isFinite(Number(quota.denominator)) ? Number(quota.denominator) : null,
12
- exhausted: Boolean(quota.exhausted)
13
- };
14
- }
15
-
16
- export function parseGreetQuota(label = "") {
17
- const text = normalizeText(label);
18
- const match = text.match(/立即沟通\s*[\((]\s*(\d+)\s*[//]\s*(\d+)\s*[\))]/);
19
- if (!match) {
20
- return {
21
- found: false,
22
- text,
23
- numerator: null,
24
- denominator: null,
25
- exhausted: false
26
- };
27
- }
28
- const numerator = Number(match[1]);
29
- const denominator = Number(match[2]);
30
- return {
31
- found: true,
32
- text,
33
- numerator,
34
- denominator,
35
- exhausted: numerator > denominator
36
- };
37
- }
38
-
39
- export function normalizeGreetQuotaSource(source = "") {
40
- return coerceQuota(source) || parseGreetQuota(source);
41
- }
42
-
43
- export function assertGreetQuotaAvailable(source = "") {
44
- const quota = normalizeGreetQuotaSource(source);
45
- if (quota.exhausted) {
46
- const error = new Error(
47
- `Greet credits exhausted according to Boss quota text: ${quota.numerator}/${quota.denominator}`
48
- );
49
- error.code = GREET_CREDITS_EXHAUSTED_CODE;
50
- error.greet_quota = quota;
51
- throw error;
52
- }
53
- return quota;
54
- }
1
+ import { normalizeText } from "../screening/index.js";
2
+
3
+ export const GREET_CREDITS_EXHAUSTED_CODE = "GREET_CREDITS_EXHAUSTED";
4
+
5
+ function coerceQuota(quota) {
6
+ if (!quota || typeof quota !== "object") return null;
7
+ return {
8
+ found: Boolean(quota.found),
9
+ text: normalizeText(quota.text),
10
+ numerator: Number.isFinite(Number(quota.numerator)) ? Number(quota.numerator) : null,
11
+ denominator: Number.isFinite(Number(quota.denominator)) ? Number(quota.denominator) : null,
12
+ exhausted: Boolean(quota.exhausted)
13
+ };
14
+ }
15
+
16
+ export function parseGreetQuota(label = "") {
17
+ const text = normalizeText(label);
18
+ const match = text.match(/立即沟通\s*[\((]\s*(\d+)\s*[//]\s*(\d+)\s*[\))]/);
19
+ if (!match) {
20
+ return {
21
+ found: false,
22
+ text,
23
+ numerator: null,
24
+ denominator: null,
25
+ exhausted: false
26
+ };
27
+ }
28
+ const numerator = Number(match[1]);
29
+ const denominator = Number(match[2]);
30
+ return {
31
+ found: true,
32
+ text,
33
+ numerator,
34
+ denominator,
35
+ exhausted: numerator > denominator
36
+ };
37
+ }
38
+
39
+ export function normalizeGreetQuotaSource(source = "") {
40
+ return coerceQuota(source) || parseGreetQuota(source);
41
+ }
42
+
43
+ export function assertGreetQuotaAvailable(source = "") {
44
+ const quota = normalizeGreetQuotaSource(source);
45
+ if (quota.exhausted) {
46
+ const error = new Error(
47
+ `Greet credits exhausted according to Boss quota text: ${quota.numerator}/${quota.denominator}`
48
+ );
49
+ error.code = GREET_CREDITS_EXHAUSTED_CODE;
50
+ error.greet_quota = quota;
51
+ throw error;
52
+ }
53
+ return quota;
54
+ }