@epilot/cli 0.1.0 → 0.1.1

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 (54) hide show
  1. package/README.md +91 -101
  2. package/dist/{access-token-OG5AR7UB.js → access-token-YRXYUMJO.js} +2 -2
  3. package/dist/{address-QUSMK5GV.js → address-IL2PJHFH.js} +2 -2
  4. package/dist/{address-suggestions-E5SQNUS5.js → address-suggestions-6BZAEYFM.js} +2 -2
  5. package/dist/{ai-agents-PM42SJY3.js → ai-agents-ZDLCFXPH.js} +2 -2
  6. package/dist/{app-YTM3XAJL.js → app-M34UBBGM.js} +2 -2
  7. package/dist/{audit-logs-NXP7GFKX.js → audit-logs-2K2MCJLZ.js} +2 -2
  8. package/dist/{auth-CCBTXH5U.js → auth-U5HVFUZC.js} +1 -1
  9. package/dist/{auth-login-2ZIXM47J.js → auth-login-BV4QSS43.js} +11 -10
  10. package/dist/{automation-TDJASTEV.js → automation-PDAXGSKU.js} +2 -2
  11. package/dist/{billing-M4MRBLEK.js → billing-6MJDEPCJ.js} +2 -2
  12. package/dist/bin/epilot.js +150 -47
  13. package/dist/{blueprint-manifest-NQL7NRMV.js → blueprint-manifest-7BGWB5ZU.js} +2 -2
  14. package/dist/{chunk-RC3GCXCI.js → chunk-4VITQVW2.js} +2 -4
  15. package/dist/{chunk-57PPARIW.js → chunk-RJ6K624F.js} +11 -12
  16. package/dist/{consent-KQ7MJAS6.js → consent-BESBYOTH.js} +2 -2
  17. package/dist/{customer-portal-VUVSKWAQ.js → customer-portal-S4JG74RI.js} +2 -2
  18. package/dist/{dashboard-GVR4XNGR.js → dashboard-3CIU4PJI.js} +2 -2
  19. package/dist/{data-management-2RD3DLOS.js → data-management-T2YQOUSS.js} +2 -2
  20. package/dist/{deduplication-PY77EINR.js → deduplication-ZNOF5EIN.js} +2 -2
  21. package/dist/{design-M4FP2K5R.js → design-64KBRDAP.js} +2 -2
  22. package/dist/{document-P4QA7LEZ.js → document-ERJ35ISV.js} +2 -2
  23. package/dist/{email-settings-7HGGRCCM.js → email-settings-UWGUKF3J.js} +2 -2
  24. package/dist/{email-template-3HXQI4CH.js → email-template-AL34THIK.js} +2 -2
  25. package/dist/{entity-XUESZBPJ.js → entity-QRKEACLJ.js} +2 -2
  26. package/dist/{entity-mapping-JBKWWBH2.js → entity-mapping-XKWAEZBK.js} +2 -2
  27. package/dist/{environments-KKOS7ONY.js → environments-3OLHJCOH.js} +2 -2
  28. package/dist/{erp-integration-YTOWHCAW.js → erp-integration-DY53M3X7.js} +2 -2
  29. package/dist/{event-catalog-UKLZUGC4.js → event-catalog-4ZWJVKGK.js} +2 -2
  30. package/dist/{file-IFZNZ547.js → file-CZNPJDKH.js} +2 -2
  31. package/dist/{iban-X2IW2NWU.js → iban-7W4O6GPS.js} +2 -2
  32. package/dist/{interactive-46ICLQKL.js → interactive-RWCSFGXL.js} +1 -1
  33. package/dist/{journey-JU6X2KMX.js → journey-E22BHARF.js} +2 -2
  34. package/dist/{kanban-VHUU44PM.js → kanban-GQKDGTF7.js} +2 -2
  35. package/dist/{message-AOUWJ4YX.js → message-RYVTUE3P.js} +2 -2
  36. package/dist/{metering-RDS3XBD5.js → metering-BP5CJUS5.js} +2 -2
  37. package/dist/{notes-WE2UC75B.js → notes-5FAN67YN.js} +2 -2
  38. package/dist/{notification-FKFNBHYZ.js → notification-GI2UZDQF.js} +2 -2
  39. package/dist/{organization-LMNFF6BX.js → organization-QHDUJL7Z.js} +2 -2
  40. package/dist/{partner-directory-IIZVQDXJ.js → partner-directory-DXT3PSEP.js} +2 -2
  41. package/dist/{permissions-AYCMVM7Y.js → permissions-VCWKZ46O.js} +2 -2
  42. package/dist/{pricing-PS26FWBS.js → pricing-OM7AIMCZ.js} +2 -2
  43. package/dist/{pricing-tier-FBXWQ6T3.js → pricing-tier-2OCBV2KQ.js} +2 -2
  44. package/dist/{purpose-HE4E4SVU.js → purpose-XQF47URT.js} +2 -2
  45. package/dist/{sandbox-Z7BU4UAD.js → sandbox-DALZFBRO.js} +2 -2
  46. package/dist/{submission-MWVDF2ZB.js → submission-RDR6CTL6.js} +2 -2
  47. package/dist/{targeting-7NM5GDJ6.js → targeting-PVEHMO4M.js} +2 -2
  48. package/dist/{template-variables-AJAR7PAV.js → template-variables-XGW3OIBX.js} +2 -2
  49. package/dist/{user-A26XQXG3.js → user-HBVLGFZ4.js} +2 -2
  50. package/dist/{validation-rules-VZTISEG2.js → validation-rules-LXNG5E2D.js} +2 -2
  51. package/dist/{webhooks-RXH67WZ3.js → webhooks-REJWKLLU.js} +2 -2
  52. package/dist/{workflow-G4FUUGZQ.js → workflow-X6FXHKMD.js} +2 -2
  53. package/dist/{workflow-definition-LJYLMMGD.js → workflow-definition-ANJBZN3H.js} +2 -2
  54. package/package.json +4 -1
