@henryqw/pi-multi-codex 1.0.5 → 2.0.1

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.
@@ -11,12 +11,12 @@ import {
11
11
  type ApiStreamOptions,
12
12
  type AssistantMessage,
13
13
  type AssistantMessageEvent,
14
- type Context,
15
14
  type DeferredCancelOptions,
16
15
  type DeferredFetchOptions,
17
16
  type Model,
18
17
  type Provider,
19
18
  type SimpleStreamOptions,
19
+ type TranscriptContext,
20
20
  } from "@earendil-works/pi-ai";
21
21
  import { builtinProviders } from "@earendil-works/pi-ai/providers/all";
22
22
  import {
@@ -708,7 +708,7 @@ function aliasModel(model: CodexModel, provider: string): CodexModel {
708
708
  return model.provider === provider ? model : { ...model, provider };
709
709
  }
710
710
 
711
- function nativeContext(context: Context, alias: string): Context {
711
+ function nativeContext(context: TranscriptContext, alias: string): TranscriptContext {
712
712
  return {
713
713
  ...context,
714
714
  messages: context.messages.map((message) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-multi-codex",
3
- "version": "1.0.5",
3
+ "version": "2.0.1",
4
4
  "description": "Use multiple ChatGPT Codex OAuth accounts in Pi.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -25,8 +25,8 @@
25
25
  "pack:check": "npm pack --dry-run"
26
26
  },
27
27
  "peerDependencies": {
28
- "@earendil-works/pi-ai": "^0.85.1",
29
- "@earendil-works/pi-coding-agent": "^0.85.1"
28
+ "@earendil-works/pi-ai": ">=0.86.0 <0.88.0",
29
+ "@earendil-works/pi-coding-agent": ">=0.86.0 <0.88.0"
30
30
  },
31
31
  "repository": {
32
32
  "type": "git",
@@ -46,10 +46,12 @@
46
46
  "image": "https://raw.githubusercontent.com/HenryQW/pi-harness/main/extensions/pi-multi-codex/example.png"
47
47
  },
48
48
  "dependencies": {
49
- "@henryqw/pi-config-store": "^1.1.0",
49
+ "@henryqw/pi-config-store": "^2.0.0",
50
50
  "proper-lockfile": "^4.1.2"
51
51
  },
52
52
  "devDependencies": {
53
+ "@earendil-works/pi-ai": "0.87.0",
54
+ "@earendil-works/pi-coding-agent": "0.87.0",
53
55
  "@types/proper-lockfile": "^4.1.4"
54
56
  }
55
57
  }