apps 0.0.1-beta.143 → 0.0.1-beta.144

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 (57) hide show
  1. package/check-publish.mjs +0 -1
  2. package/framework-reference.json +1 -1
  3. package/js/{chunk-B54D6AN7.js → chunk-455CCO6Q.js} +7 -15
  4. package/js/{chunk-RW5EXIO6.js → chunk-5MEOL2SG.js} +6 -15
  5. package/js/{chunk-PASOVDON.js → chunk-6NRWFVK2.js} +9 -30
  6. package/js/{chunk-NXUNFV44.js → chunk-6OWHQINS.js} +9 -14
  7. package/js/{chunk-2XEQYDQY.js → chunk-A6FRLRCN.js} +0 -1
  8. package/js/{chunk-Y3QPWYHC.js → chunk-AFEMXP3F.js} +4 -5
  9. package/js/{chunk-XRNSAU62.js → chunk-B2PSDMZP.js} +2 -2
  10. package/js/{chunk-K24M6LZ7.js → chunk-B4JN2A6F.js} +2 -2
  11. package/js/{chunk-RUSVGD5N.js → chunk-BU3UOD2T.js} +2 -2
  12. package/js/{chunk-LRXY54YF.js → chunk-EXL6F456.js} +1 -1
  13. package/js/{chunk-ADG72XX3.js → chunk-JLHRRTRH.js} +6 -13
  14. package/js/{chunk-3RIEA22Q.js → chunk-OFSXKKD6.js} +24 -43
  15. package/js/{chunk-V6OUBNL4.js → chunk-QDF7PQAD.js} +4 -6
  16. package/js/{chunk-H4JK7UTH.js → chunk-T4MICYGT.js} +6 -47
  17. package/js/{chunk-XAOJP46A.js → chunk-XR7KZNKD.js} +1 -1
  18. package/js/client.js +2 -7
  19. package/js/contracts.js +2 -2
  20. package/js/effect.js +12 -12
  21. package/js/graphql.js +14 -16
  22. package/js/host.js +12 -14
  23. package/js/index.js +8 -13
  24. package/js/mcp/effect.js +13 -13
  25. package/js/mcp.js +15 -15
  26. package/js/openapi.js +12 -19
  27. package/js/skills/effect.js +2 -2
  28. package/js/skills.js +15 -21
  29. package/js/ui/serving.js +1 -1
  30. package/package.json +1 -1
  31. package/runtime.json +1 -1
  32. package/types/app-cache/src/index.d.ts +1 -40
  33. package/types/app-data/src/contracts/database.d.ts +0 -21
  34. package/types/telemetry/src/app-records.d.ts +0 -24
  35. package/types/telemetry/src/browser-operations.d.ts +0 -8
  36. package/types/telemetry/src/browser-performance.d.ts +0 -2
  37. package/types/telemetry/src/browser-request-timing.d.ts +0 -1
  38. package/types/telemetry/src/browser.d.ts +0 -10
  39. package/types/telemetry/src/config.d.ts +0 -8
  40. package/types/telemetry/src/context.d.ts +0 -6
  41. package/types/telemetry/src/index.d.ts +0 -1
  42. package/types/telemetry/src/keepalive.d.ts +0 -44
  43. package/types/telemetry/src/layer.d.ts +0 -8
  44. package/types/telemetry/src/measurements.d.ts +0 -8
  45. package/types/telemetry/src/ownership.d.ts +0 -45
  46. package/types/telemetry/src/pending-span.d.ts +0 -2
  47. package/types/telemetry/src/recorded-failure.d.ts +0 -26
  48. package/types/telemetry/src/relay.d.ts +0 -29
  49. package/types/telemetry/src/span-attributes.d.ts +0 -38
  50. package/types/telemetry/src/trace-context.d.ts +0 -6
  51. package/types/telemetry/src/transport.d.ts +0 -10
  52. package/types/utils/src/api-error.d.ts +0 -22
  53. package/types/utils/src/connection-failure.d.ts +0 -10
  54. package/types/utils/src/random-uuid.d.ts +0 -5
  55. package/types/utils/src/recorded-message.d.ts +0 -15
  56. package/types/utils/src/schema-definitions.d.ts +0 -6
  57. package/types/utils/src/user-facing-error.d.ts +0 -19
@@ -1,20 +1,14 @@
1
- /** Safe W3C identifiers for correlation across transports that do not carry HTTP headers. */
2
1
  import { Effect, Option, Schema, Tracer } from "effect";