package/README.md CHANGED
@@ -1,119 +1,109 @@
1
1
  # epilot CLI
2
2
 
3
- CLI for all epilot APIs. Call any of the 800+ operations across 46 APIs directly from the command line.
3
+ CLI for epilot APIs. Call any epilot API operation directly from the command line.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
+ # Run directly (no install needed)
8
9
  npx epilot --help
9
- ```
10
-
11
- Or install globally:
12
-
13
- ```bash
14
- npm install -g epilot
15
- ```
16
-
17
- ## Quick Start
18
-
19
- ```bash
20
- # Authenticate
21
- epilot auth login
22
-
23
- # List entity schemas
24
- epilot entity listSchemas
25
-
26
- # Get an entity by id
27
- epilot entity getEntity -p slug=contact -p id=abc123
28
-
29
- # Same with positional args
30
- epilot entity getEntity contact abc123
31
10
 
32
- # Search entities with request body
33
- epilot entity searchEntities -d '{"q":"*","size":10}'
34
-
35
- # Pipe body from file
36
- cat query.json | epilot entity searchEntities
37
-
38
- # Filter response with JSONata
39
- epilot user getMeV2 --jsonata 'email'
40
-
41
- # Raw JSON output (for scripting)
42
- epilot entity listSchemas --json | jq '.results[].slug'
11
+ # Or install globally
12
+ npm install -g @epilot/cli # scoped package (same thing)
43
13
  ```
44
14
 
45
15
  ## Usage
46
16
 
47
17
  <!-- usage-help -->
48
18
  ```
49
- CLI for epilot APIs (epilot v0.1.0)
50
-
51
- USAGE epilot [OPTIONS] auth|profile|completion|access-token|address|address-suggestions|ai-agents|app|audit-logs|automation|billing|blueprint-manifest|consent|customer-portal|dashboard|data-management|deduplication|design|document|email-settings|email-template|entity|entity-mapping|environments|erp-integration|event-catalog|file|iban|journey|kanban|message|metering|notes|notification|organization|partner-directory|permissions|pricing|pricing-tier|purpose|sandbox|submission|targeting|template-variables|user|validation-rules|webhooks|workflow|workflow-definition
52
-
53
- OPTIONS
54
-
55
- -t, --token Bearer token
56
- --profile Use a named profile (or EPILOT_PROFILE env)
57
- -s, --server Override server base URL
58
- --json Output raw JSON
59
- -v, --verbose Verbose output
60
- --interactive Interactive mode
61
- --no-interactive
62
- --jsonata JSONata expression
19
+ epilot v0.1.0 — CLI for epilot APIs
20
+
21
+ USAGE
22
+ epilot <api> <operationId> [params...] [flags]
23
+ epilot <api> List operations for an API
24
+ epilot <api> <op> --help Show operation details
25
+
26
+ FLAGS
27
+ -t, --token <token> Bearer token for authentication
28
+ --profile <name> Use a named profile (or EPILOT_PROFILE)
29
+ -s, --server <url> Override server base URL
30
+ --json Output raw JSON (no formatting)
31
+ -v, --verbose Verbose output (show request details)
32
+ --jsonata <expr> JSONata expression to transform response
33
+ --no-interactive Disable interactive prompts
34
+
35
+ PARAMETER FLAGS
36
+ -p key=value Set a named parameter
37
+ -d '{...}' Request body JSON
38
+ -H 'Key: Value' Custom header
39
+ -i, --include Include response headers in output
63
40
 
