pi-openai-toolkit 0.14.4 → 0.14.6

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 (43) hide show
  1. package/README.md +119 -147
  2. package/README.zh.md +119 -151
  3. package/docs/internals.md +42 -21
  4. package/package.json +127 -127
  5. package/src/auto-mode/classifier.ts +165 -165
  6. package/src/auto-mode/policy.ts +146 -146
  7. package/src/auto-mode/prompt.ts +279 -279
  8. package/src/auto-mode/reviewer.ts +325 -325
  9. package/src/auto-mode/transcript.ts +133 -133
  10. package/src/auto-mode/types.ts +137 -137
  11. package/src/codex-astra/effort-planner.ts +175 -175
  12. package/src/codex-astra/extension.ts +122 -122
  13. package/src/config.ts +621 -592
  14. package/src/context-management/codex-provider.ts +260 -260
  15. package/src/context-management/history-notes.ts +357 -325
  16. package/src/context-management/messages.ts +112 -106
  17. package/src/context-management/namespace-tools.ts +426 -426
  18. package/src/context-management/tool-contract.ts +23 -23
  19. package/src/context-management/tools.ts +306 -311
  20. package/src/context-management/types.ts +168 -161
  21. package/src/context-management/window-budget.ts +83 -83
  22. package/src/context-management/window-manager.ts +60 -51
  23. package/src/context-management/window-request.ts +125 -125
  24. package/src/debug.ts +1 -1
  25. package/src/extension-runtime.ts +34 -9
  26. package/src/image-generation/artifacts.ts +237 -237
  27. package/src/image-generation/client.ts +248 -248
  28. package/src/image-generation/eligibility.ts +18 -18
  29. package/src/image-generation/extension.ts +19 -2
  30. package/src/image-generation/protocol.ts +473 -405
  31. package/src/image-generation/references.ts +194 -194
  32. package/src/image-generation/render.ts +252 -252
  33. package/src/image-generation/service.ts +249 -243
  34. package/src/image-generation/types.ts +189 -184
  35. package/src/model-scope.ts +17 -17
  36. package/src/provider-headers.ts +23 -23
  37. package/src/responses-headers.ts +173 -108
  38. package/src/runtime.ts +513 -477
  39. package/src/types.ts +11 -0
  40. package/src/web-search/extension.ts +80 -80
  41. package/src/web-search/payload.ts +96 -96
  42. package/src/web-search/prompt.ts +20 -20
  43. package/src/web-search/types.ts +45 -45
@@ -1,23 +1,23 @@
1
- export const HISTORY_ACTIONS = [
2
- "list_windows",
3
- "list_items",
4
- "read_item",
5
- "search_contents",
6
- ] as const;
7
-
8
- export const NOTES_ACTIONS = [
9
- "list_files_by_prefix",
10
- "read_file",
11
- "search_contents",
12
- "append_to_file",
13
- "write_file",
14
- ] as const;
15
-
16
- export type HistoryAction = (typeof HISTORY_ACTIONS)[number];
17
- export type NotesAction = (typeof NOTES_ACTIONS)[number];
18
-
19
- export const HISTORY_DESCRIPTION =
20
- "Prior-window detail. Pass IDs unchanged. Search, never browse.";
21
-
22
- export const NOTES_DESCRIPTION =
23
- "Cross-window checkpoints on virtual paths. Relative uses current agent; cross-agent uses <agent>/notes[/path].";
1
+ export const HISTORY_ACTIONS = [
2
+ "list_windows",
3
+ "list_items",
4
+ "read_item",
5
+ "search_contents",
6
+ ] as const;
7
+
8
+ export const NOTES_ACTIONS = [
9
+ "list_files_by_prefix",
10
+ "read_file",
11
+ "search_contents",
12
+ "append_to_file",
13
+ "write_file",
14
+ ] as const;
15
+
16
+ export type HistoryAction = (typeof HISTORY_ACTIONS)[number];
17
+ export type NotesAction = (typeof NOTES_ACTIONS)[number];
18
+
19
+ export const HISTORY_DESCRIPTION =
20
+ "Prior-window detail. Pass IDs unchanged. Search, never browse.";
21
+
22
+ export const NOTES_DESCRIPTION =
23
+ "Cross-window checkpoints on virtual paths. Relative uses current agent; cross-agent uses <agent>/notes[/path].";