@glyphlang/glyph 0.1.94 → 0.1.96

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 +4 -4
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![CI](https://github.com/chadetov/glyph/actions/workflows/ci.yml/badge.svg)](https://github.com/chadetov/glyph/actions/workflows/ci.yml)
8
8
  [![install size](https://packagephobia.com/badge?p=@glyphlang/glyph)](https://packagephobia.com/result?p=@glyphlang/glyph)
9
9
  [![license](https://img.shields.io/npm/l/@glyphlang/glyph.svg)](https://github.com/chadetov/glyph)
10
- [![Socket Badge](https://badge.socket.dev/npm/package/@glyphlang/glyph/0.1.94)](https://badge.socket.dev/npm/package/@glyphlang/glyph/0.1.94)
10
+ [![Socket Badge](https://badge.socket.dev/npm/package/@glyphlang/glyph/0.1.96)](https://badge.socket.dev/npm/package/@glyphlang/glyph/0.1.96)
11
11
  [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/chadetov/glyph/badge)](https://scorecard.dev/viewer/?uri=github.com/chadetov/glyph)
12
12
 
13
13
  Glyph is a statically typed language that **transpiles to TypeScript**, built so AI agents can read, write, and modify code safely. It looks almost like TypeScript, so you read it on day one with no tutorial. Where it differs, each difference closes a hole an agent falls through and `tsc --strict` waves past.
@@ -22,7 +22,7 @@ npx glyph run
22
22
  # hello from glyph
23
23
  ```
24
24
 
25
- That scaffolds four files, pins the compiler in `devDependencies`, and runs the program. Anyone who clones the project builds it with `npm install` and nothing global.
25
+ That scaffolds six files, pins the compiler in `devDependencies`, and runs the program. Anyone who clones the project builds it with `npm install` and nothing global. Two of the six are for coding agents rather than for you: an `AGENTS.md` pointing at the offline language reference, and an `.mcp.json` registering the analysis server below.
26
26
 
27
27
  Prefer it on your PATH:
28
28
 
@@ -89,9 +89,9 @@ Glyph ships as a single prebuilt binary per platform (macOS, Linux, and Windows,
89
89
 
90
90
  Point your coding agent at **[glyphlang.io/llms.txt](https://glyphlang.io/llms.txt)**, a single file that takes it from zero to correct, runnable Glyph: the canonical program shape, the full stdlib surface, the common gotchas, and the complete diagnostic catalogue with one-line fixes. Agents writing Glyph get compile-time feedback precise enough to self-correct.
91
91
 
92
- **Model Context Protocol.** For an agent that speaks MCP, `glyph mcp` runs a server over stdio that answers five queries: type-check a file for coded diagnostics, the inferred type at a cursor, where a name is defined (following imports), every reference to a symbol across the project, and symbol search. It runs the same analysis the editor uses, so the agent's answers match the compiler. Point any MCP client at `glyph mcp <project>`; details at [glyphlang.io/mcp](https://glyphlang.io/mcp/).
92
+ **Model Context Protocol.** `glyph init` writes an `.mcp.json` that registers this automatically, and `glyph agents` adds it to a project you already have. `glyph mcp` runs a server over stdio that answers five queries: type-check a file for coded diagnostics, the inferred type at a cursor, where a name is defined (following imports), every reference to a symbol across the project, and symbol search. It runs the same analysis the editor uses, so the agent's answers match the compiler. Point any MCP client at `glyph mcp <project>`; details at [glyphlang.io/mcp](https://glyphlang.io/mcp/).
93
93
 
94
- **Editors.** `glyph lsp` is a full language server (diagnostics, hover, go-to-definition, completion, symbols, workspace-wide find-references and rename, formatting) that any LSP client can drive over stdio. A VS Code extension ships ready-made.
94
+ **Editors.** `glyph lsp` is a full language server (diagnostics, hover, go-to-definition, completion, symbols, workspace-wide find-references and rename, formatting) that any LSP client can drive over stdio.
95
95
 
96
96
  ## Where to go next
97
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glyphlang/glyph",
3
- "version": "0.1.94",
3
+ "version": "0.1.96",
4
4
  "description": "TypeScript your AI agents can't quietly break: a statically typed language that transpiles to TypeScript, with no any, exhaustive matching, and runtime-checked types.",
5
5
  "bin": {
6
6
  "glyph": "bin/glyph.js"
@@ -15,11 +15,11 @@
15
15
  "node": ">=18"
16
16
  },
17
17
  "optionalDependencies": {
18
- "@glyphlang/darwin-x64": "0.1.94",
19
- "@glyphlang/darwin-arm64": "0.1.94",
20
- "@glyphlang/linux-x64": "0.1.94",
21
- "@glyphlang/linux-arm64": "0.1.94",
22
- "@glyphlang/win32-x64": "0.1.94"
18
+ "@glyphlang/darwin-x64": "0.1.96",
19
+ "@glyphlang/darwin-arm64": "0.1.96",
20
+ "@glyphlang/linux-x64": "0.1.96",
21
+ "@glyphlang/linux-arm64": "0.1.96",
22
+ "@glyphlang/win32-x64": "0.1.96"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",