mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-20 04:59:34 +01:00
fix(deepseek): skip a tokenless banner line while scanning
The scanner now takes the first `dsh web:` line that parses as an http(s) URL AND carries a token, as the boot contract describes, instead of settling on an earlier plain URL and reporting no launch URL. The tokenless line is still what identifies an older, ungated dsh in the wait loop.
This commit is contained in:
1 parent
06100a5506
commit
44a10cff39
2 files changed
+17
-8
No files matched your search
@@ -106,6 +106,12 @@ describe('parseLaunchUrl: the one-time token dsh prints on boot', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('skips a URL without a token and keeps scanning for the token one', () => {
|
||||
expect(parseLaunchUrl('dsh web: http://127.0.0.1:3080/\ndsh web: http://127.0.0.1:3080/?token=abc\n')).toBe(
|
||||
'http://127.0.0.1:3080/?token=abc'
|
||||
);
|
||||
});
|
||||
|
||||
it('returns null for a token-less banner, which is the older dsh', () => {
|
||||
expect(parseLaunchUrl('dsh web: http://127.0.0.1:3080/\n')).toBeNull();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user