Skip to content

Commit defffa5

Browse files
update storage keys and class names in client lib
1 parent 1daae6b commit defffa5

19 files changed

Lines changed: 97 additions & 97 deletions

app/lib/common/prompts/new-prompt.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const getFineTunedPrompt = (
1010
credentials?: { anonKey?: string; supabaseUrl?: string };
1111
},
1212
) => `
13-
You are Example, an expert AI assistant and exceptional senior software developer with vast knowledge across multiple programming languages, frameworks, and best practices, created by StackBlitz.
13+
You are CodinIT, an expert AI assistant and exceptional senior software developer with vast knowledge across multiple programming languages, frameworks, and best practices, created by CodinIT.dev.
1414
1515
The year is 2025.
1616
@@ -49,9 +49,9 @@ The year is 2025.
4949
5050
Example:
5151
52-
<bolt_running_commands>
52+
<codinit_running_commands>
5353
npm run dev
54-
</bolt_running_commands>
54+
</codinit_running_commands>
5555
5656
CRITICAL:
5757
- NEVER mention or reference the XML tags or structure of this process list in your responses

app/lib/hooks/useConnectionStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState, useEffect } from 'react';
22
import { checkConnection } from '~/lib/api/connection';
33

4-
const ACKNOWLEDGED_CONNECTION_ISSUE_KEY = 'bolt_acknowledged_connection_issue';
4+
const ACKNOWLEDGED_CONNECTION_ISSUE_KEY = 'codinit_acknowledged_connection_issue';
55

66
type ConnectionIssueType = 'disconnected' | 'high-latency' | null;
77

app/lib/hooks/useDataOperations.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function useDataOperations({
105105
const url = URL.createObjectURL(blob);
106106
const a = document.createElement('a');
107107
a.href = url;
108-
a.download = 'bolt-settings.json';
108+
a.download = 'codinit-settings.json';
109109
document.body.appendChild(a);
110110
a.click();
111111
document.body.removeChild(a);
@@ -200,7 +200,7 @@ export function useDataOperations({
200200
const url = URL.createObjectURL(blob);
201201
const a = document.createElement('a');
202202
a.href = url;
203-
a.download = `bolt-settings-${categoryIds.join('-')}.json`;
203+
a.download = `codinit-settings-${categoryIds.join('-')}.json`;
204204
document.body.appendChild(a);
205205
a.click();
206206
document.body.removeChild(a);
@@ -326,7 +326,7 @@ export function useDataOperations({
326326
const url = URL.createObjectURL(blob);
327327
const a = document.createElement('a');
328328
a.href = url;
329-
a.download = 'bolt-chats.json';
329+
a.download = 'codinit-chats.json';
330330
document.body.appendChild(a);
331331
a.click();
332332
document.body.removeChild(a);
@@ -437,7 +437,7 @@ export function useDataOperations({
437437
const url = URL.createObjectURL(blob);
438438
const a = document.createElement('a');
439439
a.href = url;
440-
a.download = 'bolt-selected-chats.json';
440+
a.download = 'codinit-selected-chats.json';
441441
document.body.appendChild(a);
442442
a.click();
443443
document.body.removeChild(a);
@@ -936,7 +936,7 @@ export function useDataOperations({
936936
const url = URL.createObjectURL(blob);
937937
const a = document.createElement('a');
938938
a.href = url;
939-
a.download = 'bolt-api-keys-template.json';
939+
a.download = 'codinit-api-keys-template.json';
940940
document.body.appendChild(a);
941941
a.click();
942942
document.body.removeChild(a);
@@ -1011,7 +1011,7 @@ export function useDataOperations({
10111011
const url = URL.createObjectURL(blob);
10121012
const a = document.createElement('a');
10131013
a.href = url;
1014-
a.download = 'bolt-api-keys.json';
1014+
a.download = 'codinit-api-keys.json';
10151015
document.body.appendChild(a);
10161016
a.click();
10171017
document.body.removeChild(a);

app/lib/hooks/useDebugStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState, useEffect } from 'react';
22
import { getDebugStatus, acknowledgeWarning, acknowledgeError, type DebugIssue } from '~/lib/api/debug';
33

4-
const ACKNOWLEDGED_DEBUG_ISSUES_KEY = 'bolt_acknowledged_debug_issues';
4+
const ACKNOWLEDGED_DEBUG_ISSUES_KEY = 'codinit_acknowledged_debug_issues';
55

66
const getAcknowledgedIssues = (): string[] => {
77
try {

app/lib/hooks/useFeatures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState, useEffect } from 'react';
22
import { getFeatureFlags, markFeatureViewed, type Feature } from '~/lib/api/features';
33

4-
const VIEWED_FEATURES_KEY = 'bolt_viewed_features';
4+
const VIEWED_FEATURES_KEY = 'codinit_viewed_features';
55

66
const getViewedFeatures = (): string[] => {
77
try {

app/lib/hooks/useIndexedDB.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function useIndexedDB() {
1313
try {
1414
setIsLoading(true);
1515

16-
const request = indexedDB.open('boltDB', 1);
16+
const request = indexedDB.open('codinitDB', 1);
1717

1818
request.onupgradeneeded = (event) => {
1919
const db = (event.target as IDBOpenDBRequest).result;

app/lib/hooks/useUpdateCheck.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState, useEffect } from 'react';
22
import { checkForUpdates, acknowledgeUpdate } from '~/lib/api/updates';
33

4-
const LAST_ACKNOWLEDGED_VERSION_KEY = 'bolt_last_acknowledged_version';
4+
const LAST_ACKNOWLEDGED_VERSION_KEY = 'codinit_last_acknowledged_version';
55

66
export const useUpdateCheck = () => {
77
const [hasUpdate, setHasUpdate] = useState(false);

app/lib/persistence/ChatDescription.client.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function ChatDescription() {
2424
<form onSubmit={handleSubmit} className="flex items-center justify-center">
2525
<input
2626
type="text"
27-
className="bg-bolt-elements-background-depth-1 text-bolt-elements-textPrimary rounded px-2 mr-2 w-fit"
27+
className="bg-codinit-elements-background-depth-1 text-codinit-elements-textPrimary rounded px-2 mr-2 w-fit"
2828
autoFocus
2929
value={currentDescription}
3030
onChange={handleChange}
@@ -34,10 +34,10 @@ export function ChatDescription() {
3434
/>
3535
<TooltipProvider>
3636
<WithTooltip tooltip="Save title">
37-
<div className="flex justify-between items-center p-2 rounded-md bg-bolt-elements-item-backgroundAccent">
37+
<div className="flex justify-between items-center p-2 rounded-md bg-codinit-elements-item-backgroundAccent">
3838
<button
3939
type="submit"
40-
className="i-ph:check-bold scale-110 hover:text-bolt-elements-item-contentAccent"
40+
className="i-ph:check-bold scale-110 hover:text-codinit-elements-item-contentAccent"
4141
onMouseDown={handleSubmit}
4242
/>
4343
</div>
@@ -49,10 +49,10 @@ export function ChatDescription() {
4949
{currentDescription}
5050
<TooltipProvider>
5151
<WithTooltip tooltip="Rename chat">
52-
<div className="flex justify-between items-center p-2 rounded-md bg-bolt-elements-item-backgroundAccent ml-2">
52+
<div className="flex justify-between items-center p-2 rounded-md bg-codinit-elements-item-backgroundAccent ml-2">
5353
<button
5454
type="button"
55-
className="i-ph:pencil-fill scale-110 hover:text-bolt-elements-item-contentAccent"
55+
className="i-ph:pencil-fill scale-110 hover:text-codinit-elements-item-contentAccent"
5656
onClick={(event) => {
5757
event.preventDefault();
5858
toggleEditMode();

app/lib/persistence/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function openDatabase(): Promise<IDBDatabase | undefined> {
1919
}
2020

2121
return new Promise((resolve) => {
22-
const request = indexedDB.open('boltHistory', 2);
22+
const request = indexedDB.open('codinitHistory', 2);
2323

2424
request.onupgradeneeded = (event: IDBVersionChangeEvent) => {
2525
const db = (event.target as IDBOpenDBRequest).result;

app/lib/runtime/__snapshots__/message-parser.spec.ts.snap

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (0) > onActionClose 1`] = `
3+
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out codinit artifacts (0) > onActionClose 1`] = `
44
{
55
"action": {
66
"content": "npm install",
@@ -12,7 +12,7 @@ exports[`StreamingMessageParser > valid artifacts with actions > should correctl
1212
}
1313
`;
1414

15-
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (0) > onActionOpen 1`] = `
15+
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out codinit artifacts (0) > onActionOpen 1`] = `
1616
{
1717
"action": {
1818
"content": "",
@@ -24,7 +24,7 @@ exports[`StreamingMessageParser > valid artifacts with actions > should correctl
2424
}
2525
`;
2626

27-
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (0) > onArtifactClose 1`] = `
27+
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out codinit artifacts (0) > onArtifactClose 1`] = `
2828
{
2929
"id": "artifact_1",
3030
"messageId": "message_1",
@@ -33,7 +33,7 @@ exports[`StreamingMessageParser > valid artifacts with actions > should correctl
3333
}
3434
`;
3535

36-
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (0) > onArtifactOpen 1`] = `
36+
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out codinit artifacts (0) > onArtifactOpen 1`] = `
3737
{
3838
"id": "artifact_1",
3939
"messageId": "message_1",
@@ -42,7 +42,7 @@ exports[`StreamingMessageParser > valid artifacts with actions > should correctl
4242
}
4343
`;
4444

45-
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (1) > onActionClose 1`] = `
45+
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out codinit artifacts (1) > onActionClose 1`] = `
4646
{
4747
"action": {
4848
"content": "npm install",
@@ -54,7 +54,7 @@ exports[`StreamingMessageParser > valid artifacts with actions > should correctl
5454
}
5555
`;
5656

57-
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (1) > onActionClose 2`] = `
57+
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out codinit artifacts (1) > onActionClose 2`] = `
5858
{
5959
"action": {
6060
"content": "some content
@@ -68,7 +68,7 @@ exports[`StreamingMessageParser > valid artifacts with actions > should correctl
6868
}
6969
`;
7070

71-
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (1) > onActionOpen 1`] = `
71+
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out codinit artifacts (1) > onActionOpen 1`] = `
7272
{
7373
"action": {
7474
"content": "",
@@ -80,7 +80,7 @@ exports[`StreamingMessageParser > valid artifacts with actions > should correctl
8080
}
8181
`;
8282

83-
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (1) > onActionOpen 2`] = `
83+
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out codinit artifacts (1) > onActionOpen 2`] = `
8484
{
8585
"action": {
8686
"content": "",
@@ -93,7 +93,7 @@ exports[`StreamingMessageParser > valid artifacts with actions > should correctl
9393
}
9494
`;
9595

96-
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (1) > onArtifactClose 1`] = `
96+
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out codinit artifacts (1) > onArtifactClose 1`] = `
9797
{
9898
"id": "artifact_1",
9999
"messageId": "message_1",
@@ -102,7 +102,7 @@ exports[`StreamingMessageParser > valid artifacts with actions > should correctl
102102
}
103103
`;
104104

105-
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out bolt artifacts (1) > onArtifactOpen 1`] = `
105+
exports[`StreamingMessageParser > valid artifacts with actions > should correctly parse chunks and strip out codinit artifacts (1) > onArtifactOpen 1`] = `
106106
{
107107
"id": "artifact_1",
108108
"messageId": "message_1",
@@ -111,7 +111,7 @@ exports[`StreamingMessageParser > valid artifacts with actions > should correctl
111111
}
112112
`;
113113

114-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (0) > onArtifactClose 1`] = `
114+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (0) > onArtifactClose 1`] = `
115115
{
116116
"id": "artifact_1",
117117
"messageId": "message_1",
@@ -120,7 +120,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
120120
}
121121
`;
122122

123-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (0) > onArtifactOpen 1`] = `
123+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (0) > onArtifactOpen 1`] = `
124124
{
125125
"id": "artifact_1",
126126
"messageId": "message_1",
@@ -129,7 +129,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
129129
}
130130
`;
131131

