monosmith-plugin-sdk 0.7.0__tar.gz → 0.8.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 (96) hide show
  1. {monosmith_plugin_sdk-0.7.0/src/monosmith_plugin_sdk.egg-info → monosmith_plugin_sdk-0.8.0}/PKG-INFO +1 -1
  2. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/pyproject.toml +1 -1
  3. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/protocol/protocol_schema_contract.py +27 -0
  4. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/protocol/protocol_types_contract.py +26 -0
  5. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0/src/monosmith_plugin_sdk.egg-info}/PKG-INFO +1 -1
  6. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/LICENSE +0 -0
  7. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/README.md +0 -0
  8. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/setup.cfg +0 -0
  9. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/__init__.py +0 -0
  10. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/build_dir/__init__.py +0 -0
  11. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/build_dir/build_dir_algorithm.py +0 -0
  12. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/cancellation/__init__.py +0 -0
  13. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/cancellation/cancel_token_model.py +0 -0
  14. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/cancellation/request_cancelled_error.py +0 -0
  15. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/ci/__init__.py +0 -0
  16. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/ci/ci_contribution_algorithm.py +0 -0
  17. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/codec/__init__.py +0 -0
  18. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/codec/encode_by_schema_algorithm.py +0 -0
  19. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/codec/encode_error.py +0 -0
  20. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/codec/encode_json_value_algorithm.py +0 -0
  21. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/codec/message_parse_error.py +0 -0
  22. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/codec/method_codec_algorithm.py +0 -0
  23. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/codec/normalize_by_schema_algorithm.py +0 -0
  24. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/codec/params_error.py +0 -0
  25. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/codec/received_message_contract.py +0 -0
  26. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/codec/schema_lookup_algorithm.py +0 -0
  27. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/codec/wire_message_mapper.py +0 -0
  28. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/concurrency/__init__.py +0 -0
  29. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/concurrency/concurrency_policy.py +0 -0
  30. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/conformance/__init__.py +0 -0
  31. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/conformance/check_generation_use_case.py +0 -0
  32. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/conformance/check_kind_change_use_case.py +0 -0
  33. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/conformance/check_plugin_use_case.py +0 -0
  34. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/conformance/check_scheduling_use_case.py +0 -0
  35. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/conformance/conformance_report_model.py +0 -0
  36. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/conformance/find_manifests_algorithm.py +0 -0
  37. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/conformance/go_list_mapper.py +0 -0
  38. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/framing/__init__.py +0 -0
  39. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/framing/frame_message_algorithm.py +0 -0
  40. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/framing/frame_reader_store.py +0 -0
  41. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/framing/framing_error.py +0 -0
  42. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/host/__init__.py +0 -0
  43. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/host/call_interrupted_error.py +0 -0
  44. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/host/connect_plugin_use_case.py +0 -0
  45. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/host/host_options_contract.py +0 -0
  46. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/host/plugin_client_client.py +0 -0
  47. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/host/start_plugin_use_case.py +0 -0
  48. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/jsondoc/__init__.py +0 -0
  49. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/jsondoc/indent_raw_json_algorithm.py +0 -0
  50. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/jsondoc/json_document_error.py +0 -0
  51. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/jsondoc/json_document_model.py +0 -0
  52. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/jsondoc/scan_json_object_algorithm.py +0 -0
  53. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/plugin_refs/__init__.py +0 -0
  54. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/plugin_refs/plugin_ref_policy.py +0 -0
  55. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/plugin_roles/__init__.py +0 -0
  56. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/plugin_roles/plugin_role_policy.py +0 -0
  57. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/projects/__init__.py +0 -0
  58. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/projects/audit_settings_policy.py +0 -0
  59. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/projects/manifest_match_algorithm.py +0 -0
  60. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/projects/project_kind_policy.py +0 -0
  61. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/projects/publishes_policy.py +0 -0
  62. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/projects/set_toolchain_algorithm.py +0 -0
  63. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/projects/stack_plugins_algorithm.py +0 -0
  64. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/protocol/__init__.py +0 -0
  65. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/protocol/rpc_error.py +0 -0
  66. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/py.typed +0 -0
  67. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/scaffold/__init__.py +0 -0
  68. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/scaffold/scaffold_project_use_case.py +0 -0
  69. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/scaffold/template_fields_mapper.py +0 -0
  70. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/serve/__init__.py +0 -0
  71. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/serve/capabilities_of_algorithm.py +0 -0
  72. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/serve/claim_stdio_use_case.py +0 -0
  73. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/serve/dispatch_request_use_case.py +0 -0
  74. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/serve/frame_writer_store.py +0 -0
  75. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/serve/initialize_plugin_use_case.py +0 -0
  76. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/serve/plugin_contract.py +0 -0
  77. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/serve/plugin_members_config.py +0 -0
  78. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/serve/protocol_streams_contract.py +0 -0
  79. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/serve/request_outcome_contract.py +0 -0
  80. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/serve/request_pool_store.py +0 -0
  81. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/serve/serve_use_case.py +0 -0
  82. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/tasks/__init__.py +0 -0
  83. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/tasks/contribute_tasks_algorithm.py +0 -0
  84. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/tasks/task_algorithm.py +0 -0
  85. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/templating/__init__.py +0 -0
  86. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/templating/file_exists_error.py +0 -0
  87. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/templating/parse_template_algorithm.py +0 -0
  88. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/templating/render_template_algorithm.py +0 -0
  89. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/templating/template_error.py +0 -0
  90. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/templating/template_functions_algorithm.py +0 -0
  91. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/templating/template_syntax_contract.py +0 -0
  92. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/templating/tokenize_action_algorithm.py +0 -0
  93. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk/templating/write_templates_use_case.py +0 -0
  94. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk.egg-info/SOURCES.txt +0 -0
  95. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk.egg-info/dependency_links.txt +0 -0
  96. {monosmith_plugin_sdk-0.7.0 → monosmith_plugin_sdk-0.8.0}/src/monosmith_plugin_sdk.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: monosmith-plugin-sdk
