apps 0.0.1-beta.143 → 0.0.1-beta.148

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 (79) hide show
  1. package/README.md +14 -0
  2. package/check-publish.mjs +0 -1
  3. package/framework-reference.json +1 -1
  4. package/js/{chunk-IWLFLMIL.js → chunk-4XXHO5UG.js} +3966 -1760
  5. package/js/{chunk-NXUNFV44.js → chunk-63BS5GBH.js} +9 -14
  6. package/js/{chunk-2XEQYDQY.js → chunk-A6FRLRCN.js} +0 -1
  7. package/js/{chunk-PASOVDON.js → chunk-ALZDZ3ZT.js} +9 -30
  8. package/js/{chunk-H4JK7UTH.js → chunk-CQCY3OZS.js} +8 -49
  9. package/js/{chunk-V6OUBNL4.js → chunk-CWAPV2TN.js} +4 -6
  10. package/js/{chunk-RW5EXIO6.js → chunk-DX5DD6Z2.js} +8 -17
  11. package/js/{chunk-B54D6AN7.js → chunk-E2PVLAGK.js} +7 -15
  12. package/js/{chunk-LRXY54YF.js → chunk-EXL6F456.js} +1 -1
  13. package/js/{chunk-Y3QPWYHC.js → chunk-FWK2WTJB.js} +4 -5
  14. package/js/{chunk-2OGVSUNI.js → chunk-GWFQCQB5.js} +2 -2
  15. package/js/chunk-HEFJFDU4.js +87 -0
  16. package/js/{chunk-XRNSAU62.js → chunk-I7MYW7IK.js} +2 -2
  17. package/js/{chunk-ADG72XX3.js → chunk-JLHRRTRH.js} +6 -13
  18. package/js/{chunk-K24M6LZ7.js → chunk-MXFPSMNM.js} +2 -2
  19. package/js/{chunk-INQON4A2.js → chunk-OA4UYCJ4.js} +2 -2
  20. package/js/{chunk-3RIEA22Q.js → chunk-PUMGAWHB.js} +24 -43
  21. package/js/{chunk-W6V5OIHB.js → chunk-SEJXUMGT.js} +267 -1
  22. package/js/{chunk-RUSVGD5N.js → chunk-SXYFFXHM.js} +2 -2
  23. package/js/{chunk-BHSWVS3Q.js → chunk-UT2CBMW3.js} +4 -1
  24. package/js/{chunk-XAOJP46A.js → chunk-XR7KZNKD.js} +1 -1
  25. package/js/{chunk-TMYRAFMC.js → chunk-ZWFMEH2Y.js} +18 -1
  26. package/js/client.js +31 -14
  27. package/js/contracts.js +3 -4
  28. package/js/effect.js +14 -15
  29. package/js/graphql.js +16 -19
  30. package/js/host.js +14 -17
  31. package/js/index.js +10 -16
  32. package/js/mcp/effect.js +15 -16
  33. package/js/mcp.js +17 -18
  34. package/js/openapi.js +14 -22
  35. package/js/react.js +122 -3
  36. package/js/skills/effect.js +3 -4
  37. package/js/skills.js +17 -24
  38. package/js/ui/auth/contracts.js +5 -1
  39. package/js/ui/auth.js +7 -4
  40. package/js/ui/contracts.js +52 -5
  41. package/js/ui/serving.js +55 -17
  42. package/package.json +1 -1
  43. package/runtime.json +1 -1
  44. package/types/app-cache/src/index.d.ts +1 -40
  45. package/types/app-data/src/contracts/database.d.ts +0 -21
  46. package/types/apps/src/client.d.ts +3 -0
  47. package/types/apps/src/contracts/desktop-errors.d.ts +46 -0
  48. package/types/apps/src/contracts/desktop.d.ts +228 -0
  49. package/types/apps/src/contracts/ui-auth.d.ts +4 -1
  50. package/types/apps/src/contracts/ui.d.ts +43 -1
  51. package/types/apps/src/implementation/desktop.d.ts +85 -0
  52. package/types/apps/src/implementation/ui-serving.d.ts +13 -1
  53. package/types/apps/src/react.d.ts +29 -0
  54. package/types/apps/src/ui-serving.d.ts +1 -1
  55. package/types/telemetry/src/app-records.d.ts +0 -24
  56. package/types/telemetry/src/browser-operations.d.ts +0 -8
  57. package/types/telemetry/src/browser-performance.d.ts +0 -2
  58. package/types/telemetry/src/browser-request-timing.d.ts +0 -1
  59. package/types/telemetry/src/browser.d.ts +0 -10
  60. package/types/telemetry/src/config.d.ts +0 -8
  61. package/types/telemetry/src/context.d.ts +0 -6
  62. package/types/telemetry/src/index.d.ts +0 -1
  63. package/types/telemetry/src/keepalive.d.ts +0 -44
  64. package/types/telemetry/src/layer.d.ts +0 -8
  65. package/types/telemetry/src/measurements.d.ts +0 -8
  66. package/types/telemetry/src/ownership.d.ts +0 -45
  67. package/types/telemetry/src/pending-span.d.ts +0 -2
  68. package/types/telemetry/src/recorded-failure.d.ts +0 -26
  69. package/types/telemetry/src/relay.d.ts +0 -29
  70. package/types/telemetry/src/span-attributes.d.ts +0 -38
  71. package/types/telemetry/src/trace-context.d.ts +0 -6
  72. package/types/telemetry/src/transport.d.ts +0 -10
  73. package/types/utils/src/api-error.d.ts +0 -22
  74. package/types/utils/src/connection-failure.d.ts +0 -10
  75. package/types/utils/src/random-uuid.d.ts +0 -5
  76. package/types/utils/src/recorded-message.d.ts +0 -15
  77. package/types/utils/src/schema-definitions.d.ts +0 -6
  78. package/types/utils/src/user-facing-error.d.ts +0 -19
  79. package/js/chunk-QLUWYCOT.js +0 -2325
@@ -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 {};