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