sakuya-types 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/index.ts +18 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -88,12 +88,28 @@ export interface ExtensionContext {
88
88
  workspaceDir: string;
89
89
  }
90
90
 
91
+ /**
92
+ * Metadata for a Sakuya extension.
93
+ */
94
+ export interface ExtensionMetadata {
95
+ /** Unique name identifier for the extension, e.g., 'discord-adapter' */
96
+ name: string;
97
+ /** Semver version string */
98
+ version: string;
99
+ /** Brief description of what the extension does */
100
+ description?: string;
101
+ /** Author name */
102
+ author?: string;
103
+ /** URL to the extension's homepage or repository */
104
+ homepage?: string;
105
+ }
106
+
91
107
  /**
92
108
  * Every extension module must default-export an object implementing this interface.
93
109
  */
94
110
  export interface SakuyaExtension {
95
- /** Unique extension identifier for logging */
96
- name: string;
111
+ /** Metadata about the extension */
112
+ metadata: ExtensionMetadata;
97
113
  /** Lifecycle hook: called when extension is loaded during daemon startup */
98
114
  activate(ctx: ExtensionContext): void | Promise<void>;
99
115
  /** Lifecycle hook: called during daemon shutdown for cleanup */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sakuya-types",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Type definitions for Sakuya extensions",
5
5
  "type": "module",
6
6
  "main": "index.ts",