@absolutejs/mcp 0.11.3 → 0.12.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/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 Boolean(options) {
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 Boolean() : trim === "number" ? yield Number2() : trim === "bigint" ? yield BigInt() : trim === "string" ? yield String2() : 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: () => Boolean,
2556
+ Boolean: () => Boolean2,
2557
2557
  BigInt: () => BigInt,
2558
2558
  Awaited: () => Awaited,
2559
2559
  AsyncIterator: () => AsyncIterator,
@@ -2718,6 +2718,79 @@ var serializedTool = Type.Object({
2718
2718
  input: jsonSchemaObject,
2719
2719
  kind: Type.Union([Type.Literal("runtime"), Type.Literal("workspace")])
2720
2720
  });
2721
+ var productId = Type.String({ pattern: "^[a-z][a-z0-9_-]{0,63}$" });
2722
+ var productCopy = {
2723
+ description: Type.String({ minLength: 1 }),
2724
+ id: productId,
2725
+ title: Type.String({ minLength: 1 })
2726
+ };
2727
+ var productOperation = Type.Union([
2728
+ Type.Literal("aggregate"),
2729
+ Type.Literal("create"),
2730
+ Type.Literal("delete"),
2731
+ Type.Literal("detail"),
2732
+ Type.Literal("list"),
2733
+ Type.Literal("update")
2734
+ ]);
2735
+ var productProjection = Type.Object({
2736
+ blocks: Type.Optional(Type.Array(Type.Object({
2737
+ ...productCopy,
2738
+ category: Type.String({ minLength: 1 }),
2739
+ componentExport: Type.String({ minLength: 1 }),
2740
+ frameworks: Type.Optional(Type.Array(Type.Union(clientFrameworks.map((framework) => Type.Literal(framework))))),
2741
+ props: jsonSchemaObject
2742
+ }))),
2743
+ connections: Type.Optional(Type.Array(Type.Object({
2744
+ ...productCopy,
2745
+ envKeys: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),
2746
+ kind: Type.Union([
2747
+ Type.Literal("none"),
2748
+ Type.Literal("oauth"),
2749
+ Type.Literal("secret")
2750
+ ]),
2751
+ setupTool: Type.Optional(Type.String({ pattern: TOOL_NAME_PATTERN.source })),
2752
+ testTool: Type.Optional(Type.String({ pattern: TOOL_NAME_PATTERN.source }))
2753
+ }))),
2754
+ dataSources: Type.Optional(Type.Array(Type.Object({
2755
+ ...productCopy,
2756
+ operations: Type.Array(productOperation, { minItems: 1 }),
2757
+ schema: jsonSchemaObject,
2758
+ tools: Type.Optional(Type.Partial(Type.Object({
2759
+ aggregate: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
2760
+ create: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
2761
+ delete: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
2762
+ detail: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
2763
+ list: Type.String({ pattern: TOOL_NAME_PATTERN.source }),
2764
+ update: Type.String({ pattern: TOOL_NAME_PATTERN.source })
2765
+ })))
2766
+ }))),
2767
+ events: Type.Optional(Type.Array(Type.Object({
2768
+ ...productCopy,
2769
+ schema: jsonSchemaObject,
2770
+ source: Type.Union([
2771
+ Type.Literal("data"),
2772
+ Type.Literal("package"),
2773
+ Type.Literal("ui"),
2774
+ Type.Literal("webhook")
2775
+ ])
2776
+ }))),
2777
+ healthChecks: Type.Optional(Type.Array(Type.Object({
2778
+ ...productCopy,
2779
+ tool: Type.String({ pattern: TOOL_NAME_PATTERN.source })
2780
+ }))),
2781
+ releaseChecks: Type.Optional(Type.Array(Type.Object({
2782
+ ...productCopy,
2783
+ healthCheckIds: Type.Optional(Type.Array(productId)),
2784
+ severity: Type.Union([
2785
+ Type.Literal("blocking"),
2786
+ Type.Literal("warning")
2787
+ ])
2788
+ }))),
2789
+ workflowActions: Type.Optional(Type.Array(Type.Object({
2790
+ ...productCopy,
2791
+ tool: Type.String({ pattern: TOOL_NAME_PATTERN.source })
2792
+ })))
2793
+ });
2721
2794
  var manifestSchema = Type.Object({
2722
2795
  contract: Type.Union([Type.Literal(1), Type.Literal(2)]),
2723
2796
  discovery: Type.Optional(Type.Object({
@@ -2743,6 +2816,14 @@ var manifestSchema = Type.Object({
2743
2816
  tagline: Type.String({ minLength: 1 })
2744
2817
  }),
2745
2818
  implements: Type.Optional(Type.Array(adapterImplementation)),
2819
+ integration: Type.Optional(Type.Object({
2820
+ description: Type.Optional(Type.String({ minLength: 1 })),
2821
+ mode: Type.Union([
2822
+ Type.Literal("adapter"),
2823
+ Type.Literal("code-first"),
2824
+ Type.Literal("recipe")
2825
+ ])
2826
+ })),
2746
2827
  lifecycle: Type.Optional(Type.Array(lifecycleStep)),
2747
2828
  presets: Type.Optional(Type.Array(Type.Object({
2748
2829
  description: Type.Optional(Type.String()),
@@ -2750,6 +2831,7 @@ var manifestSchema = Type.Object({
2750
2831
  title: Type.String(),
2751
2832
  values: Type.Record(Type.String(), Type.Unknown())
2752
2833
  }))),
2834
+ product: Type.Optional(productProjection),
2753
2835
  requires: Type.Optional(manifestRequirements),
2754
2836
  settings: jsonSchemaObject,
2755
2837
  slots: Type.Optional(Type.Record(Type.String(), adapterSlot)),
@@ -2779,7 +2861,9 @@ var manifest = defineManifest()({
2779
2861
  tagline: "Let AI assistants connect to your site and use its tools."
2780
2862
  },
2781
2863
  requires: {
2782
- peers: [{ name: "elysia", range: ">=1.1.0", reason: "plugin host" }]
2864
+ peers: [
2865
+ { name: "elysia", range: "^2.0.0-beta.6", reason: "plugin host" }
2866
+ ]
2783
2867
  },
2784
2868
  settings: Type.Object({
2785
2869
  instructions: Type.Optional(Type.String({
@@ -35,7 +35,7 @@
35
35
  "peers": [
36
36
  {
37
37
  "name": "elysia",
38
- "range": ">=1.1.0",
38
+ "range": "^2.0.0-beta.6",
39
39
  "reason": "plugin host"
40
40
  }
41
41
  ]
package/package.json CHANGED
@@ -4,34 +4,23 @@
4
4
  "devDependencies": {
5
5
  "@absolutejs/agency": "0.7.1",
6
6
  "@types/bun": "latest",
7
- "elysia": "^1.1.0",
7
+ "elysia": "2.0.0-beta.6",
8
+ "exact-mirror": "1.2.4",
8
9
  "prettier": "3.5.3",
10
+ "typebox": "1.3.16",
9
11
  "typescript": "5.8.3"
10
12
  },
11
13
  "peerDependencies": {
12
14
  "@absolutejs/agency": ">=0.7.1 <0.8.0",
13
- "elysia": ">=1.1.0"
15
+ "elysia": "^2.0.0-beta.6"
14
16
  },
15
17
  "dependencies": {
16
- "@absolutejs/manifest": "^0.6.3",
18
+ "@absolutejs/manifest": "^0.9.0",
17
19
  "@sinclair/typebox": "^0.34.0"
18
20
  },
19
21
  "license": "BUSL-1.1",
20
22
  "absolutejs": {
21
- "manifestContract": 2,
22
- "runtimePeers": {
23
- "@absolutejs/agency": {
24
- "artifactImports": [
25
- "@absolutejs/agency/authzen"
26
- ],
27
- "range": ">=0.7.1 <0.8.0",
28
- "tested": "0.7.1",
29
- "buildExternals": [
30
- "@absolutejs/agency",
31
- "@absolutejs/agency/*"
32
- ]
33
- }
34
- }
23
+ "manifestContract": 2
35
24
  },
36
25
  "exports": {
37
26
  ".": {
@@ -72,5 +61,5 @@
72
61
  "typecheck": "tsc --noEmit --project tsconfig.json"
73
62
  },
74
63
  "types": "./dist/src/index.d.ts",
75
- "version": "0.11.3"
64
+ "version": "0.12.0"
76
65
  }