holon-types 0.0.1-dev.14 → 0.0.1-dev.16

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/README.md CHANGED
@@ -62,13 +62,13 @@ Call the server. A wrong tool name or argument is a type error.
62
62
  ```python
63
63
  from holon.apps import apps
64
64
 
65
- await apps.context7.call_tool("resolve-library-id", libraryName="Next.js", query="app router")
65
+ await apps.context7.tools.resolve_library_id(libraryName="Next.js", query="app router")
66
66
 
67
- await apps.context7.call_tool("resolve-library-id", libraryName=1, query="app router")
68
- # error: No overload variant of "call_tool" of "Context7App" matches argument types "str", "int", "str" [call-overload]
67
+ await apps.context7.tools.resolve_library_id(libraryName=1, query="app router")
68
+ # error: Argument "libraryName" to "resolve_library_id" of "Context7Tools" has incompatible type "int"; expected "str" [arg-type]
69
69
 
70
- await apps.context7.call_tool("resolve-library", libraryName="Next.js", query="app router")
71
- # error: No overload variant of "call_tool" of "Context7App" matches argument types "str", "str", "str" [call-overload]
70
+ await apps.context7.tools.resolve_library(libraryName="Next.js", query="app router")
71
+ # error: "Context7Tools" has no attribute "resolve_library"; maybe "resolve_library_id"? [attr-defined]
72
72
  ```
73
73
 
74
74
  </details>
@@ -160,7 +160,7 @@ greeting.text;
160
160
 
161
161
  ## Dependencies
162
162
 
163
- A dependency is an MCP server your project calls. For each one `holon` obtains a contract—the JSON Schemas of the server's tools and resources—and writes a typed client `apps.<alias>` into the SDK package your project declares. `holon types check` then runs the language's type checker over your code against those clients.
163
+ A dependency is an MCP server your project calls. For each one `holon` obtains a contract—the JSON Schemas of the server's tools and resources—and writes a typed client `apps.<alias>` into the SDK package your project declares. `holon types check` then runs the language's type checker over your code against those clients. A TypeScript project needs a `tsconfig.json`, found as `tsc` finds it.
164
164
 
165
165
  A dependency is written in one of three ways.
166
166
 
@@ -3827,6 +3827,32 @@ Apache License
3827
3827
 
3828
3828
  --------------------------------------------------------------------------------
3829
3829
 
3830
+ github.com/pelletier/go-toml/v2 v2.4.3: Copyright (c) 2021 - 2023 Thomas Pelletier
3831
+
3832
+ The MIT License (MIT)
3833
+
3834
+ go-toml v2
3835
+
3836
+ Permission is hereby granted, free of charge, to any person obtaining a copy
3837
+ of this software and associated documentation files (the "Software"), to deal
3838
+ in the Software without restriction, including without limitation the rights
3839
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3840
+ copies of the Software, and to permit persons to whom the Software is
3841
+ furnished to do so, subject to the following conditions:
3842
+
3843
+ The above copyright notice and this permission notice shall be included in all
3844
+ copies or substantial portions of the Software.
3845
+
3846
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3847
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3848
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3849
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3850
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3851
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3852
+ SOFTWARE.
3853
+
3854
+ --------------------------------------------------------------------------------
3855
+
3830
3856
  github.com/pkg/errors v0.9.1: Copyright (c) 2015, Dave Cheney <dave@cheney.net>
3831
3857
 
3832
3858
  All rights reserved.
@@ -4788,6 +4814,7 @@ limitations under the License.
4788
4814
  --------------------------------------------------------------------------------
4789
4815
 
4790
4816
  golang.org/x/crypto v0.57.0: Copyright 2009 The Go Authors.
4817
+ golang.org/x/mod v0.41.0: Copyright 2009 The Go Authors.
4791
4818
  golang.org/x/net v0.59.0: Copyright 2009 The Go Authors.
4792
4819
  golang.org/x/oauth2 v0.37.0: Copyright 2009 The Go Authors.
4793
4820
  golang.org/x/sync v0.23.0: Copyright 2009 The Go Authors.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "holon-types",
3
- "version": "0.0.1-dev.14",
3
+ "version": "0.0.1-dev.16",
4
4
  "description": "The holon CLI: typed clients for MCP servers, generated and type-checked",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,9 +15,9 @@
15
15
  "node": ">=22"
16
16
  },
17
17
  "optionalDependencies": {
18
- "holon-types-darwin-x64": "0.0.1-dev.14",
19
- "holon-types-darwin-arm64": "0.0.1-dev.14",
20
- "holon-types-linux-x64": "0.0.1-dev.14",
21
- "holon-types-linux-arm64": "0.0.1-dev.14"
18
+ "holon-types-darwin-x64": "0.0.1-dev.16",
19
+ "holon-types-darwin-arm64": "0.0.1-dev.16",
20
+ "holon-types-linux-x64": "0.0.1-dev.16",
21
+ "holon-types-linux-arm64": "0.0.1-dev.16"
22
22
  }
23
23
  }