@epilot/cli 0.1.19 → 0.1.21
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.
- package/README.md +1 -1
- package/dist/{access-token-CIM4RLBP.js → access-token-WWE6BDJH.js} +5 -3
- package/dist/{add-component-AAVQVPKK.js → add-component-IVVCAUGY.js} +3 -3
- package/dist/{address-EDRTUWTP.js → address-EH3C4CVB.js} +5 -3
- package/dist/{address-suggestions-S5WEST2N.js → address-suggestions-RRSLOBFW.js} +5 -3
- package/dist/{ai-agents-RXDDJDAR.js → ai-agents-HEDTH2EP.js} +5 -3
- package/dist/{api-36XROHLK.js → api-5W2UMWCW.js} +3 -3
- package/dist/app-TIFX5AYN.js +24 -0
- package/dist/{audit-logs-PXGDGJGV.js → audit-logs-YFRK3EFU.js} +5 -3
- package/dist/{auth-OPYS3QFL.js → auth-CN5EFFDE.js} +4 -4
- package/dist/{auth-login-X2GRQW6N.js → auth-login-NHWG3STD.js} +2 -2
- package/dist/{auth-token-J4FI2RMT.js → auth-token-APXLIQAO.js} +2 -2
- package/dist/{automation-LS6MVLP2.js → automation-4DEE3TUI.js} +5 -3
- package/dist/{billing-KVYFUKZK.js → billing-XX4VVOPI.js} +5 -3
- package/dist/bin/epilot.js +108 -54
- package/dist/{blueprint-manifest-W4ZGJD2Z.js → blueprint-manifest-V5MJ3GCA.js} +5 -3
- package/dist/{chunk-CEP7S7X3.js → chunk-4TDAAJ6H.js} +1 -1
- package/dist/{chunk-BYAEI4Z2.js → chunk-5ZFPCFKV.js} +28 -6
- package/dist/{chunk-RSA7K5HB.js → chunk-M3M3C5WH.js} +1 -1
- package/dist/{chunk-PDMWUCWD.js → chunk-YHQA2AVG.js} +11 -0
- package/dist/config-DGZIMLZK.js +88 -0
- package/dist/{configuration-hub-Y7W22GBW.js → configuration-hub-ZSYHJZXF.js} +5 -3
- package/dist/{consent-M4QB2HPM.js → consent-QICGZLMO.js} +5 -3
- package/dist/{customer-portal-SVO2YCXA.js → customer-portal-UCDUZO6G.js} +5 -3
- package/dist/{dashboard-CYCXIX74.js → dashboard-YL5C562L.js} +5 -3
- package/dist/{data-governance-DJAAIE6F.js → data-governance-4VMCRLDZ.js} +5 -3
- package/dist/{deduplication-M3KEVJRG.js → deduplication-RKRS2COL.js} +5 -3
- package/dist/{deploy-4XDFWOEV.js → deploy-HN3M5VTA.js} +3 -3
- package/dist/{design-UVJJ2KO2.js → design-CQWCY2IS.js} +5 -3
- package/dist/{document-5HB632XE.js → document-JYWQBMSI.js} +5 -3
- package/dist/{email-settings-H7HQTDYE.js → email-settings-NG4J6IM6.js} +5 -3
- package/dist/{email-template-2DHZ3VKF.js → email-template-GVI34ZOC.js} +5 -3
- package/dist/{entity-HED6QHG7.js → entity-AZTQCTNG.js} +5 -3
- package/dist/{entity-mapping-QP22B65Z.js → entity-mapping-NN32XUJX.js} +5 -3
- package/dist/{environments-6LLEIGWV.js → environments-3ASNXU73.js} +5 -3
- package/dist/{event-catalog-2ZCZTATY.js → event-catalog-JU7XOJLT.js} +5 -3
- package/dist/{export-JA5N4JCJ.js → export-JDDMBBNS.js} +3 -3
- package/dist/{file-R6IIXOIZ.js → file-YDLNXKZR.js} +5 -3
- package/dist/{iban-EQD2VROZ.js → iban-7HDVKBUS.js} +5 -3
- package/dist/{init-5KGNJEWF.js → init-QZTZF2JC.js} +3 -3
- package/dist/{integration-toolkit-4CLQDSK7.js → integration-toolkit-WBDJB76S.js} +5 -3
- package/dist/{journey-V7X2KUKH.js → journey-RZ7UI5ZA.js} +5 -3
- package/dist/{kanban-EPI6C3FR.js → kanban-7CZGNU52.js} +5 -3
- package/dist/{message-477EJ5JO.js → message-BFAKIAPX.js} +5 -3
- package/dist/{metering-5EAEKRSL.js → metering-R4HXARRF.js} +5 -3
- package/dist/{notes-CVXNRULU.js → notes-MHH5OZ2E.js} +5 -3
- package/dist/{notification-6HXS76XP.js → notification-RPBIG3FC.js} +5 -3
- package/dist/{organization-O33CZQKD.js → organization-AUBBICVD.js} +5 -3
- package/dist/{partner-directory-NZWGCKSB.js → partner-directory-FYZJUNAW.js} +5 -3
- package/dist/{permissions-6QEOBJ6M.js → permissions-4TQQYZXO.js} +5 -3
- package/dist/{pricing-KNYSULCW.js → pricing-SPMVLPRL.js} +5 -3
- package/dist/{pricing-tier-OCHP6SHT.js → pricing-tier-7LVSXXMJ.js} +5 -3
- package/dist/{profile-EK4HSQ57.js → profile-OZJL5ZPT.js} +1 -1
- package/dist/{purpose-NGM42XWB.js → purpose-GVCQT7YJ.js} +5 -3
- package/dist/{query-IYW42QLU.js → query-5QIXDE32.js} +5 -3
- package/dist/{remove-component-LXSRR23E.js → remove-component-HJA5OA3H.js} +3 -3
- package/dist/{review-HFOO3NXE.js → review-7M27IRW6.js} +3 -3
- package/dist/{sandbox-YX3VVAQG.js → sandbox-Q3XHXMFY.js} +5 -3
- package/dist/{sharing-X5U53KSU.js → sharing-SQJ355YL.js} +5 -3
- package/dist/{submission-YOWVSZNA.js → submission-WJUI3BYW.js} +5 -3
- package/dist/{targeting-BMZCOG72.js → targeting-6QHPH3GP.js} +5 -3
- package/dist/{template-variables-YTABZL3E.js → template-variables-WVV7Y6HO.js} +5 -3
- package/dist/{upgrade-BFBIJHFI.js → upgrade-L2YSFIR2.js} +1 -1
- package/dist/{user-3N5ZOUYS.js → user-TB64MVPS.js} +5 -3
- package/dist/{validate-TUMXW56Y.js → validate-QUSO4DR4.js} +3 -3
- package/dist/{validation-rules-QVS7LKEP.js → validation-rules-I3MUNH5H.js} +5 -3
- package/dist/{versions-ZTWQAGXY.js → versions-EUTT4SNW.js} +3 -3
- package/dist/{webhooks-6WMWACOW.js → webhooks-R2ZJHOWQ.js} +5 -3
- package/dist/{workflow-ZO2MKDBS.js → workflow-NBX7EDI7.js} +5 -3
- package/dist/{workflow-definition-RCWKIPYI.js → workflow-definition-R6VB7HO3.js} +5 -3
- package/package.json +1 -1
- package/dist/app-I3XXHZLD.js +0 -24
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-RSA7K5HB.js";
|
|
6
|
-
import "./chunk-PDMWUCWD.js";
|
|
4
|
+
} from "./chunk-5ZFPCFKV.js";
|
|
7
5
|
import "./chunk-IOLKUHUB.js";
|
|
6
|
+
import "./chunk-M3M3C5WH.js";
|
|
7
|
+
import "./chunk-YHQA2AVG.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/access-token.ts
|
|
@@ -19,6 +19,8 @@ var access_token_default = defineCommand({
|
|
|
19
19
|
include: { type: "boolean", alias: "i", description: "Include response headers" },
|
|
20
20
|
definition: { type: "string", description: "Override OpenAPI spec file/URL" },
|
|
21
21
|
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
22
|
+
"use-dev": { type: "boolean", description: "Target dev environment" },
|
|
23
|
+
"use-staging": { type: "boolean", description: "Target staging environment" },
|
|
22
24
|
profile: { type: "string", description: "Use a named profile" },
|
|
23
25
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
26
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
log,
|
|
4
4
|
readManifest,
|
|
5
5
|
writeManifest
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-4TDAAJ6H.js";
|
|
7
|
+
import "./chunk-M3M3C5WH.js";
|
|
8
|
+
import "./chunk-YHQA2AVG.js";
|
|
9
9
|
import "./chunk-7ZQ666ZQ.js";
|
|
10
10
|
|
|
11
11
|
// src/commands/app/add-component.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-RSA7K5HB.js";
|
|
6
|
-
import "./chunk-PDMWUCWD.js";
|
|
4
|
+
} from "./chunk-5ZFPCFKV.js";
|
|
7
5
|
import "./chunk-IOLKUHUB.js";
|
|
6
|
+
import "./chunk-M3M3C5WH.js";
|
|
7
|
+
import "./chunk-YHQA2AVG.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/address.ts
|
|
@@ -19,6 +19,8 @@ var address_default = defineCommand({
|
|
|
19
19
|
include: { type: "boolean", alias: "i", description: "Include response headers" },
|
|
20
20
|
definition: { type: "string", description: "Override OpenAPI spec file/URL" },
|
|
21
21
|
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
22
|
+
"use-dev": { type: "boolean", description: "Target dev environment" },
|
|
23
|
+
"use-staging": { type: "boolean", description: "Target staging environment" },
|
|
22
24
|
profile: { type: "string", description: "Use a named profile" },
|
|
23
25
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
26
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-RSA7K5HB.js";
|
|
6
|
-
import "./chunk-PDMWUCWD.js";
|
|
4
|
+
} from "./chunk-5ZFPCFKV.js";
|
|
7
5
|
import "./chunk-IOLKUHUB.js";
|
|
6
|
+
import "./chunk-M3M3C5WH.js";
|
|
7
|
+
import "./chunk-YHQA2AVG.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/address-suggestions.ts
|
|
@@ -19,6 +19,8 @@ var address_suggestions_default = defineCommand({
|
|
|
19
19
|
include: { type: "boolean", alias: "i", description: "Include response headers" },
|
|
20
20
|
definition: { type: "string", description: "Override OpenAPI spec file/URL" },
|
|
21
21
|
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
22
|
+
"use-dev": { type: "boolean", description: "Target dev environment" },
|
|
23
|
+
"use-staging": { type: "boolean", description: "Target staging environment" },
|
|
22
24
|
profile: { type: "string", description: "Use a named profile" },
|
|
23
25
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
26
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-RSA7K5HB.js";
|
|
6
|
-
import "./chunk-PDMWUCWD.js";
|
|
4
|
+
} from "./chunk-5ZFPCFKV.js";
|
|
7
5
|
import "./chunk-IOLKUHUB.js";
|
|
6
|
+
import "./chunk-M3M3C5WH.js";
|
|
7
|
+
import "./chunk-YHQA2AVG.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/ai-agents.ts
|
|
@@ -19,6 +19,8 @@ var ai_agents_default = defineCommand({
|
|
|
19
19
|
include: { type: "boolean", alias: "i", description: "Include response headers" },
|
|
20
20
|
definition: { type: "string", description: "Override OpenAPI spec file/URL" },
|
|
21
21
|
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
22
|
+
"use-dev": { type: "boolean", description: "Target dev environment" },
|
|
23
|
+
"use-staging": { type: "boolean", description: "Target staging environment" },
|
|
22
24
|
profile: { type: "string", description: "Use a named profile" },
|
|
23
25
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
26
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-RSA7K5HB.js";
|
|
6
|
-
import "./chunk-PDMWUCWD.js";
|
|
4
|
+
} from "./chunk-5ZFPCFKV.js";
|
|
7
5
|
import "./chunk-IOLKUHUB.js";
|
|
6
|
+
import "./chunk-M3M3C5WH.js";
|
|
7
|
+
import "./chunk-YHQA2AVG.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/app/api.ts
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/commands/app/index.ts
|
|
4
|
+
import { defineCommand } from "citty";
|
|
5
|
+
var app_default = defineCommand({
|
|
6
|
+
meta: {
|
|
7
|
+
name: "app",
|
|
8
|
+
description: "Manage epilot Apps \u2014 create, deploy, and manage app manifests"
|
|
9
|
+
},
|
|
10
|
+
subCommands: {
|
|
11
|
+
init: () => import("./init-QZTZF2JC.js").then((m) => m.default),
|
|
12
|
+
"add-component": () => import("./add-component-IVVCAUGY.js").then((m) => m.default),
|
|
13
|
+
"remove-component": () => import("./remove-component-HJA5OA3H.js").then((m) => m.default),
|
|
14
|
+
validate: () => import("./validate-QUSO4DR4.js").then((m) => m.default),
|
|
15
|
+
deploy: () => import("./deploy-HN3M5VTA.js").then((m) => m.default),
|
|
16
|
+
export: () => import("./export-JDDMBBNS.js").then((m) => m.default),
|
|
17
|
+
versions: () => import("./versions-EUTT4SNW.js").then((m) => m.default),
|
|
18
|
+
review: () => import("./review-7M27IRW6.js").then((m) => m.default),
|
|
19
|
+
api: () => import("./api-5W2UMWCW.js").then((m) => m.default)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
app_default as default
|
|
24
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-RSA7K5HB.js";
|
|
6
|
-
import "./chunk-PDMWUCWD.js";
|
|
4
|
+
} from "./chunk-5ZFPCFKV.js";
|
|
7
5
|
import "./chunk-IOLKUHUB.js";
|
|
6
|
+
import "./chunk-M3M3C5WH.js";
|
|
7
|
+
import "./chunk-YHQA2AVG.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/audit-logs.ts
|
|
@@ -19,6 +19,8 @@ var audit_logs_default = defineCommand({
|
|
|
19
19
|
include: { type: "boolean", alias: "i", description: "Include response headers" },
|
|
20
20
|
definition: { type: "string", description: "Override OpenAPI spec file/URL" },
|
|
21
21
|
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
22
|
+
"use-dev": { type: "boolean", description: "Target dev environment" },
|
|
23
|
+
"use-staging": { type: "boolean", description: "Target staging environment" },
|
|
22
24
|
profile: { type: "string", description: "Use a named profile" },
|
|
23
25
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
26
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
loadCredentials,
|
|
4
4
|
removeCredentials
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-M3M3C5WH.js";
|
|
6
|
+
import "./chunk-YHQA2AVG.js";
|
|
7
7
|
import {
|
|
8
8
|
BOLD,
|
|
9
9
|
DIM,
|
|
@@ -21,8 +21,8 @@ var auth_default = defineCommand({
|
|
|
21
21
|
description: "Manage authentication"
|
|
22
22
|
},
|
|
23
23
|
subCommands: {
|
|
24
|
-
login: () => import("./auth-login-
|
|
25
|
-
token: () => import("./auth-token-
|
|
24
|
+
login: () => import("./auth-login-NHWG3STD.js").then((m) => m.default),
|
|
25
|
+
token: () => import("./auth-token-APXLIQAO.js").then((m) => m.default),
|
|
26
26
|
logout: defineCommand({
|
|
27
27
|
meta: { name: "logout", description: "Remove stored credentials" },
|
|
28
28
|
run: () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-RSA7K5HB.js";
|
|
6
|
-
import "./chunk-PDMWUCWD.js";
|
|
4
|
+
} from "./chunk-5ZFPCFKV.js";
|
|
7
5
|
import "./chunk-IOLKUHUB.js";
|
|
6
|
+
import "./chunk-M3M3C5WH.js";
|
|
7
|
+
import "./chunk-YHQA2AVG.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/automation.ts
|
|
@@ -19,6 +19,8 @@ var automation_default = defineCommand({
|
|
|
19
19
|
include: { type: "boolean", alias: "i", description: "Include response headers" },
|
|
20
20
|
definition: { type: "string", description: "Override OpenAPI spec file/URL" },
|
|
21
21
|
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
22
|
+
"use-dev": { type: "boolean", description: "Target dev environment" },
|
|
23
|
+
"use-staging": { type: "boolean", description: "Target staging environment" },
|
|
22
24
|
profile: { type: "string", description: "Use a named profile" },
|
|
23
25
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
26
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-RSA7K5HB.js";
|
|
6
|
-
import "./chunk-PDMWUCWD.js";
|
|
4
|
+
} from "./chunk-5ZFPCFKV.js";
|
|
7
5
|
import "./chunk-IOLKUHUB.js";
|
|
6
|
+
import "./chunk-M3M3C5WH.js";
|
|
7
|
+
import "./chunk-YHQA2AVG.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/billing.ts
|
|
@@ -19,6 +19,8 @@ var billing_default = defineCommand({
|
|
|
19
19
|
include: { type: "boolean", alias: "i", description: "Include response headers" },
|
|
20
20
|
definition: { type: "string", description: "Override OpenAPI spec file/URL" },
|
|
21
21
|
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
22
|
+
"use-dev": { type: "boolean", description: "Target dev environment" },
|
|
23
|
+
"use-staging": { type: "boolean", description: "Target staging environment" },
|
|
22
24
|
profile: { type: "string", description: "Use a named profile" },
|
|
23
25
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
26
|
json: { type: "boolean", description: "Output raw JSON" },
|
package/dist/bin/epilot.js
CHANGED
|
@@ -11,13 +11,15 @@ import { defineCommand } from "citty";
|
|
|
11
11
|
var main = defineCommand({
|
|
12
12
|
meta: {
|
|
13
13
|
name: "epilot",
|
|
14
|
-
version: "0.1.
|
|
14
|
+
version: "0.1.21",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
18
18
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
19
19
|
profile: { type: "string", description: "Use a named profile (or EPILOT_PROFILE env)" },
|
|
20
20
|
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
21
|
+
"use-dev": { type: "boolean", description: "Target dev environment" },
|
|
22
|
+
"use-staging": { type: "boolean", description: "Target staging environment" },
|
|
21
23
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
22
24
|
verbose: { type: "boolean", alias: "v", description: "Verbose output" },
|
|
23
25
|
guided: { type: "boolean", description: "Prompt for all parameters interactively" },
|
|
@@ -25,62 +27,102 @@ var main = defineCommand({
|
|
|
25
27
|
jsonata: { type: "string", description: "JSONata expression" }
|
|
26
28
|
},
|
|
27
29
|
subCommands: {
|
|
28
|
-
auth: () => import("../auth-
|
|
29
|
-
profile: () => import("../profile-
|
|
30
|
+
auth: () => import("../auth-CN5EFFDE.js").then((m) => m.default),
|
|
31
|
+
profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
|
|
32
|
+
config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
|
|
30
33
|
completion: () => import("../completion-INJETNZK.js").then((m) => m.default),
|
|
31
|
-
upgrade: () => import("../upgrade-
|
|
32
|
-
"access-token": () => import("../access-token-
|
|
33
|
-
address: () => import("../address-
|
|
34
|
-
"address-suggestions": () => import("../address-suggestions-
|
|
35
|
-
"ai-agents": () => import("../ai-agents-
|
|
36
|
-
app: () => import("../app-
|
|
37
|
-
"audit-logs": () => import("../audit-logs-
|
|
38
|
-
automation: () => import("../automation-
|
|
39
|
-
billing: () => import("../billing-
|
|
40
|
-
"blueprint-manifest": () => import("../blueprint-manifest-
|
|
41
|
-
"configuration-hub": () => import("../configuration-hub-
|
|
42
|
-
consent: () => import("../consent-
|
|
43
|
-
"customer-portal": () => import("../customer-portal-
|
|
44
|
-
dashboard: () => import("../dashboard-
|
|
45
|
-
"data-governance": () => import("../data-governance-
|
|
46
|
-
deduplication: () => import("../deduplication-
|
|
47
|
-
design: () => import("../design-
|
|
48
|
-
document: () => import("../document-
|
|
49
|
-
"email-settings": () => import("../email-settings-
|
|
50
|
-
"email-template": () => import("../email-template-
|
|
51
|
-
entity: () => import("../entity-
|
|
52
|
-
"entity-mapping": () => import("../entity-mapping-
|
|
53
|
-
environments: () => import("../environments-
|
|
54
|
-
"event-catalog": () => import("../event-catalog-
|
|
55
|
-
file: () => import("../file-
|
|
56
|
-
iban: () => import("../iban-
|
|
57
|
-
"integration-toolkit": () => import("../integration-toolkit-
|
|
58
|
-
journey: () => import("../journey-
|
|
59
|
-
kanban: () => import("../kanban-
|
|
60
|
-
message: () => import("../message-
|
|
61
|
-
metering: () => import("../metering-
|
|
62
|
-
notes: () => import("../notes-
|
|
63
|
-
notification: () => import("../notification-
|
|
64
|
-
organization: () => import("../organization-
|
|
65
|
-
"partner-directory": () => import("../partner-directory-
|
|
66
|
-
permissions: () => import("../permissions-
|
|
67
|
-
pricing: () => import("../pricing-
|
|
68
|
-
"pricing-tier": () => import("../pricing-tier-
|
|
69
|
-
purpose: () => import("../purpose-
|
|
70
|
-
query: () => import("../query-
|
|
71
|
-
sandbox: () => import("../sandbox-
|
|
72
|
-
sharing: () => import("../sharing-
|
|
73
|
-
submission: () => import("../submission-
|
|
74
|
-
targeting: () => import("../targeting-
|
|
75
|
-
"template-variables": () => import("../template-variables-
|
|
76
|
-
user: () => import("../user-
|
|
77
|
-
"validation-rules": () => import("../validation-rules-
|
|
78
|
-
webhooks: () => import("../webhooks-
|
|
79
|
-
workflow: () => import("../workflow-
|
|
80
|
-
"workflow-definition": () => import("../workflow-definition-
|
|
34
|
+
upgrade: () => import("../upgrade-L2YSFIR2.js").then((m) => m.default),
|
|
35
|
+
"access-token": () => import("../access-token-WWE6BDJH.js").then((m) => m.default),
|
|
36
|
+
address: () => import("../address-EH3C4CVB.js").then((m) => m.default),
|
|
37
|
+
"address-suggestions": () => import("../address-suggestions-RRSLOBFW.js").then((m) => m.default),
|
|
38
|
+
"ai-agents": () => import("../ai-agents-HEDTH2EP.js").then((m) => m.default),
|
|
39
|
+
app: () => import("../app-TIFX5AYN.js").then((m) => m.default),
|
|
40
|
+
"audit-logs": () => import("../audit-logs-YFRK3EFU.js").then((m) => m.default),
|
|
41
|
+
automation: () => import("../automation-4DEE3TUI.js").then((m) => m.default),
|
|
42
|
+
billing: () => import("../billing-XX4VVOPI.js").then((m) => m.default),
|
|
43
|
+
"blueprint-manifest": () => import("../blueprint-manifest-V5MJ3GCA.js").then((m) => m.default),
|
|
44
|
+
"configuration-hub": () => import("../configuration-hub-ZSYHJZXF.js").then((m) => m.default),
|
|
45
|
+
consent: () => import("../consent-QICGZLMO.js").then((m) => m.default),
|
|
46
|
+
"customer-portal": () => import("../customer-portal-UCDUZO6G.js").then((m) => m.default),
|
|
47
|
+
dashboard: () => import("../dashboard-YL5C562L.js").then((m) => m.default),
|
|
48
|
+
"data-governance": () => import("../data-governance-4VMCRLDZ.js").then((m) => m.default),
|
|
49
|
+
deduplication: () => import("../deduplication-RKRS2COL.js").then((m) => m.default),
|
|
50
|
+
design: () => import("../design-CQWCY2IS.js").then((m) => m.default),
|
|
51
|
+
document: () => import("../document-JYWQBMSI.js").then((m) => m.default),
|
|
52
|
+
"email-settings": () => import("../email-settings-NG4J6IM6.js").then((m) => m.default),
|
|
53
|
+
"email-template": () => import("../email-template-GVI34ZOC.js").then((m) => m.default),
|
|
54
|
+
entity: () => import("../entity-AZTQCTNG.js").then((m) => m.default),
|
|
55
|
+
"entity-mapping": () => import("../entity-mapping-NN32XUJX.js").then((m) => m.default),
|
|
56
|
+
environments: () => import("../environments-3ASNXU73.js").then((m) => m.default),
|
|
57
|
+
"event-catalog": () => import("../event-catalog-JU7XOJLT.js").then((m) => m.default),
|
|
58
|
+
file: () => import("../file-YDLNXKZR.js").then((m) => m.default),
|
|
59
|
+
iban: () => import("../iban-7HDVKBUS.js").then((m) => m.default),
|
|
60
|
+
"integration-toolkit": () => import("../integration-toolkit-WBDJB76S.js").then((m) => m.default),
|
|
61
|
+
journey: () => import("../journey-RZ7UI5ZA.js").then((m) => m.default),
|
|
62
|
+
kanban: () => import("../kanban-7CZGNU52.js").then((m) => m.default),
|
|
63
|
+
message: () => import("../message-BFAKIAPX.js").then((m) => m.default),
|
|
64
|
+
metering: () => import("../metering-R4HXARRF.js").then((m) => m.default),
|
|
65
|
+
notes: () => import("../notes-MHH5OZ2E.js").then((m) => m.default),
|
|
66
|
+
notification: () => import("../notification-RPBIG3FC.js").then((m) => m.default),
|
|
67
|
+
organization: () => import("../organization-AUBBICVD.js").then((m) => m.default),
|
|
68
|
+
"partner-directory": () => import("../partner-directory-FYZJUNAW.js").then((m) => m.default),
|
|
69
|
+
permissions: () => import("../permissions-4TQQYZXO.js").then((m) => m.default),
|
|
70
|
+
pricing: () => import("../pricing-SPMVLPRL.js").then((m) => m.default),
|
|
71
|
+
"pricing-tier": () => import("../pricing-tier-7LVSXXMJ.js").then((m) => m.default),
|
|
72
|
+
purpose: () => import("../purpose-GVCQT7YJ.js").then((m) => m.default),
|
|
73
|
+
query: () => import("../query-5QIXDE32.js").then((m) => m.default),
|
|
74
|
+
sandbox: () => import("../sandbox-Q3XHXMFY.js").then((m) => m.default),
|
|
75
|
+
sharing: () => import("../sharing-SQJ355YL.js").then((m) => m.default),
|
|
76
|
+
submission: () => import("../submission-WJUI3BYW.js").then((m) => m.default),
|
|
77
|
+
targeting: () => import("../targeting-6QHPH3GP.js").then((m) => m.default),
|
|
78
|
+
"template-variables": () => import("../template-variables-WVV7Y6HO.js").then((m) => m.default),
|
|
79
|
+
user: () => import("../user-TB64MVPS.js").then((m) => m.default),
|
|
80
|
+
"validation-rules": () => import("../validation-rules-I3MUNH5H.js").then((m) => m.default),
|
|
81
|
+
webhooks: () => import("../webhooks-R2ZJHOWQ.js").then((m) => m.default),
|
|
82
|
+
workflow: () => import("../workflow-NBX7EDI7.js").then((m) => m.default),
|
|
83
|
+
"workflow-definition": () => import("../workflow-definition-R6VB7HO3.js").then((m) => m.default)
|
|
81
84
|
}
|
|
82
85
|
});
|
|
83
86
|
|
|
87
|
+
// src/lib/reorder-args.ts
|
|
88
|
+
var VALUE_TAKING_FLAGS = /* @__PURE__ */ new Set([
|
|
89
|
+
// long
|
|
90
|
+
"--token",
|
|
91
|
+
"--profile",
|
|
92
|
+
"--server",
|
|
93
|
+
"--jsonata",
|
|
94
|
+
"--definition",
|
|
95
|
+
// short
|
|
96
|
+
"-t",
|
|
97
|
+
"-s"
|
|
98
|
+
]);
|
|
99
|
+
var isFlag = (token) => {
|
|
100
|
+
if (token === "-" || token === "--") return false;
|
|
101
|
+
return token.startsWith("-");
|
|
102
|
+
};
|
|
103
|
+
var consumesNextToken = (token) => {
|
|
104
|
+
if (token.includes("=")) return false;
|
|
105
|
+
return VALUE_TAKING_FLAGS.has(token);
|
|
106
|
+
};
|
|
107
|
+
var hoistFlagsAfterSubcommand = (argv) => {
|
|
108
|
+
let firstPositionalIdx = -1;
|
|
109
|
+
for (let i = 0; i < argv.length; i++) {
|
|
110
|
+
const token = argv[i];
|
|
111
|
+
if (isFlag(token)) {
|
|
112
|
+
if (consumesNextToken(token)) i += 1;
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
if (token === "--") break;
|
|
116
|
+
firstPositionalIdx = i;
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
if (firstPositionalIdx <= 0) return argv.slice();
|
|
120
|
+
const leading = argv.slice(0, firstPositionalIdx);
|
|
121
|
+
const subcommand = argv[firstPositionalIdx];
|
|
122
|
+
const rest = argv.slice(firstPositionalIdx + 1);
|
|
123
|
+
return [subcommand, ...rest, ...leading];
|
|
124
|
+
};
|
|
125
|
+
|
|
84
126
|
// bin/epilot.ts
|
|
85
127
|
process.stdout.on("error", (err) => {
|
|
86
128
|
if (err.code === "EPIPE") process.exit(0);
|
|
@@ -90,7 +132,9 @@ process.stderr.on("error", (err) => {
|
|
|
90
132
|
if (err.code === "EPIPE") process.exit(0);
|
|
91
133
|
throw err;
|
|
92
134
|
});
|
|
93
|
-
var VERSION = true ? "0.1.
|
|
135
|
+
var VERSION = true ? "0.1.21" : (await null).default.version;
|
|
136
|
+
var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
|
|
137
|
+
process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
|
|
94
138
|
var args = process.argv.slice(2);
|
|
95
139
|
var completionsIdx = args.indexOf("--_completions");
|
|
96
140
|
if (completionsIdx >= 0) {
|
|
@@ -154,6 +198,10 @@ function printRootHelp() {
|
|
|
154
198
|
w(` ${GREEN}--profile${R} <name> Use a named profile ${DIM}(or EPILOT_PROFILE)${R}
|
|
155
199
|
`);
|
|
156
200
|
w(` ${GREEN}-s, --server${R} <url> Override server base URL
|
|
201
|
+
`);
|
|
202
|
+
w(` ${GREEN}--use-dev${R} Target dev environment
|
|
203
|
+
`);
|
|
204
|
+
w(` ${GREEN}--use-staging${R} Target staging environment
|
|
157
205
|
`);
|
|
158
206
|
w(` ${GREEN}--json${R} Output raw JSON (no formatting)
|
|
159
207
|
`);
|
|
@@ -190,6 +238,8 @@ function printRootHelp() {
|
|
|
190
238
|
w(` ${CYAN}auth logout${R} Remove stored credentials
|
|
191
239
|
`);
|
|
192
240
|
w(` ${CYAN}profile${R} Manage named profiles
|
|
241
|
+
`);
|
|
242
|
+
w(` ${CYAN}config${R} Manage CLI configuration
|
|
193
243
|
`);
|
|
194
244
|
w(` ${CYAN}completion${R} Generate shell completion scripts
|
|
195
245
|
`);
|
|
@@ -220,6 +270,10 @@ function printRootHelp() {
|
|
|
220
270
|
w(` ${YELLOW}$${R} epilot entity searchEntities --jsonata 'results[0]._title'
|
|
221
271
|
`);
|
|
222
272
|
w(` ${YELLOW}$${R} echo '{"q":"*"}' | epilot entity searchEntities
|
|
273
|
+
`);
|
|
274
|
+
w(` ${YELLOW}$${R} epilot entity searchEntities --use-dev ${DIM}# target dev environment${R}
|
|
275
|
+
`);
|
|
276
|
+
w(` ${YELLOW}$${R} epilot config set stage dev ${DIM}# persist dev as default${R}
|
|
223
277
|
`);
|
|
224
278
|
w(`
|
|
225
279
|
`);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-RSA7K5HB.js";
|
|
6
|
-
import "./chunk-PDMWUCWD.js";
|
|
4
|
+
} from "./chunk-5ZFPCFKV.js";
|
|
7
5
|
import "./chunk-IOLKUHUB.js";
|
|
6
|
+
import "./chunk-M3M3C5WH.js";
|
|
7
|
+
import "./chunk-YHQA2AVG.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/apis/blueprint-manifest.ts
|
|
@@ -19,6 +19,8 @@ var blueprint_manifest_default = defineCommand({
|
|
|
19
19
|
include: { type: "boolean", alias: "i", description: "Include response headers" },
|
|
20
20
|
definition: { type: "string", description: "Override OpenAPI spec file/URL" },
|
|
21
21
|
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
22
|
+
"use-dev": { type: "boolean", description: "Target dev environment" },
|
|
23
|
+
"use-staging": { type: "boolean", description: "Target staging environment" },
|
|
22
24
|
profile: { type: "string", description: "Use a named profile" },
|
|
23
25
|
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
24
26
|
json: { type: "boolean", description: "Output raw JSON" },
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
resolveToken
|
|
4
|
-
} from "./chunk-RSA7K5HB.js";
|
|
5
|
-
import {
|
|
6
|
-
getResolvedProfile
|
|
7
|
-
} from "./chunk-PDMWUCWD.js";
|
|
8
2
|
import {
|
|
9
3
|
formatOperationsTable,
|
|
10
4
|
isInteractive,
|
|
11
5
|
pickOperation,
|
|
12
6
|
promptParam
|
|
13
7
|
} from "./chunk-IOLKUHUB.js";
|
|
8
|
+
import {
|
|
9
|
+
resolveToken
|
|
10
|
+
} from "./chunk-M3M3C5WH.js";
|
|
11
|
+
import {
|
|
12
|
+
getResolvedProfile,
|
|
13
|
+
getStage
|
|
14
|
+
} from "./chunk-YHQA2AVG.js";
|
|
14
15
|
import {
|
|
15
16
|
BG_GREEN,
|
|
16
17
|
BG_RED,
|
|
@@ -378,6 +379,15 @@ var formatResponse = async (response, options) => {
|
|
|
378
379
|
import { mock } from "mock-json-schema";
|
|
379
380
|
import dereferenceJsonSchema from "dereference-json-schema";
|
|
380
381
|
var OpenAPIClientAxios = OpenAPIClientAxiosModule.default ?? OpenAPIClientAxiosModule;
|
|
382
|
+
var toStageUrl = (prodUrl, stage) => {
|
|
383
|
+
if (stage === "prod") return prodUrl;
|
|
384
|
+
return prodUrl.replace(".sls.epilot.io", `.${stage}.sls.epilot.io`);
|
|
385
|
+
};
|
|
386
|
+
var resolveStage = (args) => {
|
|
387
|
+
if (args["use-dev"]) return "dev";
|
|
388
|
+
if (args["use-staging"]) return "staging";
|
|
389
|
+
return getStage() ?? "prod";
|
|
390
|
+
};
|
|
381
391
|
var extractOperations = (spec) => {
|
|
382
392
|
const operations = [];
|
|
383
393
|
for (const [path, methods] of Object.entries(spec.paths ?? {})) {
|
|
@@ -530,6 +540,10 @@ ${BOLD}epilot ${apiName} ${operationId}${RESET}`);
|
|
|
530
540
|
w(` ${GREEN}--profile${RESET} <name> Use a named profile
|
|
531
541
|
`);
|
|
532
542
|
w(` ${GREEN}-s, --server${RESET} <url> Override server base URL
|
|
543
|
+
`);
|
|
544
|
+
w(` ${GREEN}--use-dev${RESET} Target dev environment
|
|
545
|
+
`);
|
|
546
|
+
w(` ${GREEN}--use-staging${RESET} Target staging environment
|
|
533
547
|
`);
|
|
534
548
|
w(` ${GREEN}-i, --include${RESET} Include response headers in output
|
|
535
549
|
`);
|
|
@@ -796,6 +810,14 @@ ${BOLD}Available operations:${RESET}
|
|
|
796
810
|
if (serverOverride) {
|
|
797
811
|
const specDoc = spec;
|
|
798
812
|
specDoc.servers = [{ url: serverOverride }];
|
|
813
|
+
} else {
|
|
814
|
+
const stage = resolveStage(args);
|
|
815
|
+
if (stage !== "prod") {
|
|
816
|
+
const specDoc = spec;
|
|
817
|
+
if (specDoc.servers?.length) {
|
|
818
|
+
specDoc.servers = specDoc.servers.map((s) => ({ ...s, url: toStageUrl(s.url, stage) }));
|
|
819
|
+
}
|
|
820
|
+
}
|
|
799
821
|
}
|
|
800
822
|
const api = new OpenAPIClientAxios({
|
|
801
823
|
definition: spec,
|
|
@@ -58,6 +58,15 @@ var deleteProfile = (name) => {
|
|
|
58
58
|
saveProfiles(config);
|
|
59
59
|
return true;
|
|
60
60
|
};
|
|
61
|
+
var getStage = () => {
|
|
62
|
+
const config = loadProfiles();
|
|
63
|
+
return config.stage;
|
|
64
|
+
};
|
|
65
|
+
var setStage = (stage) => {
|
|
66
|
+
const config = loadProfiles();
|
|
67
|
+
config.stage = stage;
|
|
68
|
+
saveProfiles(config);
|
|
69
|
+
};
|
|
61
70
|
var listProfiles = () => {
|
|
62
71
|
const config = loadProfiles();
|
|
63
72
|
return Object.entries(config.profiles).map(([name, profile]) => ({
|
|
@@ -74,5 +83,7 @@ export {
|
|
|
74
83
|
setActiveProfile,
|
|
75
84
|
upsertProfile,
|
|
76
85
|
deleteProfile,
|
|
86
|
+
getStage,
|
|
87
|
+
setStage,
|
|
77
88
|
listProfiles
|
|
78
89
|
};
|