|
1 | 1 | import * as analytics from '@codebuff/common/analytics' |
2 | | -import { TEST_USER_ID } from '@codebuff/common/testing/fixtures' |
| 2 | + |
3 | 3 | import { createTestAgentRuntimeParams } from '@codebuff/common/testing/fixtures/agent-runtime' |
4 | 4 | import { getInitialSessionState } from '@codebuff/common/types/session-state' |
5 | 5 | import { assistantMessage, userMessage } from '@codebuff/common/util/messages' |
@@ -99,7 +99,7 @@ describe('n parameter and GENERATE_N functionality', () => { |
99 | 99 | ancestorRunIds: [], |
100 | 100 | repoId: undefined, |
101 | 101 | repoUrl: undefined, |
102 | | - userId: TEST_USER_ID, |
| 102 | + userId: 'test-user-id', |
103 | 103 | userInputId: 'test-input', |
104 | 104 | clientSessionId: 'test-session', |
105 | 105 | fingerprintId: 'test-fingerprint', |
@@ -237,7 +237,7 @@ describe('n parameter and GENERATE_N functionality', () => { |
237 | 237 | template: mockTemplate, |
238 | 238 | prompt: 'Test prompt', |
239 | 239 | toolCallParams: {}, |
240 | | - userId: TEST_USER_ID, |
| 240 | + userId: 'test-user-id', |
241 | 241 | userInputId: 'test-user-input', |
242 | 242 | clientSessionId: 'test-session', |
243 | 243 | fingerprintId: 'test-fingerprint', |
@@ -277,7 +277,7 @@ describe('n parameter and GENERATE_N functionality', () => { |
277 | 277 | template: mockTemplate, |
278 | 278 | prompt: 'Test prompt', |
279 | 279 | toolCallParams: {}, |
280 | | - userId: TEST_USER_ID, |
| 280 | + userId: 'test-user-id', |
281 | 281 | userInputId: 'test-user-input', |
282 | 282 | clientSessionId: 'test-session', |
283 | 283 | fingerprintId: 'test-fingerprint', |
@@ -342,7 +342,7 @@ describe('n parameter and GENERATE_N functionality', () => { |
342 | 342 | template: mockTemplate, |
343 | 343 | prompt: 'Test prompt', |
344 | 344 | toolCallParams: {}, |
345 | | - userId: TEST_USER_ID, |
| 345 | + userId: 'test-user-id', |
346 | 346 | userInputId: 'test-user-input', |
347 | 347 | clientSessionId: 'test-session', |
348 | 348 | fingerprintId: 'test-fingerprint', |
@@ -425,7 +425,7 @@ describe('n parameter and GENERATE_N functionality', () => { |
425 | 425 | template: mockTemplate, |
426 | 426 | prompt: 'Test', |
427 | 427 | toolCallParams: {}, |
428 | | - userId: TEST_USER_ID, |
| 428 | + userId: 'test-user-id', |
429 | 429 | userInputId: 'test-input', |
430 | 430 | clientSessionId: 'test-session', |
431 | 431 | fingerprintId: 'test-fingerprint', |
@@ -521,7 +521,7 @@ describe('n parameter and GENERATE_N functionality', () => { |
521 | 521 | template: mockTemplate, |
522 | 522 | prompt: 'Test', |
523 | 523 | toolCallParams: {}, |
524 | | - userId: TEST_USER_ID, |
| 524 | + userId: 'test-user-id', |
525 | 525 | userInputId: 'test-input', |
526 | 526 | clientSessionId: 'test-session', |
527 | 527 | fingerprintId: 'test-fingerprint', |
@@ -586,7 +586,7 @@ describe('n parameter and GENERATE_N functionality', () => { |
586 | 586 | template: mockTemplate, |
587 | 587 | prompt: 'Test', |
588 | 588 | toolCallParams: {}, |
589 | | - userId: TEST_USER_ID, |
| 589 | + userId: 'test-user-id', |
590 | 590 | userInputId: 'test-input', |
591 | 591 | clientSessionId: 'test-session', |
592 | 592 | fingerprintId: 'test-fingerprint', |
@@ -625,7 +625,7 @@ describe('n parameter and GENERATE_N functionality', () => { |
625 | 625 | template: mockTemplate, |
626 | 626 | prompt: 'Test', |
627 | 627 | toolCallParams: {}, |
628 | | - userId: TEST_USER_ID, |
| 628 | + userId: 'test-user-id', |
629 | 629 | userInputId: 'test-input', |
630 | 630 | clientSessionId: 'test-session', |
631 | 631 | fingerprintId: 'test-fingerprint', |
@@ -672,7 +672,7 @@ describe('n parameter and GENERATE_N functionality', () => { |
672 | 672 | template: mockTemplate, |
673 | 673 | prompt: 'Test', |
674 | 674 | toolCallParams: {}, |
675 | | - userId: TEST_USER_ID, |
| 675 | + userId: 'test-user-id', |
676 | 676 | userInputId: 'test-input', |
677 | 677 | clientSessionId: 'test-session', |
678 | 678 | fingerprintId: 'test-fingerprint', |
@@ -716,7 +716,7 @@ describe('n parameter and GENERATE_N functionality', () => { |
716 | 716 | template: mockTemplate, |
717 | 717 | prompt: 'Test', |
718 | 718 | toolCallParams: {}, |
719 | | - userId: TEST_USER_ID, |
| 719 | + userId: 'test-user-id', |
720 | 720 | userInputId: 'test-input', |
721 | 721 | clientSessionId: 'test-session', |
722 | 722 | fingerprintId: 'test-fingerprint', |
@@ -779,7 +779,7 @@ describe('n parameter and GENERATE_N functionality', () => { |
779 | 779 | template: mockTemplate, |
780 | 780 | prompt: 'Test', |
781 | 781 | toolCallParams: {}, |
782 | | - userId: TEST_USER_ID, |
| 782 | + userId: 'test-user-id', |
783 | 783 | userInputId: 'test-input', |
784 | 784 | clientSessionId: 'test-session', |
785 | 785 | fingerprintId: 'test-fingerprint', |
@@ -827,7 +827,7 @@ describe('n parameter and GENERATE_N functionality', () => { |
827 | 827 | template: mockTemplate, |
828 | 828 | prompt: 'Test', |
829 | 829 | toolCallParams: {}, |
830 | | - userId: TEST_USER_ID, |
| 830 | + userId: 'test-user-id', |
831 | 831 | userInputId: 'test-input', |
832 | 832 | clientSessionId: 'test-session', |
833 | 833 | fingerprintId: 'test-fingerprint', |
|
0 commit comments