@krak-stack/registry 0.1.21 → 0.1.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.
@@ -13,50 +13,50 @@ declare const AgentHistoryError_base: new <A extends Record<string, any> = {}>(a
13
13
  declare class AgentHistoryError extends AgentHistoryError_base {
14
14
  }
15
15
  declare const AgentService_base: Context.ServiceClass<AgentService, "AgentService", {
16
- stream: <Tools extends Record<string, Tool.Any>>(args_0: AgentStreamOptions<Tools>) => Effect.Effect<Stream.Stream<Schema.Struct.ReadonlySide<{
17
- readonly type: Schema.Literal<"message-start">;
18
- readonly messageId: Schema.String;
19
- }, "Type"> | Schema.Struct.ReadonlySide<{
20
- readonly type: Schema.Literal<"text-delta">;
21
- readonly messageId: Schema.String;
22
- readonly delta: Schema.String;
23
- }, "Type"> | Schema.Struct.ReadonlySide<{
24
- readonly type: Schema.Literal<"markdown-snapshot">;
25
- readonly messageId: Schema.String;
26
- readonly html: Schema.String;
27
- readonly codeBlocks: Schema.$Array<Schema.Struct<{
28
- readonly code: Schema.String;
29
- readonly language: Schema.String;
30
- }>>;
31
- }, "Type"> | Schema.Struct.ReadonlySide<{
32
- readonly type: Schema.Literal<"tool-call">;
33
- readonly messageId: Schema.String;
34
- readonly toolCallId: Schema.String;
35
- readonly name: Schema.String;
36
- readonly input: Schema.Unknown;
37
- readonly metadata: Schema.Struct<{
38
- readonly title: Schema.optional<Schema.String>;
39
- readonly description: Schema.optional<Schema.String>;
40
- readonly destructive: Schema.Boolean;
41
- }>;
42
- }, "Type"> | Schema.Struct.ReadonlySide<{
43
- readonly type: Schema.Literal<"tool-result">;
44
- readonly toolCallId: Schema.String;
45
- readonly name: Schema.String;
46
- readonly isFailure: Schema.Boolean;
47
- }, "Type"> | Schema.Struct.ReadonlySide<{
48
- readonly type: Schema.Literal<"approval-required">;
49
- readonly approvalId: Schema.String;
50
- readonly toolCallId: Schema.String;
51
- }, "Type"> | Schema.Struct.ReadonlySide<{
52
- readonly type: Schema.Literal<"history">;
53
- readonly value: Schema.String;
54
- }, "Type"> | Schema.Struct.ReadonlySide<{
55
- readonly type: Schema.Literal<"finish">;
56
- }, "Type"> | Schema.Struct.ReadonlySide<{
57
- readonly type: Schema.Literal<"error">;
58
- readonly code: Schema.Literals<readonly ["unavailable", "invalid-request", "stream-failed"]>;
59
- }, "Type"> | {
16
+ stream: <Tools extends Record<string, Tool.Any>>(args_0: AgentStreamOptions<Tools>) => Effect.Effect<Stream.Stream<{
17
+ readonly type: "message-start";
18
+ readonly messageId: string;
19
+ } | {
20
+ readonly type: "text-delta";
21
+ readonly messageId: string;
22
+ readonly delta: string;
23
+ } | {
24
+ readonly type: "markdown-snapshot";
25
+ readonly messageId: string;
26
+ readonly html: string;
27
+ readonly codeBlocks: readonly {
28
+ readonly code: string;
29
+ readonly language: string;
30
+ }[];
31
+ } | {
32
+ readonly type: "tool-call";
33
+ readonly messageId: string;
34
+ readonly toolCallId: string;
35
+ readonly name: string;
36
+ readonly input: unknown;
37
+ readonly metadata: {
38
+ readonly title?: string | undefined;
39
+ readonly description?: string | undefined;
40
+ readonly destructive: boolean;
41
+ };
42
+ } | {
43
+ readonly type: "tool-result";
44
+ readonly toolCallId: string;
45
+ readonly name: string;
46
+ readonly isFailure: boolean;
47
+ } | {
48
+ readonly type: "approval-required";
49
+ readonly approvalId: string;
50
+ readonly toolCallId: string;
51
+ } | {
52
+ readonly type: "history";
53
+ readonly value: string;
54
+ } | {
55
+ readonly type: "finish";
56
+ } | {
57
+ readonly type: "error";
58
+ readonly code: "invalid-request" | "stream-failed" | "unavailable";
59
+ } | {
60
60
  type: "history";
61
61
  value: string;
62
62
  } | {
@@ -67,50 +67,50 @@ declare const AgentService_base: Context.ServiceClass<AgentService, "AgentServic
67
67
  }, never, Exclude<Tool.HandlerServices<Tools[keyof Tools]>, LanguageModel.LanguageModel> | Exclude<Tool.ResultDecodingServices<Tools[keyof Tools]>, LanguageModel.LanguageModel>>, AgentHistoryError | Schema.SchemaError, LanguageModel.LanguageModel>;
68
68
  }> & {
69
69
  readonly make: Effect.Effect<{
70
- stream: <Tools extends Record<string, Tool.Any>>(args_0: AgentStreamOptions<Tools>) => Effect.Effect<Stream.Stream<Schema.Struct.ReadonlySide<{
71
- readonly type: Schema.Literal<"message-start">;
72
- readonly messageId: Schema.String;
73
- }, "Type"> | Schema.Struct.ReadonlySide<{
74
- readonly type: Schema.Literal<"text-delta">;
75
- readonly messageId: Schema.String;
76
- readonly delta: Schema.String;
77
- }, "Type"> | Schema.Struct.ReadonlySide<{
78
- readonly type: Schema.Literal<"markdown-snapshot">;
79
- readonly messageId: Schema.String;
80
- readonly html: Schema.String;
81
- readonly codeBlocks: Schema.$Array<Schema.Struct<{
82
- readonly code: Schema.String;
83
- readonly language: Schema.String;
84
- }>>;
85
- }, "Type"> | Schema.Struct.ReadonlySide<{
86
- readonly type: Schema.Literal<"tool-call">;
87
- readonly messageId: Schema.String;
88
- readonly toolCallId: Schema.String;
89
- readonly name: Schema.String;
90
- readonly input: Schema.Unknown;
91
- readonly metadata: Schema.Struct<{
92
- readonly title: Schema.optional<Schema.String>;
93
- readonly description: Schema.optional<Schema.String>;
94
- readonly destructive: Schema.Boolean;
95
- }>;
96
- }, "Type"> | Schema.Struct.ReadonlySide<{
97
- readonly type: Schema.Literal<"tool-result">;
98
- readonly toolCallId: Schema.String;
99
- readonly name: Schema.String;
100
- readonly isFailure: Schema.Boolean;
101
- }, "Type"> | Schema.Struct.ReadonlySide<{
102
- readonly type: Schema.Literal<"approval-required">;
103
- readonly approvalId: Schema.String;
104
- readonly toolCallId: Schema.String;
105
- }, "Type"> | Schema.Struct.ReadonlySide<{
106
- readonly type: Schema.Literal<"history">;
107
- readonly value: Schema.String;
108
- }, "Type"> | Schema.Struct.ReadonlySide<{
109
- readonly type: Schema.Literal<"finish">;
110
- }, "Type"> | Schema.Struct.ReadonlySide<{
111
- readonly type: Schema.Literal<"error">;
112
- readonly code: Schema.Literals<readonly ["unavailable", "invalid-request", "stream-failed"]>;
113
- }, "Type"> | {
70
+ stream: <Tools extends Record<string, Tool.Any>>(args_0: AgentStreamOptions<Tools>) => Effect.Effect<Stream.Stream<{
71
+ readonly type: "message-start";
72
+ readonly messageId: string;
73
+ } | {
74
+ readonly type: "text-delta";
75
+ readonly messageId: string;
76
+ readonly delta: string;
77
+ } | {
78
+ readonly type: "markdown-snapshot";
79
+ readonly messageId: string;
80
+ readonly html: string;
81
+ readonly codeBlocks: readonly {
82
+ readonly code: string;
83
+ readonly language: string;
84
+ }[];
85
+ } | {
86
+ readonly type: "tool-call";
87
+ readonly messageId: string;
88
+ readonly toolCallId: string;
89
+ readonly name: string;
90
+ readonly input: unknown;
91
+ readonly metadata: {
92
+ readonly title?: string | undefined;
93
+ readonly description?: string | undefined;
94
+ readonly destructive: boolean;
95
+ };
96
+ } | {
97
+ readonly type: "tool-result";
98
+ readonly toolCallId: string;
99
+ readonly name: string;
100
+ readonly isFailure: boolean;
101
+ } | {
102
+ readonly type: "approval-required";
103
+ readonly approvalId: string;
104
+ readonly toolCallId: string;
105
+ } | {
106
+ readonly type: "history";
107
+ readonly value: string;
108
+ } | {
109
+ readonly type: "finish";
110
+ } | {
111
+ readonly type: "error";
112
+ readonly code: "invalid-request" | "stream-failed" | "unavailable";
113
+ } | {
114
114
  type: "history";
115
115
  value: string;
116
116
  } | {
@@ -143,47 +143,47 @@ export declare const makeAgentApiGroup: <const Resource extends Schema.Top>(reso
143
143
  readonly code: Schema.Literals<readonly ["unavailable", "invalid-request", "stream-failed"]>;
144
144
  }>]>>, Schema.Struct<{
145
145
  readonly code: Schema.Literals<readonly ["unavailable", "stream-failed"]>;
146
- }>, Schema.Struct.ReadonlySide<{
147
- readonly type: Schema.Literal<"message-start">;
148
- readonly messageId: Schema.String;
149
- }, "Type"> | Schema.Struct.ReadonlySide<{
150
- readonly type: Schema.Literal<"text-delta">;
151
- readonly messageId: Schema.String;
152
- readonly delta: Schema.String;
153
- }, "Type"> | Schema.Struct.ReadonlySide<{
154
- readonly type: Schema.Literal<"markdown-snapshot">;
155
- readonly messageId: Schema.String;
156
- readonly html: Schema.String;
157
- readonly codeBlocks: Schema.$Array<Schema.Struct<{
158
- readonly code: Schema.String;
159
- readonly language: Schema.String;
160
- }>>;
161
- }, "Type"> | Schema.Struct.ReadonlySide<{
162
- readonly type: Schema.Literal<"tool-call">;
163
- readonly messageId: Schema.String;
164
- readonly toolCallId: Schema.String;
165
- readonly name: Schema.String;
166
- readonly input: Schema.Unknown;
167
- readonly metadata: Schema.Struct<{
168
- readonly title: Schema.optional<Schema.String>;
169
- readonly description: Schema.optional<Schema.String>;
170
- readonly destructive: Schema.Boolean;
171
- }>;
172
- }, "Type"> | Schema.Struct.ReadonlySide<{
173
- readonly type: Schema.Literal<"tool-result">;
174
- readonly toolCallId: Schema.String;
175
- readonly name: Schema.String;
176
- readonly isFailure: Schema.Boolean;
177
- }, "Type"> | Schema.Struct.ReadonlySide<{
178
- readonly type: Schema.Literal<"approval-required">;
179
- readonly approvalId: Schema.String;
180
- readonly toolCallId: Schema.String;
181
- }, "Type"> | Schema.Struct.ReadonlySide<{
182
- readonly type: Schema.Literal<"history">;
183
- readonly value: Schema.String;
184
- }, "Type"> | Schema.Struct.ReadonlySide<{
185
- readonly type: Schema.Literal<"finish">;
186
- }, "Type"> | Schema.Struct.ReadonlySide<{
187
- readonly type: Schema.Literal<"error">;
188
- readonly code: Schema.Literals<readonly ["unavailable", "invalid-request", "stream-failed"]>;
189
- }, "Type">>, Schema.toCodecJson<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError>, never, never>, false>;
146
+ }>, {
147
+ readonly type: "message-start";
148
+ readonly messageId: string;
149
+ } | {
150
+ readonly type: "text-delta";
151
+ readonly messageId: string;
152
+ readonly delta: string;
153
+ } | {
154
+ readonly type: "markdown-snapshot";
155
+ readonly messageId: string;
156
+ readonly html: string;
157
+ readonly codeBlocks: readonly {
158
+ readonly code: string;
159
+ readonly language: string;
160
+ }[];
161
+ } | {
162
+ readonly type: "tool-call";
163
+ readonly messageId: string;
164
+ readonly toolCallId: string;
165
+ readonly name: string;
166
+ readonly input: unknown;
167
+ readonly metadata: {
168
+ readonly title?: string | undefined;
169
+ readonly description?: string | undefined;
170
+ readonly destructive: boolean;
171
+ };
172
+ } | {
173
+ readonly type: "tool-result";
174
+ readonly toolCallId: string;
175
+ readonly name: string;
176
+ readonly isFailure: boolean;
177
+ } | {
178
+ readonly type: "approval-required";
179
+ readonly approvalId: string;
180
+ readonly toolCallId: string;
181
+ } | {
182
+ readonly type: "history";
183
+ readonly value: string;
184
+ } | {
185
+ readonly type: "finish";
186
+ } | {
187
+ readonly type: "error";
188
+ readonly code: "invalid-request" | "stream-failed" | "unavailable";
189
+ }>, Schema.toCodecJson<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.Forbidden | typeof HttpApiError.InternalServerError>, never, never>, false>;
@@ -10,7 +10,7 @@ var FileExtractedTextSchema = Schema.Struct({
10
10
  truncated: Schema.Boolean
11
11
  }).annotate({ identifier: "FileExtractedText" });
12
12
 
13
- class FileExtractionFailed extends Schema.TaggedErrorClass()("FileExtractionFailed", { message: Schema.String }) {
13
+ class FileExtractionFailed extends Schema.TaggedError()("FileExtractionFailed", { message: Schema.String }) {
14
14
  }
15
15
 
16
16
  // ../../src/services/file-extraction/index.ts
@@ -6,7 +6,7 @@ var FileExtractedTextSchema = Schema.Struct({
6
6
  truncated: Schema.Boolean
7
7
  }).annotate({ identifier: "FileExtractedText" });
8
8
 
9
- class FileExtractionFailed extends Schema.TaggedErrorClass()("FileExtractionFailed", { message: Schema.String }) {
9
+ class FileExtractionFailed extends Schema.TaggedError()("FileExtractionFailed", { message: Schema.String }) {
10
10
  }
11
11
  export {
12
12
  FileExtractedTextSchema,
@@ -25,7 +25,7 @@ var NotificationMessageSchema = Schema.Record(Schema.String, Schema.Unknown).ann
25
25
  ]
26
26
  });
27
27
 
28
- class NotificationSendError extends Schema.TaggedErrorClass()("NotificationSendError", {
28
+ class NotificationSendError extends Schema.TaggedError()("NotificationSendError", {
29
29
  message: Schema.String,
30
30
  channel: Schema.optional(Schema.String),
31
31
  error: Schema.optional(Schema.Defect())
@@ -30,7 +30,7 @@ var NotificationMessageSchema = Schema.Record(Schema.String, Schema.Unknown).ann
30
30
  ]
31
31
  });
32
32
 
33
- class NotificationSendError extends Schema.TaggedErrorClass()("NotificationSendError", {
33
+ class NotificationSendError extends Schema.TaggedError()("NotificationSendError", {
34
34
  message: Schema.String,
35
35
  channel: Schema.optional(Schema.String),
36
36
  error: Schema.optional(Schema.Defect())
@@ -30,7 +30,7 @@ var NotificationMessageSchema = Schema.Record(Schema.String, Schema.Unknown).ann
30
30
  ]
31
31
  });
32
32
 
33
- class NotificationSendError extends Schema.TaggedErrorClass()("NotificationSendError", {
33
+ class NotificationSendError extends Schema.TaggedError()("NotificationSendError", {
34
34
  message: Schema.String,
35
35
  channel: Schema.optional(Schema.String),
36
36
  error: Schema.optional(Schema.Defect())
@@ -18,7 +18,7 @@ var NotificationMessageSchema = Schema.Record(Schema.String, Schema.Unknown).ann
18
18
  ]
19
19
  });
20
20
 
21
- class NotificationSendError extends Schema.TaggedErrorClass()("NotificationSendError", {
21
+ class NotificationSendError extends Schema.TaggedError()("NotificationSendError", {
22
22
  message: Schema.String,
23
23
  channel: Schema.optional(Schema.String),
24
24
  error: Schema.optional(Schema.Defect())
@@ -27,7 +27,7 @@ var PresignedUpload = Schema.Struct({
27
27
  ]
28
28
  });
29
29
 
30
- class S3ServiceError extends Schema.TaggedErrorClass()("S3ServiceError", {
30
+ class S3ServiceError extends Schema.TaggedError()("S3ServiceError", {
31
31
  message: Schema.String,
32
32
  path: Schema.optional(Schema.String),
33
33
  error: Schema.optional(Schema.Defect())
@@ -24,7 +24,7 @@ var PresignedUpload = Schema.Struct({
24
24
  ]
25
25
  });
26
26
 
27
- class S3ServiceError extends Schema.TaggedErrorClass()("S3ServiceError", {
27
+ class S3ServiceError extends Schema.TaggedError()("S3ServiceError", {
28
28
  message: Schema.String,
29
29
  path: Schema.optional(Schema.String),
30
30
  error: Schema.optional(Schema.Defect())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krak-stack/registry",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "Tree-shakable KrakStack components and Effect services.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -219,8 +219,8 @@
219
219
  "peerDependencies": {
220
220
  "@aws-sdk/client-sesv2": "^3.1068.0",
221
221
  "@base-ui/react": "^1.5.0",
222
- "@effect/atom-react": "4.0.0-beta.85",
223
- "@effect/platform-browser": "4.0.0-beta.85",
222
+ "@effect/atom-react": "4.0.0-rc.111",
223
+ "@effect/platform-browser": "4.0.0-rc.111",
224
224
  "@iconify/react": "^6.0.2",
225
225
  "@inlang/paraglide-js": "^2.19.0",
226
226
  "@lucas-barake/effect-form": "0.25.0-beta.6",
@@ -234,7 +234,7 @@
234
234
  "clsx": "^2.1.1",
235
235
  "cmdk": "^1.1.1",
236
236
  "drizzle-orm": "^1.0.0-rc.4-5d5b77c",
237
- "effect": "4.0.0-beta.99",
237
+ "effect": "4.0.0-rc.111",
238
238
  "lucide-react": "^1.18.0",
239
239
  "react": "^19.2.0",
240
240
  "react-dom": "^19.2.0",