@entifix/service-shell 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +21 -0
  2. package/package.json +7 -9
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @entifix/service-shell
2
+
3
+ The skeleton of an Effect HTTP service. `makeService` takes a router and the Layer that satisfies it — a missing dependency is a compile error — and adds the server, logging, OpenTelemetry, `/api/health`, the served entity metadata and graceful shutdown.
4
+
5
+ Routes are guarded with `requirePermission(...)`, which asks the `PolicyDecision` port from `@entifix/authz`. Hiding a navigation item protects nothing; the route guard does.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ pnpm add @entifix/service-shell @opentelemetry/api effect
11
+ ```
12
+
13
+ ## Entry points
14
+
15
+ | Import | What it holds |
16
+ | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
17
+ | `@entifix/service-shell` | `makeService`, `makeServerLayer`, `requirePrincipal`, `requirePermission`, `requireOrganization`, `entityMetadataRoute`, `loadRemoteConfiguration`, `makeObservabilityLayer`, `serveTestService` |
18
+
19
+ ---
20
+
21
+ Tier 4 (app framework) of entifix — a package depends only on its own tier or below. See [the tiers](https://github.com/r10c-technologies/entifix#the-tiers-and-what-you-are-allowed-to-install). MIT licensed.
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@entifix/service-shell",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
+ "description": "Effect HTTP service skeleton: server layer, health and metadata routes, permission guards, remote configuration and OpenTelemetry.",
4
5
  "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
@@ -30,9 +31,6 @@
30
31
  },
31
32
  "nx": {
32
33
  "tags": [
33
- "layer:shell",
34
- "scope:shared",
35
- "shell:base",
36
34
  "tier:4"
37
35
  ],
38
36
  "sourceRoot": "packages/effect/service-shell/src",
@@ -62,15 +60,15 @@
62
60
  "@opentelemetry/sdk-metrics": "2.10.0",
63
61
  "@opentelemetry/sdk-trace-base": "2.10.0",
64
62
  "@swc/helpers": "0.5.23",
65
- "@entifix/authz": "0.1.0",
66
- "@entifix/tooling": "0.1.0",
67
- "@entifix/business": "0.1.0",
68
- "@entifix/core": "0.1.0"
63
+ "@entifix/authz": "0.1.2",
64
+ "@entifix/business": "0.1.2",
65
+ "@entifix/core": "0.1.2",
66
+ "@entifix/tooling": "0.1.2"
69
67
  },
70
68
  "devDependencies": {
71
69
  "@opentelemetry/api": "1.9.1",
72
70
  "effect": "3.22.1",
73
- "@entifix/testing-unit": "0.1.0"
71
+ "@entifix/testing-unit": "0.1.2"
74
72
  },
75
73
  "peerDependencies": {
76
74
  "@opentelemetry/api": ">=1.9 <2",