64
41
  COMMANDS
65
-
66
- auth Manage authentication
67
- profile Manage profiles (server URLs, tokens, environments)
68
- completion Generate shell completion scripts
69
- access-token Access Token API
70
- address Address API
71
- address-suggestions Address Suggestions API
72
- ai-agents AI Agents API - OpenAPI 3.0
73
- app App API
74
- audit-logs Audit Log
75
- automation Automation API
76
- billing Billing API
77
- blueprint-manifest Blueprint Manifest API
78
- consent Consent API
79
- customer-portal Portal API
80
- dashboard Dashboard API
81
- data-management Data Management API
82
- deduplication Deduplication API
83
- design Design Builder API v2
84
- document Document API
85
- email-settings Messaging Settings API
86
- email-template Email template API
87
- entity Entity API
88
- entity-mapping Entity Mapping API
89
- environments Environments API
90
- erp-integration ERP Integration API
91
- event-catalog Event Catalog API
92
- file File API
93
- iban Iban API
94
- journey Journey API
95
- kanban Kanban API
96
- message Message API
97
- metering Metering API
98
- notes Notes API
99
- notification Notification API
100
- organization Organization API
101
- partner-directory Partner API
102
- permissions Permissions API
103
- pricing Pricing API
104
- pricing-tier Pricing Tier API
105
- purpose Purpose API
106
- sandbox Sandbox API
107
- submission Submission API
108
- targeting Targeting API
109
- template-variables Template Variables API
110
- user User API
111
- validation-rules Validation Rules API
112
- webhooks Webhooks
113
- workflow Workflows Executions
114
- workflow-definition Workflows Definitions
115
-
116
- Use epilot <command> --help for more information about a command.
42
+ auth login Authenticate with epilot (browser)
43
+ auth token Store an API token directly
44
+ auth status Show authentication status
45
+ auth logout Remove stored credentials
46
+ profile Manage named profiles
47
+ completion Generate shell completion scripts
48
+
49
+ APIs
50
+ access-token Access Token API
51
+ address Address API
52
+ address-suggestions Address Suggestions API
53
+ ai-agents AI Agents API - OpenAPI 3.0
54
+ app App API
55
+ audit-logs Audit Log
56
+ automation Automation API
57
+ billing Billing API
58
+ blueprint-manifest Blueprint Manifest API
59
+ consent Consent API
60
+ customer-portal Portal API
61
+ dashboard Dashboard API
62
+ data-management Data Management API
63
+ deduplication Deduplication API
64
+ design Design Builder API v2
65
+ document Document API
66
+ email-settings Messaging Settings API
67
+ email-template Email template API
68
+ entity Entity API
69
+ entity-mapping Entity Mapping API
70
+ environments Environments API
71
+ erp-integration ERP Integration API
72
+ event-catalog Event Catalog API
73
+ file File API
74
+ iban Iban API
75
+ journey Journey API
76
+ kanban Kanban API
77
+ message Message API
78
+ metering Metering API
79
+ notes Notes API
80
+ notification Notification API
81
+ organization Organization API
82
+ partner-directory Partner API
83
+ permissions Permissions API
84
+ pricing Pricing API
85
+ pricing-tier Pricing Tier API
86
+ purpose Purpose API
87
+ sandbox Sandbox API
88
+ submission Submission API
89
+ targeting Targeting API
90
+ template-variables Template Variables API
91
+ user User API
92
+ validation-rules Validation Rules API
93
+ webhooks Webhooks
94
+ workflow Workflows Executions
95
+ workflow-definition Workflows Definitions
96
+
97
+ EXAMPLES
98
+ $ epilot auth login
99
+ $ epilot user getMeV2
100
+ $ epilot entity getEntity contact abc123
101
+ $ epilot entity searchEntities -d '{"q":"*"}'
102
+ $ epilot entity searchEntities --jsonata 'results[0]._title'
103
+ $ echo '{"q":"*"}' | epilot entity searchEntities
104
+
105
+ Run epilot <api> to list available operations.
106
+ Run epilot <api> <operationId> --help for operation details.
117
107
  ```
118
108
  <!-- /usage-help -->
119
109
 
@@ -279,7 +269,7 @@ Provides tab completion for API names, operation IDs, and flags.
279
269
 
280
270
  ## API Reference
281
271
 
282
- Full documentation with sample calls and responses for all 46 APIs:
272
+ Full documentation with sample calls and responses for all APIs:
283
273
 
284
274
  [**docs/index.md**](./docs/index.md)
285
275
 
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-57PPARIW.js";
4
+ } from "./chunk-RJ6K624F.js";
5
5
  import "./chunk-5WUPDZ5D.js";
6
6
  import "./chunk-IST42ZNL.js";
7
- import "./chunk-RC3GCXCI.js";
7
+ import "./chunk-4VITQVW2.js";
8
8
  import "./chunk-TKZLQD2B.js";
9
9
 
10
10
  // src/commands/apis/access-token.ts
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-57PPARIW.js";
4
+ } from "./chunk-RJ6K624F.js";
5
5
  import "./chunk-5WUPDZ5D.js";
6
6
  import "./chunk-IST42ZNL.js";
7
- import "./chunk-RC3GCXCI.js";
7
+ import "./chunk-4VITQVW2.js";
8
8
  import "./chunk-TKZLQD2B.js";
9
9
 
10
10
  // src/commands/apis/address.ts
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-57PPARIW.js";
4
+ } from "./chunk-RJ6K624F.js";
5
5
  import "./chunk-5WUPDZ5D.js";
6
6
  import "./chunk-IST42ZNL.js";
7
- import "./chunk-RC3GCXCI.js";
7
+ import "./chunk-4VITQVW2.js";
8
8
  import "./chunk-TKZLQD2B.js";
9
9
 
10
10
  // src/commands/apis/address-suggestions.ts
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-57PPARIW.js";
4
+ } from "./chunk-RJ6K624F.js";
5
5
  import "./chunk-5WUPDZ5D.js";
6
6
  import "./chunk-IST42ZNL.js";
7
- import "./chunk-RC3GCXCI.js";
7
+ import "./chunk-4VITQVW2.js";
8
8
  import "./chunk-TKZLQD2B.js";
9
9
 
10
10
  // src/commands/apis/ai-agents.ts
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-57PPARIW.js";
4
+ } from "./chunk-RJ6K624F.js";
5
5
  import "./chunk-5WUPDZ5D.js";
6
6
  import "./chunk-IST42ZNL.js";
7
- import "./chunk-RC3GCXCI.js";
7
+ import "./chunk-4VITQVW2.js";
8
8
  import "./chunk-TKZLQD2B.js";
9
9
 
10
10
  // src/commands/apis/app.ts
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-57PPARIW.js";
4
+ } from "./chunk-RJ6K624F.js";
5
5
  import "./chunk-5WUPDZ5D.js";
6
6
  import "./chunk-IST42ZNL.js";
7
- import "./chunk-RC3GCXCI.js";
7
+ import "./chunk-4VITQVW2.js";
8
8
  import "./chunk-TKZLQD2B.js";
9
9
 
10
10
  // src/commands/apis/audit-logs.ts
@@ -21,7 +21,7 @@ var auth_default = defineCommand({
21
21
  description: "Manage authentication"
22
22
  },
23
23
  subCommands: {
24
- login: () => import("./auth-login-2ZIXM47J.js").then((m) => m.default),
24
+ login: () => import("./auth-login-BV4QSS43.js").then((m) => m.default),
25
25
  token: () => import("./auth-token-OS4BEEVZ.js").then((m) => m.default),
26
26
  logout: defineCommand({
27
27
  meta: { name: "logout", description: "Remove stored credentials" },
@@ -66,12 +66,15 @@ var browserLogin = async (profileName) => {
66
66
  const userId = url.searchParams.get("user_id");
67
67
  const name = url.searchParams.get("name");
68
68
  if (token) {
69
- saveCredentials({
70
- token,
71
- org_id: orgId ?? void 0,
72
- user_id: userId ?? void 0,
73
- name: name ?? void 0
74
- }, profileName);
69
+ saveCredentials(
70
+ {
71
+ token,
72
+ org_id: orgId ?? void 0,
73
+ user_id: userId ?? void 0,
74
+ name: name ?? void 0
75
+ },
76
+ profileName
77
+ );
75
78
  res.writeHead(200, { "Content-Type": "text/html" });
76
79
  res.end("<html><body><h1>Login successful!</h1><p>You can close this tab.</p></body></html>");
77
80
  done(token);
@@ -105,13 +108,11 @@ ${DIM}Login URL: ${loginUrl}${RESET}
105
108
  process.stdout.write(`Browser opened. Waiting for authentication...
