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.
- package/README.md +310 -307
- package/dist/index.js +4 -2
- package/package.json +40 -38
package/README.md
CHANGED
|
@@ -1,307 +1,310 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
18
|
-
- **
|
|
19
|
-
- **
|
|
20
|
-
- **
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
![glyph
|
|
29
|
-
*
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
#
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
#
|
|
53
|
-
glyph
|
|
54
|
-
|
|
55
|
-
#
|
|
56
|
-
glyph
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
|
112
|
-
|
|
113
|
-
| `glyph
|
|
114
|
-
| `glyph
|
|
115
|
-
| `glyph
|
|
116
|
-
| `glyph
|
|
117
|
-
| `glyph
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
#
|
|
126
|
-
glyph
|
|
127
|
-
|
|
128
|
-
#
|
|
129
|
-
glyph chat "
|
|
130
|
-
|
|
131
|
-
#
|
|
132
|
-
glyph
|
|
133
|
-
|
|
134
|
-
#
|
|
135
|
-
glyph config
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
|
144
|
-
|
|
145
|
-
|
|
|
146
|
-
| `
|
|
147
|
-
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
├──
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
│ ├──
|
|
187
|
-
│ ├──
|
|
188
|
-
│ ├── config
|
|
189
|
-
│
|
|
190
|
-
│
|
|
191
|
-
│
|
|
192
|
-
│ │
|
|
193
|
-
│
|
|
194
|
-
│
|
|
195
|
-
|
|
196
|
-
│
|
|
197
|
-
│
|
|
198
|
-
|
|
199
|
-
├──
|
|
200
|
-
│ ├──
|
|
201
|
-
│ └──
|
|
202
|
-
├──
|
|
203
|
-
│ ├──
|
|
204
|
-
│
|
|
205
|
-
|
|
206
|
-
├──
|
|
207
|
-
│ ├──
|
|
208
|
-
│
|
|
209
|
-
|
|
210
|
-
│ ├──
|
|
211
|
-
│ ├──
|
|
212
|
-
│
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
#
|
|
223
|
-
npm
|
|
224
|
-
|
|
225
|
-
#
|
|
226
|
-
npm run
|
|
227
|
-
|
|
228
|
-
#
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
#
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
- **
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
|
287
|
-
|
|
288
|
-
| `
|
|
289
|
-
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
- [ ]
|
|
297
|
-
- [ ]
|
|
298
|
-
- [ ]
|
|
299
|
-
- [ ]
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
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
|
+

|
|
29
|
+
*The main interface showing conversation history, markdown rendering, and input area.*
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
*Tool usage*
|
|
33
|
+
|
|
34
|
+
### One-shot Chat
|
|
35
|
+

|
|
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.
|
|
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: [
|
|
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.
|
|
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
|
-
|
|
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
|
+
}
|