@oh-my-pi/pi-coding-agent 12.10.1 → 12.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/package.json +7 -7
- package/src/cli/web-search-cli.ts +1 -0
- package/src/commands/web-search.ts +1 -0
- package/src/commit/model-selection.ts +2 -2
- package/src/config/model-registry.ts +259 -308
- package/src/config/model-resolver.ts +5 -69
- package/src/config/settings-schema.ts +10 -0
- package/src/modes/components/model-selector.ts +24 -0
- package/src/modes/components/settings-defs.ts +11 -1
- package/src/modes/controllers/selector-controller.ts +4 -0
- package/src/modes/interactive-mode.ts +1 -0
- package/src/priority.json +28 -0
- package/src/prompts/agents/explore.md +1 -1
- package/src/prompts/agents/plan.md +1 -1
- package/src/prompts/agents/reviewer.md +1 -1
- package/src/session/agent-session.ts +41 -8
- package/src/session/auth-storage.ts +75 -0
- package/src/tools/browser.ts +30 -2
- package/src/utils/title-generator.ts +3 -2
- package/src/web/search/index.ts +4 -4
- package/src/web/search/provider.ts +4 -1
- package/src/web/search/providers/anthropic.ts +2 -17
- package/src/web/search/providers/synthetic.ts +136 -0
- package/src/web/search/types.ts +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [12.11.0] - 2026-02-19
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Support for Synthetic model provider in web search command
|
|
10
|
+
- Model sorting by priority field and version number in model selector for improved model ranking
|
|
11
|
+
- Support for Synthetic model provider with API key authentication
|
|
12
|
+
- Support for Hugging Face model provider with API key authentication
|
|
13
|
+
- Support for NVIDIA model provider with API key authentication
|
|
14
|
+
- Support for Ollama model provider with optional API key authentication
|
|
15
|
+
- Support for Cloudflare AI Gateway model provider with API key authentication
|
|
16
|
+
- Support for Qwen Portal model provider with API key authentication
|
|
17
|
+
- Support for LiteLLM model provider with API key authentication
|
|
18
|
+
- Support for Moonshot model provider with API key authentication
|
|
19
|
+
- Support for Qianfan model provider with API key authentication
|
|
20
|
+
- Support for Together model provider with API key authentication
|
|
21
|
+
- Support for Venice model provider with API key authentication
|
|
22
|
+
- Support for vLLM model provider with API key authentication
|
|
23
|
+
- Support for Xiaomi model provider with API key authentication
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- Refactored custom model building logic into reusable `buildCustomModel` function for consistency across provider configurations
|
|
28
|
+
- Replaced generic error with AgentBusyError when attempting to send messages while agent is processing
|
|
29
|
+
- Added automatic retry logic with idle waiting when agent is busy during prompt operations, with 30-second timeout
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- Fixed model discovery to use default refresh mode instead of explicit 'online' parameter
|
|
34
|
+
|
|
5
35
|
## [12.10.1] - 2026-02-18
|
|
6
36
|
|
|
7
37
|
### Added
|
|
@@ -22,6 +52,7 @@
|
|
|
22
52
|
- Added `rules` option to CreateAgentSessionOptions for explicit rule configuration
|
|
23
53
|
- Added `sessionDir` option to RpcClientOptions for specifying agent session directory
|
|
24
54
|
- Added `Symbol.dispose` method to RpcClient for resource cleanup support
|
|
55
|
+
- Added `autocompleteMaxVisible` setting to configure the number of items shown in the autocomplete dropdown (3-20, default 5) ([#98](https://github.com/can1357/oh-my-pi/pull/98) by [@masonc15](https://github.com/masonc15))
|
|
25
56
|
- Added `condition` and `scope` fields to rule frontmatter for advanced TTSR matching and stream filtering
|
|
26
57
|
- Added `ttsr.interruptMode` setting to control when TTSR rules interrupt mid-stream vs inject warnings after completion
|
|
27
58
|
- Added support for loading rules, prompts, commands, context files (AGENTS.md), and system prompts (SYSTEM.md) from ~/.agent/ directory (with fallback to ~/.agents/)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-coding-agent",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.11.0",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@mozilla/readability": "0.6.0",
|
|
87
|
-
"@oh-my-pi/omp-stats": "12.
|
|
88
|
-
"@oh-my-pi/pi-agent-core": "12.
|
|
89
|
-
"@oh-my-pi/pi-ai": "12.
|
|
90
|
-
"@oh-my-pi/pi-natives": "12.
|
|
91
|
-
"@oh-my-pi/pi-tui": "12.
|
|
92
|
-
"@oh-my-pi/pi-utils": "12.
|
|
87
|
+
"@oh-my-pi/omp-stats": "12.11.0",
|
|
88
|
+
"@oh-my-pi/pi-agent-core": "12.11.0",
|
|
89
|
+
"@oh-my-pi/pi-ai": "12.11.0",
|
|
90
|
+
"@oh-my-pi/pi-natives": "12.11.0",
|
|
91
|
+
"@oh-my-pi/pi-tui": "12.11.0",
|
|
92
|
+
"@oh-my-pi/pi-utils": "12.11.0",
|
|
93
93
|
"@sinclair/typebox": "^0.34.48",
|
|
94
94
|
"@xterm/headless": "^6.0.0",
|
|
95
95
|
"ajv": "^8.18.0",
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
parseModelPattern,
|
|
6
6
|
resolveModelFromSettings,
|
|
7
7
|
resolveModelFromString,
|
|
8
|
-
SMOL_MODEL_PRIORITY,
|
|
9
8
|
} from "../config/model-resolver";
|
|
10
9
|
import type { Settings } from "../config/settings";
|
|
10
|
+
import MODEL_PRIO from "../priority.json" with { type: "json" };
|
|
11
11
|
|
|
12
12
|
export async function resolvePrimaryModel(
|
|
13
13
|
override: string | undefined,
|
|
@@ -58,7 +58,7 @@ export async function resolveSmolModel(
|
|
|
58
58
|
if (apiKey) return { model: roleModel, apiKey };
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
for (const pattern of
|
|
61
|
+
for (const pattern of MODEL_PRIO.smol) {
|
|
62
62
|
const candidate = parseModelPattern(pattern, available, matchPreferences).model;
|
|
63
63
|
if (!candidate) continue;
|
|
64
64
|
const apiKey = await modelRegistry.getApiKey(candidate);
|