@krak-stack/registry 0.1.27 → 0.1.29

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.
Files changed (52) hide show
  1. package/dist/components/ui/code-block.js +1 -5
  2. package/dist/components/ui/copy-button.js +1 -5
  3. package/dist/components/ui/data-table.js +239 -242
  4. package/dist/components/ui/editing-locale-switcher.js +1 -5
  5. package/dist/components/ui/effect-form.js +170 -175
  6. package/dist/components/ui/error-component.d.ts +30 -0
  7. package/dist/components/ui/error-component.js +811 -0
  8. package/dist/components/ui/file-picker.js +1 -5
  9. package/dist/components/ui/form.js +113 -118
  10. package/dist/components/ui/google-map.js +1 -5
  11. package/dist/components/ui/icon-input.js +41 -48
  12. package/dist/components/ui/loading.js +1 -5
  13. package/dist/components/ui/locale-switcher.js +1 -5
  14. package/dist/components/ui/pagination.js +3 -7
  15. package/dist/components/ui/search-menu.js +1 -5
  16. package/dist/components/ui/sidebar-layout.js +67 -76
  17. package/dist/components/ui/stats-card.js +1 -5
  18. package/dist/components/ui/theme-switcher.js +4 -8
  19. package/dist/components/ui/virtualized-combobox.js +32 -39
  20. package/dist/lib/docs.js +134 -143
  21. package/dist/lib/docs.server.js +24 -49
  22. package/dist/lib/documentation-toolkit.js +25 -50
  23. package/dist/lib/httpapi-cli.js +7 -7
  24. package/dist/lib/httpapi-client.js +3 -3
  25. package/dist/lib/httpapi-helpers.js +11 -11
  26. package/dist/lib/httpapi-mcp.js +2 -2
  27. package/dist/lib/httpapi-toolkit.js +2 -2
  28. package/dist/lib/query.d.ts +16 -6
  29. package/dist/lib/query.js +17 -8
  30. package/dist/lib/seo.js +2 -2
  31. package/dist/lib/utils.d.ts +1 -2
  32. package/dist/lib/webfetch-toolkit.js +6 -6
  33. package/dist/services/agent/client/index.js +130 -133
  34. package/dist/services/agent/index.d.ts +4 -0
  35. package/dist/services/agent/index.js +1 -1
  36. package/dist/services/agent/schema.d.ts +6 -0
  37. package/dist/services/agent/schema.js +6 -5
  38. package/dist/services/file-extraction/index.js +4 -4
  39. package/dist/services/file-extraction/schema.js +2 -2
  40. package/dist/services/health/index.js +9 -9
  41. package/dist/services/notification/channels/ses/index.js +2 -2
  42. package/dist/services/notification/channels/ses/schema.js +2 -2
  43. package/dist/services/notification/client/index.js +6 -10
  44. package/dist/services/notification/index.js +2 -2
  45. package/dist/services/notification/persistence/drizzle.js +2 -2
  46. package/dist/services/notification/persistence/index.js +15 -15
  47. package/dist/services/notification/persistence/schema.js +12 -12
  48. package/dist/services/notification/public.js +8 -12
  49. package/dist/services/notification/schema.js +2 -2
  50. package/dist/services/s3/index.js +2 -2
  51. package/dist/services/s3/schema.js +2 -2
  52. package/package.json +7 -4
@@ -14,6 +14,8 @@ declare class AgentHistoryError extends AgentHistoryError_base {
14
14
  }
