apps 0.0.1-beta.30 → 0.0.1-beta.32

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.
Files changed (54) hide show
  1. package/framework-reference.json +1 -1
  2. package/js/{chunk-AE4FWJQU.js → chunk-3FJYVAE4.js} +7 -7
  3. package/js/{chunk-KQCMHI3K.js → chunk-4OKYLVU4.js} +3 -3
  4. package/js/{chunk-BRGF7VFN.js → chunk-5DLG2FVN.js} +2 -2
  5. package/js/{chunk-XBQTJP76.js → chunk-5JVNM3CQ.js} +2 -2
  6. package/js/{chunk-6VWYEQ4X.js → chunk-5XJR4XGW.js} +3 -3
  7. package/js/{chunk-BTJMXW4I.js → chunk-6KG4DZD7.js} +1 -1
  8. package/js/{chunk-65SZ23BK.js → chunk-6ZJ2H6P4.js} +2 -2
  9. package/js/{chunk-P46HIAX6.js → chunk-AUFVX4KM.js} +2 -2
  10. package/js/{chunk-VUVBMNKC.js → chunk-AYM2FUI5.js} +2 -2
  11. package/js/{chunk-ZZOCEUTB.js → chunk-BGALSHLT.js} +4 -4
  12. package/js/{chunk-XGN5IFOZ.js → chunk-CJY5X26R.js} +1 -1
  13. package/js/{chunk-6JBTHTI5.js → chunk-DASNNAP4.js} +1 -1
  14. package/js/{chunk-WGBI5MVX.js → chunk-ETLILMHY.js} +3 -3
  15. package/js/{chunk-NXTXZ635.js → chunk-EXGKN554.js} +166 -11
  16. package/js/{chunk-PWF2DRJ3.js → chunk-FBBXFFFJ.js} +1 -1
  17. package/js/{chunk-OI5CKSBU.js → chunk-FULRJSWU.js} +8 -8
  18. package/js/{chunk-IMCEF6KE.js → chunk-GG566OOE.js} +9 -9
  19. package/js/{chunk-5ZHHO4OM.js → chunk-GZ4UHXRT.js} +3 -3
  20. package/js/{chunk-MYCVMDWI.js → chunk-HW3DPBZR.js} +1 -1
  21. package/js/{chunk-BBTELEAN.js → chunk-MFHUR5SB.js} +2 -2
  22. package/js/{chunk-BSRU52RU.js → chunk-N72RKJ5E.js} +5 -5
  23. package/js/{chunk-YML53Z7H.js → chunk-NPGRURDG.js} +350 -15
  24. package/js/{chunk-4N26L465.js → chunk-OX233L7N.js} +2 -2
  25. package/js/{chunk-2D2PKLGQ.js → chunk-QYM4STZW.js} +2 -2
  26. package/js/{chunk-PUC24GZP.js → chunk-RULZPNGP.js} +12 -12
  27. package/js/{chunk-M2KEEOIQ.js → chunk-UMCMZFXW.js} +1 -1
  28. package/js/{chunk-6NK26ONC.js → chunk-W7F23NQ2.js} +102 -19
  29. package/js/{chunk-3SPRHIEE.js → chunk-WG5DFZFT.js} +2 -2
  30. package/js/{chunk-WQ5MVBTP.js → chunk-ZOY7PDMI.js} +1 -1
  31. package/js/client.js +11 -11
  32. package/js/contracts.js +9 -9
  33. package/js/effect.js +20 -20
  34. package/js/graphql.js +22 -22
  35. package/js/host.js +20 -20
  36. package/js/index.js +14 -14
  37. package/js/mcp/effect.js +22 -22
  38. package/js/mcp/stdio.js +22 -22
  39. package/js/mcp.js +24 -24
  40. package/js/openapi.js +17 -17
  41. package/js/react.js +3 -3
  42. package/js/skills/effect.js +5 -5
  43. package/js/skills.js +12 -12
  44. package/js/storage/facet.js +4 -4
  45. package/js/ui/auth/contracts.js +2 -2
  46. package/js/ui/auth.js +5 -5
  47. package/js/ui/contracts.js +5 -5
  48. package/js/ui/serving.js +9 -9
  49. package/package.json +1 -1
  50. package/runtime.json +1 -1
  51. package/types/apps/src/contracts/openapi-compile.d.ts +1 -0
  52. package/types/apps/src/implementation/input-problems.d.ts +4 -1
  53. package/types/apps/src/implementation/openapi-document.d.ts +11 -11
  54. package/types/apps/src/implementation/schema.d.ts +28 -0
@@ -1,5 +1,6 @@
1
1
  /** Shared OpenAPI compilation diagnostics. */
2
2
  import { Schema } from "effect";
