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
package/js/contracts.js CHANGED
@@ -11,6 +11,8 @@ import {
11
11
  CredentialHost,
12
12
  DatabaseFieldReserved,
13
13
  DatabaseLimitExceeded,
14
+ DeclaredAccountSlot,
15
+ DeclaredAccountSlots,
14
16
  DeclaredAuthMethod,
15
17
  DeclaredEvent,
16
18
  DeclaredEvents,
@@ -25,9 +27,20 @@ import {
25
27
  EventFilterValue,
26
28
  EventLimits,
27
29
  EventName,
30
+ FailureCode,
31
+ FailureDetail,
32
+ FailureFieldName,
33
+ FailureFieldValue,
34
+ FailureFields,
35
+ FailureMessage,
36
+ FailureName,
37
+ FailurePhase,
38
+ FailureSource,
39
+ FetchOptionUnsupported,
28
40
  FormElicitation,
29
41
  HostAccount,
30
42
  HostAccountCheckError,
43
+ HostAccountSlots,
31
44
  HostAccounts,
32
45
  HostAccountsInvalid,
33
46
  HostCallError,
@@ -69,6 +82,8 @@ import {
69
82
  McpError2 as McpError,
70
83
  MigrateCommand,
71
84
  MigrateResult,
85
+ NetworkRefusal,
86
+ NetworkRefused,
72
87
  NonRetryableError,
73
88
  OAuthAuthorizationParams,
74
89
  OAuthClientAuth,
@@ -85,7 +100,9 @@ import {
85
100
  PlacementPart,
86
101
  PlacementText,
87
102
  Placements,
103
+ ProviderError,
88
104
  ResolvedAccount,
105
+ ResolvedAccountSlots,
89
106
  ResolvedAccounts,
90
107
  RouterIcon,
91
108
  RouterKey,
@@ -96,6 +113,7 @@ import {
96
113
  SkillSources,
97
114
  ToolResultObservation,
98
115
  TrustedToolApproval,
116
+ UpstreamError,
99
117
  WebhookCommand,
100
118
  WebhookRequestData,
101
119
  WebhookResponseData,
@@ -129,13 +147,22 @@ import {
129
147
  isPlacementField,
130
148
  maxApiErrorInstructionsLength,
131
149
  maxApiErrorMessageLength,
150
+ maxFailureFieldLength,
151
+ maxFailureFields,
152
+ maxFailureMessageLength,
132
153
  maxInputProblems,
154
+ maxUpstreamMessageLength,
133
155
  minimumIntervalMilliseconds,
156
+ networkRefusalHeader,
157
+ networkRefusalResponse,
158
+ networkRefusalStatus,
134
159
  normalizePlacements,
135
160
  placementFields,
136
161
  placementKey,
137
162
  protocol1,
138
163
  protocol10,
164
+ protocol11,
165
+ protocol12,
139
166
  protocol2,
140
167
  protocol3,
141
168
  protocol4,
@@ -146,34 +173,12 @@ import {
146
173
  protocol9,
147
174
  renderPlacement,
148
175
  reservedAuthorizationParams,
176
+ scopedSlots,
149
177
  selectTools,
150
178
  skillCatalog,
151
179
  skillsCommand,
152
180
  workflowDurationMillis
153
- } from "./chunk-NQW2E44U.js";
154
- import {
155
- FailureCode,
156
- FailureDetail,
157
- FailureFieldName,
158
- FailureFieldValue,
159
- FailureFields,
160
- FailureMessage,
161
- FailureName,
162
- FailurePhase,
163
- FailureSource,
164
- FetchOptionUnsupported,
165
- NetworkRefusal,
166
- NetworkRefused,
167
- ProviderError,
168
- UpstreamError,
169
- maxFailureFieldLength,
170
- maxFailureFields,
171
- maxFailureMessageLength,
172
- maxUpstreamMessageLength,
173
- networkRefusalHeader,
174
- networkRefusalResponse,
175
- networkRefusalStatus
176
- } from "./chunk-F2G534HD.js";
181
+ } from "./chunk-6XQLA5NC.js";
177
182
  import {
178
183
  AppSkillMetadata,
179
184
  AppSkillName,
@@ -213,6 +218,8 @@ export {
213
218
  CredentialHost,
214
219
  DatabaseFieldReserved,
215
220
  DatabaseLimitExceeded,
221
+ DeclaredAccountSlot,
222
+ DeclaredAccountSlots,
216
223
  DeclaredAuthMethod,
217
224
  DeclaredEvent,
218
225
  DeclaredEvents,
@@ -240,6 +247,7 @@ export {
240
247
  FormElicitation,
241
248
  HostAccount,
242
249
  HostAccountCheckError,
250
+ HostAccountSlots,
243
251
  HostAccounts,
244
252
  HostAccountsInvalid,
245
253
  HostCallError,
@@ -302,6 +310,7 @@ export {
302
310
  Placements,
303
311
  ProviderError,
304
312
  ResolvedAccount,
313
+ ResolvedAccountSlots,
305
314
  ResolvedAccounts,
306
315
  RouterIcon,
307
316
  RouterKey,
@@ -363,7 +372,9 @@ export {
363
372
  placementKey,
364
373
  protocol1,
365
374
  protocol10,
366
- current as protocol11,
375
+ protocol11,
376
+ protocol12,
377
+ current as protocol13,
367
378
  protocol2,
368
379
  protocol3,
369
380
  protocol4,
@@ -374,6 +385,7 @@ export {
374
385
  protocol9,
375
386
  renderPlacement,
376
387
  reservedAuthorizationParams,
388
+ scopedSlots,
377
389
  selectTools,
378
390
  skillCatalog,
379
391
  skillFormatLimits,
package/js/effect.js CHANGED
@@ -3,18 +3,17 @@ import {
3
3
  ApprovalDecision,
4
4
  createAppHandler,
5
5
  prepareElicitation
6
- } from "./chunk-ELSILABS.js";
7
- import "./chunk-6FUJH3T4.js";
8
- import "./chunk-I46RIOKQ.js";
9
- import "./chunk-5ZVAYXLT.js";
6
+ } from "./chunk-WMD4NHXZ.js";
7
+ import "./chunk-7PHHWYV4.js";
8
+ import "./chunk-5MDA7MKL.js";
9
+ import "./chunk-YRGL4QEF.js";
10
10
  import "./chunk-XBG7HHXC.js";
11
- import "./chunk-7Z3NUCTP.js";
12
- import "./chunk-GLXEYET6.js";
13
- import "./chunk-BZFFXNWA.js";
11
+ import "./chunk-DADXWWRZ.js";
12
+ import "./chunk-YWFUWTUJ.js";
13
+ import "./chunk-I5C7FD5Z.js";
14
14
  import {
15
15
  ToolAnnotations
16
- } from "./chunk-NQW2E44U.js";
17
- import "./chunk-F2G534HD.js";
16
+ } from "./chunk-6XQLA5NC.js";
18
17
  import "./chunk-H72MEDMN.js";
19
18
  import {
20
19
  compileJsonSchemaDecoder,
package/js/graphql.js CHANGED
@@ -1,35 +1,34 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-EKZLPXHK.js";
4
+ } from "./chunk-KUCCHNVY.js";
5
5
  import {
6
6
  protocolOperations
7
- } from "./chunk-ZK7JDZJS.js";
7
+ } from "./chunk-PYQLOLOC.js";
8
8
  import "./chunk-BCSNKUAC.js";
9
- import "./chunk-ELSILABS.js";
9
+ import "./chunk-WMD4NHXZ.js";
10
10
  import {
11
11
  cacheKey
12
- } from "./chunk-6FUJH3T4.js";
13
- import "./chunk-I46RIOKQ.js";
12
+ } from "./chunk-7PHHWYV4.js";
13
+ import "./chunk-5MDA7MKL.js";
14
14
  import {
15
15
  failOnNetworkRefusal
16
- } from "./chunk-5ZVAYXLT.js";
16
+ } from "./chunk-YRGL4QEF.js";
17
17
  import "./chunk-XBG7HHXC.js";
18
- import "./chunk-7Z3NUCTP.js";
18
+ import "./chunk-DADXWWRZ.js";
19
19
  import {
20
20
  nativeOperation,
21
21
  routerDeclaration
22
- } from "./chunk-GLXEYET6.js";
22
+ } from "./chunk-YWFUWTUJ.js";
23
23
  import {
24
24
  accountProviderError,
25
25
  graphqlProviderError,
26
26
  httpProviderError
27
- } from "./chunk-BZFFXNWA.js";
28
- import "./chunk-NQW2E44U.js";
27
+ } from "./chunk-I5C7FD5Z.js";
29
28
  import {
30
29
  NetworkRefused,
31
30
  ProviderError
32
- } from "./chunk-F2G534HD.js";
31
+ } from "./chunk-6XQLA5NC.js";
33
32
  import "./chunk-H72MEDMN.js";
34
33
  import {
35
34
  jsonSchemaDecoder
package/js/host.js CHANGED
@@ -1,14 +1,17 @@
1
1
  import {
2
2
  createAppHandler
3
- } from "./chunk-ELSILABS.js";
4
- import "./chunk-6FUJH3T4.js";
5
- import "./chunk-I46RIOKQ.js";
6
- import "./chunk-5ZVAYXLT.js";
3
+ } from "./chunk-WMD4NHXZ.js";
4
+ import "./chunk-7PHHWYV4.js";
5
+ import "./chunk-5MDA7MKL.js";
6
+ import "./chunk-YRGL4QEF.js";
7
7
  import "./chunk-XBG7HHXC.js";
8
- import "./chunk-7Z3NUCTP.js";
9
- import "./chunk-GLXEYET6.js";
10
- import "./chunk-BZFFXNWA.js";
8
+ import "./chunk-DADXWWRZ.js";
9
+ import "./chunk-YWFUWTUJ.js";
10
+ import "./chunk-I5C7FD5Z.js";
11
11
  import {
12
+ CacheCommand,
13
+ CacheError,
14
+ CacheReply,
12
15
  ElicitationFailed,
13
16
  ElicitationReply,
14
17
  HostAccountsInvalid,
@@ -22,12 +25,7 @@ import {
22
25
  WorkflowRun,
23
26
  WorkflowRunId,
24
27
  WorkflowRunPage
25
- } from "./chunk-NQW2E44U.js";
26
- import {
27
- CacheCommand,
28
- CacheError,
29
- CacheReply
30
- } from "./chunk-F2G534HD.js";
28
+ } from "./chunk-6XQLA5NC.js";
31
29
  import "./chunk-H72MEDMN.js";
32
30
  import "./chunk-GQ33QSNB.js";
33
31
  import {
package/js/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  query,
12
12
  t,
13
13
  workflow
14
- } from "./chunk-7Z3NUCTP.js";
14
+ } from "./chunk-DADXWWRZ.js";
15
15
  import {
16
16
  dynamicRouter,
17
17
  mutation,
@@ -25,32 +25,30 @@ import {
25
25
  toolAnnotations,
26
26
  withApproval,
27
27
  withApprovals
28
- } from "./chunk-GLXEYET6.js";
28
+ } from "./chunk-YWFUWTUJ.js";
29
29
  import {
30
30
  accountProviderError,
31
31
  fromPromise
32
- } from "./chunk-BZFFXNWA.js";
32
+ } from "./chunk-I5C7FD5Z.js";
33
33
  import {
34
+ CacheError,
34
35
  CalendarSchedule,
35
36
  ElicitationFailed,
37
+ FetchOptionUnsupported,
36
38
  HostedTool,
37
39
  HostedToolSummary,
38
40
  Interval,
41
+ NetworkRefused,
39
42
  NonRetryableError,
40
43
  OAuth2AccessToken,
41
44
  OAuth2Config,
42
45
  OAuth2Method,
43
46
  Provider,
47
+ ProviderError,
44
48
  ScheduleTiming,
45
49
  SecretsMethod,
46
50
  WorkflowFailure
47
- } from "./chunk-NQW2E44U.js";
48
- import {
49
- CacheError,
50
- FetchOptionUnsupported,
51
- NetworkRefused,
52
- ProviderError
53
- } from "./chunk-F2G534HD.js";
51
+ } from "./chunk-6XQLA5NC.js";
54
52
  import "./chunk-H72MEDMN.js";
