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,3 +1,6 @@
1
+ import {
2
+ appMenuBarRoute
3
+ } from "./chunk-ZWFMEH2Y.js";
1
4
  import {
2
5
  Schema_exports
3
6
  } from "./chunk-NXEGROI6.js";
@@ -16,7 +19,7 @@ var AppReturnPath = Schema_exports.String.check(
16
19
  return false;
17
20
  try {
18
21
  const url = new URL(value, "https://app.invalid");
19
- return url.origin === "https://app.invalid" && !/^\/(?:_executor|dashboard|auth|v1|mcp)(?:\/|$)/.test(decodeURIComponent(url.pathname));
22
+ return url.origin === "https://app.invalid" && (url.pathname === appMenuBarRoute || !/^\/(?:_executor|dashboard|auth|v1|mcp)(?:\/|$)/.test(decodeURIComponent(url.pathname)));
20
23
  } catch {
21
24
  return false;
22
25
  }
@@ -5,7 +5,7 @@ import {
5
5
  SkillDefinitionInvalid,
6
6
  SkillFile,
7
7
  SkillFilePath
8
- } from "./chunk-2XEQYDQY.js";
8
+ } from "./chunk-A6FRLRCN.js";
9
9
  import {
10
10
  Effect_exports,
11
11
  Schema_exports
@@ -7,7 +7,7 @@ import {
7
7
  HttpApiGroup_exports,
8
8
  HttpApiSchema_exports,
9
9
  HttpApi_exports
10
- } from "./chunk-QLUWYCOT.js";
10
+ } from "./chunk-4XXHO5UG.js";
11
11
  import {
12
12
  Schema_exports
13
13
  } from "./chunk-NXEGROI6.js";
@@ -20,6 +20,16 @@ var UiContextFields = Schema_exports.Struct({
20
20
  )
21
21
  });
22
22
  var UiContext = UiContextFields.pipe(withLegacyKeys({ version: "deployment" }));
23
+ var appUiDocuments = {
24
+ main: { source: "ui/index.html", asset: "index.html" },
25
+ menuBar: { source: "ui/menubar.html", asset: "_executor/menubar.html" }
26
+ };
27
+ var appUiIcon = { source: "ui/icon.svg", asset: "_executor/icon.svg" };
28
+ var appUiPagesAsset = "_executor/pages.json";
29
+ var AppUiPagesManifest = Schema_exports.Struct({ menuBar: Schema_exports.Boolean, icon: Schema_exports.Boolean });
30
+ var appMenuBarRoute = "/_executor/menubar";
31
+ var appIconRoute = "/_executor/icon.svg";
32
+ var appUiIconMaxBytes = 64 * 1024;
23
33
  var UiOperation = Schema_exports.Struct({
24
34
  ...UiContextFields.fields,
25
35
  name: Schema_exports.NonEmptyString,
@@ -85,6 +95,13 @@ var AppUiApi = HttpApi_exports.make("app-ui").add(
85
95
 
86
96
  export {
87
97
  UiContext,
98
+ appUiDocuments,
99
+ appUiIcon,
100
+ appUiPagesAsset,
101
+ AppUiPagesManifest,
102
+ appMenuBarRoute,
103
+ appIconRoute,
104
+ appUiIconMaxBytes,
88
105
  UiOperation,
89
106
  UiUnauthorized,
90
107
  UiForbidden,
package/js/client.js CHANGED
@@ -3,16 +3,29 @@ import {
3
3
  UiContext,
4
4
  UiFailed,
5
5
  UiVersionChanged
6
- } from "./chunk-TMYRAFMC.js";
6
+ } from "./chunk-ZWFMEH2Y.js";
7
7
  import {
8
8
  AsyncResult_exports,
9
9
  AtomRegistry_exports,
10
10
  Atom_exports,
11
+ DesktopInvalidInput,
12
+ DesktopPermissionDenied,
13
+ DesktopUnavailable,
14
+ ShortcutTaken,
15
+ SystemAudioBlocked,
16
+ desktop,
11
17
  queryResult
12
- } from "./chunk-W6V5OIHB.js";
18
+ } from "./chunk-SEJXUMGT.js";
19
+ import {
20
+ desktopBadgeMaximum,
21
+ desktopMaximumWindows,
22
+ desktopMenuBarTitleMaxLength,
23
+ desktopPermissions,
24
+ desktopWindowSize
25
+ } from "./chunk-HEFJFDU4.js";
13
26
  import {
14
27
  decoderOf
15
- } from "./chunk-ADG72XX3.js";
28
+ } from "./chunk-JLHRRTRH.js";
16
29
  import {
17
30
  OtlpExporter_exports,
18
31
  TraceContext,
@@ -20,20 +33,18 @@ import {
20
33
  pendingSpan,
21
34
  telemetryLayer,
22
35
  traceLinks
23
- } from "./chunk-H4JK7UTH.js";
36
+ } from "./chunk-CQCY3OZS.js";
24
37
  import {
25
38
  FetchHttpClient_exports
26
- } from "./chunk-2OGVSUNI.js";
39
+ } from "./chunk-GWFQCQB5.js";
27
40
  import "./chunk-6XBOKQ4E.js";
