@tiny-fish/cli 0.53.1-next.443 → 0.53.1-next.444

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.
@@ -6,6 +6,8 @@ export const START_TIMEOUT_MS = 90_000;
6
6
  export const READ_TIMEOUT_MS = 15_000;
7
7
  export const CANCEL_TIMEOUT_MS = 5_000;
8
8
  export const MAX_TARGET_ROWS = 250;
9
+ // The service's prompt cap.
10
+ const MAX_PROMPT_LENGTH = 15_000;
9
11
  export const LIST_LIMIT_MAX = 100;
10
12
  export const ROWS_LIMIT_MAX = 2000;
11
13
  // One stream lasts at most ~10 minutes server-side; a live run is picked up again.
@@ -64,7 +66,7 @@ export const datasetSchema = z.looseObject({
64
66
  const targetRowsSchema = z.number().int().min(1).max(MAX_TARGET_ROWS);
65
67
  export const createRequestSchema = z
66
68
  .strictObject({
67
- prompt: z.string().trim().min(3).max(2000).optional(),
69
+ prompt: z.string().trim().min(3).max(MAX_PROMPT_LENGTH).optional(),
68
70
  spec: specSchema.optional(),
69
71
  target_rows: targetRowsSchema.optional(),
70
72
  })
@@ -72,7 +74,9 @@ export const createRequestSchema = z
72
74
  message: 'Send exactly one of prompt or spec',
73
75
  path: ['prompt'],
74
76
  });
75
- export const planRequestSchema = z.strictObject({ prompt: z.string().trim().min(3).max(2000) });
77
+ export const planRequestSchema = z.strictObject({
78
+ prompt: z.string().trim().min(3).max(MAX_PROMPT_LENGTH),
79
+ });
76
80
  export const planResponseSchema = z.looseObject({ spec: specSchema });
77
81
  export const listQuerySchema = z.strictObject({
78
82
  limit: z.number().int().min(1).max(LIST_LIMIT_MAX).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiny-fish/cli",
3
- "version": "0.53.1-next.443",
3
+ "version": "0.53.1-next.444",
4
4
  "description": "TinyFish CLI — run web automations from your terminal",
5
5
  "type": "module",
6
6
  "bin": {