pi-plus-sdk 0.2.32 → 0.2.34
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/api.d.ts +19 -1
- package/api.js +401 -389
- package/bedrock-converse-stream.js +5 -5
- package/core/export-html/template.js +1 -1
- package/github-copilot.js +1 -1
- package/image-resize-worker.js +1 -1
- package/package.json +3 -3
package/api.d.ts
CHANGED
|
@@ -629,10 +629,24 @@ export declare function createPlusAgentSessionRuntime(
|
|
|
629
629
|
* declared inline because pi-hub is not a dependency of this package — keep
|
|
630
630
|
* them in sync with packages/hub/src/types.ts.
|
|
631
631
|
*/
|
|
632
|
+
export interface CustomModel {
|
|
633
|
+
id: string;
|
|
634
|
+
name?: string;
|
|
635
|
+
api?: string;
|
|
636
|
+
baseUrl?: string;
|
|
637
|
+
reasoning?: boolean;
|
|
638
|
+
contextWindow?: number;
|
|
639
|
+
maxTokens?: number;
|
|
640
|
+
[key: string]: unknown;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/** Model list entry: a catalog model id, or a custom model definition. */
|
|
644
|
+
export type ModelEntry = string | CustomModel;
|
|
645
|
+
|
|
632
646
|
export interface Profile {
|
|
633
647
|
provider?: string;
|
|
634
648
|
model?: string;
|
|
635
|
-
models?:
|
|
649
|
+
models?: ModelEntry[];
|
|
636
650
|
thinking?: string;
|
|
637
651
|
token?: string;
|
|
638
652
|
url?: string;
|
|
@@ -656,6 +670,10 @@ export interface AgentSettingsData {
|
|
|
656
670
|
|
|
657
671
|
export declare const THINKING_LEVELS: string[];
|
|
658
672
|
|
|
673
|
+
/** The model id of a model list entry (a plain catalog id, or a custom
|
|
674
|
+
* definition's `id`). */
|
|
675
|
+
export declare function modelId(entry: ModelEntry): string;
|
|
676
|
+
|
|
659
677
|
/** Source agent dir (PI_CODING_AGENT_DIR or ~/.pi/agent): profiles without an applied profile. */
|
|
660
678
|
export declare const AGENT_DIR: string;
|
|
661
679
|
|