@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.
- package/.turbo/turbo-build.log +17 -0
- package/dist/auth-ET55P6PZ.js +6 -0
- package/dist/chunk-RYX22XBE.js +18 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1129 -0
- package/package.json +22 -0
- package/src/commands/a2a.ts +110 -0
- package/src/commands/accounts.ts +85 -0
- package/src/commands/acp.ts +104 -0
- package/src/commands/agent-wallets.ts +127 -0
- package/src/commands/agents.ts +110 -0
- package/src/commands/ap2.ts +134 -0
- package/src/commands/env.ts +66 -0
- package/src/commands/merchants.ts +43 -0
- package/src/commands/mpp.ts +144 -0
- package/src/commands/settlement.ts +63 -0
- package/src/commands/support.ts +110 -0
- package/src/commands/ucp.ts +245 -0
- package/src/commands/wallets.ts +158 -0
- package/src/commands/x402.ts +131 -0
- package/src/index.ts +38 -0
- package/src/utils/auth.ts +14 -0
- package/src/utils/output.ts +8 -0
- package/tsconfig.json +25 -0
|
@@ -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,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
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|