codex-multi-auth 2.1.9 → 2.1.10

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 (56) hide show
  1. package/README.md +413 -412
  2. package/dist/lib/accounts.d.ts +2 -0
  3. package/dist/lib/accounts.d.ts.map +1 -1
  4. package/dist/lib/accounts.js +26 -2
  5. package/dist/lib/accounts.js.map +1 -1
  6. package/dist/lib/codex-manager/commands/forecast.d.ts +5 -1
  7. package/dist/lib/codex-manager/commands/forecast.d.ts.map +1 -1
  8. package/dist/lib/codex-manager/commands/forecast.js +14 -1
  9. package/dist/lib/codex-manager/commands/forecast.js.map +1 -1
  10. package/dist/lib/codex-manager/commands/report.d.ts +2 -0
  11. package/dist/lib/codex-manager/commands/report.d.ts.map +1 -1
  12. package/dist/lib/codex-manager/commands/report.js +17 -1
  13. package/dist/lib/codex-manager/commands/report.js.map +1 -1
  14. package/dist/lib/codex-manager/commands/rotation.d.ts +1 -1
  15. package/dist/lib/codex-manager/commands/rotation.d.ts.map +1 -1
  16. package/dist/lib/codex-manager/commands/rotation.js +71 -1
  17. package/dist/lib/codex-manager/commands/rotation.js.map +1 -1
  18. package/dist/lib/codex-manager/repair-commands.d.ts.map +1 -1
  19. package/dist/lib/codex-manager/repair-commands.js +35 -0
  20. package/dist/lib/codex-manager/repair-commands.js.map +1 -1
  21. package/dist/lib/codex-manager.d.ts.map +1 -1
  22. package/dist/lib/codex-manager.js +2 -0
  23. package/dist/lib/codex-manager.js.map +1 -1
  24. package/dist/lib/forecast.d.ts +9 -0
  25. package/dist/lib/forecast.d.ts.map +1 -1
  26. package/dist/lib/forecast.js +36 -0
  27. package/dist/lib/forecast.js.map +1 -1
  28. package/dist/lib/runtime/runtime-observability.d.ts +17 -0
  29. package/dist/lib/runtime/runtime-observability.d.ts.map +1 -1
  30. package/dist/lib/runtime/runtime-observability.js +48 -0
  31. package/dist/lib/runtime/runtime-observability.js.map +1 -1
  32. package/dist/lib/runtime-rotation-proxy.d.ts +1 -0
  33. package/dist/lib/runtime-rotation-proxy.d.ts.map +1 -1
  34. package/dist/lib/runtime-rotation-proxy.js +119 -20
  35. package/dist/lib/runtime-rotation-proxy.js.map +1 -1
  36. package/package.json +193 -185
  37. package/scripts/audit-dev-allowlist.js +0 -220
  38. package/scripts/bench-format/codex-host.mjs +0 -275
  39. package/scripts/bench-format/hashline-v2.mjs +0 -642
  40. package/scripts/bench-format/models.mjs +0 -110
  41. package/scripts/bench-format/render.mjs +0 -496
  42. package/scripts/bench-format/stats.mjs +0 -54
  43. package/scripts/bench-format/tasks.mjs +0 -151
  44. package/scripts/benchmark-edit-formats.mjs +0 -1164
  45. package/scripts/benchmark-render-dashboard.mjs +0 -49
  46. package/scripts/benchmark-runtime-path.mjs +0 -166
  47. package/scripts/check-pack-budget-lib.js +0 -157
  48. package/scripts/check-pack-budget.mjs +0 -10
  49. package/scripts/copy-oauth-success.js +0 -76
  50. package/scripts/install-codex-auth.js +0 -258
  51. package/scripts/repo-hygiene.js +0 -320
  52. package/scripts/test-all-models.sh +0 -7
  53. package/scripts/test-model-matrix.js +0 -687
  54. package/scripts/update-vendor-provenance.mjs +0 -96
  55. package/scripts/validate-model-map.sh +0 -7
  56. package/scripts/verify-vendor-provenance.mjs +0 -53
@@ -1,151 +0,0 @@
1
- export const BENCHMARK_FIXTURE = {
2
- relativePath: "src/TodoApp.tsx",
3
- sourcePath: "bench/format-benchmark/fixtures/TodoApp.tsx",
4
- };
5
-
6
- function hasAll(content, snippets) {
7
- return snippets.every((snippet) => content.includes(snippet));
8
- }
9
-
10
- function lacksAll(content, snippets) {
11
- return snippets.every((snippet) => !content.includes(snippet));
12
- }
13
-
14
- function regex(content, pattern) {
15
- return pattern.test(content);
16
- }
17
-
18
- export const TASKS = [
19
- {
20
- id: "T01",
21
- name: "Rename heading text",
22
- difficulty: "trivial",
23
- timeoutMs: 120000,
24
- prompt: "Change the heading text from \"My Todos\" to \"Task Board\". Only make this text change.",
25
- validate: (content) => hasAll(content, ["Task Board"]) && lacksAll(content, [">My Todos<"]),
26
- },
27
- {
28
- id: "T02",
29
- name: "Rename input placeholder",
30
- difficulty: "trivial",
31
- timeoutMs: 120000,
32
- prompt: "Change the input placeholder from \"Add a todo...\" to \"What needs to be done?\" and make no other changes.",
33
- validate: (content) => hasAll(content, ["What needs to be done?"]) && lacksAll(content, ["Add a todo..."]),
34
- },
35
- {
36
- id: "T03",
37
- name: "Add clearCompleted action",
38
- difficulty: "easy",
39
- timeoutMs: 180000,
40
- prompt: "Add a clearCompleted function that removes completed todos using filter, and add a \"Clear Completed\" button after the closing </ul> that calls it.",
41
- validate: (content) => hasAll(content, ["clearCompleted", "Clear Completed", "filter"]) && regex(content, /clearCompleted\s*=|function\s+clearCompleted/),
42
- },
43
- {
44
- id: "T04",
45
- name: "Add footer count display",
46
- difficulty: "easy",
47
- timeoutMs: 180000,
48
- prompt: "Add a paragraph right after the closing </ul> that displays the remaining todo count using the text \"items left\".",
49
- validate: (content) => hasAll(content, ["items left"]) && regex(content, /<p[^>]*>.*items left/i),
50
- },
51
- {
52
- id: "T05",
53
- name: "Trim input before add",
54
- difficulty: "easy",
55
- timeoutMs: 180000,
56
- prompt: "Update addTodo to trim the input before checking emptiness and before creating the new todo item. Keep behavior otherwise the same.",
57
- validate: (content) => hasAll(content, [".trim()"]),
58
- },
59
- {
60
- id: "T06",
61
- name: "Duplicate guard in addTodo",
62
- difficulty: "medium",
63
- timeoutMs: 180000,
64
- prompt: "Add a duplicate guard in addTodo so case-insensitive duplicate todo text is not added. Use toLowerCase and a todos.some check.",
65
- validate: (content) => hasAll(content, ["toLowerCase()", ".some("]) && regex(content, /duplicate|already exists|some\(/i),
66
- },
67
- {
68
- id: "T07",
69
- name: "Add max todo limit",
70
- difficulty: "medium",
71
- timeoutMs: 180000,
72
- prompt: "Add a MAX_TODOS constant with value 100 and prevent adding a todo when todos.length is already at the limit.",
73
- validate: (content) => hasAll(content, ["MAX_TODOS", "100"]) && regex(content, /todos\.length\s*>?=\s*MAX_TODOS/),
74
- },
75
- {
76
- id: "T08",
77
- name: "Aria label for checkbox",
78
- difficulty: "easy",
79
- timeoutMs: 180000,
80
- prompt: "Add an aria-label to the checkbox input that includes the todo text and starts with \"Toggle todo\".",
81
- validate: (content) => hasAll(content, ["aria-label", "Toggle todo"]),
82
- },
83
- {
84
- id: "T09",
85
- name: "Aria label for delete button",
86
- difficulty: "easy",
87
- timeoutMs: 180000,
88
- prompt: "Add an aria-label to the Delete button that includes the todo text and starts with \"Delete todo\".",
89
- validate: (content) => hasAll(content, ["aria-label", "Delete todo"]),
90
- },
91
- {
92
- id: "T10",
93
- name: "Rename interface TodoItem",
94
- difficulty: "medium",
95
- timeoutMs: 240000,
96
- prompt: "Rename the TodoItem interface to TodoRecord and update all references in the file accordingly without changing behavior.",
97
- validate: (content) => hasAll(content, ["interface TodoRecord"]) && lacksAll(content, ["interface TodoItem {"]),
98
- },
99
- {
100
- id: "T11",
101
- name: "Extract TodoListItem component",
102
- difficulty: "hard",
103
- timeoutMs: 300000,
104
- prompt: "Extract the list item rendering into a new component named TodoListItem in the same file and use <TodoListItem> inside the todos.map call. Pass todo, onToggle, and onDelete props.",
105
- validate: (content) => regex(content, /function\s+TodoListItem|const\s+TodoListItem\s*=/) && hasAll(content, ["<TodoListItem", "onToggle", "onDelete"]),
106
- },
107
- {
108
- id: "T12",
109
- name: "Add empty state conditional",
110
- difficulty: "hard",
111
- timeoutMs: 300000,
112
- prompt: "Render an empty state paragraph with className \"empty-state\" and text \"No todos yet\" when todos.length is 0, otherwise render the existing <ul> list.",
113
- validate: (content) => hasAll(content, ["empty-state", "No todos yet"]) && regex(content, /todos\.length/),
114
- },
115
- {
116
- id: "T13",
117
- name: "Disable clear completed when none",
118
- difficulty: "medium",
119
- timeoutMs: 240000,
120
- prompt: "If you add a Clear Completed button, make it disabled when there are no completed todos. If the button does not exist yet, add it and wire the disabled state.",
121
- validate: (content) => hasAll(content, ["Clear Completed", "disabled"]) && regex(content, /some\(|filter\(/),
122
- },
123
- {
124
- id: "T14",
125
- name: "Memoize remaining count",
126
- difficulty: "medium",
127
- timeoutMs: 240000,
128
- prompt: "Refactor remainingCount to use React useMemo. Update imports if needed and keep the rendered output unchanged.",
129
- validate: (content) => hasAll(content, ["useMemo", "remainingCount"]) && regex(content, /useMemo\(/),
130
- },
131
- {
132
- id: "T15",
133
- name: "Sort completed last in render",
134
- difficulty: "hard",
135
- timeoutMs: 300000,
136
- prompt: "Before rendering the list, sort todos so incomplete items appear before completed items while preserving the rest of the UI. Do not mutate state directly.",
137
- validate: (content) => regex(content, /\.slice\(\)\.sort\(|const\s+sortedTodos/) && regex(content, /completed/),
138
- },
139
- {
140
- id: "T16",
141
- name: "Add footer summary stats",
142
- difficulty: "medium",
143
- timeoutMs: 240000,
144
- prompt: "Add a footer element after the list that shows total todos and completed todos using labels \"Total:\" and \"Completed:\".",
145
- validate: (content) => hasAll(content, ["<footer", "Total:", "Completed:"]),
146
- },
147
- ];
148
-
149
- export function getTaskMap() {
150
- return new Map(TASKS.map((task) => [task.id, task]));
151
- }