@viyzhu/boss-cli-fork 0.7.2-rc.1 → 0.7.3

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 (37) hide show
  1. package/AGENTS.md +85 -56
  2. package/LICENSE +674 -674
  3. package/README.md +284 -276
  4. package/dist/browser/cdp_browser.d.ts +170 -88
  5. package/dist/browser/cdp_browser.d.ts.map +1 -1
  6. package/dist/browser/cdp_browser.js +674 -400
  7. package/dist/browser/cdp_browser.js.map +1 -1
  8. package/dist/browser/index.d.ts +1 -1
  9. package/dist/browser/index.d.ts.map +1 -1
  10. package/dist/browser/index.js +1 -1
  11. package/dist/browser/index.js.map +1 -1
  12. package/dist/cli/cliRouter.js +61 -61
  13. package/dist/common/auth.js +49 -49
  14. package/dist/common/boss_modal.js +42 -42
  15. package/dist/common/boss_page_guards.js +247 -247
  16. package/dist/common/boss_paywall_popup.js +87 -87
  17. package/dist/common/boss_session_page.d.ts.map +1 -1
  18. package/dist/common/boss_session_page.js +16 -15
  19. package/dist/common/boss_session_page.js.map +1 -1
  20. package/dist/common/boss_sidebar_nav.js +24 -24
  21. package/dist/common/c_resume_capture.js +61 -61
  22. package/dist/toolset/action.d.ts.map +1 -1
  23. package/dist/toolset/action.js +237 -233
  24. package/dist/toolset/action.js.map +1 -1
  25. package/dist/toolset/chat.js +437 -437
  26. package/dist/toolset/deep-search.js +570 -570
  27. package/dist/toolset/jd.js +132 -132
  28. package/dist/toolset/list.js +48 -48
  29. package/dist/toolset/normal-search.js +158 -158
  30. package/dist/toolset/preview.d.ts.map +1 -1
  31. package/dist/toolset/preview.js +3 -3
  32. package/dist/toolset/preview.js.map +1 -1
  33. package/dist/toolset/recommend.js +207 -207
  34. package/package.json +69 -69
  35. package/skills/boss-frontend-analysis/SKILL.md +58 -58
  36. package/skills/boss-frontend-analysis/agents/openai.yaml +4 -4
  37. package/skills/boss-frontend-analysis/scripts/capture_boss_frontend.mjs +604 -604
