-
Notifications
You must be signed in to change notification settings - Fork 1
chore: Phase 6 maintenance — tooling, deps, lint cleanup #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Tests and coverage | ||
| tests/ | ||
| coverage/ | ||
|
|
||
| # Source maps and declarations (built from extensions/) | ||
| tsconfig.json | ||
| vitest.config.ts | ||
| eslint.config.mjs | ||
|
|
||
| # Dev tooling | ||
| node_modules/ | ||
| dist/ | ||
|
|
||
| # Editor | ||
| .vscode/ | ||
| .idea/ | ||
|
|
||
| # OS | ||
| .DS_Store | ||
| Thumbs.db |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 shouldCompact Gate 2 (hardWatermark) is unreachable In (Refers to lines 436-449) Was this helpful? React with 👍 or 👎 to provide feedback. |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -27,8 +27,8 @@ | |||
| if (typeof c === "string") return c; | ||||
| if (Array.isArray(c)) { | ||||
| return c | ||||
| .filter((block: any): boolean => block?.type === "text") | ||||
| .map((block: any): string => block.text ?? "") | ||||
| .join(" "); | ||||
| } | ||||
| return String(c ?? ""); | ||||
|
|
@@ -472,7 +472,7 @@ | |||
| const { | ||||
| protected: protectedMsgs, | ||||
| compressible, | ||||
| discardable: _discardable, | ||||
| // discardable: _discardable, | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Commented-out code left in production source violates repo rules A destructured variable is commented out rather than removed ( Impact: Violates the repository's explicit "no commented-out code in commits" rule. CONTRIBUTING.md rule violation detailCONTRIBUTING.md states: "No debug logs, commented-out code, or TODOs in commits". The previous code destructured
Suggested change
Was this helpful? React with 👍 or 👎 to provide feedback. |
||||
| } = this.classifyMessages(preprocessed); | ||||
|
|
||||
| const tokensBefore = this.estimateTokens(messages); | ||||
|
|
@@ -968,10 +968,10 @@ | |||
| if (msg.role !== "assistant") return msg; | ||||
| if (!Array.isArray(msg.content)) return msg; | ||||
|
|
||||
| const hasThinking = msg.content.some((b: any) => b?.type === "thinking"); | ||||
| if (!hasThinking) return msg; | ||||
|
|
||||
| const newContent = msg.content.filter((b: any) => b?.type !== "thinking"); | ||||
| // If all content was thinking, keep a placeholder | ||||
| if (newContent.length === 0) { | ||||
| return { ...msg, content: "[reasoning stripped]" }; | ||||
|
|
||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ | |
| autoCompact: true, | ||
| }; | ||
|
|
||
| function captureModel(model: any): void { | ||
| if (!model) return; | ||
|
|
||
| const id = | ||
|
|
@@ -43,7 +43,7 @@ | |
| } | ||
|
|
||
| function notify( | ||
| ctx: any, | ||
| message: string, | ||
| type: "info" | "warning" | "error" = "info", | ||
| ): void { | ||
|
|
@@ -67,8 +67,8 @@ | |
| */ | ||
| function handleUltracompactCommand( | ||
| engine: UltraCompactEngine, | ||
| ): (_args: any, ctx: any) => void { | ||
|
Check warning on line 70 in extensions/index.ts
|
||
| return (_args: any, ctx: any) => { | ||
|
Check warning on line 71 in extensions/index.ts
|
||
| // Guard against missing ctx or ctx.compact | ||
| if (typeof ctx?.compact !== "function") { | ||
| console.warn("Ultra-compact warning: ctx.compact unavailable"); | ||
|
|
@@ -241,7 +241,7 @@ | |
| }, | ||
| }, | ||
| }; | ||
| } catch (error) { | ||
| } catch { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 Catch clause drops error context for diagnostics The change from Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| // ── Circuit breaker ───────────────────────────────────────── | ||
| compactionFailures++; | ||
| notify( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Stray garbage text appears in the published changelog
A truncated fragment
l).is left on its own line in the changelog (CHANGELOG.md:34), between the Quality Gates section and the 1.0.0 heading, so users and npm package viewers see nonsensical text.Impact: The published CHANGELOG visible on npm and GitHub contains corrupted/nonsensical text.
Appears to be a copy-paste artifact
Line 34 of
CHANGELOG.mdcontains justl).which looks like the tail end of a sentence that was accidentally left behind when editing. It sits right after the "Quality Gates" bullet list for v1.1.0 and before the## [1.0.0]heading. SinceCHANGELOG.mdis listed in thepackage.json:filesarray (package.json:57), this garbage text will ship in the npm package.Was this helpful? React with 👍 or 👎 to provide feedback.