mammoth-cli 1.0.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.
Files changed (150) hide show
  1. mammoth_cli/__init__.py +14 -0
  2. mammoth_cli/__main__.py +27 -0
  3. mammoth_cli/app.py +565 -0
  4. mammoth_cli/bundled_skill/mammoth-cli/SKILL.md +109 -0
  5. mammoth_cli/bundled_skill/mammoth-cli/references/auth.md +27 -0
  6. mammoth_cli/bundled_skill/mammoth-cli/references/input.md +24 -0
  7. mammoth_cli/bundled_skill/mammoth-cli/references/jobs-drafts.md +35 -0
  8. mammoth_cli/bundled_skill/mammoth-cli/references/machine-output.md +30 -0
  9. mammoth_cli/bundled_skill/mammoth-cli/references/recovery.md +28 -0
  10. mammoth_cli/bundled_skill/mammoth-cli/references/safety.md +26 -0
  11. mammoth_cli/commands/__init__.py +29 -0
  12. mammoth_cli/commands/activity.py +123 -0
  13. mammoth_cli/commands/addon.py +173 -0
  14. mammoth_cli/commands/agent.py +199 -0
  15. mammoth_cli/commands/ai.py +274 -0
  16. mammoth_cli/commands/annotation.py +166 -0
  17. mammoth_cli/commands/auth.py +567 -0
  18. mammoth_cli/commands/automation.py +245 -0
  19. mammoth_cli/commands/batch.py +204 -0
  20. mammoth_cli/commands/billing.py +462 -0
  21. mammoth_cli/commands/browse.py +151 -0
  22. mammoth_cli/commands/capability.py +43 -0
  23. mammoth_cli/commands/client_app.py +233 -0
  24. mammoth_cli/commands/completion.py +82 -0
  25. mammoth_cli/commands/config.py +309 -0
  26. mammoth_cli/commands/connector.py +464 -0
  27. mammoth_cli/commands/context.py +205 -0
  28. mammoth_cli/commands/dashboard.py +419 -0
  29. mammoth_cli/commands/data_app.py +239 -0
  30. mammoth_cli/commands/dataset.py +332 -0
  31. mammoth_cli/commands/doctor.py +90 -0
  32. mammoth_cli/commands/external_key.py +163 -0
  33. mammoth_cli/commands/file.py +243 -0
  34. mammoth_cli/commands/folder.py +224 -0
  35. mammoth_cli/commands/job.py +147 -0
  36. mammoth_cli/commands/notification.py +201 -0
  37. mammoth_cli/commands/parameter.py +284 -0
  38. mammoth_cli/commands/project.py +327 -0
  39. mammoth_cli/commands/registry.py +587 -0
  40. mammoth_cli/commands/report.py +61 -0
  41. mammoth_cli/commands/schedule.py +214 -0
  42. mammoth_cli/commands/schema.py +271 -0
  43. mammoth_cli/commands/skill.py +59 -0
  44. mammoth_cli/commands/snippet.py +200 -0
  45. mammoth_cli/commands/support.py +800 -0
  46. mammoth_cli/commands/template.py +134 -0
  47. mammoth_cli/commands/trash.py +115 -0
  48. mammoth_cli/commands/user.py +190 -0
  49. mammoth_cli/commands/view.py +1143 -0
  50. mammoth_cli/commands/view_ops.py +596 -0
  51. mammoth_cli/commands/webhook.py +235 -0
  52. mammoth_cli/commands/workflow.py +340 -0
  53. mammoth_cli/commands/workspace.py +359 -0
  54. mammoth_cli/context/__init__.py +1 -0
  55. mammoth_cli/context/credentials.py +223 -0
  56. mammoth_cli/context/endpoint.py +57 -0
  57. mammoth_cli/context/profiles.py +370 -0
  58. mammoth_cli/context/resolver.py +240 -0
  59. mammoth_cli/contracts/__init__.py +1 -0
  60. mammoth_cli/contracts/auth.py +32 -0
  61. mammoth_cli/errors/__init__.py +1 -0
  62. mammoth_cli/errors/envelope.py +144 -0
  63. mammoth_cli/manifest/__init__.py +1 -0
  64. mammoth_cli/manifest/loader.py +96 -0
  65. mammoth_cli/messages/__init__.py +1 -0
  66. mammoth_cli/output/__init__.py +1 -0
  67. mammoth_cli/output/envelope.py +42 -0
  68. mammoth_cli/output/normalize.py +84 -0
  69. mammoth_cli/output/policy.py +71 -0
  70. mammoth_cli/output/render.py +83 -0
  71. mammoth_cli/py.typed +0 -0
  72. mammoth_cli/runtime/__init__.py +0 -0
  73. mammoth_cli/runtime/confirm.py +124 -0
  74. mammoth_cli/runtime/executor.py +126 -0
  75. mammoth_cli/runtime/input_loader.py +140 -0
  76. mammoth_cli/runtime/invocation.py +87 -0
  77. mammoth_cli/runtime/options.py +172 -0
  78. mammoth_cli/runtime/session.py +82 -0
  79. mammoth_cli/runtime/strict.py +240 -0
  80. mammoth_cli/runtime/validate.py +120 -0
  81. mammoth_cli/services/__init__.py +1 -0
  82. mammoth_cli/services/argspec.py +301 -0
  83. mammoth_cli/services/coerce.py +172 -0
  84. mammoth_cli/services/conditions.py +85 -0
  85. mammoth_cli/services/dispatch.py +63 -0
  86. mammoth_cli/services/factory.py +45 -0
  87. mammoth_cli/services/input_fields.py +44 -0
  88. mammoth_cli/services/mapping.py +74 -0
  89. mammoth_cli/services/openapi_types.py +166 -0
  90. mammoth_cli/services/positionals.py +408 -0
  91. mammoth_cli/services/protocol.py +123 -0
  92. mammoth_cli/services/sdk_service.py +274 -0
  93. mammoth_cli/services/testing.py +153 -0
  94. mammoth_cli/services/type_system.py +427 -0
  95. mammoth_cli/skills/__init__.py +1 -0
  96. mammoth_cli/skills/installer.py +321 -0
  97. mammoth_cli/testing.py +55 -0
  98. mammoth_cli-1.0.0.dist-info/METADATA +92 -0
  99. mammoth_cli-1.0.0.dist-info/RECORD +150 -0
  100. mammoth_cli-1.0.0.dist-info/WHEEL +4 -0
  101. mammoth_cli-1.0.0.dist-info/entry_points.txt +3 -0
  102. mammoth_cli-1.0.0.dist-info/licenses/LICENSE +23 -0
  103. spec/manifests/_sdk_introspection.json +1459 -0
  104. spec/manifests/commands/activity.yaml +72 -0
  105. spec/manifests/commands/addon.yaml +239 -0
  106. spec/manifests/commands/agent.yaml +192 -0
  107. spec/manifests/commands/ai.yaml +152 -0
  108. spec/manifests/commands/annotation.yaml +191 -0
  109. spec/manifests/commands/auth.yaml +101 -0
  110. spec/manifests/commands/automation.yaml +273 -0
  111. spec/manifests/commands/batch.yaml +262 -0
  112. spec/manifests/commands/billing.yaml +813 -0
  113. spec/manifests/commands/browse.yaml +145 -0
  114. spec/manifests/commands/capability.yaml +74 -0
  115. spec/manifests/commands/client-app.yaml +193 -0
  116. spec/manifests/commands/completion.yaml +68 -0
  117. spec/manifests/commands/config.yaml +134 -0
  118. spec/manifests/commands/connector.yaml +944 -0
  119. spec/manifests/commands/context.yaml +101 -0
  120. spec/manifests/commands/dashboard.yaml +3595 -0
  121. spec/manifests/commands/data-app.yaml +485 -0
  122. spec/manifests/commands/dataset.yaml +580 -0
  123. spec/manifests/commands/doctor.yaml +35 -0
  124. spec/manifests/commands/external-key.yaml +151 -0
  125. spec/manifests/commands/file.yaml +341 -0
  126. spec/manifests/commands/folder.yaml +334 -0
  127. spec/manifests/commands/job.yaml +151 -0
  128. spec/manifests/commands/notification.yaml +188 -0
  129. spec/manifests/commands/parameter.yaml +527 -0
  130. spec/manifests/commands/project.yaml +669 -0
  131. spec/manifests/commands/report.yaml +36 -0
  132. spec/manifests/commands/schedule.yaml +194 -0
  133. spec/manifests/commands/schema.yaml +74 -0
  134. spec/manifests/commands/skill.yaml +167 -0
  135. spec/manifests/commands/snippet.yaml +311 -0
  136. spec/manifests/commands/support.yaml +1805 -0
  137. spec/manifests/commands/template.yaml +191 -0
  138. spec/manifests/commands/trash.yaml +105 -0
  139. spec/manifests/commands/user.yaml +280 -0
  140. spec/manifests/commands/version.yaml +35 -0
  141. spec/manifests/commands/view.yaml +4232 -0
  142. spec/manifests/commands/webhook.yaml +261 -0
  143. spec/manifests/commands/workflow.yaml +622 -0
  144. spec/manifests/commands/workspace.yaml +705 -0
  145. spec/manifests/openapi-operations.yaml +8853 -0
  146. spec/manifests/schema-v1.json +212 -0
  147. spec/manifests/sdk-catalog.source.yaml +4069 -0
  148. spec/manifests/sdk-methods.yaml +6971 -0
  149. spec/openapi/metadata.json +10 -0
  150. spec/openapi/openapi.json +1 -0
