apps 0.0.1-beta.89 → 0.0.1-beta.90

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 (55) hide show
  1. package/README.md +27 -10
  2. package/framework-reference.json +1 -1
  3. package/js/{chunk-H6NFR354.js → chunk-36UFTECB.js} +6 -8
  4. package/js/{chunk-I46RIOKQ.js → chunk-5MDA7MKL.js} +14 -13
  5. package/js/{chunk-NQW2E44U.js → chunk-6XQLA5NC.js} +579 -81
  6. package/js/{chunk-6FUJH3T4.js → chunk-7PHHWYV4.js} +6 -5
  7. package/js/{chunk-7Z3NUCTP.js → chunk-DADXWWRZ.js} +24 -6
  8. package/js/{chunk-BZFFXNWA.js → chunk-I5C7FD5Z.js} +1 -1
  9. package/js/{chunk-EKZLPXHK.js → chunk-KUCCHNVY.js} +3 -3
  10. package/js/{chunk-ZK7JDZJS.js → chunk-PYQLOLOC.js} +2 -2
  11. package/js/{chunk-ELSILABS.js → chunk-WMD4NHXZ.js} +113 -73
  12. package/js/{chunk-JJH3MBAM.js → chunk-YNJ5CZMJ.js} +3 -2
  13. package/js/{chunk-5ZVAYXLT.js → chunk-YRGL4QEF.js} +1 -1
  14. package/js/{chunk-GLXEYET6.js → chunk-YWFUWTUJ.js} +12 -7
  15. package/js/client.js +1 -1
  16. package/js/contracts.js +37 -25
  17. package/js/effect.js +8 -9
  18. package/js/graphql.js +10 -11
  19. package/js/host.js +11 -13
  20. package/js/index.js +29 -31
  21. package/js/mcp/effect.js +9 -10
  22. package/js/mcp.js +11 -12
  23. package/js/openapi.js +9 -11
  24. package/js/skills.js +6 -6
  25. package/js/ui/contracts.js +1 -1
  26. package/js/ui/serving.js +5 -6
  27. package/package.json +1 -1
  28. package/runtime.json +1 -1
  29. package/types/apps/src/contracts/app.d.ts +51 -8
  30. package/types/apps/src/contracts/cache.d.ts +1 -1
  31. package/types/apps/src/contracts/context.d.ts +37 -8
  32. package/types/apps/src/contracts/events.d.ts +2 -1
  33. package/types/apps/src/contracts/host.d.ts +800 -4
  34. package/types/apps/src/contracts/operations.d.ts +6 -3
  35. package/types/apps/src/contracts/protocol-version.d.ts +1 -1
  36. package/types/apps/src/contracts/protocols/11.d.ts +1149 -0
  37. package/types/apps/src/contracts/protocols/12.d.ts +3310 -0
  38. package/types/apps/src/contracts/protocols/current.d.ts +4445 -1633
  39. package/types/apps/src/contracts/schedules.d.ts +7 -1
  40. package/types/apps/src/contracts/ui.d.ts +11 -15
  41. package/types/apps/src/contracts/webhooks.d.ts +24 -7
  42. package/types/apps/src/contracts/workflows.d.ts +13 -17
  43. package/types/apps/src/implementation/app.d.ts +41 -14
  44. package/types/apps/src/implementation/cache.d.ts +1 -1
  45. package/types/apps/src/implementation/events.d.ts +6 -1
  46. package/types/apps/src/implementation/failure-detail.d.ts +3 -2
  47. package/types/apps/src/implementation/operations.d.ts +40 -5
  48. package/types/apps/src/implementation/router-catalog.d.ts +4 -0
  49. package/types/apps/src/implementation/schedules.d.ts +39 -8
  50. package/types/apps/src/implementation/ui-serving.d.ts +2 -2
  51. package/types/apps/src/implementation/webhooks.d.ts +15 -6
  52. package/types/apps/src/implementation/workflow-context.d.ts +6 -2
  53. package/types/apps/src/implementation/workflows.d.ts +10 -3
  54. package/types/apps/src/index.d.ts +15 -9
  55. package/js/chunk-F2G534HD.js +0 -285
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  prepareElicitation
3
- } from "./chunk-ELSILABS.js";
3
+ } from "./chunk-WMD4NHXZ.js";
4
4
  import {
5
5
  failOnNetworkRefusal
6
- } from "./chunk-5ZVAYXLT.js";
6
+ } from "./chunk-YRGL4QEF.js";
7
7
  import {
8
8
  accountProviderError,
9
9
  bodyUpstreamError,
10
10
  fromPromise,
11
11
  httpProviderError,
12
12
  providerErrorDetail
13
- } from "./chunk-BZFFXNWA.js";
13
+ } from "./chunk-I5C7FD5Z.js";
14
14
  import {
15
15
  ElicitationFailed,
16
16
  McpCredentialsUnverified,
@@ -20,17 +20,15 @@ import {
20
20
  McpToolMetadata,
21
21
  McpToolResult,
22
22
  McpToolsOptions,
23
+ NetworkRefused,
24
+ ProviderError,
23
25
  RouterIcon,
24
26
  ToolResultObservation,
25
27
  defaultElicitationLimits,
26
28
  defaultMcpClientLimits,
27
29
  mcpHealthReserveMs,
28
30
  mcpSdkTimerCeilingMs
29
- } from "./chunk-NQW2E44U.js";
30
- import {
31
- NetworkRefused,
32
- ProviderError
33
- } from "./chunk-F2G534HD.js";
31
+ } from "./chunk-6XQLA5NC.js";
34
32
  import {
35
33
  jsonSchemaDecoder,
36
34
  nestJsonSchema,
@@ -4,14 +4,18 @@ import {
4
4
  import {
5
5
  joinPath,
6
6
  mergeMeta
7
- } from "./chunk-GLXEYET6.js";
7
+ } from "./chunk-YWFUWTUJ.js";
8
8
  import {
9
9
  isShortenedUpstream,
10
10
  parseProviderError,
11
11
  providerError
12
- } from "./chunk-BZFFXNWA.js";
12
+ } from "./chunk-I5C7FD5Z.js";
13
13
  import {
14
14
  ApiErrorResponse,
15
+ CacheError,
16
+ FailureCode,
17
+ FailureFieldName,
18
+ FetchOptionUnsupported,
15
19
  HostDeclarationInvalid,
16
20
  HostEvaluationFailed,
17
21
  HostedRouter,
@@ -20,20 +24,14 @@ import {
20
24
  McpCredentialsUnverified,
21
25
  McpError,
22
26
  McpError2,
23
- SkillLoadFailed as SkillLoadFailed2
24
- } from "./chunk-NQW2E44U.js";
25
- import {
26
- CacheError,
27
- FailureCode,
28
- FailureFieldName,
29
- FetchOptionUnsupported,
30
27
  NetworkRefused,
28
+ SkillLoadFailed as SkillLoadFailed2,
31
29
  cacheLimits,
32
30
  maxFailureFieldLength,
33
31
  maxFailureFields,
34
32
  maxFailureMessageLength,
35
33
  maxUpstreamMessageLength
36
- } from "./chunk-F2G534HD.js";
34
+ } from "./chunk-6XQLA5NC.js";
37
35
  import {
38
36
  SkillLoadFailed,
39
37
  skillFormatLimits
@@ -348,9 +346,12 @@ var secretValues = (value, found) => {
348
346
  var accountFieldSecrets = (accounts) => {
349
347
  const found = /* @__PURE__ */ new Set();
350
348
  if (Predicate_exports.isObject(accounts)) {
351
- for (const slot of Object.values(accounts))
352
- for (const account of Array.isArray(slot) ? slot : [slot])
353
- if (Predicate_exports.hasProperty(account, "fields")) secretValues(account.fields, found);
349
+ for (const scope of [accounts["app"], accounts["user"]])
350
+ if (Predicate_exports.isObject(scope)) {
351
+ for (const slot of Object.values(scope))
352
+ for (const account of Array.isArray(slot) ? slot : [slot])
353
+ if (Predicate_exports.hasProperty(account, "fields")) secretValues(account.fields, found);
354
+ }
354
355
  }
355
356
  return [...found].sort((a, b) => b.length - a.length);
356
357
  };