pi-openai-toolkit 0.23.1 → 0.23.2

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.
Files changed (42) hide show
  1. package/LICENSE +21 -21
  2. package/NOTICE +83 -83
  3. package/README.md +6 -2
  4. package/README.zh.md +6 -2
  5. package/config.schema.json +278 -278
  6. package/docs/configuration.md +306 -298
  7. package/docs/internals.md +184 -181
  8. package/package.json +136 -135
  9. package/src/compact-client.ts +412 -412
  10. package/src/compaction-projection.ts +35 -35
  11. package/src/config/migration.ts +103 -103
  12. package/src/config.ts +310 -310
  13. package/src/context-management/codex-provider.ts +270 -270
  14. package/src/context-management/history-notes.ts +357 -357
  15. package/src/context-management/manual-compact.ts +247 -599
  16. package/src/context-management/scoped-compaction.ts +89 -0
  17. package/src/context-management/tools.ts +371 -371
  18. package/src/context-management/types.ts +168 -168
  19. package/src/context-management/window-manager.ts +912 -905
  20. package/src/debug.ts +238 -238
  21. package/src/deferred-tool-carryover.ts +282 -282
  22. package/src/details-store.ts +151 -151
  23. package/src/extension-runtime.ts +1919 -1986
  24. package/src/image-generation/extension.ts +189 -189
  25. package/src/image-generation/protocol.ts +579 -579
  26. package/src/image-generation/types.ts +300 -300
  27. package/src/native-fallback.ts +32 -29
  28. package/src/payload-rewrite.ts +515 -515
  29. package/src/pi-context-hook.ts +117 -117
  30. package/src/remote-v2-client.ts +811 -811
  31. package/src/request-context-cache.ts +155 -155
  32. package/src/responses-headers.ts +180 -180
  33. package/src/runtime.ts +865 -865
  34. package/src/serializer.ts +882 -882
  35. package/src/supported-environment.ts +27 -27
  36. package/src/types.ts +565 -565
  37. package/src/web-search/alpha-client.ts +876 -876
  38. package/src/web-search/extension.ts +530 -530
  39. package/src/web-search/payload.ts +299 -299
  40. package/src/web-search/prompt.ts +60 -60
  41. package/src/web-search/types.ts +166 -166
  42. package/tsconfig.check.json +50 -50
@@ -1,27 +1,27 @@
1
- export {
2
- buildCompactUrl,
3
- buildResponsesUrl,
4
- VIRTUAL_MODEL_API,
5
- getNativeCompactionRuntime,
6
- getRuntimeModelDescriptor,
7
- resolveAzureDeploymentName,
8
- resolveEffectiveModel,
9
- registerPhysicalModelObserver,
10
- isResponsesCompatiblePayload,
11
- isSupportedApi,
12
- normalizeBaseUrl,
13
- parseModelSpec,
14
- resolveNativeCompactionEnvironment,
15
- resolveRemoteCompactionExecution,
16
- type EffectiveModelResolution,
17
- type NativeCompactionEnvironmentFailure,
18
- type NativeCompactionEnvironmentResolution,
19
- type NativeCompactionEnvironmentSuccess,
20
- type NativeCompactionRuntime,
21
- type NativeCompactionSupportOptions,
22
- type RemoteCompactionExecution,
23
- type RemoteCompactionExecutionResolution,
24
- type RemoteCompactionExecutionSuccess,
25
- type ResponsesCompatibleRequestPayload,
26
- } from "./runtime.ts";
27
- export { RESPONSES_COMPACT_CAPABLE_APIS } from "./types.ts";
1
+ export {
2
+ buildCompactUrl,
3
+ buildResponsesUrl,
4
+ VIRTUAL_MODEL_API,
5
+ getNativeCompactionRuntime,
6
+ getRuntimeModelDescriptor,
7
+ resolveAzureDeploymentName,
8
+ resolveEffectiveModel,
9
+ registerPhysicalModelObserver,
10
+ isResponsesCompatiblePayload,
11
+ isSupportedApi,
12
+ normalizeBaseUrl,
13
+ parseModelSpec,
14
+ resolveNativeCompactionEnvironment,
15
+ resolveRemoteCompactionExecution,
16
+ type EffectiveModelResolution,
17
+ type NativeCompactionEnvironmentFailure,
18
+ type NativeCompactionEnvironmentResolution,
19
+ type NativeCompactionEnvironmentSuccess,
20
+ type NativeCompactionRuntime,
21
+ type NativeCompactionSupportOptions,
22
+ type RemoteCompactionExecution,
23
+ type RemoteCompactionExecutionResolution,
24
+ type RemoteCompactionExecutionSuccess,
25
+ type ResponsesCompatibleRequestPayload,
26
+ } from "./runtime.ts";
27
+ export { RESPONSES_COMPACT_CAPABLE_APIS } from "./types.ts";