@womp/openai-plugin 0.2.0 → 0.3.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/dist/index.d.ts +14 -1
- package/dist/index.js +12 -12
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -49,6 +49,14 @@ interface LiveView {
|
|
|
49
49
|
url: string;
|
|
50
50
|
expiresAt: string;
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* A one-time link that opens a page for keeping this chat's designs and orders in a Womp account. Like `LiveView`
|
|
54
|
+
* it is a credential: it goes to the card alone, when the user asks for it, and never into text the model reads.
|
|
55
|
+
*/
|
|
56
|
+
interface ClaimLink {
|
|
57
|
+
url: string;
|
|
58
|
+
expiresAt: string;
|
|
59
|
+
}
|
|
52
60
|
interface WompBackend {
|
|
53
61
|
/** `live` is optional: a host that cannot offer a live view leaves it out and the card shows its picture. */
|
|
54
62
|
openScene(subject: string, input: {
|
|
@@ -75,6 +83,11 @@ interface WompBackend {
|
|
|
75
83
|
designId: string;
|
|
76
84
|
title: string;
|
|
77
85
|
}): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Optional: a host that cannot keep a chat's designs in an account leaves it out, and the card shows no button.
|
|
88
|
+
* Returns undefined when it has no link to give right now.
|
|
89
|
+
*/
|
|
90
|
+
claimLink?(subject: string): Promise<ClaimLink | undefined>;
|
|
78
91
|
getBuild(subject: string, input: {
|
|
79
92
|
designId: string;
|
|
80
93
|
buildId: string;
|
|
@@ -97,4 +110,4 @@ interface ServerOptions {
|
|
|
97
110
|
}
|
|
98
111
|
declare function createServer({ backend, subject, onError, instructions, liveViewOrigin }: ServerOptions): McpServer;
|
|
99
112
|
|
|
100
|
-
export { BackendRefusal, type LiveView, type WompBackend, createServer };
|
|
113
|
+
export { BackendRefusal, type ClaimLink, type LiveView, type WompBackend, createServer };
|