web-cortex-framework 0.3.2__tar.gz → 2.0.0__tar.gz

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 (44) hide show
  1. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/Cargo.lock +10 -113
  2. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/Cargo.toml +2 -7
  3. web_cortex_framework-2.0.0/PKG-INFO +476 -0
  4. web_cortex_framework-2.0.0/README.md +447 -0
  5. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/Cargo.toml +1 -6
  6. web_cortex_framework-2.0.0/crates/webcortex-core/src/agent/provider.rs +1132 -0
  7. web_cortex_framework-2.0.0/crates/webcortex-core/src/agent/registry.rs +300 -0
  8. web_cortex_framework-2.0.0/crates/webcortex-core/src/agent/session.rs +126 -0
  9. web_cortex_framework-2.0.0/crates/webcortex-core/src/agent.rs +1523 -0
  10. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/app.rs +238 -73
  11. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/audit.rs +55 -0
  12. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/auth.rs +43 -0
  13. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/bridge.rs +3 -1
  14. web_cortex_framework-2.0.0/crates/webcortex-core/src/context.rs +138 -0
  15. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/db.rs +72 -4
  16. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/files.rs +1 -25
  17. web_cortex_framework-2.0.0/crates/webcortex-core/src/flow.rs +390 -0
  18. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/http.rs +54 -14
  19. web_cortex_framework-2.0.0/crates/webcortex-core/src/ledger.rs +208 -0
  20. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/lib.rs +6 -1
  21. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/manifest.rs +448 -40
  22. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/openapi.rs +3 -14
  23. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/server.rs +110 -28
  24. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-py/Cargo.toml +3 -5
  25. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-py/src/behaviour.rs +411 -101
  26. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-py/src/lib.rs +100 -2
  27. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/pyproject.toml +4 -4
  28. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/python/webcortex/__init__.py +1 -1
  29. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/python/webcortex/_bridge.py +6 -1
  30. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/python/webcortex/app.py +557 -77
  31. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/python/webcortex/cli.py +101 -4
  32. web_cortex_framework-2.0.0/python/webcortex/contextpack.py +274 -0
  33. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/python/webcortex/schema.py +11 -5
  34. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/python/webcortex/starters.py +191 -2
  35. web_cortex_framework-0.3.2/PKG-INFO +0 -395
  36. web_cortex_framework-0.3.2/README.md +0 -365
  37. web_cortex_framework-0.3.2/crates/webcortex-core/src/agent/provider.rs +0 -375
  38. web_cortex_framework-0.3.2/crates/webcortex-core/src/agent.rs +0 -573
  39. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/LICENSE +0 -0
  40. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/mcp.rs +0 -0
  41. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/middleware.rs +0 -0
  42. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/router.rs +0 -0
  43. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/templates.rs +0 -0
  44. {web_cortex_framework-0.3.2 → web_cortex_framework-2.0.0}/crates/webcortex-core/src/typegen.rs +0 -0
@@ -17,34 +17,6 @@ version = "0.2.21"
17
17
  source = "registry+https://github.com/rust-lang/crates.io-index"
18
18
  checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
19
19
 
20
- [[package]]
21
- name = "anyhow"
22
- version = "1.0.104"
23
- source = "registry+https://github.com/rust-lang/crates.io-index"
24
- checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
25
-
26
- [[package]]
27
- name = "async-stream"
28
- version = "0.3.6"
29
- source = "registry+https://github.com/rust-lang/crates.io-index"
30
- checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476"
31
- dependencies = [
32
- "async-stream-impl",
33
- "futures-core",
34
- "pin-project-lite",
35
- ]
36
-
37
- [[package]]
38
- name = "async-stream-impl"
39
- version = "0.3.6"
40
- source = "registry+https://github.com/rust-lang/crates.io-index"
41
- checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d"
42
- dependencies = [
43
- "proc-macro2",
44
- "quote",
45
- "syn 2.0.119",
46
- ]
47
-
48
20
  [[package]]
49
21
  name = "atoi"
50
22
  version = "2.0.0"
@@ -95,9 +67,6 @@ name = "bitflags"
95
67
  version = "2.13.1"
96
68
  source = "registry+https://github.com/rust-lang/crates.io-index"
97
69
  checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
98
- dependencies = [
99
- "serde_core",
100
- ]
101
70
 
102
71
  [[package]]
103
72
  name = "block-buffer"
@@ -159,9 +128,9 @@ checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
159
128
 
160
129
  [[package]]
161
130
  name = "chacha20"
162
- version = "0.10.1"
131
+ version = "0.10.2"
163
132
  source = "registry+https://github.com/rust-lang/crates.io-index"
