ummaya 0.2.3 → 0.2.4

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 (111) hide show
  1. package/README.md +2 -1
  2. package/npm-shrinkwrap.json +2 -2
  3. package/package.json +1 -1
  4. package/prompts/manifest.yaml +2 -2
  5. package/prompts/session_guidance_v1.md +3 -1
  6. package/prompts/system_v1.md +8 -7
  7. package/pyproject.toml +2 -7
  8. package/src/ummaya/context/builder.py +17 -11
  9. package/src/ummaya/engine/engine.py +27 -7
  10. package/src/ummaya/engine/query.py +20 -0
  11. package/src/ummaya/evidence/__init__.py +25 -0
  12. package/src/ummaya/evidence/__main__.py +7 -0
  13. package/src/ummaya/evidence/models.py +58 -0
  14. package/src/ummaya/evidence/runner.py +308 -0
  15. package/src/ummaya/evidence/task_registry.py +264 -0
  16. package/src/ummaya/ipc/frame_schema.py +47 -0
  17. package/src/ummaya/ipc/stdio.py +1287 -54
  18. package/src/ummaya/llm/client.py +132 -56
  19. package/src/ummaya/llm/reasoning.py +84 -0
  20. package/src/ummaya/tools/discovery_bridge.py +17 -1
  21. package/src/ummaya/tools/executor.py +32 -12
  22. package/src/ummaya/tools/geocoding/kakao_client.py +1 -2
  23. package/src/ummaya/tools/kma/apihub_catalog.py +984 -1
  24. package/src/ummaya/tools/kma/apihub_structured_adapter.py +86 -6
  25. package/src/ummaya/tools/kma/apihub_url_adapter.py +593 -0
  26. package/src/ummaya/tools/kma/apihub_url_catalog.py +296 -0
  27. package/src/ummaya/tools/location_adapters.py +8 -6
  28. package/src/ummaya/tools/manifest_metadata.py +16 -3
  29. package/src/ummaya/tools/mvp_surface.py +2 -2
  30. package/src/ummaya/tools/nmc/emergency_search.py +8 -6
  31. package/src/ummaya/tools/register_all.py +9 -0
  32. package/src/ummaya/tools/resolve_location.py +4 -4
  33. package/src/ummaya/tools/search.py +664 -18
  34. package/src/ummaya/tools/verified_data_go_kr/_manifest.py +115 -25
  35. package/src/ummaya/tools/verified_data_go_kr/airkorea_air_quality.py +109 -4
  36. package/src/ummaya/tools/verified_data_go_kr/nmc_aed_site.py +108 -2
  37. package/src/ummaya/tools/verified_data_go_kr/pps_bid_public_info.py +174 -9
  38. package/src/ummaya/tools/verified_data_go_kr/tago_bus_arrival.py +66 -3
  39. package/src/ummaya/tools/verified_data_go_kr/tago_bus_location.py +12 -2
  40. package/src/ummaya/tools/verified_data_go_kr/tago_bus_route.py +8 -2
  41. package/src/ummaya/tools/verified_data_go_kr/tago_bus_route_station.py +114 -0
  42. package/src/ummaya/tools/verified_data_go_kr/tago_bus_station.py +14 -3
  43. package/src/ummaya/tools/verify_canonical_map.py +21 -0
  44. package/tui/package.json +1 -2
  45. package/tui/src/QueryEngine.ts +4 -0
  46. package/tui/src/cli/handlers/auth.ts +1 -1
  47. package/tui/src/cli/handlers/mcp.tsx +3 -3
  48. package/tui/src/cli/print.ts +69 -18
  49. package/tui/src/cli/update.ts +13 -13
  50. package/tui/src/commands/copy/index.ts +1 -1
  51. package/tui/src/commands/cost/cost.ts +2 -2
  52. package/tui/src/commands/init-verifiers.ts +5 -5
  53. package/tui/src/commands/init.ts +30 -30
  54. package/tui/src/commands/insights.ts +43 -43
  55. package/tui/src/commands/install-github-app/install-github-app.tsx +2 -2
  56. package/tui/src/commands/install-github-app/setupGitHubActions.ts +3 -3
  57. package/tui/src/commands/install.tsx +5 -5
  58. package/tui/src/commands/mcp/addCommand.ts +5 -5
  59. package/tui/src/commands/mcp/xaaIdpCommand.ts +2 -2
  60. package/tui/src/commands/plugin/ManageMarketplaces.tsx +2 -2
  61. package/tui/src/commands/reasoning/index.ts +13 -0
  62. package/tui/src/commands/reasoning/reasoning.tsx +177 -0
  63. package/tui/src/commands/thinkback/thinkback.tsx +3 -3
  64. package/tui/src/commands.ts +2 -0
  65. package/tui/src/components/Messages.tsx +2 -1
  66. package/tui/src/components/Spinner.tsx +2 -2
  67. package/tui/src/components/design-system/LoadingState.tsx +2 -2
  68. package/tui/src/ipc/codec.ts +26 -0
  69. package/tui/src/ipc/frames.generated.ts +398 -303
  70. package/tui/src/ipc/llmClient.ts +130 -51
  71. package/tui/src/ipc/llmTypes.ts +16 -1
  72. package/tui/src/ipc/schema/frame.schema.json +1 -3475
  73. package/tui/src/main.tsx +3 -0
  74. package/tui/src/query.ts +467 -2
  75. package/tui/src/screens/REPL.tsx +3 -3
  76. package/tui/src/services/api/claude.ts +48 -18
  77. package/tui/src/services/api/client.ts +33 -12
  78. package/tui/src/services/api/ummaya.ts +70 -16
  79. package/tui/src/skills/bundled/stuck.ts +12 -12
  80. package/tui/src/state/AppStateStore.ts +7 -0
  81. package/tui/src/tools/AdapterTool/AdapterTool.ts +590 -7
  82. package/tui/src/tools/LookupPrimitive/LookupPrimitive.ts +43 -17
  83. package/tui/src/tools/LookupPrimitive/prompt.ts +7 -6
  84. package/tui/src/tools/ResolveLocationPrimitive/ResolveLocationPrimitive.ts +40 -19
  85. package/tui/src/tools/SubmitPrimitive/SubmitPrimitive.ts +25 -9
  86. package/tui/src/tools/VerifyPrimitive/VerifyPrimitive.ts +25 -9
  87. package/tui/src/tools/_shared/citizenUserText.ts +49 -0
  88. package/tui/src/tools/_shared/directPublicDataGuard.ts +362 -0
  89. package/tui/src/tools/_shared/kmaAnalysisGuard.ts +197 -0
  90. package/tui/src/tools/_shared/kmaAviationGuard.ts +70 -0
  91. package/tui/src/tools/_shared/locationInputRepair.ts +112 -0
  92. package/tui/src/tools/_shared/nmcAedGuard.ts +234 -0
  93. package/tui/src/tools/_shared/protectedCheckGuard.ts +207 -0
  94. package/tui/src/tools/_shared/rootPrimitiveInput.ts +67 -0
  95. package/tui/src/tools/_shared/textToolCallGuard.ts +91 -0
  96. package/tui/src/tools/_shared/toolChoiceRepair.ts +866 -0
  97. package/tui/src/utils/attachments.ts +1 -1
  98. package/tui/src/utils/kExaoneReasoning.ts +138 -0
  99. package/tui/src/utils/messages.ts +1 -0
  100. package/tui/src/utils/multiToolLayout.ts +13 -0
  101. package/tui/src/utils/processUserInput/processSlashCommand.tsx +2 -2
  102. package/tui/src/utils/processUserInput/processUserInput.ts +26 -0
  103. package/tui/src/utils/settings/applySettingsChange.ts +4 -0
  104. package/tui/src/utils/settings/types.ts +9 -3
  105. package/tui/src/utils/stats.ts +1 -1
  106. package/uv.lock +1 -15
  107. package/assets/copilot-gate-logo.svg +0 -58
  108. package/assets/govon-logo.svg +0 -40
  109. package/src/ummaya/eval/__init__.py +0 -5
  110. package/src/ummaya/eval/retrieval.py +0 -713
  111. package/tui/src/utils/messageStream.ts +0 -186