106
109
  `);
107
110
  } catch {
108
- process.stdout.write(
109
- `Could not open browser. Please visit this URL manually:
111
+ process.stdout.write(`Could not open browser. Please visit this URL manually:
110
112
 
111
113
  ${loginUrl}
112
114
 
113
- `
114
- );
115
+ `);
115
116
  }
116
117
  if (process.stdin.isTTY) {
117
118
  process.stdout.write(`
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-57PPARIW.js";
4
+ } from "./chunk-RJ6K624F.js";
5
5
  import "./chunk-5WUPDZ5D.js";
6
6
  import "./chunk-IST42ZNL.js";
7
- import "./chunk-RC3GCXCI.js";
7
+ import "./chunk-4VITQVW2.js";
8
8
  import "./chunk-TKZLQD2B.js";
9
9
 
10
10
  // src/commands/apis/automation.ts
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-57PPARIW.js";
4
+ } from "./chunk-RJ6K624F.js";
5
5
  import "./chunk-5WUPDZ5D.js";
6
6
  import "./chunk-IST42ZNL.js";
7
- import "./chunk-RC3GCXCI.js";
7
+ import "./chunk-4VITQVW2.js";
8
8
  import "./chunk-TKZLQD2B.js";
9
9
 
10
10
  // src/commands/apis/billing.ts
