Skip to content

Commit 1856336

Browse files
author
Ryan Vogel
committed
fix: resolve merge conflicts with dev in serve.ts and status.ts
serve.ts: keep push relay additions (imports, types, helpers) status.ts: use consolidated @/effect import path from dev, keep Log import
2 parents d188915 + 7341718 commit 1856336

544 files changed

Lines changed: 23016 additions & 21999 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/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: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,51 @@
11
{
22
"$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+
},
39
"rules": {
10+
"typescript/no-base-to-string": "warn",
411
// Effect uses `function*` with Effect.gen/Effect.fnUntraced that don't always yield
512
"require-yield": "off",
613
// SolidJS uses `let ref: T | undefined` for JSX ref bindings assigned at runtime
7-
"no-unassigned-vars": "off"
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
849
},
9-
"ignorePatterns": ["**/node_modules", "**/dist", "**/.build", "**/.sst", "**/*.d.ts"]
50+
"ignorePatterns": ["**/node_modules", "**/dist", "**/.build", "**/.sst", "**/*.d.ts", "**/sdk.gen.ts"]
1051
}

bun.lock

Lines changed: 17 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ async function assertOpencodeConnected() {
281281
})
282282
connected = true
283283
break
284-
} catch (e) {}
284+
} catch {}
285285
await sleep(300)
286286
} while (retry++ < 30)
287287

@@ -513,7 +513,7 @@ async function subscribeSessionEvents() {
513513
const decoder = new TextDecoder()
514514

515515
let text = ""
516-
;(async () => {
516+
void (async () => {
517517
while (true) {
518518
try {
519519
const { done, value } = await reader.read()
@@ -542,7 +542,7 @@ async function subscribeSessionEvents() {
542542
? JSON.stringify(part.state.input)
543543
: "Unknown"
544544
console.log()
545-
console.log(color + `|`, "\x1b[0m\x1b[2m" + ` ${tool.padEnd(7, " ")}`, "", "\x1b[0m" + title)
545+
console.log(`${color}|`, `\x1b[0m\x1b[2m ${tool.padEnd(7, " ")}`, "", `\x1b[0m${title}`)
546546
}
547547

548548
if (part.type === "text") {
@@ -561,7 +561,7 @@ async function subscribeSessionEvents() {
561561
if (evt.properties.info.id !== session.id) continue
562562
session = evt.properties.info
563563
}
564-
} catch (e) {
564+
} catch {
565565
// Ignore parse errors
566566
}
567567
}
@@ -576,7 +576,7 @@ async function subscribeSessionEvents() {
576576
async function summarize(response: string) {
577577
try {
578578
return await chat(`Summarize the following in less than 40 characters:\n\n${response}`)
579-
} catch (e) {
579+
} catch {
580580
if (isScheduleEvent()) {
581581
return "Scheduled task changes"
582582
}
@@ -776,7 +776,7 @@ async function assertPermissions() {
776776
console.log(` permission: ${permission}`)
777777
} catch (error) {
778778
console.error(`Failed to check permissions: ${error}`)
779-
throw new Error(`Failed to check permissions for user ${actor}: ${error}`)
779+
throw new Error(`Failed to check permissions for user ${actor}: ${error}`, { cause: error })
780780
}
781781

782782
if (!["admin", "write"].includes(permission)) throw new Error(`User ${actor} does not have write permissions`)

infra/enterprise.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { SECRET } from "./secret"
2-
import { domain, shortDomain } from "./stage"
2+
import { shortDomain } from "./stage"
33

44
const storage = new sst.cloudflare.Bucket("EnterpriseStorage")
55

6-
const teams = new sst.cloudflare.x.SolidStart("Teams", {
6+
new sst.cloudflare.x.SolidStart("Teams", {
77
domain: shortDomain,
88
path: "packages/enterprise",
99
buildCommand: "bun run build:cloudflare",

nix/hashes.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"nodeModules": {
3-
"x86_64-linux": "sha256-PvIx2g1J5QIUIzkz2ABaAM4K/k/+xlBPDUExoOJNNuo=",
4-
"aarch64-linux": "sha256-YTAL+P13L5hgNJdDSiBED/UNa5zdTntnUUYDYL+Jdzo=",
5-
"aarch64-darwin": "sha256-y2VCJifYAp+H0lpDcJ0QfKNMG00Q/usFElaUIpdc8Vs=",
6-
"x86_64-darwin": "sha256-yz8edIlqLp06Y95ad8YjKz5azP7YATPle4TcDx6lM+U="
3+
"x86_64-linux": "sha256-NJAK+cPjwn+2ojDLyyDmBQyx2pD+rILetp7VCylgjek=",
4+
"aarch64-linux": "sha256-q8NTtFQJoyM7TTvErGA6RtmUscxoZKD/mj9N6S5YhkA=",
5+
"aarch64-darwin": "sha256-/ccoSZNLef6j9j14HzpVqhKCR+czM3mhPKPH51mHO24=",
6+
"x86_64-darwin": "sha256-6Pd10sMHL/5ZoWNvGPwPn4/AIs1TKjt/3gFyrVpBaE0="
77
}
88
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"glob": "13.0.5",
8888
"husky": "9.1.7",
8989
"oxlint": "1.60.0",
90+
"oxlint-tsgolint": "0.21.0",
9091
"prettier": "3.6.2",
9192
"semver": "^7.6.0",
9293
"sst": "3.18.10",

packages/app/src/addons/serialize.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ describe("SerializeAddon", () => {
180180
await writeAndWait(term, input)
181181

182182
const origLine = term.buffer.active.getLine(0)
183-
const origFg = origLine!.getCell(0)!.getFgColor()
184-
const origBg = origLine!.getCell(0)!.getBgColor()
183+
const _origFg = origLine!.getCell(0)!.getFgColor()
184+
const _origBg = origLine!.getCell(0)!.getBgColor()
185185
expect(origLine!.getCell(0)!.isBold()).toBe(1)
186186

187187
const serialized = addon.serialize({ range: { start: 0, end: 0 } })

packages/app/src/addons/serialize.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ class StringSerializeHandler extends BaseSerializeHandler {
258258
}
259259

260260
protected _beforeSerialize(rows: number, start: number, _end: number): void {
261-
this._allRows = new Array<string>(rows)
262-
this._allRowSeparators = new Array<string>(rows)
261+
this._allRows = Array.from<string>({ length: rows })
262+
this._allRowSeparators = Array.from<string>({ length: rows })
263263
this._rowIndex = 0
264264

265265
this._currentRow = ""

0 commit comments

Comments
 (0)