@edenapp/types 0.10.1 → 0.11.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/AppManifest.d.ts CHANGED
@@ -328,6 +328,20 @@ export interface AppManifest {
328
328
  cwd?: string;
329
329
  };
330
330
 
331
+ /** Commands used when the app is mounted directly from source. */
332
+ development?: {
333
+ frontend?: {
334
+ command: string;
335
+ cwd?: string;
336
+ /** Renderer URL. Both command and URL may contain `{port}`. */
337
+ url: string;
338
+ };
339
+ backend?: {
340
+ command: string;
341
+ cwd?: string;
342
+ };
343
+ };
344
+
331
345
  /**
332
346
  * Permissions requested by this app.
333
347
  * Supports glob patterns: "fs/*" for all fs permissions, "*" for all permissions.
@@ -389,6 +403,9 @@ export interface RuntimeAppManifest extends AppManifest {
389
403
  /** Whether this is a prebuilt system app */
390
404
  isPrebuilt: boolean;
391
405
 
406
+ /** Whether this app is mounted directly from a development source tree. */
407
+ isDevelopment: boolean;
408
+
392
409
  /** Whether this is a core app (always allowed to launch) */
393
410
  isCore: boolean;
394
411
 
package/Branding.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Renderer-safe branding information.
3
+ *
4
+ * Filesystem paths are intentionally not exposed to applications.
5
+ */
6
+ export interface EdenBrandingInfo {
7
+ name: string;
8
+ logoDataUrl?: string;
9
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @edenapp/types
2
2
 
3
+ ## 0.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 826e23c: Add consumer-controlled product branding for SDK-owned interfaces and the
8
+ main Electron window.
9
+ - 0c50cbc: Add a cached standalone Eden development host and `eden-build dev` source-app workflow.
10
+
11
+ ## 0.10.2
12
+
3
13
  ## 0.10.1
4
14
 
5
15
  ### Patch Changes
package/EdenConfig.d.ts CHANGED
@@ -42,9 +42,27 @@ export interface TilingConfig {
42
42
  padding?: number;
43
43
  }
44
44
 
45
+ /**
46
+ * Consumer-controlled product branding.
47
+ *
48
+ * Relative asset paths resolve from Electron's application directory.
49
+ */
50
+ export interface EdenBrandingConfig {
51
+ /** Product name shown by SDK-owned user interfaces. */
52
+ name: string;
53
+
54
+ /** Logo shown by SDK-owned user interfaces. */
55
+ logoPath?: string;
56
+
57
+ /** Icon used for the main Electron window. */
58
+ iconPath?: string;
59
+ }
60
+
45
61
  export interface EdenConfig {
46
62
  appsDirectory?: string;
63
+ /** Root directory backing Eden's managed virtual filesystem. */
47
64
  userDirectory?: string;
65
+ branding?: EdenBrandingConfig;
48
66
  window?: {
49
67
  width?: number;
50
68
  height?: number;
package/User.d.ts CHANGED
@@ -4,6 +4,8 @@ export interface UserProfile {
4
4
  username: string;
5
5
  name: string;
6
6
  role: UserRole;
7
+ /** Writable filesystem root relative to EdenConfig.userDirectory. */
8
+ homeDirectory?: string;
7
9
  grants: string[];
8
10
  createdAt: number;
9
11
  updatedAt: number;
@@ -13,6 +15,8 @@ export interface EdenUserConfig {
13
15
  username: string;
14
16
  name: string;
15
17
  role?: UserRole;
18
+ /** Writable filesystem root relative to EdenConfig.userDirectory. */
19
+ homeDirectory?: string;
16
20
  password?: string;
17
21
  passwordHash?: string;
18
22
  passwordSalt?: string;
@@ -17,6 +17,13 @@ export interface SystemCommands {
17
17
  args: Record<string, never>;
18
18
  response: import("./index").SystemInfo;
19
19
  };
20
+ /**
21
+ * Get consumer-controlled product branding for SDK-owned interfaces.
22
+ */
23
+ "system/branding": {
24
+ args: Record<string, never>;
25
+ response: import("./index").EdenBrandingInfo;
26
+ };
20
27
  }
21
28
 
22
29
  /**
@@ -640,6 +647,26 @@ export interface ProcessCommands {
640
647
  };
641
648
  }
642
649
 
650
+ /**
651
+ * SessionCommands - Commands for the "session" namespace
652
+ */
653
+ export interface SessionCommands {
654
+ "session/get-current": {
655
+ args: Record<string, never>;
656
+ response: { user: import("./index").UserProfile | null };
657
+ };
658
+ "session/login": {
659
+ args: {
660
+ username: string;
661
+ password: string };
662
+ response: { success: boolean; user?: import("./index").UserProfile; error?: string };
663
+ };
664
+ "session/logout": {
665
+ args: Record<string, never>;
666
+ response: { success: boolean };
667
+ };
668
+ }
669
+
643
670
  /**
644
671
  * SettingsCommands - Commands for the "settings" namespace
645
672
  */
@@ -756,29 +783,6 @@ export interface UserCommands {
756
783
  args: Record<string, never>;
757
784
  response: { users: import("./index").UserProfile[] };
758
785
  };
759
- /**
760
- * Return the current logged-in user.
761
- */
762
- "user/get-current": {
763
- args: Record<string, never>;
764
- response: { user: import("./index").UserProfile | null };
765
- };
766
- /**
767
- * Authenticate a user and establish a session.
768
- */
769
- "user/login": {
770
- args: {
771
- username: string;
772
- password: string };
773
- response: { success: boolean; user?: import("./index").UserProfile; error?: string };
774
- };
775
- /**
776
- * End the current session.
777
- */
778
- "user/logout": {
779
- args: Record<string, never>;
780
- response: { success: boolean };
781
- };
782
786
  /**
783
787
  * Create a new user.
784
788
  */
@@ -788,7 +792,8 @@ export interface UserCommands {
788
792
  name: string;
789
793
  role?: import("./index").UserRole;
790
794
  password: string;
791
- grants?: string[] };
795
+ grants?: string[];
796
+ homeDirectory?: string };
792
797
  response: { user: import("./index").UserProfile };
793
798
  };
794
799
  /**
@@ -799,7 +804,8 @@ export interface UserCommands {
799
804
  username: string;
800
805
  name?: string;
801
806
  role?: import("./index").UserRole;
802
- grants?: string[] };
807
+ grants?: string[];
808
+ homeDirectory?: string | null };
803
809
  response: { user: import("./index").UserProfile };
804
810
  };
805
811
  /**
@@ -1004,4 +1010,4 @@ export interface ViewCommands {
1004
1010
  /**
1005
1011
  * Global command map - merge all command namespaces
1006
1012
  */
1007
- export interface CommandMap extends SystemCommands, AssociationsCommands, AppbusCommands, AppearanceCommands, ContextMenuCommands, DbCommands, FileCommands, FilePickerCommands, FsCommands, I18nCommands, EventCommands, NotificationCommands, PackageCommands, ProcessCommands, SettingsCommands, UserCommands, ViewCommands {}
1013
+ export interface CommandMap extends SystemCommands, AssociationsCommands, AppbusCommands, AppearanceCommands, ContextMenuCommands, DbCommands, FileCommands, FilePickerCommands, FsCommands, I18nCommands, EventCommands, NotificationCommands, PackageCommands, ProcessCommands, SessionCommands, SettingsCommands, UserCommands, ViewCommands {}
@@ -74,32 +74,29 @@ export interface ProcessEvents {
74
74
  }
75
75
 
76
76
  /**
77
- * SettingsEvents - Events for the "settings" namespace
77
+ * SessionEvents - Events for the "session" namespace
78
78
  */
79
- export interface SettingsEvents {
80
- "settings/changed": { appId: string; key: string; value: string };
81
- }
82
-
83
- /**
84
- * UserEvents - Events for the "user" namespace
85
- */
86
- export interface UserEvents {
87
- "user/changed": {
79
+ export interface SessionEvents {
80
+ "session/changed": {
88
81
  currentUser: import("./index").UserProfile | null;
89
82
  previousUsername: string | null;
90
83
  reason: "login" | "logout" | "system";
91
84
  };
92
85
  }
93
86
 
87
+ /**
88
+ * SettingsEvents - Events for the "settings" namespace
89
+ */
90
+ export interface SettingsEvents {
91
+ "settings/changed": { appId: string; key: string; value: string };
92
+ }
93
+
94
94
  /**
95
95
  * ViewEvents - Events for the "view" namespace
96
96
  */
97
97
  export interface ViewEvents {
98
98
  "view/bounds-updated": import("./index").ViewBounds;
99
- "view/global-bounds-changed": {
100
- workspaceBounds: import("./index").ViewBounds;
101
- windowSize: import("./index").WindowSize;
102
- };
99
+ "view/interface-scale-changed": { scale: number };
103
100
  "view/view-loaded": { viewId: number; appId: string; overlay: boolean };
104
101
  "view/view-load-failed": {
105
102
  viewId: number;
@@ -108,9 +105,13 @@ export interface ViewEvents {
108
105
  errorDescription: string;
109
106
  };
110
107
  "view/mode-changed": { mode: "floating" | "tiled"; bounds: import("./index").ViewBounds };
108
+ "view/global-bounds-changed": {
109
+ workspaceBounds: import("./index").ViewBounds;
110
+ windowSize: import("./index").WindowSize;
111
+ };
111
112
  }
112
113
 
113
114
  /**
114
115
  * Global event map - merge all event namespaces
115
116
  */
116
- export interface AppEvents extends AppearanceEvents, ContextMenuEvents, FileEvents, FilePickerEvents, I18nEvents, NotificationEvents, PackageEvents, ProcessEvents, SettingsEvents, UserEvents, ViewEvents {}
117
+ export interface AppEvents extends AppearanceEvents, ContextMenuEvents, FileEvents, FilePickerEvents, I18nEvents, NotificationEvents, PackageEvents, ProcessEvents, SessionEvents, SettingsEvents, ViewEvents {}
package/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import { AppManifest } from "./AppManifest";
2
2
 
3
3
  export * from "./EdenConfig";
4
4
  export * from "./EdenSeedConfig";
5
+ export * from "./Branding";
5
6
  export * from "./User";
6
7
 
7
8
  export * from "./AppManifest";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edenapp/types",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "TypeScript type definitions for the Eden platform",
5
5
  "types": "index.d.ts",
6
6
  "author": "Dariusz Majnert",