@epilot/cli 0.1.12 → 0.1.15

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "../chunk-F6KWKTQJ.js";
4
+ } from "../chunk-UOQMCAJN.js";
5
5
 
6
6
  // bin/epilot.ts
7
7
  import { runMain } from "citty";
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.12",
14
+ version: "0.1.15",
15
15
  description: "CLI for epilot APIs"
16
16
  },
17
17
  args: {
@@ -27,8 +27,8 @@ var main = defineCommand({
27
27
  subCommands: {
28
28
  auth: () => import("../auth-AAF6Z5WZ.js").then((m) => m.default),
29
29
  profile: () => import("../profile-EK4HSQ57.js").then((m) => m.default),
30
- completion: () => import("../completion-QP4IYMVI.js").then((m) => m.default),
31
- upgrade: () => import("../upgrade-SYSSIAQC.js").then((m) => m.default),
30
+ completion: () => import("../completion-J7SWF5AO.js").then((m) => m.default),
31
+ upgrade: () => import("../upgrade-6Z53BXHL.js").then((m) => m.default),
32
32
  "access-token": () => import("../access-token-CIM4RLBP.js").then((m) => m.default),
33
33
  address: () => import("../address-EDRTUWTP.js").then((m) => m.default),
34
34
  "address-suggestions": () => import("../address-suggestions-S5WEST2N.js").then((m) => m.default),
@@ -38,6 +38,7 @@ var main = defineCommand({
38
38
  automation: () => import("../automation-LS6MVLP2.js").then((m) => m.default),
39
39
  billing: () => import("../billing-KVYFUKZK.js").then((m) => m.default),
40
40
  "blueprint-manifest": () => import("../blueprint-manifest-W4ZGJD2Z.js").then((m) => m.default),
41
+ "configuration-hub": () => import("../configuration-hub-Y7W22GBW.js").then((m) => m.default),
41
42
  consent: () => import("../consent-M4QB2HPM.js").then((m) => m.default),
42
43
  "customer-portal": () => import("../customer-portal-SVO2YCXA.js").then((m) => m.default),
43
44
  dashboard: () => import("../dashboard-CYCXIX74.js").then((m) => m.default),
@@ -66,6 +67,7 @@ var main = defineCommand({
66
67
  pricing: () => import("../pricing-KNYSULCW.js").then((m) => m.default),
67
68
  "pricing-tier": () => import("../pricing-tier-OCHP6SHT.js").then((m) => m.default),
68
69
  purpose: () => import("../purpose-NGM42XWB.js").then((m) => m.default),
70
+ query: () => import("../query-IYW42QLU.js").then((m) => m.default),
69
71
  sandbox: () => import("../sandbox-YX3VVAQG.js").then((m) => m.default),
70
72
  sharing: () => import("../sharing-X5U53KSU.js").then((m) => m.default),
71
73
  submission: () => import("../submission-YOWVSZNA.js").then((m) => m.default),
@@ -88,11 +90,11 @@ process.stderr.on("error", (err) => {
88
90
  if (err.code === "EPIPE") process.exit(0);
89
91
  throw err;
90
92
  });
91
- var VERSION = true ? "0.1.12" : (await null).default.version;
93
+ var VERSION = true ? "0.1.15" : (await null).default.version;
92
94
  var args = process.argv.slice(2);
93
95
  var completionsIdx = args.indexOf("--_completions");
94
96
  if (completionsIdx >= 0) {
95
- const { handleCompletions } = await import("../completion-QP4IYMVI.js");
97
+ const { handleCompletions } = await import("../completion-J7SWF5AO.js");
96
98
  handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
97
99
  process.exit(0);
98
100
  }
@@ -151,7 +151,7 @@ var API_LIST = [
151
151
  kebabName: "blueprint-manifest",
152
152
  title: "Blueprint Manifest API",
153
153
  serverUrl: "https://blueprint-manifest.sls.epilot.io",
154
- operationCount: 45,
154
+ operationCount: 48,
155
155
  operationIds: [
156
156
  "getJob",
157
157
  "createExport",
@@ -191,15 +191,26 @@ var API_LIST = [
191
191
  "cancelBlueprintJob",
192
192
  "getMarketplaceListing",
193
193
  "createMarketplaceListing",
194
+ "listMarketplaceListings",
194
195
  "getMarketplaceListingById",
195
196
  "updateMarketplaceListing",
196
197
  "deleteMarketplaceListing",
197
198
  "listMarketplaceListingVersions",
198
199
  "createMarketplaceListingVersion",
199
200
  "updateMarketplaceListingVersion",
200
- "publishMarketplaceListingVersion"
201
+ "publishMarketplaceListingVersion",
202
+ "installBlueprintV3",
203
+ "getBlueprintLineageV3"
201
204
  ]
202
205
  },
206
+ {
207
+ apiName: "configurationHub",
208
+ kebabName: "configuration-hub",
209
+ title: "Configuration Hub API",
210
+ serverUrl: "https://configuration-hub.dev.sls.epilot.io",
211
+ operationCount: 3,
212
+ operationIds: ["listConfigTypes", "listConfigs", "getConfigDependencies"]
213
+ },
203
214
  {
204
215
  apiName: "consent",
205
216
  kebabName: "consent",
@@ -607,10 +618,13 @@ var API_LIST = [
607
618
  kebabName: "environments",
608
619
  title: "Environments API",
609
620
  serverUrl: "https://environments.sls.epilot.io",
610
- operationCount: 5,
621
+ operationCount: 8,
611
622
  operationIds: [
612
623
  "listEnvironmentVariables",
613
624
  "createEnvironmentVariable",
625
+ "listEnvironmentGroups",
626
+ "putEnvironmentGroup",
627
+ "deleteEnvironmentGroup",
614
628
  "getEnvironmentVariable",
615
629
  "updateEnvironmentVariable",
616
630
  "deleteEnvironmentVariable"
@@ -1021,6 +1035,36 @@ var API_LIST = [
1021
1035
  "deletePurpose"
1022
1036
  ]
1023
1037
  },
1038
+ {
1039
+ apiName: "query",
1040
+ kebabName: "query",
1041
+ title: "Query API",
1042
+ serverUrl: "https://query.sls.epilot.io",
1043
+ operationCount: 21,
1044
+ operationIds: [
1045
+ "getAllViews",
1046
+ "createOrUpdateView",
1047
+ "getView",
1048
+ "getAllRelationships",
1049
+ "createOrUpdateRelationship",
1050
+ "listAvailableDatasetsV2",
1051
+ "executeEntitiesQuery",
1052
+ "executeWorkflowsQuery",
1053
+ "executeAutomationQuery",
1054
+ "listWorkflowPhasesByDefinitionId",
1055
+ "listWorkflowDefinitions",
1056
+ "listPhaseNames",
1057
+ "listDatasets",
1058
+ "executeQuery",
1059
+ "generateCredentialsV2",
1060
+ "listCredentialsV2",
1061
+ "revokeCredentialsV2",
1062
+ "executeQueryV2",
1063
+ "getSemanticModel",
1064
+ "autocomplete",
1065
+ "workflowsAutocomplete"
1066
+ ]
1067
+ },
1024
1068
  {
1025
1069
  apiName: "sandbox",
1026
1070
  kebabName: "sandbox",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "./chunk-F6KWKTQJ.js";
4
+ } from "./chunk-UOQMCAJN.js";
5
5
  import {
6
6
  DIM,
7
7
  GREEN,
@@ -0,0 +1,54 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ callApi
4
+ } from "./chunk-BYAEI4Z2.js";
5
+ import "./chunk-RSA7K5HB.js";
6
+ import "./chunk-PDMWUCWD.js";
7
+ import "./chunk-IOLKUHUB.js";
8
+ import "./chunk-7ZQ666ZQ.js";
9
+
10
+ // src/commands/apis/configuration-hub.ts
11
+ import { defineCommand } from "citty";
12
+ var configuration_hub_default = defineCommand({
13
+ meta: { name: "configuration-hub", description: "Configuration Hub API" },
14
+ args: {
15
+ operation: { type: "positional", description: "operationId to call", required: false },
16
+ param: { type: "string", alias: "p", description: "Parameter key=value" },
17
+ data: { type: "string", alias: "d", description: "Request body JSON" },
18
+ header: { type: "string", alias: "H", description: "Custom header" },
19
+ include: { type: "boolean", alias: "i", description: "Include response headers" },
20
+ definition: { type: "string", description: "Override OpenAPI spec file/URL" },
21
+ server: { type: "string", alias: "s", description: "Override server base URL" },
22
+ profile: { type: "string", description: "Use a named profile" },
23
+ token: { type: "string", alias: "t", description: "Bearer token" },
24
+ json: { type: "boolean", description: "Output raw JSON" },
25
+ verbose: { type: "boolean", alias: "v", description: "Verbose output" },
26
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
27
+ interactive: { type: "boolean", description: "Interactive mode" },
28
+ jsonata: { type: "string", description: "JSONata expression to transform response" },
29
+ _ophelp: { type: "boolean", description: "Show operation help", required: false },
30
+ _apihelp: { type: "boolean", description: "Show API help", required: false }
31
+ },
32
+ run: ({ args, rawArgs }) => {
33
+ const positionalArgs = [];
34
+ if (args.operation && rawArgs) {
35
+ const opIdx = rawArgs.indexOf(args.operation);
36
+ if (opIdx >= 0) {
37
+ for (let i = opIdx + 1; i < rawArgs.length; i++) {
38
+ const arg = rawArgs[i];
39
+ if (arg.startsWith("-")) break;
40
+ positionalArgs.push(arg);
41
+ }
42
+ }
43
+ }
44
+ return callApi("configuration-hub", {
45
+ ...args,
46
+ help: !!args._ophelp,
47
+ _apihelp: !!args._apihelp,
48
+ _args: positionalArgs
49
+ });
50
+ }
51
+ });
52
+ export {
53
+ configuration_hub_default as default
54
+ };
@@ -0,0 +1,54 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ callApi
4
+ } from "./chunk-BYAEI4Z2.js";
5
+ import "./chunk-RSA7K5HB.js";
6
+ import "./chunk-PDMWUCWD.js";
7
+ import "./chunk-IOLKUHUB.js";
8
+ import "./chunk-7ZQ666ZQ.js";
9
+
10
+ // src/commands/apis/query.ts
11
+ import { defineCommand } from "citty";
12
+ var query_default = defineCommand({
13
+ meta: { name: "query", description: "Query API" },
14
+ args: {
15
+ operation: { type: "positional", description: "operationId to call", required: false },
16
+ param: { type: "string", alias: "p", description: "Parameter key=value" },
17
+ data: { type: "string", alias: "d", description: "Request body JSON" },
18
+ header: { type: "string", alias: "H", description: "Custom header" },
19
+ include: { type: "boolean", alias: "i", description: "Include response headers" },
20
+ definition: { type: "string", description: "Override OpenAPI spec file/URL" },
21
+ server: { type: "string", alias: "s", description: "Override server base URL" },
22
+ profile: { type: "string", description: "Use a named profile" },
23
+ token: { type: "string", alias: "t", description: "Bearer token" },
24
+ json: { type: "boolean", description: "Output raw JSON" },
25
+ verbose: { type: "boolean", alias: "v", description: "Verbose output" },
26
+ guided: { type: "boolean", description: "Prompt for all parameters interactively" },
27
+ interactive: { type: "boolean", description: "Interactive mode" },
28
+ jsonata: { type: "string", description: "JSONata expression to transform response" },
29
+ _ophelp: { type: "boolean", description: "Show operation help", required: false },
30
+ _apihelp: { type: "boolean", description: "Show API help", required: false }
31
+ },
32
+ run: ({ args, rawArgs }) => {
33
+ const positionalArgs = [];
34
+ if (args.operation && rawArgs) {
35
+ const opIdx = rawArgs.indexOf(args.operation);
36
+ if (opIdx >= 0) {
37
+ for (let i = opIdx + 1; i < rawArgs.length; i++) {
38
+ const arg = rawArgs[i];
39
+ if (arg.startsWith("-")) break;
40
+ positionalArgs.push(arg);
41
+ }
42
+ }
43
+ }
44
+ return callApi("query", {
45
+ ...args,
46
+ help: !!args._ophelp,
47
+ _apihelp: !!args._apihelp,
48
+ _args: positionalArgs
49
+ });
50
+ }
51
+ });
52
+ export {
53
+ query_default as default
54
+ };
@@ -72,7 +72,7 @@ ${GREEN}${BOLD}Upgraded to @epilot/cli@${latest}${RESET}
72
72
  }
73
73
  });
74
74
  var getCurrentVersion = () => {
75
- if (true) return "0.1.12";
75
+ if (true) return "0.1.15";
76
76
  try {
77
77
  const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
78
78
  encoding: "utf-8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/cli",
3
- "version": "0.1.12",
3
+ "version": "0.1.15",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {
@@ -11,7 +11,9 @@
11
11
  },
12
12
  "scripts": {
13
13
  "build": "pnpm generate && tsup",
14
- "generate": "tsx scripts/generate.ts",
14
+ "generate": "tsx scripts/generate.ts && pnpm lint:fix",
15
+ "lint": "biome check src",
16
+ "lint:fix": "biome check --write src",
15
17
  "dev": "tsx bin/epilot.ts",
16
18
  "test": "vitest run",
17
19
  "typecheck": "tsc --noEmit",