@@ -0,0 +1,261 @@
1
+ manifest_schema_version: 1
2
+ commands:
3
+ - command_id: webhook.create
4
+ command_path: webhook create
5
+ disposition: command
6
+ alias_of: null
7
+ operation_ids:
8
+ - CreateAWebhook
9
+ positionals: []
10
+ options: []
11
+ sdk_symbol: mammoth.api.webhooks.WebhooksAPI.create
12
+ sdk_conversion: Call mammoth.api.webhooks.WebhooksAPI.create with validated request fields.
13
+ request_model: WebhookCreateRequest
14
+ result_model: WebhookCreateResult
15
+ mutation_class: benign_mutation
16
+ confirmation: none
17
+ wait_policy: not_async
18
+ pagination_policy: none
19
+ acceptance_evidence: live_disposable_project
20
+ live_test: LT-WEBHOOK-CREATE
21
+ live_exemption_reason: null
22
+ contract_fixture: null
23
+ required_fixture_guard: null
24
+ secret_fields: []
25
+ human_example: mammoth webhook create --help
26
+ agent_example: mammoth webhook create --output json --no-input
27
+ unit_tests:
28
+ - UT-WEBHOOK-CREATE
29
+ contract_tests:
30
+ - CT-WEBHOOK-CREATE-HUMAN
31
+ - CT-WEBHOOK-CREATE-JSON
32
+ - CT-WEBHOOK-CREATE-ERROR
33
+ draft_test: null
34
+ undo_test: null
35
+ known_restrictions: Secure creation uses the secret-output rule (--secret-out/--show-secret).
36
+ reviewed_by: primary
37
+ - command_id: webhook.delete
38
+ command_path: webhook delete
39
+ disposition: command
40
+ alias_of: null
41
+ operation_ids:
42
+ - DeleteWebhook
43
+ positionals:
44
+ - name: webhook_id
45
+ type: int
46
+ required: true
47
+ metavar: WEBHOOK_ID
48
+ falls_back_to_field: null
49
+ help: ID of the webhook.
50
+ options: []
51
+ sdk_symbol: mammoth.api.webhooks.WebhooksAPI.delete
52
+ sdk_conversion: Call mammoth.api.webhooks.WebhooksAPI.delete with validated request fields.
53
+ request_model: WebhookDeleteRequest
54
+ result_model: WebhookDeleteResult
55
+ mutation_class: destructive
56
+ confirmation: prompt_or_yes
57
+ wait_policy: not_async
58
+ pagination_policy: none
59
+ acceptance_evidence: live_disposable_project
60
+ live_test: LT-WEBHOOK-DELETE
61
+ live_exemption_reason: null
62
+ contract_fixture: null
63
+ required_fixture_guard: null
64
+ secret_fields: []
65
+ human_example: mammoth webhook delete WEBHOOK_ID --help
66
+ agent_example: mammoth webhook delete 123 --output json --no-input
67
+ unit_tests:
68
+ - UT-WEBHOOK-DELETE
69
+ contract_tests:
70
+ - CT-WEBHOOK-DELETE-HUMAN
71
+ - CT-WEBHOOK-DELETE-JSON
72
+ - CT-WEBHOOK-DELETE-ERROR
73
+ draft_test: null
74
+ undo_test: null
75
+ known_restrictions: Resolve webhook before confirmation.
76
+ reviewed_by: primary
77
+ - command_id: webhook.get
78
+ command_path: webhook get
79
+ disposition: command
80
+ alias_of: null
81
+ operation_ids:
82
+ - GetWebhookDetails
83
+ positionals:
84
+ - name: webhook_id
85
+ type: int
86
+ required: true
87
+ metavar: WEBHOOK_ID
88
+ falls_back_to_field: null
89
+ help: ID of the webhook.
90
+ options: []
91
+ sdk_symbol: mammoth.api.webhooks.WebhooksAPI.get
92
+ sdk_conversion: Call mammoth.api.webhooks.WebhooksAPI.get with validated request fields.
93
+ request_model: WebhookGetRequest
94
+ result_model: WebhookGetResult
95
+ mutation_class: read
96
+ confirmation: none
97
+ wait_policy: not_async
98
+ pagination_policy: none
99
+ acceptance_evidence: live_read_only
100
+ live_test: LT-WEBHOOK-GET
101
+ live_exemption_reason: null
102
+ contract_fixture: null
103
+ required_fixture_guard: null
104
+ secret_fields: []
105
+ human_example: mammoth webhook get WEBHOOK_ID --help
106
+ agent_example: mammoth webhook get 123 --output json --no-input
107
+ unit_tests:
108
+ - UT-WEBHOOK-GET
109
+ contract_tests:
110
+ - CT-WEBHOOK-GET-HUMAN
111
+ - CT-WEBHOOK-GET-JSON
112
+ - CT-WEBHOOK-GET-ERROR
113
+ draft_test: null
114
+ undo_test: null
115
+ known_restrictions: Redact secret.
116
+ reviewed_by: primary
117
+ - command_id: webhook.list
118
+ command_path: webhook list
119
+ disposition: command
120
+ alias_of: null
121
+ operation_ids:
122
+ - ListWebhooks
123
+ positionals: []
124
+ options: []
125
+ sdk_symbol: mammoth.api.webhooks.WebhooksAPI.list
126
+ sdk_conversion: Call mammoth.api.webhooks.WebhooksAPI.list with validated request fields.
127
+ request_model: WebhookListRequest
128
+ result_model: WebhookListResult
129
+ mutation_class: read
130
+ confirmation: none
131
+ wait_policy: not_async
132
+ pagination_policy: offset
133
+ acceptance_evidence: live_read_only
134
+ live_test: LT-WEBHOOK-LIST
135
+ live_exemption_reason: null
136
+ contract_fixture: null
137
+ required_fixture_guard: null
138
+ secret_fields: []
139
+ human_example: mammoth webhook list --help
140
+ agent_example: mammoth webhook list --output json --no-input
141
+ unit_tests:
142
+ - UT-WEBHOOK-LIST
143
+ contract_tests:
144
+ - CT-WEBHOOK-LIST-HUMAN
145
+ - CT-WEBHOOK-LIST-JSON
146
+ - CT-WEBHOOK-LIST-ERROR
147
+ draft_test: null
148
+ undo_test: null
149
+ known_restrictions: Current SDK discards pagination metadata.
150
+ reviewed_by: primary
151
+ - command_id: webhook.send
152
+ command_path: webhook send
153
+ disposition: command
154
+ alias_of: null
155
+ operation_ids:
156
+ - AddDataToWebhook
157
+ positionals: []
158
+ options: []
159
+ sdk_symbol: mammoth.api.webhooks.WebhooksAPI.send_data
160
+ sdk_conversion: Call mammoth.api.webhooks.WebhooksAPI.send_data with validated request fields.
161
+ request_model: WebhookSendRequest
162
+ result_model: WebhookSendResult
163
+ mutation_class: benign_mutation
164
+ confirmation: none
165
+ wait_policy: not_async
166
+ pagination_policy: none
167
+ acceptance_evidence: live_disposable_project
168
+ live_test: LT-WEBHOOK-SEND
169
+ live_exemption_reason: null
170
+ contract_fixture: null
171
+ required_fixture_guard: null
172
+ secret_fields: []
173
+ human_example: mammoth webhook send --help
174
+ agent_example: 'mammoth webhook send --input ''{"webhook_uri": "example", "data": {"example": "example"}}''
175
+ --output json --no-input'
176
+ unit_tests:
177
+ - UT-WEBHOOK-SEND
178
+ contract_tests:
179
+ - CT-WEBHOOK-SEND-HUMAN
180
+ - CT-WEBHOOK-SEND-JSON
181
+ - CT-WEBHOOK-SEND-ERROR
182
+ draft_test: null
183
+ undo_test: null
184
+ known_restrictions: Never retry; requires a disposable webhook and dataset fixture; current dataset
185
+ permission blocks live evidence.
186
+ reviewed_by: primary
187
+ - command_id: webhook.send-get
188
+ command_path: webhook send-get
189
+ disposition: command
190
+ alias_of: null
191
+ operation_ids:
192
+ - AddDataToWebhookUsingGetMethod
193
+ positionals: []
194
+ options: []
195
+ sdk_symbol: mammoth.api.webhooks.WebhooksAPI.send_data_get
196
+ sdk_conversion: Call mammoth.api.webhooks.WebhooksAPI.send_data_get with validated request fields.
197
+ request_model: WebhookSendGetRequest
198
+ result_model: WebhookSendGetResult
199
+ mutation_class: benign_mutation
200
+ confirmation: none
201
+ wait_policy: not_async
202
+ pagination_policy: none
203
+ acceptance_evidence: live_disposable_project
204
+ live_test: LT-WEBHOOK-SEND-GET
205
+ live_exemption_reason: null
206
+ contract_fixture: null
207
+ required_fixture_guard: null
208
+ secret_fields: []
209
+ human_example: mammoth webhook send-get --help
210
+ agent_example: 'mammoth webhook send-get --input ''{"webhook_uri": "example"}'' --output json --no-input'
211
+ unit_tests:
212
+ - UT-WEBHOOK-SEND-GET
213
+ contract_tests:
214
+ - CT-WEBHOOK-SEND-GET-HUMAN
215
+ - CT-WEBHOOK-SEND-GET-JSON
216
+ - CT-WEBHOOK-SEND-GET-ERROR
217
+ draft_test: null
218
+ undo_test: null
219
+ known_restrictions: webhook send-get is a mutation despite HTTP GET, and it is never retried. Reject
220
+ an empty query; never log the URI if the server treats it as a capability.
221
+ reviewed_by: primary
222
+ - command_id: webhook.update
223
+ command_path: webhook update
224
+ disposition: command
225
+ alias_of: null
226
+ operation_ids:
227
+ - UpdateWebhookConfigurations
228
+ positionals:
229
+ - name: webhook_id
230
+ type: int
231
+ required: true
232
+ metavar: WEBHOOK_ID
233
+ falls_back_to_field: null
234
+ help: ID of the webhook.
235
+ options: []
236
+ sdk_symbol: mammoth.api.webhooks.WebhooksAPI.update
237
+ sdk_conversion: Call mammoth.api.webhooks.WebhooksAPI.update with validated request fields.
238
+ request_model: WebhookUpdateRequest
239
+ result_model: WebhookUpdateResult
240
+ mutation_class: benign_mutation
241
+ confirmation: none
242
+ wait_policy: not_async
243
+ pagination_policy: none
244
+ acceptance_evidence: live_disposable_project
245
+ live_test: LT-WEBHOOK-UPDATE
246
+ live_exemption_reason: null
247
+ contract_fixture: null
248
+ required_fixture_guard: null
249
+ secret_fields: []
250
+ human_example: mammoth webhook update WEBHOOK_ID --help
251
+ agent_example: mammoth webhook update 123 --output json --no-input
252
+ unit_tests:
253
+ - UT-WEBHOOK-UPDATE
254
+ contract_tests:
255
+ - CT-WEBHOOK-UPDATE-HUMAN
256
+ - CT-WEBHOOK-UPDATE-JSON
257
+ - CT-WEBHOOK-UPDATE-ERROR
258
+ draft_test: null
259
+ undo_test: null
260
+ known_restrictions: Reject an empty patch; a newly issued secret uses the secret-output rule.
261
+ reviewed_by: primary