3
- Version: 0.7.0
3
+ Version: 0.8.0
4
4
  Summary: The Python SDK for writing smith plugins: the protocol's types, the serve loop, a test host, the conformance checks, templating and key-order-keeping JSON editing. No runtime dependencies.
5
5
  Author: Eduardo Russo
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "monosmith-plugin-sdk"
7
- version = "0.7.0"
7
+ version = "0.8.0"
8
8
  description = "The Python SDK for writing smith plugins: the protocol's types, the serve loop, a test host, the conformance checks, templating and key-order-keeping JSON editing. No runtime dependencies."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -2624,6 +2624,10 @@ _SCHEMA_JSON = r'''{
2624
2624
  },
2625
2625
  "description": "Ship names what the task makes in a tool's work folder that the project ships: globs relative to the project root (\"../../dist/cargo/debug/api\"). After the task succeeds, smith hard-links each match into the project's shipped folder (ProjectBuildDir), a folder file by file, under its base name, and copies a file it cannot link. A glob that matches nothing is skipped. Such a task lists the shipped folder in Outputs, never the tool's work folder: a cache restore empties each output folder first."
2626
2626
  },
2627
+ "release": {
2628
+ "$ref": "#/$defs/TaskProfile",
2629
+ "description": "Release is the task as `smith run --release` runs it: the command of the optimised profile (\"cargo build --release\") and what that profile ships. Nil means the task has one profile and runs the same way with the flag. The cache key holds the command, so each profile has its own cache entry."
2630
+ },
2627
2631
  "dependsOn": {
2628
2632
  "type": "array",
2629
2633
  "items": {
@@ -2659,6 +2663,29 @@ _SCHEMA_JSON = r'''{
2659
2663
  "command"
2660
2664
  ]
