@epilot/cli 0.1.6 → 0.1.8

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 (59) hide show
  1. package/README.md +3 -2
  2. package/dist/{access-token-BDNU3ZFC.js → access-token-ZDNEKP3G.js} +7 -4
  3. package/dist/{address-ZCYZYRP4.js → address-2SW3VMN3.js} +7 -4
  4. package/dist/{address-suggestions-RP5N7NVQ.js → address-suggestions-26ZRCECN.js} +7 -4
  5. package/dist/{ai-agents-PLUGVZTI.js → ai-agents-PDOHJ7VB.js} +7 -4
  6. package/dist/{app-HZECIN6N.js → app-XJNMGPZO.js} +7 -4
  7. package/dist/{audit-logs-JWKGNHPP.js → audit-logs-L2OCFRGO.js} +7 -4
  8. package/dist/{auth-JRW6QLKR.js → auth-AAF6Z5WZ.js} +3 -3
  9. package/dist/{auth-login-7B4GCQWY.js → auth-login-AJ6F5GPQ.js} +12 -11
  10. package/dist/{auth-token-VSNRXUBI.js → auth-token-J4FI2RMT.js} +1 -1
  11. package/dist/{automation-73BC4PYK.js → automation-UB7OFM4Q.js} +7 -4
  12. package/dist/{billing-GQDSK4H2.js → billing-ZXHTBUAP.js} +7 -4
  13. package/dist/bin/epilot.js +65 -54
  14. package/dist/{blueprint-manifest-4M7DNWYE.js → blueprint-manifest-RMKS5EQA.js} +7 -4
  15. package/dist/{chunk-6RBLA5YE.js → chunk-7ZQ666ZQ.js} +44 -1
  16. package/dist/{chunk-BJOXXFMA.js → chunk-HWUVFZIB.js} +172 -56
  17. package/dist/{chunk-HN4QDJOJ.js → chunk-IOLKUHUB.js} +10 -10
  18. package/dist/{completion-RCVUCEMM.js → completion-EKFXGPNK.js} +1 -1
  19. package/dist/{consent-OJBGOI54.js → consent-AQ2DKCDR.js} +7 -4
  20. package/dist/{customer-portal-BDKNWKHA.js → customer-portal-CGP4ZX4R.js} +7 -4
  21. package/dist/{dashboard-IAEU3JFY.js → dashboard-IDWUGNZW.js} +7 -4
  22. package/dist/{data-management-UEDSGAKB.js → data-management-U7ZRAGLQ.js} +7 -4
  23. package/dist/{deduplication-JJS3TOJ2.js → deduplication-QQUSPXAF.js} +7 -4
  24. package/dist/{design-WKSDZFBJ.js → design-PQ2FUC2D.js} +7 -4
  25. package/dist/{document-P5OL4NYY.js → document-Y76RC3MP.js} +7 -4
  26. package/dist/{email-settings-743JHCKS.js → email-settings-XM3ADDAU.js} +7 -4
  27. package/dist/{email-template-MW4IVDPM.js → email-template-72P5GBEO.js} +7 -4
  28. package/dist/{entity-K5X6FWJI.js → entity-XHM54EGF.js} +7 -4
  29. package/dist/{entity-mapping-QBJ2I2VR.js → entity-mapping-L5QITA2E.js} +7 -4
  30. package/dist/{environments-VUR7ME42.js → environments-VW3SQQ6D.js} +7 -4
  31. package/dist/{erp-integration-A2KAIXUQ.js → erp-integration-XCFKHGOU.js} +7 -4
  32. package/dist/{event-catalog-6YEG5CEM.js → event-catalog-XZ233C2K.js} +7 -4
  33. package/dist/{file-J6PHZ447.js → file-TYBZ6WUC.js} +7 -4
  34. package/dist/{iban-DJSUCRU6.js → iban-IEGS2B6M.js} +7 -4
  35. package/dist/{interactive-XXYFAJEI.js → interactive-LSY5SADM.js} +4 -4
  36. package/dist/{journey-QJZKU3PZ.js → journey-HY3MNAHS.js} +7 -4
  37. package/dist/{kanban-ZF4IIG7Q.js → kanban-7RLHAPAB.js} +7 -4
  38. package/dist/{message-WH4GD5SC.js → message-K7E26IZC.js} +7 -4
  39. package/dist/{metering-FCWUZ2TC.js → metering-2OGVZIBR.js} +7 -4
  40. package/dist/{notes-KKVPGK7K.js → notes-KQVLCMGP.js} +7 -4
  41. package/dist/{notification-4MVAZTRP.js → notification-BFBWDPZV.js} +7 -4
  42. package/dist/{organization-2UT2KFMB.js → organization-LI7FM5BQ.js} +7 -4
  43. package/dist/{partner-directory-SUNW4XN7.js → partner-directory-XPAISFGT.js} +7 -4
  44. package/dist/{permissions-36VGB4BQ.js → permissions-R5A4XMTY.js} +7 -4
  45. package/dist/{pricing-RCNFEEHO.js → pricing-Y4T6VKYN.js} +7 -4
  46. package/dist/{pricing-tier-MNCLLXD5.js → pricing-tier-HWKSYSVR.js} +7 -4
  47. package/dist/{profile-MZ3VK7PO.js → profile-EK4HSQ57.js} +1 -1
  48. package/dist/{purpose-3JN63WTQ.js → purpose-5AUHF3IO.js} +7 -4
  49. package/dist/{sandbox-C676YDRV.js → sandbox-QSGFCXMZ.js} +7 -4
  50. package/dist/{submission-5XTNMMCK.js → submission-Z73M4XKQ.js} +7 -4
  51. package/dist/{targeting-C52KV6IW.js → targeting-U5YIFO6Q.js} +7 -4
  52. package/dist/{template-variables-5SKJEJF4.js → template-variables-AV4T4OL2.js} +7 -4
  53. package/dist/{upgrade-GSUVIXOB.js → upgrade-2SY2XG5S.js} +2 -2
  54. package/dist/{user-DYAR3N6L.js → user-S7XP7EFG.js} +7 -4
  55. package/dist/{validation-rules-LDAOUPOO.js → validation-rules-MJRLZCHT.js} +7 -4
  56. package/dist/{webhooks-MT2P33A2.js → webhooks-X2VR5SVC.js} +7 -4
  57. package/dist/{workflow-YGWGE6L4.js → workflow-EGOFLIKI.js} +7 -4
  58. package/dist/{workflow-definition-JG54ZWGL.js → workflow-definition-65ZR33O5.js} +7 -4
  59. package/package.json +1 -1