package/uv.lock CHANGED
@@ -1688,18 +1688,6 @@ wheels = [
1688
1688
  { url = "https://files.pythonhosted.org/packages/10/bd/c038d7cc38edc1aa5bf91ab8068b63d4308c66c4c8bb3cbba7dfbc049f9c/pyparsing-3.3.2-py3-none-any.whl", hash = "sha256:850ba148bd908d7e2411587e247a1e4f0327839c40e2e5e6d05a007ecc69911d", size = 122781, upload-time = "2026-01-21T03:57:55.912Z" },
1689
1689
  ]
1690
1690
 
1691
- [[package]]
1692
- name = "pyte"
1693
- version = "0.8.2"
1694
- source = { registry = "https://pypi.org/simple" }
1695
- dependencies = [
1696
- { name = "wcwidth" },
1697
- ]
1698
- sdist = { url = "https://files.pythonhosted.org/packages/ab/ab/b599762933eba04de7dc5b31ae083112a6c9a9db15b01d3109ad797559d9/pyte-0.8.2.tar.gz", hash = "sha256:5af970e843fa96a97149d64e170c984721f20e52227a2f57f0a54207f08f083f", size = 92301, upload-time = "2023-11-12T09:33:43.217Z" }
1699
- wheels = [
1700
- { url = "https://files.pythonhosted.org/packages/59/d0/bb522283b90853afbf506cd5b71c650cf708829914efd0003d615cf426cd/pyte-0.8.2-py3-none-any.whl", hash = "sha256:85db42a35798a5aafa96ac4d8da78b090b2c933248819157fc0e6f78876a0135", size = 31627, upload-time = "2023-11-12T09:33:41.096Z" },
1701
- ]
1702
-
1703
1691
  [[package]]
