mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 16:14:31 +00:00
fix: separate type-only exports and migrate test imports from dist/ to src/
Spinner interface re-exported as value in checks/index.ts caused Bun runtime crash. Test files importing from dist/ failed without build step.
This commit is contained in:
1 parent
8262c8d205
commit
0483444864
4 files changed
+9
-9
No files matched your search
@@ -3,16 +3,16 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Types and utilities
|
// Types and utilities
|
||||||
export {
|
export type {
|
||||||
HealthCheck,
|
|
||||||
HealthCheckDetails,
|
HealthCheckDetails,
|
||||||
HealthCheckItem,
|
HealthCheckItem,
|
||||||
HealthIssue,
|
HealthIssue,
|
||||||
IHealthChecker,
|
|
||||||
Spinner,
|
Spinner,
|
||||||
createSpinner,
|
IHealthChecker,
|
||||||
} from './types';
|
} from './types';
|
||||||
|
|
||||||
|
export { HealthCheck, createSpinner } from './types';
|
||||||
|
|
||||||
// System checks
|
// System checks
|
||||||
export { ClaudeCliChecker, CcsDirectoryChecker, runSystemChecks } from './system-check';
|
export { ClaudeCliChecker, CcsDirectoryChecker, runSystemChecks } from './system-check';
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ import { describe, it, expect } from 'bun:test';
|
|||||||
import {
|
import {
|
||||||
validatePort,
|
validatePort,
|
||||||
CLIPROXY_DEFAULT_PORT,
|
CLIPROXY_DEFAULT_PORT,
|
||||||
} from '../../../dist/cliproxy/config-generator';
|
} from '../../../src/cliproxy/config-generator';
|
||||||
import { resolveProxyConfig } from '../../../dist/cliproxy/proxy-config-resolver';
|
import { resolveProxyConfig } from '../../../src/cliproxy/proxy-config-resolver';
|
||||||
|
|
||||||
describe('Port Validation', () => {
|
describe('Port Validation', () => {
|
||||||
describe('validatePort()', () => {
|
describe('validatePort()', () => {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { describe, it, expect } from 'bun:test';
|
import { describe, it, expect } from 'bun:test';
|
||||||
import { detectRunningProxy } from '../../../dist/cliproxy/proxy-detector';
|
import { detectRunningProxy } from '../../../src/cliproxy/proxy-detector';
|
||||||
import { CLIPROXY_DEFAULT_PORT } from '../../../dist/cliproxy/config-generator';
|
import { CLIPROXY_DEFAULT_PORT } from '../../../src/cliproxy/config-generator';
|
||||||
|
|
||||||
describe('Proxy Detector Port Validation', () => {
|
describe('Proxy Detector Port Validation', () => {
|
||||||
describe('detectRunningProxy with invalid ports', () => {
|
describe('detectRunningProxy with invalid ports', () => {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { describe, expect, test } from 'bun:test';
|
import { describe, expect, test } from 'bun:test';
|
||||||
import { sanitizeInputSchema, sanitizeToolSchemas } from '../../../dist/cliproxy/schema-sanitizer.js';
|
import { sanitizeInputSchema, sanitizeToolSchemas } from '../../../src/cliproxy/schema-sanitizer';
|
||||||
|
|
||||||
describe('sanitizeInputSchema', () => {
|
describe('sanitizeInputSchema', () => {
|
||||||
test('preserves Gemini-supported properties', () => {
|
test('preserves Gemini-supported properties', () => {
|
||||||
|
|||||||
Reference in new issue
Block a user