@patchedcodes/hackathon-widget 0.1.3 → 0.1.4
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/README.md +101 -6
- package/dist/devloyed-widget.js +1169 -1006
- package/dist/devloyed-widget.js.map +1 -1
- package/dist/index.d.ts +3 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export declare interface CommandResponse {
|
|
|
59
59
|
commitId: string;
|
|
60
60
|
/** AI's explanation of what was changed */
|
|
61
61
|
transcript: string;
|
|
62
|
+
/** Short descriptive commit message for the changes */
|
|
63
|
+
commitMessage: string;
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
/**
|
|
@@ -180,7 +182,6 @@ export declare class DevloyedWidget extends HTMLElement {
|
|
|
180
182
|
*
|
|
181
183
|
* init({
|
|
182
184
|
* endpoint: 'https://api.devloyed.com/command',
|
|
183
|
-
* projectId: 'my-project',
|
|
184
185
|
* apiKey: 'your-api-key',
|
|
185
186
|
* position: 'bottom-right',
|
|
186
187
|
* theme: 'light',
|
|
@@ -192,7 +193,7 @@ export declare function init(config: WidgetConfig): DevloyedWidget;
|
|
|
192
193
|
/**
|
|
193
194
|
* Internal resolved configuration with defaults applied.
|
|
194
195
|
*/
|
|
195
|
-
export declare interface ResolvedConfig extends Required<Pick<WidgetConfig, "endpoint" | "
|
|
196
|
+
export declare interface ResolvedConfig extends Required<Pick<WidgetConfig, "endpoint" | "apiKey" | "position" | "theme">> {
|
|
196
197
|
headers: Record<string, string>;
|
|
197
198
|
onDeployReady?: (branch: string, previewUrl: string) => void;
|
|
198
199
|
onError?: (error: Error) => void;
|
|
@@ -231,8 +232,6 @@ export declare class TransportClient {
|
|
|
231
232
|
export declare interface WidgetConfig {
|
|
232
233
|
/** Backend endpoint URL for sending commands (POST) */
|
|
233
234
|
endpoint: string;
|
|
234
|
-
/** Project identifier — sent with each request so the backend knows which repo to modify */
|
|
235
|
-
projectId: string;
|
|
236
235
|
/** API key sent in the request body to authenticate with the backend */
|
|
237
236
|
apiKey: string;
|
|
238
237
|
/** Position of the floating widget button */
|
package/package.json
CHANGED