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,311 @@
1
+ manifest_schema_version: 1
2
+ commands:
3
+ - command_id: snippet.create
4
+ command_path: snippet create
5
+ disposition: command
6
+ alias_of: null
7
+ operation_ids:
8
+ - CreateSnippet
9
+ positionals: []
10
+ options: []
11
+ sdk_symbol: mammoth.api.snippets.SnippetsAPI.create
12
+ sdk_conversion: Call mammoth.api.snippets.SnippetsAPI.create with validated request fields.
13
+ request_model: SnippetCreateRequest
14
+ result_model: SnippetCreateResult
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-SNIPPET-CREATE
21
+ live_exemption_reason: null
22
+ contract_fixture: null
23
+ required_fixture_guard: null
24
+ secret_fields: []
25
+ human_example: mammoth snippet create --help
26
+ agent_example: 'mammoth snippet create --input ''{"name": "example", "code": "example", "language":
27
+ "example"}'' --output json --no-input'
28
+ unit_tests:
29
+ - UT-SNIPPET-CREATE
30
+ contract_tests:
31
+ - CT-SNIPPET-CREATE-HUMAN
32
+ - CT-SNIPPET-CREATE-JSON
33
+ - CT-SNIPPET-CREATE-ERROR
34
+ draft_test: null
35
+ undo_test: null
36
+ known_restrictions: null
37
+ reviewed_by: primary
38
+ - command_id: snippet.delete
39
+ command_path: snippet delete
40
+ disposition: command
41
+ alias_of: null
42
+ operation_ids:
43
+ - DeleteSnippet
44
+ positionals:
45
+ - name: snippet_id
46
+ type: int
47
+ required: true
48
+ metavar: SNIPPET_ID
49
+ falls_back_to_field: null
50
+ help: ID of the snippet.
51
+ options: []
52
+ sdk_symbol: mammoth.api.snippets.SnippetsAPI.delete
53
+ sdk_conversion: Call mammoth.api.snippets.SnippetsAPI.delete with validated request fields.
54
+ request_model: SnippetDeleteRequest
55
+ result_model: SnippetDeleteResult
56
+ mutation_class: destructive
57
+ confirmation: prompt_or_yes
58
+ wait_policy: not_async
59
+ pagination_policy: none
60
+ acceptance_evidence: live_disposable_project
61
+ live_test: LT-SNIPPET-DELETE
62
+ live_exemption_reason: null
63
+ contract_fixture: null
64
+ required_fixture_guard: null
65
+ secret_fields: []
66
+ human_example: mammoth snippet delete SNIPPET_ID --help
67
+ agent_example: mammoth snippet delete 123 --output json --no-input
68
+ unit_tests:
69
+ - UT-SNIPPET-DELETE
70
+ contract_tests:
71
+ - CT-SNIPPET-DELETE-HUMAN
72
+ - CT-SNIPPET-DELETE-JSON
73
+ - CT-SNIPPET-DELETE-ERROR
74
+ draft_test: null
75
+ undo_test: null
76
+ known_restrictions: null
77
+ reviewed_by: primary
78
+ - command_id: snippet.dependencies
79
+ command_path: snippet dependencies
80
+ disposition: command
81
+ alias_of: null
82
+ operation_ids:
83
+ - GetSnippetDependencies
84
+ positionals:
85
+ - name: snippet_id
86
+ type: int
87
+ required: true
88
+ metavar: SNIPPET_ID
89
+ falls_back_to_field: null
90
+ help: ID of the snippet.
91
+ options: []
92
+ sdk_symbol: mammoth.api.snippets.SnippetsAPI.dependencies
93
+ sdk_conversion: Call mammoth.api.snippets.SnippetsAPI.dependencies with validated request fields.
94
+ request_model: SnippetDependenciesRequest
95
+ result_model: SnippetDependenciesResult
96
+ mutation_class: read
97
+ confirmation: none
98
+ wait_policy: not_async
99
+ pagination_policy: none
100
+ acceptance_evidence: live_read_only
101
+ live_test: LT-SNIPPET-DEPENDENCIES
102
+ live_exemption_reason: null
103
+ contract_fixture: null
104
+ required_fixture_guard: null
105
+ secret_fields: []
106
+ human_example: mammoth snippet dependencies SNIPPET_ID --help
107
+ agent_example: mammoth snippet dependencies 123 --output json --no-input
108
+ unit_tests:
109
+ - UT-SNIPPET-DEPENDENCIES
110
+ contract_tests:
111
+ - CT-SNIPPET-DEPENDENCIES-HUMAN
112
+ - CT-SNIPPET-DEPENDENCIES-JSON
113
+ - CT-SNIPPET-DEPENDENCIES-ERROR
114
+ draft_test: null
115
+ undo_test: null
116
+ known_restrictions: null
117
+ reviewed_by: primary
118
+ - command_id: snippet.duplicate
119
+ command_path: snippet duplicate
120
+ disposition: command
121
+ alias_of: null
122
+ operation_ids:
123
+ - DuplicateSnippet
124
+ positionals:
125
+ - name: snippet_id
126
+ type: int
127
+ required: true
128
+ metavar: SNIPPET_ID
129
+ falls_back_to_field: null
130
+ help: ID of the snippet.
131
+ options: []
132
+ sdk_symbol: mammoth.api.snippets.SnippetsAPI.duplicate
133
+ sdk_conversion: Call mammoth.api.snippets.SnippetsAPI.duplicate with validated request fields.
134
+ request_model: SnippetDuplicateRequest
135
+ result_model: SnippetDuplicateResult
136
+ mutation_class: benign_mutation
137
+ confirmation: none
138
+ wait_policy: not_async
139
+ pagination_policy: none
140
+ acceptance_evidence: live_disposable_project
141
+ live_test: LT-SNIPPET-DUPLICATE
142
+ live_exemption_reason: null
143
+ contract_fixture: null
144
+ required_fixture_guard: null
145
+ secret_fields: []
146
+ human_example: mammoth snippet duplicate SNIPPET_ID --help
147
+ agent_example: mammoth snippet duplicate 123 --output json --no-input
148
+ unit_tests:
149
+ - UT-SNIPPET-DUPLICATE
150
+ contract_tests:
151
+ - CT-SNIPPET-DUPLICATE-HUMAN
152
+ - CT-SNIPPET-DUPLICATE-JSON
153
+ - CT-SNIPPET-DUPLICATE-ERROR
154
+ draft_test: null
155
+ undo_test: null
156
+ known_restrictions: null
157
+ reviewed_by: primary
158
+ - command_id: snippet.get
159
+ command_path: snippet get
160
+ disposition: command
161
+ alias_of: null
162
+ operation_ids:
163
+ - GetSnippetDetail
164
+ positionals:
165
+ - name: snippet_id
166
+ type: int
167
+ required: true
168
+ metavar: SNIPPET_ID
169
+ falls_back_to_field: null
170
+ help: ID of the snippet.
171
+ options: []
172
+ sdk_symbol: mammoth.api.snippets.SnippetsAPI.get
173
+ sdk_conversion: Call mammoth.api.snippets.SnippetsAPI.get with validated request fields.
174
+ request_model: SnippetGetRequest
175
+ result_model: SnippetGetResult
176
+ mutation_class: read
177
+ confirmation: none
178
+ wait_policy: not_async
179
+ pagination_policy: none
180
+ acceptance_evidence: live_read_only
181
+ live_test: LT-SNIPPET-GET
182
+ live_exemption_reason: null
183
+ contract_fixture: null
184
+ required_fixture_guard: null
185
+ secret_fields: []
186
+ human_example: mammoth snippet get SNIPPET_ID --help
187
+ agent_example: mammoth snippet get 123 --output json --no-input
188
+ unit_tests:
189
+ - UT-SNIPPET-GET
190
+ contract_tests:
191
+ - CT-SNIPPET-GET-HUMAN
192
+ - CT-SNIPPET-GET-JSON
193
+ - CT-SNIPPET-GET-ERROR
194
+ draft_test: null
195
+ undo_test: null
196
+ known_restrictions: null
197
+ reviewed_by: primary
198
+ - command_id: snippet.list
199
+ command_path: snippet list
200
+ disposition: command
201
+ alias_of: null
202
+ operation_ids:
203
+ - ListSnippets
204
+ positionals: []
205
+ options: []
206
+ sdk_symbol: mammoth.api.snippets.SnippetsAPI.list
207
+ sdk_conversion: Call mammoth.api.snippets.SnippetsAPI.list with validated request fields.
208
+ request_model: SnippetListRequest
209
+ result_model: SnippetListResult
210
+ mutation_class: read
211
+ confirmation: none
212
+ wait_policy: not_async
213
+ pagination_policy: single_page
214
+ acceptance_evidence: live_read_only
215
+ live_test: LT-SNIPPET-LIST
216
+ live_exemption_reason: null
217
+ contract_fixture: null
218
+ required_fixture_guard: null
219
+ secret_fields: []
220
+ human_example: mammoth snippet list --help
221
+ agent_example: mammoth snippet list --output json --no-input
222
+ unit_tests:
223
+ - UT-SNIPPET-LIST
224
+ contract_tests:
225
+ - CT-SNIPPET-LIST-HUMAN
226
+ - CT-SNIPPET-LIST-JSON
227
+ - CT-SNIPPET-LIST-ERROR
228
+ draft_test: null
229
+ undo_test: null
230
+ known_restrictions: null
231
+ reviewed_by: primary
232
+ - command_id: snippet.rerun
233
+ command_path: snippet rerun
234
+ disposition: command
235
+ alias_of: null
236
+ operation_ids:
237
+ - RerunSnippet
238
+ positionals:
239
+ - name: snippet_id
240
+ type: int
241
+ required: true
242
+ metavar: SNIPPET_ID
243
+ falls_back_to_field: null
244
+ help: ID of the snippet.
245
+ options: []
246
+ sdk_symbol: mammoth.api.snippets.SnippetsAPI.rerun
247
+ sdk_conversion: Call mammoth.api.snippets.SnippetsAPI.rerun with validated request fields.
248
+ request_model: SnippetRerunRequest
249
+ result_model: SnippetRerunResult
250
+ mutation_class: benign_mutation
251
+ confirmation: none
252
+ wait_policy: not_async
253
+ pagination_policy: none
254
+ acceptance_evidence: live_disposable_project
255
+ live_test: LT-SNIPPET-RERUN
256
+ live_exemption_reason: null
257
+ contract_fixture: null
258
+ required_fixture_guard: null
259
+ secret_fields: []
260
+ human_example: mammoth snippet rerun SNIPPET_ID --help
261
+ agent_example: mammoth snippet rerun 123 --output json --no-input
262
+ unit_tests:
263
+ - UT-SNIPPET-RERUN
264
+ contract_tests:
265
+ - CT-SNIPPET-RERUN-HUMAN
266
+ - CT-SNIPPET-RERUN-JSON
267
+ - CT-SNIPPET-RERUN-ERROR
268
+ draft_test: null
269
+ undo_test: null
270
+ known_restrictions: null
271
+ reviewed_by: primary
272
+ - command_id: snippet.update
273
+ command_path: snippet update
274
+ disposition: command
275
+ alias_of: null
276
+ operation_ids:
277
+ - UpdateSnippet
278
+ positionals:
279
+ - name: snippet_id
280
+ type: int
281
+ required: true
282
+ metavar: SNIPPET_ID
283
+ falls_back_to_field: null
284
+ help: ID of the snippet.
285
+ options: []
286
+ sdk_symbol: mammoth.api.snippets.SnippetsAPI.update
287
+ sdk_conversion: Call mammoth.api.snippets.SnippetsAPI.update with validated request fields.
288
+ request_model: SnippetUpdateRequest
289
+ result_model: SnippetUpdateResult
290
+ mutation_class: benign_mutation
291
+ confirmation: none
292
+ wait_policy: not_async
293
+ pagination_policy: none
294
+ acceptance_evidence: live_disposable_project
295
+ live_test: LT-SNIPPET-UPDATE
296
+ live_exemption_reason: null
297
+ contract_fixture: null
298
+ required_fixture_guard: null
299
+ secret_fields: []
300
+ human_example: mammoth snippet update SNIPPET_ID --help
301
+ agent_example: mammoth snippet update 123 --output json --no-input
302
+ unit_tests:
303
+ - UT-SNIPPET-UPDATE
304
+ contract_tests:
305
+ - CT-SNIPPET-UPDATE-HUMAN
306
+ - CT-SNIPPET-UPDATE-JSON
307
+ - CT-SNIPPET-UPDATE-ERROR
308
+ draft_test: null
309
+ undo_test: null
310
+ known_restrictions: null
311
+ reviewed_by: primary