dsh-jobs 0.0.1 → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 mergedao
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,20 +1,102 @@
1
- # dsh-jobs
1
+ <h1 align="center">dsh-jobs</h1>
2
2
 
3
- [![npm](https://img.shields.io/npm/v/dsh-jobs.svg)](https://www.npmjs.com/package/dsh-jobs)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](#license)
3
+ <p align="center"><strong>在 DeepSeek Harness(dsh)里用原生面板查职位,把投递追踪和新岗巡检放进同一个工作台。</strong></p>
5
4
 
6
- **Background jobs for dsh bots** - a plugin for the [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (`dsh`).
5
+ <p align="center">BOSS 直聘 · 猎聘 · 前程无忧(51job)· 智联招聘</p>
7
6
 
8
- This package name is reserved; the first release is in development.
7
+ <p align="center">
8
+ <a href="https://github.com/mergedao/dsh-jobs/stargazers"><img src="https://img.shields.io/github/stars/mergedao/dsh-jobs?style=flat-square&amp;logo=github&amp;label=Stars" alt="GitHub Stars"></a>
9
+ <a href="https://www.npmjs.com/package/dsh-jobs"><img src="https://img.shields.io/npm/v/dsh-jobs?style=flat-square&amp;logo=npm&amp;label=dsh-jobs" alt="dsh-jobs npm 版本"></a>
10
+ <a href="https://www.npmjs.com/package/dsh-jobs"><img src="https://img.shields.io/npm/dm/dsh-jobs?style=flat-square&amp;label=Downloads%20%2F%20month" alt="npm 近 30 天下载量"></a>
11
+ <a href="https://github.com/mergedao/dsh-jobs/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-475569?style=flat-square" alt="MIT License"></a>
12
+ </p>
9
13
 
10
- The execution half of the bot framework - queued and recurring runs with logs, retries, and a dead-letter view.
14
+ <p align="center">
15
+ <a href="#安装与挂载">安装与挂载</a> ·
16
+ <a href="#dsh-原生工作台">DSH 原生工作台</a> ·
17
+ <a href="#agent-工具与命令">Agent 工具与命令</a> ·
18
+ <a href="#如何读懂搜索与覆盖状态">覆盖与诊断</a> ·
19
+ <a href="#开发与测试">开发与测试</a> ·
20
+ <a href="#english">English</a>
21
+ </p>
11
22
 
12
- Source and roadmap live in the [dsh-plugin monorepo](https://github.com/dushaobindoudou/dsh-plugin).
13
- Watch the repo or the npm package to catch the release. Related releases from
14
- the same suite: [dsh-workflow](https://www.npmjs.com/package/dsh-workflow),
15
- [dsh-selfrepair](https://www.npmjs.com/package/dsh-selfrepair),
16
- [dsh-finder](https://www.npmjs.com/package/dsh-finder).
23
+ ## 安装与挂载
24
+
25
+ **`dsh-jobs` 是面向 DeepSeek Harness(`dsh`)的原生求职插件**,内置零 Playwright 裸 CDP 采集引擎、DSH 原生 Web UI 工作台、8 个 Agent Tools、`/jobs` 斜杠命令以及同步版 [SKILL.md](skills/find-jobs/SKILL.md)。需要 **Node.js 22.12+**。
26
+
27
+ ### 作为 DSH 插件安装
28
+
29
+ ```bash
30
+ dsh plugin install dsh-jobs
31
+ ```
32
+
33
+ 或者在你的 DSH profile `cordis.yml` 中引入(插件自带 [cordis.patch.yml](cordis.patch.yml)):
34
+
35
+ ```yaml
36
+ - id: plugin-jobs
37
+ name: dsh-jobs
38
+ config:
39
+ dataDir: '~/.mcp-jobs'
40
+ defaultCity: '北京'
41
+ defaultAccountId: 'personal'
42
+ ```
43
+
44
+ `dataDir` 默认与 `mcp-jobs` / `skill-jobs` 共用 `~/.mcp-jobs`,持久化浏览器 Profile、本地投递追踪记录与新岗巡检基线完全互通。
45
+
46
+ ## DSH 原生工作台
47
+
48
+ 插件通过 DSH `sidebar.panellist` 与 `main` 槽位挂载原生 Web UI,自动适配 DSH 宿主亮/暗色主题(`--dsw-alias-*` Design Tokens),包含四个标签页:
49
+
50
+ | 面板标签 | 核心能力 |
51
+ | --- | --- |
52
+ | **职位搜索** | 四站并发实时搜岗,支持关键词、城市、薪资、经验筛选;展示每站覆盖状态胶囊与 `diagnostics` 诊断详情;支持一键查 JD、建档待投、原站打开 |
53
+ | **新岗巡检** | 按关键词/城市/平台执行 `watch-check`,首次建立基线,之后展示增量新岗,并强制展示「完整覆盖 / 部分覆盖」与未覆盖平台列表 |
54
+ | **投递追踪** | 按平台切换查看本地已建档(`prepared`)与已投递记录、更新时间及原站链接 |
55
+ | **浏览器与诊断** | 查看本机 Chrome/Edge 裸 CDP 连接状态、持久化 Profile 目录、四站 Cookie 线索;一键打开/重开浏览器、登录监听与优雅关闭 |
56
+
57
+ ## Agent 工具与命令
58
+
59
+ ### 原生 Agent Tools
60
+
61
+ | 工具名 | 用途 |
62
+ | --- | --- |
63
+ | `jobs_search` | 从 BOSS 直聘、猎聘、51job、智联原站实时搜岗,自动区分登录失效与抓包超时,抓包失败自动降级读已渲染 DOM |
64
+ | `jobs_detail` | 读取官方职位详情页完整 JD |
65
+ | `jobs_profile_status` | 查看 CDP 连接、持久化 Profile 及四站 Cookie 线索(页面真实渲染状态优先) |
66
+ | `jobs_login` | 在持久化 Profile 的真实浏览器打开官方登录页并持续监听登录状态(仅前台交互使用) |
67
+ | `jobs_open_browser` | 沿用原 Profile 打开/置前真实浏览器,用于重开浏览器或人工处理安全验证 |
68
+ | `jobs_applications` | 分平台与 `accountId` 查询本地投递追踪记录 |
69
+ | `jobs_prepare_apply` | 为目标岗位本地建档待投(`prepared`) |
70
+ | `jobs_watch_check` | 巡检指定条件的新增岗位并返回 `coverageSummary` |
71
+
72
+ ### 斜杠命令
73
+
74
+ - `/jobs status`:查看本机 CDP 连接状态、持久化 Profile 与四站线索
75
+ - `/jobs doctor`:输出环境与浏览器模式诊断 JSON
76
+ - `/jobs <关键词>`:快速执行四站搜岗并输出覆盖状态与前 8 条结果
77
+
78
+ ## 如何读懂搜索与覆盖状态
79
+
80
+ - **零 Playwright 裸 CDP 架构**:复用本机真实 Chrome/Edge 持久化 Profile,仅附加最小协议域(`Network` / `Page` / `Storage` / `DOM`),不启用 `Runtime` 域,最大限度避免风控探测。
81
+ - **严格区分「抓包失败」与「需要登录」**:
82
+ - `capture_timeout` / `capture_failed` / `parse_empty` 表示已连接浏览器但本次未捕获到接口响应或解析为空,**不是登录失效**,也不代表无新增岗位;附带 `diagnostics`(等待耗时 `waitMs`、匹配请求数 `matchedRequestCount`、响应体长度 `bodyLength`、最终 URL)。
83
+ - 只有站点明确返回登录错误码或页面真实跳转到登录页时才判 `login_required`。
84
+ - **已渲染 DOM 自动降级**:接口抓包超时或取体失败时,自动通过纯协议侧 `DOM.getOuterHTML` 降级提取已渲染职位卡片,标记 `coverage: "rendered_dom"`。
85
+ - **定时任务与覆盖汇总**:每次搜索和巡检都会返回 `coverageSummary`(`status: "full" | "partial" | "none"`、`coveredPlatforms`、`uncoveredPlatforms`、`countsByPlatform`)。覆盖不足时状态为「部分覆盖」,未覆盖平台记为「本轮未覆盖」,绝不误报为「无新增岗位」。
86
+
87
+ ## 开发与测试
88
+
89
+ ```bash
90
+ npm run build # 同步引擎 bundle 并编译 client.js(esbuild -> DSH __ModuleLoader__ IIFE)
91
+ npm test # 运行 Host 插件、Tools、/jobs 命令、引擎与 client.js 产物测试
92
+ ```
93
+
94
+ - 反馈问题请附上平台名、插件版本、来源 `status` 与 `diagnostics`。[提交 Issue](https://github.com/mergedao/dsh-jobs/issues/new)
95
+
96
+ ## English
97
+
98
+ **dsh-jobs** is a native DeepSeek Harness (`dsh`) plugin for all-site job search, application tracking, and scheduled new-job watch loops across BOSS Zhipin, Liepin, 51job, and Zhaopin. It ships a native DSH Web UI workbench (`sidebar.panellist` + `main`), 8 agent tools (`jobs_*`), the `/jobs` slash command, and a zero-Playwright raw-CDP capture engine with rendered-DOM fallback and explicit coverage diagnostics.
17
99
 
18
100
  ## License
19
101
 
20
- MIT
102
+ MIT. Built on [mergedao/mcp-jobs](https://github.com/mergedao/mcp-jobs).
package/client.js ADDED
@@ -0,0 +1,373 @@
1
+ /* eslint-disable */
2
+ /** dsh-jobs — client half (web). BUILD ARTIFACT — edit src/client/ and run npm run build. */
3
+ window.__ModuleLoader__.load({
4
+ id: 'dsh-jobs',
5
+ factory(__shellRequire) {
6
+ const module = { exports: {} }
7
+ const exports = module.exports
8
+ const require = (id) => __shellRequire(id)
9
+ var __create = Object.create;
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __getProtoOf = Object.getPrototypeOf;
14
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
15
+ var __export = (target, all) => {
16
+ for (var name in all)
17
+ __defProp(target, name, { get: all[name], enumerable: true });
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") {
21
+ for (let key of __getOwnPropNames(from))
22
+ if (!__hasOwnProp.call(to, key) && key !== except)
23
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
24
+ }
25
+ return to;
26
+ };
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
33
+ mod
34
+ ));
35
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
+
37
+ // src/client/index.tsx
38
+ var index_exports = {};
39
+ __export(index_exports, {
40
+ apply: () => apply,
41
+ inject: () => inject
42
+ });
43
+ module.exports = __toCommonJS(index_exports);
44
+ var React3 = __toESM(require("react"), 1);
45
+
46
+ // src/client/styles.css
47
+ var styles_default = "/**\n * dsh-jobs \u2014 native DSH Web UI styles.\n *\n * Strictly uses DSH host `--dsw-alias-*` design tokens so light/dark themes\n * match the shell seamlessly. Stays in normal flex flow (flex: 1; min-height: 0).\n */\n\n.dj-entrymark {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 0;\n}\n\n.dsh-jobs-root {\n position: relative;\n flex: 1;\n min-width: 0;\n min-height: 0;\n height: 100%;\n display: flex;\n flex-direction: column;\n background: var(--dsw-alias-bg-base);\n color: var(--dsw-alias-label-primary);\n font-family: var(--dsw-font-family, inherit);\n font-size: 13px;\n -webkit-font-smoothing: antialiased;\n}\n\n/* \u2500\u2500 Topbar (44px, mirrors DSH shell chrome) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.dj-topbar {\n flex: none;\n height: 44px;\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 0 16px;\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-layer-1);\n}\n\n.dj-brand {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n font-size: 13.5px;\n font-weight: 600;\n letter-spacing: -0.01em;\n color: var(--dsw-alias-label-primary);\n flex: none;\n}\n\n.dj-brand-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border-radius: 6px;\n background: linear-gradient(135deg, #0f2034 0%, #0a1522 100%);\n color: #38bdf8;\n}\n\n.dj-seg {\n display: inline-flex;\n align-items: center;\n gap: 2px;\n padding: 2px;\n border-radius: 7px;\n background: var(--dsw-alias-bg-layer-2);\n border: 1px solid var(--dsw-alias-border-l1);\n}\n\n.dj-seg-btn {\n border: 0;\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n padding: 4px 11px;\n border-radius: 5px;\n font: inherit;\n font-size: 12px;\n font-weight: 500;\n cursor: pointer;\n transition: background 120ms ease, color 120ms ease;\n}\n\n.dj-seg-btn:hover {\n color: var(--dsw-alias-label-primary);\n}\n\n.dj-seg-btn.is-active {\n background: var(--dsw-alias-bg-base);\n color: var(--dsw-alias-label-primary);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);\n}\n\n.dj-spacer {\n flex: 1;\n}\n\n/* \u2500\u2500 Status pill & buttons \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.dj-status-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n height: 28px;\n padding: 0 10px;\n border-radius: 999px;\n border: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-layer-2);\n color: var(--dsw-alias-label-secondary);\n font: inherit;\n font-size: 12px;\n cursor: pointer;\n transition: border-color 120ms ease, color 120ms ease;\n}\n\n.dj-status-btn:hover {\n border-color: var(--dsw-alias-brand-primary);\n color: var(--dsw-alias-label-primary);\n}\n\n.dj-dot {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n flex: none;\n background: var(--dsw-alias-label-tertiary, #9ca3af);\n}\n\n.dj-dot.is-ok { background: var(--dsw-alias-state-success-primary, #16a34a); }\n.dj-dot.is-warn { background: var(--dsw-alias-state-warn-primary, #d97706); }\n.dj-dot.is-err { background: var(--dsw-alias-state-error-primary, #dc2626); }\n\n.dj-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n height: 30px;\n padding: 0 12px;\n border-radius: 7px;\n border: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 12.5px;\n font-weight: 500;\n cursor: pointer;\n text-decoration: none;\n white-space: nowrap;\n transition: background 120ms ease, border-color 120ms ease;\n}\n\n.dj-btn:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n border-color: var(--dsw-alias-border-l2);\n}\n\n.dj-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.dj-btn.is-primary {\n background: var(--dsw-alias-brand-primary);\n color: var(--dsw-alias-label-primary-foreground);\n border-color: transparent;\n}\n\n.dj-btn.is-primary:hover:not(:disabled) {\n opacity: 0.9;\n}\n\n.dj-btn.is-sm {\n height: 24px;\n padding: 0 8px;\n font-size: 11.5px;\n border-radius: 5px;\n}\n\n.dj-btn.is-ghost {\n background: transparent;\n border-color: transparent;\n color: var(--dsw-alias-label-secondary);\n}\n\n.dj-btn.is-ghost:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover);\n color: var(--dsw-alias-label-primary);\n}\n\n/* \u2500\u2500 Compact search bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.dj-searchbar {\n flex: none;\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 10px 16px;\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-base);\n}\n\n.dj-search-row {\n display: flex;\n align-items: center;\n gap: 8px;\n flex-wrap: wrap;\n}\n\n.dj-input-group {\n display: inline-flex;\n align-items: center;\n flex: 1 1 240px;\n max-width: 440px;\n height: 32px;\n border-radius: 7px;\n border: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-layer-1);\n overflow: hidden;\n}\n\n.dj-input-group:focus-within {\n border-color: var(--dsw-alias-brand-primary);\n}\n\n.dj-input {\n height: 100%;\n border: 0;\n outline: none;\n background: transparent;\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 13px;\n padding: 0 10px;\n min-width: 0;\n}\n\n.dj-input.is-kw {\n flex: 1;\n}\n\n.dj-input.is-city {\n width: 84px;\n border-left: 1px solid var(--dsw-alias-border-l1);\n text-align: center;\n}\n\n.dj-input-standalone {\n height: 28px;\n padding: 0 9px;\n border-radius: 6px;\n border: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-layer-1);\n color: var(--dsw-alias-label-primary);\n font: inherit;\n font-size: 12px;\n width: 120px;\n outline: none;\n}\n\n.dj-input-standalone:focus {\n border-color: var(--dsw-alias-brand-primary);\n}\n\n.dj-platforms {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n}\n\n.dj-chip {\n height: 26px;\n padding: 0 9px;\n border-radius: 6px;\n border: 1px solid var(--dsw-alias-border-l1);\n background: transparent;\n color: var(--dsw-alias-label-secondary);\n font: inherit;\n font-size: 11.5px;\n cursor: pointer;\n transition: all 120ms ease;\n}\n\n.dj-chip:hover {\n color: var(--dsw-alias-label-primary);\n border-color: var(--dsw-alias-border-l2);\n}\n\n.dj-chip.is-on {\n background: var(--dsw-alias-bg-layer-2);\n color: var(--dsw-alias-label-primary);\n border-color: var(--dsw-alias-border-l2);\n font-weight: 500;\n}\n\n/* \u2500\u2500 Coverage strip \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.dj-coverage {\n flex: none;\n display: flex;\n align-items: center;\n gap: 8px;\n flex-wrap: wrap;\n padding: 6px 16px;\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-layer-1);\n font-size: 12px;\n}\n\n.dj-cov-tag {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 2px 8px;\n border-radius: 999px;\n border: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-base);\n color: var(--dsw-alias-label-secondary);\n font-size: 11.5px;\n}\n\n.dj-cov-action {\n border: 0;\n background: transparent;\n color: var(--dsw-alias-brand-primary);\n font: inherit;\n font-size: 11px;\n font-weight: 500;\n cursor: pointer;\n padding: 0 2px;\n text-decoration: underline;\n}\n\n/* \u2500\u2500 Banner / Toast \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.dj-banner {\n flex: none;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 10px;\n padding: 7px 16px;\n font-size: 12px;\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-layer-2);\n color: var(--dsw-alias-label-primary);\n}\n\n.dj-banner.is-err {\n color: var(--dsw-alias-state-error-primary, #dc2626);\n}\n\n/* \u2500\u2500 Master-Detail split workspace \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.dj-split {\n flex: 1;\n min-height: 0;\n display: flex;\n}\n\n.dj-list-pane {\n width: 360px;\n min-width: 260px;\n max-width: 44%;\n flex: 0 0 auto;\n border-right: 1px solid var(--dsw-alias-border-l1);\n overflow-y: auto;\n background: var(--dsw-alias-bg-base);\n}\n\n.dj-job-row {\n padding: 11px 14px;\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n border-left: 2px solid transparent;\n cursor: pointer;\n transition: background 100ms ease;\n}\n\n.dj-job-row:hover {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n.dj-job-row.is-selected {\n background: var(--dsw-alias-bg-layer-1);\n border-left-color: var(--dsw-alias-brand-primary);\n}\n\n.dj-job-head {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 8px;\n margin-bottom: 4px;\n}\n\n.dj-job-title {\n font-size: 13px;\n font-weight: 600;\n color: var(--dsw-alias-label-primary);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.dj-job-salary {\n flex: none;\n font-size: 12.5px;\n font-weight: 600;\n font-variant-numeric: tabular-nums;\n color: var(--dsw-alias-state-warn-primary, #d97706);\n}\n\n.dj-job-sub {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 11.5px;\n color: var(--dsw-alias-label-secondary);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.dj-source-badge {\n flex: none;\n padding: 0 5px;\n border-radius: 4px;\n background: var(--dsw-alias-bg-layer-2);\n color: var(--dsw-alias-label-secondary);\n font-size: 10.5px;\n line-height: 18px;\n}\n\n/* \u2500\u2500 Detail pane \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.dj-detail-pane {\n flex: 1;\n min-width: 0;\n overflow-y: auto;\n padding: 20px 24px 32px;\n background: var(--dsw-alias-bg-base);\n}\n\n.dj-detail-head {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 16px;\n padding-bottom: 14px;\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n}\n\n.dj-detail-title {\n margin: 0 0 6px;\n font-size: 17px;\n font-weight: 650;\n letter-spacing: -0.01em;\n}\n\n.dj-detail-meta {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 10px;\n font-size: 12.5px;\n color: var(--dsw-alias-label-secondary);\n}\n\n.dj-detail-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n flex: none;\n}\n\n.dj-jd-body {\n margin-top: 16px;\n white-space: pre-wrap;\n line-height: 1.65;\n font-size: 13px;\n color: var(--dsw-alias-label-primary);\n}\n\n/* \u2500\u2500 Single-column views (Watch / Applications) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.dj-scroll-pane {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n padding: 16px 20px 28px;\n}\n\n.dj-section-bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 10px;\n flex-wrap: wrap;\n margin-bottom: 12px;\n}\n\n.dj-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 12.5px;\n}\n\n.dj-table th {\n text-align: left;\n padding: 8px 10px;\n font-size: 11.5px;\n font-weight: 500;\n color: var(--dsw-alias-label-secondary);\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n}\n\n.dj-table td {\n padding: 10px 10px;\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n vertical-align: middle;\n}\n\n.dj-table tr:hover td {\n background: var(--dsw-alias-interactive-bg-hover);\n}\n\n/* \u2500\u2500 Empty state \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.dj-empty {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding: 40px 24px;\n text-align: center;\n color: var(--dsw-alias-label-secondary);\n}\n\n.dj-empty-title {\n font-size: 14px;\n font-weight: 600;\n color: var(--dsw-alias-label-primary);\n}\n\n.dj-empty-sub {\n font-size: 12.5px;\n max-width: 380px;\n line-height: 1.55;\n}\n\n.dj-quick-chips {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: 6px;\n margin-top: 4px;\n}\n\n/* \u2500\u2500 Browser / Login Modal \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.dj-modal-mask {\n position: fixed;\n inset: 0;\n z-index: 9999;\n background: rgba(0, 0, 0, 0.42);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 20px;\n}\n\n.dj-modal {\n width: min(480px, 100%);\n border-radius: 12px;\n border: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-base);\n color: var(--dsw-alias-label-primary);\n box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);\n overflow: hidden;\n}\n\n.dj-modal-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n border-bottom: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-layer-1);\n font-weight: 600;\n font-size: 13.5px;\n}\n\n.dj-modal-body {\n padding: 14px 16px 16px;\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n\n.dj-platform-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 10px;\n padding: 8px 10px;\n border-radius: 8px;\n border: 1px solid var(--dsw-alias-border-l1);\n background: var(--dsw-alias-bg-layer-1);\n}\n";
48
+
49
+ // src/client/app.tsx
50
+ var React2 = __toESM(require("react"), 1);
51
+
52
+ // src/client/brand-mark.tsx
53
+ var React = __toESM(require("react"), 1);
54
+ function JobsMark({ size = 18 }) {
55
+ return /* @__PURE__ */ React.createElement(
56
+ "svg",
57
+ {
58
+ width: size,
59
+ height: size,
60
+ viewBox: "0 0 24 24",
61
+ fill: "none",
62
+ stroke: "currentColor",
63
+ strokeWidth: "1.75",
64
+ strokeLinecap: "round",
65
+ strokeLinejoin: "round",
66
+ "aria-hidden": "true"
67
+ },
68
+ /* @__PURE__ */ React.createElement("circle", { cx: "12", cy: "12", r: "8.5" }),
69
+ /* @__PURE__ */ React.createElement("polygon", { points: "15.8 8.2 13.4 13.4 8.2 15.8 10.6 10.6 15.8 8.2", fill: "currentColor", stroke: "none" }),
70
+ /* @__PURE__ */ React.createElement("circle", { cx: "12", cy: "12", r: "1.1", fill: "var(--dsw-alias-bg-base, #ffffff)", stroke: "none" })
71
+ );
72
+ }
73
+ function PanelEntry(props) {
74
+ return /* @__PURE__ */ React.createElement("span", { className: "dj-entrymark" }, /* @__PURE__ */ React.createElement(JobsMark, { size: props?.size ?? 18 }));
75
+ }
76
+
77
+ // src/client/app.tsx
78
+ var PLATFORMS = [
79
+ { id: "zhipin", short: "BOSS", label: "BOSS \u76F4\u8058" },
80
+ { id: "liepin", short: "\u730E\u8058", label: "\u730E\u8058" },
81
+ { id: "51job", short: "51job", label: "\u524D\u7A0B\u65E0\u5FE7" },
82
+ { id: "zhaopin", short: "\u667A\u8054", label: "\u667A\u8054\u62DB\u8058" }
83
+ ];
84
+ var QUICK_SEARCHES = [
85
+ { keyword: "FDE", city: "\u5317\u4EAC" },
86
+ { keyword: "AI Agent \u5DE5\u7A0B\u5E08", city: "\u4E0A\u6D77" },
87
+ { keyword: "\u524D\u7AEF\u67B6\u6784\u5E08", city: "\u676D\u5DDE" },
88
+ { keyword: "\u4EA7\u54C1\u7ECF\u7406 AI", city: "\u6DF1\u5733" }
89
+ ];
90
+ function platformShort(id) {
91
+ return PLATFORMS.find((p) => p.id === id)?.short ?? id;
92
+ }
93
+ function sourceStatusInfo(src) {
94
+ const st = String(src?.status ?? "unknown");
95
+ if (st === "ok") {
96
+ const tag = src?.coverage === "rendered_dom" ? "DOM " : "";
97
+ return { text: `${tag}${src.count ?? 0}`, tone: "ok" };
98
+ }
99
+ if (st === "empty") return { text: "0", tone: "ok" };
100
+ if (st === "login_required") return { text: "\u9700\u767B\u5F55", tone: "err", actionKind: "login" };
101
+ if (st === "access_restricted") return { text: "\u9700\u9A8C\u8BC1", tone: "warn", actionKind: "verify" };
102
+ if (st === "capture_timeout" || st === "capture_failed" || st === "parse_empty") {
103
+ return { text: st === "capture_timeout" ? "\u6293\u5305\u8D85\u65F6" : "\u672A\u6355\u83B7", tone: "warn", actionKind: "retry" };
104
+ }
105
+ if (st === "rate_limited") return { text: "\u9891\u63A7", tone: "warn", actionKind: "retry" };
106
+ return { text: st, tone: "warn", actionKind: "retry" };
107
+ }
108
+ function JobsApp({ callRpc }) {
109
+ const [tab, setTab] = React2.useState("search");
110
+ const [keyword, setKeyword] = React2.useState("");
111
+ const [city, setCity] = React2.useState("\u5317\u4EAC");
112
+ const [salary, setSalary] = React2.useState("");
113
+ const [workYear, setWorkYear] = React2.useState("");
114
+ const [showFilters, setShowFilters] = React2.useState(false);
115
+ const [selectedPlatforms, setSelectedPlatforms] = React2.useState(["zhipin", "liepin", "51job", "zhaopin"]);
116
+ const [loading, setLoading] = React2.useState(false);
117
+ const [detailLoading, setDetailLoading] = React2.useState(false);
118
+ const [error, setError] = React2.useState(null);
119
+ const [notice, setNotice] = React2.useState(null);
120
+ const [searchRes, setSearchRes] = React2.useState(null);
121
+ const [selectedUrl, setSelectedUrl] = React2.useState(null);
122
+ const [detailCache, setDetailCache] = React2.useState({});
123
+ const [watchRes, setWatchRes] = React2.useState(null);
124
+ const [appPlatform, setAppPlatform] = React2.useState("zhipin");
125
+ const [appsRes, setAppsRes] = React2.useState(null);
126
+ const [profileRes, setProfileRes] = React2.useState(null);
127
+ const [showBrowserModal, setShowBrowserModal] = React2.useState(false);
128
+ const refreshProfile = React2.useCallback(async () => {
129
+ try {
130
+ const res = await callRpc("profileStatus", {});
131
+ setProfileRes(res);
132
+ } catch {
133
+ }
134
+ }, [callRpc]);
135
+ React2.useEffect(() => {
136
+ void refreshProfile();
137
+ }, [refreshProfile]);
138
+ const runAction = async (fn) => {
139
+ setLoading(true);
140
+ setError(null);
141
+ setNotice(null);
142
+ try {
143
+ await fn();
144
+ } catch (err) {
145
+ setError(String(err?.message ?? err));
146
+ } finally {
147
+ setLoading(false);
148
+ }
149
+ };
150
+ const executeSearch = (override) => runAction(async () => {
151
+ const kw = (override?.keyword ?? keyword).trim();
152
+ const c = (override?.city ?? city).trim();
153
+ const plats = override?.platforms ?? selectedPlatforms;
154
+ if (!kw) return;
155
+ if (override?.keyword !== void 0) setKeyword(override.keyword);
156
+ if (override?.city !== void 0) setCity(override.city);
157
+ const res = await callRpc("search", {
158
+ keyword: kw,
159
+ city: c || void 0,
160
+ platforms: plats,
161
+ ...salary.trim() ? { salary: salary.trim() } : {},
162
+ ...workYear.trim() ? { workYear: workYear.trim() } : {}
163
+ });
164
+ setSearchRes((prev) => {
165
+ if (override?.platforms && prev?.jobs) {
166
+ const replaced = new Set(override.platforms);
167
+ const keptJobs = (prev.jobs ?? []).filter((j) => !replaced.has(j.source));
168
+ const keptSources = (prev.sources ?? []).filter((s) => !replaced.has(s.source));
169
+ return {
170
+ ...res,
171
+ jobs: [...res.jobs ?? [], ...keptJobs],
172
+ sources: [...keptSources, ...res.sources ?? []]
173
+ };
174
+ }
175
+ return res;
176
+ });
177
+ if (res?.jobs?.length) setSelectedUrl(res.jobs[0].jobDetail);
178
+ void refreshProfile();
179
+ });
180
+ const handleReadDetail = async (url) => {
181
+ setDetailLoading(true);
182
+ setError(null);
183
+ try {
184
+ const res = await callRpc("detail", { url });
185
+ setDetailCache((prev) => ({ ...prev, [url]: res }));
186
+ } catch (err) {
187
+ setError(String(err?.message ?? err));
188
+ } finally {
189
+ setDetailLoading(false);
190
+ }
191
+ };
192
+ const handlePrepareApply = (job) => runAction(async () => {
193
+ const res = await callRpc("prepareApply", {
194
+ platform: job.source,
195
+ url: job.jobDetail,
196
+ title: job.title,
197
+ company: job.company
198
+ });
199
+ setNotice(res?.application?.status === "already_tracked" ? "\u8BE5\u5C97\u4F4D\u5DF2\u5728\u6295\u9012\u5217\u8868\u4E2D" : `\u5DF2\u52A0\u5165\u5F85\u6295\uFF1A${job.title}`);
200
+ });
201
+ const handleWatchCheck = () => runAction(async () => {
202
+ const kw = keyword.trim() || "FDE";
203
+ if (!keyword.trim()) setKeyword(kw);
204
+ const res = await callRpc("watchCheck", {
205
+ keyword: kw,
206
+ city: city.trim() || void 0,
207
+ platforms: selectedPlatforms
208
+ });
209
+ setWatchRes(res);
210
+ });
211
+ const handleLoadApps = (platform = appPlatform) => runAction(async () => {
212
+ setAppPlatform(platform);
213
+ const res = await callRpc("applications", { platform });
214
+ setAppsRes(res);
215
+ });
216
+ const handleLoginPlatform = (platform) => runAction(async () => {
217
+ const res = await callRpc("login", { platform, waitSeconds: 60 });
218
+ setNotice(`${platformShort(platform)}\uFF1A${res?.detail || res?.status || "\u5DF2\u5B8C\u6210"}`);
219
+ await refreshProfile();
220
+ });
221
+ const handleOpenBrowser = (platform, url) => runAction(async () => {
222
+ const res = await callRpc("openBrowser", { ...platform ? { platform } : {}, ...url ? { url } : {} });
223
+ setNotice(res?.detail || res?.status || "\u5DF2\u6253\u5F00\u6301\u4E45\u5316\u6D4F\u89C8\u5668");
224
+ await refreshProfile();
225
+ });
226
+ React2.useEffect(() => {
227
+ if (tab === "applications" && !appsRes) void handleLoadApps(appPlatform);
228
+ }, [tab]);
229
+ const jobs = searchRes?.jobs ?? [];
230
+ const selectedJob = jobs.find((j) => j.jobDetail === selectedUrl) ?? jobs[0] ?? null;
231
+ const activeDetail = selectedJob ? detailCache[selectedJob.jobDetail] : null;
232
+ const browserConnected = Boolean(profileRes?.managedChromeRunning ?? searchRes?.browserConnected);
233
+ const togglePlatform = (p) => {
234
+ setSelectedPlatforms(
235
+ (prev) => prev.includes(p) ? prev.length > 1 ? prev.filter((x) => x !== p) : prev : [...prev, p]
236
+ );
237
+ };
238
+ return /* @__PURE__ */ React2.createElement("div", { className: "dsh-jobs-root" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-topbar" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-brand" }, /* @__PURE__ */ React2.createElement("span", { className: "dj-brand-icon" }, /* @__PURE__ */ React2.createElement(JobsMark, { size: 15 })), /* @__PURE__ */ React2.createElement("span", null, "\u627E\u5DE5\u4F5C")), /* @__PURE__ */ React2.createElement("div", { className: "dj-seg", role: "tablist" }, /* @__PURE__ */ React2.createElement("button", { className: `dj-seg-btn ${tab === "search" ? "is-active" : ""}`, onClick: () => setTab("search") }, "\u641C\u804C\u4F4D"), /* @__PURE__ */ React2.createElement("button", { className: `dj-seg-btn ${tab === "watch" ? "is-active" : ""}`, onClick: () => setTab("watch") }, "\u65B0\u5C97\u5DE1\u68C0"), /* @__PURE__ */ React2.createElement("button", { className: `dj-seg-btn ${tab === "applications" ? "is-active" : ""}`, onClick: () => setTab("applications") }, "\u6295\u9012\u8FFD\u8E2A")), /* @__PURE__ */ React2.createElement("div", { className: "dj-spacer" }), /* @__PURE__ */ React2.createElement("button", { className: "dj-status-btn", onClick: () => {
239
+ setShowBrowserModal(true);
240
+ void refreshProfile();
241
+ }, title: "\u67E5\u770B\u672C\u673A\u6D4F\u89C8\u5668\u8FDE\u63A5\u4E0E\u56DB\u7AD9\u767B\u5F55\u72B6\u6001" }, /* @__PURE__ */ React2.createElement("span", { className: `dj-dot ${browserConnected ? "is-ok" : "is-warn"}` }), /* @__PURE__ */ React2.createElement("span", null, browserConnected ? "\u6D4F\u89C8\u5668\u5DF2\u8FDE\u63A5" : "\u672A\u8FDE\u6D4F\u89C8\u5668"))), error && /* @__PURE__ */ React2.createElement("div", { className: "dj-banner is-err" }, /* @__PURE__ */ React2.createElement("span", null, error), /* @__PURE__ */ React2.createElement("button", { className: "dj-btn is-sm is-ghost", onClick: () => setError(null) }, "\u5173\u95ED")), notice && /* @__PURE__ */ React2.createElement("div", { className: "dj-banner" }, /* @__PURE__ */ React2.createElement("span", null, notice), /* @__PURE__ */ React2.createElement("button", { className: "dj-btn is-sm is-ghost", onClick: () => setNotice(null) }, "\u5173\u95ED")), tab === "search" && /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement("div", { className: "dj-searchbar" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-search-row" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-input-group" }, /* @__PURE__ */ React2.createElement(
242
+ "input",
243
+ {
244
+ className: "dj-input is-kw",
245
+ value: keyword,
246
+ onChange: (e) => setKeyword(e.target.value),
247
+ onKeyDown: (e) => {
248
+ if (e.key === "Enter" && keyword.trim() && !loading) void executeSearch();
249
+ },
250
+ placeholder: "\u8F93\u5165\u804C\u4F4D\u5173\u952E\u8BCD\uFF0C\u56DE\u8F66\u641C\u7D22\u2026"
251
+ }
252
+ ), /* @__PURE__ */ React2.createElement(
253
+ "input",
254
+ {
255
+ className: "dj-input is-city",
256
+ value: city,
257
+ onChange: (e) => setCity(e.target.value),
258
+ onKeyDown: (e) => {
259
+ if (e.key === "Enter" && keyword.trim() && !loading) void executeSearch();
260
+ },
261
+ placeholder: "\u57CE\u5E02"
262
+ }
263
+ )), /* @__PURE__ */ React2.createElement("div", { className: "dj-platforms" }, PLATFORMS.map((p) => /* @__PURE__ */ React2.createElement(
264
+ "button",
265
+ {
266
+ key: p.id,
267
+ type: "button",
268
+ className: `dj-chip ${selectedPlatforms.includes(p.id) ? "is-on" : ""}`,
269
+ onClick: () => togglePlatform(p.id)
270
+ },
271
+ p.short
272
+ ))), /* @__PURE__ */ React2.createElement("button", { className: "dj-btn is-ghost", onClick: () => setShowFilters((v) => !v) }, showFilters ? "\u6536\u8D77\u7B5B\u9009" : "\u7B5B\u9009"), /* @__PURE__ */ React2.createElement("button", { className: "dj-btn is-primary", disabled: loading || !keyword.trim(), onClick: () => void executeSearch() }, loading ? "\u68C0\u7D22\u4E2D\u2026" : "\u641C\u7D22")), showFilters && /* @__PURE__ */ React2.createElement("div", { className: "dj-search-row" }, /* @__PURE__ */ React2.createElement("input", { className: "dj-input-standalone", value: salary, onChange: (e) => setSalary(e.target.value), placeholder: "\u85AA\u8D44 \u5982 30-50K" }), /* @__PURE__ */ React2.createElement("input", { className: "dj-input-standalone", value: workYear, onChange: (e) => setWorkYear(e.target.value), placeholder: "\u7ECF\u9A8C \u5982 5-10\u5E74" }))), searchRes && /* @__PURE__ */ React2.createElement("div", { className: "dj-coverage" }, /* @__PURE__ */ React2.createElement("span", { style: { fontWeight: 600 } }, searchRes.coverageSummary?.status === "full" ? "\u5B8C\u6574\u8986\u76D6" : searchRes.coverageSummary?.status === "partial" ? "\u90E8\u5206\u8986\u76D6" : "\u672A\u8986\u76D6", " \xB7 ", jobs.length, " \u6761"), (searchRes.sources ?? []).map((src) => {
273
+ const info = sourceStatusInfo(src);
274
+ const diagTip = src.diagnostics ? `\u8017\u65F6 ${src.diagnostics.waitMs ?? 0}ms \xB7 \u5339\u914D ${src.diagnostics.matchedRequestCount ?? 0} \xB7 ${src.diagnostics.reason ?? ""}` : src.action;
275
+ return /* @__PURE__ */ React2.createElement("span", { key: src.source, className: "dj-cov-tag", title: diagTip }, /* @__PURE__ */ React2.createElement("span", { className: `dj-dot is-${info.tone}` }), /* @__PURE__ */ React2.createElement("span", null, platformShort(src.source), " ", info.text), info.actionKind === "login" && /* @__PURE__ */ React2.createElement("button", { className: "dj-cov-action", onClick: () => void handleLoginPlatform(src.source) }, "\u53BB\u767B\u5F55"), info.actionKind === "verify" && /* @__PURE__ */ React2.createElement("button", { className: "dj-cov-action", onClick: () => void handleOpenBrowser(src.source, src.openUrl) }, "\u53BB\u9A8C\u8BC1"), info.actionKind === "retry" && /* @__PURE__ */ React2.createElement("button", { className: "dj-cov-action", onClick: () => void executeSearch({ platforms: [src.source] }) }, "\u91CD\u8BD5"));
276
+ })), jobs.length === 0 ? /* @__PURE__ */ React2.createElement("div", { className: "dj-empty" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-brand-icon", style: { width: 38, height: 38, borderRadius: 10 } }, /* @__PURE__ */ React2.createElement(JobsMark, { size: 22 })), /* @__PURE__ */ React2.createElement("div", { className: "dj-empty-title" }, searchRes ? "\u672C\u6B21\u672A\u627E\u5230\u5339\u914D\u804C\u4F4D" : "\u5168\u7F51\u5B9E\u65F6\u641C\u5C97"), /* @__PURE__ */ React2.createElement("div", { className: "dj-empty-sub" }, searchRes ? "\u53EF\u68C0\u67E5\u4E0A\u65B9\u5404\u5E73\u53F0\u8986\u76D6\u72B6\u6001\uFF0C\u70B9\u51FB\u300C\u91CD\u8BD5\u300D\u6216\u300C\u53BB\u767B\u5F55\u300D\u8865\u9F50\u7F3A\u5931\u6765\u6E90\u3002" : "\u590D\u7528\u672C\u673A\u771F\u5B9E\u6D4F\u89C8\u5668\u88F8 CDP \u76F4\u8FDE BOSS\u3001\u730E\u8058\u300151job\u3001\u667A\u8054\uFF0C\u652F\u6301\u5DF2\u6E32\u67D3 DOM \u964D\u7EA7\u4E0E\u6295\u9012\u8FFD\u8E2A\u3002"), !searchRes && /* @__PURE__ */ React2.createElement("div", { className: "dj-quick-chips" }, QUICK_SEARCHES.map((q) => /* @__PURE__ */ React2.createElement("button", { key: q.keyword, className: "dj-chip", onClick: () => void executeSearch(q) }, q.city, " \xB7 ", q.keyword)))) : /* @__PURE__ */ React2.createElement("div", { className: "dj-split" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-list-pane" }, jobs.map((job) => {
277
+ const isSel = selectedJob?.jobDetail === job.jobDetail;
278
+ return /* @__PURE__ */ React2.createElement(
279
+ "div",
280
+ {
281
+ key: job.jobDetail,
282
+ className: `dj-job-row ${isSel ? "is-selected" : ""}`,
283
+ onClick: () => setSelectedUrl(job.jobDetail)
284
+ },
285
+ /* @__PURE__ */ React2.createElement("div", { className: "dj-job-head" }, /* @__PURE__ */ React2.createElement("span", { className: "dj-job-title" }, job.title), job.salary && /* @__PURE__ */ React2.createElement("span", { className: "dj-job-salary" }, job.salary)),
286
+ /* @__PURE__ */ React2.createElement("div", { className: "dj-job-sub" }, /* @__PURE__ */ React2.createElement("span", { className: "dj-source-badge" }, platformShort(job.source)), job.company && /* @__PURE__ */ React2.createElement("span", null, job.company), job.address && /* @__PURE__ */ React2.createElement("span", null, "\xB7 ", job.address))
287
+ );
288
+ })), /* @__PURE__ */ React2.createElement("div", { className: "dj-detail-pane" }, selectedJob && /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement("div", { className: "dj-detail-head" }, /* @__PURE__ */ React2.createElement("div", null, /* @__PURE__ */ React2.createElement("h2", { className: "dj-detail-title" }, selectedJob.title), /* @__PURE__ */ React2.createElement("div", { className: "dj-detail-meta" }, /* @__PURE__ */ React2.createElement("span", { className: "dj-source-badge" }, platformShort(selectedJob.source)), selectedJob.salary && /* @__PURE__ */ React2.createElement("span", { className: "dj-job-salary" }, selectedJob.salary), selectedJob.company && /* @__PURE__ */ React2.createElement("span", null, selectedJob.company), selectedJob.address && /* @__PURE__ */ React2.createElement("span", null, selectedJob.address))), /* @__PURE__ */ React2.createElement("div", { className: "dj-detail-actions" }, /* @__PURE__ */ React2.createElement("button", { className: "dj-btn is-primary", disabled: detailLoading, onClick: () => void handleReadDetail(selectedJob.jobDetail) }, detailLoading ? "\u8BFB\u53D6\u4E2D\u2026" : activeDetail ? "\u5237\u65B0 JD" : "\u8BFB\u53D6\u5B8C\u6574 JD"), /* @__PURE__ */ React2.createElement("button", { className: "dj-btn", disabled: loading, onClick: () => void handlePrepareApply(selectedJob) }, "\u52A0\u5165\u5F85\u6295"), /* @__PURE__ */ React2.createElement("a", { className: "dj-btn", href: selectedJob.jobDetail, target: "_blank", rel: "noreferrer" }, "\u539F\u7AD9\u6253\u5F00 \u2197"))), activeDetail ? /* @__PURE__ */ React2.createElement("div", { className: "dj-jd-body" }, activeDetail.jobDescription || activeDetail.detail || JSON.stringify(activeDetail, null, 2)) : /* @__PURE__ */ React2.createElement("div", { className: "dj-empty", style: { paddingTop: 64 } }, /* @__PURE__ */ React2.createElement("div", { className: "dj-empty-sub" }, "\u70B9\u51FB\u53F3\u4E0A\u89D2\u300C\u8BFB\u53D6\u5B8C\u6574 JD\u300D\u901A\u8FC7\u771F\u5B9E\u6D4F\u89C8\u5668\u62C9\u53D6\u539F\u7AD9\u5C97\u4F4D\u8981\u6C42\uFF0C\u6216\u76F4\u63A5\u70B9\u51FB\u300C\u539F\u7AD9\u6253\u5F00\u300D\u67E5\u770B\u3002")))))), tab === "watch" && /* @__PURE__ */ React2.createElement("div", { className: "dj-scroll-pane" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-section-bar" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-input-group", style: { maxWidth: 360 } }, /* @__PURE__ */ React2.createElement("input", { className: "dj-input is-kw", value: keyword, onChange: (e) => setKeyword(e.target.value), placeholder: "\u5DE1\u68C0\u5173\u952E\u8BCD\uFF0C\u5982 FDE" }), /* @__PURE__ */ React2.createElement("input", { className: "dj-input is-city", value: city, onChange: (e) => setCity(e.target.value), placeholder: "\u57CE\u5E02" })), /* @__PURE__ */ React2.createElement("button", { className: "dj-btn is-primary", disabled: loading, onClick: () => void handleWatchCheck() }, loading ? "\u5DE1\u68C0\u4E2D\u2026" : "\u7ACB\u5373\u5DE1\u68C0\u65B0\u5C97\u4F4D")), watchRes ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement("div", { className: "dj-coverage", style: { borderRadius: 8, border: "1px solid var(--dsw-alias-border-l1)", marginBottom: 14 } }, /* @__PURE__ */ React2.createElement("span", { style: { fontWeight: 600 } }, watchRes.baseline ? "\u9996\u6B21\u57FA\u7EBF\u5DF2\u5EFA\u7ACB" : `\u65B0\u589E ${watchRes.newCount ?? 0} \u6761`, " \xB7 ", watchRes.coverageSummary?.status === "full" ? "\u5B8C\u6574\u8986\u76D6" : watchRes.coverageSummary?.status === "partial" ? "\u90E8\u5206\u8986\u76D6" : "\u672A\u8986\u76D6"), (watchRes.sources ?? []).map((src) => {
289
+ const info = sourceStatusInfo(src);
290
+ return /* @__PURE__ */ React2.createElement("span", { key: src.source, className: "dj-cov-tag" }, /* @__PURE__ */ React2.createElement("span", { className: `dj-dot is-${info.tone}` }), /* @__PURE__ */ React2.createElement("span", null, platformShort(src.source), " ", info.text));
291
+ })), (watchRes.newJobs ?? []).length > 0 ? /* @__PURE__ */ React2.createElement("table", { className: "dj-table" }, /* @__PURE__ */ React2.createElement("thead", null, /* @__PURE__ */ React2.createElement("tr", null, /* @__PURE__ */ React2.createElement("th", null, "\u804C\u4F4D"), /* @__PURE__ */ React2.createElement("th", null, "\u516C\u53F8"), /* @__PURE__ */ React2.createElement("th", null, "\u85AA\u8D44"), /* @__PURE__ */ React2.createElement("th", null, "\u6765\u6E90"), /* @__PURE__ */ React2.createElement("th", { style: { textAlign: "right" } }, "\u64CD\u4F5C"))), /* @__PURE__ */ React2.createElement("tbody", null, (watchRes.newJobs ?? []).map((job) => /* @__PURE__ */ React2.createElement("tr", { key: job.jobDetail }, /* @__PURE__ */ React2.createElement("td", { style: { fontWeight: 600 } }, job.title), /* @__PURE__ */ React2.createElement("td", null, job.company || "\u2014"), /* @__PURE__ */ React2.createElement("td", { className: "dj-job-salary" }, job.salary || "\u2014"), /* @__PURE__ */ React2.createElement("td", null, /* @__PURE__ */ React2.createElement("span", { className: "dj-source-badge" }, platformShort(job.source))), /* @__PURE__ */ React2.createElement("td", { style: { textAlign: "right" } }, /* @__PURE__ */ React2.createElement("button", { className: "dj-btn is-sm", style: { marginRight: 6 }, onClick: () => void handlePrepareApply(job) }, "\u5F85\u6295"), /* @__PURE__ */ React2.createElement("a", { className: "dj-btn is-sm", href: job.jobDetail, target: "_blank", rel: "noreferrer" }, "\u539F\u7AD9 \u2197")))))) : /* @__PURE__ */ React2.createElement("div", { className: "dj-empty" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-empty-sub" }, watchRes.coverageSummary?.status === "partial" ? `\u672C\u8F6E\u4EC5\u90E8\u5206\u8986\u76D6\uFF08\u672A\u8986\u76D6\uFF1A${(watchRes.coverageSummary?.uncoveredPlatforms ?? []).join(", ")}\uFF09\uFF0C\u5DF2\u8986\u76D6\u5E73\u53F0\u6682\u65E0\u65B0\u589E\u3002` : "\u5DF2\u8986\u76D6\u5E73\u53F0\u672C\u8F6E\u6682\u65E0\u65B0\u589E\u5C97\u4F4D\u3002"))) : /* @__PURE__ */ React2.createElement("div", { className: "dj-empty" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-empty-title" }, "\u65B0\u5C97\u589E\u91CF\u5DE1\u68C0"), /* @__PURE__ */ React2.createElement("div", { className: "dj-empty-sub" }, "\u9996\u6B21\u8FD0\u884C\u5EFA\u7ACB\u57FA\u7EBF\uFF0C\u4E4B\u540E\u4EC5\u63D0\u9192\u65B0\u589E\u5C97\u4F4D\uFF0C\u5E76\u4E25\u683C\u6807\u6CE8\u300C\u5B8C\u6574\u8986\u76D6 / \u90E8\u5206\u8986\u76D6\u300D\uFF0C\u7EDD\u4E0D\u5C06\u6293\u5305\u5931\u8D25\u8BEF\u62A5\u4E3A\u65E0\u65B0\u589E\u3002"))), tab === "applications" && /* @__PURE__ */ React2.createElement("div", { className: "dj-scroll-pane" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-section-bar" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-platforms" }, PLATFORMS.map((p) => /* @__PURE__ */ React2.createElement("button", { key: p.id, className: `dj-chip ${appPlatform === p.id ? "is-on" : ""}`, onClick: () => void handleLoadApps(p.id) }, p.label))), /* @__PURE__ */ React2.createElement("button", { className: "dj-btn is-sm", disabled: loading, onClick: () => void handleLoadApps(appPlatform) }, "\u5237\u65B0")), (appsRes?.applications ?? []).length === 0 ? /* @__PURE__ */ React2.createElement("div", { className: "dj-empty" }, /* @__PURE__ */ React2.createElement("div", { className: "dj-empty-title" }, "\u6682\u65E0\u672C\u5730\u6295\u9012\u8BB0\u5F55"), /* @__PURE__ */ React2.createElement("div", { className: "dj-empty-sub" }, "\u5728\u300C\u641C\u804C\u4F4D\u300D\u9009\u4E2D\u610F\u5411\u5C97\u4F4D\u540E\u70B9\u51FB\u300C\u52A0\u5165\u5F85\u6295\u300D\uFF0C\u5373\u53EF\u5728\u6B64\u7EDF\u4E00\u8FFD\u8E2A\u3002")) : /* @__PURE__ */ React2.createElement("table", { className: "dj-table" }, /* @__PURE__ */ React2.createElement("thead", null, /* @__PURE__ */ React2.createElement("tr", null, /* @__PURE__ */ React2.createElement("th", null, "\u804C\u4F4D"), /* @__PURE__ */ React2.createElement("th", null, "\u516C\u53F8"), /* @__PURE__ */ React2.createElement("th", null, "\u72B6\u6001"), /* @__PURE__ */ React2.createElement("th", null, "\u66F4\u65B0\u65F6\u95F4"), /* @__PURE__ */ React2.createElement("th", { style: { textAlign: "right" } }, "\u539F\u7AD9"))), /* @__PURE__ */ React2.createElement("tbody", null, (appsRes.applications ?? []).map((app) => /* @__PURE__ */ React2.createElement("tr", { key: app.url }, /* @__PURE__ */ React2.createElement("td", { style: { fontWeight: 600 } }, app.title || app.url), /* @__PURE__ */ React2.createElement("td", null, app.company || "\u2014"), /* @__PURE__ */ React2.createElement("td", null, /* @__PURE__ */ React2.createElement("span", { className: "dj-source-badge" }, app.status)), /* @__PURE__ */ React2.createElement("td", { style: { color: "var(--dsw-alias-label-secondary)" } }, app.updatedAt ? String(app.updatedAt).slice(0, 16).replace("T", " ") : "\u2014"), /* @__PURE__ */ React2.createElement("td", { style: { textAlign: "right" } }, /* @__PURE__ */ React2.createElement("a", { className: "dj-btn is-sm", href: app.url, target: "_blank", rel: "noreferrer" }, "\u6253\u5F00 \u2197"))))))), showBrowserModal && /* @__PURE__ */ React2.createElement("div", { className: "dj-modal-mask", onClick: () => setShowBrowserModal(false) }, /* @__PURE__ */ React2.createElement("div", { className: "dj-modal", onClick: (e) => e.stopPropagation() }, /* @__PURE__ */ React2.createElement("div", { className: "dj-modal-head" }, /* @__PURE__ */ React2.createElement("span", null, "\u6D4F\u89C8\u5668\u4E0E\u56DB\u7AD9\u767B\u5F55"), /* @__PURE__ */ React2.createElement("button", { className: "dj-btn is-sm is-ghost", onClick: () => setShowBrowserModal(false) }, "\u2715")), /* @__PURE__ */ React2.createElement("div", { className: "dj-modal-body" }, /* @__PURE__ */ React2.createElement("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 8 } }, /* @__PURE__ */ React2.createElement("div", { style: { display: "flex", alignItems: "center", gap: 6 } }, /* @__PURE__ */ React2.createElement("span", { className: `dj-dot ${browserConnected ? "is-ok" : "is-warn"}` }), /* @__PURE__ */ React2.createElement("strong", null, browserConnected ? "\u5DF2\u8FDE\u63A5\u6301\u4E45\u5316\u6D4F\u89C8\u5668" : "\u5C1A\u672A\u8FDE\u63A5\u6D4F\u89C8\u5668")), /* @__PURE__ */ React2.createElement("div", { style: { display: "flex", gap: 6 } }, /* @__PURE__ */ React2.createElement("button", { className: "dj-btn is-sm is-primary", disabled: loading, onClick: () => void handleOpenBrowser() }, "\u6253\u5F00 / \u91CD\u5F00"), /* @__PURE__ */ React2.createElement("button", { className: "dj-btn is-sm", disabled: loading, onClick: () => runAction(async () => {
292
+ await callRpc("closeBrowser", {});
293
+ setNotice("\u5DF2\u4F18\u96C5\u5173\u95ED\u4E13\u7528\u6D4F\u89C8\u5668");
294
+ await refreshProfile();
295
+ }) }, "\u5173\u95ED"))), profileRes?.profileDir && /* @__PURE__ */ React2.createElement("div", { style: { fontSize: 11.5, color: "var(--dsw-alias-label-secondary)", wordBreak: "break-all" } }, "Profile\uFF1A", profileRes.profileDir, "\uFF08Cookie \u4EC5\u4E3A\u672C\u5730\u7EBF\u7D22\uFF0C\u7AD9\u70B9\u767B\u5F55\u6001\u4EE5\u9875\u9762\u6E32\u67D3\u4E3A\u51C6\uFF09"), /* @__PURE__ */ React2.createElement("div", { style: { display: "flex", flexDirection: "column", gap: 6 } }, PLATFORMS.map((p) => {
296
+ const info = (profileRes?.platforms ?? []).find((x) => x.platform === p.id);
297
+ const hasCookie = info?.sessionEvidence === "credential_present" || info?.sessionEvidence === "valid";
298
+ return /* @__PURE__ */ React2.createElement("div", { key: p.id, className: "dj-platform-row" }, /* @__PURE__ */ React2.createElement("div", { style: { display: "flex", alignItems: "center", gap: 8 } }, /* @__PURE__ */ React2.createElement("span", { className: `dj-dot ${hasCookie ? "is-ok" : "is-warn"}` }), /* @__PURE__ */ React2.createElement("span", { style: { fontWeight: 500 } }, p.label), /* @__PURE__ */ React2.createElement("span", { style: { fontSize: 11.5, color: "var(--dsw-alias-label-secondary)" } }, info?.sessionEvidence ?? "\u672A\u68C0\u6D4B")), /* @__PURE__ */ React2.createElement("button", { className: "dj-btn is-sm", disabled: loading, onClick: () => void handleLoginPlatform(p.id) }, "\u767B\u5F55 / \u76D1\u542C"));
299
+ }))))));
300
+ }
301
+
302
+ // src/client/index.tsx
303
+ var NS = "dsh-jobs";
304
+ var inject = ["connection", "slots", "locale", "theme", "layout"];
305
+ function createRpcCaller(ctx) {
306
+ return async (method, payload) => {
307
+ const conn = ctx.get("connection");
308
+ if (!conn?.rpc || typeof conn.rpc.call !== "function") {
309
+ throw new Error("\u8FDE\u63A5\u670D\u52A1\u5C1A\u672A\u5C31\u7EEA");
310
+ }
311
+ return conn.rpc.call("/api", `jobsearch/${method}`, payload ?? {});
312
+ };
313
+ }
314
+ function apply(ctx) {
315
+ const callRpc = createRpcCaller(ctx);
316
+ ctx.effect(() => {
317
+ const styleEl = document.createElement("style");
318
+ styleEl.setAttribute("data-dsh-plugin", NS);
319
+ styleEl.textContent = styles_default;
320
+ document.head.appendChild(styleEl);
321
+ return () => {
322
+ styleEl.remove();
323
+ };
324
+ }, `${NS}: styles`);
325
+ const slots = ctx.get("slots");
326
+ if (slots) {
327
+ ctx.effect(() => slots.inject("main", () => slots.register(
328
+ { name: "main", key: NS, registrant: NS },
329
+ () => React3.createElement(JobsApp, { callRpc })
330
+ )), `${NS}: main panel`);
331
+ ctx.effect(() => slots.inject("sidebar.panellist", () => slots.register(
332
+ { name: "sidebar.panellist", id: NS, order: 25, label: () => "\u627E\u5DE5\u4F5C", registrant: NS },
333
+ (props) => React3.createElement(PanelEntry, props)
334
+ )), `${NS}: panel entry`);
335
+ }
336
+ const layout = ctx.get("layout");
337
+ if (layout?.panelInfo?.subscribe && slots) {
338
+ ctx.effect(() => {
339
+ const storageKey = `${NS}.panel-selected.v1`;
340
+ let restore = false;
341
+ try {
342
+ restore = sessionStorage.getItem(storageKey) === "1";
343
+ } catch {
344
+ }
345
+ let ready = false;
346
+ const remember = () => {
347
+ if (!ready) return;
348
+ try {
349
+ sessionStorage.setItem(storageKey, layout.panelInfo.getSnapshot()?.activePanelId === NS ? "1" : "0");
350
+ } catch {
351
+ }
352
+ };
353
+ const unsubscribe = layout.panelInfo.subscribe(remember);
354
+ const frame = requestAnimationFrame(() => {
355
+ ready = true;
356
+ if (restore && layout.panelInfo.getSnapshot()?.activePanelId == null) {
357
+ try {
358
+ layout.selectPanel(NS);
359
+ } catch {
360
+ }
361
+ }
362
+ remember();
363
+ });
364
+ return () => {
365
+ cancelAnimationFrame(frame);
366
+ unsubscribe();
367
+ };
368
+ }, `${NS}: panel restore`);
369
+ }
370
+ }
371
+ return module.exports
372
+ },
373
+ })
@@ -0,0 +1,7 @@
1
+ - insert:
2
+ - id: plugin-jobs
3
+ name: dsh-jobs
4
+ config:
5
+ dataDir: '~/.mcp-jobs'
6
+ defaultCity: '北京'
7
+ defaultAccountId: 'personal'
package/icon.svg ADDED
@@ -0,0 +1,21 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
2
+ <rect width="64" height="64" rx="16" fill="url(#dj_bg)" />
3
+ <circle cx="32" cy="32" r="19" stroke="url(#dj_ring)" stroke-width="2.5" stroke-opacity="0.85" />
4
+ <path d="M32 10v5M32 49v5M10 32h5M49 32h5" stroke="#7DD3FC" stroke-width="2.2" stroke-linecap="round" stroke-opacity="0.6" />
5
+ <path d="M41.5 22.5L35.2 35.2L22.5 41.5L28.8 28.8L41.5 22.5Z" fill="url(#dj_needle)" />
6
+ <circle cx="32" cy="32" r="2.6" fill="#0B1929" />
7
+ <defs>
8
+ <linearGradient id="dj_bg" x1="0" y1="0" x2="64" y2="64" gradientUnits="userSpaceOnUse">
9
+ <stop stop-color="#0F2034" />
10
+ <stop offset="1" stop-color="#0A1522" />
11
+ </linearGradient>
12
+ <linearGradient id="dj_ring" x1="13" y1="13" x2="51" y2="51" gradientUnits="userSpaceOnUse">
13
+ <stop stop-color="#38BDF8" />
14
+ <stop offset="1" stop-color="#34D399" />
15
+ </linearGradient>
16
+ <linearGradient id="dj_needle" x1="22.5" y1="41.5" x2="41.5" y2="22.5" gradientUnits="userSpaceOnUse">
17
+ <stop stop-color="#34D399" />
18
+ <stop offset="1" stop-color="#38BDF8" />
19
+ </linearGradient>
20
+ </defs>
21
+ </svg>