package/README.md CHANGED
@@ -9,14 +9,14 @@ CLI for epilot APIs. Call any epilot API operation directly from the command lin
9
9
  npx epilot --help
10
10
 
11
11
  # Or install globally
12
- npm install -g @epilot/cli # scoped package (same thing)
12
+ npm install -g @epilot/cli
13
13
  ```
14
14
 
15
15
  ## Usage
16
16
 
17
17
  <!-- usage-help -->
18
18
  ```
19
- epilot v0.1.6 — CLI for epilot APIs
19
+ epilot v0.1.8 — CLI for epilot APIs
20
20
 
21
21
  USAGE
22
22
  epilot <api> <operationId> [params...] [flags]
@@ -30,6 +30,7 @@ FLAGS
30
30
  --json Output raw JSON (no formatting)
31
31
  -v, --verbose Verbose output (show request details)
32
32
  --jsonata <expr> JSONata expression to transform response
33
+ --guided Prompt for all parameters interactively
33
34
  --no-interactive Disable interactive prompts
34
35
 
35
36
  PARAMETER FLAGS
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-BJOXXFMA.js";
4
+ } from "./chunk-HWUVFZIB.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-HN4QDJOJ.js";
8
- import "./chunk-6RBLA5YE.js";
7
+ import "./chunk-IOLKUHUB.js";
8
+ import "./chunk-7ZQ666ZQ.js";
9
9
 
10
10
  // src/commands/apis/access-token.ts
11
11
  import { defineCommand } from "citty";
