Repository navigation
Commit 4ba2710
committed
Move prompt storage cleanup to extension activation, extend upload lifespan to 6 months, and limit prompt history to 25 items
- should remove old 'prompt text' and 'prompt images' when older than a month and not referenced by symbol e.g. #Image() #PastedText(), #Website() etc. in tasks.json and notes.json
- prompt field's instructions history should be limited to 25 entries
- finish cleanup implementation - should run only fom extension.ts
├── apps
│ └── editor
│ └── src
│ ├── constants
│ │ ├── state-keys.ts
│ │ └── values.ts
│ ├── extension.ts
│ ├── utils
│ │ └── global-workspace-storage.ts
│ └── views
│ └── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ ├── handle-delete-task.ts
│ │ │ ├── handle-get-history.ts
│ │ │ ├── handle-get-instructions.ts
│ │ │ ├── handle-paste-url.ts
│ │ │ ├── handle-save-completed-tasks.ts
│ │ │ ├── handle-save-history.ts
│ │ │ ├── handle-save-instructions.ts
│ │ │ ├── handle-save-notes.ts
│ │ │ ├── handle-save-prompt-image.ts
│ │ │ ├── handle-save-prompt-pasted-text.ts
│ │ │ └── handle-save-tasks.ts
│ │ ├── prompt-view-provider.ts
│ │ └── utils
│ │ ├── persistent-prompt-storage.ts
│ │ └── symbols
│ │ ├── image
│ │ │ └── replace-image-symbol.ts
│ │ ├── pasted-text
│ │ │ └── replace-pasted-text-symbol.ts
│ │ ├── replace-symbols.ts
│ │ └── website
│ │ └── replace-website-symbol.ts
│ ├── frontend
│ │ ├── Main
│ │ │ ├── Main.tsx
│ │ │ └── MainView
│ │ │ └── MainView.tsx
│ │ ├── Prompt.tsx
│ │ └── hooks
│ │ └── use-prompt
│ │ └── hooks
│ │ └── use-instructions.ts
│ └── types
│ └── messages.ts
└── packages
├── shared
│ └── src
│ └── types
│ └── task.ts
└── ui
└── src
└── components
└── editor
└── common
└── prompts
└── PromptField
├── PromptField.tsx
└── hooks
└── use-handlers
└── handle-key-down.ts1 parent 836fbf3 commit 4ba2710
4 files changed
Lines changed: 17 additions & 7 deletions
File tree
- apps/editor/src
- constants
- views/prompt
- backend/utils
- frontend/Main
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
72 | 83 | | |
73 | 84 | | |
74 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 256 | + | |
260 | 257 | | |
261 | 258 | | |
262 | 259 | | |
| |||
0 commit comments