2661
2665
  },
2666
+ "TaskProfile": {
2667
+ "description": "TaskProfile is another build profile of a task: the command that builds it and what it ships (see Task.Ship).",
2668
+ "type": "object",
2669
+ "properties": {
2670
+ "command": {
2671
+ "type": "array",
2672
+ "items": {
2673
+ "type": "string"
2674
+ },
2675
+ "description": "Command is an argv array; it is never passed through a shell."
2676
+ },
2677
+ "ship": {
2678
+ "type": "array",
2679
+ "items": {
2680
+ "type": "string"
2681
+ },
2682
+ "description": "Ship names what this profile makes in a tool's work folder that the project ships, as Task.Ship does. Empty means the task ships nothing."
2683
+ }
2684
+ },
2685
+ "required": [
2686
+ "command"
2687
+ ]
2688
+ },
2662
2689
  "ToolInstall": {
2663
2690
  "description": "ToolInstall is one way to get a tool with a package manager. Manager is one of: \"winget\", \"brew\", \"brew-cask\", \"apt\", \"dnf\", \"pacman\", \"npm\", \"uv\", \"fnm\", \"rustup\", \"cargo\" and \"go\" (go install, for a tool published as a Go module). The host builds the exact command from the manager and Package; Package may hold {major}, {major.minor} and {version} (the whole version), which the pinned or suggested version fills. The language's own installers (uv, fnm, rustup, cargo) are offered only when they are already on the machine.",
2664
2691
  "type": "object",
@@ -100,6 +100,7 @@ __all__ = [
100
100
  "Step",
101
101
  "TagMove",
102
102
  "Task",
103
+ "TaskProfile",
103
104
  "ToolInstall",
104
105
  "ToolNeed",
105
106
  "ToolPin",
@@ -1888,6 +1889,13 @@ class Task(_TaskRequired, total=False):
1888
1889
  a task lists the shipped folder in Outputs, never the tool's work folder: a cache restore
1889
1890
  empties each output folder first.
1890
1891
  """
1892
+ release: TaskProfile
1893
+ """
1894
+ Release is the task as `smith run --release` runs it: the command of the optimised profile
1895
+ ("cargo build --release") and what that profile ships. Nil means the task has one profile and
1896
+ runs the same way with the flag. The cache key holds the command, so each profile has its own
1897
+ cache entry.
1898
+ """
1891
1899
  dependsOn: list[str]
1892
1900
  """
1893
1901
  DependsOn lists task names: "build" runs this project's build first, "^build" runs the build
@@ -1918,6 +1926,24 @@ class Task(_TaskRequired, total=False):
1918
1926
  """ServeTimeout is how long to wait for ServeURL, as a Go duration ("60s"); empty means 60s."""
1919
1927
 
1920
1928
 
1929
+ class _TaskProfileRequired(TypedDict):
1930
+ command: list[str]
1931
+ """Command is an argv array; it is never passed through a shell."""
1932
+
1933
+
1934
+ class TaskProfile(_TaskProfileRequired, total=False):
1935
+ """
1936
+ TaskProfile is another build profile of a task: the command that builds it and what it ships
1937
+ (see Task.Ship).
1938
+ """
1939
+
1940
+ ship: list[str]
1941
+ """
1942
+ Ship names what this profile makes in a tool's work folder that the project ships, as
1943
+ Task.Ship does. Empty means the task ships nothing.
1944
+ """
1945
+
1946
+
1921
1947
  class _ToolInstallRequired(TypedDict):
1922
1948
  manager: str
1923
1949
  package: str
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: monosmith-plugin-sdk
3
- Version: 0.7.0
3
+ Version: 0.8.0
4
4
  Summary: The Python SDK for writing smith plugins: the protocol's types, the serve loop, a test host, the conformance checks, templating and key-order-keeping JSON editing. No runtime dependencies.
5
5
  Author: Eduardo Russo
6
6
  License-Expression: MIT