@kvasar/google-stitch 0.1.1 → 0.1.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/index.ts +12 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
package/index.ts
CHANGED
|
@@ -13,12 +13,23 @@ import { updateDesignSystemTool } from "./src/tools/update_design_system.js";
|
|
|
13
13
|
import { listDesignSystemsTool } from "./src/tools/list_design_systems.js";
|
|
14
14
|
import { applyDesignSystemTool } from "./src/tools/apply_design_system.js";
|
|
15
15
|
|
|
16
|
+
interface StitchPluginConfig {
|
|
17
|
+
apiKey?: string;
|
|
18
|
+
endpoint?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
16
22
|
export default definePluginEntry({
|
|
17
23
|
id: "openclaw-google-stitch",
|
|
18
24
|
name: "Google Stitch",
|
|
19
25
|
description: "Google Stitch integration for UI generation and design workflows",
|
|
20
26
|
register(api) {
|
|
21
|
-
|
|
27
|
+
const cfg = (
|
|
28
|
+
(api as { pluginConfig?: unknown; config?: unknown }).pluginConfig ??
|
|
29
|
+
(api as { pluginConfig?: unknown; config?: unknown }).config ??
|
|
30
|
+
{}
|
|
31
|
+
) as StitchPluginConfig;
|
|
32
|
+
|
|
22
33
|
if (!cfg?.apiKey || !cfg?.endpoint) {
|
|
23
34
|
throw new Error("Missing required configuration: apiKey and endpoint");
|
|
24
35
|
}
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kvasar/google-stitch",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "OpenClaw plugin for Google Stitch UI generation, screen design, variants, and design systems",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"openclaw": {
|
|
23
23
|
"extensions": [
|
|
24
|
-
"./
|
|
24
|
+
"./index.ts"
|
|
25
25
|
],
|
|
26
26
|
"tools": [
|
|
27
27
|
"create_project",
|