propelix-cli 0.1.0-dev1 → 0.1.0-dev2

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 (2) hide show
  1. package/dist/index.cjs +26 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -19677,6 +19677,11 @@ var PROJECT_QUERY = `
19677
19677
  }
19678
19678
  }
19679
19679
  `;
19680
+ var PRESIGN_IMAGE_URL_QUERY = `
19681
+ query PresignImageUrl($imageUrl: String!) {
19682
+ presignImageUrl(imageUrl: $imageUrl)
19683
+ }
19684
+ `;
19680
19685
  var AGENTS_QUERY = `
19681
19686
  query Agents($projectID: ID!, $pagination: PaginationInput!, $filter: AgentsFilter) {
19682
19687
  agents(projectID: $projectID, pagination: $pagination, filter: $filter) {
@@ -20523,6 +20528,24 @@ function registerGuardrailCommand(program3) {
20523
20528
  });
20524
20529
  }
20525
20530
 
20531
+ // src/commands/image.ts
20532
+ function registerImageCommand(program3) {
20533
+ const image = program3.command("image").description("Image operations");
20534
+ image.command("presign").description("Get a presigned URL for an S3 image (valid for 1 hour)").argument("<imageUrl>", "S3 image URL (from message imageURLs or log data)").action(async (imageUrl) => {
20535
+ try {
20536
+ const parentOpts = program3.opts();
20537
+ const config = requireConfig(parentOpts);
20538
+ const client = createGraphQLClient(config);
20539
+ const data = await client.request(PRESIGN_IMAGE_URL_QUERY, {
20540
+ imageUrl
20541
+ });
20542
+ console.log(data.presignImageUrl);
20543
+ } catch (error) {
20544
+ handleError(error);
20545
+ }
20546
+ });
20547
+ }
20548
+
20526
20549
  // src/commands/log.ts
20527
20550
  function registerLogCommand(program3) {
20528
20551
  const log = program3.command("log").description("Log operations");
@@ -21055,7 +21078,7 @@ function registerTestCommand(program3) {
21055
21078
 
21056
21079
  // src/index.ts
21057
21080
  var program2 = new Command();
21058
- program2.name("propelix").description("Propelix CLI").version("0.1.0-dev1").option("--base-url <url>", "API base URL (default: https://propelix.ai)").option("--token <token>", "Auth token (overrides stored config)").option("--project-id <id>", "Project ID (overrides stored config)").option("--insecure", "Disable TLS certificate verification (for local dev)").option("--json", "Output as JSON (deprecated, use --format json)").option("--format <fmt>", "Output format: json (default) | table");
21081
+ program2.name("propelix").description("Propelix CLI").version("0.1.0-dev2").option("--base-url <url>", "API base URL (default: https://propelix.ai)").option("--token <token>", "Auth token (overrides stored config)").option("--project-id <id>", "Project ID (overrides stored config)").option("--insecure", "Disable TLS certificate verification (for local dev)").option("--json", "Output as JSON (deprecated, use --format json)").option("--format <fmt>", "Output format: json (default) | table");
21059
21082
  program2.hook("preAction", () => {
21060
21083
  if (program2.opts().insecure) {
21061
21084
  process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
@@ -21070,10 +21093,11 @@ registerPromptCommand(program2);
21070
21093
  registerConversationCommand(program2);
21071
21094
  registerLogCommand(program2);
21072
21095
  registerGuardrailCommand(program2);
21096
+ registerImageCommand(program2);
21073
21097
  registerChatCommand(program2);
21074
21098
  registerTestCommand(program2);
21075
21099
  program2.command("version").description("Print version number").action(() => {
21076
- console.log("0.1.0-dev1");
21100
+ console.log("0.1.0-dev2");
21077
21101
  });
21078
21102
  program2.command("whoami").description("Show the currently authenticated user").action(async () => {
21079
21103
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propelix-cli",
3
- "version": "0.1.0-dev1",
3
+ "version": "0.1.0-dev2",
4
4
  "description": "CLI for Propelix",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {