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
package/js/openapi.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  protocolOperations,
10
10
  protocolRouter
11
- } from "./chunk-XRNSAU62.js";
11
+ } from "./chunk-B2PSDMZP.js";
12
12
  import {
13
13
  OpenapiCompileError,
14
14
  OpenapiCompileErrorCode,
@@ -29,15 +29,15 @@ import {
29
29
  isOpenapiTextMedia,
30
30
  openapiBinaryResultSchema,
31
31
  openapiMediaKind
32
- } from "./chunk-NXUNFV44.js";
32
+ } from "./chunk-6OWHQINS.js";
33
33
  import {
34
34
  failOnNetworkRefusal
35
- } from "./chunk-K24M6LZ7.js";
36
- import "./chunk-XAOJP46A.js";
35
+ } from "./chunk-B4JN2A6F.js";
36
+ import "./chunk-XR7KZNKD.js";
37
37
  import {
38
38
  nativeOperation,
39
39
  routerDeclaration
40
- } from "./chunk-B54D6AN7.js";
40
+ } from "./chunk-455CCO6Q.js";
41
41
  import {
42
42
  accountProviderError,
43
43
  bodyUpstreamError,
@@ -47,7 +47,7 @@ import {
47
47
  providerErrorDetail,
48
48
  statedUpstream,
49
49
  toPromise
50
- } from "./chunk-RUSVGD5N.js";
50
+ } from "./chunk-BU3UOD2T.js";
51
51
  import {
52
52
  ApiErrorRecovery,
53
53
  ApiErrorResponse,
@@ -58,17 +58,17 @@ import {
58
58
  RouterMeta,
59
59
  cacheLimits,
60
60
  defaultOpenapiErrorLimits
61
- } from "./chunk-LRXY54YF.js";
62
- import "./chunk-2XEQYDQY.js";
61
+ } from "./chunk-EXL6F456.js";
62
+ import "./chunk-A6FRLRCN.js";
63
63
  import {
64
64
  jsonSchema,
65
65
  lazyJsonSchemaDecoder,
66
66
  once,
67
67
  wrap
68
- } from "./chunk-ADG72XX3.js";
68
+ } from "./chunk-JLHRRTRH.js";
69
69
  import {
70
70
  owned
71
- } from "./chunk-H4JK7UTH.js";
71
+ } from "./chunk-T4MICYGT.js";
72
72
  import {
73
73
  FetchHttpClient_exports
74
74
  } from "./chunk-2OGVSUNI.js";
@@ -1963,8 +1963,7 @@ var segments = (path) => (path.split(/[?#]/)[0] ?? path).split("/").map((segment
1963
1963
  var resourceSegments = (path) => segments(path).filter(
1964
1964
  (segment) => !version.test(segment) && segment.toLowerCase() !== "api" && !(segment.startsWith("{") && segment.endsWith("}")) && camel(segment) !== ""
1965
1965
  );
1966
- var groupOf = (input) => camel(input.tag ?? "") || camel(resourceSegments(input.path)[0] ?? "") || // Keep "root" for an operation on `/` or a path of only versions and parameters.
1967
- "root";
1966
+ var groupOf = (input) => camel(input.tag ?? "") || camel(resourceSegments(input.path)[0] ?? "") || "root";
1968
1967
  var fallbackLeaf = (input, group) => {
1969
1968
  const resources = resourceSegments(input.path).map(camel);
1970
1969
  const others = resources.filter((segment) => segment !== group);
@@ -2791,7 +2790,6 @@ var compileOpenApiDocument = (entry, inputDocument, options = {}) => {
2791
2790
  fallback
2792
2791
  };
2793
2792
  },
2794
- // Expected failures stay typed; anything else is a defect in the importer, not the definition.
2795
2793
  catch: (error) => error instanceof OpenapiCompileError ? Exit_exports.fail(error) : Schema_exports.isSchemaError(error) ? Exit_exports.fail(
2796
2794
  new OpenapiCompileError({
2797
2795
  code: "invalid_document",
@@ -5567,10 +5565,7 @@ var download = (url, context) => Effect_exports.gen(function* () {
5567
5565
  });
5568
5566
  var sourceDocument = (options, context) => Effect_exports.gen(function* () {
5569
5567
  return patchOpenapi(
5570
- "url" in options.source ? yield* download(options.source.url, context) : (
5571
- // A copy the compilation can own, as a tree.
5572
- Schema_exports.decodeUnknownSync(JsonObject)(JSON.parse(JSON.stringify(options.source.document)))
5573
- ),
5568
+ "url" in options.source ? yield* download(options.source.url, context) : Schema_exports.decodeUnknownSync(JsonObject)(JSON.parse(JSON.stringify(options.source.document))),
5574
5569
  options.patches
5575
5570
  );
5576
5571
  });
@@ -5912,7 +5907,6 @@ var liveOpenapiRouter = (options) => {
5912
5907
  name: operation.name,
5913
5908
  description: operation.description,
5914
5909
  readOnly: readOnly(operation),
5915
- // The app's `kinds`, or the HTTP method Executor sends.
5916
5910
  kindConfirmed: true,
5917
5911
  ...operation.tags === void 0 ? {} : { tags: operation.tags }
5918
5912
  });
@@ -6056,7 +6050,6 @@ var openapiRouter = (options, kinds = {}) => Effect_exports.runPromise(
6056
6050
  var openapiOperationNames = (document) => Effect_exports.runPromise(
6057
6051
  Effect_exports.suspend(
6058
6052
  () => compiledOperationNames(
6059
- // A copy the reader can own, as a tree.
6060
6053
  Schema_exports.decodeUnknownSync(JsonObject)(JSON.parse(JSON.stringify(document)))
6061
6054
  )
6062
6055
  )
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  folderSkillsEffect,
3
3
  skillFromFiles
4
- } from "../chunk-XAOJP46A.js";
5
- import "../chunk-2XEQYDQY.js";
4
+ } from "../chunk-XR7KZNKD.js";
5
+ import "../chunk-A6FRLRCN.js";
6
6
  import "../chunk-6XBOKQ4E.js";
7
7
  import "../chunk-QLUWYCOT.js";
8
8
  import "../chunk-IWLFLMIL.js";
package/js/skills.js CHANGED
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-Y3QPWYHC.js";
5
- import "./chunk-PASOVDON.js";
4
+ } from "./chunk-AFEMXP3F.js";
5
+ import "./chunk-6NRWFVK2.js";
6
6
  import {
7
7
  failOnNetworkRefusal
8
- } from "./chunk-K24M6LZ7.js";
8
+ } from "./chunk-B4JN2A6F.js";
9
9
  import {
10
10
  folderSkillsEffect,
11
11
  skillFromFiles
12
- } from "./chunk-XAOJP46A.js";
12
+ } from "./chunk-XR7KZNKD.js";
13
13
  import {
14
14
  accountProviderError,
15
15
  fromPromise,
16
16
  httpProviderError,
17
17
  method,
18
18
  toPromise
19
- } from "./chunk-RUSVGD5N.js";
19
+ } from "./chunk-BU3UOD2T.js";
20
20
  import {
21
21
  NetworkRefused,
22
22
  ProviderError,
23
23
  networkRefusalStatus
24
- } from "./chunk-LRXY54YF.js";
24
+ } from "./chunk-EXL6F456.js";
25
25
  import {
26
26
  AppSkillMetadata,
27
27
  AppSkillSource,
@@ -31,11 +31,11 @@ import {
31
31
  SkillLoadFailed,
32
32
  SkillServiceName,
33
33
  skillLoadLimits
34
- } from "./chunk-2XEQYDQY.js";
34
+ } from "./chunk-A6FRLRCN.js";
35
35
  import {
36
36
  wrap
37
- } from "./chunk-ADG72XX3.js";
38
- import "./chunk-H4JK7UTH.js";
37
+ } from "./chunk-JLHRRTRH.js";
38
+ import "./chunk-T4MICYGT.js";
39
39
  import {
40
40
  FetchHttpClient_exports
41
41
  } from "./chunk-2OGVSUNI.js";