3
+ /** Which part of an OpenAPI document could not be compiled into tools. */
3
4
  export declare const OpenapiCompileErrorCode: Schema.Literals<readonly ["server_protocol", "server_url", "external_reference", "circular_reference", "schema_keyword", "schema_reference", "missing_component", "openapi_version", "auth_helper", "auth_missing", "operation_path", "operation_method", "duplicate_operation", "server_missing", "multiple_hosts", "parameter_encoding", "parameter_style", "request_body", "combined_oauth", "auth_method", "event_stream", "input_schema", "no_operations", "no_supported_operations", "invalid_document", "source_generation", "authoring_reference"]>;
4
5
  /** A declared operation the importer left out, and why. */
5
6
  export declare const OpenapiSkippedOperation: Schema.Struct<{
@@ -1,3 +1,6 @@
1
1
  import { HostInputInvalid } from "../contracts/host.js";
2
- /** Failing input paths and expected shapes from a schema decode failure, without supplied values. */
2
+ /**
3
+ * Failing input paths and what each expects, from a schema decode failure, without supplied
4
+ * values. An expected object names its keys, so a caller can correct nesting from the problem.
5
+ */
3
6
  export declare const inputInvalid: (error: unknown) => HostInputInvalid;
@@ -34,27 +34,27 @@ export declare function openApiDocument(input: JsonObject): Promise<{
34
34
  readonly [x: string]: Schema.Json;
35
35
  };
36
36
  };
37
- readonly security?: readonly {
38
- readonly [x: string]: readonly string[];
39
- }[];
40
- readonly servers?: readonly {
41
- readonly url: string;
42
- readonly variables?: {
43
- readonly [x: string]: Schema.Json;
44
- };
45
- }[];
46
37
  readonly components?: {
47
- readonly securitySchemes?: {
38
+ readonly schemas?: {
48
39
  readonly [x: string]: {
49
40
  readonly [x: string]: Schema.Json;
50
41
  };
51
42
  };
52
- readonly schemas?: {
43
+ readonly securitySchemes?: {
53
44
  readonly [x: string]: {
54
45
  readonly [x: string]: Schema.Json;
55
46
  };
56
47
  };
57
48
  };
49
+ readonly security?: readonly {
50
+ readonly [x: string]: readonly string[];
51
+ }[];
52
+ readonly servers?: readonly {
53
+ readonly url: string;
54
+ readonly variables?: {
55
+ readonly [x: string]: Schema.Json;
56
+ };
57
+ }[];
58
58
  };
59
59
  definitions: Map<string, {
60
60
  readonly [x: string]: Schema.Json;
@@ -111,8 +111,36 @@ export declare const withLazyJsonSchemaDocument: <S extends EffectSchema.Decoder
111
111
  * Relocate a self-contained JSON Schema under a document pointer. Resolve references
112
112
  * before nesting so account schemas can reuse definition names, IDs and anchors.
113
113
  * Only schema nodes are rewritten; examples and ordinary property values stay intact.
114
+ * A `$recursiveRef` becomes the pointer to its static target, such as the relocated root. The
115
+ * patched validator applies it like `"#"` was: the recursive anchor in scope, else that target.
114
116
  */
115
117
  export declare const nestJsonSchema: (input: JsonObject, pointer: string) => JsonObject;
118
+ /**
119
+ * Whether an input key may be named in a validation problem. Other keys can carry supplied data,
120
+ * so problems locate them without echoing them.
121
+ */
122
+ export declare const echoableKey: (key: string) => boolean;
123
+ /**
124
+ * The keys an object accepts, as `object {name, optional?}`. `...` marks an object that also
125
+ * accepts other keys. Names come from the schema, never from supplied input.
126
+ */
127
+ export declare const objectShape: (keys: readonly {
128
+ readonly name: string;
129
+ readonly optional: boolean;
130
+ }[], open: boolean, limit?: number) => string;
131
+ /**
132
+ * The values a schema fixes, as `"v1"` or `one of "a", "b" and 3 more`. Agents already read
133
+ * these values in the tool's signature, so problems list them, up to {@link maxListedValues}
134
+ * values and {@link maxValuesText} characters. They come from the schema, never from input.
135
+ */
136
+ export declare const allowedValues: (values: readonly unknown[]) => string;
137
+ /** Keys listed for each union alternative, so several alternatives fit in one problem. */
138
+ export declare const maxAlternativeKeys = 8;
139
+ /**
140
+ * The alternatives a union accepts, as `string or object {id}`, and the key whose value tells
141
+ * them apart. Shapes, values and the key come from the schema, never from supplied input.
142
+ */
143
+ export declare const unionShape: (alternatives: readonly string[], selector: string | undefined) => string;
116
144
  /** Prepare an interpreted validator. No eval or generated JavaScript runs in any host. */
117
145
  export declare const compileJsonSchemaDecoder: (document: JsonObject) => Effect.Effect<EffectSchema.Codec<EffectSchema.Json, EffectSchema.Json, never, never> & {
118
146
  [ImportedJsonSchema]: {