@ramme-io/shared 3.1.0 → 3.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.
- package/LICENSE +2 -2
- package/README.md +47 -0
- package/dist/index.cjs +490 -36
- package/dist/index.d.cts +1491 -3
- package/dist/index.d.ts +1491 -3
- package/dist/index.js +443 -36
- package/package.json +3 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2025 Excesspool Limited Liability Company
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# @ramme-io/shared
|
|
2
|
+
|
|
3
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
|
+
|
|
5
|
+
**Shared TypeScript types, Zod schemas, and utilities used across the Ramme framework.**
|
|
6
|
+
|
|
7
|
+
This package is the single source of truth for data contracts shared between `@ramme-io/kernel`, `@ramme-io/ui`, and every product app. If two packages need to agree on the shape of a value, the schema for it lives here.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
If you created your app with `npx @ramme-io/create-app@latest`, this package is already installed.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm add @ramme-io/shared
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Import schemas directly, or infer their TypeScript types with Zod's `z.infer`:
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { SignalSchema, type Signal } from '@ramme-io/shared';
|
|
23
|
+
|
|
24
|
+
const reading: Signal = SignalSchema.parse(rawPayload);
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## What's in here
|
|
28
|
+
|
|
29
|
+
| Export path | Contract |
|
|
30
|
+
| --- | --- |
|
|
31
|
+
| `src/schema.ts` | Core app manifest / sitemap contracts consumed by `@ramme-io/kernel` |
|
|
32
|
+
| `src/signals/` | Universal Signal Protocol (Law 12) — `SignalPacket` primitives, source/kind enums |
|
|
33
|
+
| `src/bodewell/schema.ts` | Bodewell tenant exports — hardware-specific adapters that map onto `SignalPacket` |
|
|
34
|
+
| `src/ai/tools.ts`, `src/ai/registry.ts` | AI tool-calling schemas and the model registry (single line of truth for model assignments) |
|
|
35
|
+
| `src/ai/prompts/` | Canonical system-prompt string constants for AI agents (theme + genesis) |
|
|
36
|
+
| `src/theme/schema.ts` | Theme contract (Law 13) — `ThemeOverridesSchema`, `AIThemeSchema`, theme presets |
|
|
37
|
+
| `src/auth/schema.ts` | User/auth entity definitions |
|
|
38
|
+
| `src/counterparty/schema.ts` | Counterparty Intelligence contract for the Fleet-Brain-Deep alternative-signal engine |
|
|
39
|
+
| `src/non-public-entity/schema.ts` | GLEIF LEI-lookup-sourced legal-entity records |
|
|
40
|
+
|
|
41
|
+
## For Framework Contributors
|
|
42
|
+
|
|
43
|
+
See [CLAUDE.md](./CLAUDE.md) for the full contributor role and the **IRON LAW — Logic = 0** convention: this package holds Zod schemas and their inferred types only. No UI code, no firmware logic, no business logic — any change here is a data-contract change that ripples to every downstream package.
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
pnpm --filter @ramme-io/shared build # tsup index.ts --format esm,cjs --dts --clean
|
|
47
|
+
```
|