@peers-app/peers-sdk 0.28.6 → 0.28.8

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 (40) hide show
  1. package/README.md +2 -2
  2. package/dist/contracts/builder.d.ts +0 -6
  3. package/dist/contracts/builder.js +0 -11
  4. package/dist/contracts/contract-proxy.d.ts +7 -6
  5. package/dist/contracts/extract.d.ts +1 -1
  6. package/dist/contracts/system/contract-catalog-contract.d.ts +6 -0
  7. package/dist/contracts/system/contract-catalog-contract.js +1 -0
  8. package/dist/contracts/system/packages-contract.d.ts +19 -6
  9. package/dist/contracts/system/packages-contract.js +15 -2
  10. package/dist/data/package-version-resolver.js +1 -19
  11. package/dist/data/package-versions.d.ts +4 -0
  12. package/dist/data/package-versions.js +8 -0
  13. package/dist/data/packages.utils.d.ts +4 -0
  14. package/dist/data/packages.utils.js +5 -1
  15. package/dist/data/tools.d.ts +0 -10
  16. package/dist/define/context.d.ts +5 -7
  17. package/dist/define/observables.js +1 -5
  18. package/dist/package-build/cli.js +4 -3
  19. package/dist/package-build/contract-add.d.ts +4 -2
  20. package/dist/package-build/contract-add.js +3 -11
  21. package/dist/package-build/contract-source.d.ts +7 -4
  22. package/dist/package-build/contract-source.js +26 -13
  23. package/dist/package-build/index.d.ts +3 -0
  24. package/dist/package-build/index.js +11 -0
  25. package/dist/package-installer/package-cloner.js +1 -0
  26. package/dist/package-installer/package-creator.js +2 -0
  27. package/dist/package-installer/package-installer.d.ts +3 -1
  28. package/dist/package-installer/package-installer.js +37 -8
  29. package/dist/package-installer/package-sdk-version.d.ts +5 -0
  30. package/dist/package-installer/package-sdk-version.js +50 -0
  31. package/dist/package-installer/types.d.ts +11 -4
  32. package/dist/package-loader/isolated-artifact.d.ts +16 -29
  33. package/dist/package-loader/isolated-artifact.js +20 -33
  34. package/dist/package-loader/package-loader.d.ts +5 -5
  35. package/dist/package-loader/package-loader.js +14 -43
  36. package/dist/package-loader/package-runtime-state.d.ts +1 -2
  37. package/dist/sdk-version.d.ts +2 -0
  38. package/dist/sdk-version.js +5 -0
  39. package/dist/types/peers-package.d.ts +1 -7
  40. package/package.json +1 -1
@@ -24,9 +24,8 @@ export type PackageRuntimeStatus = "running" | "failed" | "unavailable" | "unsup
24
24
  *
25
25
  * - `isolated` — an isolated artifact served by the host's isolated runtime.
26
26
  * - `contract` — an in-process `definePackage()` bundle.
27
- * - `legacy` — an in-process legacy bundle without a package definition.
28
27
  */
29
- export type PackageRuntimeKind = "isolated" | "contract" | "legacy";
28
+ export type PackageRuntimeKind = "isolated" | "contract";
30
29
  /** A contract a running package provides. */
31
30
  export interface IPackageRuntimeProvidedContract {
32
31
  /** Provided contract identity. */
@@ -0,0 +1,2 @@
1
+ /** Version of this installed SDK, included by host bundlers from its package metadata. */
2
+ export declare const SDK_VERSION: string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SDK_VERSION = void 0;
4
+ /** Version of this installed SDK, included by host bundlers from its package metadata. */
5
+ exports.SDK_VERSION = require("../package.json").version;
@@ -1,16 +1,10 @@
1
- import type { IAssistant } from "../data";
2
- import type { ITableDefinition } from "../data/orm/table-definitions.type";
3
1
  import type { IPeersUI } from "../peers-ui/peers-ui";
4
2
  import type { IPeersUIRoute } from "../peers-ui/peers-ui.types";
5
3
  import type { IAppNav } from "./app-nav";
6
- import type { IWorkflow } from "./workflow";
7
- /** Host package tables, assistants and UI; tools are provided by contracts. */
4
+ /** Identity and navigation of a loaded package; content is installed from its definition. */
8
5
  export interface IPeersPackage {
9
6
  packageId: string;
10
- assistants?: IAssistant[];
11
- workflows?: IWorkflow[];
12
7
  appNavs?: IAppNav[];
13
- tableDefinitions?: ITableDefinition[];
14
8
  }
15
9
  /** Routes exported by a host package. */
16
10
  export interface IPeersPackageRoutes {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peers-app/peers-sdk",
3
- "version": "0.28.6",
3
+ "version": "0.28.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/peers-app/peers-sdk.git"