Skip to content

Commit a2233d2

Browse files
authored
Merge pull request #7 from flexion/chore/merge-dev-into-flex
chore - merge dev into flex, resolve conflicts in session/llm.ts and session/prompt.ts
2 parents 2a67b0f + eb0dd25 commit a2233d2

870 files changed

Lines changed: 48999 additions & 37735 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.

.opencode/agent/translator.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,6 @@ OPENCODE_DISABLE_CLAUDE_CODE
594594
OPENCODE_DISABLE_CLAUDE_CODE_PROMPT
595595
OPENCODE_DISABLE_CLAUDE_CODE_SKILLS
596596
OPENCODE_DISABLE_DEFAULT_PLUGINS
597-
OPENCODE_DISABLE_FILETIME_CHECK
598597
OPENCODE_DISABLE_LSP_DOWNLOAD
599598
OPENCODE_DISABLE_MODELS_FETCH
600599
OPENCODE_DISABLE_PRUNE

.opencode/opencode.jsonc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"$schema": "https://opencode.ai/config.json",
3-
"provider": {
4-
"opencode": {
5-
"options": {},
6-
},
7-
},
3+
"provider": {},
84
"permission": {
95
"edit": {
106
"packages/opencode/migration/*": "deny",

.opencode/tool/github-pr-search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ async function githubFetch(endpoint: string, options: RequestInit = {}) {
77
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
88
Accept: "application/vnd.github+json",
99
"Content-Type": "application/json",
10-
...options.headers,
10+
...(options.headers instanceof Headers ? Object.fromEntries(options.headers.entries()) : options.headers),
1111
},
1212
})
1313
if (!response.ok) {

.opencode/tool/github-triage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function githubFetch(endpoint: string, options: RequestInit = {}) {
2828
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
2929
Accept: "application/vnd.github+json",
3030
"Content-Type": "application/json",
31-
...options.headers,
31+
...(options.headers instanceof Headers ? Object.fromEntries(options.headers.entries()) : options.headers),
3232
},
3333
})
3434
if (!response.ok) {

.oxlintrc.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/nicolo-ribaudo/oxc-project.github.io/refs/heads/json-schema/src/public/.oxlintrc.schema.json",
3+
"options": {
4+
"typeAware": true
5+
},
6+
"categories": {
7+
"suspicious": "warn"
8+
},
9+
"rules": {
10+
"typescript/no-base-to-string": "warn",
11+
// Effect uses `function*` with Effect.gen/Effect.fnUntraced that don't always yield
12+
"require-yield": "off",
13+
// SolidJS uses `let ref: T | undefined` for JSX ref bindings assigned at runtime
14+
"no-unassigned-vars": "off",
15+
// SolidJS tracks reactive deps by reading properties inside createEffect
16+
"no-unused-expressions": "off",
17+
// Intentional control char matching (ANSI escapes, null byte sanitization)
18+
"no-control-regex": "off",
19+
// SST and plugin tools require triple-slash references
20+
"triple-slash-reference": "off",
21+
22+
// Suspicious category: suppress noisy rules
23+
// Effect's nested function* closures inherently shadow outer scope
24+
"no-shadow": "off",
25+
// Namespace-heavy codebase makes this too noisy
26+
"unicorn/consistent-function-scoping": "off",
27+
// Opinionated — .sort()/.reverse() mutation is fine in this codebase
28+
"unicorn/no-array-sort": "off",
29+
"unicorn/no-array-reverse": "off",
30+
// Not relevant — this isn't a DOM event handler codebase
31+
"unicorn/prefer-add-event-listener": "off",
32+
// Bundler handles module resolution
33+
"unicorn/require-module-specifiers": "off",
34+
// postMessage target origin not relevant for this codebase
35+
"unicorn/require-post-message-target-origin": "off",
36+
// Side-effectful constructors are intentional in some places
37+
"no-new": "off",
38+
39+
// Type-aware: catch unhandled promises
40+
"typescript/no-floating-promises": "warn",
41+
// Warn when spreading non-plain objects (Headers, class instances, etc.)
42+
"typescript/no-misused-spread": "warn"
43+
},
44+
"options": {
45+
"typeAware": true
46+
},
47+
"options": {
48+
"typeAware": true
49+
},
50+
"ignorePatterns": ["**/node_modules", "**/dist", "**/.build", "**/.sst", "**/*.d.ts", "**/sdk.gen.ts"]
51+
}

AGENTS.md

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,10 @@
1111
- Keep things in one function unless composable or reusable
1212
- Avoid `try`/`catch` where possible
1313
- Avoid using the `any` type
14-
- Prefer single word variable names where possible
1514
- Use Bun APIs when possible, like `Bun.file()`
1615
- Rely on type inference when possible; avoid explicit type annotations or interfaces unless necessary for exports or clarity
1716
- Prefer functional array methods (flatMap, filter, map) over for loops; use type guards on filter to maintain type inference downstream
18-
19-
### Naming
20-
21-
Prefer single word names for variables and functions. Only use multiple words if necessary.
22-
23-
### Naming Enforcement (Read This)
24-
25-
THIS RULE IS MANDATORY FOR AGENT WRITTEN CODE.
26-
27-
- Use single word names by default for new locals, params, and helper functions.
28-
- Multi-word names are allowed only when a single word would be unclear or ambiguous.
29-
- Do not introduce new camelCase compounds when a short single-word alternative is clear.
30-
- Before finishing edits, review touched lines and shorten newly introduced identifiers where possible.
31-
- Good short names to prefer: `pid`, `cfg`, `err`, `opts`, `dir`, `root`, `child`, `state`, `timeout`.
32-
- Examples to avoid unless truly required: `inputPID`, `existingClient`, `connectTimeout`, `workerPath`.
33-
34-
```ts
35-
// Good
36-
const foo = 1
37-
function journal(dir: string) {}
38-
39-
// Bad
40-
const fooBar = 1
41-
function prepareJournal(dir: string) {}
42-
```
17+
- In `src/config`, follow the existing self-export pattern at the top of the file (for example `export * as ConfigAgent from "./agent"`) when adding a new config module.
4318

4419
Reduce total variable count by inlining when a value is only used once.
4520

0 commit comments

Comments
 (0)