@actions-json/bridge 0.1.121 → 0.1.124

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/lib/storage.js CHANGED
@@ -14,31 +14,31 @@ function defaultStorageRoot() {
14
14
  );
15
15
  }
16
16
 
17
- const SCAFFOLD_DIR = path.join(__dirname, '..', 'scaffold');
17
+ const TEMPLATE_DIR = path.join(__dirname, '..', 'template');
18
18
 
19
- // Recursively copy the scaffold, skipping the .gitkeep placeholders (they only
19
+ // Recursively copy the template, skipping the .gitkeep placeholders (they only
20
20
  // exist to ship empty dirs inside the package/repo).
21
- function copyScaffold(src, dst) {
21
+ function copyTemplate(src, dst) {
22
22
  fs.mkdirSync(dst, { recursive: true });
23
23
  for (const entry of fs.readdirSync(src, { withFileTypes: true })) {
24
24
  if (entry.name === '.gitkeep') continue;
25
25
  const s = path.join(src, entry.name);
26
26
  const d = path.join(dst, entry.name);
27
27
  if (entry.isDirectory()) {
28
- copyScaffold(s, d);
28
+ copyTemplate(s, d);
29
29
  } else {
30
30
  fs.copyFileSync(s, d);
31
31
  }
32
32
  }
33
33
  }
34
34
 
35
- // Ensure the storage root exists; scaffold it from the bundled template on
35
+ // Ensure the storage root exists; create it from the bundled template on
36
36
  // first run. Returns the absolute path. Never overwrites existing storage.
37
37
  function ensureStorageRoot(root) {
38
38
  const target = root || defaultStorageRoot();
39
39
  if (!fs.existsSync(target)) {
40
40
  fs.mkdirSync(path.dirname(target), { recursive: true });
41
- copyScaffold(SCAFFOLD_DIR, target);
41
+ copyTemplate(TEMPLATE_DIR, target);
42
42
  // Recreate the empty scope dirs that .gitkeep stood in for.
43
43
  for (const p of [
44
44
  ['scopes', 'private', 'sites'],
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@actions-json/bridge",
3
- "version": "0.1.121",
4
- "bridgeBinaryVersion": "0.1.119",
5
- "description": "Run the actions.json MCP bridge with npx — no Rust toolchain required. Downloads the prebuilt actions-json-mcp binary, bundles the primitive dictionary, and scaffolds a storage workspace on first run.",
3
+ "version": "0.1.124",
4
+ "bridgeBinaryVersion": "0.1.186",
5
+ "description": "Run the actions.json MCP bridge with npx — no Rust toolchain required. Downloads the prebuilt actions-json-mcp binary, bundles the primitive dictionary, and creates your storage workspace on first run.",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  "bin/",
18
18
  "lib/",
19
19
  "dictionary/",
20
- "scaffold/",
20
+ "template/",
21
21
  "README.md"
22
22
  ],
23
23
  "engines": {
@@ -1,39 +1,37 @@
1
- # actions.json storage scaffold
1
+ # actions.json storage
2
2
 
3
- This is a starter `actions.json.storage` workspace. The `init` step copies it to
4
- `.storage/` in your `actions.json` checkout, where it lives **inside the folder
5
- but is not part of the code repo** (`.storage/` is gitignored).
6
-
7
- Point the bridge at it with `--storage-root .storage`.
3
+ This **is** your `actions.json.storage` workspace operational, not an example.
4
+ The bridge created it on first run (default: `~/.actions-json/storage`) and reads
5
+ and writes here as your agent browses. Your browsing memory, observations, and
6
+ action maps live in these folders.
8
7
 
9
8
  ## Scopes
10
9
 
11
- Storage is organized by visibility. Each scope is just a folder under `scopes/`;
12
- the runtime discovers site maps under `scopes/<scope>/sites/<host>/`.
10
+ Storage is organized by visibility. Each scope is a folder under `scopes/`; the
11
+ runtime discovers site maps under `scopes/<scope>/sites/<host>/`.
13
12
 
14
13
  | Scope | What goes here | Git |
15
14
  |---|---|---|
16
- | `private/` | Your owner-only browsing memory, observations, run logs, and unreviewed maps. | Local by default. Opt in: point it at your own **private** repo to sync across your machines and agents. |
15
+ | `private/` | Your owner-only browsing memory, observations, run logs, and unreviewed maps. | Local by default. Opt in: back it with your own **private** repo to sync across your machines and agents. |
17
16
  | `public/` | Reviewed, redacted maps **you publish** openly. | Opt in: point it at your own public repo. |
18
17
  | `shared/<name>/` | Maps shared with a specific collaborator, **and** maps you pull **from** a source. | Opt in: one git remote per source. |
19
18
 
20
- `private` and `public` exist in the scaffold. Add `shared/<name>/` when you need
21
- it.
19
+ `private` and `public` are set up. Add `shared/<name>/` when you need it.
22
20
 
23
- ## Opening a scope for sharing or syncing
21
+ ## Versioning a scope
24
22
 
25
- The scaffold is local-only until you choose to version a scope. Each scope is an
26
- ordinary folder, so you turn one into a git repo when you want to.
23
+ Each scope is an ordinary folder, local until you choose to version it. Turn one
24
+ into a git repo when you want to sync or share it.
27
25
 
28
26
  **Sync your private memory across machines** — back `scopes/private/` with your
29
27
  own **private** repo so the same browsing memory follows your agent everywhere:
30
28
 
31
29
  ```bash
32
- cd .storage/scopes/private
30
+ cd ~/.actions-json/storage/scopes/private
33
31
  git init && git add . && git commit -m "my private actions.json memory"
34
32
  git remote add origin https://github.com/<you>/<your-private-storage>.git # private!
35
33
  git push -u origin main
36
- # on another machine: clone it into .storage/scopes/private instead of init
34
+ # on another machine: clone it into scopes/private instead of git init
37
35
  ```
38
36
 
39
37
  This stays private — it is your repo, set to private. It only ever leaves your
@@ -43,17 +41,17 @@ requires explicit review.
43
41
  **Publish your public maps** — make `scopes/public/` your own public repo:
44
42
 
45
43
  ```bash
46
- cd .storage/scopes/public
44
+ cd ~/.actions-json/storage/scopes/public
47
45
  git init && git add . && git commit -m "my public actions.json maps"
48
46
  git remote add origin https://github.com/<you>/<your-public-storage>.git
49
47
  git push -u origin main
50
48
  ```
51
49
 
52
50
  **Pull the official map library** — vendor maps *from* a source into a shared
53
- scope (the runtime already discovers maps under `scopes/shared/<name>/`):
51
+ scope (the runtime discovers maps under `scopes/shared/<name>/`):
54
52
 
55
53
  ```bash
56
- cd .storage/scopes/shared
54
+ cd ~/.actions-json/storage/scopes/shared
57
55
  git clone https://github.com/yaniv256/actions.json.storage.public.git actions-json
58
56
  # maps now resolve from scopes/shared/actions-json/sites/<host>/
59
57
  ```
File without changes
File without changes
File without changes