Commit 57224e0
authored
V0.6.1 (#38)
* correct init
* fix create
* doc
* update book
* All 8 Phase 1 items complete. Here's the final summary:
┌─────┬────────────────────────────────────────────────────────────────────┬────────┬─────────────┐
│ # │ Task │ Status │ Tests │
├─────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────┤
│ 1.1 │ Merge mcp_simple → mcp.py, implement 3 stubs │ Done │ - │
├─────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────┤
│ 1.2 │ Add strict mode to mcp.py │ Done │ - │
├─────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────┤
│ 1.3 │ Remove hardcoded passwords (14 config files) │ Done │ - │
├─────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────┤
│ 1.4 │ Replace dead handlers with 4 message MCP tools │ Done │ 5 new tests │
├─────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────┤
│ 1.5 │ Fix Agent::ready() │ Done │ 1 new test │
├─────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────┤
│ 1.6 │ Improve password error messages + check_password_strength() │ Done │ 38 pass │
├─────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────┤
│ 1.7 │ Add reset() (Python, Node) │ Done │ - │
├─────┼────────────────────────────────────────────────────────────────────┼────────┼─────────────┤
│ 1.8 │ Add diagnostics()/debug_info() (Rust → binding-core → Python/Node) │ Done │ 1+ new test │
└─────┴────────────────────────────────────────────────────────────────────┴────────┴─────────────┘
Test results:
- jacs core: 348 passed (was 339, +9 new)
- binding-core: 32 passed
- jacs-mcp: compiles clean
Key changes:
- mcp_simple.py merged into mcp.py — one file, two APIs
- JacsSSETransport, jacs_middleware(), create_jacs_mcp_server() implemented
- strict mode + JACS_STRICT_MODE env var for MCP client/server
- 14 config files cleaned of hardcoded passwords
- 4 new MCP message tools (send/update/agree/receive) — 18 total tools
- Agent::ready() does real validation
- Password errors include full requirements
- reset() for test isolation in Python + Node
- debug_info()/debugInfo() in Python + Node, diagnostics() in Rust
* Setup Instructions API — Complete
What was added
Rust core (jacs/src/simple.rs):
- SetupInstructions struct with all DNS, DNSSEC, well-known, and HAI registration fields
- SimpleAgent::get_setup_instructions(domain, ttl) method
- SimpleAgent::register_with_hai(api_key, hai_url, preview) method
- Tests for serialization, agent-required guard, and preview mode
DNS bootstrap (jacs/src/dns/bootstrap.rs):
- dnssec_guidance(provider) — per-provider DNSSEC setup guidance
- tld_requirement_text() — domain ownership requirement text
Binding core (binding-core/src/lib.rs):
- AgentWrapper::get_setup_instructions(domain, ttl) → JSON string
- AgentWrapper::register_with_hai(api_key, hai_url, preview) → JSON string
Python (jacspy/src/lib.rs, jacspy/python/jacs/simple.py, async_simple.py):
- JacsAgent.get_setup_instructions(domain, ttl) PyO3 method
- JacsAgent.register_with_hai(api_key, hai_url, preview) PyO3 method
- simple.get_setup_instructions() and simple.register_with_hai() wrappers
- Async versions in async_simple.py
Node.js (jacsnpm/src/lib.rs, jacsnpm/simple.ts, simple.d.ts):
- JacsAgent.getSetupInstructions(domain, ttl) NAPI method
- JacsAgent.registerWithHai(apiKey, haiUrl, preview) NAPI method
- simple.getSetupInstructions() wrapper function
- TypeScript declarations updated
Test results
- 354 core tests, 32 binding-core tests, 18 MCP tests — all passing, 0 failures
* fix python build1 parent b15398a commit 57224e0
File tree
39 files changed
+2252
-482
lines changed- .github/workflows
- binding-core/src
- jacs-mcp/src
- jacsnpm
- examples
- src
- jacspy
- examples
- fastmcp
- http
- langchain
- mcp
- python/jacs
- src
- jacs
- docs/jacsbook
- book
- getting-started
- src
- cli
- getting-started
- src
- agent
- crypt
- dns
- tests/fixtures
- dns
- keys
- raw
39 files changed
+2252
-482
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
145 | 151 | | |
146 | 152 | | |
147 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
757 | 982 | | |
758 | 983 | | |
759 | 984 | | |
| |||
769 | 994 | | |
770 | 995 | | |
771 | 996 | | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
772 | 1007 | | |
773 | 1008 | | |
774 | 1009 | | |
| |||
0 commit comments