cnhkmcp 2.3.2__py3-none-any.whl → 2.3.3__py3-none-any.whl

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.
Files changed (45) hide show
  1. cnhkmcp/__init__.py +1 -1
  2. cnhkmcp/untracked/AI/321/206/320/231/320/243/321/205/342/225/226/320/265/321/204/342/225/221/342/225/221/BRAIN_AI/321/206/320/231/320/243/321/205/342/225/226/320/265/321/204/342/225/221/342/225/221Mac_Linux/321/207/320/231/320/230/321/206/320/254/320/274.zip +0 -0
  3. cnhkmcp/untracked/AI/321/206/320/231/320/243/321/205/342/225/226/320/265/321/204/342/225/221/342/225/221//321/205/320/237/320/234/321/205/320/227/342/225/227/321/205/320/276/320/231/321/210/320/263/320/225AI/321/206/320/231/320/243/321/205/342/225/226/320/265/321/204/342/225/221/342/225/221_Windows/321/207/320/231/320/230/321/206/320/254/320/274.exe +0 -0
  4. cnhkmcp/untracked/APP/trailSomeAlphas/ace.log +1 -0
  5. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-data-feature-engineering/output_report/GLB_delay1_fundamental28_ideas.md +384 -0
  6. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/final_expressions.json +41 -0
  7. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874844124598400.json +7 -0
  8. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874844589448700.json +8 -0
  9. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874845048996700.json +8 -0
  10. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874845510819100.json +12 -0
  11. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874845978315000.json +10 -0
  12. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874846459411100.json +10 -0
  13. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874846924915700.json +8 -0
  14. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874847399137200.json +8 -0
  15. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874847858960800.json +10 -0
  16. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874848327921300.json +8 -0
  17. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874848810818000.json +8 -0
  18. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874849327754300.json +7 -0
  19. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874849795807500.json +8 -0
  20. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874850272279500.json +8 -0
  21. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874850757124200.json +7 -0
  22. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_1_idea_1769874851224506800.json +8 -0
  23. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/data/fundamental28_GLB_delay1/fundamental28_GLB_delay1.csv +930 -0
  24. cnhkmcp/untracked/APP/trailSomeAlphas/skills/brain-feature-implementation/scripts/ace.log +1 -0
  25. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/.gitignore +14 -0
  26. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/SKILL.md +76 -0
  27. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/ace.log +0 -0
  28. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/ace_lib.py +1512 -0
  29. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/config.json +6 -0
  30. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/fundamental28_GLB_1_idea_1769874845978315000.json +10 -0
  31. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/helpful_functions.py +180 -0
  32. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/scripts/__init__.py +0 -0
  33. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/scripts/build_alpha_list.py +86 -0
  34. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/scripts/fetch_sim_options.py +51 -0
  35. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/scripts/load_credentials.py +93 -0
  36. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/scripts/parse_idea_file.py +85 -0
  37. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/scripts/process_template.py +80 -0
  38. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/scripts/resolve_settings.py +94 -0
  39. cnhkmcp/untracked/skills/brain-inspectTemplate-create-Setting/sim_options_snapshot.json +414 -0
  40. {cnhkmcp-2.3.2.dist-info → cnhkmcp-2.3.3.dist-info}/METADATA +1 -1
  41. {cnhkmcp-2.3.2.dist-info → cnhkmcp-2.3.3.dist-info}/RECORD +45 -11
  42. {cnhkmcp-2.3.2.dist-info → cnhkmcp-2.3.3.dist-info}/WHEEL +0 -0
  43. {cnhkmcp-2.3.2.dist-info → cnhkmcp-2.3.3.dist-info}/entry_points.txt +0 -0
  44. {cnhkmcp-2.3.2.dist-info → cnhkmcp-2.3.3.dist-info}/licenses/LICENSE +0 -0
  45. {cnhkmcp-2.3.2.dist-info → cnhkmcp-2.3.3.dist-info}/top_level.txt +0 -0
@@ -13,3 +13,4 @@ Incorrect email or password
13
13
  2026-01-31 17:23:26,330 - ace - ERROR -
14
14
  Incorrect email or password
15
15
 
