@diegopetrucci/pi-oracle 0.1.6 → 0.1.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/README.md +1 -1
- package/index.ts +26 -13
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
An Amp-style oracle for [pi](https://github.com/
|
|
5
|
+
An Amp-style oracle for [pi](https://github.com/earendil-works/pi-mono).
|
|
6
6
|
|
|
7
7
|
It adds an `oracle` tool that spins up a separate read-only pi subprocess and sends it to the strongest reasoning model available on the **same provider/subscription** the user is currently using.
|
|
8
8
|
|
package/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { spawn } from "node:child_process";
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
3
|
import { basename } from "node:path";
|
|
4
|
-
import { StringEnum } from "@
|
|
5
|
-
import { getMarkdownTheme, type ExtensionAPI } from "@
|
|
6
|
-
import { Container, Markdown, Spacer, Text } from "@
|
|
7
|
-
import { Type } from "
|
|
4
|
+
import { StringEnum } from "@earendil-works/pi-ai";
|
|
5
|
+
import { getMarkdownTheme, type ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
6
|
+
import { Container, Markdown, Spacer, Text } from "@earendil-works/pi-tui";
|
|
7
|
+
import { Type } from "typebox";
|
|
8
8
|
|
|
9
9
|
type ThinkingLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
10
10
|
|
|
@@ -171,14 +171,6 @@ const PROVIDER_MODEL_PREFERENCES: Record<string, string[]> = {
|
|
|
171
171
|
"gemini-2.5-flash-lite-preview",
|
|
172
172
|
"gemini-2.5-flash-lite",
|
|
173
173
|
],
|
|
174
|
-
"google-antigravity": [
|
|
175
|
-
"claude-opus-4-6-thinking",
|
|
176
|
-
"claude-sonnet-4-5-thinking",
|
|
177
|
-
"gemini-3.1-pro-low",
|
|
178
|
-
"gemini-3-flash",
|
|
179
|
-
"gemini-2.0-flash",
|
|
180
|
-
],
|
|
181
|
-
"google-gemini-cli": ["gemini-3-pro-preview", "gemini-2.5-pro", "gemini-1.5-flash"],
|
|
182
174
|
"google-vertex": [
|
|
183
175
|
"gemini-3.1-pro-preview-customtools",
|
|
184
176
|
"gemini-3.1-pro-preview",
|
|
@@ -335,6 +327,28 @@ const PROVIDER_MODEL_PREFERENCES: Record<string, string[]> = {
|
|
|
335
327
|
"grok-3-mini-fast",
|
|
336
328
|
"grok-3-latest",
|
|
337
329
|
],
|
|
330
|
+
xiaomi: ["mimo-v2.5-pro", "mimo-v2.5", "mimo-v2-pro", "mimo-v2-omni", "mimo-v2-flash"],
|
|
331
|
+
"xiaomi-token-plan-ams": [
|
|
332
|
+
"mimo-v2.5-pro",
|
|
333
|
+
"mimo-v2.5",
|
|
334
|
+
"mimo-v2-pro",
|
|
335
|
+
"mimo-v2-omni",
|
|
336
|
+
"mimo-v2-flash",
|
|
337
|
+
],
|
|
338
|
+
"xiaomi-token-plan-cn": [
|
|
339
|
+
"mimo-v2.5-pro",
|
|
340
|
+
"mimo-v2.5",
|
|
341
|
+
"mimo-v2-pro",
|
|
342
|
+
"mimo-v2-omni",
|
|
343
|
+
"mimo-v2-flash",
|
|
344
|
+
],
|
|
345
|
+
"xiaomi-token-plan-sgp": [
|
|
346
|
+
"mimo-v2.5-pro",
|
|
347
|
+
"mimo-v2.5",
|
|
348
|
+
"mimo-v2-pro",
|
|
349
|
+
"mimo-v2-omni",
|
|
350
|
+
"mimo-v2-flash",
|
|
351
|
+
],
|
|
338
352
|
zai: [
|
|
339
353
|
"glm-5.1",
|
|
340
354
|
"glm-5-turbo",
|
|
@@ -348,7 +362,6 @@ const PROVIDER_MODEL_PREFERENCES: Record<string, string[]> = {
|
|
|
348
362
|
],
|
|
349
363
|
moonshotai: ["kimi-k2.6", "kimi-k2-thinking-turbo", "kimi-k2-thinking", "kimi-k2.5"],
|
|
350
364
|
"moonshotai-cn": ["kimi-k2.6", "kimi-k2-thinking-turbo", "kimi-k2-thinking", "kimi-k2.5"],
|
|
351
|
-
"gemini-cli": ["gemini-3-pro-preview", "gemini-2.5-pro", "gemini-1.5-flash"],
|
|
352
365
|
};
|
|
353
366
|
|
|
354
367
|
const ORACLE_SYSTEM_PROMPT = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diegopetrucci/pi-oracle",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "An Amp-style oracle extension for pi that consults the strongest reasoning model on your current provider.",
|
|
5
5
|
"keywords": ["pi-package", "pi", "oracle", "reasoning", "subagent"],
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"image": "https://raw.githubusercontent.com/diegopetrucci/pi-extensions/main/assets/oracle-preview.svg"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
26
|
+
"@earendil-works/pi-ai": "*",
|
|
27
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
28
|
+
"@earendil-works/pi-tui": "*",
|
|
29
|
+
"typebox": "*"
|
|
28
30
|
}
|
|
29
31
|
}
|