apps 0.0.1-beta.124 → 0.0.1-beta.125

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 (37) hide show
  1. package/framework-reference.json +1 -1
  2. package/js/{chunk-RR44Z4RU.js → chunk-2AI3RZXP.js} +5 -5
  3. package/js/{chunk-5IWCEMLY.js → chunk-55QLA7T7.js} +4 -4
  4. package/js/{chunk-DA6RXOMJ.js → chunk-5LGG5YSE.js} +10 -3
  5. package/js/{chunk-AUZGGAPP.js → chunk-7ASLJHSD.js} +4 -4
  6. package/js/{chunk-KY4KYPUZ.js → chunk-7TDDMSZI.js} +4 -4
  7. package/js/{chunk-573E3S2U.js → chunk-7ZYZWLXS.js} +80 -0
  8. package/js/{chunk-C23S3WPT.js → chunk-GWAA3COO.js} +1 -1
  9. package/js/{chunk-3OADIFKV.js → chunk-LOHZM4RK.js} +3 -3
  10. package/js/{chunk-OLUDW4HL.js → chunk-MVAS3VFK.js} +4 -4
  11. package/js/{chunk-UPICNVJO.js → chunk-TTMRK64V.js} +2 -2
  12. package/js/{chunk-CL3K7BJD.js → chunk-V3HWVVFZ.js} +1 -1
  13. package/js/{chunk-GU25DFBC.js → chunk-VEQDEM6J.js} +37 -14
  14. package/js/client.js +1 -1
  15. package/js/contracts.js +7 -1
  16. package/js/effect.js +9 -9
  17. package/js/graphql.js +11 -11
  18. package/js/host.js +9 -9
  19. package/js/index.js +12 -9
  20. package/js/mcp/effect.js +10 -10
  21. package/js/mcp.js +12 -12
  22. package/js/openapi.js +7 -7
  23. package/js/skills.js +6 -6
  24. package/package.json +1 -1
  25. package/runtime.json +1 -1
  26. package/types/apps/src/contracts/help-text.d.ts +31 -0
  27. package/types/apps/src/contracts/host.d.ts +36 -0
  28. package/types/apps/src/contracts/protocols/current.d.ts +244 -0
  29. package/types/apps/src/contracts/provider.d.ts +4 -0
  30. package/types/apps/src/implementation/elicitation.d.ts +4 -4
  31. package/types/apps/src/implementation/help-text.d.ts +5 -0
  32. package/types/apps/src/implementation/mcp-client.d.ts +2 -2
  33. package/types/apps/src/implementation/mcp.d.ts +2 -2
  34. package/types/apps/src/implementation/provider.d.ts +2 -1
  35. package/types/apps/src/implementation/router-catalog.d.ts +4 -4
  36. package/types/apps/src/implementation/schema.d.ts +17 -6
  37. package/types/apps/src/index.d.ts +20 -5
package/js/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  query,
12
12
  t,
13
13
  workflow
14
- } from "./chunk-AUZGGAPP.js";
14
+ } from "./chunk-7ASLJHSD.js";
15
15
  import {
16
16
  accountRouter,
17
17
  dynamicRouter,
@@ -23,10 +23,10 @@ import {
23
23
  toolAnnotations,
24
24
  withApproval,
25
25
  withApprovals
26
- } from "./chunk-3OADIFKV.js";
26
+ } from "./chunk-LOHZM4RK.js";
27
27
  import {
28
28
  fromPromise
29
- } from "./chunk-C23S3WPT.js";
29
+ } from "./chunk-GWAA3COO.js";
30
30
  import {
31
31
  CacheError,
32
32
  CalendarSchedule,
@@ -43,7 +43,7 @@ import {
43
43
  ScheduleTiming,
44
44
  SecretsMethod,
45
45
  WorkflowFailure
46
- } from "./chunk-573E3S2U.js";
46
+ } from "./chunk-7ZYZWLXS.js";
47
47
  import "./chunk-EPZ3P7IX.js";
48
48
  import {
49
49
  array,
@@ -63,7 +63,7 @@ import {
63
63
  record,
64
64
  string,
65
65
  wrap
66
- } from "./chunk-DA6RXOMJ.js";
66
+ } from "./chunk-5LGG5YSE.js";
67
67
  import "./chunk-2EEUUSL7.js";
68
68
  import "./chunk-EAPSQBFN.js";
69
69
  import "./chunk-CCJUTN55.js";
@@ -98,13 +98,14 @@ var oauth2Form = (config) => {
98
98
  if (clientCredentials(config)) return discovers ? discoveredMachine : declaredMachine;
99
99
  return discovers ? discovered : declared;
100
100
  };
