llm-mock-server 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.desloppify/query.json +1162 -62
- package/.desloppify/review_packet_blind.json +18 -18
- package/.desloppify/review_packets/holistic_packet_20260315_185401.json +1407 -0
- package/.desloppify/review_packets/holistic_packet_20260315_185613.json +1407 -0
- package/.desloppify/state-typescript.json +2530 -645
- package/.desloppify/state-typescript.json.bak +2494 -582
- package/.desloppify/subagents/runs/20260315_185401/logs/batch-1.log +384 -0
- package/.desloppify/subagents/runs/20260315_185401/logs/batch-10.log +484 -0
- package/.desloppify/subagents/runs/20260315_185401/logs/batch-2.log +408 -0
- package/.desloppify/subagents/runs/20260315_185401/logs/batch-3.log +416 -0
- package/.desloppify/subagents/runs/20260315_185401/logs/batch-4.log +360 -0
- package/.desloppify/subagents/runs/20260315_185401/logs/batch-5.log +360 -0
- package/.desloppify/subagents/runs/20260315_185401/logs/batch-6.log +364 -0
- package/.desloppify/subagents/runs/20260315_185401/logs/batch-7.log +428 -0
- package/.desloppify/subagents/runs/20260315_185401/logs/batch-8.log +388 -0
- package/.desloppify/subagents/runs/20260315_185401/logs/batch-9.log +500 -0
- package/.desloppify/subagents/runs/20260315_185401/prompts/batch-1.md +83 -0
- package/.desloppify/subagents/runs/20260315_185401/prompts/batch-10.md +108 -0
- package/.desloppify/subagents/runs/20260315_185401/prompts/batch-2.md +89 -0
- package/.desloppify/subagents/runs/20260315_185401/prompts/batch-3.md +91 -0
- package/.desloppify/subagents/runs/20260315_185401/prompts/batch-4.md +77 -0
- package/.desloppify/subagents/runs/20260315_185401/prompts/batch-5.md +77 -0
- package/.desloppify/subagents/runs/20260315_185401/prompts/batch-6.md +78 -0
- package/.desloppify/subagents/runs/20260315_185401/prompts/batch-7.md +94 -0
- package/.desloppify/subagents/runs/20260315_185401/prompts/batch-8.md +84 -0
- package/.desloppify/subagents/runs/20260315_185401/prompts/batch-9.md +112 -0
- package/.desloppify/subagents/runs/20260315_185401/results/batch-1.raw.txt +0 -0
- package/.desloppify/subagents/runs/20260315_185401/results/batch-10.raw.txt +0 -0
- package/.desloppify/subagents/runs/20260315_185401/results/batch-2.raw.txt +0 -0
- package/.desloppify/subagents/runs/20260315_185401/results/batch-3.raw.txt +0 -0
- package/.desloppify/subagents/runs/20260315_185401/results/batch-4.raw.txt +0 -0
- package/.desloppify/subagents/runs/20260315_185401/results/batch-5.raw.txt +0 -0
- package/.desloppify/subagents/runs/20260315_185401/results/batch-6.raw.txt +0 -0
- package/.desloppify/subagents/runs/20260315_185401/results/batch-7.raw.txt +0 -0
- package/.desloppify/subagents/runs/20260315_185401/results/batch-8.raw.txt +0 -0
- package/.desloppify/subagents/runs/20260315_185401/results/batch-9.raw.txt +0 -0
- package/.desloppify/subagents/runs/20260315_185401/run.log +36 -0
- package/.desloppify/subagents/runs/20260315_185401/run_summary.json +156 -0
- package/.desloppify/subagents/runs/20260315_185613/holistic_findings_merged.json +741 -0
- package/.desloppify/subagents/runs/20260315_185613/logs/batch-1.log +579 -0
- package/.desloppify/subagents/runs/20260315_185613/logs/batch-10.log +1537 -0
- package/.desloppify/subagents/runs/20260315_185613/logs/batch-2.log +829 -0
- package/.desloppify/subagents/runs/20260315_185613/logs/batch-3.log +927 -0
- package/.desloppify/subagents/runs/20260315_185613/logs/batch-4.log +429 -0
- package/.desloppify/subagents/runs/20260315_185613/logs/batch-5.log +276 -0
- package/.desloppify/subagents/runs/20260315_185613/logs/batch-6.log +450 -0
- package/.desloppify/subagents/runs/20260315_185613/logs/batch-7.log +730 -0
- package/.desloppify/subagents/runs/20260315_185613/logs/batch-8.log +698 -0
- package/.desloppify/subagents/runs/20260315_185613/logs/batch-9.log +938 -0
- package/.desloppify/subagents/runs/20260315_185613/prompts/batch-1.md +83 -0
- package/.desloppify/subagents/runs/20260315_185613/prompts/batch-10.md +108 -0
- package/.desloppify/subagents/runs/20260315_185613/prompts/batch-2.md +89 -0
- package/.desloppify/subagents/runs/20260315_185613/prompts/batch-3.md +91 -0
- package/.desloppify/subagents/runs/20260315_185613/prompts/batch-4.md +77 -0
- package/.desloppify/subagents/runs/20260315_185613/prompts/batch-5.md +77 -0
- package/.desloppify/subagents/runs/20260315_185613/prompts/batch-6.md +78 -0
- package/.desloppify/subagents/runs/20260315_185613/prompts/batch-7.md +94 -0
- package/.desloppify/subagents/runs/20260315_185613/prompts/batch-8.md +84 -0
- package/.desloppify/subagents/runs/20260315_185613/prompts/batch-9.md +112 -0
- package/.desloppify/subagents/runs/20260315_185613/results/batch-1.raw.txt +78 -0
- package/.desloppify/subagents/runs/20260315_185613/results/batch-10.raw.txt +242 -0
- package/.desloppify/subagents/runs/20260315_185613/results/batch-2.raw.txt +102 -0
- package/.desloppify/subagents/runs/20260315_185613/results/batch-3.raw.txt +94 -0
- package/.desloppify/subagents/runs/20260315_185613/results/batch-4.raw.txt +86 -0
- package/.desloppify/subagents/runs/20260315_185613/results/batch-5.raw.txt +1 -0
- package/.desloppify/subagents/runs/20260315_185613/results/batch-6.raw.txt +87 -0
- package/.desloppify/subagents/runs/20260315_185613/results/batch-7.raw.txt +1 -0
- package/.desloppify/subagents/runs/20260315_185613/results/batch-8.raw.txt +107 -0
- package/.desloppify/subagents/runs/20260315_185613/results/batch-9.raw.txt +67 -0
- package/.desloppify/subagents/runs/20260315_185613/run.log +96 -0
- package/.desloppify/subagents/runs/20260315_185613/run_summary.json +156 -0
- package/.github/workflows/docs.yml +46 -0
- package/.github/workflows/test.yml +3 -0
- package/README.md +8 -4
- package/docs/ARCHITECTURE.md +11 -11
- package/package.json +18 -11
- package/scorecard.png +0 -0
- package/src/{cli.ts → cli/cli.ts} +6 -11
- package/src/{cli-validators.ts → cli/validators.ts} +10 -9
- package/src/formats/anthropic/index.ts +2 -2
- package/src/formats/anthropic/parse.ts +5 -2
- package/src/formats/anthropic/serialize.ts +3 -3
- package/src/formats/openai/{index.ts → chat-completions/index.ts} +3 -3
- package/src/formats/openai/{parse.ts → chat-completions/parse.ts} +5 -2
- package/src/formats/openai/{serialize.ts → chat-completions/serialize.ts} +3 -3
- package/src/formats/{responses → openai/responses}/index.ts +2 -2
- package/src/formats/{responses → openai/responses}/parse.ts +5 -2
- package/src/formats/{responses → openai/responses}/serialize.ts +3 -3
- package/src/formats/request-helpers.ts +6 -1
- package/src/formats/serialize-helpers.ts +9 -4
- package/src/formats/types.ts +2 -6
- package/src/history.ts +6 -2
- package/src/loader.ts +2 -1
- package/src/mock-server.ts +55 -106
- package/src/route-handler.ts +7 -11
- package/src/rule-builder.ts +73 -0
- package/src/rule-engine.ts +3 -10
- package/src/sse-writer.ts +1 -1
- package/src/types/reply.ts +51 -8
- package/src/types/request.ts +21 -6
- package/src/types/rule.ts +65 -7
- package/test/cli-validators.test.ts +13 -5
- package/test/formats/openai.test.ts +40 -28
- package/test/formats/responses.test.ts +2 -2
- package/test/history.test.ts +1 -1
- package/test/loader.test.ts +3 -3
- package/test/logger.test.ts +2 -2
- package/test/mock-server.test.ts +1 -1
- package/test/rule-engine.test.ts +1 -1
- package/tsconfig.json +2 -4
- package/typedoc.json +9 -0
- /package/src/formats/openai/{schema.ts → chat-completions/schema.ts} +0 -0
- /package/src/formats/{responses → openai/responses}/schema.ts +0 -0
|
@@ -439,12 +439,12 @@
|
|
|
439
439
|
"errors": {
|
|
440
440
|
"strategy_by_directory": {
|
|
441
441
|
"src/": {
|
|
442
|
-
"throws":
|
|
442
|
+
"throws": 12,
|
|
443
443
|
"try_catch": 4,
|
|
444
444
|
"returns_null": 1
|
|
445
445
|
},
|
|
446
446
|
"formats/": {
|
|
447
|
-
"throws":
|
|
447
|
+
"throws": 4
|
|
448
448
|
},
|
|
449
449
|
"test/": {
|
|
450
450
|
"throws": 10
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
{
|
|
481
481
|
"file": "test/formats/anthropic.test.ts",
|
|
482
482
|
"max_chain_depth": 3,
|
|
483
|
-
"chain_count":
|
|
483
|
+
"chain_count": 8
|
|
484
484
|
},
|
|
485
485
|
{
|
|
486
486
|
"file": "src/cli.ts",
|
|
@@ -498,14 +498,14 @@
|
|
|
498
498
|
"chain_count": 16
|
|
499
499
|
},
|
|
500
500
|
{
|
|
501
|
-
"file": "test/
|
|
501
|
+
"file": "test/formats/responses.test.ts",
|
|
502
502
|
"max_chain_depth": 2,
|
|
503
503
|
"chain_count": 15
|
|
504
504
|
},
|
|
505
505
|
{
|
|
506
|
-
"file": "test/
|
|
506
|
+
"file": "test/history.test.ts",
|
|
507
507
|
"max_chain_depth": 2,
|
|
508
|
-
"chain_count":
|
|
508
|
+
"chain_count": 15
|
|
509
509
|
},
|
|
510
510
|
{
|
|
511
511
|
"file": "src/rule-engine.ts",
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
{
|
|
553
553
|
"file": "src/loader.ts",
|
|
554
554
|
"wide_functions": 0,
|
|
555
|
-
"config_bag_mentions":
|
|
555
|
+
"config_bag_mentions": 15
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
558
|
"file": "src/mock-server.ts",
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
"sse-writer.ts",
|
|
588
588
|
"types.ts"
|
|
589
589
|
],
|
|
590
|
-
"total_loc":
|
|
590
|
+
"total_loc": 1273,
|
|
591
591
|
"avg_fan_in": 3.8,
|
|
592
592
|
"avg_fan_out": 2.9,
|
|
593
593
|
"zones": {
|
|
@@ -597,8 +597,8 @@
|
|
|
597
597
|
"src/formats/": 3,
|
|
598
598
|
"src/types/": 3,
|
|
599
599
|
"src/formats/responses/": 1,
|
|
600
|
-
"src/formats/
|
|
601
|
-
"src/formats/
|
|
600
|
+
"src/formats/openai/": 1,
|
|
601
|
+
"src/formats/anthropic/": 1
|
|
602
602
|
},
|
|
603
603
|
"imported_by_dirs": {
|
|
604
604
|
"test/": 8,
|
|
@@ -673,9 +673,9 @@
|
|
|
673
673
|
"src/": 3
|
|
674
674
|
},
|
|
675
675
|
"imported_by_dirs": {
|
|
676
|
+
"src/formats/openai/": 5,
|
|
676
677
|
"src/formats/responses/": 5,
|
|
677
678
|
"src/formats/anthropic/": 5,
|
|
678
|
-
"src/formats/openai/": 5,
|
|
679
679
|
"src/": 3,
|
|
680
680
|
"test/formats/": 2
|
|
681
681
|
}
|
|
@@ -730,7 +730,7 @@
|
|
|
730
730
|
"mock-server.test.ts",
|
|
731
731
|
"rule-engine.test.ts"
|
|
732
732
|
],
|
|
733
|
-
"total_loc":
|
|
733
|
+
"total_loc": 2029,
|
|
734
734
|
"avg_fan_in": 0.0,
|
|
735
735
|
"avg_fan_out": 1.8,
|
|
736
736
|
"zones": {
|
|
@@ -749,7 +749,7 @@
|
|
|
749
749
|
"parse-helpers.test.ts",
|
|
750
750
|
"responses.test.ts"
|
|
751
751
|
],
|
|
752
|
-
"total_loc":
|
|
752
|
+
"total_loc": 1335,
|
|
753
753
|
"avg_fan_in": 0.0,
|
|
754
754
|
"avg_fan_out": 2.2,
|
|
755
755
|
"zones": {
|
|
@@ -790,14 +790,14 @@
|
|
|
790
790
|
"test/formats/ \u2192 src/formats/": 2,
|
|
791
791
|
"test/formats/ \u2192 src/formats/responses/": 2,
|
|
792
792
|
"src/ \u2192 src/formats/responses/": 1,
|
|
793
|
-
"src/ \u2192 src/formats/anthropic/": 1,
|
|
794
793
|
"src/ \u2192 src/formats/openai/": 1,
|
|
794
|
+
"src/ \u2192 src/formats/anthropic/": 1,
|
|
795
795
|
"test/formats/ \u2192 src/": 1
|
|
796
796
|
}
|
|
797
797
|
},
|
|
798
798
|
"codebase_stats": {
|
|
799
799
|
"total_files": 41,
|
|
800
|
-
"total_loc":
|
|
800
|
+
"total_loc": 6077
|
|
801
801
|
},
|
|
802
802
|
"authorization": {
|
|
803
803
|
"route_auth_coverage": {
|
|
@@ -898,8 +898,8 @@
|
|
|
898
898
|
"existing_findings": {},
|
|
899
899
|
"codebase_stats": {
|
|
900
900
|
"total_files": 41,
|
|
901
|
-
"total_loc":
|
|
902
|
-
"avg_file_loc":
|
|
901
|
+
"total_loc": 6077,
|
|
902
|
+
"avg_file_loc": 148
|
|
903
903
|
},
|
|
904
904
|
"sibling_conventions": {
|
|
905
905
|
"src/": {
|
|
@@ -1038,8 +1038,8 @@
|
|
|
1038
1038
|
"src/cli.ts",
|
|
1039
1039
|
"test/mock-server.test.ts",
|
|
1040
1040
|
"src/formats/responses/serialize.ts",
|
|
1041
|
-
"test/history.test.ts",
|
|
1042
1041
|
"test/formats/responses.test.ts",
|
|
1042
|
+
"test/history.test.ts",
|
|
1043
1043
|
"src/rule-engine.ts",
|
|
1044
1044
|
"src/history.ts",
|
|
1045
1045
|
"src/loader.ts",
|