55
53
  import {
56
54
  array,
@@ -381,33 +379,31 @@ var NotImplemented = class extends Schema_exports.TaggedError()("NotImplemented"
381
379
  };
382
380
 
383
381
  // src/implementation/schedules.ts
384
- var declaration = (timing, operation, input) => {
382
+ var declaration = (scope, timing, operation, input) => {
385
383
  const native = nativeOperation(operation);
386
384
  if (native === void 0 || native.kind !== "mutation")
387
385
  throw new Error("A schedule must reference a mutation");
386
+ if (scope === "app" && native.approval !== void 0)
387
+ throw new Error("An app schedule must reference a mutation without an approval");
388
388
  Schema_exports.decodeUnknownSync(native.input)(input);
389
- return { operation, timing, input: Schema_exports.decodeUnknownSync(JsonValue)(input) };
389
+ return { scope, operation, timing, input: Schema_exports.decodeUnknownSync(JsonValue)(input) };
390
390
  };
391
- var interval = (duration, operation, input) => {
391
+ var intervalTiming = (duration) => {
392
392
  const value = Schema_exports.decodeUnknownSync(Interval)(duration);
393
393
  const milliseconds = value.seconds !== void 0 ? value.seconds * 1e3 : value.minutes !== void 0 ? value.minutes * 6e4 : value.hours * 36e5;
394
- return declaration(
395
- Schema_exports.decodeUnknownSync(ScheduleTiming)({ kind: "interval", milliseconds }),
396
- operation,
397
- input
398
- );
394
+ return Schema_exports.decodeUnknownSync(ScheduleTiming)({ kind: "interval", milliseconds });
399
395
  };
400
- var cron = (calendar, operation, input) => declaration(
401
- {
402
- kind: "cron",
403
- calendar: Schema_exports.decodeUnknownSync(CalendarSchedule)({
404
- ...calendar,
405
- timezone: calendar.timezone ?? "UTC"
406
- })
407
- },
408
- operation,
409
- input
410
- );
396
+ var cronTiming = (calendar) => ({
397
+ kind: "cron",
398
+ calendar: Schema_exports.decodeUnknownSync(CalendarSchedule)({
399
+ ...calendar,
400
+ timezone: calendar.timezone ?? "UTC"
401
+ })
402
+ });
403
+ var userInterval = (duration, operation, input) => declaration("user", intervalTiming(duration), operation, input);
404
+ var userCron = (calendar, operation, input) => declaration("user", cronTiming(calendar), operation, input);
405
+ var appInterval = (duration, operation, input) => declaration("app", intervalTiming(duration), operation, input);
406
+ var appCron = (calendar, operation, input) => declaration("app", cronTiming(calendar), operation, input);
411
407
 
412
408
  // src/index.ts
413
409
  var isFields = (value) => typeof value === "object" && value !== null && Object.values(value).every(isSchema);
@@ -488,12 +484,13 @@ export {
488
484
  ValidationError,
489
485
  WorkflowFailure,
490
486
  accountRouter,
487
+ appCron,
488
+ appInterval,
491
489
  array,
492
490
  base64,
493
491
  basic,
494
492
  bearer,
495
493
  boolean,
496
- cron,
497
494
  decodeJson2 as decodeJson,
498
495
  defineApp,
499
496
  defineProvider,
@@ -501,7 +498,6 @@ export {
501
498
  dynamicSkills,
502
499
  event,
503
500
  header,
504
- interval,
505
501
  json,
506
502
  jsonSchema,
507
503
  literal,
@@ -519,6 +515,8 @@ export {
519
515
  string,
520
516
  t,
521
517
  toolAnnotations,
518
+ userCron,
519
+ userInterval,
522
520
  withApproval,
523
521
  withApprovals,
524
522
  workflow
package/js/mcp/effect.js CHANGED
@@ -2,18 +2,17 @@ import {
2
2
  mcpClientEffect,
3
3
  mcpHealthEffect,
4
4
  mcpToolsEffect
5
- } from "../chunk-H6NFR354.js";
5
+ } from "../chunk-36UFTECB.js";
6
6
  import "../chunk-BCSNKUAC.js";
7
- import "../chunk-ELSILABS.js";
8
- import "../chunk-6FUJH3T4.js";
9
- import "../chunk-I46RIOKQ.js";
10
- import "../chunk-5ZVAYXLT.js";
7
+ import "../chunk-WMD4NHXZ.js";
8
+ import "../chunk-7PHHWYV4.js";
9
+ import "../chunk-5MDA7MKL.js";
10
+ import "../chunk-YRGL4QEF.js";
11
11
  import "../chunk-XBG7HHXC.js";
12
- import "../chunk-7Z3NUCTP.js";
13
- import "../chunk-GLXEYET6.js";
14
- import "../chunk-BZFFXNWA.js";
15
- import "../chunk-NQW2E44U.js";
16
- import "../chunk-F2G534HD.js";
12
+ import "../chunk-DADXWWRZ.js";
13
+ import "../chunk-YWFUWTUJ.js";
14
+ import "../chunk-I5C7FD5Z.js";
15
+ import "../chunk-6XQLA5NC.js";
17
16
  import "../chunk-H72MEDMN.js";
18
17
  import "../chunk-GQ33QSNB.js";
19
18
  import "../chunk-QWQM3CLH.js";
package/js/mcp.js CHANGED
@@ -1,42 +1,41 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-EKZLPXHK.js";
4
+ } from "./chunk-KUCCHNVY.js";
5
5
  import {
6
6
  protocolOperations
7
- } from "./chunk-ZK7JDZJS.js";
7
+ } from "./chunk-PYQLOLOC.js";
8
8
  import {
9
9
  adaptMcpTool,
10
10
  mcpClientEffect,
11
11
  mcpHealthEffect
12
- } from "./chunk-H6NFR354.js";
12
+ } from "./chunk-36UFTECB.js";
13
13
  import "./chunk-BCSNKUAC.js";
14
- import "./chunk-ELSILABS.js";
14
+ import "./chunk-WMD4NHXZ.js";
15
15
  import {
16
16
  cacheKey
17
- } from "./chunk-6FUJH3T4.js";
17
+ } from "./chunk-7PHHWYV4.js";
18
18
  import {
19
19
  operationDescription
20
- } from "./chunk-I46RIOKQ.js";
21
- import "./chunk-5ZVAYXLT.js";
20
+ } from "./chunk-5MDA7MKL.js";
21
+ import "./chunk-YRGL4QEF.js";
22
22
  import "./chunk-XBG7HHXC.js";
