Commit graph

10 commits

Author SHA1 Message Date
Bin-Home
a5cb829dd6 chore: fix all automated-scan lint warnings, bump to v0.3.6
- vault-service: use fileManager.trashFile() to respect user deletion pref
- Replace bare JSON.parse() with explicit type assertions across all files
- MessageList/DiffReviewBlock/ConversationList: eliminate unsafe-any in Svelte
- main.ts: cast loadData() result to the expected migrateSettings parameter type
- conversation.ts: import ToolCall type, use Message["role"] cast for parsed role

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-05-16 22:47:07 +08:00
Bin-Home
0369205720 fix: use i18n for compat dropdown labels, bump to v0.3.5
Replaces hardcoded "OpenAI" / "Anthropic" string literals in the
addOption() calls with t("provider.openai") / t("provider.anthropic")
to satisfy the obsidianmd/ui/sentence-case lint rule.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-04-30 14:33:31 +08:00
Bin-Home
ca0b078d0f fix: restore this-binding in openSettings, bump to v0.3.4
Detaching a method via `const fn = obj.method` loses its `this`
context. Replaced with Reflect.apply(fn, s, args) so the Obsidian
Settings object's internal `this.app` reference stays intact.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-04-30 11:42:25 +08:00
Bin-Home
32b76c6d88 chore: fix all ObsidianReviewBot lint errors, bump to v0.3.3
Resolves all Required issues flagged by the Obsidian community plugin
review bot:

- Replace explicit `any` types with typed interfaces and intersection
  types across providers, tools, UI components, and services
- Remove `async` from functions/methods with no `await`; return
  Promise.resolve() where the interface demands Promise<string>
- Replace `fetch` bare global with `window.fetch` and remove
  eslint-disable comments for no-restricted-globals
- Replace `globalThis.fetch` with `window.fetch` (prefer-active-doc)
- Replace string literal style assignments with template literals to
  satisfy no-static-styles-assignment; remove disable comments
- Fix sentence case: "Apply all" / "Reject all" in en.json
- Change default chats folder migration to use regex instead of
  hardcoded .obsidian/ path literal (hardcoded-config-path)
- Remove unnecessary type assertion in migrateSettings
- Remove await from non-Promise listFolder call (await-thenable)
- Add argsIgnorePattern to no-unused-vars in eslint.config.mjs

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-04-30 10:29:12 +08:00
Bin-Home
33d20f6e28 chore: add eslint-plugin-obsidianmd, fix lint errors, bump to v0.3.2
Migrate to ESLint v9 flat config, integrate obsidianmd plugin, fix all
required errors (prefer-active-window-timers, no-tfile-tfolder-cast,
no-unsupported-api, floating promises, etc.), and bump minAppVersion to
1.7.2 to match revealLeaf API requirement.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-04-29 22:07:41 +08:00
Bin-Home
461dfc3a67 docs: add Obsidian disclosure section, bump version to 0.3.1
Adds required disclosures (account, payment, network use) to README and
README-cn.md per Obsidian developer policies.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-04-29 10:36:48 +08:00
Bin-Home
3645669d8a chore: bump version to 0.3.0 2026-04-28 15:18:08 +08:00
Bin-Home
654efe381c feat: rename plugin id and name to smart-note-agent / Smart Note Agent 2026-04-27 21:37:43 +08:00
Bin-Home
ff6940cbba feat: rename to Obsidian Note Agent, fix default model display in status bar and indicator
- Plugin id/name updated to obsidian-note-agent (Bin-Home)
- Class renamed ObsidianAgentPlugin → ObsidianNoteAgentPlugin throughout
- VIEW_TYPE and default chatsFolder path updated to match new id
- Status bar and provider indicator button now use activeProfile() so
  the default model name shows instead of "-" when no override is set
- Indicator button separator changed from " / " to ":" to match status bar
- Add README.md and README-cn.md

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
2026-04-25 17:36:45 +08:00
dev
11f0df77f6 chore: project scaffolding 2026-04-22 20:17:16 +08:00