apps 0.0.1-beta.40 → 0.0.1-beta.41
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/framework-reference.json +1 -1
- package/js/{chunk-DHX2OI2X.js → chunk-6XGB4BAL.js} +1 -1
- package/js/{chunk-4TLZGG4B.js → chunk-ADD6H64X.js} +2 -2
- package/js/{chunk-SALJXSS3.js → chunk-AHGGO2VY.js} +76 -21
- package/js/{chunk-MYF7KWUB.js → chunk-FXWRE655.js} +3 -3
- package/js/{chunk-KANDIVIH.js → chunk-JI3EP2GL.js} +1 -1
- package/js/{chunk-XDGUGB2A.js → chunk-JJSLEJ6T.js} +2 -2
- package/js/{chunk-6KABJTDO.js → chunk-MJZYV7IO.js} +1 -1
- package/js/{chunk-PDS2E2OZ.js → chunk-UTJIGUSS.js} +2 -2
- package/js/{chunk-GHXRRFZA.js → chunk-WPBR4AWB.js} +114 -20
- package/js/client.js +1 -1
- package/js/effect.js +5 -5
- package/js/graphql.js +7 -7
- package/js/host.js +5 -5
- package/js/index.js +3 -3
- package/js/mcp/effect.js +7 -7
- package/js/mcp/stdio.js +7 -7
- package/js/mcp.js +9 -9
- package/js/openapi.js +4 -4
- package/js/skills.js +2 -2
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/implementation/elicitation.d.ts +4 -4
- package/types/apps/src/implementation/input-problems.d.ts +2 -1
- package/types/apps/src/implementation/schema.d.ts +9 -0
|
@@ -39,9 +39,9 @@ export declare const prepareElicitation: (input: unknown) => Effect.Effect<{
|
|
|
39
39
|
};
|
|
40
40
|
readonly description?: string;
|
|
41
41
|
readonly default?: readonly string[];
|
|
42
|
-
readonly title?: string;
|
|
43
42
|
readonly minItems?: number;
|
|
44
43
|
readonly maxItems?: number;
|
|
44
|
+
readonly title?: string;
|
|
45
45
|
} | {
|
|
46
46
|
readonly type: "array";
|
|
47
47
|
readonly items: {
|
|
@@ -52,24 +52,24 @@ export declare const prepareElicitation: (input: unknown) => Effect.Effect<{
|
|
|
52
52
|
};
|
|
53
53
|
readonly description?: string;
|
|
54
54
|
readonly default?: readonly string[];
|
|
55
|
-
readonly title?: string;
|
|
56
55
|
readonly minItems?: number;
|
|
57
56
|
readonly maxItems?: number;
|
|
57
|
+
readonly title?: string;
|
|
58
58
|
} | {
|
|
59
59
|
readonly type: "string";
|
|
60
60
|
readonly description?: string;
|
|
61
61
|
readonly default?: string;
|
|
62
62
|
readonly format?: "email" | "uri" | "date" | "date-time";
|
|
63
|
-
readonly title?: string;
|
|
64
63
|
readonly minLength?: number;
|
|
65
64
|
readonly maxLength?: number;
|
|
65
|
+
readonly title?: string;
|
|
66
66
|
} | {
|
|
67
67
|
readonly type: "number" | "integer";
|
|
68
68
|
readonly description?: string;
|
|
69
69
|
readonly default?: number;
|
|
70
|
+
readonly minimum?: number;
|
|
70
71
|
readonly maximum?: number;
|
|
71
72
|
readonly title?: string;
|
|
72
|
-
readonly minimum?: number;
|
|
73
73
|
} | {
|
|
74
74
|
readonly type: "boolean";
|
|
75
75
|
readonly description?: string;
|
|
@@ -2,5 +2,6 @@ import { HostInputInvalid } from "../contracts/host.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Failing input paths and what each expects, from a schema decode failure, without supplied
|
|
4
4
|
* values. An expected object names its keys, so a caller can correct nesting from the problem.
|
|
5
|
+
* A missing key also asks about a place where `input`, the rejected input, may have that key.
|
|
5
6
|
*/
|
|
6
|
-
export declare const inputInvalid: (error: unknown) => HostInputInvalid;
|
|
7
|
+
export declare const inputInvalid: (error: unknown, input: unknown) => HostInputInvalid;
|
|
@@ -143,6 +143,15 @@ export declare const maxAlternativeKeys = 8;
|
|
|
143
143
|
* them apart. Shapes, values and the key come from the schema, never from supplied input.
|
|
144
144
|
*/
|
|
145
145
|
export declare const unionShape: (alternatives: readonly string[], selector: string | undefined) => string;
|
|
146
|
+
/** The problem for a required key the input omits, with what its schema expects when stated. */
|
|
147
|
+
export declare const missingKey: (expected: string | undefined) => string;
|
|
148
|
+
/** The text every missing-key problem starts with, so the caller can add where the input has it. */
|
|
149
|
+
export declare const missingKeyText = "Missing key";
|
|
150
|
+
/**
|
|
151
|
+
* Whether the imported schema whose check failed may accept a key as an object's own key, for a
|
|
152
|
+
* failure's check; undefined when the check is not an imported schema's.
|
|
153
|
+
*/
|
|
154
|
+
export declare const importedSchemaKeys: (check: object) => ((key: string) => boolean) | undefined;
|
|
146
155
|
/** Prepare an interpreted validator. No eval or generated JavaScript runs in any host. */
|
|
147
156
|
export declare const compileJsonSchemaDecoder: (document: JsonObject) => Effect.Effect<EffectSchema.Codec<EffectSchema.Json, EffectSchema.Json, never, never> & {
|
|
148
157
|
[ImportedJsonSchema]: {
|