3
- /** Trace metadata conveys no authorization and must never contain app values or credentials. */
4
2
  export declare const TraceContext: Schema.Struct<{
5
3
  readonly traceId: Schema.String;
6
4
  readonly spanId: Schema.String;
7
5
  readonly sampled: Schema.Boolean;
8
6
  }>;
9
- /** Decoded, non-authorizing trace identity. */
10
7
  export type TraceContext = typeof TraceContext.Type;
11
- /** Capture only the current span's transport-safe identity. */
12
8
  export declare const currentTraceContext: Effect.Effect<{
13
9
  readonly traceId: string;
14
10
  readonly spanId: string;
15
11
  readonly sampled: boolean;
16
12
  } | undefined, never, never>;
17
- /** Invalid or absent optional telemetry never prevents otherwise valid application data from rendering. */
18
13
  export declare const externalTrace: (input: unknown) => Option.Option<Tracer.ExternalSpan>;
19
- /** Link a measurement to the observed request without inventing a parent/child lifetime. */
20
14
  export declare const traceLinks: (input: unknown, relationship: string) => ReadonlyArray<Tracer.SpanLink>;
@@ -1,15 +1,5 @@
1
1
  import { Context, Layer } from "effect";
2
2
  import { HttpClient, HttpClientError } from "effect/http";
3
- /** Local collector discovery can resolve its destination when an export runs. */
4
3
  export declare const CurrentTelemetryClient: Context.Reference<HttpClient.HttpClient | undefined>;
5
- /** Telemetry consumers inspect status and headers; release response I/O inside each export scope. */
6
4
  export declare const telemetryHttpClient: Layer.Layer<HttpClient.HttpClient, never, never>;
7
- /**
8
- * Resend an export the collector refused for now, as OTLP requires and Effect's own
9
- * exporters do: lost connections, timeouts, 429 and 5xx overload, at most three more times. A
10
- * collector shedding load answers 429 or 503 with Retry-After, which sets the wait, as long as the
11
- * next attempt, with its own time-out, still ends within `exportBudget`; a longer wait is shortened
12
- * to that, so the last attempt runs before the runtime would cut it off. When no attempt fits, the
13
- * export ends with its last failure.
14
- */
15
5
  export declare const retryTelemetryExport: (client: HttpClient.HttpClient) => HttpClient.HttpClient.With<HttpClientError.HttpClientError, never>;
@@ -1,12 +1,6 @@
1
1
  import { Schema, type Cause } from "effect";
2
2
  import "effect/http-api";
3
- /**
4
- * Encode the class's `message` getter as a required wire string. Decoding validates the field,
5
- * then omits it, so the class derives its own message from the parsed payload and a supplied
6
- * value never replaces it.
7
- */
8
3
  export declare const MessageField: Schema.decodeTo<Schema.optionalKey<Schema.String>, Schema.String, never, never>;
9
- /** An expected API error whose response states its cause in a `message` derived from its fields. */
10
4
  export interface ApiError extends Cause.YieldableError {
11
5
  readonly _tag: string;
12
6
  }
@@ -18,17 +12,7 @@ type Definition<Tag extends string, Fields extends Schema.Struct.Fields> = Heade
18
12
  readonly fields: Fields & {
19
13
  readonly [Key in "_tag" | "message"]?: never;
20
14
  };
21
- /**
22
- * The cause, stated for API and agent callers. It is also the error's `message`, which traces
23
- * record, so it never includes credentials, upstream response text or submitted values.
24
- */
25
15
  readonly message: string | ((fields: Schema.Struct.Type<Fields>) => string);
26
- /**
27
- * What traces and error reports record beside the tag. A fixed `message` is recorded as is; a
28
- * message derived from fields is recorded only through this, from fixed text and closed fields,
29
- * never a value the caller chose, an app's text or a service's reply. Without it the error is
30
- * recorded by its tag alone.
31
- */
32
16
  readonly recorded?: (fields: Schema.Struct.Type<Fields>) => string;
33
17
  };
