@epilot/cli 0.1.3 → 0.1.4

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 +18 -4
  2. package/dist/{access-token-F2VH6TNQ.js → access-token-56RMQQAV.js} +3 -3
  3. package/dist/{address-YBOAFFFH.js → address-ILFNEEKQ.js} +3 -3
  4. package/dist/{address-suggestions-ITPRYJSF.js → address-suggestions-HBXNOBTY.js} +3 -3
  5. package/dist/{ai-agents-EBWNYR5R.js → ai-agents-3GVB2MHH.js} +3 -3
  6. package/dist/{app-WOAQAMSE.js → app-PMVGDA44.js} +3 -3
  7. package/dist/{audit-logs-OAUUPKTJ.js → audit-logs-SAD6TZ6T.js} +3 -3
  8. package/dist/{auth-NEBRZ66K.js → auth-LMXCPY77.js} +3 -3
  9. package/dist/{auth-login-QQBH7BVA.js → auth-login-J2R6SME7.js} +78 -24
  10. package/dist/{auth-token-W6GXKHXB.js → auth-token-VSNRXUBI.js} +1 -1
  11. package/dist/{automation-52ONEM6D.js → automation-VF6AL6TZ.js} +3 -3
  12. package/dist/{billing-2RED3OVH.js → billing-LW6XV26L.js} +3 -3
  13. package/dist/bin/epilot.js +55 -52
  14. package/dist/{blueprint-manifest-4VTVMR42.js → blueprint-manifest-GVONSIWC.js} +3 -3
  15. package/dist/{chunk-4VITQVW2.js → chunk-3FZ36LAB.js} +1 -1
  16. package/dist/{chunk-TKZLQD2B.js → chunk-6RBLA5YE.js} +3 -1
  17. package/dist/{chunk-5CTRM3JQ.js → chunk-SACM5JJP.js} +4 -4
  18. package/dist/{completion-XN3BD2LS.js → completion-YVPB2HSP.js} +74 -3
  19. package/dist/{consent-25X3PFNT.js → consent-L7PPM2RS.js} +3 -3
  20. package/dist/{customer-portal-T6VNRPQY.js → customer-portal-FKEQLBZT.js} +3 -3
  21. package/dist/{dashboard-MBTUKEVN.js → dashboard-N7ZV5LV7.js} +3 -3
  22. package/dist/{data-management-ZHPS67MI.js → data-management-B2HKXR7L.js} +3 -3
  23. package/dist/{deduplication-L2UABHUX.js → deduplication-RY2NOUVL.js} +3 -3
  24. package/dist/{design-ELKIZCND.js → design-KXZPNB7R.js} +3 -3
  25. package/dist/{document-VF2C5OPK.js → document-OMWQI4SG.js} +3 -3
  26. package/dist/{email-settings-TM6TIDZQ.js → email-settings-IA36PUXF.js} +3 -3
  27. package/dist/{email-template-S7NLUNON.js → email-template-V56KH5HB.js} +3 -3
  28. package/dist/{entity-5AAD2R3S.js → entity-3AYPUKDS.js} +3 -3
  29. package/dist/{entity-mapping-UOFXQLQ2.js → entity-mapping-LQW3SXIQ.js} +3 -3
  30. package/dist/{environments-STU24LWT.js → environments-W36TPCFO.js} +3 -3
  31. package/dist/{erp-integration-DMPYQNVW.js → erp-integration-3HQ7E5NA.js} +3 -3
  32. package/dist/{event-catalog-HGSD3RZW.js → event-catalog-3L3622DH.js} +3 -3
  33. package/dist/{file-G355J7IL.js → file-OKYWWEU2.js} +3 -3
  34. package/dist/{iban-FIL4TCSN.js → iban-JASOQGKM.js} +3 -3
  35. package/dist/{interactive-RWCSFGXL.js → interactive-5J6X74Q7.js} +2 -2
  36. package/dist/{journey-4IZDKDY7.js → journey-ITMLYX23.js} +3 -3
  37. package/dist/{kanban-DNIP4AAI.js → kanban-JDRCIYF6.js} +3 -3
  38. package/dist/{message-W4TZ32YH.js → message-NI45JYMQ.js} +3 -3
  39. package/dist/{metering-GKGJZTDF.js → metering-J6L5IPRJ.js} +3 -3
  40. package/dist/{notes-AS7BD3B6.js → notes-WSEYYM2I.js} +3 -3
  41. package/dist/{notification-N4ACDEK7.js → notification-GOGQMIRR.js} +3 -3
  42. package/dist/{organization-IYNBC4SB.js → organization-IFUJHPGJ.js} +3 -3
  43. package/dist/{partner-directory-DZX32S4J.js → partner-directory-O5HSDE2K.js} +3 -3
  44. package/dist/{permissions-Z7KVPSVL.js → permissions-7MMSNXB5.js} +3 -3
  45. package/dist/{pricing-OLSQRQZN.js → pricing-Z7HT4ROJ.js} +3 -3
  46. package/dist/{pricing-tier-IP274TML.js → pricing-tier-MMWT57MJ.js} +3 -3
  47. package/dist/{profile-PPVSNNBG.js → profile-MZ3VK7PO.js} +1 -1
  48. package/dist/{purpose-YCIEYFCH.js → purpose-BGXEOLJ7.js} +3 -3
  49. package/dist/{sandbox-AKFR5LEQ.js → sandbox-PQW5425Q.js} +3 -3
  50. package/dist/{submission-XONDJGXI.js → submission-5OFXHA3T.js} +3 -3
  51. package/dist/{targeting-QWHVJCWI.js → targeting-ESL32NRT.js} +3 -3
  52. package/dist/{template-variables-Q3J3IPSF.js → template-variables-DHSWLYWH.js} +3 -3
  53. package/dist/upgrade-GNXLL2NI.js +124 -0
  54. package/dist/{user-QNPACYI3.js → user-HCHAYBZU.js} +3 -3
  55. package/dist/{validation-rules-XT3SRBJ3.js → validation-rules-CQRPRNDS.js} +3 -3
  56. package/dist/{webhooks-RH5VYEY6.js → webhooks-OOLV3K4A.js} +3 -3
  57. package/dist/{workflow-BKSEFDUM.js → workflow-GHNKO7IJ.js} +3 -3
  58. package/dist/{workflow-definition-DGEBEIGG.js → workflow-definition-XPEHPQVQ.js} +3 -3
  59. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-5CTRM3JQ.js";
