@kaoruisaac/pedelec 0.1.6 → 0.1.8
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 +5 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
## Documentation
|
|
6
6
|
|
|
7
|
+
- [Pedelec Official](https://pedelec.cc)
|
|
7
8
|
- [Pedelec documentation](https://kaoruisaac.github.io/pedelec/)
|
|
8
9
|
- [GitHub repository](https://github.com/kaoruisaac/pedelec)
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
Pedelec is a browser SDK and local bridge for applications that want to work with AI coding agents such as Codex,
|
|
12
|
+
Pedelec is a browser SDK and local bridge for applications that want to work with AI coding agents such as Codex, Antigravity, OpenCode, Cursor, Claude Code, or an Ollama-backed agent.
|
|
12
13
|
|
|
13
14
|
A web application can use Pedelec to:
|
|
14
15
|
|
|
@@ -39,7 +40,7 @@ Pedelec native host
|
|
|
39
40
|
↓ local Core IPC
|
|
40
41
|
Pedelec Desktop Runtime
|
|
41
42
|
↓ provider process
|
|
42
|
-
Codex /
|
|
43
|
+
Codex / Antigravity / OpenCode / Cursor / Claude Code / Ollama
|
|
43
44
|
```
|
|
44
45
|
## SDK Prerequisites
|
|
45
46
|
|
|
@@ -48,7 +49,7 @@ The Pedelec SDK must run in a browser page environment and requires:
|
|
|
48
49
|
1. The user has installed the Pedelec Chrome Extension.
|
|
49
50
|
2. The user has started the Pedelec Desktop App.
|
|
50
51
|
3. The Desktop App has registered the Chrome Native Messaging host.
|
|
51
|
-
4. The target provider is available on the user's machine. CLI-backed providers use commands such as `codex`, `
|
|
52
|
+
4. The target provider is available on the user's machine. CLI-backed providers use commands such as `codex`, `agy`, `opencode`, `cursor`, or `claude`; the Ollama provider uses Pedelec's bundled `pedelec-agent`.
|
|
52
53
|
|
|
53
54
|
The SDK is not suitable for direct use in Node.js, an SSR server, or a background worker; it needs extension runtime messaging from a Chrome page environment.
|
|
54
55
|
|
|
@@ -173,7 +174,7 @@ Currently supported provider codes in the SDK:
|
|
|
173
174
|
| Provider | Code | Example model |
|
|
174
175
|
| --- | --- | --- |
|
|
175
176
|
| Codex | `codex` | `gpt-5` |
|
|
176
|
-
|
|
|
177
|
+
| Antigravity | `antigravity` | Any model ID supported by the provider |
|
|
177
178
|
| OpenCode | `opencode` | `ollama/qwen2.5-coder:14b` |
|
|
178
179
|
| Cursor | `cursor` | `gpt-5` |
|
|
179
180
|
| Claude Code | `claude` | `sonnet` |
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type PedelecOptions = {
|
|
2
2
|
bridgeTimeoutMs?: number;
|
|
3
3
|
};
|
|
4
|
-
export type ProviderCode = "codex" | "
|
|
4
|
+
export type ProviderCode = "codex" | "antigravity" | "opencode" | "cursor" | "claude" | "ollama";
|
|
5
5
|
export type JsonPrimitive = string | number | boolean | null;
|
|
6
6
|
export type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
7
7
|
[key: string]: JsonValue;
|
package/dist/index.js
CHANGED
|
@@ -914,7 +914,7 @@ function isSettings(value) {
|
|
|
914
914
|
}
|
|
915
915
|
return ((settings.defaultProvider === null ||
|
|
916
916
|
settings.defaultProvider === "codex" ||
|
|
917
|
-
settings.defaultProvider === "
|
|
917
|
+
settings.defaultProvider === "antigravity" ||
|
|
918
918
|
settings.defaultProvider === "opencode" ||
|
|
919
919
|
settings.defaultProvider === "cursor" ||
|
|
920
920
|
settings.defaultProvider === "claude" ||
|
|
@@ -931,7 +931,7 @@ function isApprovalStatus(value) {
|
|
|
931
931
|
}
|
|
932
932
|
function isProviderCode(value) {
|
|
933
933
|
return (value === "codex" ||
|
|
934
|
-
value === "
|
|
934
|
+
value === "antigravity" ||
|
|
935
935
|
value === "opencode" ||
|
|
936
936
|
value === "cursor" ||
|
|
937
937
|
value === "claude" ||
|