@absolutejs/rag 0.7.0 → 0.8.0-beta.0
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/dist/adapter-kit/index.js +3 -2
- package/dist/adapter-kit/index.js.map +3 -3
- package/dist/index.js +3 -2
- package/dist/index.js.map +3 -3
- package/dist/manifest.js +86 -4
- package/dist/manifest.js.map +3 -3
- package/package.json +161 -237
package/dist/manifest.js
CHANGED
|
@@ -683,7 +683,7 @@ function Literal(value, options) {
|
|
|
683
683
|
}
|
|
684
684
|
|
|
685
685
|
// node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs
|
|
686
|
-
function
|
|
686
|
+
function Boolean2(options) {
|
|
687
687
|
return CreateType({ [Kind]: "Boolean", type: "boolean" }, options);
|
|
688
688
|
}
|
|
689
689
|
|
|
@@ -705,7 +705,7 @@ function String2(options) {
|
|
|
705
705
|
// node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs
|
|
706
706
|
function* FromUnion(syntax) {
|
|
707
707
|
const trim = syntax.trim().replace(/"|'/g, "");
|
|
708
|
-
return trim === "boolean" ? yield
|
|
708
|
+
return trim === "boolean" ? yield Boolean2() : trim === "number" ? yield Number2() : trim === "bigint" ? yield BigInt() : trim === "string" ? yield String2() : yield (() => {
|
|
709
709
|
const literals = trim.split("|").map((literal) => Literal(literal.trim()));
|
|
710
710
|
return literals.length === 0 ? Never() : literals.length === 1 ? literals[0] : UnionEvaluated(literals);
|
|
711
711
|
})();
|
|
@@ -2553,7 +2553,7 @@ __export(exports_type2, {
|
|
|
2553
2553
|
Const: () => Const,
|
|
2554
2554
|
Composite: () => Composite,
|
|
2555
2555
|
Capitalize: () => Capitalize,
|
|
2556
|
-
Boolean: () =>
|
|
2556
|
+
Boolean: () => Boolean2,
|
|
2557
2557
|
BigInt: () => BigInt,
|
|
2558
2558
|
Awaited: () => Awaited,
|
|
2559
2559
|
AsyncIterator: () => AsyncIterator,
|
|
@@ -2731,6 +2731,79 @@ var serializedTool = Type.Object({
|
|
|
2731
2731
|
input: jsonSchemaObject,
|
|
2732
2732
|
kind: Type.Union([Type.Literal("runtime"), Type.Literal("workspace")])
|
|
2733
2733
|
});
|
|
2734
|
+
var productId = Type.String({ pattern: "^[a-z][a-z0-9_-]{0,63}$" });
|
|
2735
|
+
var productCopy = {
|
|
2736
|
+
description: Type.String({ minLength: 1 }),
|
|
2737
|
+
id: productId,
|
|
2738
|
+
title: Type.String({ minLength: 1 })
|
|
2739
|
+
};
|
|
2740
|
+
var productOperation = Type.Union([
|
|
2741
|
+
Type.Literal("aggregate"),
|
|
2742
|
+
Type.Literal("create"),
|
|
2743
|
+
Type.Literal("delete"),
|
|
2744
|
+
Type.Literal("detail"),
|
|
2745
|
+
Type.Literal("list"),
|
|
2746
|
+
Type.Literal("update")
|
|
2747
|
+
]);
|
|
2748
|
+
var productProjection = Type.Object({
|
|
2749
|
+
blocks: Type.Optional(Type.Array(Type.Object({
|
|
2750
|
+
...productCopy,
|
|
2751
|
+
category: Type.String({ minLength: 1 }),
|
|
2752
|
+
componentExport: Type.String({ minLength: 1 }),
|
|
2753
|
+
frameworks: Type.Optional(Type.Array(Type.Union(clientFrameworks.map((framework) => Type.Literal(framework))))),
|
|
2754
|
+
props: jsonSchemaObject
|
|
2755
|
+
}))),
|
|
2756
|
+
connections: Type.Optional(Type.Array(Type.Object({
|
|
2757
|
+
...productCopy,
|
|
2758
|
+
envKeys: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
|
|
2759
|
+
kind: Type.Union([
|
|
2760
|
+
Type.Literal("none"),
|
|
2761
|
+
Type.Literal("oauth"),
|
|
2762
|
+
Type.Literal("secret")
|
|
2763
|
+
]),
|
|
2764
|
+
setupTool: Type.Optional(Type.String({ pattern: TOOL_NAME_PATTERN.source })),
|
|
2765
|
+
testTool: Type.Optional(Type.String({ pattern: TOOL_NAME_PATTERN.source }))
|
|
2766
|
+
}))),
|
|
2767
|
+
dataSources: Type.Optional(Type.Array(Type.Object({
|
|
2768
|
+
...productCopy,
|
|
2769
|
+
operations: Type.Array(productOperation, { minItems: 1 }),
|
|
2770
|
+
schema: jsonSchemaObject,
|
|
2771
|
+
tools: Type.Optional(Type.Partial(Type.Object({
|
|
2772
|
+
aggregate: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
|
|
2773
|
+
create: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
|
|
2774
|
+
delete: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
|
|
2775
|
+
detail: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
|
|
2776
|
+
list: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
|
|
2777
|
+
update: Type.String({ pattern: TOOL_NAME_PATTERN.source })
|
|
2778
|
+
})))
|
|
2779
|
+
}))),
|
|
2780
|
+
events: Type.Optional(Type.Array(Type.Object({
|
|
2781
|
+
...productCopy,
|
|
2782
|
+
schema: jsonSchemaObject,
|
|
2783
|
+
source: Type.Union([
|
|
2784
|
+
Type.Literal("data"),
|
|
2785
|
+
Type.Literal("package"),
|
|
2786
|
+
Type.Literal("ui"),
|
|
2787
|
+
Type.Literal("webhook")
|
|
2788
|
+
])
|
|
2789
|
+
}))),
|
|
2790
|
+
healthChecks: Type.Optional(Type.Array(Type.Object({
|
|
2791
|
+
...productCopy,
|
|
2792
|
+
tool: Type.String({ pattern: TOOL_NAME_PATTERN.source })
|
|
2793
|
+
}))),
|
|
2794
|
+
releaseChecks: Type.Optional(Type.Array(Type.Object({
|
|
2795
|
+
...productCopy,
|
|
2796
|
+
healthCheckIds: Type.Optional(Type.Array(productId)),
|
|
2797
|
+
severity: Type.Union([
|
|
2798
|
+
Type.Literal("blocking"),
|
|
2799
|
+
Type.Literal("warning")
|
|
2800
|
+
])
|
|
2801
|
+
}))),
|
|
2802
|
+
workflowActions: Type.Optional(Type.Array(Type.Object({
|
|
2803
|
+
...productCopy,
|
|
2804
|
+
tool: Type.String({ pattern: TOOL_NAME_PATTERN.source })
|
|
2805
|
+
})))
|
|
2806
|
+
});
|
|
2734
2807
|
var manifestSchema = Type.Object({
|
|
2735
2808
|
contract: Type.Union([Type.Literal(1), Type.Literal(2)]),
|
|
2736
2809
|
discovery: Type.Optional(Type.Object({
|
|
@@ -2756,6 +2829,14 @@ var manifestSchema = Type.Object({
|
|
|
2756
2829
|
tagline: Type.String({ minLength: 1 })
|
|
2757
2830
|
}),
|
|
2758
2831
|
implements: Type.Optional(Type.Array(adapterImplementation)),
|
|
2832
|
+
integration: Type.Optional(Type.Object({
|
|
2833
|
+
description: Type.Optional(Type.String({ minLength: 1 })),
|
|
2834
|
+
mode: Type.Union([
|
|
2835
|
+
Type.Literal("adapter"),
|
|
2836
|
+
Type.Literal("code-first"),
|
|
2837
|
+
Type.Literal("recipe")
|
|
2838
|
+
])
|
|
2839
|
+
})),
|
|
2759
2840
|
lifecycle: Type.Optional(Type.Array(lifecycleStep)),
|
|
2760
2841
|
presets: Type.Optional(Type.Array(Type.Object({
|
|
2761
2842
|
description: Type.Optional(Type.String()),
|
|
@@ -2763,6 +2844,7 @@ var manifestSchema = Type.Object({
|
|
|
2763
2844
|
title: Type.String(),
|
|
2764
2845
|
values: Type.Record(Type.String(), Type.Unknown())
|
|
2765
2846
|
}))),
|
|
2847
|
+
product: Type.Optional(productProjection),
|
|
2766
2848
|
requires: Type.Optional(manifestRequirements),
|
|
2767
2849
|
settings: jsonSchemaObject,
|
|
2768
2850
|
slots: Type.Optional(Type.Record(Type.String(), adapterSlot)),
|
|
@@ -3222,5 +3304,5 @@ export {
|
|
|
3222
3304
|
manifest
|
|
3223
3305
|
};
|
|
3224
3306
|
|
|
3225
|
-
//# debugId=
|
|
3307
|
+
//# debugId=E194375178A4D5C264756E2164756E21
|
|
3226
3308
|
//# sourceMappingURL=manifest.js.map
|