4
+ } from "./chunk-SACM5JJP.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-4VITQVW2.js";
8
- import "./chunk-TKZLQD2B.js";
7
+ import "./chunk-3FZ36LAB.js";
8
+ import "./chunk-6RBLA5YE.js";
9
9
 
10
10
  // src/commands/apis/template-variables.ts
11
11
  import { defineCommand } from "citty";
@@ -0,0 +1,124 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ BOLD,
4
+ CYAN,
5
+ DIM,
6
+ GREEN,
7
+ RED,
8
+ RESET,
9
+ YELLOW
10
+ } from "./chunk-6RBLA5YE.js";
11
+
12
+ // src/commands/upgrade.ts
13
+ import { defineCommand } from "citty";
14
+ import { execSync } from "child_process";
15
+ var upgrade_default = defineCommand({
16
+ meta: { name: "upgrade", description: "Upgrade @epilot/cli to the latest version" },
17
+ args: {
18
+ check: { type: "boolean", description: "Only check for updates, do not install" }
19
+ },
20
+ run: async ({ args }) => {
21
+ const current = getCurrentVersion();
22
+ const latest = await getLatestVersion();
23
+ if (!latest) {
24
+ process.stderr.write(`${RED}Could not fetch latest version from npm registry.${RESET}
25
+ `);
26
+ process.exit(1);
27
+ }
28
+ if (current === latest) {
29
+ process.stdout.write(`${GREEN}Already on the latest version ${BOLD}${current}${RESET}
30
+ `);
31
+ return;
32
+ }
33
+ process.stdout.write(`${CYAN}Current:${RESET} ${current}
34
+ `);
35
+ process.stdout.write(`${CYAN}Latest:${RESET} ${BOLD}${latest}${RESET}
36
+ `);
37
+ if (args.check) {
38
+ process.stdout.write(`
39
+ ${YELLOW}Update available.${RESET} Run ${BOLD}epilot upgrade${RESET} to install.
40
+ `);
41
+ return;
42
+ }
43
+ process.stdout.write(`
44
+ `);
45
+ const installer = detectInstaller();
46
+ if (!installer) {
47
+ process.stdout.write(`${YELLOW}Could not detect how @epilot/cli was installed.${RESET}
48
+ `);
49
+ process.stdout.write(`Upgrade manually with one of:
50
+ `);
51
+ process.stdout.write(` ${DIM}npm install -g @epilot/cli@latest${RESET}
52
+ `);
53
+ process.stdout.write(` ${DIM}yarn global add @epilot/cli@latest${RESET}
54
+ `);
55
+ process.stdout.write(` ${DIM}pnpm add -g @epilot/cli@latest${RESET}
56
+ `);
57
+ return;
58
+ }
59
+ process.stdout.write(`${DIM}Upgrading via ${installer.name}...${RESET}
60
+ `);
61
+ try {
62
+ execSync(installer.command, { stdio: "inherit" });
63
+ process.stdout.write(`
64
+ ${GREEN}${BOLD}Upgraded to @epilot/cli@${latest}${RESET}
65
+ `);
66
+ } catch {
67
+ process.stderr.write(`${RED}Upgrade failed.${RESET} Try manually:
68
+ ${installer.command}
69
+ `);
70
+ process.exit(1);
71
+ }
72
+ }
73
+ });
74
+ var getCurrentVersion = () => {
75
+ if (true) return "0.1.4";
76
+ try {
77
+ const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
78
+ encoding: "utf-8",
79
+ timeout: 1e4
80
+ });
81
+ const parsed = JSON.parse(output);
82
+ return parsed?.dependencies?.["@epilot/cli"]?.version ?? "unknown";
83
+ } catch {
84
+ return "unknown";
85
+ }
86
+ };
87
+ var getLatestVersion = async () => {
88
+ try {
89
+ const output = execSync("npm view @epilot/cli version", {
90
+ encoding: "utf-8",
91
+ timeout: 1e4
92
+ });
93
+ return output.trim() || null;
94
+ } catch {
95
+ return null;
96
+ }
97
+ };
98
+ var detectInstaller = () => {
99
+ if (process.env.VOLTA_HOME && whichResolves("volta")) {
100
+ return { name: "volta", command: "volta install @epilot/cli@latest" };
101
+ }
102
+ const binPath = process.argv[1] || "";
103
+ if (binPath.includes("/.pnpm/") || binPath.includes("/pnpm/")) {
104
+ return { name: "pnpm", command: "pnpm add -g @epilot/cli@latest" };
105
+ }
106
+ if (binPath.includes("/yarn/") || binPath.includes("/.yarn/")) {
107
+ return { name: "yarn", command: "yarn global add @epilot/cli@latest" };
108
+ }
109
+ if (whichResolves("npm")) {
110
+ return { name: "npm", command: "npm install -g @epilot/cli@latest" };
111
+ }
112
+ return null;
113
+ };
114
+ var whichResolves = (cmd) => {
115
+ try {
116
+ execSync(`which ${cmd}`, { encoding: "utf-8", timeout: 5e3 });
117
+ return true;
118
+ } catch {
119
+ return false;
120
+ }
121
+ };
122
+ export {
123
+ upgrade_default as default
124
+ };
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-5CTRM3JQ.js";
4
+ } from "./chunk-SACM5JJP.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-4VITQVW2.js";
8
- import "./chunk-TKZLQD2B.js";
7
+ import "./chunk-3FZ36LAB.js";
8
+ import "./chunk-6RBLA5YE.js";
9
9
 