23
- import "./chunk-7Z3NUCTP.js";
23
+ import "./chunk-DADXWWRZ.js";
24
24
  import {
25
25
  nativeOperation,
26
26
  routerDeclaration
27
- } from "./chunk-GLXEYET6.js";
27
+ } from "./chunk-YWFUWTUJ.js";
28
28
  import {
29
29
  fromPromise,
30
30
  method
31
- } from "./chunk-BZFFXNWA.js";
31
+ } from "./chunk-I5C7FD5Z.js";
32
32
  import {
33
33
  McpCredentialsUnverified,
34
34
  McpError,
35
35
  McpServerHeader,
36
36
  McpToolMetadata,
37
37
  McpToolsOptions
38
- } from "./chunk-NQW2E44U.js";
39
- import "./chunk-F2G534HD.js";
38
+ } from "./chunk-6XQLA5NC.js";
40
39
  import "./chunk-H72MEDMN.js";
41
40
  import "./chunk-GQ33QSNB.js";
42
41
  import "./chunk-QWQM3CLH.js";
package/js/openapi.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  protocolOperations,
10
10
  protocolRouter
11
- } from "./chunk-ZK7JDZJS.js";
11
+ } from "./chunk-PYQLOLOC.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-I46RIOKQ.js";
32
+ } from "./chunk-5MDA7MKL.js";
33
33
  import {
34
34
  failOnNetworkRefusal
35
- } from "./chunk-5ZVAYXLT.js";
35
+ } from "./chunk-YRGL4QEF.js";
36
36
  import "./chunk-XBG7HHXC.js";