@@ -24,55 +24,55 @@ var main = defineCommand({
24
24
  jsonata: { type: "string", description: "JSONata expression" }
25
25
  },
26
26
  subCommands: {
27
- auth: () => import("../auth-CCBTXH5U.js").then((m) => m.default),
27
+ auth: () => import("../auth-U5HVFUZC.js").then((m) => m.default),
28
28
  profile: () => import("../profile-5Q5YARG7.js").then((m) => m.default),
29
29
  completion: () => import("../completion-GRQM2FJQ.js").then((m) => m.default),
30
- "access-token": () => import("../access-token-OG5AR7UB.js").then((m) => m.default),
31
- "address": () => import("../address-QUSMK5GV.js").then((m) => m.default),
32
- "address-suggestions": () => import("../address-suggestions-E5SQNUS5.js").then((m) => m.default),
33
- "ai-agents": () => import("../ai-agents-PM42SJY3.js").then((m) => m.default),
34
- "app": () => import("../app-YTM3XAJL.js").then((m) => m.default),
35
- "audit-logs": () => import("../audit-logs-NXP7GFKX.js").then((m) => m.default),
36
- "automation": () => import("../automation-TDJASTEV.js").then((m) => m.default),
37
- "billing": () => import("../billing-M4MRBLEK.js").then((m) => m.default),
38
- "blueprint-manifest": () => import("../blueprint-manifest-NQL7NRMV.js").then((m) => m.default),
39
- "consent": () => import("../consent-KQ7MJAS6.js").then((m) => m.default),
40
- "customer-portal": () => import("../customer-portal-VUVSKWAQ.js").then((m) => m.default),
41
- "dashboard": () => import("../dashboard-GVR4XNGR.js").then((m) => m.default),
42
- "data-management": () => import("../data-management-2RD3DLOS.js").then((m) => m.default),
43
- "deduplication": () => import("../deduplication-PY77EINR.js").then((m) => m.default),
44
- "design": () => import("../design-M4FP2K5R.js").then((m) => m.default),
45
- "document": () => import("../document-P4QA7LEZ.js").then((m) => m.default),
46
- "email-settings": () => import("../email-settings-7HGGRCCM.js").then((m) => m.default),
47
- "email-template": () => import("../email-template-3HXQI4CH.js").then((m) => m.default),
48
- "entity": () => import("../entity-XUESZBPJ.js").then((m) => m.default),
49
- "entity-mapping": () => import("../entity-mapping-JBKWWBH2.js").then((m) => m.default),
50
- "environments": () => import("../environments-KKOS7ONY.js").then((m) => m.default),
51
- "erp-integration": () => import("../erp-integration-YTOWHCAW.js").then((m) => m.default),
52
- "event-catalog": () => import("../event-catalog-UKLZUGC4.js").then((m) => m.default),
53
- "file": () => import("../file-IFZNZ547.js").then((m) => m.default),
54
- "iban": () => import("../iban-X2IW2NWU.js").then((m) => m.default),
55
- "journey": () => import("../journey-JU6X2KMX.js").then((m) => m.default),
56
- "kanban": () => import("../kanban-VHUU44PM.js").then((m) => m.default),
57
- "message": () => import("../message-AOUWJ4YX.js").then((m) => m.default),
58
- "metering": () => import("../metering-RDS3XBD5.js").then((m) => m.default),
59
- "notes": () => import("../notes-WE2UC75B.js").then((m) => m.default),
60
- "notification": () => import("../notification-FKFNBHYZ.js").then((m) => m.default),
61
- "organization": () => import("../organization-LMNFF6BX.js").then((m) => m.default),
62
- "partner-directory": () => import("../partner-directory-IIZVQDXJ.js").then((m) => m.default),
63
- "permissions": () => import("../permissions-AYCMVM7Y.js").then((m) => m.default),
64
- "pricing": () => import("../pricing-PS26FWBS.js").then((m) => m.default),
65
- "pricing-tier": () => import("../pricing-tier-FBXWQ6T3.js").then((m) => m.default),
66
- "purpose": () => import("../purpose-HE4E4SVU.js").then((m) => m.default),
67
- "sandbox": () => import("../sandbox-Z7BU4UAD.js").then((m) => m.default),
68
- "submission": () => import("../submission-MWVDF2ZB.js").then((m) => m.default),
69
- "targeting": () => import("../targeting-7NM5GDJ6.js").then((m) => m.default),
70
- "template-variables": () => import("../template-variables-AJAR7PAV.js").then((m) => m.default),
71
- "user": () => import("../user-A26XQXG3.js").then((m) => m.default),
72
- "validation-rules": () => import("../validation-rules-VZTISEG2.js").then((m) => m.default),
73
- "webhooks": () => import("../webhooks-RXH67WZ3.js").then((m) => m.default),
74
- "workflow": () => import("../workflow-G4FUUGZQ.js").then((m) => m.default),
75
- "workflow-definition": () => import("../workflow-definition-LJYLMMGD.js").then((m) => m.default)
30
+ "access-token": () => import("../access-token-YRXYUMJO.js").then((m) => m.default),
31
+ "address": () => import("../address-IL2PJHFH.js").then((m) => m.default),
32
+ "address-suggestions": () => import("../address-suggestions-6BZAEYFM.js").then((m) => m.default),
33
+ "ai-agents": () => import("../ai-agents-ZDLCFXPH.js").then((m) => m.default),
34
+ "app": () => import("../app-M34UBBGM.js").then((m) => m.default),
35
+ "audit-logs": () => import("../audit-logs-2K2MCJLZ.js").then((m) => m.default),
36
+ "automation": () => import("../automation-PDAXGSKU.js").then((m) => m.default),
37
+ "billing": () => import("../billing-6MJDEPCJ.js").then((m) => m.default),
38
+ "blueprint-manifest": () => import("../blueprint-manifest-7BGWB5ZU.js").then((m) => m.default),
39
+ "consent": () => import("../consent-BESBYOTH.js").then((m) => m.default),
40
+ "customer-portal": () => import("../customer-portal-S4JG74RI.js").then((m) => m.default),
41
+ "dashboard": () => import("../dashboard-3CIU4PJI.js").then((m) => m.default),
42
+ "data-management": () => import("../data-management-T2YQOUSS.js").then((m) => m.default),
43
+ "deduplication": () => import("../deduplication-ZNOF5EIN.js").then((m) => m.default),
44
+ "design": () => import("../design-64KBRDAP.js").then((m) => m.default),
45
+ "document": () => import("../document-ERJ35ISV.js").then((m) => m.default),
46
+ "email-settings": () => import("../email-settings-UWGUKF3J.js").then((m) => m.default),
47
+ "email-template": () => import("../email-template-AL34THIK.js").then((m) => m.default),
48
+ "entity": () => import("../entity-QRKEACLJ.js").then((m) => m.default),
49
+ "entity-mapping": () => import("../entity-mapping-XKWAEZBK.js").then((m) => m.default),
50
+ "environments": () => import("../environments-3OLHJCOH.js").then((m) => m.default),
51
+ "erp-integration": () => import("../erp-integration-DY53M3X7.js").then((m) => m.default),
52
+ "event-catalog": () => import("../event-catalog-4ZWJVKGK.js").then((m) => m.default),
53
+ "file": () => import("../file-CZNPJDKH.js").then((m) => m.default),
54
+ "iban": () => import("../iban-7W4O6GPS.js").then((m) => m.default),
55
+ "journey": () => import("../journey-E22BHARF.js").then((m) => m.default),
56
+ "kanban": () => import("../kanban-GQKDGTF7.js").then((m) => m.default),
57
+ "message": () => import("../message-RYVTUE3P.js").then((m) => m.default),
58
+ "metering": () => import("../metering-BP5CJUS5.js").then((m) => m.default),
59
+ "notes": () => import("../notes-5FAN67YN.js").then((m) => m.default),
60
+ "notification": () => import("../notification-GI2UZDQF.js").then((m) => m.default),
61
+ "organization": () => import("../organization-QHDUJL7Z.js").then((m) => m.default),
62
+ "partner-directory": () => import("../partner-directory-DXT3PSEP.js").then((m) => m.default),
63
+ "permissions": () => import("../permissions-VCWKZ46O.js").then((m) => m.default),
64
+ "pricing": () => import("../pricing-OM7AIMCZ.js").then((m) => m.default),
65
+ "pricing-tier": () => import("../pricing-tier-2OCBV2KQ.js").then((m) => m.default),
66
+ "purpose": () => import("../purpose-XQF47URT.js").then((m) => m.default),
67
+ "sandbox": () => import("../sandbox-DALZFBRO.js").then((m) => m.default),
68
+ "submission": () => import("../submission-RDR6CTL6.js").then((m) => m.default),
69
+ "targeting": () => import("../targeting-PVEHMO4M.js").then((m) => m.default),
70
+ "template-variables": () => import("../template-variables-XGW3OIBX.js").then((m) => m.default),
71
+ "user": () => import("../user-HBVLGFZ4.js").then((m) => m.default),
72
+ "validation-rules": () => import("../validation-rules-LXNG5E2D.js").then((m) => m.default),
73
+ "webhooks": () => import("../webhooks-REJWKLLU.js").then((m) => m.default),
74
+ "workflow": () => import("../workflow-X6FXHKMD.js").then((m) => m.default),
75
+ "workflow-definition": () => import("../workflow-definition-ANJBZN3H.js").then((m) => m.default)
76
76
  }
77
77
  });
