my-pi 0.1.25 → 0.1.26
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 +9 -1
- package/dist/api.d.ts +3 -2
- package/dist/api.js +2172 -2
- package/dist/api.js.map +1 -0
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/api-CxtE0rcW.js +0 -2145
- package/dist/api-CxtE0rcW.js.map +0 -1
package/README.md
CHANGED
|
@@ -59,9 +59,17 @@ priority order):
|
|
|
59
59
|
1. **`pi auth`** — interactive login, stores credentials in
|
|
60
60
|
`~/.pi/agent/auth.json`
|
|
61
61
|
2. **Environment variables** — `ANTHROPIC_API_KEY`, `MISTRAL_API_KEY`,
|
|
62
|
-
`CLOUDFLARE_API_KEY` + `CLOUDFLARE_ACCOUNT_ID`,
|
|
62
|
+
`XIAOMI_API_KEY`, `CLOUDFLARE_API_KEY` + `CLOUDFLARE_ACCOUNT_ID`,
|
|
63
|
+
etc.
|
|
63
64
|
3. **OAuth** — supported for providers that offer it
|
|
64
65
|
|
|
66
|
+
Xiaomi MiMo Token Plan is available through Pi's built-in `xiaomi`
|
|
67
|
+
provider:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
XIAOMI_API_KEY=... pnpx my-pi@latest -m xiaomi/mimo-v2.5-pro "summarize this repo"
|
|
71
|
+
```
|
|
72
|
+
|
|
65
73
|
Cloudflare Workers AI model IDs contain slashes. Pass the provider and
|
|
66
74
|
model together when needed:
|
|
67
75
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Api, Model } from "@mariozechner/pi-ai";
|
|
1
2
|
import * as _$_mariozechner_pi_coding_agent0 from "@mariozechner/pi-coding-agent";
|
|
2
3
|
import { AgentSessionRuntime, CreateAgentSessionFromServicesOptions, ExtensionFactory, ExtensionFactory as ExtensionFactory$1, InteractiveMode, InteractiveModeOptions, PrintModeOptions, runPrintMode, runRpcMode } from "@mariozechner/pi-coding-agent";
|
|
3
|
-
import { Api, Model } from "@mariozechner/pi-ai";
|
|
4
4
|
|
|
5
5
|
//#region src/extensions/manager/config.d.ts
|
|
6
6
|
type BuiltinExtensionKey = 'context-sidecar' | 'mcp' | 'skills' | 'filter-output' | 'recall' | 'nopeek' | 'omnisearch' | 'sqlite-tools' | 'prompt-presets' | 'lsp' | 'session-name' | 'confirm-destructive' | 'hooks-resolution' | 'team-mode';
|
|
@@ -45,8 +45,9 @@ interface ModelRegistryLike {
|
|
|
45
45
|
getAll(): Model<Api>[];
|
|
46
46
|
}
|
|
47
47
|
declare function resolve_model_reference(model_reference: string | undefined, model_registry: ModelRegistryLike): Model<Api> | undefined;
|
|
48
|
+
declare function resolve_effective_thinking_level(model: Model<Api> | undefined, thinking: MyPiThinkingLevel | undefined): MyPiThinkingLevel | undefined;
|
|
48
49
|
declare function get_force_disabled_builtins(options: Pick<CreateMyPiOptions, 'runtime_mode' | 'context_sidecar' | 'mcp' | 'skills' | 'filter_output' | 'recall' | 'nopeek' | 'omnisearch' | 'sqlite_tools' | 'prompt_presets' | 'lsp' | 'session_name' | 'confirm_destructive' | 'hooks_resolution' | 'team_mode'>): ReadonlySet<BuiltinExtensionKey>;
|
|
49
50
|
declare function create_my_pi(options?: CreateMyPiOptions): Promise<_$_mariozechner_pi_coding_agent0.AgentSessionRuntime>;
|
|
50
51
|
//#endregion
|
|
51
|
-
export { type AgentSessionRuntime, CreateMyPiOptions, type ExtensionFactory, InteractiveMode, type InteractiveModeOptions, MyPiRuntimeMode, MyPiThinkingLevel, type PrintModeOptions, apply_untrusted_repo_defaults, create_my_pi, get_force_disabled_builtins, is_project_local_skill_path, resolve_model_reference, runPrintMode, runRpcMode };
|
|
52
|
+
export { type AgentSessionRuntime, CreateMyPiOptions, type ExtensionFactory, InteractiveMode, type InteractiveModeOptions, MyPiRuntimeMode, MyPiThinkingLevel, type PrintModeOptions, apply_untrusted_repo_defaults, create_my_pi, get_force_disabled_builtins, is_project_local_skill_path, resolve_effective_thinking_level, resolve_model_reference, runPrintMode, runRpcMode };
|
|
52
53
|
//# sourceMappingURL=api.d.ts.map
|