@myapihq/cli 2.28.2 → 2.29.0

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.
@@ -23,6 +23,7 @@ export const SCHEMA = {
23
23
  name: 'string',
24
24
  'content-type': 'string',
25
25
  private: 'boolean',
26
+ description: 'string',
26
27
  ttl: 'string',
27
28
  };
28
29
  // Extension → content type, for inference only. The API accepts any MIME type
@@ -118,7 +119,8 @@ async function upload(filePath, flags) {
118
119
  }
119
120
  const name = flags.name || basename(filePath);
120
121
  const visibility = flags.private ? 'private' : undefined;
121
- const res = await sdkStorage.uploadAsset(config.api_key, orgId, data, contentType, name, visibility);
122
+ const description = typeof flags.description === 'string' ? flags.description : undefined;
123
+ const res = await sdkStorage.uploadAsset(config.api_key, orgId, data, contentType, name, visibility, description);
122
124
  // Every other storage verb honours --json; upload did not, so an agent that
123
125
  // asked for machine output got prose and had to scrape "ID: obj_…" out of a
124
126
  // sentence to learn what it had just created. Agents are the primary caller
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: my-storage-api
3
- version: 1.1.0
3
+ version: 1.1.1
4
4
  description: >
5
5
  Edge-hosted asset storage. Upload a local file of any content type directly, or have the server fetch from a public URL. Each asset gets a stable public CDN URL.
6
6
  triggers: [storage, upload, ingest, asset, cdn, image hosting, file upload, get-url, download, public url]
7
- checksum: sha256-ef0154ed196082be84192c7ddfb4cab47641549ed9703087c9eb4643daea678a
7
+ checksum: sha256-a98e06eacd41973d0b847005bd949cf71ca13b0f99d5206a3dd762301db6e040
8
8
  ---
9
9
 
10
10
  # MyStorageAPI
@@ -45,7 +45,7 @@ Use `get` for a round-trip metadata fetch. Use `get-url` when you just need the
45
45
  | Command | What it does |
46
46
  |---|---|
47
47
  | `myapi storage list` | List all stored assets |
48
- | `myapi storage upload <file>` | Direct multipart upload of a local file (any content type) |
48
+ | `myapi storage upload <file>` | Direct multipart upload of a local file (any content type; `--description` labels it) |
49
49
  | `myapi storage ingest <url>` | Server fetches a public URL into storage |
50
50
  | `myapi storage get <asset_id>` | Round-trip the API for full metadata (`--json` or human block) |
51
51
  | `myapi storage get-url <asset_id>` | Pure local URL constructor — no API call, no auth |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@myapihq/cli",
3
3
  "license": "Apache-2.0",
4
- "version": "2.28.2",
4
+ "version": "2.29.0",
5
5
  "description": "MyAPI command-line interface",
6
6
  "repository": {
7
7
  "type": "git",
@@ -34,6 +34,7 @@
34
34
  "lint:changelog": "node ../../scripts/lint-changelog.js",
35
35
  "lint:help-order": "node scripts/lint-help-order.js",
36
36
  "lint:exposes": "node scripts/lint-exposes.js",
37
+ "lint:query-params": "node scripts/lint-query-params.js",
37
38
  "lint:request-fields": "node scripts/lint-request-fields.js",
38
39
  "audit:doctor": "npm run build && node scripts/audit-doctor.js",
39
40
  "lint:docs": "node scripts/lint-docs.js",
@@ -46,7 +47,7 @@
46
47
  "lint:skills:strict": "node scripts/copy-skills.js && node scripts/lint-skills.js --strict"
47
48
  },
48
49
  "dependencies": {
49
- "@myapihq/sdk": "^2.28.2"
50
+ "@myapihq/sdk": "^2.29.0"
50
51
  },
51
52
  "devDependencies": {
52
53
  "@types/node": "^25.6.0",