15
15
  declare const AgentService_base: Context.ServiceClass<AgentService, "AgentService", {
16
16
  stream: <Tools extends Record<string, Tool.Any>>(args_0: AgentStreamOptions<Tools>) => Effect.Effect<Stream.Stream<{
17
+ readonly type: "heartbeat";
18
+ } | {
17
19
  readonly type: "message-start";
18
20
  readonly messageId: string;
19
21
  } | {
@@ -68,6 +70,8 @@ declare const AgentService_base: Context.ServiceClass<AgentService, "AgentServic
68
70
  }> & {
69
71
  readonly make: Effect.Effect<{
70
72
  stream: <Tools extends Record<string, Tool.Any>>(args_0: AgentStreamOptions<Tools>) => Effect.Effect<Stream.Stream<{
73
+ readonly type: "heartbeat";
74
+ } | {
71
75
  readonly type: "message-start";
72
76
  readonly messageId: string;
73
77
  } | {
@@ -289,7 +289,7 @@ class AgentService extends Context.Service()("AgentService", {
289
289
  type: "error",
290
290
  code: "stream-failed"
291
291
  }, { type: "finish" })))));
292
- return Stream.concat(Stream.succeed({ type: "message-start", messageId }), response);
292
+ return Stream.concat(Stream.succeed({ type: "message-start", messageId }), response).pipe(Stream.merge(Stream.tick("5 seconds").pipe(Stream.drop(1), Stream.map(() => ({ type: "heartbeat" }))), { haltStrategy: "left" }), Stream.takeUntil((event) => event.type === "finish"));
293
293
  });
294
294
  return { stream };
295
295
  })
@@ -28,6 +28,8 @@ export declare const AgentMarkdownCodeBlock: Schema.Struct<{
28
28
  readonly language: Schema.String;
29
29
  }>;
30
30
  export declare const AgentEvent: Schema.Union<readonly [Schema.Struct<{
31
+ readonly type: Schema.Literal<"heartbeat">;
32
+ }>, Schema.Struct<{
31
33
  readonly type: Schema.Literal<"message-start">;
32
34
  readonly messageId: Schema.String;
33
35
  }>, Schema.Struct<{
@@ -99,6 +101,8 @@ export declare const makeAgentApiGroup: <const Resource extends Schema.Top>(reso
99
101
  }>>;
100
102
  readonly history: Schema.optional<Schema.String>;
101
103
  }>>, never, HttpApiSchema.StreamSse<HttpApiSchema.SseEventFromData<Schema.Union<readonly [Schema.Struct<{
104
+ readonly type: Schema.Literal<"heartbeat">;
105
+ }>, Schema.Struct<{
102
106
  readonly type: Schema.Literal<"message-start">;
103
107
  readonly messageId: Schema.String;
104
108
  }>, Schema.Struct<{
@@ -144,6 +148,8 @@ export declare const makeAgentApiGroup: <const Resource extends Schema.Top>(reso
144
148
  }>]>>, Schema.Struct<{
145
149
  readonly code: Schema.Literals<readonly ["unavailable", "stream-failed"]>;
146
150
  }>, {
151
+ readonly type: "heartbeat";
152
+ } | {
147
153
  readonly type: "message-start";
148
154
  readonly messageId: string;
149
155
  } | {
@@ -48,6 +48,7 @@ var AgentMarkdownCodeBlock = Schema.Struct({
48
48
  language: Schema.String
49
49
  }).annotate({ identifier: "AgentMarkdownCodeBlock" });
50
50
  var AgentEvent = Schema.Union([
51
+ Schema.Struct({ type: Schema.Literal("heartbeat") }),
51
52
  Schema.Struct({
52
53
  type: Schema.Literal("message-start"),
53
54
  messageId: Schema.String
@@ -132,10 +133,10 @@ var makeAgentApiGroup = (resource) => {
132
133
  })));
133
134
  };
134
135
  export {
135
- makeAgentReference,
136
- makeAgentApiGroup,
137
- AgentToolMetadata,
138
- AgentMarkdownCodeBlock,
136
+ AGENT_REFERENCE_LIMIT,
139
137
  AgentEvent,
140
- AGENT_REFERENCE_LIMIT
138
+ AgentMarkdownCodeBlock,
139
+ AgentToolMetadata,
140
+ makeAgentApiGroup,
141
+ makeAgentReference
141
142
  };
@@ -111,9 +111,9 @@ class FileExtractionService extends Context.Service()("FileExtractionService", {
111
111
  static testLayer = (service) => Layer.succeed(this, service);
112
112
  }
113
113
  export {
114
- defaultFileExtractionOptions,
115
- OutputFormat2 as OutputFormat,
116
- FileExtractionService,
114
+ FileExtractedTextSchema,
117
115
  FileExtractionFailed,
118
- FileExtractedTextSchema
116
+ FileExtractionService,
117
+ OutputFormat2 as OutputFormat,
118
+ defaultFileExtractionOptions
119
119
  };
@@ -9,6 +9,6 @@ var FileExtractedTextSchema = Schema.Struct({
9
9
  class FileExtractionFailed extends Schema.TaggedError()("FileExtractionFailed", { message: Schema.String }) {
10
10
  }
11
11
  export {
12
- FileExtractionFailed,
13
- FileExtractedTextSchema
12
+ FileExtractedTextSchema,
13
+ FileExtractionFailed
14
14
  };
@@ -173,14 +173,14 @@ class HealthService extends Context.Service()("@krak-stack/registry/HealthServic
173
173
  static layerWith = (options) => Layer.effect(this, this.make).pipe(Layer.provide(HealthServiceConfig.layerWith(options)));
174
174
  }
175
175
  export {
176
- healthHandler,
177
- HealthUpResponse,
178
- HealthStatus,
179
- HealthService,
180
- HealthResponse,
181
- HealthDownResponse,
182
- HealthCheckResult,
183
- HealthCheckOutcome,
176
+ HealthApiGroup,
184
177
  HealthCheckData,
185
- HealthApiGroup
178
+ HealthCheckOutcome,
179
+ HealthCheckResult,
180
+ HealthDownResponse,
181
+ HealthResponse,
182
+ HealthService,
183
+ HealthStatus,
184
+ HealthUpResponse,
185
+ healthHandler
186
186
  };
@@ -144,6 +144,6 @@ var buildDestination = (email) => {
144
144
  return destination;
145
145
  };
146
146
  export {
147
- SesNotificationConfig,
148
- SesNotificationChannel
147
+ SesNotificationChannel,
148
+ SesNotificationConfig
149
149
  };
@@ -30,6 +30,6 @@ var SesEmailNotification = Schema.Struct({
30
30
  ]
31
31
  });
32
32
  export {
33
- SesEmailNotification,
34
- SesEmailAddress
33
+ SesEmailAddress,
34
+ SesEmailNotification
35
35
  };
@@ -16,11 +16,7 @@ import { useRender } from "@base-ui/react/use-render";
16
16
  import { cva } from "class-variance-authority";
17
17
 
18
18
  // ../../src/lib/utils.ts
19
- import { clsx } from "clsx";
20
- import { twMerge } from "tailwind-merge";
21
- function cn(...inputs) {
22
- return twMerge(clsx(inputs));
23
- }
19
+ import { cn } from "cn";
24
20
 
25
21
  // ../../src/components/ui/badge.tsx
26
22
  var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
@@ -1115,10 +1111,10 @@ var formatNotificationDate = (value, locale) => {
1115
1111
  };
1116
1112
  var notificationTitle = (notification) => Schema.is(Schema.String)(notification.title) ? notification.title : defaultMessages.en.notifications;
1117
1113
  export {
1118
- notificationMenuMessages,
1119
- NotificationMenuTrigger,
1120
- NotificationMenu,
1121
- NotificationListItem,
1114
+ NotificationEmpty,
1122
1115
  NotificationList,
1123
- NotificationEmpty
1116
+ NotificationListItem,
1117
+ NotificationMenu,
1118
+ NotificationMenuTrigger,
1119
+ notificationMenuMessages
1124
1120
  };
@@ -92,6 +92,6 @@ class NotificationService extends Context2.Service()("NotificationService", {
92
92
  ]);
93
93
  }
94
94
  export {
95
- NotificationService,
96
- NotificationPersistenceStore
95
+ NotificationPersistenceStore,
96
+ NotificationService
97
97
  };
@@ -208,7 +208,7 @@ var notificationDeliveries = pgTable("notification_deliveries", {
208
208
  check("notification_deliveries_lease_check", sql`(${table.claimedBy} is null and ${table.leaseExpiresAt} is null) or (${table.claimedBy} is not null and ${table.leaseExpiresAt} is not null)`)
209
209
  ]);
210
210
  export {
211
- notifications,
211
+ notificationDeliveries,
212
212
  notificationSettings,
213
- notificationDeliveries
213
+ notifications
214
214
  };
@@ -208,20 +208,20 @@ var notificationDeliveries = pgTable("notification_deliveries", {
208
208
  check("notification_deliveries_lease_check", sql`(${table.claimedBy} is null and ${table.leaseExpiresAt} is null) or (${table.claimedBy} is not null and ${table.leaseExpiresAt} is not null)`)
209
209
  ]);
210
210
  export {
211
- notifications,
212
- notificationSettings,
213
- notificationDeliveries,
214
- decodeNotificationDeliveryPayload,
215
- PersistedNotificationDeliveryPayload,
216
- NotificationSettingSchema,
217
- NotificationSettingId,
218
- NotificationId,
219
- NotificationDeliveryStatus,
220
- NotificationDeliverySchema,
221
- NotificationDeliveryPurpose,
222
- NotificationDeliveryId,
223
- NOTIFICATION_DELIVERY_STATUSES,
224
- NOTIFICATION_DELIVERY_PURPOSES,
211
+ EmailDeliveryPayloadV1,
225
212
  InboxNotificationSchema,
226
- EmailDeliveryPayloadV1
213
+ NOTIFICATION_DELIVERY_PURPOSES,
214
+ NOTIFICATION_DELIVERY_STATUSES,
215
+ NotificationDeliveryId,
216
+ NotificationDeliveryPurpose,
217
+ NotificationDeliverySchema,
218
+ NotificationDeliveryStatus,
219
+ NotificationId,
220
+ NotificationSettingId,
221
+ NotificationSettingSchema,
222
+ PersistedNotificationDeliveryPayload,
223
+ decodeNotificationDeliveryPayload,
224
+ notificationDeliveries,
225
+ notificationSettings,
226
+ notifications
227
227
  };
@@ -102,17 +102,17 @@ var PersistedNotificationDeliveryPayload = Schema.Union([
102
102
  ]).annotate({ identifier: "PersistedNotificationDeliveryPayload" });
103
103
  var decodeNotificationDeliveryPayload = Schema.decodeUnknownEffect(PersistedNotificationDeliveryPayload);
104
104
  export {
105
- decodeNotificationDeliveryPayload,
106
- PersistedNotificationDeliveryPayload,
107
- NotificationSettingSchema,
108
- NotificationSettingId,
109
- NotificationId,
110
- NotificationDeliveryStatus,
111
- NotificationDeliverySchema,
112
- NotificationDeliveryPurpose,
113
- NotificationDeliveryId,
114
- NOTIFICATION_DELIVERY_STATUSES,
115
- NOTIFICATION_DELIVERY_PURPOSES,
105
+ EmailDeliveryPayloadV1,
116
106
  InboxNotificationSchema,
117
- EmailDeliveryPayloadV1
107
+ NOTIFICATION_DELIVERY_PURPOSES,
108
+ NOTIFICATION_DELIVERY_STATUSES,
109
+ NotificationDeliveryId,
110
+ NotificationDeliveryPurpose,
111
+ NotificationDeliverySchema,
112
+ NotificationDeliveryStatus,
113
+ NotificationId,
114
+ NotificationSettingId,
115
+ NotificationSettingSchema,
116
+ PersistedNotificationDeliveryPayload,
117
+ decodeNotificationDeliveryPayload
118
118
  };
@@ -109,11 +109,7 @@ import { useRender } from "@base-ui/react/use-render";
109
109
  import { cva } from "class-variance-authority";
110
110
 
111
111
  // ../../src/lib/utils.ts
112
- import { clsx } from "clsx";
113
- import { twMerge } from "tailwind-merge";
114
- function cn(...inputs) {
115
- return twMerge(clsx(inputs));
116
- }
112
+ import { cn } from "cn";
117
113
 
118
114
  // ../../src/components/ui/badge.tsx
119
115
  var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
@@ -1208,12 +1204,12 @@ var formatNotificationDate = (value, locale) => {
1208
1204
  };
1209
1205
  var notificationTitle = (notification) => Schema2.is(Schema2.String)(notification.title) ? notification.title : defaultMessages.en.notifications;
1210
1206
  export {
1211
- notificationMenuMessages,
1212
- NotificationService,
1213
- NotificationPersistenceStore,
1214
- NotificationMenuTrigger,
1215
- NotificationMenu,
1216
- NotificationListItem,
1207
+ NotificationEmpty,
1217
1208
  NotificationList,
1218
- NotificationEmpty
1209
+ NotificationListItem,
1210
+ NotificationMenu,
1211
+ NotificationMenuTrigger,
1212
+ NotificationPersistenceStore,
1213
+ NotificationService,
1214
+ notificationMenuMessages
1219
1215
  };
@@ -25,6 +25,6 @@ class NotificationSendError extends Schema.TaggedError()("NotificationSendError"
25
25
  }) {
26
26
  }
27
27
  export {
28
- NotificationSendError,
29
- NotificationMessageSchema
28
+ NotificationMessageSchema,
29
+ NotificationSendError
30
30
  };
@@ -206,6 +206,6 @@ class S3Service extends Context.Service()("S3Service", {
206
206
  static testLayer = (service) => Layer.succeed(this, service);
207
207
  }
208
208
  export {
209
- S3ServiceConfig,
210
- S3Service
209
+ S3Service,
210
+ S3ServiceConfig
211
211
  };
@@ -31,7 +31,7 @@ class S3ServiceError extends Schema.TaggedError()("S3ServiceError", {
31
31
  }) {
32
32
  }
33
33
  export {
34
- S3ServiceError,
34
+ PresignUploadPayload,
35
35
  PresignedUpload,
36
- PresignUploadPayload
36
+ S3ServiceError
37
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krak-stack/registry",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "description": "Tree-shakable KrakStack components and Effect services.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -99,6 +99,10 @@
99
99
  "types": "./dist/components/ui/effect-form.d.ts",
100
100
  "import": "./dist/components/ui/effect-form.js"
101
101
  },
102
+ "./error-component": {
103
+ "types": "./dist/components/ui/error-component.d.ts",
104
+ "import": "./dist/components/ui/error-component.js"
105
+ },
102
106
  "./file-picker": {
103
107
  "types": "./dist/components/ui/file-picker.d.ts",
104
108
  "import": "./dist/components/ui/file-picker.js"
@@ -235,14 +239,13 @@
235
239
  "@tanstack/react-virtual": "^3.14.5",
236
240
  "@xberg-io/xberg": "1.0.14",
237
241
  "class-variance-authority": "^0.7.1",
238
- "clsx": "^2.1.1",
239
242
  "cmdk": "^1.1.1",
243
+ "cn": "^0.3.0",
240
244
  "drizzle-orm": "^1.0.0-rc.4-5d5b77c",
241
245
  "effect": "4.0.0-rc.112",
242
246
  "lucide-react": "^1.18.0",
243
247
  "react": "^19.2.0",
244
- "react-dom": "^19.2.0",
245
- "tailwind-merge": "^3.6.0"
248
+ "react-dom": "^19.2.0"
246
249
  },
247
250
  "peerDependenciesMeta": {
248
251
  "@aws-sdk/client-sesv2": {