1704
1692
  name = "pytest"
1705
1693
  version = "9.0.3"
@@ -2725,7 +2713,7 @@ wheels = [
2725
2713
 
2726
2714
  [[package]]
2727
2715
  name = "ummaya"
2728
- version = "0.2.3"
2716
+ version = "0.2.4"
2729
2717
  source = { editable = "." }
2730
2718
  dependencies = [
2731
2719
  { name = "httpx" },
@@ -2755,7 +2743,6 @@ dev = [
2755
2743
  { name = "pip-audit" },
2756
2744
  { name = "pip-licenses" },
2757
2745
  { name = "pre-commit" },
2758
- { name = "pyte" },
2759
2746
  { name = "pytest" },
2760
2747
  { name = "pytest-asyncio" },
2761
2748
  { name = "pytest-benchmark" },
@@ -2812,7 +2799,6 @@ requires-dist = [
2812
2799
  { name = "prompt-toolkit", specifier = ">=3.0" },
2813
2800
  { name = "pydantic", specifier = ">=2.13.0" },
2814
2801
  { name = "pydantic-settings", specifier = ">=2.13.1" },
2815
- { name = "pyte", marker = "extra == 'dev'", specifier = ">=0.8.2" },
2816
2802
  { name = "pytest", marker = "extra == 'dev'", specifier = ">=8.0" },
2817
2803
  { name = "pytest-asyncio", marker = "extra == 'dev'", specifier = ">=1.3.0" },
2818
2804
  { name = "pytest-benchmark", marker = "extra == 'dev'", specifier = ">=5.2.3" },
@@ -1,58 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="none">
2
- <defs>
3
- <linearGradient id="bg" x1="0" y1="0" x2="512" y2="512" gradientUnits="userSpaceOnUse">
4
- <stop offset="0%" stop-color="#0f172a"/>
5
- <stop offset="100%" stop-color="#1e1b4b"/>
6
- </linearGradient>
7
- <linearGradient id="shield" x1="160" y1="100" x2="352" y2="400" gradientUnits="userSpaceOnUse">
8
- <stop offset="0%" stop-color="#6366f1"/>
9
- <stop offset="100%" stop-color="#4f46e5"/>
10
- </linearGradient>
11
- <linearGradient id="check" x1="200" y1="240" x2="310" y2="320" gradientUnits="userSpaceOnUse">
12
- <stop offset="0%" stop-color="#34d399"/>
13
- <stop offset="100%" stop-color="#10b981"/>
14
- </linearGradient>
15
- <filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
16
- <feGaussianBlur stdDeviation="8" result="blur"/>
17
- <feMerge>
18
- <feMergeNode in="blur"/>
19
- <feMergeNode in="SourceGraphic"/>
20
- </feMerge>
21
- </filter>
22
- <filter id="shadow">
23
- <feDropShadow dx="0" dy="4" stdDeviation="8" flood-color="#000" flood-opacity="0.3"/>
24
- </filter>
25
- </defs>
26
-
27
- <!-- Background -->
28
- <rect width="512" height="512" rx="96" fill="url(#bg)"/>
29
-
30
- <!-- Subtle grid pattern -->
31
- <line x1="128" y1="0" x2="128" y2="512" stroke="#1e293b" stroke-width="0.5" opacity="0.3"/>
32
- <line x1="256" y1="0" x2="256" y2="512" stroke="#1e293b" stroke-width="0.5" opacity="0.3"/>
33
- <line x1="384" y1="0" x2="384" y2="512" stroke="#1e293b" stroke-width="0.5" opacity="0.3"/>
34
- <line x1="0" y1="128" x2="512" y2="128" stroke="#1e293b" stroke-width="0.5" opacity="0.3"/>
35
- <line x1="0" y1="256" x2="512" y2="256" stroke="#1e293b" stroke-width="0.5" opacity="0.3"/>
36
- <line x1="0" y1="384" x2="512" y2="384" stroke="#1e293b" stroke-width="0.5" opacity="0.3"/>
37
-
38
- <!-- Shield shape -->
39
- <path d="M256 90 L370 145 C370 145 380 290 256 410 C132 290 142 145 142 145 Z"
40
- fill="url(#shield)" filter="url(#shadow)" opacity="0.9"/>
41
-
42
- <!-- Shield inner highlight -->
43
- <path d="M256 110 L355 158 C355 158 363 282 256 390 C149 282 157 158 157 158 Z"
44
- fill="none" stroke="#818cf8" stroke-width="1.5" opacity="0.4"/>
45
-
46
- <!-- Gate bars -->
47
- <rect x="210" y="180" width="8" height="140" rx="4" fill="#a5b4fc" opacity="0.3"/>
48
- <rect x="248" y="180" width="8" height="140" rx="4" fill="#a5b4fc" opacity="0.3"/>
49
- <rect x="286" y="180" width="8" height="140" rx="4" fill="#a5b4fc" opacity="0.3"/>
50
-
51
- <!-- Checkmark -->
52
- <polyline points="210,270 245,310 310,230" stroke="url(#check)" stroke-width="20"
53
- stroke-linecap="round" stroke-linejoin="round" fill="none" filter="url(#glow)"/>
54
-
55
- <!-- GATE text -->
56
- <text x="256" y="450" text-anchor="middle" font-family="system-ui, -apple-system, sans-serif"
57
- font-size="28" font-weight="700" fill="#94a3b8" letter-spacing="6">GATE</text>
58
- </svg>
@@ -1,40 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" role="img" aria-label="GovOn">
2
- <title>GovOn</title>
3
- <!-- Outer dark border -->
4
- <rect x="0" y="0" width="240" height="240" rx="34" ry="34" fill="#0d1f17"/>
5
- <!-- Inner forest-green tile -->
6
- <rect x="6" y="6" width="228" height="228" rx="29" ry="29" fill="#1a3a2e"/>
7
- <!-- Subtle inner highlight (top-left) for depth -->
8
- <rect x="6" y="6" width="228" height="228" rx="29" ry="29" fill="url(#sheen)" opacity="0.06"/>
9
- <defs>
10
- <linearGradient id="sheen" x1="0" y1="0" x2="1" y2="1">
11
- <stop offset="0%" stop-color="#ffffff" stop-opacity="0.65"/>
12
- <stop offset="55%" stop-color="#ffffff" stop-opacity="0"/>
13
- </linearGradient>
14
- </defs>
15
- <!-- Stylised cream G -->
16
- <path fill="#F5EFE0" fill-rule="evenodd" d="
17
- M 122 38
18
- C 158 38 187 60 195 92
19
- C 196 96 193 100 189 100
20
- L 162 100
21
- C 159 100 156 98 155 95
22
- C 150 81 138 72 122 72
23
- C 100 72 84 90 84 119
24
- C 84 148 100 167 122 167
25
- C 137 167 149 158 154 144
26
- C 155 141 153 138 150 138
27
- L 124 138
28
- C 119 138 115 134 115 129
29
- L 115 115
30
- C 115 110 119 106 124 106
31
- L 196 106
32
- C 200 106 204 110 204 115
33
- L 204 158
34
- C 204 161 203 163 201 165
35
- C 184 188 156 202 122 202
36
- C 73 202 36 167 36 119
37
- C 36 71 73 38 122 38
38
- Z
39
- "/>
40
- </svg>
@@ -1,5 +0,0 @@
1
- # SPDX-License-Identifier: Apache-2.0
2
- """UMMAYA evaluation harness package.
3
-
4
- Provides retrieval quality evaluation tools for the BM25-based adapter search.
5
- """