37
37
  import {
38
38
  nativeOperation,
39
39
  routerDeclaration
40
- } from "./chunk-GLXEYET6.js";
40
+ } from "./chunk-YWFUWTUJ.js";
41
41
  import {
42
42
  accountProviderError,
43
43
  bodyUpstreamError,
@@ -46,19 +46,17 @@ import {
46
46
  method,
47
47
  providerErrorDetail,
48
48
  toPromise
49
- } from "./chunk-BZFFXNWA.js";
49
+ } from "./chunk-I5C7FD5Z.js";
50
50
  import {
51
51
  ApiErrorRecovery,
52
52
  ApiErrorResponse,
53
+ NetworkRefused,
53
54
  OpenapiResponseError,
55
+ ProviderError,
54
56
  RouterMeta,
57
+ cacheLimits,
55
58
  defaultOpenapiErrorLimits
56
- } from "./chunk-NQW2E44U.js";
57
- import {
58
- NetworkRefused,
59
- ProviderError,
60
- cacheLimits
61
- } from "./chunk-F2G534HD.js";
59
+ } from "./chunk-6XQLA5NC.js";
62
60
  import "./chunk-H72MEDMN.js";
63
61
  import {
64
62
  jsonSchema,
package/js/skills.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-EKZLPXHK.js";
5
- import "./chunk-6FUJH3T4.js";
4
+ } from "./chunk-KUCCHNVY.js";
5
+ import "./chunk-7PHHWYV4.js";
6
6
  import {
7
7
  failOnNetworkRefusal
8
- } from "./chunk-5ZVAYXLT.js";
8
+ } from "./chunk-YRGL4QEF.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-BZFFXNWA.js";
19
+ } from "./chunk-I5C7FD5Z.js";
20
20
  import {
21
21
  NetworkRefused,
22
22
  ProviderError,
23
23
  networkRefusalStatus
24
- } from "./chunk-F2G534HD.js";
24
+ } from "./chunk-6XQLA5NC.js";
25
25
  import {
26
26
  AppSkillMetadata,
27
27
  AppSkillSource,
@@ -865,7 +865,7 @@ var cachedCatalog = (options, prefix, publication) => options.cache === void 0 ?
865
865
  );
