mirror of
https://github.com/rait-09/obsidian-agent-client.git
synced 2026-07-22 16:30:32 +00:00
Add vitest suites for parseAgentBlock and resolveImageSrc, including the path-traversal guard that shipped without coverage: chat/button parsing, the lenient boolean spellings (true/false/yes/no/on/off/1/0 and bare numeric 1/0), height normalization, every viewType alias, structural errors, the parse cache's reference identity, URL/data passthrough, and rejection of vault-escaping image paths (.. / absolute / drive-letter / ~). Extend the obsidian test stub with parseYaml, FileSystemAdapter, and a ..-preserving normalizePath, and promote yaml to an explicit devDependency. Add a usage page documenting the fence languages, all chat/button options, the device-local persistence model and id auto-injection, and the validation and warning behavior, with a sidebar entry.
54 lines
1.6 KiB
JSON
54 lines
1.6 KiB
JSON
{
|
|
"name": "obsidian-agent-client",
|
|
"version": "0.11.0",
|
|
"description": "Use AI coding agents via the Agent Client Protocol directly inside Obsidian",
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"dev": "node esbuild.config.mjs",
|
|
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"version": "node version-bump.mjs && git add manifest.json versions.json",
|
|
"format": "prettier --write \"src/**/*.{ts,tsx}\" \"*.css\"",
|
|
"format:check": "prettier --check \"src/**/*.{ts,tsx}\" \"*.css\"",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"docs:dev": "vitepress dev docs",
|
|
"docs:build": "vitepress build docs",
|
|
"docs:preview": "vitepress preview docs"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "Apache-2.0",
|
|
"devDependencies": {
|
|
"@eslint/json": "^0.14.0",
|
|
"@types/node": "^16.11.6",
|
|
"@types/react": "18.3.29",
|
|
"@types/react-dom": "18.3.7",
|
|
"@types/semver": "^7.7.1",
|
|
"@typescript-eslint/parser": "^8.0.0",
|
|
"@typescript-eslint/utils": "^8.0.0",
|
|
"esbuild": "0.17.3",
|
|
"eslint": "^9.0.0",
|
|
"eslint-plugin-obsidianmd": "^0.1.9",
|
|
"obsidian": "latest",
|
|
"prettier": "^3.4.2",
|
|
"tslib": "2.4.0",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.0.0",
|
|
"vitepress": "^1.6.4",
|
|
"vitest": "^4.1.8",
|
|
"yaml": "^2.9.0"
|
|
},
|
|
"dependencies": {
|
|
"@agentclientprotocol/sdk": "^0.28.1",
|
|
"@codemirror/state": "6.5.0",
|
|
"@codemirror/view": "^6.35.0",
|
|
"@tanstack/react-virtual": "^3.13.23",
|
|
"diff": "^8.0.2",
|
|
"react": "18.3.1",
|
|
"react-dom": "18.3.1",
|
|
"semver": "^7.7.3",
|
|
"zod": "^4.4.3"
|
|
}
|
|
}
|