@krak-stack/registry 0.1.6 → 0.1.9
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 +24 -0
- package/dist/components/ui/data-table.js +78 -28
- package/dist/components/ui/editing-locale-switcher.js +8 -0
- package/dist/components/ui/effect-form.js +71 -21
- package/dist/components/ui/file-picker.js +8 -0
- package/dist/components/ui/form.d.ts +5 -5
- package/dist/components/ui/form.js +71 -21
- package/dist/components/ui/google-map.js +8 -0
- package/dist/components/ui/icon-input.js +71 -21
- package/dist/components/ui/loading.js +8 -0
- package/dist/components/ui/locale-switcher.js +8 -0
- package/dist/components/ui/pagination.js +8 -0
- package/dist/components/ui/search-menu.js +8 -0
- package/dist/components/ui/tabs.d.ts +10 -0
- package/dist/components/ui/theme-switcher.js +8 -0
- package/dist/components/ui/virtualized-combobox.d.ts +3 -0
- package/dist/components/ui/virtualized-combobox.js +71 -21
- package/dist/lib/docs-ai.d.ts +3 -3
- package/dist/lib/docs-ai.js +2 -1
- package/dist/lib/docs-core.d.ts +32 -27
- package/dist/lib/docs-core.js +134 -35
- package/dist/lib/seo.d.ts +88 -0
- package/dist/lib/seo.js +104 -0
- package/dist/services/agent/client/index.js +8 -0
- package/dist/services/notification/client/index.d.ts +1 -0
- package/dist/services/notification/client/index.js +1123 -0
- package/dist/services/notification/client/notification-menu.d.ts +82 -0
- package/dist/services/notification/public.d.ts +2 -0
- package/dist/services/notification/public.js +1194 -0
- package/package.json +13 -13
- package/dist/services/embedding.d.ts +0 -2
- package/dist/services/embedding.js +0 -23
- package/dist/services/opentelemetry.d.ts +0 -8
- package/dist/services/opentelemetry.js +0 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krak-stack/registry",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Tree-shakable KrakStack components and Effect services.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -60,6 +60,10 @@
|
|
|
60
60
|
"types": "./dist/lib/query.d.ts",
|
|
61
61
|
"import": "./dist/lib/query.js"
|
|
62
62
|
},
|
|
63
|
+
"./seo": {
|
|
64
|
+
"types": "./dist/lib/seo.d.ts",
|
|
65
|
+
"import": "./dist/lib/seo.js"
|
|
66
|
+
},
|
|
63
67
|
"./app-brand": {
|
|
64
68
|
"types": "./dist/components/ui/app-brand.d.ts",
|
|
65
69
|
"import": "./dist/components/ui/app-brand.js"
|
|
@@ -136,6 +140,14 @@
|
|
|
136
140
|
"types": "./dist/services/notification/index.d.ts",
|
|
137
141
|
"import": "./dist/services/notification/index.js"
|
|
138
142
|
},
|
|
143
|
+
"./service-notification/client": {
|
|
144
|
+
"types": "./dist/services/notification/client/index.d.ts",
|
|
145
|
+
"import": "./dist/services/notification/client/index.js"
|
|
146
|
+
},
|
|
147
|
+
"./notifications": {
|
|
148
|
+
"types": "./dist/services/notification/public.d.ts",
|
|
149
|
+
"import": "./dist/services/notification/public.js"
|
|
150
|
+
},
|
|
139
151
|
"./service-notification/channels": {
|
|
140
152
|
"types": "./dist/services/notification/channels/index.d.ts",
|
|
141
153
|
"import": "./dist/services/notification/channels/index.js"
|
|
@@ -160,14 +172,6 @@
|
|
|
160
172
|
"types": "./dist/services/s3/schema.d.ts",
|
|
161
173
|
"import": "./dist/services/s3/schema.js"
|
|
162
174
|
},
|
|
163
|
-
"./service-opentelemetry": {
|
|
164
|
-
"types": "./dist/services/opentelemetry.d.ts",
|
|
165
|
-
"import": "./dist/services/opentelemetry.js"
|
|
166
|
-
},
|
|
167
|
-
"./embedding-layer": {
|
|
168
|
-
"types": "./dist/services/embedding.d.ts",
|
|
169
|
-
"import": "./dist/services/embedding.js"
|
|
170
|
-
},
|
|
171
175
|
"./tailwind.css": "./tailwind.css",
|
|
172
176
|
"./package.json": "./package.json"
|
|
173
177
|
},
|
|
@@ -184,7 +188,6 @@
|
|
|
184
188
|
"@dnd-kit/core": "^6.3.1",
|
|
185
189
|
"@dnd-kit/sortable": "^10.0.0",
|
|
186
190
|
"@dnd-kit/utilities": "^3.2.2",
|
|
187
|
-
"@effect/ai-openai-compat": "4.0.0-beta.85",
|
|
188
191
|
"@effect/atom-react": "4.0.0-beta.85",
|
|
189
192
|
"@effect/platform-browser": "4.0.0-beta.85",
|
|
190
193
|
"@iconify-json/lucide": "^1.2.83",
|
|
@@ -222,9 +225,6 @@
|
|
|
222
225
|
"@dnd-kit/utilities": {
|
|
223
226
|
"optional": true
|
|
224
227
|
},
|
|
225
|
-
"@effect/ai-openai-compat": {
|
|
226
|
-
"optional": true
|
|
227
|
-
},
|
|
228
228
|
"@effect/atom-react": {
|
|
229
229
|
"optional": true
|
|
230
230
|
},
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// ../../src/services/embedding.ts
|
|
2
|
-
import { OpenAiClient, OpenAiEmbeddingModel } from "@effect/ai-openai-compat";
|
|
3
|
-
import { Config, Effect, Layer, Redacted } from "effect";
|
|
4
|
-
import { FetchHttpClient } from "effect/unstable/http";
|
|
5
|
-
var EmbeddingLayer = Layer.unwrap(Effect.gen(function* () {
|
|
6
|
-
const apiUrl = yield* Config.string("EMBEDDINGS_URL");
|
|
7
|
-
const embeddingModel = yield* Config.string("EMBEDDINGS_MODEL");
|
|
8
|
-
const embeddingDimensions = yield* Config.number("EMBEDDINGS_DIMENSIONS");
|
|
9
|
-
const embeddingClientLayer = OpenAiClient.layer({
|
|
10
|
-
apiKey: Redacted.make("embedding"),
|
|
11
|
-
apiUrl
|
|
12
|
-
});
|
|
13
|
-
return OpenAiEmbeddingModel.layer({
|
|
14
|
-
model: embeddingModel,
|
|
15
|
-
config: {
|
|
16
|
-
dimensions: embeddingDimensions,
|
|
17
|
-
encoding_format: "float"
|
|
18
|
-
}
|
|
19
|
-
}).pipe(Layer.provide(embeddingClientLayer), Layer.provide(FetchHttpClient.layer));
|
|
20
|
-
}));
|
|
21
|
-
export {
|
|
22
|
-
EmbeddingLayer
|
|
23
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Config, Effect, Layer, Context } from "effect";
|
|
2
|
-
declare const OpenTelemetry_base: Context.ServiceClass<OpenTelemetry, "OpenTelemetry", void> & {
|
|
3
|
-
readonly make: Effect.Effect<void, never, never>;
|
|
4
|
-
};
|
|
5
|
-
export declare class OpenTelemetry extends OpenTelemetry_base {
|
|
6
|
-
static readonly layer: Layer.Layer<OpenTelemetry, Config.ConfigError, never>;
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// ../../src/services/opentelemetry.ts
|
|
2
|
-
import { FetchHttpClient } from "effect/unstable/http";
|
|
3
|
-
import { Otlp, OtlpSerialization } from "effect/unstable/observability";
|
|
4
|
-
import { Config, Effect, Layer, Context } from "effect";
|
|
5
|
-
var OtelLive = Layer.unwrap(Effect.gen(function* () {
|
|
6
|
-
const serviceName = yield* Config.string("OTEL_SERVICE_NAME").pipe(Config.withDefault("app"));
|
|
7
|
-
const otlpEndpoint = yield* Config.string("OTEL_EXPORTER_OTLP_ENDPOINT").pipe(Config.withDefault("http://localhost:4318"));
|
|
8
|
-
return Otlp.layer({
|
|
9
|
-
baseUrl: otlpEndpoint,
|
|
10
|
-
resource: {
|
|
11
|
-
serviceName
|
|
12
|
-
}
|
|
13
|
-
}).pipe(Layer.provide(OtlpSerialization.layerJson), Layer.provide(FetchHttpClient.layer));
|
|
14
|
-
}));
|
|
15
|
-
|
|
16
|
-
class OpenTelemetry extends Context.Service()("OpenTelemetry", {
|
|
17
|
-
make: Effect.log("OpenTelemetry initialized")
|
|
18
|
-
}) {
|
|
19
|
-
static layer = Layer.effect(this, this.make).pipe(Layer.provideMerge(OtelLive));
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
OpenTelemetry
|
|
23
|
-
};
|