@telepath-computer/stash 0.2.2 → 0.2.4
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 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -19,7 +19,19 @@ stash connect github --repo user/repo --background
|
|
|
19
19
|
|
|
20
20
|
You can initialize a directory explicitly with `stash init`, or let `stash connect` create `.stash/` for you automatically.
|
|
21
21
|
|
|
22
|
-
You'll need a GitHub
|
|
22
|
+
You'll need a GitHub personal access token. We recommend a **fine-grained token** scoped to only the repos you use with stash.
|
|
23
|
+
|
|
24
|
+
### Creating a GitHub Token
|
|
25
|
+
|
|
26
|
+
1. Go to [github.com/settings/personal-access-tokens/new](https://github.com/settings/personal-access-tokens/new)
|
|
27
|
+
2. Give it a name (e.g. `stash`)
|
|
28
|
+
3. Under **Repository access**, select **Only select repositories** and pick the repo(s) you'll sync
|
|
29
|
+
4. Under **Repository permissions**, set **Contents** to **Read and write**
|
|
30
|
+
5. Click **Generate token** and copy it
|
|
31
|
+
|
|
32
|
+
Use this token when running `stash setup github`.
|
|
33
|
+
|
|
34
|
+
> A classic token with the `repo` scope also works, but grants broader access than necessary.
|
|
23
35
|
|
|
24
36
|
## How It Works
|
|
25
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telepath-computer/stash",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Conflict-free synced folders",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"stash": "node ./src/cli.ts",
|
|
18
18
|
"test": "node --test tests/unit/*.test.ts tests/integration/*.test.ts",
|
|
19
19
|
"test:e2e": "node --env-file-if-exists=.env --test tests/e2e/*.test.ts",
|
|
20
|
+
"test:vm": "dotenv -- ./tests/vm/test-linux-vm.sh",
|
|
20
21
|
"test:all": "npm test && npm run test:e2e",
|
|
21
22
|
"lint": "eslint src/ tests/",
|
|
22
23
|
"format": "prettier --write src/ tests/ docs/",
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"dependencies": {
|
|
37
38
|
"@inquirer/prompts": "^8.3.0",
|
|
38
39
|
"@parcel/watcher": "^2.5.6",
|
|
39
|
-
"@rupertsworld/daemon": "^0.1.
|
|
40
|
+
"@rupertsworld/daemon": "^0.1.1",
|
|
40
41
|
"@rupertsworld/disposable": "^0.1.0",
|
|
41
42
|
"@rupertsworld/emitter": "^0.1.0",
|
|
42
43
|
"commander": "^14.0.3",
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@eslint/js": "^10.0.1",
|
|
47
48
|
"@types/node": "^25.3.3",
|
|
49
|
+
"dotenv-cli": "^11.0.0",
|
|
48
50
|
"eslint": "^10.0.3",
|
|
49
51
|
"eslint-config-prettier": "^10.1.8",
|
|
50
52
|
"prettier": "^3.8.1",
|