propelix-cli 0.0.1-dev2 → 0.0.1-dev4
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/dist/index.cjs +2 -6
- package/package.json +5 -3
package/dist/index.cjs
CHANGED
|
@@ -17072,10 +17072,6 @@ var parseRequestArgs = (documentOrOptions, variables, requestHeaders) => {
|
|
|
17072
17072
|
|
|
17073
17073
|
// src/lib/client.ts
|
|
17074
17074
|
function createGraphQLClient(config) {
|
|
17075
|
-
const url = new URL(`${config.baseUrl}/api/graphql`);
|
|
17076
|
-
if (url.hostname.endsWith(".orb.local") || url.hostname === "localhost" || url.hostname === "127.0.0.1") {
|
|
17077
|
-
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
|
|
17078
|
-
}
|
|
17079
17075
|
return new GraphQLClient(`${config.baseUrl}/api/graphql`, {
|
|
17080
17076
|
headers: { Authorization: `Bearer ${config.token}` }
|
|
17081
17077
|
});
|
|
@@ -17095,10 +17091,10 @@ var ME_QUERY = `
|
|
|
17095
17091
|
|
|
17096
17092
|
// src/index.ts
|
|
17097
17093
|
var program2 = new Command();
|
|
17098
|
-
program2.name("propelix").description("Propelix CLI").version("0.0.1-
|
|
17094
|
+
program2.name("propelix").description("Propelix CLI").version("0.0.1-dev4").option("--base-url <url>", "API base URL (default: https://app.promptitude.ai)").option("--token <token>", "Auth token (overrides stored config)").option("--json", "Output as JSON");
|
|
17099
17095
|
registerAuthCommand(program2);
|
|
17100
17096
|
program2.command("version").description("Print version number").action(() => {
|
|
17101
|
-
console.log("0.0.1-
|
|
17097
|
+
console.log("0.0.1-dev4");
|
|
17102
17098
|
});
|
|
17103
17099
|
program2.command("whoami").description("Show the currently authenticated user").action(async () => {
|
|
17104
17100
|
try {
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "propelix-cli",
|
|
3
|
-
"version": "0.0.1-
|
|
3
|
+
"version": "0.0.1-dev4",
|
|
4
4
|
"description": "CLI for Propelix",
|
|
5
|
-
"engines": {
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=18"
|
|
7
|
+
},
|
|
6
8
|
"license": "UNLICENSED",
|
|
7
9
|
"bin": {
|
|
8
|
-
"propelix": "
|
|
10
|
+
"propelix": "dist/index.cjs"
|
|
9
11
|
},
|
|
10
12
|
"files": [
|
|
11
13
|
"dist"
|