dotshield 0.1.0-beta.1 → 0.1.0-beta.2

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
@@ -9,4 +9,4 @@ npx dotshield guard install # guard Claude Code, in watch mode first
9
9
 
10
10
  This package is a small wrapper with no dependencies and no install script. On first use it downloads the `dotshield` binary for your system from the matching GitHub release, checks its SHA-256 against checksums taken from the release's signed `checksums.txt` and published in this package, and keeps it in `~/.dotshield/bin/`. Agent hooks call that binary directly.
11
11
 
12
- Docs: https://github.com/dot-shield/dotshield. Not affiliated with Anthropic or Cursor.
12
+ Downloads and docs: https://github.com/dot-shield/dotshield-releases. Not affiliated with Anthropic or Cursor.
package/checksums.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
- "dotshield_0.1.0-beta.1_darwin_arm64.tar.gz": {
3
- "archive": "f3272b0da87eb8a3ce65392d8ab22ab22e47c0be7819859c72af733cfe339f39",
4
- "binary": "2469c8d60c2ece814b05eb23f19aea5564e23c06587048030e3ed74b24bb6e8f"
2
+ "dotshield_0.1.0-beta.2_darwin_arm64.tar.gz": {
3
+ "archive": "f79d6acd89cba118d6a720ddcc885ffc63ec2caf8b720d8575337cd0dc31be16",
4
+ "binary": "a4ac29ce3386f4714ffa5631e6196c913b1e1490ccf5850de8f4817594ae1ea7"
5
5
  },
6
- "dotshield_0.1.0-beta.1_darwin_amd64.tar.gz": {
7
- "archive": "0ea1cf577fe75c67ca9ddcdca7cb7889ea4ff81bc428bf4628863595e25b9d73",
8
- "binary": "14f4a49c2f9b5f76e0682de803caff5950fff3a043cbef7c74d7ac4b77db8900"
6
+ "dotshield_0.1.0-beta.2_darwin_amd64.tar.gz": {
7
+ "archive": "619e0dece81b85b013520773152460d199b6137444ee5245d6553de6d733c820",
8
+ "binary": "5ae8f57c1a664ff1bf74a47173e6c485c9758a3168a2288b664e57b0694c2efc"
9
9
  },
10
- "dotshield_0.1.0-beta.1_linux_arm64.tar.gz": {
11
- "archive": "5e3834a2b0e54337685dffae658e8d4ec157e1240b95f9236f7dc34ab4a0807f",
12
- "binary": "7a712a1a03180aa30d8b93319e06467041be79b4fe1ef4f8f541081f1bc16560"
10
+ "dotshield_0.1.0-beta.2_linux_arm64.tar.gz": {
11
+ "archive": "dc83cbbe7899a1a4d7c3598afffb6538dfb29d014e17caf5a554bcb7b3809a85",
12
+ "binary": "eccc01322eaa5b45962a50592e8dae53ef103a52eaa489d2e6d55164c9fd6e5d"
13
13
  },
14
- "dotshield_0.1.0-beta.1_linux_amd64.tar.gz": {
15
- "archive": "2e05e2c571eaec1e30c86b0af55def55a00f693f84056269f9b1eccdc6169697",
16
- "binary": "d26f249aa792408f65caae65a7cbb4c3ecd1a418e9546f50b3fddeb363a298e7"
14
+ "dotshield_0.1.0-beta.2_linux_amd64.tar.gz": {
15
+ "archive": "92671bc93482f79e28057848260fcc802e576846d115252e3f4cfd5a315f7c25",
16
+ "binary": "6a904063c60277b4105ae8ff9730524094a6406f53cc24773642c731a747f079"
17
17
  },
18
- "dotshield_0.1.0-beta.1_windows_arm64.zip": {
19
- "archive": "1535572593bee882da927e6b2702d6d043c1dc1d13714cac902754e8dcc48a56",
20
- "binary": "63c9581093755233d11d717f08d8a040f25175908d396f24346cc5a58320326a"
18
+ "dotshield_0.1.0-beta.2_windows_arm64.zip": {
19
+ "archive": "6b646e2b141e6e74c2692a619acc7520bfda56b9cf3145a2eb994d0ffd3d88ef",
20
+ "binary": "65b7ce5adec15cb2954c957a55360d0987b40920f548b78fcf1288e53c721054"
21
21
  },
22
- "dotshield_0.1.0-beta.1_windows_amd64.zip": {
23
- "archive": "81023cbae467a24ee726d85b8099af75952d11bfffff72c1207944dafe5969c1",
24
- "binary": "7a7af55310d46360eb0af58886c29dac3f90f3a82c277efb4605246d17e362f7"
22
+ "dotshield_0.1.0-beta.2_windows_amd64.zip": {
23
+ "archive": "ed252103287d24c0478718f3eb0f830af29c96bea63b807b06b31d2faccd8190",
24
+ "binary": "6923e534dab51a8224f679fe3391e7371626c8a833e7aafc3e46f0b247d8bf70"
25
25
  }
26
26
  }
package/lib/install.js CHANGED
@@ -7,7 +7,7 @@
7
7
  // path stays the same across npx runs, so hooks that "dotshield guard
8
8
  // install" writes keep working.
9
9
  // - What: the release archive for this OS and CPU from the GitHub release of
10
- // the same version. checksums.json holds, for each archive, its SHA-256 and
10
+ // the same version, in the public dot-shield/dotshield-releases repository. checksums.json holds, for each archive, its SHA-256 and
11
11
  // the SHA-256 of the binary inside it. The publish job writes it from the
12
12
  // release's cosign-verified checksums.txt and the archives themselves. A
13
13
  // package without checksums (a development copy) never downloads.
@@ -25,7 +25,9 @@ const path = require('node:path');
25
25
  const { fromTarGz, fromZip } = require('./archive.js');
26
26
 
27
27
  const pkg = require('../package.json');
28
- const RELEASES = 'https://github.com/dot-shield/dotshield/releases/download/';
28
+ // The public downloads repository. The source repository is private, and a
29
+ // private repository's release files can't be downloaded without signing in.
30
+ const RELEASES = 'https://github.com/dot-shield/dotshield-releases/releases/download/';
29
31
  const MAX_ARCHIVE = 100 << 20;
30
32
  const TIMEOUT_MS = 120_000;
31
33
 
@@ -37,7 +39,7 @@ function target(platform, arch, version) {
37
39
  const o = OS[platform];
38
40
  const a = ARCH[arch];
39
41
  if (!o || !a) {
40
- throw new Error(`no release build for ${platform} ${arch}; build from source: https://github.com/dot-shield/dotshield`);
42
+ throw new Error(`no release build for ${platform} ${arch}; see https://github.com/dot-shield/dotshield-releases`);
41
43
  }
42
44
  const win = o === 'windows';
43
45
  return {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "dotshield",
3
- "version": "0.1.0-beta.1",
3
+ "version": "0.1.0-beta.2",
4
4
  "description": "Keeps secrets away from AI coding agents. This package runs the signed dotshield binary.",
5
5
  "license": "Apache-2.0",
6
- "homepage": "https://github.com/dot-shield/dotshield",
6
+ "homepage": "https://github.com/dot-shield/dotshield-releases",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/dot-shield/dotshield.git",
@@ -26,7 +26,6 @@
26
26
  "test": "node --test \"test/*.test.js\""
27
27
  },
28
28
  "publishConfig": {
29
- "access": "public",
30
- "provenance": true
29
+ "access": "public"
31
30
  }
32
31
  }