ugly-app 0.1.47 → 0.1.48

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 CHANGED
@@ -604,8 +604,8 @@ Run `npm run db:init` to create/update indexes.
604
604
  ### Text generation
605
605
 
606
606
  ```typescript
607
- import { createTextGen } from 'ugly-app';
608
- const textGen = createTextGen();
607
+ import { createTextGenClient } from 'ugly-app';
608
+ const textGen = createTextGenClient();
609
609
 
610
610
  const text = await textGen.generate(messages);
611
611
  const json = await textGen.generateJson(schema, messages); // Zod schema, retries on parse failure
@@ -626,8 +626,8 @@ Use `provider: 'auto'` (default) to let the system pick based on requirements.
626
626
  ### Image generation
627
627
 
628
628
  ```typescript
629
- import { createImageGen } from 'ugly-app';
630
- const imageGen = createImageGen();
629
+ import { createImageGenClient } from 'ugly-app';
630
+ const imageGen = createImageGenClient();
631
631
 
632
632
  const url = await imageGen.generate(prompt, { width: 1024, height: 1024 });
633
633
  ```
@@ -888,12 +888,6 @@ Client-side variables must be prefixed with `VITE_`.
888
888
 
889
889
  ---
890
890
 
891
- ## Tech stack
892
-
893
- Node.js · TypeScript · Express · React 19 · Vite · Tailwind CSS · MongoDB · NATS · Redis · Cloudflare R2 · Zod · JWT (jose) · ugly.bot OAuth
894
-
895
- ---
896
-
897
891
  ## Shared utilities
898
892
 
899
893
  `ugly-app/shared` exports common helpers used by both server and client:
@@ -925,3 +919,9 @@ oneHour; // 3_600_000
925
919
  oneDay; // 86_400_000
926
920
  oneWeek; // 604_800_000
927
921
  ```
922
+
923
+ ---
924
+
925
+ ## Tech stack
926
+
927
+ Node.js · TypeScript · Express · React 19 · Vite · Tailwind CSS · MongoDB · NATS · Redis · Cloudflare R2 · Zod · JWT (jose) · ugly.bot OAuth
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugly-app",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "type": "module",
5
5
  "main": "./dist/server/index.js",
6
6
  "exports": {
@@ -2,13 +2,20 @@ import { defineConfig, devices } from '@playwright/test';
2
2
 
3
3
  export default defineConfig({
4
4
  testDir: './tests/e2e',
5
- timeout: 30_000,
6
- retries: 0,
7
- workers: undefined, // parallel by default
5
+ fullyParallel: true,
6
+ forbidOnly: !!process.env['CI'],
7
+ retries: process.env['CI'] ? 2 : 0,
8
+ workers: process.env['CI'] ? 1 : undefined,
8
9
  reporter: 'list',
10
+ outputDir: 'test-results',
11
+ timeout: 30_000,
12
+ expect: {
13
+ timeout: 10_000,
14
+ },
9
15
  use: {
10
16
  baseURL: 'http://localhost:3000',
11
17
  screenshot: 'only-on-failure',
18
+ video: 'on-first-retry',
12
19
  trace: 'on-first-retry',
13
20
  actionTimeout: 10_000,
14
21
  navigationTimeout: 30_000,