@owlmeans/test-auth 0.1.16-rc.0 → 0.1.16

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
@@ -15,10 +15,9 @@ Helpers exported here:
15
15
  <!-- owlmeans:agent-guidance:start -->
16
16
  ## Agent guidance
17
17
 
18
- This package ships embedded Claude Code skills and GitHub Copilot instructions under
19
- `agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
20
- agent-skills installer to place them into your project's native locations
21
- (`.claude/skills/` and `.github/instructions/`):
18
+ This package ships embedded agent skills under `agent-meta/`. After installing your
19
+ `@owlmeans/*` packages, run the OwlMeans agent-skills installer to place them into
20
+ your project's skill store (`.agents/skills/`):
22
21
 
23
22
  ```sh
24
23
  npx @owlmeans/agent-skills
@@ -1,8 +1,8 @@
1
1
  {
2
- "schemaVersion": 1,
2
+ "schemaVersion": 2,
3
3
  "package": "@owlmeans/test-auth",
4
- "version": "0.1.16-rc.0",
5
- "generatedAt": "2026-08-11T14:02:34.970Z",
4
+ "version": "0.1.16",
5
+ "generatedAt": "2026-08-14T10:14:48.847Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -10,14 +10,7 @@
10
10
  "name": "testing-auth-unit",
11
11
  "category": "package-specific",
12
12
  "file": "skills/testing-auth-unit/SKILL.md",
13
- "canonicalPath": ".claude/skills/testing-auth-unit/SKILL.md"
14
- },
15
- {
16
- "kind": "instruction",
17
- "name": "testing-auth-unit",
18
- "category": "package-specific",
19
- "file": "instructions/testing-auth-unit.instructions.md",
20
- "canonicalPath": ".github/instructions/testing-auth-unit.instructions.md"
13
+ "canonicalPath": ".agents/skills/testing-auth-unit/SKILL.md"
21
14
  }
22
15
  ]
23
16
  }
@@ -65,7 +65,7 @@ describe('@owlmeans/basic-keys — packAuthCredentials', () => {
65
65
  - **Mocks only for auth/authz.** No mocks for databases, network, or any sibling package. If you need one, move the spec to category C and write an integration test.
66
66
  - **Don't replicate `@owlmeans/test-auth` helpers in your package.** If you need a new mocking primitive (e.g. an OIDC userinfo endpoint stub), add it to `@owlmeans/test-auth` and its skill — never to a per-package `tests/`.
67
67
  - **Use deterministic seeds.** `makeFixtureKeyPair('<seed>')` keeps signatures stable run-to-run; random keypairs break snapshot-style assertions.
68
- - **Cover SKILL.md cases first.** The package's `.claude/skills/<pkg>/SKILL.md` documents the consumer-facing surface — that's the test priority order.
68
+ - **Cover SKILL.md cases first.** The package's `.agents/skills/<pkg>/SKILL.md` documents the consumer-facing surface — that's the test priority order.
69
69
  - **Max 3-4 tests per method/function.** Same as category A.
70
70
  - **Don't test types or utils.**
71
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/test-auth",
3
- "version": "0.1.16-rc.0",
3
+ "version": "0.1.16",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,14 +21,14 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@owlmeans/auth": "^0.1.16-rc.0",
25
- "@owlmeans/auth-common": "^0.1.16-rc.0",
26
- "@owlmeans/basic-envelope": "^0.1.16-rc.0",
27
- "@owlmeans/basic-keys": "^0.1.16-rc.0",
28
- "@owlmeans/context": "^0.1.16-rc.0",
29
- "@owlmeans/entrypoint": "^0.1.16-rc.0",
30
- "@owlmeans/resource": "^0.1.16-rc.0",
31
- "@owlmeans/test": "^0.1.16-rc.0"
24
+ "@owlmeans/auth": "^0.1.16",
25
+ "@owlmeans/auth-common": "^0.1.16",
26
+ "@owlmeans/basic-envelope": "^0.1.16",
27
+ "@owlmeans/basic-keys": "^0.1.16",
28
+ "@owlmeans/context": "^0.1.16",
29
+ "@owlmeans/entrypoint": "^0.1.16",
30
+ "@owlmeans/resource": "^0.1.16",
31
+ "@owlmeans/test": "^0.1.16"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@owlmeans/dep-config": "workspace:*",
@@ -1,17 +0,0 @@
1
- ---
2
- applyTo: "**/*.test.ts, **/*.spec.ts, **/*.ts"
3
- ---
4
- <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
5
-
6
- # Category B — Auth Unit Tests
7
-
8
- - Tests in `<your-package>/tests/*.spec.ts`. Use `bun:test`.
9
- - The **only** mocks allowed: `@owlmeans/test-auth` helpers (`makeFixtureKeyPair`, `makeMemoryTrustedResource`, `makeMockGuard`, `withAuth`, `signMockEnvelope`, `makeBearer`).
10
- - Never roll a new auth mock in a per-package `tests/`. Add it to `@owlmeans/test-auth` and update its skill instead.
11
- - Use deterministic seeds: `makeFixtureKeyPair('alice')` keeps signatures stable.
12
- - Cover `.claude/skills/<pkg>/SKILL.md` and `README.md` cases first.
13
- - Max 3-4 tests per method/function.
14
- - Don't test utils, types, or context plumbing.
15
- - Per-package `package.json` script: `"test": "bun test ./tests"`.
16
-
17
- For the protocol reference (Ed25519 path, OIDC path, types, errors, mocking points), see `.claude/skills/auth-protocol/SKILL.md`. For helper specifics, see `.claude/skills/testing-auth-unit/SKILL.md`.