78
78
 
@@ -85,6 +85,10 @@ if (completionsIdx >= 0) {
85
85
  process.exit(0);
86
86
  }
87
87
  var hasHelp = args.includes("--help") || args.includes("-h");
88
+ if (hasHelp && args.filter((a) => !a.startsWith("-")).length === 0) {
89
+ printRootHelp();
90
+ process.exit(0);
91
+ }
88
92
  if (hasHelp && args.length >= 2) {
89
93
  const apiArg = args.find((a) => !a.startsWith("-"));
90
94
  const isApi = apiArg && API_LIST.some((api) => api.kebabName === apiArg);
@@ -102,3 +106,102 @@ if (hasHelp && args.length >= 2) {
102
106
  }
103
107
  }
104
108
  runMain(main);
109
+ function printRootHelp() {
110
+ const DIM = "\x1B[2m";
111
+ const BOLD = "\x1B[1m";
112
+ const CYAN = "\x1B[36m";
113
+ const GREEN = "\x1B[32m";
114
+ const YELLOW = "\x1B[33m";
115
+ const R = "\x1B[0m";
116
+ const w = (s) => process.stdout.write(s);
117
+ w(`${BOLD}epilot${R} ${DIM}v0.1.0${R} \u2014 CLI for epilot APIs
118
+ `);
119
+ w(`
120
+ `);
121
+ w(`${BOLD}USAGE${R}
122
+ `);
123
+ w(` ${CYAN}epilot${R} <api> <operationId> [params...] [flags]
124
+ `);
125
+ w(` ${CYAN}epilot${R} <api> ${DIM}List operations for an API${R}
126
+ `);
127
+ w(` ${CYAN}epilot${R} <api> <op> --help ${DIM}Show operation details${R}
128
+ `);
129
+ w(`
130
+ `);
131
+ w(`${BOLD}FLAGS${R}
132
+ `);
133
+ w(` ${GREEN}-t, --token${R} <token> Bearer token for authentication
134
+ `);
135
+ w(` ${GREEN}--profile${R} <name> Use a named profile ${DIM}(or EPILOT_PROFILE)${R}
136
+ `);
137
+ w(` ${GREEN}-s, --server${R} <url> Override server base URL
138
+ `);
139
+ w(` ${GREEN}--json${R} Output raw JSON (no formatting)
140
+ `);
141
+ w(` ${GREEN}-v, --verbose${R} Verbose output (show request details)
142
+ `);
143
+ w(` ${GREEN}--jsonata${R} <expr> JSONata expression to transform response
144
+ `);
145
+ w(` ${GREEN}--no-interactive${R} Disable interactive prompts
146
+ `);
147
+ w(`
148
+ `);
149
+ w(`${BOLD}PARAMETER FLAGS${R}
150
+ `);
151
+ w(` ${GREEN}-p${R} key=value Set a named parameter
152
+ `);
153
+ w(` ${GREEN}-d${R} '{...}' Request body JSON
154
+ `);
155
+ w(` ${GREEN}-H${R} 'Key: Value' Custom header
156
+ `);
157
+ w(` ${GREEN}-i, --include${R} Include response headers in output
158
+ `);
159
+ w(`
160
+ `);
161
+ w(`${BOLD}COMMANDS${R}
162
+ `);
163
+ w(` ${CYAN}auth login${R} Authenticate with epilot (browser)
164
+ `);
165
+ w(` ${CYAN}auth token${R} Store an API token directly
166
+ `);
167
+ w(` ${CYAN}auth status${R} Show authentication status
168
+ `);
169
+ w(` ${CYAN}auth logout${R} Remove stored credentials
170
+ `);
171
+ w(` ${CYAN}profile${R} Manage named profiles
172
+ `);
173
+ w(` ${CYAN}completion${R} Generate shell completion scripts
174
+ `);
175
+ w(`
176
+ `);
177
+ w(`${BOLD}APIs${R}
178
+ `);
179
+ const maxName = Math.max(...API_LIST.map((a) => a.kebabName.length));
180
+ for (const api of API_LIST) {
181
+ const padded = api.kebabName.padEnd(maxName + 2);
182
+ w(` ${CYAN}${padded}${R}${DIM}${api.title}${R}
183
+ `);
184
+ }
185
+ w(`
186
+ `);
187
+ w(`${BOLD}EXAMPLES${R}
188
+ `);
189
+ w(` ${YELLOW}$${R} epilot auth login
190
+ `);
191
+ w(` ${YELLOW}$${R} epilot user getMeV2
192
+ `);
193
+ w(` ${YELLOW}$${R} epilot entity getEntity contact abc123
194
+ `);
195
+ w(` ${YELLOW}$${R} epilot entity searchEntities -d '{"q":"*"}'
196
+ `);
197
+ w(` ${YELLOW}$${R} epilot entity searchEntities --jsonata 'results[0]._title'
198
+ `);
199
+ w(` ${YELLOW}$${R} echo '{"q":"*"}' | epilot entity searchEntities
200
+ `);
201
+ w(`
202
+ `);
203
+ w(`Run ${CYAN}epilot <api>${R} to list available operations.
204
+ `);
205
+ w(`Run ${CYAN}epilot <api> <operationId> --help${R} for operation details.
206
+ `);
207
+ }
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-57PPARIW.js";
4
+ } from "./chunk-RJ6K624F.js";
5
5
  import "./chunk-5WUPDZ5D.js";
6
6
  import "./chunk-IST42ZNL.js";
7
- import "./chunk-RC3GCXCI.js";
7
+ import "./chunk-4VITQVW2.js";
8
8
  import "./chunk-TKZLQD2B.js";
9
9
 
10
10
  // src/commands/apis/blueprint-manifest.ts
@@ -57,10 +57,8 @@ var printOperationsTable = (apiName, operations) => {
57
57
  const method = op.method.toUpperCase().padEnd(7);
58
58
  const path = op.path;
59
59
  const summary = op.summary ? ` ${DIM}${op.summary}${RESET}` : "";
60
- process.stdout.write(
61
- ` ${color}${method}${RESET} ${path.padEnd(50)} ${op.operationId}${summary}
62
- `
63
- );
60
+ process.stdout.write(` ${color}${method}${RESET} ${path.padEnd(50)} ${op.operationId}${summary}
61
+ `);
64
62
  }
65
63
  process.stdout.write(`
66
64
  Run \`epilot ${apiName} <operationId> --help\` for details.