@myapihq/cli 2.4.1 → 2.4.2

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 (89) hide show
  1. package/dist/commands/crm/companies.js +1 -5
  2. package/dist/commands/crm/contacts.js +1 -6
  3. package/dist/commands/domain-validation.test.d.ts +1 -0
  4. package/dist/commands/domain-validation.test.js +36 -0
  5. package/dist/commands/domain.d.ts +14 -0
  6. package/dist/commands/domain.js +20 -1
  7. package/dist/commands/funnel-validation.test.d.ts +1 -0
  8. package/dist/commands/funnel-validation.test.js +86 -0
  9. package/dist/commands/funnel.d.ts +12 -0
  10. package/dist/commands/funnel.js +59 -15
  11. package/dist/commands/payments.js +12 -2
  12. package/dist/commands/setup.d.ts +1 -0
  13. package/dist/commands/setup.js +51 -2
  14. package/dist/commands/skill-checksum.test.d.ts +1 -0
  15. package/dist/commands/skill-checksum.test.js +48 -0
  16. package/dist/config-envkey.test.d.ts +1 -0
  17. package/dist/config-envkey.test.js +145 -0
  18. package/dist/config.js +41 -5
  19. package/dist/errors.js +11 -0
  20. package/dist/index.js +6 -1
  21. package/dist/sdk-transport.test.d.ts +1 -0
  22. package/dist/sdk-transport.test.js +138 -0
  23. package/dist/sdk-version.test.d.ts +1 -0
  24. package/dist/sdk-version.test.js +24 -0
  25. package/dist/skills/my-api-hq/SKILL.md +1 -1
  26. package/dist/skills/my-api-hq/claude/.claude-plugin/plugin.json +1 -0
  27. package/dist/skills/my-audience-api/README.md +40 -0
  28. package/dist/skills/my-audience-api/SKILL.md +139 -0
  29. package/dist/skills/my-audience-api/claude/.claude-plugin/plugin.json +7 -0
  30. package/dist/skills/my-audience-api/openapi/.gitkeep +0 -0
  31. package/dist/skills/my-auth-api/SKILL.md +1 -1
  32. package/dist/skills/my-auth-api/claude/.claude-plugin/plugin.json +1 -0
  33. package/dist/skills/my-company-api/README.md +35 -0
  34. package/dist/skills/my-company-api/SKILL.md +110 -0
  35. package/dist/skills/my-company-api/claude/.claude-plugin/plugin.json +7 -0
  36. package/dist/skills/my-company-api/openapi/.gitkeep +0 -0
  37. package/dist/skills/my-container-api/README.md +34 -0
  38. package/dist/skills/my-container-api/SKILL.md +77 -0
  39. package/dist/skills/my-container-api/claude/.claude-plugin/plugin.json +7 -0
  40. package/dist/skills/my-container-api/openapi/.gitkeep +0 -0
  41. package/dist/skills/my-crm-api/SKILL.md +3 -3
  42. package/dist/skills/my-crm-api/claude/.claude-plugin/plugin.json +1 -0
  43. package/dist/skills/my-database-api/SKILL.md +1 -1
  44. package/dist/skills/my-database-api/claude/.claude-plugin/plugin.json +1 -0
  45. package/dist/skills/my-domain-api/SKILL.md +1 -1
  46. package/dist/skills/my-domain-api/claude/.claude-plugin/plugin.json +1 -0
  47. package/dist/skills/my-email-api/SKILL.md +1 -1
  48. package/dist/skills/my-email-api/claude/.claude-plugin/plugin.json +1 -0
  49. package/dist/skills/my-email-verify-api/SKILL.md +1 -1
  50. package/dist/skills/my-email-verify-api/claude/.claude-plugin/plugin.json +1 -0
  51. package/dist/skills/my-function-api/SKILL.md +104 -0
  52. package/dist/skills/my-function-api/claude/.claude-plugin/plugin.json +7 -0
  53. package/dist/skills/my-funnel-api/SKILL.md +2 -2
  54. package/dist/skills/my-funnel-api/claude/.claude-plugin/plugin.json +1 -0
  55. package/dist/skills/my-git-api/SKILL.md +1 -1
  56. package/dist/skills/my-git-api/claude/.claude-plugin/plugin.json +1 -0
  57. package/dist/skills/my-image-api/SKILL.md +1 -1
  58. package/dist/skills/my-image-api/claude/.claude-plugin/plugin.json +1 -0
  59. package/dist/skills/my-llm-api/SKILL.md +6 -11
  60. package/dist/skills/my-llm-api/claude/.claude-plugin/plugin.json +1 -0
  61. package/dist/skills/my-payments-api/SKILL.md +85 -0
  62. package/dist/skills/my-payments-api/claude/.claude-plugin/plugin.json +7 -0
  63. package/dist/skills/my-people-api/README.md +35 -0
  64. package/dist/skills/my-people-api/SKILL.md +107 -0
  65. package/dist/skills/my-people-api/claude/.claude-plugin/plugin.json +7 -0
  66. package/dist/skills/my-people-api/openapi/.gitkeep +0 -0
  67. package/dist/skills/my-pixel-api/README.md +38 -0
  68. package/dist/skills/my-pixel-api/SKILL.md +90 -0
  69. package/dist/skills/my-pixel-api/claude/.claude-plugin/plugin.json +7 -0
  70. package/dist/skills/my-pixel-api/openapi/.gitkeep +0 -0
  71. package/dist/skills/my-queue-api/README.md +34 -0
  72. package/dist/skills/my-queue-api/SKILL.md +78 -0
  73. package/dist/skills/my-queue-api/claude/.claude-plugin/plugin.json +7 -0
  74. package/dist/skills/my-queue-api/openapi/.gitkeep +0 -0
  75. package/dist/skills/my-storage-api/SKILL.md +1 -1
  76. package/dist/skills/my-storage-api/claude/.claude-plugin/plugin.json +1 -0
  77. package/dist/skills/my-task-api/README.md +36 -0
  78. package/dist/skills/my-task-api/SKILL.md +74 -0
  79. package/dist/skills/my-task-api/claude/.claude-plugin/plugin.json +7 -0
  80. package/dist/skills/my-task-api/openapi/.gitkeep +0 -0
  81. package/dist/skills/my-url-to/README.md +32 -0
  82. package/dist/skills/my-url-to/SKILL.md +55 -0
  83. package/dist/skills/my-url-to/claude/.claude-plugin/plugin.json +7 -0
  84. package/dist/skills/my-url-to/openapi/.gitkeep +0 -0
  85. package/dist/skills/my-webhook-api/SKILL.md +1 -1
  86. package/dist/skills/my-webhook-api/claude/.claude-plugin/plugin.json +1 -0
  87. package/dist/skills/my-workflow-api/SKILL.md +1 -1
  88. package/dist/skills/my-workflow-api/claude/.claude-plugin/plugin.json +1 -0
  89. package/package.json +8 -2
