@lapis-notes/app-profile 0.3.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @lapis-notes/app-profile
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#200](https://github.com/lapismd/lapis-notes/pull/200)
8
+ [`70a658d`](https://github.com/lapismd/lapis-notes/commit/70a658d1ad547c58c415ea4ef6be02af2c520121)
9
+ Thanks [@stevejuma](https://github.com/stevejuma)! - Allow a Tauri mobile host
10
+ to open a vault session with its own direct database provider and present the
11
+ shared workspace for an app-managed vault.
12
+
13
+ - [#204](https://github.com/lapismd/lapis-notes/pull/204)
14
+ [`9d34e7f`](https://github.com/lapismd/lapis-notes/commit/9d34e7f94721ffae62fbcf6f7996c6e9efea69b5)
15
+ Thanks [@stevejuma](https://github.com/stevejuma)! - Allow trusted plugins to
16
+ request a host-backed `plugin:secrets` capability. The workspace profile
17
+ passes the host's credential service into the plugin lifecycle. A plugin uses
18
+ `this.secrets.get`, `set`, and `delete` within its own approved scope.
19
+ - Updated dependencies
20
+ [[`70a658d`](https://github.com/lapismd/lapis-notes/commit/70a658d1ad547c58c415ea4ef6be02af2c520121),
21
+ [`9d34e7f`](https://github.com/lapismd/lapis-notes/commit/9d34e7f94721ffae62fbcf6f7996c6e9efea69b5)]:
22
+ - @lapis-notes/api@0.6.16
23
+
24
+ ## 0.3.1
25
+
26
+ ### Patch Changes
27
+
28
+ - [#201](https://github.com/lapismd/lapis-notes/pull/201)
29
+ [`343ca74`](https://github.com/lapismd/lapis-notes/commit/343ca7461506aa49552e8633879051a8e310d656)
30
+ Thanks [@stevejuma](https://github.com/stevejuma)! - Add typed headless plugin
31
+ job declarations, an App-owned native observation port and shared settings for
32
+ opt-in schedules, scoped grants, history and runner handoff.
33
+ - Updated dependencies
34
+ [[`343ca74`](https://github.com/lapismd/lapis-notes/commit/343ca7461506aa49552e8633879051a8e310d656)]:
35
+ - @lapis-notes/api@0.6.15
36
+ - @lapis-notes/workspace@0.4.11
37
+
3
38
  ## 0.3.0
4
39
 
5
40
  ### Minor Changes
@@ -7,6 +7,7 @@ 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,
10
11
  pluginAssetServer: options.pluginAssetServer,
11
12
  pluginDistributionOptions: options.pluginDistributionOptions,
12
13
  unavailablePlugins: options.host?.unavailablePlugins ?? {
@@ -69,6 +69,7 @@ export function createNotesSessionLifecycle(options) {
69
69
  await persistLayout();
70
70
  disposed = true;
71
71
  await attempt(() => app.nativeTasks?.detach());
72
+ await attempt(() => app.backgroundJobs?.detach());
72
73
  await attempt(() => prepareNativeChatLeave(app, "detach"));
73
74
  options.fence();
74
75
  await attempt(() => app.workspace.disposeWorkspaceHost());
@@ -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,7 @@ 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"];
8
9
  unavailablePlugins?: AppOptions["unavailablePlugins"];
9
10
  attach?(app: App, syncHost: SyncHostService): () => void;
10
11
  configure?(app: App): Promise<(() => void) | void>;
@@ -14,7 +15,7 @@ export interface NotesWorkspaceHost {
14
15
  export interface NotesWorkspaceSessionProps {
15
16
  profile: VaultProfile;
16
17
  session: VaultSession;
17
- runtime: "web-pwa" | "node-server" | "rust-server";
18
+ runtime: "web-pwa" | "node-server" | "rust-server" | "tauri-mobile";
18
19
  onReady(app: App): void | Promise<void>;
19
20
  onOpenRecent(profile: VaultProfile): Promise<void>;
20
21
  onManageVaults(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lapis-notes/app-profile",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -41,13 +41,13 @@
41
41
  }
42
42
  },
43
43
  "dependencies": {
44
- "@lapis-notes/api": "^0.6.11",
44
+ "@lapis-notes/api": "^0.6.16",
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",
48
48
  "@lapis-notes/search": "^0.1.13",
49
49
  "@lapis-notes/source-editor": "^0.1.12",
50
- "@lapis-notes/workspace": "^0.4.10",
50
+ "@lapis-notes/workspace": "^0.4.11",
51
51
  "@lapismd/agent-ui": "^0.2.8",
52
52
  "@lapismd/design-core": "^0.13.7",
53
53
  "@lapismd/jj-history": "^0.1.0"