glyphcode 0.1.0 → 0.1.2

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 (3) hide show
  1. package/README.md +310 -298
  2. package/dist/index.js +4 -2
  3. package/package.json +40 -38
package/README.md CHANGED
@@ -1,298 +1,310 @@
1
- # glyph
2
-
3
- **An AI coding agent for the terminal.** Talk to LLMs, run tools, and get work done without leaving your shell.
4
-
5
- ```
6
- ┌─ glyph ─────────────────────────────────────────┐
7
- │ ██████ ██ ██ ███████ ███████ │
8
- │ ██ ██ ██ ██ ██ ██ │
9
- │ ██████ ██ ██ █████ █████ │
10
- │ ██ ██ ██ ██ ██ │
11
- │ ██ ██████ ███████ ██ │
12
- │ │
13
- │ v0.1.0 • anthropic/claude-3-5-sonnet │
14
- │ /home/user/my-project │
15
- └─────────────────────────────────────────────────┘
16
- ```
17
-
18
- ## Features
19
-
20
- - **Multiple providers** — Anthropic, OpenAI, Google Gemini, OpenRouter
21
- - **Interactive TUI** — Full-screen terminal UI built with Ink/React
22
- - **Tool calling** — Models can run tools (weather, file ops, shell, etc.)
23
- - **Markdown rendering** — Responses render with syntax highlighting
24
- - **Scrollable history** — Arrow keys / PgUp / PgDn to browse conversation
25
- - **One-shot mode** — `glyph chat "question"` for quick queries
26
- - **Config wizard** — `glyph setup` walks you through provider/model/key
27
-
28
- ## Quick Start
29
-
30
- ```bash
31
- # Install globally
32
- npm i -g glyph
33
-
34
- # Or run locally
35
- npx glyph setup
36
- ```
37
-
38
- ```bash
39
- # First run: configure your provider and API key
40
- glyph setup
41
-
42
- # Start the interactive TUI
43
- glyph
44
-
45
- # Quick one-off question
46
- glyph chat "explain async/await in JavaScript"
47
- ```
48
-
49
- ## Installation
50
-
51
- ### From npm (recommended)
52
- ```bash
53
- npm i -g glyph
54
- # or
55
- pnpm add -g glyph
56
- # or
57
- yarn global add glyph
58
- ```
59
-
60
- ### From source
61
- ```bash
62
- git clone https://github.com/yourusername/glyph.git
63
- cd glyph
64
- npm install
65
- npm run build
66
- npm link # makes `glyph` available globally
67
- ```
68
-
69
- ### Requirements
70
- - **Node.js 18+** (for built-in fetch, ESM support)
71
- - A terminal with TTY support (for the interactive TUI)
72
-
73
- ## Configuration
74
-
75
- Run the setup wizard:
76
- ```bash
77
- glyph setup
78
- ```
79
-
80
- It will ask:
81
- 1. **Provider** — Anthropic, OpenAI, Google, or OpenRouter
82
- 2. **Model** — Pick from the provider's model list
83
- 3. **API Key** — Paste your key (hidden input)
84
-
85
- Config is saved to:
86
- - **Windows:** `%APPDATA%\.glyph\config.json`
87
- - **macOS/Linux:** `~/.config/glyph/config.json` (or `~/.glyph/config.json`)
88
-
89
- The file is created with **owner-only permissions (600)**.
90
-
91
- ### Non-interactive setup (CI/scripts)
92
- ```bash
93
- # Not yet implemented — run `glyph setup` interactively
94
- ```
95
-
96
- ## Commands
97
-
98
- | Command | Description |
99
- |---------|-------------|
100
- | `glyph` | Start the interactive TUI (default) |
101
- | `glyph setup` | Interactive configuration wizard |
102
- | `glyph config show` | Display current config (key masked) |
103
- | `glyph config set-key` | Update just the API key |
104
- | `glyph chat "prompt"` | One-shot query, prints response and exits |
105
- | `glyph version` | Show version number |
106
- | `glyph --help` | Show all commands |
107
- | `glyph -d setup` | Enable debug logging |
108
-
109
- ### Examples
110
-
111
- ```bash
112
- # Interactive coding session
113
- glyph
114
-
115
- # Quick question without TUI
116
- glyph chat "how do I center a div in CSS?"
117
-
118
- # Override model for one query
119
- glyph chat "write a quicksort in Python" --model gpt-4o --provider openai
120
-
121
- # View config
122
- glyph config show
123
-
124
- # Rotate API key
125
- glyph config set-key
126
- ```
127
-
128
- ## TUI Controls
129
-
130
- | Key | Action |
131
- |-----|--------|
132
- | `↑` / `↓` | Scroll history by 1 message |
133
- | `PgUp` / `PgDn` | Scroll by page |
134
- | `Home` / `End` | Jump to top/bottom |
135
- | `Esc` | Interrupt current agent turn |
136
- | `Ctrl+C` | Interrupt / quit (when idle) |
137
- | `/exit` | Quit the app |
138
-
139
- **Auto-scroll:** New messages auto-scroll to bottom. Scroll up to pin and read history — scroll to bottom to resume auto-scroll.
140
-
141
- ## Supported Providers
142
-
143
- | Provider | Models | API Key Env Var |
144
- |----------|--------|-----------------|
145
- | **Anthropic** | Claude 3.5 Sonnet, Haiku, Opus | `ANTHROPIC_API_KEY` |
146
- | **OpenAI** | GPT-4o, 4o-mini, 4-turbo, 3.5-turbo | `OPENAI_API_KEY` |
147
- | **Google Gemini** | 1.5 Pro, 1.5 Flash | `GEMINI_API_KEY` |
148
- | **OpenRouter** | Auto, Claude via OR, GPT via OR | `OPENROUTER_API_KEY` |
149
-
150
- Get keys from:
151
- - Anthropic: <https://console.anthropic.com/>
152
- - OpenAI: <https://platform.openai.com/api-keys>
153
- - Google: <https://aistudio.google.com/apikey>
154
- - OpenRouter: <https://openrouter.ai/keys>
155
-
156
- ## Tools
157
-
158
- Tools let the agent take actions. Currently built-in:
159
-
160
- | Tool | Description |
161
- |------|-------------|
162
- | `weather` | Live weather lookup via OpenWeatherMap |
163
-
164
- More tools coming (file read/write, shell, web search, etc.).
165
-
166
- ## Project Structure
167
-
168
- ```
169
- glyph/
170
- ├── package.json
171
- ├── tsconfig.json
172
- ├── dist/ # Built output (gitignored)
173
- ├── commands/ # CLI commands (Commander)
174
- │ ├── index.ts # Entry point, command registry
175
- │ ├── setup.ts # Interactive setup wizard
176
- │ ├── config.ts # config show / set-key
177
- │ ├── chat.ts # One-shot chat command
178
- │ ├── verify.ts # API key verification
179
- │ ├── config/ # Config file layer
180
- │ │ ├── path.ts # Cross-platform config paths
181
- │ │ ├── schema.ts # Zod schema + types
182
- │ │ ├── read.ts # Load & validate config
183
- │ │ └── write.ts # Atomic write (tmp→rename, chmod 600)
184
- │ └── catalogue/
185
- │ └── provider.ts # Provider catalog (models, endpoints)
186
- ├── provider/ # LLM provider runtime
187
- │ ├── index.ts # Lazy OpenAI client from config
188
- │ ├── model_selector.ts # Model resolution (async + sync)
189
- │ └── context.ts # Conversation context/history
190
- ├── core/
191
- │ ├── agent.ts # Agent loop (streaming, tools)
192
- │ └── events.ts # Event types
193
- ├── tools/ # Tool definitions
194
- │ ├── index.ts # Registry
195
- │ ├── types.ts # Tool types
196
- │ └── weather.ts # Weather tool
197
- ├── ui/ # Ink TUI
198
- │ ├── App.tsx # Root component
199
- │ ├── useAgent.ts # Agent ↔ React bridge
200
- │ ├── theme.ts # Color palette
201
- │ ├── format.ts # Text formatting helpers
202
- │ ├── types.ts # UI types
203
- │ └── components/ # React components (Header, History, Input, etc.)
204
- └── simple-cli/ # Legacy CLI (being phased out)
205
- ```
206
-
207
- ## Development
208
-
209
- ```bash
210
- # Install deps
211
- npm install
212
-
213
- # Dev mode (runs with Bun, hot reload)
214
- npm run dev
215
-
216
- # Build for distribution
217
- npm run build
218
-
219
- # Run built version
220
- node dist/index.js
221
-
222
- # Type check
223
- npx tsc --noEmit
224
- ```
225
-
226
- ### Adding a Tool
227
-
228
- 1. Create `tools/mytool.ts`:
229
- ```ts
230
- import type { Tool } from "./types";
231
-
232
- export const myTool: Tool = {
233
- name: "my_tool",
234
- description: "Does something useful",
235
- needsPermission: false,
236
- schema: { /* Zod schema */ },
237
- async run(args, signal) {
238
- // implementation
239
- return { result: "ok" };
240
- },
241
- };
242
- ```
243
-
244
- 2. Register in `tools/index.ts`:
245
- ```ts
246
- export const registry = { ..., my_tool: myTool };
247
- export const toolDefinitions = [..., myTool.schema];
248
- ```
249
-
250
- ### Adding a Provider
251
-
252
- Edit `commands/catalogue/provider.ts`:
253
- ```ts
254
- export const PROVIDERS = {
255
- ...existing,
256
- myprovider: {
257
- label: "My Provider",
258
- envVar: "MYPROVIDER_API_KEY",
259
- models: ["model-1", "model-2"],
260
- baseURL: "https://api.myprovider.com/v1",
261
- },
262
- } as const;
263
- ```
264
-
265
- ## Security
266
-
267
- - **API keys** stored in `config.json` with `chmod 600` (owner read/write only)
268
- - **Never logged** — keys are masked in all output (`••••••••a1b2`)
269
- - **No telemetry** — nothing leaves your machine except LLM API calls
270
- - **Verification** — `glyph setup` tests the key before saving
271
-
272
- ## Troubleshooting
273
-
274
- | Issue | Fix |
275
- |-------|-----|
276
- | `Raw mode is not supported` | Run in a real terminal (not VS Code output pane, not CI) |
277
- | `glyph: command not found` | Reinstall: `npm i -g glyph` or add `~/.npm-global/bin` to PATH |
278
- | `No configuration found` | Run `glyph setup` first |
279
- | `Could not verify key` | Check key is valid; try `glyph config set-key` |
280
- | Permission denied on config | `chmod 600 ~/.config/glyph/config.json` |
281
-
282
- ## Roadmap
283
-
284
- - [ ] File read/write tools
285
- - [ ] Shell command execution
286
- - [ ] Web search tool
287
- - [ ] Multiple config profiles (`glyph setup --profile work`)
288
- - [ ] OS keychain storage (optional)
289
- - [ ] Plugin system for custom tools
290
- - [ ] Session persistence / export
291
-
292
- ## License
293
-
294
- MIT — see [LICENSE](LICENSE) for details.
295
-
296
- ---
297
-
298
- **Built with:** TypeScript, Node.js, Ink, Commander, @clack/prompts, Zod, OpenAI SDK, Opencode
1
+ <p align="center">
2
+ <img src="https://github.com/user-attachments/assets/f69d5d12-b1e6-43d0-852a-8281b6e64a3b" alt="glyph icon" width="150" height="150">
3
+ <!-- <img width="1025" height="885" alt="glyphcode-icon" src="" /> -->
4
+
5
+ </p>
6
+
7
+ <h1 align="center">glyphcode</h1>
8
+
9
+ <p align="center">
10
+ <strong>An AI coding agent for the terminal.</strong><br>
11
+ Talk to LLMs, run tools, and get work done without leaving your shell.
12
+ </p>
13
+
14
+ ## Features
15
+
16
+ - **Multiple providers** — Anthropic, OpenAI, Google Gemini, OpenRouter
17
+ - **Interactive TUI** — Full-screen terminal UI built with Ink/React
18
+ - **Tool calling** — Models can run tools (weather, file ops, shell, etc.)
19
+ - **Markdown rendering** — Responses render with syntax highlighting
20
+ - **Scrollable history** — Arrow keys / PgUp / PgDn to browse conversation
21
+ - **One-shot mode** — `glyph chat "question"` for quick queries
22
+ - **Config wizard** — `glyph setup` walks you through provider/model/key
23
+
24
+ ## Screenshots
25
+
26
+ ### Interactive TUI
27
+
28
+ ![glyph TUI](https://github.com/user-attachments/assets/440533c0-fdef-4a57-8ee1-cad98e3e361f)
29
+ *The main interface showing conversation history, markdown rendering, and input area.*
30
+
31
+ ![glyph setup](https://github.com/user-attachments/assets/9ee1aecf-4a92-446c-a2e8-2a61cf2512d8)
32
+ *Tool usage*
33
+
34
+ ### One-shot Chat
35
+ ![glyph chat](https://github.com/user-attachments/assets/2ae868f9-af4e-4aaf-a31a-3b2e0f4e920a)
36
+ *Interactive configuration wizard — select provider, model, and enter API key.*
37
+
38
+ > **Add your screenshots:** Place PNG files in `docs/snapshots/` and reference them above.
39
+ > Recommended size: 800–1200px wide for GitHub README display.
40
+
41
+ ## Quick Start
42
+
43
+ ```bash
44
+ # Install globally
45
+ npm i -g glyph
46
+
47
+ # Or run locally
48
+ npx glyph setup
49
+ ```
50
+
51
+ ```bash
52
+ # First run: configure your provider and API key
53
+ glyph setup
54
+
55
+ # Start the interactive TUI
56
+ glyph
57
+
58
+ # Quick one-off question
59
+ glyph chat "explain async/await in JavaScript"
60
+ ```
61
+
62
+ ## Installation
63
+
64
+ ### From npm (recommended)
65
+ ```bash
66
+ npm i -g glyph
67
+ # or
68
+ pnpm add -g glyph
69
+ # or
70
+ yarn global add glyph
71
+ ```
72
+
73
+ ### From source
74
+ ```bash
75
+ git clone https://github.com/yourusername/glyph.git
76
+ cd glyph
77
+ npm install
78
+ npm run build
79
+ npm link # makes `glyph` available globally
80
+ ```
81
+
82
+ ### Requirements
83
+ - **Node.js 18+** (for built-in fetch, ESM support)
84
+ - A terminal with TTY support (for the interactive TUI)
85
+
86
+ ## Configuration
87
+
88
+ Run the setup wizard:
89
+ ```bash
90
+ glyph setup
91
+ ```
92
+
93
+ It will ask:
94
+ 1. **Provider** — Anthropic, OpenAI, Google, or OpenRouter
95
+ 2. **Model** — Pick from the provider's model list
96
+ 3. **API Key** — Paste your key (hidden input)
97
+
98
+ Config is saved to:
99
+ - **Windows:** `%APPDATA%\.glyph\config.json`
100
+ - **macOS/Linux:** `~/.config/glyph/config.json` (or `~/.glyph/config.json`)
101
+
102
+ The file is created with **owner-only permissions (600)**.
103
+
104
+ ### Non-interactive setup (CI/scripts)
105
+ ```bash
106
+ # Not yet implemented — run `glyph setup` interactively
107
+ ```
108
+
109
+ ## Commands
110
+
111
+ | Command | Description |
112
+ |---------|-------------|
113
+ | `glyph` | Start the interactive TUI (default) |
114
+ | `glyph setup` | Interactive configuration wizard |
115
+ | `glyph config show` | Display current config (key masked) |
116
+ | `glyph config set-key` | Update just the API key |
117
+ | `glyph chat "prompt"` | One-shot query, prints response and exits |
118
+ | `glyph version` | Show version number |
119
+ | `glyph --help` | Show all commands |
120
+ | `glyph -d setup` | Enable debug logging |
121
+
122
+ ### Examples
123
+
124
+ ```bash
125
+ # Interactive coding session
126
+ glyph
127
+
128
+ # Quick question without TUI
129
+ glyph chat "how do I center a div in CSS?"
130
+
131
+ # Override model for one query
132
+ glyph chat "write a quicksort in Python" --model gpt-4o --provider openai
133
+
134
+ # View config
135
+ glyph config show
136
+
137
+ # Rotate API key
138
+ glyph config set-key
139
+ ```
140
+
141
+ ## TUI Controls
142
+
143
+ | Key | Action |
144
+ |-----|--------|
145
+ | `↑` / `↓` | Scroll history by 1 message |
146
+ | `PgUp` / `PgDn` | Scroll by page |
147
+ | `Home` / `End` | Jump to top/bottom |
148
+ | `Esc` | Interrupt current agent turn |
149
+ | `Ctrl+C` | Interrupt / quit (when idle) |
150
+ | `/exit` | Quit the app |
151
+
152
+ **Auto-scroll:** New messages auto-scroll to bottom. Scroll up to pin and read history — scroll to bottom to resume auto-scroll.
153
+
154
+ ## Supported Providers
155
+
156
+ | Provider | Models | API Key Env Var |
157
+ |----------|--------|-----------------|
158
+ | **OpenAI** | GPT-4o, 4o-mini, 4-turbo, 3.5-turbo | `OPENAI_API_KEY` |
159
+ | **Google Gemini** | 1.5 Pro, 1.5 Flash | `GEMINI_API_KEY` |
160
+ | **OpenRouter** | Auto, Claude via OR, GPT via OR | `OPENROUTER_API_KEY` |
161
+
162
+ Get keys from:
163
+ - Anthropic: <https://console.anthropic.com/>
164
+ - OpenAI: <https://platform.openai.com/api-keys>
165
+ - Google: <https://aistudio.google.com/apikey>
166
+ - OpenRouter: <https://openrouter.ai/keys>
167
+
168
+ ## Tools
169
+
170
+ Tools let the agent take actions. Currently built-in:
171
+
172
+ | Tool | Description |
173
+ |------|-------------|
174
+ | `weather` | Live weather lookup via OpenWeatherMap |
175
+
176
+ More tools coming (file read/write, shell, web search, etc.).
177
+
178
+ ## Project Structure
179
+
180
+ ```
181
+ glyph/
182
+ ├── package.json
183
+ ├── tsconfig.json
184
+ ├── dist/ # Built output (gitignored)
185
+ ├── commands/ # CLI commands (Commander)
186
+ │ ├── index.ts # Entry point, command registry
187
+ │ ├── setup.ts # Interactive setup wizard
188
+ │ ├── config.ts # config show / set-key
189
+ │ ├── chat.ts # One-shot chat command
190
+ │ ├── verify.ts # API key verification
191
+ │ ├── config/ # Config file layer
192
+ │ │ ├── path.ts # Cross-platform config paths
193
+ │ │ ├── schema.ts # Zod schema + types
194
+ │ │ ├── read.ts # Load & validate config
195
+ │ │ └── write.ts # Atomic write (tmp→rename, chmod 600)
196
+ │ └── catalogue/
197
+ │ └── provider.ts # Provider catalog (models, endpoints)
198
+ ├── provider/ # LLM provider runtime
199
+ │ ├── index.ts # Lazy OpenAI client from config
200
+ │ ├── model_selector.ts # Model resolution (async + sync)
201
+ │ └── context.ts # Conversation context/history
202
+ ├── core/
203
+ │ ├── agent.ts # Agent loop (streaming, tools)
204
+ │ └── events.ts # Event types
205
+ ├── tools/ # Tool definitions
206
+ │ ├── index.ts # Registry
207
+ │ ├── types.ts # Tool types
208
+ │ └── weather.ts # Weather tool
209
+ ├── ui/ # Ink TUI
210
+ │ ├── App.tsx # Root component
211
+ │ ├── useAgent.ts # Agent ↔ React bridge
212
+ │ ├── theme.ts # Color palette
213
+ │ ├── format.ts # Text formatting helpers
214
+ │ ├── types.ts # UI types
215
+ │ └── components/ # React components (Header, History, Input, etc.)
216
+ └── simple-cli/ # Legacy CLI (being phased out)
217
+ ```
218
+
219
+ ## Development
220
+
221
+ ```bash
222
+ # Install deps
223
+ npm install
224
+
225
+ # Dev mode (runs with Bun, hot reload)
226
+ npm run dev
227
+
228
+ # Build for distribution
229
+ npm run build
230
+
231
+ # Run built version
232
+ node dist/index.js
233
+
234
+ # Type check
235
+ npx tsc --noEmit
236
+ ```
237
+
238
+ ### Adding a Tool
239
+
240
+ 1. Create `tools/mytool.ts`:
241
+ ```ts
242
+ import type { Tool } from "./types";
243
+
244
+ export const myTool: Tool = {
245
+ name: "my_tool",
246
+ description: "Does something useful",
247
+ needsPermission: false,
248
+ schema: { /* Zod schema */ },
249
+ async run(args, signal) {
250
+ // implementation
251
+ return { result: "ok" };
252
+ },
253
+ };
254
+ ```
255
+
256
+ 2. Register in `tools/index.ts`:
257
+ ```ts
258
+ export const registry = { ..., my_tool: myTool };
259
+ export const toolDefinitions = [..., myTool.schema];
260
+ ```
261
+
262
+ ### Adding a Provider
263
+
264
+ Edit `commands/catalogue/provider.ts`:
265
+ ```ts
266
+ export const PROVIDERS = {
267
+ ...existing,
268
+ myprovider: {
269
+ label: "My Provider",
270
+ envVar: "MYPROVIDER_API_KEY",
271
+ models: ["model-1", "model-2"],
272
+ baseURL: "https://api.myprovider.com/v1",
273
+ },
274
+ } as const;
275
+ ```
276
+
277
+ ## Security
278
+
279
+ - **API keys** stored in `config.json` with `chmod 600` (owner read/write only)
280
+ - **Never logged** — keys are masked in all output (`••••••••a1b2`)
281
+ - **No telemetry** — nothing leaves your machine except LLM API calls
282
+ - **Verification** — `glyph setup` tests the key before saving
283
+
284
+ ## Troubleshooting
285
+
286
+ | Issue | Fix |
287
+ |-------|-----|
288
+ | `Raw mode is not supported` | Run in a real terminal (not VS Code output pane, not CI) |
289
+ | `glyph: command not found` | Reinstall: `npm i -g glyph` or add `~/.npm-global/bin` to PATH |
290
+ | `No configuration found` | Run `glyph setup` first |
291
+ | `Could not verify key` | Check key is valid; try `glyph config set-key` |
292
+ | Permission denied on config | `chmod 600 ~/.config/glyph/config.json` |
293
+
294
+ ## Roadmap
295
+
296
+ - [ ] File read/write tools
297
+ - [ ] Shell command execution
298
+ - [ ] Web search tool
299
+ - [ ] Multiple config profiles (`glyph setup --profile work`)
300
+ - [ ] OS keychain storage (optional)
301
+ - [ ] Plugin system for custom tools
302
+ - [ ] Session persistence / export
303
+
304
+ ## License
305
+
306
+ MIT — see [LICENSE](LICENSE) for details.
307
+
308
+ ---
309
+
310
+ **Built with:** TypeScript, Node.js, Ink, Commander, @clack/prompts, Zod, OpenAI SDK, Opencode
package/dist/index.js CHANGED
@@ -50,7 +50,7 @@ var package_default;
50
50
  var init_package = __esm(() => {
51
51
  package_default = {
52
52
  name: "glyphcode",
53
- version: "0.1.0",
53
+ version: "0.1.2",
54
54
  type: "module",
55
55
  main: "dist/index.js",
56
56
  bin: {
@@ -84,7 +84,9 @@ var init_package = __esm(() => {
84
84
  react: "^19.3.1",
85
85
  zod: "^4.4.3"
86
86
  },
87
- trustedDependencies: ["bun"]
87
+ trustedDependencies: [
88
+ "bun"
89
+ ]
88
90
  };
89
91
  });
90
92
 
package/package.json CHANGED
@@ -1,38 +1,40 @@
1
- {
2
- "name": "glyphcode",
3
- "version": "0.1.0",
4
- "type": "module",
5
- "main": "dist/index.js",
6
- "bin": {
7
- "glyph": "dist/index.js"
8
- },
9
- "files": [
10
- "dist"
11
- ],
12
- "scripts": {
13
- "dev": "bun run index.tsx",
14
- "cli": "bun run simple-cli/index.ts",
15
- "build": "bun build index.tsx --outdir dist --target node",
16
- "prepare": "npm run build"
17
- },
18
- "devDependencies": {
19
- "@types/node": "^26.2.0",
20
- "@types/react": "^19.3.3",
21
- "typescript": "^5.6.0"
22
- },
23
- "dependencies": {
24
- "@clack/prompts": "^1.9.0",
25
- "commander": "^15.1.0",
26
- "i": "^0.3.7",
27
- "ink": "^8.0.0",
28
- "ink-spinner": "^5.0.0",
29
- "ink-text-input": "^6.0.0",
30
- "marked": "^18.4.0",
31
- "marked-terminal": "^8.0.1",
32
- "openai": "^7.4.0",
33
- "picocolors": "^1.1.1",
34
- "react": "^19.3.1",
35
- "zod": "^4.4.3"
36
- },
37
- "trustedDependencies": ["bun"]
38
- }
1
+ {
2
+ "name": "glyphcode",
3
+ "version": "0.1.2",
4
+ "type": "module",
5
+ "main": "dist/index.js",
6
+ "bin": {
7
+ "glyph": "dist/index.js"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "dev": "bun run index.tsx",
14
+ "cli": "bun run simple-cli/index.ts",
15
+ "build": "bun build index.tsx --outdir dist --target node",
16
+ "prepare": "npm run build"
17
+ },
18
+ "devDependencies": {
19
+ "@types/node": "^26.2.0",
20
+ "@types/react": "^19.3.3",
21
+ "typescript": "^5.6.0"
22
+ },
23
+ "dependencies": {
24
+ "@clack/prompts": "^1.9.0",
25
+ "commander": "^15.1.0",
26
+ "i": "^0.3.7",
27
+ "ink": "^8.0.0",
28
+ "ink-spinner": "^5.0.0",
29
+ "ink-text-input": "^6.0.0",
30
+ "marked": "^18.4.0",
31
+ "marked-terminal": "^8.0.1",
32
+ "openai": "^7.4.0",
33
+ "picocolors": "^1.1.1",
34
+ "react": "^19.3.1",
35
+ "zod": "^4.4.3"
36
+ },
37
+ "trustedDependencies": [
38
+ "bun"
39
+ ]
40
+ }