164
- checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81"
133
+ checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
165
134
  dependencies = [
166
135
  "cfg-if",
167
136
  "cpufeatures 0.3.0",
@@ -443,15 +412,6 @@ dependencies = [
443
412
  "zeroize",
444
413
  ]
445
414
 
446
- [[package]]
447
- name = "encoding_rs"
448
- version = "0.8.35"
449
- source = "registry+https://github.com/rust-lang/crates.io-index"
450
- checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
451
- dependencies = [
452
- "cfg-if",
453
- ]
454
-
455
415
  [[package]]
456
416
  name = "equivalent"
457
417
  version = "1.0.2"
@@ -465,7 +425,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
465
425
  checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
466
426
  dependencies = [
467
427
  "libc",
468
- "windows-sys 0.52.0",
428
+ "windows-sys 0.61.2",
469
429
  ]
470
430
 
471
431
  [[package]]
@@ -1538,7 +1498,7 @@ dependencies = [
1538
1498
  "once_cell",
1539
1499
  "socket2",
1540
1500
  "tracing",
1541
- "windows-sys 0.52.0",
1501
+ "windows-sys 0.61.2",
1542
1502
  ]
1543
1503
 
1544
1504
  [[package]]
@@ -1646,9 +1606,7 @@ checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"
1646
1606
  dependencies = [
1647
1607
  "base64 0.22.1",
1648
1608
  "bytes",
1649
- "encoding_rs",
1650
1609
  "futures-core",
1651
- "futures-util",
1652
1610
  "h2",
1653
1611
  "http",
1654
1612
  "http-body",
@@ -1658,7 +1616,6 @@ dependencies = [
1658
1616
  "hyper-util",
1659
1617
  "js-sys",
1660
1618
  "log",
1661
- "mime",
1662
1619
  "percent-encoding",
1663
1620
  "pin-project-lite",
1664
1621
  "quinn",
@@ -1670,14 +1627,12 @@ dependencies = [
1670
1627
  "sync_wrapper",
1671
1628
  "tokio",
1672
1629
  "tokio-rustls",
1673
- "tokio-util",
1674
1630
  "tower",
1675
1631
  "tower-http",
1676
1632
  "tower-service",
1677
1633
  "url",
1678
1634
  "wasm-bindgen",
1679
1635
  "wasm-bindgen-futures",
1680
- "wasm-streams",
1681
1636
  "web-sys",
1682
1637
  "webpki-roots",
1683
1638
  ]
@@ -1743,9 +1698,9 @@ dependencies = [
1743
1698
 
1744
1699
  [[package]]
1745
1700
  name = "rustls"
1746
- version = "0.23.43"
1701
+ version = "0.23.45"
1747
1702
  source = "registry+https://github.com/rust-lang/crates.io-index"
1748
- checksum = "0283386ce02abc0151e1761d08802dfe86c173b0b494af5cbc086574e453da06"
1703
+ checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634"
1749
1704
  dependencies = [
1750
1705
  "once_cell",
1751
1706
  "ring",
@@ -1767,9 +1722,9 @@ dependencies = [
1767
1722
 
1768
1723
  [[package]]
1769
1724
  name = "rustls-webpki"
1770
- version = "0.103.13"
1725
+ version = "0.103.15"
1771
1726
  source = "registry+https://github.com/rust-lang/crates.io-index"
1772
- checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
1727
+ checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"
1773
1728
  dependencies = [
1774
1729
  "ring",
1775
1730
  "rustls-pki-types",
@@ -1869,17 +1824,6 @@ dependencies = [
1869
1824
  "serde",
1870
1825
  ]
1871
1826
 
1872
- [[package]]
1873
- name = "sha1"
1874
- version = "0.11.0"
1875
- source = "registry+https://github.com/rust-lang/crates.io-index"
1876
- checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214"
1877
- dependencies = [
1878
- "cfg-if",
1879
- "cpufeatures 0.3.0",
1880
- "digest 0.11.3",
1881
- ]
1882
-
1883
1827
  [[package]]
1884
1828
  name = "sha2"
1885
1829
  version = "0.10.9"
@@ -2001,7 +1945,6 @@ checksum = "378620ccc25c62c89d8be1c819e76a88d59bdcc3304733330788948e619bfd71"
2001
1945
  dependencies = [
2002
1946
  "sqlx-core",
2003
1947
  "sqlx-macros",
2004
- "sqlx-mysql",
2005
1948
  "sqlx-postgres",
2006
1949
  "sqlx-sqlite",
2007
1950
  ]
@@ -2070,41 +2013,13 @@ dependencies = [
2070
2013
  "serde_json",
2071
2014
  "sha2 0.10.9",
2072
2015
  "sqlx-core",
2073
- "sqlx-mysql",
2074
2016
  "sqlx-postgres",
2075
2017
  "sqlx-sqlite",
2076
2018
  "syn 2.0.119",
2077
- "thiserror",
2078
2019
  "tokio",
2079
2020
  "url",
2080
2021
  ]
2081
2022
 
2082
- [[package]]
2083
- name = "sqlx-mysql"
2084
- version = "0.9.0"
2085
- source = "registry+https://github.com/rust-lang/crates.io-index"
2086
- checksum = "90b8020fe17c5f2c245bfa2505d7ef59c5604839527c740266ad2214acebea27"
2087
- dependencies = [
2088
- "bitflags",
2089
- "byteorder",
2090
- "bytes",
2091
- "crc",
2092
- "digest 0.11.3",
2093
- "dotenvy",
2094
- "either",
2095
- "futures-core",
2096
- "futures-util",
2097
- "generic-array",
2098
- "log",
2099
- "percent-encoding",
2100
- "serde",
2101
- "sha1",
2102
- "sha2 0.11.0",
2103
- "sqlx-core",
2104
- "thiserror",
2105
- "tracing",
2106
- ]
2107
-
2108
2023
  [[package]]
2109
2024
  name = "sqlx-postgres"
2110
2025
  version = "0.9.0"
@@ -2679,19 +2594,6 @@ dependencies = [
2679
2594
  "unicode-ident",
2680
2595
  ]
2681
2596
 
2682
- [[package]]
2683
- name = "wasm-streams"
2684
- version = "0.4.2"
2685
- source = "registry+https://github.com/rust-lang/crates.io-index"
2686
- checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65"
2687
- dependencies = [
2688
- "futures-util",
2689
- "js-sys",
2690
- "wasm-bindgen",
2691
- "wasm-bindgen-futures",
2692
- "web-sys",
2693
- ]
2694
-
2695
2597
  [[package]]
2696
2598
  name = "web-sys"
2697
2599
  version = "0.3.103"
@@ -2714,14 +2616,11 @@ dependencies = [
2714
2616
 
2715
2617
  [[package]]
2716
2618
  name = "webcortex-core"
2717
- version = "0.3.2"
2619
+ version = "2.0.0"
2718
2620
  dependencies = [
2719
- "anyhow",
2720
- "async-stream",
2721
2621
  "base64 0.23.1",
2722
2622
  "bytes",
2723
2623
  "futures",
2724
- "hmac 0.13.0",
2725
2624
  "http-body-util",
2726
2625
  "hyper",
2727
2626
  "hyper-util",
@@ -2729,14 +2628,12 @@ dependencies = [
2729
2628
  "matchit",
2730
2629
  "mime_guess",
2731
2630
  "minijinja",
2732
- "pin-project-lite",
2733
2631
  "reqwest",
2734
2632
  "serde",
2735
2633
  "serde_json",
2736
2634
  "sha2 0.11.0",
2737
2635
  "sqlx",
2738
2636
  "subtle",
2739
- "thiserror",
2740
2637
  "tokio",
2741
2638
  "tracing",
2742
2639
  "tracing-subscriber",
@@ -2745,7 +2642,7 @@ dependencies = [
2745
2642
 
2746
2643
  [[package]]
2747
2644
  name = "webcortex-py"
2748
- version = "0.3.2"
2645
+ version = "2.0.0"
2749
2646
  dependencies = [
2750
2647
  "bytes",
2751
2648
  "futures",
@@ -3,7 +3,7 @@ members = ["crates/webcortex-core", "crates/webcortex-py"]
3
3
  resolver = "3"
4
4
 
5
5
  [workspace.package]
6
- version = "0.3.2"
6
+ version = "2.0.0"
7
7
  edition = "2024"
8
8
  license = "Apache-2.0"
9
9
  rust-version = "1.85"
@@ -24,10 +24,8 @@ serde = { version = "1", features = ["derive"] }
24
24
  serde_json = "1"
25
25
  tracing = "0.1"
26
26
  tracing-subscriber = { version = "0.3", features = ["env-filter"] }
27
- anyhow = "1"
28
- thiserror = "2"
29
27
  futures = "0.3"
30
- reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json", "stream", "charset", "http2"] }
28
+ reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json", "http2"] }
31
29
  minijinja = { version = "2.22", features = ["loader", "builtins"] }
32
30
  # Both features are load-bearing. Without a crypto provider (`rust_crypto` or
33
31
  # `aws_lc_rs`) jsonwebtoken *panics* inside `decode` — reachable by any
@@ -36,13 +34,10 @@ minijinja = { version = "2.22", features = ["loader", "builtins"] }
36
34
  # covers HS, RS, ES, and EdDSA.
37
35
  jsonwebtoken = { version = "11", default-features = false, features = ["rust_crypto", "use_pem"] }
38
36
  sha2 = "0.11"
39
- hmac = "0.13"
40
37
  subtle = "2"
41
38
  base64 = "0.23"
42
39
  uuid = { version = "1", features = ["v4", "fast-rng"] }
43
40
  mime_guess = "2"
44
- async-stream = "0.3"
45
- pin-project-lite = "0.2"
46
41
 
47
42
  [profile.release]
48
43
  opt-level = 3