@aliou/pi-synthetic 0.16.0 → 0.17.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/package.json +8 -8
- package/src/config.ts +2 -2
- package/src/extensions/command-quotas/command.ts +1 -1
- package/src/extensions/command-quotas/components/quotas-display.ts +4 -4
- package/src/extensions/command-quotas/index.ts +1 -1
- package/src/extensions/provider/index.ts +4 -1
- package/src/extensions/provider/models.ts +1 -1
- package/src/extensions/quota-warnings/index.ts +1 -1
- package/src/extensions/sub-bar-integration/index.ts +1 -1
- package/src/extensions/usage-status/index.ts +1 -1
- package/src/extensions/web-search/index.ts +1 -1
- package/src/extensions/web-search/tool.ts +3 -3
- package/src/lib/env.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aliou/pi-synthetic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
35
|
+
"@earendil-works/pi-coding-agent": "0.74.0",
|
|
36
|
+
"@earendil-works/pi-tui": "0.74.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@aliou/pi-utils-settings": "^0.
|
|
40
|
-
"@aliou/pi-utils-ui": "^0.
|
|
39
|
+
"@aliou/pi-utils-settings": "^0.15.0",
|
|
40
|
+
"@aliou/pi-utils-ui": "^0.4.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@aliou/biome-plugins": "^0.7.0",
|
|
44
44
|
"@biomejs/biome": "^2.4.2",
|
|
45
45
|
"@changesets/cli": "^2.27.11",
|
|
46
|
-
"@
|
|
46
|
+
"@earendil-works/pi-coding-agent": "0.74.0",
|
|
47
47
|
"typebox": "^1.1.37",
|
|
48
48
|
"@types/node": "^25.0.10",
|
|
49
49
|
"husky": "^9.1.7",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"vitest": "^4.0.18"
|
|
52
52
|
},
|
|
53
53
|
"peerDependenciesMeta": {
|
|
54
|
-
"@
|
|
54
|
+
"@earendil-works/pi-coding-agent": {
|
|
55
55
|
"optional": true
|
|
56
56
|
},
|
|
57
|
-
"@
|
|
57
|
+
"@earendil-works/pi-tui": {
|
|
58
58
|
"optional": true
|
|
59
59
|
}
|
|
60
60
|
},
|
package/src/config.ts
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
registerSettingsCommand,
|
|
5
5
|
type SettingsSection,
|
|
6
6
|
} from "@aliou/pi-utils-settings";
|
|
7
|
-
import type { ExtensionAPI } from "@
|
|
8
|
-
import type { SettingItem } from "@
|
|
7
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
8
|
+
import type { SettingItem } from "@earendil-works/pi-tui";
|
|
9
9
|
import pkg from "../package.json" with { type: "json" };
|
|
10
10
|
|
|
11
11
|
export type SyntheticFeatureId =
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtensionAPI } from "@
|
|
1
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import { configLoader } from "../../config";
|
|
3
3
|
import { getSyntheticApiKey } from "../../lib/env";
|
|
4
4
|
import { fetchQuotas } from "../../utils/quotas";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Theme } from "@
|
|
2
|
-
import { DynamicBorder } from "@
|
|
3
|
-
import type { Component, TUI } from "@
|
|
4
|
-
import { Loader, matchesKey, truncateToWidth } from "@
|
|
1
|
+
import type { Theme } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import { DynamicBorder } from "@earendil-works/pi-coding-agent";
|
|
3
|
+
import type { Component, TUI } from "@earendil-works/pi-tui";
|
|
4
|
+
import { Loader, matchesKey, truncateToWidth } from "@earendil-works/pi-tui";
|
|
5
5
|
import type { QuotasResponse } from "../../../types/quotas";
|
|
6
6
|
import {
|
|
7
7
|
assessWindow,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Source: https://api.synthetic.new/openai/v1/models
|
|
3
3
|
// maxTokens sourced from https://models.dev/api.json (synthetic provider)
|
|
4
4
|
|
|
5
|
-
import type { ProviderModelConfig } from "@
|
|
5
|
+
import type { ProviderModelConfig } from "@earendil-works/pi-coding-agent";
|
|
6
6
|
|
|
7
7
|
export interface SyntheticModelConfig extends ProviderModelConfig {
|
|
8
8
|
/** Upstream backend Synthetic proxies this model through (e.g. "fireworks", "together", "synthetic"). */
|
|
@@ -5,9 +5,9 @@ import type {
|
|
|
5
5
|
ExtensionContext,
|
|
6
6
|
Theme,
|
|
7
7
|
ToolRenderResultOptions,
|
|
8
|
-
} from "@
|
|
9
|
-
import { getMarkdownTheme, keyHint } from "@
|
|
10
|
-
import { Container, Markdown, Text } from "@
|
|
8
|
+
} from "@earendil-works/pi-coding-agent";
|
|
9
|
+
import { getMarkdownTheme, keyHint } from "@earendil-works/pi-coding-agent";
|
|
10
|
+
import { Container, Markdown, Text } from "@earendil-works/pi-tui";
|
|
11
11
|
import { type Static, Type } from "typebox";
|
|
12
12
|
import { configLoader } from "../../config";
|
|
13
13
|
import { getSyntheticApiKey } from "../../lib/env";
|
package/src/lib/env.ts
CHANGED