Skip to content

Commit 8a94878

Browse files
committed
chore(cli): update @coana-tech/cli and enhance test coverage
- Update @coana-tech/cli from 14.12.90 to 14.12.94 - Fix import path for DOT_SOCKET_DOT_FACTS_JSON in coana-fix.mts - Add 3 PR mode tests for --limit flag behavior in handle-fix-limit.test.mts - Test limit enforcement in PR mode - Test limit adjustment based on existing open PRs - Test behavior when existing PRs exceed limit - Test coverage increased from 6 to 9 tests (+50%)
1 parent f182044 commit 8a94878

33 files changed

+155
-754
lines changed

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"description": "Coana CLI for static analysis and reachability detection",
136136
"type": "npm",
137137
"package": "@coana-tech/cli",
138-
"version": "14.12.90"
138+
"version": "14.12.94"
139139
},
140140
"@cyclonedx/cdxgen": {
141141
"description": "CycloneDX SBOM generator for software bill of materials",

packages/cli/src/bootstrap/shared/paths.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ export function getSocketHome(): string {
2323
}
2424

2525
/**
26-
* Get the stub binary installation directory.
26+
* Get the bootstrap binary installation directory.
2727
* This is where SEA/yao-pkg executables are cached.
2828
*/
29-
export function getStubDir(): string {
29+
export function getBootstrapBinaryDir(): string {
3030
return path.join(getSocketHome(), '_cli')
3131
}
3232

packages/cli/src/cli-entry.mts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/usr/bin/env node
22

3-
// Load Intl polyfill for --with-intl=none builds.
4-
import './polyfills/intl-stub.mts'
5-
63
// Set global Socket theme for consistent CLI branding.
74
import { setTheme } from '@socketsecurity/lib/themes'
85
setTheme('socket')

packages/cli/src/commands/console/InteractiveConsoleApp.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -516,22 +516,6 @@ const InteractiveConsoleAppComponent = function InteractiveConsoleApp({
516516

517517
const { consoleHeight, inputHeight } = heights
518518

519-
// TODO: Mouse click detection for focus switching.
520-
// Current challenge: When we enable ANSI mouse tracking escape codes,
521-
// the terminal sends mouse events as escape sequences on stdin (e.g., \x1b[<0;17;35M).
522-
// Both our stdin.on('data') handler AND Ink's useInput see the same data.
523-
// Ink doesn't recognize these as mouse events, so it treats them as text input,
524-
// causing escape sequences to appear in the input field.
525-
//
526-
// Potential solutions:
527-
// 1. Fork Ink to add native mouse support
528-
// 2. Use stdin.setRawMode(true) and handle ALL input ourselves (major refactor)
529-
// 3. Pre-filter stdin before Ink sees it (requires patching Node.js stream)
530-
// 4. Use a blessed/blessed-contrib approach with complete terminal control
531-
//
532-
// For now: Use Tab key to switch focus (works perfectly).
533-
// Future: Implement proper mouse support when we have time for the refactor.
534-
535519
// Callbacks for InputArea (memoized to prevent re-renders).
536520
const handleInputHeightChange = useCallback((lineCount: number) => {
537521
setInputLineCount(prevCount => {

packages/cli/src/commands/fix/coana-fix.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { readJsonSync } from '@socketsecurity/lib/fs'
88
import { getDefaultLogger } from '@socketsecurity/lib/logger'
99
import { pluralize } from '@socketsecurity/lib/words'
1010

11-
import { DOT_SOCKET_DOT_FACTS_JSON } from '../../constants/packages.mts'
11+
import { DOT_SOCKET_DOT_FACTS_JSON } from '../../constants/paths.mts'
1212

1313
import {
1414
cleanupErrorBranches,

packages/cli/src/polyfills/intl-stub.mts

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/cli/src/polyfills/intl-stub/base.mts

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/cli/src/polyfills/intl-stub/collator.mts

Lines changed: 0 additions & 50 deletions
This file was deleted.

packages/cli/src/polyfills/intl-stub/date-time-format.mts

Lines changed: 0 additions & 52 deletions
This file was deleted.

packages/cli/src/polyfills/intl-stub/display-names.mts

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)