@frockbot/protocol 0.3.21 → 0.3.23
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/package.json +1 -1
- package/src/index.ts +11 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -3,6 +3,17 @@ export interface PromptRequest {
|
|
|
3
3
|
text: string;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* The header every hosted answer carries, naming the application it came from.
|
|
8
|
+
*
|
|
9
|
+
* The value is the application hash the served document also stamps into
|
|
10
|
+
* `data-frockbot-user-application`, so a page that has been open across a
|
|
11
|
+
* release can compare what it is running against what just answered it. It
|
|
12
|
+
* lives here rather than in either end because the Worker writes it and the
|
|
13
|
+
* client reads it, and neither owns the other.
|
|
14
|
+
*/
|
|
15
|
+
export const DEPLOYMENT_HEADER_V1 = "x-frockbot-application-v1";
|
|
16
|
+
|
|
6
17
|
/**
|
|
7
18
|
* Version 1 of the Bot-state observer protocol. Frames are invalidations, not
|
|
8
19
|
* authority: a client that receives one re-reads the owning HTTP projection.
|