@@ -0,0 +1,32 @@
1
+ # my-url-to
2
+
3
+ Stateful URL shortening and routing via myurlto.com. Shorten long URLs, track link activity, and give users compact shareable links.
4
+
5
+ ## What it does
6
+
7
+ - Shorten any URL to a `myurlto.com` link
8
+ - Track clicks and link activity
9
+ - Manage and list links by organization
10
+
11
+ ## Quickstart
12
+
13
+ ```bash
14
+ # Shorten a URL
15
+ curl -sS -X POST https://myurlto.com/url/shorten \
16
+ -H "Authorization: Bearer $MYAPI_KEY" \
17
+ -H "Content-Type: application/json" \
18
+ -d '{"org_id": "<org_id>", "url": "https://example.com/very/long/path"}'
19
+ ```
20
+
21
+ ## Authentication
22
+
23
+ ```
24
+ Authorization: Bearer <api_key>
25
+ ```
26
+
27
+ Requires `org_id` from `my-api-hq`.
28
+
29
+ ## Links
30
+
31
+ - [Full skill documentation (SKILL.md)](./SKILL.md)
32
+ - [MyUrlTo](https://myurlto.com)
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: my-url-to
3
+ version: 1.0.0
4
+ description: >
5
+ Stateful URL shortening service. Generate compact `myurlto.com` redirect links to long URLs. Often invoked implicitly by other backend services for outbound links.
6
+ triggers: [shorten url, short link, url shortener, myurlto, redirect, short_code]
7
+ checksum: sha256-2b83a7774da020adc3e61e411ff63b7ced7d9f160d22eb0a9291b701ad0fcf73
8
+ ---
9
+
10
+ # MyURLToAPI
11
+
12
+ URL shortening: compact redirect URLs under `myurlto.com`.
13
+
14
+ ## Capabilities
15
+ <!-- llm:start -->
16
+ Generates a short redirect URL for any long target. The short link 302-redirects to the original. Stateful — short codes are stable until explicitly deleted server-side.
17
+
18
+ Note: agents don't always need to call this explicitly. Internal MyAPI services (e.g. payment checkout flows) automatically shorten certain links before returning them. Only call `myapi url shorten` when a user or workflow specifically asks for a short link, or when generating a URL that will be displayed to users in a constrained surface (SMS, QR codes, etc.).
19
+ <!-- llm:end -->
20
+
21
+ ## Commands
22
+ <!-- generated:start -->
23
+ | Command | What it does |
24
+ |---|---|
25
+ | `myapi url shorten <url>` | Generate a short redirect URL for a long target |
26
+
27
+ The redirect itself is public:
28
+
29
+ ```
30
+ GET /{domain}/{code}
31
+ → 302 Location: <original URL>
32
+ ```
33
+
34
+ No auth required to follow the redirect. Errors: `404` for unknown code or code longer than 16 chars.
35
+ <!-- generated:end -->
36
+
37
+ ## Examples
38
+ <!-- llm:start -->
39
+ ```bash
40
+ # Shorten
41
+ myapi url shorten "https://example.com/very/long/path?parameters=true"
42
+ # → { "short_code": "8f2a1b9c", "short_url": "https://myurlto.com/example.com/8f2a1b9c" }
43
+
44
+ # Use the short URL anywhere (resolves at the apex — NOT api.myurlto.com)
45
+ curl -L "https://myurlto.com/example.com/8f2a1b9c"
46
+ ```
47
+ <!-- llm:end -->
48
+
49
+ ## Notes
50
+
51
+ - The domain segment of the short URL is extracted from the target URL's root domain.
52
+ - Short codes are stable — once minted, they don't change.
53
+ - Required: a non-empty `url`. `400` if missing.
54
+
55
+ Run `myapi url --help` for flag reference.
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "my-url-to",
3
+ "description": "Stateless link routing and URL shortening for the MyAPI ecosystem.",
4
+ "version": "1.0.0",
5
+ "status": "preview",
6
+ "published": true
7
+ }
File without changes
@@ -4,7 +4,7 @@ version: 1.0.0
4
4
  description: >
