Skip to content

Commit 0c0b711

Browse files
committed
Begin adding typescript frontend for CLDK
Signed-off-by: Rahul Krishna <rkrsn@ibm.com>
1 parent b4fc2bd commit 0c0b711

18 files changed

Lines changed: 1875 additions & 1 deletion

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
################################################################################
2+
# Copyright IBM Corporation 2026
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
################################################################################
16+
17+
from cldk.analysis.typescript.typescript_analysis import TypeScriptAnalysis
18+
19+
__all__ = ["TypeScriptAnalysis"]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
################################################################################
2+
# Copyright IBM Corporation 2026
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
################################################################################
16+
17+
from .codeanalyzer import TSCodeanalyzer
18+
19+
__all__ = ["TSCodeanalyzer"]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# codeanalyzer-typescript binary
2+
3+
This directory is the optional drop location for the compiled `codeanalyzer-typescript`
4+
backend binary (built from the `codeanalyzer-ts` repo with `bun build --compile`).
5+
6+
The SDK wrapper (`cldk/analysis/typescript/codeanalyzer/codeanalyzer.py`) resolves the binary in
7+
this order:
8+
9+
1. `analysis_backend_path=<dir>` passed to `CLDK("typescript").analysis(...)` (rglob'd here).
10+
2. `$CODEANALYZER_TS_BIN` environment variable.
11+
3. A binary named `codeanalyzer-typescript*` placed in **this** directory (bundled in the wheel).
12+
13+
The binary is platform-specific and ~70 MB, so it is **not** committed to the repo. Build it
14+
with `bun build ./src/index.ts --compile --outfile dist/codeanalyzer-typescript` and copy it
15+
here (or point `analysis_backend_path` at it). The pinned version is recorded under
16+
`[tool.backend-versions] codeanalyzer-typescript` in `pyproject.toml`.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Package marker so the optional bundled binary is resolvable via importlib.resources.

0 commit comments

Comments
 (0)