16
+ 2026-01-31 23:49:39,982 - ace - WARNING - No fields found: region=GLB, delay=1, universe=TOPDIV3000, type=VECTOR, dataset.id=fundamental28
@@ -0,0 +1,14 @@
1
+ # Local secrets
2
+ config.json
3
+
4
+ # Snapshots / outputs
5
+ sim_options_snapshot.json
6
+ processed_templates/
7
+
8
+ # Python
9
+ __pycache__/
10
+ *.pyc
11
+ .pytest_cache/
12
+
13
+ # Logs
14
+ *.log
@@ -0,0 +1,76 @@
1
+ ---
2
+ name: brain-inspecttemplate-create-setting
3
+ description: >-
4
+ Reads a BRAIN template/idea JSON (template/idea/expression_list) like
5
+ fundamental28_GLB_1_idea_<timestamp>.json, fetches valid simulation setting options
6
+ via ace_lib.get_instrument_type_region_delay, resolves region/delay/universe/neutralization,
7
+ and builds an Alpha list JSON (one Alpha per expression) using ace_lib.generate_alpha.
8
+ Use when user asks to inspect template files, attach settings, create alpha list, or validate settings.
9
+ user-invocable: true
10
+ ---
11
+
12
+ # brain-inspectTemplate-create-Setting
13
+
14
+ This skill is designed for *stable, repeatable runs*.
15
+
16
+ ## Deterministic vs AI responsibilities
17
+
18
+ Deterministic (scripts):
19
+ - **Entry Point**: `scripts/process_template.py` handles the initial flow (Part 1).
20
+ - **Part 1 Output**: `settings_candidates.json` containing valid platform options for the detected Region/Delay.
21
+ - **Part 2 Output**: `alpha_list.json` (generated iteratively by AI).
22
+
23
+ AI reasoning (Critical Step):
24
+ - **Input**: The AI must read `idea_context.json` (to understand intent) AND `settings_candidates.json` (to see valid options).
25
+ - **Loop**: The AI can decide on **multiple** setting combinations if the idea is ambiguous or worth testing broadly.
26
+ - e.g., Run 1: `Universe=TOP3000`, `Neutralization=INDUSTRY`
27
+ - e.g., Run 2: `Universe=TOPDIV3000`, `Neutralization=MARKET`
28
+ - **Action**: For EACH chosen setting, call `scripts/build_alpha_list.py` passing the settings as a JSON string.
29
+ - The script will **APPEND** to `alpha_list.json`, allowing comprehensive test coverage.
30
+
31
+ ## Config / credentials check (startup)
32
+
33
+ To connect to BRAIN API (only needed for fetching sim options), provide credentials via one of:
34
+ 1) Environment variables: `BRAIN_USERNAME` (or `BRAIN_EMAIL`) and `BRAIN_PASSWORD`
35
+ 2) `config.json` next to this file (see `config.example.json`)
36
+ 3) `~/secrets/platform-brain.json` (keys: `email`/`password`)
37
+
38
+ Never commit real credentials. Keep `config.json` local.
39
+
40
+ ## Run steps
41
+
42
+ **Important**: Always navigate to the skill directory first, as scripts rely on relative paths.
43
+
44
+ ### One-click Processing (Recommended)
45
+ 1. **Navigate to skill folder**:
46
+ `cd "path/to/brain-inspectTemplate-create-Setting"`
47
+
48
+ 2. **Run wrapper script**:
49
+ Use the wrapper script to generate all artifacts in a dedicated folder (e.g., `processed_templates/<filename>/`).
50
+
51
+ `C:/Python313/python.exe scripts/process_template.py --file <absolute_path_to_input_json>`
52
+
53
+ *Example*:
54
+ `C:/Python313/python.exe scripts/process_template.py --file "C:/Users/user/Downloads/fundamental28_GLB_1_idea_...json"`
55
+
56
+ This will:
57
+ 1. Parse the idea file.
58
+ 2. Fetch simulation options (if `sim_options_snapshot.json` missing in root).
59
+ 3. Resolve settings.
60
+ 4. Generate the Alpha list.
61
+
62
+ ### Manual Steps (Debug)
63
+
64
+ From this folder:
65
+
66
+ 1) Parse idea JSON
67
+ - `C:/Python313/python.exe scripts/parse_idea_file.py --input fundamental28_GLB_1_idea_1769874845978315000.json --out idea_context.json`
68
+
69
+ 2) Fetch sim options snapshot (requires credentials)
70
+ - `C:/Python313/python.exe scripts/fetch_sim_options.py --out sim_options_snapshot.json`
71
+
72
+ 3) Resolve settings
73
+ - `C:/Python313/python.exe scripts/resolve_settings.py --idea idea_context.json --options sim_options_snapshot.json --out resolved_settings.json`
74
+
75
+ 4) Build alpha list
76
+ - `C:/Python313/python.exe scripts/build_alpha_list.py --idea idea_context.json --settings resolved_settings.json --out alpha_list.json`