Repository navigation
Commit 6cbcf6e
committed
Add ask mode support to the CLI target
- to 'cli' target, add 'ask' prompt type (don't handle yet)
- when in 'ask' CLI prompt type, invoke into the integrated terminal, not in headless mode, with changed command: e.g. `codex "[propt]"` instead of `codex exec "[propt]"`
├── apps
│ └── editor
│ └── src
│ ├── constants
│ │ └── instructions.ts
│ ├── extension.ts
│ ├── utils
│ │ └── headless-cli-invocation
│ │ ├── agents
│ │ │ ├── antigravity.ts
│ │ │ ├── claude.ts
│ │ │ ├── codex.ts
│ │ │ ├── cursor.ts
│ │ │ ├── grok.ts
│ │ │ ├── index.ts
│ │ │ ├── muse.ts
│ │ │ └── opencode.ts
│ │ ├── index.ts
│ │ ├── invoke-headless-cli.ts
│ │ ├── types.ts
│ │ └── utils
│ │ ├── check-command-exists.ts
│ │ ├── format-duration.ts
│ │ └── get-progress-dots.ts
│ └── views
│ └── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ ├── handle-copy-prompt.ts
│ │ │ ├── handle-get-cli-prompt-type.ts
│ │ │ ├── handle-invoke-headless-cli.ts
│ │ │ ├── handle-preview-prompt.ts
│ │ │ ├── handle-save-cli-prompt-type.ts
│ │ │ └── utils
│ │ │ └── build-cli-prompt.ts
│ │ └── prompt-view-provider.ts
│ ├── frontend
│ │ ├── Home
│ │ │ └── Home.tsx
│ │ ├── Main
│ │ │ ├── Main.tsx
│ │ │ └── MainView
│ │ │ ├── MainView.tsx
│ │ │ ├── components
│ │ │ │ └── Header
│ │ │ │ └── Header.tsx
│ │ │ ├── hooks
│ │ │ │ └── use-keyboard-shortcuts.ts
│ │ │ └── prompt-type-labels.ts
│ │ └── hooks
│ │ └── use-prompt
│ │ ├── hooks
│ │ │ └── use-instructions.ts
│ │ └── use-prompt.ts
│ └── types
│ └── messages.ts
└── packages
└── shared
└── src
└── types
└── prompt-types.ts1 parent 3f0be3f commit 6cbcf6e
17 files changed
Lines changed: 136 additions & 27 deletions
File tree
- apps/editor/src
- constants
- utils/headless-cli-invocation
- agents
- views/prompt
- backend/message-handlers
- utils
- frontend/Main/MainView
- components/Header
- hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
210 | 231 | | |
211 | 232 | | |
212 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
506 | 508 | | |
507 | 509 | | |
508 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
509 | 537 | | |
510 | 538 | | |
511 | 539 | | |
| |||
529 | 557 | | |
530 | 558 | | |
531 | 559 | | |
532 | | - | |
| 560 | + | |
533 | 561 | | |
534 | 562 | | |
535 | 563 | | |
| |||
0 commit comments