opencode-aicodewith-auth 0.1.45 → 0.1.46

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 (2) hide show
  1. package/dist/index.js +3 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -694,15 +694,6 @@ function resolveInclude(body) {
694
694
  }
695
695
  return include;
696
696
  }
697
- function stripItemIds(input) {
698
- return input.filter((item) => item.type !== "item_reference").map((item) => {
699
- if ("id" in item) {
700
- const { id, ...rest } = item;
701
- return rest;
702
- }
703
- return item;
704
- });
705
- }
706
697
  function filterOpenCodeSystemPrompts(input) {
707
698
  if (!Array.isArray(input))
708
699
  return input;
@@ -752,7 +743,6 @@ async function transformRequestBody(body, codexInstructions) {
752
743
  body.stream = true;
753
744
  body.instructions = codexInstructions;
754
745
  if (body.input && Array.isArray(body.input)) {
755
- body.input = stripItemIds(body.input);
756
746
  body.input = filterOpenCodeSystemPrompts(body.input);
757
747
  body.input = addCodexBridgeMessage(body.input, !!body.tools);
758
748
  if (body.input) {
@@ -2026,6 +2016,9 @@ var AicodewithCodexAuthPlugin = async (ctx) => {
2026
2016
  if (input.model.providerID !== PROVIDER_ID2)
2027
2017
  return;
2028
2018
  if (isCodexModel(input.model.id)) {
2019
+ if (!output.options)
2020
+ output.options = {};
2021
+ output.options.store = true;
2029
2022
  return;
2030
2023
  }
2031
2024
  if (!input.model.id?.startsWith("claude-"))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-aicodewith-auth",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "OpenCode plugin for AICodewith authentication - Access GPT-5.3 Codex, GPT-5.2, Claude, and Gemini models through AICodewith API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",