武阳
|
a040d80096
|
Add directory-based project skills
|
2026-04-28 10:17:23 +08:00 |
|
Abdelrahman Elsayed Mahmoud Abdallah
|
a4aaf814d7
|
Here's a summary of all the features I ported from the TypeScript source to Python:
|
2026-04-15 02:29:22 +02:00 |
|
Abdelrahman Abdallah
|
aacf0a212a
|
Created src/prompt_constants.py (550+ lines) porting all constants from npm src/constants/:
┌──────────────────┬───────────────────────────┬───────────────────────────────────────────────┐
│ Category │ npm Source │ Items │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ Product metadata │ product.ts │ URLs, base URLs │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ System prefixes │ system.ts │ 3 prompt prefixes │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ Cyber risk │ cyberRiskInstruction.ts │ Safety instruction │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ API limits │ apiLimits.ts │ 10 image/PDF/media limits │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ Tool limits │ toolLimits.ts │ 6 result size constants │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ Spinner verbs │ spinnerVerbs.ts │ 187 whimsical gerunds │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ Completion verbs │ turnCompletionVerbs.ts │ 8 past-tense verbs │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ Figures/symbols │ figures.ts │ 25 Unicode UI symbols │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ XML tags │ xml.ts │ 30+ tag constants │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ Messages │ messages.ts │ NO_CONTENT_MESSAGE │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ Date utilities │ common.ts │ 4 functions │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ Section caching │ systemPromptSections.ts │ Memoized/volatile sections │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ Output styles │ outputStyles.ts │ 3 built-in configs │
├──────────────────┼───────────────────────────┼───────────────────────────────────────────────┤
│ Prompt helpers │ prompts.ts │ Knowledge cutoff, language, scratchpad, hooks │
└──────────────────┴───────────────────────────┴───────────────────────────────────────────────┘
91 new tests in tests/test_prompt_constants.py. All 17 SQL todos done.
|
2026-04-08 00:02:53 +02:00 |
|
Abdelrahman Abdallah
|
a54c90b18f
|
update the codebase and clean up it
|
2026-04-06 03:42:44 +02:00 |
|
Abdelrahman Abdallah
|
17845a6dc4
|
demo
|
2026-04-02 00:01:53 +02:00 |
|
Abdelrahman Abdallah
|
9c057bbba9
|
add toml
|
2026-04-01 21:59:20 +02:00 |
|
Abdelrahman Abdallah
|
27aff5611b
|
first commit
|
2026-04-01 21:51:49 +02:00 |
|