superdoc-sdk 2.24.0__tar.gz → 2.26.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.
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/PKG-INFO +6 -6
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/pyproject.toml +7 -6
- superdoc_sdk-2.26.0/superdoc/_whitespace.py +13 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/client.py +0 -4
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/generated/client.py +1188 -107
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/generated/contract.py +1 -1
- superdoc_sdk-2.26.0/superdoc/helpers/__init__.py +33 -0
- superdoc_sdk-2.26.0/superdoc/helpers/format.py +180 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/introspection.py +2 -1
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/presets/__init__.py +3 -2
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/presets/core.py +89 -3
- superdoc_sdk-2.26.0/superdoc/presets/full.py +424 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/protocol.py +10 -3
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/runtime.py +6 -46
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/skill_api.py +2 -1
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/test_parity_helper.py +2 -2
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/tools/catalog.json +67 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/tools/generation-receipt.json +31 -24
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/tools/tools-policy.json +1 -1
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/tools/tools.anthropic.json +67 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/tools/tools.generic.json +67 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/tools/tools.openai.json +67 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/tools/tools.vercel.json +67 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/transport.py +7 -230
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc_sdk.egg-info/PKG-INFO +6 -6
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc_sdk.egg-info/SOURCES.txt +9 -5
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc_sdk.egg-info/requires.txt +5 -5
- superdoc_sdk-2.26.0/tests/test_core_dispatch_options.py +274 -0
- superdoc_sdk-2.26.0/tests/test_full_dispatch_options.py +108 -0
- superdoc_sdk-2.26.0/tests/test_full_revision_parity.py +135 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/tests/test_local_introspection.py +4 -4
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/tests/test_per_open_collaboration_auth.py +6 -6
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/tests/test_presets.py +63 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/tests/test_protocol.py +45 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/tests/test_transport.py +35 -12
- superdoc_sdk-2.26.0/tests/test_whitespace_boundaries.py +86 -0
- superdoc_sdk-2.24.0/superdoc/document_rpc.py +0 -381
- superdoc_sdk-2.24.0/superdoc/embedded_document_host.py +0 -31
- superdoc_sdk-2.24.0/tests/test_document_rpc.py +0 -1219
- superdoc_sdk-2.24.0/tests/test_embedded_document_host.py +0 -53
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/setup.cfg +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/__init__.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/embedded_cli.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/embedded_platform.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/errors.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/generated/__init__.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/presets/custom.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/presets/legacy.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/sdk_policy.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/skills/__init__.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/skills/editing-docx.md +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/tools/intent_dispatch_generated.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/tools/system-prompt-mcp.md +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/tools/system-prompt.md +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc/tools_api.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc_sdk.egg-info/dependency_links.txt +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/superdoc_sdk.egg-info/top_level.txt +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/tests/test_client_method_naming.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/tests/test_custom_actions.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/tests/test_custom_actions_async.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/tests/test_custom_actions_toolkit.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/tests/test_embedded_platform.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/tests/test_helpers_reexports.py +0 -0
- {superdoc_sdk-2.24.0 → superdoc_sdk-2.26.0}/tests/test_smoke_core_preset.py +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: superdoc-sdk
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.26.0
|
|
4
4
|
Summary: SuperDoc SDK (CLI-backed)
|
|
5
5
|
Author: SuperDoc
|
|
6
6
|
License-Expression: AGPL-3.0
|
|
7
7
|
Requires-Python: >=3.9
|
|
8
|
-
Requires-Dist: superdoc-sdk-cli-darwin-arm64==2.
|
|
9
|
-
Requires-Dist: superdoc-sdk-cli-darwin-x64==2.
|
|
10
|
-
Requires-Dist: superdoc-sdk-cli-linux-x64==2.
|
|
11
|
-
Requires-Dist: superdoc-sdk-cli-linux-arm64==2.
|
|
12
|
-
Requires-Dist: superdoc-sdk-cli-windows-x64==2.
|
|
8
|
+
Requires-Dist: superdoc-sdk-cli-darwin-arm64==2.26.0; platform_system == "Darwin" and (platform_machine == "arm64" or platform_machine == "aarch64" or platform_machine == "ARM64")
|
|
9
|
+
Requires-Dist: superdoc-sdk-cli-darwin-x64==2.26.0; platform_system == "Darwin" and (platform_machine == "x86_64" or platform_machine == "AMD64" or platform_machine == "amd64")
|
|
10
|
+
Requires-Dist: superdoc-sdk-cli-linux-x64==2.26.0; platform_system == "Linux" and (platform_machine == "x86_64" or platform_machine == "AMD64" or platform_machine == "amd64")
|
|
11
|
+
Requires-Dist: superdoc-sdk-cli-linux-arm64==2.26.0; platform_system == "Linux" and (platform_machine == "arm64" or platform_machine == "aarch64" or platform_machine == "ARM64")
|
|
12
|
+
Requires-Dist: superdoc-sdk-cli-windows-x64==2.26.0; platform_system == "Windows" and (platform_machine == "x86_64" or platform_machine == "AMD64" or platform_machine == "amd64")
|
|
@@ -4,17 +4,17 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "superdoc-sdk"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.26.0"
|
|
8
8
|
description = "SuperDoc SDK (CLI-backed)"
|
|
9
9
|
requires-python = ">=3.9"
|
|
10
10
|
license = "AGPL-3.0"
|
|
11
11
|
authors = [{ name = "SuperDoc" }]
|
|
12
12
|
dependencies = [
|
|
13
|
-
"superdoc-sdk-cli-darwin-arm64==2.
|
|
14
|
-
"superdoc-sdk-cli-darwin-x64==2.
|
|
15
|
-
"superdoc-sdk-cli-linux-x64==2.
|
|
16
|
-
"superdoc-sdk-cli-linux-arm64==2.
|
|
17
|
-
"superdoc-sdk-cli-windows-x64==2.
|
|
13
|
+
"superdoc-sdk-cli-darwin-arm64==2.26.0; platform_system == 'Darwin' and (platform_machine == 'arm64' or platform_machine == 'aarch64' or platform_machine == 'ARM64')",
|
|
14
|
+
"superdoc-sdk-cli-darwin-x64==2.26.0; platform_system == 'Darwin' and (platform_machine == 'x86_64' or platform_machine == 'AMD64' or platform_machine == 'amd64')",
|
|
15
|
+
"superdoc-sdk-cli-linux-x64==2.26.0; platform_system == 'Linux' and (platform_machine == 'x86_64' or platform_machine == 'AMD64' or platform_machine == 'amd64')",
|
|
16
|
+
"superdoc-sdk-cli-linux-arm64==2.26.0; platform_system == 'Linux' and (platform_machine == 'arm64' or platform_machine == 'aarch64' or platform_machine == 'ARM64')",
|
|
17
|
+
"superdoc-sdk-cli-windows-x64==2.26.0; platform_system == 'Windows' and (platform_machine == 'x86_64' or platform_machine == 'AMD64' or platform_machine == 'amd64')",
|
|
18
18
|
]
|
|
19
19
|
|
|
20
20
|
[tool.uv.sources]
|
|
@@ -35,6 +35,7 @@ dev = [
|
|
|
35
35
|
packages = [
|
|
36
36
|
"superdoc",
|
|
37
37
|
"superdoc.generated",
|
|
38
|
+
"superdoc.helpers",
|
|
38
39
|
"superdoc.presets",
|
|
39
40
|
"superdoc.skills",
|
|
40
41
|
"superdoc.tools",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
_JAVASCRIPT_WHITESPACE = (
|
|
2
|
+
'\u0009\u000a\u000b\u000c\u000d\u0020\u00a0\u1680'
|
|
3
|
+
'\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a'
|
|
4
|
+
'\u2028\u2029\u202f\u205f\u3000\ufeff'
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def trim_javascript_whitespace(value: str) -> str:
|
|
9
|
+
return value.strip(_JAVASCRIPT_WHITESPACE)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def trim_json_whitespace(value: str) -> str:
|
|
13
|
+
return value.strip(' \t\r\n')
|
|
@@ -240,7 +240,6 @@ class SuperDocClient:
|
|
|
240
240
|
def __init__(
|
|
241
241
|
self,
|
|
242
242
|
*,
|
|
243
|
-
document_host_path: str | None = None,
|
|
244
243
|
env: dict[str, str] | None = None,
|
|
245
244
|
startup_timeout_ms: int = 5_000,
|
|
246
245
|
shutdown_timeout_ms: int = 5_000,
|
|
@@ -250,7 +249,6 @@ class SuperDocClient:
|
|
|
250
249
|
user: UserIdentity | None = None,
|
|
251
250
|
) -> None:
|
|
252
251
|
self._runtime = SuperDocSyncRuntime(
|
|
253
|
-
document_host_path=document_host_path,
|
|
254
252
|
env=env,
|
|
255
253
|
startup_timeout_ms=startup_timeout_ms,
|
|
256
254
|
shutdown_timeout_ms=shutdown_timeout_ms,
|
|
@@ -368,7 +366,6 @@ class AsyncSuperDocClient:
|
|
|
368
366
|
def __init__(
|
|
369
367
|
self,
|
|
370
368
|
*,
|
|
371
|
-
document_host_path: str | None = None,
|
|
372
369
|
env: dict[str, str] | None = None,
|
|
373
370
|
startup_timeout_ms: int = 5_000,
|
|
374
371
|
shutdown_timeout_ms: int = 5_000,
|
|
@@ -382,7 +379,6 @@ class AsyncSuperDocClient:
|
|
|
382
379
|
user: UserIdentity | None = None,
|
|
383
380
|
) -> None:
|
|
384
381
|
self._runtime = SuperDocAsyncRuntime(
|
|
385
|
-
document_host_path=document_host_path,
|
|
386
382
|
env=env,
|
|
387
383
|
startup_timeout_ms=startup_timeout_ms,
|
|
388
384
|
shutdown_timeout_ms=shutdown_timeout_ms,
|