101
- var oauth2 = (config, response, exposure, request) => parseDeclaration(OAuth2Config, config, "oauth2()", oauth2Form).pipe(
101
+ var oauth2 = (config, response, exposure, request, clientGuide) => parseDeclaration(OAuth2Config, config, "oauth2()", oauth2Form).pipe(
102
102
  Effect_exports.map(
103
103
  (config2) => new OAuth2Method({
104
104
  config: config2,
105
105
  response,
106
106
  ...exposure === void 0 ? {} : { exposure },
107
- ...request === void 0 ? {} : { request }
107
+ ...request === void 0 ? {} : { request },
108
+ ...clientGuide === void 0 ? {} : { clientGuide }
108
109
  })
109
110
  )
110
111
  );
@@ -182,6 +183,7 @@ var placementsOf = (method, schema, request) => request === void 0 ? {} : {
182
183
  var OAuth2AccessToken2 = wrap(OAuth2AccessToken, false);
183
184
  var secrets2 = (options) => secrets({
184
185
  label: options.label,
186
+ ...options.guide === void 0 ? {} : { guide: options.guide },
185
187
  fields: accountDecoder(options.fields),
186
188
  ...exposureOf(options.fields),
187
189
  // SAFETY: the callback receives references named by the schema's own keys.
@@ -192,14 +194,15 @@ var secrets2 = (options) => secrets({
192
194
  )
193
195
  });
194
196
  function oauth22(options) {
195
- const { response = OAuth2AccessToken2, request, ...config } = options;
197
+ const { response = OAuth2AccessToken2, request, clientGuide, ...config } = options;
196
198
  return Effect_exports.runSync(
197
199
  oauth2(
198
200
  config,
199
201
  accountDecoder(response),
200
202
  exposureOf(response).exposure,
201
203
  // SAFETY: the callback receives references named by the response projection's own keys.
202
- placementsOf("OAuth", response, request).request
204
+ placementsOf("OAuth", response, request).request,
205
+ clientGuide
203
206
  )
204
207
  );
205
208
  }
package/js/mcp/effect.js CHANGED
@@ -2,19 +2,19 @@ import {
2
2
  mcpClientEffect,
3
3
  mcpHealthEffect,
4
4
  mcpToolsEffect
5
- } from "../chunk-RR44Z4RU.js";
5
+ } from "../chunk-2AI3RZXP.js";
6
6
  import "../chunk-BCSNKUAC.js";
7
- import "../chunk-GU25DFBC.js";
8
- import "../chunk-KY4KYPUZ.js";
9
- import "../chunk-OLUDW4HL.js";
10
- import "../chunk-CL3K7BJD.js";
7
+ import "../chunk-VEQDEM6J.js";
8
+ import "../chunk-7TDDMSZI.js";
9
+ import "../chunk-MVAS3VFK.js";
10
+ import "../chunk-V3HWVVFZ.js";
11
11
  import "../chunk-SO33LZ7J.js";
12
- import "../chunk-AUZGGAPP.js";
13
- import "../chunk-3OADIFKV.js";
14
- import "../chunk-C23S3WPT.js";
15
- import "../chunk-573E3S2U.js";
12
+ import "../chunk-7ASLJHSD.js";
13
+ import "../chunk-LOHZM4RK.js";
14
+ import "../chunk-GWAA3COO.js";
15
+ import "../chunk-7ZYZWLXS.js";
16
16
  import "../chunk-EPZ3P7IX.js";
17
- import "../chunk-DA6RXOMJ.js";
17
+ import "../chunk-5LGG5YSE.js";
18
18
  import "../chunk-2EEUUSL7.js";
19
19
  import "../chunk-EAPSQBFN.js";
20
20
  import "../chunk-CCJUTN55.js";
package/js/mcp.js CHANGED
@@ -1,43 +1,43 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-5IWCEMLY.js";
4
+ } from "./chunk-55QLA7T7.js";
5
5
  import {
6
6
  protocolOperations
7
- } from "./chunk-UPICNVJO.js";
7
+ } from "./chunk-TTMRK64V.js";
8
8
  import {
9
9
  adaptMcpTool,
10
10
  mcpClientEffect,
11
11
  mcpHealthEffect
12
- } from "./chunk-RR44Z4RU.js";
12
+ } from "./chunk-2AI3RZXP.js";
13
13
  import "./chunk-BCSNKUAC.js";
14
- import "./chunk-GU25DFBC.js";
14
+ import "./chunk-VEQDEM6J.js";
15
15
  import {
16
16
  cacheKey
17
- } from "./chunk-KY4KYPUZ.js";
17
+ } from "./chunk-7TDDMSZI.js";
18
18
  import {
19
19
  operationDescription
20
- } from "./chunk-OLUDW4HL.js";
21
- import "./chunk-CL3K7BJD.js";
20
+ } from "./chunk-MVAS3VFK.js";
21
+ import "./chunk-V3HWVVFZ.js";
22
22
  import "./chunk-SO33LZ7J.js";
