rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:hestudio-community/dsh-plugin-onenote
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Read the Microsoft OneNote notebooks you choose from inside DeepSeek Harness.
Sign in once, tick the notebooks this agent may read, and everything else stays invisible. The allow-list is enforced inside the plugin before any Microsoft Graph request, so a page that tries to talk the model into reading another notebook has nothing to call.
中文文档:README.zh.md
The settings card (Settings → Plugins → OneNote) is the only place to sign in or change which notebooks are readable:
┌ OneNote ──────────────────────────────────────────────┐
│ Connected │
│ Signed in as you@example.com [ Sign out ] │
├───────────────────────────────────────────────────────┤
│ Readable notebooks [ Refresh list ] │
│ Only the notebooks you tick can be listed, searched, │
│ or read. │
│ [x] Work default │
│ [ ] Team wiki shared │
│ [ ] Journal │
│ 1 of 3 allowed [Allow none] │
│ [Save] │
└───────────────────────────────────────────────────────┘
The agent gets four read-only tools. None of them can sign in, sign out, or change the allow-list — those are user actions in the settings card.
| Tool | What it does |
|---|---|
onenote_status |
Reports the account and which notebooks are readable. |
onenote_list_pages |
Browses allowed notebooks → sections → pages. |
onenote_search |
Matches page titles first, then the opening text of recent pages. |
onenote_read_page |
Reads one page as Markdown (headings, lists, tables, links, code). |
# From the plugin manager (recommended)
dsh plugin install hestudio-community/dsh-plugin-onenote
# Or from npm
dsh plugin install dsh-plugin-onenote
Then open Settings → Plugins → OneNote and sign in.
The bundle ships a public client ID so it works out of the box. To use your own app registration instead (recommended for anything beyond personal use), create one in about two minutes — no paid subscription is needed:
DSH-OneNote.https://login.microsoftonline.com/common/oauth2/nativeclient).unauthorized_client.Notes.Read — read the user's notebooksoffline_access — keep the session alive between turnsUser.Read — name the signed-in accountIf Microsoft fails with invalid_request: The provided request must include a 'redirect_uri' input parameter:
microsoft.com/devicelogin, selecting a Passkey / security key /
Windows Hello shortcut directly without typing your username causes Microsoft's
login service to misroute the device code flow into an interactive web flow.Then point the plugin at your app by adding a patch layer of your own:
# ~/.dsh/cordis.patch.yml (applies to every profile) or the profile's cordis.patch.yml
- id: onenote
name: 'dsh-plugin-onenote'
config:
clientId: 00000000-0000-0000-0000-000000000000
tenant: common
config replaces the row's config wholesale, so restate every field you need.
| Field | Default | Meaning |
|---|---|---|
clientId |
the bundled public app | Azure application (client) ID. |
tenant |
common |
Tenant id or domain. common accepts work and personal accounts. |
maxPagesPerList |
100 |
Default page cap for onenote_list_pages. |
maxPageChars |
60000 |
Default Markdown cap for onenote_read_page. |
$DSH_HOME/onenote/ (usually ~/.dsh/onenote/), mode 0600:
| File | Contents |
|---|---|
tokens.json |
Access and refresh token. |
signin.json |
The pending device-code attempt, so a reload continues the same code. |
settings.json |
The notebook allow-list. |
Delete the directory to reset everything. Nothing is written into your workspace.
settings.json.POST /api/onenote/notebooks.Notes.Read is delegated.GET /me/onenote/pages?$search= was retired in 2024
(announcement),
so search lists page metadata per allowed notebook and matches titles
locally, then reads the opening text of the most recently modified pages. That
keeps the cost bounded and never leaves the allowed set.src/parser.js converts it to
Markdown without a third-party dependency and never downloads media.npm test # 99 tests, no network, no host required
npm run pack:check
The suite stubs @deepseek-ai/dsh-tools (a host-provided peer) through a Node
module hook, so a bare checkout runs without installing the harness.
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。