♻️ refactor(test): rebuild agent runtime test flow

This commit is contained in:
csh
2026-06-24 11:22:09 +08:00
parent a34c6444a5
commit 0f59543409
9 changed files with 1158 additions and 5601 deletions
+14 -1
View File
@@ -1,8 +1,9 @@
{
"version": "2.0",
"version": "2.1",
"description": "Agent-optimized quick index for TSL syntax - read this FIRST",
"total_tokens_saved_per_query": "~2000-3000",
"changelog": {
"2.1": "Added naming/style routing for identifiers and TSF filename alignment",
"2.0": "Extended coverage from 7 to 14 scenarios, added understand_code and optimize_code decision paths",
"1.0": "Initial version with 7 high-frequency scenarios"
},
@@ -62,6 +63,12 @@
"token_cost": 80,
"example": "var a;\na := 1;"
},
"identifier_naming": {
"file": "../naming.md",
"line": 42,
"token_cost": 120,
"example": "UserAccount, LoadData, max_retry_count"
},
"class_basic": {
"file": "08_objects_and_classes.md",
"line": 98,
@@ -122,6 +129,11 @@
"tsl_file_structure": {
"order": ["statements first", "declarations after"],
"wrong": "declarations before statements or after declarations"
},
"identifier_naming": {
"doc": "../naming.md#L42",
"avoid": "ordinary custom identifiers should not use TSL keywords, reserved words, or builtin function names",
"tsf_filename_rule": "02_core_model.md#L38"
}
},
@@ -159,6 +171,7 @@
"simple_script": "01_quickstart.md#L182",
"function": "05_functions_and_calls.md#L103",
"procedure": "05_functions_and_calls.md#L130",
"naming": "../naming.md#L42",
"class": "08_objects_and_classes.md#L98",
"loop": "07_control_flow.md#L89",
"condition": "07_control_flow.md#L54",