28
41
  import {
29
42
  JsonValue
30
43
  } from "./chunk-7A4ZSEM3.js";
31
44
  import {
32
- HttpApiClient_exports
33
- } from "./chunk-QLUWYCOT.js";
34
- import {
45
+ HttpApiClient_exports,
35
46
  HttpClientError_exports
36
- } from "./chunk-IWLFLMIL.js";
47
+ } from "./chunk-4XXHO5UG.js";
37
48
  import {
38
49
  Cause_exports,
39
50
  Clock_exports,
@@ -687,7 +698,6 @@ var browserTelemetryLayer = (settings) => Layer_exports.unwrap(
687
698
  navigation = current;
688
699
  run(
689
700
  Deferred_exports.await(current.done).pipe(
690
- // Record visibility however the navigation ends, including when a later one interrupts it.
691
701
  Effect_exports.ensuring(
692
702
  Effect_exports.suspend(
693
703
  () => Effect_exports.annotateCurrentSpan("executor.navigation.hidden", current.hidden)
@@ -770,7 +780,6 @@ var makeOptimisticClient = (transport) => {
770
780
  return structuredClone(next.get(keyOf(reference.name, json(input))));
771
781
  },
772
782
  getAllQueries: (reference) => [...entries].filter(([, entry]) => entry.name === reference.name).map(([key, entry]) => ({
773
- // SAFETY: input is validated JSON; the referenced operation and each query decoder bind these types.
774
783
  input: structuredClone(entry.input),
775
784
  value: structuredClone(next.get(key))
776
785
  })),
@@ -1163,8 +1172,6 @@ var createAppClient = () => {
1163
1172
  );
1164
1173
  })
1165
1174
  ).pipe(
1166
- // Keep the last snapshot while the watcher replaces the document.
1167
- // Unmount or client disposal interrupts the version-change wait.
1168
1175
  Stream_exports.catch(
1169
1176
  (error) => Schema_exports.is(UiVersionChanged)(error) ? Stream_exports.unwrap(versionChanged.pipe(Effect_exports.as(Stream_exports.never))) : Stream_exports.fail(error)
1170
1177
  ),
@@ -1189,7 +1196,6 @@ var createAppClient = () => {
1189
1196
  )
1190
1197
  )
1191
1198
  ),
1192
- // Shown outside the retried stream, so they do not reset its delay.
1193
1199
  Stream_exports.fromQueue(retrying),
1194
1200
  { haltStrategy: "left" }
1195
1201
  );
@@ -1235,7 +1241,18 @@ var createAppClient = () => {
1235
1241
  };
1236
1242
  export {
1237
1243
  AppQueryFailed,
1244
+ DesktopInvalidInput,
1245
+ DesktopPermissionDenied,
1246
+ DesktopUnavailable,
1247
+ ShortcutTaken,
1248
+ SystemAudioBlocked,
1238
1249
  createAppClient,
1250
+ desktop,
1251
+ desktopBadgeMaximum,
1252
+ desktopMaximumWindows,
1253
+ desktopMenuBarTitleMaxLength,
1254
+ desktopPermissions,
1255
+ desktopWindowSize,
1239
1256
  liveQueryAtom,
1240
1257
  mutationReference,
1241
1258
  queryReference
package/js/contracts.js CHANGED
@@ -187,7 +187,7 @@ import {
187
187
  skillsCommand,
188
188
  withoutHelp,
189
189
  workflowDurationMillis
190
- } from "./chunk-LRXY54YF.js";
190
+ } from "./chunk-EXL6F456.js";
191
191
  import {
192
192
  AppSkillMetadata,
193
193
  AppSkillName,
@@ -199,14 +199,13 @@ import {
199
199
  SkillServiceName,
200
200
  skillFormatLimits,
201
201
  skillLoadLimits
202
- } from "./chunk-2XEQYDQY.js";
202
+ } from "./chunk-A6FRLRCN.js";
203
203
  import "./chunk-6XBOKQ4E.js";
204
204
  import {
205
205
  AccountId,
206
206
  HttpUrl
207
207
  } from "./chunk-7A4ZSEM3.js";
208
- import "./chunk-QLUWYCOT.js";
209
- import "./chunk-IWLFLMIL.js";
208
+ import "./chunk-4XXHO5UG.js";
210
209
  import "./chunk-NXEGROI6.js";
211
210
  import "./chunk-CZ7CSFO4.js";
212
211
  export {
package/js/effect.js CHANGED
@@ -3,34 +3,33 @@ import {
3
3
  ApprovalDecision,
4
4
  createAppHandler,
5
5
  prepareElicitation
6
- } from "./chunk-3RIEA22Q.js";
7
- import "./chunk-PASOVDON.js";
8
- import "./chunk-NXUNFV44.js";
9
- import "./chunk-K24M6LZ7.js";
10
- import "./chunk-XAOJP46A.js";
11
- import "./chunk-V6OUBNL4.js";
12
- import "./chunk-B54D6AN7.js";
13
- import "./chunk-RUSVGD5N.js";
6
+ } from "./chunk-PUMGAWHB.js";
7
+ import "./chunk-ALZDZ3ZT.js";
8
+ import "./chunk-63BS5GBH.js";
9
+ import "./chunk-MXFPSMNM.js";
10
+ import "./chunk-XR7KZNKD.js";
11
+ import "./chunk-CWAPV2TN.js";
12
+ import "./chunk-E2PVLAGK.js";
13
+ import "./chunk-SXYFFXHM.js";
14
14
  import {
15
15
  ToolAnnotations
16
- } from "./chunk-LRXY54YF.js";
17
- import "./chunk-2XEQYDQY.js";
16
+ } from "./chunk-EXL6F456.js";
17
+ import "./chunk-A6FRLRCN.js";
18
18
  import {
19
19
  compileJsonSchemaDecoder,
20
20
  decoderOf,
21
21
  jsonSchemaDecoder,
22
22
  wrap
23
- } from "./chunk-ADG72XX3.js";
24
- import "./chunk-H4JK7UTH.js";
25
- import "./chunk-2OGVSUNI.js";
23
+ } from "./chunk-JLHRRTRH.js";
24
+ import "./chunk-CQCY3OZS.js";
25
+ import "./chunk-GWFQCQB5.js";
26
26
  import "./chunk-6XBOKQ4E.js";
