@plugmatica/core-sdk 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,51 @@
1
- # Temporary Holding Version
1
+ # @plugmatica/core-sdk
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
+ ## Shared semantic contracts
4
+
5
+ The framework-free identity helpers, standard surfaces, extension targets, `PluginKey` and extension wire arrays are owned by `@plugmatica/semantic-contracts`. Core SDK re-exports those exact symbols; existing consumers can keep their imports. Runtime DTOs, authentication/query/workflow contracts and diagnostics remain here. Core protocol generation uses the SDK-owned Rust metadata.
6
+
7
+ Public Plugmatica runtime protocol and contract types shared by the plugin SDK and platform tooling. Standalone UI libraries do not depend on Core SDK.
8
+
9
+ ## Who should use it
10
+
11
+ Most plugin authors should start with `@plugmatica/plugin-sdk` and `@plugmatica/ui-kit`. Install `@plugmatica/core-sdk` directly when you need the public DTOs, IDs, extension contracts or protocol constants that are intentionally shared across Plugmatica packages.
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ pnpm add @plugmatica/core-sdk@beta
17
+ ```
18
+
19
+ ## Requirements
20
+
21
+ This package is ESM and has no peer dependencies. It is intended for modern TypeScript/JavaScript toolchains used by Plugmatica plugins and tooling.
22
+
23
+ ## Quick start
24
+
25
+ ```ts
26
+ import type { ActorContext } from "@plugmatica/core-sdk";
27
+
28
+ export function actorPid(actor: ActorContext): string {
29
+ return actor.user.pid;
30
+ }
31
+ ```
32
+
33
+ ## Public entry points
34
+
35
+ - `@plugmatica/core-sdk` — the supported public contract surface.
36
+
37
+ Anything not exported from the package root is internal and may change without being treated as a public API change.
38
+
39
+ ## Beta stability
40
+
41
+ This package is part of the Plugmatica public beta API. Breaking public-contract changes are deliberate, versioned, release-noted and checked against the repository's public API baselines.
42
+
43
+ Package versioning is independent from Plugmatica protocol versioning.
44
+
45
+ ## Documentation
46
+
47
+ Full SDK and stability documentation: https://plugmatica.com/plugmatica/sdk/intro
48
+
49
+ ## License
50
+
51
+ MIT.