makea-cli 0.2.6__tar.gz → 0.2.7__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.
- {makea_cli-0.2.6 → makea_cli-0.2.7}/CHANGELOG.md +6 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/PKG-INFO +2 -2
- {makea_cli-0.2.6 → makea_cli-0.2.7}/README.md +1 -1
- makea_cli-0.2.7/makea_cli/__init__.py +1 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/orders/cmd.py +9 -2
- {makea_cli-0.2.6 → makea_cli-0.2.7}/pyproject.toml +1 -1
- {makea_cli-0.2.6 → makea_cli-0.2.7}/tests/golden_manifest.json +13 -1
- makea_cli-0.2.6/makea_cli/__init__.py +0 -1
- {makea_cli-0.2.6 → makea_cli-0.2.7}/.claude/skills/create-supplier-profile/SKILL.md +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/.claude/skills/lark-cli-setup/SKILL.md +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/.claude/skills/link-supplier-user/SKILL.md +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/.claude/skills/makea-cli-setup/SKILL.md +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/.claude/skills/payment-revenue-report/SKILL.md +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/.claude/skills/supplier-user-id-migration/SKILL.md +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/.gitignore +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea-collection-upload/SKILL.md +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea-collection-upload/scripts/create_products.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/__main__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/api_client.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/auth_pkce.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/broker.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/_util.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/analytics/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/analytics/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/auth/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/auth/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/brand/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/brand/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/designer/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/designer/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/directory/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/directory/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/document/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/document/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/email/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/email/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/factory/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/factory/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/library/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/library/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/metrics/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/metrics/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/orders/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/product/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/product/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/production/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/production/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/production/pricing_spec.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/supplier/__init__.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/commands/supplier/cmd.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/config.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/errors.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/identity.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/main.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/output.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/posthog_client.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/makea_cli/registry.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/npm/makea-cli/README.md +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/npm/makea-cli/makea-cli.mjs +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/npm/makea-cli/package.json +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/tests/test_broker.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/tests/test_output_contract.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/tests/test_persona_commands.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/tests/test_registry.py +0 -0
- {makea_cli-0.2.6 → makea_cli-0.2.7}/uv.lock +0 -0
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.7
|
|
4
|
+
|
|
5
|
+
- `admin update tracking-status ... --silent`: move the orders without
|
|
6
|
+
telling anyone (no email, WhatsApp or WeChat). For parcels that landed long
|
|
7
|
+
before anyone noticed, where a "your order has arrived" email would confuse.
|
|
8
|
+
|
|
3
9
|
## 0.2.6
|
|
4
10
|
|
|
5
11
|
- `admin update tracking-status <kind> <order_id> <tracking_number> --status Delivered`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: makea-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: Makea admin CLI (browser login + Makea admin HTTP API)
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Requires-Dist: click<9,>=8.1
|
|
@@ -131,7 +131,7 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
131
131
|
| `makea-cli admin update quote-request` | write(ask) | `PATCH /admin/quote_requests/{quote_request_id}/update` | set a quote request's stage, status and/or due date. Only what you pass is changed. This is the door that unblocks a … | `update-quote-request` |
|
|
132
132
|
| `makea-cli admin update supplier` | write(ask) | `PUT /admin/supplier/update_supplier` | update an existing supplier from a JSON file (admin). Run `makea-cli get-supplier-profile-schema` FIRST to get the fi… | `update-supplier` |
|
|
133
133
|
| `makea-cli admin update tech-spec` | write(ask) | `POST /admin/products/{id}/technical-specifications` | persist specs from a JSON file. | `save-product-tech-spec` |
|
|
134
|
-
| `makea-cli admin update tracking-status` | write(ask) | `POST /admin/tracking/carrier_status` | apply a carrier status looked up by hand (tracking-sweep skill) to one order. Runs the 17track webhook path: status, fan-out, delivered emails. | — |
|
|
134
|
+
| `makea-cli admin update tracking-status` | write(ask) | `POST /admin/tracking/carrier_status` | apply a carrier status looked up by hand (tracking-sweep skill) to one order. Runs the 17track webhook path: status, fan-out, delivered emails (--silent: state only). | — |
|
|
135
135
|
| `makea-cli admin update user` | write(ask) | `PUT /admin/user-profiles/{user_id}/update` | admin updates DynamoDB user profile fields and/or Cognito custom:userType. Allowed --user-type values: "Fashion brand… | `update-user-profile` |
|
|
136
136
|
| `makea-cli admin upload financial-document` | write(auto) | `POST /admin/products/{product_id}/financial_documents` | upload one or more files to AWS S3 and return financial document metadata. | `upload-financial-documents` |
|
|
137
137
|
| `makea-cli admin upload link-document` | write(auto) | `POST /admin/upload_link_document` | upload a file to AWS S3 and return document domain metadata for reuse as input in other commands. | `upload-link-document` |
|
|
@@ -119,7 +119,7 @@ exit code:`0` 成功 · `2` 用法错 · `3` 未登录或身份与 persona 不
|
|
|
119
119
|
| `makea-cli admin update quote-request` | write(ask) | `PATCH /admin/quote_requests/{quote_request_id}/update` | set a quote request's stage, status and/or due date. Only what you pass is changed. This is the door that unblocks a … | `update-quote-request` |
|
|
120
120
|
| `makea-cli admin update supplier` | write(ask) | `PUT /admin/supplier/update_supplier` | update an existing supplier from a JSON file (admin). Run `makea-cli get-supplier-profile-schema` FIRST to get the fi… | `update-supplier` |
|
|
121
121
|
| `makea-cli admin update tech-spec` | write(ask) | `POST /admin/products/{id}/technical-specifications` | persist specs from a JSON file. | `save-product-tech-spec` |
|
|
122
|
-
| `makea-cli admin update tracking-status` | write(ask) | `POST /admin/tracking/carrier_status` | apply a carrier status looked up by hand (tracking-sweep skill) to one order. Runs the 17track webhook path: status, fan-out, delivered emails. | — |
|
|
122
|
+
| `makea-cli admin update tracking-status` | write(ask) | `POST /admin/tracking/carrier_status` | apply a carrier status looked up by hand (tracking-sweep skill) to one order. Runs the 17track webhook path: status, fan-out, delivered emails (--silent: state only). | — |
|
|
123
123
|
| `makea-cli admin update user` | write(ask) | `PUT /admin/user-profiles/{user_id}/update` | admin updates DynamoDB user profile fields and/or Cognito custom:userType. Allowed --user-type values: "Fashion brand… | `update-user-profile` |
|
|
124
124
|
| `makea-cli admin upload financial-document` | write(auto) | `POST /admin/products/{product_id}/financial_documents` | upload one or more files to AWS S3 and return financial document metadata. | `upload-financial-documents` |
|
|
125
125
|
| `makea-cli admin upload link-document` | write(auto) | `POST /admin/upload_link_document` | upload a file to AWS S3 and return document domain metadata for reuse as input in other commands. | `upload-link-document` |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.7"
|
|
@@ -323,7 +323,7 @@ def register(app: typer.Typer) -> None:
|
|
|
323
323
|
api="POST /admin/tracking/carrier_status",
|
|
324
324
|
side_effects=[
|
|
325
325
|
"moves the order to delivered when the status says so",
|
|
326
|
-
"emails and messages the designer, supplier and admins as the 17track webhook did",
|
|
326
|
+
"emails and messages the designer, supplier and admins as the 17track webhook did (none with --silent)",
|
|
327
327
|
],
|
|
328
328
|
approval="ask",
|
|
329
329
|
idempotent=True,
|
|
@@ -349,13 +349,19 @@ def register(app: typer.Typer) -> None:
|
|
|
349
349
|
time_utc: str | None = typer.Option(
|
|
350
350
|
None, "--time", help="Latest event time, ISO 8601 UTC."
|
|
351
351
|
),
|
|
352
|
+
silent: bool = typer.Option(
|
|
353
|
+
False,
|
|
354
|
+
"--silent",
|
|
355
|
+
help="Change state only: no email, WhatsApp or WeChat to anyone. For parcels that landed long ago.",
|
|
356
|
+
),
|
|
352
357
|
) -> None:
|
|
353
358
|
"""
|
|
354
359
|
Tell Makea what the carrier says about one parcel.
|
|
355
360
|
|
|
356
361
|
Output: JSON from the webhook path: success, status, and one entry per
|
|
357
362
|
order the number was fanned out to. Repeating a Delivered update is a
|
|
358
|
-
no-op (no second email).
|
|
363
|
+
no-op (no second email). --silent moves the orders without telling
|
|
364
|
+
anyone.
|
|
359
365
|
"""
|
|
360
366
|
track_info = {
|
|
361
367
|
"latest_status": {"status": status, "sub_status": sub_status},
|
|
@@ -374,6 +380,7 @@ def register(app: typer.Typer) -> None:
|
|
|
374
380
|
"order_id": order_id,
|
|
375
381
|
"tracking_number": tracking_number,
|
|
376
382
|
"track_info": track_info,
|
|
383
|
+
"notify": not silent,
|
|
377
384
|
},
|
|
378
385
|
),
|
|
379
386
|
)
|
|
@@ -3574,7 +3574,7 @@
|
|
|
3574
3574
|
"external": null,
|
|
3575
3575
|
"side_effects": [
|
|
3576
3576
|
"moves the order to delivered when the status says so",
|
|
3577
|
-
"emails and messages the designer, supplier and admins as the 17track webhook did"
|
|
3577
|
+
"emails and messages the designer, supplier and admins as the 17track webhook did (none with --silent)"
|
|
3578
3578
|
],
|
|
3579
3579
|
"approval": "ask",
|
|
3580
3580
|
"reversible": null,
|
|
@@ -3679,6 +3679,18 @@
|
|
|
3679
3679
|
"multiple": false,
|
|
3680
3680
|
"default": null,
|
|
3681
3681
|
"help": "Latest event time, ISO 8601 UTC."
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
"name": "silent",
|
|
3685
|
+
"kind": "option",
|
|
3686
|
+
"opts": [
|
|
3687
|
+
"--silent"
|
|
3688
|
+
],
|
|
3689
|
+
"type": "flag",
|
|
3690
|
+
"required": false,
|
|
3691
|
+
"multiple": false,
|
|
3692
|
+
"default": false,
|
|
3693
|
+
"help": "Change state only: no email, WhatsApp or WeChat to anyone. For parcels that landed long ago."
|
|
3682
3694
|
}
|
|
3683
3695
|
]
|
|
3684
3696
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.6"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|