ttsc 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +29 -29
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -8,8 +8,8 @@ A `typescript-go` toolchain for compiler-powered plugins and type-safe execution
8
8
 
9
9
  - **`ttsc`**: build, check, and transform.
10
10
  - **`ttsx`**: execute TypeScript with type checking.
11
- - [**`@ttsc/lint`**](https://github.com/samchon/ttsc/tree/master/packages/lint): lint violations as compiler errors.
12
11
  - [**`@ttsc/graph`**](https://github.com/samchon/ttsc/tree/master/packages/graph): MCP code graph that reduces agent token usage.
12
+ - [**`@ttsc/lint`**](https://github.com/samchon/ttsc/tree/master/packages/lint): lint violations as compiler errors.
13
13
  - **plugin support**: compiler-powered libraries, such as `typia`.
14
14
 
15
15
  ## Setup
@@ -35,6 +35,33 @@ That covers the CLI. The integrations each have a short guide:
35
35
  - [`@ttsc/metro`](https://ttsc.dev/docs/setup/metro): React Native and Expo.
36
36
  - [`@ttsc/vscode`](https://ttsc.dev/docs/setup/vscode): live editor diagnostics.
37
37
 
38
+ ## Graph
39
+
40
+ Your coding agent answers from the compiler, spending roughly 90% fewer tokens.
41
+
42
+ `@ttsc/graph` is an MCP server that gives the agent a compiler-resolved graph of your project: what calls what, what a change would touch, and where to start reading. The agent asks the type checker instead of grepping and re-reading files.
43
+
44
+ Register it with your MCP client. For Claude Code, a `.mcp.json` in the project root:
45
+
46
+ ```bash
47
+ npm install -D ttsc @ttsc/graph typescript
48
+ ```
49
+
50
+ ```json
51
+ {
52
+ "mcpServers": {
53
+ "ttsc-graph": {
54
+ "command": "npx",
55
+ "args": ["-y", "@ttsc/graph"]
56
+ }
57
+ }
58
+ }
59
+ ```
60
+
61
+ On the agent-cost benchmark, Claude agents answer reading zero files, cutting tokens by roughly 90% and tool calls by 93% to 96%. The design and per-repository numbers are in the [Code Graph guide](https://ttsc.dev/docs/graph) and the [benchmark](https://ttsc.dev/docs/benchmark/graph).
62
+
63
+ ![Median tokens on the shared onboarding question, lower is better](https://ttsc.dev/benchmark/svg/graph-common-codex-gpt-5.6-sol.svg)
64
+
38
65
  ## Lint
39
66
 
40
67
  Lint and format at compiler speed: up to 800x faster than ESLint.
@@ -97,33 +124,6 @@ npx ttsc format # format edits only, never changes behavior
97
124
 
98
125
  The rule catalog and every `format` key are in the [Lint & Format guide](https://ttsc.dev/docs/lint).
99
126
 
100
- ## Graph
101
-
102
- Your coding agent answers from the compiler, spending roughly 90% fewer tokens.
103
-
104
- `@ttsc/graph` is an MCP server that gives the agent a compiler-resolved graph of your project: what calls what, what a change would touch, and where to start reading. The agent asks the type checker instead of grepping and re-reading files.
105
-
106
- Register it with your MCP client. For Claude Code, a `.mcp.json` in the project root:
107
-
108
- ```bash
109
- npm install -D ttsc @ttsc/graph typescript
110
- ```
111
-
112
- ```json
113
- {
114
- "mcpServers": {
115
- "ttsc-graph": {
116
- "command": "npx",
117
- "args": ["-y", "@ttsc/graph"]
118
- }
119
- }
120
- }
121
- ```
122
-
123
- On the agent-cost benchmark, Claude agents answer reading zero files, cutting tokens by roughly 90% and tool calls by 93% to 96%. The design and per-repository numbers are in the [Code Graph guide](https://ttsc.dev/docs/graph) and the [benchmark](https://ttsc.dev/docs/benchmark/graph).
124
-
125
- ![Median tokens on the shared onboarding question, lower is better](https://ttsc.dev/benchmark/svg/graph-common-codex-gpt-5.6-sol.svg)
126
-
127
127
  ## Plugins
128
128
 
129
129
  A plugin hooks the compile to add checks, transforms, or type-driven code generation, all driven by the types the checker has already resolved. It runs on every `ttsc` build and `ttsx` run, with no extra step.
@@ -148,8 +148,8 @@ export const isStringArray = (() => {
148
148
  Utility plugins shipped in this repository:
149
149
 
150
150
  - [`@ttsc/banner`](https://github.com/samchon/ttsc/tree/master/packages/banner): adds `@packageDocumentation` JSDoc banners.
151
- - [`@ttsc/lint`](https://github.com/samchon/ttsc/tree/master/packages/lint): lints and formats TypeScript source.
152
151
  - [`@ttsc/graph`](https://github.com/samchon/ttsc/tree/master/packages/graph): MCP server exposing a checker-resolved code graph to coding agents.
152
+ - [`@ttsc/lint`](https://github.com/samchon/ttsc/tree/master/packages/lint): lints and formats TypeScript source.
153
153
  - [`@ttsc/paths`](https://github.com/samchon/ttsc/tree/master/packages/paths): rewrites source path aliases so JS and declaration emit receive relative imports.
154
154
  - [`@ttsc/strip`](https://github.com/samchon/ttsc/tree/master/packages/strip): removes configured calls and `debugger` statements.
155
155
  - [`@ttsc/unplugin`](https://github.com/samchon/ttsc/tree/master/packages/unplugin): runs `ttsc` plugins inside bundlers supported by `unplugin`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ttsc",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "General-purpose TypeScript-Go compiler, runtime, plugin host, and LSP host.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -35,13 +35,13 @@
35
35
  "typescript": "^7.0.2"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@ttsc/linux-arm64": "0.20.0",
39
- "@ttsc/linux-x64": "0.20.0",
40
- "@ttsc/darwin-arm64": "0.20.0",
41
- "@ttsc/darwin-x64": "0.20.0",
42
- "@ttsc/win32-x64": "0.20.0",
43
- "@ttsc/win32-arm64": "0.20.0",
44
- "@ttsc/linux-arm": "0.20.0"
38
+ "@ttsc/linux-arm64": "0.21.0",
39
+ "@ttsc/linux-arm": "0.21.0",
40
+ "@ttsc/darwin-x64": "0.21.0",
41
+ "@ttsc/darwin-arm64": "0.21.0",
42
+ "@ttsc/win32-arm64": "0.21.0",
43
+ "@ttsc/win32-x64": "0.21.0",
44
+ "@ttsc/linux-x64": "0.21.0"
45
45
  },
46
46
  "sideEffects": false,
47
47
  "files": [