@sly_ai/cli 0.1.0

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.
@@ -0,0 +1,17 @@
1
+
2
+ > @sly/cli@0.1.0 build /Users/haxaco/Dev/PayOS/packages/cli
3
+ > tsup src/index.ts --format esm --dts --clean
4
+
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.1
8
+ CLI Target: es2020
9
+ CLI Cleaning output folder
10
+ ESM Build start
11
+ ESM dist/auth-ET55P6PZ.js 81.00 B
12
+ ESM dist/chunk-RYX22XBE.js 406.00 B
13
+ ESM dist/index.js 50.75 KB
14
+ ESM ⚡️ Build success in 245ms
15
+ DTS Build start
16
+ DTS ⚡️ Build success in 5759ms
17
+ DTS dist/index.d.ts 20.00 B
@@ -0,0 +1,6 @@
1
+ import {
2
+ createClient
3
+ } from "./chunk-RYX22XBE.js";
4
+ export {
5
+ createClient
6
+ };
@@ -0,0 +1,18 @@
1
+ // src/utils/auth.ts
2
+ import { Sly } from "@sly/sdk";
3
+ function createClient() {
4
+ const apiKey = process.env.SLY_API_KEY;
5
+ if (!apiKey) {
6
+ console.error("Error: SLY_API_KEY environment variable is required");
7
+ console.error("Set it with: export SLY_API_KEY=pk_test_...");
8
+ process.exit(1);
9
+ }
10
+ return new Sly({
11
+ apiKey,
12
+ apiUrl: process.env.SLY_API_URL
13
+ });
14
+ }
15
+
16
+ export {
17
+ createClient
18
+ };
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node