5
5
  Inbound webhook endpoints for non-funnel sources — Stripe, GitHub, custom services. Funnel forms use the my-funnel-api proxy.
6
6
  triggers: [webhook, inbound, receiver, stripe events, github webhook, slack notification, delivery, payload, event ingest]
7
- checksum: sha256-pending
7
+ checksum: sha256-13680a0decdbb5b49d9d80b52203eb68a43450f94477936252b54dfd2b3845bc
8
8
  ---
9
9
 
10
10
  # MyWebhookAPI
@@ -2,5 +2,6 @@
2
2
  "name": "my-webhook-api",
3
3
  "description": "Receive inbound HTTP webhooks. Per-org endpoints with full delivery history.",
4
4
  "version": "1.0.0",
5
+ "status": "ga",
5
6
  "published": true
6
7
  }
@@ -4,7 +4,7 @@ version: 1.0.0
4
4
  description: >
5
5
  Run actions when a webhook fires. Trigger emails, Slack notifications, or HTTP calls in response to inbound webhook deliveries — without writing a backend.
6
6
  triggers: [workflow, automation, on webhook, send email on, slack notification, payload templating, drip, trigger, run]
7
- checksum: sha256-pending
7
+ checksum: sha256-eddc70a8542c3cdfd01866f241ea283164e71fbe748426a13358d1c7ef635cb1
8
8
  ---
9
9
 
10
10
  # MyWorkflowAPI
@@ -2,5 +2,6 @@
2
2
  "name": "my-workflow-api",
3
3
  "description": "React to inbound webhooks with step chains: send email, post to Slack, call HTTP URLs.",
4
4
  "version": "1.0.0",
5
+ "status": "ga",
5
6
  "published": true
6
7
  }
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@myapihq/cli",
3
3
  "license": "Apache-2.0",
4
- "version": "2.4.1",
4
+ "version": "2.4.2",
5
5
  "description": "MyAPI command-line interface",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/myapihq/myapi.git",
9
+ "directory": "packages/cli"
10
+ },
6
11
  "type": "module",
7
12
  "files": [
8
13
  "dist"
@@ -28,11 +33,12 @@
28
33
  "update-schema": "node scripts/update-schema.js",
29
34
  "lint:changelog": "node ../../scripts/lint-changelog.js",
30
35
  "lint:help-order": "node scripts/lint-help-order.js",
36
+ "lint:exposes": "node scripts/lint-exposes.js",
31
37
  "lint:skills": "node scripts/copy-skills.js && node scripts/lint-skills.js",
32
38
  "lint:skills:strict": "node scripts/copy-skills.js && node scripts/lint-skills.js --strict"
33
39
  },
34
40
  "dependencies": {
35
- "@myapihq/sdk": "^2.4.1"
41
+ "@myapihq/sdk": "^2.4.2"
36
42
  },
37
43
  "devDependencies": {
38
44
  "@types/node": "^25.6.0",