ccsini 0.1.27 → 0.1.29
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 +13 -0
- package/dist/index.js +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,6 +46,7 @@ ccsini init --token <your-token>
|
|
|
46
46
|
| `ccsini update` | Update ccsini to the latest version |
|
|
47
47
|
| `ccsini version` | Show current version |
|
|
48
48
|
| `ccsini doctor` | Diagnose configuration issues |
|
|
49
|
+
| `ccsini reset` | Wipe all server data and local config |
|
|
49
50
|
|
|
50
51
|
### Cleanup
|
|
51
52
|
|
|
@@ -59,6 +60,18 @@ ccsini sync cleanup --dry-run
|
|
|
59
60
|
ccsini sync cleanup
|
|
60
61
|
```
|
|
61
62
|
|
|
63
|
+
### Reset
|
|
64
|
+
|
|
65
|
+
If you need to start completely fresh (e.g. deleted devices from dashboard, stuck on old salt), reset wipes everything:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
ccsini reset
|
|
69
|
+
# Then re-initialize
|
|
70
|
+
ccsini init --token <your-token>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
This deletes all server-side data (salt, manifest, blobs) and your local `~/.ccsini/` config.
|
|
74
|
+
|
|
62
75
|
## What Gets Synced
|
|
63
76
|
|
|
64
77
|
Only the files that matter for cross-device coding context:
|
package/dist/index.js
CHANGED
|
@@ -27996,7 +27996,7 @@ var {
|
|
|
27996
27996
|
} = import__.default;
|
|
27997
27997
|
|
|
27998
27998
|
// src/version.ts
|
|
27999
|
-
var VERSION = "0.1.
|
|
27999
|
+
var VERSION = "0.1.29";
|
|
28000
28000
|
|
|
28001
28001
|
// src/commands/init.ts
|
|
28002
28002
|
init_source();
|
|
@@ -30075,8 +30075,12 @@ function registerResetCommand(program2) {
|
|
|
30075
30075
|
const jwt = await createDeviceJWT(privateKey, config.deviceId);
|
|
30076
30076
|
const client = new CcsiniClient(config.apiUrl, jwt);
|
|
30077
30077
|
const spinner = ora2("Wiping server data...").start();
|
|
30078
|
-
|
|
30079
|
-
|
|
30078
|
+
try {
|
|
30079
|
+
const { blobsDeleted } = await client.resetAll();
|
|
30080
|
+
spinner.succeed(`Server data wiped (${blobsDeleted} blob${blobsDeleted !== 1 ? "s" : ""} deleted)`);
|
|
30081
|
+
} catch {
|
|
30082
|
+
spinner.warn("Could not wipe server data (device may have been removed from dashboard)");
|
|
30083
|
+
}
|
|
30080
30084
|
const localSpinner = ora2("Removing local config...").start();
|
|
30081
30085
|
await rm(configDir, { recursive: true, force: true });
|
|
30082
30086
|
localSpinner.succeed("Local config removed");
|