34
18
  type ErrorFields<Tag extends string, Fields extends Schema.Struct.Fields> = Omit<Schema.TaggedStruct<Tag, Fields & {
@@ -39,16 +23,10 @@ type ErrorFields<Tag extends string, Fields extends Schema.Struct.Fields> = Omit
39
23
  type ErrorClass<Tag extends string, Fields extends Schema.Struct.Fields> = Schema.Class<Schema.Struct.Type<Fields> & ApiError & {
40
24
  readonly _tag: Tag;
41
25
  }, ErrorFields<Tag, Fields>, ApiError>;
42
- /** Define an error with no payload and a fixed message. Its tag is its public error code. */
43
26
  declare function define<const Tag extends string>(definition: Header<Tag> & {
44
27
  readonly message: string;
45
28
  }): ErrorClass<Tag, {}>;
46
- /** Define an error whose message can depend on its parsed fields. */
47
29
  declare function define<const Tag extends string, const Fields extends Schema.Struct.Fields>(definition: Definition<Tag, Fields>): ErrorClass<Tag, Fields>;
48
- /**
49
- * Define the schema, constructor and API message of an expected error together. Errors that need
50
- * a user-facing title and recovery use `UserFacingError`, which carries the same message field.
51
- */
52
30
  export declare const ApiError: {
53
31
  define: typeof define;
54
32
  };
@@ -1,17 +1,8 @@
1
- /** Requests the browser could not complete because no response reached it. */
2
1
  import { Cause } from "effect";
3
2
  import { HttpClientError } from "effect/http";
4
3
  import { UserFacingError } from "./user-facing-error.js";
5
- /**
6
- * Fetch rejects with a `TypeError` when no response arrives: the device is offline, the page
7
- * navigated away first, the connection was reset before a response, or the browser blocked the
8
- * request. The server may still have completed the request and records its own outcome. Failures Executor constructs itself, such as a batch reply
9
- * that ended without an answer, carry no such cause and stay unexpected.
10
- */
11
4
  export declare const isConnectionFailure: (error: unknown) => error is HttpClientError.HttpClientError;
12
- /** Typed API clients may surface a lost connection as a failure or, after narrowing, a defect. */
13
5
  export declare const hasConnectionFailure: (cause: Cause.Cause<unknown>) => boolean;
14
- /** The browser could not reach Executor. Nothing on the server needs fixing. */
15
6
  export declare const ConnectionFailed: import("effect/Schema").Class<{} & UserFacingError & {
16
7
  readonly _tag: "ConnectionFailed";
17
8
  }, Omit<import("effect/Schema").TaggedStruct<"ConnectionFailed", {
@@ -29,5 +20,4 @@ export declare const ConnectionFailed: import("effect/Schema").Class<{} & UserFa
29
20
  };
30
21
  }, UserFacingError>;
31
22
  export type ConnectionFailed = typeof ConnectionFailed.Type;
32
- /** What to show for a failure no contract declares: a lost connection, or an unexpected error. */
33
23
  export declare const undeclaredError: (cause: Cause.Cause<unknown>) => UserFacingError;
@@ -1,6 +1 @@
1
- /**
2
- * A random UUID v4 for browser code. Browsers expose `crypto.randomUUID` only in secure contexts,
3
- * and a self-hosted dashboard may be served over plain HTTP on a LAN address, where it is missing.
4
- * `getRandomValues` exists in every context, so this is the one path everywhere.
5
- */
6
1
  export declare const randomUuid: () => string;
@@ -1,18 +1,3 @@
1
- /**
2
- * The fixed sentence traces and error reports record for a tagged error, beside its tag. Telemetry
3
- * records no other text from a tagged error: one that declares no sentence is recorded by its tag
4
- * alone (`@executor-js/telemetry/recorded-failure`). Declare one from fixed text and closed fields
5
- * only, never from a value the caller supplied (a slug, a name, a tool name, an argument's key),
6
- * an app's own text or a service's reply. That text still reaches the caller the error is for.
7
- * `ApiError` and `UserFacingError` declare a fixed message for you; a message derived from fields
8
- * declares `recorded`.
9
- */
10
1
  export declare const RecordedMessage: unique symbol;
11
- /** The fixed sentence an error declares for telemetry, if it declares one. */
12
2
  export declare const recordedMessage: (error: unknown) => string | undefined;
13
- /**
14
- * Declare a recorded message on one error that Executor did not define the text of, such as an
15
- * error decoded from an app's reply. An error class's own declaration is kept. The error's fields
16
- * and wire encoding are unchanged.
17
- */
18
3
  export declare const recordAs: <E>(error: E, message: string) => E;
@@ -1,13 +1,7 @@
1
- /**
2
- * Helpers for the `$defs` of JSON Schema documents, shared by the encodings that send or keep each
3
- * definition once: an app's shared catalog and a kept tool listing's text.
4
- */
5
1
  import type { Schema } from "effect";
