@lapis-notes/app-profile 0.3.1 → 0.3.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @lapis-notes/app-profile
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#218](https://github.com/lapismd/lapis-notes/pull/218)
8
+ [`b009ab2`](https://github.com/lapismd/lapis-notes/commit/b009ab298f977fefbf72160e77f31054b820a7ed)
9
+ Thanks [@stevejuma](https://github.com/stevejuma)! - Add an explicitly
10
+ admitted, activation-scoped plugin.services API for bounded native service
11
+ calls. Native hosts retain service admission, durable execution and credential
12
+ custody; cancellation never retries accepted operations or falls back to
13
+ renderer IO.
14
+ - Updated dependencies
15
+ [[`b009ab2`](https://github.com/lapismd/lapis-notes/commit/b009ab298f977fefbf72160e77f31054b820a7ed)]:
16
+ - @lapis-notes/api@0.6.21
17
+
18
+ ## 0.3.2
19
+
20
+ ### Patch Changes
21
+
22
+ - [#200](https://github.com/lapismd/lapis-notes/pull/200)
23
+ [`70a658d`](https://github.com/lapismd/lapis-notes/commit/70a658d1ad547c58c415ea4ef6be02af2c520121)
24
+ Thanks [@stevejuma](https://github.com/stevejuma)! - Allow a Tauri mobile host
25
+ to open a vault session with its own direct database provider and present the
26
+ shared workspace for an app-managed vault.
27
+
28
+ - [#204](https://github.com/lapismd/lapis-notes/pull/204)
29
+ [`9d34e7f`](https://github.com/lapismd/lapis-notes/commit/9d34e7f94721ffae62fbcf6f7996c6e9efea69b5)
30
+ Thanks [@stevejuma](https://github.com/stevejuma)! - Allow trusted plugins to
31
+ request a host-backed `plugin:secrets` capability. The workspace profile
32
+ passes the host's credential service into the plugin lifecycle. A plugin uses
33
+ `this.secrets.get`, `set`, and `delete` within its own approved scope.
34
+ - Updated dependencies
35
+ [[`70a658d`](https://github.com/lapismd/lapis-notes/commit/70a658d1ad547c58c415ea4ef6be02af2c520121),
36
+ [`9d34e7f`](https://github.com/lapismd/lapis-notes/commit/9d34e7f94721ffae62fbcf6f7996c6e9efea69b5)]:
37
+ - @lapis-notes/api@0.6.16
38
+
3
39
  ## 0.3.1
4
40
 
5
41
  ### Patch Changes
@@ -7,6 +7,8 @@ export function createNotesApplication(options) {
7
7
  configPath: appStatePath("app.json"),
8
8
  session: options.session,
9
9
  syncHost: options.host?.syncHost,
10
+ pluginSecretsHost: options.host?.pluginSecretsHost,
11
+ pluginServicesHost: options.host?.pluginServicesHost,
10
12
  pluginAssetServer: options.pluginAssetServer,
11
13
  pluginDistributionOptions: options.pluginDistributionOptions,
12
14
  unavailablePlugins: options.host?.unavailablePlugins ?? {
@@ -1,3 +1,4 @@
1
+ import type { NotesWorkspaceSessionProps } from "./types";
1
2
  import type { App } from "@lapis-notes/api";
2
3
  import { type NativeChatHost } from "../native-chat/index";
3
- export declare function registerSessionNativeChat(app: App, factory: (app: App) => NativeChatHost, runtime: "web-pwa" | "node-server" | "rust-server"): void;
4
+ export declare function registerSessionNativeChat(app: App, factory: (app: App) => NativeChatHost, runtime: NotesWorkspaceSessionProps["runtime"]): void;
@@ -5,6 +5,8 @@ type AppOptions = ConstructorParameters<typeof App>[0];
5
5
  /** Browser permissions and platform registration remain owned by the host. */
6
6
  export interface NotesWorkspaceHost {
7
7
  syncHost?: AppOptions["syncHost"];
8
+ pluginSecretsHost?: AppOptions["pluginSecretsHost"];
9
+ pluginServicesHost?: AppOptions["pluginServicesHost"];
8
10
  unavailablePlugins?: AppOptions["unavailablePlugins"];
9
11
  attach?(app: App, syncHost: SyncHostService): () => void;
10
12
  configure?(app: App): Promise<(() => void) | void>;
@@ -14,7 +16,7 @@ export interface NotesWorkspaceHost {
14
16
  export interface NotesWorkspaceSessionProps {
15
17
  profile: VaultProfile;
16
18
  session: VaultSession;
17
- runtime: "web-pwa" | "node-server" | "rust-server";
19
+ runtime: "web-pwa" | "node-server" | "rust-server" | "tauri-mobile";
18
20
  onReady(app: App): void | Promise<void>;
19
21
  onOpenRecent(profile: VaultProfile): Promise<void>;
20
22
  onManageVaults(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lapis-notes/app-profile",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -41,7 +41,7 @@
41
41
  }
42
42
  },
43
43
  "dependencies": {
44
- "@lapis-notes/api": "^0.6.15",
44
+ "@lapis-notes/api": "^0.6.21",
45
45
  "@lapis-notes/file-explorer": "^0.2.8",
46
46
  "@lapis-notes/history": "^0.5.1",
47
47
  "@lapis-notes/markdown": "^0.3.3",