incur-cli 0.10.0__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.
- incur/__init__.py +62 -0
- incur/_cli.py +2139 -0
- incur/_command.py +426 -0
- incur/_completions.py +170 -0
- incur/_errors.py +234 -0
- incur/_filter.py +173 -0
- incur/_formatter.py +112 -0
- incur/_gateway.py +173 -0
- incur/_help.py +260 -0
- incur/_http.py +389 -0
- incur/_js.py +467 -0
- incur/_jsonschema.py +320 -0
- incur/_mcp.py +872 -0
- incur/_mcpsource.py +226 -0
- incur/_model.py +348 -0
- incur/_openapi.py +640 -0
- incur/_parser.py +347 -0
- incur/_pm.py +49 -0
- incur/_schema.py +555 -0
- incur/_serve_http.py +236 -0
- incur/_skill.py +355 -0
- incur/_sync.py +403 -0
- incur/_syncmcp.py +188 -0
- incur/_tokens.py +130 -0
- incur/_toon.py +202 -0
- incur/_tree.py +273 -0
- incur/_update.py +373 -0
- incur/_yaml.py +651 -0
- incur/py.typed +0 -0
- incur_cli-0.10.0.dist-info/METADATA +376 -0
- incur_cli-0.10.0.dist-info/RECORD +32 -0
- incur_cli-0.10.0.dist-info/WHEEL +4 -0
incur/__init__.py
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"""Build CLIs for agents and humans: TOON output, LLM manifests, skills, and shell completions.
|
|
2
|
+
|
|
3
|
+
This package is the Python port of the TypeScript `incur` package. Its output matches the
|
|
4
|
+
TypeScript package byte for byte.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from ._cli import BannerMode, Cli, Config, Writer
|
|
8
|
+
from ._command import Context, Middleware, MiddlewareContext, Next, Outcome, OutputPolicy, ok
|
|
9
|
+
from ._errors import Cta, CtaBlock, Error, FieldError
|
|
10
|
+
from ._formatter import Format
|
|
11
|
+
from ._help import Example, Usage
|
|
12
|
+
from ._http import FetchHandler, Headers, Request, RequestSource, Response, from_request, set_fetch
|
|
13
|
+
from ._mcp import McpOptions, McpTool, ToolAnnotations, ToolFilter
|
|
14
|
+
from ._model import FieldInfo, RenameRule, SchemaError, dump, field, schema
|
|
15
|
+
from ._openapi import OpenapiConfig, OpenapiOperation, OpenapiSource
|
|
16
|
+
from ._sync import Sync
|
|
17
|
+
from ._update import Update, UpdateCheck, UpdateInstall
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
"BannerMode",
|
|
21
|
+
"Cli",
|
|
22
|
+
"Config",
|
|
23
|
+
"Context",
|
|
24
|
+
"Cta",
|
|
25
|
+
"CtaBlock",
|
|
26
|
+
"Error",
|
|
27
|
+
"Example",
|
|
28
|
+
"FetchHandler",
|
|
29
|
+
"FieldError",
|
|
30
|
+
"FieldInfo",
|
|
31
|
+
"Format",
|
|
32
|
+
"Headers",
|
|
33
|
+
"McpOptions",
|
|
34
|
+
"McpTool",
|
|
35
|
+
"Middleware",
|
|
36
|
+
"MiddlewareContext",
|
|
37
|
+
"Next",
|
|
38
|
+
"OpenapiConfig",
|
|
39
|
+
"OpenapiOperation",
|
|
40
|
+
"OpenapiSource",
|
|
41
|
+
"Outcome",
|
|
42
|
+
"OutputPolicy",
|
|
43
|
+
"RenameRule",
|
|
44
|
+
"Request",
|
|
45
|
+
"RequestSource",
|
|
46
|
+
"Response",
|
|
47
|
+
"SchemaError",
|
|
48
|
+
"Sync",
|
|
49
|
+
"ToolAnnotations",
|
|
50
|
+
"ToolFilter",
|
|
51
|
+
"Update",
|
|
52
|
+
"UpdateCheck",
|
|
53
|
+
"UpdateInstall",
|
|
54
|
+
"Usage",
|
|
55
|
+
"Writer",
|
|
56
|
+
"dump",
|
|
57
|
+
"field",
|
|
58
|
+
"from_request",
|
|
59
|
+
"ok",
|
|
60
|
+
"schema",
|
|
61
|
+
"set_fetch",
|
|
62
|
+
]
|