@krak-stack/registry 0.1.5 → 0.1.8
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.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/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 +22 -15
- package/dist/services/agent/client/widget.d.ts +0 -1
- package/dist/services/agent/index.d.ts +2 -2
- package/dist/services/agent/index.js +0 -9
- package/dist/services/agent/schema.d.ts +3 -3
- package/dist/services/agent/schema.js +1 -6
- package/package.json +5 -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.8",
|
|
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"
|
|
@@ -160,14 +164,6 @@
|
|
|
160
164
|
"types": "./dist/services/s3/schema.d.ts",
|
|
161
165
|
"import": "./dist/services/s3/schema.js"
|
|
162
166
|
},
|
|
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
167
|
"./tailwind.css": "./tailwind.css",
|
|
172
168
|
"./package.json": "./package.json"
|
|
173
169
|
},
|
|
@@ -184,7 +180,6 @@
|
|
|
184
180
|
"@dnd-kit/core": "^6.3.1",
|
|
185
181
|
"@dnd-kit/sortable": "^10.0.0",
|
|
186
182
|
"@dnd-kit/utilities": "^3.2.2",
|
|
187
|
-
"@effect/ai-openai-compat": "4.0.0-beta.85",
|
|
188
183
|
"@effect/atom-react": "4.0.0-beta.85",
|
|
189
184
|
"@effect/platform-browser": "4.0.0-beta.85",
|
|
190
185
|
"@iconify-json/lucide": "^1.2.83",
|
|
@@ -222,9 +217,6 @@
|
|
|
222
217
|
"@dnd-kit/utilities": {
|
|
223
218
|
"optional": true
|
|
224
219
|
},
|
|
225
|
-
"@effect/ai-openai-compat": {
|
|
226
|
-
"optional": true
|
|
227
|
-
},
|
|
228
220
|
"@effect/atom-react": {
|
|
229
221
|
"optional": true
|
|
230
222
|
},
|
|
@@ -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
|
-
};
|