@plugmatica/semantic-contracts 0.0.0-stage → 0.1.0

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Plugmatica contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,63 @@
1
- # Temporary Holding Version
1
+ # @plugmatica/semantic-contracts
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Framework-independent semantic extension definitions for Plugmatica UI,
4
+ plugin tooling and SDK consumers. Provides identity derivation, identity brands,
5
+ standard surface definitions, contribution/target vocabulary, `PluginKey` and
6
+ extension wire-value arrays. Does not implement React contexts, networking,
7
+ plugin execution, compiler diagnostics or authorization.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ pnpm add @plugmatica/semantic-contracts@beta
13
+ ```
14
+
15
+ The package is ESM and has no runtime or peer dependencies. The initial release
16
+ line is `0.1.0` under npm's `beta` tag. See npm for published availability. The
17
+ public entry point is `@plugmatica/semantic-contracts`; no deep source imports are
18
+ supported.
19
+
20
+ ```ts
21
+ import {
22
+ derivePublicExtensionIdentity,
23
+ staticExtensionIdentity,
24
+ } from "@plugmatica/semantic-contracts";
25
+
26
+ const identity = derivePublicExtensionIdentity({
27
+ scope: "customer.detail.form",
28
+ semantic: staticExtensionIdentity("email"),
29
+ });
30
+ // identity.key === "customer.detail.form.email"
31
+ ```
32
+
33
+ The Core SDK compatibility surface re-exports these canonical definitions; do
34
+ not duplicate the unique-symbol brands or implement separate runtime identity
35
+ functions. Plugin authors should use the supported Plugin SDK authoring helpers.
36
+ Package versions and wire protocol versions are independent.
37
+
38
+ ## Development and protocol ownership
39
+
40
+ The canonical Rust metadata belongs to the SDK. This package uses committed,
41
+ checksum-verified protocol inputs without a Rust compiler or SDK checkout.
42
+ From the workspace root:
43
+
44
+ ```bash
45
+ pnpm --filter @plugmatica/semantic-contracts generate:protocol
46
+ pnpm --filter @plugmatica/semantic-contracts check:protocol
47
+ pnpm --filter @plugmatica/semantic-contracts test:protocol
48
+ pnpm --filter @plugmatica/semantic-contracts typecheck
49
+ pnpm --filter @plugmatica/semantic-contracts test
50
+ pnpm --filter @plugmatica/semantic-contracts build
51
+ ```
52
+
53
+ Build, typecheck and test each explicitly generate the verified projection;
54
+ they do not rely on implicit package-manager pre-hooks. The generated
55
+ projection is ignored in Git. The [protocol contract guide](https://github.com/plugmatica/plugmatica-ui/blob/main/packages/semantic-contracts/contracts/README.md)
56
+ explains how to update the pin and separately verify its canonical Git origin.
57
+ The independent UI release checks the committed artifact, lock and projection;
58
+ it rejects unsupported provenance records and development overrides without
59
+ accessing the SDK repository.
60
+
61
+ ## Licence
62
+
63
+ MIT; see [LICENSE](LICENSE).