Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 13 additions & 13 deletions .agents/skills/add-provider/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ Use this when the provider supports OpenAI Chat Completions or Responses-compati

Typical files:

- `src/main/presenter/configPresenter/providers.ts`
- `src/main/presenter/configPresenter/providerId.ts`
- `src/main/presenter/llmProviderPresenter/providerRegistry.ts`
- `src/main/provider/defaults.ts`
- `src/main/provider/providerId.ts`
- `src/main/provider/providerRegistry.ts`
- `src/shared/providerDbCatalog.ts` when models come from the public provider database
- `test/main/**` provider registry or creation tests

Expand All @@ -47,8 +47,8 @@ Azure, Bedrock, Ollama, or ACP.

Typical files:

- `src/main/presenter/configPresenter/providers.ts`
- `src/main/presenter/llmProviderPresenter/providerRegistry.ts`
- `src/main/provider/defaults.ts`
- `src/main/provider/providerRegistry.ts`
- Settings components only when the existing generic form lacks required fields
- Focused tests for provider creation and connection checks

Expand All @@ -59,9 +59,9 @@ transports.

Typical files:

- `src/main/presenter/llmProviderPresenter/providers/<providerName>Provider.ts`
- `src/main/presenter/llmProviderPresenter/<providerName>Adapter.ts`
- `src/main/presenter/llmProviderPresenter/managers/providerInstanceManager.ts`
- `src/main/provider/providers/<providerName>Provider.ts`
- `src/main/provider/<providerName>Adapter.ts`
- `src/main/provider/managers/providerInstanceManager.ts`
- `src/shared/contracts/routes/*` and `src/renderer/api/*Client.ts` for interactive auth
- `src/renderer/settings/components/*` for provider-specific settings UI
- Main and renderer tests covering the new behavior
Expand All @@ -81,11 +81,11 @@ Typical files:
1. Read `docs/features/provider-runtime/spec.md` when the provider work touches the provider runtime
scope. Also read `plan.md` and `tasks.md` if they exist for an active provider-runtime goal.
2. Inspect the current provider files before editing:
- `src/main/presenter/configPresenter/providers.ts`
- `src/main/presenter/configPresenter/providerId.ts`
- `src/main/presenter/llmProviderPresenter/providerRegistry.ts`
- `src/main/presenter/llmProviderPresenter/aiSdk/providerFactory.ts`
- `src/main/presenter/llmProviderPresenter/managers/providerInstanceManager.ts`
- `src/main/provider/defaults.ts`
- `src/main/provider/providerId.ts`
- `src/main/provider/providerRegistry.ts`
- `src/main/provider/aiSdk/providerFactory.ts`
- `src/main/provider/managers/providerInstanceManager.ts`
- `src/renderer/settings/components/ProviderApiConfig.vue`
3. Classify the request into one supported path.
4. Add the smallest explicit source changes for that path.
Expand Down
6 changes: 6 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
- OxLint for JS/TS; the tracked `commit-msg` hook runs `commitlint`.
- Names: Vue components PascalCase (`ChatInput.vue`); variables/functions `camelCase`; types/classes `PascalCase`; constants `SCREAMING_SNAKE_CASE`.

## UI primitives: shadcn-vue + VueUse first
- For renderer UI changes, when product/interaction/performance needs are met, **prefer shadcn-vue** under `src/shadcn/components/ui` via `@shadcn/components/ui/*` (Button, Dialog, Select, Switch, Skeleton, Spinner, Empty, Alert, Badge, Field, etc.). Do not hand-roll equivalent spinners, pulse skeletons, empty states, or form controls.
- Prefer **VueUse** (`@vueuse/core`) for mechanical browser utilities: `useEventListener`, `useDebounceFn` / `refDebounced`, `useWindowSize`, `useResizeObserver`, `useIntervalFn`, `useStorage`, etc.
- Missing shadcn pieces: `pnpm dlx shadcn-vue@latest docs <name>` then `add` (see `components.json` and `pnpm run update-shadcn`). Never invent registry flags; do not `--overwrite` without explicit approval.
- Custom UI is allowed only when shadcn cannot cover the semantic (virtual-list measurement, spotlight/onboarding overlays, domain message/artifact chrome, native truncate `title=`). Document the exception in the PR.

## Testing Guidelines
- Framework: Vitest (+ jsdom) and Vue Test Utils.
- Location mirrors source under `test/main/**` and `test/renderer/**`.
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.1.0-beta.3 (2026-07-17)
- Reworked the overall architecture and improved reliability
- 重构整体架构,提升可靠性

## v1.1.0-beta.2 (2026-07-16)
- Centralized Subagent capability policy ownership across the agent runtime and sessions
- Added explicit subagent tape lineage with linked tape views and cross-tape recall
Expand Down
263 changes: 125 additions & 138 deletions docs/ARCHITECTURE.md

Large diffs are not rendered by default.

Loading
Loading