@@ -653,7 +653,6 @@ var reader = (transport) => Effect_exports.gen(function* () {
653
653
  headers,
654
654
  body: HttpBody_exports.uint8Array(request.body, request.headers?.["Content-Type"])
655
655
  })).pipe(
656
- // `ctx.fetch` rejects with a network refusal; any other failed request got no answer.
657
656
  Effect_exports.mapError(
658
657
  (error) => Schema_exports.is(NetworkRefused)(error.cause) ? refusal(error.cause) : failed("request")
659
658
  )
@@ -797,21 +796,16 @@ var cachedSkillDirectories = (cache, transport, options, commit) => fromPromise(
797
796
  key: ["apps/githubSkills/directories", 1, options.repo, commit, options.path ?? null],
798
797
  schema: wrap(SkillDirectories, false),
799
798
  freshFor: "7 days",
800
- // Executor's own loader: the app's cache runs it natively, so only its requests are upstream.
801
799
  load: toPromise(
802
- (context) => (
803
- // Keep the author's fetch and this read's token, as every other request in it does.
804
- reader({ fetch: transport.fetch, signal: context.signal }).pipe(
805
- Effect_exports.flatMap(
806
- (remote) => skillDirectories(
807
- githubRequests(remote, options.repo, options.token),
808
- commit,
809
- options.path
810
- )
800
+ (context) => reader({ fetch: transport.fetch, signal: context.signal }).pipe(
801
+ Effect_exports.flatMap(
802
+ (remote) => skillDirectories(
803
+ githubRequests(remote, options.repo, options.token),
804
+ commit,
805
+ options.path
811
806
  )
812
807
  )
813
808
  ),
814
- // A cache may call the loader as a Promise; its own signal cancels that load.
815
809
  (context) => context.signal
816
810
  )
817
811
  }).pipe(
package/js/ui/serving.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  } from "../chunk-TMYRAFMC.js";
10
10
  import {
11
11
  CurrentTelemetryConfig
12
- } from "../chunk-H4JK7UTH.js";
12
+ } from "../chunk-T4MICYGT.js";
13
13
  import "../chunk-2OGVSUNI.js";
14
14
  import "../chunk-6XBOKQ4E.js";
15
15
  import "../chunk-7A4ZSEM3.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps",
3
- "version": "0.0.1-beta.143",
3
+ "version": "0.0.1-beta.144",
4
4
  "description": "TypeScript apps with typed tools, accounts, storage, and UI.",
5
5
  "type": "module",
6
6
  "sideEffects": false,