27
27
  import {
28
28
  HttpUrl,
29
29
  JsonObject,
30
30
  ValidationError
31
31
  } from "./chunk-7A4ZSEM3.js";
32
- import "./chunk-QLUWYCOT.js";
33
- import "./chunk-IWLFLMIL.js";
32
+ import "./chunk-4XXHO5UG.js";
34
33
  import "./chunk-NXEGROI6.js";
35
34
  import "./chunk-CZ7CSFO4.js";
36
35
  export {
package/js/graphql.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-Y3QPWYHC.js";
4
+ } from "./chunk-FWK2WTJB.js";
5
5
  import {
6
6
  protocolOperations
7
- } from "./chunk-XRNSAU62.js";
7
+ } from "./chunk-I7MYW7IK.js";
8
8
  import "./chunk-BCSNKUAC.js";
9
- import "./chunk-3RIEA22Q.js";
9
+ import "./chunk-PUMGAWHB.js";
10
10
  import {
11
11
  cacheKey
12
- } from "./chunk-PASOVDON.js";
12
+ } from "./chunk-ALZDZ3ZT.js";
13
13
  import {
14
14
  GraphqlError,
15
15
  GraphqlIntrospection,
@@ -20,48 +20,47 @@ import {
20
20
  maxGraphqlStatedErrors,
21
21
  maxGraphqlStatedExtensions,
22
22
  maxGraphqlStatedFieldLength
23
- } from "./chunk-NXUNFV44.js";
23
+ } from "./chunk-63BS5GBH.js";
24
24
  import {
25
25
  failOnNetworkRefusal
26
- } from "./chunk-K24M6LZ7.js";
27
- import "./chunk-XAOJP46A.js";
28
- import "./chunk-V6OUBNL4.js";
26
+ } from "./chunk-MXFPSMNM.js";
27
+ import "./chunk-XR7KZNKD.js";
28
+ import "./chunk-CWAPV2TN.js";
29
29
  import {
30
30
  nativeOperation,
31
31
  routerDeclaration
32
- } from "./chunk-B54D6AN7.js";
32
+ } from "./chunk-E2PVLAGK.js";
33
33
  import {
34
34
  accountProviderError,
35
35
  boundStated,
36
36
  graphqlProviderError,
37
37
  httpProviderError
38
- } from "./chunk-RUSVGD5N.js";
38
+ } from "./chunk-SXYFFXHM.js";
39
39
  import {
40
40
  FailureFieldName,
41
41
  NetworkRefused,
42
42
  ProviderError,
43
43
  defaultOpenapiErrorLimits,
44
44
  maxUpstreamMessageLength
45
- } from "./chunk-LRXY54YF.js";
46
- import "./chunk-2XEQYDQY.js";
45
+ } from "./chunk-EXL6F456.js";
46
+ import "./chunk-A6FRLRCN.js";
47
47
  import {
48
48
  jsonSchemaDecoder
49
- } from "./chunk-ADG72XX3.js";
49
+ } from "./chunk-JLHRRTRH.js";
50
50
  import {
51
51
  owned
52
- } from "./chunk-H4JK7UTH.js";
52
+ } from "./chunk-CQCY3OZS.js";
53
53
  import {
54
54
  FetchHttpClient_exports
55
- } from "./chunk-2OGVSUNI.js";
55
+ } from "./chunk-GWFQCQB5.js";
56
56
  import "./chunk-6XBOKQ4E.js";
57
57
  import {
58
58
  JsonObject
59
59
  } from "./chunk-7A4ZSEM3.js";
60
- import "./chunk-QLUWYCOT.js";
61
60
  import {
62
61
  HttpClientRequest_exports,
63
62
  HttpClient_exports
64
- } from "./chunk-IWLFLMIL.js";
63
+ } from "./chunk-4XXHO5UG.js";
65
64
  import {
66
65
  Effect_exports,
67
66
  Option_exports,
@@ -271,7 +270,6 @@ var graphqlClientEffect = (input) => Effect_exports.gen(function* () {
271
270
  const client = yield* HttpClient_exports.HttpClient;
272
271
  const response = yield* HttpClient_exports.withScope(client).execute(
273
272
  HttpClientRequest_exports.post(url.href).pipe(
274
- // GitHub requires this header; Workers do not supply one by default.
275
273
  HttpClientRequest_exports.setHeader("user-agent", "Executor"),
276
274
  HttpClientRequest_exports.setHeaders(Redacted_exports.value(headers)),
277
275
  HttpClientRequest_exports.bodyJsonUnsafe({ query, variables })
@@ -498,7 +496,6 @@ var graphqlCatalog = (options, kinds) => Effect_exports.gen(function* () {
498
496
  name: tool.name,
499
497
  description: tool.description,
500
498
  readOnly: kindOf(tool) === "query",
501
- // The app's `kinds`, or the GraphQL operation type Executor sends.
502
499
  kindConfirmed: true
503
500
  });
504
501
  const describe = (tool) => ({
package/js/host.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createAppHandler
3
- } from "./chunk-3RIEA22Q.js";
4
- import "./chunk-PASOVDON.js";
5
- import "./chunk-NXUNFV44.js";
6
- import "./chunk-K24M6LZ7.js";
7
- import "./chunk-XAOJP46A.js";
8
- import "./chunk-V6OUBNL4.js";
9
- import "./chunk-B54D6AN7.js";
10
- import "./chunk-RUSVGD5N.js";
3
+ } from "./chunk-PUMGAWHB.js";
4
+ import "./chunk-ALZDZ3ZT.js";
5
+ import "./chunk-63BS5GBH.js";
6
+ import "./chunk-MXFPSMNM.js";
7
+ import "./chunk-XR7KZNKD.js";
8
+ import "./chunk-CWAPV2TN.js";
9
+ import "./chunk-E2PVLAGK.js";
10
+ import "./chunk-SXYFFXHM.js";
11
11
  import {
12
12
  CacheCommand,
13
13
  CacheError,
@@ -25,18 +25,17 @@ import {
25
25
  WorkflowRun,
26
26
  WorkflowRunId,
27
27
  WorkflowRunPage
28
- } from "./chunk-LRXY54YF.js";
29
- import "./chunk-2XEQYDQY.js";
30
- import "./chunk-ADG72XX3.js";
28
+ } from "./chunk-EXL6F456.js";
29
+ import "./chunk-A6FRLRCN.js";
30
+ import "./chunk-JLHRRTRH.js";
31
31
  import {
32
32
  collectTelemetry,
33
33
  withRemoteSpan
34
- } from "./chunk-H4JK7UTH.js";
35
- import "./chunk-2OGVSUNI.js";
34
+ } from "./chunk-CQCY3OZS.js";
35
+ import "./chunk-GWFQCQB5.js";
36
36
  import "./chunk-6XBOKQ4E.js";
37
37
  import "./chunk-7A4ZSEM3.js";
38
- import "./chunk-QLUWYCOT.js";
39
- import "./chunk-IWLFLMIL.js";
38
+ import "./chunk-4XXHO5UG.js";
40
39
  import {
41
40
  Cause_exports,
42
41
  Clock_exports,
@@ -270,8 +269,6 @@ var createIsolatedAppHandler = (app) => {
270
269
  }),
271
270
  {
272
271
  signal: request.signal,
273
- // workerd delivers timers in order. A scheduler timer outside a transaction
274
- // can block timers inside its closed input gate; microtasks avoid that queue.
275
272
  scheduler: new Scheduler_exports.MixedScheduler("sync")
276
273
  }
277
274
  );
package/js/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  query,
12
12
  t,
13
13
  workflow
14
- } from "./chunk-V6OUBNL4.js";
14
+ } from "./chunk-CWAPV2TN.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-B54D6AN7.js";
26
+ } from "./chunk-E2PVLAGK.js";
27
27
  import {
28
28
  fromPromise
29
- } from "./chunk-RUSVGD5N.js";
29
+ } from "./chunk-SXYFFXHM.js";
30
30
  import {
31
31
  CacheError,
32
32
  CalendarSchedule,
@@ -43,8 +43,8 @@ import {
43
43
  ScheduleTiming,
44
44
  SecretsMethod,
45
45
  WorkflowFailure
46
- } from "./chunk-LRXY54YF.js";
47
- import "./chunk-2XEQYDQY.js";
46
+ } from "./chunk-EXL6F456.js";
47
+ import "./chunk-A6FRLRCN.js";
48
48
  import {
49
49
  array,
50
50
  boolean,
@@ -63,17 +63,16 @@ import {
63
63
  record,
64
64
  string,
65
65
  wrap
66
- } from "./chunk-ADG72XX3.js";
67
- import "./chunk-H4JK7UTH.js";
68
- import "./chunk-2OGVSUNI.js";
66
+ } from "./chunk-JLHRRTRH.js";
67
+ import "./chunk-CQCY3OZS.js";
68
+ import "./chunk-GWFQCQB5.js";
69
69
  import "./chunk-6XBOKQ4E.js";
70
70
  import {
71
71
  DeclarationInvalid,
72
72
  JsonValue,
73
73
  ValidationError
74
74
  } from "./chunk-7A4ZSEM3.js";
75
- import "./chunk-QLUWYCOT.js";
76
- import "./chunk-IWLFLMIL.js";
75
+ import "./chunk-4XXHO5UG.js";
77
76
  import {
78
77
  Effect_exports,
79
78
  Schema_exports
@@ -163,10 +162,7 @@ var appCron = (calendar, operation, input) => declaration("app", cronTiming(cale
163
162
 
164
163
  // src/index.ts
165
164
  var isFields = (value) => typeof value === "object" && value !== null && Object.values(value).every(isSchema);
166
- var accountDecoder = (schema) => (
167
- // SAFETY: the brand exists only in types; secret values are strings at runtime.
168
- decoderOf(schema)
169
- );
165
+ var accountDecoder = (schema) => decoderOf(schema);
170
166
  var exposureOf = (schema) => {
171
167
  const marked = "fields" in schema && isFields(schema.fields) ? fieldExposure(schema.fields) : {};
172
168
  return Object.keys(marked).length === 0 ? {} : { exposure: marked };
@@ -186,7 +182,6 @@ var secrets2 = (options) => secrets({
186
182
  ...options.guide === void 0 ? {} : { guide: options.guide },
187
183
  fields: accountDecoder(options.fields),
188
184
  ...exposureOf(options.fields),
189
- // SAFETY: the callback receives references named by the schema's own keys.
190
185
  ...placementsOf(
191
186
  `"${options.label}"`,
192
187
  options.fields,
@@ -200,7 +195,6 @@ function oauth22(options) {
200
195
  config,
201
196
  accountDecoder(response),
202
197
  exposureOf(response).exposure,
203
- // SAFETY: the callback receives references named by the response projection's own keys.
204
198
  placementsOf("OAuth", response, request).request,
205
199
  clientGuide
206
200
  )
package/js/mcp/effect.js CHANGED
@@ -2,25 +2,24 @@ import {
2
2
  mcpClientEffect,
3
3
  mcpHealthEffect,
4
4
  mcpToolsEffect
5
- } from "../chunk-RW5EXIO6.js";
5
+ } from "../chunk-DX5DD6Z2.js";
6
6
  import "../chunk-BCSNKUAC.js";
7
- import "../chunk-3RIEA22Q.js";
8
- import "../chunk-PASOVDON.js";
9
- import "../chunk-NXUNFV44.js";
10
- import "../chunk-K24M6LZ7.js";
11
- import "../chunk-XAOJP46A.js";
12
- import "../chunk-V6OUBNL4.js";
13
- import "../chunk-B54D6AN7.js";
14
- import "../chunk-RUSVGD5N.js";
15
- import "../chunk-LRXY54YF.js";
16
- import "../chunk-2XEQYDQY.js";
17
- import "../chunk-ADG72XX3.js";
18
- import "../chunk-H4JK7UTH.js";
19
- import "../chunk-2OGVSUNI.js";
7
+ import "../chunk-PUMGAWHB.js";
8
+ import "../chunk-ALZDZ3ZT.js";
9
+ import "../chunk-63BS5GBH.js";
10
+ import "../chunk-MXFPSMNM.js";
11
+ import "../chunk-XR7KZNKD.js";
12
+ import "../chunk-CWAPV2TN.js";
13
+ import "../chunk-E2PVLAGK.js";
14
+ import "../chunk-SXYFFXHM.js";
15
+ import "../chunk-EXL6F456.js";
16
+ import "../chunk-A6FRLRCN.js";
17
+ import "../chunk-JLHRRTRH.js";
18
+ import "../chunk-CQCY3OZS.js";
19
+ import "../chunk-GWFQCQB5.js";
20
20
  import "../chunk-6XBOKQ4E.js";
21
21
  import "../chunk-7A4ZSEM3.js";
22
- import "../chunk-QLUWYCOT.js";
23
- import "../chunk-IWLFLMIL.js";
22
+ import "../chunk-4XXHO5UG.js";
24
23
  import "../chunk-NXEGROI6.js";
25
24
  import "../chunk-CZ7CSFO4.js";
26
25
  export {
package/js/mcp.js CHANGED
@@ -1,49 +1,48 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-Y3QPWYHC.js";
4
+ } from "./chunk-FWK2WTJB.js";
5
5
  import {
6
6
  protocolOperations
7
- } from "./chunk-XRNSAU62.js";
7
+ } from "./chunk-I7MYW7IK.js";
8
8
  import {
9
9
  adaptMcpTool,
10
10
  mcpClientEffect,
11
11
  mcpHealthEffect
12
- } from "./chunk-RW5EXIO6.js";
12
+ } from "./chunk-DX5DD6Z2.js";
13
13
  import "./chunk-BCSNKUAC.js";
14
- import "./chunk-3RIEA22Q.js";
14
+ import "./chunk-PUMGAWHB.js";
15
15
  import {
16
16
  cacheKey
17
- } from "./chunk-PASOVDON.js";
17
+ } from "./chunk-ALZDZ3ZT.js";
18
18
  import {
19
19
  operationDescription
20
- } from "./chunk-NXUNFV44.js";
21
- import "./chunk-K24M6LZ7.js";
22
- import "./chunk-XAOJP46A.js";
23
- import "./chunk-V6OUBNL4.js";
20
+ } from "./chunk-63BS5GBH.js";
21
+ import "./chunk-MXFPSMNM.js";
22
+ import "./chunk-XR7KZNKD.js";
23
+ import "./chunk-CWAPV2TN.js";
24
24
  import {
25
25
  nativeOperation,
26
26
  routerDeclaration
27
- } from "./chunk-B54D6AN7.js";
27
+ } from "./chunk-E2PVLAGK.js";
28
28
  import {
29
29
  fromPromise,
30
30
  method
31
- } from "./chunk-RUSVGD5N.js";
31
+ } from "./chunk-SXYFFXHM.js";
32
32
  import {
33
33
  McpCredentialsUnverified,
34
34
  McpError,
35
35
  McpServerHeader,
36
36
  McpToolMetadata,
37
37
  McpToolsOptions
38
- } from "./chunk-LRXY54YF.js";
39
- import "./chunk-2XEQYDQY.js";
40
- import "./chunk-ADG72XX3.js";
41
- import "./chunk-H4JK7UTH.js";
42
- import "./chunk-2OGVSUNI.js";
38
+ } from "./chunk-EXL6F456.js";
39
+ import "./chunk-A6FRLRCN.js";
40
+ import "./chunk-JLHRRTRH.js";
41
+ import "./chunk-CQCY3OZS.js";
42
+ import "./chunk-GWFQCQB5.js";
43
43
  import "./chunk-6XBOKQ4E.js";
44
44
  import "./chunk-7A4ZSEM3.js";
45
- import "./chunk-QLUWYCOT.js";
46
- import "./chunk-IWLFLMIL.js";
45
+ import "./chunk-4XXHO5UG.js";
47
46
  import {
48
47
  Effect_exports,
49
48
  Schema_exports