@owlmeans/mongo 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
|
@@ -61,10 +61,9 @@ Registers the MongoDB service in the context.
|
|
|
61
61
|
<!-- owlmeans:agent-guidance:start -->
|
|
62
62
|
## Agent guidance
|
|
63
63
|
|
|
64
|
-
This package ships embedded
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
(`.claude/skills/` and `.github/instructions/`):
|
|
64
|
+
This package ships embedded agent skills under `agent-meta/`. After installing your
|
|
65
|
+
`@owlmeans/*` packages, run the OwlMeans agent-skills installer to place them into
|
|
66
|
+
your project's skill store (`.agents/skills/`):
|
|
68
67
|
|
|
69
68
|
```sh
|
|
70
69
|
npx @owlmeans/agent-skills
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion":
|
|
2
|
+
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/mongo",
|
|
4
|
-
"version": "0.1.16
|
|
5
|
-
"generatedAt": "2026-08-
|
|
4
|
+
"version": "0.1.16",
|
|
5
|
+
"generatedAt": "2026-08-14T10:14:48.855Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -10,14 +10,7 @@
|
|
|
10
10
|
"name": "mongo",
|
|
11
11
|
"category": "package-specific",
|
|
12
12
|
"file": "skills/mongo/SKILL.md",
|
|
13
|
-
"canonicalPath": ".
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"kind": "instruction",
|
|
17
|
-
"name": "mongo",
|
|
18
|
-
"category": "package-specific",
|
|
19
|
-
"file": "instructions/mongo.instructions.md",
|
|
20
|
-
"canonicalPath": ".github/instructions/mongo.instructions.md"
|
|
13
|
+
"canonicalPath": ".agents/skills/mongo/SKILL.md"
|
|
21
14
|
}
|
|
22
15
|
]
|
|
23
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/mongo",
|
|
3
|
-
"version": "0.1.16
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@owlmeans/dep-config": "workspace:*",
|
|
26
|
-
"@owlmeans/test-integration": "^0.1.16
|
|
26
|
+
"@owlmeans/test-integration": "^0.1.16",
|
|
27
27
|
"@types/bun": "^1.3.14",
|
|
28
28
|
"@types/node": "^26.1.0",
|
|
29
29
|
"nodemon": "^3.1.14",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@noble/hashes": "^1.5.0",
|
|
34
|
-
"@owlmeans/basic-keys": "^0.1.16
|
|
35
|
-
"@owlmeans/context": "^0.1.16
|
|
36
|
-
"@owlmeans/mongo-resource": "^0.1.16
|
|
37
|
-
"@owlmeans/resource": "^0.1.16
|
|
38
|
-
"@owlmeans/server-context": "^0.1.16
|
|
34
|
+
"@owlmeans/basic-keys": "^0.1.16",
|
|
35
|
+
"@owlmeans/context": "^0.1.16",
|
|
36
|
+
"@owlmeans/mongo-resource": "^0.1.16",
|
|
37
|
+
"@owlmeans/resource": "^0.1.16",
|
|
38
|
+
"@owlmeans/server-context": "^0.1.16",
|
|
39
39
|
"@scure/base": "^1.1.9",
|
|
40
40
|
"mongodb": "^6.9.0"
|
|
41
41
|
},
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "How to use @owlmeans/mongo — MongoDB connection service (makeMongoDbService / appendMongo) registered on a server context; cluster setup, layer sensitivity, field encryption."
|
|
3
|
-
applyTo: "**/context.ts, **/config.ts, **/*.ts, **/*.tsx"
|
|
4
|
-
---
|
|
5
|
-
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
6
|
-
|
|
7
|
-
# @owlmeans/mongo
|
|
8
|
-
|
|
9
|
-
**Layer:** Infra
|
|
10
|
-
**Install:** `"@owlmeans/mongo": "^0.1.16-rc.0"` in `dependencies` (peer `mongodb`)
|
|
11
|
-
|
|
12
|
-
## Key Exports
|
|
13
|
-
|
|
14
|
-
| Export | Description |
|
|
15
|
-
|--------|-------------|
|
|
16
|
-
| `makeMongoDbService(alias?)` | MongoDB connection service factory (implements `MongoDbService`) |
|
|
17
|
-
| `appendMongo(context, alias?)` | Register the service on a server context |
|
|
18
|
-
| `DEFAULT_ALIAS` | `'mongo'` |
|
|
19
|
-
|
|
20
|
-
## Usage
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
import { appendMongo } from '@owlmeans/mongo'
|
|
24
|
-
appendMongo(context)
|
|
25
|
-
|
|
26
|
-
cfg.dbs = [{
|
|
27
|
-
service: 'mongo', alias: 'mongo',
|
|
28
|
-
host: '127.0.0.1', port: 27017, // string[] host → replica set bootstrap
|
|
29
|
-
user: 'admin', secret: '...',
|
|
30
|
-
schema: 'my-app', // DATABASE name (layer-suffixed by dbName())
|
|
31
|
-
encryptionKey: '...', // enables lock()/unlock() field encryption
|
|
32
|
-
entitySensitive: true, // per-Entity-layer databases (each with its own migration ledger)
|
|
33
|
-
}]
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## Tests
|
|
37
|
-
|
|
38
|
-
Integration suites for the whole Mongo pair live here (`tests/migration.spec.ts`,
|
|
39
|
-
`tests/references.spec.ts`), gated on `MONGO_URL`.
|
|
40
|
-
|
|
41
|
-
## Depends On
|
|
42
|
-
|
|
43
|
-
- `@owlmeans/resource`, `@owlmeans/mongo-resource` (service contract), `@owlmeans/basic-keys`, peer `mongodb`
|