@hazem3500/komo 0.9.23 → 0.9.24
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 +2 -0
- package/dist/public-env.d.ts +25 -0
- package/dist/server.d.ts +8 -0
- package/dist/server.js +2791 -0
- package/package.json +15 -7
- package/server/public-env.ts +28 -0
- package/server/secrets.d.ts +8 -21
package/README.md
CHANGED
|
@@ -609,3 +609,5 @@ Exports include threads, replies, reactions, anchors, and historical profiles ac
|
|
|
609
609
|
Upgrade self-hosted deployments with `npm install @hazem3500/komo@latest` then `npx @hazem3500/komo deploy`; the CLI applies bundled database migrations before redeploying. Self-hosted project removal is controlled by your Worker configuration. Account-wide data requests remain available at ty@offbr.co.
|
|
610
610
|
|
|
611
611
|
Without `pageRoot`, a sole existing content element with a layout box enables Frame. Script and style elements do not count as content roots. Multiple roots or `display: contents` use Floating; pass a suitable existing app container for Frame.
|
|
612
|
+
|
|
613
|
+
The `@hazem3500/komo/server` export loads built ESM in Node and includes Worker handler types. Wrangler selects the original TypeScript through the `workerd` condition; keep `nodejs_compat` enabled. Package metadata is available at `@hazem3500/komo/package.json`.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { D1Database, RateLimit } from "@cloudflare/workers-types";
|
|
2
|
+
export interface ServerEnv {
|
|
3
|
+
DB: D1Database;
|
|
4
|
+
PROJECTS: string;
|
|
5
|
+
GOOGLE_CLIENT_ID: string;
|
|
6
|
+
GITHUB_CLIENT_ID: string;
|
|
7
|
+
GITHUB_CLIENT_SECRET: string;
|
|
8
|
+
GOOGLE_CLIENT_SECRET: string;
|
|
9
|
+
KOMO_WEBHOOK_KEYS?: string;
|
|
10
|
+
KOMO_WEBHOOK_SEND?: (url: string, body: string, headers: Record<string, string>) => Promise<void>;
|
|
11
|
+
/** Optional server secret mixed into access token hashes. Changing it revokes every token. */
|
|
12
|
+
KOMO_TOKEN_PEPPER?: string;
|
|
13
|
+
KOMO_HOSTED?: string;
|
|
14
|
+
KOMO_PAUSED?: string;
|
|
15
|
+
/** Enables Google Cloud IAP sign-in: the IAP backend service audience. */
|
|
16
|
+
KOMO_IAP_AUDIENCE?: string;
|
|
17
|
+
/** Path prefix for IAP sign-in handlers, e.g. "/backoffice". */
|
|
18
|
+
KOMO_AUTH_PREFIX?: string;
|
|
19
|
+
/** Path the app is served under behind a proxy that strips it, e.g. "/komo". */
|
|
20
|
+
KOMO_PUBLIC_PATH?: string;
|
|
21
|
+
EDGE_LIMIT?: RateLimit;
|
|
22
|
+
KOMO_VERSION?: {
|
|
23
|
+
id: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ExportedHandlerFetchHandler, ExportedHandlerScheduledHandler } from "@cloudflare/workers-types";
|
|
2
|
+
import type { ServerEnv } from "./public-env.js";
|
|
3
|
+
export type { ServerEnv } from "./public-env.js";
|
|
4
|
+
declare const server: {
|
|
5
|
+
fetch: ExportedHandlerFetchHandler<ServerEnv>;
|
|
6
|
+
scheduled: ExportedHandlerScheduledHandler<ServerEnv>;
|
|
7
|
+
};
|
|
8
|
+
export default server;
|