866
866
  var GitHubToken = Schema_exports.String.check(Schema_exports.isPattern(/^[\x21-\x7e]+$/u));
867
867
  var scopeMessages = {
868
- "missing-account": "A GitHub token needs its account. Pass account: ctx.accounts.<slot> with it.",
868
+ "missing-account": "A GitHub token needs its account. Pass account: ctx.user.accounts.<slot> or ctx.app.accounts.<slot> with it.",
869
869
  "unselected-account": "The GitHub account is not one of this app's selected accounts."
870
870
  };
871
871
  var githubCache = (options) => options.account !== void 0 && !Schema_exports.is(GitHubToken)(options.token) ? Effect_exports.fail(
@@ -7,7 +7,7 @@ import {
7
7
  UiOperation,
8
8
  UiSnapshot,
9
9
  UiUnauthorized
10
- } from "../chunk-JJH3MBAM.js";
10
+ } from "../chunk-YNJ5CZMJ.js";
11
11
  import "../chunk-DDHBUKXX.js";
12
12
  import "../chunk-TUMGL2OC.js";
13
13
  import "../chunk-EOPQ727L.js";
package/js/ui/serving.js CHANGED
@@ -5,7 +5,7 @@ import "../chunk-JPEUKEV4.js";
5
5
  import {
6
6
  UiFailed,
7
7
  UiForbidden
8
- } from "../chunk-JJH3MBAM.js";
8
+ } from "../chunk-YNJ5CZMJ.js";
9
9
  import {
10
10
  CurrentTelemetryConfig
11
11
  } from "../chunk-QWQM3CLH.js";
@@ -35,11 +35,11 @@ var accountProblemBlocks = (problem) => problem.reason === "missing" || problem.
35
35
  var accountProblemText = (problem) => {
36
36
  switch (problem.reason) {
37
37
  case "missing":
38
- return `No ${problem.provider} account chosen`;
38
+ return `No ${problem.provider} account linked`;
39
39
  case "removed":
40
40
  return `${problem.provider} account was removed or is no longer shared`;
41
41
  case "incompatible":
42
- return `Chosen account can't be used as the ${problem.provider} account`;
42
+ return `Linked account can't be used as the ${problem.provider} account`;
43
43
  case "credentials_rejected":
44
44
  return `${problem.account} (${problem.provider}): sign-in rejected at last check`;
45
45
  case "forbidden":
@@ -67,7 +67,7 @@ li.bad::before{background:#dc2626}li.warn::before{background:#f59e0b}
67
67
  .actions{display:flex;flex-wrap:wrap;gap:8px}
68
68
  a{padding:8px 14px;border-radius:8px;border:1px solid #d4d4d8;color:#18181b;text-decoration:none;font-weight:500}
69
69
  a.primary{background:#18181b;border-color:#18181b;color:#fff}
70
- </style></head><body><main><h1>${title}</h1><p>This profile's accounts need attention before the app can work.</p><ul>${items}</ul><div class="actions"><a class="primary" href="${escape(notice.fix)}">Fix accounts</a><a href="${escape(notice.choose)}">Open with another profile</a></div></main></body></html>`;
70
+ </style></head><body><main><h1>${title}</h1><p>This app's accounts need attention before it can work.</p><ul>${items}</ul><div class="actions"><a class="primary" href="${escape(notice.fix)}">Fix accounts</a></div></main></body></html>`;
71
71
  };
72
72
  var accountNoticeBootstrap = (notice) => `<script type="application/json" id="executor-account-notice">${JSON.stringify({
73
73
  items: notice.problems.map(accountProblemText),
@@ -8554,8 +8554,7 @@ var appDocument = (options) => Effect_exports.gen(function* () {
8554
8554
  });
8555
8555
  const context = JSON.stringify({
8556
8556
  deployment: options.deployment,
8557
- profile: options.profile,
8558
- expectedProfileRevision: options.expectedProfileRevision
8557
+ accounts: options.accountIds
8559
8558
  }).replaceAll("<", "\\u003c");
8560
8559
  const telemetry = yield* CurrentTelemetryConfig;
8561
8560
  const attribute = (text) => text.replaceAll("&", "&amp;").replaceAll('"', "&quot;").replaceAll("<", "&lt;");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps",
3
- "version": "0.0.1-beta.89",
3
+ "version": "0.0.1-beta.90",
4
4
  "description": "TypeScript apps with typed tools, accounts, storage, and UI.",
5
5
  "type": "module",
6
6
  "sideEffects": false,