pi-openai-toolkit 0.22.1 → 0.22.3
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/LICENSE +21 -21
- package/NOTICE +83 -83
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/config.schema.json +278 -278
- package/docs/configuration.md +298 -298
- package/docs/internals.md +181 -181
- package/package.json +134 -134
- package/src/compact-client.ts +412 -412
- package/src/compaction-projection.ts +35 -35
- package/src/config/migration.ts +103 -103
- package/src/config.ts +310 -310
- package/src/context-management/codex-provider.ts +270 -270
- package/src/context-management/history-notes.ts +357 -357
- package/src/context-management/tools.ts +371 -371
- package/src/context-management/types.ts +168 -168
- package/src/context-management/window-manager.ts +811 -801
- package/src/debug.ts +238 -238
- package/src/deferred-tool-carryover.ts +282 -282
- package/src/details-store.ts +151 -151
- package/src/extension-runtime.ts +1661 -1662
- package/src/image-generation/extension.ts +189 -189
- package/src/image-generation/protocol.ts +579 -579
- package/src/image-generation/types.ts +300 -300
- package/src/payload-rewrite.ts +515 -515
- package/src/pi-context-hook.ts +117 -117
- package/src/remote-v2-client.ts +811 -811
- package/src/request-context-cache.ts +155 -155
- package/src/responses-headers.ts +180 -180
- package/src/runtime.ts +865 -865
- package/src/serializer.ts +882 -882
- package/src/supported-environment.ts +27 -27
- package/src/types.ts +565 -565
- package/src/web-search/alpha-client.ts +876 -876
- package/src/web-search/extension.ts +530 -530
- package/src/web-search/payload.ts +299 -299
- package/src/web-search/prompt.ts +60 -60
- package/src/web-search/types.ts +166 -166
- package/tsconfig.check.json +50 -50
package/package.json
CHANGED
|
@@ -1,134 +1,134 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pi-openai-toolkit",
|
|
3
|
-
"version": "0.22.
|
|
4
|
-
"private": false,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"engines": {
|
|
7
|
-
"node": ">=22.19.0"
|
|
8
|
-
},
|
|
9
|
-
"description": "OpenAI toolkit for Pi: Codex Remote Context windows, remote compaction v2, routed Web Search, image gen.",
|
|
10
|
-
"author": "awoaCrim and contributors",
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git+https://github.com/awoaCrim/pi-openai-toolkit.git"
|
|
15
|
-
},
|
|
16
|
-
"bugs": {
|
|
17
|
-
"url": "https://github.com/awoaCrim/pi-openai-toolkit/issues"
|
|
18
|
-
},
|
|
19
|
-
"homepage": "https://github.com/awoaCrim/pi-openai-toolkit#readme",
|
|
20
|
-
"publishConfig": {
|
|
21
|
-
"access": "public",
|
|
22
|
-
"registry": "https://registry.npmjs.org/"
|
|
23
|
-
},
|
|
24
|
-
"keywords": [
|
|
25
|
-
"pi-package",
|
|
26
|
-
"pi-extension",
|
|
27
|
-
"openai",
|
|
28
|
-
"compaction",
|
|
29
|
-
"web-search",
|
|
30
|
-
"image-generation",
|
|
31
|
-
"codex",
|
|
32
|
-
"responses"
|
|
33
|
-
],
|
|
34
|
-
"pi": {
|
|
35
|
-
"extensions": [
|
|
36
|
-
"./src/extension-runtime.ts",
|
|
37
|
-
"./src/web-search/extension.ts",
|
|
38
|
-
"./src/image-generation/extension.ts",
|
|
39
|
-
"./src/codex-fast/extension.ts",
|
|
40
|
-
"./src/codex-astra/extension.ts",
|
|
41
|
-
"./src/responses-websocket/extension.ts"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"files": [
|
|
45
|
-
"src/compact-client.ts",
|
|
46
|
-
"src/compaction-errors.ts",
|
|
47
|
-
"src/compaction-projection.ts",
|
|
48
|
-
"src/pi-context-hook.ts",
|
|
49
|
-
"src/config.ts",
|
|
50
|
-
"src/config-command.ts",
|
|
51
|
-
"src/config/policy.ts",
|
|
52
|
-
"src/config/legacy.ts",
|
|
53
|
-
"src/config/v2.ts",
|
|
54
|
-
"src/config/migration.ts",
|
|
55
|
-
"src/config/notifications.ts",
|
|
56
|
-
"config.schema.json",
|
|
57
|
-
"src/debug.ts",
|
|
58
|
-
"src/details-store.ts",
|
|
59
|
-
"src/deferred-tool-carryover.ts",
|
|
60
|
-
"src/extension-runtime.ts",
|
|
61
|
-
"src/context-management/types.ts",
|
|
62
|
-
"src/context-management/messages.ts",
|
|
63
|
-
"src/context-management/window-budget.ts",
|
|
64
|
-
"src/context-management/window-request.ts",
|
|
65
|
-
"src/context-management/window-bulk.ts",
|
|
66
|
-
"src/context-management/window-manager.ts",
|
|
67
|
-
"src/context-management/manual-compact.ts",
|
|
68
|
-
"src/context-management/codex-provider.ts",
|
|
69
|
-
"src/context-management/history-notes.ts",
|
|
70
|
-
"src/context-management/tools.ts",
|
|
71
|
-
"src/context-management/namespace-tools.ts",
|
|
72
|
-
"src/context-management/tool-contract.ts",
|
|
73
|
-
"src/image-generation/artifacts.ts",
|
|
74
|
-
"src/image-generation/client.ts",
|
|
75
|
-
"src/image-generation/eligibility.ts",
|
|
76
|
-
"src/image-generation/extension.ts",
|
|
77
|
-
"src/image-generation/protocol.ts",
|
|
78
|
-
"src/image-generation/references.ts",
|
|
79
|
-
"src/image-generation/render.ts",
|
|
80
|
-
"src/image-generation/service.ts",
|
|
81
|
-
"src/image-generation/types.ts",
|
|
82
|
-
"src/codex-fast/extension.ts",
|
|
83
|
-
"src/codex-fast/payload.ts",
|
|
84
|
-
"src/codex-fast/state.ts",
|
|
85
|
-
"src/codex-astra/effort-planner.ts",
|
|
86
|
-
"src/codex-astra/extension.ts",
|
|
87
|
-
"src/responses-websocket/extension.ts",
|
|
88
|
-
"src/responses-websocket/transport.ts",
|
|
89
|
-
"src/model-scope.ts",
|
|
90
|
-
"src/native-fallback.ts",
|
|
91
|
-
"src/payload-rewrite.ts",
|
|
92
|
-
"src/provider-headers.ts",
|
|
93
|
-
"src/responses-headers.ts",
|
|
94
|
-
"src/remote-v2-client.ts",
|
|
95
|
-
"src/request-context-cache.ts",
|
|
96
|
-
"src/runtime.ts",
|
|
97
|
-
"src/serializer.ts",
|
|
98
|
-
"src/supported-environment.ts",
|
|
99
|
-
"src/types.ts",
|
|
100
|
-
"src/web-search/alpha-client.ts",
|
|
101
|
-
"src/web-search/extension.ts",
|
|
102
|
-
"src/web-search/payload.ts",
|
|
103
|
-
"src/web-search/prompt.ts",
|
|
104
|
-
"src/web-search/types.ts",
|
|
105
|
-
"docs/internals.md",
|
|
106
|
-
"docs/configuration.md",
|
|
107
|
-
"README.md",
|
|
108
|
-
"README.zh.md",
|
|
109
|
-
"LICENSE",
|
|
110
|
-
"NOTICE",
|
|
111
|
-
"tsconfig.check.json"
|
|
112
|
-
],
|
|
113
|
-
"scripts": {
|
|
114
|
-
"test": "bun test",
|
|
115
|
-
"test:coverage": "bun test --coverage --coverage-reporter=text --coverage-reporter=lcov && node ./scripts/check-lcov.mjs ./coverage/lcov.info",
|
|
116
|
-
"test:pi": "bun test ./test/pi-smoke.test.ts",
|
|
117
|
-
"typecheck": "tsc -p tsconfig.check.json"
|
|
118
|
-
},
|
|
119
|
-
"peerDependencies": {
|
|
120
|
-
"@earendil-works/pi-agent-core": ">=0.87.0",
|
|
121
|
-
"@earendil-works/pi-ai": ">=0.87.0",
|
|
122
|
-
"@earendil-works/pi-coding-agent": ">=0.87.0",
|
|
123
|
-
"@earendil-works/pi-tui": ">=0.87.0"
|
|
124
|
-
},
|
|
125
|
-
"devDependencies": {
|
|
126
|
-
"@earendil-works/pi-agent-core": "1.0.0",
|
|
127
|
-
"@earendil-works/pi-ai": "1.0.0",
|
|
128
|
-
"@earendil-works/pi-coding-agent": "1.0.0",
|
|
129
|
-
"@earendil-works/pi-tui": "1.0.0",
|
|
130
|
-
"@types/node": "24.12.4",
|
|
131
|
-
"bun": "1.2.23",
|
|
132
|
-
"typescript": "5.9.3"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "pi-openai-toolkit",
|
|
3
|
+
"version": "0.22.3",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22.19.0"
|
|
8
|
+
},
|
|
9
|
+
"description": "OpenAI toolkit for Pi: Codex Remote Context windows, remote compaction v2, routed Web Search, image gen.",
|
|
10
|
+
"author": "awoaCrim and contributors",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/awoaCrim/pi-openai-toolkit.git"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/awoaCrim/pi-openai-toolkit/issues"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/awoaCrim/pi-openai-toolkit#readme",
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public",
|
|
22
|
+
"registry": "https://registry.npmjs.org/"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"pi-package",
|
|
26
|
+
"pi-extension",
|
|
27
|
+
"openai",
|
|
28
|
+
"compaction",
|
|
29
|
+
"web-search",
|
|
30
|
+
"image-generation",
|
|
31
|
+
"codex",
|
|
32
|
+
"responses"
|
|
33
|
+
],
|
|
34
|
+
"pi": {
|
|
35
|
+
"extensions": [
|
|
36
|
+
"./src/extension-runtime.ts",
|
|
37
|
+
"./src/web-search/extension.ts",
|
|
38
|
+
"./src/image-generation/extension.ts",
|
|
39
|
+
"./src/codex-fast/extension.ts",
|
|
40
|
+
"./src/codex-astra/extension.ts",
|
|
41
|
+
"./src/responses-websocket/extension.ts"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"src/compact-client.ts",
|
|
46
|
+
"src/compaction-errors.ts",
|
|
47
|
+
"src/compaction-projection.ts",
|
|
48
|
+
"src/pi-context-hook.ts",
|
|
49
|
+
"src/config.ts",
|
|
50
|
+
"src/config-command.ts",
|
|
51
|
+
"src/config/policy.ts",
|
|
52
|
+
"src/config/legacy.ts",
|
|
53
|
+
"src/config/v2.ts",
|
|
54
|
+
"src/config/migration.ts",
|
|
55
|
+
"src/config/notifications.ts",
|
|
56
|
+
"config.schema.json",
|
|
57
|
+
"src/debug.ts",
|
|
58
|
+
"src/details-store.ts",
|
|
59
|
+
"src/deferred-tool-carryover.ts",
|
|
60
|
+
"src/extension-runtime.ts",
|
|
61
|
+
"src/context-management/types.ts",
|
|
62
|
+
"src/context-management/messages.ts",
|
|
63
|
+
"src/context-management/window-budget.ts",
|
|
64
|
+
"src/context-management/window-request.ts",
|
|
65
|
+
"src/context-management/window-bulk.ts",
|
|
66
|
+
"src/context-management/window-manager.ts",
|
|
67
|
+
"src/context-management/manual-compact.ts",
|
|
68
|
+
"src/context-management/codex-provider.ts",
|
|
69
|
+
"src/context-management/history-notes.ts",
|
|
70
|
+
"src/context-management/tools.ts",
|
|
71
|
+
"src/context-management/namespace-tools.ts",
|
|
72
|
+
"src/context-management/tool-contract.ts",
|
|
73
|
+
"src/image-generation/artifacts.ts",
|
|
74
|
+
"src/image-generation/client.ts",
|
|
75
|
+
"src/image-generation/eligibility.ts",
|
|
76
|
+
"src/image-generation/extension.ts",
|
|
77
|
+
"src/image-generation/protocol.ts",
|
|
78
|
+
"src/image-generation/references.ts",
|
|
79
|
+
"src/image-generation/render.ts",
|
|
80
|
+
"src/image-generation/service.ts",
|
|
81
|
+
"src/image-generation/types.ts",
|
|
82
|
+
"src/codex-fast/extension.ts",
|
|
83
|
+
"src/codex-fast/payload.ts",
|
|
84
|
+
"src/codex-fast/state.ts",
|
|
85
|
+
"src/codex-astra/effort-planner.ts",
|
|
86
|
+
"src/codex-astra/extension.ts",
|
|
87
|
+
"src/responses-websocket/extension.ts",
|
|
88
|
+
"src/responses-websocket/transport.ts",
|
|
89
|
+
"src/model-scope.ts",
|
|
90
|
+
"src/native-fallback.ts",
|
|
91
|
+
"src/payload-rewrite.ts",
|
|
92
|
+
"src/provider-headers.ts",
|
|
93
|
+
"src/responses-headers.ts",
|
|
94
|
+
"src/remote-v2-client.ts",
|
|
95
|
+
"src/request-context-cache.ts",
|
|
96
|
+
"src/runtime.ts",
|
|
97
|
+
"src/serializer.ts",
|
|
98
|
+
"src/supported-environment.ts",
|
|
99
|
+
"src/types.ts",
|
|
100
|
+
"src/web-search/alpha-client.ts",
|
|
101
|
+
"src/web-search/extension.ts",
|
|
102
|
+
"src/web-search/payload.ts",
|
|
103
|
+
"src/web-search/prompt.ts",
|
|
104
|
+
"src/web-search/types.ts",
|
|
105
|
+
"docs/internals.md",
|
|
106
|
+
"docs/configuration.md",
|
|
107
|
+
"README.md",
|
|
108
|
+
"README.zh.md",
|
|
109
|
+
"LICENSE",
|
|
110
|
+
"NOTICE",
|
|
111
|
+
"tsconfig.check.json"
|
|
112
|
+
],
|
|
113
|
+
"scripts": {
|
|
114
|
+
"test": "bun test",
|
|
115
|
+
"test:coverage": "bun test --coverage --coverage-reporter=text --coverage-reporter=lcov && node ./scripts/check-lcov.mjs ./coverage/lcov.info",
|
|
116
|
+
"test:pi": "bun test ./test/pi-smoke.test.ts",
|
|
117
|
+
"typecheck": "tsc -p tsconfig.check.json"
|
|
118
|
+
},
|
|
119
|
+
"peerDependencies": {
|
|
120
|
+
"@earendil-works/pi-agent-core": ">=0.87.0",
|
|
121
|
+
"@earendil-works/pi-ai": ">=0.87.0",
|
|
122
|
+
"@earendil-works/pi-coding-agent": ">=0.87.0",
|
|
123
|
+
"@earendil-works/pi-tui": ">=0.87.0"
|
|
124
|
+
},
|
|
125
|
+
"devDependencies": {
|
|
126
|
+
"@earendil-works/pi-agent-core": "1.0.0",
|
|
127
|
+
"@earendil-works/pi-ai": "1.0.0",
|
|
128
|
+
"@earendil-works/pi-coding-agent": "1.0.0",
|
|
129
|
+
"@earendil-works/pi-tui": "1.0.0",
|
|
130
|
+
"@types/node": "24.12.4",
|
|
131
|
+
"bun": "1.2.23",
|
|
132
|
+
"typescript": "5.9.3"
|
|
133
|
+
}
|
|
134
|
+
}
|