Skip to content

Commit 3a56eda

Browse files
committed
feat: initialize codex-multi-auth project
0 parents  commit 3a56eda

193 files changed

Lines changed: 58070 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug Report
3+
about: Report a bug or issue with the plugin
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
**Bug Description**
10+
A clear and concise description of the bug.
11+
12+
**Steps to Reproduce**
13+
1.
14+
2.
15+
3.
16+
17+
**Expected Behavior**
18+
What should happen.
19+
20+
**Actual Behavior**
21+
What actually happens.
22+
23+
**Environment**
24+
- opencode version:
25+
- Plugin version:
26+
- Operating System:
27+
- Node.js version:
28+
29+
**Logs**
30+
If applicable, attach logs from `~/.opencode/logs/codex-plugin/` (enable with `ENABLE_PLUGIN_REQUEST_LOGGING=1`)
31+
32+
**Compliance Checklist**
33+
Please confirm:
34+
- [ ] I'm using this plugin for personal development only
35+
- [ ] I have an active ChatGPT Plus/Pro subscription
36+
- [ ] This issue is not related to attempting commercial use or TOS violations
37+
- [ ] I've reviewed the FAQ and Troubleshooting sections
38+
39+
**Additional Context**
40+
Add any other relevant information.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: OpenAI Support
4+
url: https://help.openai.com/
5+
about: For ChatGPT account or subscription issues, contact OpenAI directly
6+
- name: OpenAI Terms of Service
7+
url: https://openai.com/policies/terms-of-use/
8+
about: Review OpenAI's Terms of Service for compliance questions
9+
- name: Discussions
10+
url: https://github.com/numman-ali/opencode-openai-codex-auth/discussions
11+
about: Ask questions or discuss the plugin with the community
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Feature Request
3+
about: Suggest a new feature or enhancement
4+
title: '[FEATURE] '
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
**Feature Description**
10+
A clear description of the feature you'd like to see.
11+
12+
**Use Case**
13+
Explain how this feature would be used and what problem it solves.
14+
15+
**Proposed Implementation**
16+
If you have ideas about how this could be implemented, share them here.
17+
18+
**Compliance Consideration**
19+
Please confirm:
20+
- [ ] This feature is for personal development use
21+
- [ ] This feature does not violate or circumvent OpenAI's Terms of Service
22+
- [ ] This feature is not intended for commercial resale or multi-user access
23+
24+
**Alternatives Considered**
25+
Have you considered any alternative solutions or workarounds?
26+
27+
**Additional Context**
28+
Add any other context, screenshots, or examples.

.github/dependabot.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
day: "monday"
8+
open-pull-requests-limit: 5
9+
labels:
10+
- "dependencies"
11+
- "npm"
12+
commit-message:
13+
prefix: "deps"
14+
groups:
15+
dev-dependencies:
16+
dependency-type: "development"
17+
update-types:
18+
- "minor"
19+
- "patch"
20+
21+
- package-ecosystem: "github-actions"
22+
directory: "/"
23+
schedule:
24+
interval: "weekly"
25+
day: "monday"
26+
open-pull-requests-limit: 5
27+
labels:
28+
- "dependencies"
29+
- "github-actions"
30+
commit-message:
31+
prefix: "ci"

.github/workflows/ci.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
name: Test on Node.js ${{ matrix.node-version }}
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [20.x, 22.x]
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: 'npm'
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Security audit (CI policy)
32+
run: npm run audit:ci
33+
34+
- name: Security audit (full dependency tree, non-blocking)
35+
continue-on-error: true
36+
run: npm run audit:all
37+
38+
- name: Run type check
39+
run: npm run typecheck
40+
41+
- name: Run tests with coverage
42+
run: npm run coverage
43+
44+
- name: Build
45+
run: npm run build
46+
47+
lint:
48+
name: Lint
49+
50+
runs-on: ubuntu-latest
51+
52+
steps:
53+
- name: Checkout code
54+
uses: actions/checkout@v4
55+
56+
- name: Setup Node.js
57+
uses: actions/setup-node@v4
58+
with:
59+
node-version: 20.x
60+
cache: 'npm'
61+
62+
- name: Install dependencies
63+
run: npm ci
64+
65+
- name: Run ESLint
66+
run: npm run lint
67+
68+
codex-compat:
69+
name: Codex Compatibility Smoke
70+
runs-on: ubuntu-latest
71+
72+
steps:
73+
- name: Checkout code
74+
uses: actions/checkout@v4
75+
76+
- name: Setup Node.js
77+
uses: actions/setup-node@v4
78+
with:
79+
node-version: 20.x
80+
cache: 'npm'
81+
82+
- name: Install dependencies
83+
run: npm ci
84+
85+
- name: Run Codex compatibility tests
86+
run: npm run test -- test/codex.test.ts test/opencode-codex.test.ts test/request-transformer.test.ts test/fetch-helpers.test.ts

.github/workflows/codeql.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: '0 3 * * 0'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v3
26+
with:
27+
languages: javascript-typescript
28+
queries: security-extended
29+
30+
- name: Autobuild
31+
uses: github/codeql-action/autobuild@v3
32+
33+
- name: Perform CodeQL Analysis
34+
uses: github/codeql-action/analyze@v3

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
node_modules/
2+
bun.lockb
3+
pnpm-lock.yaml
4+
dist/
5+
.DS_Store
6+
.history/
7+
opencode.json
8+
.opencode/
9+
tmp
10+
tmp*
11+
.tmp*/
12+
.tmp-*/
13+
.tmp-*
14+
*.tgz
15+
*.patched
16+
*first_fail*
17+
Heap-*.heapsnapshot
18+
.codex-cache
19+
.sisyphus/
20+
coverage/
21+
winston/
22+
.tmp-plugin-test/
23+
.tmp-bench/
24+
.tmp-release-*.md
25+
task_plan.md
26+
findings.md
27+
progress.md

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

.npmignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.git
2+
.gitignore
3+
.DS_Store
4+
node_modules/
5+
bun.lockb
6+
pnpm-lock.yaml
7+
package-lock.json
8+
opencode.json
9+
test-*.mjs
10+
*.log
11+
.vscode/
12+
.idea/
13+
docs/
14+
.github/

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

0 commit comments

Comments
 (0)