@owlmeans/mongo 0.1.7 → 0.1.9

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
@@ -57,3 +57,20 @@ Registers the MongoDB service in the context.
57
57
  - [`@owlmeans/mongo-resource`](../mongo-resource) — `makeMongoResource` uses this service
58
58
  - [`@owlmeans/server-app`](../server-app) — `makeContext` in conjunction with `appendMongo`
59
59
  - [`@owlmeans/kluster`](../kluster) — `kluster:` directives resolve Mongo URLs in Kubernetes
60
+
61
+ <!-- owlmeans:agent-guidance:start -->
62
+ ## Agent guidance
63
+
64
+ This package ships embedded Claude Code skills and GitHub Copilot instructions under
65
+ `agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
66
+ agent-skills installer to place them into your project's native locations
67
+ (`.claude/skills/` and `.github/instructions/`):
68
+
69
+ ```sh
70
+ npx @owlmeans/agent-skills
71
+ ```
72
+
73
+ The embedded files are version-matched to this package release. Do not edit them
74
+ directly — they are regenerated on each publish. To contribute guidance edits,
75
+ open a PR against the source monorepo.
76
+ <!-- owlmeans:agent-guidance:end -->
@@ -0,0 +1,29 @@
1
+ ---
2
+ description: "How to use @owlmeans/mongo — MongoDB client service factory (makeMongoService) registered on a server context."
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.9"` in `dependencies`
11
+
12
+ ## Key Exports
13
+
14
+ | Export | Description |
15
+ |--------|-------------|
16
+ | `makeMongoService()` | MongoDB connection service factory |
17
+ | `Mongo` types | Service interface, db handle |
18
+ | Constants | `DEFAULT_ALIAS` |
19
+
20
+ ## Usage
21
+
22
+ ```typescript
23
+ import { makeMongoService } from '@owlmeans/mongo'
24
+ context.registerService(makeMongoService())
25
+ ```
26
+
27
+ ## Depends On
28
+
29
+ - `@owlmeans/server-context`, `@owlmeans/resource`, `mongodb`
@@ -0,0 +1,23 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "package": "@owlmeans/mongo",
4
+ "version": "0.1.9",
5
+ "generatedAt": "2026-06-14T13:34:06.134Z",
6
+ "canonicalRepo": "https://github.com/owlmeans/common",
7
+ "entries": [
8
+ {
9
+ "kind": "skill",
10
+ "name": "mongo",
11
+ "category": "package-specific",
12
+ "file": "skills/mongo/SKILL.md",
13
+ "canonicalPath": ".claude/skills/mongo/SKILL.md"
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"
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: mongo
3
+ description: How to use @owlmeans/mongo — MongoDB client service factory (makeMongoService) registered on a server context. Auto-invoked when wiring MongoDB into a server app.
4
+ user-invocable: false
5
+ ---
6
+ <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
7
+
8
+ # @owlmeans/mongo
9
+
10
+ **Layer:** Infra
11
+ **Install:** `"@owlmeans/mongo": "^0.1.9"` in `dependencies`
12
+
13
+ ## Key Exports
14
+
15
+ | Export | Description |
16
+ |--------|-------------|
17
+ | `makeMongoService()` | Factory for the MongoDB connection service |
18
+ | `Mongo` types | Service interface, db handle |
19
+ | Constants | `DEFAULT_ALIAS` for the mongo service |
20
+
21
+ ## Usage
22
+
23
+ ```typescript
24
+ import { makeMongoService } from '@owlmeans/mongo'
25
+ context.registerService(makeMongoService())
26
+
27
+ // Connection settings come from cfg.services / cfg.dbs
28
+ cfg.dbs = [{
29
+ service: 'mongo',
30
+ host: 'mongodb://localhost',
31
+ database: 'my-app',
32
+ }]
33
+ ```
34
+
35
+ ## Depends On
36
+
37
+ - `@owlmeans/server-context`, `@owlmeans/resource`
38
+ - `mongodb` (runtime)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/mongo",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@noble/hashes": "^1.5.0",
31
- "@owlmeans/basic-keys": "^0.1.7",
32
- "@owlmeans/context": "^0.1.7",
33
- "@owlmeans/mongo-resource": "^0.1.7",
34
- "@owlmeans/server-context": "^0.1.7",
31
+ "@owlmeans/basic-keys": "^0.1.9",
32
+ "@owlmeans/context": "^0.1.9",
33
+ "@owlmeans/mongo-resource": "^0.1.9",
34
+ "@owlmeans/server-context": "^0.1.9",
35
35
  "@scure/base": "^1.1.9",
36
36
  "mongodb": "^6.9.0"
37
37
  },