10
10
  // src/commands/apis/user.ts
11
11
  import { defineCommand } from "citty";
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-5CTRM3JQ.js";
4
+ } from "./chunk-SACM5JJP.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-4VITQVW2.js";
8
- import "./chunk-TKZLQD2B.js";
7
+ import "./chunk-3FZ36LAB.js";
8
+ import "./chunk-6RBLA5YE.js";
9
9
 
10
10
  // src/commands/apis/validation-rules.ts
11
11
  import { defineCommand } from "citty";
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-5CTRM3JQ.js";
4
+ } from "./chunk-SACM5JJP.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-4VITQVW2.js";
8
- import "./chunk-TKZLQD2B.js";
7
+ import "./chunk-3FZ36LAB.js";
8
+ import "./chunk-6RBLA5YE.js";
9
9
 
10
10
  // src/commands/apis/webhooks.ts
11
11
  import { defineCommand } from "citty";
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-5CTRM3JQ.js";
4
+ } from "./chunk-SACM5JJP.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-4VITQVW2.js";
8
- import "./chunk-TKZLQD2B.js";
7
+ import "./chunk-3FZ36LAB.js";
8
+ import "./chunk-6RBLA5YE.js";
9
9
 
10
10
  // src/commands/apis/workflow.ts
11
11
  import { defineCommand } from "citty";
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  callApi
4
- } from "./chunk-5CTRM3JQ.js";
4
+ } from "./chunk-SACM5JJP.js";
5
5
  import "./chunk-RSA7K5HB.js";
6
6
  import "./chunk-PDMWUCWD.js";
7
- import "./chunk-4VITQVW2.js";
8
- import "./chunk-TKZLQD2B.js";
7
+ import "./chunk-3FZ36LAB.js";
8
+ import "./chunk-6RBLA5YE.js";
9
9
 
10
10
  // src/commands/apis/workflow-definition.ts
11
11
  import { defineCommand } from "citty";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {