@fastxyz/cli 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -47,11 +47,11 @@ fast pay https://api.example.com/resource
47
47
  Install the Copilot CLI skill to let AI agents operate the `fast` CLI on your behalf:
48
48
 
49
49
  ```bash
50
- copilot plugin install fastxyz/fast-sdk:skills
50
+ npx skills add https://github.com/fastxyz/fast-sdk/tree/main/skills
51
51
  ```
52
52
 
53
53
  The skill teaches the agent how to bootstrap, install, and use every `fast` command — including bridging flows, x402 payments, and JSON-mode scripting.
54
54
 
55
55
  ## Documentation
56
56
 
57
- Full command reference and workflows: [`skills/fast/SKILL.md`](../../skills/fast/SKILL.md)
57
+ Full command reference and workflows: [`skills/fast/SKILL.md`](https://github.com/fastxyz/fast-sdk/tree/main/skills/fast/SKILL.md)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,37 @@
1
+ CREATE TABLE `accounts` (
2
+ `name` text PRIMARY KEY NOT NULL,
3
+ `fast_address` text NOT NULL,
4
+ `evm_address` text NOT NULL,
5
+ `encrypted_key` blob NOT NULL,
6
+ `encrypted` integer DEFAULT true NOT NULL,
7
+ `is_default` integer DEFAULT false NOT NULL,
8
+ `created_at` text NOT NULL
9
+ );
10
+ --> statement-breakpoint
11
+ CREATE TABLE `custom_networks` (
12
+ `name` text PRIMARY KEY NOT NULL,
13
+ `config` text NOT NULL
14
+ );
15
+ --> statement-breakpoint
16
+ CREATE TABLE `history` (
17
+ `hash` text PRIMARY KEY NOT NULL,
18
+ `type` text DEFAULT 'transfer' NOT NULL,
19
+ `from` text NOT NULL,
20
+ `to` text NOT NULL,
21
+ `amount` text NOT NULL,
22
+ `formatted` text NOT NULL,
23
+ `token_name` text NOT NULL,
24
+ `token_id` text NOT NULL,
25
+ `network` text NOT NULL,
26
+ `status` text NOT NULL,
27
+ `timestamp` text NOT NULL,
28
+ `explorer_url` text,
29
+ `route` text DEFAULT 'fast' NOT NULL,
30
+ `chain_id` integer
31
+ );
32
+ --> statement-breakpoint
33
+ CREATE INDEX `idx_history_timestamp` ON `history` (`timestamp`);--> statement-breakpoint
34
+ CREATE TABLE `metadata` (
35
+ `key` text PRIMARY KEY NOT NULL,
36
+ `value` text NOT NULL
37
+ );
@@ -0,0 +1,245 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "33abcd0d-44c7-4dbd-8432-da30cf08ca6d",
5
+ "prevId": "00000000-0000-0000-0000-000000000000",
6
+ "tables": {
7
+ "accounts": {
8
+ "name": "accounts",
9
+ "columns": {
10
+ "name": {
11
+ "name": "name",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "fast_address": {
18
+ "name": "fast_address",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "evm_address": {
25
+ "name": "evm_address",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "encrypted_key": {
32
+ "name": "encrypted_key",
33
+ "type": "blob",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "encrypted": {
39
+ "name": "encrypted",
40
+ "type": "integer",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false,
44
+ "default": true
45
+ },
46
+ "is_default": {
47
+ "name": "is_default",
48
+ "type": "integer",
49
+ "primaryKey": false,
50
+ "notNull": true,
51
+ "autoincrement": false,
52
+ "default": false
53
+ },
54
+ "created_at": {
55
+ "name": "created_at",
56
+ "type": "text",
57
+ "primaryKey": false,
58
+ "notNull": true,
59
+ "autoincrement": false
60
+ }
61
+ },
62
+ "indexes": {},
63
+ "foreignKeys": {},
64
+ "compositePrimaryKeys": {},
65
+ "uniqueConstraints": {},
66
+ "checkConstraints": {}
67
+ },
68
+ "custom_networks": {
69
+ "name": "custom_networks",
70
+ "columns": {
71
+ "name": {
72
+ "name": "name",
73
+ "type": "text",
74
+ "primaryKey": true,
75
+ "notNull": true,
76
+ "autoincrement": false
77
+ },
78
+ "config": {
79
+ "name": "config",
80
+ "type": "text",
81
+ "primaryKey": false,
82
+ "notNull": true,
83
+ "autoincrement": false
84
+ }
85
+ },
86
+ "indexes": {},
87
+ "foreignKeys": {},
88
+ "compositePrimaryKeys": {},
89
+ "uniqueConstraints": {},
90
+ "checkConstraints": {}
91
+ },
92
+ "history": {
93
+ "name": "history",
94
+ "columns": {
95
+ "hash": {
96
+ "name": "hash",
97
+ "type": "text",
98
+ "primaryKey": true,
99
+ "notNull": true,
100
+ "autoincrement": false
101
+ },
102
+ "type": {
103
+ "name": "type",
104
+ "type": "text",
105
+ "primaryKey": false,
106
+ "notNull": true,
107
+ "autoincrement": false,
108
+ "default": "'transfer'"
109
+ },
110
+ "from": {
111
+ "name": "from",
112
+ "type": "text",
113
+ "primaryKey": false,
114
+ "notNull": true,
115
+ "autoincrement": false
116
+ },
117
+ "to": {
118
+ "name": "to",
119
+ "type": "text",
120
+ "primaryKey": false,
121
+ "notNull": true,
122
+ "autoincrement": false
123
+ },
124
+ "amount": {
125
+ "name": "amount",
126
+ "type": "text",
127
+ "primaryKey": false,
128
+ "notNull": true,
129
+ "autoincrement": false
130
+ },
131
+ "formatted": {
132
+ "name": "formatted",
133
+ "type": "text",
134
+ "primaryKey": false,
135
+ "notNull": true,
136
+ "autoincrement": false
137
+ },
138
+ "token_name": {
139
+ "name": "token_name",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": true,
143
+ "autoincrement": false
144
+ },
145
+ "token_id": {
146
+ "name": "token_id",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": true,
150
+ "autoincrement": false
151
+ },
152
+ "network": {
153
+ "name": "network",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": true,
157
+ "autoincrement": false
158
+ },
159
+ "status": {
160
+ "name": "status",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": true,
164
+ "autoincrement": false
165
+ },
166
+ "timestamp": {
167
+ "name": "timestamp",
168
+ "type": "text",
169
+ "primaryKey": false,
170
+ "notNull": true,
171
+ "autoincrement": false
172
+ },
173
+ "explorer_url": {
174
+ "name": "explorer_url",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": false,
178
+ "autoincrement": false
179
+ },
180
+ "route": {
181
+ "name": "route",
182
+ "type": "text",
183
+ "primaryKey": false,
184
+ "notNull": true,
185
+ "autoincrement": false,
186
+ "default": "'fast'"
187
+ },
188
+ "chain_id": {
189
+ "name": "chain_id",
190
+ "type": "integer",
191
+ "primaryKey": false,
192
+ "notNull": false,
193
+ "autoincrement": false
194
+ }
195
+ },
196
+ "indexes": {
197
+ "idx_history_timestamp": {
198
+ "name": "idx_history_timestamp",
199
+ "columns": [
200
+ "timestamp"
201
+ ],
202
+ "isUnique": false
203
+ }
204
+ },
205
+ "foreignKeys": {},
206
+ "compositePrimaryKeys": {},
207
+ "uniqueConstraints": {},
208
+ "checkConstraints": {}
209
+ },
210
+ "metadata": {
211
+ "name": "metadata",
212
+ "columns": {
213
+ "key": {
214
+ "name": "key",
215
+ "type": "text",
216
+ "primaryKey": true,
217
+ "notNull": true,
218
+ "autoincrement": false
219
+ },
220
+ "value": {
221
+ "name": "value",
222
+ "type": "text",
223
+ "primaryKey": false,
224
+ "notNull": true,
225
+ "autoincrement": false
226
+ }
227
+ },
228
+ "indexes": {},
229
+ "foreignKeys": {},
230
+ "compositePrimaryKeys": {},
231
+ "uniqueConstraints": {},
232
+ "checkConstraints": {}
233
+ }
234
+ },
235
+ "views": {},
236
+ "enums": {},
237
+ "_meta": {
238
+ "schemas": {},
239
+ "tables": {},
240
+ "columns": {}
241
+ },
242
+ "internal": {
243
+ "indexes": {}
244
+ }
245
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "6",
8
+ "when": 1775534838047,
9
+ "tag": "0000_colossal_blizzard",
10
+ "breakpoints": true
11
+ }
12
+ ]
13
+ }
package/package.json CHANGED
@@ -1,15 +1,21 @@
1
1
  {
2
2
  "name": "@fastxyz/cli",
3
3
  "description": "Fast CLI - Account, network, and transaction management",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "bin": {
6
6
  "fast": "./dist/main.js"
7
7
  },
8
8
  "type": "module",
9
9
  "files": [
10
10
  "dist",
11
+ "drizzle",
11
12
  "README.md"
12
13
  ],
14
+ "scripts": {
15
+ "build": "tsup",
16
+ "prepack": "tsup",
17
+ "dev": "tsup --watch"
18
+ },
13
19
  "dependencies": {
14
20
  "@clack/core": "^1.2.0",
15
21
  "@effect/platform": "^0.96.0",
@@ -26,20 +32,16 @@
26
32
  "uuid": "^11.1.0"
27
33
  },
28
34
  "devDependencies": {
35
+ "@fastxyz/allset-sdk": "workspace:*",
36
+ "@fastxyz/schema": "workspace:*",
37
+ "@fastxyz/sdk": "workspace:*",
38
+ "@fastxyz/x402-client": "workspace:*",
29
39
  "@noble/ciphers": "^1.3.0",
30
40
  "@noble/curves": "^2.0.1",
31
41
  "@noble/hashes": "^2.0.1",
32
42
  "@types/better-sqlite3": "^7.6.13",
33
43
  "@types/node": "^25.5.0",
34
44
  "@types/uuid": "^10.0.0",
35
- "drizzle-kit": "^0.31.10",
36
- "@fastxyz/allset-sdk": "1.0.0",
37
- "@fastxyz/sdk": "1.0.0",
38
- "@fastxyz/schema": "1.0.0",
39
- "@fastxyz/x402-client": "1.0.0"
40
- },
41
- "scripts": {
42
- "build": "tsup",
43
- "dev": "tsup --watch"
45
+ "drizzle-kit": "^0.31.10"
44
46
  }
45
- }
47
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Fast.xyz
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.