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,262 @@
1
+ manifest_schema_version: 1
2
+ commands:
3
+ - command_id: batch.bulk-delete
4
+ command_path: batch bulk-delete
5
+ disposition: command
6
+ alias_of: null
7
+ operation_ids:
8
+ - DeleteBatches
9
+ positionals:
10
+ - name: dataset_id
11
+ type: int
12
+ required: true
13
+ metavar: DATASET_ID
14
+ falls_back_to_field: null
15
+ help: ID of the dataset.
16
+ options: []
17
+ sdk_symbol: mammoth.api.batches.BatchesAPI.bulk_delete
18
+ sdk_conversion: Call mammoth.api.batches.BatchesAPI.bulk_delete with validated request fields.
19
+ request_model: BatchBulkDeleteRequest
20
+ result_model: BatchBulkDeleteResult
21
+ mutation_class: destructive
22
+ confirmation: prompt_or_yes
23
+ wait_policy: not_async
24
+ pagination_policy: none
25
+ acceptance_evidence: live_disposable_project
26
+ live_test: LT-BATCH-BULK-DELETE
27
+ live_exemption_reason: null
28
+ contract_fixture: null
29
+ required_fixture_guard: null
30
+ secret_fields: []
31
+ human_example: mammoth batch bulk-delete DATASET_ID --help
32
+ agent_example: mammoth batch bulk-delete 123 --output json --no-input
33
+ unit_tests:
34
+ - UT-BATCH-BULK-DELETE
35
+ contract_tests:
36
+ - CT-BATCH-BULK-DELETE-HUMAN
37
+ - CT-BATCH-BULK-DELETE-JSON
38
+ - CT-BATCH-BULK-DELETE-ERROR
39
+ draft_test: null
40
+ undo_test: null
41
+ known_restrictions: null
42
+ reviewed_by: primary
43
+ - command_id: batch.create
44
+ command_path: batch create
45
+ disposition: command
46
+ alias_of: null
47
+ operation_ids:
48
+ - CreateBatch
49
+ positionals:
50
+ - name: dataset_id
51
+ type: int
52
+ required: true
53
+ metavar: DATASET_ID
54
+ falls_back_to_field: null
55
+ help: ID of the dataset.
56
+ - name: source_id
57
+ type: int
58
+ required: true
59
+ metavar: SOURCE_ID
60
+ falls_back_to_field: null
61
+ help: ID of the source.
62
+ options: []
63
+ sdk_symbol: mammoth.api.batches.BatchesAPI.create
64
+ sdk_conversion: Call mammoth.api.batches.BatchesAPI.create with validated request fields.
65
+ request_model: BatchCreateRequest
66
+ result_model: BatchCreateResult
67
+ mutation_class: benign_mutation
68
+ confirmation: none
69
+ wait_policy: returns_job
70
+ pagination_policy: none
71
+ acceptance_evidence: live_disposable_project
72
+ live_test: LT-BATCH-CREATE
73
+ live_exemption_reason: null
74
+ contract_fixture: null
75
+ required_fixture_guard: null
76
+ secret_fields: []
77
+ human_example: mammoth batch create DATASET_ID SOURCE_ID --help
78
+ agent_example: 'mammoth batch create 123 123 --input ''{"mapping": {"example": "example"}}'' --output
79
+ json --no-input'
80
+ unit_tests:
81
+ - UT-BATCH-CREATE
82
+ contract_tests:
83
+ - CT-BATCH-CREATE-HUMAN
84
+ - CT-BATCH-CREATE-JSON
85
+ - CT-BATCH-CREATE-ERROR
86
+ draft_test: null
87
+ undo_test: null
88
+ known_restrictions: delete_source_ds=true changes the mutation class to destructive and requires confirmation.
89
+ reviewed_by: primary
90
+ - command_id: batch.delete
91
+ command_path: batch delete
92
+ disposition: command
93
+ alias_of: null
94
+ operation_ids:
95
+ - DeleteBatch
96
+ positionals:
97
+ - name: dataset_id
98
+ type: int
99
+ required: true
100
+ metavar: DATASET_ID
101
+ falls_back_to_field: null
102
+ help: ID of the dataset.
103
+ - name: batch_id
104
+ type: int
105
+ required: true
106
+ metavar: BATCH_ID
107
+ falls_back_to_field: null
108
+ help: ID of the batch.
109
+ options: []
110
+ sdk_symbol: mammoth.api.batches.BatchesAPI.delete
111
+ sdk_conversion: Call mammoth.api.batches.BatchesAPI.delete with validated request fields.
112
+ request_model: BatchDeleteRequest
113
+ result_model: BatchDeleteResult
114
+ mutation_class: destructive
115
+ confirmation: prompt_or_yes
116
+ wait_policy: returns_job
117
+ pagination_policy: none
118
+ acceptance_evidence: live_disposable_project
119
+ live_test: LT-BATCH-DELETE
120
+ live_exemption_reason: null
121
+ contract_fixture: null
122
+ required_fixture_guard: null
123
+ secret_fields: []
124
+ human_example: mammoth batch delete DATASET_ID BATCH_ID --help
125
+ agent_example: mammoth batch delete 123 123 --output json --no-input
126
+ unit_tests:
127
+ - UT-BATCH-DELETE
128
+ contract_tests:
129
+ - CT-BATCH-DELETE-HUMAN
130
+ - CT-BATCH-DELETE-JSON
131
+ - CT-BATCH-DELETE-ERROR
132
+ draft_test: null
133
+ undo_test: null
134
+ known_restrictions: Resolve the batch before confirmation.
135
+ reviewed_by: primary
136
+ - command_id: batch.get
137
+ command_path: batch get
138
+ disposition: command
139
+ alias_of: null
140
+ operation_ids:
141
+ - GetBatch
142
+ positionals:
143
+ - name: dataset_id
144
+ type: int
145
+ required: true
146
+ metavar: DATASET_ID
147
+ falls_back_to_field: null
148
+ help: ID of the dataset.
149
+ - name: batch_id
150
+ type: int
151
+ required: true
152
+ metavar: BATCH_ID
153
+ falls_back_to_field: null
154
+ help: ID of the batch.
155
+ options: []
156
+ sdk_symbol: mammoth.api.batches.BatchesAPI.get
157
+ sdk_conversion: Call mammoth.api.batches.BatchesAPI.get with validated request fields.
158
+ request_model: BatchGetRequest
159
+ result_model: BatchGetResult
160
+ mutation_class: read
161
+ confirmation: none
162
+ wait_policy: not_async
163
+ pagination_policy: none
164
+ acceptance_evidence: live_read_only
165
+ live_test: LT-BATCH-GET
166
+ live_exemption_reason: null
167
+ contract_fixture: null
168
+ required_fixture_guard: null
169
+ secret_fields: []
170
+ human_example: mammoth batch get DATASET_ID BATCH_ID --help
171
+ agent_example: mammoth batch get 123 123 --output json --no-input
172
+ unit_tests:
173
+ - UT-BATCH-GET
174
+ contract_tests:
175
+ - CT-BATCH-GET-HUMAN
176
+ - CT-BATCH-GET-JSON
177
+ - CT-BATCH-GET-ERROR
178
+ draft_test: null
179
+ undo_test: null
180
+ known_restrictions: null
181
+ reviewed_by: primary
182
+ - command_id: batch.list
183
+ command_path: batch list
184
+ disposition: command
185
+ alias_of: null
186
+ operation_ids:
187
+ - GetBatches
188
+ positionals:
189
+ - name: dataset_id
190
+ type: int
191
+ required: true
192
+ metavar: DATASET_ID
193
+ falls_back_to_field: null
194
+ help: ID of the dataset.
195
+ options: []
196
+ sdk_symbol: mammoth.api.batches.BatchesAPI.list
197
+ sdk_conversion: Call mammoth.api.batches.BatchesAPI.list with validated request fields.
198
+ request_model: BatchListRequest
199
+ result_model: BatchListResult
200
+ mutation_class: read
201
+ confirmation: none
202
+ wait_policy: not_async
203
+ pagination_policy: offset
204
+ acceptance_evidence: live_read_only
205
+ live_test: LT-BATCH-LIST
206
+ live_exemption_reason: null
207
+ contract_fixture: null
208
+ required_fixture_guard: null
209
+ secret_fields: []
210
+ human_example: mammoth batch list DATASET_ID --help
211
+ agent_example: mammoth batch list 123 --output json --no-input
212
+ unit_tests:
213
+ - UT-BATCH-LIST
214
+ contract_tests:
215
+ - CT-BATCH-LIST-HUMAN
216
+ - CT-BATCH-LIST-JSON
217
+ - CT-BATCH-LIST-ERROR
218
+ draft_test: null
219
+ undo_test: null
220
+ known_restrictions: null
221
+ reviewed_by: primary
222
+ - command_id: batch.update
223
+ command_path: batch update
224
+ disposition: command
225
+ alias_of: null
226
+ operation_ids:
227
+ - UpdateBatches
228
+ positionals:
229
+ - name: dataset_id
230
+ type: int
231
+ required: true
232
+ metavar: DATASET_ID
233
+ falls_back_to_field: null
234
+ help: ID of the dataset.
235
+ options: []
236
+ sdk_symbol: mammoth.api.batches.BatchesAPI.update
237
+ sdk_conversion: Call mammoth.api.batches.BatchesAPI.update with validated request fields.
238
+ request_model: BatchUpdateRequest
239
+ result_model: BatchUpdateResult
240
+ mutation_class: benign_mutation
241
+ confirmation: none
242
+ wait_policy: returns_job
243
+ pagination_policy: none
244
+ acceptance_evidence: live_disposable_project
245
+ live_test: LT-BATCH-UPDATE
246
+ live_exemption_reason: null
247
+ contract_fixture: null
248
+ required_fixture_guard: null
249
+ secret_fields: []
250
+ human_example: mammoth batch update DATASET_ID --help
251
+ agent_example: 'mammoth batch update 123 --input ''{"patch": [{"example": "example"}]}'' --output json
252
+ --no-input'
253
+ unit_tests:
254
+ - UT-BATCH-UPDATE
255
+ contract_tests:
256
+ - CT-BATCH-UPDATE-HUMAN
257
+ - CT-BATCH-UPDATE-JSON
258
+ - CT-BATCH-UPDATE-ERROR
259
+ draft_test: null
260
+ undo_test: null
261
+ known_restrictions: Any remove operation in the discriminated patch changes the mutation class to destructive.
262
+ reviewed_by: primary