132-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (1) > onArtifactClose 1`] = `
132+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (1) > onArtifactClose 1`] = `
133133
{
134134
"id": "artifact_1",
135135
"messageId": "message_1",
@@ -138,7 +138,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
138138
}
139139
`;
140140

141-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (1) > onArtifactOpen 1`] = `
141+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (1) > onArtifactOpen 1`] = `
142142
{
143143
"id": "artifact_1",
144144
"messageId": "message_1",
@@ -147,7 +147,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
147147
}
148148
`;
149149

150-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (2) > onArtifactClose 1`] = `
150+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (2) > onArtifactClose 1`] = `
151151
{
152152
"id": "artifact_1",
153153
"messageId": "message_1",
@@ -156,7 +156,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
156156
}
157157
`;
158158

159-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (2) > onArtifactOpen 1`] = `
159+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (2) > onArtifactOpen 1`] = `
160160
{
161161
"id": "artifact_1",
162162
"messageId": "message_1",
@@ -165,7 +165,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
165165
}
166166
`;
167167

168-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (3) > onArtifactClose 1`] = `
168+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (3) > onArtifactClose 1`] = `
169169
{
170170
"id": "artifact_1",
171171
"messageId": "message_1",
@@ -174,7 +174,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
174174
}
175175
`;
176176

177-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (3) > onArtifactOpen 1`] = `
177+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (3) > onArtifactOpen 1`] = `
178178
{
179179
"id": "artifact_1",
180180
"messageId": "message_1",
@@ -183,7 +183,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
183183
}
184184
`;
185185

