apps 0.0.1-beta.6 → 0.0.1-beta.7
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.
- package/framework-reference.json +1 -1
- package/js/{chunk-ECQFRCH4.js → chunk-72JNVHPK.js} +2 -2
- package/js/{chunk-ITM77QPO.js → chunk-CMYUWAX7.js} +3 -3
- package/js/{chunk-MNMNLXBL.js → chunk-FL2QR3XW.js} +2 -2
- package/js/{chunk-6BSSI67S.js → chunk-OCYUEU47.js} +2 -2
- package/js/{chunk-SB4HEPNJ.js → chunk-UESPOTUI.js} +59 -7
- package/js/{chunk-B3EOZTK3.js → chunk-WLE7WX2U.js} +81 -4
- package/js/{chunk-OE3QQTSB.js → chunk-YXQHV65J.js} +22 -2
- package/js/{chunk-T7GKZBLP.js → chunk-Z5M2LQOZ.js} +1 -1
- package/js/contracts.js +11 -1
- package/js/effect.js +5 -5
- package/js/graphql.js +6 -6
- package/js/host.js +5 -5
- package/js/index.js +13 -22
- package/js/mcp/effect.js +7 -7
- package/js/mcp/stdio.js +7 -7
- package/js/mcp.js +8 -8
- package/js/openapi.js +4 -4
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/contracts/host.d.ts +10 -2
- package/types/apps/src/contracts/protocol-version.d.ts +1 -1
- package/types/apps/src/contracts/protocols/5.d.ts +1090 -0
- package/types/apps/src/contracts/provider.d.ts +51 -5
- package/types/apps/src/implementation/provider.d.ts +9 -4
- package/types/apps/src/index.d.ts +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fixedRouter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FL2QR3XW.js";
|
|
4
4
|
import {
|
|
5
5
|
nativeOperation,
|
|
6
6
|
operationDeclaration,
|
|
7
7
|
routerDeclaration
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Z5M2LQOZ.js";
|
|
9
9
|
|
|
10
10
|
// src/implementation/protocol-operations.ts
|
|
11
11
|
var protocolOperations = (operations, kinds = {}) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prepareElicitation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UESPOTUI.js";
|
|
4
4
|
import {
|
|
5
5
|
fromPromise
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z5M2LQOZ.js";
|
|
7
7
|
import {
|
|
8
8
|
ElicitationFailed,
|
|
9
9
|
McpError,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
defaultElicitationLimits,
|
|
16
16
|
defaultMcpClientLimits,
|
|
17
17
|
mcpSdkTimerCeilingMs
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WLE7WX2U.js";
|
|
19
19
|
import {
|
|
20
20
|
compileJsonSchemaDecoder,
|
|
21
21
|
jsonSchemaDecoder
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
joinPath,
|
|
6
6
|
mergeMeta
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z5M2LQOZ.js";
|
|
8
8
|
import {
|
|
9
9
|
parseProviderError
|
|
10
10
|
} from "./chunk-MKWZPDR6.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
HostedToolSummary,
|
|
18
18
|
McpError,
|
|
19
19
|
maxFailureMessageLength
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WLE7WX2U.js";
|
|
21
21
|
import {
|
|
22
22
|
AppDatabaseError
|
|
23
23
|
} from "./chunk-N7YDVXYJ.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
adaptMcpTools,
|
|
3
3
|
mcpClient,
|
|
4
4
|
mcpJsonSchemaValidator
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CMYUWAX7.js";
|
|
6
6
|
import {
|
|
7
7
|
accountProviderError,
|
|
8
8
|
httpProviderError
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
McpError,
|
|
12
12
|
McpToolsOptions,
|
|
13
13
|
defaultMcpClientLimits
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WLE7WX2U.js";
|
|
15
15
|
import {
|
|
16
16
|
ProviderError
|
|
17
17
|
} from "./chunk-R3EV5FTO.js";
|
|
@@ -8,16 +8,17 @@ import {
|
|
|
8
8
|
failureDetail,
|
|
9
9
|
readCatalog,
|
|
10
10
|
routerSkills
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FL2QR3XW.js";
|
|
12
12
|
import {
|
|
13
13
|
folderSkillsEffect
|
|
14
14
|
} from "./chunk-IPI4MFSN.js";
|
|
15
15
|
import {
|
|
16
|
+
ResponseStatusError,
|
|
16
17
|
authorDatabase,
|
|
17
18
|
isApp,
|
|
18
19
|
toEffectApp,
|
|
19
20
|
unavailableStorage
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YXQHV65J.js";
|
|
21
22
|
import {
|
|
22
23
|
parseDatabaseSchema
|
|
23
24
|
} from "./chunk-ZQINWV4W.js";
|
|
@@ -27,11 +28,14 @@ import {
|
|
|
27
28
|
locate,
|
|
28
29
|
nativeOperation,
|
|
29
30
|
toPromise
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Z5M2LQOZ.js";
|
|
31
32
|
import {
|
|
33
|
+
accountProviderError,
|
|
34
|
+
httpProviderError,
|
|
32
35
|
parseProviderError
|
|
33
36
|
} from "./chunk-MKWZPDR6.js";
|
|
34
37
|
import {
|
|
38
|
+
AccountCheckResult,
|
|
35
39
|
DeclaredProvider,
|
|
36
40
|
DeclaredRequirements,
|
|
37
41
|
ElicitationFailed,
|
|
@@ -77,7 +81,7 @@ import {
|
|
|
77
81
|
defaultWebhookTransportLimits,
|
|
78
82
|
maxInputProblems,
|
|
79
83
|
workflowDurationMillis
|
|
80
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-WLE7WX2U.js";
|
|
81
85
|
import {
|
|
82
86
|
CacheError
|
|
83
87
|
} from "./chunk-R3EV5FTO.js";
|
|
@@ -624,11 +628,11 @@ function requirements(slots, database) {
|
|
|
624
628
|
return Effect_exports.gen(function* () {
|
|
625
629
|
const accounts = /* @__PURE__ */ new Map();
|
|
626
630
|
for (const [slot, selection] of Object.entries(slots)) {
|
|
631
|
+
const provider = selection instanceof ManyAccounts ? selection.provider : selection;
|
|
627
632
|
accounts.set(slot, {
|
|
628
633
|
cardinality: selection instanceof ManyAccounts ? "many" : "one",
|
|
629
|
-
definition: yield* providerDeclaration(
|
|
630
|
-
|
|
631
|
-
)
|
|
634
|
+
definition: yield* providerDeclaration(provider),
|
|
635
|
+
...provider.health === void 0 ? {} : { health: true }
|
|
632
636
|
});
|
|
633
637
|
}
|
|
634
638
|
return yield* Schema_exports.decodeUnknownEffect(DeclaredRequirements)({
|
|
@@ -746,6 +750,14 @@ function dispatch(app, request, context, signal) {
|
|
|
746
750
|
return yield* new WorkflowFailure({ reason: "engine", retryable: true });
|
|
747
751
|
return result;
|
|
748
752
|
});
|
|
753
|
+
if (request.operation === "account-check")
|
|
754
|
+
return yield* checkAccount(
|
|
755
|
+
native.accounts,
|
|
756
|
+
declared,
|
|
757
|
+
request.requirement,
|
|
758
|
+
context,
|
|
759
|
+
invocationSignal
|
|
760
|
+
).pipe(withinDeadline);
|
|
749
761
|
let running;
|
|
750
762
|
let transactionOpen = false;
|
|
751
763
|
const delivery = (request2, signal2) => Effect_exports.suspend(
|
|
@@ -1091,6 +1103,46 @@ function dispatch(app, request, context, signal) {
|
|
|
1091
1103
|
})
|
|
1092
1104
|
);
|
|
1093
1105
|
}
|
|
1106
|
+
function checkAccount(slots, declared, requirement, context, signal) {
|
|
1107
|
+
return Effect_exports.gen(function* () {
|
|
1108
|
+
const selection = Object.hasOwn(slots, requirement) ? slots[requirement] : void 0;
|
|
1109
|
+
const slot = Object.hasOwn(declared.accounts, requirement) ? declared.accounts[requirement] : void 0;
|
|
1110
|
+
if (selection === void 0 || slot === void 0) return yield* new HostAccountsInvalid();
|
|
1111
|
+
const provider = selection instanceof ManyAccounts ? selection.provider : selection;
|
|
1112
|
+
const health = provider.health;
|
|
1113
|
+
if (health === void 0) return yield* new HostOperationNotFound();
|
|
1114
|
+
const { accounts } = yield* bindAccounts(
|
|
1115
|
+
{ [requirement]: provider },
|
|
1116
|
+
{ accounts: { [requirement]: { ...slot, cardinality: "one" } } },
|
|
1117
|
+
context
|
|
1118
|
+
).pipe(Effect_exports.withSpan("app.accounts.bind"));
|
|
1119
|
+
const account = accounts[requirement];
|
|
1120
|
+
if (account === void 0 || !("id" in account)) return yield* new HostAccountsInvalid();
|
|
1121
|
+
const result = yield* Effect_exports.suspend(
|
|
1122
|
+
() => Effect_exports.gen(function* () {
|
|
1123
|
+
return yield* health.run({ account, fetch: yield* invocationFetch(signal), signal });
|
|
1124
|
+
})
|
|
1125
|
+
).pipe(
|
|
1126
|
+
Effect_exports.catchCause((cause) => {
|
|
1127
|
+
if (Cause_exports.hasInterrupts(cause)) return Effect_exports.interrupt;
|
|
1128
|
+
const error = Cause_exports.squash(cause);
|
|
1129
|
+
const status = Schema_exports.decodeUnknownOption(ResponseStatusError)(error);
|
|
1130
|
+
const classified = Option_exports.isSome(status) ? Option_exports.fromNullishOr(httpProviderError(status.value.status)) : parseProviderError(error);
|
|
1131
|
+
return Effect_exports.fail(
|
|
1132
|
+
Option_exports.isSome(classified) ? accountProviderError(classified.value, account.id) : new HostOperationFailed()
|
|
1133
|
+
);
|
|
1134
|
+
}),
|
|
1135
|
+
Effect_exports.withSpan("app.account.check")
|
|
1136
|
+
);
|
|
1137
|
+
return yield* safe2(
|
|
1138
|
+
() => Schema_exports.decodeUnknownEffect(AccountCheckResult)(result ?? {}).pipe(
|
|
1139
|
+
Effect_exports.flatMap(Schema_exports.encodeEffect(AccountCheckResult)),
|
|
1140
|
+
Effect_exports.flatMap(Schema_exports.decodeUnknownEffect(JsonValue))
|
|
1141
|
+
),
|
|
1142
|
+
new HostOutputInvalid()
|
|
1143
|
+
);
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
1094
1146
|
var parseSkillLoadFailed = (error) => Schema_exports.decodeUnknownOption(SkillLoadFailed)(error).pipe(
|
|
1095
1147
|
Option_exports.map(
|
|
1096
1148
|
({ reason, message, status }) => new SkillLoadFailed({
|
|
@@ -1887,6 +1887,16 @@ var OAuth2Method = class extends Data_exports.TaggedClass(
|
|
|
1887
1887
|
"oauth2"
|
|
1888
1888
|
) {
|
|
1889
1889
|
};
|
|
1890
|
+
var displayText = Schema_exports.String.check(Schema_exports.isMinLength(1), Schema_exports.isMaxLength(255));
|
|
1891
|
+
var AccountInfo = Schema_exports.Struct({
|
|
1892
|
+
externalId: Schema_exports.optionalKey(displayText),
|
|
1893
|
+
displayName: Schema_exports.optionalKey(displayText),
|
|
1894
|
+
username: Schema_exports.optionalKey(displayText),
|
|
1895
|
+
email: Schema_exports.optionalKey(displayText),
|
|
1896
|
+
avatarUrl: Schema_exports.optionalKey(HttpUrl),
|
|
1897
|
+
profileUrl: Schema_exports.optionalKey(HttpUrl)
|
|
1898
|
+
});
|
|
1899
|
+
var AccountCheckResult = Schema_exports.Struct({ accountInfo: Schema_exports.optionalKey(AccountInfo) });
|
|
1890
1900
|
var Provider = class extends Data_exports.Class {
|
|
1891
1901
|
/** Declare zero or more accounts from this provider without performing I/O. */
|
|
1892
1902
|
many() {
|
|
@@ -1897,7 +1907,7 @@ var ManyAccounts = class extends Data_exports.TaggedClass("many") {
|
|
|
1897
1907
|
};
|
|
1898
1908
|
|
|
1899
1909
|
// src/contracts/protocol-version.ts
|
|
1900
|
-
var frameworkProtocol =
|
|
1910
|
+
var frameworkProtocol = 5;
|
|
1901
1911
|
|
|
1902
1912
|
// src/contracts/schedules.ts
|
|
1903
1913
|
var minimumIntervalMilliseconds = 6e4;
|
|
@@ -2396,6 +2406,58 @@ var protocol4 = {
|
|
|
2396
2406
|
}
|
|
2397
2407
|
};
|
|
2398
2408
|
|
|
2409
|
+
// src/contracts/protocols/5.ts
|
|
2410
|
+
var DeclaredRequirements2 = Schema_exports.Struct({
|
|
2411
|
+
/** Protocol support of this retained framework build, not an author-declared requirement. */
|
|
2412
|
+
capabilities: Schema_exports.optionalKey(
|
|
2413
|
+
Schema_exports.Struct({
|
|
2414
|
+
skills: Schema_exports.Literal(true),
|
|
2415
|
+
toolIndex: Schema_exports.optionalKey(Schema_exports.Literal(true)),
|
|
2416
|
+
skillSources: Schema_exports.optionalKey(Schema_exports.Literal(true)),
|
|
2417
|
+
scheduledTools: Schema_exports.optionalKey(Schema_exports.Literal(true))
|
|
2418
|
+
})
|
|
2419
|
+
),
|
|
2420
|
+
database: Schema_exports.optionalKey(DatabaseSchema),
|
|
2421
|
+
accounts: Schema_exports.Record(
|
|
2422
|
+
Schema_exports.NonEmptyString,
|
|
2423
|
+
Schema_exports.Struct({
|
|
2424
|
+
definition: DeclaredProvider,
|
|
2425
|
+
cardinality: Schema_exports.Literals(["one", "many"]),
|
|
2426
|
+
/**
|
|
2427
|
+
* The slot's provider defines an account check. Kept beside the definition, not in it, so
|
|
2428
|
+
* adding or editing a check never changes the provider's identity.
|
|
2429
|
+
*/
|
|
2430
|
+
health: Schema_exports.optionalKey(Schema_exports.Literal(true))
|
|
2431
|
+
})
|
|
2432
|
+
)
|
|
2433
|
+
});
|
|
2434
|
+
var AccountCheckCommand = Schema_exports.Struct({
|
|
2435
|
+
operation: Schema_exports.Literal("account-check"),
|
|
2436
|
+
requirement: Schema_exports.NonEmptyString
|
|
2437
|
+
});
|
|
2438
|
+
var HostRequest3 = Schema_exports.Union([
|
|
2439
|
+
...protocol4.schemas.request.members,
|
|
2440
|
+
AccountCheckCommand
|
|
2441
|
+
]);
|
|
2442
|
+
var HostInvocation3 = Schema_exports.Struct({
|
|
2443
|
+
command: HostRequest3,
|
|
2444
|
+
accounts: ResolvedAccounts,
|
|
2445
|
+
approval: Schema_exports.optionalKey(TrustedToolApproval),
|
|
2446
|
+
replay: Schema_exports.optionalKey(WorkflowReplay),
|
|
2447
|
+
deadline: Schema_exports.optionalKey(InvocationDeadline),
|
|
2448
|
+
workflowRun: Schema_exports.optionalKey(WorkflowRunId)
|
|
2449
|
+
});
|
|
2450
|
+
var protocol5 = {
|
|
2451
|
+
version: 5,
|
|
2452
|
+
schemas: {
|
|
2453
|
+
...protocol4.schemas,
|
|
2454
|
+
invocation: HostInvocation3,
|
|
2455
|
+
request: HostRequest3,
|
|
2456
|
+
requirements: DeclaredRequirements2,
|
|
2457
|
+
accountCheck: AccountCheckResult
|
|
2458
|
+
}
|
|
2459
|
+
};
|
|
2460
|
+
|
|
2399
2461
|
// src/contracts/host.ts
|
|
2400
2462
|
var skillsCommand = (sources) => sources ? { operation: "skills", sources: true } : { operation: "skills" };
|
|
2401
2463
|
var skillCatalog = (response) => Schema_exports.is(SkillSources2)(response) ? response : { skills: response };
|
|
@@ -2436,6 +2498,16 @@ var HostCallError = Schema_exports.Union([
|
|
|
2436
2498
|
HostToolPolicyFailed,
|
|
2437
2499
|
ElicitationFailed
|
|
2438
2500
|
]);
|
|
2501
|
+
var HostAccountCheckError = Schema_exports.Union([
|
|
2502
|
+
ProviderError,
|
|
2503
|
+
WorkflowFailure,
|
|
2504
|
+
HostRequestInvalid,
|
|
2505
|
+
HostDeclarationInvalid2,
|
|
2506
|
+
HostAccountsInvalid,
|
|
2507
|
+
HostOperationNotFound,
|
|
2508
|
+
HostOperationFailed2,
|
|
2509
|
+
HostOutputInvalid
|
|
2510
|
+
]);
|
|
2439
2511
|
var HostDataError = HostCallError;
|
|
2440
2512
|
var ToolResultObservation = Context_exports.Reference(
|
|
2441
2513
|
"apps/ToolResultObservation",
|
|
@@ -2450,6 +2522,8 @@ export {
|
|
|
2450
2522
|
OAuth2Config,
|
|
2451
2523
|
OAuth2AccessToken,
|
|
2452
2524
|
OAuth2Method,
|
|
2525
|
+
AccountInfo,
|
|
2526
|
+
AccountCheckResult,
|
|
2453
2527
|
Provider,
|
|
2454
2528
|
ManyAccounts,
|
|
2455
2529
|
reservedRouterKeys,
|
|
@@ -2519,7 +2593,6 @@ export {
|
|
|
2519
2593
|
OperationSchedule,
|
|
2520
2594
|
DeclaredAuthMethod,
|
|
2521
2595
|
DeclaredProvider,
|
|
2522
|
-
DeclaredRequirements,
|
|
2523
2596
|
ResolvedAccount,
|
|
2524
2597
|
ResolvedAccounts,
|
|
2525
2598
|
TrustedToolApproval,
|
|
@@ -2549,12 +2622,15 @@ export {
|
|
|
2549
2622
|
HostedRouter,
|
|
2550
2623
|
HostedCatalog,
|
|
2551
2624
|
HostedCatalogSummary,
|
|
2552
|
-
HostRequest2 as HostRequest,
|
|
2553
2625
|
HostKindMismatch,
|
|
2554
2626
|
HostError3 as HostError,
|
|
2555
2627
|
HostResponse3 as HostResponse,
|
|
2556
|
-
HostInvocation2 as HostInvocation,
|
|
2557
2628
|
protocol4,
|
|
2629
|
+
DeclaredRequirements2 as DeclaredRequirements,
|
|
2630
|
+
AccountCheckCommand,
|
|
2631
|
+
HostRequest3 as HostRequest,
|
|
2632
|
+
HostInvocation3 as HostInvocation,
|
|
2633
|
+
protocol5,
|
|
2558
2634
|
skillsCommand,
|
|
2559
2635
|
skillCatalog,
|
|
2560
2636
|
inspectCommand,
|
|
@@ -2563,6 +2639,7 @@ export {
|
|
|
2563
2639
|
HostRequirementsError,
|
|
2564
2640
|
HostInspectError,
|
|
2565
2641
|
HostCallError,
|
|
2642
|
+
HostAccountCheckError,
|
|
2566
2643
|
HostDataError,
|
|
2567
2644
|
ToolResultObservation
|
|
2568
2645
|
};
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
fromPromise,
|
|
7
7
|
nativeOperation,
|
|
8
8
|
nativeRouter
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Z5M2LQOZ.js";
|
|
10
10
|
import {
|
|
11
11
|
ScheduleTiming
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WLE7WX2U.js";
|
|
13
13
|
import {
|
|
14
14
|
DatabaseSchema
|
|
15
15
|
} from "./chunk-N7YDVXYJ.js";
|
|
@@ -29,6 +29,24 @@ import {
|
|
|
29
29
|
Schema_exports
|
|
30
30
|
} from "./chunk-CDL5PM2Q.js";
|
|
31
31
|
|
|
32
|
+
// src/contracts/http.ts
|
|
33
|
+
var ResponseStatusError = class extends Schema_exports.TaggedError()(
|
|
34
|
+
"ResponseStatusError",
|
|
35
|
+
{ status: Schema_exports.Number }
|
|
36
|
+
) {
|
|
37
|
+
get message() {
|
|
38
|
+
return `Request failed with status ${this.status}`;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var ResponseDecodeError = class extends Schema_exports.TaggedError()(
|
|
42
|
+
"ResponseDecodeError",
|
|
43
|
+
{}
|
|
44
|
+
) {
|
|
45
|
+
get message() {
|
|
46
|
+
return "Response body did not match the expected schema";
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
32
50
|
// src/implementation/workflows.ts
|
|
33
51
|
var NativeWorkflow = /* @__PURE__ */ Symbol("apps.Workflow");
|
|
34
52
|
var workflow = (options, run) => ({
|
|
@@ -211,6 +229,8 @@ var unavailableStorage = {
|
|
|
211
229
|
};
|
|
212
230
|
|
|
213
231
|
export {
|
|
232
|
+
ResponseStatusError,
|
|
233
|
+
ResponseDecodeError,
|
|
214
234
|
workflow,
|
|
215
235
|
isApp,
|
|
216
236
|
toEffectApp,
|
package/js/contracts.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AccountCheckCommand,
|
|
3
|
+
AccountCheckResult,
|
|
4
|
+
AccountInfo,
|
|
2
5
|
ApiErrorResponse,
|
|
3
6
|
ApprovalElicitation,
|
|
4
7
|
ApprovalResponse,
|
|
@@ -16,6 +19,7 @@ import {
|
|
|
16
19
|
FailureName,
|
|
17
20
|
FailureSource,
|
|
18
21
|
FormElicitation,
|
|
22
|
+
HostAccountCheckError,
|
|
19
23
|
HostAccountsInvalid,
|
|
20
24
|
HostCallError,
|
|
21
25
|
HostDataError,
|
|
@@ -100,11 +104,12 @@ import {
|
|
|
100
104
|
protocol2,
|
|
101
105
|
protocol3,
|
|
102
106
|
protocol4,
|
|
107
|
+
protocol5,
|
|
103
108
|
selectTools,
|
|
104
109
|
skillCatalog,
|
|
105
110
|
skillsCommand,
|
|
106
111
|
workflowDurationMillis
|
|
107
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-WLE7WX2U.js";
|
|
108
113
|
import {
|
|
109
114
|
DatabaseFieldReserved,
|
|
110
115
|
DatabaseLimitExceeded
|
|
@@ -137,7 +142,10 @@ import {
|
|
|
137
142
|
import "./chunk-CDL5PM2Q.js";
|
|
138
143
|
import "./chunk-CZ7CSFO4.js";
|
|
139
144
|
export {
|
|
145
|
+
AccountCheckCommand,
|
|
146
|
+
AccountCheckResult,
|
|
140
147
|
AccountId,
|
|
148
|
+
AccountInfo,
|
|
141
149
|
ApiErrorResponse,
|
|
142
150
|
AppSkillMetadata,
|
|
143
151
|
AppSkillName,
|
|
@@ -163,6 +171,7 @@ export {
|
|
|
163
171
|
FailureName,
|
|
164
172
|
FailureSource,
|
|
165
173
|
FormElicitation,
|
|
174
|
+
HostAccountCheckError,
|
|
166
175
|
HostAccountsInvalid,
|
|
167
176
|
HostCallError,
|
|
168
177
|
HostDataError,
|
|
@@ -255,6 +264,7 @@ export {
|
|
|
255
264
|
protocol2,
|
|
256
265
|
protocol3,
|
|
257
266
|
protocol4,
|
|
267
|
+
protocol5,
|
|
258
268
|
selectTools,
|
|
259
269
|
skillCatalog,
|
|
260
270
|
skillFormatLimits,
|
package/js/effect.js
CHANGED
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
ApprovalDecision,
|
|
4
4
|
createAppHandler,
|
|
5
5
|
prepareElicitation
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UESPOTUI.js";
|
|
7
7
|
import "./chunk-NKLWZJLE.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-FL2QR3XW.js";
|
|
9
9
|
import "./chunk-IPI4MFSN.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-YXQHV65J.js";
|
|
11
11
|
import "./chunk-ZQINWV4W.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-Z5M2LQOZ.js";
|
|
13
13
|
import "./chunk-MKWZPDR6.js";
|
|
14
14
|
import {
|
|
15
15
|
ToolAnnotations
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WLE7WX2U.js";
|
|
17
17
|
import "./chunk-N7YDVXYJ.js";
|
|
18
18
|
import "./chunk-R3EV5FTO.js";
|
|
19
19
|
import "./chunk-JU7VHODU.js";
|
package/js/graphql.js
CHANGED
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
} from "./chunk-RFVIONFX.js";
|
|
4
4
|
import {
|
|
5
5
|
protocolOperations
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-72JNVHPK.js";
|
|
7
7
|
import "./chunk-BCSNKUAC.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-UESPOTUI.js";
|
|
9
9
|
import {
|
|
10
10
|
cacheKey
|
|
11
11
|
} from "./chunk-NKLWZJLE.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-FL2QR3XW.js";
|
|
13
13
|
import "./chunk-IPI4MFSN.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-YXQHV65J.js";
|
|
15
15
|
import "./chunk-ZQINWV4W.js";
|
|
16
16
|
import {
|
|
17
17
|
nativeOperation,
|
|
18
18
|
routerDeclaration
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Z5M2LQOZ.js";
|
|
20
20
|
import {
|
|
21
21
|
accountProviderError,
|
|
22
22
|
graphqlProviderError,
|
|
23
23
|
httpProviderError
|
|
24
24
|
} from "./chunk-MKWZPDR6.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-WLE7WX2U.js";
|
|
26
26
|
import "./chunk-N7YDVXYJ.js";
|
|
27
27
|
import {
|
|
28
28
|
ProviderError
|
package/js/host.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAppHandler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UESPOTUI.js";
|
|
4
4
|
import "./chunk-NKLWZJLE.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-FL2QR3XW.js";
|
|
6
6
|
import "./chunk-IPI4MFSN.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-YXQHV65J.js";
|
|
8
8
|
import "./chunk-ZQINWV4W.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-Z5M2LQOZ.js";
|
|
10
10
|
import "./chunk-MKWZPDR6.js";
|
|
11
11
|
import {
|
|
12
12
|
ElicitationFailed,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
WorkflowRun,
|
|
22
22
|
WorkflowRunId,
|
|
23
23
|
WorkflowRunPage
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WLE7WX2U.js";
|
|
25
25
|
import "./chunk-N7YDVXYJ.js";
|
|
26
26
|
import {
|
|
27
27
|
CacheCommand,
|
package/js/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ResponseDecodeError,
|
|
3
|
+
ResponseStatusError,
|
|
2
4
|
defineApp,
|
|
3
5
|
defineDatabase,
|
|
4
6
|
table,
|
|
5
7
|
workflow
|
|
6
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YXQHV65J.js";
|
|
7
9
|
import "./chunk-ZQINWV4W.js";
|
|
8
10
|
import {
|
|
9
11
|
dynamicRouter,
|
|
@@ -16,7 +18,7 @@ import {
|
|
|
16
18
|
router,
|
|
17
19
|
routerDeclaration,
|
|
18
20
|
withApproval
|
|
19
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Z5M2LQOZ.js";
|
|
20
22
|
import {
|
|
21
23
|
accountProviderError
|
|
22
24
|
} from "./chunk-MKWZPDR6.js";
|
|
@@ -34,7 +36,7 @@ import {
|
|
|
34
36
|
ScheduleTiming,
|
|
35
37
|
SecretsMethod,
|
|
36
38
|
WorkflowFailure
|
|
37
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-WLE7WX2U.js";
|
|
38
40
|
import "./chunk-N7YDVXYJ.js";
|
|
39
41
|
import {
|
|
40
42
|
CacheError,
|
|
@@ -73,24 +75,6 @@ import {
|
|
|
73
75
|
} from "./chunk-CDL5PM2Q.js";
|
|
74
76
|
import "./chunk-CZ7CSFO4.js";
|
|
75
77
|
|
|
76
|
-
// src/contracts/http.ts
|
|
77
|
-
var ResponseStatusError = class extends Schema_exports.TaggedError()(
|
|
78
|
-
"ResponseStatusError",
|
|
79
|
-
{ status: Schema_exports.Number }
|
|
80
|
-
) {
|
|
81
|
-
get message() {
|
|
82
|
-
return `Request failed with status ${this.status}`;
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
var ResponseDecodeError = class extends Schema_exports.TaggedError()(
|
|
86
|
-
"ResponseDecodeError",
|
|
87
|
-
{}
|
|
88
|
-
) {
|
|
89
|
-
get message() {
|
|
90
|
-
return "Response body did not match the expected schema";
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
|
|
94
78
|
// src/implementation/http.ts
|
|
95
79
|
var decodeJson = (response, schema) => Effect_exports.gen(function* () {
|
|
96
80
|
if (response.status < 200 || response.status >= 300) {
|
|
@@ -103,7 +87,14 @@ var decodeJson = (response, schema) => Effect_exports.gen(function* () {
|
|
|
103
87
|
// src/implementation/provider.ts
|
|
104
88
|
var secrets = (options) => new SecretsMethod(options);
|
|
105
89
|
var oauth2 = (config, response) => parse(OAuth2Config, config).pipe(Effect_exports.map((config2) => new OAuth2Method({ config: config2, response })));
|
|
106
|
-
var defineProvider = (
|
|
90
|
+
var defineProvider = ({
|
|
91
|
+
health,
|
|
92
|
+
...options
|
|
93
|
+
}) => {
|
|
94
|
+
if (health === void 0) return new Provider(options);
|
|
95
|
+
const run = fromPromise(health);
|
|
96
|
+
return new Provider({ ...options, health: { run } });
|
|
97
|
+
};
|
|
107
98
|
|
|
108
99
|
// src/implementation/account-router.ts
|
|
109
100
|
var inputDocument = (operation) => {
|
package/js/mcp/effect.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mcpClientEffect,
|
|
3
3
|
mcpToolsEffect
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-OCYUEU47.js";
|
|
5
|
+
import "../chunk-CMYUWAX7.js";
|
|
6
6
|
import "../chunk-BCSNKUAC.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-UESPOTUI.js";
|
|
8
8
|
import "../chunk-NKLWZJLE.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-FL2QR3XW.js";
|
|
10
10
|
import "../chunk-IPI4MFSN.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-YXQHV65J.js";
|
|
12
12
|
import "../chunk-ZQINWV4W.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-Z5M2LQOZ.js";
|
|
14
14
|
import "../chunk-MKWZPDR6.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-WLE7WX2U.js";
|
|
16
16
|
import "../chunk-N7YDVXYJ.js";
|
|
17
17
|
import "../chunk-R3EV5FTO.js";
|
|
18
18
|
import "../chunk-JU7VHODU.js";
|
package/js/mcp/stdio.js
CHANGED
|
@@ -2,23 +2,23 @@ import {
|
|
|
2
2
|
adaptMcpTools,
|
|
3
3
|
mcpClient,
|
|
4
4
|
mcpJsonSchemaValidator
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-CMYUWAX7.js";
|
|
6
6
|
import {
|
|
7
7
|
protocolRouter
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-72JNVHPK.js";
|
|
9
9
|
import "../chunk-BCSNKUAC.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-UESPOTUI.js";
|
|
11
11
|
import "../chunk-NKLWZJLE.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-FL2QR3XW.js";
|
|
13
13
|
import "../chunk-IPI4MFSN.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-YXQHV65J.js";
|
|
15
15
|
import "../chunk-ZQINWV4W.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-Z5M2LQOZ.js";
|
|
17
17
|
import "../chunk-MKWZPDR6.js";
|
|
18
18
|
import {
|
|
19
19
|
McpError,
|
|
20
20
|
ProcessConfig
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-WLE7WX2U.js";
|
|
22
22
|
import "../chunk-N7YDVXYJ.js";
|
|
23
23
|
import "../chunk-R3EV5FTO.js";
|
|
24
24
|
import "../chunk-JU7VHODU.js";
|