@devfellowship/access 0.3.1 → 0.3.3
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 +2 -2
- package/capabilities.json +700 -434
- package/db-surface.json +6 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ npm run catalog:check # writes nothing; exit 1 when the file is out of date
|
|
|
96
96
|
node scripts/build-catalog.mjs --manifest <file> --gateway-modes <oauth-tools.generated.ts>
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
The build prints `tools: N` and `capabilities: N`. It exits 1 when a tool is **unmapped** (its verb is not in `VERBS`, or its name has no entity and `OVERRIDES` has no entry) or when two tools get one name. A new MCP tool with a new verb therefore fails the `catalog` CI job until someone adds the verb to `VERBS` with its mode (`read` or `write`) in `scripts/catalog-lib.mjs`. With `--gateway-modes`, the build also exits 1 when the catalog offers a write tool of the gateway registry as a read. The **mode guard** (CATALOG-READ-MODE-FIX): a tool whose name starts with `list`, `get`, `wait`, `read`, `search` or `describe` and is `write` fails the build, on the catalog and on the gateway registry, unless `READ_NAME_WRITE_ALLOWLIST` in `scripts/catalog-lib.mjs` names it with the reason it writes (an upload, a paid call, a job that registers media). An allow-list line with no reason, or for a tool that is no longer `write`, also fails. The verb `check` is `write` by default; a check that only reads gets an `OVERRIDES` entry with `mode: "read"`, and the gateway cross-check fails the build if the gateway says `write` for it. A deprecated alias adds no entry. Commands (kind `command`) enter the catalog when the first command exists (S2-T6). A command that has an MCP tool merges into that tool entry through `COMMANDS`. A command with **no** MCP tool (a UI-only write; CLAUDE.md: MCP is only for AI agents) is declared in `COMMAND_ONLY` (FIN-T4): one reviewed entry per capability with `command` (name), `route`, `mode` and `rule`; the entry gets kind `command`, doors `["commands"]`, no `tool`, and `domain_group` from `domains.json`. The build fails with the name when an MCP tool later takes the same capability; then move the entry to `COMMANDS`. An entry is a name only: it grants nothing. The gap check `services/dfl-domain-api/src/
|
|
99
|
+
The build prints `tools: N` and `capabilities: N`. It exits 1 when a tool is **unmapped** (its verb is not in `VERBS`, or its name has no entity and `OVERRIDES` has no entry) or when two tools get one name. A new MCP tool with a new verb therefore fails the `catalog` CI job until someone adds the verb to `VERBS` with its mode (`read` or `write`) in `scripts/catalog-lib.mjs`. With `--gateway-modes`, the build also exits 1 when the catalog offers a write tool of the gateway registry as a read. The **mode guard** (CATALOG-READ-MODE-FIX): a tool whose name starts with `list`, `get`, `wait`, `read`, `search` or `describe` and is `write` fails the build, on the catalog and on the gateway registry, unless `READ_NAME_WRITE_ALLOWLIST` in `scripts/catalog-lib.mjs` names it with the reason it writes (an upload, a paid call, a job that registers media). An allow-list line with no reason, or for a tool that is no longer `write`, also fails. The verb `check` is `write` by default; a check that only reads gets an `OVERRIDES` entry with `mode: "read"`, and the gateway cross-check fails the build if the gateway says `write` for it. A deprecated alias adds no entry. Commands (kind `command`) enter the catalog when the first command exists (S2-T6). A command that has an MCP tool merges into that tool entry through `COMMANDS`. A command with **no** MCP tool (a UI-only write; CLAUDE.md: MCP is only for AI agents) is declared in `COMMAND_ONLY` (FIN-T4): one reviewed entry per capability with `command` (name), `route`, `mode` and `rule`; the entry gets kind `command`, doors `["commands"]`, no `tool`, and `domain_group` from `domains.json`. The build fails with the name when an MCP tool later takes the same capability; then move the entry to `COMMANDS`. An entry is a name only: it grants nothing. The gap check `services/dfl-domain-api/src/command-catalog.test.ts` (CAMP-T4) reads the capability of every command of dfl-domain-api, with no hand-kept list, and fails with the names when one is not in `capabilities.json`: a new command with no MCP tool of the same capability name needs one `COMMAND_ONLY` entry and `npm run catalog`. The kinds `table`, `rpc` and `function` come from the database surface (next section).
|
|
100
100
|
|
|
101
101
|
## The database surface in the catalog (S7-T4)
|
|
102
102
|
|
|
@@ -134,7 +134,7 @@ An agent gets a role through a line, not through `iam.user_roles` (S2-T5; Tainan
|
|
|
134
134
|
|
|
135
135
|
## The parity fixture
|
|
136
136
|
|
|
137
|
-
`parity.json` (shipped, `@devfellowship/access/parity.json`) holds one world (actors, role bundles, owners, permission lines) and the decision of each case. `expected` is the answer of `dfl-domain-api` `runExplain`. Three tests assert it: `test/parity.test.mjs` here, `services/dfl-domain-api/src/
|
|
137
|
+
`parity.json` (shipped, `@devfellowship/access/parity.json`) holds one world (actors, role bundles, owners, permission lines) and the decision of each case. `expected` is the answer of `dfl-domain-api` `runExplain`. Three tests assert it: `test/parity.test.mjs` here, `services/dfl-domain-api/src/domains/engineering/access/parity.test.ts` (the service), and the gateway test in `dfl-mcp-server`. A change of a rule that moves an answer changes `parity.json` in the same PR.
|
|
138
138
|
|
|
139
139
|
## Release
|
|
140
140
|
|