@@ -1,58 +1,58 @@
1
- ---
2
- name: boss-frontend-analysis
3
- description: Capture, archive, diff, and assess Boss/Zhipin frontend JavaScript for boss-cli safety gates and anti-debug guard updates. Use when Codex needs to re-analyze current Boss frontend scripts, compare online JS with docs/research/boss-online-js baselines, update boss_availability, or recommend code changes after Boss changes zhipin-boss, zhipin-sign, risk-detection, remoteEntry, or security scripts.
4
- ---
5
-
6
- # Boss Frontend Analysis
7
-
8
- Use this skill when Boss online frontend assets changed and boss-cli must decide whether to stay disabled, update the verified baseline, or change page guards.
9
-
10
- ## Workflow
11
-
12
- 1. Run the capture script from the repository root:
13
-
14
- ```bash
15
- node skills/boss-frontend-analysis/scripts/capture_boss_frontend.mjs
16
- ```
17
-
18
- 2. Read the generated files under `docs/research/boss-online-js/<date>/`:
19
-
20
- - `manifest.json`: captured URLs, final URLs, byte sizes, SHA-256 hashes, and source category.
21
- - `analysis.md`: version changes, high-risk script notes, and code-change recommendations.
22
- - `raw/`: unmodified script bodies for diffing.
23
-
24
- 3. Compare against the previous verified baseline, usually the latest dated folder under `docs/research/boss-online-js/`.
25
-
26
- 4. Inspect these repo files before recommending or changing code:
27
-
28
- - `src/common/boss_availability.ts`
29
- - `src/common/boss_page_guards.ts`
30
- - `docs/anti-detection.md`
31
- - `docs/browser-session.md`
32
-
33
- 5. Keep the policy strict:
34
-
35
- - Do not add fallback or bypass switches for availability checks.
36
- - If online entry pages reference unverified Boss JS versions, boss-cli must remain disabled.
37
- - Only update `boss_availability.ts` after raw scripts are archived and the risk strategy has been reviewed.
38
- - Puppeteer `page.evaluate` / `page.waitForFunction` additions must use string scripts, not callback functions.
39
-
40
- ## Analysis Checklist
41
-
42
- - Chat entry page: identify current `zhipin-boss/index/v*/static/js/app.js`, `polyfill.js`, and `risk-detection.js`.
43
- - Remote bundle: identify current `zhipin-boss/bundle/v*/static/remoteEntry.js` and downloaded chunks.
44
- - Sign/login page: identify `zhipin-sign/v*/static/js/app.*.js`, `iframe-core.*.js`, and `vendors~app.*.js`.
45
- - Security scripts: note `zhipin-security`, `browser-check`, Warlock, APM, MQTT, and reporting SDK version changes.
46
- - Risk detector: search for codes such as `99001`, `99002`, `99004`, `99005`, `srcdoc`, `MutationObserver`, `isTrusted`, `sendAction`, and security redirects.
47
- - Sign vendor anti-debug: search for `debugger`, `Function(`, `constructor`, `setInterval`, `console`, `devtools`, and obfuscated modules around those hits.
48
- - Guard coverage: verify request-blocking patterns in `boss_page_guards.ts` still cover risk scripts and security redirects.
49
-
50
- ## Output Guidance
51
-
52
- When reporting results, include:
53
-
54
- - Current online versions and whether they match the verified baseline.
55
- - Whether boss-cli should remain disabled.
56
- - Exact files or constants that need updates.
57
- - Any selectors, request patterns, or script guards that changed.
58
- - Build and runtime checks performed.
1
+ ---
2
+ name: boss-frontend-analysis
3
+ description: Capture, archive, diff, and assess Boss/Zhipin frontend JavaScript for boss-cli safety gates and anti-debug guard updates. Use when Codex needs to re-analyze current Boss frontend scripts, compare online JS with docs/research/boss-online-js baselines, update boss_availability, or recommend code changes after Boss changes zhipin-boss, zhipin-sign, risk-detection, remoteEntry, or security scripts.
4
+ ---
5
+
6
+ # Boss Frontend Analysis
7
+
8
+ Use this skill when Boss online frontend assets changed and boss-cli must decide whether to stay disabled, update the verified baseline, or change page guards.
9
+
10
+ ## Workflow
11
+
12
+ 1. Run the capture script from the repository root:
13
+
14
+ ```bash
15
+ node skills/boss-frontend-analysis/scripts/capture_boss_frontend.mjs
16
+ ```
17
+
18
+ 2. Read the generated files under `docs/research/boss-online-js/<date>/`:
19
+
20
+ - `manifest.json`: captured URLs, final URLs, byte sizes, SHA-256 hashes, and source category.
21
+ - `analysis.md`: version changes, high-risk script notes, and code-change recommendations.
22
+ - `raw/`: unmodified script bodies for diffing.
23
+
24
+ 3. Compare against the previous verified baseline, usually the latest dated folder under `docs/research/boss-online-js/`.
25
+
26
+ 4. Inspect these repo files before recommending or changing code:
27
+
28
+ - `src/common/boss_availability.ts`
29
+ - `src/common/boss_page_guards.ts`
30
+ - `docs/anti-detection.md`
31
+ - `docs/browser-session.md`
32
+
33
+ 5. Keep the policy strict:
34
+
35
+ - Do not add fallback or bypass switches for availability checks.
36
+ - If online entry pages reference unverified Boss JS versions, boss-cli must remain disabled.
37
+ - Only update `boss_availability.ts` after raw scripts are archived and the risk strategy has been reviewed.
38
+ - Puppeteer `page.evaluate` / `page.waitForFunction` additions must use string scripts, not callback functions.
39
+
40
+ ## Analysis Checklist
41
+
42
+ - Chat entry page: identify current `zhipin-boss/index/v*/static/js/app.js`, `polyfill.js`, and `risk-detection.js`.
43
+ - Remote bundle: identify current `zhipin-boss/bundle/v*/static/remoteEntry.js` and downloaded chunks.
44
+ - Sign/login page: identify `zhipin-sign/v*/static/js/app.*.js`, `iframe-core.*.js`, and `vendors~app.*.js`.
45
+ - Security scripts: note `zhipin-security`, `browser-check`, Warlock, APM, MQTT, and reporting SDK version changes.
46
+ - Risk detector: search for codes such as `99001`, `99002`, `99004`, `99005`, `srcdoc`, `MutationObserver`, `isTrusted`, `sendAction`, and security redirects.
47
+ - Sign vendor anti-debug: search for `debugger`, `Function(`, `constructor`, `setInterval`, `console`, `devtools`, and obfuscated modules around those hits.
48
+ - Guard coverage: verify request-blocking patterns in `boss_page_guards.ts` still cover risk scripts and security redirects.
49
+
50
+ ## Output Guidance
51
+
52
+ When reporting results, include:
53
+
54
+ - Current online versions and whether they match the verified baseline.
55
+ - Whether boss-cli should remain disabled.
56
+ - Exact files or constants that need updates.
57
+ - Any selectors, request patterns, or script guards that changed.
58
+ - Build and runtime checks performed.
@@ -1,4 +1,4 @@
1
- interface:
2
- display_name: "Boss Frontend Analysis"
3
- short_description: "Capture and diff Boss frontend JS"
4
- default_prompt: "Use $boss-frontend-analysis to capture current Boss frontend scripts, compare them with the verified baseline, and recommend boss-cli code changes."
1
+ interface:
2
+ display_name: "Boss Frontend Analysis"
3
+ short_description: "Capture and diff Boss frontend JS"
4
+ default_prompt: "Use $boss-frontend-analysis to capture current Boss frontend scripts, compare them with the verified baseline, and recommend boss-cli code changes."