Skip to content

Commit b4e22b5

Browse files
authored
Merge branch 'develop' into alejandro/chore/hide-fetch-requests
2 parents b18537b + e3f4064 commit b4e22b5

File tree

7 files changed

+5
-13
lines changed

7 files changed

+5
-13
lines changed

.circleci/src/pipeline/@pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ commands:
118118
name: Set environment variable to determine whether or not to persist artifacts
119119
command: |
120120
echo "Setting SHOULD_PERSIST_ARTIFACTS variable"
121-
echo 'if ! [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "release/"* && "$CIRCLE_BRANCH" != "feat/cy-prompt" ]]; then
121+
echo 'if ! [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "release/"* && "$CIRCLE_BRANCH" != "ryanm/fix/rename-exclude-from-ai" ]]; then
122122
export SHOULD_PERSIST_ARTIFACTS=true
123123
fi' >> "$BASH_ENV"
124124
# You must run `setup_should_persist_artifacts` command and be using bash before running this command

.circleci/src/pipeline/workflows/@main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ linux-x64:
55
- equal: [ develop, << pipeline.git.branch >> ]
66
# use the following branch as well to ensure that v8 snapshot cache updates are fully tested
77
- equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ]
8-
- equal: [ 'feat/cy-prompt', << pipeline.git.branch >> ]
8+
- equal: [ 'ryanm/fix/rename-exclude-from-ai', << pipeline.git.branch >> ]
99
- matches:
1010
pattern: /^release\/\d+\.\d+\.\d+$/
1111
value: << pipeline.git.branch >>

cli/types/cypress.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ declare namespace Cypress {
5959
[key: string]: any
6060
}
6161
interface PromptOptions {
62-
excludeFromAI?: Record<string, string>
62+
placeholders?: Record<string, string>
6363
}
6464
interface Auth {
6565
username: string

packages/server/lib/cloud/api/cy-prompt/get_cy_prompt_bundle.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export const getCyPromptBundle = async ({ cyPromptUrl, projectId, bundlePath }:
2626
'x-route-version': '1',
2727
'x-cypress-signature': PUBLIC_KEY_VERSION,
2828
...(projectId ? { 'x-cypress-project-slug': projectId } : {}),
29-
'x-cypress-cy-prompt-mount-version': '1',
3029
'x-os-name': os.platform(),
3130
'x-cypress-version': pkg.version,
3231
},

packages/server/lib/cloud/api/cy-prompt/post_cy_prompt_session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const postCyPromptSession = async ({ projectId }: PostCyPromptSessionOpti
2121
'x-os-name': os.platform(),
2222
'x-cypress-version': pkg.version,
2323
},
24-
body: JSON.stringify({ projectSlug: projectId, cyPromptMountVersion: 1 }),
24+
body: JSON.stringify({ projectSlug: projectId, cyPromptMountVersion: 2 }),
2525
})
2626
}, {
2727
maxAttempts: 3,

packages/server/test/unit/cloud/api/cy-prompt/get_cy_prompt_bundle_spec.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ describe('getCyPromptBundle', () => {
7575
'x-route-version': '1',
7676
'x-cypress-signature': '1',
7777
'x-cypress-project-slug': '12345',
78-
'x-cypress-cy-prompt-mount-version': '1',
7978
'x-os-name': 'linux',
8079
'x-cypress-version': '1.2.3',
8180
},
@@ -121,7 +120,6 @@ describe('getCyPromptBundle', () => {
121120
'x-route-version': '1',
122121
'x-cypress-signature': '1',
123122
'x-cypress-project-slug': '12345',
124-
'x-cypress-cy-prompt-mount-version': '1',
125123
'x-os-name': 'linux',
126124
'x-cypress-version': '1.2.3',
127125
},
@@ -152,7 +150,6 @@ describe('getCyPromptBundle', () => {
152150
'x-route-version': '1',
153151
'x-cypress-signature': '1',
154152
'x-cypress-project-slug': '12345',
155-
'x-cypress-cy-prompt-mount-version': '1',
156153
'x-os-name': 'linux',
157154
'x-cypress-version': '1.2.3',
158155
},
@@ -177,7 +174,6 @@ describe('getCyPromptBundle', () => {
177174
'x-route-version': '1',
178175
'x-cypress-signature': '1',
179176
'x-cypress-project-slug': '12345',
180-
'x-cypress-cy-prompt-mount-version': '1',
181177
'x-os-name': 'linux',
182178
'x-cypress-version': '1.2.3',
183179
},
@@ -220,7 +216,6 @@ describe('getCyPromptBundle', () => {
220216
'x-route-version': '1',
221217
'x-cypress-signature': '1',
222218
'x-cypress-project-slug': '12345',
223-
'x-cypress-cy-prompt-mount-version': '1',
224219
'x-os-name': 'linux',
225220
'x-cypress-version': '1.2.3',
226221
},
@@ -255,7 +250,6 @@ describe('getCyPromptBundle', () => {
255250
'x-route-version': '1',
256251
'x-cypress-signature': '1',
257252
'x-cypress-project-slug': '12345',
258-
'x-cypress-cy-prompt-mount-version': '1',
259253
'x-os-name': 'linux',
260254
'x-cypress-version': '1.2.3',
261255
},
@@ -288,7 +282,6 @@ describe('getCyPromptBundle', () => {
288282
'x-route-version': '1',
289283
'x-cypress-signature': '1',
290284
'x-cypress-project-slug': '12345',
291-
'x-cypress-cy-prompt-mount-version': '1',
292285
'x-os-name': 'linux',
293286
'x-cypress-version': '1.2.3',
294287
},

packages/server/test/unit/cloud/api/cy-prompt/post_cy_prompt_session_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('postCyPromptSession', () => {
4141
'x-os-name': os.platform(),
4242
'x-cypress-version': pkg.version,
4343
},
44-
body: JSON.stringify({ projectSlug: '12345', cyPromptMountVersion: 1 }),
44+
body: JSON.stringify({ projectSlug: '12345', cyPromptMountVersion: 2 }),
4545
},
4646
)
4747
})

0 commit comments

Comments
 (0)