feat: migrate 17 leaf modules from JavaScript to TypeScript #1621
ci.yml
on: pull_request
Matrix: test
Lint
54s
TypeScript type check
55s
Verify dynamic imports
9s
Rust compile check
25s
CI Testing Pipeline
2s
Annotations
16 errors
|
Test Node 20 (macos-latest)
Process completed with exit code 1.
|
|
tests/unit/registry.test.js > REGISTRY_PATH > respects CODEGRAPH_REGISTRY_PATH env var:
tests/unit/registry.test.js#L39
Error: Command failed: node --input-type=module -e import { REGISTRY_PATH } from './src/infrastructure/registry.js'; process.stdout.write(REGISTRY_PATH);
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/runner/work/codegraph/codegraph/src/infrastructure/logger.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)
at defaultGetFormat (node:internal/modules/esm/get_format:232:36)
at defaultLoad (node:internal/modules/esm/load:145:22)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:451:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.20.0
❯ tests/unit/registry.test.js:39:32
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '', '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/runner/work/codegraph/codegraph/src/infrastructure/logger.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.0\n' ], pid: 6301, stdout: '', stderr: '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/runner/work/codegraph/codegraph/src/infrastructure/logger.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.0\n' }
|
|
tests/integration/cli.test.js:
tests/integration/cli.test.js#L43
Error: Command failed: node /Users/runner/work/codegraph/codegraph/src/cli.js build /var/folders/t5/f77_gwnj6p95qxy9py3fckx00000gn/T/codegraph-cli-QxZfuF --engine wasm
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/runner/work/codegraph/codegraph/src/shared/errors.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)
at defaultGetFormat (node:internal/modules/esm/get_format:232:36)
at defaultLoad (node:internal/modules/esm/load:145:22)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:451:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.20.0
❯ run tests/integration/cli.test.js:43:22
❯ tests/integration/cli.test.js:59:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '', '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/runner/work/codegraph/codegraph/src/shared/errors.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.0\n' ], pid: 6655, stdout: '', stderr: '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/runner/work/codegraph/codegraph/src/shared/errors.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.0\n' }
|
|
tests/integration/batch.test.js > batch CLI > batch accepts comma-separated positional targets:
tests/integration/batch.test.js#L229
Error: Command failed: node /Users/runner/work/codegraph/codegraph/src/cli.js batch where authenticate,validateToken --db /var/folders/t5/f77_gwnj6p95qxy9py3fckx00000gn/T/codegraph-batch-EW2J6W/.codegraph/graph.db
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/runner/work/codegraph/codegraph/src/shared/errors.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)
at defaultGetFormat (node:internal/modules/esm/get_format:232:36)
at defaultLoad (node:internal/modules/esm/load:145:22)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:451:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.20.0
❯ tests/integration/batch.test.js:229:29
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '', '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/runner/work/codegraph/codegraph/src/shared/errors.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.0\n' ], pid: 6775, stdout: '', stderr: '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/runner/work/codegraph/codegraph/src/shared/errors.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.0\n' }
|
|
tests/integration/batch.test.js > batch CLI > outputs valid JSON:
tests/integration/batch.test.js#L218
Error: Command failed: node /Users/runner/work/codegraph/codegraph/src/cli.js batch query authenticate --db /var/folders/t5/f77_gwnj6p95qxy9py3fckx00000gn/T/codegraph-batch-EW2J6W/.codegraph/graph.db
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/runner/work/codegraph/codegraph/src/shared/errors.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)
at defaultGetFormat (node:internal/modules/esm/get_format:232:36)
at defaultLoad (node:internal/modules/esm/load:145:22)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:451:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.20.0
❯ tests/integration/batch.test.js:218:29
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '', '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/runner/work/codegraph/codegraph/src/shared/errors.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.0\n' ], pid: 6766, stdout: '', stderr: '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/runner/work/codegraph/codegraph/src/shared/errors.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.0\n' }
|
|
Test Node 20 (ubuntu-latest)
Process completed with exit code 1.
|
|
tests/unit/registry.test.js > REGISTRY_PATH > respects CODEGRAPH_REGISTRY_PATH env var:
tests/unit/registry.test.js#L39
Error: Command failed: node --input-type=module -e import { REGISTRY_PATH } from './src/infrastructure/registry.js'; process.stdout.write(REGISTRY_PATH);
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/runner/work/codegraph/codegraph/src/infrastructure/logger.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)
at defaultGetFormat (node:internal/modules/esm/get_format:232:36)
at defaultLoad (node:internal/modules/esm/load:145:22)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:451:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.20.1
❯ tests/unit/registry.test.js:39:32
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '', '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/runner/work/codegraph/codegraph/src/infrastructure/logger.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.1\n' ], pid: 3183, stdout: '', stderr: '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/runner/work/codegraph/codegraph/src/infrastructure/logger.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.1\n' }
|
|
tests/integration/cli.test.js:
tests/integration/cli.test.js#L43
Error: Command failed: node /home/runner/work/codegraph/codegraph/src/cli.js build /tmp/codegraph-cli-41lUum --engine wasm
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/runner/work/codegraph/codegraph/src/shared/errors.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)
at defaultGetFormat (node:internal/modules/esm/get_format:232:36)
at defaultLoad (node:internal/modules/esm/load:145:22)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:451:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.20.1
❯ run tests/integration/cli.test.js:43:22
❯ tests/integration/cli.test.js:59:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '', '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/runner/work/codegraph/codegraph/src/shared/errors.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.1\n' ], pid: 3411, stdout: '', stderr: '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/runner/work/codegraph/codegraph/src/shared/errors.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.1\n' }
|
|
tests/integration/batch.test.js > batch CLI > batch accepts comma-separated positional targets:
tests/integration/batch.test.js#L229
Error: Command failed: node /home/runner/work/codegraph/codegraph/src/cli.js batch where authenticate,validateToken --db /tmp/codegraph-batch-gRXnYa/.codegraph/graph.db
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/runner/work/codegraph/codegraph/src/shared/errors.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)
at defaultGetFormat (node:internal/modules/esm/get_format:232:36)
at defaultLoad (node:internal/modules/esm/load:145:22)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:451:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.20.1
❯ tests/integration/batch.test.js:229:29
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '', '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/runner/work/codegraph/codegraph/src/shared/errors.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.1\n' ], pid: 3515, stdout: '', stderr: '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/runner/work/codegraph/codegraph/src/shared/errors.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.1\n' }
|
|
tests/integration/batch.test.js > batch CLI > outputs valid JSON:
tests/integration/batch.test.js#L218
Error: Command failed: node /home/runner/work/codegraph/codegraph/src/cli.js batch query authenticate --db /tmp/codegraph-batch-gRXnYa/.codegraph/graph.db
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/runner/work/codegraph/codegraph/src/shared/errors.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)
at defaultGetFormat (node:internal/modules/esm/get_format:232:36)
at defaultLoad (node:internal/modules/esm/load:145:22)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:451:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.20.1
❯ tests/integration/batch.test.js:218:29
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '', '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/runner/work/codegraph/codegraph/src/shared/errors.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.1\n' ], pid: 3503, stdout: '', stderr: '\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/runner/work/codegraph/codegraph/src/shared/errors.ts\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\n at defaultLoad (node:internal/modules/esm/load:145:22)\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\n}\n\nNode.js v20.20.1\n' }
|
|
Test Node 20 (windows-latest)
Process completed with exit code 1.
|
|
tests/unit/registry.test.js > REGISTRY_PATH > respects CODEGRAPH_REGISTRY_PATH env var:
tests/unit/registry.test.js#L39
Error: Command failed: node --input-type=module -e import { REGISTRY_PATH } from './src/infrastructure/registry.js'; process.stdout.write(REGISTRY_PATH);
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\a\codegraph\codegraph\src\infrastructure\logger.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)
at defaultGetFormat (node:internal/modules/esm/get_format:232:36)
at defaultLoad (node:internal/modules/esm/load:145:22)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:451:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.20.0
❯ tests/unit/registry.test.js:39:32
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '', '\r\nnode:internal/modules/run_main:123\r\n triggerUncaughtException(\r\n ^\r\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\a\codegraph\codegraph\src\infrastructure\logger.ts\r\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\r\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\r\n at defaultLoad (node:internal/modules/esm/load:145:22)\r\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\r\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\r\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\r\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\r\n}\r\n\r\nNode.js v20.20.0\r\n' ], pid: 6424, stdout: '', stderr: '\r\nnode:internal/modules/run_main:123\r\n triggerUncaughtException(\r\n ^\r\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\a\codegraph\codegraph\src\infrastructure\logger.ts\r\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\r\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\r\n at defaultLoad (node:internal/modules/esm/load:145:22)\r\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\r\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\r\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\r\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\r\n}\r\n\r\nNode.js v20.20.0\r\n' }
|
|
tests/integration/cli.test.js:
tests/integration/cli.test.js#L43
Error: Command failed: node D:\a\codegraph\codegraph\src\cli.js build C:\Users\RUNNER~1\AppData\Local\Temp\codegraph-cli-xyqxTg --engine wasm
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\a\codegraph\codegraph\src\shared\errors.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)
at defaultGetFormat (node:internal/modules/esm/get_format:232:36)
at defaultLoad (node:internal/modules/esm/load:145:22)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:451:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.20.0
❯ run tests/integration/cli.test.js:43:22
❯ tests/integration/cli.test.js:59:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '', '\r\nnode:internal/modules/run_main:123\r\n triggerUncaughtException(\r\n ^\r\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\a\codegraph\codegraph\src\shared\errors.ts\r\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\r\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\r\n at defaultLoad (node:internal/modules/esm/load:145:22)\r\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\r\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\r\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\r\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\r\n}\r\n\r\nNode.js v20.20.0\r\n' ], pid: 5920, stdout: '', stderr: '\r\nnode:internal/modules/run_main:123\r\n triggerUncaughtException(\r\n ^\r\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\a\codegraph\codegraph\src\shared\errors.ts\r\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\r\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\r\n at defaultLoad (node:internal/modules/esm/load:145:22)\r\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\r\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\r\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\r\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\r\n}\r\n\r\nNode.js v20.20.0\r\n' }
|
|
tests/integration/batch.test.js > batch CLI > batch accepts comma-separated positional targets:
tests/integration/batch.test.js#L229
Error: Command failed: node D:\a\codegraph\codegraph\src\cli.js batch where authenticate,validateToken --db C:\Users\RUNNER~1\AppData\Local\Temp\codegraph-batch-S0UHgF\.codegraph\graph.db
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\a\codegraph\codegraph\src\shared\errors.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)
at defaultGetFormat (node:internal/modules/esm/get_format:232:36)
at defaultLoad (node:internal/modules/esm/load:145:22)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:451:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.20.0
❯ tests/integration/batch.test.js:229:29
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '', '\r\nnode:internal/modules/run_main:123\r\n triggerUncaughtException(\r\n ^\r\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\a\codegraph\codegraph\src\shared\errors.ts\r\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\r\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\r\n at defaultLoad (node:internal/modules/esm/load:145:22)\r\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\r\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\r\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\r\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\r\n}\r\n\r\nNode.js v20.20.0\r\n' ], pid: 1808, stdout: '', stderr: '\r\nnode:internal/modules/run_main:123\r\n triggerUncaughtException(\r\n ^\r\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\a\codegraph\codegraph\src\shared\errors.ts\r\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\r\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\r\n at defaultLoad (node:internal/modules/esm/load:145:22)\r\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\r\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\r\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\r\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\r\n}\r\n\r\nNode.js v20.20.0\r\n' }
|
|
tests/integration/batch.test.js > batch CLI > outputs valid JSON:
tests/integration/batch.test.js#L218
Error: Command failed: node D:\a\codegraph\codegraph\src\cli.js batch query authenticate --db C:\Users\RUNNER~1\AppData\Local\Temp\codegraph-batch-S0UHgF\.codegraph\graph.db
node:internal/modules/run_main:123
triggerUncaughtException(
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\a\codegraph\codegraph\src\shared\errors.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)
at defaultGetFormat (node:internal/modules/esm/get_format:232:36)
at defaultLoad (node:internal/modules/esm/load:145:22)
at async nextLoad (node:internal/modules/esm/hooks:864:22)
at async Hooks.load (node:internal/modules/esm/hooks:451:20)
at async handleMessage (node:internal/modules/esm/worker:196:18) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.20.0
❯ tests/integration/batch.test.js:218:29
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { status: 1, signal: null, output: [ null, '', '\r\nnode:internal/modules/run_main:123\r\n triggerUncaughtException(\r\n ^\r\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\a\codegraph\codegraph\src\shared\errors.ts\r\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\r\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\r\n at defaultLoad (node:internal/modules/esm/load:145:22)\r\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\r\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\r\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\r\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\r\n}\r\n\r\nNode.js v20.20.0\r\n' ], pid: 3940, stdout: '', stderr: '\r\nnode:internal/modules/run_main:123\r\n triggerUncaughtException(\r\n ^\r\nTypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for D:\a\codegraph\codegraph\src\shared\errors.ts\r\n at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:189:9)\r\n at defaultGetFormat (node:internal/modules/esm/get_format:232:36)\r\n at defaultLoad (node:internal/modules/esm/load:145:22)\r\n at async nextLoad (node:internal/modules/esm/hooks:864:22)\r\n at async Hooks.load (node:internal/modules/esm/hooks:451:20)\r\n at async handleMessage (node:internal/modules/esm/worker:196:18) {\r\n code: \'ERR_UNKNOWN_FILE_EXTENSION\'\r\n}\r\n\r\nNode.js v20.20.0\r\n' }
|
|
CI Testing Pipeline
Process completed with exit code 1.
|