@oh-my-pi/pi-coding-agent 16.2.6 → 16.2.7
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 +23 -0
- package/dist/cli.js +2656 -2651
- package/dist/types/cli/bench-cli.d.ts +3 -3
- package/dist/types/commands/bench.d.ts +1 -1
- package/dist/types/config/service-tier.d.ts +39 -24
- package/dist/types/config/settings-schema.d.ts +36 -36
- package/dist/types/mcp/config-writer.d.ts +48 -0
- package/dist/types/mcp/types.d.ts +3 -0
- package/dist/types/session/agent-session.d.ts +33 -13
- package/dist/types/session/messages.d.ts +1 -1
- package/dist/types/session/session-context.d.ts +2 -2
- package/dist/types/session/session-entries.d.ts +2 -2
- package/dist/types/session/session-manager.d.ts +2 -2
- package/dist/types/system-prompt.test.d.ts +1 -0
- package/dist/types/task/executor.d.ts +6 -6
- package/dist/types/task/types.d.ts +6 -0
- package/dist/types/task/worktree.d.ts +32 -6
- package/dist/types/tiny/title-client.d.ts +5 -1
- package/dist/types/tools/index.d.ts +3 -3
- package/dist/types/utils/git.d.ts +17 -0
- package/package.json +12 -12
- package/src/cli/bench-cli.ts +19 -12
- package/src/cli/tiny-models-cli.ts +18 -4
- package/src/commands/bench.ts +3 -3
- package/src/config/mcp-schema.json +10 -1
- package/src/config/service-tier.ts +85 -56
- package/src/config/settings-schema.ts +42 -36
- package/src/config/settings.ts +47 -0
- package/src/eval/agent-bridge.ts +4 -2
- package/src/internal-urls/docs-index.generated.txt +1 -1
- package/src/main.ts +1 -1
- package/src/mcp/config-writer.ts +121 -0
- package/src/mcp/config.ts +10 -6
- package/src/mcp/types.ts +3 -0
- package/src/modes/components/extensions/extension-dashboard.ts +46 -0
- package/src/modes/components/extensions/state-manager.ts +24 -3
- package/src/modes/controllers/event-controller.ts +7 -0
- package/src/modes/utils/transcript-render-helpers.ts +2 -2
- package/src/sdk.ts +12 -11
- package/src/session/agent-session.ts +186 -76
- package/src/session/messages.ts +1 -1
- package/src/session/session-context.ts +4 -4
- package/src/session/session-entries.ts +2 -2
- package/src/session/session-manager.ts +9 -2
- package/src/slash-commands/builtin-registry.ts +2 -10
- package/src/system-prompt.test.ts +158 -0
- package/src/system-prompt.ts +69 -26
- package/src/task/executor.ts +23 -16
- package/src/task/index.ts +7 -5
- package/src/task/isolation-runner.ts +15 -1
- package/src/task/types.ts +6 -0
- package/src/task/worktree.ts +219 -38
- package/src/tiny/title-client.ts +19 -13
- package/src/tools/index.ts +3 -3
- package/src/tools/irc.ts +9 -3
- package/src/tools/read.ts +28 -28
- package/src/utils/file-mentions.ts +10 -1
- package/src/utils/git.ts +38 -0
- package/src/web/search/providers/duckduckgo.ts +17 -3
|
@@ -35,7 +35,7 @@ const RECENCY_TO_DDG_DF: Record<NonNullable<SearchParams["recency"]>, string> =
|
|
|
35
35
|
* the orchestrator can fall through to the next provider with context.
|
|
36
36
|
*/
|
|
37
37
|
const BROWSER_USER_AGENT =
|
|
38
|
-
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
|
|
38
|
+
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36";
|
|
39
39
|
|
|
40
40
|
interface ParsedResult {
|
|
41
41
|
title: string;
|
|
@@ -130,15 +130,29 @@ async function callDuckDuckGoHtml(params: SearchParams): Promise<string> {
|
|
|
130
130
|
const form = new URLSearchParams({ q: params.query, kl: "us-en" });
|
|
131
131
|
const df = params.recency ? RECENCY_TO_DDG_DF[params.recency] : undefined;
|
|
132
132
|
if (df) form.set("df", df);
|
|
133
|
+
// Add b: "" parameter as specified in the browser fetch template to match real browser form submission
|
|
134
|
+
form.set("b", "");
|
|
133
135
|
|
|
134
136
|
const response = await (params.fetch ?? fetch)(DUCKDUCKGO_HTML_URL, {
|
|
135
137
|
method: "POST",
|
|
136
138
|
body: form.toString(),
|
|
137
139
|
headers: {
|
|
140
|
+
Accept:
|
|
141
|
+
"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
|
|
142
|
+
"Accept-Language": "en,en-US;q=0.9",
|
|
143
|
+
"Cache-Control": "max-age=0",
|
|
138
144
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
145
|
+
Priority: "u=0, i",
|
|
146
|
+
"Sec-Ch-Ua": '"Google Chrome";v="149", "Chromium";v="149", "Not)A;Brand";v="24"',
|
|
147
|
+
"Sec-Ch-Ua-Mobile": "?0",
|
|
148
|
+
"Sec-Ch-Ua-Platform": '"macOS"',
|
|
149
|
+
"Sec-Fetch-Dest": "document",
|
|
150
|
+
"Sec-Fetch-Mode": "navigate",
|
|
151
|
+
"Sec-Fetch-Site": "same-origin",
|
|
152
|
+
"Sec-Fetch-User": "?1",
|
|
153
|
+
"Upgrade-Insecure-Requests": "1",
|
|
139
154
|
"User-Agent": BROWSER_USER_AGENT,
|
|
140
|
-
|
|
141
|
-
"Accept-Language": "en-US,en;q=0.5",
|
|
155
|
+
Referer: "https://html.duckduckgo.com/",
|
|
142
156
|
},
|
|
143
157
|
signal: withHardTimeout(params.signal),
|
|
144
158
|
});
|