6
- /** Add an own entry. Assignment would set the prototype for an entry named `__proto__`. */
7
2
  export declare const putEntry: <A>(target: Record<string, A>, name: string, value: A) => void;
8
3
  type JsonEntries = {
9
4
  readonly [key: string]: Schema.Json;
10
5
  };
11
- /** A JSON Schema document's `$defs`, when it is an object of entries. */
12
6
  export declare const schemaDefinitions: (schema: JsonEntries | undefined) => JsonEntries | undefined;
13
7
  export {};
@@ -1,7 +1,6 @@
1
1
  import { Schema, type Cause } from "effect";
2
2
  import "effect/http-api";
3
3
  import { MessageField } from "./api-error.js";
4
- /** Curated explanation and recovery. Never include raw diagnostics, credentials, or form values. */
5
4
  export interface ErrorPresentation {
6
5
  readonly title: string;
7
6
  readonly description: string;
@@ -9,19 +8,12 @@ export interface ErrorPresentation {
9
8
  readonly action: string;
10
9
  readonly instructions: string;
11
10
  };
12
- /** Repeating the failed operation can help. Configuration changes are not retries. */
13
11
  readonly retryable?: boolean;
14
- /** False when the user's agent cannot act on the fix prompt, so hosts do not offer it. */
15
12
  readonly agentFixable?: boolean;
16
- /** One safe value the user needs for recovery, such as a URL to send to the service. */
17
13
  readonly detail?: {
18
14
  readonly label: string;
19
15
  readonly value: string;
20
16
  };
21
- /**
22
- * Present only when the Executor team must fix the problem. Safe evidence for a public
23
- * report: fixed codes and statuses, never user data, URLs, or upstream text.
24
- */
25
17
  readonly report?: string;
26
18
  }
27
19
  type PresentationProperties = Required<Omit<ErrorPresentation, "detail" | "report">> & {
@@ -30,7 +22,6 @@ type PresentationProperties = Required<Omit<ErrorPresentation, "detail" | "repor
30
22
  readonly code: string;
31
23
  readonly fixPrompt: string;
32
24
  };
33
- /** A yieldable error that owns its safe user explanation and agent recovery task. */
34
25
  export interface UserFacingError extends Cause.YieldableError, PresentationProperties {
35
26
  readonly _tag: string;
36
27
  }
@@ -42,12 +33,6 @@ type Definition<Tag extends string, Fields extends Schema.Struct.Fields> = Heade
42
33
  readonly fields: Fields & {
43
34
  readonly [Key in keyof PresentationProperties | "_tag" | "message"]?: never;
44
35
  };
45
- /**
46
- * What traces and error reports record beside the tag. A fixed description is recorded as is; a
47
- * presentation derived from fields is recorded only through this, from fixed text and closed
48
- * fields, never a value the caller chose, an app's text or a service's reply. Without it the
49
- * error is recorded by its tag alone.
50
- */
51
36
  readonly recorded?: (fields: Schema.Struct.Type<Fields>) => string;
52
37
  } & (ErrorPresentation | {
53
38
  readonly presentation: (fields: Schema.Struct.Type<Fields>) => ErrorPresentation;
@@ -69,15 +54,11 @@ type ErrorFields<Tag extends string, Fields extends Schema.Struct.Fields> = Omit
69
54
  type ErrorClass<Tag extends string, Fields extends Schema.Struct.Fields> = Schema.Class<Schema.Struct.Type<Fields> & UserFacingError & {
70
55
  readonly _tag: Tag;
71
56
  }, ErrorFields<Tag, Fields>, UserFacingError>;
72
- /** Define a schema-backed error with no payload. Its tag becomes its public error code. */
73
57
  declare function define<const Tag extends string>(definition: Header<Tag> & ErrorPresentation): ErrorClass<Tag, {}>;
74
- /** Define a schema-backed error whose safe presentation can depend on its parsed fields. */
75
58
  declare function define<const Tag extends string, const Fields extends Schema.Struct.Fields>(definition: Definition<Tag, Fields>): ErrorClass<Tag, Fields>;
76
- /** Define the schema, error constructor, user copy, and agent recovery together. */
77
59
  export declare const UserFacingError: {
78
60
  define: typeof define;
79
61
  is: (value: unknown) => value is UserFacingError;
80
62
  };
81
- /** Defects get a safe explanation without exposing an arbitrary cause. */
82
63
  export declare const UnexpectedError: ErrorClass<"UnexpectedError", {}>;
83
64
  export {};