@@ -23,9 +23,11 @@ var access_token_default = defineCommand({
23
23
  token: { type: "string", alias: "t", description: "Bearer token" },
24
24
  json: { type: "boolean", description: "Output raw JSON" },
25
25
  verbose: { type: "boolean", alias: "v", description: "Verbose output" },
26
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
26
27
  interactive: { type: "boolean", description: "Interactive mode" },
27
28
  jsonata: { type: "string", description: "JSONata expression to transform response" },
28
- _ophelp: { type: "boolean", description: "Show operation help", required: false }
29
+ _ophelp: { type: "boolean", description: "Show operation help", required: false },
30
+ _apihelp: { type: "boolean", description: "Show API help", required: false }
29
31
  },
30
32
  run: ({ args, rawArgs }) => {
31
33
  const positionalArgs = [];
@@ -42,6 +44,7 @@ var access_token_default = defineCommand({
42
44
  return callApi("access-token", {
43
45
  ...args,
44
46
  help: !!args._ophelp,
47
+ _apihelp: !!args._apihelp,
45
48
  _args: positionalArgs
46
49
  });
47
50
  }
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-BJOXXFMA.js";
4
+ } from "./chunk-HWUVFZIB.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-HN4QDJOJ.js";
8
- import "./chunk-6RBLA5YE.js";
7
+ import "./chunk-IOLKUHUB.js";
8
+ import "./chunk-7ZQ666ZQ.js";
9
9
 
10
10
  // src/commands/apis/address.ts
11
11
  import { defineCommand } from "citty";
@@ -23,9 +23,11 @@ var address_default = defineCommand({
23
23
  token: { type: "string", alias: "t", description: "Bearer token" },
24
24
  json: { type: "boolean", description: "Output raw JSON" },
25
25
  verbose: { type: "boolean", alias: "v", description: "Verbose output" },
26
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
26
27
  interactive: { type: "boolean", description: "Interactive mode" },
27
28
  jsonata: { type: "string", description: "JSONata expression to transform response" },
28
- _ophelp: { type: "boolean", description: "Show operation help", required: false }
29
+ _ophelp: { type: "boolean", description: "Show operation help", required: false },
30
+ _apihelp: { type: "boolean", description: "Show API help", required: false }
29
31
  },
30
32
  run: ({ args, rawArgs }) => {
31
33
  const positionalArgs = [];
@@ -42,6 +44,7 @@ var address_default = defineCommand({
42
44
  return callApi("address", {
43
45
  ...args,
44
46
  help: !!args._ophelp,
47
+ _apihelp: !!args._apihelp,
45
48
  _args: positionalArgs
46
49
  });
47
50
  }
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-BJOXXFMA.js";
4
+ } from "./chunk-HWUVFZIB.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-HN4QDJOJ.js";
8
- import "./chunk-6RBLA5YE.js";
7
+ import "./chunk-IOLKUHUB.js";
8
+ import "./chunk-7ZQ666ZQ.js";
9
9
 
10
10
  // src/commands/apis/address-suggestions.ts
11
11
  import { defineCommand } from "citty";
@@ -23,9 +23,11 @@ var address_suggestions_default = defineCommand({
23
23
  token: { type: "string", alias: "t", description: "Bearer token" },
24
24
  json: { type: "boolean", description: "Output raw JSON" },
25
25
  verbose: { type: "boolean", alias: "v", description: "Verbose output" },
26
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
26
27
  interactive: { type: "boolean", description: "Interactive mode" },
27
28
  jsonata: { type: "string", description: "JSONata expression to transform response" },
28
- _ophelp: { type: "boolean", description: "Show operation help", required: false }
29
+ _ophelp: { type: "boolean", description: "Show operation help", required: false },
30
+ _apihelp: { type: "boolean", description: "Show API help", required: false }
29
31
  },
30
32
  run: ({ args, rawArgs }) => {
31
33
  const positionalArgs = [];
@@ -42,6 +44,7 @@ var address_suggestions_default = defineCommand({
42
44
  return callApi("address-suggestions", {
43
45
  ...args,
44
46
  help: !!args._ophelp,
47
+ _apihelp: !!args._apihelp,
45
48
  _args: positionalArgs
46
49
  });
47
50
  }
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-BJOXXFMA.js";
4
+ } from "./chunk-HWUVFZIB.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-HN4QDJOJ.js";
8
- import "./chunk-6RBLA5YE.js";
7
+ import "./chunk-IOLKUHUB.js";
8
+ import "./chunk-7ZQ666ZQ.js";
9
9
 
10
10
  // src/commands/apis/ai-agents.ts
11
11
  import { defineCommand } from "citty";
@@ -23,9 +23,11 @@ var ai_agents_default = defineCommand({
23
23
  token: { type: "string", alias: "t", description: "Bearer token" },
24
24
  json: { type: "boolean", description: "Output raw JSON" },
25
25
  verbose: { type: "boolean", alias: "v", description: "Verbose output" },
26
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
26
27
  interactive: { type: "boolean", description: "Interactive mode" },
27
28
  jsonata: { type: "string", description: "JSONata expression to transform response" },
28
- _ophelp: { type: "boolean", description: "Show operation help", required: false }
29
+ _ophelp: { type: "boolean", description: "Show operation help", required: false },
30
+ _apihelp: { type: "boolean", description: "Show API help", required: false }
29
31
  },
30
32
  run: ({ args, rawArgs }) => {
31
33
  const positionalArgs = [];
@@ -42,6 +44,7 @@ var ai_agents_default = defineCommand({
42
44
  return callApi("ai-agents", {
43
45
  ...args,
44
46
  help: !!args._ophelp,
47
+ _apihelp: !!args._apihelp,
45
48
  _args: positionalArgs
46
49
  });
47
50
  }
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-BJOXXFMA.js";
4
+ } from "./chunk-HWUVFZIB.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-HN4QDJOJ.js";
8
- import "./chunk-6RBLA5YE.js";
7
+ import "./chunk-IOLKUHUB.js";
8
+ import "./chunk-7ZQ666ZQ.js";
9
9
 
10
10
  // src/commands/apis/app.ts
11
11
  import { defineCommand } from "citty";
@@ -23,9 +23,11 @@ var app_default = defineCommand({
23
23
  token: { type: "string", alias: "t", description: "Bearer token" },
24
24
  json: { type: "boolean", description: "Output raw JSON" },
25
25
  verbose: { type: "boolean", alias: "v", description: "Verbose output" },
26
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
26
27
  interactive: { type: "boolean", description: "Interactive mode" },
27
28
  jsonata: { type: "string", description: "JSONata expression to transform response" },
28
- _ophelp: { type: "boolean", description: "Show operation help", required: false }
29
+ _ophelp: { type: "boolean", description: "Show operation help", required: false },
30
+ _apihelp: { type: "boolean", description: "Show API help", required: false }
29
31
  },
30
32
  run: ({ args, rawArgs }) => {
31
33
  const positionalArgs = [];
@@ -42,6 +44,7 @@ var app_default = defineCommand({
42
44
  return callApi("app", {
43
45
  ...args,
44
46
  help: !!args._ophelp,
47
+ _apihelp: !!args._apihelp,
45
48
  _args: positionalArgs
46
49
  });
47
50
  }
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-BJOXXFMA.js";
4
+ } from "./chunk-HWUVFZIB.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-HN4QDJOJ.js";
8
- import "./chunk-6RBLA5YE.js";
7
+ import "./chunk-IOLKUHUB.js";
8
+ import "./chunk-7ZQ666ZQ.js";
9
9
 
10
10
  // src/commands/apis/audit-logs.ts
11
11
  import { defineCommand } from "citty";
@@ -23,9 +23,11 @@ var audit_logs_default = defineCommand({
23
23
  token: { type: "string", alias: "t", description: "Bearer token" },
24
24
  json: { type: "boolean", description: "Output raw JSON" },
25
25
  verbose: { type: "boolean", alias: "v", description: "Verbose output" },
26
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
26
27
  interactive: { type: "boolean", description: "Interactive mode" },
27
28
  jsonata: { type: "string", description: "JSONata expression to transform response" },
28
- _ophelp: { type: "boolean", description: "Show operation help", required: false }
29
+ _ophelp: { type: "boolean", description: "Show operation help", required: false },
30
+ _apihelp: { type: "boolean", description: "Show API help", required: false }
29
31
  },
30
32
  run: ({ args, rawArgs }) => {
31
33
  const positionalArgs = [];
@@ -42,6 +44,7 @@ var audit_logs_default = defineCommand({
42
44
  return callApi("audit-logs", {
43
45
  ...args,
44
46
  help: !!args._ophelp,
47
+ _apihelp: !!args._apihelp,
45
48
  _args: positionalArgs
46
49
  });
47
50
  }
@@ -11,7 +11,7 @@ import {
11
11
  RED,
12
12
  RESET,
13
13
  YELLOW
14
- } from "./chunk-6RBLA5YE.js";
14
+ } from "./chunk-7ZQ666ZQ.js";
15
15
 
16
16
  // src/commands/auth.ts
17
17
  import { defineCommand } from "citty";
@@ -21,8 +21,8 @@ var auth_default = defineCommand({
21
21
  description: "Manage authentication"
22
22
  },
23
23
  subCommands: {
24
- login: () => import("./auth-login-7B4GCQWY.js").then((m) => m.default),
25
- token: () => import("./auth-token-VSNRXUBI.js").then((m) => m.default),
24
+ login: () => import("./auth-login-AJ6F5GPQ.js").then((m) => m.default),
25
+ token: () => import("./auth-token-J4FI2RMT.js").then((m) => m.default),
26
26
  logout: defineCommand({
27
27
  meta: { name: "logout", description: "Remove stored credentials" },
28
28
  run: () => {
@@ -11,7 +11,7 @@ import {
11
11
  RED,
12
12
  RESET,
13
13
  YELLOW
14
- } from "./chunk-6RBLA5YE.js";
14
+ } from "./chunk-7ZQ666ZQ.js";
15
15
 
16
16
  // src/commands/auth-login.ts
17
17
  import { defineCommand } from "citty";
@@ -84,6 +84,7 @@ ${BOLD}epilot CLI Login${RESET}${suffix}
84
84
  settled = true;
85
85
  clearTimeout(timeoutId);
86
86
  tokenPromptController?.abort();
87
+ server.closeAllConnections();
87
88
  server.close();
88
89
  resolve(token);
89
90
  };
@@ -112,6 +113,16 @@ ${DIM}Login URL: ${loginUrl}${RESET}
112
113
 
113
114
  `);
114
115
  }
116
+ timeoutId = setTimeout(
117
+ () => {
118
+ process.stderr.write(`
119
+ ${RED}Login timed out after 5 minutes.${RESET}
120
+ `);
121
+ done(null);
122
+ },
123
+ 5 * 60 * 1e3
124
+ );
125
+ timeoutId.unref();
115
126
  process.stdout.write(`
116
127
  ${DIM}Or paste a token manually:${RESET}
117
128
  `);
@@ -128,16 +139,6 @@ ${DIM}Or paste a token manually:${RESET}
128
139
  }
129
140
  } catch {
130
141
  }
131
- timeoutId = setTimeout(
132
- () => {
133
- process.stderr.write(`
134
- ${RED}Login timed out after 5 minutes.${RESET}
135
- `);
136
- done(null);
137
- },
138
- 5 * 60 * 1e3
139
- );
140
- timeoutId.unref();
141
142
  };
142
143
  const server = createServer((req, res) => {
143
144
  const url = new URL(req.url, "http://localhost");
@@ -8,7 +8,7 @@ import {
8
8
  GREEN,
9
9
  RED,
10
10
  RESET
11
- } from "./chunk-6RBLA5YE.js";
11
+ } from "./chunk-7ZQ666ZQ.js";
12
12
 
13
13
  // src/commands/auth-token.ts
14
14
  import { defineCommand } from "citty";
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-BJOXXFMA.js";
4
+ } from "./chunk-HWUVFZIB.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-HN4QDJOJ.js";
8
- import "./chunk-6RBLA5YE.js";
7
+ import "./chunk-IOLKUHUB.js";
8
+ import "./chunk-7ZQ666ZQ.js";
9
9
 
10
10
  // src/commands/apis/automation.ts
11
11
  import { defineCommand } from "citty";
@@ -23,9 +23,11 @@ var automation_default = defineCommand({
23
23
  token: { type: "string", alias: "t", description: "Bearer token" },
24
24
  json: { type: "boolean", description: "Output raw JSON" },
25
25
  verbose: { type: "boolean", alias: "v", description: "Verbose output" },
26
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
26
27
  interactive: { type: "boolean", description: "Interactive mode" },
27
28
  jsonata: { type: "string", description: "JSONata expression to transform response" },
28
- _ophelp: { type: "boolean", description: "Show operation help", required: false }
29
+ _ophelp: { type: "boolean", description: "Show operation help", required: false },
30
+ _apihelp: { type: "boolean", description: "Show API help", required: false }
29
31
  },
30
32
  run: ({ args, rawArgs }) => {
31
33
  const positionalArgs = [];
@@ -42,6 +44,7 @@ var automation_default = defineCommand({
42
44
  return callApi("automation", {
43
45
  ...args,
44
46
  help: !!args._ophelp,
47
+ _apihelp: !!args._apihelp,
45
48
  _args: positionalArgs
46
49
  });
47
50
  }
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-BJOXXFMA.js";
4
+ } from "./chunk-HWUVFZIB.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-HN4QDJOJ.js";
8
- import "./chunk-6RBLA5YE.js";
7
+ import "./chunk-IOLKUHUB.js";
8
+ import "./chunk-7ZQ666ZQ.js";
9
9
 
10
10
  // src/commands/apis/billing.ts
11
11
  import { defineCommand } from "citty";
@@ -23,9 +23,11 @@ var billing_default = defineCommand({
23
23
  token: { type: "string", alias: "t", description: "Bearer token" },
24
24
  json: { type: "boolean", description: "Output raw JSON" },
25
25
  verbose: { type: "boolean", alias: "v", description: "Verbose output" },
26
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
26
27
  interactive: { type: "boolean", description: "Interactive mode" },
27
28
  jsonata: { type: "string", description: "JSONata expression to transform response" },
28
- _ophelp: { type: "boolean", description: "Show operation help", required: false }
29
+ _ophelp: { type: "boolean", description: "Show operation help", required: false },
30
+ _apihelp: { type: "boolean", description: "Show API help", required: false }
29
31
  },
30
32
  run: ({ args, rawArgs }) => {
31
33
  const positionalArgs = [];
@@ -42,6 +44,7 @@ var billing_default = defineCommand({
42
44
  return callApi("billing", {
43
45
  ...args,
44
46
  help: !!args._ophelp,
47
+ _apihelp: !!args._apihelp,
45
48
  _args: positionalArgs
46
49
  });
47
50
  }
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.6",
14
+ version: "0.1.8",
15
15
  description: "CLI for epilot APIs"
16
16
  },
17
17
  args: {
@@ -20,69 +20,78 @@ var main = defineCommand({
20
20
  server: { type: "string", alias: "s", description: "Override server base URL" },
21
21
  json: { type: "boolean", description: "Output raw JSON" },
22
22
  verbose: { type: "boolean", alias: "v", description: "Verbose output" },
23
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
23
24
  interactive: { type: "boolean", default: true, description: "Interactive mode" },
24
25
  jsonata: { type: "string", description: "JSONata expression" }
25
26
  },
26
27
  subCommands: {
27
- auth: () => import("../auth-JRW6QLKR.js").then((m) => m.default),
28
- profile: () => import("../profile-MZ3VK7PO.js").then((m) => m.default),
29
- completion: () => import("../completion-RCVUCEMM.js").then((m) => m.default),
30
- upgrade: () => import("../upgrade-GSUVIXOB.js").then((m) => m.default),
31
- "access-token": () => import("../access-token-BDNU3ZFC.js").then((m) => m.default),
32
- address: () => import("../address-ZCYZYRP4.js").then((m) => m.default),
33
- "address-suggestions": () => import("../address-suggestions-RP5N7NVQ.js").then((m) => m.default),
34
- "ai-agents": () => import("../ai-agents-PLUGVZTI.js").then((m) => m.default),
35
- app: () => import("../app-HZECIN6N.js").then((m) => m.default),
36
- "audit-logs": () => import("../audit-logs-JWKGNHPP.js").then((m) => m.default),
37
- automation: () => import("../automation-73BC4PYK.js").then((m) => m.default),
38
- billing: () => import("../billing-GQDSK4H2.js").then((m) => m.default),
39
- "blueprint-manifest": () => import("../blueprint-manifest-4M7DNWYE.js").then((m) => m.default),
40
- consent: () => import("../consent-OJBGOI54.js").then((m) => m.default),
41
- "customer-portal": () => import("../customer-portal-BDKNWKHA.js").then((m) => m.default),
42
- dashboard: () => import("../dashboard-IAEU3JFY.js").then((m) => m.default),
43
- "data-management": () => import("../data-management-UEDSGAKB.js").then((m) => m.default),
44
- deduplication: () => import("../deduplication-JJS3TOJ2.js").then((m) => m.default),
45
- design: () => import("../design-WKSDZFBJ.js").then((m) => m.default),
46
- document: () => import("../document-P5OL4NYY.js").then((m) => m.default),
47
- "email-settings": () => import("../email-settings-743JHCKS.js").then((m) => m.default),
48
- "email-template": () => import("../email-template-MW4IVDPM.js").then((m) => m.default),
49
- entity: () => import("../entity-K5X6FWJI.js").then((m) => m.default),
50
- "entity-mapping": () => import("../entity-mapping-QBJ2I2VR.js").then((m) => m.default),
51
- environments: () => import("../environments-VUR7ME42.js").then((m) => m.default),
52
- "erp-integration": () => import("../erp-integration-A2KAIXUQ.js").then((m) => m.default),
53
- "event-catalog": () => import("../event-catalog-6YEG5CEM.js").then((m) => m.default),
54
- file: () => import("../file-J6PHZ447.js").then((m) => m.default),
55
- iban: () => import("../iban-DJSUCRU6.js").then((m) => m.default),
56
- journey: () => import("../journey-QJZKU3PZ.js").then((m) => m.default),
57
- kanban: () => import("../kanban-ZF4IIG7Q.js").then((m) => m.default),
58
- message: () => import("../message-WH4GD5SC.js").then((m) => m.default),
59
- metering: () => import("../metering-FCWUZ2TC.js").then((m) => m.default),
60
- notes: () => import("../notes-KKVPGK7K.js").then((m) => m.default),
61
- notification: () => import("../notification-4MVAZTRP.js").then((m) => m.default),
62
- organization: () => import("../organization-2UT2KFMB.js").then((m) => m.default),
63
- "partner-directory": () => import("../partner-directory-SUNW4XN7.js").then((m) => m.default),
64
- permissions: () => import("../permissions-36VGB4BQ.js").then((m) => m.default),
65
- pricing: () => import("../pricing-RCNFEEHO.js").then((m) => m.default),
66
- "pricing-tier": () => import("../pricing-tier-MNCLLXD5.js").then((m) => m.default),
67
- purpose: () => import("../purpose-3JN63WTQ.js").then((m) => m.default),
68
- sandbox: () => import("../sandbox-C676YDRV.js").then((m) => m.default),
69
- submission: () => import("../submission-5XTNMMCK.js").then((m) => m.default),
70
- targeting: () => import("../targeting-C52KV6IW.js").then((m) => m.default),
71
- "template-variables": () => import("../template-variables-5SKJEJF4.js").then((m) => m.default),
72
- user: () => import("../user-DYAR3N6L.js").then((m) => m.default),
73
- "validation-rules": () => import("../validation-rules-LDAOUPOO.js").then((m) => m.default),
74
- webhooks: () => import("../webhooks-MT2P33A2.js").then((m) => m.default),
75
- workflow: () => import("../workflow-YGWGE6L4.js").then((m) => m.default),
76
- "workflow-definition": () => import("../workflow-definition-JG54ZWGL.js").then((m) => m.default)
28
+ auth: () => import("../auth-AAF6Z5WZ.js").then((m) => m.default),
29
+ profile: () => import("../profile-EK4HSQ57.js").then((m) => m.default),
30
+ completion: () => import("../completion-EKFXGPNK.js").then((m) => m.default),
31
+ upgrade: () => import("../upgrade-2SY2XG5S.js").then((m) => m.default),
32
+ "access-token": () => import("../access-token-ZDNEKP3G.js").then((m) => m.default),
33
+ address: () => import("../address-2SW3VMN3.js").then((m) => m.default),
34
+ "address-suggestions": () => import("../address-suggestions-26ZRCECN.js").then((m) => m.default),
35
+ "ai-agents": () => import("../ai-agents-PDOHJ7VB.js").then((m) => m.default),
36
+ app: () => import("../app-XJNMGPZO.js").then((m) => m.default),
37
+ "audit-logs": () => import("../audit-logs-L2OCFRGO.js").then((m) => m.default),
38
+ automation: () => import("../automation-UB7OFM4Q.js").then((m) => m.default),
39
+ billing: () => import("../billing-ZXHTBUAP.js").then((m) => m.default),
40
+ "blueprint-manifest": () => import("../blueprint-manifest-RMKS5EQA.js").then((m) => m.default),
41
+ consent: () => import("../consent-AQ2DKCDR.js").then((m) => m.default),
42
+ "customer-portal": () => import("../customer-portal-CGP4ZX4R.js").then((m) => m.default),
43
+ dashboard: () => import("../dashboard-IDWUGNZW.js").then((m) => m.default),
44
+ "data-management": () => import("../data-management-U7ZRAGLQ.js").then((m) => m.default),
45
+ deduplication: () => import("../deduplication-QQUSPXAF.js").then((m) => m.default),
46
+ design: () => import("../design-PQ2FUC2D.js").then((m) => m.default),
47
+ document: () => import("../document-Y76RC3MP.js").then((m) => m.default),
48
+ "email-settings": () => import("../email-settings-XM3ADDAU.js").then((m) => m.default),
49
+ "email-template": () => import("../email-template-72P5GBEO.js").then((m) => m.default),
50
+ entity: () => import("../entity-XHM54EGF.js").then((m) => m.default),
51
+ "entity-mapping": () => import("../entity-mapping-L5QITA2E.js").then((m) => m.default),
52
+ environments: () => import("../environments-VW3SQQ6D.js").then((m) => m.default),
53
+ "erp-integration": () => import("../erp-integration-XCFKHGOU.js").then((m) => m.default),
54
+ "event-catalog": () => import("../event-catalog-XZ233C2K.js").then((m) => m.default),
55
+ file: () => import("../file-TYBZ6WUC.js").then((m) => m.default),
56
+ iban: () => import("../iban-IEGS2B6M.js").then((m) => m.default),
57
+ journey: () => import("../journey-HY3MNAHS.js").then((m) => m.default),
58
+ kanban: () => import("../kanban-7RLHAPAB.js").then((m) => m.default),
59
+ message: () => import("../message-K7E26IZC.js").then((m) => m.default),
60
+ metering: () => import("../metering-2OGVZIBR.js").then((m) => m.default),
61
+ notes: () => import("../notes-KQVLCMGP.js").then((m) => m.default),
62
+ notification: () => import("../notification-BFBWDPZV.js").then((m) => m.default),
63
+ organization: () => import("../organization-LI7FM5BQ.js").then((m) => m.default),
64
+ "partner-directory": () => import("../partner-directory-XPAISFGT.js").then((m) => m.default),
65
+ permissions: () => import("../permissions-R5A4XMTY.js").then((m) => m.default),
66
+ pricing: () => import("../pricing-Y4T6VKYN.js").then((m) => m.default),
67
+ "pricing-tier": () => import("../pricing-tier-HWKSYSVR.js").then((m) => m.default),
68
+ purpose: () => import("../purpose-5AUHF3IO.js").then((m) => m.default),
69
+ sandbox: () => import("../sandbox-QSGFCXMZ.js").then((m) => m.default),
70
+ submission: () => import("../submission-Z73M4XKQ.js").then((m) => m.default),
71
+ targeting: () => import("../targeting-U5YIFO6Q.js").then((m) => m.default),
72
+ "template-variables": () => import("../template-variables-AV4T4OL2.js").then((m) => m.default),
73
+ user: () => import("../user-S7XP7EFG.js").then((m) => m.default),
74
+ "validation-rules": () => import("../validation-rules-MJRLZCHT.js").then((m) => m.default),
75
+ webhooks: () => import("../webhooks-X2VR5SVC.js").then((m) => m.default),
76
+ workflow: () => import("../workflow-EGOFLIKI.js").then((m) => m.default),
77
+ "workflow-definition": () => import("../workflow-definition-65ZR33O5.js").then((m) => m.default)
77
78
  }
78
79
  });
79
80
 
80
81
  // bin/epilot.ts
81
- var VERSION = true ? "0.1.6" : (await null).default.version;
82
+ process.stdout.on("error", (err) => {
83
+ if (err.code === "EPIPE") process.exit(0);
84
+ throw err;
85
+ });
86
+ process.stderr.on("error", (err) => {
87
+ if (err.code === "EPIPE") process.exit(0);
88
+ throw err;
89
+ });
90
+ var VERSION = true ? "0.1.8" : (await null).default.version;
82
91
  var args = process.argv.slice(2);
83
92
  var completionsIdx = args.indexOf("--_completions");
84
93
  if (completionsIdx >= 0) {
85
- const { handleCompletions } = await import("../completion-RCVUCEMM.js");
94
+ const { handleCompletions } = await import("../completion-EKFXGPNK.js");
86
95
  handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
87
96
  process.exit(0);
88
97
  }
@@ -108,7 +117,7 @@ if (hasHelp) {
108
117
  if (operationId) {
109
118
  process.argv = [process.argv[0], process.argv[1], ...filteredArgs, "--_ophelp"];
110
119
  } else {
111
- process.argv = [process.argv[0], process.argv[1], ...filteredArgs];
120
+ process.argv = [process.argv[0], process.argv[1], ...filteredArgs, "--_apihelp"];
112
121
  }
113
122
  }
114
123
  }
@@ -148,6 +157,8 @@ function printRootHelp() {
148
157
  w(` ${GREEN}-v, --verbose${R} Verbose output (show request details)
149
158
  `);
150
159
  w(` ${GREEN}--jsonata${R} <expr> JSONata expression to transform response
160
+ `);
161
+ w(` ${GREEN}--guided${R} Prompt for all parameters interactively
151
162
  `);
152
163
  w(` ${GREEN}--no-interactive${R} Disable interactive prompts
153
164
  `);
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-BJOXXFMA.js";
4
+ } from "./chunk-HWUVFZIB.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-HN4QDJOJ.js";
8
- import "./chunk-6RBLA5YE.js";
7
+ import "./chunk-IOLKUHUB.js";
8
+ import "./chunk-7ZQ666ZQ.js";
9
9
 
10
10
  // src/commands/apis/blueprint-manifest.ts
11
11
  import { defineCommand } from "citty";
@@ -23,9 +23,11 @@ var blueprint_manifest_default = defineCommand({
23
23
  token: { type: "string", alias: "t", description: "Bearer token" },
24
24
  json: { type: "boolean", description: "Output raw JSON" },
25
25
  verbose: { type: "boolean", alias: "v", description: "Verbose output" },
26
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
26
27
  interactive: { type: "boolean", description: "Interactive mode" },
27
28
  jsonata: { type: "string", description: "JSONata expression to transform response" },
28
- _ophelp: { type: "boolean", description: "Show operation help", required: false }
29
+ _ophelp: { type: "boolean", description: "Show operation help", required: false },
30
+ _apihelp: { type: "boolean", description: "Show API help", required: false }
29
31
  },
30
32
  run: ({ args, rawArgs }) => {
31
33
  const positionalArgs = [];
@@ -42,6 +44,7 @@ var blueprint_manifest_default = defineCommand({
42
44
  return callApi("blueprint-manifest", {
43
45
  ...args,
44
46
  help: !!args._ophelp,
47
+ _apihelp: !!args._apihelp,
45
48
  _args: positionalArgs
46
49
  });
47
50
  }