186-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (4) > onArtifactClose 1`] = `
186+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (4) > onArtifactClose 1`] = `
187187
{
188188
"id": "artifact_1",
189189
"messageId": "message_1",
@@ -192,7 +192,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
192192
}
193193
`;
194194

195-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (4) > onArtifactOpen 1`] = `
195+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (4) > onArtifactOpen 1`] = `
196196
{
197197
"id": "artifact_1",
198198
"messageId": "message_1",
@@ -201,7 +201,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
201201
}
202202
`;
203203

204-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (5) > onArtifactClose 1`] = `
204+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (5) > onArtifactClose 1`] = `
205205
{
206206
"id": "artifact_1",
207207
"messageId": "message_1",
@@ -210,7 +210,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
210210
}
211211
`;
212212

213-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (5) > onArtifactOpen 1`] = `
213+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (5) > onArtifactOpen 1`] = `
214214
{
215215
"id": "artifact_1",
216216
"messageId": "message_1",
@@ -219,7 +219,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
219219
}
220220
`;
221221

222-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (6) > onArtifactClose 1`] = `
222+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (6) > onArtifactClose 1`] = `
223223
{
224224
"id": "artifact_1",
225225
"messageId": "message_1",
@@ -228,7 +228,7 @@ exports[`StreamingMessageParser > valid artifacts without actions > should corre
228228
}
229229
`;
230230

231-
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out bolt artifacts (6) > onArtifactOpen 1`] = `
231+
exports[`StreamingMessageParser > valid artifacts without actions > should correctly parse chunks and strip out codinit artifacts (6) > onArtifactOpen 1`] = `
232232
{
233233
"id": "artifact_1",
234234
"messageId": "message_1",

0 commit comments

Comments
 (0)