mirror of
https://github.com/hansjone/dsh-search-mcp.git
synced 2026-10-13 01:03:20 +08:00
Keep a small Desktop diagnostic script set and ignore local scratch.
Drop bak/tmp/probe leftovers from the workspace; track status/form/settings checks alongside the existing config and takeover verifiers. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
23685cd545
commit
9d7de03933
4 changed files with 411 additions and 0 deletions
20
scripts/_status.mjs
Normal file
20
scripts/_status.mjs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { readFileSync } from 'node:fs'
|
||||
import { homedir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
|
||||
const profile = JSON.parse(readFileSync(join(homedir(), '.dsh/profiles/desktop/package.json'), 'utf8'))
|
||||
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url)))
|
||||
const c = readFileSync(new URL('../lib/client.browser.js', import.meta.url), 'utf8')
|
||||
console.log(JSON.stringify({
|
||||
inBundles: profile.dsh.profile.bundles.includes('dsh-search-mcp'),
|
||||
ver: pkg.version,
|
||||
imm: pkg.dsh.client.immediately,
|
||||
lines: c.split(/\n/).length,
|
||||
settingsScopeInject: /inject\(\["settingsScope"\]/.test(c),
|
||||
configFormsInject: /inject\(\["configForms"\]/.test(c),
|
||||
configFormsPoll: c.includes('configForms poll'),
|
||||
settingsSection: /name:\s*"settings\.section"/.test(c),
|
||||
forcedFallback: /const createSnapshotStore = createSnapshotStoreFallback/.test(c),
|
||||
SearchMcpSection: c.includes('SearchMcpSection'),
|
||||
Placeholder: c.includes('PlaceholderSection') || c.includes('配置表单加载中'),
|
||||
}, null, 2))
|
||||
Loading…
Add table
Add a link
Reference in a new issue