23
- import "./chunk-AUZGGAPP.js";
23
+ import "./chunk-7ASLJHSD.js";
24
24
  import {
25
25
  nativeOperation,
26
26
  routerDeclaration
27
- } from "./chunk-3OADIFKV.js";
27
+ } from "./chunk-LOHZM4RK.js";
28
28
  import {
29
29
  fromPromise,
30
30
  method
31
- } from "./chunk-C23S3WPT.js";
31
+ } from "./chunk-GWAA3COO.js";
32
32
  import {
33
33
  McpCredentialsUnverified,
34
34
  McpError,
35
35
  McpServerHeader,
36
36
  McpToolMetadata,
37
37
  McpToolsOptions
38
- } from "./chunk-573E3S2U.js";
38
+ } from "./chunk-7ZYZWLXS.js";
39
39
  import "./chunk-EPZ3P7IX.js";
40
- import "./chunk-DA6RXOMJ.js";
40
+ import "./chunk-5LGG5YSE.js";
41
41
  import "./chunk-2EEUUSL7.js";
42
42
  import "./chunk-EAPSQBFN.js";
43
43
  import "./chunk-CCJUTN55.js";
package/js/openapi.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  protocolOperations,
10
10
  protocolRouter
11
- } from "./chunk-UPICNVJO.js";
11
+ } from "./chunk-TTMRK64V.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-OLUDW4HL.js";
32
+ } from "./chunk-MVAS3VFK.js";
33
33
  import {
34
34
  failOnNetworkRefusal
35
- } from "./chunk-CL3K7BJD.js";
35
+ } from "./chunk-V3HWVVFZ.js";
36
36
  import "./chunk-SO33LZ7J.js";
37
37
  import {
38
38
  nativeOperation,
39
39
  routerDeclaration
40
- } from "./chunk-3OADIFKV.js";
40
+ } from "./chunk-LOHZM4RK.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-C23S3WPT.js";
50
+ } from "./chunk-GWAA3COO.js";
51
51
  import {
52
52
  ApiErrorRecovery,
53
53
  ApiErrorResponse,
@@ -58,14 +58,14 @@ import {
58
58
  RouterMeta,
59
59
  cacheLimits,
60
60
  defaultOpenapiErrorLimits
61
- } from "./chunk-573E3S2U.js";
61
+ } from "./chunk-7ZYZWLXS.js";
62
62
  import "./chunk-EPZ3P7IX.js";
63
63
  import {
64
64
  jsonSchema,
65
65
  lazyJsonSchemaDecoder,
66
66
  once,
67
67
  wrap
68
- } from "./chunk-DA6RXOMJ.js";
68
+ } from "./chunk-5LGG5YSE.js";
69
69
  import {
70
70
  owned
71
71
  } from "./chunk-2EEUUSL7.js";
package/js/skills.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-5IWCEMLY.js";
5
- import "./chunk-KY4KYPUZ.js";
4
+ } from "./chunk-55QLA7T7.js";
5
+ import "./chunk-7TDDMSZI.js";
6
6
  import {
7
7
  failOnNetworkRefusal
8
- } from "./chunk-CL3K7BJD.js";
8
+ } from "./chunk-V3HWVVFZ.js";
9
9
  import {
10
10
  folderSkillsEffect,
11
11
  skillFromFiles
@@ -16,12 +16,12 @@ import {
16
16
  httpProviderError,
17
17
  method,
18
18
  toPromise
19
- } from "./chunk-C23S3WPT.js";
19
+ } from "./chunk-GWAA3COO.js";
20
20
  import {
21
21
  NetworkRefused,
22
22
  ProviderError,
23
23
  networkRefusalStatus
24
- } from "./chunk-573E3S2U.js";
24
+ } from "./chunk-7ZYZWLXS.js";
25
25
  import {
26
26
  AppSkillMetadata,
27
27
  AppSkillSource,
@@ -34,7 +34,7 @@ import {
34
34
  } from "./chunk-EPZ3P7IX.js";
35
35
  import {
36
36
  wrap
37
- } from "./chunk-DA6RXOMJ.js";
37
+ } from "./chunk-5LGG5YSE.js";
38
38
  import "./chunk-2EEUUSL7.js";
39
39
  import {
40
40
  FetchHttpClient_exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps",
3
- "version": "0.0.1-beta.124",
3
+ "version": "0.0.1-beta.125",
4
4
  "description": "TypeScript apps with typed tools, accounts, storage, and UI.",
5
5
  "type": "module",
6
6
  "sideEffects": false,